]> granicus.if.org Git - postgresql/blob - configure
Make libpq thread-safe with configure --with-threads option.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
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.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
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; }
65
66
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 ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
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
86
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
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
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
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
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
123     as_myself=$0
124   fi
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; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
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
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
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 |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
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; }; }
176
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).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >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
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
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"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
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`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
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}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
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="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
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 ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
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" ;;
393
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'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
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 ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
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 ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
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 ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
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 ;;
455
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 ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
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 ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
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 ;;
502
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 ;;
509
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 ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
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 ;;
564
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 ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
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'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
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" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
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 ;;
608
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 ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
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'"
629     export $ac_envvar ;;
630
631   *)
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}
637     ;;
638
639   esac
640 done
641
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; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
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.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
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
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
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 ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
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; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
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}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-recode         enable single-byte recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-threads          allow libpq to be thread-safe
859   --with-tcl              build Tcl and Tk interfaces
860   --without-tk            do not build Tk interfaces if Tcl is enabled
861   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
862   --with-tkconfig=DIR     tkConfig.sh is in DIR
863   --with-perl             build Perl modules (PL/Perl)
864   --with-python           build Python interface module
865   --with-java             build JDBC interface and Java tools
866   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
867   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
869   --with-pam              build with PAM support
870   --with-rendezvous       build with Rendezvous support
871   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
872   --without-readline      do not use Readline
873   --without-zlib          do not use Zlib
874   --with-gnu-ld           assume the C compiler uses GNU ld default=no
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884   DOCBOOKSTYLE
885               location of DocBook stylesheets
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <pgsql-bugs@postgresql.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
955
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960
961 Copyright 2002 PostgreSQL Global Development Group
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1027 do
1028   case $ac_arg in
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n ) continue ;;
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     continue ;;
1034   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036   esac
1037   case " $ac_configure_args " in
1038     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1039     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040        ac_sep=" " ;;
1041   esac
1042   # Get rid of the leading space.
1043 done
1044
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log.  We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051   # Save into config.log some information that might help in debugging.
1052   {
1053     echo
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076     if test -s confdefs.h; then
1077       cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082       echo
1083       sed "/^$/d" confdefs.h
1084       echo
1085     fi
1086     test "$ac_signal" != 0 &&
1087       echo "$as_me: caught signal $ac_signal"
1088     echo "$as_me: exit $exit_status"
1089   } >&5
1090   rm -f core core.* *.core &&
1091   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092     exit $exit_status
1093      ' 0
1094 for ac_signal in 1 2 13 15; do
1095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
1098
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 echo >confdefs.h
1103
1104 # Predefined preprocessor variables.
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
1129
1130
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134   if test "x$prefix" != xNONE; then
1135     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136   else
1137     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138   fi
1139 fi
1140 for ac_site_file in $CONFIG_SITE; do
1141   if test -r "$ac_site_file"; then
1142     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144     sed 's/^/| /' "$ac_site_file" >&5
1145     . "$ac_site_file"
1146   fi
1147 done
1148
1149 if test -r "$cache_file"; then
1150   # Some versions of bash will fail to source /dev/null (special
1151   # files actually), so we avoid doing that.
1152   if test -f "$cache_file"; then
1153     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1155     case $cache_file in
1156       [\\/]* | ?:[\\/]* ) . $cache_file;;
1157       *)                      . ./$cache_file;;
1158     esac
1159   fi
1160 else
1161   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163   >$cache_file
1164 fi
1165
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172   eval ac_new_set=\$ac_env_${ac_var}_set
1173   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174   eval ac_new_val="\$ac_env_${ac_var}_value"
1175   case $ac_old_set,$ac_new_set in
1176     set,)
1177       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179       ac_cache_corrupted=: ;;
1180     ,set)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,);;
1185     *)
1186       if test "x$ac_old_val" != "x$ac_new_val"; then
1187         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190 echo "$as_me:   former value:  $ac_old_val" >&2;}
1191         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192 echo "$as_me:   current value: $ac_new_val" >&2;}
1193         ac_cache_corrupted=:
1194       fi;;
1195   esac
1196   # Pass precious variables to config.status.
1197   if test "$ac_new_set" = set; then
1198     case $ac_new_val in
1199     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201     *) ac_arg=$ac_var=$ac_new_val ;;
1202     esac
1203     case " $ac_configure_args " in
1204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1205       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206     esac
1207   fi
1208 done
1209 if $ac_cache_corrupted; then
1210   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 ac_ext=c
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255 ac_aux_dir=
1256 for ac_dir in config $srcdir/config; do
1257   if test -f $ac_dir/install-sh; then
1258     ac_aux_dir=$ac_dir
1259     ac_install_sh="$ac_aux_dir/install-sh -c"
1260     break
1261   elif test -f $ac_dir/install.sh; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/install.sh -c"
1264     break
1265   elif test -f $ac_dir/shtool; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/shtool install -c"
1268     break
1269   fi
1270 done
1271 if test -z "$ac_aux_dir"; then
1272   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1279
1280
1281 configure_args=$ac_configure_args
1282
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1287 _ACEOF
1288
1289
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294    { (exit 1); exit 1; }; }
1295
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299   echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301   ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303   ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307    { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311    { (exit 1); exit 1; }; }
1312
1313 fi
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1316 build=$ac_cv_build
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320
1321
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325   echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327   ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329   ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333    { (exit 1); exit 1; }; }
1334
1335 fi
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1338 host=$ac_cv_host
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342
1343
1344
1345 template=
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1348
1349
1350
1351
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354   withval="$with_template"
1355
1356   case $withval in
1357     yes)
1358       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360    { (exit 1); exit 1; }; }
1361       ;;
1362     no)
1363       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365    { (exit 1); exit 1; }; }
1366       ;;
1367     *)
1368
1369   case $withval in
1370     list)   echo; ls "$srcdir/src/template"; exit;;
1371     *)      if test -f "$srcdir/src/template/$with_template" ; then
1372               template=$withval
1373             else
1374               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376    { (exit 1); exit 1; }; }
1377             fi;;
1378   esac
1379
1380       ;;
1381   esac
1382
1383 else
1384
1385   # --with-template not given
1386
1387 case $host_os in
1388      aix*) template=aix ;;
1389     beos*) template=beos ;;
1390     bsdi*) template=bsdi ;;
1391   cygwin*) template=cygwin ;;
1392   darwin*) template=darwin ;;
1393     dgux*) template=dgux ;;
1394  freebsd*) template=freebsd ;;
1395     hpux*) template=hpux ;;
1396     irix*) template=irix5 ;;
1397    linux*) template=linux ;;
1398    mingw*) template=win32 ;;
1399   netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401  openbsd*) template=openbsd ;;
1402      osf*) template=osf ;;
1403      qnx*) template=qnx4 ;;
1404      sco*) template=sco ;;
1405  solaris*) template=solaris ;;
1406    sunos*) template=sunos4 ;;
1407  sysv4.2*)
1408         case $host_vendor in
1409           univel) template=univel ;;
1410         esac ;;
1411    sysv4*) template=svr4 ;;
1412    sysv5*) template=unixware ;;
1413   ultrix*) template=ultrix4 ;;
1414 esac
1415
1416   if test x"$template" = x"" ; then
1417     { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1422
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this.  Include the above 'checking host system type...'
1425 line.
1426 *******************************************************************
1427 " >&5
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1433
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this.  Include the above 'checking host system type...'
1436 line.
1437 *******************************************************************
1438 " >&2;}
1439    { (exit 1); exit 1; }; }
1440   fi
1441
1442
1443 fi;
1444
1445
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1448
1449 PORTNAME=$template
1450
1451
1452 # Pick right test-and-set (TAS) code.  Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1455 case $host in
1456   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1457   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1459   *)                need_tas=no;  tas_file=dummy.s ;;
1460 esac
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462
1463
1464 if test "$need_tas" = yes ; then
1465   TAS=tas.o
1466 fi
1467
1468
1469
1470
1471 ##
1472 ## Command line options
1473 ##
1474
1475
1476 #
1477 # Add non-standard directories to the include path
1478 #
1479
1480
1481
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484   withval="$with_includes"
1485
1486   case $withval in
1487     yes)
1488       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490    { (exit 1); exit 1; }; }
1491       ;;
1492     no)
1493       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495    { (exit 1); exit 1; }; }
1496       ;;
1497     *)
1498
1499       ;;
1500   esac
1501
1502 fi;
1503
1504
1505
1506 #
1507 # Add non-standard directories to the library search path
1508 #
1509
1510
1511
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514   withval="$with_libraries"
1515
1516   case $withval in
1517     yes)
1518       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520    { (exit 1); exit 1; }; }
1521       ;;
1522     no)
1523       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525    { (exit 1); exit 1; }; }
1526       ;;
1527     *)
1528       LIBRARY_DIRS=$withval
1529       ;;
1530   esac
1531
1532 fi;
1533
1534
1535
1536
1537
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540   withval="$with_libs"
1541
1542   case $withval in
1543     yes)
1544       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546    { (exit 1); exit 1; }; }
1547       ;;
1548     no)
1549       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551    { (exit 1); exit 1; }; }
1552       ;;
1553     *)
1554       LIBRARY_DIRS=$withval
1555       ;;
1556   esac
1557
1558 fi;
1559
1560
1561
1562 #
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 #
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567
1568
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571   enableval="$enable_integer_datetimes"
1572
1573   case $enableval in
1574     yes)
1575
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1578 _ACEOF
1579
1580       ;;
1581     no)
1582       :
1583       ;;
1584     *)
1585       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587    { (exit 1); exit 1; }; }
1588       ;;
1589   esac
1590
1591 else
1592   enable_integer_datetimes=no
1593
1594 fi;
1595
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598
1599
1600 # Character set recode (--enable-recode)
1601 #
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1604
1605
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608   enableval="$enable_recode"
1609
1610   case $enableval in
1611     yes)
1612
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1615 _ACEOF
1616
1617       ;;
1618     no)
1619       :
1620       ;;
1621     *)
1622       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624    { (exit 1); exit 1; }; }
1625       ;;
1626   esac
1627
1628 else
1629   enable_recode=no
1630
1631 fi;
1632
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1635
1636
1637 #
1638 # NLS
1639 #
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1642
1643
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646   enableval="$enable_nls"
1647
1648   case $enableval in
1649     yes)
1650       :
1651       ;;
1652     no)
1653       :
1654       ;;
1655     *)
1656       enable_nls=yes
1657 WANTED_LANGUAGES=$enableval
1658       ;;
1659   esac
1660
1661 else
1662   enable_nls=no
1663 fi;
1664
1665
1666 if test "$enable_nls" = yes; then
1667
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1670 _ACEOF
1671
1672 fi
1673
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1676
1677
1678
1679 #
1680 # Default port number (--with-pgport), default 5432
1681 #
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1684
1685
1686
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689   withval="$with_pgport"
1690
1691   case $withval in
1692     yes)
1693       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695    { (exit 1); exit 1; }; }
1696       ;;
1697     no)
1698       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700    { (exit 1); exit 1; }; }
1701       ;;
1702     *)
1703       default_port=$withval
1704       ;;
1705   esac
1706
1707 else
1708   default_port=5432
1709 fi;
1710
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1722 _ACEOF
1723
1724
1725
1726 #
1727 # Option to disable shared libraries
1728 #
1729
1730
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733   enableval="$enable_shared"
1734
1735   case $enableval in
1736     yes)
1737       :
1738       ;;
1739     no)
1740       :
1741       ;;
1742     *)
1743       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745    { (exit 1); exit 1; }; }
1746       ;;
1747   esac
1748
1749 else
1750   enable_shared=yes
1751
1752 fi;
1753
1754
1755
1756 #
1757 # '-rpath'-like feature can be disabled
1758 #
1759
1760
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763   enableval="$enable_rpath"
1764
1765   case $enableval in
1766     yes)
1767       :
1768       ;;
1769     no)
1770       :
1771       ;;
1772     *)
1773       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777   esac
1778
1779 else
1780   enable_rpath=yes
1781
1782 fi;
1783
1784
1785
1786
1787 #
1788 # --enable-debug adds -g to compiler flags
1789 #
1790
1791
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794   enableval="$enable_debug"
1795
1796   case $enableval in
1797     yes)
1798       :
1799       ;;
1800     no)
1801       :
1802       ;;
1803     *)
1804       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806    { (exit 1); exit 1; }; }
1807       ;;
1808   esac
1809
1810 else
1811   enable_debug=no
1812
1813 fi;
1814
1815
1816
1817 #
1818 # C compiler
1819 #
1820
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1823 # variable.
1824
1825
1826
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1829   withval="$with_CC"
1830
1831   case $withval in
1832     yes)
1833       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835    { (exit 1); exit 1; }; }
1836       ;;
1837     no)
1838       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840    { (exit 1); exit 1; }; }
1841       ;;
1842     *)
1843       CC=$with_CC
1844       ;;
1845   esac
1846
1847 fi;
1848
1849
1850 case $template in
1851   aix) pgac_cc_list="gcc xlc";;
1852  irix) pgac_cc_list="cc";; # no gcc
1853     *) pgac_cc_list="gcc cc";;
1854 esac
1855
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862   for ac_prog in $pgac_cc_list
1863   do
1864     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$CC"; then
1872   ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 CC=$ac_cv_prog_CC
1891 if test -n "$CC"; then
1892   echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899     test -n "$CC" && break
1900   done
1901 fi
1902 if test -z "$CC"; then
1903   ac_ct_CC=$CC
1904   for ac_prog in $pgac_cc_list
1905 do
1906   # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$ac_ct_CC"; then
1914   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_ac_ct_CC="$ac_prog"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941   test -n "$ac_ct_CC" && break
1942 done
1943
1944   CC=$ac_ct_CC
1945 fi
1946
1947
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950    { (exit 1); exit 1; }; }
1951
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954      "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957   (eval $ac_compiler --version </dev/null >&5) 2>&5
1958   ac_status=$?
1959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960   (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962   (eval $ac_compiler -v </dev/null >&5) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967   (eval $ac_compiler -V </dev/null >&5) 2>&5
1968   ac_status=$?
1969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970   (exit $ac_status); }
1971
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1975
1976 #ifdef F77_DUMMY_MAIN
1977 #  ifdef __cplusplus
1978      extern "C"
1979 #  endif
1980    int F77_DUMMY_MAIN() { return 1; }
1981 #endif
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1994 # of exeext.
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999   (eval $ac_link_default) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; then
2003   # Find the output, starting from the most likely.  This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # resort.
2006
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009 ac_cv_exeext=
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011                 ls a.out conftest 2>/dev/null;
2012                 ls a.* conftest.* 2>/dev/null`; do
2013   case $ac_file in
2014     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015     a.out ) # We found the default executable, but exeext='' is most
2016             # certainly right.
2017             break;;
2018     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2020           export ac_cv_exeext
2021           break;;
2022     * ) break;;
2023   esac
2024 done
2025 else
2026   echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030    { (exit 77); exit 77; }; }
2031 fi
2032
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2036
2037 # Check the compiler produces executables we can run.  If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044   if { ac_try='./$ac_file'
2045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046   (eval $ac_try) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; }; then
2050     cross_compiling=no
2051   else
2052     if test "$cross_compiling" = maybe; then
2053         cross_compiling=yes
2054     else
2055         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059    { (exit 1); exit 1; }; }
2060     fi
2061   fi
2062 fi
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2065
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run.  If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2074
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078   (eval $ac_link) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; then
2082   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2085 # `rm'.
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2087   case $ac_file in
2088     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090           export ac_cv_exeext
2091           break;;
2092     * ) break;;
2093   esac
2094 done
2095 else
2096   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098    { (exit 1); exit 1; }; }
2099 fi
2100
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2104
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2107 ac_exeext=$EXEEXT
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2116
2117 #ifdef F77_DUMMY_MAIN
2118 #  ifdef __cplusplus
2119      extern "C"
2120 #  endif
2121    int F77_DUMMY_MAIN() { return 1; }
2122 #endif
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }; then
2137   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2138   case $ac_file in
2139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2141        break;;
2142   esac
2143 done
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2153 fi
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$OBJEXT
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2166
2167 #ifdef F77_DUMMY_MAIN
2168 #  ifdef __cplusplus
2169      extern "C"
2170 #  endif
2171    int F77_DUMMY_MAIN() { return 1; }
2172 #endif
2173 int
2174 main ()
2175 {
2176 #ifndef __GNUC__
2177        choke me
2178 #endif
2179
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186   (eval $ac_compile) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); } &&
2190          { ac_try='test -s conftest.$ac_objext'
2191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192   (eval $ac_try) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; }; then
2196   ac_compiler_gnu=yes
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2201 fi
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204
2205 fi
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2211 CFLAGS="-g"
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220
2221 #ifdef F77_DUMMY_MAIN
2222 #  ifdef __cplusplus
2223      extern "C"
2224 #  endif
2225    int F77_DUMMY_MAIN() { return 1; }
2226 #endif
2227 int
2228 main ()
2229 {
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237   (eval $ac_compile) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); } &&
2241          { ac_try='test -s conftest.$ac_objext'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247   ac_cv_prog_cc_g=yes
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 ac_cv_prog_cc_g=no
2252 fi
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258   CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260   if test "$GCC" = yes; then
2261     CFLAGS="-g -O2"
2262   else
2263     CFLAGS="-g"
2264   fi
2265 else
2266   if test "$GCC" = yes; then
2267     CFLAGS="-O2"
2268   else
2269     CFLAGS=
2270   fi
2271 fi
2272 # Some people use a C++ compiler to compile C.  Since we use `exit',
2273 # in C++ we need to declare it.  In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #ifndef __cplusplus
2278   choke me
2279 #endif
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   for ac_declaration in \
2294    ''\
2295    '#include <stdlib.h>' \
2296    'extern "C" void std::exit (int) throw (); using std::exit;' \
2297    'extern "C" void std::exit (int); using std::exit;' \
2298    'extern "C" void exit (int) throw ();' \
2299    'extern "C" void exit (int);' \
2300    'void exit (int);'
2301 do
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 #include <stdlib.h>
2306 $ac_declaration
2307 #ifdef F77_DUMMY_MAIN
2308 #  ifdef __cplusplus
2309      extern "C"
2310 #  endif
2311    int F77_DUMMY_MAIN() { return 1; }
2312 #endif
2313 int
2314 main ()
2315 {
2316 exit (42);
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); } &&
2327          { ac_try='test -s conftest.$ac_objext'
2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329   (eval $ac_try) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; }; then
2333   :
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 continue
2338 fi
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2343 $ac_declaration
2344 #ifdef F77_DUMMY_MAIN
2345 #  ifdef __cplusplus
2346      extern "C"
2347 #  endif
2348    int F77_DUMMY_MAIN() { return 1; }
2349 #endif
2350 int
2351 main ()
2352 {
2353 exit (42);
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   break
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 fi
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2376 done
2377 rm -f conftest*
2378 if test -n "$ac_declaration"; then
2379   echo '#ifdef __cplusplus' >>confdefs.h
2380   echo $ac_declaration      >>confdefs.h
2381   echo '#endif'             >>confdefs.h
2382 fi
2383
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 fi
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395 # Read the template
2396 . "$srcdir/src/template/$template" || exit
2397
2398 if test "$ac_env_CFLAGS_set" = set; then
2399   CFLAGS=$ac_env_CFLAGS_value
2400 fi
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2402   CFLAGS="$CFLAGS -g"
2403 fi
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2406
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2410
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2414
2415 #ifdef F77_DUMMY_MAIN
2416 #  ifdef __cplusplus
2417      extern "C"
2418 #  endif
2419    int F77_DUMMY_MAIN() { return 1; }
2420 #endif
2421 int
2422 main ()
2423 {
2424 return 0;
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431   (eval $ac_link) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } &&
2435          { ac_try='test -s conftest$ac_exeext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450    { (exit 1); exit 1; }; }
2451 fi
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2453
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2459
2460 #ifdef F77_DUMMY_MAIN
2461 #  ifdef __cplusplus
2462      extern "C"
2463 #  endif
2464    int F77_DUMMY_MAIN() { return 1; }
2465 #endif
2466 int
2467 main ()
2468 {
2469 #ifdef __FAST_MATH__
2470 choke me
2471 #endif
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   :
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494    { (exit 1); exit 1; }; }
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 fi
2498
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2508   CPP=
2509 fi
2510 if test -z "$CPP"; then
2511   if test "${ac_cv_prog_CPP+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514       # Double quotes because CPP needs to be expanded
2515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2516     do
2517       ac_preproc_ok=false
2518 for ac_c_preproc_warn_flag in '' yes
2519 do
2520   # Use a header file that comes with gcc, so configuring glibc
2521   # with a fresh cross-compiler works.
2522   # On the NeXT, cc -E runs the code through the compiler's parser,
2523   # not just through cpp. "Syntax error" is here to catch this case.
2524   cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <assert.h>
2528                      Syntax error
2529 _ACEOF
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532   ac_status=$?
2533   egrep -v '^ *\+' conftest.er1 >conftest.err
2534   rm -f conftest.er1
2535   cat conftest.err >&5
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); } >/dev/null; then
2538   if test -s conftest.err; then
2539     ac_cpp_err=$ac_c_preproc_warn_flag
2540   else
2541     ac_cpp_err=
2542   fi
2543 else
2544   ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547   :
2548 else
2549   echo "$as_me: failed program was:" >&5
2550   cat conftest.$ac_ext >&5
2551   # Broken: fails on valid input.
2552 continue
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556   # OK, works on sane cases.  Now check whether non-existent headers
2557   # can be detected and how.
2558   cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2562 _ACEOF
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565   ac_status=$?
2566   egrep -v '^ *\+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } >/dev/null; then
2571   if test -s conftest.err; then
2572     ac_cpp_err=$ac_c_preproc_warn_flag
2573   else
2574     ac_cpp_err=
2575   fi
2576 else
2577   ac_cpp_err=yes
2578 fi
2579 if test -z "$ac_cpp_err"; then
2580   # Broken: success on invalid input.
2581 continue
2582 else
2583   echo "$as_me: failed program was:" >&5
2584   cat conftest.$ac_ext >&5
2585   # Passes both tests.
2586 ac_preproc_ok=:
2587 break
2588 fi
2589 rm -f conftest.err conftest.$ac_ext
2590
2591 done
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2595   break
2596 fi
2597
2598     done
2599     ac_cv_prog_CPP=$CPP
2600
2601 fi
2602   CPP=$ac_cv_prog_CPP
2603 else
2604   ac_cv_prog_CPP=$CPP
2605 fi
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2608 ac_preproc_ok=false
2609 for ac_c_preproc_warn_flag in '' yes
2610 do
2611   # Use a header file that comes with gcc, so configuring glibc
2612   # with a fresh cross-compiler works.
2613   # On the NeXT, cc -E runs the code through the compiler's parser,
2614   # not just through cpp. "Syntax error" is here to catch this case.
2615   cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <assert.h>
2619                      Syntax error
2620 _ACEOF
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2623   ac_status=$?
2624   egrep -v '^ *\+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } >/dev/null; then
2629   if test -s conftest.err; then
2630     ac_cpp_err=$ac_c_preproc_warn_flag
2631   else
2632     ac_cpp_err=
2633   fi
2634 else
2635   ac_cpp_err=yes
2636 fi
2637 if test -z "$ac_cpp_err"; then
2638   :
2639 else
2640   echo "$as_me: failed program was:" >&5
2641   cat conftest.$ac_ext >&5
2642   # Broken: fails on valid input.
2643 continue
2644 fi
2645 rm -f conftest.err conftest.$ac_ext
2646
2647   # OK, works on sane cases.  Now check whether non-existent headers
2648   # can be detected and how.
2649   cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2653 _ACEOF
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656   ac_status=$?
2657   egrep -v '^ *\+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } >/dev/null; then
2662   if test -s conftest.err; then
2663     ac_cpp_err=$ac_c_preproc_warn_flag
2664   else
2665     ac_cpp_err=
2666   fi
2667 else
2668   ac_cpp_err=yes
2669 fi
2670 if test -z "$ac_cpp_err"; then
2671   # Broken: success on invalid input.
2672 continue
2673 else
2674   echo "$as_me: failed program was:" >&5
2675   cat conftest.$ac_ext >&5
2676   # Passes both tests.
2677 ac_preproc_ok=:
2678 break
2679 fi
2680 rm -f conftest.err conftest.$ac_ext
2681
2682 done
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2686   :
2687 else
2688   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698
2699
2700
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703   cc_string="GCC `${CC} --version | sed q`"
2704 else
2705   cc_string=$CC
2706 fi
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2710 _ACEOF
2711
2712
2713
2714 #
2715 # Automatic dependency tracking
2716 #
2717
2718
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721   enableval="$enable_depend"
2722
2723   case $enableval in
2724     yes)
2725       autodepend=yes
2726       ;;
2727     no)
2728       :
2729       ;;
2730     *)
2731       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733    { (exit 1); exit 1; }; }
2734       ;;
2735   esac
2736
2737 else
2738   enable_depend=no
2739
2740 fi;
2741
2742
2743
2744
2745 #
2746 # Enable assert checks
2747 #
2748
2749
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752   enableval="$enable_cassert"
2753
2754   case $enableval in
2755     yes)
2756
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2759 _ACEOF
2760
2761       ;;
2762     no)
2763       :
2764       ;;
2765     *)
2766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768    { (exit 1); exit 1; }; }
2769       ;;
2770   esac
2771
2772 else
2773   enable_cassert=no
2774
2775 fi;
2776
2777
2778
2779 #
2780 # Include directories
2781 #
2782 ac_save_IFS=$IFS
2783 IFS="${IFS}:"
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786   if test -d "$dir"; then
2787     INCLUDES="$INCLUDES -I$dir"
2788   else
2789     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2791   fi
2792 done
2793 IFS=$ac_save_IFS
2794
2795
2796
2797 #
2798 # Library directories
2799 #
2800 ac_save_IFS=$IFS
2801 IFS="${IFS}:"
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804   if test -d "$dir"; then
2805     LIBDIRS="$LIBDIRS -L$dir"
2806   else
2807     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2809   fi
2810 done
2811 IFS=$ac_save_IFS
2812
2813 #
2814 # Enable libpq to be thread-safe
2815 #
2816 echo "$as_me:$LINENO: checking allow threaded libpq" >&5
2817 echo $ECHO_N "checking allow threaded libpq... $ECHO_C" >&6
2818
2819
2820
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823   withval="$with_threads"
2824
2825   case $withval in
2826     yes)
2827
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2830 _ACEOF
2831
2832       ;;
2833     no)
2834       :
2835       ;;
2836     *)
2837       { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2838 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2839    { (exit 1); exit 1; }; }
2840       ;;
2841   esac
2842
2843 else
2844   with_threads=no
2845
2846 fi;
2847
2848
2849 echo "$as_me:$LINENO: result: $with_threads" >&5
2850 echo "${ECHO_T}$with_threads" >&6
2851
2852
2853 #
2854 # Tcl/Tk
2855 #
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2858
2859
2860
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2863   withval="$with_tcl"
2864
2865   case $withval in
2866     yes)
2867       :
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   with_tcl=no
2881
2882 fi;
2883
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2886
2887
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2892
2893
2894
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2897   withval="$with_tk"
2898
2899   case $withval in
2900     yes)
2901       :
2902       ;;
2903     no)
2904       :
2905       ;;
2906     *)
2907       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911   esac
2912
2913 else
2914   with_tk=yes
2915
2916 fi;
2917
2918 else
2919   with_tk=no
2920 fi
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2923
2924
2925
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2928
2929
2930
2931
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934   withval="$with_tclconfig"
2935
2936   case $withval in
2937     yes)
2938       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940    { (exit 1); exit 1; }; }
2941       ;;
2942     no)
2943       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945    { (exit 1); exit 1; }; }
2946       ;;
2947     *)
2948
2949       ;;
2950   esac
2951
2952 fi;
2953
2954
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2957
2958
2959
2960
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963   withval="$with_tkconfig"
2964
2965   case $withval in
2966     yes)
2967       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969    { (exit 1); exit 1; }; }
2970       ;;
2971     no)
2972       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976     *)
2977
2978       ;;
2979   esac
2980
2981 fi;
2982
2983
2984 #
2985 # Optionally build Perl modules (PL/Perl)
2986 #
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2989
2990
2991
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994   withval="$with_perl"
2995
2996   case $withval in
2997     yes)
2998       :
2999       ;;
3000     no)
3001       :
3002       ;;
3003     *)
3004       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008   esac
3009
3010 else
3011   with_perl=no
3012
3013 fi;
3014
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3017
3018
3019 #
3020 # Optionally build Python interface module
3021 #
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3024
3025
3026
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029   withval="$with_python"
3030
3031   case $withval in
3032     yes)
3033       :
3034       ;;
3035     no)
3036       :
3037       ;;
3038     *)
3039       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041    { (exit 1); exit 1; }; }
3042       ;;
3043   esac
3044
3045 else
3046   with_python=no
3047
3048 fi;
3049
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3052
3053
3054 #
3055 # Optionally build the Java/JDBC tools
3056 #
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3059
3060
3061
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064   withval="$with_java"
3065
3066   case $withval in
3067     yes)
3068       echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070
3071   for ac_prog in jakarta-ant ant ant.sh ant.bat
3072 do
3073   # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   case $ANT in
3081   [\\/]* | ?:[\\/]*)
3082   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3083   ;;
3084   *)
3085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098
3099   ;;
3100 esac
3101 fi
3102 ANT=$ac_cv_path_ANT
3103
3104 if test -n "$ANT"; then
3105   echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3107 else
3108   echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3110 fi
3111
3112   test -n "$ANT" && break
3113 done
3114
3115
3116   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121
3122     cat > conftest.java << EOF
3123 public class conftest {
3124     int testmethod(int a, int b) {
3125         return a + b;
3126     }
3127 }
3128 EOF
3129
3130     cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132  <target name="conftest">
3133   <javac srcdir="." includes="conftest.java">
3134   </javac>
3135  </target>
3136 </project>
3137 EOF
3138
3139     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141   (eval $pgac_cmd) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }
3145     pgac_save_status=$?
3146     if test $? = 0 && test -f ./conftest.class ; then
3147       pgac_cv_prog_ant_works=yes
3148     else
3149       echo "configure: failed java program was:" >&5
3150       cat conftest.java >&5
3151       echo "configure: failed build file was:" >&5
3152       cat conftest.xml >&5
3153       pgac_cv_prog_ant_works=no
3154     fi
3155
3156     rm -f conftest* core core.* *.core
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3161
3162   if test "$pgac_cv_prog_ant_works" != yes; then
3163     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165    { (exit 1); exit 1; }; }
3166   fi
3167
3168
3169 if test -z "$ANT"; then
3170   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181       ;;
3182     no)
3183       echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185       ;;
3186     *)
3187       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189    { (exit 1); exit 1; }; }
3190       ;;
3191   esac
3192
3193 else
3194   with_java=no
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi;
3198
3199
3200
3201
3202 #
3203 # Kerberos 4
3204 #
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3207
3208
3209
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212   withval="$with_krb4"
3213
3214   case $withval in
3215     yes)
3216       krb4_prefix=/usr/athena
3217       ;;
3218     no)
3219       :
3220       ;;
3221     *)
3222       with_krb4=yes
3223 krb4_prefix=$withval
3224       ;;
3225   esac
3226
3227 else
3228   with_krb4=no
3229 fi;
3230
3231
3232 if test "$with_krb4" = yes; then
3233
3234   echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3236
3237 cat >>confdefs.h <<\_ACEOF
3238 #define KRB4 1
3239 _ACEOF
3240
3241
3242   if test -d "$krb4_prefix/include"; then
3243     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244   fi
3245   if test -d "$krb4_prefix/lib"; then
3246     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3247   fi
3248
3249   krb_srvtab="/etc/srvtab"
3250
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 fi
3255
3256
3257
3258
3259
3260 #
3261 # Kerberos 5
3262 #
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3265
3266
3267
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270   withval="$with_krb5"
3271
3272   case $withval in
3273     yes)
3274       krb5_prefix=/usr/athena
3275       ;;
3276     no)
3277       :
3278       ;;
3279     *)
3280       with_krb5=yes
3281 krb5_prefix=$withval
3282       ;;
3283   esac
3284
3285 else
3286   with_krb5=no
3287 fi;
3288
3289
3290 if test "$with_krb5" = yes; then
3291
3292   echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define KRB5 1
3297 _ACEOF
3298
3299
3300   if test -d "$krb5_prefix/include"; then
3301     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302   fi
3303   if test -d "$krb5_prefix/lib"; then
3304     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3305   fi
3306
3307   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3308
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314
3315
3316
3317
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326
3327
3328 #
3329 # Kerberos configuration parameters
3330 #
3331
3332
3333
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336   withval="$with_krb_srvnam"
3337
3338   case $withval in
3339     yes)
3340       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344     no)
3345       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347    { (exit 1); exit 1; }; }
3348       ;;
3349     *)
3350
3351       ;;
3352   esac
3353
3354 else
3355   with_krb_srvnam="postgres"
3356 fi;
3357
3358
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3361 _ACEOF
3362
3363
3364
3365 #
3366 # PAM
3367 #
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3370
3371
3372
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3375   withval="$with_pam"
3376
3377   case $withval in
3378     yes)
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_PAM 1
3382 _ACEOF
3383
3384       ;;
3385     no)
3386       :
3387       ;;
3388     *)
3389       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391    { (exit 1); exit 1; }; }
3392       ;;
3393   esac
3394
3395 else
3396   with_pam=no
3397
3398 fi;
3399
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3402
3403
3404
3405 #
3406 # Rendezvous
3407 #
3408 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3409 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3410
3411
3412
3413 # Check whether --with-rendezvous or --without-rendezvous was given.
3414 if test "${with_rendezvous+set}" = set; then
3415   withval="$with_rendezvous"
3416
3417   case $withval in
3418     yes)
3419
3420 cat >>confdefs.h <<\_ACEOF
3421 #define USE_RENDEZVOUS 1
3422 _ACEOF
3423
3424       ;;
3425     no)
3426       :
3427       ;;
3428     *)
3429       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3430 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3431    { (exit 1); exit 1; }; }
3432       ;;
3433   esac
3434
3435 else
3436   with_rendezvous=no
3437
3438 fi;
3439
3440 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3441 echo "${ECHO_T}$with_rendezvous" >&6
3442
3443
3444
3445 #
3446 # OpenSSL
3447 #
3448
3449
3450
3451 # Check whether --with-openssl or --without-openssl was given.
3452 if test "${with_openssl+set}" = set; then
3453   withval="$with_openssl"
3454
3455   case $withval in
3456     yes)
3457       openssl_prefix=/usr/local/ssl
3458       ;;
3459     no)
3460       :
3461       ;;
3462     *)
3463       with_openssl=yes
3464 openssl_prefix=$withval
3465       ;;
3466   esac
3467
3468 else
3469   with_openssl=no
3470 fi;
3471
3472
3473 if test "$with_openssl" = yes; then
3474
3475   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3476 echo "${ECHO_T}building with OpenSSL support" >&6
3477
3478 cat >>confdefs.h <<\_ACEOF
3479 #define USE_SSL 1
3480 _ACEOF
3481
3482
3483   if test -d "${openssl_prefix}/include" ; then
3484     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3485   fi
3486   if test -d "${openssl_prefix}/lib" ; then
3487     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3488   fi
3489
3490 fi
3491
3492
3493
3494
3495
3496 #
3497 # Readline
3498 #
3499
3500
3501
3502 # Check whether --with-readline or --without-readline was given.
3503 if test "${with_readline+set}" = set; then
3504   withval="$with_readline"
3505
3506   case $withval in
3507     yes)
3508       :
3509       ;;
3510     no)
3511       :
3512       ;;
3513     *)
3514       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3515 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3516    { (exit 1); exit 1; }; }
3517       ;;
3518   esac
3519
3520 else
3521   with_readline=yes
3522
3523 fi;
3524
3525
3526 #
3527 # Zlib
3528 #
3529
3530
3531
3532 # Check whether --with-zlib or --without-zlib was given.
3533 if test "${with_zlib+set}" = set; then
3534   withval="$with_zlib"
3535
3536   case $withval in
3537     yes)
3538       :
3539       ;;
3540     no)
3541       :
3542       ;;
3543     *)
3544       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3545 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3546    { (exit 1); exit 1; }; }
3547       ;;
3548   esac
3549
3550 else
3551   with_zlib=yes
3552
3553 fi;
3554
3555
3556
3557 #
3558 # Elf
3559 #
3560
3561 # Assume system is ELF if it predefines __ELF__ as 1,
3562 # otherwise believe host_os based default.
3563 case $host_os in
3564     freebsd1*|freebsd2*) elf=no;;
3565     freebsd3*|freebsd4*) elf=yes;;
3566 esac
3567
3568
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3572 #if __ELF__
3573   yes
3574 #endif
3575
3576 _ACEOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578   egrep "yes" >/dev/null 2>&1; then
3579   ELF_SYS=true
3580 else
3581   if test "X$elf" = "Xyes" ; then
3582   ELF_SYS=true
3583 else
3584   ELF_SYS=
3585 fi
3586 fi
3587 rm -f conftest*
3588
3589
3590
3591 #
3592 # Pthreads
3593 #
3594 # For each platform, we need to know about any special compile and link
3595 # libraries, and whether the normal C function names are thread-safe.
3596 #
3597 NEED_REENTRANT_FUNC_NAMES=no
3598 if test "$with_threads" = yes; then
3599 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3601 if test "${ac_cv_header_stdc+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   cat >conftest.$ac_ext <<_ACEOF
3605 #line $LINENO "configure"
3606 #include "confdefs.h"
3607 #include <stdlib.h>
3608 #include <stdarg.h>
3609 #include <string.h>
3610 #include <float.h>
3611
3612 _ACEOF
3613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3615   ac_status=$?
3616   egrep -v '^ *\+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } >/dev/null; then
3621   if test -s conftest.err; then
3622     ac_cpp_err=$ac_c_preproc_warn_flag
3623   else
3624     ac_cpp_err=
3625   fi
3626 else
3627   ac_cpp_err=yes
3628 fi
3629 if test -z "$ac_cpp_err"; then
3630   ac_cv_header_stdc=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633   cat conftest.$ac_ext >&5
3634   ac_cv_header_stdc=no
3635 fi
3636 rm -f conftest.err conftest.$ac_ext
3637
3638 if test $ac_cv_header_stdc = yes; then
3639   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3640   cat >conftest.$ac_ext <<_ACEOF
3641 #line $LINENO "configure"
3642 #include "confdefs.h"
3643 #include <string.h>
3644
3645 _ACEOF
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647   egrep "memchr" >/dev/null 2>&1; then
3648   :
3649 else
3650   ac_cv_header_stdc=no
3651 fi
3652 rm -f conftest*
3653
3654 fi
3655
3656 if test $ac_cv_header_stdc = yes; then
3657   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3658   cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3661 #include <stdlib.h>
3662
3663 _ACEOF
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665   egrep "free" >/dev/null 2>&1; then
3666   :
3667 else
3668   ac_cv_header_stdc=no
3669 fi
3670 rm -f conftest*
3671
3672 fi
3673
3674 if test $ac_cv_header_stdc = yes; then
3675   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3676   if test "$cross_compiling" = yes; then
3677   :
3678 else
3679   cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 #include "confdefs.h"
3682 #include <ctype.h>
3683 #if ((' ' & 0x0FF) == 0x020)
3684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3686 #else
3687 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3688                      || ('j' <= (c) && (c) <= 'r') \
3689                      || ('s' <= (c) && (c) <= 'z'))
3690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691 #endif
3692
3693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694 int
3695 main ()
3696 {
3697   int i;
3698   for (i = 0; i < 256; i++)
3699     if (XOR (islower (i), ISLOWER (i))
3700         || toupper (i) != TOUPPER (i))
3701       exit(2);
3702   exit (0);
3703 }
3704 _ACEOF
3705 rm -f conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707   (eval $ac_link) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   :
3717 else
3718   echo "$as_me: program exited with status $ac_status" >&5
3719 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 ( exit $ac_status )
3722 ac_cv_header_stdc=no
3723 fi
3724 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 fi
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3731
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3734 _ACEOF
3735
3736 fi
3737
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749                   inttypes.h stdint.h unistd.h
3750 do
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 #include "confdefs.h"
3760 $ac_includes_default
3761
3762 #include <$ac_header>
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766   (eval $ac_compile) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770          { ac_try='test -s conftest.$ac_objext'
3771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772   (eval $ac_try) 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); }; }; then
3776   eval "$as_ac_Header=yes"
3777 else
3778   echo "$as_me: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 eval "$as_ac_Header=no"
3781 fi
3782 rm -f conftest.$ac_objext conftest.$ac_ext
3783 fi
3784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3787   cat >>confdefs.h <<_ACEOF
3788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3789 _ACEOF
3790
3791 fi
3792
3793 done
3794
3795
3796 if test "${ac_cv_header_pthread_h+set}" = set; then
3797   echo "$as_me:$LINENO: checking for pthread.h" >&5
3798 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3799 if test "${ac_cv_header_pthread_h+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 fi
3802 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3803 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3804 else
3805   # Is the header compilable?
3806 echo "$as_me:$LINENO: checking pthread.h usability" >&5
3807 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3810 #include "confdefs.h"
3811 $ac_includes_default
3812 #include <pthread.h>
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816   (eval $ac_compile) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } &&
3820          { ac_try='test -s conftest.$ac_objext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   ac_header_compiler=yes
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_header_compiler=no
3831 fi
3832 rm -f conftest.$ac_objext conftest.$ac_ext
3833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3834 echo "${ECHO_T}$ac_header_compiler" >&6
3835
3836 # Is the header present?
3837 echo "$as_me:$LINENO: checking pthread.h presence" >&5
3838 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line $LINENO "configure"
3841 #include "confdefs.h"
3842 #include <pthread.h>
3843 _ACEOF
3844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3846   ac_status=$?
3847   egrep -v '^ *\+' conftest.er1 >conftest.err
3848   rm -f conftest.er1
3849   cat conftest.err >&5
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } >/dev/null; then
3852   if test -s conftest.err; then
3853     ac_cpp_err=$ac_c_preproc_warn_flag
3854   else
3855     ac_cpp_err=
3856   fi
3857 else
3858   ac_cpp_err=yes
3859 fi
3860 if test -z "$ac_cpp_err"; then
3861   ac_header_preproc=yes
3862 else
3863   echo "$as_me: failed program was:" >&5
3864   cat conftest.$ac_ext >&5
3865   ac_header_preproc=no
3866 fi
3867 rm -f conftest.err conftest.$ac_ext
3868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3869 echo "${ECHO_T}$ac_header_preproc" >&6
3870
3871 # So?  What about this header?
3872 case $ac_header_compiler:$ac_header_preproc in
3873   yes:no )
3874     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
3875 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3876     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3877 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3878   no:yes )
3879     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
3880 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
3881     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
3882 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
3883     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3884 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3885 esac
3886 echo "$as_me:$LINENO: checking for pthread.h" >&5
3887 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3888 if test "${ac_cv_header_pthread_h+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   ac_cv_header_pthread_h=$ac_header_preproc
3892 fi
3893 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3894 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3895
3896 fi
3897 if test $ac_cv_header_pthread_h = yes; then
3898   :
3899 else
3900   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
3901 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3902    { (exit 1); exit 1; }; }
3903 fi
3904
3905
3906 case $host_os in
3907                 netbsd*|bsdi*)
3908                         # these require no special flags or libraries
3909                         NEED_REENTRANT_FUNC_NAMES=no
3910                         ;;
3911                 freebsd2*|freebsd3*|freebsd4*)
3912                         THREAD_CFLAGS="-pthread"
3913                         NEED_REENTRANT_FUNC_NAMES=yes
3914                         ;;
3915                 freebsd*)
3916                         THREAD_LIBS="-lc_r"
3917                         NEED_REENTRANT_FUNC_NAMES=yes
3918                         ;;
3919                 linux*) THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
3920                         THREAD_LIBS="-lpthread"
3921                         NEED_REENTRANT_FUNC_NAMES=yes
3922                         ;;
3923                 *)
3924                         # other operating systems might fail because they have pthread.h but need
3925                         # special libs we don't know about yet.
3926                         { { echo "$as_me:$LINENO: error:
3927 Cannot enable threads on your platform.
3928 Please report your platform threading info to the PostgreSQL mailing lists
3929 so it can be added to the next release.  Report any compile or link flags,
3930 or libraries required for threading support.
3931 " >&5
3932 echo "$as_me: error:
3933 Cannot enable threads on your platform.
3934 Please report your platform threading info to the PostgreSQL mailing lists
3935 so it can be added to the next release.  Report any compile or link flags,
3936 or libraries required for threading support.
3937 " >&2;}
3938    { (exit 1); exit 1; }; }
3939 esac
3940 fi
3941
3942
3943
3944 #
3945 # Assignments
3946 #
3947
3948 CPPFLAGS="$CPPFLAGS $INCLUDES"
3949 LDFLAGS="$LDFLAGS $LIBDIRS"
3950
3951 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3952 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3953 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3954 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3955
3956
3957 for ac_prog in gawk mawk nawk awk
3958 do
3959   # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_AWK+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if test -n "$AWK"; then
3967   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_exec_ext in '' $ac_executable_extensions; do
3975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976     ac_cv_prog_AWK="$ac_prog"
3977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981 done
3982
3983 fi
3984 fi
3985 AWK=$ac_cv_prog_AWK
3986 if test -n "$AWK"; then
3987   echo "$as_me:$LINENO: result: $AWK" >&5
3988 echo "${ECHO_T}$AWK" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994   test -n "$AWK" && break
3995 done
3996
3997 echo "$as_me:$LINENO: checking for flex" >&5
3998 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3999 if test "${pgac_cv_path_flex+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   # Let the user override the test
4003 if test -n "$FLEX"; then
4004   pgac_cv_path_flex=$FLEX
4005 else
4006   pgac_save_IFS=$IFS
4007   IFS=:
4008   for pgac_dir in $PATH; do
4009     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4010       pgac_dir=`pwd`
4011     fi
4012     for pgac_prog in flex lex; do
4013       pgac_candidate="$pgac_dir/$pgac_prog"
4014       if test -f "$pgac_candidate" \
4015         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4016       then
4017         echo '%%'  > conftest.l
4018         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4019           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4020             pgac_broken_flex=$pgac_candidate
4021             continue
4022           fi
4023
4024           pgac_cv_path_flex=$pgac_candidate
4025           break 2
4026         fi
4027       fi
4028     done
4029   done
4030   IFS=$pgac_save_IFS
4031   rm -f conftest.l
4032   : ${pgac_cv_path_flex=no}
4033 fi
4034
4035 fi
4036 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4037 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4038 if test x"$pgac_cv_path_flex" = x"no"; then
4039   if test -n "$pgac_broken_flex"; then
4040     { echo "$as_me:$LINENO: WARNING:
4041 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4042 *** should get version 2.5.4 or later." >&5
4043 echo "$as_me: WARNING:
4044 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4045 *** should get version 2.5.4 or later." >&2;}
4046   fi
4047
4048   { echo "$as_me:$LINENO: WARNING:
4049 *** Without Flex you will not be able to build PostgreSQL from CVS or
4050 *** change any of the scanner definition files.  You can obtain Flex from
4051 *** a GNU mirror site.  (If you are using the official distribution of
4052 *** PostgreSQL then you do not need to worry about this because the Flex
4053 *** output is pre-generated.)" >&5
4054 echo "$as_me: WARNING:
4055 *** Without Flex you will not be able to build PostgreSQL from CVS or
4056 *** change any of the scanner definition files.  You can obtain Flex from
4057 *** a GNU mirror site.  (If you are using the official distribution of
4058 *** PostgreSQL then you do not need to worry about this because the Flex
4059 *** output is pre-generated.)" >&2;}
4060 fi
4061
4062 if test x"$pgac_cv_path_flex" = x"no"; then
4063   FLEX=
4064 else
4065   FLEX=$pgac_cv_path_flex
4066 fi
4067
4068
4069
4070
4071 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4072 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4073 LN_S=$as_ln_s
4074 if test "$LN_S" = "ln -s"; then
4075   echo "$as_me:$LINENO: result: yes" >&5
4076 echo "${ECHO_T}yes" >&6
4077 else
4078   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4079 echo "${ECHO_T}no, using $LN_S" >&6
4080 fi
4081
4082
4083 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4084 if test "${with_gnu_ld+set}" = set; then
4085   withval="$with_gnu_ld"
4086   test "$withval" = no || with_gnu_ld=yes
4087 else
4088   with_gnu_ld=no
4089 fi;
4090 ac_prog=ld
4091 if test "$GCC" = yes; then
4092   # Check if gcc -print-prog-name=ld gives a path.
4093   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4094 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4095   case $host in
4096   *-*-mingw*)
4097     # gcc leaves a trailing carriage return which upsets mingw
4098     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4099   *)
4100     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4101   esac
4102   case "$ac_prog" in
4103     # Accept absolute paths.
4104     [\\/]* | [A-Za-z]:[\\/]*)
4105       re_direlt='/[^/][^/]*/\.\./'
4106       # Canonicalize the path of ld
4107       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4108       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4109         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4110       done
4111       test -z "$LD" && LD="$ac_prog"
4112       ;;
4113   "")
4114     # If it fails, then pretend we aren't using GCC.
4115     ac_prog=ld
4116     ;;
4117   *)
4118     # If it is relative, then search for the first ld in PATH.
4119     with_gnu_ld=unknown
4120     ;;
4121   esac
4122 elif test "$with_gnu_ld" = yes; then
4123   echo "$as_me:$LINENO: checking for GNU ld" >&5
4124 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4125 else
4126   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4127 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4128 fi
4129 if test "${ac_cv_path_LD+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   if test -z "$LD"; then
4133   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4134   for ac_dir in $PATH; do
4135     test -z "$ac_dir" && ac_dir=.
4136     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4137       ac_cv_path_LD="$ac_dir/$ac_prog"
4138       # Check to see if the program is GNU ld.  I'd rather use --version,
4139       # but apparently some GNU ld's only accept -v.
4140       # Break only if it was the GNU/non-GNU ld that we prefer.
4141       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4142         test "$with_gnu_ld" != no && break
4143       else
4144         test "$with_gnu_ld" != yes && break
4145       fi
4146     fi
4147   done
4148   IFS="$ac_save_ifs"
4149 else
4150   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4151 fi
4152 fi
4153
4154 LD="$ac_cv_path_LD"
4155 if test -n "$LD"; then
4156   echo "$as_me:$LINENO: result: $LD" >&5
4157 echo "${ECHO_T}$LD" >&6
4158 else
4159   echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161 fi
4162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4164    { (exit 1); exit 1; }; }
4165 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4167 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4171 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4172   ac_cv_prog_gnu_ld=yes
4173 else
4174   ac_cv_prog_gnu_ld=no
4175 fi
4176 fi
4177 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4178 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4179 with_gnu_ld=$ac_cv_prog_gnu_ld
4180
4181
4182
4183
4184 case $host_os in sysv5*)
4185   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4186 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4187 if test "${pgac_cv_prog_ld_R+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190
4191     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4192     cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4195
4196 #ifdef F77_DUMMY_MAIN
4197 #  ifdef __cplusplus
4198      extern "C"
4199 #  endif
4200    int F77_DUMMY_MAIN() { return 1; }
4201 #endif
4202 int
4203 main ()
4204 {
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212   (eval $ac_link) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } &&
4216          { ac_try='test -s conftest$ac_exeext'
4217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218   (eval $ac_try) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; }; then
4222   pgac_cv_prog_ld_R=yes
4223 else
4224   echo "$as_me: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 pgac_cv_prog_ld_R=no
4227 fi
4228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4229     LDFLAGS=$pgac_save_LDFLAGS
4230
4231 fi
4232 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4233 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4234   ld_R_works=$pgac_cv_prog_ld_R
4235
4236 esac
4237 if test -n "$ac_tool_prefix"; then
4238   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_prog_RANLIB+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   if test -n "$RANLIB"; then
4246   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253   for ac_exec_ext in '' $ac_executable_extensions; do
4254   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257     break 2
4258   fi
4259 done
4260 done
4261
4262 fi
4263 fi
4264 RANLIB=$ac_cv_prog_RANLIB
4265 if test -n "$RANLIB"; then
4266   echo "$as_me:$LINENO: result: $RANLIB" >&5
4267 echo "${ECHO_T}$RANLIB" >&6
4268 else
4269   echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6
4271 fi
4272
4273 fi
4274 if test -z "$ac_cv_prog_RANLIB"; then
4275   ac_ct_RANLIB=$RANLIB
4276   # Extract the first word of "ranlib", so it can be a program name with args.
4277 set dummy ranlib; ac_word=$2
4278 echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4280 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   if test -n "$ac_ct_RANLIB"; then
4284   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289   IFS=$as_save_IFS
4290   test -z "$as_dir" && as_dir=.
4291   for ac_exec_ext in '' $ac_executable_extensions; do
4292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293     ac_cv_prog_ac_ct_RANLIB="ranlib"
4294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298 done
4299
4300   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4301 fi
4302 fi
4303 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4304 if test -n "$ac_ct_RANLIB"; then
4305   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4306 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312   RANLIB=$ac_ct_RANLIB
4313 else
4314   RANLIB="$ac_cv_prog_RANLIB"
4315 fi
4316
4317 for ac_prog in lorder
4318 do
4319   # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_LORDER+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   if test -n "$LORDER"; then
4327   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334   for ac_exec_ext in '' $ac_executable_extensions; do
4335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336     ac_cv_prog_LORDER="$ac_prog"
4337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341 done
4342
4343 fi
4344 fi
4345 LORDER=$ac_cv_prog_LORDER
4346 if test -n "$LORDER"; then
4347   echo "$as_me:$LINENO: result: $LORDER" >&5
4348 echo "${ECHO_T}$LORDER" >&6
4349 else
4350   echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 fi
4353
4354   test -n "$LORDER" && break
4355 done
4356
4357 # Extract the first word of "tar", so it can be a program name with args.
4358 set dummy tar; ac_word=$2
4359 echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4361 if test "${ac_cv_path_TAR+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   case $TAR in
4365   [\\/]* | ?:[\\/]*)
4366   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4367   ;;
4368   *)
4369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374   for ac_exec_ext in '' $ac_executable_extensions; do
4375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381 done
4382
4383   ;;
4384 esac
4385 fi
4386 TAR=$ac_cv_path_TAR
4387
4388 if test -n "$TAR"; then
4389   echo "$as_me:$LINENO: result: $TAR" >&5
4390 echo "${ECHO_T}$TAR" >&6
4391 else
4392   echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6
4394 fi
4395
4396
4397   if test -n "$ac_tool_prefix"; then
4398   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}strip; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_STRIP+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   if test -n "$STRIP"; then
4406   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411   IFS=$as_save_IFS
4412   test -z "$as_dir" && as_dir=.
4413   for ac_exec_ext in '' $ac_executable_extensions; do
4414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420 done
4421
4422 fi
4423 fi
4424 STRIP=$ac_cv_prog_STRIP
4425 if test -n "$STRIP"; then
4426   echo "$as_me:$LINENO: result: $STRIP" >&5
4427 echo "${ECHO_T}$STRIP" >&6
4428 else
4429   echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 fi
4432
4433 fi
4434 if test -z "$ac_cv_prog_STRIP"; then
4435   ac_ct_STRIP=$STRIP
4436   # Extract the first word of "strip", so it can be a program name with args.
4437 set dummy strip; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$ac_ct_STRIP"; then
4444   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_prog_ac_ct_STRIP="strip"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4461 fi
4462 fi
4463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4464 if test -n "$ac_ct_STRIP"; then
4465   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4466 echo "${ECHO_T}$ac_ct_STRIP" >&6
4467 else
4468   echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4470 fi
4471
4472   STRIP=$ac_ct_STRIP
4473 else
4474   STRIP="$ac_cv_prog_STRIP"
4475 fi
4476
4477
4478   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4479 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4480   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4481     STRIP_STATIC_LIB="$STRIP -x"
4482     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4483     echo "$as_me:$LINENO: result: yes" >&5
4484 echo "${ECHO_T}yes" >&6
4485   else
4486     STRIP_STATIC_LIB=:
4487     STRIP_SHARED_LIB=:
4488     echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6
4490   fi
4491
4492
4493
4494
4495 for ac_prog in 'bison -y'
4496 do
4497   # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_YACC+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test -n "$YACC"; then
4505   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_prog_YACC="$ac_prog"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521 fi
4522 fi
4523 YACC=$ac_cv_prog_YACC
4524 if test -n "$YACC"; then
4525   echo "$as_me:$LINENO: result: $YACC" >&5
4526 echo "${ECHO_T}$YACC" >&6
4527 else
4528   echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4530 fi
4531
4532   test -n "$YACC" && break
4533 done
4534
4535
4536 if test "$YACC"; then
4537   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4538     { echo "$as_me:$LINENO: WARNING:
4539 *** The installed version of Bison is too old.  PostgreSQL needs
4540 *** Bison version 1.875 or later." >&5
4541 echo "$as_me: WARNING:
4542 *** The installed version of Bison is too old.  PostgreSQL needs
4543 *** Bison version 1.875 or later." >&2;}
4544   fi
4545 fi
4546
4547 if test -z "$YACC"; then
4548   { echo "$as_me:$LINENO: WARNING:
4549 *** Without Bison you will not be able to build PostgreSQL from CVS or
4550 *** change any of the parser definition files.  You can obtain Bison from
4551 *** a GNU mirror site.  (If you are using the official distribution of
4552 *** PostgreSQL then you do not need to worry about this because the Bison
4553 *** output is pre-generated.)  To use a different yacc program (possible,
4554 *** but not recommended), set the environment variable YACC before running
4555 *** 'configure'." >&5
4556 echo "$as_me: WARNING:
4557 *** Without Bison you will not be able to build PostgreSQL from CVS or
4558 *** change any of the parser definition files.  You can obtain Bison from
4559 *** a GNU mirror site.  (If you are using the official distribution of
4560 *** PostgreSQL then you do not need to worry about this because the Bison
4561 *** output is pre-generated.)  To use a different yacc program (possible,
4562 *** but not recommended), set the environment variable YACC before running
4563 *** 'configure'." >&2;}
4564 fi
4565
4566
4567 # Extract the first word of "perl", so it can be a program name with args.
4568 set dummy perl; ac_word=$2
4569 echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_path_PERL+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   case $PERL in
4575   [\\/]* | ?:[\\/]*)
4576   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4577   ;;
4578   *)
4579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592
4593   ;;
4594 esac
4595 fi
4596 PERL=$ac_cv_path_PERL
4597
4598 if test -n "$PERL"; then
4599   echo "$as_me:$LINENO: result: $PERL" >&5
4600 echo "${ECHO_T}$PERL" >&6
4601 else
4602   echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4604 fi
4605
4606 if test "$with_perl" = yes; then
4607
4608 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4609 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4610 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4611 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4612 echo "${ECHO_T}$perl_archlibexp" >&6
4613 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4614 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4615 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4616 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4617 echo "${ECHO_T}$perl_privlibexp" >&6
4618 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4619 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4620 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4621 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4622 echo "${ECHO_T}$perl_useshrplib" >&6
4623
4624 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4625 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4626 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4627 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4628 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4629 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4630 echo "${ECHO_T}$perl_embed_ldflags" >&6
4631 fi
4632
4633 if test "$with_python" = yes; then
4634   # Extract the first word of "python", so it can be a program name with args.
4635 set dummy python; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_path_PYTHON+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   case $PYTHON in
4642   [\\/]* | ?:[\\/]*)
4643   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4644   ;;
4645   *)
4646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660   ;;
4661 esac
4662 fi
4663 PYTHON=$ac_cv_path_PYTHON
4664
4665 if test -n "$PYTHON"; then
4666   echo "$as_me:$LINENO: result: $PYTHON" >&5
4667 echo "${ECHO_T}$PYTHON" >&6
4668 else
4669   echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4671 fi
4672
4673 if test x"$PYTHON" = x""; then
4674   { { echo "$as_me:$LINENO: error: Python not found" >&5
4675 echo "$as_me: error: Python not found" >&2;}
4676    { (exit 1); exit 1; }; }
4677 fi
4678
4679
4680 echo "$as_me:$LINENO: checking Python installation directories" >&5
4681 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4682 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4683 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4684 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4685 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4686 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4687 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4688 python_includespec="-I${python_prefix}/include/python${python_version}"
4689 if test "$python_prefix" != "$python_execprefix"; then
4690   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4691 fi
4692
4693 # This should be enough of a message.
4694 if test "$python_prefix" != "$python_execprefix"; then
4695   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4696 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4697 else
4698   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4699 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4700 fi
4701
4702
4703
4704
4705
4706 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4707 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4708
4709 if test ! -f "$python_configdir/Makefile"; then
4710   echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4713 echo "$as_me: error: Python Makefile not found" >&2;}
4714    { (exit 1); exit 1; }; }
4715 fi
4716
4717 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4718 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4719 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4720 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4721 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4722
4723 pgac_tab="      " # tab character
4724 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
4725
4726 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4727 echo "${ECHO_T}${python_libspec}" >&6
4728
4729
4730 fi
4731
4732
4733 ##
4734 ## Libraries
4735 ##
4736
4737 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4738 then
4739
4740 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4741 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4742 if test "${ac_cv_lib_bsd_main+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   ac_check_lib_save_LIBS=$LIBS
4746 LIBS="-lbsd  $LIBS"
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4750
4751
4752 #ifdef F77_DUMMY_MAIN
4753 #  ifdef __cplusplus
4754      extern "C"
4755 #  endif
4756    int F77_DUMMY_MAIN() { return 1; }
4757 #endif
4758 int
4759 main ()
4760 {
4761 main ();
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext conftest$ac_exeext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4768   (eval $ac_link) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -s conftest$ac_exeext'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   ac_cv_lib_bsd_main=yes
4779 else
4780   echo "$as_me: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 ac_cv_lib_bsd_main=no
4783 fi
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4786 fi
4787 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4788 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4789 if test $ac_cv_lib_bsd_main = yes; then
4790   cat >>confdefs.h <<_ACEOF
4791 #define HAVE_LIBBSD 1
4792 _ACEOF
4793
4794   LIBS="-lbsd $LIBS"
4795
4796 fi
4797
4798 fi
4799
4800 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4801 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4802 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   ac_check_lib_save_LIBS=$LIBS
4806 LIBS="-lutil  $LIBS"
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810
4811 /* Override any gcc2 internal prototype to avoid an error.  */
4812 #ifdef __cplusplus
4813 extern "C"
4814 #endif
4815 /* We use char because int might match the return type of a gcc2
4816    builtin and then its argument prototype would still apply.  */
4817 char setproctitle ();
4818 #ifdef F77_DUMMY_MAIN
4819 #  ifdef __cplusplus
4820      extern "C"
4821 #  endif
4822    int F77_DUMMY_MAIN() { return 1; }
4823 #endif
4824 int
4825 main ()
4826 {
4827 setproctitle ();
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 rm -f conftest.$ac_objext conftest$ac_exeext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834   (eval $ac_link) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); } &&
4838          { ac_try='test -s conftest$ac_exeext'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   ac_cv_lib_util_setproctitle=yes
4845 else
4846   echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 ac_cv_lib_util_setproctitle=no
4849 fi
4850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4851 LIBS=$ac_check_lib_save_LIBS
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4854 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4855 if test $ac_cv_lib_util_setproctitle = yes; then
4856   cat >>confdefs.h <<_ACEOF
4857 #define HAVE_LIBUTIL 1
4858 _ACEOF
4859
4860   LIBS="-lutil $LIBS"
4861
4862 fi
4863
4864
4865 echo "$as_me:$LINENO: checking for main in -lm" >&5
4866 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4867 if test "${ac_cv_lib_m_main+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   ac_check_lib_save_LIBS=$LIBS
4871 LIBS="-lm  $LIBS"
4872 cat >conftest.$ac_ext <<_ACEOF
4873 #line $LINENO "configure"
4874 #include "confdefs.h"
4875
4876
4877 #ifdef F77_DUMMY_MAIN
4878 #  ifdef __cplusplus
4879      extern "C"
4880 #  endif
4881    int F77_DUMMY_MAIN() { return 1; }
4882 #endif
4883 int
4884 main ()
4885 {
4886 main ();
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext conftest$ac_exeext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893   (eval $ac_link) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } &&
4897          { ac_try='test -s conftest$ac_exeext'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   ac_cv_lib_m_main=yes
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 ac_cv_lib_m_main=no
4908 fi
4909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4910 LIBS=$ac_check_lib_save_LIBS
4911 fi
4912 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4913 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4914 if test $ac_cv_lib_m_main = yes; then
4915   cat >>confdefs.h <<_ACEOF
4916 #define HAVE_LIBM 1
4917 _ACEOF
4918
4919   LIBS="-lm $LIBS"
4920
4921 fi
4922
4923
4924 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4925 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4926 if test "${ac_cv_lib_dl_main+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   ac_check_lib_save_LIBS=$LIBS
4930 LIBS="-ldl  $LIBS"
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #line $LINENO "configure"
4933 #include "confdefs.h"
4934
4935
4936 #ifdef F77_DUMMY_MAIN
4937 #  ifdef __cplusplus
4938      extern "C"
4939 #  endif
4940    int F77_DUMMY_MAIN() { return 1; }
4941 #endif
4942 int
4943 main ()
4944 {
4945 main ();
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952   (eval $ac_link) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } &&
4956          { ac_try='test -s conftest$ac_exeext'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_lib_dl_main=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 ac_cv_lib_dl_main=no
4967 fi
4968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969 LIBS=$ac_check_lib_save_LIBS
4970 fi
4971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4972 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4973 if test $ac_cv_lib_dl_main = yes; then
4974   cat >>confdefs.h <<_ACEOF
4975 #define HAVE_LIBDL 1
4976 _ACEOF
4977
4978   LIBS="-ldl $LIBS"
4979
4980 fi
4981
4982
4983 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4984 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4985 if test "${ac_cv_lib_nsl_main+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   ac_check_lib_save_LIBS=$LIBS
4989 LIBS="-lnsl  $LIBS"
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line $LINENO "configure"
4992 #include "confdefs.h"
4993
4994
4995 #ifdef F77_DUMMY_MAIN
4996 #  ifdef __cplusplus
4997      extern "C"
4998 #  endif
4999    int F77_DUMMY_MAIN() { return 1; }
5000 #endif
5001 int
5002 main ()
5003 {
5004 main ();
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011   (eval $ac_link) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -s conftest$ac_exeext'
5016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017   (eval $ac_try) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; }; then
5021   ac_cv_lib_nsl_main=yes
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 ac_cv_lib_nsl_main=no
5026 fi
5027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5028 LIBS=$ac_check_lib_save_LIBS
5029 fi
5030 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5031 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5032 if test $ac_cv_lib_nsl_main = yes; then
5033   cat >>confdefs.h <<_ACEOF
5034 #define HAVE_LIBNSL 1
5035 _ACEOF
5036
5037   LIBS="-lnsl $LIBS"
5038
5039 fi
5040
5041
5042 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5043 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5044 if test "${ac_cv_lib_socket_main+set}" = set; then
5045   echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047   ac_check_lib_save_LIBS=$LIBS
5048 LIBS="-lsocket  $LIBS"
5049 cat >conftest.$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5051 #include "confdefs.h"
5052
5053
5054 #ifdef F77_DUMMY_MAIN
5055 #  ifdef __cplusplus
5056      extern "C"
5057 #  endif
5058    int F77_DUMMY_MAIN() { return 1; }
5059 #endif
5060 int
5061 main ()
5062 {
5063 main ();
5064   ;
5065   return 0;
5066 }
5067 _ACEOF
5068 rm -f conftest.$ac_objext conftest$ac_exeext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5070   (eval $ac_link) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -s conftest$ac_exeext'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; }; then
5080   ac_cv_lib_socket_main=yes
5081 else
5082   echo "$as_me: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 ac_cv_lib_socket_main=no
5085 fi
5086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5087 LIBS=$ac_check_lib_save_LIBS
5088 fi
5089 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5090 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5091 if test $ac_cv_lib_socket_main = yes; then
5092   cat >>confdefs.h <<_ACEOF
5093 #define HAVE_LIBSOCKET 1
5094 _ACEOF
5095
5096   LIBS="-lsocket $LIBS"
5097
5098 fi
5099
5100
5101 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5102 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5103 if test "${ac_cv_lib_ipc_main+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   ac_check_lib_save_LIBS=$LIBS
5107 LIBS="-lipc  $LIBS"
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 #include "confdefs.h"
5111
5112
5113 #ifdef F77_DUMMY_MAIN
5114 #  ifdef __cplusplus
5115      extern "C"
5116 #  endif
5117    int F77_DUMMY_MAIN() { return 1; }
5118 #endif
5119 int
5120 main ()
5121 {
5122 main ();
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129   (eval $ac_link) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } &&
5133          { ac_try='test -s conftest$ac_exeext'
5134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135   (eval $ac_try) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; }; then
5139   ac_cv_lib_ipc_main=yes
5140 else
5141   echo "$as_me: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 ac_cv_lib_ipc_main=no
5144 fi
5145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5146 LIBS=$ac_check_lib_save_LIBS
5147 fi
5148 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5149 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5150 if test $ac_cv_lib_ipc_main = yes; then
5151   cat >>confdefs.h <<_ACEOF
5152 #define HAVE_LIBIPC 1
5153 _ACEOF
5154
5155   LIBS="-lipc $LIBS"
5156
5157 fi
5158
5159
5160 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5161 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5162 if test "${ac_cv_lib_IPC_main+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   ac_check_lib_save_LIBS=$LIBS
5166 LIBS="-lIPC  $LIBS"
5167 cat >conftest.$ac_ext <<_ACEOF
5168 #line $LINENO "configure"
5169 #include "confdefs.h"
5170
5171
5172 #ifdef F77_DUMMY_MAIN
5173 #  ifdef __cplusplus
5174      extern "C"
5175 #  endif
5176    int F77_DUMMY_MAIN() { return 1; }
5177 #endif
5178 int
5179 main ()
5180 {
5181 main ();
5182   ;
5183   return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext conftest$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188   (eval $ac_link) 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } &&
5192          { ac_try='test -s conftest$ac_exeext'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; }; then
5198   ac_cv_lib_IPC_main=yes
5199 else
5200   echo "$as_me: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5202 ac_cv_lib_IPC_main=no
5203 fi
5204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5206 fi
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5208 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5209 if test $ac_cv_lib_IPC_main = yes; then
5210   cat >>confdefs.h <<_ACEOF
5211 #define HAVE_LIBIPC 1
5212 _ACEOF
5213
5214   LIBS="-lIPC $LIBS"
5215
5216 fi
5217
5218
5219 echo "$as_me:$LINENO: checking for main in -llc" >&5
5220 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5221 if test "${ac_cv_lib_lc_main+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   ac_check_lib_save_LIBS=$LIBS
5225 LIBS="-llc  $LIBS"
5226 cat >conftest.$ac_ext <<_ACEOF
5227 #line $LINENO "configure"
5228 #include "confdefs.h"
5229
5230
5231 #ifdef F77_DUMMY_MAIN
5232 #  ifdef __cplusplus
5233      extern "C"
5234 #  endif
5235    int F77_DUMMY_MAIN() { return 1; }
5236 #endif
5237 int
5238 main ()
5239 {
5240 main ();
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247   (eval $ac_link) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest$ac_exeext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_lib_lc_main=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 ac_cv_lib_lc_main=no
5262 fi
5263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5264 LIBS=$ac_check_lib_save_LIBS
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5267 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5268 if test $ac_cv_lib_lc_main = yes; then
5269   cat >>confdefs.h <<_ACEOF
5270 #define HAVE_LIBLC 1
5271 _ACEOF
5272
5273   LIBS="-llc $LIBS"
5274
5275 fi
5276
5277
5278 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5279 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5280 if test "${ac_cv_lib_dld_main+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   ac_check_lib_save_LIBS=$LIBS
5284 LIBS="-ldld  $LIBS"
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5287 #include "confdefs.h"
5288
5289
5290 #ifdef F77_DUMMY_MAIN
5291 #  ifdef __cplusplus
5292      extern "C"
5293 #  endif
5294    int F77_DUMMY_MAIN() { return 1; }
5295 #endif
5296 int
5297 main ()
5298 {
5299 main ();
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306   (eval $ac_link) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } &&
5310          { ac_try='test -s conftest$ac_exeext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   ac_cv_lib_dld_main=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5320 ac_cv_lib_dld_main=no
5321 fi
5322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5324 fi
5325 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5326 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5327 if test $ac_cv_lib_dld_main = yes; then
5328   cat >>confdefs.h <<_ACEOF
5329 #define HAVE_LIBDLD 1
5330 _ACEOF
5331
5332   LIBS="-ldld $LIBS"
5333
5334 fi
5335
5336
5337 echo "$as_me:$LINENO: checking for main in -lld" >&5
5338 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5339 if test "${ac_cv_lib_ld_main+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   ac_check_lib_save_LIBS=$LIBS
5343 LIBS="-lld  $LIBS"
5344 cat >conftest.$ac_ext <<_ACEOF
5345 #line $LINENO "configure"
5346 #include "confdefs.h"
5347
5348
5349 #ifdef F77_DUMMY_MAIN
5350 #  ifdef __cplusplus
5351      extern "C"
5352 #  endif
5353    int F77_DUMMY_MAIN() { return 1; }
5354 #endif
5355 int
5356 main ()
5357 {
5358 main ();
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 rm -f conftest.$ac_objext conftest$ac_exeext
5364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365   (eval $ac_link) 2>&5
5366   ac_status=$?
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } &&
5369          { ac_try='test -s conftest$ac_exeext'
5370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371   (eval $ac_try) 2>&5
5372   ac_status=$?
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); }; }; then
5375   ac_cv_lib_ld_main=yes
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5379 ac_cv_lib_ld_main=no
5380 fi
5381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5382 LIBS=$ac_check_lib_save_LIBS
5383 fi
5384 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5385 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5386 if test $ac_cv_lib_ld_main = yes; then
5387   cat >>confdefs.h <<_ACEOF
5388 #define HAVE_LIBLD 1
5389 _ACEOF
5390
5391   LIBS="-lld $LIBS"
5392
5393 fi
5394
5395
5396 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5397 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5398 if test "${ac_cv_lib_compat_main+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   ac_check_lib_save_LIBS=$LIBS
5402 LIBS="-lcompat  $LIBS"
5403 cat >conftest.$ac_ext <<_ACEOF
5404 #line $LINENO "configure"
5405 #include "confdefs.h"
5406
5407
5408 #ifdef F77_DUMMY_MAIN
5409 #  ifdef __cplusplus
5410      extern "C"
5411 #  endif
5412    int F77_DUMMY_MAIN() { return 1; }
5413 #endif
5414 int
5415 main ()
5416 {
5417 main ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -s conftest$ac_exeext'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; }; then
5434   ac_cv_lib_compat_main=yes
5435 else
5436   echo "$as_me: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 ac_cv_lib_compat_main=no
5439 fi
5440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5441 LIBS=$ac_check_lib_save_LIBS
5442 fi
5443 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5444 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5445 if test $ac_cv_lib_compat_main = yes; then
5446   cat >>confdefs.h <<_ACEOF
5447 #define HAVE_LIBCOMPAT 1
5448 _ACEOF
5449
5450   LIBS="-lcompat $LIBS"
5451
5452 fi
5453
5454
5455 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5456 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5457 if test "${ac_cv_lib_BSD_main+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   ac_check_lib_save_LIBS=$LIBS
5461 LIBS="-lBSD  $LIBS"
5462 cat >conftest.$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5464 #include "confdefs.h"
5465
5466
5467 #ifdef F77_DUMMY_MAIN
5468 #  ifdef __cplusplus
5469      extern "C"
5470 #  endif
5471    int F77_DUMMY_MAIN() { return 1; }
5472 #endif
5473 int
5474 main ()
5475 {
5476 main ();
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483   (eval $ac_link) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -s conftest$ac_exeext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_cv_lib_BSD_main=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 ac_cv_lib_BSD_main=no
5498 fi
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5503 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5504 if test $ac_cv_lib_BSD_main = yes; then
5505   cat >>confdefs.h <<_ACEOF
5506 #define HAVE_LIBBSD 1
5507 _ACEOF
5508
5509   LIBS="-lBSD $LIBS"
5510
5511 fi
5512
5513
5514 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5515 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5516 if test "${ac_cv_lib_gen_main+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519   ac_check_lib_save_LIBS=$LIBS
5520 LIBS="-lgen  $LIBS"
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 #include "confdefs.h"
5524
5525
5526 #ifdef F77_DUMMY_MAIN
5527 #  ifdef __cplusplus
5528      extern "C"
5529 #  endif
5530    int F77_DUMMY_MAIN() { return 1; }
5531 #endif
5532 int
5533 main ()
5534 {
5535 main ();
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542   (eval $ac_link) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   ac_cv_lib_gen_main=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 ac_cv_lib_gen_main=no
5557 fi
5558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5562 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5563 if test $ac_cv_lib_gen_main = yes; then
5564   cat >>confdefs.h <<_ACEOF
5565 #define HAVE_LIBGEN 1
5566 _ACEOF
5567
5568   LIBS="-lgen $LIBS"
5569
5570 fi
5571
5572
5573 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5574 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5575 if test "${ac_cv_lib_PW_main+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   ac_check_lib_save_LIBS=$LIBS
5579 LIBS="-lPW  $LIBS"
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5582 #include "confdefs.h"
5583
5584
5585 #ifdef F77_DUMMY_MAIN
5586 #  ifdef __cplusplus
5587      extern "C"
5588 #  endif
5589    int F77_DUMMY_MAIN() { return 1; }
5590 #endif
5591 int
5592 main ()
5593 {
5594 main ();
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601   (eval $ac_link) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } &&
5605          { ac_try='test -s conftest$ac_exeext'
5606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }; }; then
5611   ac_cv_lib_PW_main=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_PW_main=no
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5619 fi
5620 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5621 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5622 if test $ac_cv_lib_PW_main = yes; then
5623   cat >>confdefs.h <<_ACEOF
5624 #define HAVE_LIBPW 1
5625 _ACEOF
5626
5627   LIBS="-lPW $LIBS"
5628
5629 fi
5630
5631
5632 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5633 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5634 if test "${ac_cv_lib_resolv_main+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   ac_check_lib_save_LIBS=$LIBS
5638 LIBS="-lresolv  $LIBS"
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5641 #include "confdefs.h"
5642
5643
5644 #ifdef F77_DUMMY_MAIN
5645 #  ifdef __cplusplus
5646      extern "C"
5647 #  endif
5648    int F77_DUMMY_MAIN() { return 1; }
5649 #endif
5650 int
5651 main ()
5652 {
5653 main ();
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660   (eval $ac_link) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } &&
5664          { ac_try='test -s conftest$ac_exeext'
5665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; }; then
5670   ac_cv_lib_resolv_main=yes
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 ac_cv_lib_resolv_main=no
5675 fi
5676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5678 fi
5679 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5680 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5681 if test $ac_cv_lib_resolv_main = yes; then
5682   cat >>confdefs.h <<_ACEOF
5683 #define HAVE_LIBRESOLV 1
5684 _ACEOF
5685
5686   LIBS="-lresolv $LIBS"
5687
5688 fi
5689
5690
5691 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5692 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5693 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   ac_check_lib_save_LIBS=$LIBS
5697 LIBS="-lwsock32  $LIBS"
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line $LINENO "configure"
5700 #include "confdefs.h"
5701
5702
5703 #ifdef F77_DUMMY_MAIN
5704 #  ifdef __cplusplus
5705      extern "C"
5706 #  endif
5707    int F77_DUMMY_MAIN() { return 1; }
5708 #endif
5709 int
5710 main ()
5711 {
5712 main ();
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -s conftest$ac_exeext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_cv_lib_wsock32_main=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_wsock32_main=no
5734 fi
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5739 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5740 if test $ac_cv_lib_wsock32_main = yes; then
5741   cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LIBWSOCK32 1
5743 _ACEOF
5744
5745   LIBS="-lwsock32 $LIBS"
5746
5747 fi
5748
5749 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5750 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5751 if test "${ac_cv_search_getopt_long+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   ac_func_search_save_LIBS=$LIBS
5755 ac_cv_search_getopt_long=no
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5759
5760 /* Override any gcc2 internal prototype to avoid an error.  */
5761 #ifdef __cplusplus
5762 extern "C"
5763 #endif
5764 /* We use char because int might match the return type of a gcc2
5765    builtin and then its argument prototype would still apply.  */
5766 char getopt_long ();
5767 #ifdef F77_DUMMY_MAIN
5768 #  ifdef __cplusplus
5769      extern "C"
5770 #  endif
5771    int F77_DUMMY_MAIN() { return 1; }
5772 #endif
5773 int
5774 main ()
5775 {
5776 getopt_long ();
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783   (eval $ac_link) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -s conftest$ac_exeext'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_cv_search_getopt_long="none required"
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 fi
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 if test "$ac_cv_search_getopt_long" = no; then
5800   for ac_lib in getopt gnugetopt; do
5801     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5802     cat >conftest.$ac_ext <<_ACEOF
5803 #line $LINENO "configure"
5804 #include "confdefs.h"
5805
5806 /* Override any gcc2 internal prototype to avoid an error.  */
5807 #ifdef __cplusplus
5808 extern "C"
5809 #endif
5810 /* We use char because int might match the return type of a gcc2
5811    builtin and then its argument prototype would still apply.  */
5812 char getopt_long ();
5813 #ifdef F77_DUMMY_MAIN
5814 #  ifdef __cplusplus
5815      extern "C"
5816 #  endif
5817    int F77_DUMMY_MAIN() { return 1; }
5818 #endif
5819 int
5820 main ()
5821 {
5822 getopt_long ();
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829   (eval $ac_link) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } &&
5833          { ac_try='test -s conftest$ac_exeext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_cv_search_getopt_long="-l$ac_lib"
5840 break
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5844 fi
5845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5846   done
5847 fi
5848 LIBS=$ac_func_search_save_LIBS
5849 fi
5850 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5851 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5852 if test "$ac_cv_search_getopt_long" != no; then
5853   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5854
5855 fi
5856
5857 # QNX:
5858
5859 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5860 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5861 if test "${ac_cv_lib_unix_main+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   ac_check_lib_save_LIBS=$LIBS
5865 LIBS="-lunix  $LIBS"
5866 cat >conftest.$ac_ext <<_ACEOF
5867 #line $LINENO "configure"
5868 #include "confdefs.h"
5869
5870
5871 #ifdef F77_DUMMY_MAIN
5872 #  ifdef __cplusplus
5873      extern "C"
5874 #  endif
5875    int F77_DUMMY_MAIN() { return 1; }
5876 #endif
5877 int
5878 main ()
5879 {
5880 main ();
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887   (eval $ac_link) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); } &&
5891          { ac_try='test -s conftest$ac_exeext'
5892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893   (eval $ac_try) 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); }; }; then
5897   ac_cv_lib_unix_main=yes
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5901 ac_cv_lib_unix_main=no
5902 fi
5903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5904 LIBS=$ac_check_lib_save_LIBS
5905 fi
5906 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5907 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5908 if test $ac_cv_lib_unix_main = yes; then
5909   cat >>confdefs.h <<_ACEOF
5910 #define HAVE_LIBUNIX 1
5911 _ACEOF
5912
5913   LIBS="-lunix $LIBS"
5914
5915 fi
5916
5917 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5918 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5919 if test "${ac_cv_search_crypt+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   ac_func_search_save_LIBS=$LIBS
5923 ac_cv_search_crypt=no
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 #include "confdefs.h"
5927
5928 /* Override any gcc2 internal prototype to avoid an error.  */
5929 #ifdef __cplusplus
5930 extern "C"
5931 #endif
5932 /* We use char because int might match the return type of a gcc2
5933    builtin and then its argument prototype would still apply.  */
5934 char crypt ();
5935 #ifdef F77_DUMMY_MAIN
5936 #  ifdef __cplusplus
5937      extern "C"
5938 #  endif
5939    int F77_DUMMY_MAIN() { return 1; }
5940 #endif
5941 int
5942 main ()
5943 {
5944 crypt ();
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext conftest$ac_exeext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951   (eval $ac_link) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } &&
5955          { ac_try='test -s conftest$ac_exeext'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; }; then
5961   ac_cv_search_crypt="none required"
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 fi
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 if test "$ac_cv_search_crypt" = no; then
5968   for ac_lib in crypt; do
5969     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5970     cat >conftest.$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5972 #include "confdefs.h"
5973
5974 /* Override any gcc2 internal prototype to avoid an error.  */
5975 #ifdef __cplusplus
5976 extern "C"
5977 #endif
5978 /* We use char because int might match the return type of a gcc2
5979    builtin and then its argument prototype would still apply.  */
5980 char crypt ();
5981 #ifdef F77_DUMMY_MAIN
5982 #  ifdef __cplusplus
5983      extern "C"
5984 #  endif
5985    int F77_DUMMY_MAIN() { return 1; }
5986 #endif
5987 int
5988 main ()
5989 {
5990 crypt ();
5991   ;
5992   return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997   (eval $ac_link) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } &&
6001          { ac_try='test -s conftest$ac_exeext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_search_crypt="-l$ac_lib"
6008 break
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6012 fi
6013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6014   done
6015 fi
6016 LIBS=$ac_func_search_save_LIBS
6017 fi
6018 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6019 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6020 if test "$ac_cv_search_crypt" != no; then
6021   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6022
6023 fi
6024
6025 # BeOS:
6026
6027 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6028 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6029 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   ac_check_lib_save_LIBS=$LIBS
6033 LIBS="-lbind  $LIBS"
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6036 #include "confdefs.h"
6037
6038 /* Override any gcc2 internal prototype to avoid an error.  */
6039 #ifdef __cplusplus
6040 extern "C"
6041 #endif
6042 /* We use char because int might match the return type of a gcc2
6043    builtin and then its argument prototype would still apply.  */
6044 char __inet_ntoa ();
6045 #ifdef F77_DUMMY_MAIN
6046 #  ifdef __cplusplus
6047      extern "C"
6048 #  endif
6049    int F77_DUMMY_MAIN() { return 1; }
6050 #endif
6051 int
6052 main ()
6053 {
6054 __inet_ntoa ();
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061   (eval $ac_link) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } &&
6065          { ac_try='test -s conftest$ac_exeext'
6066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067   (eval $ac_try) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; }; then
6071   ac_cv_lib_bind___inet_ntoa=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6075 ac_cv_lib_bind___inet_ntoa=no
6076 fi
6077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6079 fi
6080 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6081 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6082 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6083   cat >>confdefs.h <<_ACEOF
6084 #define HAVE_LIBBIND 1
6085 _ACEOF
6086
6087   LIBS="-lbind $LIBS"
6088
6089 fi
6090
6091 # Solaris:
6092 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6093 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6094 if test "${ac_cv_search_fdatasync+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   ac_func_search_save_LIBS=$LIBS
6098 ac_cv_search_fdatasync=no
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6101 #include "confdefs.h"
6102
6103 /* Override any gcc2 internal prototype to avoid an error.  */
6104 #ifdef __cplusplus
6105 extern "C"
6106 #endif
6107 /* We use char because int might match the return type of a gcc2
6108    builtin and then its argument prototype would still apply.  */
6109 char fdatasync ();
6110 #ifdef F77_DUMMY_MAIN
6111 #  ifdef __cplusplus
6112      extern "C"
6113 #  endif
6114    int F77_DUMMY_MAIN() { return 1; }
6115 #endif
6116 int
6117 main ()
6118 {
6119 fdatasync ();
6120   ;
6121   return 0;
6122 }
6123 _ACEOF
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126   (eval $ac_link) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } &&
6130          { ac_try='test -s conftest$ac_exeext'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; }; then
6136   ac_cv_search_fdatasync="none required"
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 fi
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142 if test "$ac_cv_search_fdatasync" = no; then
6143   for ac_lib in rt posix4; do
6144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6145     cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6148
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154    builtin and then its argument prototype would still apply.  */
6155 char fdatasync ();
6156 #ifdef F77_DUMMY_MAIN
6157 #  ifdef __cplusplus
6158      extern "C"
6159 #  endif
6160    int F77_DUMMY_MAIN() { return 1; }
6161 #endif
6162 int
6163 main ()
6164 {
6165 fdatasync ();
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172   (eval $ac_link) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -s conftest$ac_exeext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_search_fdatasync="-l$ac_lib"
6183 break
6184 else
6185   echo "$as_me: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 fi
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189   done
6190 fi
6191 LIBS=$ac_func_search_save_LIBS
6192 fi
6193 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6194 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6195 if test "$ac_cv_search_fdatasync" != no; then
6196   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6197
6198 fi
6199
6200 # Cygwin:
6201
6202 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6203 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6204 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lcygipc  $LIBS"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6211 #include "confdefs.h"
6212
6213 /* Override any gcc2 internal prototype to avoid an error.  */
6214 #ifdef __cplusplus
6215 extern "C"
6216 #endif
6217 /* We use char because int might match the return type of a gcc2
6218    builtin and then its argument prototype would still apply.  */
6219 char shmget ();
6220 #ifdef F77_DUMMY_MAIN
6221 #  ifdef __cplusplus
6222      extern "C"
6223 #  endif
6224    int F77_DUMMY_MAIN() { return 1; }
6225 #endif
6226 int
6227 main ()
6228 {
6229 shmget ();
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236   (eval $ac_link) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } &&
6240          { ac_try='test -s conftest$ac_exeext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   ac_cv_lib_cygipc_shmget=yes
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 ac_cv_lib_cygipc_shmget=no
6251 fi
6252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6253 LIBS=$ac_check_lib_save_LIBS
6254 fi
6255 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6256 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6257 if test $ac_cv_lib_cygipc_shmget = yes; then
6258   cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LIBCYGIPC 1
6260 _ACEOF
6261
6262   LIBS="-lcygipc $LIBS"
6263
6264 fi
6265
6266
6267 if test "$with_readline" = yes; then
6268
6269 echo "$as_me:$LINENO: checking for readline" >&5
6270 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6271
6272 if test "${pgac_cv_check_readline+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   pgac_cv_check_readline=no
6276 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6277   for pgac_rllib in -lreadline -ledit ; do
6278     pgac_save_LIBS=$LIBS
6279     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6280     cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 #include "confdefs.h"
6283
6284 /* Override any gcc2 internal prototype to avoid an error.  */
6285 #ifdef __cplusplus
6286 extern "C"
6287 #endif
6288 /* We use char because int might match the return type of a gcc2
6289    builtin and then its argument prototype would still apply.  */
6290 char readline ();
6291 #ifdef F77_DUMMY_MAIN
6292 #  ifdef __cplusplus
6293      extern "C"
6294 #  endif
6295    int F77_DUMMY_MAIN() { return 1; }
6296 #endif
6297 int
6298 main ()
6299 {
6300 readline ();
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307   (eval $ac_link) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } &&
6311          { ac_try='test -s conftest$ac_exeext'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; }; then
6317
6318       # NetBSD and OpenBSD have a broken linker that does not
6319       # recognize dependent libraries
6320       case $host_os in netbsd* | openbsd* )
6321         case $pgac_lib in
6322           *curses*) ;;
6323           *) pgac_lib=" -lcurses" ;;
6324         esac
6325       esac
6326
6327       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6328       break 2
6329
6330 else
6331   echo "$as_me: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6333 fi
6334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6335     LIBS=$pgac_save_LIBS
6336   done
6337 done
6338 LIBS=$pgac_save_LIBS
6339
6340 fi
6341
6342 if test "$pgac_cv_check_readline" != no ; then
6343
6344 cat >>confdefs.h <<\_ACEOF
6345 #define HAVE_LIBREADLINE 1
6346 _ACEOF
6347
6348   LIBS="$pgac_cv_check_readline $LIBS"
6349   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6350 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6351 else
6352   echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6354 fi
6355   if test x"$pgac_cv_check_readline" = x"no"; then
6356     { { echo "$as_me:$LINENO: error: readline library not found
6357 If you have readline already installed, see config.log for details on the
6358 failure.  It is possible the compiler isn't looking in the proper directory.
6359 Use --without-readline to disable readline support." >&5
6360 echo "$as_me: error: readline library not found
6361 If you have readline already installed, see config.log for details on the
6362 failure.  It is possible the compiler isn't looking in the proper directory.
6363 Use --without-readline to disable readline support." >&2;}
6364    { (exit 1); exit 1; }; }
6365   fi
6366 fi
6367
6368 if test "$with_zlib" = yes; then
6369
6370 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6371 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6372 if test "${ac_cv_lib_z_inflate+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   ac_check_lib_save_LIBS=$LIBS
6376 LIBS="-lz  $LIBS"
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 #include "confdefs.h"
6380
6381 /* Override any gcc2 internal prototype to avoid an error.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 /* We use char because int might match the return type of a gcc2
6386    builtin and then its argument prototype would still apply.  */
6387 char inflate ();
6388 #ifdef F77_DUMMY_MAIN
6389 #  ifdef __cplusplus
6390      extern "C"
6391 #  endif
6392    int F77_DUMMY_MAIN() { return 1; }
6393 #endif
6394 int
6395 main ()
6396 {
6397 inflate ();
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404   (eval $ac_link) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -s conftest$ac_exeext'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   ac_cv_lib_z_inflate=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6418 ac_cv_lib_z_inflate=no
6419 fi
6420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6421 LIBS=$ac_check_lib_save_LIBS
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6424 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6425 if test $ac_cv_lib_z_inflate = yes; then
6426   cat >>confdefs.h <<_ACEOF
6427 #define HAVE_LIBZ 1
6428 _ACEOF
6429
6430   LIBS="-lz $LIBS"
6431
6432 else
6433   { { echo "$as_me:$LINENO: error: zlib library not found
6434 If you have zlib already installed, see config.log for details on the
6435 failure.  It is possible the compiler isn't looking in the proper directory.
6436 Use --without-zlib to disable zlib support." >&5
6437 echo "$as_me: error: zlib library not found
6438 If you have zlib already installed, see config.log for details on the
6439 failure.  It is possible the compiler isn't looking in the proper directory.
6440 Use --without-zlib to disable zlib support." >&2;}
6441    { (exit 1); exit 1; }; }
6442 fi
6443
6444 fi
6445
6446 if test "$with_krb4" = yes ; then
6447
6448 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6449 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6450 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   ac_check_lib_save_LIBS=$LIBS
6454 LIBS="-ldes  $LIBS"
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 #include "confdefs.h"
6458
6459 /* Override any gcc2 internal prototype to avoid an error.  */
6460 #ifdef __cplusplus
6461 extern "C"
6462 #endif
6463 /* We use char because int might match the return type of a gcc2
6464    builtin and then its argument prototype would still apply.  */
6465 char des_encrypt ();
6466 #ifdef F77_DUMMY_MAIN
6467 #  ifdef __cplusplus
6468      extern "C"
6469 #  endif
6470    int F77_DUMMY_MAIN() { return 1; }
6471 #endif
6472 int
6473 main ()
6474 {
6475 des_encrypt ();
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482   (eval $ac_link) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } &&
6486          { ac_try='test -s conftest$ac_exeext'
6487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488   (eval $ac_try) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); }; }; then
6492   ac_cv_lib_des_des_encrypt=yes
6493 else
6494   echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 ac_cv_lib_des_des_encrypt=no
6497 fi
6498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6499 LIBS=$ac_check_lib_save_LIBS
6500 fi
6501 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6502 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6503 if test $ac_cv_lib_des_des_encrypt = yes; then
6504   cat >>confdefs.h <<_ACEOF
6505 #define HAVE_LIBDES 1
6506 _ACEOF
6507
6508   LIBS="-ldes $LIBS"
6509
6510 else
6511   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6512 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6513    { (exit 1); exit 1; }; }
6514 fi
6515
6516
6517 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6518 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6519 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   ac_check_lib_save_LIBS=$LIBS
6523 LIBS="-lkrb  $LIBS"
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527
6528 /* Override any gcc2 internal prototype to avoid an error.  */
6529 #ifdef __cplusplus
6530 extern "C"
6531 #endif
6532 /* We use char because int might match the return type of a gcc2
6533    builtin and then its argument prototype would still apply.  */
6534 char krb_sendauth ();
6535 #ifdef F77_DUMMY_MAIN
6536 #  ifdef __cplusplus
6537      extern "C"
6538 #  endif
6539    int F77_DUMMY_MAIN() { return 1; }
6540 #endif
6541 int
6542 main ()
6543 {
6544 krb_sendauth ();
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551   (eval $ac_link) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } &&
6555          { ac_try='test -s conftest$ac_exeext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_cv_lib_krb_krb_sendauth=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 ac_cv_lib_krb_krb_sendauth=no
6566 fi
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_check_lib_save_LIBS
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6571 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6572 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6573   cat >>confdefs.h <<_ACEOF
6574 #define HAVE_LIBKRB 1
6575 _ACEOF
6576
6577   LIBS="-lkrb $LIBS"
6578
6579 else
6580   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6581 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6582    { (exit 1); exit 1; }; }
6583 fi
6584
6585
6586 for ac_func in gethostname
6587 do
6588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6589 echo "$as_me:$LINENO: checking for $ac_func" >&5
6590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6591 if eval "test \"\${$as_ac_var+set}\" = set"; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 #include "confdefs.h"
6597 /* System header to define __stub macros and hopefully few prototypes,
6598     which can conflict with char $ac_func (); below.  */
6599 #include <assert.h>
6600 /* Override any gcc2 internal prototype to avoid an error.  */
6601 #ifdef __cplusplus
6602 extern "C"
6603 #endif
6604 /* We use char because int might match the return type of a gcc2
6605    builtin and then its argument prototype would still apply.  */
6606 char $ac_func ();
6607 char (*f) ();
6608
6609 #ifdef F77_DUMMY_MAIN
6610 #  ifdef __cplusplus
6611      extern "C"
6612 #  endif
6613    int F77_DUMMY_MAIN() { return 1; }
6614 #endif
6615 int
6616 main ()
6617 {
6618 /* The GNU C library defines this for functions which it implements
6619     to always fail with ENOSYS.  Some functions are actually named
6620     something starting with __ and the normal name is an alias.  */
6621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622 choke me
6623 #else
6624 f = $ac_func;
6625 #endif
6626
6627   ;
6628   return 0;
6629 }
6630 _ACEOF
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633   (eval $ac_link) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -s conftest$ac_exeext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   eval "$as_ac_var=yes"
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 eval "$as_ac_var=no"
6648 fi
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650 fi
6651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6653 if test `eval echo '${'$as_ac_var'}'` = yes; then
6654   cat >>confdefs.h <<_ACEOF
6655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6656 _ACEOF
6657
6658 else
6659   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6660 fi
6661 done
6662
6663
6664 fi
6665
6666 if test "$with_krb5" = yes ; then
6667   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6668 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6669 if test "${ac_cv_search_com_err+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   ac_func_search_save_LIBS=$LIBS
6673 ac_cv_search_com_err=no
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6677
6678 /* Override any gcc2 internal prototype to avoid an error.  */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 /* We use char because int might match the return type of a gcc2
6683    builtin and then its argument prototype would still apply.  */
6684 char com_err ();
6685 #ifdef F77_DUMMY_MAIN
6686 #  ifdef __cplusplus
6687      extern "C"
6688 #  endif
6689    int F77_DUMMY_MAIN() { return 1; }
6690 #endif
6691 int
6692 main ()
6693 {
6694 com_err ();
6695   ;
6696   return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701   (eval $ac_link) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); } &&
6705          { ac_try='test -s conftest$ac_exeext'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   ac_cv_search_com_err="none required"
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 fi
6716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6717 if test "$ac_cv_search_com_err" = no; then
6718   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6720     cat >conftest.$ac_ext <<_ACEOF
6721 #line $LINENO "configure"
6722 #include "confdefs.h"
6723
6724 /* Override any gcc2 internal prototype to avoid an error.  */
6725 #ifdef __cplusplus
6726 extern "C"
6727 #endif
6728 /* We use char because int might match the return type of a gcc2
6729    builtin and then its argument prototype would still apply.  */
6730 char com_err ();
6731 #ifdef F77_DUMMY_MAIN
6732 #  ifdef __cplusplus
6733      extern "C"
6734 #  endif
6735    int F77_DUMMY_MAIN() { return 1; }
6736 #endif
6737 int
6738 main ()
6739 {
6740 com_err ();
6741   ;
6742   return 0;
6743 }
6744 _ACEOF
6745 rm -f conftest.$ac_objext conftest$ac_exeext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747   (eval $ac_link) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } &&
6751          { ac_try='test -s conftest$ac_exeext'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; }; then
6757   ac_cv_search_com_err="-l$ac_lib"
6758 break
6759 else
6760   echo "$as_me: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6762 fi
6763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6764   done
6765 fi
6766 LIBS=$ac_func_search_save_LIBS
6767 fi
6768 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6769 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6770 if test "$ac_cv_search_com_err" != no; then
6771   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6772
6773 else
6774   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6775 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6776    { (exit 1); exit 1; }; }
6777 fi
6778
6779   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6780 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6781 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   ac_func_search_save_LIBS=$LIBS
6785 ac_cv_search_krb5_encrypt=no
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 #include "confdefs.h"
6789
6790 /* Override any gcc2 internal prototype to avoid an error.  */
6791 #ifdef __cplusplus
6792 extern "C"
6793 #endif
6794 /* We use char because int might match the return type of a gcc2
6795    builtin and then its argument prototype would still apply.  */
6796 char krb5_encrypt ();
6797 #ifdef F77_DUMMY_MAIN
6798 #  ifdef __cplusplus
6799      extern "C"
6800 #  endif
6801    int F77_DUMMY_MAIN() { return 1; }
6802 #endif
6803 int
6804 main ()
6805 {
6806 krb5_encrypt ();
6807   ;
6808   return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813   (eval $ac_link) 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } &&
6817          { ac_try='test -s conftest$ac_exeext'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; }; then
6823   ac_cv_search_krb5_encrypt="none required"
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6827 fi
6828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6829 if test "$ac_cv_search_krb5_encrypt" = no; then
6830   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6832     cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6834 #include "confdefs.h"
6835
6836 /* Override any gcc2 internal prototype to avoid an error.  */
6837 #ifdef __cplusplus
6838 extern "C"
6839 #endif
6840 /* We use char because int might match the return type of a gcc2
6841    builtin and then its argument prototype would still apply.  */
6842 char krb5_encrypt ();
6843 #ifdef F77_DUMMY_MAIN
6844 #  ifdef __cplusplus
6845      extern "C"
6846 #  endif
6847    int F77_DUMMY_MAIN() { return 1; }
6848 #endif
6849 int
6850 main ()
6851 {
6852 krb5_encrypt ();
6853   ;
6854   return 0;
6855 }
6856 _ACEOF
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6859   (eval $ac_link) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); } &&
6863          { ac_try='test -s conftest$ac_exeext'
6864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865   (eval $ac_try) 2>&5
6866   ac_status=$?
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); }; }; then
6869   ac_cv_search_krb5_encrypt="-l$ac_lib"
6870 break
6871 else
6872   echo "$as_me: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6874 fi
6875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6876   done
6877 fi
6878 LIBS=$ac_func_search_save_LIBS
6879 fi
6880 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6881 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6882 if test "$ac_cv_search_krb5_encrypt" != no; then
6883   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6884
6885 else
6886   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6887 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6888    { (exit 1); exit 1; }; }
6889 fi
6890
6891   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6892 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6893 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   ac_func_search_save_LIBS=$LIBS
6897 ac_cv_search_krb5_sendauth=no
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6901
6902 /* Override any gcc2 internal prototype to avoid an error.  */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 /* We use char because int might match the return type of a gcc2
6907    builtin and then its argument prototype would still apply.  */
6908 char krb5_sendauth ();
6909 #ifdef F77_DUMMY_MAIN
6910 #  ifdef __cplusplus
6911      extern "C"
6912 #  endif
6913    int F77_DUMMY_MAIN() { return 1; }
6914 #endif
6915 int
6916 main ()
6917 {
6918 krb5_sendauth ();
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6925   (eval $ac_link) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } &&
6929          { ac_try='test -s conftest$ac_exeext'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; }; then
6935   ac_cv_search_krb5_sendauth="none required"
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6939 fi
6940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6941 if test "$ac_cv_search_krb5_sendauth" = no; then
6942   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6943     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6944     cat >conftest.$ac_ext <<_ACEOF
6945 #line $LINENO "configure"
6946 #include "confdefs.h"
6947
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 /* We use char because int might match the return type of a gcc2
6953    builtin and then its argument prototype would still apply.  */
6954 char krb5_sendauth ();
6955 #ifdef F77_DUMMY_MAIN
6956 #  ifdef __cplusplus
6957      extern "C"
6958 #  endif
6959    int F77_DUMMY_MAIN() { return 1; }
6960 #endif
6961 int
6962 main ()
6963 {
6964 krb5_sendauth ();
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971   (eval $ac_link) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } &&
6975          { ac_try='test -s conftest$ac_exeext'
6976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977   (eval $ac_try) 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; }; then
6981   ac_cv_search_krb5_sendauth="-l$ac_lib"
6982 break
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 fi
6987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6988   done
6989 fi
6990 LIBS=$ac_func_search_save_LIBS
6991 fi
6992 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6993 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6994 if test "$ac_cv_search_krb5_sendauth" != no; then
6995   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6996
6997 else
6998   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6999 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7000    { (exit 1); exit 1; }; }
7001 fi
7002
7003 fi
7004
7005 if test "$with_openssl" = yes ; then
7006
7007 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7008 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7009 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   ac_check_lib_save_LIBS=$LIBS
7013 LIBS="-lcrypto  $LIBS"
7014 cat >conftest.$ac_ext <<_ACEOF
7015 #line $LINENO "configure"
7016 #include "confdefs.h"
7017
7018 /* Override any gcc2 internal prototype to avoid an error.  */
7019 #ifdef __cplusplus
7020 extern "C"
7021 #endif
7022 /* We use char because int might match the return type of a gcc2
7023    builtin and then its argument prototype would still apply.  */
7024 char CRYPTO_new_ex_data ();
7025 #ifdef F77_DUMMY_MAIN
7026 #  ifdef __cplusplus
7027      extern "C"
7028 #  endif
7029    int F77_DUMMY_MAIN() { return 1; }
7030 #endif
7031 int
7032 main ()
7033 {
7034 CRYPTO_new_ex_data ();
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041   (eval $ac_link) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } &&
7045          { ac_try='test -s conftest$ac_exeext'
7046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047   (eval $ac_try) 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); }; }; then
7051   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7056 fi
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7059 fi
7060 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7061 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7062 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7063   cat >>confdefs.h <<_ACEOF
7064 #define HAVE_LIBCRYPTO 1
7065 _ACEOF
7066
7067   LIBS="-lcrypto $LIBS"
7068
7069 else
7070   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7071 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7072    { (exit 1); exit 1; }; }
7073 fi
7074
7075
7076 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7077 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7078 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   ac_check_lib_save_LIBS=$LIBS
7082 LIBS="-lssl  $LIBS"
7083 cat >conftest.$ac_ext <<_ACEOF
7084 #line $LINENO "configure"
7085 #include "confdefs.h"
7086
7087 /* Override any gcc2 internal prototype to avoid an error.  */
7088 #ifdef __cplusplus
7089 extern "C"
7090 #endif
7091 /* We use char because int might match the return type of a gcc2
7092    builtin and then its argument prototype would still apply.  */
7093 char SSL_library_init ();
7094 #ifdef F77_DUMMY_MAIN
7095 #  ifdef __cplusplus
7096      extern "C"
7097 #  endif
7098    int F77_DUMMY_MAIN() { return 1; }
7099 #endif
7100 int
7101 main ()
7102 {
7103 SSL_library_init ();
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110   (eval $ac_link) 2>&5
7111   ac_status=$?
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -s conftest$ac_exeext'
7115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116   (eval $ac_try) 2>&5
7117   ac_status=$?
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); }; }; then
7120   ac_cv_lib_ssl_SSL_library_init=yes
7121 else
7122   echo "$as_me: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7124 ac_cv_lib_ssl_SSL_library_init=no
7125 fi
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127 LIBS=$ac_check_lib_save_LIBS
7128 fi
7129 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7130 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7131 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7132   cat >>confdefs.h <<_ACEOF
7133 #define HAVE_LIBSSL 1
7134 _ACEOF
7135
7136   LIBS="-lssl $LIBS"
7137
7138 else
7139   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7140 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7141    { (exit 1); exit 1; }; }
7142 fi
7143
7144 fi
7145
7146 if test "$with_pam" = yes ; then
7147
7148 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7149 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7150 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   ac_check_lib_save_LIBS=$LIBS
7154 LIBS="-lpam  $LIBS"
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 #include "confdefs.h"
7158
7159 /* Override any gcc2 internal prototype to avoid an error.  */
7160 #ifdef __cplusplus
7161 extern "C"
7162 #endif
7163 /* We use char because int might match the return type of a gcc2
7164    builtin and then its argument prototype would still apply.  */
7165 char pam_start ();
7166 #ifdef F77_DUMMY_MAIN
7167 #  ifdef __cplusplus
7168      extern "C"
7169 #  endif
7170    int F77_DUMMY_MAIN() { return 1; }
7171 #endif
7172 int
7173 main ()
7174 {
7175 pam_start ();
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182   (eval $ac_link) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -s conftest$ac_exeext'
7187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188   (eval $ac_try) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); }; }; then
7192   ac_cv_lib_pam_pam_start=yes
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7196 ac_cv_lib_pam_pam_start=no
7197 fi
7198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7199 LIBS=$ac_check_lib_save_LIBS
7200 fi
7201 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7202 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7203 if test $ac_cv_lib_pam_pam_start = yes; then
7204   cat >>confdefs.h <<_ACEOF
7205 #define HAVE_LIBPAM 1
7206 _ACEOF
7207
7208   LIBS="-lpam $LIBS"
7209
7210 else
7211   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7212 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7213    { (exit 1); exit 1; }; }
7214 fi
7215
7216 fi
7217
7218
7219 ##
7220 ## Header files
7221 ##
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.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/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7245 do
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7248   echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 fi
7253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7255 else
7256   # Is the header compilable?
7257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7260 #line $LINENO "configure"
7261 #include "confdefs.h"
7262 $ac_includes_default
7263 #include <$ac_header>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267   (eval $ac_compile) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } &&
7271          { ac_try='test -s conftest.$ac_objext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   ac_header_compiler=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 ac_header_compiler=no
7282 fi
7283 rm -f conftest.$ac_objext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7285 echo "${ECHO_T}$ac_header_compiler" >&6
7286
7287 # Is the header present?
7288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7292 #include "confdefs.h"
7293 #include <$ac_header>
7294 _ACEOF
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7297   ac_status=$?
7298   egrep -v '^ *\+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } >/dev/null; then
7303   if test -s conftest.err; then
7304     ac_cpp_err=$ac_c_preproc_warn_flag
7305   else
7306     ac_cpp_err=
7307   fi
7308 else
7309   ac_cpp_err=yes
7310 fi
7311 if test -z "$ac_cpp_err"; then
7312   ac_header_preproc=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315   cat conftest.$ac_ext >&5
7316   ac_header_preproc=no
7317 fi
7318 rm -f conftest.err conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7320 echo "${ECHO_T}$ac_header_preproc" >&6
7321
7322 # So?  What about this header?
7323 case $ac_header_compiler:$ac_header_preproc in
7324   yes:no )
7325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7329   no:yes )
7330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7332     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7336 esac
7337 echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   eval "$as_ac_Header=$ac_header_preproc"
7343 fi
7344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7346
7347 fi
7348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7349   cat >>confdefs.h <<_ACEOF
7350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7351 _ACEOF
7352
7353 fi
7354
7355 done
7356
7357
7358 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7359 # netinet/in.h is included first.
7360
7361 for ac_header in netinet/in.h
7362 do
7363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365   echo "$as_me:$LINENO: checking for $ac_header" >&5
7366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 fi
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7372 else
7373   # Is the header compilable?
7374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 #include "confdefs.h"
7379 $ac_includes_default
7380 #include <$ac_header>
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384   (eval $ac_compile) 2>&5
7385   ac_status=$?
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); } &&
7388          { ac_try='test -s conftest.$ac_objext'
7389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   ac_header_compiler=yes
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 ac_header_compiler=no
7399 fi
7400 rm -f conftest.$ac_objext conftest.$ac_ext
7401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7402 echo "${ECHO_T}$ac_header_compiler" >&6
7403
7404 # Is the header present?
7405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line $LINENO "configure"
7409 #include "confdefs.h"
7410 #include <$ac_header>
7411 _ACEOF
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414   ac_status=$?
7415   egrep -v '^ *\+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } >/dev/null; then
7420   if test -s conftest.err; then
7421     ac_cpp_err=$ac_c_preproc_warn_flag
7422   else
7423     ac_cpp_err=
7424   fi
7425 else
7426   ac_cpp_err=yes
7427 fi
7428 if test -z "$ac_cpp_err"; then
7429   ac_header_preproc=yes
7430 else
7431   echo "$as_me: failed program was:" >&5
7432   cat conftest.$ac_ext >&5
7433   ac_header_preproc=no
7434 fi
7435 rm -f conftest.err conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7437 echo "${ECHO_T}$ac_header_preproc" >&6
7438
7439 # So?  What about this header?
7440 case $ac_header_compiler:$ac_header_preproc in
7441   yes:no )
7442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7446   no:yes )
7447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7453 esac
7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   eval "$as_ac_Header=$ac_header_preproc"
7460 fi
7461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7463
7464 fi
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466   cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7469
7470 fi
7471
7472 done
7473
7474
7475 for ac_header in netinet/tcp.h
7476 do
7477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   cat >conftest.$ac_ext <<_ACEOF
7484 #line $LINENO "configure"
7485 #include "confdefs.h"
7486 $ac_includes_default
7487 #ifdef HAVE_NETINET_IN_H
7488 #include <netinet/in.h>
7489 #endif
7490
7491
7492 #include <$ac_header>
7493 _ACEOF
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496   (eval $ac_compile) 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } &&
7500          { ac_try='test -s conftest.$ac_objext'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; }; then
7506   eval "$as_ac_Header=yes"
7507 else
7508   echo "$as_me: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 eval "$as_ac_Header=no"
7511 fi
7512 rm -f conftest.$ac_objext conftest.$ac_ext
7513 fi
7514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7517   cat >>confdefs.h <<_ACEOF
7518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519 _ACEOF
7520
7521 fi
7522
7523 done
7524
7525
7526 if test "$with_readline" = yes; then
7527
7528 for ac_header in readline/readline.h
7529 do
7530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7532   echo "$as_me:$LINENO: checking for $ac_header" >&5
7533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 fi
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7539 else
7540   # Is the header compilable?
7541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7543 cat >conftest.$ac_ext <<_ACEOF
7544 #line $LINENO "configure"
7545 #include "confdefs.h"
7546 $ac_includes_default
7547 #include <$ac_header>
7548 _ACEOF
7549 rm -f conftest.$ac_objext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551   (eval $ac_compile) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } &&
7555          { ac_try='test -s conftest.$ac_objext'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_header_compiler=yes
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7565 ac_header_compiler=no
7566 fi
7567 rm -f conftest.$ac_objext conftest.$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7569 echo "${ECHO_T}$ac_header_compiler" >&6
7570
7571 # Is the header present?
7572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 #include "confdefs.h"
7577 #include <$ac_header>
7578 _ACEOF
7579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7581   ac_status=$?
7582   egrep -v '^ *\+' conftest.er1 >conftest.err
7583   rm -f conftest.er1
7584   cat conftest.err >&5
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); } >/dev/null; then
7587   if test -s conftest.err; then
7588     ac_cpp_err=$ac_c_preproc_warn_flag
7589   else
7590     ac_cpp_err=
7591   fi
7592 else
7593   ac_cpp_err=yes
7594 fi
7595 if test -z "$ac_cpp_err"; then
7596   ac_header_preproc=yes
7597 else
7598   echo "$as_me: failed program was:" >&5
7599   cat conftest.$ac_ext >&5
7600   ac_header_preproc=no
7601 fi
7602 rm -f conftest.err conftest.$ac_ext
7603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7604 echo "${ECHO_T}$ac_header_preproc" >&6
7605
7606 # So?  What about this header?
7607 case $ac_header_compiler:$ac_header_preproc in
7608   yes:no )
7609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7613   no:yes )
7614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7616     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7620 esac
7621 echo "$as_me:$LINENO: checking for $ac_header" >&5
7622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7624   echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626   eval "$as_ac_Header=$ac_header_preproc"
7627 fi
7628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7630
7631 fi
7632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7633   cat >>confdefs.h <<_ACEOF
7634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7635 _ACEOF
7636
7637 else
7638
7639 for ac_header in editline/readline.h
7640 do
7641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7643   echo "$as_me:$LINENO: checking for $ac_header" >&5
7644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 fi
7648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7650 else
7651   # Is the header compilable?
7652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7656 #include "confdefs.h"
7657 $ac_includes_default
7658 #include <$ac_header>
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662   (eval $ac_compile) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } &&
7666          { ac_try='test -s conftest.$ac_objext'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; }; then
7672   ac_header_compiler=yes
7673 else
7674   echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 ac_header_compiler=no
7677 fi
7678 rm -f conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7680 echo "${ECHO_T}$ac_header_compiler" >&6
7681
7682 # Is the header present?
7683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 #include "confdefs.h"
7688 #include <$ac_header>
7689 _ACEOF
7690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7692   ac_status=$?
7693   egrep -v '^ *\+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } >/dev/null; then
7698   if test -s conftest.err; then
7699     ac_cpp_err=$ac_c_preproc_warn_flag
7700   else
7701     ac_cpp_err=
7702   fi
7703 else
7704   ac_cpp_err=yes
7705 fi
7706 if test -z "$ac_cpp_err"; then
7707   ac_header_preproc=yes
7708 else
7709   echo "$as_me: failed program was:" >&5
7710   cat conftest.$ac_ext >&5
7711   ac_header_preproc=no
7712 fi
7713 rm -f conftest.err conftest.$ac_ext
7714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7715 echo "${ECHO_T}$ac_header_preproc" >&6
7716
7717 # So?  What about this header?
7718 case $ac_header_compiler:$ac_header_preproc in
7719   yes:no )
7720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7724   no:yes )
7725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7727     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7731 esac
7732 echo "$as_me:$LINENO: checking for $ac_header" >&5
7733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737   eval "$as_ac_Header=$ac_header_preproc"
7738 fi
7739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7741
7742 fi
7743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7744   cat >>confdefs.h <<_ACEOF
7745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7746 _ACEOF
7747
7748 else
7749
7750 for ac_header in readline.h
7751 do
7752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7754   echo "$as_me:$LINENO: checking for $ac_header" >&5
7755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 fi
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7761 else
7762   # Is the header compilable?
7763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7765 cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7767 #include "confdefs.h"
7768 $ac_includes_default
7769 #include <$ac_header>
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773   (eval $ac_compile) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } &&
7777          { ac_try='test -s conftest.$ac_objext'
7778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779   (eval $ac_try) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; }; then
7783   ac_header_compiler=yes
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 ac_header_compiler=no
7788 fi
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7791 echo "${ECHO_T}$ac_header_compiler" >&6
7792
7793 # Is the header present?
7794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7798 #include "confdefs.h"
7799 #include <$ac_header>
7800 _ACEOF
7801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7803   ac_status=$?
7804   egrep -v '^ *\+' conftest.er1 >conftest.err
7805   rm -f conftest.er1
7806   cat conftest.err >&5
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); } >/dev/null; then
7809   if test -s conftest.err; then
7810     ac_cpp_err=$ac_c_preproc_warn_flag
7811   else
7812     ac_cpp_err=
7813   fi
7814 else
7815   ac_cpp_err=yes
7816 fi
7817 if test -z "$ac_cpp_err"; then
7818   ac_header_preproc=yes
7819 else
7820   echo "$as_me: failed program was:" >&5
7821   cat conftest.$ac_ext >&5
7822   ac_header_preproc=no
7823 fi
7824 rm -f conftest.err conftest.$ac_ext
7825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7826 echo "${ECHO_T}$ac_header_preproc" >&6
7827
7828 # So?  What about this header?
7829 case $ac_header_compiler:$ac_header_preproc in
7830   yes:no )
7831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7835   no:yes )
7836     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7838     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7842 esac
7843 echo "$as_me:$LINENO: checking for $ac_header" >&5
7844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   eval "$as_ac_Header=$ac_header_preproc"
7849 fi
7850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7852
7853 fi
7854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7855   cat >>confdefs.h <<_ACEOF
7856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7857 _ACEOF
7858
7859 else
7860   { { echo "$as_me:$LINENO: error: readline header not found
7861 If you have readline already installed, see config.log for details on the
7862 failure.  It is possible the compiler isn't looking in the proper directory.
7863 Use --without-readline to disable readline support." >&5
7864 echo "$as_me: error: readline header not found
7865 If you have readline already installed, see config.log for details on the
7866 failure.  It is possible the compiler isn't looking in the proper directory.
7867 Use --without-readline to disable readline support." >&2;}
7868    { (exit 1); exit 1; }; }
7869 fi
7870
7871 done
7872
7873 fi
7874
7875 done
7876
7877 fi
7878
7879 done
7880
7881
7882 for ac_header in readline/history.h
7883 do
7884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7886   echo "$as_me:$LINENO: checking for $ac_header" >&5
7887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 fi
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7893 else
7894   # Is the header compilable?
7895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7899 #include "confdefs.h"
7900 $ac_includes_default
7901 #include <$ac_header>
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905   (eval $ac_compile) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -s conftest.$ac_objext'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   ac_header_compiler=yes
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 ac_header_compiler=no
7920 fi
7921 rm -f conftest.$ac_objext conftest.$ac_ext
7922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7923 echo "${ECHO_T}$ac_header_compiler" >&6
7924
7925 # Is the header present?
7926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7931 #include <$ac_header>
7932 _ACEOF
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7935   ac_status=$?
7936   egrep -v '^ *\+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } >/dev/null; then
7941   if test -s conftest.err; then
7942     ac_cpp_err=$ac_c_preproc_warn_flag
7943   else
7944     ac_cpp_err=
7945   fi
7946 else
7947   ac_cpp_err=yes
7948 fi
7949 if test -z "$ac_cpp_err"; then
7950   ac_header_preproc=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953   cat conftest.$ac_ext >&5
7954   ac_header_preproc=no
7955 fi
7956 rm -f conftest.err conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7958 echo "${ECHO_T}$ac_header_preproc" >&6
7959
7960 # So?  What about this header?
7961 case $ac_header_compiler:$ac_header_preproc in
7962   yes:no )
7963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7967   no:yes )
7968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7970     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7974 esac
7975 echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   eval "$as_ac_Header=$ac_header_preproc"
7981 fi
7982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7984
7985 fi
7986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7987   cat >>confdefs.h <<_ACEOF
7988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7989 _ACEOF
7990
7991 else
7992
7993 for ac_header in editline/history.h
7994 do
7995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997   echo "$as_me:$LINENO: checking for $ac_header" >&5
7998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 fi
8002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8004 else
8005   # Is the header compilable?
8006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #include <$ac_header>
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016   (eval $ac_compile) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -s conftest.$ac_objext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_header_compiler=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_compiler=no
8031 fi
8032 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034 echo "${ECHO_T}$ac_header_compiler" >&6
8035
8036 # Is the header present?
8037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 #include <$ac_header>
8043 _ACEOF
8044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046   ac_status=$?
8047   egrep -v '^ *\+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } >/dev/null; then
8052   if test -s conftest.err; then
8053     ac_cpp_err=$ac_c_preproc_warn_flag
8054   else
8055     ac_cpp_err=
8056   fi
8057 else
8058   ac_cpp_err=yes
8059 fi
8060 if test -z "$ac_cpp_err"; then
8061   ac_header_preproc=yes
8062 else
8063   echo "$as_me: failed program was:" >&5
8064   cat conftest.$ac_ext >&5
8065   ac_header_preproc=no
8066 fi
8067 rm -f conftest.err conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069 echo "${ECHO_T}$ac_header_preproc" >&6
8070
8071 # So?  What about this header?
8072 case $ac_header_compiler:$ac_header_preproc in
8073   yes:no )
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8078   no:yes )
8079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8085 esac
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   eval "$as_ac_Header=$ac_header_preproc"
8092 fi
8093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8095
8096 fi
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098   cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 _ACEOF
8101
8102 else
8103
8104 for ac_header in history.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108   echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 fi
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 else
8116   # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_header_compiler=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8142 fi
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157   ac_status=$?
8158   egrep -v '^ *\+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } >/dev/null; then
8163   if test -s conftest.err; then
8164     ac_cpp_err=$ac_c_preproc_warn_flag
8165   else
8166     ac_cpp_err=
8167   fi
8168 else
8169   ac_cpp_err=yes
8170 fi
8171 if test -z "$ac_cpp_err"; then
8172   ac_header_preproc=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   ac_header_preproc=no
8177 fi
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8181
8182 # So?  What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8184   yes:no )
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8189   no:yes )
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8196 esac
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   eval "$as_ac_Header=$ac_header_preproc"
8203 fi
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8206
8207 fi
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209   cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 _ACEOF
8212
8213 else
8214   { { echo "$as_me:$LINENO: error: history header not found
8215 If you have readline already installed, see config.log for details on the
8216 failure.  It is possible the compiler isn't looking in the proper directory.
8217 Use --without-readline to disable readline support." >&5
8218 echo "$as_me: error: history header not found
8219 If you have readline already installed, see config.log for details on the
8220 failure.  It is possible the compiler isn't looking in the proper directory.
8221 Use --without-readline to disable readline support." >&2;}
8222    { (exit 1); exit 1; }; }
8223 fi
8224
8225 done
8226
8227 fi
8228
8229 done
8230
8231 fi
8232
8233 done
8234
8235 fi
8236
8237 if test "$with_zlib" = yes; then
8238   if test "${ac_cv_header_zlib_h+set}" = set; then
8239   echo "$as_me:$LINENO: checking for zlib.h" >&5
8240 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8241 if test "${ac_cv_header_zlib_h+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 fi
8244 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8245 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8246 else
8247   # Is the header compilable?
8248 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8249 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8251 #line $LINENO "configure"
8252 #include "confdefs.h"
8253 $ac_includes_default
8254 #include <zlib.h>
8255 _ACEOF
8256 rm -f conftest.$ac_objext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258   (eval $ac_compile) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } &&
8262          { ac_try='test -s conftest.$ac_objext'
8263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264   (eval $ac_try) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); }; }; then
8268   ac_header_compiler=yes
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8272 ac_header_compiler=no
8273 fi
8274 rm -f conftest.$ac_objext conftest.$ac_ext
8275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8276 echo "${ECHO_T}$ac_header_compiler" >&6
8277
8278 # Is the header present?
8279 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8280 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8281 cat >conftest.$ac_ext <<_ACEOF
8282 #line $LINENO "configure"
8283 #include "confdefs.h"
8284 #include <zlib.h>
8285 _ACEOF
8286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8288   ac_status=$?
8289   egrep -v '^ *\+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } >/dev/null; then
8294   if test -s conftest.err; then
8295     ac_cpp_err=$ac_c_preproc_warn_flag
8296   else
8297     ac_cpp_err=
8298   fi
8299 else
8300   ac_cpp_err=yes
8301 fi
8302 if test -z "$ac_cpp_err"; then
8303   ac_header_preproc=yes
8304 else
8305   echo "$as_me: failed program was:" >&5
8306   cat conftest.$ac_ext >&5
8307   ac_header_preproc=no
8308 fi
8309 rm -f conftest.err conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8311 echo "${ECHO_T}$ac_header_preproc" >&6
8312
8313 # So?  What about this header?
8314 case $ac_header_compiler:$ac_header_preproc in
8315   yes:no )
8316     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8317 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8318     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8319 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8320   no:yes )
8321     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8322 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8323     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8324 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8325     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8326 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8327 esac
8328 echo "$as_me:$LINENO: checking for zlib.h" >&5
8329 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8330 if test "${ac_cv_header_zlib_h+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   ac_cv_header_zlib_h=$ac_header_preproc
8334 fi
8335 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8336 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8337
8338 fi
8339 if test $ac_cv_header_zlib_h = yes; then
8340   :
8341 else
8342   { { echo "$as_me:$LINENO: error: zlib header not found
8343 If you have zlib already installed, see config.log for details on the
8344 failure.  It is possible the compiler isn't looking in the proper directory.
8345 Use --without-zlib to disable zlib support." >&5
8346 echo "$as_me: error: zlib header not found
8347 If you have zlib already installed, see config.log for details on the
8348 failure.  It is possible the compiler isn't looking in the proper directory.
8349 Use --without-zlib to disable zlib support." >&2;}
8350    { (exit 1); exit 1; }; }
8351 fi
8352
8353
8354 fi
8355
8356 if test "$with_krb4" = yes ; then
8357   if test "${ac_cv_header_krb_h+set}" = set; then
8358   echo "$as_me:$LINENO: checking for krb.h" >&5
8359 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_krb_h+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 fi
8363 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8364 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8365 else
8366   # Is the header compilable?
8367 echo "$as_me:$LINENO: checking krb.h usability" >&5
8368 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8370 #line $LINENO "configure"
8371 #include "confdefs.h"
8372 $ac_includes_default
8373 #include <krb.h>
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377   (eval $ac_compile) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -s conftest.$ac_objext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_header_compiler=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8391 ac_header_compiler=no
8392 fi
8393 rm -f conftest.$ac_objext conftest.$ac_ext
8394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395 echo "${ECHO_T}$ac_header_compiler" >&6
8396
8397 # Is the header present?
8398 echo "$as_me:$LINENO: checking krb.h presence" >&5
8399 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 #include "confdefs.h"
8403 #include <krb.h>
8404 _ACEOF
8405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407   ac_status=$?
8408   egrep -v '^ *\+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } >/dev/null; then
8413   if test -s conftest.err; then
8414     ac_cpp_err=$ac_c_preproc_warn_flag
8415   else
8416     ac_cpp_err=
8417   fi
8418 else
8419   ac_cpp_err=yes
8420 fi
8421 if test -z "$ac_cpp_err"; then
8422   ac_header_preproc=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425   cat conftest.$ac_ext >&5
8426   ac_header_preproc=no
8427 fi
8428 rm -f conftest.err conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8430 echo "${ECHO_T}$ac_header_preproc" >&6
8431
8432 # So?  What about this header?
8433 case $ac_header_compiler:$ac_header_preproc in
8434   yes:no )
8435     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8436 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8437     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8438 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8439   no:yes )
8440     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8441 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8442     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8443 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8444     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8445 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8446 esac
8447 echo "$as_me:$LINENO: checking for krb.h" >&5
8448 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8449 if test "${ac_cv_header_krb_h+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   ac_cv_header_krb_h=$ac_header_preproc
8453 fi
8454 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8455 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8456
8457 fi
8458 if test $ac_cv_header_krb_h = yes; then
8459   :
8460 else
8461   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8462 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8463    { (exit 1); exit 1; }; }
8464 fi
8465
8466
8467 fi
8468
8469 if test "$with_krb5" = yes ; then
8470   if test "${ac_cv_header_krb5_h+set}" = set; then
8471   echo "$as_me:$LINENO: checking for krb5.h" >&5
8472 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8473 if test "${ac_cv_header_krb5_h+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 fi
8476 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8477 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8478 else
8479   # Is the header compilable?
8480 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8481 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 #include "confdefs.h"
8485 $ac_includes_default
8486 #include <krb5.h>
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490   (eval $ac_compile) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -s conftest.$ac_objext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   ac_header_compiler=yes
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8504 ac_header_compiler=no
8505 fi
8506 rm -f conftest.$ac_objext conftest.$ac_ext
8507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8508 echo "${ECHO_T}$ac_header_compiler" >&6
8509
8510 # Is the header present?
8511 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8512 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8514 #line $LINENO "configure"
8515 #include "confdefs.h"
8516 #include <krb5.h>
8517 _ACEOF
8518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8520   ac_status=$?
8521   egrep -v '^ *\+' conftest.er1 >conftest.err
8522   rm -f conftest.er1
8523   cat conftest.err >&5
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } >/dev/null; then
8526   if test -s conftest.err; then
8527     ac_cpp_err=$ac_c_preproc_warn_flag
8528   else
8529     ac_cpp_err=
8530   fi
8531 else
8532   ac_cpp_err=yes
8533 fi
8534 if test -z "$ac_cpp_err"; then
8535   ac_header_preproc=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538   cat conftest.$ac_ext >&5
8539   ac_header_preproc=no
8540 fi
8541 rm -f conftest.err conftest.$ac_ext
8542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8543 echo "${ECHO_T}$ac_header_preproc" >&6
8544
8545 # So?  What about this header?
8546 case $ac_header_compiler:$ac_header_preproc in
8547   yes:no )
8548     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8549 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8550     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8551 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8552   no:yes )
8553     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8554 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8555     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8556 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8557     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8558 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8559 esac
8560 echo "$as_me:$LINENO: checking for krb5.h" >&5
8561 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8562 if test "${ac_cv_header_krb5_h+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   ac_cv_header_krb5_h=$ac_header_preproc
8566 fi
8567 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8568 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8569
8570 fi
8571 if test $ac_cv_header_krb5_h = yes; then
8572   :
8573 else
8574   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8575 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8576    { (exit 1); exit 1; }; }
8577 fi
8578
8579
8580   if test "${ac_cv_header_com_err_h+set}" = set; then
8581   echo "$as_me:$LINENO: checking for com_err.h" >&5
8582 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8583 if test "${ac_cv_header_com_err_h+set}" = set; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 fi
8586 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8587 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8588 else
8589   # Is the header compilable?
8590 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8591 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8595 $ac_includes_default
8596 #include <com_err.h>
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600   (eval $ac_compile) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); } &&
8604          { ac_try='test -s conftest.$ac_objext'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_header_compiler=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8614 ac_header_compiler=no
8615 fi
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8619
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8622 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8625 #include "confdefs.h"
8626 #include <com_err.h>
8627 _ACEOF
8628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8630   ac_status=$?
8631   egrep -v '^ *\+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } >/dev/null; then
8636   if test -s conftest.err; then
8637     ac_cpp_err=$ac_c_preproc_warn_flag
8638   else
8639     ac_cpp_err=
8640   fi
8641 else
8642   ac_cpp_err=yes
8643 fi
8644 if test -z "$ac_cpp_err"; then
8645   ac_header_preproc=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648   cat conftest.$ac_ext >&5
8649   ac_header_preproc=no
8650 fi
8651 rm -f conftest.err conftest.$ac_ext
8652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8653 echo "${ECHO_T}$ac_header_preproc" >&6
8654
8655 # So?  What about this header?
8656 case $ac_header_compiler:$ac_header_preproc in
8657   yes:no )
8658     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8659 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8660     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8661 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8662   no:yes )
8663     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8664 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8665     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8666 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8667     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8668 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8669 esac
8670 echo "$as_me:$LINENO: checking for com_err.h" >&5
8671 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8672 if test "${ac_cv_header_com_err_h+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   ac_cv_header_com_err_h=$ac_header_preproc
8676 fi
8677 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8678 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8679
8680 fi
8681 if test $ac_cv_header_com_err_h = yes; then
8682   :
8683 else
8684   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8685 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8686    { (exit 1); exit 1; }; }
8687 fi
8688
8689
8690 fi
8691
8692 if test "$with_openssl" = yes ; then
8693   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8694   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8695 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8696 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 fi
8699 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8700 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8701 else
8702   # Is the header compilable?
8703 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8704 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8706 #line $LINENO "configure"
8707 #include "confdefs.h"
8708 $ac_includes_default
8709 #include <openssl/ssl.h>
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713   (eval $ac_compile) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -s conftest.$ac_objext'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   ac_header_compiler=yes
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 ac_header_compiler=no
8728 fi
8729 rm -f conftest.$ac_objext conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8731 echo "${ECHO_T}$ac_header_compiler" >&6
8732
8733 # Is the header present?
8734 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8735 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 #include "confdefs.h"
8739 #include <openssl/ssl.h>
8740 _ACEOF
8741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8743   ac_status=$?
8744   egrep -v '^ *\+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } >/dev/null; then
8749   if test -s conftest.err; then
8750     ac_cpp_err=$ac_c_preproc_warn_flag
8751   else
8752     ac_cpp_err=
8753   fi
8754 else
8755   ac_cpp_err=yes
8756 fi
8757 if test -z "$ac_cpp_err"; then
8758   ac_header_preproc=yes
8759 else
8760   echo "$as_me: failed program was:" >&5
8761   cat conftest.$ac_ext >&5
8762   ac_header_preproc=no
8763 fi
8764 rm -f conftest.err conftest.$ac_ext
8765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8766 echo "${ECHO_T}$ac_header_preproc" >&6
8767
8768 # So?  What about this header?
8769 case $ac_header_compiler:$ac_header_preproc in
8770   yes:no )
8771     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8772 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8773     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8774 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8775   no:yes )
8776     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8777 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8778     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8779 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8780     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8782 esac
8783 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8784 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8785 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8789 fi
8790 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8791 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8792
8793 fi
8794 if test $ac_cv_header_openssl_ssl_h = yes; then
8795   :
8796 else
8797   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8798 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8799    { (exit 1); exit 1; }; }
8800 fi
8801
8802
8803   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8804   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8805 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8806 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 fi
8809 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8810 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8811 else
8812   # Is the header compilable?
8813 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8814 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 #include "confdefs.h"
8818 $ac_includes_default
8819 #include <openssl/err.h>
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823   (eval $ac_compile) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -s conftest.$ac_objext'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; }; then
8833   ac_header_compiler=yes
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8837 ac_header_compiler=no
8838 fi
8839 rm -f conftest.$ac_objext conftest.$ac_ext
8840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8841 echo "${ECHO_T}$ac_header_compiler" >&6
8842
8843 # Is the header present?
8844 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8845 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 #line $LINENO "configure"
8848 #include "confdefs.h"
8849 #include <openssl/err.h>
8850 _ACEOF
8851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8853   ac_status=$?
8854   egrep -v '^ *\+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } >/dev/null; then
8859   if test -s conftest.err; then
8860     ac_cpp_err=$ac_c_preproc_warn_flag
8861   else
8862     ac_cpp_err=
8863   fi
8864 else
8865   ac_cpp_err=yes
8866 fi
8867 if test -z "$ac_cpp_err"; then
8868   ac_header_preproc=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871   cat conftest.$ac_ext >&5
8872   ac_header_preproc=no
8873 fi
8874 rm -f conftest.err conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8876 echo "${ECHO_T}$ac_header_preproc" >&6
8877
8878 # So?  What about this header?
8879 case $ac_header_compiler:$ac_header_preproc in
8880   yes:no )
8881     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8882 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8883     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8884 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8885   no:yes )
8886     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8887 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8888     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8889 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8890     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8891 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8892 esac
8893 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8894 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8895 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   ac_cv_header_openssl_err_h=$ac_header_preproc
8899 fi
8900 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8901 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8902
8903 fi
8904 if test $ac_cv_header_openssl_err_h = yes; then
8905   :
8906 else
8907   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8908 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8909    { (exit 1); exit 1; }; }
8910 fi
8911
8912
8913 fi
8914
8915 if test "$with_pam" = yes ; then
8916
8917 for ac_header in security/pam_appl.h
8918 do
8919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921   echo "$as_me:$LINENO: checking for $ac_header" >&5
8922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8924   echo $ECHO_N "(cached) $ECHO_C" >&6
8925 fi
8926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8928 else
8929   # Is the header compilable?
8930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8934 #include "confdefs.h"
8935 $ac_includes_default
8936 #include <$ac_header>
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940   (eval $ac_compile) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } &&
8944          { ac_try='test -s conftest.$ac_objext'
8945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946   (eval $ac_try) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_header_compiler=yes
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8954 ac_header_compiler=no
8955 fi
8956 rm -f conftest.$ac_objext conftest.$ac_ext
8957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8958 echo "${ECHO_T}$ac_header_compiler" >&6
8959
8960 # Is the header present?
8961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 #include "confdefs.h"
8966 #include <$ac_header>
8967 _ACEOF
8968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8970   ac_status=$?
8971   egrep -v '^ *\+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } >/dev/null; then
8976   if test -s conftest.err; then
8977     ac_cpp_err=$ac_c_preproc_warn_flag
8978   else
8979     ac_cpp_err=
8980   fi
8981 else
8982   ac_cpp_err=yes
8983 fi
8984 if test -z "$ac_cpp_err"; then
8985   ac_header_preproc=yes
8986 else
8987   echo "$as_me: failed program was:" >&5
8988   cat conftest.$ac_ext >&5
8989   ac_header_preproc=no
8990 fi
8991 rm -f conftest.err conftest.$ac_ext
8992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8993 echo "${ECHO_T}$ac_header_preproc" >&6
8994
8995 # So?  What about this header?
8996 case $ac_header_compiler:$ac_header_preproc in
8997   yes:no )
8998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9002   no:yes )
9003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9005     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9009 esac
9010 echo "$as_me:$LINENO: checking for $ac_header" >&5
9011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   eval "$as_ac_Header=$ac_header_preproc"
9016 fi
9017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9019
9020 fi
9021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022   cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024 _ACEOF
9025
9026 else
9027
9028 for ac_header in pam/pam_appl.h
9029 do
9030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9032   echo "$as_me:$LINENO: checking for $ac_header" >&5
9033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035   echo $ECHO_N "(cached) $ECHO_C" >&6
9036 fi
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039 else
9040   # Is the header compilable?
9041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9045 #include "confdefs.h"
9046 $ac_includes_default
9047 #include <$ac_header>
9048 _ACEOF
9049 rm -f conftest.$ac_objext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051   (eval $ac_compile) 2>&5
9052   ac_status=$?
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); } &&
9055          { ac_try='test -s conftest.$ac_objext'
9056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057   (eval $ac_try) 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; }; then
9061   ac_header_compiler=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9065 ac_header_compiler=no
9066 fi
9067 rm -f conftest.$ac_objext conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9069 echo "${ECHO_T}$ac_header_compiler" >&6
9070
9071 # Is the header present?
9072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 #include "confdefs.h"
9077 #include <$ac_header>
9078 _ACEOF
9079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9081   ac_status=$?
9082   egrep -v '^ *\+' conftest.er1 >conftest.err
9083   rm -f conftest.er1
9084   cat conftest.err >&5
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } >/dev/null; then
9087   if test -s conftest.err; then
9088     ac_cpp_err=$ac_c_preproc_warn_flag
9089   else
9090     ac_cpp_err=
9091   fi
9092 else
9093   ac_cpp_err=yes
9094 fi
9095 if test -z "$ac_cpp_err"; then
9096   ac_header_preproc=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099   cat conftest.$ac_ext >&5
9100   ac_header_preproc=no
9101 fi
9102 rm -f conftest.err conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9104 echo "${ECHO_T}$ac_header_preproc" >&6
9105
9106 # So?  What about this header?
9107 case $ac_header_compiler:$ac_header_preproc in
9108   yes:no )
9109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9113   no:yes )
9114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9116     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9120 esac
9121 echo "$as_me:$LINENO: checking for $ac_header" >&5
9122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   eval "$as_ac_Header=$ac_header_preproc"
9127 fi
9128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9130
9131 fi
9132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9133   cat >>confdefs.h <<_ACEOF
9134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9135 _ACEOF
9136
9137 else
9138   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9139 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9140    { (exit 1); exit 1; }; }
9141 fi
9142
9143 done
9144
9145 fi
9146
9147 done
9148
9149 fi
9150
9151 if test "$with_rendezvous" = yes ; then
9152   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9153   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9154 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9155 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 fi
9158 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9159 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9160 else
9161   # Is the header compilable?
9162 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9163 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 $ac_includes_default
9168 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172   (eval $ac_compile) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } &&
9176          { ac_try='test -s conftest.$ac_objext'
9177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178   (eval $ac_try) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; }; then
9182   ac_header_compiler=yes
9183 else
9184   echo "$as_me: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 ac_header_compiler=no
9187 fi
9188 rm -f conftest.$ac_objext conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9190 echo "${ECHO_T}$ac_header_compiler" >&6
9191
9192 # Is the header present?
9193 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9194 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 #include "confdefs.h"
9198 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9199 _ACEOF
9200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9202   ac_status=$?
9203   egrep -v '^ *\+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } >/dev/null; then
9208   if test -s conftest.err; then
9209     ac_cpp_err=$ac_c_preproc_warn_flag
9210   else
9211     ac_cpp_err=
9212   fi
9213 else
9214   ac_cpp_err=yes
9215 fi
9216 if test -z "$ac_cpp_err"; then
9217   ac_header_preproc=yes
9218 else
9219   echo "$as_me: failed program was:" >&5
9220   cat conftest.$ac_ext >&5
9221   ac_header_preproc=no
9222 fi
9223 rm -f conftest.err conftest.$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225 echo "${ECHO_T}$ac_header_preproc" >&6
9226
9227 # So?  What about this header?
9228 case $ac_header_compiler:$ac_header_preproc in
9229   yes:no )
9230     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9231 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9233 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9234   no:yes )
9235     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9236 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9237     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9238 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9239     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9240 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9241 esac
9242 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9243 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9244 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9250 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9251
9252 fi
9253 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9254   :
9255 else
9256   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9257 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9258    { (exit 1); exit 1; }; }
9259 fi
9260
9261
9262 fi
9263
9264
9265 ##
9266 ## Types, structures, compiler characteristics
9267 ##
9268
9269
9270 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9271 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9272 if test "${ac_cv_c_const+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   cat >conftest.$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9277 #include "confdefs.h"
9278
9279 #ifdef F77_DUMMY_MAIN
9280 #  ifdef __cplusplus
9281      extern "C"
9282 #  endif
9283    int F77_DUMMY_MAIN() { return 1; }
9284 #endif
9285 int
9286 main ()
9287 {
9288 /* FIXME: Include the comments suggested by Paul. */
9289 #ifndef __cplusplus
9290   /* Ultrix mips cc rejects this.  */
9291   typedef int charset[2];
9292   const charset x;
9293   /* SunOS 4.1.1 cc rejects this.  */
9294   char const *const *ccp;
9295   char **p;
9296   /* NEC SVR4.0.2 mips cc rejects this.  */
9297   struct point {int x, y;};
9298   static struct point const zero = {0,0};
9299   /* AIX XL C 1.02.0.0 rejects this.
9300      It does not let you subtract one const X* pointer from another in
9301      an arm of an if-expression whose if-part is not a constant
9302      expression */
9303   const char *g = "string";
9304   ccp = &g + (g ? g-g : 0);
9305   /* HPUX 7.0 cc rejects these. */
9306   ++ccp;
9307   p = (char**) ccp;
9308   ccp = (char const *const *) p;
9309   { /* SCO 3.2v4 cc rejects this.  */
9310     char *t;
9311     char const *s = 0 ? (char *) 0 : (char const *) 0;
9312
9313     *t++ = 0;
9314   }
9315   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9316     int x[] = {25, 17};
9317     const int *foo = &x[0];
9318     ++foo;
9319   }
9320   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9321     typedef const int *iptr;
9322     iptr p = 0;
9323     ++p;
9324   }
9325   { /* AIX XL C 1.02.0.0 rejects this saying
9326        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9327     struct s { int j; const int *ap[3]; };
9328     struct s *b; b->j = 5;
9329   }
9330   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9331     const int foo = 10;
9332   }
9333 #endif
9334
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341   (eval $ac_compile) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -s conftest.$ac_objext'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   ac_cv_c_const=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 ac_cv_c_const=no
9356 fi
9357 rm -f conftest.$ac_objext conftest.$ac_ext
9358 fi
9359 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9360 echo "${ECHO_T}$ac_cv_c_const" >&6
9361 if test $ac_cv_c_const = no; then
9362
9363 cat >>confdefs.h <<\_ACEOF
9364 #define const
9365 _ACEOF
9366
9367 fi
9368
9369 echo "$as_me:$LINENO: checking for inline" >&5
9370 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9371 if test "${ac_cv_c_inline+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374   ac_cv_c_inline=no
9375 for ac_kw in inline __inline__ __inline; do
9376   cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9378 #include "confdefs.h"
9379 #ifndef __cplusplus
9380 static $ac_kw int static_foo () {return 0; }
9381 $ac_kw int foo () {return 0; }
9382 #endif
9383
9384 _ACEOF
9385 rm -f conftest.$ac_objext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387   (eval $ac_compile) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } &&
9391          { ac_try='test -s conftest.$ac_objext'
9392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393   (eval $ac_try) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); }; }; then
9397   ac_cv_c_inline=$ac_kw; break
9398 else
9399   echo "$as_me: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 fi
9402 rm -f conftest.$ac_objext conftest.$ac_ext
9403 done
9404
9405 fi
9406 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9407 echo "${ECHO_T}$ac_cv_c_inline" >&6
9408 case $ac_cv_c_inline in
9409   inline | yes) ;;
9410   no)
9411 cat >>confdefs.h <<\_ACEOF
9412 #define inline
9413 _ACEOF
9414  ;;
9415   *)  cat >>confdefs.h <<_ACEOF
9416 #define inline $ac_cv_c_inline
9417 _ACEOF
9418  ;;
9419 esac
9420
9421 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9422 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9423 if test "${ac_cv_c_stringize+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9429 #define x(y) #y
9430
9431 char *s = x(teststring);
9432 _ACEOF
9433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9434   egrep "#teststring" >/dev/null 2>&1; then
9435   ac_cv_c_stringize=no
9436 else
9437   ac_cv_c_stringize=yes
9438 fi
9439 rm -f conftest*
9440
9441 fi
9442 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9443 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9444 if test $ac_cv_c_stringize = yes; then
9445
9446 cat >>confdefs.h <<\_ACEOF
9447 #define HAVE_STRINGIZE 1
9448 _ACEOF
9449
9450 fi
9451
9452 echo "$as_me:$LINENO: checking for signed types" >&5
9453 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9454 if test "${pgac_cv_c_signed+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 #line $LINENO "configure"
9459 #include "confdefs.h"
9460
9461 #ifdef F77_DUMMY_MAIN
9462 #  ifdef __cplusplus
9463      extern "C"
9464 #  endif
9465    int F77_DUMMY_MAIN() { return 1; }
9466 #endif
9467 int
9468 main ()
9469 {
9470 signed char c; signed short s; signed int i;
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477   (eval $ac_compile) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } &&
9481          { ac_try='test -s conftest.$ac_objext'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; }; then
9487   pgac_cv_c_signed=yes
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9491 pgac_cv_c_signed=no
9492 fi
9493 rm -f conftest.$ac_objext conftest.$ac_ext
9494 fi
9495 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9496 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9497 if test x"$pgac_cv_c_signed" = xno ; then
9498
9499 cat >>confdefs.h <<\_ACEOF
9500 #define signed
9501 _ACEOF
9502
9503 fi
9504 echo "$as_me:$LINENO: checking for working volatile" >&5
9505 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9506 if test "${ac_cv_c_volatile+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   cat >conftest.$ac_ext <<_ACEOF
9510 #line $LINENO "configure"
9511 #include "confdefs.h"
9512
9513 #ifdef F77_DUMMY_MAIN
9514 #  ifdef __cplusplus
9515      extern "C"
9516 #  endif
9517    int F77_DUMMY_MAIN() { return 1; }
9518 #endif
9519 int
9520 main ()
9521 {
9522
9523 volatile int x;
9524 int * volatile y;
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531   (eval $ac_compile) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } &&
9535          { ac_try='test -s conftest.$ac_objext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_c_volatile=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 ac_cv_c_volatile=no
9546 fi
9547 rm -f conftest.$ac_objext conftest.$ac_ext
9548 fi
9549 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9550 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9551 if test $ac_cv_c_volatile = no; then
9552
9553 cat >>confdefs.h <<\_ACEOF
9554 #define volatile
9555 _ACEOF
9556
9557 fi
9558
9559 echo "$as_me:$LINENO: checking for __func__" >&5
9560 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9561 if test "${pgac_cv_funcname_func_support+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 #line $LINENO "configure"
9566 #include "confdefs.h"
9567 #include <stdio.h>
9568 #ifdef F77_DUMMY_MAIN
9569 #  ifdef __cplusplus
9570      extern "C"
9571 #  endif
9572    int F77_DUMMY_MAIN() { return 1; }
9573 #endif
9574 int
9575 main ()
9576 {
9577 printf("%s\n", __func__);
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584   (eval $ac_compile) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } &&
9588          { ac_try='test -s conftest.$ac_objext'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; }; then
9594   pgac_cv_funcname_func_support=yes
9595 else
9596   echo "$as_me: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 pgac_cv_funcname_func_support=no
9599 fi
9600 rm -f conftest.$ac_objext conftest.$ac_ext
9601 fi
9602 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9603 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9604 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9605
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_FUNCNAME__FUNC 1
9608 _ACEOF
9609
9610 else
9611 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9612 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9613 if test "${pgac_cv_funcname_function_support+set}" = set; then
9614   echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616   cat >conftest.$ac_ext <<_ACEOF
9617 #line $LINENO "configure"
9618 #include "confdefs.h"
9619 #include <stdio.h>
9620 #ifdef F77_DUMMY_MAIN
9621 #  ifdef __cplusplus
9622      extern "C"
9623 #  endif
9624    int F77_DUMMY_MAIN() { return 1; }
9625 #endif
9626 int
9627 main ()
9628 {
9629 printf("%s\n", __FUNCTION__);
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636   (eval $ac_compile) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -s conftest.$ac_objext'
9641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642   (eval $ac_try) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646   pgac_cv_funcname_function_support=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 pgac_cv_funcname_function_support=no
9651 fi
9652 rm -f conftest.$ac_objext conftest.$ac_ext
9653 fi
9654 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9655 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9656 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9657
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_FUNCNAME__FUNCTION 1
9660 _ACEOF
9661
9662 fi
9663 fi
9664 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9665 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9666 if test "${ac_cv_struct_tm+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 #include "confdefs.h"
9672 #include <sys/types.h>
9673 #include <time.h>
9674
9675 #ifdef F77_DUMMY_MAIN
9676 #  ifdef __cplusplus
9677      extern "C"
9678 #  endif
9679    int F77_DUMMY_MAIN() { return 1; }
9680 #endif
9681 int
9682 main ()
9683 {
9684 struct tm *tp; tp->tm_sec;
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691   (eval $ac_compile) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } &&
9695          { ac_try='test -s conftest.$ac_objext'
9696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697   (eval $ac_try) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); }; }; then
9701   ac_cv_struct_tm=time.h
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 ac_cv_struct_tm=sys/time.h
9706 fi
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9710 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9711 if test $ac_cv_struct_tm = sys/time.h; then
9712
9713 cat >>confdefs.h <<\_ACEOF
9714 #define TM_IN_SYS_TIME 1
9715 _ACEOF
9716
9717 fi
9718
9719 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9720 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9721 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724   cat >conftest.$ac_ext <<_ACEOF
9725 #line $LINENO "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <$ac_cv_struct_tm>
9729
9730
9731 #ifdef F77_DUMMY_MAIN
9732 #  ifdef __cplusplus
9733      extern "C"
9734 #  endif
9735    int F77_DUMMY_MAIN() { return 1; }
9736 #endif
9737 int
9738 main ()
9739 {
9740 static struct tm ac_aggr;
9741 if (ac_aggr.tm_zone)
9742 return 0;
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749   (eval $ac_compile) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } &&
9753          { ac_try='test -s conftest.$ac_objext'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; }; then
9759   ac_cv_member_struct_tm_tm_zone=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 ac_cv_member_struct_tm_tm_zone=no
9764 fi
9765 rm -f conftest.$ac_objext conftest.$ac_ext
9766 fi
9767 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9768 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9769 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9770
9771 cat >>confdefs.h <<_ACEOF
9772 #define HAVE_STRUCT_TM_TM_ZONE 1
9773 _ACEOF
9774
9775
9776 fi
9777
9778 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9779
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_TM_ZONE 1
9782 _ACEOF
9783
9784 fi
9785 echo "$as_me:$LINENO: checking for tzname" >&5
9786 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9787 if test "${ac_cv_var_tzname+set}" = set; then
9788   echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790   cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 #include "confdefs.h"
9793 #include <time.h>
9794 #ifndef tzname /* For SGI.  */
9795 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9796 #endif
9797
9798 #ifdef F77_DUMMY_MAIN
9799 #  ifdef __cplusplus
9800      extern "C"
9801 #  endif
9802    int F77_DUMMY_MAIN() { return 1; }
9803 #endif
9804 int
9805 main ()
9806 {
9807 atoi(*tzname);
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -s conftest$ac_exeext'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824   ac_cv_var_tzname=yes
9825 else
9826   echo "$as_me: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9828 ac_cv_var_tzname=no
9829 fi
9830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9833 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9834 if test $ac_cv_var_tzname = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_TZNAME 1
9838 _ACEOF
9839
9840 fi
9841
9842 echo "$as_me:$LINENO: checking for union semun" >&5
9843 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9844 if test "${ac_cv_type_union_semun+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 #include <sys/ipc.h>
9852 #include <sys/sem.h>
9853
9854 #ifdef F77_DUMMY_MAIN
9855 #  ifdef __cplusplus
9856      extern "C"
9857 #  endif
9858    int F77_DUMMY_MAIN() { return 1; }
9859 #endif
9860 int
9861 main ()
9862 {
9863 if ((union semun *) 0)
9864   return 0;
9865 if (sizeof (union semun))
9866   return 0;
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873   (eval $ac_compile) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -s conftest.$ac_objext'
9878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879   (eval $ac_try) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; }; then
9883   ac_cv_type_union_semun=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 ac_cv_type_union_semun=no
9888 fi
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9890 fi
9891 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9892 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9893 if test $ac_cv_type_union_semun = yes; then
9894
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_UNION_SEMUN 1
9897 _ACEOF
9898
9899
9900 fi
9901
9902 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9903 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9904 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9911 #ifdef HAVE_SYS_UN_H
9912 #include <sys/un.h>
9913 #endif
9914
9915
9916 #ifdef F77_DUMMY_MAIN
9917 #  ifdef __cplusplus
9918      extern "C"
9919 #  endif
9920    int F77_DUMMY_MAIN() { return 1; }
9921 #endif
9922 int
9923 main ()
9924 {
9925 if ((struct sockaddr_un *) 0)
9926   return 0;
9927 if (sizeof (struct sockaddr_un))
9928   return 0;
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935   (eval $ac_compile) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } &&
9939          { ac_try='test -s conftest.$ac_objext'
9940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941   (eval $ac_try) 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); }; }; then
9945   ac_cv_type_struct_sockaddr_un=yes
9946 else
9947   echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 ac_cv_type_struct_sockaddr_un=no
9950 fi
9951 rm -f conftest.$ac_objext conftest.$ac_ext
9952 fi
9953 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9954 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9955 if test $ac_cv_type_struct_sockaddr_un = yes; then
9956
9957 cat >>confdefs.h <<_ACEOF
9958 #define HAVE_STRUCT_SOCKADDR_UN 1
9959 _ACEOF
9960
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_UNIX_SOCKETS 1
9964 _ACEOF
9965
9966 fi
9967
9968 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9969 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9970 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 #include "confdefs.h"
9976 #include <sys/types.h>
9977 #ifdef HAVE_SYS_SOCKET_H
9978 #include <sys/socket.h>
9979 #endif
9980
9981
9982 #ifdef F77_DUMMY_MAIN
9983 #  ifdef __cplusplus
9984      extern "C"
9985 #  endif
9986    int F77_DUMMY_MAIN() { return 1; }
9987 #endif
9988 int
9989 main ()
9990 {
9991 if ((struct sockaddr_storage *) 0)
9992   return 0;
9993 if (sizeof (struct sockaddr_storage))
9994   return 0;
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10001   (eval $ac_compile) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } &&
10005          { ac_try='test -s conftest.$ac_objext'
10006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007   (eval $ac_try) 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011   ac_cv_type_struct_sockaddr_storage=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 ac_cv_type_struct_sockaddr_storage=no
10016 fi
10017 rm -f conftest.$ac_objext conftest.$ac_ext
10018 fi
10019 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10020 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10021 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10022
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10025 _ACEOF
10026
10027
10028 fi
10029
10030 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10031 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10032 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 #include "confdefs.h"
10038 #include <sys/types.h>
10039 #include <sys/socket.h>
10040 #include <netdb.h>
10041
10042
10043 #ifdef F77_DUMMY_MAIN
10044 #  ifdef __cplusplus
10045      extern "C"
10046 #  endif
10047    int F77_DUMMY_MAIN() { return 1; }
10048 #endif
10049 int
10050 main ()
10051 {
10052 if ((struct addrinfo *) 0)
10053   return 0;
10054 if (sizeof (struct addrinfo))
10055   return 0;
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062   (eval $ac_compile) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -s conftest.$ac_objext'
10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068   (eval $ac_try) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; }; then
10072   ac_cv_type_struct_addrinfo=yes
10073 else
10074   echo "$as_me: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10076 ac_cv_type_struct_addrinfo=no
10077 fi
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10079 fi
10080 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10081 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10082 if test $ac_cv_type_struct_addrinfo = yes; then
10083
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_STRUCT_ADDRINFO 1
10086 _ACEOF
10087
10088
10089 fi
10090
10091
10092 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10093 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10094 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10100 #include <sys/param.h>
10101 #include <sys/types.h>
10102 #include <sys/socket.h>
10103 #include <sys/ucred.h>
10104
10105 #ifdef F77_DUMMY_MAIN
10106 #  ifdef __cplusplus
10107      extern "C"
10108 #  endif
10109    int F77_DUMMY_MAIN() { return 1; }
10110 #endif
10111 int
10112 main ()
10113 {
10114 if ((struct cmsgcred *) 0)
10115   return 0;
10116 if (sizeof (struct cmsgcred))
10117   return 0;
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124   (eval $ac_compile) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -s conftest.$ac_objext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   ac_cv_type_struct_cmsgcred=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_cv_type_struct_cmsgcred=no
10139 fi
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10143 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10144 if test $ac_cv_type_struct_cmsgcred = yes; then
10145
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STRUCT_CMSGCRED 1
10148 _ACEOF
10149
10150
10151 fi
10152 echo "$as_me:$LINENO: checking for struct fcred" >&5
10153 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10154 if test "${ac_cv_type_struct_fcred+set}" = set; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   cat >conftest.$ac_ext <<_ACEOF
10158 #line $LINENO "configure"
10159 #include "confdefs.h"
10160 #include <sys/param.h>
10161 #include <sys/types.h>
10162 #include <sys/socket.h>
10163 #include <sys/ucred.h>
10164
10165 #ifdef F77_DUMMY_MAIN
10166 #  ifdef __cplusplus
10167      extern "C"
10168 #  endif
10169    int F77_DUMMY_MAIN() { return 1; }
10170 #endif
10171 int
10172 main ()
10173 {
10174 if ((struct fcred *) 0)
10175   return 0;
10176 if (sizeof (struct fcred))
10177   return 0;
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184   (eval $ac_compile) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -s conftest.$ac_objext'
10189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190   (eval $ac_try) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_type_struct_fcred=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 ac_cv_type_struct_fcred=no
10199 fi
10200 rm -f conftest.$ac_objext conftest.$ac_ext
10201 fi
10202 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10203 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10204 if test $ac_cv_type_struct_fcred = yes; then
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define HAVE_STRUCT_FCRED 1
10208 _ACEOF
10209
10210
10211 fi
10212 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10213 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10214 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   cat >conftest.$ac_ext <<_ACEOF
10218 #line $LINENO "configure"
10219 #include "confdefs.h"
10220 #include <sys/param.h>
10221 #include <sys/types.h>
10222 #include <sys/socket.h>
10223 #include <sys/ucred.h>
10224
10225 #ifdef F77_DUMMY_MAIN
10226 #  ifdef __cplusplus
10227      extern "C"
10228 #  endif
10229    int F77_DUMMY_MAIN() { return 1; }
10230 #endif
10231 int
10232 main ()
10233 {
10234 if ((struct sockcred *) 0)
10235   return 0;
10236 if (sizeof (struct sockcred))
10237   return 0;
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10244   (eval $ac_compile) 2>&5
10245   ac_status=$?
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); } &&
10248          { ac_try='test -s conftest.$ac_objext'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_type_struct_sockcred=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 ac_cv_type_struct_sockcred=no
10259 fi
10260 rm -f conftest.$ac_objext conftest.$ac_ext
10261 fi
10262 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10263 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10264 if test $ac_cv_type_struct_sockcred = yes; then
10265
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_STRUCT_SOCKCRED 1
10268 _ACEOF
10269
10270
10271 fi
10272
10273
10274 if test "$with_zlib" = yes; then
10275   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10276   # did not).  While we could work around the lack of z_streamp, it
10277   # seems unwise to encourage people to use such old zlib versions...
10278   echo "$as_me:$LINENO: checking for z_streamp" >&5
10279 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10280 if test "${ac_cv_type_z_streamp+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   cat >conftest.$ac_ext <<_ACEOF
10284 #line $LINENO "configure"
10285 #include "confdefs.h"
10286 #include <zlib.h>
10287
10288 #ifdef F77_DUMMY_MAIN
10289 #  ifdef __cplusplus
10290      extern "C"
10291 #  endif
10292    int F77_DUMMY_MAIN() { return 1; }
10293 #endif
10294 int
10295 main ()
10296 {
10297 if ((z_streamp *) 0)
10298   return 0;
10299 if (sizeof (z_streamp))
10300   return 0;
10301   ;
10302   return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307   (eval $ac_compile) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -s conftest.$ac_objext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_type_z_streamp=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 ac_cv_type_z_streamp=no
10322 fi
10323 rm -f conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10326 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10327 if test $ac_cv_type_z_streamp = yes; then
10328   :
10329 else
10330   { { echo "$as_me:$LINENO: error: zlib version is too old
10331 Use --without-zlib to disable zlib support." >&5
10332 echo "$as_me: error: zlib version is too old
10333 Use --without-zlib to disable zlib support." >&2;}
10334    { (exit 1); exit 1; }; }
10335 fi
10336
10337 fi
10338
10339 if test "$with_krb5" = yes; then
10340 # Check for differences between MIT and Heimdal (KTH) releases
10341   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10342 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10343 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   cat >conftest.$ac_ext <<_ACEOF
10347 #line $LINENO "configure"
10348 #include "confdefs.h"
10349 #include <krb5.h>
10350
10351 #ifdef F77_DUMMY_MAIN
10352 #  ifdef __cplusplus
10353      extern "C"
10354 #  endif
10355    int F77_DUMMY_MAIN() { return 1; }
10356 #endif
10357 int
10358 main ()
10359 {
10360 static krb5_ticket ac_aggr;
10361 if (ac_aggr.enc_part2)
10362 return 0;
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369   (eval $ac_compile) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } &&
10373          { ac_try='test -s conftest.$ac_objext'
10374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375   (eval $ac_try) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); }; }; then
10379   ac_cv_member_krb5_ticket_enc_part2=yes
10380 else
10381   echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_cv_member_krb5_ticket_enc_part2=no
10384 fi
10385 rm -f conftest.$ac_objext conftest.$ac_ext
10386 fi
10387 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10388 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10389 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10390
10391 cat >>confdefs.h <<_ACEOF
10392 #define HAVE_KRB5_TICKET_ENC_PART2 1
10393 _ACEOF
10394
10395
10396 else
10397   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10398 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10399 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 #include "confdefs.h"
10405 #include <krb5.h>
10406
10407 #ifdef F77_DUMMY_MAIN
10408 #  ifdef __cplusplus
10409      extern "C"
10410 #  endif
10411    int F77_DUMMY_MAIN() { return 1; }
10412 #endif
10413 int
10414 main ()
10415 {
10416 static krb5_ticket ac_aggr;
10417 if (ac_aggr.client)
10418 return 0;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425   (eval $ac_compile) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } &&
10429          { ac_try='test -s conftest.$ac_objext'
10430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431   (eval $ac_try) 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; }; then
10435   ac_cv_member_krb5_ticket_client=yes
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 ac_cv_member_krb5_ticket_client=no
10440 fi
10441 rm -f conftest.$ac_objext conftest.$ac_ext
10442 fi
10443 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10444 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10445 if test $ac_cv_member_krb5_ticket_client = yes; then
10446
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_KRB5_TICKET_CLIENT 1
10449 _ACEOF
10450
10451
10452 else
10453   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10454 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10455    { (exit 1); exit 1; }; }
10456 fi
10457
10458 fi
10459
10460   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10461 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10462 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 #line $LINENO "configure"
10467 #include "confdefs.h"
10468 #include <krb5.h>
10469
10470 #ifdef F77_DUMMY_MAIN
10471 #  ifdef __cplusplus
10472      extern "C"
10473 #  endif
10474    int F77_DUMMY_MAIN() { return 1; }
10475 #endif
10476 int
10477 main ()
10478 {
10479 static krb5_error ac_aggr;
10480 if (ac_aggr.text.data)
10481 return 0;
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488   (eval $ac_compile) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } &&
10492          { ac_try='test -s conftest.$ac_objext'
10493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494   (eval $ac_try) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; }; then
10498   ac_cv_member_krb5_error_text_data=yes
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 ac_cv_member_krb5_error_text_data=no
10503 fi
10504 rm -f conftest.$ac_objext conftest.$ac_ext
10505 fi
10506 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10507 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10508 if test $ac_cv_member_krb5_error_text_data = yes; then
10509
10510 cat >>confdefs.h <<_ACEOF
10511 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10512 _ACEOF
10513
10514
10515 else
10516   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10517 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10518 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   cat >conftest.$ac_ext <<_ACEOF
10522 #line $LINENO "configure"
10523 #include "confdefs.h"
10524 #include <krb5.h>
10525
10526 #ifdef F77_DUMMY_MAIN
10527 #  ifdef __cplusplus
10528      extern "C"
10529 #  endif
10530    int F77_DUMMY_MAIN() { return 1; }
10531 #endif
10532 int
10533 main ()
10534 {
10535 static krb5_error ac_aggr;
10536 if (ac_aggr.e_data)
10537 return 0;
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544   (eval $ac_compile) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -s conftest.$ac_objext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   ac_cv_member_krb5_error_e_data=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 ac_cv_member_krb5_error_e_data=no
10559 fi
10560 rm -f conftest.$ac_objext conftest.$ac_ext
10561 fi
10562 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10563 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10564 if test $ac_cv_member_krb5_error_e_data = yes; then
10565
10566 cat >>confdefs.h <<_ACEOF
10567 #define HAVE_KRB5_ERROR_E_DATA 1
10568 _ACEOF
10569
10570
10571 else
10572   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10573 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10574    { (exit 1); exit 1; }; }
10575 fi
10576
10577 fi
10578
10579 fi
10580
10581
10582 ##
10583 ## Functions, global variables
10584 ##
10585
10586 echo "$as_me:$LINENO: checking for int timezone" >&5
10587 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10588 if test "${pgac_cv_var_int_timezone+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   cat >conftest.$ac_ext <<_ACEOF
10592 #line $LINENO "configure"
10593 #include "confdefs.h"
10594 #include <time.h>
10595 int res;
10596 #ifdef F77_DUMMY_MAIN
10597 #  ifdef __cplusplus
10598      extern "C"
10599 #  endif
10600    int F77_DUMMY_MAIN() { return 1; }
10601 #endif
10602 int
10603 main ()
10604 {
10605 res = timezone / 60;
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -s conftest$ac_exeext'
10617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618   (eval $ac_try) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622   pgac_cv_var_int_timezone=yes
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 pgac_cv_var_int_timezone=no
10627 fi
10628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10629 fi
10630 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10631 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10632 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10633
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_INT_TIMEZONE
10636 _ACEOF
10637
10638 fi
10639 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10640 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10641  if test "${ac_cv_func_accept_arg1+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644    if test "${ac_cv_func_accept_arg2+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647     if test "${ac_cv_func_accept_arg3+set}" = set; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10651      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10652       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10653        cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 #ifdef HAVE_SYS_TYPES_H
10657 #include <sys/types.h>
10658 #endif
10659 #ifdef HAVE_SYS_SOCKET_H
10660 #include <sys/socket.h>
10661 #endif
10662 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10663 #ifdef F77_DUMMY_MAIN
10664 #  ifdef __cplusplus
10665      extern "C"
10666 #  endif
10667    int F77_DUMMY_MAIN() { return 1; }
10668 #endif
10669 int
10670 main ()
10671 {
10672
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679   (eval $ac_compile) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } &&
10683          { ac_try='test -s conftest.$ac_objext'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }; then
10689   ac_not_found=no; break 3
10690 else
10691   echo "$as_me: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10693 ac_not_found=yes
10694 fi
10695 rm -f conftest.$ac_objext conftest.$ac_ext
10696       done
10697      done
10698     done
10699     if test "$ac_not_found" = yes; then
10700       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10701 echo "$as_me: error: could not determine argument types" >&2;}
10702    { (exit 1); exit 1; }; }
10703     fi
10704     if test "$ac_cv_func_accept_arg3" = "void"; then
10705       ac_cv_func_accept_arg3=int
10706     fi
10707
10708 fi
10709
10710 fi
10711
10712 fi
10713  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10714 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10718 _ACEOF
10719
10720
10721 cat >>confdefs.h <<_ACEOF
10722 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10723 _ACEOF
10724
10725
10726 cat >>confdefs.h <<_ACEOF
10727 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10728 _ACEOF
10729
10730
10731 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10732 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10733 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10738 #include "confdefs.h"
10739 #include <sys/time.h>
10740 #ifdef F77_DUMMY_MAIN
10741 #  ifdef __cplusplus
10742      extern "C"
10743 #  endif
10744    int F77_DUMMY_MAIN() { return 1; }
10745 #endif
10746 int
10747 main ()
10748 {
10749 struct timeval *tp;
10750 struct timezone *tzp;
10751 gettimeofday(tp,tzp);
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758   (eval $ac_compile) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -s conftest.$ac_objext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   pgac_cv_func_gettimeofday_1arg=no
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 pgac_cv_func_gettimeofday_1arg=yes
10773 fi
10774 rm -f conftest.$ac_objext conftest.$ac_ext
10775 fi
10776 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10777 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10778 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10779
10780 cat >>confdefs.h <<\_ACEOF
10781 #define GETTIMEOFDAY_1ARG
10782 _ACEOF
10783
10784 fi
10785
10786
10787
10788 # SunOS doesn't handle negative byte comparisons properly with +/- return
10789 echo "$as_me:$LINENO: checking for working memcmp" >&5
10790 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10791 if test "${ac_cv_func_memcmp_working+set}" = set; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794   if test "$cross_compiling" = yes; then
10795   ac_cv_func_memcmp_working=no
10796 else
10797   cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 #include "confdefs.h"
10800
10801 #ifdef F77_DUMMY_MAIN
10802 #  ifdef __cplusplus
10803      extern "C"
10804 #  endif
10805    int F77_DUMMY_MAIN() { return 1; }
10806 #endif
10807 int
10808 main ()
10809 {
10810
10811   /* Some versions of memcmp are not 8-bit clean.  */
10812   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10813   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10814     exit (1);
10815
10816   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10817      or more and with at least one buffer not starting on a 4-byte boundary.
10818      William Lewis provided this test program.   */
10819   {
10820     char foo[21];
10821     char bar[21];
10822     int i;
10823     for (i = 0; i < 4; i++)
10824       {
10825         char *a = foo + i;
10826         char *b = bar + i;
10827         strcpy (a, "--------01111111");
10828         strcpy (b, "--------10000000");
10829         if (memcmp (a, b, 16) >= 0)
10830           exit (1);
10831       }
10832     exit (0);
10833   }
10834
10835   ;
10836   return 0;
10837 }
10838 _ACEOF
10839 rm -f conftest$ac_exeext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10841   (eval $ac_link) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_cv_func_memcmp_working=yes
10851 else
10852   echo "$as_me: program exited with status $ac_status" >&5
10853 echo "$as_me: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 ( exit $ac_status )
10856 ac_cv_func_memcmp_working=no
10857 fi
10858 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10859 fi
10860 fi
10861 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10862 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10863 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10883 do
10884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 echo "$as_me:$LINENO: checking for $ac_func" >&5
10886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_var+set}\" = set"; then
10888   echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890   cat >conftest.$ac_ext <<_ACEOF
10891 #line $LINENO "configure"
10892 #include "confdefs.h"
10893 /* System header to define __stub macros and hopefully few prototypes,
10894     which can conflict with char $ac_func (); below.  */
10895 #include <assert.h>
10896 /* Override any gcc2 internal prototype to avoid an error.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 /* We use char because int might match the return type of a gcc2
10901    builtin and then its argument prototype would still apply.  */
10902 char $ac_func ();
10903 char (*f) ();
10904
10905 #ifdef F77_DUMMY_MAIN
10906 #  ifdef __cplusplus
10907      extern "C"
10908 #  endif
10909    int F77_DUMMY_MAIN() { return 1; }
10910 #endif
10911 int
10912 main ()
10913 {
10914 /* The GNU C library defines this for functions which it implements
10915     to always fail with ENOSYS.  Some functions are actually named
10916     something starting with __ and the normal name is an alias.  */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 choke me
10919 #else
10920 f = $ac_func;
10921 #endif
10922
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929   (eval $ac_link) 2>&5
10930   ac_status=$?
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } &&
10933          { ac_try='test -s conftest$ac_exeext'
10934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935   (eval $ac_try) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; }; then
10939   eval "$as_ac_var=yes"
10940 else
10941   echo "$as_me: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10944 fi
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 fi
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10949 if test `eval echo '${'$as_ac_var'}'` = yes; then
10950   cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10952 _ACEOF
10953
10954 fi
10955 done
10956
10957
10958 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10959 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10960 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 #include "confdefs.h"
10966 #include <unistd.h>
10967
10968 #ifdef F77_DUMMY_MAIN
10969 #  ifdef __cplusplus
10970      extern "C"
10971 #  endif
10972    int F77_DUMMY_MAIN() { return 1; }
10973 #endif
10974 int
10975 main ()
10976 {
10977 #ifndef fdatasync
10978   char *p = (char *) fdatasync;
10979 #endif
10980
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987   (eval $ac_compile) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } &&
10991          { ac_try='test -s conftest.$ac_objext'
10992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993   (eval $ac_try) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; }; then
10997   ac_cv_have_decl_fdatasync=yes
10998 else
10999   echo "$as_me: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 ac_cv_have_decl_fdatasync=no
11002 fi
11003 rm -f conftest.$ac_objext conftest.$ac_ext
11004 fi
11005 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11006 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11007 if test $ac_cv_have_decl_fdatasync = yes; then
11008
11009 cat >>confdefs.h <<_ACEOF
11010 #define HAVE_DECL_FDATASYNC 1
11011 _ACEOF
11012
11013
11014 else
11015   cat >>confdefs.h <<_ACEOF
11016 #define HAVE_DECL_FDATASYNC 0
11017 _ACEOF
11018
11019
11020 fi
11021
11022
11023
11024 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11025 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11026 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 #include "confdefs.h"
11032 $ac_includes_default
11033 #include <netinet/in.h>
11034
11035 #ifdef F77_DUMMY_MAIN
11036 #  ifdef __cplusplus
11037      extern "C"
11038 #  endif
11039    int F77_DUMMY_MAIN() { return 1; }
11040 #endif
11041 int
11042 main ()
11043 {
11044 if ((struct sockaddr_in6 *) 0)
11045   return 0;
11046 if (sizeof (struct sockaddr_in6))
11047   return 0;
11048   ;
11049   return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054   (eval $ac_compile) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -s conftest.$ac_objext'
11059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060   (eval $ac_try) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); }; }; then
11064   ac_cv_type_struct_sockaddr_in6=yes
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 cat conftest.$ac_ext >&5
11068 ac_cv_type_struct_sockaddr_in6=no
11069 fi
11070 rm -f conftest.$ac_objext conftest.$ac_ext
11071 fi
11072 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11073 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11074 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11075   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11076 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11077 if test "${ac_cv_func_inet_ntop+set}" = set; then
11078   echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080   cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11082 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes,
11084     which can conflict with char inet_ntop (); below.  */
11085 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error.  */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 /* We use char because int might match the return type of a gcc2
11091    builtin and then its argument prototype would still apply.  */
11092 char inet_ntop ();
11093 char (*f) ();
11094
11095 #ifdef F77_DUMMY_MAIN
11096 #  ifdef __cplusplus
11097      extern "C"
11098 #  endif
11099    int F77_DUMMY_MAIN() { return 1; }
11100 #endif
11101 int
11102 main ()
11103 {
11104 /* The GNU C library defines this for functions which it implements
11105     to always fail with ENOSYS.  Some functions are actually named
11106     something starting with __ and the normal name is an alias.  */
11107 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11108 choke me
11109 #else
11110 f = inet_ntop;
11111 #endif
11112
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119   (eval $ac_link) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -s conftest$ac_exeext'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129   ac_cv_func_inet_ntop=yes
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 ac_cv_func_inet_ntop=no
11134 fi
11135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11136 fi
11137 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11138 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11139 if test $ac_cv_func_inet_ntop = yes; then
11140
11141 cat >>confdefs.h <<\_ACEOF
11142 #define HAVE_IPV6 1
11143 _ACEOF
11144
11145 fi
11146
11147 fi
11148
11149
11150 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11151 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11152 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11157 #include "confdefs.h"
11158 #include <machine/vmparam.h>
11159 #include <sys/exec.h>
11160
11161 #ifdef F77_DUMMY_MAIN
11162 #  ifdef __cplusplus
11163      extern "C"
11164 #  endif
11165    int F77_DUMMY_MAIN() { return 1; }
11166 #endif
11167 int
11168 main ()
11169 {
11170 PS_STRINGS->ps_nargvstr = 1;
11171 PS_STRINGS->ps_argvstr = "foo";
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178   (eval $ac_link) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } &&
11182          { ac_try='test -s conftest$ac_exeext'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; }; then
11188   pgac_cv_var_PS_STRINGS=yes
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11192 pgac_cv_var_PS_STRINGS=no
11193 fi
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195 fi
11196 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11197 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11198 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11199
11200 cat >>confdefs.h <<\_ACEOF
11201 #define HAVE_PS_STRINGS
11202 _ACEOF
11203
11204 fi
11205
11206
11207 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11208 # is missing.  Yes, there are machines that have only one.  We may
11209 # also decide to use snprintf.c if snprintf() is present but does not
11210 # have working "long long int" support -- see below.
11211
11212 pgac_need_repl_snprintf=no
11213
11214 for ac_func in snprintf
11215 do
11216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 echo "$as_me:$LINENO: checking for $ac_func" >&5
11218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_var+set}\" = set"; then
11220   echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222   cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11224 #include "confdefs.h"
11225 /* System header to define __stub macros and hopefully few prototypes,
11226     which can conflict with char $ac_func (); below.  */
11227 #include <assert.h>
11228 /* Override any gcc2 internal prototype to avoid an error.  */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 /* We use char because int might match the return type of a gcc2
11233    builtin and then its argument prototype would still apply.  */
11234 char $ac_func ();
11235 char (*f) ();
11236
11237 #ifdef F77_DUMMY_MAIN
11238 #  ifdef __cplusplus
11239      extern "C"
11240 #  endif
11241    int F77_DUMMY_MAIN() { return 1; }
11242 #endif
11243 int
11244 main ()
11245 {
11246 /* The GNU C library defines this for functions which it implements
11247     to always fail with ENOSYS.  Some functions are actually named
11248     something starting with __ and the normal name is an alias.  */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11250 choke me
11251 #else
11252 f = $ac_func;
11253 #endif
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261   (eval $ac_link) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest$ac_exeext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   eval "$as_ac_var=yes"
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11275 eval "$as_ac_var=no"
11276 fi
11277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11278 fi
11279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11281 if test `eval echo '${'$as_ac_var'}'` = yes; then
11282   cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11284 _ACEOF
11285
11286 else
11287   pgac_need_repl_snprintf=yes
11288 fi
11289 done
11290
11291
11292 for ac_func in vsnprintf
11293 do
11294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_var+set}\" = set"; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300   cat >conftest.$ac_ext <<_ACEOF
11301 #line $LINENO "configure"
11302 #include "confdefs.h"
11303 /* System header to define __stub macros and hopefully few prototypes,
11304     which can conflict with char $ac_func (); below.  */
11305 #include <assert.h>
11306 /* Override any gcc2 internal prototype to avoid an error.  */
11307 #ifdef __cplusplus
11308 extern "C"
11309 #endif
11310 /* We use char because int might match the return type of a gcc2
11311    builtin and then its argument prototype would still apply.  */
11312 char $ac_func ();
11313 char (*f) ();
11314
11315 #ifdef F77_DUMMY_MAIN
11316 #  ifdef __cplusplus
11317      extern "C"
11318 #  endif
11319    int F77_DUMMY_MAIN() { return 1; }
11320 #endif
11321 int
11322 main ()
11323 {
11324 /* The GNU C library defines this for functions which it implements
11325     to always fail with ENOSYS.  Some functions are actually named
11326     something starting with __ and the normal name is an alias.  */
11327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11328 choke me
11329 #else
11330 f = $ac_func;
11331 #endif
11332
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339   (eval $ac_link) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } &&
11343          { ac_try='test -s conftest$ac_exeext'
11344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345   (eval $ac_try) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; }; then
11349   eval "$as_ac_var=yes"
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 eval "$as_ac_var=no"
11354 fi
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356 fi
11357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360   cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362 _ACEOF
11363
11364 else
11365   pgac_need_repl_snprintf=yes
11366 fi
11367 done
11368
11369
11370
11371 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11372 # include/c.h will provide declarations.  Note this is a separate test
11373 # from whether the functions exist in the C library --- there are
11374 # systems that have the functions but don't bother to declare them :-(
11375
11376 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11377 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11378 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   cat >conftest.$ac_ext <<_ACEOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11384 $ac_includes_default
11385 #ifdef F77_DUMMY_MAIN
11386 #  ifdef __cplusplus
11387      extern "C"
11388 #  endif
11389    int F77_DUMMY_MAIN() { return 1; }
11390 #endif
11391 int
11392 main ()
11393 {
11394 #ifndef snprintf
11395   char *p = (char *) snprintf;
11396 #endif
11397
11398   ;
11399   return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404   (eval $ac_compile) 2>&5
11405   ac_status=$?
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -s conftest.$ac_objext'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; }; then
11414   ac_cv_have_decl_snprintf=yes
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 ac_cv_have_decl_snprintf=no
11419 fi
11420 rm -f conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11423 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11424 if test $ac_cv_have_decl_snprintf = yes; then
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_DECL_SNPRINTF 1
11428 _ACEOF
11429
11430
11431 else
11432   cat >>confdefs.h <<_ACEOF
11433 #define HAVE_DECL_SNPRINTF 0
11434 _ACEOF
11435
11436
11437 fi
11438 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11439 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11440 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 #include "confdefs.h"
11446 $ac_includes_default
11447 #ifdef F77_DUMMY_MAIN
11448 #  ifdef __cplusplus
11449      extern "C"
11450 #  endif
11451    int F77_DUMMY_MAIN() { return 1; }
11452 #endif
11453 int
11454 main ()
11455 {
11456 #ifndef vsnprintf
11457   char *p = (char *) vsnprintf;
11458 #endif
11459
11460   ;
11461   return 0;
11462 }
11463 _ACEOF
11464 rm -f conftest.$ac_objext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466   (eval $ac_compile) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   ac_cv_have_decl_vsnprintf=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 cat conftest.$ac_ext >&5
11480 ac_cv_have_decl_vsnprintf=no
11481 fi
11482 rm -f conftest.$ac_objext conftest.$ac_ext
11483 fi
11484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11485 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11486 if test $ac_cv_have_decl_vsnprintf = yes; then
11487
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_DECL_VSNPRINTF 1
11490 _ACEOF
11491
11492
11493 else
11494   cat >>confdefs.h <<_ACEOF
11495 #define HAVE_DECL_VSNPRINTF 0
11496 _ACEOF
11497
11498
11499 fi
11500
11501
11502
11503
11504 # do this one the hard way in case isinf() is a macro
11505 echo "$as_me:$LINENO: checking for isinf" >&5
11506 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11507 if test "${ac_cv_func_isinf+set}" = set; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11512 #include "confdefs.h"
11513 #include <math.h>
11514
11515 #ifdef F77_DUMMY_MAIN
11516 #  ifdef __cplusplus
11517      extern "C"
11518 #  endif
11519    int F77_DUMMY_MAIN() { return 1; }
11520 #endif
11521 int
11522 main ()
11523 {
11524 double x = 0.0; int res = isinf(x);
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 rm -f conftest.$ac_objext conftest$ac_exeext
11530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11531   (eval $ac_link) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } &&
11535          { ac_try='test -s conftest$ac_exeext'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541   ac_cv_func_isinf=yes
11542 else
11543   echo "$as_me: failed program was:" >&5
11544 cat conftest.$ac_ext >&5
11545 ac_cv_func_isinf=no
11546 fi
11547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11548 fi
11549 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11550 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11551
11552 if test $ac_cv_func_isinf = yes ; then
11553
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_ISINF 1
11556 _ACEOF
11557
11558 else
11559   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11560   # Look for a way to implement a substitute for isinf()
11561
11562
11563
11564
11565 for ac_func in fpclass fp_class fp_class_d class
11566 do
11567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568 echo "$as_me:$LINENO: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11570 if eval "test \"\${$as_ac_var+set}\" = set"; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 #line $LINENO "configure"
11575 #include "confdefs.h"
11576 /* System header to define __stub macros and hopefully few prototypes,
11577     which can conflict with char $ac_func (); below.  */
11578 #include <assert.h>
11579 /* Override any gcc2 internal prototype to avoid an error.  */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 /* We use char because int might match the return type of a gcc2
11584    builtin and then its argument prototype would still apply.  */
11585 char $ac_func ();
11586 char (*f) ();
11587
11588 #ifdef F77_DUMMY_MAIN
11589 #  ifdef __cplusplus
11590      extern "C"
11591 #  endif
11592    int F77_DUMMY_MAIN() { return 1; }
11593 #endif
11594 int
11595 main ()
11596 {
11597 /* The GNU C library defines this for functions which it implements
11598     to always fail with ENOSYS.  Some functions are actually named
11599     something starting with __ and the normal name is an alias.  */
11600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11601 choke me
11602 #else
11603 f = $ac_func;
11604 #endif
11605
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612   (eval $ac_link) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest$ac_exeext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   eval "$as_ac_var=yes"
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 eval "$as_ac_var=no"
11627 fi
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11629 fi
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633   cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635 _ACEOF
11636  break
11637 fi
11638 done
11639
11640 fi
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11657 do
11658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_var+set}\" = set"; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   cat >conftest.$ac_ext <<_ACEOF
11665 #line $LINENO "configure"
11666 #include "confdefs.h"
11667 /* System header to define __stub macros and hopefully few prototypes,
11668     which can conflict with char $ac_func (); below.  */
11669 #include <assert.h>
11670 /* Override any gcc2 internal prototype to avoid an error.  */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 /* We use char because int might match the return type of a gcc2
11675    builtin and then its argument prototype would still apply.  */
11676 char $ac_func ();
11677 char (*f) ();
11678
11679 #ifdef F77_DUMMY_MAIN
11680 #  ifdef __cplusplus
11681      extern "C"
11682 #  endif
11683    int F77_DUMMY_MAIN() { return 1; }
11684 #endif
11685 int
11686 main ()
11687 {
11688 /* The GNU C library defines this for functions which it implements
11689     to always fail with ENOSYS.  Some functions are actually named
11690     something starting with __ and the normal name is an alias.  */
11691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11692 choke me
11693 #else
11694 f = $ac_func;
11695 #endif
11696
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703   (eval $ac_link) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -s conftest$ac_exeext'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   eval "$as_ac_var=yes"
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 eval "$as_ac_var=no"
11718 fi
11719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11723 if test `eval echo '${'$as_ac_var'}'` = yes; then
11724   cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11726 _ACEOF
11727
11728 else
11729   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11730 fi
11731 done
11732
11733
11734
11735 # system's version of getaddrinfo(), if any, may be used only if we found
11736 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11737 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11738
11739 for ac_func in getaddrinfo
11740 do
11741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742 echo "$as_me:$LINENO: checking for $ac_func" >&5
11743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11744 if eval "test \"\${$as_ac_var+set}\" = set"; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   cat >conftest.$ac_ext <<_ACEOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750 /* System header to define __stub macros and hopefully few prototypes,
11751     which can conflict with char $ac_func (); below.  */
11752 #include <assert.h>
11753 /* Override any gcc2 internal prototype to avoid an error.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 /* We use char because int might match the return type of a gcc2
11758    builtin and then its argument prototype would still apply.  */
11759 char $ac_func ();
11760 char (*f) ();
11761
11762 #ifdef F77_DUMMY_MAIN
11763 #  ifdef __cplusplus
11764      extern "C"
11765 #  endif
11766    int F77_DUMMY_MAIN() { return 1; }
11767 #endif
11768 int
11769 main ()
11770 {
11771 /* The GNU C library defines this for functions which it implements
11772     to always fail with ENOSYS.  Some functions are actually named
11773     something starting with __ and the normal name is an alias.  */
11774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11775 choke me
11776 #else
11777 f = $ac_func;
11778 #endif
11779
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786   (eval $ac_link) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -s conftest$ac_exeext'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   eval "$as_ac_var=yes"
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 cat conftest.$ac_ext >&5
11800 eval "$as_ac_var=no"
11801 fi
11802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11803 fi
11804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11806 if test `eval echo '${'$as_ac_var'}'` = yes; then
11807   cat >>confdefs.h <<_ACEOF
11808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11809 _ACEOF
11810
11811 else
11812   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11813 fi
11814 done
11815
11816
11817 else
11818   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11819 fi
11820
11821 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11822 # We override the previous test that said fseeko/ftello didn't exist
11823 # OS tests are also done in include/c.h and port/fseeko.c
11824 case $host_os in bsdi*|netbsd*)
11825 ac_cv_func_fseeko=yes
11826 esac
11827
11828 # Solaris has a very slow qsort in certain cases, so we replace it.
11829 case $host_os in solaris*)
11830 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11831 esac
11832
11833 # Win32 can't to rename or unlink on an open file
11834 case $host_os in mingw*)
11835 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11836 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11837 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11838 esac
11839
11840 if test "$with_readline" = yes; then
11841   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11842 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 #include "confdefs.h"
11846 #include <stdio.h>
11847 #ifdef HAVE_READLINE_READLINE_H
11848 # include <readline/readline.h>
11849 #elif defined(HAVE_READLINE_H)
11850 # include <readline.h>
11851 #endif
11852
11853 #ifdef F77_DUMMY_MAIN
11854 #  ifdef __cplusplus
11855      extern "C"
11856 #  endif
11857    int F77_DUMMY_MAIN() { return 1; }
11858 #endif
11859 int
11860 main ()
11861 {
11862 rl_completion_append_character = 'x';
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869   (eval $ac_link) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } &&
11873          { ac_try='test -s conftest$ac_exeext'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   echo "$as_me:$LINENO: result: yes" >&5
11880 echo "${ECHO_T}yes" >&6
11881
11882 cat >>confdefs.h <<\_ACEOF
11883 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11884 _ACEOF
11885
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11891 fi
11892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11893
11894
11895 for ac_func in rl_completion_matches rl_filename_completion_function
11896 do
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11900 if eval "test \"\${$as_ac_var+set}\" = set"; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   cat >conftest.$ac_ext <<_ACEOF
11904 #line $LINENO "configure"
11905 #include "confdefs.h"
11906 /* System header to define __stub macros and hopefully few prototypes,
11907     which can conflict with char $ac_func (); below.  */
11908 #include <assert.h>
11909 /* Override any gcc2 internal prototype to avoid an error.  */
11910 #ifdef __cplusplus
11911 extern "C"
11912 #endif
11913 /* We use char because int might match the return type of a gcc2
11914    builtin and then its argument prototype would still apply.  */
11915 char $ac_func ();
11916 char (*f) ();
11917
11918 #ifdef F77_DUMMY_MAIN
11919 #  ifdef __cplusplus
11920      extern "C"
11921 #  endif
11922    int F77_DUMMY_MAIN() { return 1; }
11923 #endif
11924 int
11925 main ()
11926 {
11927 /* The GNU C library defines this for functions which it implements
11928     to always fail with ENOSYS.  Some functions are actually named
11929     something starting with __ and the normal name is an alias.  */
11930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11931 choke me
11932 #else
11933 f = $ac_func;
11934 #endif
11935
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942   (eval $ac_link) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -s conftest$ac_exeext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   eval "$as_ac_var=yes"
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11956 eval "$as_ac_var=no"
11957 fi
11958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11959 fi
11960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11962 if test `eval echo '${'$as_ac_var'}'` = yes; then
11963   cat >>confdefs.h <<_ACEOF
11964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11965 _ACEOF
11966
11967 fi
11968 done
11969
11970
11971 for ac_func in replace_history_entry
11972 do
11973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11974 echo "$as_me:$LINENO: checking for $ac_func" >&5
11975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11976 if eval "test \"\${$as_ac_var+set}\" = set"; then
11977   echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979   cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11981 #include "confdefs.h"
11982 /* System header to define __stub macros and hopefully few prototypes,
11983     which can conflict with char $ac_func (); below.  */
11984 #include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error.  */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 /* We use char because int might match the return type of a gcc2
11990    builtin and then its argument prototype would still apply.  */
11991 char $ac_func ();
11992 char (*f) ();
11993
11994 #ifdef F77_DUMMY_MAIN
11995 #  ifdef __cplusplus
11996      extern "C"
11997 #  endif
11998    int F77_DUMMY_MAIN() { return 1; }
11999 #endif
12000 int
12001 main ()
12002 {
12003 /* The GNU C library defines this for functions which it implements
12004     to always fail with ENOSYS.  Some functions are actually named
12005     something starting with __ and the normal name is an alias.  */
12006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12007 choke me
12008 #else
12009 f = $ac_func;
12010 #endif
12011
12012   ;
12013   return 0;
12014 }
12015 _ACEOF
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12018   (eval $ac_link) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -s conftest$ac_exeext'
12023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024   (eval $ac_try) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; }; then
12028   eval "$as_ac_var=yes"
12029 else
12030   echo "$as_me: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12032 eval "$as_ac_var=no"
12033 fi
12034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12035 fi
12036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039   cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 _ACEOF
12042
12043 fi
12044 done
12045
12046 fi
12047
12048
12049 echo "$as_me:$LINENO: checking for finite" >&5
12050 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12051 cat >conftest.$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12053 #include "confdefs.h"
12054 #include <math.h>
12055 #ifdef F77_DUMMY_MAIN
12056 #  ifdef __cplusplus
12057      extern "C"
12058 #  endif
12059    int F77_DUMMY_MAIN() { return 1; }
12060 #endif
12061 int
12062 main ()
12063 {
12064 int dummy=finite(1.0);
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12071   (eval $ac_link) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } &&
12075          { ac_try='test -s conftest$ac_exeext'
12076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077   (eval $ac_try) 2>&5
12078   ac_status=$?
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); }; }; then
12081
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_FINITE 1
12084 _ACEOF
12085
12086 echo "$as_me:$LINENO: result: yes" >&5
12087 echo "${ECHO_T}yes" >&6
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12091 echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12093 fi
12094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12095
12096 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12097 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12101 #include <setjmp.h>
12102 #ifdef F77_DUMMY_MAIN
12103 #  ifdef __cplusplus
12104      extern "C"
12105 #  endif
12106    int F77_DUMMY_MAIN() { return 1; }
12107 #endif
12108 int
12109 main ()
12110 {
12111 sigjmp_buf x; sigsetjmp(x, 1);
12112   ;
12113   return 0;
12114 }
12115 _ACEOF
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12118   (eval $ac_link) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -s conftest$ac_exeext'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_SIGSETJMP 1
12131 _ACEOF
12132
12133 echo "$as_me:$LINENO: result: yes" >&5
12134 echo "${ECHO_T}yes" >&6
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 echo "$as_me:$LINENO: result: no" >&5
12139 echo "${ECHO_T}no" >&6
12140 fi
12141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12142
12143 echo "$as_me:$LINENO: checking for syslog" >&5
12144 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12145 if test "${ac_cv_func_syslog+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   cat >conftest.$ac_ext <<_ACEOF
12149 #line $LINENO "configure"
12150 #include "confdefs.h"
12151 /* System header to define __stub macros and hopefully few prototypes,
12152     which can conflict with char syslog (); below.  */
12153 #include <assert.h>
12154 /* Override any gcc2 internal prototype to avoid an error.  */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159    builtin and then its argument prototype would still apply.  */
12160 char syslog ();
12161 char (*f) ();
12162
12163 #ifdef F77_DUMMY_MAIN
12164 #  ifdef __cplusplus
12165      extern "C"
12166 #  endif
12167    int F77_DUMMY_MAIN() { return 1; }
12168 #endif
12169 int
12170 main ()
12171 {
12172 /* The GNU C library defines this for functions which it implements
12173     to always fail with ENOSYS.  Some functions are actually named
12174     something starting with __ and the normal name is an alias.  */
12175 #if defined (__stub_syslog) || defined (__stub___syslog)
12176 choke me
12177 #else
12178 f = syslog;
12179 #endif
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12187   (eval $ac_link) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } &&
12191          { ac_try='test -s conftest$ac_exeext'
12192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193   (eval $ac_try) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; }; then
12197   ac_cv_func_syslog=yes
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 ac_cv_func_syslog=no
12202 fi
12203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12204 fi
12205 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12206 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12207 if test $ac_cv_func_syslog = yes; then
12208   if test "${ac_cv_header_syslog_h+set}" = set; then
12209   echo "$as_me:$LINENO: checking for syslog.h" >&5
12210 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12211 if test "${ac_cv_header_syslog_h+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 fi
12214 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12215 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12216 else
12217   # Is the header compilable?
12218 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12219 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12221 #line $LINENO "configure"
12222 #include "confdefs.h"
12223 $ac_includes_default
12224 #include <syslog.h>
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228   (eval $ac_compile) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); } &&
12232          { ac_try='test -s conftest.$ac_objext'
12233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234   (eval $ac_try) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_header_compiler=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 ac_header_compiler=no
12243 fi
12244 rm -f conftest.$ac_objext conftest.$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12246 echo "${ECHO_T}$ac_header_compiler" >&6
12247
12248 # Is the header present?
12249 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12250 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12252 #line $LINENO "configure"
12253 #include "confdefs.h"
12254 #include <syslog.h>
12255 _ACEOF
12256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12258   ac_status=$?
12259   egrep -v '^ *\+' conftest.er1 >conftest.err
12260   rm -f conftest.er1
12261   cat conftest.err >&5
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); } >/dev/null; then
12264   if test -s conftest.err; then
12265     ac_cpp_err=$ac_c_preproc_warn_flag
12266   else
12267     ac_cpp_err=
12268   fi
12269 else
12270   ac_cpp_err=yes
12271 fi
12272 if test -z "$ac_cpp_err"; then
12273   ac_header_preproc=yes
12274 else
12275   echo "$as_me: failed program was:" >&5
12276   cat conftest.$ac_ext >&5
12277   ac_header_preproc=no
12278 fi
12279 rm -f conftest.err conftest.$ac_ext
12280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12281 echo "${ECHO_T}$ac_header_preproc" >&6
12282
12283 # So?  What about this header?
12284 case $ac_header_compiler:$ac_header_preproc in
12285   yes:no )
12286     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12287 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12288     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12289 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12290   no:yes )
12291     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12292 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12293     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12294 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12295     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12297 esac
12298 echo "$as_me:$LINENO: checking for syslog.h" >&5
12299 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12300 if test "${ac_cv_header_syslog_h+set}" = set; then
12301   echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303   ac_cv_header_syslog_h=$ac_header_preproc
12304 fi
12305 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12307
12308 fi
12309 if test $ac_cv_header_syslog_h = yes; then
12310
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_SYSLOG 1
12313 _ACEOF
12314
12315 fi
12316
12317
12318 fi
12319
12320
12321 echo "$as_me:$LINENO: checking for optreset" >&5
12322 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12323 if test "${pgac_cv_var_int_optreset+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12328 #include "confdefs.h"
12329 #include <unistd.h>
12330 #ifdef F77_DUMMY_MAIN
12331 #  ifdef __cplusplus
12332      extern "C"
12333 #  endif
12334    int F77_DUMMY_MAIN() { return 1; }
12335 #endif
12336 int
12337 main ()
12338 {
12339 extern int optreset; optreset = 1;
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346   (eval $ac_link) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -s conftest$ac_exeext'
12351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352   (eval $ac_try) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); }; }; then
12356   pgac_cv_var_int_optreset=yes
12357 else
12358   echo "$as_me: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 pgac_cv_var_int_optreset=no
12361 fi
12362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12363 fi
12364 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12365 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12366 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_INT_OPTRESET 1
12370 _ACEOF
12371
12372 fi
12373
12374
12375
12376 for ac_func in strtoll strtoq
12377 do
12378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12379 echo "$as_me:$LINENO: checking for $ac_func" >&5
12380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_var+set}\" = set"; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384   cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12387 /* System header to define __stub macros and hopefully few prototypes,
12388     which can conflict with char $ac_func (); below.  */
12389 #include <assert.h>
12390 /* Override any gcc2 internal prototype to avoid an error.  */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395    builtin and then its argument prototype would still apply.  */
12396 char $ac_func ();
12397 char (*f) ();
12398
12399 #ifdef F77_DUMMY_MAIN
12400 #  ifdef __cplusplus
12401      extern "C"
12402 #  endif
12403    int F77_DUMMY_MAIN() { return 1; }
12404 #endif
12405 int
12406 main ()
12407 {
12408 /* The GNU C library defines this for functions which it implements
12409     to always fail with ENOSYS.  Some functions are actually named
12410     something starting with __ and the normal name is an alias.  */
12411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12412 choke me
12413 #else
12414 f = $ac_func;
12415 #endif
12416
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423   (eval $ac_link) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   eval "$as_ac_var=yes"
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 eval "$as_ac_var=no"
12438 fi
12439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12440 fi
12441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444   cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12446 _ACEOF
12447  break
12448 fi
12449 done
12450
12451
12452
12453 for ac_func in strtoull strtouq
12454 do
12455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12456 echo "$as_me:$LINENO: checking for $ac_func" >&5
12457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12458 if eval "test \"\${$as_ac_var+set}\" = set"; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   cat >conftest.$ac_ext <<_ACEOF
12462 #line $LINENO "configure"
12463 #include "confdefs.h"
12464 /* System header to define __stub macros and hopefully few prototypes,
12465     which can conflict with char $ac_func (); below.  */
12466 #include <assert.h>
12467 /* Override any gcc2 internal prototype to avoid an error.  */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 /* We use char because int might match the return type of a gcc2
12472    builtin and then its argument prototype would still apply.  */
12473 char $ac_func ();
12474 char (*f) ();
12475
12476 #ifdef F77_DUMMY_MAIN
12477 #  ifdef __cplusplus
12478      extern "C"
12479 #  endif
12480    int F77_DUMMY_MAIN() { return 1; }
12481 #endif
12482 int
12483 main ()
12484 {
12485 /* The GNU C library defines this for functions which it implements
12486     to always fail with ENOSYS.  Some functions are actually named
12487     something starting with __ and the normal name is an alias.  */
12488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12489 choke me
12490 #else
12491 f = $ac_func;
12492 #endif
12493
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 rm -f conftest.$ac_objext conftest$ac_exeext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500   (eval $ac_link) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); } &&
12504          { ac_try='test -s conftest$ac_exeext'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   eval "$as_ac_var=yes"
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 eval "$as_ac_var=no"
12515 fi
12516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12517 fi
12518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12520 if test `eval echo '${'$as_ac_var'}'` = yes; then
12521   cat >>confdefs.h <<_ACEOF
12522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12523 _ACEOF
12524  break
12525 fi
12526 done
12527
12528
12529 # Check for one of atexit() or on_exit()
12530
12531 for ac_func in atexit
12532 do
12533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12534 echo "$as_me:$LINENO: checking for $ac_func" >&5
12535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12536 if eval "test \"\${$as_ac_var+set}\" = set"; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   cat >conftest.$ac_ext <<_ACEOF
12540 #line $LINENO "configure"
12541 #include "confdefs.h"
12542 /* System header to define __stub macros and hopefully few prototypes,
12543     which can conflict with char $ac_func (); below.  */
12544 #include <assert.h>
12545 /* Override any gcc2 internal prototype to avoid an error.  */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 /* We use char because int might match the return type of a gcc2
12550    builtin and then its argument prototype would still apply.  */
12551 char $ac_func ();
12552 char (*f) ();
12553
12554 #ifdef F77_DUMMY_MAIN
12555 #  ifdef __cplusplus
12556      extern "C"
12557 #  endif
12558    int F77_DUMMY_MAIN() { return 1; }
12559 #endif
12560 int
12561 main ()
12562 {
12563 /* The GNU C library defines this for functions which it implements
12564     to always fail with ENOSYS.  Some functions are actually named
12565     something starting with __ and the normal name is an alias.  */
12566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12567 choke me
12568 #else
12569 f = $ac_func;
12570 #endif
12571
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578   (eval $ac_link) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -s conftest$ac_exeext'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; }; then
12588   eval "$as_ac_var=yes"
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 eval "$as_ac_var=no"
12593 fi
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12595 fi
12596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12598 if test `eval echo '${'$as_ac_var'}'` = yes; then
12599   cat >>confdefs.h <<_ACEOF
12600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12601 _ACEOF
12602
12603 else
12604
12605 for ac_func in on_exit
12606 do
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_var+set}\" = set"; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12616 /* System header to define __stub macros and hopefully few prototypes,
12617     which can conflict with char $ac_func (); below.  */
12618 #include <assert.h>
12619 /* Override any gcc2 internal prototype to avoid an error.  */
12620 #ifdef __cplusplus
12621 extern "C"
12622 #endif
12623 /* We use char because int might match the return type of a gcc2
12624    builtin and then its argument prototype would still apply.  */
12625 char $ac_func ();
12626 char (*f) ();
12627
12628 #ifdef F77_DUMMY_MAIN
12629 #  ifdef __cplusplus
12630      extern "C"
12631 #  endif
12632    int F77_DUMMY_MAIN() { return 1; }
12633 #endif
12634 int
12635 main ()
12636 {
12637 /* The GNU C library defines this for functions which it implements
12638     to always fail with ENOSYS.  Some functions are actually named
12639     something starting with __ and the normal name is an alias.  */
12640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12641 choke me
12642 #else
12643 f = $ac_func;
12644 #endif
12645
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652   (eval $ac_link) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } &&
12656          { ac_try='test -s conftest$ac_exeext'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   eval "$as_ac_var=yes"
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 eval "$as_ac_var=no"
12667 fi
12668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673   cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675 _ACEOF
12676
12677 else
12678   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12679 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12680    { (exit 1); exit 1; }; }
12681 fi
12682 done
12683
12684 fi
12685 done
12686
12687
12688 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12689 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12690 if test "${ac_cv_sys_largefile_source+set}" = set; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   while :; do
12694   ac_cv_sys_largefile_source=no
12695   cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 #include "confdefs.h"
12698 #include <stdio.h>
12699 #ifdef F77_DUMMY_MAIN
12700 #  ifdef __cplusplus
12701      extern "C"
12702 #  endif
12703    int F77_DUMMY_MAIN() { return 1; }
12704 #endif
12705 int
12706 main ()
12707 {
12708 return !fseeko;
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   break
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 fi
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12731   cat >conftest.$ac_ext <<_ACEOF
12732 #line $LINENO "configure"
12733 #include "confdefs.h"
12734 #define _LARGEFILE_SOURCE 1
12735 #include <stdio.h>
12736 #ifdef F77_DUMMY_MAIN
12737 #  ifdef __cplusplus
12738      extern "C"
12739 #  endif
12740    int F77_DUMMY_MAIN() { return 1; }
12741 #endif
12742 int
12743 main ()
12744 {
12745 return !fseeko;
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752   (eval $ac_compile) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -s conftest.$ac_objext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   ac_cv_sys_largefile_source=1; break
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12766 fi
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12768   break
12769 done
12770 fi
12771 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12772 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12773 if test "$ac_cv_sys_largefile_source" != no; then
12774
12775 cat >>confdefs.h <<_ACEOF
12776 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12777 _ACEOF
12778
12779 fi
12780 rm -f conftest*
12781
12782 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12783 # in glibc 2.1.3, but that breaks too many other things.
12784 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12785 echo "$as_me:$LINENO: checking for fseeko" >&5
12786 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12787 if test "${ac_cv_func_fseeko+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   cat >conftest.$ac_ext <<_ACEOF
12791 #line $LINENO "configure"
12792 #include "confdefs.h"
12793 #include <stdio.h>
12794 #ifdef F77_DUMMY_MAIN
12795 #  ifdef __cplusplus
12796      extern "C"
12797 #  endif
12798    int F77_DUMMY_MAIN() { return 1; }
12799 #endif
12800 int
12801 main ()
12802 {
12803 return fseeko && fseeko (stdin, 0, 0);
12804   ;
12805   return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810   (eval $ac_link) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } &&
12814          { ac_try='test -s conftest$ac_exeext'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   ac_cv_func_fseeko=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 ac_cv_func_fseeko=no
12825 fi
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12827 fi
12828 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12829 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12830 if test $ac_cv_func_fseeko = yes; then
12831
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_FSEEKO 1
12834 _ACEOF
12835
12836 fi
12837
12838
12839 #
12840 # Check for re-entrant versions of certain functions
12841 #
12842 # Include special flags if threads are enabled _and_ if required for
12843 # threading on this platform.  Some platforms have *_r functions but
12844 # their natively named funcs are threadsafe, and should be used instead.
12845 #
12846 # One trick here is that if the don't call AC_CHECK_FUNCS, the
12847 # functions are marked "not found", which is perfect.
12848 #
12849 if test "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
12850 _CFLAGS="$CFLAGS"
12851 _LIB="$LIBS"
12852 CFLAGS="$CFLAGS $TREAD_CFLAGS"
12853 LIBS="$LIBS $THREAD_LIBS"
12854
12855
12856
12857 for ac_func in strerror_r getpwuid_r gethostbyname_r
12858 do
12859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12860 echo "$as_me:$LINENO: checking for $ac_func" >&5
12861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12862 if eval "test \"\${$as_ac_var+set}\" = set"; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 #include "confdefs.h"
12868 /* System header to define __stub macros and hopefully few prototypes,
12869     which can conflict with char $ac_func (); below.  */
12870 #include <assert.h>
12871 /* Override any gcc2 internal prototype to avoid an error.  */
12872 #ifdef __cplusplus
12873 extern "C"
12874 #endif
12875 /* We use char because int might match the return type of a gcc2
12876    builtin and then its argument prototype would still apply.  */
12877 char $ac_func ();
12878 char (*f) ();
12879
12880 #ifdef F77_DUMMY_MAIN
12881 #  ifdef __cplusplus
12882      extern "C"
12883 #  endif
12884    int F77_DUMMY_MAIN() { return 1; }
12885 #endif
12886 int
12887 main ()
12888 {
12889 /* The GNU C library defines this for functions which it implements
12890     to always fail with ENOSYS.  Some functions are actually named
12891     something starting with __ and the normal name is an alias.  */
12892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12893 choke me
12894 #else
12895 f = $ac_func;
12896 #endif
12897
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904   (eval $ac_link) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   eval "$as_ac_var=yes"
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 eval "$as_ac_var=no"
12919 fi
12920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12921 fi
12922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12924 if test `eval echo '${'$as_ac_var'}'` = yes; then
12925   cat >>confdefs.h <<_ACEOF
12926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12927 _ACEOF
12928
12929 fi
12930 done
12931
12932 CFLAGS="$_CFLAGS"
12933 LIB="$_LIBS"
12934 fi
12935
12936
12937 # This test makes sure that run tests work at all.  Sometimes a shared
12938 # library is found by the linker, but the runtime linker can't find it.
12939 # This check should come after all modifications of compiler or linker
12940 # variables, and before any other run tests.
12941 echo "$as_me:$LINENO: checking test program" >&5
12942 echo $ECHO_N "checking test program... $ECHO_C" >&6
12943 if test "$cross_compiling" = yes; then
12944   echo "$as_me:$LINENO: result: cross-compiling" >&5
12945 echo "${ECHO_T}cross-compiling" >&6
12946 else
12947   cat >conftest.$ac_ext <<_ACEOF
12948 #line $LINENO "configure"
12949 #include "confdefs.h"
12950 int main() { return 0; }
12951 _ACEOF
12952 rm -f conftest$ac_exeext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12954   (eval $ac_link) 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959   (eval $ac_try) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; }; then
12963   echo "$as_me:$LINENO: result: ok" >&5
12964 echo "${ECHO_T}ok" >&6
12965 else
12966   echo "$as_me: program exited with status $ac_status" >&5
12967 echo "$as_me: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 ( exit $ac_status )
12970 echo "$as_me:$LINENO: result: failed" >&5
12971 echo "${ECHO_T}failed" >&6
12972 { { echo "$as_me:$LINENO: error:
12973 *** Could not execute a simple test program.  This may be a problem
12974 *** related to locating shared libraries.  Check the file 'config.log'
12975 *** for the exact reason." >&5
12976 echo "$as_me: error:
12977 *** Could not execute a simple test program.  This may be a problem
12978 *** related to locating shared libraries.  Check the file 'config.log'
12979 *** for the exact reason." >&2;}
12980    { (exit 1); exit 1; }; }
12981 fi
12982 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12983 fi
12984
12985
12986
12987 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12988 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12989 if test "${pgac_cv_type_long_int_64+set}" = set; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992   if test "$cross_compiling" = yes; then
12993   # If cross-compiling, check the size reported by the compiler and
12994 # trust that the arithmetic works.
12995 cat >conftest.$ac_ext <<_ACEOF
12996 #line $LINENO "configure"
12997 #include "confdefs.h"
12998
12999 #ifdef F77_DUMMY_MAIN
13000 #  ifdef __cplusplus
13001      extern "C"
13002 #  endif
13003    int F77_DUMMY_MAIN() { return 1; }
13004 #endif
13005 int
13006 main ()
13007 {
13008 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13009 test_array [0] = 0
13010
13011   ;
13012   return 0;
13013 }
13014 _ACEOF
13015 rm -f conftest.$ac_objext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017   (eval $ac_compile) 2>&5
13018   ac_status=$?
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } &&
13021          { ac_try='test -s conftest.$ac_objext'
13022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023   (eval $ac_try) 2>&5
13024   ac_status=$?
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); }; }; then
13027   pgac_cv_type_long_int_64=yes
13028 else
13029   echo "$as_me: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13031 pgac_cv_type_long_int_64=no
13032 fi
13033 rm -f conftest.$ac_objext conftest.$ac_ext
13034 else
13035   cat >conftest.$ac_ext <<_ACEOF
13036 #line $LINENO "configure"
13037 #include "confdefs.h"
13038 typedef long int int64;
13039
13040 /*
13041  * These are globals to discourage the compiler from folding all the
13042  * arithmetic tests down to compile-time constants.
13043  */
13044 int64 a = 20000001;
13045 int64 b = 40000005;
13046
13047 int does_int64_work()
13048 {
13049   int64 c,d;
13050
13051   if (sizeof(int64) != 8)
13052     return 0;                   /* definitely not the right size */
13053
13054   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13055   c = a * b;
13056   d = (c + b) / b;
13057   if (d != a+1)
13058     return 0;
13059   return 1;
13060 }
13061 main() {
13062   exit(! does_int64_work());
13063 }
13064 _ACEOF
13065 rm -f conftest$ac_exeext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067   (eval $ac_link) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   pgac_cv_type_long_int_64=yes
13077 else
13078   echo "$as_me: program exited with status $ac_status" >&5
13079 echo "$as_me: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 ( exit $ac_status )
13082 pgac_cv_type_long_int_64=no
13083 fi
13084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13085 fi
13086 fi
13087 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13088 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13089
13090 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13091 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13092
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_LONG_INT_64
13095 _ACEOF
13096
13097 fi
13098
13099
13100 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13101   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13102 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13103 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13104   echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106   if test "$cross_compiling" = yes; then
13107   # If cross-compiling, check the size reported by the compiler and
13108 # trust that the arithmetic works.
13109 cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 #include "confdefs.h"
13112
13113 #ifdef F77_DUMMY_MAIN
13114 #  ifdef __cplusplus
13115      extern "C"
13116 #  endif
13117    int F77_DUMMY_MAIN() { return 1; }
13118 #endif
13119 int
13120 main ()
13121 {
13122 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13123 test_array [0] = 0
13124
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131   (eval $ac_compile) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } &&
13135          { ac_try='test -s conftest.$ac_objext'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   pgac_cv_type_long_long_int_64=yes
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 pgac_cv_type_long_long_int_64=no
13146 fi
13147 rm -f conftest.$ac_objext conftest.$ac_ext
13148 else
13149   cat >conftest.$ac_ext <<_ACEOF
13150 #line $LINENO "configure"
13151 #include "confdefs.h"
13152 typedef long long int int64;
13153
13154 /*
13155  * These are globals to discourage the compiler from folding all the
13156  * arithmetic tests down to compile-time constants.
13157  */
13158 int64 a = 20000001;
13159 int64 b = 40000005;
13160
13161 int does_int64_work()
13162 {
13163   int64 c,d;
13164
13165   if (sizeof(int64) != 8)
13166     return 0;                   /* definitely not the right size */
13167
13168   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13169   c = a * b;
13170   d = (c + b) / b;
13171   if (d != a+1)
13172     return 0;
13173   return 1;
13174 }
13175 main() {
13176   exit(! does_int64_work());
13177 }
13178 _ACEOF
13179 rm -f conftest$ac_exeext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13181   (eval $ac_link) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186   (eval $ac_try) 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; }; then
13190   pgac_cv_type_long_long_int_64=yes
13191 else
13192   echo "$as_me: program exited with status $ac_status" >&5
13193 echo "$as_me: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 ( exit $ac_status )
13196 pgac_cv_type_long_long_int_64=no
13197 fi
13198 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13199 fi
13200 fi
13201 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13202 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13203
13204 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13205 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13206
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_LONG_LONG_INT_64
13209 _ACEOF
13210
13211 fi
13212
13213 fi
13214
13215
13216
13217 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13218   cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 #include "confdefs.h"
13221
13222 #define INT64CONST(x)  x##LL
13223 long long int foo = INT64CONST(0x1234567890123456);
13224
13225 #ifdef F77_DUMMY_MAIN
13226 #  ifdef __cplusplus
13227      extern "C"
13228 #  endif
13229    int F77_DUMMY_MAIN() { return 1; }
13230 #endif
13231 int
13232 main ()
13233 {
13234
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241   (eval $ac_compile) 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -s conftest.$ac_objext'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251
13252 cat >>confdefs.h <<\_ACEOF
13253 #define HAVE_LL_CONSTANTS 1
13254 _ACEOF
13255
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 fi
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13261 fi
13262
13263
13264 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13265 # we found we need to use "long long int", better check.  We cope with
13266 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13267 # neither works, fall back to our own snprintf emulation (which we
13268 # know uses %lld).
13269
13270 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13271   if test $pgac_need_repl_snprintf = no; then
13272     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13273 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13274 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   for pgac_format in '%lld' '%qd' '%I64d'; do
13278 if test "$cross_compiling" = yes; then
13279   pgac_cv_snprintf_long_long_int_format=cross; break
13280 else
13281   cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13283 #include "confdefs.h"
13284 #include <stdio.h>
13285 typedef long long int int64;
13286 #define INT64_FORMAT "$pgac_format"
13287
13288 int64 a = 20000001;
13289 int64 b = 40000005;
13290
13291 int does_int64_snprintf_work()
13292 {
13293   int64 c;
13294   char buf[100];
13295
13296   if (sizeof(int64) != 8)
13297     return 0;                   /* doesn't look like the right size */
13298
13299   c = a * b;
13300   snprintf(buf, 100, INT64_FORMAT, c);
13301   if (strcmp(buf, "800000140000005") != 0)
13302     return 0;                   /* either multiply or snprintf is busted */
13303   return 1;
13304 }
13305 main() {
13306   exit(! does_int64_snprintf_work());
13307 }
13308 _ACEOF
13309 rm -f conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311   (eval $ac_link) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316   (eval $ac_try) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }; }; then
13320   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13321 else
13322   echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13325 fi
13326 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 done
13329 fi
13330
13331 LONG_LONG_INT_FORMAT=''
13332
13333 case $pgac_cv_snprintf_long_long_int_format in
13334   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13335 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13336   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13337 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13338          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13339   *)     echo "$as_me:$LINENO: result: none" >&5
13340 echo "${ECHO_T}none" >&6;;
13341 esac
13342     if test "$LONG_LONG_INT_FORMAT" = ""; then
13343       # Force usage of our own snprintf, since system snprintf is broken
13344       pgac_need_repl_snprintf=yes
13345       LONG_LONG_INT_FORMAT='%lld'
13346     fi
13347   else
13348     # Here if we previously decided we needed to use our own snprintf
13349     LONG_LONG_INT_FORMAT='%lld'
13350   fi
13351   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13352 else
13353   # Here if we are not using 'long long int' at all
13354   INT64_FORMAT='"%ld"'
13355 fi
13356
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define INT64_FORMAT $INT64_FORMAT
13360 _ACEOF
13361
13362
13363 if test $pgac_need_repl_snprintf = yes; then
13364   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13365 fi
13366
13367 # Need a #define for the size of Datum (unsigned long)
13368 echo "$as_me:$LINENO: checking for unsigned long" >&5
13369 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13370 if test "${ac_cv_type_unsigned_long+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   cat >conftest.$ac_ext <<_ACEOF
13374 #line $LINENO "configure"
13375 #include "confdefs.h"
13376 $ac_includes_default
13377 #ifdef F77_DUMMY_MAIN
13378 #  ifdef __cplusplus
13379      extern "C"
13380 #  endif
13381    int F77_DUMMY_MAIN() { return 1; }
13382 #endif
13383 int
13384 main ()
13385 {
13386 if ((unsigned long *) 0)
13387   return 0;
13388 if (sizeof (unsigned long))
13389   return 0;
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13396   (eval $ac_compile) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } &&
13400          { ac_try='test -s conftest.$ac_objext'
13401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402   (eval $ac_try) 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; }; then
13406   ac_cv_type_unsigned_long=yes
13407 else
13408   echo "$as_me: failed program was:" >&5
13409 cat conftest.$ac_ext >&5
13410 ac_cv_type_unsigned_long=no
13411 fi
13412 rm -f conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13415 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13416
13417 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13418 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13419 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   if test "$ac_cv_type_unsigned_long" = yes; then
13423   # The cast to unsigned long works around a bug in the HP C Compiler
13424   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13425   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13426   # This bug is HP SR number 8606223364.
13427   if test "$cross_compiling" = yes; then
13428   # Depending upon the size, compute the lo and hi bounds.
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 #include "confdefs.h"
13432 $ac_includes_default
13433 #ifdef F77_DUMMY_MAIN
13434 #  ifdef __cplusplus
13435      extern "C"
13436 #  endif
13437    int F77_DUMMY_MAIN() { return 1; }
13438 #endif
13439 int
13440 main ()
13441 {
13442 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13443 test_array [0] = 0
13444
13445   ;
13446   return 0;
13447 }
13448 _ACEOF
13449 rm -f conftest.$ac_objext
13450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13451   (eval $ac_compile) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -s conftest.$ac_objext'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; }; then
13461   ac_lo=0 ac_mid=0
13462   while :; do
13463     cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13465 #include "confdefs.h"
13466 $ac_includes_default
13467 #ifdef F77_DUMMY_MAIN
13468 #  ifdef __cplusplus
13469      extern "C"
13470 #  endif
13471    int F77_DUMMY_MAIN() { return 1; }
13472 #endif
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13477 test_array [0] = 0
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485   (eval $ac_compile) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); } &&
13489          { ac_try='test -s conftest.$ac_objext'
13490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491   (eval $ac_try) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); }; }; then
13495   ac_hi=$ac_mid; break
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13499 ac_lo=`expr $ac_mid + 1`
13500                     if test $ac_lo -le $ac_mid; then
13501                       ac_lo= ac_hi=
13502                       break
13503                     fi
13504                     ac_mid=`expr 2 '*' $ac_mid + 1`
13505 fi
13506 rm -f conftest.$ac_objext conftest.$ac_ext
13507   done
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 cat >conftest.$ac_ext <<_ACEOF
13512 #line $LINENO "configure"
13513 #include "confdefs.h"
13514 $ac_includes_default
13515 #ifdef F77_DUMMY_MAIN
13516 #  ifdef __cplusplus
13517      extern "C"
13518 #  endif
13519    int F77_DUMMY_MAIN() { return 1; }
13520 #endif
13521 int
13522 main ()
13523 {
13524 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13525 test_array [0] = 0
13526
13527   ;
13528   return 0;
13529 }
13530 _ACEOF
13531 rm -f conftest.$ac_objext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533   (eval $ac_compile) 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -s conftest.$ac_objext'
13538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539   (eval $ac_try) 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543   ac_hi=-1 ac_mid=-1
13544   while :; do
13545     cat >conftest.$ac_ext <<_ACEOF
13546 #line $LINENO "configure"
13547 #include "confdefs.h"
13548 $ac_includes_default
13549 #ifdef F77_DUMMY_MAIN
13550 #  ifdef __cplusplus
13551      extern "C"
13552 #  endif
13553    int F77_DUMMY_MAIN() { return 1; }
13554 #endif
13555 int
13556 main ()
13557 {
13558 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13559 test_array [0] = 0
13560
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567   (eval $ac_compile) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -s conftest.$ac_objext'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_lo=$ac_mid; break
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13581 ac_hi=`expr '(' $ac_mid ')' - 1`
13582                        if test $ac_mid -le $ac_hi; then
13583                          ac_lo= ac_hi=
13584                          break
13585                        fi
13586                        ac_mid=`expr 2 '*' $ac_mid`
13587 fi
13588 rm -f conftest.$ac_objext conftest.$ac_ext
13589   done
13590 else
13591   echo "$as_me: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13593 ac_lo= ac_hi=
13594 fi
13595 rm -f conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 rm -f conftest.$ac_objext conftest.$ac_ext
13598 # Binary search between lo and hi bounds.
13599 while test "x$ac_lo" != "x$ac_hi"; do
13600   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13601   cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13604 $ac_includes_default
13605 #ifdef F77_DUMMY_MAIN
13606 #  ifdef __cplusplus
13607      extern "C"
13608 #  endif
13609    int F77_DUMMY_MAIN() { return 1; }
13610 #endif
13611 int
13612 main ()
13613 {
13614 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13615 test_array [0] = 0
13616
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623   (eval $ac_compile) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -s conftest.$ac_objext'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_hi=$ac_mid
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 ac_lo=`expr '(' $ac_mid ')' + 1`
13638 fi
13639 rm -f conftest.$ac_objext conftest.$ac_ext
13640 done
13641 case $ac_lo in
13642 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13644 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13645    { (exit 1); exit 1; }; } ;;
13646 esac
13647 else
13648   if test "$cross_compiling" = yes; then
13649   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13650 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13651    { (exit 1); exit 1; }; }
13652 else
13653   cat >conftest.$ac_ext <<_ACEOF
13654 #line $LINENO "configure"
13655 #include "confdefs.h"
13656 $ac_includes_default
13657 long longval () { return (long) (sizeof (unsigned long)); }
13658 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13659 #include <stdio.h>
13660 #include <stdlib.h>
13661 #ifdef F77_DUMMY_MAIN
13662 #  ifdef __cplusplus
13663      extern "C"
13664 #  endif
13665    int F77_DUMMY_MAIN() { return 1; }
13666 #endif
13667 int
13668 main ()
13669 {
13670
13671   FILE *f = fopen ("conftest.val", "w");
13672   if (! f)
13673     exit (1);
13674   if (((long) (sizeof (unsigned long))) < 0)
13675     {
13676       long i = longval ();
13677       if (i != ((long) (sizeof (unsigned long))))
13678         exit (1);
13679       fprintf (f, "%ld\n", i);
13680     }
13681   else
13682     {
13683       unsigned long i = ulongval ();
13684       if (i != ((long) (sizeof (unsigned long))))
13685         exit (1);
13686       fprintf (f, "%lu\n", i);
13687     }
13688   exit (ferror (f) || fclose (f) != 0);
13689
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696   (eval $ac_link) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13706 else
13707   echo "$as_me: program exited with status $ac_status" >&5
13708 echo "$as_me: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 ( exit $ac_status )
13711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13712 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13713    { (exit 1); exit 1; }; }
13714 fi
13715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13716 fi
13717 fi
13718 rm -f conftest.val
13719 else
13720   ac_cv_sizeof_unsigned_long=0
13721 fi
13722 fi
13723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13724 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13725 cat >>confdefs.h <<_ACEOF
13726 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13727 _ACEOF
13728
13729
13730
13731 # Determine memory alignment requirements for the basic C data types.
13732
13733 echo "$as_me:$LINENO: checking for short" >&5
13734 echo $ECHO_N "checking for short... $ECHO_C" >&6
13735 if test "${ac_cv_type_short+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13740 #include "confdefs.h"
13741 $ac_includes_default
13742 #ifdef F77_DUMMY_MAIN
13743 #  ifdef __cplusplus
13744      extern "C"
13745 #  endif
13746    int F77_DUMMY_MAIN() { return 1; }
13747 #endif
13748 int
13749 main ()
13750 {
13751 if ((short *) 0)
13752   return 0;
13753 if (sizeof (short))
13754   return 0;
13755   ;
13756   return 0;
13757 }
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13761   (eval $ac_compile) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767   (eval $ac_try) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   ac_cv_type_short=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 cat conftest.$ac_ext >&5
13775 ac_cv_type_short=no
13776 fi
13777 rm -f conftest.$ac_objext conftest.$ac_ext
13778 fi
13779 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13780 echo "${ECHO_T}$ac_cv_type_short" >&6
13781
13782 echo "$as_me:$LINENO: checking alignment of short" >&5
13783 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13784 if test "${pgac_cv_alignof_short+set}" = set; then
13785   echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787   if test "$ac_cv_type_short" = yes; then
13788   if test "$cross_compiling" = yes; then
13789   # Depending upon the size, compute the lo and hi bounds.
13790 cat >conftest.$ac_ext <<_ACEOF
13791 #line $LINENO "configure"
13792 #include "confdefs.h"
13793 $ac_includes_default
13794 struct { char filler; short field; } pgac_struct;
13795 #ifdef F77_DUMMY_MAIN
13796 #  ifdef __cplusplus
13797      extern "C"
13798 #  endif
13799    int F77_DUMMY_MAIN() { return 1; }
13800 #endif
13801 int
13802 main ()
13803 {
13804 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13805 test_array [0] = 0
13806
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813   (eval $ac_compile) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } &&
13817          { ac_try='test -s conftest.$ac_objext'
13818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819   (eval $ac_try) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823   ac_lo=0 ac_mid=0
13824   while :; do
13825     cat >conftest.$ac_ext <<_ACEOF
13826 #line $LINENO "configure"
13827 #include "confdefs.h"
13828 $ac_includes_default
13829 struct { char filler; short field; } pgac_struct;
13830 #ifdef F77_DUMMY_MAIN
13831 #  ifdef __cplusplus
13832      extern "C"
13833 #  endif
13834    int F77_DUMMY_MAIN() { return 1; }
13835 #endif
13836 int
13837 main ()
13838 {
13839 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13840 test_array [0] = 0
13841
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848   (eval $ac_compile) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -s conftest.$ac_objext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   ac_hi=$ac_mid; break
13859 else
13860   echo "$as_me: failed program was:" >&5
13861 cat conftest.$ac_ext >&5
13862 ac_lo=`expr $ac_mid + 1`
13863                     if test $ac_lo -le $ac_mid; then
13864                       ac_lo= ac_hi=
13865                       break
13866                     fi
13867                     ac_mid=`expr 2 '*' $ac_mid + 1`
13868 fi
13869 rm -f conftest.$ac_objext conftest.$ac_ext
13870   done
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 cat >conftest.$ac_ext <<_ACEOF
13875 #line $LINENO "configure"
13876 #include "confdefs.h"
13877 $ac_includes_default
13878 struct { char filler; short field; } pgac_struct;
13879 #ifdef F77_DUMMY_MAIN
13880 #  ifdef __cplusplus
13881      extern "C"
13882 #  endif
13883    int F77_DUMMY_MAIN() { return 1; }
13884 #endif
13885 int
13886 main ()
13887 {
13888 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13889 test_array [0] = 0
13890
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 rm -f conftest.$ac_objext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897   (eval $ac_compile) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } &&
13901          { ac_try='test -s conftest.$ac_objext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_hi=-1 ac_mid=-1
13908   while :; do
13909     cat >conftest.$ac_ext <<_ACEOF
13910 #line $LINENO "configure"
13911 #include "confdefs.h"
13912 $ac_includes_default
13913 struct { char filler; short field; } pgac_struct;
13914 #ifdef F77_DUMMY_MAIN
13915 #  ifdef __cplusplus
13916      extern "C"
13917 #  endif
13918    int F77_DUMMY_MAIN() { return 1; }
13919 #endif
13920 int
13921 main ()
13922 {
13923 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13924 test_array [0] = 0
13925
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932   (eval $ac_compile) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } &&
13936          { ac_try='test -s conftest.$ac_objext'
13937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938   (eval $ac_try) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; }; then
13942   ac_lo=$ac_mid; break
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 ac_hi=`expr '(' $ac_mid ')' - 1`
13947                        if test $ac_mid -le $ac_hi; then
13948                          ac_lo= ac_hi=
13949                          break
13950                        fi
13951                        ac_mid=`expr 2 '*' $ac_mid`
13952 fi
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13954   done
13955 else
13956   echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13958 ac_lo= ac_hi=
13959 fi
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13961 fi
13962 rm -f conftest.$ac_objext conftest.$ac_ext
13963 # Binary search between lo and hi bounds.
13964 while test "x$ac_lo" != "x$ac_hi"; do
13965   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13966   cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 #include "confdefs.h"
13969 $ac_includes_default
13970 struct { char filler; short field; } pgac_struct;
13971 #ifdef F77_DUMMY_MAIN
13972 #  ifdef __cplusplus
13973      extern "C"
13974 #  endif
13975    int F77_DUMMY_MAIN() { return 1; }
13976 #endif
13977 int
13978 main ()
13979 {
13980 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13981 test_array [0] = 0
13982
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989   (eval $ac_compile) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -s conftest.$ac_objext'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; }; then
13999   ac_hi=$ac_mid
14000 else
14001   echo "$as_me: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 ac_lo=`expr '(' $ac_mid ')' + 1`
14004 fi
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14006 done
14007 case $ac_lo in
14008 ?*) pgac_cv_alignof_short=$ac_lo;;
14009 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14010 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14011    { (exit 1); exit 1; }; } ;;
14012 esac
14013 else
14014   if test "$cross_compiling" = yes; then
14015   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14016 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14017    { (exit 1); exit 1; }; }
14018 else
14019   cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14021 #include "confdefs.h"
14022 $ac_includes_default
14023 struct { char filler; short field; } pgac_struct;
14024 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14025 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14026 #include <stdio.h>
14027 #include <stdlib.h>
14028 #ifdef F77_DUMMY_MAIN
14029 #  ifdef __cplusplus
14030      extern "C"
14031 #  endif
14032    int F77_DUMMY_MAIN() { return 1; }
14033 #endif
14034 int
14035 main ()
14036 {
14037
14038   FILE *f = fopen ("conftest.val", "w");
14039   if (! f)
14040     exit (1);
14041   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14042     {
14043       long i = longval ();
14044       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14045         exit (1);
14046       fprintf (f, "%ld\n", i);
14047     }
14048   else
14049     {
14050       unsigned long i = ulongval ();
14051       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14052         exit (1);
14053       fprintf (f, "%lu\n", i);
14054     }
14055   exit (ferror (f) || fclose (f) != 0);
14056
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063   (eval $ac_link) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072   pgac_cv_alignof_short=`cat conftest.val`
14073 else
14074   echo "$as_me: program exited with status $ac_status" >&5
14075 echo "$as_me: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 ( exit $ac_status )
14078 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14079 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14080    { (exit 1); exit 1; }; }
14081 fi
14082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14083 fi
14084 fi
14085 rm -f conftest.val
14086 else
14087   pgac_cv_alignof_short=0
14088 fi
14089 fi
14090 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14091 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14092 cat >>confdefs.h <<_ACEOF
14093 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14094 _ACEOF
14095
14096
14097 echo "$as_me:$LINENO: checking for int" >&5
14098 echo $ECHO_N "checking for int... $ECHO_C" >&6
14099 if test "${ac_cv_type_int+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   cat >conftest.$ac_ext <<_ACEOF
14103 #line $LINENO "configure"
14104 #include "confdefs.h"
14105 $ac_includes_default
14106 #ifdef F77_DUMMY_MAIN
14107 #  ifdef __cplusplus
14108      extern "C"
14109 #  endif
14110    int F77_DUMMY_MAIN() { return 1; }
14111 #endif
14112 int
14113 main ()
14114 {
14115 if ((int *) 0)
14116   return 0;
14117 if (sizeof (int))
14118   return 0;
14119   ;
14120   return 0;
14121 }
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125   (eval $ac_compile) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); } &&
14129          { ac_try='test -s conftest.$ac_objext'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   ac_cv_type_int=yes
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 cat conftest.$ac_ext >&5
14139 ac_cv_type_int=no
14140 fi
14141 rm -f conftest.$ac_objext conftest.$ac_ext
14142 fi
14143 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14144 echo "${ECHO_T}$ac_cv_type_int" >&6
14145
14146 echo "$as_me:$LINENO: checking alignment of int" >&5
14147 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14148 if test "${pgac_cv_alignof_int+set}" = set; then
14149   echo $ECHO_N "(cached) $ECHO_C" >&6
14150 else
14151   if test "$ac_cv_type_int" = yes; then
14152   if test "$cross_compiling" = yes; then
14153   # Depending upon the size, compute the lo and hi bounds.
14154 cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 #include "confdefs.h"
14157 $ac_includes_default
14158 struct { char filler; int field; } pgac_struct;
14159 #ifdef F77_DUMMY_MAIN
14160 #  ifdef __cplusplus
14161      extern "C"
14162 #  endif
14163    int F77_DUMMY_MAIN() { return 1; }
14164 #endif
14165 int
14166 main ()
14167 {
14168 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14169 test_array [0] = 0
14170
14171   ;
14172   return 0;
14173 }
14174 _ACEOF
14175 rm -f conftest.$ac_objext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177   (eval $ac_compile) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } &&
14181          { ac_try='test -s conftest.$ac_objext'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   ac_lo=0 ac_mid=0
14188   while :; do
14189     cat >conftest.$ac_ext <<_ACEOF
14190 #line $LINENO "configure"
14191 #include "confdefs.h"
14192 $ac_includes_default
14193 struct { char filler; int field; } pgac_struct;
14194 #ifdef F77_DUMMY_MAIN
14195 #  ifdef __cplusplus
14196      extern "C"
14197 #  endif
14198    int F77_DUMMY_MAIN() { return 1; }
14199 #endif
14200 int
14201 main ()
14202 {
14203 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14204 test_array [0] = 0
14205
14206   ;
14207   return 0;
14208 }
14209 _ACEOF
14210 rm -f conftest.$ac_objext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212   (eval $ac_compile) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -s conftest.$ac_objext'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; }; then
14222   ac_hi=$ac_mid; break
14223 else
14224   echo "$as_me: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 ac_lo=`expr $ac_mid + 1`
14227                     if test $ac_lo -le $ac_mid; then
14228                       ac_lo= ac_hi=
14229                       break
14230                     fi
14231                     ac_mid=`expr 2 '*' $ac_mid + 1`
14232 fi
14233 rm -f conftest.$ac_objext conftest.$ac_ext
14234   done
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14238 cat >conftest.$ac_ext <<_ACEOF
14239 #line $LINENO "configure"
14240 #include "confdefs.h"
14241 $ac_includes_default
14242 struct { char filler; int field; } pgac_struct;
14243 #ifdef F77_DUMMY_MAIN
14244 #  ifdef __cplusplus
14245      extern "C"
14246 #  endif
14247    int F77_DUMMY_MAIN() { return 1; }
14248 #endif
14249 int
14250 main ()
14251 {
14252 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14253 test_array [0] = 0
14254
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261   (eval $ac_compile) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } &&
14265          { ac_try='test -s conftest.$ac_objext'
14266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267   (eval $ac_try) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   ac_hi=-1 ac_mid=-1
14272   while :; do
14273     cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 #include "confdefs.h"
14276 $ac_includes_default
14277 struct { char filler; int field; } pgac_struct;
14278 #ifdef F77_DUMMY_MAIN
14279 #  ifdef __cplusplus
14280      extern "C"
14281 #  endif
14282    int F77_DUMMY_MAIN() { return 1; }
14283 #endif
14284 int
14285 main ()
14286 {
14287 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14288 test_array [0] = 0
14289
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296   (eval $ac_compile) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_lo=$ac_mid; break
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ac_hi=`expr '(' $ac_mid ')' - 1`
14311                        if test $ac_mid -le $ac_hi; then
14312                          ac_lo= ac_hi=
14313                          break
14314                        fi
14315                        ac_mid=`expr 2 '*' $ac_mid`
14316 fi
14317 rm -f conftest.$ac_objext conftest.$ac_ext
14318   done
14319 else
14320   echo "$as_me: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14322 ac_lo= ac_hi=
14323 fi
14324 rm -f conftest.$ac_objext conftest.$ac_ext
14325 fi
14326 rm -f conftest.$ac_objext conftest.$ac_ext
14327 # Binary search between lo and hi bounds.
14328 while test "x$ac_lo" != "x$ac_hi"; do
14329   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14330   cat >conftest.$ac_ext <<_ACEOF
14331 #line $LINENO "configure"
14332 #include "confdefs.h"
14333 $ac_includes_default
14334 struct { char filler; int field; } pgac_struct;
14335 #ifdef F77_DUMMY_MAIN
14336 #  ifdef __cplusplus
14337      extern "C"
14338 #  endif
14339    int F77_DUMMY_MAIN() { return 1; }
14340 #endif
14341 int
14342 main ()
14343 {
14344 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14345 test_array [0] = 0
14346
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353   (eval $ac_compile) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -s conftest.$ac_objext'
14358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359   (eval $ac_try) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   ac_hi=$ac_mid
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 cat conftest.$ac_ext >&5
14367 ac_lo=`expr '(' $ac_mid ')' + 1`
14368 fi
14369 rm -f conftest.$ac_objext conftest.$ac_ext
14370 done
14371 case $ac_lo in
14372 ?*) pgac_cv_alignof_int=$ac_lo;;
14373 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14374 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14375    { (exit 1); exit 1; }; } ;;
14376 esac
14377 else
14378   if test "$cross_compiling" = yes; then
14379   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14380 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14381    { (exit 1); exit 1; }; }
14382 else
14383   cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 #include "confdefs.h"
14386 $ac_includes_default
14387 struct { char filler; int field; } pgac_struct;
14388 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14389 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14390 #include <stdio.h>
14391 #include <stdlib.h>
14392 #ifdef F77_DUMMY_MAIN
14393 #  ifdef __cplusplus
14394      extern "C"
14395 #  endif
14396    int F77_DUMMY_MAIN() { return 1; }
14397 #endif
14398 int
14399 main ()
14400 {
14401
14402   FILE *f = fopen ("conftest.val", "w");
14403   if (! f)
14404     exit (1);
14405   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14406     {
14407       long i = longval ();
14408       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14409         exit (1);
14410       fprintf (f, "%ld\n", i);
14411     }
14412   else
14413     {
14414       unsigned long i = ulongval ();
14415       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14416         exit (1);
14417       fprintf (f, "%lu\n", i);
14418     }
14419   exit (ferror (f) || fclose (f) != 0);
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427   (eval $ac_link) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   pgac_cv_alignof_int=`cat conftest.val`
14437 else
14438   echo "$as_me: program exited with status $ac_status" >&5
14439 echo "$as_me: failed program was:" >&5
14440 cat conftest.$ac_ext >&5
14441 ( exit $ac_status )
14442 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14443 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14444    { (exit 1); exit 1; }; }
14445 fi
14446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14447 fi
14448 fi
14449 rm -f conftest.val
14450 else
14451   pgac_cv_alignof_int=0
14452 fi
14453 fi
14454 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14455 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14456 cat >>confdefs.h <<_ACEOF
14457 #define ALIGNOF_INT $pgac_cv_alignof_int
14458 _ACEOF
14459
14460
14461 echo "$as_me:$LINENO: checking for long" >&5
14462 echo $ECHO_N "checking for long... $ECHO_C" >&6
14463 if test "${ac_cv_type_long+set}" = set; then
14464   echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466   cat >conftest.$ac_ext <<_ACEOF
14467 #line $LINENO "configure"
14468 #include "confdefs.h"
14469 $ac_includes_default
14470 #ifdef F77_DUMMY_MAIN
14471 #  ifdef __cplusplus
14472      extern "C"
14473 #  endif
14474    int F77_DUMMY_MAIN() { return 1; }
14475 #endif
14476 int
14477 main ()
14478 {
14479 if ((long *) 0)
14480   return 0;
14481 if (sizeof (long))
14482   return 0;
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489   (eval $ac_compile) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); } &&
14493          { ac_try='test -s conftest.$ac_objext'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_cv_type_long=yes
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14503 ac_cv_type_long=no
14504 fi
14505 rm -f conftest.$ac_objext conftest.$ac_ext
14506 fi
14507 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14508 echo "${ECHO_T}$ac_cv_type_long" >&6
14509
14510 echo "$as_me:$LINENO: checking alignment of long" >&5
14511 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14512 if test "${pgac_cv_alignof_long+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   if test "$ac_cv_type_long" = yes; then
14516   if test "$cross_compiling" = yes; then
14517   # Depending upon the size, compute the lo and hi bounds.
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14520 #include "confdefs.h"
14521 $ac_includes_default
14522 struct { char filler; long field; } pgac_struct;
14523 #ifdef F77_DUMMY_MAIN
14524 #  ifdef __cplusplus
14525      extern "C"
14526 #  endif
14527    int F77_DUMMY_MAIN() { return 1; }
14528 #endif
14529 int
14530 main ()
14531 {
14532 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14533 test_array [0] = 0
14534
14535   ;
14536   return 0;
14537 }
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541   (eval $ac_compile) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); } &&
14545          { ac_try='test -s conftest.$ac_objext'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551   ac_lo=0 ac_mid=0
14552   while :; do
14553     cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14555 #include "confdefs.h"
14556 $ac_includes_default
14557 struct { char filler; long field; } pgac_struct;
14558 #ifdef F77_DUMMY_MAIN
14559 #  ifdef __cplusplus
14560      extern "C"
14561 #  endif
14562    int F77_DUMMY_MAIN() { return 1; }
14563 #endif
14564 int
14565 main ()
14566 {
14567 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14568 test_array [0] = 0
14569
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576   (eval $ac_compile) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); } &&
14580          { ac_try='test -s conftest.$ac_objext'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; }; then
14586   ac_hi=$ac_mid; break
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 ac_lo=`expr $ac_mid + 1`
14591                     if test $ac_lo -le $ac_mid; then
14592                       ac_lo= ac_hi=
14593                       break
14594                     fi
14595                     ac_mid=`expr 2 '*' $ac_mid + 1`
14596 fi
14597 rm -f conftest.$ac_objext conftest.$ac_ext
14598   done
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14604 #include "confdefs.h"
14605 $ac_includes_default
14606 struct { char filler; long field; } pgac_struct;
14607 #ifdef F77_DUMMY_MAIN
14608 #  ifdef __cplusplus
14609      extern "C"
14610 #  endif
14611    int F77_DUMMY_MAIN() { return 1; }
14612 #endif
14613 int
14614 main ()
14615 {
14616 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14617 test_array [0] = 0
14618
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625   (eval $ac_compile) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } &&
14629          { ac_try='test -s conftest.$ac_objext'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   ac_hi=-1 ac_mid=-1
14636   while :; do
14637     cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14640 $ac_includes_default
14641 struct { char filler; long field; } pgac_struct;
14642 #ifdef F77_DUMMY_MAIN
14643 #  ifdef __cplusplus
14644      extern "C"
14645 #  endif
14646    int F77_DUMMY_MAIN() { return 1; }
14647 #endif
14648 int
14649 main ()
14650 {
14651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14652 test_array [0] = 0
14653
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660   (eval $ac_compile) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ac_lo=$ac_mid; break
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14674 ac_hi=`expr '(' $ac_mid ')' - 1`
14675                        if test $ac_mid -le $ac_hi; then
14676                          ac_lo= ac_hi=
14677                          break
14678                        fi
14679                        ac_mid=`expr 2 '*' $ac_mid`
14680 fi
14681 rm -f conftest.$ac_objext conftest.$ac_ext
14682   done
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 ac_lo= ac_hi=
14687 fi
14688 rm -f conftest.$ac_objext conftest.$ac_ext
14689 fi
14690 rm -f conftest.$ac_objext conftest.$ac_ext
14691 # Binary search between lo and hi bounds.
14692 while test "x$ac_lo" != "x$ac_hi"; do
14693   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14694   cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; long field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 #  ifdef __cplusplus
14701      extern "C"
14702 #  endif
14703    int F77_DUMMY_MAIN() { return 1; }
14704 #endif
14705 int
14706 main ()
14707 {
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14709 test_array [0] = 0
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717   (eval $ac_compile) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }; then
14727   ac_hi=$ac_mid
14728 else
14729   echo "$as_me: failed program was:" >&5
14730 cat conftest.$ac_ext >&5
14731 ac_lo=`expr '(' $ac_mid ')' + 1`
14732 fi
14733 rm -f conftest.$ac_objext conftest.$ac_ext
14734 done
14735 case $ac_lo in
14736 ?*) pgac_cv_alignof_long=$ac_lo;;
14737 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14738 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14739    { (exit 1); exit 1; }; } ;;
14740 esac
14741 else
14742   if test "$cross_compiling" = yes; then
14743   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14744 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14745    { (exit 1); exit 1; }; }
14746 else
14747   cat >conftest.$ac_ext <<_ACEOF
14748 #line $LINENO "configure"
14749 #include "confdefs.h"
14750 $ac_includes_default
14751 struct { char filler; long field; } pgac_struct;
14752 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14753 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14754 #include <stdio.h>
14755 #include <stdlib.h>
14756 #ifdef F77_DUMMY_MAIN
14757 #  ifdef __cplusplus
14758      extern "C"
14759 #  endif
14760    int F77_DUMMY_MAIN() { return 1; }
14761 #endif
14762 int
14763 main ()
14764 {
14765
14766   FILE *f = fopen ("conftest.val", "w");
14767   if (! f)
14768     exit (1);
14769   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14770     {
14771       long i = longval ();
14772       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14773         exit (1);
14774       fprintf (f, "%ld\n", i);
14775     }
14776   else
14777     {
14778       unsigned long i = ulongval ();
14779       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14780         exit (1);
14781       fprintf (f, "%lu\n", i);
14782     }
14783   exit (ferror (f) || fclose (f) != 0);
14784
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest$ac_exeext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14791   (eval $ac_link) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796   (eval $ac_try) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); }; }; then
14800   pgac_cv_alignof_long=`cat conftest.val`
14801 else
14802   echo "$as_me: program exited with status $ac_status" >&5
14803 echo "$as_me: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 ( exit $ac_status )
14806 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14807 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14808    { (exit 1); exit 1; }; }
14809 fi
14810 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14811 fi
14812 fi
14813 rm -f conftest.val
14814 else
14815   pgac_cv_alignof_long=0
14816 fi
14817 fi
14818 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14819 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14820 cat >>confdefs.h <<_ACEOF
14821 #define ALIGNOF_LONG $pgac_cv_alignof_long
14822 _ACEOF
14823
14824
14825 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14826   echo "$as_me:$LINENO: checking for long long int" >&5
14827 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14828 if test "${ac_cv_type_long_long_int+set}" = set; then
14829   echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831   cat >conftest.$ac_ext <<_ACEOF
14832 #line $LINENO "configure"
14833 #include "confdefs.h"
14834 $ac_includes_default
14835 #ifdef F77_DUMMY_MAIN
14836 #  ifdef __cplusplus
14837      extern "C"
14838 #  endif
14839    int F77_DUMMY_MAIN() { return 1; }
14840 #endif
14841 int
14842 main ()
14843 {
14844 if ((long long int *) 0)
14845   return 0;
14846 if (sizeof (long long int))
14847   return 0;
14848   ;
14849   return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854   (eval $ac_compile) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } &&
14858          { ac_try='test -s conftest.$ac_objext'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; }; then
14864   ac_cv_type_long_long_int=yes
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ac_cv_type_long_long_int=no
14869 fi
14870 rm -f conftest.$ac_objext conftest.$ac_ext
14871 fi
14872 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14873 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14874
14875 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14876 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14877 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   if test "$ac_cv_type_long_long_int" = yes; then
14881   if test "$cross_compiling" = yes; then
14882   # Depending upon the size, compute the lo and hi bounds.
14883 cat >conftest.$ac_ext <<_ACEOF
14884 #line $LINENO "configure"
14885 #include "confdefs.h"
14886 $ac_includes_default
14887 struct { char filler; long long int field; } pgac_struct;
14888 #ifdef F77_DUMMY_MAIN
14889 #  ifdef __cplusplus
14890      extern "C"
14891 #  endif
14892    int F77_DUMMY_MAIN() { return 1; }
14893 #endif
14894 int
14895 main ()
14896 {
14897 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14898 test_array [0] = 0
14899
14900   ;
14901   return 0;
14902 }
14903 _ACEOF
14904 rm -f conftest.$ac_objext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14906   (eval $ac_compile) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -s conftest.$ac_objext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_lo=0 ac_mid=0
14917   while :; do
14918     cat >conftest.$ac_ext <<_ACEOF
14919 #line $LINENO "configure"
14920 #include "confdefs.h"
14921 $ac_includes_default
14922 struct { char filler; long long int field; } pgac_struct;
14923 #ifdef F77_DUMMY_MAIN
14924 #  ifdef __cplusplus
14925      extern "C"
14926 #  endif
14927    int F77_DUMMY_MAIN() { return 1; }
14928 #endif
14929 int
14930 main ()
14931 {
14932 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14933 test_array [0] = 0
14934
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941   (eval $ac_compile) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   ac_hi=$ac_mid; break
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14955 ac_lo=`expr $ac_mid + 1`
14956                     if test $ac_lo -le $ac_mid; then
14957                       ac_lo= ac_hi=
14958                       break
14959                     fi
14960                     ac_mid=`expr 2 '*' $ac_mid + 1`
14961 fi
14962 rm -f conftest.$ac_objext conftest.$ac_ext
14963   done
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14969 #include "confdefs.h"
14970 $ac_includes_default
14971 struct { char filler; long long int field; } pgac_struct;
14972 #ifdef F77_DUMMY_MAIN
14973 #  ifdef __cplusplus
14974      extern "C"
14975 #  endif
14976    int F77_DUMMY_MAIN() { return 1; }
14977 #endif
14978 int
14979 main ()
14980 {
14981 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14982 test_array [0] = 0
14983
14984   ;
14985   return 0;
14986 }
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14990   (eval $ac_compile) 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } &&
14994          { ac_try='test -s conftest.$ac_objext'
14995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996   (eval $ac_try) 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; }; then
15000   ac_hi=-1 ac_mid=-1
15001   while :; do
15002     cat >conftest.$ac_ext <<_ACEOF
15003 #line $LINENO "configure"
15004 #include "confdefs.h"
15005 $ac_includes_default
15006 struct { char filler; long long int field; } pgac_struct;
15007 #ifdef F77_DUMMY_MAIN
15008 #  ifdef __cplusplus
15009      extern "C"
15010 #  endif
15011    int F77_DUMMY_MAIN() { return 1; }
15012 #endif
15013 int
15014 main ()
15015 {
15016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15017 test_array [0] = 0
15018
15019   ;
15020   return 0;
15021 }
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025   (eval $ac_compile) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); } &&
15029          { ac_try='test -s conftest.$ac_objext'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; }; then
15035   ac_lo=$ac_mid; break
15036 else
15037   echo "$as_me: failed program was:" >&5
15038 cat conftest.$ac_ext >&5
15039 ac_hi=`expr '(' $ac_mid ')' - 1`
15040                        if test $ac_mid -le $ac_hi; then
15041                          ac_lo= ac_hi=
15042                          break
15043                        fi
15044                        ac_mid=`expr 2 '*' $ac_mid`
15045 fi
15046 rm -f conftest.$ac_objext conftest.$ac_ext
15047   done
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15051 ac_lo= ac_hi=
15052 fi
15053 rm -f conftest.$ac_objext conftest.$ac_ext
15054 fi
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15056 # Binary search between lo and hi bounds.
15057 while test "x$ac_lo" != "x$ac_hi"; do
15058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15059   cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 $ac_includes_default
15063 struct { char filler; long long int field; } pgac_struct;
15064 #ifdef F77_DUMMY_MAIN
15065 #  ifdef __cplusplus
15066      extern "C"
15067 #  endif
15068    int F77_DUMMY_MAIN() { return 1; }
15069 #endif
15070 int
15071 main ()
15072 {
15073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15074 test_array [0] = 0
15075
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082   (eval $ac_compile) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); } &&
15086          { ac_try='test -s conftest.$ac_objext'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; }; then
15092   ac_hi=$ac_mid
15093 else
15094   echo "$as_me: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15096 ac_lo=`expr '(' $ac_mid ')' + 1`
15097 fi
15098 rm -f conftest.$ac_objext conftest.$ac_ext
15099 done
15100 case $ac_lo in
15101 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15102 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15103 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15104    { (exit 1); exit 1; }; } ;;
15105 esac
15106 else
15107   if test "$cross_compiling" = yes; then
15108   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15109 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15110    { (exit 1); exit 1; }; }
15111 else
15112   cat >conftest.$ac_ext <<_ACEOF
15113 #line $LINENO "configure"
15114 #include "confdefs.h"
15115 $ac_includes_default
15116 struct { char filler; long long int field; } pgac_struct;
15117 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15118 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15119 #include <stdio.h>
15120 #include <stdlib.h>
15121 #ifdef F77_DUMMY_MAIN
15122 #  ifdef __cplusplus
15123      extern "C"
15124 #  endif
15125    int F77_DUMMY_MAIN() { return 1; }
15126 #endif
15127 int
15128 main ()
15129 {
15130
15131   FILE *f = fopen ("conftest.val", "w");
15132   if (! f)
15133     exit (1);
15134   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15135     {
15136       long i = longval ();
15137       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15138         exit (1);
15139       fprintf (f, "%ld\n", i);
15140     }
15141   else
15142     {
15143       unsigned long i = ulongval ();
15144       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15145         exit (1);
15146       fprintf (f, "%lu\n", i);
15147     }
15148   exit (ferror (f) || fclose (f) != 0);
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156   (eval $ac_link) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161   (eval $ac_try) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   pgac_cv_alignof_long_long_int=`cat conftest.val`
15166 else
15167   echo "$as_me: program exited with status $ac_status" >&5
15168 echo "$as_me: failed program was:" >&5
15169 cat conftest.$ac_ext >&5
15170 ( exit $ac_status )
15171 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15172 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15173    { (exit 1); exit 1; }; }
15174 fi
15175 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15176 fi
15177 fi
15178 rm -f conftest.val
15179 else
15180   pgac_cv_alignof_long_long_int=0
15181 fi
15182 fi
15183 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15184 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15185 cat >>confdefs.h <<_ACEOF
15186 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15187 _ACEOF
15188
15189
15190 fi
15191 echo "$as_me:$LINENO: checking for double" >&5
15192 echo $ECHO_N "checking for double... $ECHO_C" >&6
15193 if test "${ac_cv_type_double+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196   cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15198 #include "confdefs.h"
15199 $ac_includes_default
15200 #ifdef F77_DUMMY_MAIN
15201 #  ifdef __cplusplus
15202      extern "C"
15203 #  endif
15204    int F77_DUMMY_MAIN() { return 1; }
15205 #endif
15206 int
15207 main ()
15208 {
15209 if ((double *) 0)
15210   return 0;
15211 if (sizeof (double))
15212   return 0;
15213   ;
15214   return 0;
15215 }
15216 _ACEOF
15217 rm -f conftest.$ac_objext
15218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15219   (eval $ac_compile) 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } &&
15223          { ac_try='test -s conftest.$ac_objext'
15224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225   (eval $ac_try) 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }; }; then
15229   ac_cv_type_double=yes
15230 else
15231   echo "$as_me: failed program was:" >&5
15232 cat conftest.$ac_ext >&5
15233 ac_cv_type_double=no
15234 fi
15235 rm -f conftest.$ac_objext conftest.$ac_ext
15236 fi
15237 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15238 echo "${ECHO_T}$ac_cv_type_double" >&6
15239
15240 echo "$as_me:$LINENO: checking alignment of double" >&5
15241 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15242 if test "${pgac_cv_alignof_double+set}" = set; then
15243   echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245   if test "$ac_cv_type_double" = yes; then
15246   if test "$cross_compiling" = yes; then
15247   # Depending upon the size, compute the lo and hi bounds.
15248 cat >conftest.$ac_ext <<_ACEOF
15249 #line $LINENO "configure"
15250 #include "confdefs.h"
15251 $ac_includes_default
15252 struct { char filler; double field; } pgac_struct;
15253 #ifdef F77_DUMMY_MAIN
15254 #  ifdef __cplusplus
15255      extern "C"
15256 #  endif
15257    int F77_DUMMY_MAIN() { return 1; }
15258 #endif
15259 int
15260 main ()
15261 {
15262 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15263 test_array [0] = 0
15264
15265   ;
15266   return 0;
15267 }
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271   (eval $ac_compile) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -s conftest.$ac_objext'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   ac_lo=0 ac_mid=0
15282   while :; do
15283     cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15285 #include "confdefs.h"
15286 $ac_includes_default
15287 struct { char filler; double field; } pgac_struct;
15288 #ifdef F77_DUMMY_MAIN
15289 #  ifdef __cplusplus
15290      extern "C"
15291 #  endif
15292    int F77_DUMMY_MAIN() { return 1; }
15293 #endif
15294 int
15295 main ()
15296 {
15297 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15298 test_array [0] = 0
15299
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306   (eval $ac_compile) 2>&5
15307   ac_status=$?
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } &&
15310          { ac_try='test -s conftest.$ac_objext'
15311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312   (eval $ac_try) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; }; then
15316   ac_hi=$ac_mid; break
15317 else
15318   echo "$as_me: failed program was:" >&5
15319 cat conftest.$ac_ext >&5
15320 ac_lo=`expr $ac_mid + 1`
15321                     if test $ac_lo -le $ac_mid; then
15322                       ac_lo= ac_hi=
15323                       break
15324                     fi
15325                     ac_mid=`expr 2 '*' $ac_mid + 1`
15326 fi
15327 rm -f conftest.$ac_objext conftest.$ac_ext
15328   done
15329 else
15330   echo "$as_me: failed program was:" >&5
15331 cat conftest.$ac_ext >&5
15332 cat >conftest.$ac_ext <<_ACEOF
15333 #line $LINENO "configure"
15334 #include "confdefs.h"
15335 $ac_includes_default
15336 struct { char filler; double field; } pgac_struct;
15337 #ifdef F77_DUMMY_MAIN
15338 #  ifdef __cplusplus
15339      extern "C"
15340 #  endif
15341    int F77_DUMMY_MAIN() { return 1; }
15342 #endif
15343 int
15344 main ()
15345 {
15346 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15347 test_array [0] = 0
15348
15349   ;
15350   return 0;
15351 }
15352 _ACEOF
15353 rm -f conftest.$ac_objext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15355   (eval $ac_compile) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } &&
15359          { ac_try='test -s conftest.$ac_objext'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365   ac_hi=-1 ac_mid=-1
15366   while :; do
15367     cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 #include "confdefs.h"
15370 $ac_includes_default
15371 struct { char filler; double field; } pgac_struct;
15372 #ifdef F77_DUMMY_MAIN
15373 #  ifdef __cplusplus
15374      extern "C"
15375 #  endif
15376    int F77_DUMMY_MAIN() { return 1; }
15377 #endif
15378 int
15379 main ()
15380 {
15381 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15382 test_array [0] = 0
15383
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15390   (eval $ac_compile) 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -s conftest.$ac_objext'
15395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396   (eval $ac_try) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; }; then
15400   ac_lo=$ac_mid; break
15401 else
15402   echo "$as_me: failed program was:" >&5
15403 cat conftest.$ac_ext >&5
15404 ac_hi=`expr '(' $ac_mid ')' - 1`
15405                        if test $ac_mid -le $ac_hi; then
15406                          ac_lo= ac_hi=
15407                          break
15408                        fi
15409                        ac_mid=`expr 2 '*' $ac_mid`
15410 fi
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15412   done
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 cat conftest.$ac_ext >&5
15416 ac_lo= ac_hi=
15417 fi
15418 rm -f conftest.$ac_objext conftest.$ac_ext
15419 fi
15420 rm -f conftest.$ac_objext conftest.$ac_ext
15421 # Binary search between lo and hi bounds.
15422 while test "x$ac_lo" != "x$ac_hi"; do
15423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15424   cat >conftest.$ac_ext <<_ACEOF
15425 #line $LINENO "configure"
15426 #include "confdefs.h"
15427 $ac_includes_default
15428 struct { char filler; double field; } pgac_struct;
15429 #ifdef F77_DUMMY_MAIN
15430 #  ifdef __cplusplus
15431      extern "C"
15432 #  endif
15433    int F77_DUMMY_MAIN() { return 1; }
15434 #endif
15435 int
15436 main ()
15437 {
15438 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15439 test_array [0] = 0
15440
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest.$ac_objext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447   (eval $ac_compile) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); } &&
15451          { ac_try='test -s conftest.$ac_objext'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; }; then
15457   ac_hi=$ac_mid
15458 else
15459   echo "$as_me: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 ac_lo=`expr '(' $ac_mid ')' + 1`
15462 fi
15463 rm -f conftest.$ac_objext conftest.$ac_ext
15464 done
15465 case $ac_lo in
15466 ?*) pgac_cv_alignof_double=$ac_lo;;
15467 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15468 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15469    { (exit 1); exit 1; }; } ;;
15470 esac
15471 else
15472   if test "$cross_compiling" = yes; then
15473   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15474 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15475    { (exit 1); exit 1; }; }
15476 else
15477   cat >conftest.$ac_ext <<_ACEOF
15478 #line $LINENO "configure"
15479 #include "confdefs.h"
15480 $ac_includes_default
15481 struct { char filler; double field; } pgac_struct;
15482 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15483 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15484 #include <stdio.h>
15485 #include <stdlib.h>
15486 #ifdef F77_DUMMY_MAIN
15487 #  ifdef __cplusplus
15488      extern "C"
15489 #  endif
15490    int F77_DUMMY_MAIN() { return 1; }
15491 #endif
15492 int
15493 main ()
15494 {
15495
15496   FILE *f = fopen ("conftest.val", "w");
15497   if (! f)
15498     exit (1);
15499   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15500     {
15501       long i = longval ();
15502       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15503         exit (1);
15504       fprintf (f, "%ld\n", i);
15505     }
15506   else
15507     {
15508       unsigned long i = ulongval ();
15509       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15510         exit (1);
15511       fprintf (f, "%lu\n", i);
15512     }
15513   exit (ferror (f) || fclose (f) != 0);
15514
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521   (eval $ac_link) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526   (eval $ac_try) 2>&5
15527   ac_status=$?
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); }; }; then
15530   pgac_cv_alignof_double=`cat conftest.val`
15531 else
15532   echo "$as_me: program exited with status $ac_status" >&5
15533 echo "$as_me: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 ( exit $ac_status )
15536 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15537 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15538    { (exit 1); exit 1; }; }
15539 fi
15540 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15541 fi
15542 fi
15543 rm -f conftest.val
15544 else
15545   pgac_cv_alignof_double=0
15546 fi
15547 fi
15548 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15549 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15550 cat >>confdefs.h <<_ACEOF
15551 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15552 _ACEOF
15553
15554
15555
15556 # Compute maximum alignment of any basic type.
15557 # We assume long's alignment is at least as strong as char, short, or int;
15558 # but we must check long long (if it exists) and double.
15559
15560 MAX_ALIGNOF=$pgac_cv_alignof_long
15561 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15562   MAX_ALIGNOF=$pgac_cv_alignof_double
15563 fi
15564 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15565   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15566 fi
15567
15568 cat >>confdefs.h <<_ACEOF
15569 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15570 _ACEOF
15571
15572
15573
15574 # Some platforms predefine the types int8, int16, etc.  Only check
15575 # a (hopefully) representative subset.
15576 echo "$as_me:$LINENO: checking for int8" >&5
15577 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15578 if test "${ac_cv_type_int8+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 #include "confdefs.h"
15584 #include <stdio.h>
15585 #ifdef HAVE_SUPPORTDEFS_H
15586 #include <SupportDefs.h>
15587 #endif
15588
15589 #ifdef F77_DUMMY_MAIN
15590 #  ifdef __cplusplus
15591      extern "C"
15592 #  endif
15593    int F77_DUMMY_MAIN() { return 1; }
15594 #endif
15595 int
15596 main ()
15597 {
15598 if ((int8 *) 0)
15599   return 0;
15600 if (sizeof (int8))
15601   return 0;
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608   (eval $ac_compile) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); } &&
15612          { ac_try='test -s conftest.$ac_objext'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   ac_cv_type_int8=yes
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 ac_cv_type_int8=no
15623 fi
15624 rm -f conftest.$ac_objext conftest.$ac_ext
15625 fi
15626 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15627 echo "${ECHO_T}$ac_cv_type_int8" >&6
15628 if test $ac_cv_type_int8 = yes; then
15629
15630 cat >>confdefs.h <<_ACEOF
15631 #define HAVE_INT8 1
15632 _ACEOF
15633
15634
15635 fi
15636 echo "$as_me:$LINENO: checking for uint8" >&5
15637 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15638 if test "${ac_cv_type_uint8+set}" = set; then
15639   echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641   cat >conftest.$ac_ext <<_ACEOF
15642 #line $LINENO "configure"
15643 #include "confdefs.h"
15644 #include <stdio.h>
15645 #ifdef HAVE_SUPPORTDEFS_H
15646 #include <SupportDefs.h>
15647 #endif
15648
15649 #ifdef F77_DUMMY_MAIN
15650 #  ifdef __cplusplus
15651      extern "C"
15652 #  endif
15653    int F77_DUMMY_MAIN() { return 1; }
15654 #endif
15655 int
15656 main ()
15657 {
15658 if ((uint8 *) 0)
15659   return 0;
15660 if (sizeof (uint8))
15661   return 0;
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668   (eval $ac_compile) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } &&
15672          { ac_try='test -s conftest.$ac_objext'
15673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674   (eval $ac_try) 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_cv_type_uint8=yes
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15682 ac_cv_type_uint8=no
15683 fi
15684 rm -f conftest.$ac_objext conftest.$ac_ext
15685 fi
15686 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15687 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15688 if test $ac_cv_type_uint8 = yes; then
15689
15690 cat >>confdefs.h <<_ACEOF
15691 #define HAVE_UINT8 1
15692 _ACEOF
15693
15694
15695 fi
15696 echo "$as_me:$LINENO: checking for int64" >&5
15697 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15698 if test "${ac_cv_type_int64+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15703 #include "confdefs.h"
15704 #include <stdio.h>
15705 #ifdef HAVE_SUPPORTDEFS_H
15706 #include <SupportDefs.h>
15707 #endif
15708
15709 #ifdef F77_DUMMY_MAIN
15710 #  ifdef __cplusplus
15711      extern "C"
15712 #  endif
15713    int F77_DUMMY_MAIN() { return 1; }
15714 #endif
15715 int
15716 main ()
15717 {
15718 if ((int64 *) 0)
15719   return 0;
15720 if (sizeof (int64))
15721   return 0;
15722   ;
15723   return 0;
15724 }
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728   (eval $ac_compile) 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -s conftest.$ac_objext'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; }; then
15738   ac_cv_type_int64=yes
15739 else
15740   echo "$as_me: failed program was:" >&5
15741 cat conftest.$ac_ext >&5
15742 ac_cv_type_int64=no
15743 fi
15744 rm -f conftest.$ac_objext conftest.$ac_ext
15745 fi
15746 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15747 echo "${ECHO_T}$ac_cv_type_int64" >&6
15748 if test $ac_cv_type_int64 = yes; then
15749
15750 cat >>confdefs.h <<_ACEOF
15751 #define HAVE_INT64 1
15752 _ACEOF
15753
15754
15755 fi
15756 echo "$as_me:$LINENO: checking for uint64" >&5
15757 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15758 if test "${ac_cv_type_uint64+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15763 #include "confdefs.h"
15764 #include <stdio.h>
15765 #ifdef HAVE_SUPPORTDEFS_H
15766 #include <SupportDefs.h>
15767 #endif
15768
15769 #ifdef F77_DUMMY_MAIN
15770 #  ifdef __cplusplus
15771      extern "C"
15772 #  endif
15773    int F77_DUMMY_MAIN() { return 1; }
15774 #endif
15775 int
15776 main ()
15777 {
15778 if ((uint64 *) 0)
15779   return 0;
15780 if (sizeof (uint64))
15781   return 0;
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15788   (eval $ac_compile) 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -s conftest.$ac_objext'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   ac_cv_type_uint64=yes
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 cat conftest.$ac_ext >&5
15802 ac_cv_type_uint64=no
15803 fi
15804 rm -f conftest.$ac_objext conftest.$ac_ext
15805 fi
15806 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15807 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15808 if test $ac_cv_type_uint64 = yes; then
15809
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_UINT64 1
15812 _ACEOF
15813
15814
15815 fi
15816
15817
15818 # We also check for sig_atomic_t, which *should* be defined per ANSI
15819 # C, but is missing on some old platforms.
15820 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15821 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15822 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   cat >conftest.$ac_ext <<_ACEOF
15826 #line $LINENO "configure"
15827 #include "confdefs.h"
15828 #include <signal.h>
15829
15830 #ifdef F77_DUMMY_MAIN
15831 #  ifdef __cplusplus
15832      extern "C"
15833 #  endif
15834    int F77_DUMMY_MAIN() { return 1; }
15835 #endif
15836 int
15837 main ()
15838 {
15839 if ((sig_atomic_t *) 0)
15840   return 0;
15841 if (sizeof (sig_atomic_t))
15842   return 0;
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849   (eval $ac_compile) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } &&
15853          { ac_try='test -s conftest.$ac_objext'
15854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855   (eval $ac_try) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; }; then
15859   ac_cv_type_sig_atomic_t=yes
15860 else
15861   echo "$as_me: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 ac_cv_type_sig_atomic_t=no
15864 fi
15865 rm -f conftest.$ac_objext conftest.$ac_ext
15866 fi
15867 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15868 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15869 if test $ac_cv_type_sig_atomic_t = yes; then
15870
15871 cat >>confdefs.h <<_ACEOF
15872 #define HAVE_SIG_ATOMIC_T 1
15873 _ACEOF
15874
15875
15876 fi
15877
15878
15879
15880 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15881 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15882 if test "${pgac_cv_func_posix_signals+set}" = set; then
15883   echo $ECHO_N "(cached) $ECHO_C" >&6
15884 else
15885   cat >conftest.$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15887 #include "confdefs.h"
15888 #include <signal.h>
15889
15890 #ifdef F77_DUMMY_MAIN
15891 #  ifdef __cplusplus
15892      extern "C"
15893 #  endif
15894    int F77_DUMMY_MAIN() { return 1; }
15895 #endif
15896 int
15897 main ()
15898 {
15899 struct sigaction act, oact;
15900 sigemptyset(&act.sa_mask);
15901 act.sa_flags = SA_RESTART;
15902 sigaction(0, &act, &oact);
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909   (eval $ac_link) 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); } &&
15913          { ac_try='test -s conftest$ac_exeext'
15914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915   (eval $ac_try) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }; then
15919   pgac_cv_func_posix_signals=yes
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 cat conftest.$ac_ext >&5
15923 pgac_cv_func_posix_signals=no
15924 fi
15925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15926 fi
15927 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15928 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15929 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15930
15931 cat >>confdefs.h <<\_ACEOF
15932 #define HAVE_POSIX_SIGNALS
15933 _ACEOF
15934
15935 fi
15936 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15937
15938 if test $ac_cv_func_fseeko = yes; then
15939 # Check whether --enable-largefile or --disable-largefile was given.
15940 if test "${enable_largefile+set}" = set; then
15941   enableval="$enable_largefile"
15942
15943 fi;
15944 if test "$enable_largefile" != no; then
15945
15946   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15947 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15948 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15949   echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951   ac_cv_sys_largefile_CC=no
15952      if test "$GCC" != yes; then
15953        ac_save_CC=$CC
15954        while :; do
15955          # IRIX 6.2 and later do not support large files by default,
15956          # so use the C compiler's -n32 option if that helps.
15957          cat >conftest.$ac_ext <<_ACEOF
15958 #line $LINENO "configure"
15959 #include "confdefs.h"
15960 #include <sys/types.h>
15961  /* Check that off_t can represent 2**63 - 1 correctly.
15962     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15963     since some C++ compilers masquerading as C compilers
15964     incorrectly reject 9223372036854775807.  */
15965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15966   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15967                        && LARGE_OFF_T % 2147483647 == 1)
15968                       ? 1 : -1];
15969 #ifdef F77_DUMMY_MAIN
15970 #  ifdef __cplusplus
15971      extern "C"
15972 #  endif
15973    int F77_DUMMY_MAIN() { return 1; }
15974 #endif
15975 int
15976 main ()
15977 {
15978
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983          rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985   (eval $ac_compile) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } &&
15989          { ac_try='test -s conftest.$ac_objext'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995   break
15996 else
15997   echo "$as_me: failed program was:" >&5
15998 cat conftest.$ac_ext >&5
15999 fi
16000 rm -f conftest.$ac_objext
16001          CC="$CC -n32"
16002          rm -f conftest.$ac_objext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004   (eval $ac_compile) 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } &&
16008          { ac_try='test -s conftest.$ac_objext'
16009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010   (eval $ac_try) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; }; then
16014   ac_cv_sys_largefile_CC=' -n32'; break
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16018 fi
16019 rm -f conftest.$ac_objext
16020          break
16021        done
16022        CC=$ac_save_CC
16023        rm -f conftest.$ac_ext
16024     fi
16025 fi
16026 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16027 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16028   if test "$ac_cv_sys_largefile_CC" != no; then
16029     CC=$CC$ac_cv_sys_largefile_CC
16030   fi
16031
16032   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16033 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16034 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16035   echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037   while :; do
16038   ac_cv_sys_file_offset_bits=no
16039   cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 #include "confdefs.h"
16042 #include <sys/types.h>
16043  /* Check that off_t can represent 2**63 - 1 correctly.
16044     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16045     since some C++ compilers masquerading as C compilers
16046     incorrectly reject 9223372036854775807.  */
16047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16048   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16049                        && LARGE_OFF_T % 2147483647 == 1)
16050                       ? 1 : -1];
16051 #ifdef F77_DUMMY_MAIN
16052 #  ifdef __cplusplus
16053      extern "C"
16054 #  endif
16055    int F77_DUMMY_MAIN() { return 1; }
16056 #endif
16057 int
16058 main ()
16059 {
16060
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067   (eval $ac_compile) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } &&
16071          { ac_try='test -s conftest.$ac_objext'
16072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073   (eval $ac_try) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); }; }; then
16077   break
16078 else
16079   echo "$as_me: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16081 fi
16082 rm -f conftest.$ac_objext conftest.$ac_ext
16083   cat >conftest.$ac_ext <<_ACEOF
16084 #line $LINENO "configure"
16085 #include "confdefs.h"
16086 #define _FILE_OFFSET_BITS 64
16087 #include <sys/types.h>
16088  /* Check that off_t can represent 2**63 - 1 correctly.
16089     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16090     since some C++ compilers masquerading as C compilers
16091     incorrectly reject 9223372036854775807.  */
16092 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16093   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16094                        && LARGE_OFF_T % 2147483647 == 1)
16095                       ? 1 : -1];
16096 #ifdef F77_DUMMY_MAIN
16097 #  ifdef __cplusplus
16098      extern "C"
16099 #  endif
16100    int F77_DUMMY_MAIN() { return 1; }
16101 #endif
16102 int
16103 main ()
16104 {
16105
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16112   (eval $ac_compile) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } &&
16116          { ac_try='test -s conftest.$ac_objext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   ac_cv_sys_file_offset_bits=64; break
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16126 fi
16127 rm -f conftest.$ac_objext conftest.$ac_ext
16128   break
16129 done
16130 fi
16131 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16132 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16133 if test "$ac_cv_sys_file_offset_bits" != no; then
16134
16135 cat >>confdefs.h <<_ACEOF
16136 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16137 _ACEOF
16138
16139 fi
16140 rm -f conftest*
16141   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16142 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16143 if test "${ac_cv_sys_large_files+set}" = set; then
16144   echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146   while :; do
16147   ac_cv_sys_large_files=no
16148   cat >conftest.$ac_ext <<_ACEOF
16149 #line $LINENO "configure"
16150 #include "confdefs.h"
16151 #include <sys/types.h>
16152  /* Check that off_t can represent 2**63 - 1 correctly.
16153     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16154     since some C++ compilers masquerading as C compilers
16155     incorrectly reject 9223372036854775807.  */
16156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16157   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16158                        && LARGE_OFF_T % 2147483647 == 1)
16159                       ? 1 : -1];
16160 #ifdef F77_DUMMY_MAIN
16161 #  ifdef __cplusplus
16162      extern "C"
16163 #  endif
16164    int F77_DUMMY_MAIN() { return 1; }
16165 #endif
16166 int
16167 main ()
16168 {
16169
16170   ;
16171   return 0;
16172 }
16173 _ACEOF
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176   (eval $ac_compile) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } &&
16180          { ac_try='test -s conftest.$ac_objext'
16181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182   (eval $ac_try) 2>&5
16183   ac_status=$?
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); }; }; then
16186   break
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16190 fi
16191 rm -f conftest.$ac_objext conftest.$ac_ext
16192   cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16195 #define _LARGE_FILES 1
16196 #include <sys/types.h>
16197  /* Check that off_t can represent 2**63 - 1 correctly.
16198     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16199     since some C++ compilers masquerading as C compilers
16200     incorrectly reject 9223372036854775807.  */
16201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16202   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16203                        && LARGE_OFF_T % 2147483647 == 1)
16204                       ? 1 : -1];
16205 #ifdef F77_DUMMY_MAIN
16206 #  ifdef __cplusplus
16207      extern "C"
16208 #  endif
16209    int F77_DUMMY_MAIN() { return 1; }
16210 #endif
16211 int
16212 main ()
16213 {
16214
16215   ;
16216   return 0;
16217 }
16218 _ACEOF
16219 rm -f conftest.$ac_objext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221   (eval $ac_compile) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); } &&
16225          { ac_try='test -s conftest.$ac_objext'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; }; then
16231   ac_cv_sys_large_files=1; break
16232 else
16233   echo "$as_me: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16235 fi
16236 rm -f conftest.$ac_objext conftest.$ac_ext
16237   break
16238 done
16239 fi
16240 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16241 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16242 if test "$ac_cv_sys_large_files" != no; then
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define _LARGE_FILES $ac_cv_sys_large_files
16246 _ACEOF
16247
16248 fi
16249 rm -f conftest*
16250 fi
16251
16252 fi
16253
16254
16255 # Select semaphore implementation type.
16256 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16257
16258 cat >>confdefs.h <<\_ACEOF
16259 #define USE_NAMED_POSIX_SEMAPHORES 1
16260 _ACEOF
16261
16262   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16263 else
16264   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16265
16266 cat >>confdefs.h <<\_ACEOF
16267 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16268 _ACEOF
16269
16270     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16271   else
16272
16273 cat >>confdefs.h <<\_ACEOF
16274 #define USE_SYSV_SEMAPHORES 1
16275 _ACEOF
16276
16277     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16278   fi
16279 fi
16280
16281
16282 # Select shared-memory implementation type.
16283
16284 cat >>confdefs.h <<\_ACEOF
16285 #define USE_SYSV_SHARED_MEMORY 1
16286 _ACEOF
16287
16288 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16289
16290
16291 if test "$enable_nls" = yes ; then
16292
16293   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16294 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16295 if test "${ac_cv_search_gettext+set}" = set; then
16296   echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298   ac_func_search_save_LIBS=$LIBS
16299 ac_cv_search_gettext=no
16300 cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 #include "confdefs.h"
16303
16304 /* Override any gcc2 internal prototype to avoid an error.  */
16305 #ifdef __cplusplus
16306 extern "C"
16307 #endif
16308 /* We use char because int might match the return type of a gcc2
16309    builtin and then its argument prototype would still apply.  */
16310 char gettext ();
16311 #ifdef F77_DUMMY_MAIN
16312 #  ifdef __cplusplus
16313      extern "C"
16314 #  endif
16315    int F77_DUMMY_MAIN() { return 1; }
16316 #endif
16317 int
16318 main ()
16319 {
16320 gettext ();
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16327   (eval $ac_link) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } &&
16331          { ac_try='test -s conftest$ac_exeext'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; }; then
16337   ac_cv_search_gettext="none required"
16338 else
16339   echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16341 fi
16342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16343 if test "$ac_cv_search_gettext" = no; then
16344   for ac_lib in intl; do
16345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16346     cat >conftest.$ac_ext <<_ACEOF
16347 #line $LINENO "configure"
16348 #include "confdefs.h"
16349
16350 /* Override any gcc2 internal prototype to avoid an error.  */
16351 #ifdef __cplusplus
16352 extern "C"
16353 #endif
16354 /* We use char because int might match the return type of a gcc2
16355    builtin and then its argument prototype would still apply.  */
16356 char gettext ();
16357 #ifdef F77_DUMMY_MAIN
16358 #  ifdef __cplusplus
16359      extern "C"
16360 #  endif
16361    int F77_DUMMY_MAIN() { return 1; }
16362 #endif
16363 int
16364 main ()
16365 {
16366 gettext ();
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373   (eval $ac_link) 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); } &&
16377          { ac_try='test -s conftest$ac_exeext'
16378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379   (eval $ac_try) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }; }; then
16383   ac_cv_search_gettext="-l$ac_lib"
16384 break
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 fi
16389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16390   done
16391 fi
16392 LIBS=$ac_func_search_save_LIBS
16393 fi
16394 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16395 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16396 if test "$ac_cv_search_gettext" != no; then
16397   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16398
16399 else
16400   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16401 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16402    { (exit 1); exit 1; }; }
16403 fi
16404
16405   if test "${ac_cv_header_libintl_h+set}" = set; then
16406   echo "$as_me:$LINENO: checking for libintl.h" >&5
16407 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16408 if test "${ac_cv_header_libintl_h+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 fi
16411 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16412 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16413 else
16414   # Is the header compilable?
16415 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16416 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16418 #line $LINENO "configure"
16419 #include "confdefs.h"
16420 $ac_includes_default
16421 #include <libintl.h>
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16425   (eval $ac_compile) 2>&5
16426   ac_status=$?
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } &&
16429          { ac_try='test -s conftest.$ac_objext'
16430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431   (eval $ac_try) 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435   ac_header_compiler=yes
16436 else
16437   echo "$as_me: failed program was:" >&5
16438 cat conftest.$ac_ext >&5
16439 ac_header_compiler=no
16440 fi
16441 rm -f conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6
16444
16445 # Is the header present?
16446 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16447 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16450 #include "confdefs.h"
16451 #include <libintl.h>
16452 _ACEOF
16453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16455   ac_status=$?
16456   egrep -v '^ *\+' conftest.er1 >conftest.err
16457   rm -f conftest.er1
16458   cat conftest.err >&5
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } >/dev/null; then
16461   if test -s conftest.err; then
16462     ac_cpp_err=$ac_c_preproc_warn_flag
16463   else
16464     ac_cpp_err=
16465   fi
16466 else
16467   ac_cpp_err=yes
16468 fi
16469 if test -z "$ac_cpp_err"; then
16470   ac_header_preproc=yes
16471 else
16472   echo "$as_me: failed program was:" >&5
16473   cat conftest.$ac_ext >&5
16474   ac_header_preproc=no
16475 fi
16476 rm -f conftest.err conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16478 echo "${ECHO_T}$ac_header_preproc" >&6
16479
16480 # So?  What about this header?
16481 case $ac_header_compiler:$ac_header_preproc in
16482   yes:no )
16483     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16484 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16485     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16486 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16487   no:yes )
16488     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16489 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16490     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16491 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16492     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16493 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16494 esac
16495 echo "$as_me:$LINENO: checking for libintl.h" >&5
16496 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16497 if test "${ac_cv_header_libintl_h+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   ac_cv_header_libintl_h=$ac_header_preproc
16501 fi
16502 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16503 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16504
16505 fi
16506 if test $ac_cv_header_libintl_h = yes; then
16507   :
16508 else
16509   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16510 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16511    { (exit 1); exit 1; }; }
16512 fi
16513
16514
16515   for ac_prog in msgfmt
16516 do
16517   # Extract the first word of "$ac_prog", so it can be a program name with args.
16518 set dummy $ac_prog; ac_word=$2
16519 echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16521 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   if test -n "$MSGFMT"; then
16525   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16529 do
16530   IFS=$as_save_IFS
16531   test -z "$as_dir" && as_dir=.
16532   for ac_exec_ext in '' $ac_executable_extensions; do
16533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534     ac_cv_prog_MSGFMT="$ac_prog"
16535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16536     break 2
16537   fi
16538 done
16539 done
16540
16541 fi
16542 fi
16543 MSGFMT=$ac_cv_prog_MSGFMT
16544 if test -n "$MSGFMT"; then
16545   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16546 echo "${ECHO_T}$MSGFMT" >&6
16547 else
16548   echo "$as_me:$LINENO: result: no" >&5
16549 echo "${ECHO_T}no" >&6
16550 fi
16551
16552   test -n "$MSGFMT" && break
16553 done
16554
16555   if test -z "$MSGFMT"; then
16556     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16557 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16558    { (exit 1); exit 1; }; }
16559   fi
16560   for ac_prog in msgmerge
16561 do
16562   # Extract the first word of "$ac_prog", so it can be a program name with args.
16563 set dummy $ac_prog; ac_word=$2
16564 echo "$as_me:$LINENO: checking for $ac_word" >&5
16565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16566 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   if test -n "$MSGMERGE"; then
16570   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16571 else
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16574 do
16575   IFS=$as_save_IFS
16576   test -z "$as_dir" && as_dir=.
16577   for ac_exec_ext in '' $ac_executable_extensions; do
16578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579     ac_cv_prog_MSGMERGE="$ac_prog"
16580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16581     break 2
16582   fi
16583 done
16584 done
16585
16586 fi
16587 fi
16588 MSGMERGE=$ac_cv_prog_MSGMERGE
16589 if test -n "$MSGMERGE"; then
16590   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16591 echo "${ECHO_T}$MSGMERGE" >&6
16592 else
16593   echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595 fi
16596
16597   test -n "$MSGMERGE" && break
16598 done
16599
16600   for ac_prog in xgettext
16601 do
16602   # Extract the first word of "$ac_prog", so it can be a program name with args.
16603 set dummy $ac_prog; ac_word=$2
16604 echo "$as_me:$LINENO: checking for $ac_word" >&5
16605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16606 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16607   echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16609   if test -n "$XGETTEXT"; then
16610   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16611 else
16612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16613 for as_dir in $PATH
16614 do
16615   IFS=$as_save_IFS
16616   test -z "$as_dir" && as_dir=.
16617   for ac_exec_ext in '' $ac_executable_extensions; do
16618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16619     ac_cv_prog_XGETTEXT="$ac_prog"
16620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16621     break 2
16622   fi
16623 done
16624 done
16625
16626 fi
16627 fi
16628 XGETTEXT=$ac_cv_prog_XGETTEXT
16629 if test -n "$XGETTEXT"; then
16630   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16631 echo "${ECHO_T}$XGETTEXT" >&6
16632 else
16633   echo "$as_me:$LINENO: result: no" >&5
16634 echo "${ECHO_T}no" >&6
16635 fi
16636
16637   test -n "$XGETTEXT" && break
16638 done
16639
16640
16641   # Note: share/locale is always the default, independent of $datadir
16642   localedir='${prefix}/share/locale'
16643   if test x"$prefix" = x"NONE"; then
16644     exp_localedir="$ac_default_prefix/share/locale"
16645   else
16646     exp_localedir="$prefix/share/locale"
16647   fi
16648
16649
16650
16651 cat >>confdefs.h <<_ACEOF
16652 #define LOCALEDIR "$exp_localedir"
16653 _ACEOF
16654
16655
16656 fi
16657
16658 # Check for Tcl configuration script tclConfig.sh
16659 if test "$with_tcl" = yes; then
16660     for ac_prog in tclsh tcl
16661 do
16662   # Extract the first word of "$ac_prog", so it can be a program name with args.
16663 set dummy $ac_prog; ac_word=$2
16664 echo "$as_me:$LINENO: checking for $ac_word" >&5
16665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16666 if test "${ac_cv_path_TCLSH+set}" = set; then
16667   echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669   case $TCLSH in
16670   [\\/]* | ?:[\\/]*)
16671   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16672   ;;
16673   *)
16674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16676 do
16677   IFS=$as_save_IFS
16678   test -z "$as_dir" && as_dir=.
16679   for ac_exec_ext in '' $ac_executable_extensions; do
16680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16683     break 2
16684   fi
16685 done
16686 done
16687
16688   ;;
16689 esac
16690 fi
16691 TCLSH=$ac_cv_path_TCLSH
16692
16693 if test -n "$TCLSH"; then
16694   echo "$as_me:$LINENO: result: $TCLSH" >&5
16695 echo "${ECHO_T}$TCLSH" >&6
16696 else
16697   echo "$as_me:$LINENO: result: no" >&5
16698 echo "${ECHO_T}no" >&6
16699 fi
16700
16701   test -n "$TCLSH" && break
16702 done
16703
16704 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16705 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16706 # Let user override test
16707 if test -z "$TCL_CONFIG_SH"; then
16708     pgac_test_dirs="$with_tclconfig"
16709
16710     set X $pgac_test_dirs; shift
16711     if test $# -eq 0; then
16712         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16713 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16714    { (exit 1); exit 1; }; }
16715         set X `echo 'puts $auto_path' | $TCLSH`; shift
16716     fi
16717
16718     for pgac_dir do
16719         if test -r "$pgac_dir/tclConfig.sh"; then
16720             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16721             break
16722         fi
16723     done
16724 fi
16725
16726 if test -z "$TCL_CONFIG_SH"; then
16727     echo "$as_me:$LINENO: result: no" >&5
16728 echo "${ECHO_T}no" >&6
16729     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16730 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16731    { (exit 1); exit 1; }; }
16732 else
16733     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16734 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16735 fi
16736
16737
16738
16739     . "$TCL_CONFIG_SH"
16740 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16741 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16742 eval TCL_LIBS=\"$TCL_LIBS\"
16743 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16744 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16745
16746     fi
16747
16748 # Check for Tk configuration script tkConfig.sh
16749 if test "$with_tk" = yes; then
16750     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16751 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16752 # Let user override test
16753 if test -z "$TK_CONFIG_SH"; then
16754     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16755
16756     set X $pgac_test_dirs; shift
16757     if test $# -eq 0; then
16758         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16759 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16760    { (exit 1); exit 1; }; }
16761         set X `echo 'puts $auto_path' | $TCLSH`; shift
16762     fi
16763
16764     for pgac_dir do
16765         if test -r "$pgac_dir/tkConfig.sh"; then
16766             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16767             break
16768         fi
16769     done
16770 fi
16771
16772 if test -z "$TK_CONFIG_SH"; then
16773     echo "$as_me:$LINENO: result: no" >&5
16774 echo "${ECHO_T}no" >&6
16775     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16776 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16777    { (exit 1); exit 1; }; }
16778 else
16779     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16780 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16781 fi
16782
16783
16784
16785     . "$TK_CONFIG_SH"
16786 eval TK_LIBS=\"$TK_LIBS\"
16787 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16788 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16789
16790 fi
16791
16792
16793 #
16794 # Check for DocBook and tools
16795 #
16796 for ac_prog in onsgmls nsgmls
16797 do
16798   # Extract the first word of "$ac_prog", so it can be a program name with args.
16799 set dummy $ac_prog; ac_word=$2
16800 echo "$as_me:$LINENO: checking for $ac_word" >&5
16801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16802 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16803   echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805   if test -n "$NSGMLS"; then
16806   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16807 else
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16810 do
16811   IFS=$as_save_IFS
16812   test -z "$as_dir" && as_dir=.
16813   for ac_exec_ext in '' $ac_executable_extensions; do
16814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815     ac_cv_prog_NSGMLS="$ac_prog"
16816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16817     break 2
16818   fi
16819 done
16820 done
16821
16822 fi
16823 fi
16824 NSGMLS=$ac_cv_prog_NSGMLS
16825 if test -n "$NSGMLS"; then
16826   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16827 echo "${ECHO_T}$NSGMLS" >&6
16828 else
16829   echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6
16831 fi
16832
16833   test -n "$NSGMLS" && break
16834 done
16835
16836 for ac_prog in openjade jade
16837 do
16838   # Extract the first word of "$ac_prog", so it can be a program name with args.
16839 set dummy $ac_prog; ac_word=$2
16840 echo "$as_me:$LINENO: checking for $ac_word" >&5
16841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16842 if test "${ac_cv_prog_JADE+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845   if test -n "$JADE"; then
16846   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16847 else
16848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16849 for as_dir in $PATH
16850 do
16851   IFS=$as_save_IFS
16852   test -z "$as_dir" && as_dir=.
16853   for ac_exec_ext in '' $ac_executable_extensions; do
16854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16855     ac_cv_prog_JADE="$ac_prog"
16856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16857     break 2
16858   fi
16859 done
16860 done
16861
16862 fi
16863 fi
16864 JADE=$ac_cv_prog_JADE
16865 if test -n "$JADE"; then
16866   echo "$as_me:$LINENO: result: $JADE" >&5
16867 echo "${ECHO_T}$JADE" >&6
16868 else
16869   echo "$as_me:$LINENO: result: no" >&5
16870 echo "${ECHO_T}no" >&6
16871 fi
16872
16873   test -n "$JADE" && break
16874 done
16875
16876
16877 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16878 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16879 if test "${pgac_cv_check_docbook+set}" = set; then
16880   echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882   cat >conftest.sgml <<EOF
16883 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16884 <book>
16885  <title>test</title>
16886  <chapter>
16887   <title>random</title>
16888    <sect1>
16889     <title>testsect</title>
16890     <para>text</para>
16891   </sect1>
16892  </chapter>
16893 </book>
16894 EOF
16895
16896 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16897 if test $? -eq 0; then
16898   pgac_cv_check_docbook=yes
16899 else
16900   pgac_cv_check_docbook=no
16901 fi
16902 rm -f conftest.sgml
16903 fi
16904 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16905 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16906
16907 have_docbook=$pgac_cv_check_docbook
16908
16909
16910 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16911 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16912 if test "${pgac_cv_path_stylesheets+set}" = set; then
16913   echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915   if test -n "$DOCBOOKSTYLE"; then
16916   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16917 else
16918   for pgac_prefix in /usr /usr/local /opt; do
16919     for pgac_infix in share lib; do
16920       for pgac_postfix in \
16921         sgml/stylesheets/nwalsh-modular \
16922         sgml/stylesheets/docbook \
16923         sgml/docbook/dsssl/modular \
16924         sgml/docbook/stylesheet/dsssl/modular \
16925         sgml/docbook/dsssl-stylesheets
16926       do
16927         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16928         if test -r "$pgac_candidate/html/docbook.dsl" \
16929            && test -r "$pgac_candidate/print/docbook.dsl"
16930         then
16931           pgac_cv_path_stylesheets=$pgac_candidate
16932           break 3
16933         fi
16934       done
16935     done
16936   done
16937 fi
16938 fi
16939
16940 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16941
16942 if test -n "$DOCBOOKSTYLE"; then
16943   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16944 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16945 else
16946   echo "$as_me:$LINENO: result: no" >&5
16947 echo "${ECHO_T}no" >&6
16948 fi
16949 if test -n "$DOCBOOKSTYLE"; then
16950   for ac_prog in collateindex.pl
16951 do
16952   # Extract the first word of "$ac_prog", so it can be a program name with args.
16953 set dummy $ac_prog; ac_word=$2
16954 echo "$as_me:$LINENO: checking for $ac_word" >&5
16955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16956 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   case $COLLATEINDEX in
16960   [\\/]* | ?:[\\/]*)
16961   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16962   ;;
16963   *)
16964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16965 for as_dir in $DOCBOOKSTYLE/bin $PATH
16966 do
16967   IFS=$as_save_IFS
16968   test -z "$as_dir" && as_dir=.
16969   for ac_exec_ext in '' $ac_executable_extensions; do
16970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16971     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16973     break 2
16974   fi
16975 done
16976 done
16977
16978   ;;
16979 esac
16980 fi
16981 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16982
16983 if test -n "$COLLATEINDEX"; then
16984   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16985 echo "${ECHO_T}$COLLATEINDEX" >&6
16986 else
16987   echo "$as_me:$LINENO: result: no" >&5
16988 echo "${ECHO_T}no" >&6
16989 fi
16990
16991   test -n "$COLLATEINDEX" && break
16992 done
16993
16994 else
16995   for ac_prog in collateindex.pl
16996 do
16997   # Extract the first word of "$ac_prog", so it can be a program name with args.
16998 set dummy $ac_prog; ac_word=$2
16999 echo "$as_me:$LINENO: checking for $ac_word" >&5
17000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17001 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17002   echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004   case $COLLATEINDEX in
17005   [\\/]* | ?:[\\/]*)
17006   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17007   ;;
17008   *)
17009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17011 do
17012   IFS=$as_save_IFS
17013   test -z "$as_dir" && as_dir=.
17014   for ac_exec_ext in '' $ac_executable_extensions; do
17015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17016     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17018     break 2
17019   fi
17020 done
17021 done
17022
17023   ;;
17024 esac
17025 fi
17026 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17027
17028 if test -n "$COLLATEINDEX"; then
17029   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17030 echo "${ECHO_T}$COLLATEINDEX" >&6
17031 else
17032   echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6
17034 fi
17035
17036   test -n "$COLLATEINDEX" && break
17037 done
17038
17039 fi
17040 for ac_prog in sgmlspl
17041 do
17042   # Extract the first word of "$ac_prog", so it can be a program name with args.
17043 set dummy $ac_prog; ac_word=$2
17044 echo "$as_me:$LINENO: checking for $ac_word" >&5
17045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17046 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   if test -n "$SGMLSPL"; then
17050   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17051 else
17052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17053 for as_dir in $PATH
17054 do
17055   IFS=$as_save_IFS
17056   test -z "$as_dir" && as_dir=.
17057   for ac_exec_ext in '' $ac_executable_extensions; do
17058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17059     ac_cv_prog_SGMLSPL="$ac_prog"
17060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17061     break 2
17062   fi
17063 done
17064 done
17065
17066 fi
17067 fi
17068 SGMLSPL=$ac_cv_prog_SGMLSPL
17069 if test -n "$SGMLSPL"; then
17070   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17071 echo "${ECHO_T}$SGMLSPL" >&6
17072 else
17073   echo "$as_me:$LINENO: result: no" >&5
17074 echo "${ECHO_T}no" >&6
17075 fi
17076
17077   test -n "$SGMLSPL" && break
17078 done
17079
17080
17081
17082 # prepare build tree if outside source tree
17083 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17084 # Note 2: /bin/pwd might be better than shell's built-in at getting
17085 #         a symlink-free name.
17086 if test "$no_create" != yes; then
17087   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17088     :
17089   else
17090     vpath_build=yes
17091
17092     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17093     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17094     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17095       || { { echo "$as_me:$LINENO: error: failed" >&5
17096 echo "$as_me: error: failed" >&2;}
17097    { (exit 1); exit 1; }; }
17098     echo "$as_me:$LINENO: result: done" >&5
17099 echo "${ECHO_T}done" >&6
17100   fi
17101 fi
17102
17103
17104 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17105
17106
17107 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}"
17108
17109
17110 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17111
17112
17113 cat >confcache <<\_ACEOF
17114 # This file is a shell script that caches the results of configure
17115 # tests run on this system so they can be shared between configure
17116 # scripts and configure runs, see configure's option --config-cache.
17117 # It is not useful on other systems.  If it contains results you don't
17118 # want to keep, you may remove or edit it.
17119 #
17120 # config.status only pays attention to the cache file if you give it
17121 # the --recheck option to rerun configure.
17122 #
17123 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17125 # following values.
17126
17127 _ACEOF
17128
17129 # The following way of writing the cache mishandles newlines in values,
17130 # but we know of no workaround that is simple, portable, and efficient.
17131 # So, don't put newlines in cache variables' values.
17132 # Ultrix sh set writes to stderr and can't be redirected directly,
17133 # and sets the high bit in the cache file unless we assign to the vars.
17134 {
17135   (set) 2>&1 |
17136     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17137     *ac_space=\ *)
17138       # `set' does not quote correctly, so add quotes (double-quote
17139       # substitution turns \\\\ into \\, and sed turns \\ into \).
17140       sed -n \
17141         "s/'/'\\\\''/g;
17142           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17143       ;;
17144     *)
17145       # `set' quotes correctly as required by POSIX, so do not add quotes.
17146       sed -n \
17147         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17148       ;;
17149     esac;
17150 } |
17151   sed '
17152      t clear
17153      : clear
17154      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17155      t end
17156      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17157      : end' >>confcache
17158 if cmp -s $cache_file confcache; then :; else
17159   if test -w $cache_file; then
17160     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17161     cat confcache >$cache_file
17162   else
17163     echo "not updating unwritable cache $cache_file"
17164   fi
17165 fi
17166 rm -f confcache
17167
17168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17169 # Let make expand exec_prefix.
17170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17171
17172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17174 # trailing colons and then remove the whole line if VPATH becomes empty
17175 # (actually we leave an empty line to preserve line numbers).
17176 if test "x$srcdir" = x.; then
17177   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17178 s/:*\$(srcdir):*/:/;
17179 s/:*\${srcdir}:*/:/;
17180 s/:*@srcdir@:*/:/;
17181 s/^\([^=]*=[    ]*\):*/\1/;
17182 s/:*$//;
17183 s/^[^=]*=[      ]*$//;
17184 }'
17185 fi
17186
17187 DEFS=-DHAVE_CONFIG_H
17188
17189
17190 : ${CONFIG_STATUS=./config.status}
17191 ac_clean_files_save=$ac_clean_files
17192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17195 cat >$CONFIG_STATUS <<_ACEOF
17196 #! $SHELL
17197 # Generated by $as_me.
17198 # Run this file to recreate the current configuration.
17199 # Compiler output produced by configure, useful for debugging
17200 # configure, is in config.log if it exists.
17201
17202 debug=false
17203 SHELL=\${CONFIG_SHELL-$SHELL}
17204 _ACEOF
17205
17206 cat >>$CONFIG_STATUS <<\_ACEOF
17207
17208 ## --------------------- ##
17209 ## M4sh Initialization.  ##
17210 ## --------------------- ##
17211
17212 # Be Bourne compatible
17213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17214   emulate sh
17215   NULLCMD=:
17216 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17217   set -o posix
17218 fi
17219
17220 # NLS nuisances.
17221 # Support unset when possible.
17222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17223   as_unset=unset
17224 else
17225   as_unset=false
17226 fi
17227
17228 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17229     { $as_unset LANG || test "${LANG+set}" != set; } ||
17230       { LANG=C; export LANG; }
17231 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17232     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17233       { LC_ALL=C; export LC_ALL; }
17234 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17235     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17236       { LC_TIME=C; export LC_TIME; }
17237 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17238     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17239       { LC_CTYPE=C; export LC_CTYPE; }
17240 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17241     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17242       { LANGUAGE=C; export LANGUAGE; }
17243 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17244     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17245       { LC_COLLATE=C; export LC_COLLATE; }
17246 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17247     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17248       { LC_NUMERIC=C; export LC_NUMERIC; }
17249 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17250     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17251       { LC_MESSAGES=C; export LC_MESSAGES; }
17252
17253
17254 # Name of the executable.
17255 as_me=`(basename "$0") 2>/dev/null ||
17256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17257          X"$0" : 'X\(//\)$' \| \
17258          X"$0" : 'X\(/\)$' \| \
17259          .     : '\(.\)' 2>/dev/null ||
17260 echo X/"$0" |
17261     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17262           /^X\/\(\/\/\)$/{ s//\1/; q; }
17263           /^X\/\(\/\).*/{ s//\1/; q; }
17264           s/.*/./; q'`
17265
17266 # PATH needs CR, and LINENO needs CR and PATH.
17267 # Avoid depending upon Character Ranges.
17268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17271 as_cr_digits='0123456789'
17272 as_cr_alnum=$as_cr_Letters$as_cr_digits
17273
17274 # The user is always right.
17275 if test "${PATH_SEPARATOR+set}" != set; then
17276   echo "#! /bin/sh" >conftest.sh
17277   echo  "exit 0"   >>conftest.sh
17278   chmod +x conftest.sh
17279   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17280     PATH_SEPARATOR=';'
17281   else
17282     PATH_SEPARATOR=:
17283   fi
17284   rm -f conftest.sh
17285 fi
17286
17287
17288   as_lineno_1=$LINENO
17289   as_lineno_2=$LINENO
17290   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17291   test "x$as_lineno_1" != "x$as_lineno_2" &&
17292   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17293   # Find who we are.  Look in the path if we contain no path at all
17294   # relative or not.
17295   case $0 in
17296     *[\\/]* ) as_myself=$0 ;;
17297     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH
17299 do
17300   IFS=$as_save_IFS
17301   test -z "$as_dir" && as_dir=.
17302   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17303 done
17304
17305        ;;
17306   esac
17307   # We did not find ourselves, most probably we were run as `sh COMMAND'
17308   # in which case we are not to be found in the path.
17309   if test "x$as_myself" = x; then
17310     as_myself=$0
17311   fi
17312   if test ! -f "$as_myself"; then
17313     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17315    { (exit 1); exit 1; }; }
17316   fi
17317   case $CONFIG_SHELL in
17318   '')
17319     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17321 do
17322   IFS=$as_save_IFS
17323   test -z "$as_dir" && as_dir=.
17324   for as_base in sh bash ksh sh5; do
17325          case $as_dir in
17326          /*)
17327            if ("$as_dir/$as_base" -c '
17328   as_lineno_1=$LINENO
17329   as_lineno_2=$LINENO
17330   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17331   test "x$as_lineno_1" != "x$as_lineno_2" &&
17332   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17333              CONFIG_SHELL=$as_dir/$as_base
17334              export CONFIG_SHELL
17335              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17336            fi;;
17337          esac
17338        done
17339 done
17340 ;;
17341   esac
17342
17343   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17344   # uniformly replaced by the line number.  The first 'sed' inserts a
17345   # line-number line before each line; the second 'sed' does the real
17346   # work.  The second script uses 'N' to pair each line-number line
17347   # with the numbered line, and appends trailing '-' during
17348   # substitution so that $LINENO is not a special case at line end.
17349   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17350   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17351   sed '=' <$as_myself |
17352     sed '
17353       N
17354       s,$,-,
17355       : loop
17356       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17357       t loop
17358       s,-$,,
17359       s,^['$as_cr_digits']*\n,,
17360     ' >$as_me.lineno &&
17361   chmod +x $as_me.lineno ||
17362     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17363 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17364    { (exit 1); exit 1; }; }
17365
17366   # Don't try to exec as it changes $[0], causing all sort of problems
17367   # (the dirname of $[0] is not the place where we might find the
17368   # original and so on.  Autoconf is especially sensible to this).
17369   . ./$as_me.lineno
17370   # Exit status is that of the last command.
17371   exit
17372 }
17373
17374
17375 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17376   *c*,-n*) ECHO_N= ECHO_C='
17377 ' ECHO_T='      ' ;;
17378   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17379   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17380 esac
17381
17382 if expr a : '\(a\)' >/dev/null 2>&1; then
17383   as_expr=expr
17384 else
17385   as_expr=false
17386 fi
17387
17388 rm -f conf$$ conf$$.exe conf$$.file
17389 echo >conf$$.file
17390 if ln -s conf$$.file conf$$ 2>/dev/null; then
17391   # We could just check for DJGPP; but this test a) works b) is more generic
17392   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17393   if test -f conf$$.exe; then
17394     # Don't use ln at all; we don't have any links
17395     as_ln_s='cp -p'
17396   else
17397     as_ln_s='ln -s'
17398   fi
17399 elif ln conf$$.file conf$$ 2>/dev/null; then
17400   as_ln_s=ln
17401 else
17402   as_ln_s='cp -p'
17403 fi
17404 rm -f conf$$ conf$$.exe conf$$.file
17405
17406 as_executable_p="test -f"
17407
17408 # Sed expression to map a string onto a valid CPP name.
17409 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17410
17411 # Sed expression to map a string onto a valid variable name.
17412 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17413
17414
17415 # IFS
17416 # We need space, tab and new line, in precisely that order.
17417 as_nl='
17418 '
17419 IFS="   $as_nl"
17420
17421 # CDPATH.
17422 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17423
17424 exec 6>&1
17425
17426 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17427 # report actual input values of CONFIG_FILES etc. instead of their
17428 # values after options handling.  Logging --version etc. is OK.
17429 exec 5>>config.log
17430 {
17431   echo
17432   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17433 ## Running $as_me. ##
17434 _ASBOX
17435 } >&5
17436 cat >&5 <<_CSEOF
17437
17438 This file was extended by PostgreSQL $as_me 7.4devel, which was
17439 generated by GNU Autoconf 2.53.  Invocation command line was
17440
17441   CONFIG_FILES    = $CONFIG_FILES
17442   CONFIG_HEADERS  = $CONFIG_HEADERS
17443   CONFIG_LINKS    = $CONFIG_LINKS
17444   CONFIG_COMMANDS = $CONFIG_COMMANDS
17445   $ $0 $@
17446
17447 _CSEOF
17448 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17449 echo >&5
17450 _ACEOF
17451
17452 # Files that config.status was made for.
17453 if test -n "$ac_config_files"; then
17454   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17455 fi
17456
17457 if test -n "$ac_config_headers"; then
17458   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17459 fi
17460
17461 if test -n "$ac_config_links"; then
17462   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17463 fi
17464
17465 if test -n "$ac_config_commands"; then
17466   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17467 fi
17468
17469 cat >>$CONFIG_STATUS <<\_ACEOF
17470
17471 ac_cs_usage="\
17472 \`$as_me' instantiates files from templates according to the
17473 current configuration.
17474
17475 Usage: $0 [OPTIONS] [FILE]...
17476
17477   -h, --help       print this help, then exit
17478   -V, --version    print version number, then exit
17479   -d, --debug      don't remove temporary files
17480       --recheck    update $as_me by reconfiguring in the same conditions
17481   --file=FILE[:TEMPLATE]
17482                    instantiate the configuration file FILE
17483   --header=FILE[:TEMPLATE]
17484                    instantiate the configuration header FILE
17485
17486 Configuration files:
17487 $config_files
17488
17489 Configuration headers:
17490 $config_headers
17491
17492 Configuration links:
17493 $config_links
17494
17495 Report bugs to <bug-autoconf@gnu.org>."
17496 _ACEOF
17497
17498 cat >>$CONFIG_STATUS <<_ACEOF
17499 ac_cs_version="\\
17500 PostgreSQL config.status 7.4devel
17501 configured by $0, generated by GNU Autoconf 2.53,
17502   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17503
17504 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17505 Free Software Foundation, Inc.
17506 This config.status script is free software; the Free Software Foundation
17507 gives unlimited permission to copy, distribute and modify it."
17508 srcdir=$srcdir
17509 _ACEOF
17510
17511 cat >>$CONFIG_STATUS <<\_ACEOF
17512 # If no file are specified by the user, then we need to provide default
17513 # value.  By we need to know if files were specified by the user.
17514 ac_need_defaults=:
17515 while test $# != 0
17516 do
17517   case $1 in
17518   --*=*)
17519     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17520     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17521     shift
17522     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17523     shift
17524     ;;
17525   -*);;
17526   *) # This is not an option, so the user has probably given explicit
17527      # arguments.
17528      ac_need_defaults=false;;
17529   esac
17530
17531   case $1 in
17532   # Handling of the options.
17533 _ACEOF
17534 cat >>$CONFIG_STATUS <<_ACEOF
17535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17536     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17537     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17538 _ACEOF
17539 cat >>$CONFIG_STATUS <<\_ACEOF
17540   --version | --vers* | -V )
17541     echo "$ac_cs_version"; exit 0 ;;
17542   --he | --h)
17543     # Conflict between --help and --header
17544     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17545 Try \`$0 --help' for more information." >&5
17546 echo "$as_me: error: ambiguous option: $1
17547 Try \`$0 --help' for more information." >&2;}
17548    { (exit 1); exit 1; }; };;
17549   --help | --hel | -h )
17550     echo "$ac_cs_usage"; exit 0 ;;
17551   --debug | --d* | -d )
17552     debug=: ;;
17553   --file | --fil | --fi | --f )
17554     shift
17555     CONFIG_FILES="$CONFIG_FILES $1"
17556     ac_need_defaults=false;;
17557   --header | --heade | --head | --hea )
17558     shift
17559     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17560     ac_need_defaults=false;;
17561
17562   # This is an error.
17563   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17564 Try \`$0 --help' for more information." >&5
17565 echo "$as_me: error: unrecognized option: $1
17566 Try \`$0 --help' for more information." >&2;}
17567    { (exit 1); exit 1; }; } ;;
17568
17569   *) ac_config_targets="$ac_config_targets $1" ;;
17570
17571   esac
17572   shift
17573 done
17574
17575 _ACEOF
17576
17577
17578
17579
17580
17581 cat >>$CONFIG_STATUS <<\_ACEOF
17582 for ac_config_target in $ac_config_targets
17583 do
17584   case "$ac_config_target" in
17585   # Handling of arguments.
17586   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17587   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17588   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17589   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17590   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17591   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17592   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17593   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17594   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17595   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17596   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17598    { (exit 1); exit 1; }; };;
17599   esac
17600 done
17601
17602 # If the user did not use the arguments to specify the items to instantiate,
17603 # then the envvar interface is used.  Set only those that are not.
17604 # We use the long form for the default assignment because of an extremely
17605 # bizarre bug on SunOS 4.1.3.
17606 if $ac_need_defaults; then
17607   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17608   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17609   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17610 fi
17611
17612 # Create a temporary directory, and hook for its removal unless debugging.
17613 $debug ||
17614 {
17615   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17616   trap '{ (exit 1); exit 1; }' 1 2 13 15
17617 }
17618
17619 # Create a (secure) tmp directory for tmp files.
17620 : ${TMPDIR=/tmp}
17621 {
17622   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17623   test -n "$tmp" && test -d "$tmp"
17624 }  ||
17625 {
17626   tmp=$TMPDIR/cs$$-$RANDOM
17627   (umask 077 && mkdir $tmp)
17628 } ||
17629 {
17630    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17631    { (exit 1); exit 1; }
17632 }
17633
17634 _ACEOF
17635
17636 cat >>$CONFIG_STATUS <<_ACEOF
17637
17638 #
17639 # CONFIG_FILES section.
17640 #
17641
17642 # No need to generate the scripts if there are no CONFIG_FILES.
17643 # This happens for instance when ./config.status config.h
17644 if test -n "\$CONFIG_FILES"; then
17645   # Protect against being on the right side of a sed subst in config.status.
17646   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17647    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17648 s,@SHELL@,$SHELL,;t t
17649 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17655 s,@exec_prefix@,$exec_prefix,;t t
17656 s,@prefix@,$prefix,;t t
17657 s,@program_transform_name@,$program_transform_name,;t t
17658 s,@bindir@,$bindir,;t t
17659 s,@sbindir@,$sbindir,;t t
17660 s,@libexecdir@,$libexecdir,;t t
17661 s,@datadir@,$datadir,;t t
17662 s,@sysconfdir@,$sysconfdir,;t t
17663 s,@sharedstatedir@,$sharedstatedir,;t t
17664 s,@localstatedir@,$localstatedir,;t t
17665 s,@libdir@,$libdir,;t t
17666 s,@includedir@,$includedir,;t t
17667 s,@oldincludedir@,$oldincludedir,;t t
17668 s,@infodir@,$infodir,;t t
17669 s,@mandir@,$mandir,;t t
17670 s,@build_alias@,$build_alias,;t t
17671 s,@host_alias@,$host_alias,;t t
17672 s,@target_alias@,$target_alias,;t t
17673 s,@DEFS@,$DEFS,;t t
17674 s,@ECHO_C@,$ECHO_C,;t t
17675 s,@ECHO_N@,$ECHO_N,;t t
17676 s,@ECHO_T@,$ECHO_T,;t t
17677 s,@LIBS@,$LIBS,;t t
17678 s,@docdir@,$docdir,;t t
17679 s,@configure_args@,$configure_args,;t t
17680 s,@build@,$build,;t t
17681 s,@build_cpu@,$build_cpu,;t t
17682 s,@build_vendor@,$build_vendor,;t t
17683 s,@build_os@,$build_os,;t t
17684 s,@host@,$host,;t t
17685 s,@host_cpu@,$host_cpu,;t t
17686 s,@host_vendor@,$host_vendor,;t t
17687 s,@host_os@,$host_os,;t t
17688 s,@PORTNAME@,$PORTNAME,;t t
17689 s,@TAS@,$TAS,;t t
17690 s,@enable_nls@,$enable_nls,;t t
17691 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17692 s,@default_port@,$default_port,;t t
17693 s,@enable_shared@,$enable_shared,;t t
17694 s,@enable_rpath@,$enable_rpath,;t t
17695 s,@enable_debug@,$enable_debug,;t t
17696 s,@CC@,$CC,;t t
17697 s,@CFLAGS@,$CFLAGS,;t t
17698 s,@LDFLAGS@,$LDFLAGS,;t t
17699 s,@CPPFLAGS@,$CPPFLAGS,;t t
17700 s,@ac_ct_CC@,$ac_ct_CC,;t t
17701 s,@EXEEXT@,$EXEEXT,;t t
17702 s,@OBJEXT@,$OBJEXT,;t t
17703 s,@CPP@,$CPP,;t t
17704 s,@GCC@,$GCC,;t t
17705 s,@autodepend@,$autodepend,;t t
17706 s,@INCLUDES@,$INCLUDES,;t t
17707 s,@with_threads@,$with_threads,;t t
17708 s,@with_tcl@,$with_tcl,;t t
17709 s,@with_tk@,$with_tk,;t t
17710 s,@with_perl@,$with_perl,;t t
17711 s,@with_python@,$with_python,;t t
17712 s,@ANT@,$ANT,;t t
17713 s,@with_java@,$with_java,;t t
17714 s,@with_krb4@,$with_krb4,;t t
17715 s,@with_krb5@,$with_krb5,;t t
17716 s,@krb_srvtab@,$krb_srvtab,;t t
17717 s,@with_pam@,$with_pam,;t t
17718 s,@with_rendezvous@,$with_rendezvous,;t t
17719 s,@with_openssl@,$with_openssl,;t t
17720 s,@ELF_SYS@,$ELF_SYS,;t t
17721 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17722 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17723 s,@AWK@,$AWK,;t t
17724 s,@FLEX@,$FLEX,;t t
17725 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17726 s,@LN_S@,$LN_S,;t t
17727 s,@LD@,$LD,;t t
17728 s,@with_gnu_ld@,$with_gnu_ld,;t t
17729 s,@ld_R_works@,$ld_R_works,;t t
17730 s,@RANLIB@,$RANLIB,;t t
17731 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17732 s,@LORDER@,$LORDER,;t t
17733 s,@TAR@,$TAR,;t t
17734 s,@STRIP@,$STRIP,;t t
17735 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17736 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17737 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17738 s,@YACC@,$YACC,;t t
17739 s,@YFLAGS@,$YFLAGS,;t t
17740 s,@PERL@,$PERL,;t t
17741 s,@perl_archlibexp@,$perl_archlibexp,;t t
17742 s,@perl_privlibexp@,$perl_privlibexp,;t t
17743 s,@perl_useshrplib@,$perl_useshrplib,;t t
17744 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17745 s,@PYTHON@,$PYTHON,;t t
17746 s,@python_version@,$python_version,;t t
17747 s,@python_prefix@,$python_prefix,;t t
17748 s,@python_execprefix@,$python_execprefix,;t t
17749 s,@python_configdir@,$python_configdir,;t t
17750 s,@python_moduledir@,$python_moduledir,;t t
17751 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17752 s,@python_includespec@,$python_includespec,;t t
17753 s,@python_libspec@,$python_libspec,;t t
17754 s,@LIBOBJS@,$LIBOBJS,;t t
17755 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17756 s,@MSGFMT@,$MSGFMT,;t t
17757 s,@MSGMERGE@,$MSGMERGE,;t t
17758 s,@XGETTEXT@,$XGETTEXT,;t t
17759 s,@localedir@,$localedir,;t t
17760 s,@TCLSH@,$TCLSH,;t t
17761 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17762 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17763 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17764 s,@TCL_LIBS@,$TCL_LIBS,;t t
17765 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17766 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17767 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17768 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17769 s,@TK_LIBS@,$TK_LIBS,;t t
17770 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17771 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17772 s,@NSGMLS@,$NSGMLS,;t t
17773 s,@JADE@,$JADE,;t t
17774 s,@have_docbook@,$have_docbook,;t t
17775 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17776 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17777 s,@SGMLSPL@,$SGMLSPL,;t t
17778 s,@vpath_build@,$vpath_build,;t t
17779 CEOF
17780
17781 _ACEOF
17782
17783   cat >>$CONFIG_STATUS <<\_ACEOF
17784   # Split the substitutions into bite-sized pieces for seds with
17785   # small command number limits, like on Digital OSF/1 and HP-UX.
17786   ac_max_sed_lines=48
17787   ac_sed_frag=1 # Number of current file.
17788   ac_beg=1 # First line for current file.
17789   ac_end=$ac_max_sed_lines # Line after last line for current file.
17790   ac_more_lines=:
17791   ac_sed_cmds=
17792   while $ac_more_lines; do
17793     if test $ac_beg -gt 1; then
17794       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17795     else
17796       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17797     fi
17798     if test ! -s $tmp/subs.frag; then
17799       ac_more_lines=false
17800     else
17801       # The purpose of the label and of the branching condition is to
17802       # speed up the sed processing (if there are no `@' at all, there
17803       # is no need to browse any of the substitutions).
17804       # These are the two extra sed commands mentioned above.
17805       (echo ':t
17806   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17807       if test -z "$ac_sed_cmds"; then
17808         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17809       else
17810         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17811       fi
17812       ac_sed_frag=`expr $ac_sed_frag + 1`
17813       ac_beg=$ac_end
17814       ac_end=`expr $ac_end + $ac_max_sed_lines`
17815     fi
17816   done
17817   if test -z "$ac_sed_cmds"; then
17818     ac_sed_cmds=cat
17819   fi
17820 fi # test -n "$CONFIG_FILES"
17821
17822 _ACEOF
17823 cat >>$CONFIG_STATUS <<\_ACEOF
17824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17825   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17826   case $ac_file in
17827   - | *:- | *:-:* ) # input from stdin
17828         cat >$tmp/stdin
17829         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17830         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17831   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17833   * )   ac_file_in=$ac_file.in ;;
17834   esac
17835
17836   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17837   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17839          X"$ac_file" : 'X\(//\)[^/]' \| \
17840          X"$ac_file" : 'X\(//\)$' \| \
17841          X"$ac_file" : 'X\(/\)' \| \
17842          .     : '\(.\)' 2>/dev/null ||
17843 echo X"$ac_file" |
17844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17846           /^X\(\/\/\)$/{ s//\1/; q; }
17847           /^X\(\/\).*/{ s//\1/; q; }
17848           s/.*/./; q'`
17849   { case "$ac_dir" in
17850   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17851   *)                      as_incr_dir=.;;
17852 esac
17853 as_dummy="$ac_dir"
17854 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17855   case $as_mkdir_dir in
17856     # Skip DOS drivespec
17857     ?:) as_incr_dir=$as_mkdir_dir ;;
17858     *)
17859       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17860       test -d "$as_incr_dir" ||
17861         mkdir "$as_incr_dir" ||
17862         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17863 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17864    { (exit 1); exit 1; }; }
17865     ;;
17866   esac
17867 done; }
17868
17869   ac_builddir=.
17870
17871 if test "$ac_dir" != .; then
17872   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17873   # A "../" for each directory in $ac_dir_suffix.
17874   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17875 else
17876   ac_dir_suffix= ac_top_builddir=
17877 fi
17878
17879 case $srcdir in
17880   .)  # No --srcdir option.  We are building in place.
17881     ac_srcdir=.
17882     if test -z "$ac_top_builddir"; then
17883        ac_top_srcdir=.
17884     else
17885        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17886     fi ;;
17887   [\\/]* | ?:[\\/]* )  # Absolute path.
17888     ac_srcdir=$srcdir$ac_dir_suffix;
17889     ac_top_srcdir=$srcdir ;;
17890   *) # Relative path.
17891     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17892     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17893 esac
17894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17895 # absolute.
17896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17897 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17900
17901
17902
17903   if test x"$ac_file" != x-; then
17904     { echo "$as_me:$LINENO: creating $ac_file" >&5
17905 echo "$as_me: creating $ac_file" >&6;}
17906     rm -f "$ac_file"
17907   fi
17908   # Let's still pretend it is `configure' which instantiates (i.e., don't
17909   # use $as_me), people would be surprised to read:
17910   #    /* config.h.  Generated by config.status.  */
17911   if test x"$ac_file" = x-; then
17912     configure_input=
17913   else
17914     configure_input="$ac_file.  "
17915   fi
17916   configure_input=$configure_input"Generated from `echo $ac_file_in |
17917                                      sed 's,.*/,,'` by configure."
17918
17919   # First look for the input files in the build tree, otherwise in the
17920   # src tree.
17921   ac_file_inputs=`IFS=:
17922     for f in $ac_file_in; do
17923       case $f in
17924       -) echo $tmp/stdin ;;
17925       [\\/$]*)
17926          # Absolute (can't be DOS-style, as IFS=:)
17927          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17928 echo "$as_me: error: cannot find input file: $f" >&2;}
17929    { (exit 1); exit 1; }; }
17930          echo $f;;
17931       *) # Relative
17932          if test -f "$f"; then
17933            # Build tree
17934            echo $f
17935          elif test -f "$srcdir/$f"; then
17936            # Source tree
17937            echo $srcdir/$f
17938          else
17939            # /dev/null tree
17940            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17941 echo "$as_me: error: cannot find input file: $f" >&2;}
17942    { (exit 1); exit 1; }; }
17943          fi;;
17944       esac
17945     done` || { (exit 1); exit 1; }
17946 _ACEOF
17947 cat >>$CONFIG_STATUS <<_ACEOF
17948   sed "$ac_vpsub
17949 $extrasub
17950 _ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17952 :t
17953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17954 s,@configure_input@,$configure_input,;t t
17955 s,@srcdir@,$ac_srcdir,;t t
17956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17957 s,@top_srcdir@,$ac_top_srcdir,;t t
17958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17959 s,@builddir@,$ac_builddir,;t t
17960 s,@abs_builddir@,$ac_abs_builddir,;t t
17961 s,@top_builddir@,$ac_top_builddir,;t t
17962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17963 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17964   rm -f $tmp/stdin
17965   if test x"$ac_file" != x-; then
17966     mv $tmp/out $ac_file
17967   else
17968     cat $tmp/out
17969     rm -f $tmp/out
17970   fi
17971
17972 done
17973 _ACEOF
17974 cat >>$CONFIG_STATUS <<\_ACEOF
17975
17976 #
17977 # CONFIG_HEADER section.
17978 #
17979
17980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17982 #
17983 # ac_d sets the value in "#define NAME VALUE" lines.
17984 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17985 ac_dB='[        ].*$,\1#\2'
17986 ac_dC=' '
17987 ac_dD=',;t'
17988 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17989 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17990 ac_uB='$,\1#\2define\3'
17991 ac_uC=' '
17992 ac_uD=',;t'
17993
17994 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17995   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17996   case $ac_file in
17997   - | *:- | *:-:* ) # input from stdin
17998         cat >$tmp/stdin
17999         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18000         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18001   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18002         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18003   * )   ac_file_in=$ac_file.in ;;
18004   esac
18005
18006   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18007 echo "$as_me: creating $ac_file" >&6;}
18008
18009   # First look for the input files in the build tree, otherwise in the
18010   # src tree.
18011   ac_file_inputs=`IFS=:
18012     for f in $ac_file_in; do
18013       case $f in
18014       -) echo $tmp/stdin ;;
18015       [\\/$]*)
18016          # Absolute (can't be DOS-style, as IFS=:)
18017          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18018 echo "$as_me: error: cannot find input file: $f" >&2;}
18019    { (exit 1); exit 1; }; }
18020          echo $f;;
18021       *) # Relative
18022          if test -f "$f"; then
18023            # Build tree
18024            echo $f
18025          elif test -f "$srcdir/$f"; then
18026            # Source tree
18027            echo $srcdir/$f
18028          else
18029            # /dev/null tree
18030            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18031 echo "$as_me: error: cannot find input file: $f" >&2;}
18032    { (exit 1); exit 1; }; }
18033          fi;;
18034       esac
18035     done` || { (exit 1); exit 1; }
18036   # Remove the trailing spaces.
18037   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18038
18039 _ACEOF
18040
18041 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18042 # `conftest.undefs', that substitutes the proper values into
18043 # config.h.in to produce config.h.  The first handles `#define'
18044 # templates, and the second `#undef' templates.
18045 # And first: Protect against being on the right side of a sed subst in
18046 # config.status.  Protect against being in an unquoted here document
18047 # in config.status.
18048 rm -f conftest.defines conftest.undefs
18049 # Using a here document instead of a string reduces the quoting nightmare.
18050 # Putting comments in sed scripts is not portable.
18051 #
18052 # `end' is used to avoid that the second main sed command (meant for
18053 # 0-ary CPP macros) applies to n-ary macro definitions.
18054 # See the Autoconf documentation for `clear'.
18055 cat >confdef2sed.sed <<\_ACEOF
18056 s/[\\&,]/\\&/g
18057 s,[\\$`],\\&,g
18058 t clear
18059 : clear
18060 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18061 t end
18062 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18063 : end
18064 _ACEOF
18065 # If some macros were called several times there might be several times
18066 # the same #defines, which is useless.  Nevertheless, we may not want to
18067 # sort them, since we want the *last* AC-DEFINE to be honored.
18068 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18069 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18070 rm -f confdef2sed.sed
18071
18072 # This sed command replaces #undef with comments.  This is necessary, for
18073 # example, in the case of _POSIX_SOURCE, which is predefined and required
18074 # on some systems where configure will not decide to define it.
18075 cat >>conftest.undefs <<\_ACEOF
18076 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18077 _ACEOF
18078
18079 # Break up conftest.defines because some shells have a limit on the size
18080 # of here documents, and old seds have small limits too (100 cmds).
18081 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18082 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18083 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18084 echo '  :' >>$CONFIG_STATUS
18085 rm -f conftest.tail
18086 while grep . conftest.defines >/dev/null
18087 do
18088   # Write a limited-size here document to $tmp/defines.sed.
18089   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18090   # Speed up: don't consider the non `#define' lines.
18091   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18092   # Work around the forget-to-reset-the-flag bug.
18093   echo 't clr' >>$CONFIG_STATUS
18094   echo ': clr' >>$CONFIG_STATUS
18095   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18096   echo 'CEOF
18097   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18098   rm -f $tmp/in
18099   mv $tmp/out $tmp/in
18100 ' >>$CONFIG_STATUS
18101   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18102   rm -f conftest.defines
18103   mv conftest.tail conftest.defines
18104 done
18105 rm -f conftest.defines
18106 echo '  fi # egrep' >>$CONFIG_STATUS
18107 echo >>$CONFIG_STATUS
18108
18109 # Break up conftest.undefs because some shells have a limit on the size
18110 # of here documents, and old seds have small limits too (100 cmds).
18111 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18112 rm -f conftest.tail
18113 while grep . conftest.undefs >/dev/null
18114 do
18115   # Write a limited-size here document to $tmp/undefs.sed.
18116   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18117   # Speed up: don't consider the non `#undef'
18118   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18119   # Work around the forget-to-reset-the-flag bug.
18120   echo 't clr' >>$CONFIG_STATUS
18121   echo ': clr' >>$CONFIG_STATUS
18122   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18123   echo 'CEOF
18124   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18125   rm -f $tmp/in
18126   mv $tmp/out $tmp/in
18127 ' >>$CONFIG_STATUS
18128   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18129   rm -f conftest.undefs
18130   mv conftest.tail conftest.undefs
18131 done
18132 rm -f conftest.undefs
18133
18134 cat >>$CONFIG_STATUS <<\_ACEOF
18135   # Let's still pretend it is `configure' which instantiates (i.e., don't
18136   # use $as_me), people would be surprised to read:
18137   #    /* config.h.  Generated by config.status.  */
18138   if test x"$ac_file" = x-; then
18139     echo "/* Generated by configure.  */" >$tmp/config.h
18140   else
18141     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18142   fi
18143   cat $tmp/in >>$tmp/config.h
18144   rm -f $tmp/in
18145   if test x"$ac_file" != x-; then
18146     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18147       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18148 echo "$as_me: $ac_file is unchanged" >&6;}
18149     else
18150       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18152          X"$ac_file" : 'X\(//\)[^/]' \| \
18153          X"$ac_file" : 'X\(//\)$' \| \
18154          X"$ac_file" : 'X\(/\)' \| \
18155          .     : '\(.\)' 2>/dev/null ||
18156 echo X"$ac_file" |
18157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18159           /^X\(\/\/\)$/{ s//\1/; q; }
18160           /^X\(\/\).*/{ s//\1/; q; }
18161           s/.*/./; q'`
18162       { case "$ac_dir" in
18163   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18164   *)                      as_incr_dir=.;;
18165 esac
18166 as_dummy="$ac_dir"
18167 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18168   case $as_mkdir_dir in
18169     # Skip DOS drivespec
18170     ?:) as_incr_dir=$as_mkdir_dir ;;
18171     *)
18172       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18173       test -d "$as_incr_dir" ||
18174         mkdir "$as_incr_dir" ||
18175         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18176 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18177    { (exit 1); exit 1; }; }
18178     ;;
18179   esac
18180 done; }
18181
18182       rm -f $ac_file
18183       mv $tmp/config.h $ac_file
18184     fi
18185   else
18186     cat $tmp/config.h
18187     rm -f $tmp/config.h
18188   fi
18189   # Run the commands associated with the file.
18190   case $ac_file in
18191     src/include/pg_config.h )
18192 # Update timestamp for pg_config.h (see Makefile.global)
18193 echo >src/include/stamp-h
18194  ;;
18195   esac
18196 done
18197 _ACEOF
18198 cat >>$CONFIG_STATUS <<\_ACEOF
18199
18200 #
18201 # CONFIG_LINKS section.
18202 #
18203
18204 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18205   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18206   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18207
18208   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18209 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18210
18211   if test ! -r $srcdir/$ac_source; then
18212     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18213 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18214    { (exit 1); exit 1; }; }
18215   fi
18216   rm -f $ac_dest
18217
18218   # Make relative symlinks.
18219   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18220 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221          X"$ac_dest" : 'X\(//\)[^/]' \| \
18222          X"$ac_dest" : 'X\(//\)$' \| \
18223          X"$ac_dest" : 'X\(/\)' \| \
18224          .     : '\(.\)' 2>/dev/null ||
18225 echo X"$ac_dest" |
18226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18227           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18228           /^X\(\/\/\)$/{ s//\1/; q; }
18229           /^X\(\/\).*/{ s//\1/; q; }
18230           s/.*/./; q'`
18231   { case "$ac_dest_dir" in
18232   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18233   *)                      as_incr_dir=.;;
18234 esac
18235 as_dummy="$ac_dest_dir"
18236 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18237   case $as_mkdir_dir in
18238     # Skip DOS drivespec
18239     ?:) as_incr_dir=$as_mkdir_dir ;;
18240     *)
18241       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18242       test -d "$as_incr_dir" ||
18243         mkdir "$as_incr_dir" ||
18244         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18245 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18246    { (exit 1); exit 1; }; }
18247     ;;
18248   esac
18249 done; }
18250
18251   ac_builddir=.
18252
18253 if test "$ac_dest_dir" != .; then
18254   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18255   # A "../" for each directory in $ac_dir_suffix.
18256   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18257 else
18258   ac_dir_suffix= ac_top_builddir=
18259 fi
18260
18261 case $srcdir in
18262   .)  # No --srcdir option.  We are building in place.
18263     ac_srcdir=.
18264     if test -z "$ac_top_builddir"; then
18265        ac_top_srcdir=.
18266     else
18267        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18268     fi ;;
18269   [\\/]* | ?:[\\/]* )  # Absolute path.
18270     ac_srcdir=$srcdir$ac_dir_suffix;
18271     ac_top_srcdir=$srcdir ;;
18272   *) # Relative path.
18273     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18274     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18275 esac
18276 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18277 # absolute.
18278 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18279 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18280 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18281 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18282
18283
18284   case $srcdir in
18285   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18286       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18287   esac
18288
18289   # Make a symlink if possible; otherwise try a hard link.
18290   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18291     ln $srcdir/$ac_source $ac_dest ||
18292     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18293 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18294    { (exit 1); exit 1; }; }
18295 done
18296 _ACEOF
18297
18298 cat >>$CONFIG_STATUS <<\_ACEOF
18299
18300 { (exit 0); exit 0; }
18301 _ACEOF
18302 chmod +x $CONFIG_STATUS
18303 ac_clean_files=$ac_clean_files_save
18304
18305
18306 # configure is writing to config.log, and then calls config.status.
18307 # config.status does its own redirection, appending to config.log.
18308 # Unfortunately, on DOS this fails, as config.log is still kept open
18309 # by configure, so config.status won't be able to write to it; its
18310 # output is simply discarded.  So we exec the FD to /dev/null,
18311 # effectively closing config.log, so it can be properly (re)opened and
18312 # appended to by config.status.  When coming back to configure, we
18313 # need to make the FD available again.
18314 if test "$no_create" != yes; then
18315   ac_cs_success=:
18316   exec 5>/dev/null
18317   $SHELL $CONFIG_STATUS || ac_cs_success=false
18318   exec 5>>config.log
18319   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18320   # would make configure fail if this is the last instruction.
18321   $ac_cs_success || { (exit 1); exit 1; }
18322 fi
18323