]> granicus.if.org Git - postgresql/blob - configure
Translation update
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.0.0beta1.
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 2003 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='8.0.0beta1'
262 PACKAGE_STRING='PostgreSQL 8.0.0beta1'
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 infodir='${prefix}/info'
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   -infodir | --infodir | --infodi | --infod | --info | --inf)
440     ac_prev=infodir ;;
441   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442     infodir=$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 infodir 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 8.0.0beta1 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 8.0.0beta1:";;
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-nls[=LANGUAGES]  enable Native Language Support
842   --disable-shared        do not build shared libraries
843   --disable-rpath         do not embed shared library search path in executables
844   --disable-spinlocks     do not use spinlocks
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   --enable-thread-safety  make client libraries thread-safe
849   --enable-thread-safety-force  force thread-safety in spite of thread test failure
850   --disable-largefile     omit support for large files
851
852 Optional Packages:
853   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855
856   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
857   --without-docdir        do not install the documentation
858   --with-includes=DIRS    look for additional header files in DIRS
859   --with-libraries=DIRS   look for additional libraries in DIRS
860   --with-libs=DIRS        alternative spelling of --with-libraries
861   --with-pgport=PORTNUM   change default port number 5432
862   --with-tcl              build Tcl and Tk interfaces
863   --with-tclconfig=DIR    tclConfig.sh is in DIR
864   --with-perl             build Perl modules (PL/Perl)
865   --with-python           build Python modules (PL/Python)
866   --with-krb4             build with Kerberos 4 support
867   --with-krb5             build with Kerberos 5 support
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          build with OpenSSL support
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 8.0.0beta1
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 2003 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 8.0.0beta1, 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 ac_aux_dir=
1253 for ac_dir in config $srcdir/config; do
1254   if test -f $ac_dir/install-sh; then
1255     ac_aux_dir=$ac_dir
1256     ac_install_sh="$ac_aux_dir/install-sh -c"
1257     break
1258   elif test -f $ac_dir/install.sh; then
1259     ac_aux_dir=$ac_dir
1260     ac_install_sh="$ac_aux_dir/install.sh -c"
1261     break
1262   elif test -f $ac_dir/shtool; then
1263     ac_aux_dir=$ac_dir
1264     ac_install_sh="$ac_aux_dir/shtool install -c"
1265     break
1266   fi
1267 done
1268 if test -z "$ac_aux_dir"; then
1269   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1270 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1271    { (exit 1); exit 1; }; }
1272 fi
1273 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1274 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1275 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1276
1277
1278 configure_args=$ac_configure_args
1279
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PG_VERSION "$PACKAGE_VERSION"
1284 _ACEOF
1285
1286
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291    { (exit 1); exit 1; }; }
1292
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296   echo $ECHO_N "(cached) $ECHO_C" >&6
1297 else
1298   ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300   ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304    { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308    { (exit 1); exit 1; }; }
1309
1310 fi
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1313 build=$ac_cv_build
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1317
1318
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322   echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324   ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326   ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330    { (exit 1); exit 1; }; }
1331
1332 fi
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1335 host=$ac_cv_host
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339
1340
1341
1342 template=
1343 echo "$as_me:$LINENO: checking which template to use" >&5
1344 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1345
1346
1347
1348
1349 # Check whether --with-template or --without-template was given.
1350 if test "${with_template+set}" = set; then
1351   withval="$with_template"
1352
1353   case $withval in
1354     yes)
1355       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1356 echo "$as_me: error: argument required for --with-template option" >&2;}
1357    { (exit 1); exit 1; }; }
1358       ;;
1359     no)
1360       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362    { (exit 1); exit 1; }; }
1363       ;;
1364     *)
1365
1366   case $withval in
1367     list)   echo; ls "$srcdir/src/template"; exit;;
1368     *)      if test -f "$srcdir/src/template/$with_template" ; then
1369               template=$withval
1370             else
1371               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1372 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1373    { (exit 1); exit 1; }; }
1374             fi;;
1375   esac
1376
1377       ;;
1378   esac
1379
1380 else
1381
1382 # --with-template not given
1383
1384 case $host_os in
1385      aix*) template=aix ;;
1386     beos*) template=beos ;;
1387     bsdi*) template=bsdi ;;
1388   cygwin*) template=cygwin ;;
1389   darwin*) template=darwin ;;
1390     dgux*) template=dgux ;;
1391  freebsd*) template=freebsd ;;
1392     hpux*) template=hpux ;;
1393     irix*) template=irix ;;
1394    linux*) template=linux ;;
1395    mingw*) template=win32 ;;
1396   netbsd*) template=netbsd ;;
1397 nextstep*) template=nextstep ;;
1398  openbsd*) template=openbsd ;;
1399      osf*) template=osf ;;
1400      qnx*) template=qnx4 ;;
1401      sco*) template=sco ;;
1402  solaris*) template=solaris ;;
1403    sunos*) template=sunos4 ;;
1404  sysv4.2*)
1405         case $host_vendor in
1406           univel) template=univel ;;
1407         esac ;;
1408    sysv4*) template=svr4 ;;
1409    sysv5*) template=unixware ;;
1410   ultrix*) template=ultrix4 ;;
1411 esac
1412
1413   if test x"$template" = x"" ; then
1414     { { echo "$as_me:$LINENO: error:
1415 *******************************************************************
1416 PostgreSQL has apparently not been ported to your platform yet.
1417 To try a manual configuration, look into the src/template directory
1418 for a similar platform and use the '--with-template=' option.
1419
1420 Please also contact <pgsql-ports@postgresql.org> to see about
1421 rectifying this.  Include the above 'checking host system type...'
1422 line.
1423 *******************************************************************
1424 " >&5
1425 echo "$as_me: error:
1426 *******************************************************************
1427 PostgreSQL has apparently not been ported to your platform yet.
1428 To try a manual configuration, look into the src/template directory
1429 for a similar platform and use the '--with-template=' option.
1430
1431 Please also contact <pgsql-ports@postgresql.org> to see about
1432 rectifying this.  Include the above 'checking host system type...'
1433 line.
1434 *******************************************************************
1435 " >&2;}
1436    { (exit 1); exit 1; }; }
1437   fi
1438
1439
1440 fi;
1441
1442
1443 echo "$as_me:$LINENO: result: $template" >&5
1444 echo "${ECHO_T}$template" >&6
1445
1446 PORTNAME=$template
1447
1448
1449 # Initialize default assumption that we do not need separate assembly code
1450 # for TAS (test-and-set).  This can be overridden by the template file
1451 # when it's executed.
1452 need_tas=no
1453 tas_file=dummy.s
1454
1455
1456
1457 ##
1458 ## Command line options
1459 ##
1460
1461 #
1462 # Installation directory for documentation
1463 #
1464
1465
1466
1467 # Check whether --with-docdir or --without-docdir was given.
1468 if test "${with_docdir+set}" = set; then
1469   withval="$with_docdir"
1470
1471   case $withval in
1472     yes)
1473       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1474 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1475    { (exit 1); exit 1; }; }
1476       ;;
1477     no)
1478       docdir=
1479       ;;
1480     *)
1481       docdir=$withval
1482       ;;
1483   esac
1484
1485 else
1486   docdir='${prefix}/doc'
1487 fi;
1488
1489
1490
1491
1492 #
1493 # Add non-standard directories to the include path
1494 #
1495
1496
1497
1498 # Check whether --with-includes or --without-includes was given.
1499 if test "${with_includes+set}" = set; then
1500   withval="$with_includes"
1501
1502   case $withval in
1503     yes)
1504       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1505 echo "$as_me: error: argument required for --with-includes option" >&2;}
1506    { (exit 1); exit 1; }; }
1507       ;;
1508     no)
1509       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1510 echo "$as_me: error: argument required for --with-includes option" >&2;}
1511    { (exit 1); exit 1; }; }
1512       ;;
1513     *)
1514
1515       ;;
1516   esac
1517
1518 fi;
1519
1520
1521
1522 #
1523 # Add non-standard directories to the library search path
1524 #
1525
1526
1527
1528 # Check whether --with-libraries or --without-libraries was given.
1529 if test "${with_libraries+set}" = set; then
1530   withval="$with_libraries"
1531
1532   case $withval in
1533     yes)
1534       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1535 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1536    { (exit 1); exit 1; }; }
1537       ;;
1538     no)
1539       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1540 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1541    { (exit 1); exit 1; }; }
1542       ;;
1543     *)
1544       LIBRARY_DIRS=$withval
1545       ;;
1546   esac
1547
1548 fi;
1549
1550
1551
1552
1553
1554 # Check whether --with-libs or --without-libs was given.
1555 if test "${with_libs+set}" = set; then
1556   withval="$with_libs"
1557
1558   case $withval in
1559     yes)
1560       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1561 echo "$as_me: error: argument required for --with-libs option" >&2;}
1562    { (exit 1); exit 1; }; }
1563       ;;
1564     no)
1565       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1566 echo "$as_me: error: argument required for --with-libs option" >&2;}
1567    { (exit 1); exit 1; }; }
1568       ;;
1569     *)
1570       LIBRARY_DIRS=$withval
1571       ;;
1572   esac
1573
1574 fi;
1575
1576
1577
1578 #
1579 # 64-bit integer date/time storage (--enable-integer-datetimes)
1580 #
1581 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1582 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1583
1584
1585 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1586 if test "${enable_integer_datetimes+set}" = set; then
1587   enableval="$enable_integer_datetimes"
1588
1589   case $enableval in
1590     yes)
1591
1592 cat >>confdefs.h <<\_ACEOF
1593 #define USE_INTEGER_DATETIMES 1
1594 _ACEOF
1595
1596       ;;
1597     no)
1598       :
1599       ;;
1600     *)
1601       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1602 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1603    { (exit 1); exit 1; }; }
1604       ;;
1605   esac
1606
1607 else
1608   enable_integer_datetimes=no
1609
1610 fi;
1611
1612 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1613 echo "${ECHO_T}$enable_integer_datetimes" >&6
1614
1615
1616 #
1617 # NLS
1618 #
1619 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1620 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1621
1622
1623 # Check whether --enable-nls or --disable-nls was given.
1624 if test "${enable_nls+set}" = set; then
1625   enableval="$enable_nls"
1626
1627   case $enableval in
1628     yes)
1629       :
1630       ;;
1631     no)
1632       :
1633       ;;
1634     *)
1635       enable_nls=yes
1636 WANTED_LANGUAGES=$enableval
1637       ;;
1638   esac
1639
1640 else
1641   enable_nls=no
1642 fi;
1643
1644
1645 if test "$enable_nls" = yes; then
1646
1647 cat >>confdefs.h <<\_ACEOF
1648 #define ENABLE_NLS 1
1649 _ACEOF
1650
1651 fi
1652
1653 echo "$as_me:$LINENO: result: $enable_nls" >&5
1654 echo "${ECHO_T}$enable_nls" >&6
1655
1656
1657
1658 #
1659 # Default port number (--with-pgport), default 5432
1660 #
1661 echo "$as_me:$LINENO: checking for default port number" >&5
1662 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1663
1664
1665
1666 # Check whether --with-pgport or --without-pgport was given.
1667 if test "${with_pgport+set}" = set; then
1668   withval="$with_pgport"
1669
1670   case $withval in
1671     yes)
1672       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1673 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1674    { (exit 1); exit 1; }; }
1675       ;;
1676     no)
1677       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1678 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1679    { (exit 1); exit 1; }; }
1680       ;;
1681     *)
1682       default_port=$withval
1683       ;;
1684   esac
1685
1686 else
1687   default_port=5432
1688 fi;
1689
1690 echo "$as_me:$LINENO: result: $default_port" >&5
1691 echo "${ECHO_T}$default_port" >&6
1692 # Need both of these because some places want an integer and some a string
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define DEF_PGPORT ${default_port}
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define DEF_PGPORT_STR "${default_port}"
1701 _ACEOF
1702
1703
1704
1705 #
1706 # Option to disable shared libraries
1707 #
1708
1709
1710 # Check whether --enable-shared or --disable-shared was given.
1711 if test "${enable_shared+set}" = set; then
1712   enableval="$enable_shared"
1713
1714   case $enableval in
1715     yes)
1716       :
1717       ;;
1718     no)
1719       :
1720       ;;
1721     *)
1722       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1723 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1724    { (exit 1); exit 1; }; }
1725       ;;
1726   esac
1727
1728 else
1729   enable_shared=yes
1730
1731 fi;
1732
1733
1734
1735 #
1736 # '-rpath'-like feature can be disabled
1737 #
1738
1739
1740 # Check whether --enable-rpath or --disable-rpath was given.
1741 if test "${enable_rpath+set}" = set; then
1742   enableval="$enable_rpath"
1743
1744   case $enableval in
1745     yes)
1746       :
1747       ;;
1748     no)
1749       :
1750       ;;
1751     *)
1752       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1753 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1754    { (exit 1); exit 1; }; }
1755       ;;
1756   esac
1757
1758 else
1759   enable_rpath=yes
1760
1761 fi;
1762
1763
1764
1765 #
1766 # Spinlocks
1767 #
1768
1769
1770 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1771 if test "${enable_spinlocks+set}" = set; then
1772   enableval="$enable_spinlocks"
1773
1774   case $enableval in
1775     yes)
1776       :
1777       ;;
1778     no)
1779       :
1780       ;;
1781     *)
1782       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1783 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1784    { (exit 1); exit 1; }; }
1785       ;;
1786   esac
1787
1788 else
1789   enable_spinlocks=yes
1790
1791 fi;
1792
1793
1794 #
1795 # --enable-debug adds -g to compiler flags
1796 #
1797
1798
1799 # Check whether --enable-debug or --disable-debug was given.
1800 if test "${enable_debug+set}" = set; then
1801   enableval="$enable_debug"
1802
1803   case $enableval in
1804     yes)
1805       :
1806       ;;
1807     no)
1808       :
1809       ;;
1810     *)
1811       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1812 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1813    { (exit 1); exit 1; }; }
1814       ;;
1815   esac
1816
1817 else
1818   enable_debug=no
1819
1820 fi;
1821
1822
1823
1824 #
1825 # C compiler
1826 #
1827
1828 # For historical reasons you can also use --with-CC to specify the C compiler
1829 # to use, although the standard way to do this is to set the CC environment
1830 # variable.
1831
1832
1833
1834 # Check whether --with-CC or --without-CC was given.
1835 if test "${with_CC+set}" = set; then
1836   withval="$with_CC"
1837
1838   case $withval in
1839     yes)
1840       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1841 echo "$as_me: error: argument required for --with-CC option" >&2;}
1842    { (exit 1); exit 1; }; }
1843       ;;
1844     no)
1845       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1846 echo "$as_me: error: argument required for --with-CC option" >&2;}
1847    { (exit 1); exit 1; }; }
1848       ;;
1849     *)
1850       CC=$with_CC
1851       ;;
1852   esac
1853
1854 fi;
1855
1856
1857 case $template in
1858   aix) pgac_cc_list="gcc xlc";;
1859  irix) pgac_cc_list="cc";; # no gcc
1860     *) pgac_cc_list="gcc cc";;
1861 esac
1862
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869   for ac_prog in $pgac_cc_list
1870   do
1871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$CC"; then
1879   ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899   echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906     test -n "$CC" && break
1907   done
1908 fi
1909 if test -z "$CC"; then
1910   ac_ct_CC=$CC
1911   for ac_prog in $pgac_cc_list
1912 do
1913   # Extract the first word of "$ac_prog", so it can be a program name with args.
1914 set dummy $ac_prog; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$ac_ct_CC"; then
1921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_ac_ct_CC="$ac_prog"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948   test -n "$ac_ct_CC" && break
1949 done
1950
1951   CC=$ac_ct_CC
1952 fi
1953
1954
1955 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1956 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1957    { (exit 1); exit 1; }; }
1958
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961      "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964   (eval $ac_compiler --version </dev/null >&5) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969   (eval $ac_compiler -v </dev/null >&5) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974   (eval $ac_compiler -V </dev/null >&5) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }
1978
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line $LINENO "configure"
1981 #include "confdefs.h"
1982
1983 #ifdef F77_DUMMY_MAIN
1984 #  ifdef __cplusplus
1985      extern "C"
1986 #  endif
1987    int F77_DUMMY_MAIN() { return 1; }
1988 #endif
1989 int
1990 main ()
1991 {
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 ac_clean_files_save=$ac_clean_files
1998 ac_clean_files="$ac_clean_files a.out a.exe"
1999 # Try to create an executable without -o first, disregard a.out.
2000 # It will help us diagnose broken compilers, and finding out an intuition
2001 # of exeext.
2002 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2003 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2004 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2005 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2006   (eval $ac_link_default) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; then
2010   # Find the output, starting from the most likely.  This scheme is
2011 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2012 # resort.
2013
2014 # Be careful to initialize this variable, since it used to be cached.
2015 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2016 ac_cv_exeext=
2017 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2018                 ls a.out conftest 2>/dev/null;
2019                 ls a.* conftest.* 2>/dev/null`; do
2020   case $ac_file in
2021     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2022     a.out ) # We found the default executable, but exeext='' is most
2023             # certainly right.
2024             break;;
2025     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2027           export ac_cv_exeext
2028           break;;
2029     * ) break;;
2030   esac
2031 done
2032 else
2033   echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2036 echo "$as_me: error: C compiler cannot create executables" >&2;}
2037    { (exit 77); exit 77; }; }
2038 fi
2039
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2043
2044 # Check the compiler produces executables we can run.  If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051   if { ac_try='./$ac_file'
2052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053   (eval $ac_try) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }; }; then
2057     cross_compiling=no
2058   else
2059     if test "$cross_compiling" = maybe; then
2060         cross_compiling=yes
2061     else
2062         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'." >&5
2064 echo "$as_me: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&2;}
2066    { (exit 1); exit 1; }; }
2067     fi
2068   fi
2069 fi
2070 echo "$as_me:$LINENO: result: yes" >&5
2071 echo "${ECHO_T}yes" >&6
2072
2073 rm -f a.out a.exe conftest$ac_cv_exeext
2074 ac_clean_files=$ac_clean_files_save
2075 # Check the compiler produces executables we can run.  If not, either
2076 # the compiler is broken, or we cross compile.
2077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2080 echo "${ECHO_T}$cross_compiling" >&6
2081
2082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2085   (eval $ac_link) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; then
2089   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2090 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2091 # work properly (i.e., refer to `conftest.exe'), while it won't with
2092 # `rm'.
2093 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2094   case $ac_file in
2095     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097           export ac_cv_exeext
2098           break;;
2099     * ) break;;
2100   esac
2101 done
2102 else
2103   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi
2107
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2111
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2114 ac_exeext=$EXEEXT
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 #include "confdefs.h"
2123
2124 #ifdef F77_DUMMY_MAIN
2125 #  ifdef __cplusplus
2126      extern "C"
2127 #  endif
2128    int F77_DUMMY_MAIN() { return 1; }
2129 #endif
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.o conftest.obj
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }; then
2144   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2145   case $ac_file in
2146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2147     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2148        break;;
2149   esac
2150 done
2151 else
2152   echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2155 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2164 ac_objext=$OBJEXT
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2173
2174 #ifdef F77_DUMMY_MAIN
2175 #  ifdef __cplusplus
2176      extern "C"
2177 #  endif
2178    int F77_DUMMY_MAIN() { return 1; }
2179 #endif
2180 int
2181 main ()
2182 {
2183 #ifndef __GNUC__
2184        choke me
2185 #endif
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -s conftest.$ac_objext'
2198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199   (eval $ac_try) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; }; then
2203   ac_compiler_gnu=yes
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2207 ac_compiler_gnu=no
2208 fi
2209 rm -f conftest.$ac_objext conftest.$ac_ext
2210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2211
2212 fi
2213 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2215 GCC=`test $ac_compiler_gnu = yes && echo yes`
2216 ac_test_CFLAGS=${CFLAGS+set}
2217 ac_save_CFLAGS=$CFLAGS
2218 CFLAGS="-g"
2219 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2220 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2221 if test "${ac_cv_prog_cc_g+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2227
2228 #ifdef F77_DUMMY_MAIN
2229 #  ifdef __cplusplus
2230      extern "C"
2231 #  endif
2232    int F77_DUMMY_MAIN() { return 1; }
2233 #endif
2234 int
2235 main ()
2236 {
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244   (eval $ac_compile) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); } &&
2248          { ac_try='test -s conftest.$ac_objext'
2249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250   (eval $ac_try) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; }; then
2254   ac_cv_prog_cc_g=yes
2255 else
2256   echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 ac_cv_prog_cc_g=no
2259 fi
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264 if test "$ac_test_CFLAGS" = set; then
2265   CFLAGS=$ac_save_CFLAGS
2266 elif test $ac_cv_prog_cc_g = yes; then
2267   if test "$GCC" = yes; then
2268     CFLAGS="-g -O2"
2269   else
2270     CFLAGS="-g"
2271   fi
2272 else
2273   if test "$GCC" = yes; then
2274     CFLAGS="-O2"
2275   else
2276     CFLAGS=
2277   fi
2278 fi
2279 # Some people use a C++ compiler to compile C.  Since we use `exit',
2280 # in C++ we need to declare it.  In case someone uses the same compiler
2281 # for both compiling C and C++ we need to have the C++ compiler decide
2282 # the declaration of exit, since it's the most demanding environment.
2283 cat >conftest.$ac_ext <<_ACEOF
2284 #ifndef __cplusplus
2285   choke me
2286 #endif
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   (eval $ac_compile) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); } &&
2294          { ac_try='test -s conftest.$ac_objext'
2295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296   (eval $ac_try) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; }; then
2300   for ac_declaration in \
2301    ''\
2302    '#include <stdlib.h>' \
2303    'extern "C" void std::exit (int) throw (); using std::exit;' \
2304    'extern "C" void std::exit (int); using std::exit;' \
2305    'extern "C" void exit (int) throw ();' \
2306    'extern "C" void exit (int);' \
2307    'void exit (int);'
2308 do
2309   cat >conftest.$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 #include "confdefs.h"
2312 #include <stdlib.h>
2313 $ac_declaration
2314 #ifdef F77_DUMMY_MAIN
2315 #  ifdef __cplusplus
2316      extern "C"
2317 #  endif
2318    int F77_DUMMY_MAIN() { return 1; }
2319 #endif
2320 int
2321 main ()
2322 {
2323 exit (42);
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330   (eval $ac_compile) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); } &&
2334          { ac_try='test -s conftest.$ac_objext'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; }; then
2340   :
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 continue
2345 fi
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347   cat >conftest.$ac_ext <<_ACEOF
2348 #line $LINENO "configure"
2349 #include "confdefs.h"
2350 $ac_declaration
2351 #ifdef F77_DUMMY_MAIN
2352 #  ifdef __cplusplus
2353      extern "C"
2354 #  endif
2355    int F77_DUMMY_MAIN() { return 1; }
2356 #endif
2357 int
2358 main ()
2359 {
2360 exit (42);
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   break
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 fi
2382 rm -f conftest.$ac_objext conftest.$ac_ext
2383 done
2384 rm -f conftest*
2385 if test -n "$ac_declaration"; then
2386   echo '#ifdef __cplusplus' >>confdefs.h
2387   echo $ac_declaration      >>confdefs.h
2388   echo '#endif'             >>confdefs.h
2389 fi
2390
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 fi
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401
2402
2403 unset CFLAGS
2404
2405 #
2406 # Read the template
2407 #
2408 . "$srcdir/src/template/$template" || exit
2409
2410 # CFLAGS are selected so:
2411 # If the user specifies something in the environment, that is used.
2412 # else:  If the template file set something, that is used.
2413 # else:  If the compiler is GCC, then we use -O2.
2414 # else:  If the compiler is something else, then we use -0.
2415
2416 if test "$ac_env_CFLAGS_set" = set; then
2417   CFLAGS=$ac_env_CFLAGS_value
2418 elif test "${CFLAGS+set}" = set; then
2419   : # (keep what template set)
2420 elif test "$GCC" = yes; then
2421   CFLAGS="-O2"
2422 else
2423   # if the user selected debug mode, don't use -O
2424   if test "$enable_debug" != yes; then
2425     CFLAGS="-O"
2426   fi
2427 fi
2428
2429 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2430 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2431 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2432 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   pgac_save_CFLAGS=$CFLAGS
2436 if test "$GCC" = yes; then
2437   pgac_try="-fno-strict-aliasing"
2438 else
2439   # Maybe fill in later...
2440   pgac_try=
2441 fi
2442
2443 for pgac_flag in $pgac_try; do
2444   CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2445   cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2447 #include "confdefs.h"
2448
2449 #ifdef F77_DUMMY_MAIN
2450 #  ifdef __cplusplus
2451      extern "C"
2452 #  endif
2453    int F77_DUMMY_MAIN() { return 1; }
2454 #endif
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465   (eval $ac_compile) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); } &&
2469          { ac_try='test -s conftest.$ac_objext'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2476 break
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 fi
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2482 done
2483
2484 CFLAGS=$pgac_save_CFLAGS
2485
2486 fi
2487 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2488 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2489
2490 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2491   CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2492 fi
2493
2494 # supply -g if --enable-debug
2495 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2496   CFLAGS="$CFLAGS -g"
2497 fi
2498
2499 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2500 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2501
2502 # We already have this in Makefile.win32, but configure needs it too
2503 if test "$PORTNAME" = "win32"; then
2504   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2505 fi
2506
2507 # Check if the compiler still works with the template settings
2508 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2509 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2510
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 #include "confdefs.h"
2514
2515 #ifdef F77_DUMMY_MAIN
2516 #  ifdef __cplusplus
2517      extern "C"
2518 #  endif
2519    int F77_DUMMY_MAIN() { return 1; }
2520 #endif
2521 int
2522 main ()
2523 {
2524 return 0;
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531   (eval $ac_link) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -s conftest$ac_exeext'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2549 echo "$as_me: error: cannot proceed" >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2553
2554 # Defend against gcc -ffast-math
2555 if test "$GCC" = yes; then
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2559
2560 #ifdef F77_DUMMY_MAIN
2561 #  ifdef __cplusplus
2562      extern "C"
2563 #  endif
2564    int F77_DUMMY_MAIN() { return 1; }
2565 #endif
2566 int
2567 main ()
2568 {
2569 #ifdef __FAST_MATH__
2570 choke me
2571 #endif
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578   (eval $ac_compile) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   :
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2593 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2594    { (exit 1); exit 1; }; }
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 fi
2598
2599 ac_ext=c
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2605 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2606 # On Suns, sometimes $CPP names a directory.
2607 if test -n "$CPP" && test -d "$CPP"; then
2608   CPP=
2609 fi
2610 if test -z "$CPP"; then
2611   if test "${ac_cv_prog_CPP+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614       # Double quotes because CPP needs to be expanded
2615     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2616     do
2617       ac_preproc_ok=false
2618 for ac_c_preproc_warn_flag in '' yes
2619 do
2620   # Use a header file that comes with gcc, so configuring glibc
2621   # with a fresh cross-compiler works.
2622   # On the NeXT, cc -E runs the code through the compiler's parser,
2623   # not just through cpp. "Syntax error" is here to catch this case.
2624   cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 #include "confdefs.h"
2627 #include <assert.h>
2628                      Syntax error
2629 _ACEOF
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632   ac_status=$?
2633   egrep -v '^ *\+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } >/dev/null; then
2638   if test -s conftest.err; then
2639     ac_cpp_err=$ac_c_preproc_warn_flag
2640   else
2641     ac_cpp_err=
2642   fi
2643 else
2644   ac_cpp_err=yes
2645 fi
2646 if test -z "$ac_cpp_err"; then
2647   :
2648 else
2649   echo "$as_me: failed program was:" >&5
2650   cat conftest.$ac_ext >&5
2651   # Broken: fails on valid input.
2652 continue
2653 fi
2654 rm -f conftest.err conftest.$ac_ext
2655
2656   # OK, works on sane cases.  Now check whether non-existent headers
2657   # can be detected and how.
2658   cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 #include "confdefs.h"
2661 #include <ac_nonexistent.h>
2662 _ACEOF
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665   ac_status=$?
2666   egrep -v '^ *\+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } >/dev/null; then
2671   if test -s conftest.err; then
2672     ac_cpp_err=$ac_c_preproc_warn_flag
2673   else
2674     ac_cpp_err=
2675   fi
2676 else
2677   ac_cpp_err=yes
2678 fi
2679 if test -z "$ac_cpp_err"; then
2680   # Broken: success on invalid input.
2681 continue
2682 else
2683   echo "$as_me: failed program was:" >&5
2684   cat conftest.$ac_ext >&5
2685   # Passes both tests.
2686 ac_preproc_ok=:
2687 break
2688 fi
2689 rm -f conftest.err conftest.$ac_ext
2690
2691 done
2692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2693 rm -f conftest.err conftest.$ac_ext
2694 if $ac_preproc_ok; then
2695   break
2696 fi
2697
2698     done
2699     ac_cv_prog_CPP=$CPP
2700
2701 fi
2702   CPP=$ac_cv_prog_CPP
2703 else
2704   ac_cv_prog_CPP=$CPP
2705 fi
2706 echo "$as_me:$LINENO: result: $CPP" >&5
2707 echo "${ECHO_T}$CPP" >&6
2708 ac_preproc_ok=false
2709 for ac_c_preproc_warn_flag in '' yes
2710 do
2711   # Use a header file that comes with gcc, so configuring glibc
2712   # with a fresh cross-compiler works.
2713   # On the NeXT, cc -E runs the code through the compiler's parser,
2714   # not just through cpp. "Syntax error" is here to catch this case.
2715   cat >conftest.$ac_ext <<_ACEOF
2716 #line $LINENO "configure"
2717 #include "confdefs.h"
2718 #include <assert.h>
2719                      Syntax error
2720 _ACEOF
2721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723   ac_status=$?
2724   egrep -v '^ *\+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } >/dev/null; then
2729   if test -s conftest.err; then
2730     ac_cpp_err=$ac_c_preproc_warn_flag
2731   else
2732     ac_cpp_err=
2733   fi
2734 else
2735   ac_cpp_err=yes
2736 fi
2737 if test -z "$ac_cpp_err"; then
2738   :
2739 else
2740   echo "$as_me: failed program was:" >&5
2741   cat conftest.$ac_ext >&5
2742   # Broken: fails on valid input.
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_ext
2746
2747   # OK, works on sane cases.  Now check whether non-existent headers
2748   # can be detected and how.
2749   cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2752 #include <ac_nonexistent.h>
2753 _ACEOF
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756   ac_status=$?
2757   egrep -v '^ *\+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } >/dev/null; then
2762   if test -s conftest.err; then
2763     ac_cpp_err=$ac_c_preproc_warn_flag
2764   else
2765     ac_cpp_err=
2766   fi
2767 else
2768   ac_cpp_err=yes
2769 fi
2770 if test -z "$ac_cpp_err"; then
2771   # Broken: success on invalid input.
2772 continue
2773 else
2774   echo "$as_me: failed program was:" >&5
2775   cat conftest.$ac_ext >&5
2776   # Passes both tests.
2777 ac_preproc_ok=:
2778 break
2779 fi
2780 rm -f conftest.err conftest.$ac_ext
2781
2782 done
2783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2784 rm -f conftest.err conftest.$ac_ext
2785 if $ac_preproc_ok; then
2786   :
2787 else
2788   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2790    { (exit 1); exit 1; }; }
2791 fi
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799
2800
2801 # Create compiler version string
2802 if test x"$GCC" = x"yes" ; then
2803   cc_string="GCC `${CC} --version | sed q`"
2804 else
2805   cc_string=$CC
2806 fi
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2810 _ACEOF
2811
2812
2813
2814 #
2815 # Set up TAS assembly code if needed; the template file has now had its
2816 # chance to request this.
2817 #
2818 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2819
2820
2821 if test "$need_tas" = yes ; then
2822   TAS=tas.o
2823 else
2824   TAS=""
2825 fi
2826
2827
2828
2829 #
2830 # Automatic dependency tracking
2831 #
2832
2833
2834 # Check whether --enable-depend or --disable-depend was given.
2835 if test "${enable_depend+set}" = set; then
2836   enableval="$enable_depend"
2837
2838   case $enableval in
2839     yes)
2840       autodepend=yes
2841       ;;
2842     no)
2843       :
2844       ;;
2845     *)
2846       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2847 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2848    { (exit 1); exit 1; }; }
2849       ;;
2850   esac
2851
2852 else
2853   enable_depend=no
2854
2855 fi;
2856
2857
2858
2859
2860 #
2861 # Enable assert checks
2862 #
2863
2864
2865 # Check whether --enable-cassert or --disable-cassert was given.
2866 if test "${enable_cassert+set}" = set; then
2867   enableval="$enable_cassert"
2868
2869   case $enableval in
2870     yes)
2871
2872 cat >>confdefs.h <<\_ACEOF
2873 #define USE_ASSERT_CHECKING 1
2874 _ACEOF
2875
2876       ;;
2877     no)
2878       :
2879       ;;
2880     *)
2881       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2882 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2883    { (exit 1); exit 1; }; }
2884       ;;
2885   esac
2886
2887 else
2888   enable_cassert=no
2889
2890 fi;
2891
2892
2893
2894 #
2895 # Include directories
2896 #
2897 ac_save_IFS=$IFS
2898 IFS="${IFS}:"
2899 # SRCH_INC comes from the template file
2900 for dir in $with_includes $SRCH_INC; do
2901   if test -d "$dir"; then
2902     INCLUDES="$INCLUDES -I$dir"
2903   else
2904     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2905 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2906   fi
2907 done
2908 IFS=$ac_save_IFS
2909
2910
2911
2912 #
2913 # Library directories
2914 #
2915 ac_save_IFS=$IFS
2916 IFS="${IFS}:"
2917 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2918 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2919   if test -d "$dir"; then
2920     LIBDIRS="$LIBDIRS -L$dir"
2921   else
2922     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2923 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2924   fi
2925 done
2926 IFS=$ac_save_IFS
2927
2928 #
2929 # Enable thread-safe client libraries
2930 #
2931 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2932 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2933
2934
2935 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2936 if test "${enable_thread_safety+set}" = set; then
2937   enableval="$enable_thread_safety"
2938
2939   case $enableval in
2940     yes)
2941       :
2942       ;;
2943     no)
2944       :
2945       ;;
2946     *)
2947       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2948 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2949    { (exit 1); exit 1; }; }
2950       ;;
2951   esac
2952
2953 else
2954   enable_thread_safety=no
2955
2956 fi;
2957
2958
2959
2960 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
2961 if test "${enable_thread_safety_force+set}" = set; then
2962   enableval="$enable_thread_safety_force"
2963
2964   case $enableval in
2965     yes)
2966       :
2967       ;;
2968     no)
2969       :
2970       ;;
2971     *)
2972       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
2973 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976   esac
2977
2978 else
2979   enable_thread_safety_force=no
2980
2981 fi;
2982
2983 if test "$enable_thread_safety" = yes -o \
2984         "$enable_thread_safety_force" = yes; then
2985   enable_thread_safety="yes"    # for 'force'
2986
2987 cat >>confdefs.h <<\_ACEOF
2988 #define ENABLE_THREAD_SAFETY 1
2989 _ACEOF
2990
2991 fi
2992 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2993 echo "${ECHO_T}$enable_thread_safety" >&6
2994
2995
2996 #
2997 # Tcl/Tk
2998 #
2999 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3000 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3001
3002
3003
3004 # Check whether --with-tcl or --without-tcl was given.
3005 if test "${with_tcl+set}" = set; then
3006   withval="$with_tcl"
3007
3008   case $withval in
3009     yes)
3010       :
3011       ;;
3012     no)
3013       :
3014       ;;
3015     *)
3016       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3017 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3018    { (exit 1); exit 1; }; }
3019       ;;
3020   esac
3021
3022 else
3023   with_tcl=no
3024
3025 fi;
3026
3027 echo "$as_me:$LINENO: result: $with_tcl" >&5
3028 echo "${ECHO_T}$with_tcl" >&6
3029
3030
3031 # We see if the path to the Tcl/Tk configuration scripts is specified.
3032 # This will override the use of tclsh to find the paths to search.
3033
3034
3035
3036
3037 # Check whether --with-tclconfig or --without-tclconfig was given.
3038 if test "${with_tclconfig+set}" = set; then
3039   withval="$with_tclconfig"
3040
3041   case $withval in
3042     yes)
3043       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3044 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3045    { (exit 1); exit 1; }; }
3046       ;;
3047     no)
3048       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3049 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3050    { (exit 1); exit 1; }; }
3051       ;;
3052     *)
3053
3054       ;;
3055   esac
3056
3057 fi;
3058
3059
3060 #
3061 # Optionally build Perl modules (PL/Perl)
3062 #
3063 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3064 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3065
3066
3067
3068 # Check whether --with-perl or --without-perl was given.
3069 if test "${with_perl+set}" = set; then
3070   withval="$with_perl"
3071
3072   case $withval in
3073     yes)
3074       :
3075       ;;
3076     no)
3077       :
3078       ;;
3079     *)
3080       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3081 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3082    { (exit 1); exit 1; }; }
3083       ;;
3084   esac
3085
3086 else
3087   with_perl=no
3088
3089 fi;
3090
3091 echo "$as_me:$LINENO: result: $with_perl" >&5
3092 echo "${ECHO_T}$with_perl" >&6
3093
3094
3095 #
3096 # Optionally build Python modules (PL/Python)
3097 #
3098 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3099 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3100
3101
3102
3103 # Check whether --with-python or --without-python was given.
3104 if test "${with_python+set}" = set; then
3105   withval="$with_python"
3106
3107   case $withval in
3108     yes)
3109       :
3110       ;;
3111     no)
3112       :
3113       ;;
3114     *)
3115       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3116 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3117    { (exit 1); exit 1; }; }
3118       ;;
3119   esac
3120
3121 else
3122   with_python=no
3123
3124 fi;
3125
3126 echo "$as_me:$LINENO: result: $with_python" >&5
3127 echo "${ECHO_T}$with_python" >&6
3128
3129
3130 #
3131 # Kerberos 4
3132 #
3133 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3134 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3135
3136
3137
3138 # Check whether --with-krb4 or --without-krb4 was given.
3139 if test "${with_krb4+set}" = set; then
3140   withval="$with_krb4"
3141
3142   case $withval in
3143     yes)
3144
3145
3146 cat >>confdefs.h <<\_ACEOF
3147 #define KRB4 1
3148 _ACEOF
3149
3150   krb_srvtab="/etc/srvtab"
3151
3152       ;;
3153     no)
3154       :
3155       ;;
3156     *)
3157       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3158 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3159    { (exit 1); exit 1; }; }
3160       ;;
3161   esac
3162
3163 else
3164   with_krb4=no
3165
3166 fi;
3167
3168 echo "$as_me:$LINENO: result: $with_krb4" >&5
3169 echo "${ECHO_T}$with_krb4" >&6
3170
3171
3172
3173 #
3174 # Kerberos 5
3175 #
3176 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3177 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3178
3179
3180
3181 # Check whether --with-krb5 or --without-krb5 was given.
3182 if test "${with_krb5+set}" = set; then
3183   withval="$with_krb5"
3184
3185   case $withval in
3186     yes)
3187
3188
3189 cat >>confdefs.h <<\_ACEOF
3190 #define KRB5 1
3191 _ACEOF
3192
3193   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3194
3195       ;;
3196     no)
3197       :
3198       ;;
3199     *)
3200       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3201 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3202    { (exit 1); exit 1; }; }
3203       ;;
3204   esac
3205
3206 else
3207   with_krb5=no
3208
3209 fi;
3210
3211 echo "$as_me:$LINENO: result: $with_krb5" >&5
3212 echo "${ECHO_T}$with_krb5" >&6
3213
3214
3215
3216 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3217 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3218   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3219 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3220    { (exit 1); exit 1; }; }
3221 fi
3222
3223
3224
3225
3226 #
3227 # Kerberos configuration parameters
3228 #
3229
3230
3231
3232 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3233 if test "${with_krb_srvnam+set}" = set; then
3234   withval="$with_krb_srvnam"
3235
3236   case $withval in
3237     yes)
3238       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3239 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3240    { (exit 1); exit 1; }; }
3241       ;;
3242     no)
3243       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3244 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3245    { (exit 1); exit 1; }; }
3246       ;;
3247     *)
3248
3249       ;;
3250   esac
3251
3252 else
3253   with_krb_srvnam="postgres"
3254 fi;
3255
3256
3257 cat >>confdefs.h <<_ACEOF
3258 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3259 _ACEOF
3260
3261
3262
3263 #
3264 # PAM
3265 #
3266 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3267 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3268
3269
3270
3271 # Check whether --with-pam or --without-pam was given.
3272 if test "${with_pam+set}" = set; then
3273   withval="$with_pam"
3274
3275   case $withval in
3276     yes)
3277
3278 cat >>confdefs.h <<\_ACEOF
3279 #define USE_PAM 1
3280 _ACEOF
3281
3282       ;;
3283     no)
3284       :
3285       ;;
3286     *)
3287       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3288 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3289    { (exit 1); exit 1; }; }
3290       ;;
3291   esac
3292
3293 else
3294   with_pam=no
3295
3296 fi;
3297
3298 echo "$as_me:$LINENO: result: $with_pam" >&5
3299 echo "${ECHO_T}$with_pam" >&6
3300
3301
3302
3303 #
3304 # Rendezvous
3305 #
3306 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3307 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3308
3309
3310
3311 # Check whether --with-rendezvous or --without-rendezvous was given.
3312 if test "${with_rendezvous+set}" = set; then
3313   withval="$with_rendezvous"
3314
3315   case $withval in
3316     yes)
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define USE_RENDEZVOUS 1
3320 _ACEOF
3321
3322       ;;
3323     no)
3324       :
3325       ;;
3326     *)
3327       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3328 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3329    { (exit 1); exit 1; }; }
3330       ;;
3331   esac
3332
3333 else
3334   with_rendezvous=no
3335
3336 fi;
3337
3338 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3339 echo "${ECHO_T}$with_rendezvous" >&6
3340
3341
3342
3343 #
3344 # OpenSSL
3345 #
3346 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3347 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3348
3349
3350
3351 # Check whether --with-openssl or --without-openssl was given.
3352 if test "${with_openssl+set}" = set; then
3353   withval="$with_openssl"
3354
3355   case $withval in
3356     yes)
3357
3358 cat >>confdefs.h <<\_ACEOF
3359 #define USE_SSL 1
3360 _ACEOF
3361
3362       ;;
3363     no)
3364       :
3365       ;;
3366     *)
3367       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3368 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3369    { (exit 1); exit 1; }; }
3370       ;;
3371   esac
3372
3373 else
3374   with_openssl=no
3375
3376 fi;
3377
3378 echo "$as_me:$LINENO: result: $with_openssl" >&5
3379 echo "${ECHO_T}$with_openssl" >&6
3380
3381
3382
3383 #
3384 # Readline
3385 #
3386
3387
3388
3389 # Check whether --with-readline or --without-readline was given.
3390 if test "${with_readline+set}" = set; then
3391   withval="$with_readline"
3392
3393   case $withval in
3394     yes)
3395       :
3396       ;;
3397     no)
3398       :
3399       ;;
3400     *)
3401       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3402 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3403    { (exit 1); exit 1; }; }
3404       ;;
3405   esac
3406
3407 else
3408   with_readline=yes
3409
3410 fi;
3411
3412 # readline on MinGW has problems with backslashes in psql and other bugs.
3413 # This is particularly a problem with non-US code pages.
3414 # Therefore disable its use until we understand the cause. 2004-07-20
3415 case $host_os in mingw*)
3416   if test "$with_readline" = yes; then
3417     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3418 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3419     with_readline=no
3420   fi;;
3421 esac
3422
3423
3424 #
3425 # Zlib
3426 #
3427
3428
3429
3430 # Check whether --with-zlib or --without-zlib was given.
3431 if test "${with_zlib+set}" = set; then
3432   withval="$with_zlib"
3433
3434   case $withval in
3435     yes)
3436       :
3437       ;;
3438     no)
3439       :
3440       ;;
3441     *)
3442       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3443 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3444    { (exit 1); exit 1; }; }
3445       ;;
3446   esac
3447
3448 else
3449   with_zlib=yes
3450
3451 fi;
3452
3453
3454 #
3455 # Elf
3456 #
3457
3458 # Assume system is ELF if it predefines __ELF__ as 1,
3459 # otherwise believe host_os based default.
3460 case $host_os in
3461     freebsd1*|freebsd2*) elf=no;;
3462     freebsd3*|freebsd4*) elf=yes;;
3463 esac
3464
3465
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 #include "confdefs.h"
3469 #if __ELF__
3470   yes
3471 #endif
3472
3473 _ACEOF
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475   egrep "yes" >/dev/null 2>&1; then
3476   ELF_SYS=true
3477 else
3478   if test "X$elf" = "Xyes" ; then
3479   ELF_SYS=true
3480 else
3481   ELF_SYS=
3482 fi
3483 fi
3484 rm -f conftest*
3485
3486
3487
3488 #
3489 # Assignments
3490 #
3491
3492 CPPFLAGS="$CPPFLAGS $INCLUDES"
3493 LDFLAGS="$LDFLAGS $LIBDIRS"
3494
3495 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3496 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3497 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3498 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3499
3500
3501 for ac_prog in gawk mawk nawk awk
3502 do
3503   # Extract the first word of "$ac_prog", so it can be a program name with args.
3504 set dummy $ac_prog; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_prog_AWK+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -n "$AWK"; then
3511   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518   for ac_exec_ext in '' $ac_executable_extensions; do
3519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_AWK="$ac_prog"
3521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525 done
3526
3527 fi
3528 fi
3529 AWK=$ac_cv_prog_AWK
3530 if test -n "$AWK"; then
3531   echo "$as_me:$LINENO: result: $AWK" >&5
3532 echo "${ECHO_T}$AWK" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538   test -n "$AWK" && break
3539 done
3540
3541 echo "$as_me:$LINENO: checking for flex" >&5
3542 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3543 if test "${pgac_cv_path_flex+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   # Let the user override the test
3547 if test -n "$FLEX"; then
3548   pgac_cv_path_flex=$FLEX
3549 else
3550   pgac_save_IFS=$IFS
3551   IFS=:
3552   for pgac_dir in $PATH; do
3553     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3554       pgac_dir=`pwd`
3555     fi
3556     for pgac_prog in flex lex; do
3557       pgac_candidate="$pgac_dir/$pgac_prog"
3558       if test -f "$pgac_candidate" \
3559         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3560       then
3561         echo '%%'  > conftest.l
3562         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3563           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3564             pgac_broken_flex=$pgac_candidate
3565             continue
3566           fi
3567
3568           pgac_cv_path_flex=$pgac_candidate
3569           break 2
3570         fi
3571       fi
3572     done
3573   done
3574   IFS=$pgac_save_IFS
3575   rm -f conftest.l
3576   : ${pgac_cv_path_flex=no}
3577 fi
3578
3579 fi
3580 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3581 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3582 if test x"$pgac_cv_path_flex" = x"no"; then
3583   if test -n "$pgac_broken_flex"; then
3584     { echo "$as_me:$LINENO: WARNING:
3585 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3586 *** should get version 2.5.4 or later." >&5
3587 echo "$as_me: WARNING:
3588 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3589 *** should get version 2.5.4 or later." >&2;}
3590   fi
3591
3592   { echo "$as_me:$LINENO: WARNING:
3593 *** Without Flex you will not be able to build PostgreSQL from CVS or
3594 *** change any of the scanner definition files.  You can obtain Flex from
3595 *** a GNU mirror site.  (If you are using the official distribution of
3596 *** PostgreSQL then you do not need to worry about this because the Flex
3597 *** output is pre-generated.)" >&5
3598 echo "$as_me: WARNING:
3599 *** Without Flex you will not be able to build PostgreSQL from CVS or
3600 *** change any of the scanner definition files.  You can obtain Flex from
3601 *** a GNU mirror site.  (If you are using the official distribution of
3602 *** PostgreSQL then you do not need to worry about this because the Flex
3603 *** output is pre-generated.)" >&2;}
3604 fi
3605
3606 if test x"$pgac_cv_path_flex" = x"no"; then
3607   FLEX=
3608 else
3609   FLEX=$pgac_cv_path_flex
3610 fi
3611
3612
3613
3614
3615 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3617 LN_S=$as_ln_s
3618 if test "$LN_S" = "ln -s"; then
3619   echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3621 else
3622   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3623 echo "${ECHO_T}no, using $LN_S" >&6
3624 fi
3625
3626
3627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then
3629   withval="$with_gnu_ld"
3630   test "$withval" = no || with_gnu_ld=yes
3631 else
3632   with_gnu_ld=no
3633 fi;
3634 ac_prog=ld
3635 if test "$GCC" = yes; then
3636   # Check if gcc -print-prog-name=ld gives a path.
3637   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3638 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3639   case $host in
3640   *-*-mingw*)
3641     # gcc leaves a trailing carriage return which upsets mingw
3642     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3643   *)
3644     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3645   esac
3646   case "$ac_prog" in
3647     # Accept absolute paths.
3648     [\\/]* | [A-Za-z]:[\\/]*)
3649       re_direlt='/[^/][^/]*/\.\./'
3650       # Canonicalize the path of ld
3651       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3652       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3653         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3654       done
3655       test -z "$LD" && LD="$ac_prog"
3656       ;;
3657   "")
3658     # If it fails, then pretend we aren't using GCC.
3659     ac_prog=ld
3660     ;;
3661   *)
3662     # If it is relative, then search for the first ld in PATH.
3663     with_gnu_ld=unknown
3664     ;;
3665   esac
3666 elif test "$with_gnu_ld" = yes; then
3667   echo "$as_me:$LINENO: checking for GNU ld" >&5
3668 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3669 else
3670   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3672 fi
3673 if test "${ac_cv_path_LD+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -z "$LD"; then
3677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3678   for ac_dir in $PATH; do
3679     test -z "$ac_dir" && ac_dir=.
3680     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681       ac_cv_path_LD="$ac_dir/$ac_prog"
3682       # Check to see if the program is GNU ld.  I'd rather use --version,
3683       # but apparently some GNU ld's only accept -v.
3684       # Break only if it was the GNU/non-GNU ld that we prefer.
3685       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3686         test "$with_gnu_ld" != no && break
3687       else
3688         test "$with_gnu_ld" != yes && break
3689       fi
3690     fi
3691   done
3692   IFS="$ac_save_ifs"
3693 else
3694   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3695 fi
3696 fi
3697
3698 LD="$ac_cv_path_LD"
3699 if test -n "$LD"; then
3700   echo "$as_me:$LINENO: result: $LD" >&5
3701 echo "${ECHO_T}$LD" >&6
3702 else
3703   echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3705 fi
3706 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3707 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3708    { (exit 1); exit 1; }; }
3709 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3710 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3711 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3715 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3716   ac_cv_prog_gnu_ld=yes
3717 else
3718   ac_cv_prog_gnu_ld=no
3719 fi
3720 fi
3721 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$ac_cv_prog_gnu_ld
3724
3725
3726
3727
3728 case $host_os in sysv5*)
3729   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3730 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3731 if test "${pgac_cv_prog_ld_R+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734
3735     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3736     cat >conftest.$ac_ext <<_ACEOF
3737 #line $LINENO "configure"
3738 #include "confdefs.h"
3739
3740 #ifdef F77_DUMMY_MAIN
3741 #  ifdef __cplusplus
3742      extern "C"
3743 #  endif
3744    int F77_DUMMY_MAIN() { return 1; }
3745 #endif
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext conftest$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756   (eval $ac_link) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } &&
3760          { ac_try='test -s conftest$ac_exeext'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766   pgac_cv_prog_ld_R=yes
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 pgac_cv_prog_ld_R=no
3771 fi
3772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3773     LDFLAGS=$pgac_save_LDFLAGS
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3777 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3778   ld_R_works=$pgac_cv_prog_ld_R
3779
3780 esac
3781 if test -n "$ac_tool_prefix"; then
3782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_RANLIB+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if test -n "$RANLIB"; then
3790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797   for ac_exec_ext in '' $ac_executable_extensions; do
3798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804 done
3805
3806 fi
3807 fi
3808 RANLIB=$ac_cv_prog_RANLIB
3809 if test -n "$RANLIB"; then
3810   echo "$as_me:$LINENO: result: $RANLIB" >&5
3811 echo "${ECHO_T}$RANLIB" >&6
3812 else
3813   echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815 fi
3816
3817 fi
3818 if test -z "$ac_cv_prog_RANLIB"; then
3819   ac_ct_RANLIB=$RANLIB
3820   # Extract the first word of "ranlib", so it can be a program name with args.
3821 set dummy ranlib; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   if test -n "$ac_ct_RANLIB"; then
3828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837     ac_cv_prog_ac_ct_RANLIB="ranlib"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843
3844   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3845 fi
3846 fi
3847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3848 if test -n "$ac_ct_RANLIB"; then
3849   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856   RANLIB=$ac_ct_RANLIB
3857 else
3858   RANLIB="$ac_cv_prog_RANLIB"
3859 fi
3860
3861 for ac_prog in lorder
3862 do
3863   # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_LORDER+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   if test -n "$LORDER"; then
3871   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876   IFS=$as_save_IFS
3877   test -z "$as_dir" && as_dir=.
3878   for ac_exec_ext in '' $ac_executable_extensions; do
3879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880     ac_cv_prog_LORDER="$ac_prog"
3881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882     break 2
3883   fi
3884 done
3885 done
3886
3887 fi
3888 fi
3889 LORDER=$ac_cv_prog_LORDER
3890 if test -n "$LORDER"; then
3891   echo "$as_me:$LINENO: result: $LORDER" >&5
3892 echo "${ECHO_T}$LORDER" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898   test -n "$LORDER" && break
3899 done
3900
3901 # Extract the first word of "tar", so it can be a program name with args.
3902 set dummy tar; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_path_TAR+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   case $TAR in
3909   [\\/]* | ?:[\\/]*)
3910   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3911   ;;
3912   *)
3913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922     break 2
3923   fi
3924 done
3925 done
3926
3927   ;;
3928 esac
3929 fi
3930 TAR=$ac_cv_path_TAR
3931
3932 if test -n "$TAR"; then
3933   echo "$as_me:$LINENO: result: $TAR" >&5
3934 echo "${ECHO_T}$TAR" >&6
3935 else
3936   echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938 fi
3939
3940
3941   if test -n "$ac_tool_prefix"; then
3942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}strip; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_STRIP+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   if test -n "$STRIP"; then
3950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957   for ac_exec_ext in '' $ac_executable_extensions; do
3958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964 done
3965
3966 fi
3967 fi
3968 STRIP=$ac_cv_prog_STRIP
3969 if test -n "$STRIP"; then
3970   echo "$as_me:$LINENO: result: $STRIP" >&5
3971 echo "${ECHO_T}$STRIP" >&6
3972 else
3973   echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3975 fi
3976
3977 fi
3978 if test -z "$ac_cv_prog_STRIP"; then
3979   ac_ct_STRIP=$STRIP
3980   # Extract the first word of "strip", so it can be a program name with args.
3981 set dummy strip; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$ac_ct_STRIP"; then
3988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_ac_ct_STRIP="strip"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4005 fi
4006 fi
4007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4008 if test -n "$ac_ct_STRIP"; then
4009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4010 echo "${ECHO_T}$ac_ct_STRIP" >&6
4011 else
4012   echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016   STRIP=$ac_ct_STRIP
4017 else
4018   STRIP="$ac_cv_prog_STRIP"
4019 fi
4020
4021
4022   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4023 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4024   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4025     STRIP_STATIC_LIB="$STRIP -x"
4026     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4027     echo "$as_me:$LINENO: result: yes" >&5
4028 echo "${ECHO_T}yes" >&6
4029   else
4030     STRIP_STATIC_LIB=:
4031     STRIP_SHARED_LIB=:
4032     echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4034   fi
4035
4036
4037
4038
4039 for ac_prog in 'bison -y'
4040 do
4041   # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_YACC+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   if test -n "$YACC"; then
4049   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_exec_ext in '' $ac_executable_extensions; do
4057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_prog_YACC="$ac_prog"
4059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063 done
4064
4065 fi
4066 fi
4067 YACC=$ac_cv_prog_YACC
4068 if test -n "$YACC"; then
4069   echo "$as_me:$LINENO: result: $YACC" >&5
4070 echo "${ECHO_T}$YACC" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076   test -n "$YACC" && break
4077 done
4078
4079
4080 if test "$YACC"; then
4081   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4082     { echo "$as_me:$LINENO: WARNING:
4083 *** If you are going to modify the grammar files or build from CVS, the installed
4084 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4085 echo "$as_me: WARNING:
4086 *** If you are going to modify the grammar files or build from CVS, the installed
4087 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4088   fi
4089 fi
4090
4091 if test -z "$YACC"; then
4092   { echo "$as_me:$LINENO: WARNING:
4093 *** Without Bison you will not be able to build PostgreSQL from CVS or
4094 *** change any of the parser definition files.  You can obtain Bison from
4095 *** a GNU mirror site.  (If you are using the official distribution of
4096 *** PostgreSQL then you do not need to worry about this because the Bison
4097 *** output is pre-generated.)  To use a different yacc program (possible,
4098 *** but not recommended), set the environment variable YACC before running
4099 *** 'configure'." >&5
4100 echo "$as_me: WARNING:
4101 *** Without Bison you will not be able to build PostgreSQL from CVS or
4102 *** change any of the parser definition files.  You can obtain Bison from
4103 *** a GNU mirror site.  (If you are using the official distribution of
4104 *** PostgreSQL then you do not need to worry about this because the Bison
4105 *** output is pre-generated.)  To use a different yacc program (possible,
4106 *** but not recommended), set the environment variable YACC before running
4107 *** 'configure'." >&2;}
4108 fi
4109
4110
4111 # Extract the first word of "perl", so it can be a program name with args.
4112 set dummy perl; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_path_PERL+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   case $PERL in
4119   [\\/]* | ?:[\\/]*)
4120   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4121   ;;
4122   *)
4123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136
4137   ;;
4138 esac
4139 fi
4140 PERL=$ac_cv_path_PERL
4141
4142 if test -n "$PERL"; then
4143   echo "$as_me:$LINENO: result: $PERL" >&5
4144 echo "${ECHO_T}$PERL" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150 if test "$with_perl" = yes; then
4151
4152 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4153 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4154 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4155 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4156 echo "${ECHO_T}$perl_archlibexp" >&6
4157 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4158 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4159 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4160 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4161 echo "${ECHO_T}$perl_privlibexp" >&6
4162 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4163 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4164 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4165 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4166 echo "${ECHO_T}$perl_useshrplib" >&6
4167
4168 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4169 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4170 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4171 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4172 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4173 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4174 echo "${ECHO_T}$perl_embed_ldflags" >&6
4175 fi
4176
4177 if test "$with_python" = yes; then
4178   # Extract the first word of "python", so it can be a program name with args.
4179 set dummy python; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_PYTHON+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $PYTHON in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203
4204   ;;
4205 esac
4206 fi
4207 PYTHON=$ac_cv_path_PYTHON
4208
4209 if test -n "$PYTHON"; then
4210   echo "$as_me:$LINENO: result: $PYTHON" >&5
4211 echo "${ECHO_T}$PYTHON" >&6
4212 else
4213   echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4215 fi
4216
4217 if test x"$PYTHON" = x""; then
4218   { { echo "$as_me:$LINENO: error: Python not found" >&5
4219 echo "$as_me: error: Python not found" >&2;}
4220    { (exit 1); exit 1; }; }
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking Python installation directories" >&5
4225 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4226 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4227 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4228 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4229 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4230 python_includespec="-I${python_prefix}/include/python${python_version}"
4231 if test "$python_prefix" != "$python_execprefix"; then
4232   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4233 fi
4234
4235 # This should be enough of a message.
4236 if test "$python_prefix" != "$python_execprefix"; then
4237   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4238 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4239 else
4240   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4241 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4242 fi
4243
4244
4245 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4246 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4247
4248 if test ! -f "$python_configdir/Makefile"; then
4249   echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4251   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4252 echo "$as_me: error: Python Makefile not found" >&2;}
4253    { (exit 1); exit 1; }; }
4254 fi
4255
4256 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4257 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4258 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4259 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4260 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4261
4262 pgac_tab="      " # tab character
4263 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"`
4264
4265 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4266 echo "${ECHO_T}${python_libspec}" >&6
4267
4268
4269 fi
4270
4271
4272 ##
4273 ## Libraries
4274 ##
4275
4276 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4277 then
4278
4279 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4280 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4281 if test "${ac_cv_lib_bsd_main+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   ac_check_lib_save_LIBS=$LIBS
4285 LIBS="-lbsd  $LIBS"
4286 cat >conftest.$ac_ext <<_ACEOF
4287 #line $LINENO "configure"
4288 #include "confdefs.h"
4289
4290
4291 #ifdef F77_DUMMY_MAIN
4292 #  ifdef __cplusplus
4293      extern "C"
4294 #  endif
4295    int F77_DUMMY_MAIN() { return 1; }
4296 #endif
4297 int
4298 main ()
4299 {
4300 main ();
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307   (eval $ac_link) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -s conftest$ac_exeext'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   ac_cv_lib_bsd_main=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 ac_cv_lib_bsd_main=no
4322 fi
4323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4324 LIBS=$ac_check_lib_save_LIBS
4325 fi
4326 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4327 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4328 if test $ac_cv_lib_bsd_main = yes; then
4329   cat >>confdefs.h <<_ACEOF
4330 #define HAVE_LIBBSD 1
4331 _ACEOF
4332
4333   LIBS="-lbsd $LIBS"
4334
4335 fi
4336
4337 fi
4338
4339 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4340 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4341 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lutil  $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4349
4350 /* Override any gcc2 internal prototype to avoid an error.  */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 /* We use char because int might match the return type of a gcc2
4355    builtin and then its argument prototype would still apply.  */
4356 char setproctitle ();
4357 #ifdef F77_DUMMY_MAIN
4358 #  ifdef __cplusplus
4359      extern "C"
4360 #  endif
4361    int F77_DUMMY_MAIN() { return 1; }
4362 #endif
4363 int
4364 main ()
4365 {
4366 setproctitle ();
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373   (eval $ac_link) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } &&
4377          { ac_try='test -s conftest$ac_exeext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_lib_util_setproctitle=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_util_setproctitle=no
4388 fi
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4391 fi
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4393 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4394 if test $ac_cv_lib_util_setproctitle = yes; then
4395   cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBUTIL 1
4397 _ACEOF
4398
4399   LIBS="-lutil $LIBS"
4400
4401 fi
4402
4403
4404 echo "$as_me:$LINENO: checking for main in -lm" >&5
4405 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4406 if test "${ac_cv_lib_m_main+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   ac_check_lib_save_LIBS=$LIBS
4410 LIBS="-lm  $LIBS"
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 #include "confdefs.h"
4414
4415
4416 #ifdef F77_DUMMY_MAIN
4417 #  ifdef __cplusplus
4418      extern "C"
4419 #  endif
4420    int F77_DUMMY_MAIN() { return 1; }
4421 #endif
4422 int
4423 main ()
4424 {
4425 main ();
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432   (eval $ac_link) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -s conftest$ac_exeext'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   ac_cv_lib_m_main=yes
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 ac_cv_lib_m_main=no
4447 fi
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4450 fi
4451 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4452 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4453 if test $ac_cv_lib_m_main = yes; then
4454   cat >>confdefs.h <<_ACEOF
4455 #define HAVE_LIBM 1
4456 _ACEOF
4457
4458   LIBS="-lm $LIBS"
4459
4460 fi
4461
4462
4463 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4464 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4465 if test "${ac_cv_lib_dl_main+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-ldl  $LIBS"
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 #include "confdefs.h"
4473
4474
4475 #ifdef F77_DUMMY_MAIN
4476 #  ifdef __cplusplus
4477      extern "C"
4478 #  endif
4479    int F77_DUMMY_MAIN() { return 1; }
4480 #endif
4481 int
4482 main ()
4483 {
4484 main ();
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491   (eval $ac_link) 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } &&
4495          { ac_try='test -s conftest$ac_exeext'
4496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497   (eval $ac_try) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   ac_cv_lib_dl_main=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 ac_cv_lib_dl_main=no
4506 fi
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4509 fi
4510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4511 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4512 if test $ac_cv_lib_dl_main = yes; then
4513   cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBDL 1
4515 _ACEOF
4516
4517   LIBS="-ldl $LIBS"
4518
4519 fi
4520
4521
4522 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4523 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4524 if test "${ac_cv_lib_nsl_main+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   ac_check_lib_save_LIBS=$LIBS
4528 LIBS="-lnsl  $LIBS"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4532
4533
4534 #ifdef F77_DUMMY_MAIN
4535 #  ifdef __cplusplus
4536      extern "C"
4537 #  endif
4538    int F77_DUMMY_MAIN() { return 1; }
4539 #endif
4540 int
4541 main ()
4542 {
4543 main ();
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550   (eval $ac_link) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -s conftest$ac_exeext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   ac_cv_lib_nsl_main=yes
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_cv_lib_nsl_main=no
4565 fi
4566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4568 fi
4569 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4570 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4571 if test $ac_cv_lib_nsl_main = yes; then
4572   cat >>confdefs.h <<_ACEOF
4573 #define HAVE_LIBNSL 1
4574 _ACEOF
4575
4576   LIBS="-lnsl $LIBS"
4577
4578 fi
4579
4580
4581 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4582 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4583 if test "${ac_cv_lib_socket_main+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   ac_check_lib_save_LIBS=$LIBS
4587 LIBS="-lsocket  $LIBS"
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4591
4592
4593 #ifdef F77_DUMMY_MAIN
4594 #  ifdef __cplusplus
4595      extern "C"
4596 #  endif
4597    int F77_DUMMY_MAIN() { return 1; }
4598 #endif
4599 int
4600 main ()
4601 {
4602 main ();
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4609   (eval $ac_link) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -s conftest$ac_exeext'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_cv_lib_socket_main=yes
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 ac_cv_lib_socket_main=no
4624 fi
4625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4629 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4630 if test $ac_cv_lib_socket_main = yes; then
4631   cat >>confdefs.h <<_ACEOF
4632 #define HAVE_LIBSOCKET 1
4633 _ACEOF
4634
4635   LIBS="-lsocket $LIBS"
4636
4637 fi
4638
4639
4640 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4641 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4642 if test "${ac_cv_lib_ipc_main+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   ac_check_lib_save_LIBS=$LIBS
4646 LIBS="-lipc  $LIBS"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line $LINENO "configure"
4649 #include "confdefs.h"
4650
4651
4652 #ifdef F77_DUMMY_MAIN
4653 #  ifdef __cplusplus
4654      extern "C"
4655 #  endif
4656    int F77_DUMMY_MAIN() { return 1; }
4657 #endif
4658 int
4659 main ()
4660 {
4661 main ();
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668   (eval $ac_link) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); } &&
4672          { ac_try='test -s conftest$ac_exeext'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; }; then
4678   ac_cv_lib_ipc_main=yes
4679 else
4680   echo "$as_me: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4682 ac_cv_lib_ipc_main=no
4683 fi
4684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4686 fi
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4688 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4689 if test $ac_cv_lib_ipc_main = yes; then
4690   cat >>confdefs.h <<_ACEOF
4691 #define HAVE_LIBIPC 1
4692 _ACEOF
4693
4694   LIBS="-lipc $LIBS"
4695
4696 fi
4697
4698
4699 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4700 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4701 if test "${ac_cv_lib_IPC_main+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-lIPC  $LIBS"
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 #include "confdefs.h"
4709
4710
4711 #ifdef F77_DUMMY_MAIN
4712 #  ifdef __cplusplus
4713      extern "C"
4714 #  endif
4715    int F77_DUMMY_MAIN() { return 1; }
4716 #endif
4717 int
4718 main ()
4719 {
4720 main ();
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4727   (eval $ac_link) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } &&
4731          { ac_try='test -s conftest$ac_exeext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_cv_lib_IPC_main=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 ac_cv_lib_IPC_main=no
4742 fi
4743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4744 LIBS=$ac_check_lib_save_LIBS
4745 fi
4746 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4747 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4748 if test $ac_cv_lib_IPC_main = yes; then
4749   cat >>confdefs.h <<_ACEOF
4750 #define HAVE_LIBIPC 1
4751 _ACEOF
4752
4753   LIBS="-lIPC $LIBS"
4754
4755 fi
4756
4757
4758 echo "$as_me:$LINENO: checking for main in -llc" >&5
4759 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4760 if test "${ac_cv_lib_lc_main+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   ac_check_lib_save_LIBS=$LIBS
4764 LIBS="-llc  $LIBS"
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 #include "confdefs.h"
4768
4769
4770 #ifdef F77_DUMMY_MAIN
4771 #  ifdef __cplusplus
4772      extern "C"
4773 #  endif
4774    int F77_DUMMY_MAIN() { return 1; }
4775 #endif
4776 int
4777 main ()
4778 {
4779 main ();
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786   (eval $ac_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          { ac_try='test -s conftest$ac_exeext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_cv_lib_lc_main=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_cv_lib_lc_main=no
4801 fi
4802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4806 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4807 if test $ac_cv_lib_lc_main = yes; then
4808   cat >>confdefs.h <<_ACEOF
4809 #define HAVE_LIBLC 1
4810 _ACEOF
4811
4812   LIBS="-llc $LIBS"
4813
4814 fi
4815
4816
4817 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4818 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4819 if test "${ac_cv_lib_dld_main+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   ac_check_lib_save_LIBS=$LIBS
4823 LIBS="-ldld  $LIBS"
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4827
4828
4829 #ifdef F77_DUMMY_MAIN
4830 #  ifdef __cplusplus
4831      extern "C"
4832 #  endif
4833    int F77_DUMMY_MAIN() { return 1; }
4834 #endif
4835 int
4836 main ()
4837 {
4838 main ();
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845   (eval $ac_link) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -s conftest$ac_exeext'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; }; then
4855   ac_cv_lib_dld_main=yes
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 ac_cv_lib_dld_main=no
4860 fi
4861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4863 fi
4864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4865 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4866 if test $ac_cv_lib_dld_main = yes; then
4867   cat >>confdefs.h <<_ACEOF
4868 #define HAVE_LIBDLD 1
4869 _ACEOF
4870
4871   LIBS="-ldld $LIBS"
4872
4873 fi
4874
4875
4876 echo "$as_me:$LINENO: checking for main in -lld" >&5
4877 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4878 if test "${ac_cv_lib_ld_main+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   ac_check_lib_save_LIBS=$LIBS
4882 LIBS="-lld  $LIBS"
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 #include "confdefs.h"
4886
4887
4888 #ifdef F77_DUMMY_MAIN
4889 #  ifdef __cplusplus
4890      extern "C"
4891 #  endif
4892    int F77_DUMMY_MAIN() { return 1; }
4893 #endif
4894 int
4895 main ()
4896 {
4897 main ();
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904   (eval $ac_link) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } &&
4908          { ac_try='test -s conftest$ac_exeext'
4909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910   (eval $ac_try) 2>&5
4911   ac_status=$?
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); }; }; then
4914   ac_cv_lib_ld_main=yes
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 ac_cv_lib_ld_main=no
4919 fi
4920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4921 LIBS=$ac_check_lib_save_LIBS
4922 fi
4923 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4924 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4925 if test $ac_cv_lib_ld_main = yes; then
4926   cat >>confdefs.h <<_ACEOF
4927 #define HAVE_LIBLD 1
4928 _ACEOF
4929
4930   LIBS="-lld $LIBS"
4931
4932 fi
4933
4934
4935 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4936 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4937 if test "${ac_cv_lib_compat_main+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lcompat  $LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 #include "confdefs.h"
4945
4946
4947 #ifdef F77_DUMMY_MAIN
4948 #  ifdef __cplusplus
4949      extern "C"
4950 #  endif
4951    int F77_DUMMY_MAIN() { return 1; }
4952 #endif
4953 int
4954 main ()
4955 {
4956 main ();
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963   (eval $ac_link) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -s conftest$ac_exeext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   ac_cv_lib_compat_main=yes
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_lib_compat_main=no
4978 fi
4979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4983 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4984 if test $ac_cv_lib_compat_main = yes; then
4985   cat >>confdefs.h <<_ACEOF
4986 #define HAVE_LIBCOMPAT 1
4987 _ACEOF
4988
4989   LIBS="-lcompat $LIBS"
4990
4991 fi
4992
4993
4994 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4995 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
4996 if test "${ac_cv_lib_BSD_main+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   ac_check_lib_save_LIBS=$LIBS
5000 LIBS="-lBSD  $LIBS"
5001 cat >conftest.$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 #include "confdefs.h"
5004
5005
5006 #ifdef F77_DUMMY_MAIN
5007 #  ifdef __cplusplus
5008      extern "C"
5009 #  endif
5010    int F77_DUMMY_MAIN() { return 1; }
5011 #endif
5012 int
5013 main ()
5014 {
5015 main ();
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022   (eval $ac_link) 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          { ac_try='test -s conftest$ac_exeext'
5027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028   (eval $ac_try) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; }; then
5032   ac_cv_lib_BSD_main=yes
5033 else
5034   echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_cv_lib_BSD_main=no
5037 fi
5038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5040 fi
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5042 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5043 if test $ac_cv_lib_BSD_main = yes; then
5044   cat >>confdefs.h <<_ACEOF
5045 #define HAVE_LIBBSD 1
5046 _ACEOF
5047
5048   LIBS="-lBSD $LIBS"
5049
5050 fi
5051
5052
5053 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5054 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5055 if test "${ac_cv_lib_gen_main+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   ac_check_lib_save_LIBS=$LIBS
5059 LIBS="-lgen  $LIBS"
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5062 #include "confdefs.h"
5063
5064
5065 #ifdef F77_DUMMY_MAIN
5066 #  ifdef __cplusplus
5067      extern "C"
5068 #  endif
5069    int F77_DUMMY_MAIN() { return 1; }
5070 #endif
5071 int
5072 main ()
5073 {
5074 main ();
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081   (eval $ac_link) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -s conftest$ac_exeext'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; }; then
5091   ac_cv_lib_gen_main=yes
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 ac_cv_lib_gen_main=no
5096 fi
5097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5099 fi
5100 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5101 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5102 if test $ac_cv_lib_gen_main = yes; then
5103   cat >>confdefs.h <<_ACEOF
5104 #define HAVE_LIBGEN 1
5105 _ACEOF
5106
5107   LIBS="-lgen $LIBS"
5108
5109 fi
5110
5111
5112 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5113 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5114 if test "${ac_cv_lib_PW_main+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   ac_check_lib_save_LIBS=$LIBS
5118 LIBS="-lPW  $LIBS"
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 #include "confdefs.h"
5122
5123
5124 #ifdef F77_DUMMY_MAIN
5125 #  ifdef __cplusplus
5126      extern "C"
5127 #  endif
5128    int F77_DUMMY_MAIN() { return 1; }
5129 #endif
5130 int
5131 main ()
5132 {
5133 main ();
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext conftest$ac_exeext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5140   (eval $ac_link) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } &&
5144          { ac_try='test -s conftest$ac_exeext'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   ac_cv_lib_PW_main=yes
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5154 ac_cv_lib_PW_main=no
5155 fi
5156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5160 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5161 if test $ac_cv_lib_PW_main = yes; then
5162   cat >>confdefs.h <<_ACEOF
5163 #define HAVE_LIBPW 1
5164 _ACEOF
5165
5166   LIBS="-lPW $LIBS"
5167
5168 fi
5169
5170
5171 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5172 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5173 if test "${ac_cv_lib_resolv_main+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-lresolv  $LIBS"
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181
5182
5183 #ifdef F77_DUMMY_MAIN
5184 #  ifdef __cplusplus
5185      extern "C"
5186 #  endif
5187    int F77_DUMMY_MAIN() { return 1; }
5188 #endif
5189 int
5190 main ()
5191 {
5192 main ();
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199   (eval $ac_link) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } &&
5203          { ac_try='test -s conftest$ac_exeext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   ac_cv_lib_resolv_main=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 ac_cv_lib_resolv_main=no
5214 fi
5215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216 LIBS=$ac_check_lib_save_LIBS
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5219 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5220 if test $ac_cv_lib_resolv_main = yes; then
5221   cat >>confdefs.h <<_ACEOF
5222 #define HAVE_LIBRESOLV 1
5223 _ACEOF
5224
5225   LIBS="-lresolv $LIBS"
5226
5227 fi
5228
5229 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5230 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5231 if test "${ac_cv_search_getopt_long+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   ac_func_search_save_LIBS=$LIBS
5235 ac_cv_search_getopt_long=no
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5238 #include "confdefs.h"
5239
5240 /* Override any gcc2 internal prototype to avoid an error.  */
5241 #ifdef __cplusplus
5242 extern "C"
5243 #endif
5244 /* We use char because int might match the return type of a gcc2
5245    builtin and then its argument prototype would still apply.  */
5246 char getopt_long ();
5247 #ifdef F77_DUMMY_MAIN
5248 #  ifdef __cplusplus
5249      extern "C"
5250 #  endif
5251    int F77_DUMMY_MAIN() { return 1; }
5252 #endif
5253 int
5254 main ()
5255 {
5256 getopt_long ();
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263   (eval $ac_link) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } &&
5267          { ac_try='test -s conftest$ac_exeext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_cv_search_getopt_long="none required"
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5277 fi
5278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5279 if test "$ac_cv_search_getopt_long" = no; then
5280   for ac_lib in getopt gnugetopt; do
5281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5282     cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 #include "confdefs.h"
5285
5286 /* Override any gcc2 internal prototype to avoid an error.  */
5287 #ifdef __cplusplus
5288 extern "C"
5289 #endif
5290 /* We use char because int might match the return type of a gcc2
5291    builtin and then its argument prototype would still apply.  */
5292 char getopt_long ();
5293 #ifdef F77_DUMMY_MAIN
5294 #  ifdef __cplusplus
5295      extern "C"
5296 #  endif
5297    int F77_DUMMY_MAIN() { return 1; }
5298 #endif
5299 int
5300 main ()
5301 {
5302 getopt_long ();
5303   ;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309   (eval $ac_link) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -s conftest$ac_exeext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_search_getopt_long="-l$ac_lib"
5320 break
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 fi
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5326   done
5327 fi
5328 LIBS=$ac_func_search_save_LIBS
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5331 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5332 if test "$ac_cv_search_getopt_long" != no; then
5333   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5334
5335 fi
5336
5337 # QNX:
5338
5339 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5340 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5341 if test "${ac_cv_lib_unix_main+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   ac_check_lib_save_LIBS=$LIBS
5345 LIBS="-lunix  $LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line $LINENO "configure"
5348 #include "confdefs.h"
5349
5350
5351 #ifdef F77_DUMMY_MAIN
5352 #  ifdef __cplusplus
5353      extern "C"
5354 #  endif
5355    int F77_DUMMY_MAIN() { return 1; }
5356 #endif
5357 int
5358 main ()
5359 {
5360 main ();
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367   (eval $ac_link) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } &&
5371          { ac_try='test -s conftest$ac_exeext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_cv_lib_unix_main=yes
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_lib_unix_main=no
5382 fi
5383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5385 fi
5386 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5387 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5388 if test $ac_cv_lib_unix_main = yes; then
5389   cat >>confdefs.h <<_ACEOF
5390 #define HAVE_LIBUNIX 1
5391 _ACEOF
5392
5393   LIBS="-lunix $LIBS"
5394
5395 fi
5396
5397 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5398 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5399 if test "${ac_cv_search_crypt+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   ac_func_search_save_LIBS=$LIBS
5403 ac_cv_search_crypt=no
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5406 #include "confdefs.h"
5407
5408 /* Override any gcc2 internal prototype to avoid an error.  */
5409 #ifdef __cplusplus
5410 extern "C"
5411 #endif
5412 /* We use char because int might match the return type of a gcc2
5413    builtin and then its argument prototype would still apply.  */
5414 char crypt ();
5415 #ifdef F77_DUMMY_MAIN
5416 #  ifdef __cplusplus
5417      extern "C"
5418 #  endif
5419    int F77_DUMMY_MAIN() { return 1; }
5420 #endif
5421 int
5422 main ()
5423 {
5424 crypt ();
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 rm -f conftest.$ac_objext conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431   (eval $ac_link) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } &&
5435          { ac_try='test -s conftest$ac_exeext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_cv_search_crypt="none required"
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 fi
5446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447 if test "$ac_cv_search_crypt" = no; then
5448   for ac_lib in crypt; do
5449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5450     cat >conftest.$ac_ext <<_ACEOF
5451 #line $LINENO "configure"
5452 #include "confdefs.h"
5453
5454 /* Override any gcc2 internal prototype to avoid an error.  */
5455 #ifdef __cplusplus
5456 extern "C"
5457 #endif
5458 /* We use char because int might match the return type of a gcc2
5459    builtin and then its argument prototype would still apply.  */
5460 char crypt ();
5461 #ifdef F77_DUMMY_MAIN
5462 #  ifdef __cplusplus
5463      extern "C"
5464 #  endif
5465    int F77_DUMMY_MAIN() { return 1; }
5466 #endif
5467 int
5468 main ()
5469 {
5470 crypt ();
5471   ;
5472   return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477   (eval $ac_link) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); } &&
5481          { ac_try='test -s conftest$ac_exeext'
5482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483   (eval $ac_try) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); }; }; then
5487   ac_cv_search_crypt="-l$ac_lib"
5488 break
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5492 fi
5493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5494   done
5495 fi
5496 LIBS=$ac_func_search_save_LIBS
5497 fi
5498 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5499 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5500 if test "$ac_cv_search_crypt" != no; then
5501   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5502
5503 fi
5504
5505 # BeOS:
5506 if test "$PORTNAME" = "beos"
5507 then
5508
5509 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5510 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5511 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   ac_check_lib_save_LIBS=$LIBS
5515 LIBS="-lbind  $LIBS"
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 #include "confdefs.h"
5519
5520 /* Override any gcc2 internal prototype to avoid an error.  */
5521 #ifdef __cplusplus
5522 extern "C"
5523 #endif
5524 /* We use char because int might match the return type of a gcc2
5525    builtin and then its argument prototype would still apply.  */
5526 char __inet_ntoa ();
5527 #ifdef F77_DUMMY_MAIN
5528 #  ifdef __cplusplus
5529      extern "C"
5530 #  endif
5531    int F77_DUMMY_MAIN() { return 1; }
5532 #endif
5533 int
5534 main ()
5535 {
5536 __inet_ntoa ();
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543   (eval $ac_link) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -s conftest$ac_exeext'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; }; then
5553   ac_cv_lib_bind___inet_ntoa=yes
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_cv_lib_bind___inet_ntoa=no
5558 fi
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5563 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5564 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5565   cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBBIND 1
5567 _ACEOF
5568
5569   LIBS="-lbind $LIBS"
5570
5571 fi
5572
5573 fi
5574 # Solaris:
5575 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5576 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5577 if test "${ac_cv_search_fdatasync+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   ac_func_search_save_LIBS=$LIBS
5581 ac_cv_search_fdatasync=no
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 #include "confdefs.h"
5585
5586 /* Override any gcc2 internal prototype to avoid an error.  */
5587 #ifdef __cplusplus
5588 extern "C"
5589 #endif
5590 /* We use char because int might match the return type of a gcc2
5591    builtin and then its argument prototype would still apply.  */
5592 char fdatasync ();
5593 #ifdef F77_DUMMY_MAIN
5594 #  ifdef __cplusplus
5595      extern "C"
5596 #  endif
5597    int F77_DUMMY_MAIN() { return 1; }
5598 #endif
5599 int
5600 main ()
5601 {
5602 fdatasync ();
5603   ;
5604   return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609   (eval $ac_link) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -s conftest$ac_exeext'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   ac_cv_search_fdatasync="none required"
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 fi
5624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5625 if test "$ac_cv_search_fdatasync" = no; then
5626   for ac_lib in rt posix4; do
5627     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5628     cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 #include "confdefs.h"
5631
5632 /* Override any gcc2 internal prototype to avoid an error.  */
5633 #ifdef __cplusplus
5634 extern "C"
5635 #endif
5636 /* We use char because int might match the return type of a gcc2
5637    builtin and then its argument prototype would still apply.  */
5638 char fdatasync ();
5639 #ifdef F77_DUMMY_MAIN
5640 #  ifdef __cplusplus
5641      extern "C"
5642 #  endif
5643    int F77_DUMMY_MAIN() { return 1; }
5644 #endif
5645 int
5646 main ()
5647 {
5648 fdatasync ();
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } &&
5659          { ac_try='test -s conftest$ac_exeext'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; }; then
5665   ac_cv_search_fdatasync="-l$ac_lib"
5666 break
5667 else
5668   echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 fi
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672   done
5673 fi
5674 LIBS=$ac_func_search_save_LIBS
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5677 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5678 if test "$ac_cv_search_fdatasync" != no; then
5679   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5680
5681 fi
5682
5683 # Cygwin:
5684
5685 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5686 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5687 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   ac_check_lib_save_LIBS=$LIBS
5691 LIBS="-lcygipc  $LIBS"
5692 cat >conftest.$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 #include "confdefs.h"
5695
5696 /* Override any gcc2 internal prototype to avoid an error.  */
5697 #ifdef __cplusplus
5698 extern "C"
5699 #endif
5700 /* We use char because int might match the return type of a gcc2
5701    builtin and then its argument prototype would still apply.  */
5702 char shmget ();
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 shmget ();
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_cygipc_shmget=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_cygipc_shmget=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_cygipc_shmget" >&5
5739 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5740 if test $ac_cv_lib_cygipc_shmget = yes; then
5741   cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LIBCYGIPC 1
5743 _ACEOF
5744
5745   LIBS="-lcygipc $LIBS"
5746
5747 fi
5748
5749 # WIN32:
5750 if test "$PORTNAME" = "win32"
5751 then
5752
5753 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5754 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5755 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lwsock32  $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 #include "confdefs.h"
5763
5764
5765 #ifdef F77_DUMMY_MAIN
5766 #  ifdef __cplusplus
5767      extern "C"
5768 #  endif
5769    int F77_DUMMY_MAIN() { return 1; }
5770 #endif
5771 int
5772 main ()
5773 {
5774 main ();
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781   (eval $ac_link) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -s conftest$ac_exeext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_cv_lib_wsock32_main=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_wsock32_main=no
5796 fi
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5799 fi
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5801 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5802 if test $ac_cv_lib_wsock32_main = yes; then
5803   cat >>confdefs.h <<_ACEOF
5804 #define HAVE_LIBWSOCK32 1
5805 _ACEOF
5806
5807   LIBS="-lwsock32 $LIBS"
5808
5809 fi
5810
5811 fi
5812
5813 if test "$with_readline" = yes; then
5814
5815 echo "$as_me:$LINENO: checking for readline" >&5
5816 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5817
5818 if test "${pgac_cv_check_readline+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   pgac_cv_check_readline=no
5822 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5823   for pgac_rllib in -lreadline -ledit ; do
5824     pgac_save_LIBS=$LIBS
5825     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5826     cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 #include "confdefs.h"
5829
5830 /* Override any gcc2 internal prototype to avoid an error.  */
5831 #ifdef __cplusplus
5832 extern "C"
5833 #endif
5834 /* We use char because int might match the return type of a gcc2
5835    builtin and then its argument prototype would still apply.  */
5836 char readline ();
5837 #ifdef F77_DUMMY_MAIN
5838 #  ifdef __cplusplus
5839      extern "C"
5840 #  endif
5841    int F77_DUMMY_MAIN() { return 1; }
5842 #endif
5843 int
5844 main ()
5845 {
5846 readline ();
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853   (eval $ac_link) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); } &&
5857          { ac_try='test -s conftest$ac_exeext'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863
5864       # NetBSD, OpenBSD, and Irix have a broken linker that does not
5865       # recognize dependent libraries
5866       case $host_os in netbsd* | openbsd* | irix*)
5867         case $pgac_lib in
5868           *curses*) ;;
5869           *) pgac_lib=" -lcurses" ;;
5870         esac
5871       esac
5872
5873       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5874       break 2
5875
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5879 fi
5880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5881     LIBS=$pgac_save_LIBS
5882   done
5883 done
5884 LIBS=$pgac_save_LIBS
5885
5886 fi
5887
5888 if test "$pgac_cv_check_readline" != no ; then
5889
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIBREADLINE 1
5892 _ACEOF
5893
5894   LIBS="$pgac_cv_check_readline $LIBS"
5895   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5896 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5897 else
5898   echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900 fi
5901   if test x"$pgac_cv_check_readline" = x"no"; then
5902     { { echo "$as_me:$LINENO: error: readline library not found
5903 If you have readline already installed, see config.log for details on the
5904 failure.  It is possible the compiler isn't looking in the proper directory.
5905 Use --without-readline to disable readline support." >&5
5906 echo "$as_me: error: readline library not found
5907 If you have readline already installed, see config.log for details on the
5908 failure.  It is possible the compiler isn't looking in the proper directory.
5909 Use --without-readline to disable readline support." >&2;}
5910    { (exit 1); exit 1; }; }
5911   fi
5912 fi
5913
5914 if test "$with_zlib" = yes; then
5915
5916 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5917 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5918 if test "${ac_cv_lib_z_inflate+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   ac_check_lib_save_LIBS=$LIBS
5922 LIBS="-lz  $LIBS"
5923 cat >conftest.$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 #include "confdefs.h"
5926
5927 /* Override any gcc2 internal prototype to avoid an error.  */
5928 #ifdef __cplusplus
5929 extern "C"
5930 #endif
5931 /* We use char because int might match the return type of a gcc2
5932    builtin and then its argument prototype would still apply.  */
5933 char inflate ();
5934 #ifdef F77_DUMMY_MAIN
5935 #  ifdef __cplusplus
5936      extern "C"
5937 #  endif
5938    int F77_DUMMY_MAIN() { return 1; }
5939 #endif
5940 int
5941 main ()
5942 {
5943 inflate ();
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950   (eval $ac_link) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } &&
5954          { ac_try='test -s conftest$ac_exeext'
5955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956   (eval $ac_try) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); }; }; then
5960   ac_cv_lib_z_inflate=yes
5961 else
5962   echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 ac_cv_lib_z_inflate=no
5965 fi
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5968 fi
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5970 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5971 if test $ac_cv_lib_z_inflate = yes; then
5972   cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBZ 1
5974 _ACEOF
5975
5976   LIBS="-lz $LIBS"
5977
5978 else
5979   { { echo "$as_me:$LINENO: error: zlib library not found
5980 If you have zlib already installed, see config.log for details on the
5981 failure.  It is possible the compiler isn't looking in the proper directory.
5982 Use --without-zlib to disable zlib support." >&5
5983 echo "$as_me: error: zlib library not found
5984 If you have zlib already installed, see config.log for details on the
5985 failure.  It is possible the compiler isn't looking in the proper directory.
5986 Use --without-zlib to disable zlib support." >&2;}
5987    { (exit 1); exit 1; }; }
5988 fi
5989
5990 fi
5991
5992 if test "$enable_spinlocks" = yes; then
5993
5994 cat >>confdefs.h <<\_ACEOF
5995 #define HAVE_SPINLOCKS 1
5996 _ACEOF
5997
5998 else
5999   { echo "$as_me:$LINENO: WARNING:
6000 *** Not using spinlocks will cause poor performance." >&5
6001 echo "$as_me: WARNING:
6002 *** Not using spinlocks will cause poor performance." >&2;}
6003 fi
6004
6005 if test "$with_krb4" = yes ; then
6006
6007 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6008 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6009 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   ac_check_lib_save_LIBS=$LIBS
6013 LIBS="-ldes  $LIBS"
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6017
6018 /* Override any gcc2 internal prototype to avoid an error.  */
6019 #ifdef __cplusplus
6020 extern "C"
6021 #endif
6022 /* We use char because int might match the return type of a gcc2
6023    builtin and then its argument prototype would still apply.  */
6024 char des_encrypt ();
6025 #ifdef F77_DUMMY_MAIN
6026 #  ifdef __cplusplus
6027      extern "C"
6028 #  endif
6029    int F77_DUMMY_MAIN() { return 1; }
6030 #endif
6031 int
6032 main ()
6033 {
6034 des_encrypt ();
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041   (eval $ac_link) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -s conftest$ac_exeext'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; }; then
6051   ac_cv_lib_des_des_encrypt=yes
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_des_des_encrypt=no
6056 fi
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6059 fi
6060 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6061 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6062 if test $ac_cv_lib_des_des_encrypt = yes; then
6063   cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LIBDES 1
6065 _ACEOF
6066
6067   LIBS="-ldes $LIBS"
6068
6069 else
6070   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6071 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6072    { (exit 1); exit 1; }; }
6073 fi
6074
6075
6076 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6077 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6078 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   ac_check_lib_save_LIBS=$LIBS
6082 LIBS="-lkrb  $LIBS"
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 #include "confdefs.h"
6086
6087 /* Override any gcc2 internal prototype to avoid an error.  */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 /* We use char because int might match the return type of a gcc2
6092    builtin and then its argument prototype would still apply.  */
6093 char krb_sendauth ();
6094 #ifdef F77_DUMMY_MAIN
6095 #  ifdef __cplusplus
6096      extern "C"
6097 #  endif
6098    int F77_DUMMY_MAIN() { return 1; }
6099 #endif
6100 int
6101 main ()
6102 {
6103 krb_sendauth ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_lib_krb_krb_sendauth=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 ac_cv_lib_krb_krb_sendauth=no
6125 fi
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6128 fi
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6130 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6131 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6132   cat >>confdefs.h <<_ACEOF
6133 #define HAVE_LIBKRB 1
6134 _ACEOF
6135
6136   LIBS="-lkrb $LIBS"
6137
6138 else
6139   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6140 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6141    { (exit 1); exit 1; }; }
6142 fi
6143
6144
6145 for ac_func in gethostname
6146 do
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157     which can conflict with char $ac_func (); below.  */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error.  */
6160 #ifdef __cplusplus
6161 extern "C"
6162 #endif
6163 /* We use char because int might match the return type of a gcc2
6164    builtin and then its argument prototype would still apply.  */
6165 char $ac_func ();
6166 char (*f) ();
6167
6168 #ifdef F77_DUMMY_MAIN
6169 #  ifdef __cplusplus
6170      extern "C"
6171 #  endif
6172    int F77_DUMMY_MAIN() { return 1; }
6173 #endif
6174 int
6175 main ()
6176 {
6177 /* The GNU C library defines this for functions which it implements
6178     to always fail with ENOSYS.  Some functions are actually named
6179     something starting with __ and the normal name is an alias.  */
6180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6181 choke me
6182 #else
6183 f = $ac_func;
6184 #endif
6185
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   eval "$as_ac_var=yes"
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6207 fi
6208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6209 fi
6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6212 if test `eval echo '${'$as_ac_var'}'` = yes; then
6213   cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6215 _ACEOF
6216
6217 else
6218   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6219 fi
6220 done
6221
6222
6223 fi
6224
6225 if test "$with_krb5" = yes ; then
6226   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6228 if test "${ac_cv_search_com_err+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   ac_func_search_save_LIBS=$LIBS
6232 ac_cv_search_com_err=no
6233 cat >conftest.$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 #include "confdefs.h"
6236
6237 /* Override any gcc2 internal prototype to avoid an error.  */
6238 #ifdef __cplusplus
6239 extern "C"
6240 #endif
6241 /* We use char because int might match the return type of a gcc2
6242    builtin and then its argument prototype would still apply.  */
6243 char com_err ();
6244 #ifdef F77_DUMMY_MAIN
6245 #  ifdef __cplusplus
6246      extern "C"
6247 #  endif
6248    int F77_DUMMY_MAIN() { return 1; }
6249 #endif
6250 int
6251 main ()
6252 {
6253 com_err ();
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260   (eval $ac_link) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); } &&
6264          { ac_try='test -s conftest$ac_exeext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_cv_search_com_err="none required"
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 fi
6275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6276 if test "$ac_cv_search_com_err" = no; then
6277   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6279     cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6282
6283 /* Override any gcc2 internal prototype to avoid an error.  */
6284 #ifdef __cplusplus
6285 extern "C"
6286 #endif
6287 /* We use char because int might match the return type of a gcc2
6288    builtin and then its argument prototype would still apply.  */
6289 char com_err ();
6290 #ifdef F77_DUMMY_MAIN
6291 #  ifdef __cplusplus
6292      extern "C"
6293 #  endif
6294    int F77_DUMMY_MAIN() { return 1; }
6295 #endif
6296 int
6297 main ()
6298 {
6299 com_err ();
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306   (eval $ac_link) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -s conftest$ac_exeext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_cv_search_com_err="-l$ac_lib"
6317 break
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 fi
6322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6323   done
6324 fi
6325 LIBS=$ac_func_search_save_LIBS
6326 fi
6327 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6328 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6329 if test "$ac_cv_search_com_err" != no; then
6330   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6331
6332 else
6333   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6334 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6335    { (exit 1); exit 1; }; }
6336 fi
6337
6338   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6339 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6340 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   ac_func_search_save_LIBS=$LIBS
6344 ac_cv_search_krb5_encrypt=no
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348
6349 /* Override any gcc2 internal prototype to avoid an error.  */
6350 #ifdef __cplusplus
6351 extern "C"
6352 #endif
6353 /* We use char because int might match the return type of a gcc2
6354    builtin and then its argument prototype would still apply.  */
6355 char krb5_encrypt ();
6356 #ifdef F77_DUMMY_MAIN
6357 #  ifdef __cplusplus
6358      extern "C"
6359 #  endif
6360    int F77_DUMMY_MAIN() { return 1; }
6361 #endif
6362 int
6363 main ()
6364 {
6365 krb5_encrypt ();
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372   (eval $ac_link) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -s conftest$ac_exeext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_cv_search_krb5_encrypt="none required"
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 fi
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 if test "$ac_cv_search_krb5_encrypt" = no; then
6389   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6391     cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6393 #include "confdefs.h"
6394
6395 /* Override any gcc2 internal prototype to avoid an error.  */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 /* We use char because int might match the return type of a gcc2
6400    builtin and then its argument prototype would still apply.  */
6401 char krb5_encrypt ();
6402 #ifdef F77_DUMMY_MAIN
6403 #  ifdef __cplusplus
6404      extern "C"
6405 #  endif
6406    int F77_DUMMY_MAIN() { return 1; }
6407 #endif
6408 int
6409 main ()
6410 {
6411 krb5_encrypt ();
6412   ;
6413   return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418   (eval $ac_link) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -s conftest$ac_exeext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_search_krb5_encrypt="-l$ac_lib"
6429 break
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6433 fi
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6435   done
6436 fi
6437 LIBS=$ac_func_search_save_LIBS
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6440 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6441 if test "$ac_cv_search_krb5_encrypt" != no; then
6442   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6443
6444 else
6445   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6446 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6447    { (exit 1); exit 1; }; }
6448 fi
6449
6450   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6451 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6452 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   ac_func_search_save_LIBS=$LIBS
6456 ac_cv_search_krb5_sendauth=no
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 #include "confdefs.h"
6460
6461 /* Override any gcc2 internal prototype to avoid an error.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466    builtin and then its argument prototype would still apply.  */
6467 char krb5_sendauth ();
6468 #ifdef F77_DUMMY_MAIN
6469 #  ifdef __cplusplus
6470      extern "C"
6471 #  endif
6472    int F77_DUMMY_MAIN() { return 1; }
6473 #endif
6474 int
6475 main ()
6476 {
6477 krb5_sendauth ();
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484   (eval $ac_link) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -s conftest$ac_exeext'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; }; then
6494   ac_cv_search_krb5_sendauth="none required"
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6498 fi
6499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 if test "$ac_cv_search_krb5_sendauth" = no; then
6501   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6502     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6503     cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 #include "confdefs.h"
6506
6507 /* Override any gcc2 internal prototype to avoid an error.  */
6508 #ifdef __cplusplus
6509 extern "C"
6510 #endif
6511 /* We use char because int might match the return type of a gcc2
6512    builtin and then its argument prototype would still apply.  */
6513 char krb5_sendauth ();
6514 #ifdef F77_DUMMY_MAIN
6515 #  ifdef __cplusplus
6516      extern "C"
6517 #  endif
6518    int F77_DUMMY_MAIN() { return 1; }
6519 #endif
6520 int
6521 main ()
6522 {
6523 krb5_sendauth ();
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_search_krb5_sendauth="-l$ac_lib"
6541 break
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 fi
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547   done
6548 fi
6549 LIBS=$ac_func_search_save_LIBS
6550 fi
6551 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6552 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6553 if test "$ac_cv_search_krb5_sendauth" != no; then
6554   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6555
6556 else
6557   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6558 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6559    { (exit 1); exit 1; }; }
6560 fi
6561
6562 fi
6563
6564 if test "$with_openssl" = yes ; then
6565
6566 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6567 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6568 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-lcrypto  $LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576
6577 /* Override any gcc2 internal prototype to avoid an error.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 /* We use char because int might match the return type of a gcc2
6582    builtin and then its argument prototype would still apply.  */
6583 char CRYPTO_new_ex_data ();
6584 #ifdef F77_DUMMY_MAIN
6585 #  ifdef __cplusplus
6586      extern "C"
6587 #  endif
6588    int F77_DUMMY_MAIN() { return 1; }
6589 #endif
6590 int
6591 main ()
6592 {
6593 CRYPTO_new_ex_data ();
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6615 fi
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6618 fi
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6620 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6621 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6622   cat >>confdefs.h <<_ACEOF
6623 #define HAVE_LIBCRYPTO 1
6624 _ACEOF
6625
6626   LIBS="-lcrypto $LIBS"
6627
6628 else
6629   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6630 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6631    { (exit 1); exit 1; }; }
6632 fi
6633
6634
6635 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6636 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6637 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lssl  $LIBS"
6642 cat >conftest.$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6644 #include "confdefs.h"
6645
6646 /* Override any gcc2 internal prototype to avoid an error.  */
6647 #ifdef __cplusplus
6648 extern "C"
6649 #endif
6650 /* We use char because int might match the return type of a gcc2
6651    builtin and then its argument prototype would still apply.  */
6652 char SSL_library_init ();
6653 #ifdef F77_DUMMY_MAIN
6654 #  ifdef __cplusplus
6655      extern "C"
6656 #  endif
6657    int F77_DUMMY_MAIN() { return 1; }
6658 #endif
6659 int
6660 main ()
6661 {
6662 SSL_library_init ();
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669   (eval $ac_link) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -s conftest$ac_exeext'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_lib_ssl_SSL_library_init=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 ac_cv_lib_ssl_SSL_library_init=no
6684 fi
6685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6686 LIBS=$ac_check_lib_save_LIBS
6687 fi
6688 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6689 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6690 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6691   cat >>confdefs.h <<_ACEOF
6692 #define HAVE_LIBSSL 1
6693 _ACEOF
6694
6695   LIBS="-lssl $LIBS"
6696
6697 else
6698   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6699 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6700    { (exit 1); exit 1; }; }
6701 fi
6702
6703 fi
6704
6705 if test "$with_pam" = yes ; then
6706
6707 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6708 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6709 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   ac_check_lib_save_LIBS=$LIBS
6713 LIBS="-lpam  $LIBS"
6714 cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 #include "confdefs.h"
6717
6718 /* Override any gcc2 internal prototype to avoid an error.  */
6719 #ifdef __cplusplus
6720 extern "C"
6721 #endif
6722 /* We use char because int might match the return type of a gcc2
6723    builtin and then its argument prototype would still apply.  */
6724 char pam_start ();
6725 #ifdef F77_DUMMY_MAIN
6726 #  ifdef __cplusplus
6727      extern "C"
6728 #  endif
6729    int F77_DUMMY_MAIN() { return 1; }
6730 #endif
6731 int
6732 main ()
6733 {
6734 pam_start ();
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741   (eval $ac_link) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -s conftest$ac_exeext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_cv_lib_pam_pam_start=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 ac_cv_lib_pam_pam_start=no
6756 fi
6757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6758 LIBS=$ac_check_lib_save_LIBS
6759 fi
6760 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6761 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6762 if test $ac_cv_lib_pam_pam_start = yes; then
6763   cat >>confdefs.h <<_ACEOF
6764 #define HAVE_LIBPAM 1
6765 _ACEOF
6766
6767   LIBS="-lpam $LIBS"
6768
6769 else
6770   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6771 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6772    { (exit 1); exit 1; }; }
6773 fi
6774
6775 fi
6776
6777
6778 ##
6779 ## Header files
6780 ##
6781
6782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6790 #include <stdlib.h>
6791 #include <stdarg.h>
6792 #include <string.h>
6793 #include <float.h>
6794
6795 _ACEOF
6796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798   ac_status=$?
6799   egrep -v '^ *\+' conftest.er1 >conftest.err
6800   rm -f conftest.er1
6801   cat conftest.err >&5
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); } >/dev/null; then
6804   if test -s conftest.err; then
6805     ac_cpp_err=$ac_c_preproc_warn_flag
6806   else
6807     ac_cpp_err=
6808   fi
6809 else
6810   ac_cpp_err=yes
6811 fi
6812 if test -z "$ac_cpp_err"; then
6813   ac_cv_header_stdc=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816   cat conftest.$ac_ext >&5
6817   ac_cv_header_stdc=no
6818 fi
6819 rm -f conftest.err conftest.$ac_ext
6820
6821 if test $ac_cv_header_stdc = yes; then
6822   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823   cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 #include "confdefs.h"
6826 #include <string.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830   egrep "memchr" >/dev/null 2>&1; then
6831   :
6832 else
6833   ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest*
6836
6837 fi
6838
6839 if test $ac_cv_header_stdc = yes; then
6840   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6841   cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6844 #include <stdlib.h>
6845
6846 _ACEOF
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848   egrep "free" >/dev/null 2>&1; then
6849   :
6850 else
6851   ac_cv_header_stdc=no
6852 fi
6853 rm -f conftest*
6854
6855 fi
6856
6857 if test $ac_cv_header_stdc = yes; then
6858   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6859   if test "$cross_compiling" = yes; then
6860   :
6861 else
6862   cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6865 #include <ctype.h>
6866 #if ((' ' & 0x0FF) == 0x020)
6867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6869 #else
6870 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6871                      || ('j' <= (c) && (c) <= 'r') \
6872                      || ('s' <= (c) && (c) <= 'z'))
6873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6874 #endif
6875
6876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6877 int
6878 main ()
6879 {
6880   int i;
6881   for (i = 0; i < 256; i++)
6882     if (XOR (islower (i), ISLOWER (i))
6883         || toupper (i) != TOUPPER (i))
6884       exit(2);
6885   exit (0);
6886 }
6887 _ACEOF
6888 rm -f conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890   (eval $ac_link) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   :
6900 else
6901   echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6904 ( exit $ac_status )
6905 ac_cv_header_stdc=no
6906 fi
6907 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6908 fi
6909 fi
6910 fi
6911 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6913 if test $ac_cv_header_stdc = yes; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6917 _ACEOF
6918
6919 fi
6920
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932                   inttypes.h stdint.h unistd.h
6933 do
6934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 $ac_includes_default
6944
6945 #include <$ac_header>
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949   (eval $ac_compile) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); } &&
6953          { ac_try='test -s conftest.$ac_objext'
6954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955   (eval $ac_try) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; }; then
6959   eval "$as_ac_Header=yes"
6960 else
6961   echo "$as_me: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 eval "$as_ac_Header=no"
6964 fi
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6970   cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6972 _ACEOF
6973
6974 fi
6975
6976 done
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7005 do
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008   echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 fi
7013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7015 else
7016   # Is the header compilable?
7017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7022 $ac_includes_default
7023 #include <$ac_header>
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027   (eval $ac_compile) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } &&
7031          { ac_try='test -s conftest.$ac_objext'
7032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033   (eval $ac_try) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); }; }; then
7037   ac_header_compiler=yes
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7041 ac_header_compiler=no
7042 fi
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 #include "confdefs.h"
7053 #include <$ac_header>
7054 _ACEOF
7055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7057   ac_status=$?
7058   egrep -v '^ *\+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } >/dev/null; then
7063   if test -s conftest.err; then
7064     ac_cpp_err=$ac_c_preproc_warn_flag
7065   else
7066     ac_cpp_err=
7067   fi
7068 else
7069   ac_cpp_err=yes
7070 fi
7071 if test -z "$ac_cpp_err"; then
7072   ac_header_preproc=yes
7073 else
7074   echo "$as_me: failed program was:" >&5
7075   cat conftest.$ac_ext >&5
7076   ac_header_preproc=no
7077 fi
7078 rm -f conftest.err conftest.$ac_ext
7079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7080 echo "${ECHO_T}$ac_header_preproc" >&6
7081
7082 # So?  What about this header?
7083 case $ac_header_compiler:$ac_header_preproc in
7084   yes:no )
7085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7089   no:yes )
7090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7092     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7096 esac
7097 echo "$as_me:$LINENO: checking for $ac_header" >&5
7098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   eval "$as_ac_Header=$ac_header_preproc"
7103 fi
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7106
7107 fi
7108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7109   cat >>confdefs.h <<_ACEOF
7110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111 _ACEOF
7112
7113 fi
7114
7115 done
7116
7117
7118 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7119 # netinet/in.h is included first.
7120
7121 for ac_header in netinet/in.h
7122 do
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7125   echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 fi
7130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7132 else
7133   # Is the header compilable?
7134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 #include "confdefs.h"
7139 $ac_includes_default
7140 #include <$ac_header>
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } &&
7148          { ac_try='test -s conftest.$ac_objext'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; }; then
7154   ac_header_compiler=yes
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 ac_header_compiler=no
7159 fi
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7162 echo "${ECHO_T}$ac_header_compiler" >&6
7163
7164 # Is the header present?
7165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7169 #include "confdefs.h"
7170 #include <$ac_header>
7171 _ACEOF
7172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7174   ac_status=$?
7175   egrep -v '^ *\+' conftest.er1 >conftest.err
7176   rm -f conftest.er1
7177   cat conftest.err >&5
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } >/dev/null; then
7180   if test -s conftest.err; then
7181     ac_cpp_err=$ac_c_preproc_warn_flag
7182   else
7183     ac_cpp_err=
7184   fi
7185 else
7186   ac_cpp_err=yes
7187 fi
7188 if test -z "$ac_cpp_err"; then
7189   ac_header_preproc=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192   cat conftest.$ac_ext >&5
7193   ac_header_preproc=no
7194 fi
7195 rm -f conftest.err conftest.$ac_ext
7196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7197 echo "${ECHO_T}$ac_header_preproc" >&6
7198
7199 # So?  What about this header?
7200 case $ac_header_compiler:$ac_header_preproc in
7201   yes:no )
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7206   no:yes )
7207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7209     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7213 esac
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   eval "$as_ac_Header=$ac_header_preproc"
7220 fi
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224 fi
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226   cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228 _ACEOF
7229
7230 fi
7231
7232 done
7233
7234
7235 for ac_header in netinet/tcp.h
7236 do
7237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   cat >conftest.$ac_ext <<_ACEOF
7244 #line $LINENO "configure"
7245 #include "confdefs.h"
7246 $ac_includes_default
7247 #ifdef HAVE_NETINET_IN_H
7248 #include <netinet/in.h>
7249 #endif
7250
7251
7252 #include <$ac_header>
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256   (eval $ac_compile) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest.$ac_objext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   eval "$as_ac_Header=yes"
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 eval "$as_ac_Header=no"
7271 fi
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277   cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 _ACEOF
7280
7281 fi
7282
7283 done
7284
7285
7286 if test "$with_readline" = yes; then
7287
7288 for ac_header in readline/readline.h
7289 do
7290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292   echo "$as_me:$LINENO: checking for $ac_header" >&5
7293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 fi
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 else
7300   # Is the header compilable?
7301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 #include <$ac_header>
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311   (eval $ac_compile) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -s conftest.$ac_objext'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; }; then
7321   ac_header_compiler=yes
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 ac_header_compiler=no
7326 fi
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7330
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <$ac_header>
7338 _ACEOF
7339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7341   ac_status=$?
7342   egrep -v '^ *\+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } >/dev/null; then
7347   if test -s conftest.err; then
7348     ac_cpp_err=$ac_c_preproc_warn_flag
7349   else
7350     ac_cpp_err=
7351   fi
7352 else
7353   ac_cpp_err=yes
7354 fi
7355 if test -z "$ac_cpp_err"; then
7356   ac_header_preproc=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359   cat conftest.$ac_ext >&5
7360   ac_header_preproc=no
7361 fi
7362 rm -f conftest.err conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7364 echo "${ECHO_T}$ac_header_preproc" >&6
7365
7366 # So?  What about this header?
7367 case $ac_header_compiler:$ac_header_preproc in
7368   yes:no )
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7373   no:yes )
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7380 esac
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   eval "$as_ac_Header=$ac_header_preproc"
7387 fi
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390
7391 fi
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393   cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395 _ACEOF
7396
7397 else
7398
7399 for ac_header in editline/readline.h
7400 do
7401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403   echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 fi
7408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7410 else
7411   # Is the header compilable?
7412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #include <$ac_header>
7419 _ACEOF
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422   (eval $ac_compile) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } &&
7426          { ac_try='test -s conftest.$ac_objext'
7427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428   (eval $ac_try) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; }; then
7432   ac_header_compiler=yes
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 ac_header_compiler=no
7437 fi
7438 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440 echo "${ECHO_T}$ac_header_compiler" >&6
7441
7442 # Is the header present?
7443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7447 #include "confdefs.h"
7448 #include <$ac_header>
7449 _ACEOF
7450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7452   ac_status=$?
7453   egrep -v '^ *\+' conftest.er1 >conftest.err
7454   rm -f conftest.er1
7455   cat conftest.err >&5
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } >/dev/null; then
7458   if test -s conftest.err; then
7459     ac_cpp_err=$ac_c_preproc_warn_flag
7460   else
7461     ac_cpp_err=
7462   fi
7463 else
7464   ac_cpp_err=yes
7465 fi
7466 if test -z "$ac_cpp_err"; then
7467   ac_header_preproc=yes
7468 else
7469   echo "$as_me: failed program was:" >&5
7470   cat conftest.$ac_ext >&5
7471   ac_header_preproc=no
7472 fi
7473 rm -f conftest.err conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7475 echo "${ECHO_T}$ac_header_preproc" >&6
7476
7477 # So?  What about this header?
7478 case $ac_header_compiler:$ac_header_preproc in
7479   yes:no )
7480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7484   no:yes )
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7491 esac
7492 echo "$as_me:$LINENO: checking for $ac_header" >&5
7493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   eval "$as_ac_Header=$ac_header_preproc"
7498 fi
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501
7502 fi
7503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7504   cat >>confdefs.h <<_ACEOF
7505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7506 _ACEOF
7507
7508 else
7509
7510 for ac_header in readline.h
7511 do
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514   echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 fi
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7521 else
7522   # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7528 $ac_includes_default
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -s conftest.$ac_objext'
7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539   (eval $ac_try) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; }; then
7543   ac_header_compiler=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_compiler=no
7548 fi
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7552
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559 #include <$ac_header>
7560 _ACEOF
7561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7563   ac_status=$?
7564   egrep -v '^ *\+' conftest.er1 >conftest.err
7565   rm -f conftest.er1
7566   cat conftest.err >&5
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } >/dev/null; then
7569   if test -s conftest.err; then
7570     ac_cpp_err=$ac_c_preproc_warn_flag
7571   else
7572     ac_cpp_err=
7573   fi
7574 else
7575   ac_cpp_err=yes
7576 fi
7577 if test -z "$ac_cpp_err"; then
7578   ac_header_preproc=yes
7579 else
7580   echo "$as_me: failed program was:" >&5
7581   cat conftest.$ac_ext >&5
7582   ac_header_preproc=no
7583 fi
7584 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7586 echo "${ECHO_T}$ac_header_preproc" >&6
7587
7588 # So?  What about this header?
7589 case $ac_header_compiler:$ac_header_preproc in
7590   yes:no )
7591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7595   no:yes )
7596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7602 esac
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   eval "$as_ac_Header=$ac_header_preproc"
7609 fi
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7612
7613 fi
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615   cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7617 _ACEOF
7618
7619 else
7620   { { echo "$as_me:$LINENO: error: readline header not found
7621 If you have readline already installed, see config.log for details on the
7622 failure.  It is possible the compiler isn't looking in the proper directory.
7623 Use --without-readline to disable readline support." >&5
7624 echo "$as_me: error: readline header not found
7625 If you have readline already installed, see config.log for details on the
7626 failure.  It is possible the compiler isn't looking in the proper directory.
7627 Use --without-readline to disable readline support." >&2;}
7628    { (exit 1); exit 1; }; }
7629 fi
7630
7631 done
7632
7633 fi
7634
7635 done
7636
7637 fi
7638
7639 done
7640
7641
7642 for ac_header in readline/history.h
7643 do
7644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646   echo "$as_me:$LINENO: checking for $ac_header" >&5
7647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 fi
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7653 else
7654   # Is the header compilable?
7655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7658 #line $LINENO "configure"
7659 #include "confdefs.h"
7660 $ac_includes_default
7661 #include <$ac_header>
7662 _ACEOF
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665   (eval $ac_compile) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } &&
7669          { ac_try='test -s conftest.$ac_objext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_header_compiler=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_header_compiler=no
7680 fi
7681 rm -f conftest.$ac_objext conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6
7684
7685 # Is the header present?
7686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7688 cat >conftest.$ac_ext <<_ACEOF
7689 #line $LINENO "configure"
7690 #include "confdefs.h"
7691 #include <$ac_header>
7692 _ACEOF
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7695   ac_status=$?
7696   egrep -v '^ *\+' conftest.er1 >conftest.err
7697   rm -f conftest.er1
7698   cat conftest.err >&5
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } >/dev/null; then
7701   if test -s conftest.err; then
7702     ac_cpp_err=$ac_c_preproc_warn_flag
7703   else
7704     ac_cpp_err=
7705   fi
7706 else
7707   ac_cpp_err=yes
7708 fi
7709 if test -z "$ac_cpp_err"; then
7710   ac_header_preproc=yes
7711 else
7712   echo "$as_me: failed program was:" >&5
7713   cat conftest.$ac_ext >&5
7714   ac_header_preproc=no
7715 fi
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7719
7720 # So?  What about this header?
7721 case $ac_header_compiler:$ac_header_preproc in
7722   yes:no )
7723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7727   no:yes )
7728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7730     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7734 esac
7735 echo "$as_me:$LINENO: checking for $ac_header" >&5
7736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   eval "$as_ac_Header=$ac_header_preproc"
7741 fi
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744
7745 fi
7746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7747   cat >>confdefs.h <<_ACEOF
7748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7749 _ACEOF
7750
7751 else
7752
7753 for ac_header in editline/history.h
7754 do
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 fi
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7764 else
7765   # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <$ac_header>
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776   (eval $ac_compile) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   ac_header_compiler=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_header_compiler=no
7791 fi
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7795
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <$ac_header>
7803 _ACEOF
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7806   ac_status=$?
7807   egrep -v '^ *\+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } >/dev/null; then
7812   if test -s conftest.err; then
7813     ac_cpp_err=$ac_c_preproc_warn_flag
7814   else
7815     ac_cpp_err=
7816   fi
7817 else
7818   ac_cpp_err=yes
7819 fi
7820 if test -z "$ac_cpp_err"; then
7821   ac_header_preproc=yes
7822 else
7823   echo "$as_me: failed program was:" >&5
7824   cat conftest.$ac_ext >&5
7825   ac_header_preproc=no
7826 fi
7827 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7830
7831 # So?  What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7833   yes:no )
7834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7838   no:yes )
7839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7845 esac
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   eval "$as_ac_Header=$ac_header_preproc"
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855
7856 fi
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858   cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 _ACEOF
7861
7862 else
7863
7864 for ac_header in history.h
7865 do
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868   echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 fi
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7875 else
7876   # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887   (eval $ac_compile) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); } &&
7891          { ac_try='test -s conftest.$ac_objext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   ac_header_compiler=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7902 fi
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7906
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7914 _ACEOF
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7917   ac_status=$?
7918   egrep -v '^ *\+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } >/dev/null; then
7923   if test -s conftest.err; then
7924     ac_cpp_err=$ac_c_preproc_warn_flag
7925   else
7926     ac_cpp_err=
7927   fi
7928 else
7929   ac_cpp_err=yes
7930 fi
7931 if test -z "$ac_cpp_err"; then
7932   ac_header_preproc=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935   cat conftest.$ac_ext >&5
7936   ac_header_preproc=no
7937 fi
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7941
7942 # So?  What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7944   yes:no )
7945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7949   no:yes )
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7956 esac
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   eval "$as_ac_Header=$ac_header_preproc"
7963 fi
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7966
7967 fi
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969   cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971 _ACEOF
7972
7973 else
7974   { { echo "$as_me:$LINENO: error: history header not found
7975 If you have readline already installed, see config.log for details on the
7976 failure.  It is possible the compiler isn't looking in the proper directory.
7977 Use --without-readline to disable readline support." >&5
7978 echo "$as_me: error: history header not found
7979 If you have readline already installed, see config.log for details on the
7980 failure.  It is possible the compiler isn't looking in the proper directory.
7981 Use --without-readline to disable readline support." >&2;}
7982    { (exit 1); exit 1; }; }
7983 fi
7984
7985 done
7986
7987 fi
7988
7989 done
7990
7991 fi
7992
7993 done
7994
7995 fi
7996
7997 if test "$with_zlib" = yes; then
7998   if test "${ac_cv_header_zlib_h+set}" = set; then
7999   echo "$as_me:$LINENO: checking for zlib.h" >&5
8000 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8001 if test "${ac_cv_header_zlib_h+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8006 else
8007   # Is the header compilable?
8008 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8009 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8011 #line $LINENO "configure"
8012 #include "confdefs.h"
8013 $ac_includes_default
8014 #include <zlib.h>
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018   (eval $ac_compile) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } &&
8022          { ac_try='test -s conftest.$ac_objext'
8023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024   (eval $ac_try) 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }; }; then
8028   ac_header_compiler=yes
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 ac_header_compiler=no
8033 fi
8034 rm -f conftest.$ac_objext conftest.$ac_ext
8035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8036 echo "${ECHO_T}$ac_header_compiler" >&6
8037
8038 # Is the header present?
8039 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8040 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 #include "confdefs.h"
8044 #include <zlib.h>
8045 _ACEOF
8046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8048   ac_status=$?
8049   egrep -v '^ *\+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } >/dev/null; then
8054   if test -s conftest.err; then
8055     ac_cpp_err=$ac_c_preproc_warn_flag
8056   else
8057     ac_cpp_err=
8058   fi
8059 else
8060   ac_cpp_err=yes
8061 fi
8062 if test -z "$ac_cpp_err"; then
8063   ac_header_preproc=yes
8064 else
8065   echo "$as_me: failed program was:" >&5
8066   cat conftest.$ac_ext >&5
8067   ac_header_preproc=no
8068 fi
8069 rm -f conftest.err conftest.$ac_ext
8070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071 echo "${ECHO_T}$ac_header_preproc" >&6
8072
8073 # So?  What about this header?
8074 case $ac_header_compiler:$ac_header_preproc in
8075   yes:no )
8076     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8077 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8080   no:yes )
8081     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8082 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8084 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8085     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8086 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8087 esac
8088 echo "$as_me:$LINENO: checking for zlib.h" >&5
8089 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8090 if test "${ac_cv_header_zlib_h+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   ac_cv_header_zlib_h=$ac_header_preproc
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8096 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8097
8098 fi
8099 if test $ac_cv_header_zlib_h = yes; then
8100   :
8101 else
8102   { { echo "$as_me:$LINENO: error: zlib header not found
8103 If you have zlib already installed, see config.log for details on the
8104 failure.  It is possible the compiler isn't looking in the proper directory.
8105 Use --without-zlib to disable zlib support." >&5
8106 echo "$as_me: error: zlib header not found
8107 If you have zlib already installed, see config.log for details on the
8108 failure.  It is possible the compiler isn't looking in the proper directory.
8109 Use --without-zlib to disable zlib support." >&2;}
8110    { (exit 1); exit 1; }; }
8111 fi
8112
8113
8114 fi
8115
8116 if test "$with_krb4" = yes ; then
8117   if test "${ac_cv_header_krb_h+set}" = set; then
8118   echo "$as_me:$LINENO: checking for krb.h" >&5
8119 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_krb_h+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8125 else
8126   # Is the header compilable?
8127 echo "$as_me:$LINENO: checking krb.h usability" >&5
8128 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132 $ac_includes_default
8133 #include <krb.h>
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137   (eval $ac_compile) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } &&
8141          { ac_try='test -s conftest.$ac_objext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   ac_header_compiler=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 ac_header_compiler=no
8152 fi
8153 rm -f conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8156
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking krb.h presence" >&5
8159 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 #include "confdefs.h"
8163 #include <krb.h>
8164 _ACEOF
8165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8167   ac_status=$?
8168   egrep -v '^ *\+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } >/dev/null; then
8173   if test -s conftest.err; then
8174     ac_cpp_err=$ac_c_preproc_warn_flag
8175   else
8176     ac_cpp_err=
8177   fi
8178 else
8179   ac_cpp_err=yes
8180 fi
8181 if test -z "$ac_cpp_err"; then
8182   ac_header_preproc=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185   cat conftest.$ac_ext >&5
8186   ac_header_preproc=no
8187 fi
8188 rm -f conftest.err conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8190 echo "${ECHO_T}$ac_header_preproc" >&6
8191
8192 # So?  What about this header?
8193 case $ac_header_compiler:$ac_header_preproc in
8194   yes:no )
8195     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8196 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8199   no:yes )
8200     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8201 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8202     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8203 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8204     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8206 esac
8207 echo "$as_me:$LINENO: checking for krb.h" >&5
8208 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_krb_h+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   ac_cv_header_krb_h=$ac_header_preproc
8213 fi
8214 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8215 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8216
8217 fi
8218 if test $ac_cv_header_krb_h = yes; then
8219   :
8220 else
8221   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8222 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8223    { (exit 1); exit 1; }; }
8224 fi
8225
8226
8227 fi
8228
8229 if test "$with_krb5" = yes ; then
8230   if test "${ac_cv_header_krb5_h+set}" = set; then
8231   echo "$as_me:$LINENO: checking for krb5.h" >&5
8232 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_krb5_h+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 fi
8236 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8238 else
8239   # Is the header compilable?
8240 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8241 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8246 #include <krb5.h>
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250   (eval $ac_compile) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_header_compiler=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8265 fi
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8269
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8272 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8276 #include <krb5.h>
8277 _ACEOF
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8280   ac_status=$?
8281   egrep -v '^ *\+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } >/dev/null; then
8286   if test -s conftest.err; then
8287     ac_cpp_err=$ac_c_preproc_warn_flag
8288   else
8289     ac_cpp_err=
8290   fi
8291 else
8292   ac_cpp_err=yes
8293 fi
8294 if test -z "$ac_cpp_err"; then
8295   ac_header_preproc=yes
8296 else
8297   echo "$as_me: failed program was:" >&5
8298   cat conftest.$ac_ext >&5
8299   ac_header_preproc=no
8300 fi
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8304
8305 # So?  What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8307   yes:no )
8308     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8312   no:yes )
8313     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8317     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8319 esac
8320 echo "$as_me:$LINENO: checking for krb5.h" >&5
8321 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_krb5_h+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   ac_cv_header_krb5_h=$ac_header_preproc
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8329
8330 fi
8331 if test $ac_cv_header_krb5_h = yes; then
8332   :
8333 else
8334   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8335 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8336    { (exit 1); exit 1; }; }
8337 fi
8338
8339
8340   if test "${ac_cv_header_com_err_h+set}" = set; then
8341   echo "$as_me:$LINENO: checking for com_err.h" >&5
8342 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_com_err_h+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8348 else
8349   # Is the header compilable?
8350 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8351 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8356 #include <com_err.h>
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360   (eval $ac_compile) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest.$ac_objext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_header_compiler=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8375 fi
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8379
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8382 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 #include <com_err.h>
8387 _ACEOF
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8390   ac_status=$?
8391   egrep -v '^ *\+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } >/dev/null; then
8396   if test -s conftest.err; then
8397     ac_cpp_err=$ac_c_preproc_warn_flag
8398   else
8399     ac_cpp_err=
8400   fi
8401 else
8402   ac_cpp_err=yes
8403 fi
8404 if test -z "$ac_cpp_err"; then
8405   ac_header_preproc=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408   cat conftest.$ac_ext >&5
8409   ac_header_preproc=no
8410 fi
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8414
8415 # So?  What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8417   yes:no )
8418     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8422   no:yes )
8423     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8425     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8429 esac
8430 echo "$as_me:$LINENO: checking for com_err.h" >&5
8431 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_com_err_h+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   ac_cv_header_com_err_h=$ac_header_preproc
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8439
8440 fi
8441 if test $ac_cv_header_com_err_h = yes; then
8442   :
8443 else
8444   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8445 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8446    { (exit 1); exit 1; }; }
8447 fi
8448
8449
8450 fi
8451
8452 if test "$with_openssl" = yes ; then
8453   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8454   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8455 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8461 else
8462   # Is the header compilable?
8463 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8464 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8469 #include <openssl/ssl.h>
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -s conftest.$ac_objext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   ac_header_compiler=yes
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8488 fi
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8492
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8495 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <openssl/ssl.h>
8500 _ACEOF
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503   ac_status=$?
8504   egrep -v '^ *\+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } >/dev/null; then
8509   if test -s conftest.err; then
8510     ac_cpp_err=$ac_c_preproc_warn_flag
8511   else
8512     ac_cpp_err=
8513   fi
8514 else
8515   ac_cpp_err=yes
8516 fi
8517 if test -z "$ac_cpp_err"; then
8518   ac_header_preproc=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521   cat conftest.$ac_ext >&5
8522   ac_header_preproc=no
8523 fi
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8527
8528 # So?  What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8530   yes:no )
8531     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8535   no:yes )
8536     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8542 esac
8543 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8544 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8552
8553 fi
8554 if test $ac_cv_header_openssl_ssl_h = yes; then
8555   :
8556 else
8557   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8558 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8559    { (exit 1); exit 1; }; }
8560 fi
8561
8562
8563   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8564   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8565 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8566 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 fi
8569 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8570 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8571 else
8572   # Is the header compilable?
8573 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8574 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 $ac_includes_default
8579 #include <openssl/err.h>
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583   (eval $ac_compile) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -s conftest.$ac_objext'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; }; then
8593   ac_header_compiler=yes
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_compiler=no
8598 fi
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6
8602
8603 # Is the header present?
8604 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8605 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609 #include <openssl/err.h>
8610 _ACEOF
8611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8613   ac_status=$?
8614   egrep -v '^ *\+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } >/dev/null; then
8619   if test -s conftest.err; then
8620     ac_cpp_err=$ac_c_preproc_warn_flag
8621   else
8622     ac_cpp_err=
8623   fi
8624 else
8625   ac_cpp_err=yes
8626 fi
8627 if test -z "$ac_cpp_err"; then
8628   ac_header_preproc=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631   cat conftest.$ac_ext >&5
8632   ac_header_preproc=no
8633 fi
8634 rm -f conftest.err conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6
8637
8638 # So?  What about this header?
8639 case $ac_header_compiler:$ac_header_preproc in
8640   yes:no )
8641     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8645   no:yes )
8646     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8647 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8649 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8652 esac
8653 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8654 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8655 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_cv_header_openssl_err_h=$ac_header_preproc
8659 fi
8660 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8661 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8662
8663 fi
8664 if test $ac_cv_header_openssl_err_h = yes; then
8665   :
8666 else
8667   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8668 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8669    { (exit 1); exit 1; }; }
8670 fi
8671
8672
8673 fi
8674
8675 if test "$with_pam" = yes ; then
8676
8677 for ac_header in security/pam_appl.h
8678 do
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681   echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 fi
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8688 else
8689   # Is the header compilable?
8690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line $LINENO "configure"
8694 #include "confdefs.h"
8695 $ac_includes_default
8696 #include <$ac_header>
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700   (eval $ac_compile) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } &&
8704          { ac_try='test -s conftest.$ac_objext'
8705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706   (eval $ac_try) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; }; then
8710   ac_header_compiler=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8714 ac_header_compiler=no
8715 fi
8716 rm -f conftest.$ac_objext conftest.$ac_ext
8717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718 echo "${ECHO_T}$ac_header_compiler" >&6
8719
8720 # Is the header present?
8721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8725 #include "confdefs.h"
8726 #include <$ac_header>
8727 _ACEOF
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8730   ac_status=$?
8731   egrep -v '^ *\+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } >/dev/null; then
8736   if test -s conftest.err; then
8737     ac_cpp_err=$ac_c_preproc_warn_flag
8738   else
8739     ac_cpp_err=
8740   fi
8741 else
8742   ac_cpp_err=yes
8743 fi
8744 if test -z "$ac_cpp_err"; then
8745   ac_header_preproc=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748   cat conftest.$ac_ext >&5
8749   ac_header_preproc=no
8750 fi
8751 rm -f conftest.err conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753 echo "${ECHO_T}$ac_header_preproc" >&6
8754
8755 # So?  What about this header?
8756 case $ac_header_compiler:$ac_header_preproc in
8757   yes:no )
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8762   no:yes )
8763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8769 esac
8770 echo "$as_me:$LINENO: checking for $ac_header" >&5
8771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   eval "$as_ac_Header=$ac_header_preproc"
8776 fi
8777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8779
8780 fi
8781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8782   cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8784 _ACEOF
8785
8786 else
8787
8788 for ac_header in pam/pam_appl.h
8789 do
8790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792   echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 fi
8797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8799 else
8800   # Is the header compilable?
8801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <$ac_header>
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811   (eval $ac_compile) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } &&
8815          { ac_try='test -s conftest.$ac_objext'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; }; then
8821   ac_header_compiler=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_header_compiler=no
8826 fi
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8830
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <$ac_header>
8838 _ACEOF
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8841   ac_status=$?
8842   egrep -v '^ *\+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } >/dev/null; then
8847   if test -s conftest.err; then
8848     ac_cpp_err=$ac_c_preproc_warn_flag
8849   else
8850     ac_cpp_err=
8851   fi
8852 else
8853   ac_cpp_err=yes
8854 fi
8855 if test -z "$ac_cpp_err"; then
8856   ac_header_preproc=yes
8857 else
8858   echo "$as_me: failed program was:" >&5
8859   cat conftest.$ac_ext >&5
8860   ac_header_preproc=no
8861 fi
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8865
8866 # So?  What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8868   yes:no )
8869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8873   no:yes )
8874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8880 esac
8881 echo "$as_me:$LINENO: checking for $ac_header" >&5
8882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   eval "$as_ac_Header=$ac_header_preproc"
8887 fi
8888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8890
8891 fi
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893   cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895 _ACEOF
8896
8897 else
8898   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8899 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8900    { (exit 1); exit 1; }; }
8901 fi
8902
8903 done
8904
8905 fi
8906
8907 done
8908
8909 fi
8910
8911 if test "$with_rendezvous" = yes ; then
8912   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8913   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8914 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8915 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8919 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8920 else
8921   # Is the header compilable?
8922 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8923 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932   (eval $ac_compile) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -s conftest.$ac_objext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_header_compiler=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_header_compiler=no
8947 fi
8948 rm -f conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8951
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8954 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8958 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962   ac_status=$?
8963   egrep -v '^ *\+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } >/dev/null; then
8968   if test -s conftest.err; then
8969     ac_cpp_err=$ac_c_preproc_warn_flag
8970   else
8971     ac_cpp_err=
8972   fi
8973 else
8974   ac_cpp_err=yes
8975 fi
8976 if test -z "$ac_cpp_err"; then
8977   ac_header_preproc=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980   cat conftest.$ac_ext >&5
8981   ac_header_preproc=no
8982 fi
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8986
8987 # So?  What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8989   yes:no )
8990     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8994   no:yes )
8995     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
8997     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9001 esac
9002 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9003 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9004 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9005   echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9008 fi
9009 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9010 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9011
9012 fi
9013 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9014   :
9015 else
9016   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9017 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9018    { (exit 1); exit 1; }; }
9019 fi
9020
9021
9022 fi
9023
9024
9025 ##
9026 ## Types, structures, compiler characteristics
9027 ##
9028
9029
9030 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9032 if test "${ac_cv_c_const+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 #include "confdefs.h"
9038
9039 #ifdef F77_DUMMY_MAIN
9040 #  ifdef __cplusplus
9041      extern "C"
9042 #  endif
9043    int F77_DUMMY_MAIN() { return 1; }
9044 #endif
9045 int
9046 main ()
9047 {
9048 /* FIXME: Include the comments suggested by Paul. */
9049 #ifndef __cplusplus
9050   /* Ultrix mips cc rejects this.  */
9051   typedef int charset[2];
9052   const charset x;
9053   /* SunOS 4.1.1 cc rejects this.  */
9054   char const *const *ccp;
9055   char **p;
9056   /* NEC SVR4.0.2 mips cc rejects this.  */
9057   struct point {int x, y;};
9058   static struct point const zero = {0,0};
9059   /* AIX XL C 1.02.0.0 rejects this.
9060      It does not let you subtract one const X* pointer from another in
9061      an arm of an if-expression whose if-part is not a constant
9062      expression */
9063   const char *g = "string";
9064   ccp = &g + (g ? g-g : 0);
9065   /* HPUX 7.0 cc rejects these. */
9066   ++ccp;
9067   p = (char**) ccp;
9068   ccp = (char const *const *) p;
9069   { /* SCO 3.2v4 cc rejects this.  */
9070     char *t;
9071     char const *s = 0 ? (char *) 0 : (char const *) 0;
9072
9073     *t++ = 0;
9074   }
9075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9076     int x[] = {25, 17};
9077     const int *foo = &x[0];
9078     ++foo;
9079   }
9080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9081     typedef const int *iptr;
9082     iptr p = 0;
9083     ++p;
9084   }
9085   { /* AIX XL C 1.02.0.0 rejects this saying
9086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9087     struct s { int j; const int *ap[3]; };
9088     struct s *b; b->j = 5;
9089   }
9090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9091     const int foo = 10;
9092   }
9093 #endif
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); } &&
9105          { ac_try='test -s conftest.$ac_objext'
9106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }; }; then
9111   ac_cv_c_const=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9115 ac_cv_c_const=no
9116 fi
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9120 echo "${ECHO_T}$ac_cv_c_const" >&6
9121 if test $ac_cv_c_const = no; then
9122
9123 cat >>confdefs.h <<\_ACEOF
9124 #define const
9125 _ACEOF
9126
9127 fi
9128
9129 echo "$as_me:$LINENO: checking for inline" >&5
9130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9131 if test "${ac_cv_c_inline+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   ac_cv_c_inline=no
9135 for ac_kw in inline __inline__ __inline; do
9136   cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 #include "confdefs.h"
9139 #ifndef __cplusplus
9140 typedef int foo_t;
9141 static $ac_kw foo_t static_foo () {return 0; }
9142 $ac_kw int foo () {return 0; }
9143 #endif
9144
9145 _ACEOF
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148   (eval $ac_compile) 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -s conftest.$ac_objext'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; }; then
9158   ac_cv_c_inline=$ac_kw; break
9159 else
9160   echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 fi
9163 rm -f conftest.$ac_objext conftest.$ac_ext
9164 done
9165
9166 fi
9167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9168 echo "${ECHO_T}$ac_cv_c_inline" >&6
9169 case $ac_cv_c_inline in
9170   inline | yes) ;;
9171   no)
9172 cat >>confdefs.h <<\_ACEOF
9173 #define inline
9174 _ACEOF
9175  ;;
9176   *)  cat >>confdefs.h <<_ACEOF
9177 #define inline $ac_cv_c_inline
9178 _ACEOF
9179  ;;
9180 esac
9181
9182 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9183 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9184 if test "${ac_cv_c_stringize+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 #include "confdefs.h"
9190 #define x(y) #y
9191
9192 char *s = x(teststring);
9193 _ACEOF
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195   egrep "#teststring" >/dev/null 2>&1; then
9196   ac_cv_c_stringize=no
9197 else
9198   ac_cv_c_stringize=yes
9199 fi
9200 rm -f conftest*
9201
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9204 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9205 if test $ac_cv_c_stringize = yes; then
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_STRINGIZE 1
9209 _ACEOF
9210
9211 fi
9212
9213 echo "$as_me:$LINENO: checking for signed types" >&5
9214 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9215 if test "${pgac_cv_c_signed+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9221
9222 #ifdef F77_DUMMY_MAIN
9223 #  ifdef __cplusplus
9224      extern "C"
9225 #  endif
9226    int F77_DUMMY_MAIN() { return 1; }
9227 #endif
9228 int
9229 main ()
9230 {
9231 signed char c; signed short s; signed int i;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238   (eval $ac_compile) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } &&
9242          { ac_try='test -s conftest.$ac_objext'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; }; then
9248   pgac_cv_c_signed=yes
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 pgac_cv_c_signed=no
9253 fi
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9257 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9258 if test x"$pgac_cv_c_signed" = xno ; then
9259
9260 cat >>confdefs.h <<\_ACEOF
9261 #define signed
9262 _ACEOF
9263
9264 fi
9265 echo "$as_me:$LINENO: checking for working volatile" >&5
9266 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9267 if test "${ac_cv_c_volatile+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9273
9274 #ifdef F77_DUMMY_MAIN
9275 #  ifdef __cplusplus
9276      extern "C"
9277 #  endif
9278    int F77_DUMMY_MAIN() { return 1; }
9279 #endif
9280 int
9281 main ()
9282 {
9283
9284 volatile int x;
9285 int * volatile y;
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292   (eval $ac_compile) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } &&
9296          { ac_try='test -s conftest.$ac_objext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_c_volatile=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 ac_cv_c_volatile=no
9307 fi
9308 rm -f conftest.$ac_objext conftest.$ac_ext
9309 fi
9310 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9311 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9312 if test $ac_cv_c_volatile = no; then
9313
9314 cat >>confdefs.h <<\_ACEOF
9315 #define volatile
9316 _ACEOF
9317
9318 fi
9319
9320 echo "$as_me:$LINENO: checking for __func__" >&5
9321 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9322 if test "${pgac_cv_funcname_func_support+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9328 #include <stdio.h>
9329 #ifdef F77_DUMMY_MAIN
9330 #  ifdef __cplusplus
9331      extern "C"
9332 #  endif
9333    int F77_DUMMY_MAIN() { return 1; }
9334 #endif
9335 int
9336 main ()
9337 {
9338 printf("%s\n", __func__);
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345   (eval $ac_compile) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -s conftest.$ac_objext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   pgac_cv_funcname_func_support=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 pgac_cv_funcname_func_support=no
9360 fi
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9362 fi
9363 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9364 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9365 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9366
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_FUNCNAME__FUNC 1
9369 _ACEOF
9370
9371 else
9372 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9373 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9374 if test "${pgac_cv_funcname_function_support+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   cat >conftest.$ac_ext <<_ACEOF
9378 #line $LINENO "configure"
9379 #include "confdefs.h"
9380 #include <stdio.h>
9381 #ifdef F77_DUMMY_MAIN
9382 #  ifdef __cplusplus
9383      extern "C"
9384 #  endif
9385    int F77_DUMMY_MAIN() { return 1; }
9386 #endif
9387 int
9388 main ()
9389 {
9390 printf("%s\n", __FUNCTION__);
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397   (eval $ac_compile) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -s conftest.$ac_objext'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; }; then
9407   pgac_cv_funcname_function_support=yes
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 pgac_cv_funcname_function_support=no
9412 fi
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9414 fi
9415 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9416 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9417 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9418
9419 cat >>confdefs.h <<\_ACEOF
9420 #define HAVE_FUNCNAME__FUNCTION 1
9421 _ACEOF
9422
9423 fi
9424 fi
9425 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9426 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9427 if test "${ac_cv_struct_tm+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9434 #include <time.h>
9435
9436 #ifdef F77_DUMMY_MAIN
9437 #  ifdef __cplusplus
9438      extern "C"
9439 #  endif
9440    int F77_DUMMY_MAIN() { return 1; }
9441 #endif
9442 int
9443 main ()
9444 {
9445 struct tm *tp; tp->tm_sec;
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452   (eval $ac_compile) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -s conftest.$ac_objext'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; }; then
9462   ac_cv_struct_tm=time.h
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 ac_cv_struct_tm=sys/time.h
9467 fi
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9469 fi
9470 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9471 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9472 if test $ac_cv_struct_tm = sys/time.h; then
9473
9474 cat >>confdefs.h <<\_ACEOF
9475 #define TM_IN_SYS_TIME 1
9476 _ACEOF
9477
9478 fi
9479
9480 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9481 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9482 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   cat >conftest.$ac_ext <<_ACEOF
9486 #line $LINENO "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <$ac_cv_struct_tm>
9490
9491
9492 #ifdef F77_DUMMY_MAIN
9493 #  ifdef __cplusplus
9494      extern "C"
9495 #  endif
9496    int F77_DUMMY_MAIN() { return 1; }
9497 #endif
9498 int
9499 main ()
9500 {
9501 static struct tm ac_aggr;
9502 if (ac_aggr.tm_zone)
9503 return 0;
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510   (eval $ac_compile) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); } &&
9514          { ac_try='test -s conftest.$ac_objext'
9515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516   (eval $ac_try) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; }; then
9520   ac_cv_member_struct_tm_tm_zone=yes
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 ac_cv_member_struct_tm_tm_zone=no
9525 fi
9526 rm -f conftest.$ac_objext conftest.$ac_ext
9527 fi
9528 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9529 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9530 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9531
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE_STRUCT_TM_TM_ZONE 1
9534 _ACEOF
9535
9536
9537 fi
9538
9539 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9540
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HAVE_TM_ZONE 1
9543 _ACEOF
9544
9545 fi
9546 echo "$as_me:$LINENO: checking for tzname" >&5
9547 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9548 if test "${ac_cv_var_tzname+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9553 #include "confdefs.h"
9554 #include <time.h>
9555 #ifndef tzname /* For SGI.  */
9556 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9557 #endif
9558
9559 #ifdef F77_DUMMY_MAIN
9560 #  ifdef __cplusplus
9561      extern "C"
9562 #  endif
9563    int F77_DUMMY_MAIN() { return 1; }
9564 #endif
9565 int
9566 main ()
9567 {
9568 atoi(*tzname);
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } &&
9579          { ac_try='test -s conftest$ac_exeext'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_var_tzname=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 ac_cv_var_tzname=no
9590 fi
9591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9594 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9595 if test $ac_cv_var_tzname = yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_TZNAME 1
9599 _ACEOF
9600
9601 fi
9602
9603 echo "$as_me:$LINENO: checking for union semun" >&5
9604 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9605 if test "${ac_cv_type_union_semun+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 #include "confdefs.h"
9611 #include <sys/types.h>
9612 #include <sys/ipc.h>
9613 #include <sys/sem.h>
9614
9615 #ifdef F77_DUMMY_MAIN
9616 #  ifdef __cplusplus
9617      extern "C"
9618 #  endif
9619    int F77_DUMMY_MAIN() { return 1; }
9620 #endif
9621 int
9622 main ()
9623 {
9624 if ((union semun *) 0)
9625   return 0;
9626 if (sizeof (union semun))
9627   return 0;
9628   ;
9629   return 0;
9630 }
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634   (eval $ac_compile) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } &&
9638          { ac_try='test -s conftest.$ac_objext'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; }; then
9644   ac_cv_type_union_semun=yes
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 ac_cv_type_union_semun=no
9649 fi
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9653 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9654 if test $ac_cv_type_union_semun = yes; then
9655
9656 cat >>confdefs.h <<_ACEOF
9657 #define HAVE_UNION_SEMUN 1
9658 _ACEOF
9659
9660
9661 fi
9662
9663 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9664 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9665 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9671 #include <sys/types.h>
9672 #ifdef HAVE_SYS_UN_H
9673 #include <sys/un.h>
9674 #endif
9675
9676
9677 #ifdef F77_DUMMY_MAIN
9678 #  ifdef __cplusplus
9679      extern "C"
9680 #  endif
9681    int F77_DUMMY_MAIN() { return 1; }
9682 #endif
9683 int
9684 main ()
9685 {
9686 if ((struct sockaddr_un *) 0)
9687   return 0;
9688 if (sizeof (struct sockaddr_un))
9689   return 0;
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696   (eval $ac_compile) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } &&
9700          { ac_try='test -s conftest.$ac_objext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_type_struct_sockaddr_un=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_type_struct_sockaddr_un=no
9711 fi
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9713 fi
9714 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9715 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9716 if test $ac_cv_type_struct_sockaddr_un = yes; then
9717
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_STRUCT_SOCKADDR_UN 1
9720 _ACEOF
9721
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_UNIX_SOCKETS 1
9725 _ACEOF
9726
9727 fi
9728
9729 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9730 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9731 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   cat >conftest.$ac_ext <<_ACEOF
9735 #line $LINENO "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9738 #ifdef HAVE_SYS_SOCKET_H
9739 #include <sys/socket.h>
9740 #endif
9741
9742
9743 #ifdef F77_DUMMY_MAIN
9744 #  ifdef __cplusplus
9745      extern "C"
9746 #  endif
9747    int F77_DUMMY_MAIN() { return 1; }
9748 #endif
9749 int
9750 main ()
9751 {
9752 if ((struct sockaddr_storage *) 0)
9753   return 0;
9754 if (sizeof (struct sockaddr_storage))
9755   return 0;
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762   (eval $ac_compile) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -s conftest.$ac_objext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_type_struct_sockaddr_storage=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_sockaddr_storage=no
9777 fi
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9782 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9783
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9786 _ACEOF
9787
9788
9789 fi
9790
9791 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9792 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9793 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 #line $LINENO "configure"
9798 #include "confdefs.h"
9799 #include <sys/types.h>
9800 #ifdef HAVE_SYS_SOCKET_H
9801 #include <sys/socket.h>
9802 #endif
9803
9804
9805 #ifdef F77_DUMMY_MAIN
9806 #  ifdef __cplusplus
9807      extern "C"
9808 #  endif
9809    int F77_DUMMY_MAIN() { return 1; }
9810 #endif
9811 int
9812 main ()
9813 {
9814 static struct sockaddr_storage ac_aggr;
9815 if (ac_aggr.ss_family)
9816 return 0;
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823   (eval $ac_compile) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -s conftest.$ac_objext'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; }; then
9833   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ac_cv_member_struct_sockaddr_storage_ss_family=no
9838 fi
9839 rm -f conftest.$ac_objext conftest.$ac_ext
9840 fi
9841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9843 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9844
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9847 _ACEOF
9848
9849
9850 fi
9851 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9852 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9853 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #ifdef HAVE_SYS_SOCKET_H
9861 #include <sys/socket.h>
9862 #endif
9863
9864
9865 #ifdef F77_DUMMY_MAIN
9866 #  ifdef __cplusplus
9867      extern "C"
9868 #  endif
9869    int F77_DUMMY_MAIN() { return 1; }
9870 #endif
9871 int
9872 main ()
9873 {
9874 static struct sockaddr_storage ac_aggr;
9875 if (ac_aggr.__ss_family)
9876 return 0;
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883   (eval $ac_compile) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -s conftest.$ac_objext'
9888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889   (eval $ac_try) 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; }; then
9893   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 ac_cv_member_struct_sockaddr_storage___ss_family=no
9898 fi
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9900 fi
9901 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9902 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9903 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9904
9905 cat >>confdefs.h <<_ACEOF
9906 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9907 _ACEOF
9908
9909
9910 fi
9911 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9912 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9913 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9918 #include "confdefs.h"
9919 #include <sys/types.h>
9920 #ifdef HAVE_SYS_SOCKET_H
9921 #include <sys/socket.h>
9922 #endif
9923
9924
9925 #ifdef F77_DUMMY_MAIN
9926 #  ifdef __cplusplus
9927      extern "C"
9928 #  endif
9929    int F77_DUMMY_MAIN() { return 1; }
9930 #endif
9931 int
9932 main ()
9933 {
9934 static struct sockaddr_storage ac_aggr;
9935 if (ac_aggr.ss_len)
9936 return 0;
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943   (eval $ac_compile) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -s conftest.$ac_objext'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953   ac_cv_member_struct_sockaddr_storage_ss_len=yes
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 ac_cv_member_struct_sockaddr_storage_ss_len=no
9958 fi
9959 rm -f conftest.$ac_objext conftest.$ac_ext
9960 fi
9961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9962 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9963 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9964
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9967 _ACEOF
9968
9969
9970 fi
9971 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9972 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9973 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #ifdef HAVE_SYS_SOCKET_H
9981 #include <sys/socket.h>
9982 #endif
9983
9984
9985 #ifdef F77_DUMMY_MAIN
9986 #  ifdef __cplusplus
9987      extern "C"
9988 #  endif
9989    int F77_DUMMY_MAIN() { return 1; }
9990 #endif
9991 int
9992 main ()
9993 {
9994 static struct sockaddr_storage ac_aggr;
9995 if (ac_aggr.__ss_len)
9996 return 0;
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003   (eval $ac_compile) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -s conftest.$ac_objext'
10008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009   (eval $ac_try) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_cv_member_struct_sockaddr_storage___ss_len=no
10018 fi
10019 rm -f conftest.$ac_objext conftest.$ac_ext
10020 fi
10021 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10022 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10023 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10024
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10027 _ACEOF
10028
10029
10030 fi
10031 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10032 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10033 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #ifdef HAVE_SYS_SOCKET_H
10041 #include <sys/socket.h>
10042 #endif
10043
10044
10045 #ifdef F77_DUMMY_MAIN
10046 #  ifdef __cplusplus
10047      extern "C"
10048 #  endif
10049    int F77_DUMMY_MAIN() { return 1; }
10050 #endif
10051 int
10052 main ()
10053 {
10054 static struct sockaddr ac_aggr;
10055 if (ac_aggr.sa_len)
10056 return 0;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063   (eval $ac_compile) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -s conftest.$ac_objext'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_member_struct_sockaddr_sa_len=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_member_struct_sockaddr_sa_len=no
10078 fi
10079 rm -f conftest.$ac_objext conftest.$ac_ext
10080 fi
10081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10082 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10083 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10084
10085 cat >>confdefs.h <<_ACEOF
10086 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10087 _ACEOF
10088
10089
10090 fi
10091
10092 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10093 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10094 if test "${ac_cv_type_struct_addrinfo+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/types.h>
10101 #include <sys/socket.h>
10102 #include <netdb.h>
10103
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 addrinfo *) 0)
10115   return 0;
10116 if (sizeof (struct addrinfo))
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_addrinfo=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_cv_type_struct_addrinfo=no
10139 fi
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10143 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10144 if test $ac_cv_type_struct_addrinfo = yes; then
10145
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STRUCT_ADDRINFO 1
10148 _ACEOF
10149
10150
10151 fi
10152
10153
10154 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10155 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10156 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 #include "confdefs.h"
10162 #include <sys/param.h>
10163 #include <sys/types.h>
10164 #include <sys/socket.h>
10165 #include <sys/ucred.h>
10166
10167 #ifdef F77_DUMMY_MAIN
10168 #  ifdef __cplusplus
10169      extern "C"
10170 #  endif
10171    int F77_DUMMY_MAIN() { return 1; }
10172 #endif
10173 int
10174 main ()
10175 {
10176 if ((struct cmsgcred *) 0)
10177   return 0;
10178 if (sizeof (struct cmsgcred))
10179   return 0;
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186   (eval $ac_compile) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } &&
10190          { ac_try='test -s conftest.$ac_objext'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; }; then
10196   ac_cv_type_struct_cmsgcred=yes
10197 else
10198   echo "$as_me: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10200 ac_cv_type_struct_cmsgcred=no
10201 fi
10202 rm -f conftest.$ac_objext conftest.$ac_ext
10203 fi
10204 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10205 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10206 if test $ac_cv_type_struct_cmsgcred = yes; then
10207
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_STRUCT_CMSGCRED 1
10210 _ACEOF
10211
10212
10213 fi
10214 echo "$as_me:$LINENO: checking for struct fcred" >&5
10215 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10216 if test "${ac_cv_type_struct_fcred+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 #include <sys/param.h>
10223 #include <sys/types.h>
10224 #include <sys/socket.h>
10225 #include <sys/ucred.h>
10226
10227 #ifdef F77_DUMMY_MAIN
10228 #  ifdef __cplusplus
10229      extern "C"
10230 #  endif
10231    int F77_DUMMY_MAIN() { return 1; }
10232 #endif
10233 int
10234 main ()
10235 {
10236 if ((struct fcred *) 0)
10237   return 0;
10238 if (sizeof (struct fcred))
10239   return 0;
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246   (eval $ac_compile) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -s conftest.$ac_objext'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; }; then
10256   ac_cv_type_struct_fcred=yes
10257 else
10258   echo "$as_me: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 ac_cv_type_struct_fcred=no
10261 fi
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10265 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10266 if test $ac_cv_type_struct_fcred = yes; then
10267
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_STRUCT_FCRED 1
10270 _ACEOF
10271
10272
10273 fi
10274 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10275 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10276 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 #include "confdefs.h"
10282 #include <sys/param.h>
10283 #include <sys/types.h>
10284 #include <sys/socket.h>
10285 #include <sys/ucred.h>
10286
10287 #ifdef F77_DUMMY_MAIN
10288 #  ifdef __cplusplus
10289      extern "C"
10290 #  endif
10291    int F77_DUMMY_MAIN() { return 1; }
10292 #endif
10293 int
10294 main ()
10295 {
10296 if ((struct sockcred *) 0)
10297   return 0;
10298 if (sizeof (struct sockcred))
10299   return 0;
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306   (eval $ac_compile) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -s conftest.$ac_objext'
10311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312   (eval $ac_try) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; }; then
10316   ac_cv_type_struct_sockcred=yes
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 ac_cv_type_struct_sockcred=no
10321 fi
10322 rm -f conftest.$ac_objext conftest.$ac_ext
10323 fi
10324 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10325 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10326 if test $ac_cv_type_struct_sockcred = yes; then
10327
10328 cat >>confdefs.h <<_ACEOF
10329 #define HAVE_STRUCT_SOCKCRED 1
10330 _ACEOF
10331
10332
10333 fi
10334
10335
10336 echo "$as_me:$LINENO: checking for struct option" >&5
10337 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10338 if test "${ac_cv_type_struct_option+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10343 #include "confdefs.h"
10344 #ifdef HAVE_GETOPT_H
10345 #include <getopt.h>
10346 #endif
10347
10348 #ifdef F77_DUMMY_MAIN
10349 #  ifdef __cplusplus
10350      extern "C"
10351 #  endif
10352    int F77_DUMMY_MAIN() { return 1; }
10353 #endif
10354 int
10355 main ()
10356 {
10357 if ((struct option *) 0)
10358   return 0;
10359 if (sizeof (struct option))
10360   return 0;
10361   ;
10362   return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367   (eval $ac_compile) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } &&
10371          { ac_try='test -s conftest.$ac_objext'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   ac_cv_type_struct_option=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 ac_cv_type_struct_option=no
10382 fi
10383 rm -f conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10386 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10387 if test $ac_cv_type_struct_option = yes; then
10388
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_STRUCT_OPTION 1
10391 _ACEOF
10392
10393
10394 fi
10395
10396
10397 if test "$with_zlib" = yes; then
10398   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10399   # did not).  While we could work around the lack of z_streamp, it
10400   # seems unwise to encourage people to use such old zlib versions...
10401   echo "$as_me:$LINENO: checking for z_streamp" >&5
10402 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10403 if test "${ac_cv_type_z_streamp+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 #include "confdefs.h"
10409 #include <zlib.h>
10410
10411 #ifdef F77_DUMMY_MAIN
10412 #  ifdef __cplusplus
10413      extern "C"
10414 #  endif
10415    int F77_DUMMY_MAIN() { return 1; }
10416 #endif
10417 int
10418 main ()
10419 {
10420 if ((z_streamp *) 0)
10421   return 0;
10422 if (sizeof (z_streamp))
10423   return 0;
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 rm -f conftest.$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430   (eval $ac_compile) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } &&
10434          { ac_try='test -s conftest.$ac_objext'
10435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436   (eval $ac_try) 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; }; then
10440   ac_cv_type_z_streamp=yes
10441 else
10442   echo "$as_me: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 ac_cv_type_z_streamp=no
10445 fi
10446 rm -f conftest.$ac_objext conftest.$ac_ext
10447 fi
10448 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10449 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10450 if test $ac_cv_type_z_streamp = yes; then
10451   :
10452 else
10453   { { echo "$as_me:$LINENO: error: zlib version is too old
10454 Use --without-zlib to disable zlib support." >&5
10455 echo "$as_me: error: zlib version is too old
10456 Use --without-zlib to disable zlib support." >&2;}
10457    { (exit 1); exit 1; }; }
10458 fi
10459
10460 fi
10461
10462 if test "$with_krb5" = yes; then
10463 # Check for differences between MIT and Heimdal (KTH) releases
10464   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10465 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10466 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10472 #include <krb5.h>
10473
10474 #ifdef F77_DUMMY_MAIN
10475 #  ifdef __cplusplus
10476      extern "C"
10477 #  endif
10478    int F77_DUMMY_MAIN() { return 1; }
10479 #endif
10480 int
10481 main ()
10482 {
10483 static krb5_ticket ac_aggr;
10484 if (ac_aggr.enc_part2)
10485 return 0;
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492   (eval $ac_compile) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); } &&
10496          { ac_try='test -s conftest.$ac_objext'
10497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498   (eval $ac_try) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; }; then
10502   ac_cv_member_krb5_ticket_enc_part2=yes
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 ac_cv_member_krb5_ticket_enc_part2=no
10507 fi
10508 rm -f conftest.$ac_objext conftest.$ac_ext
10509 fi
10510 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10511 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10512 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_KRB5_TICKET_ENC_PART2 1
10516 _ACEOF
10517
10518
10519 else
10520   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10521 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10522 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 #include "confdefs.h"
10528 #include <krb5.h>
10529
10530 #ifdef F77_DUMMY_MAIN
10531 #  ifdef __cplusplus
10532      extern "C"
10533 #  endif
10534    int F77_DUMMY_MAIN() { return 1; }
10535 #endif
10536 int
10537 main ()
10538 {
10539 static krb5_ticket ac_aggr;
10540 if (ac_aggr.client)
10541 return 0;
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } &&
10552          { ac_try='test -s conftest.$ac_objext'
10553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554   (eval $ac_try) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; }; then
10558   ac_cv_member_krb5_ticket_client=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_member_krb5_ticket_client=no
10563 fi
10564 rm -f conftest.$ac_objext conftest.$ac_ext
10565 fi
10566 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10567 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10568 if test $ac_cv_member_krb5_ticket_client = yes; then
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_KRB5_TICKET_CLIENT 1
10572 _ACEOF
10573
10574
10575 else
10576   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10577 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10578    { (exit 1); exit 1; }; }
10579 fi
10580
10581 fi
10582
10583   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10584 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10585 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10586   echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588   cat >conftest.$ac_ext <<_ACEOF
10589 #line $LINENO "configure"
10590 #include "confdefs.h"
10591 #include <krb5.h>
10592
10593 #ifdef F77_DUMMY_MAIN
10594 #  ifdef __cplusplus
10595      extern "C"
10596 #  endif
10597    int F77_DUMMY_MAIN() { return 1; }
10598 #endif
10599 int
10600 main ()
10601 {
10602 static krb5_error ac_aggr;
10603 if (ac_aggr.text.data)
10604 return 0;
10605   ;
10606   return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -s conftest.$ac_objext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_cv_member_krb5_error_text_data=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ac_cv_member_krb5_error_text_data=no
10626 fi
10627 rm -f conftest.$ac_objext conftest.$ac_ext
10628 fi
10629 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10630 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10631 if test $ac_cv_member_krb5_error_text_data = yes; then
10632
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10635 _ACEOF
10636
10637
10638 else
10639   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10640 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10641 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10647 #include <krb5.h>
10648
10649 #ifdef F77_DUMMY_MAIN
10650 #  ifdef __cplusplus
10651      extern "C"
10652 #  endif
10653    int F77_DUMMY_MAIN() { return 1; }
10654 #endif
10655 int
10656 main ()
10657 {
10658 static krb5_error ac_aggr;
10659 if (ac_aggr.e_data)
10660 return 0;
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667   (eval $ac_compile) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_member_krb5_error_e_data=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 ac_cv_member_krb5_error_e_data=no
10682 fi
10683 rm -f conftest.$ac_objext conftest.$ac_ext
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10686 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10687 if test $ac_cv_member_krb5_error_e_data = yes; then
10688
10689 cat >>confdefs.h <<_ACEOF
10690 #define HAVE_KRB5_ERROR_E_DATA 1
10691 _ACEOF
10692
10693
10694 else
10695   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10696 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10697    { (exit 1); exit 1; }; }
10698 fi
10699
10700 fi
10701
10702 fi
10703
10704
10705 ##
10706 ## Functions, global variables
10707 ##
10708
10709 echo "$as_me:$LINENO: checking for int timezone" >&5
10710 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10711 if test "${pgac_cv_var_int_timezone+set}" = set; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10717 #include <time.h>
10718 int res;
10719 #ifdef F77_DUMMY_MAIN
10720 #  ifdef __cplusplus
10721      extern "C"
10722 #  endif
10723    int F77_DUMMY_MAIN() { return 1; }
10724 #endif
10725 int
10726 main ()
10727 {
10728 res = timezone / 60;
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735   (eval $ac_link) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); } &&
10739          { ac_try='test -s conftest$ac_exeext'
10740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741   (eval $ac_try) 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; }; then
10745   pgac_cv_var_int_timezone=yes
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 pgac_cv_var_int_timezone=no
10750 fi
10751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10752 fi
10753 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10754 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10755 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_INT_TIMEZONE
10759 _ACEOF
10760
10761 fi
10762 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10763 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10764  if test "${ac_cv_func_accept_return+set}" = set; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767    if test "${ac_cv_func_accept_arg1+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770     if test "${ac_cv_func_accept_arg2+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773      if test "${ac_cv_func_accept_arg3+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10777       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10778        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10779         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10780          cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10783 #ifdef HAVE_SYS_TYPES_H
10784 #include <sys/types.h>
10785 #endif
10786 #ifdef HAVE_SYS_SOCKET_H
10787 #include <sys/socket.h>
10788 #endif
10789 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10790 #ifdef F77_DUMMY_MAIN
10791 #  ifdef __cplusplus
10792      extern "C"
10793 #  endif
10794    int F77_DUMMY_MAIN() { return 1; }
10795 #endif
10796 int
10797 main ()
10798 {
10799
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806   (eval $ac_compile) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -s conftest.$ac_objext'
10811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812   (eval $ac_try) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   ac_not_found=no; break 4
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 ac_not_found=yes
10821 fi
10822 rm -f conftest.$ac_objext conftest.$ac_ext
10823        done
10824       done
10825      done
10826     done
10827     if test "$ac_not_found" = yes; then
10828       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10829 echo "$as_me: error: could not determine argument types" >&2;}
10830    { (exit 1); exit 1; }; }
10831     fi
10832     if test "$ac_cv_func_accept_arg3" = "void"; then
10833       ac_cv_func_accept_arg3=int
10834     fi
10835
10836 fi
10837
10838 fi
10839
10840 fi
10841
10842 fi
10843  echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10844 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10845
10846 cat >>confdefs.h <<_ACEOF
10847 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10848 _ACEOF
10849
10850
10851 cat >>confdefs.h <<_ACEOF
10852 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10853 _ACEOF
10854
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10858 _ACEOF
10859
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10863 _ACEOF
10864
10865
10866 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10867 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10868 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 #include "confdefs.h"
10874 #include <sys/time.h>
10875 #ifdef F77_DUMMY_MAIN
10876 #  ifdef __cplusplus
10877      extern "C"
10878 #  endif
10879    int F77_DUMMY_MAIN() { return 1; }
10880 #endif
10881 int
10882 main ()
10883 {
10884 struct timeval *tp;
10885 struct timezone *tzp;
10886 gettimeofday(tp,tzp);
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893   (eval $ac_compile) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -s conftest.$ac_objext'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   pgac_cv_func_gettimeofday_1arg=no
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 pgac_cv_func_gettimeofday_1arg=yes
10908 fi
10909 rm -f conftest.$ac_objext conftest.$ac_ext
10910 fi
10911 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10912 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10913 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10914
10915 cat >>confdefs.h <<\_ACEOF
10916 #define GETTIMEOFDAY_1ARG
10917 _ACEOF
10918
10919 fi
10920
10921
10922
10923 # SunOS doesn't handle negative byte comparisons properly with +/- return
10924 echo "$as_me:$LINENO: checking for working memcmp" >&5
10925 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10926 if test "${ac_cv_func_memcmp_working+set}" = set; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   if test "$cross_compiling" = yes; then
10930   ac_cv_func_memcmp_working=no
10931 else
10932   cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10935
10936 #ifdef F77_DUMMY_MAIN
10937 #  ifdef __cplusplus
10938      extern "C"
10939 #  endif
10940    int F77_DUMMY_MAIN() { return 1; }
10941 #endif
10942 int
10943 main ()
10944 {
10945
10946   /* Some versions of memcmp are not 8-bit clean.  */
10947   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10948   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10949     exit (1);
10950
10951   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10952      or more and with at least one buffer not starting on a 4-byte boundary.
10953      William Lewis provided this test program.   */
10954   {
10955     char foo[21];
10956     char bar[21];
10957     int i;
10958     for (i = 0; i < 4; i++)
10959       {
10960         char *a = foo + i;
10961         char *b = bar + i;
10962         strcpy (a, "--------01111111");
10963         strcpy (b, "--------10000000");
10964         if (memcmp (a, b, 16) >= 0)
10965           exit (1);
10966       }
10967     exit (0);
10968   }
10969
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976   (eval $ac_link) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981   (eval $ac_try) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; }; then
10985   ac_cv_func_memcmp_working=yes
10986 else
10987   echo "$as_me: program exited with status $ac_status" >&5
10988 echo "$as_me: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10990 ( exit $ac_status )
10991 ac_cv_func_memcmp_working=no
10992 fi
10993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10994 fi
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10997 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10998 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11020 do
11021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11022 echo "$as_me:$LINENO: checking for $ac_func" >&5
11023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11024 if eval "test \"\${$as_ac_var+set}\" = set"; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11029 #include "confdefs.h"
11030 /* System header to define __stub macros and hopefully few prototypes,
11031     which can conflict with char $ac_func (); below.  */
11032 #include <assert.h>
11033 /* Override any gcc2 internal prototype to avoid an error.  */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 /* We use char because int might match the return type of a gcc2
11038    builtin and then its argument prototype would still apply.  */
11039 char $ac_func ();
11040 char (*f) ();
11041
11042 #ifdef F77_DUMMY_MAIN
11043 #  ifdef __cplusplus
11044      extern "C"
11045 #  endif
11046    int F77_DUMMY_MAIN() { return 1; }
11047 #endif
11048 int
11049 main ()
11050 {
11051 /* The GNU C library defines this for functions which it implements
11052     to always fail with ENOSYS.  Some functions are actually named
11053     something starting with __ and the normal name is an alias.  */
11054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11055 choke me
11056 #else
11057 f = $ac_func;
11058 #endif
11059
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066   (eval $ac_link) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -s conftest$ac_exeext'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; }; then
11076   eval "$as_ac_var=yes"
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 eval "$as_ac_var=no"
11081 fi
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11086 if test `eval echo '${'$as_ac_var'}'` = yes; then
11087   cat >>confdefs.h <<_ACEOF
11088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11089 _ACEOF
11090
11091 fi
11092 done
11093
11094
11095 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11096 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11097 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11103 #include <unistd.h>
11104
11105 #ifdef F77_DUMMY_MAIN
11106 #  ifdef __cplusplus
11107      extern "C"
11108 #  endif
11109    int F77_DUMMY_MAIN() { return 1; }
11110 #endif
11111 int
11112 main ()
11113 {
11114 #ifndef fdatasync
11115   char *p = (char *) fdatasync;
11116 #endif
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124   (eval $ac_compile) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } &&
11128          { ac_try='test -s conftest.$ac_objext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   ac_cv_have_decl_fdatasync=yes
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 ac_cv_have_decl_fdatasync=no
11139 fi
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11141 fi
11142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11143 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11144 if test $ac_cv_have_decl_fdatasync = yes; then
11145
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_DECL_FDATASYNC 1
11148 _ACEOF
11149
11150
11151 else
11152   cat >>confdefs.h <<_ACEOF
11153 #define HAVE_DECL_FDATASYNC 0
11154 _ACEOF
11155
11156
11157 fi
11158
11159
11160
11161 HAVE_IPV6=no
11162 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11163 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11164 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   cat >conftest.$ac_ext <<_ACEOF
11168 #line $LINENO "configure"
11169 #include "confdefs.h"
11170 $ac_includes_default
11171 #include <netinet/in.h>
11172
11173 #ifdef F77_DUMMY_MAIN
11174 #  ifdef __cplusplus
11175      extern "C"
11176 #  endif
11177    int F77_DUMMY_MAIN() { return 1; }
11178 #endif
11179 int
11180 main ()
11181 {
11182 if ((struct sockaddr_in6 *) 0)
11183   return 0;
11184 if (sizeof (struct sockaddr_in6))
11185   return 0;
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192   (eval $ac_compile) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   ac_cv_type_struct_sockaddr_in6=yes
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 ac_cv_type_struct_sockaddr_in6=no
11207 fi
11208 rm -f conftest.$ac_objext conftest.$ac_ext
11209 fi
11210 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11211 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11212 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11213   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11214 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11215 if test "${ac_cv_func_inet_ntop+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 #include "confdefs.h"
11221 /* System header to define __stub macros and hopefully few prototypes,
11222     which can conflict with char inet_ntop (); below.  */
11223 #include <assert.h>
11224 /* Override any gcc2 internal prototype to avoid an error.  */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 /* We use char because int might match the return type of a gcc2
11229    builtin and then its argument prototype would still apply.  */
11230 char inet_ntop ();
11231 char (*f) ();
11232
11233 #ifdef F77_DUMMY_MAIN
11234 #  ifdef __cplusplus
11235      extern "C"
11236 #  endif
11237    int F77_DUMMY_MAIN() { return 1; }
11238 #endif
11239 int
11240 main ()
11241 {
11242 /* The GNU C library defines this for functions which it implements
11243     to always fail with ENOSYS.  Some functions are actually named
11244     something starting with __ and the normal name is an alias.  */
11245 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11246 choke me
11247 #else
11248 f = inet_ntop;
11249 #endif
11250
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257   (eval $ac_link) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } &&
11261          { ac_try='test -s conftest$ac_exeext'
11262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263   (eval $ac_try) 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); }; }; then
11267   ac_cv_func_inet_ntop=yes
11268 else
11269   echo "$as_me: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11271 ac_cv_func_inet_ntop=no
11272 fi
11273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11276 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11277 if test $ac_cv_func_inet_ntop = yes; then
11278
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_IPV6 1
11281 _ACEOF
11282
11283                                                           HAVE_IPV6=yes
11284 fi
11285
11286 fi
11287
11288
11289
11290 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11291 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11292 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11297 #include "confdefs.h"
11298 #include <machine/vmparam.h>
11299 #include <sys/exec.h>
11300
11301 #ifdef F77_DUMMY_MAIN
11302 #  ifdef __cplusplus
11303      extern "C"
11304 #  endif
11305    int F77_DUMMY_MAIN() { return 1; }
11306 #endif
11307 int
11308 main ()
11309 {
11310 PS_STRINGS->ps_nargvstr = 1;
11311 PS_STRINGS->ps_argvstr = "foo";
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318   (eval $ac_link) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } &&
11322          { ac_try='test -s conftest$ac_exeext'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; }; then
11328   pgac_cv_var_PS_STRINGS=yes
11329 else
11330   echo "$as_me: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 pgac_cv_var_PS_STRINGS=no
11333 fi
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11337 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11338 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11339
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_PS_STRINGS
11342 _ACEOF
11343
11344 fi
11345
11346
11347 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11348 # is missing.  Yes, there are machines that have only one.  We may
11349 # also decide to use snprintf.c if snprintf() is present but does not
11350 # have working "long long int" support -- see below.
11351
11352 pgac_need_repl_snprintf=no
11353
11354 for ac_func in snprintf
11355 do
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360   echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362   cat >conftest.$ac_ext <<_ACEOF
11363 #line $LINENO "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366     which can conflict with char $ac_func (); below.  */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error.  */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 /* We use char because int might match the return type of a gcc2
11373    builtin and then its argument prototype would still apply.  */
11374 char $ac_func ();
11375 char (*f) ();
11376
11377 #ifdef F77_DUMMY_MAIN
11378 #  ifdef __cplusplus
11379      extern "C"
11380 #  endif
11381    int F77_DUMMY_MAIN() { return 1; }
11382 #endif
11383 int
11384 main ()
11385 {
11386 /* The GNU C library defines this for functions which it implements
11387     to always fail with ENOSYS.  Some functions are actually named
11388     something starting with __ and the normal name is an alias.  */
11389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11390 choke me
11391 #else
11392 f = $ac_func;
11393 #endif
11394
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401   (eval $ac_link) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -s conftest$ac_exeext'
11406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407   (eval $ac_try) 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; }; then
11411   eval "$as_ac_var=yes"
11412 else
11413   echo "$as_me: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 eval "$as_ac_var=no"
11416 fi
11417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11418 fi
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11421 if test `eval echo '${'$as_ac_var'}'` = yes; then
11422   cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11424 _ACEOF
11425
11426 else
11427   pgac_need_repl_snprintf=yes
11428 fi
11429 done
11430
11431
11432 for ac_func in vsnprintf
11433 do
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444     which can conflict with char $ac_func (); below.  */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error.  */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 /* We use char because int might match the return type of a gcc2
11451    builtin and then its argument prototype would still apply.  */
11452 char $ac_func ();
11453 char (*f) ();
11454
11455 #ifdef F77_DUMMY_MAIN
11456 #  ifdef __cplusplus
11457      extern "C"
11458 #  endif
11459    int F77_DUMMY_MAIN() { return 1; }
11460 #endif
11461 int
11462 main ()
11463 {
11464 /* The GNU C library defines this for functions which it implements
11465     to always fail with ENOSYS.  Some functions are actually named
11466     something starting with __ and the normal name is an alias.  */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11468 choke me
11469 #else
11470 f = $ac_func;
11471 #endif
11472
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479   (eval $ac_link) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); } &&
11483          { ac_try='test -s conftest$ac_exeext'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   eval "$as_ac_var=yes"
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 eval "$as_ac_var=no"
11494 fi
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11496 fi
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500   cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11502 _ACEOF
11503
11504 else
11505   pgac_need_repl_snprintf=yes
11506 fi
11507 done
11508
11509
11510
11511 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11512 # include/c.h will provide declarations.  Note this is a separate test
11513 # from whether the functions exist in the C library --- there are
11514 # systems that have the functions but don't bother to declare them :-(
11515
11516 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11517 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11518 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11524 $ac_includes_default
11525 #ifdef F77_DUMMY_MAIN
11526 #  ifdef __cplusplus
11527      extern "C"
11528 #  endif
11529    int F77_DUMMY_MAIN() { return 1; }
11530 #endif
11531 int
11532 main ()
11533 {
11534 #ifndef snprintf
11535   char *p = (char *) snprintf;
11536 #endif
11537
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544   (eval $ac_compile) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -s conftest.$ac_objext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_cv_have_decl_snprintf=yes
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 ac_cv_have_decl_snprintf=no
11559 fi
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11563 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11564 if test $ac_cv_have_decl_snprintf = yes; then
11565
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_DECL_SNPRINTF 1
11568 _ACEOF
11569
11570
11571 else
11572   cat >>confdefs.h <<_ACEOF
11573 #define HAVE_DECL_SNPRINTF 0
11574 _ACEOF
11575
11576
11577 fi
11578 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11579 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11580 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586 $ac_includes_default
11587 #ifdef F77_DUMMY_MAIN
11588 #  ifdef __cplusplus
11589      extern "C"
11590 #  endif
11591    int F77_DUMMY_MAIN() { return 1; }
11592 #endif
11593 int
11594 main ()
11595 {
11596 #ifndef vsnprintf
11597   char *p = (char *) vsnprintf;
11598 #endif
11599
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606   (eval $ac_compile) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } &&
11610          { ac_try='test -s conftest.$ac_objext'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_cv_have_decl_vsnprintf=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 ac_cv_have_decl_vsnprintf=no
11621 fi
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11623 fi
11624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11625 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11626 if test $ac_cv_have_decl_vsnprintf = yes; then
11627
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_DECL_VSNPRINTF 1
11630 _ACEOF
11631
11632
11633 else
11634   cat >>confdefs.h <<_ACEOF
11635 #define HAVE_DECL_VSNPRINTF 0
11636 _ACEOF
11637
11638
11639 fi
11640
11641
11642
11643
11644 # do this one the hard way in case isinf() is a macro
11645 echo "$as_me:$LINENO: checking for isinf" >&5
11646 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11647 if test "${ac_cv_func_isinf+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11652 #include "confdefs.h"
11653 #include <math.h>
11654
11655 #ifdef F77_DUMMY_MAIN
11656 #  ifdef __cplusplus
11657      extern "C"
11658 #  endif
11659    int F77_DUMMY_MAIN() { return 1; }
11660 #endif
11661 int
11662 main ()
11663 {
11664 double x = 0.0; int res = isinf(x);
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671   (eval $ac_link) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_func_isinf=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 ac_cv_func_isinf=no
11686 fi
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11690 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11691
11692 if test $ac_cv_func_isinf = yes ; then
11693
11694 cat >>confdefs.h <<\_ACEOF
11695 #define HAVE_ISINF 1
11696 _ACEOF
11697
11698 else
11699   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11700   # Look for a way to implement a substitute for isinf()
11701
11702
11703
11704
11705 for ac_func in fpclass fp_class fp_class_d class
11706 do
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_var+set}\" = set"; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717     which can conflict with char $ac_func (); below.  */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error.  */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 /* We use char because int might match the return type of a gcc2
11724    builtin and then its argument prototype would still apply.  */
11725 char $ac_func ();
11726 char (*f) ();
11727
11728 #ifdef F77_DUMMY_MAIN
11729 #  ifdef __cplusplus
11730      extern "C"
11731 #  endif
11732    int F77_DUMMY_MAIN() { return 1; }
11733 #endif
11734 int
11735 main ()
11736 {
11737 /* The GNU C library defines this for functions which it implements
11738     to always fail with ENOSYS.  Some functions are actually named
11739     something starting with __ and the normal name is an alias.  */
11740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11741 choke me
11742 #else
11743 f = $ac_func;
11744 #endif
11745
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752   (eval $ac_link) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -s conftest$ac_exeext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   eval "$as_ac_var=yes"
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11767 fi
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773   cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 _ACEOF
11776  break
11777 fi
11778 done
11779
11780 fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
11796 do
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11800 if eval "test \"\${$as_ac_var+set}\" = set"; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 #include "confdefs.h"
11806 /* System header to define __stub macros and hopefully few prototypes,
11807     which can conflict with char $ac_func (); below.  */
11808 #include <assert.h>
11809 /* Override any gcc2 internal prototype to avoid an error.  */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 /* We use char because int might match the return type of a gcc2
11814    builtin and then its argument prototype would still apply.  */
11815 char $ac_func ();
11816 char (*f) ();
11817
11818 #ifdef F77_DUMMY_MAIN
11819 #  ifdef __cplusplus
11820      extern "C"
11821 #  endif
11822    int F77_DUMMY_MAIN() { return 1; }
11823 #endif
11824 int
11825 main ()
11826 {
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11831 choke me
11832 #else
11833 f = $ac_func;
11834 #endif
11835
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842   (eval $ac_link) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest$ac_exeext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   eval "$as_ac_var=yes"
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11856 eval "$as_ac_var=no"
11857 fi
11858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11859 fi
11860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863   cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 _ACEOF
11866
11867 else
11868   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11869 fi
11870 done
11871
11872
11873
11874 # system's version of getaddrinfo(), if any, may be used only if we found
11875 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11876 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11877
11878 for ac_func in getaddrinfo
11879 do
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_var+set}\" = set"; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   cat >conftest.$ac_ext <<_ACEOF
11887 #line $LINENO "configure"
11888 #include "confdefs.h"
11889 /* System header to define __stub macros and hopefully few prototypes,
11890     which can conflict with char $ac_func (); below.  */
11891 #include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 /* We use char because int might match the return type of a gcc2
11897    builtin and then its argument prototype would still apply.  */
11898 char $ac_func ();
11899 char (*f) ();
11900
11901 #ifdef F77_DUMMY_MAIN
11902 #  ifdef __cplusplus
11903      extern "C"
11904 #  endif
11905    int F77_DUMMY_MAIN() { return 1; }
11906 #endif
11907 int
11908 main ()
11909 {
11910 /* The GNU C library defines this for functions which it implements
11911     to always fail with ENOSYS.  Some functions are actually named
11912     something starting with __ and the normal name is an alias.  */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11914 choke me
11915 #else
11916 f = $ac_func;
11917 #endif
11918
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925   (eval $ac_link) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -s conftest$ac_exeext'
11930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935   eval "$as_ac_var=yes"
11936 else
11937   echo "$as_me: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11940 fi
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942 fi
11943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946   cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11948 _ACEOF
11949
11950 else
11951   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11952 fi
11953 done
11954
11955
11956 else
11957   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11958 fi
11959
11960 # similarly, use system's getopt_long() only if system provides struct option.
11961 if test x"$ac_cv_type_struct_option" = xyes ; then
11962
11963 for ac_func in getopt_long
11964 do
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char $ac_func (); below.  */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char $ac_func ();
11984 char (*f) ();
11985
11986 #ifdef F77_DUMMY_MAIN
11987 #  ifdef __cplusplus
11988      extern "C"
11989 #  endif
11990    int F77_DUMMY_MAIN() { return 1; }
11991 #endif
11992 int
11993 main ()
11994 {
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11999 choke me
12000 #else
12001 f = $ac_func;
12002 #endif
12003
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010   (eval $ac_link) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12025 fi
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031   cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 else
12036   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12037 fi
12038 done
12039
12040
12041 else
12042   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12043 fi
12044
12045 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12046 # We override the previous test that said fseeko/ftello didn't exist
12047 # OS tests are also done in include/c.h and port/fseeko.c
12048 case $host_os in bsdi*|netbsd*)
12049 ac_cv_func_fseeko=yes
12050 esac
12051
12052 # Solaris has a very slow qsort in certain cases, so we replace it.
12053 case $host_os in solaris*)
12054 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12055 esac
12056
12057 # Win32 support
12058 case $host_os in mingw*)
12059 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12060 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12061 LIBOBJS="$LIBOBJS kill.$ac_objext"
12062 LIBOBJS="$LIBOBJS open.$ac_objext"
12063 LIBOBJS="$LIBOBJS rand.$ac_objext"
12064
12065 cat >>confdefs.h <<\_ACEOF
12066 #define HAVE_SYMLINK 1
12067 _ACEOF
12068
12069 ;;
12070 esac
12071
12072 if test "$with_readline" = yes; then
12073   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12074 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 #include <stdio.h>
12079 #ifdef HAVE_READLINE_READLINE_H
12080 # include <readline/readline.h>
12081 #elif defined(HAVE_READLINE_H)
12082 # include <readline.h>
12083 #endif
12084
12085 #ifdef F77_DUMMY_MAIN
12086 #  ifdef __cplusplus
12087      extern "C"
12088 #  endif
12089    int F77_DUMMY_MAIN() { return 1; }
12090 #endif
12091 int
12092 main ()
12093 {
12094 rl_completion_append_character = 'x';
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101   (eval $ac_link) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -s conftest$ac_exeext'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12116 _ACEOF
12117
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125
12126
12127 for ac_func in rl_completion_matches rl_filename_completion_function
12128 do
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135   cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139     which can conflict with char $ac_func (); below.  */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error.  */
12142 #ifdef __cplusplus
12143 extern "C"
12144 #endif
12145 /* We use char because int might match the return type of a gcc2
12146    builtin and then its argument prototype would still apply.  */
12147 char $ac_func ();
12148 char (*f) ();
12149
12150 #ifdef F77_DUMMY_MAIN
12151 #  ifdef __cplusplus
12152      extern "C"
12153 #  endif
12154    int F77_DUMMY_MAIN() { return 1; }
12155 #endif
12156 int
12157 main ()
12158 {
12159 /* The GNU C library defines this for functions which it implements
12160     to always fail with ENOSYS.  Some functions are actually named
12161     something starting with __ and the normal name is an alias.  */
12162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12163 choke me
12164 #else
12165 f = $ac_func;
12166 #endif
12167
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174   (eval $ac_link) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -s conftest$ac_exeext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   eval "$as_ac_var=yes"
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12189 fi
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12191 fi
12192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12194 if test `eval echo '${'$as_ac_var'}'` = yes; then
12195   cat >>confdefs.h <<_ACEOF
12196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 _ACEOF
12198
12199 fi
12200 done
12201
12202
12203 for ac_func in replace_history_entry
12204 do
12205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_var+set}\" = set"; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215     which can conflict with char $ac_func (); below.  */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error.  */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 /* We use char because int might match the return type of a gcc2
12222    builtin and then its argument prototype would still apply.  */
12223 char $ac_func ();
12224 char (*f) ();
12225
12226 #ifdef F77_DUMMY_MAIN
12227 #  ifdef __cplusplus
12228      extern "C"
12229 #  endif
12230    int F77_DUMMY_MAIN() { return 1; }
12231 #endif
12232 int
12233 main ()
12234 {
12235 /* The GNU C library defines this for functions which it implements
12236     to always fail with ENOSYS.  Some functions are actually named
12237     something starting with __ and the normal name is an alias.  */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12239 choke me
12240 #else
12241 f = $ac_func;
12242 #endif
12243
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250   (eval $ac_link) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); } &&
12254          { ac_try='test -s conftest$ac_exeext'
12255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256   (eval $ac_try) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; }; then
12260   eval "$as_ac_var=yes"
12261 else
12262   echo "$as_me: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 eval "$as_ac_var=no"
12265 fi
12266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12267 fi
12268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12270 if test `eval echo '${'$as_ac_var'}'` = yes; then
12271   cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12273 _ACEOF
12274
12275 fi
12276 done
12277
12278 fi
12279
12280
12281 echo "$as_me:$LINENO: checking for finite" >&5
12282 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12285 #include "confdefs.h"
12286 #include <math.h>
12287 #ifdef F77_DUMMY_MAIN
12288 #  ifdef __cplusplus
12289      extern "C"
12290 #  endif
12291    int F77_DUMMY_MAIN() { return 1; }
12292 #endif
12293 int
12294 main ()
12295 {
12296 int dummy=finite(1.0);
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303   (eval $ac_link) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -s conftest$ac_exeext'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; }; then
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_FINITE 1
12316 _ACEOF
12317
12318 echo "$as_me:$LINENO: result: yes" >&5
12319 echo "${ECHO_T}yes" >&6
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 echo "$as_me:$LINENO: result: no" >&5
12324 echo "${ECHO_T}no" >&6
12325 fi
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12327
12328 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12329 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 #include <setjmp.h>
12334 #ifdef F77_DUMMY_MAIN
12335 #  ifdef __cplusplus
12336      extern "C"
12337 #  endif
12338    int F77_DUMMY_MAIN() { return 1; }
12339 #endif
12340 int
12341 main ()
12342 {
12343 sigjmp_buf x; sigsetjmp(x, 1);
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350   (eval $ac_link) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } &&
12354          { ac_try='test -s conftest$ac_exeext'
12355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356   (eval $ac_try) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }; }; then
12360
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_SIGSETJMP 1
12363 _ACEOF
12364
12365 echo "$as_me:$LINENO: result: yes" >&5
12366 echo "${ECHO_T}yes" >&6
12367 else
12368   echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12372 fi
12373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12374
12375 echo "$as_me:$LINENO: checking for syslog" >&5
12376 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12377 if test "${ac_cv_func_syslog+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char syslog (); below.  */
12385 #include <assert.h>
12386 /* Override any gcc2 internal prototype to avoid an error.  */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 /* We use char because int might match the return type of a gcc2
12391    builtin and then its argument prototype would still apply.  */
12392 char syslog ();
12393 char (*f) ();
12394
12395 #ifdef F77_DUMMY_MAIN
12396 #  ifdef __cplusplus
12397      extern "C"
12398 #  endif
12399    int F77_DUMMY_MAIN() { return 1; }
12400 #endif
12401 int
12402 main ()
12403 {
12404 /* The GNU C library defines this for functions which it implements
12405     to always fail with ENOSYS.  Some functions are actually named
12406     something starting with __ and the normal name is an alias.  */
12407 #if defined (__stub_syslog) || defined (__stub___syslog)
12408 choke me
12409 #else
12410 f = syslog;
12411 #endif
12412
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419   (eval $ac_link) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -s conftest$ac_exeext'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429   ac_cv_func_syslog=yes
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 ac_cv_func_syslog=no
12434 fi
12435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12436 fi
12437 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12438 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12439 if test $ac_cv_func_syslog = yes; then
12440   if test "${ac_cv_header_syslog_h+set}" = set; then
12441   echo "$as_me:$LINENO: checking for syslog.h" >&5
12442 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12443 if test "${ac_cv_header_syslog_h+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12447 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12448 else
12449   # Is the header compilable?
12450 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12451 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 #include "confdefs.h"
12455 $ac_includes_default
12456 #include <syslog.h>
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460   (eval $ac_compile) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -s conftest.$ac_objext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470   ac_header_compiler=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12474 ac_header_compiler=no
12475 fi
12476 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12478 echo "${ECHO_T}$ac_header_compiler" >&6
12479
12480 # Is the header present?
12481 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12482 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line $LINENO "configure"
12485 #include "confdefs.h"
12486 #include <syslog.h>
12487 _ACEOF
12488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12490   ac_status=$?
12491   egrep -v '^ *\+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } >/dev/null; then
12496   if test -s conftest.err; then
12497     ac_cpp_err=$ac_c_preproc_warn_flag
12498   else
12499     ac_cpp_err=
12500   fi
12501 else
12502   ac_cpp_err=yes
12503 fi
12504 if test -z "$ac_cpp_err"; then
12505   ac_header_preproc=yes
12506 else
12507   echo "$as_me: failed program was:" >&5
12508   cat conftest.$ac_ext >&5
12509   ac_header_preproc=no
12510 fi
12511 rm -f conftest.err conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 echo "${ECHO_T}$ac_header_preproc" >&6
12514
12515 # So?  What about this header?
12516 case $ac_header_compiler:$ac_header_preproc in
12517   yes:no )
12518     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12519 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12521 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12522   no:yes )
12523     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12524 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12525     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12526 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12527     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12529 esac
12530 echo "$as_me:$LINENO: checking for syslog.h" >&5
12531 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12532 if test "${ac_cv_header_syslog_h+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   ac_cv_header_syslog_h=$ac_header_preproc
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12538 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12539
12540 fi
12541 if test $ac_cv_header_syslog_h = yes; then
12542
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_SYSLOG 1
12545 _ACEOF
12546
12547 fi
12548
12549
12550 fi
12551
12552
12553 echo "$as_me:$LINENO: checking for optreset" >&5
12554 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12555 if test "${pgac_cv_var_int_optreset+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561 #include <unistd.h>
12562 #ifdef F77_DUMMY_MAIN
12563 #  ifdef __cplusplus
12564      extern "C"
12565 #  endif
12566    int F77_DUMMY_MAIN() { return 1; }
12567 #endif
12568 int
12569 main ()
12570 {
12571 extern int optreset; optreset = 1;
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   pgac_cv_var_int_optreset=yes
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 pgac_cv_var_int_optreset=no
12593 fi
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12595 fi
12596 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12597 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12598 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12599
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_INT_OPTRESET 1
12602 _ACEOF
12603
12604 fi
12605
12606
12607
12608 for ac_func in strtoll strtoq
12609 do
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12613 if eval "test \"\${$as_ac_var+set}\" = set"; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620     which can conflict with char $ac_func (); below.  */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error.  */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 /* We use char because int might match the return type of a gcc2
12627    builtin and then its argument prototype would still apply.  */
12628 char $ac_func ();
12629 char (*f) ();
12630
12631 #ifdef F77_DUMMY_MAIN
12632 #  ifdef __cplusplus
12633      extern "C"
12634 #  endif
12635    int F77_DUMMY_MAIN() { return 1; }
12636 #endif
12637 int
12638 main ()
12639 {
12640 /* The GNU C library defines this for functions which it implements
12641     to always fail with ENOSYS.  Some functions are actually named
12642     something starting with __ and the normal name is an alias.  */
12643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12644 choke me
12645 #else
12646 f = $ac_func;
12647 #endif
12648
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655   (eval $ac_link) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -s conftest$ac_exeext'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; }; then
12665   eval "$as_ac_var=yes"
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 eval "$as_ac_var=no"
12670 fi
12671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12672 fi
12673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12675 if test `eval echo '${'$as_ac_var'}'` = yes; then
12676   cat >>confdefs.h <<_ACEOF
12677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12678 _ACEOF
12679  break
12680 fi
12681 done
12682
12683
12684
12685 for ac_func in strtoull strtouq
12686 do
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_var+set}\" = set"; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697     which can conflict with char $ac_func (); below.  */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 /* We use char because int might match the return type of a gcc2
12704    builtin and then its argument prototype would still apply.  */
12705 char $ac_func ();
12706 char (*f) ();
12707
12708 #ifdef F77_DUMMY_MAIN
12709 #  ifdef __cplusplus
12710      extern "C"
12711 #  endif
12712    int F77_DUMMY_MAIN() { return 1; }
12713 #endif
12714 int
12715 main ()
12716 {
12717 /* The GNU C library defines this for functions which it implements
12718     to always fail with ENOSYS.  Some functions are actually named
12719     something starting with __ and the normal name is an alias.  */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12721 choke me
12722 #else
12723 f = $ac_func;
12724 #endif
12725
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732   (eval $ac_link) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -s conftest$ac_exeext'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   eval "$as_ac_var=yes"
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12747 fi
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12749 fi
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753   cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12755 _ACEOF
12756  break
12757 fi
12758 done
12759
12760
12761 # Check for one of atexit() or on_exit()
12762
12763 for ac_func in atexit
12764 do
12765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12766 echo "$as_me:$LINENO: checking for $ac_func" >&5
12767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12768 if eval "test \"\${$as_ac_var+set}\" = set"; then
12769   echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771   cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12774 /* System header to define __stub macros and hopefully few prototypes,
12775     which can conflict with char $ac_func (); below.  */
12776 #include <assert.h>
12777 /* Override any gcc2 internal prototype to avoid an error.  */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 /* We use char because int might match the return type of a gcc2
12782    builtin and then its argument prototype would still apply.  */
12783 char $ac_func ();
12784 char (*f) ();
12785
12786 #ifdef F77_DUMMY_MAIN
12787 #  ifdef __cplusplus
12788      extern "C"
12789 #  endif
12790    int F77_DUMMY_MAIN() { return 1; }
12791 #endif
12792 int
12793 main ()
12794 {
12795 /* The GNU C library defines this for functions which it implements
12796     to always fail with ENOSYS.  Some functions are actually named
12797     something starting with __ and the normal name is an alias.  */
12798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12799 choke me
12800 #else
12801 f = $ac_func;
12802 #endif
12803
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   eval "$as_ac_var=yes"
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 eval "$as_ac_var=no"
12825 fi
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12827 fi
12828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12830 if test `eval echo '${'$as_ac_var'}'` = yes; then
12831   cat >>confdefs.h <<_ACEOF
12832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12833 _ACEOF
12834
12835 else
12836
12837 for ac_func in on_exit
12838 do
12839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12842 if eval "test \"\${$as_ac_var+set}\" = set"; then
12843   echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845   cat >conftest.$ac_ext <<_ACEOF
12846 #line $LINENO "configure"
12847 #include "confdefs.h"
12848 /* System header to define __stub macros and hopefully few prototypes,
12849     which can conflict with char $ac_func (); below.  */
12850 #include <assert.h>
12851 /* Override any gcc2 internal prototype to avoid an error.  */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 /* We use char because int might match the return type of a gcc2
12856    builtin and then its argument prototype would still apply.  */
12857 char $ac_func ();
12858 char (*f) ();
12859
12860 #ifdef F77_DUMMY_MAIN
12861 #  ifdef __cplusplus
12862      extern "C"
12863 #  endif
12864    int F77_DUMMY_MAIN() { return 1; }
12865 #endif
12866 int
12867 main ()
12868 {
12869 /* The GNU C library defines this for functions which it implements
12870     to always fail with ENOSYS.  Some functions are actually named
12871     something starting with __ and the normal name is an alias.  */
12872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12873 choke me
12874 #else
12875 f = $ac_func;
12876 #endif
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884   (eval $ac_link) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   eval "$as_ac_var=yes"
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 eval "$as_ac_var=no"
12899 fi
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12901 fi
12902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12904 if test `eval echo '${'$as_ac_var'}'` = yes; then
12905   cat >>confdefs.h <<_ACEOF
12906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12907 _ACEOF
12908
12909 else
12910   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12911 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12912    { (exit 1); exit 1; }; }
12913 fi
12914 done
12915
12916 fi
12917 done
12918
12919
12920 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12921 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12922 if test "${ac_cv_sys_largefile_source+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   while :; do
12926   ac_cv_sys_largefile_source=no
12927   cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12930 #include <stdio.h>
12931 #ifdef F77_DUMMY_MAIN
12932 #  ifdef __cplusplus
12933      extern "C"
12934 #  endif
12935    int F77_DUMMY_MAIN() { return 1; }
12936 #endif
12937 int
12938 main ()
12939 {
12940 return !fseeko;
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947   (eval $ac_compile) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } &&
12951          { ac_try='test -s conftest.$ac_objext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   break
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 fi
12962 rm -f conftest.$ac_objext conftest.$ac_ext
12963   cat >conftest.$ac_ext <<_ACEOF
12964 #line $LINENO "configure"
12965 #include "confdefs.h"
12966 #define _LARGEFILE_SOURCE 1
12967 #include <stdio.h>
12968 #ifdef F77_DUMMY_MAIN
12969 #  ifdef __cplusplus
12970      extern "C"
12971 #  endif
12972    int F77_DUMMY_MAIN() { return 1; }
12973 #endif
12974 int
12975 main ()
12976 {
12977 return !fseeko;
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984   (eval $ac_compile) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); } &&
12988          { ac_try='test -s conftest.$ac_objext'
12989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990   (eval $ac_try) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994   ac_cv_sys_largefile_source=1; break
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12998 fi
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13000   break
13001 done
13002 fi
13003 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13004 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13005 if test "$ac_cv_sys_largefile_source" != no; then
13006
13007 cat >>confdefs.h <<_ACEOF
13008 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13009 _ACEOF
13010
13011 fi
13012 rm -f conftest*
13013
13014 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13015 # in glibc 2.1.3, but that breaks too many other things.
13016 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13017 echo "$as_me:$LINENO: checking for fseeko" >&5
13018 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13019 if test "${ac_cv_func_fseeko+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 #include <stdio.h>
13026 #ifdef F77_DUMMY_MAIN
13027 #  ifdef __cplusplus
13028      extern "C"
13029 #  endif
13030    int F77_DUMMY_MAIN() { return 1; }
13031 #endif
13032 int
13033 main ()
13034 {
13035 return fseeko && fseeko (stdin, 0, 0);
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042   (eval $ac_link) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -s conftest$ac_exeext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   ac_cv_func_fseeko=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 ac_cv_func_fseeko=no
13057 fi
13058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13061 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13062 if test $ac_cv_func_fseeko = yes; then
13063
13064 cat >>confdefs.h <<\_ACEOF
13065 #define HAVE_FSEEKO 1
13066 _ACEOF
13067
13068 fi
13069
13070
13071 #
13072 # Pthreads
13073 #
13074 # For each platform, we need to know about any special compile and link
13075 # libraries, and whether the normal C function names are thread-safe.
13076 # See the comment at the top of src/port/thread.c for more information.
13077 #
13078 if test "$enable_thread_safety" = yes; then
13079
13080
13081
13082
13083 ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089 acx_pthread_ok=no
13090
13091 # We used to check for pthread.h first, but this fails if pthread.h
13092 # requires special compiler flags (e.g. on True64 or Sequent).
13093 # It gets checked for in the link test anyway.
13094
13095 # First of all, check if the user has set any of the PTHREAD_LIBS,
13096 # etcetera environment variables, and if threads linking works using
13097 # them:
13098 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13099         save_CFLAGS="$CFLAGS"
13100         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13101         save_LIBS="$LIBS"
13102         LIBS="$PTHREAD_LIBS $LIBS"
13103         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13104 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13105         cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 #include "confdefs.h"
13108
13109 /* Override any gcc2 internal prototype to avoid an error.  */
13110 #ifdef __cplusplus
13111 extern "C"
13112 #endif
13113 /* We use char because int might match the return type of a gcc2
13114    builtin and then its argument prototype would still apply.  */
13115 char pthread_join ();
13116 #ifdef F77_DUMMY_MAIN
13117 #  ifdef __cplusplus
13118      extern "C"
13119 #  endif
13120    int F77_DUMMY_MAIN() { return 1; }
13121 #endif
13122 int
13123 main ()
13124 {
13125 pthread_join ();
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132   (eval $ac_link) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -s conftest$ac_exeext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   acx_pthread_ok=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13146 fi
13147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13148         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13149 echo "${ECHO_T}$acx_pthread_ok" >&6
13150         if test x"$acx_pthread_ok" = xno; then
13151                 PTHREAD_LIBS=""
13152                 PTHREAD_CFLAGS=""
13153         fi
13154         LIBS="$save_LIBS"
13155         CFLAGS="$save_CFLAGS"
13156 fi
13157
13158 # We must check for the threads library under a number of different
13159 # names; the ordering is very important because some systems
13160 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13161 # libraries is broken (non-POSIX).
13162
13163 # Create a list of thread flags to try.  Items starting with a "-" are
13164 # C compiler flags, and other items are library names, except for "none"
13165 # which indicates that we try without any flags at all, and "pthread-config"
13166 # which is a program returning the flags for the Pth emulation library.
13167
13168 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13169
13170 # The ordering *is* (sometimes) important.  Some notes on the
13171 # individual items follow:
13172
13173 # pthreads: AIX (must check this before -lpthread)
13174 # none: in case threads are in libc; should be tried before -Kthread and
13175 #       other compiler flags to prevent continual compiler warnings
13176 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13177 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13178 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13179 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13180 # -pthreads: Solaris/gcc
13181 # -mthreads: Mingw32/gcc, Lynx/gcc
13182 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13183 #      doesn't hurt to check since this sometimes defines pthreads too;
13184 #      also defines -D_REENTRANT)
13185 # pthread: Linux, etcetera
13186 # --thread-safe: KAI C++
13187 # pthread-config: use pthread-config program (for GNU Pth library)
13188
13189 case "${host_cpu}-${host_os}" in
13190         *solaris*)
13191
13192         # On Solaris (at least, for some versions), libc contains stubbed
13193         # (non-functional) versions of the pthreads routines, so link-based
13194         # tests will erroneously succeed.  (We need to link with -pthread or
13195         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13196         # a function called by this macro, so we could check for that, but
13197         # who knows whether they'll stub that too in a future libc.)  So,
13198         # we'll just look for -pthreads and -lpthread first:
13199
13200         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13201         ;;
13202 esac
13203
13204 if test x"$acx_pthread_ok" = xno; then
13205 for flag in $acx_pthread_flags; do
13206
13207         case $flag in
13208                 none)
13209                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13210 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13211                 ;;
13212
13213                 -*)
13214                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13215 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13216                 PTHREAD_CFLAGS="$flag"
13217                 ;;
13218
13219                 pthread-config)
13220                 # Extract the first word of "pthread-config", so it can be a program name with args.
13221 set dummy pthread-config; ac_word=$2
13222 echo "$as_me:$LINENO: checking for $ac_word" >&5
13223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13224 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   if test -n "$acx_pthread_config"; then
13228   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233   IFS=$as_save_IFS
13234   test -z "$as_dir" && as_dir=.
13235   for ac_exec_ext in '' $ac_executable_extensions; do
13236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237     ac_cv_prog_acx_pthread_config="yes"
13238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13239     break 2
13240   fi
13241 done
13242 done
13243
13244   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13245 fi
13246 fi
13247 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13248 if test -n "$acx_pthread_config"; then
13249   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13250 echo "${ECHO_T}$acx_pthread_config" >&6
13251 else
13252   echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6
13254 fi
13255
13256                 if test x"$acx_pthread_config" = xno; then continue; fi
13257                 PTHREAD_CFLAGS="`pthread-config --cflags`"
13258                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13259                 ;;
13260
13261                 *)
13262                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13263 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13264                 PTHREAD_LIBS="-l$flag"
13265                 ;;
13266         esac
13267
13268         save_LIBS="$LIBS"
13269         save_CFLAGS="$CFLAGS"
13270         LIBS="$PTHREAD_LIBS $LIBS"
13271         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13272
13273         # Check for various functions.  We must include pthread.h,
13274         # since some functions may be macros.  (On the Sequent, we
13275         # need a special flag -Kthread to make this header compile.)
13276         # We check for pthread_join because it is in -lpthread on IRIX
13277         # while pthread_create is in libc.  We check for pthread_attr_init
13278         # due to DEC craziness with -lpthreads.  We check for
13279         # pthread_cleanup_push because it is one of the few pthread
13280         # functions on Solaris that doesn't have a non-functional libc stub.
13281         # We try pthread_create on general principles.
13282         cat >conftest.$ac_ext <<_ACEOF
13283 #line $LINENO "configure"
13284 #include "confdefs.h"
13285 #include <pthread.h>
13286 #ifdef F77_DUMMY_MAIN
13287 #  ifdef __cplusplus
13288      extern "C"
13289 #  endif
13290    int F77_DUMMY_MAIN() { return 1; }
13291 #endif
13292 int
13293 main ()
13294 {
13295 pthread_t th; pthread_join(th, 0);
13296                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
13297                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13304   (eval $ac_link) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -s conftest$ac_exeext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   acx_pthread_ok=yes
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13318 fi
13319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13320
13321         LIBS="$save_LIBS"
13322         CFLAGS="$save_CFLAGS"
13323
13324         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13325 echo "${ECHO_T}$acx_pthread_ok" >&6
13326         if test "x$acx_pthread_ok" = xyes; then
13327                 break;
13328         fi
13329
13330         PTHREAD_LIBS=""
13331         PTHREAD_CFLAGS=""
13332 done
13333 fi
13334
13335 # Various other checks:
13336 if test "x$acx_pthread_ok" = xyes; then
13337         save_LIBS="$LIBS"
13338         LIBS="$PTHREAD_LIBS $LIBS"
13339         save_CFLAGS="$CFLAGS"
13340         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13341
13342         # Detect AIX lossage: threads are created detached by default
13343         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13344         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13345 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13346         cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 #include <pthread.h>
13350 #ifdef F77_DUMMY_MAIN
13351 #  ifdef __cplusplus
13352      extern "C"
13353 #  endif
13354    int F77_DUMMY_MAIN() { return 1; }
13355 #endif
13356 int
13357 main ()
13358 {
13359 int attr=PTHREAD_CREATE_JOINABLE;
13360   ;
13361   return 0;
13362 }
13363 _ACEOF
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366   (eval $ac_link) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } &&
13370          { ac_try='test -s conftest$ac_exeext'
13371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372   (eval $ac_try) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; }; then
13376   ok=PTHREAD_CREATE_JOINABLE
13377 else
13378   echo "$as_me: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 ok=unknown
13381 fi
13382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13383         if test x"$ok" = xunknown; then
13384                 cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13386 #include "confdefs.h"
13387 #include <pthread.h>
13388 #ifdef F77_DUMMY_MAIN
13389 #  ifdef __cplusplus
13390      extern "C"
13391 #  endif
13392    int F77_DUMMY_MAIN() { return 1; }
13393 #endif
13394 int
13395 main ()
13396 {
13397 int attr=PTHREAD_CREATE_UNDETACHED;
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13404   (eval $ac_link) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } &&
13408          { ac_try='test -s conftest$ac_exeext'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414   ok=PTHREAD_CREATE_UNDETACHED
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 ok=unknown
13419 fi
13420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13421         fi
13422         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13423
13424 cat >>confdefs.h <<\_ACEOF
13425 #define PTHREAD_CREATE_JOINABLE $ok
13426 _ACEOF
13427
13428         fi
13429         echo "$as_me:$LINENO: result: ${ok}" >&5
13430 echo "${ECHO_T}${ok}" >&6
13431         if test x"$ok" = xunknown; then
13432                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13433 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13434         fi
13435
13436         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13437 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13438         flag=no
13439 # We handle this ourselves in PostgreSQL
13440 #        case "${host_cpu}-${host_os}" in
13441 #                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
13442 #                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13443 #        esac
13444         echo "$as_me:$LINENO: result: ${flag}" >&5
13445 echo "${ECHO_T}${flag}" >&6
13446         if test "x$flag" != xno; then
13447                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13448         fi
13449
13450         LIBS="$save_LIBS"
13451         CFLAGS="$save_CFLAGS"
13452
13453         # More AIX lossage: must compile with cc_r
13454         # Extract the first word of "cc_r", so it can be a program name with args.
13455 set dummy cc_r; ac_word=$2
13456 echo "$as_me:$LINENO: checking for $ac_word" >&5
13457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13458 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   if test -n "$PTHREAD_CC"; then
13462   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13466 do
13467   IFS=$as_save_IFS
13468   test -z "$as_dir" && as_dir=.
13469   for ac_exec_ext in '' $ac_executable_extensions; do
13470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13471     ac_cv_prog_PTHREAD_CC="cc_r"
13472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13473     break 2
13474   fi
13475 done
13476 done
13477
13478   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13479 fi
13480 fi
13481 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13482 if test -n "$PTHREAD_CC"; then
13483   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13484 echo "${ECHO_T}$PTHREAD_CC" >&6
13485 else
13486   echo "$as_me:$LINENO: result: no" >&5
13487 echo "${ECHO_T}no" >&6
13488 fi
13489
13490 else
13491         PTHREAD_CC="$CC"
13492 fi
13493
13494
13495
13496
13497
13498 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13499 if test x"$acx_pthread_ok" = xyes; then
13500
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_PTHREAD 1
13503 _ACEOF
13504
13505         :
13506 else
13507         acx_pthread_ok=no
13508
13509 fi
13510 ac_ext=c
13511 ac_cpp='$CPP $CPPFLAGS'
13512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13515
13516         # set thread flags
13517
13518 # Some platforms use these, so just defineed them.  They can't hurt if they
13519 # are not supported.
13520 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13521
13522
13523 # At this point, we don't want to muck with the compiler name for threading.
13524 # Let's see who fails, perhaps AIX.  2004-04-23
13525 if test "$PTHREAD_CC" != "$CC"; then
13526 { { echo "$as_me:$LINENO: error:
13527 PostgreSQL does not support platforms that require a special
13528 compiler binary for thread-safety.
13529 " >&5
13530 echo "$as_me: error:
13531 PostgreSQL does not support platforms that require a special
13532 compiler binary for thread-safety.
13533 " >&2;}
13534    { (exit 1); exit 1; }; }
13535 fi
13536
13537 if test "$THREAD_SUPPORT" = no; then
13538 { { echo "$as_me:$LINENO: error:
13539 Cannot enable threads on your platform.
13540 Your platform is known to not support thread-safe programs.
13541 For details, compile and run src/bin/pg_thread_test.
13542 " >&5
13543 echo "$as_me: error:
13544 Cannot enable threads on your platform.
13545 Your platform is known to not support thread-safe programs.
13546 For details, compile and run src/bin/pg_thread_test.
13547 " >&2;}
13548    { (exit 1); exit 1; }; }
13549 fi
13550
13551 if test "${ac_cv_header_pthread_h+set}" = set; then
13552   echo "$as_me:$LINENO: checking for pthread.h" >&5
13553 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13554 if test "${ac_cv_header_pthread_h+set}" = set; then
13555   echo $ECHO_N "(cached) $ECHO_C" >&6
13556 fi
13557 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13558 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13559 else
13560   # Is the header compilable?
13561 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13562 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13565 #include "confdefs.h"
13566 $ac_includes_default
13567 #include <pthread.h>
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571   (eval $ac_compile) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -s conftest.$ac_objext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_header_compiler=yes
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 ac_header_compiler=no
13586 fi
13587 rm -f conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13590
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13593 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13595 #line $LINENO "configure"
13596 #include "confdefs.h"
13597 #include <pthread.h>
13598 _ACEOF
13599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13601   ac_status=$?
13602   egrep -v '^ *\+' conftest.er1 >conftest.err
13603   rm -f conftest.er1
13604   cat conftest.err >&5
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } >/dev/null; then
13607   if test -s conftest.err; then
13608     ac_cpp_err=$ac_c_preproc_warn_flag
13609   else
13610     ac_cpp_err=
13611   fi
13612 else
13613   ac_cpp_err=yes
13614 fi
13615 if test -z "$ac_cpp_err"; then
13616   ac_header_preproc=yes
13617 else
13618   echo "$as_me: failed program was:" >&5
13619   cat conftest.$ac_ext >&5
13620   ac_header_preproc=no
13621 fi
13622 rm -f conftest.err conftest.$ac_ext
13623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13624 echo "${ECHO_T}$ac_header_preproc" >&6
13625
13626 # So?  What about this header?
13627 case $ac_header_compiler:$ac_header_preproc in
13628   yes:no )
13629     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13630 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13631     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13632 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13633   no:yes )
13634     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13635 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13636     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13637 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13638     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13639 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13640 esac
13641 echo "$as_me:$LINENO: checking for pthread.h" >&5
13642 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13643 if test "${ac_cv_header_pthread_h+set}" = set; then
13644   echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646   ac_cv_header_pthread_h=$ac_header_preproc
13647 fi
13648 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13649 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13650
13651 fi
13652 if test $ac_cv_header_pthread_h = yes; then
13653   :
13654 else
13655   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13656 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13657    { (exit 1); exit 1; }; }
13658 fi
13659
13660
13661
13662 # Check for *_r functions
13663 _CFLAGS="$CFLAGS"
13664 _LIBS="$LIBS"
13665 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13666 LIBS="$LIBS $PTHREAD_LIBS"
13667
13668
13669
13670 for ac_func in strerror_r getpwuid_r gethostbyname_r
13671 do
13672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13673 echo "$as_me:$LINENO: checking for $ac_func" >&5
13674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13675 if eval "test \"\${$as_ac_var+set}\" = set"; then
13676   echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678   cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13681 /* System header to define __stub macros and hopefully few prototypes,
13682     which can conflict with char $ac_func (); below.  */
13683 #include <assert.h>
13684 /* Override any gcc2 internal prototype to avoid an error.  */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 /* We use char because int might match the return type of a gcc2
13689    builtin and then its argument prototype would still apply.  */
13690 char $ac_func ();
13691 char (*f) ();
13692
13693 #ifdef F77_DUMMY_MAIN
13694 #  ifdef __cplusplus
13695      extern "C"
13696 #  endif
13697    int F77_DUMMY_MAIN() { return 1; }
13698 #endif
13699 int
13700 main ()
13701 {
13702 /* The GNU C library defines this for functions which it implements
13703     to always fail with ENOSYS.  Some functions are actually named
13704     something starting with __ and the normal name is an alias.  */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 choke me
13707 #else
13708 f = $ac_func;
13709 #endif
13710
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717   (eval $ac_link) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } &&
13721          { ac_try='test -s conftest$ac_exeext'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; }; then
13727   eval "$as_ac_var=yes"
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 eval "$as_ac_var=no"
13732 fi
13733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13734 fi
13735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13737 if test `eval echo '${'$as_ac_var'}'` = yes; then
13738   cat >>confdefs.h <<_ACEOF
13739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13740 _ACEOF
13741
13742 fi
13743 done
13744
13745
13746 # Do test here with the proper thread flags
13747 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13748 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13749 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   cat >conftest.$ac_ext <<_ACEOF
13753 #line $LINENO "configure"
13754 #include "confdefs.h"
13755 #include <sys/types.h>
13756 #include <pwd.h>
13757 #ifdef F77_DUMMY_MAIN
13758 #  ifdef __cplusplus
13759      extern "C"
13760 #  endif
13761    int F77_DUMMY_MAIN() { return 1; }
13762 #endif
13763 int
13764 main ()
13765 {
13766 uid_t uid;
13767 struct passwd *space;
13768 char *buf;
13769 size_t bufsize;
13770 struct passwd **result;
13771 getpwuid_r(uid, space, buf, bufsize, result);
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778   (eval $ac_compile) 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); } &&
13782          { ac_try='test -s conftest.$ac_objext'
13783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784   (eval $ac_try) 2>&5
13785   ac_status=$?
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); }; }; then
13788   pgac_func_getpwuid_r_5arg=yes
13789 else
13790   echo "$as_me: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13792 pgac_func_getpwuid_r_5arg=no
13793 fi
13794 rm -f conftest.$ac_objext conftest.$ac_ext
13795 fi
13796 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13797 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13798 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13799
13800 cat >>confdefs.h <<\_ACEOF
13801 #define GETPWUID_R_5ARG
13802 _ACEOF
13803
13804 fi
13805
13806 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
13807 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
13808 if test "${pgac_func_strerror_r_int+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   cat >conftest.$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13813 #include "confdefs.h"
13814 #include <string.h>
13815 #ifdef F77_DUMMY_MAIN
13816 #  ifdef __cplusplus
13817      extern "C"
13818 #  endif
13819    int F77_DUMMY_MAIN() { return 1; }
13820 #endif
13821 int
13822 main ()
13823 {
13824 int strerror_r(int, char *, size_t);
13825   ;
13826   return 0;
13827 }
13828 _ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831   (eval $ac_compile) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } &&
13835          { ac_try='test -s conftest.$ac_objext'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }; then
13841   pgac_func_strerror_r_int=yes
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 cat conftest.$ac_ext >&5
13845 pgac_func_strerror_r_int=no
13846 fi
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
13850 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
13851 if test x"$pgac_func_strerror_r_int" = xyes ; then
13852
13853 cat >>confdefs.h <<\_ACEOF
13854 #define STRERROR_R_INT
13855 _ACEOF
13856
13857 fi
13858
13859
13860 CFLAGS="$_CFLAGS"
13861 LIBS="$_LIBS"
13862
13863 else
13864 # do not use values from template file
13865 PTHREAD_CFLAGS=
13866 PTHREAD_LIBS=
13867 fi
13868
13869
13870
13871
13872
13873 # This test makes sure that run tests work at all.  Sometimes a shared
13874 # library is found by the linker, but the runtime linker can't find it.
13875 # This check should come after all modifications of compiler or linker
13876 # variables, and before any other run tests.
13877 echo "$as_me:$LINENO: checking test program" >&5
13878 echo $ECHO_N "checking test program... $ECHO_C" >&6
13879 if test "$cross_compiling" = yes; then
13880   echo "$as_me:$LINENO: result: cross-compiling" >&5
13881 echo "${ECHO_T}cross-compiling" >&6
13882 else
13883   cat >conftest.$ac_ext <<_ACEOF
13884 #line $LINENO "configure"
13885 #include "confdefs.h"
13886 int main() { return 0; }
13887 _ACEOF
13888 rm -f conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890   (eval $ac_link) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   echo "$as_me:$LINENO: result: ok" >&5
13900 echo "${ECHO_T}ok" >&6
13901 else
13902   echo "$as_me: program exited with status $ac_status" >&5
13903 echo "$as_me: failed program was:" >&5
13904 cat conftest.$ac_ext >&5
13905 ( exit $ac_status )
13906 echo "$as_me:$LINENO: result: failed" >&5
13907 echo "${ECHO_T}failed" >&6
13908 { { echo "$as_me:$LINENO: error:
13909 *** Could not execute a simple test program.  This may be a problem
13910 *** related to locating shared libraries.  Check the file 'config.log'
13911 *** for the exact reason." >&5
13912 echo "$as_me: error:
13913 *** Could not execute a simple test program.  This may be a problem
13914 *** related to locating shared libraries.  Check the file 'config.log'
13915 *** for the exact reason." >&2;}
13916    { (exit 1); exit 1; }; }
13917 fi
13918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13919 fi
13920
13921
13922
13923 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13924 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13925 if test "${pgac_cv_type_long_int_64+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   if test "$cross_compiling" = yes; then
13929   # If cross-compiling, check the size reported by the compiler and
13930 # trust that the arithmetic works.
13931 cat >conftest.$ac_ext <<_ACEOF
13932 #line $LINENO "configure"
13933 #include "confdefs.h"
13934
13935 #ifdef F77_DUMMY_MAIN
13936 #  ifdef __cplusplus
13937      extern "C"
13938 #  endif
13939    int F77_DUMMY_MAIN() { return 1; }
13940 #endif
13941 int
13942 main ()
13943 {
13944 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13945 test_array [0] = 0
13946
13947   ;
13948   return 0;
13949 }
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953   (eval $ac_compile) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); } &&
13957          { ac_try='test -s conftest.$ac_objext'
13958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959   (eval $ac_try) 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; }; then
13963   pgac_cv_type_long_int_64=yes
13964 else
13965   echo "$as_me: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 pgac_cv_type_long_int_64=no
13968 fi
13969 rm -f conftest.$ac_objext conftest.$ac_ext
13970 else
13971   cat >conftest.$ac_ext <<_ACEOF
13972 #line $LINENO "configure"
13973 #include "confdefs.h"
13974 typedef long int int64;
13975
13976 /*
13977  * These are globals to discourage the compiler from folding all the
13978  * arithmetic tests down to compile-time constants.
13979  */
13980 int64 a = 20000001;
13981 int64 b = 40000005;
13982
13983 int does_int64_work()
13984 {
13985   int64 c,d;
13986
13987   if (sizeof(int64) != 8)
13988     return 0;                   /* definitely not the right size */
13989
13990   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13991   c = a * b;
13992   d = (c + b) / b;
13993   if (d != a+1)
13994     return 0;
13995   return 1;
13996 }
13997 main() {
13998   exit(! does_int64_work());
13999 }
14000 _ACEOF
14001 rm -f conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003   (eval $ac_link) 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008   (eval $ac_try) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; }; then
14012   pgac_cv_type_long_int_64=yes
14013 else
14014   echo "$as_me: program exited with status $ac_status" >&5
14015 echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 ( exit $ac_status )
14018 pgac_cv_type_long_int_64=no
14019 fi
14020 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14021 fi
14022 fi
14023 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14024 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14025
14026 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14027 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14028
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_LONG_INT_64
14031 _ACEOF
14032
14033 fi
14034
14035
14036 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14037   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14038 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14039 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   if test "$cross_compiling" = yes; then
14043   # If cross-compiling, check the size reported by the compiler and
14044 # trust that the arithmetic works.
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14047 #include "confdefs.h"
14048
14049 #ifdef F77_DUMMY_MAIN
14050 #  ifdef __cplusplus
14051      extern "C"
14052 #  endif
14053    int F77_DUMMY_MAIN() { return 1; }
14054 #endif
14055 int
14056 main ()
14057 {
14058 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14059 test_array [0] = 0
14060
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 rm -f conftest.$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067   (eval $ac_compile) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); } &&
14071          { ac_try='test -s conftest.$ac_objext'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; }; then
14077   pgac_cv_type_long_long_int_64=yes
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 pgac_cv_type_long_long_int_64=no
14082 fi
14083 rm -f conftest.$ac_objext conftest.$ac_ext
14084 else
14085   cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 typedef long long int int64;
14089
14090 /*
14091  * These are globals to discourage the compiler from folding all the
14092  * arithmetic tests down to compile-time constants.
14093  */
14094 int64 a = 20000001;
14095 int64 b = 40000005;
14096
14097 int does_int64_work()
14098 {
14099   int64 c,d;
14100
14101   if (sizeof(int64) != 8)
14102     return 0;                   /* definitely not the right size */
14103
14104   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14105   c = a * b;
14106   d = (c + b) / b;
14107   if (d != a+1)
14108     return 0;
14109   return 1;
14110 }
14111 main() {
14112   exit(! does_int64_work());
14113 }
14114 _ACEOF
14115 rm -f conftest$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117   (eval $ac_link) 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; }; then
14126   pgac_cv_type_long_long_int_64=yes
14127 else
14128   echo "$as_me: program exited with status $ac_status" >&5
14129 echo "$as_me: failed program was:" >&5
14130 cat conftest.$ac_ext >&5
14131 ( exit $ac_status )
14132 pgac_cv_type_long_long_int_64=no
14133 fi
14134 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14135 fi
14136 fi
14137 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14138 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14139
14140 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14141 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_LONG_LONG_INT_64
14145 _ACEOF
14146
14147 fi
14148
14149 fi
14150
14151
14152
14153 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14154   cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 #include "confdefs.h"
14157
14158 #define INT64CONST(x)  x##LL
14159 long long int foo = INT64CONST(0x1234567890123456);
14160
14161 #ifdef F77_DUMMY_MAIN
14162 #  ifdef __cplusplus
14163      extern "C"
14164 #  endif
14165    int F77_DUMMY_MAIN() { return 1; }
14166 #endif
14167 int
14168 main ()
14169 {
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
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_LL_CONSTANTS 1
14190 _ACEOF
14191
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 cat conftest.$ac_ext >&5
14195 fi
14196 rm -f conftest.$ac_objext conftest.$ac_ext
14197 fi
14198
14199
14200 # If we found "long int" is 64 bits, assume snprintf handles it.  If
14201 # we found we need to use "long long int", better check.  We cope with
14202 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
14203 # work, fall back to our own snprintf emulation (which we know uses %lld).
14204
14205 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14206   if test $pgac_need_repl_snprintf = no; then
14207     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14208 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14209 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212   for pgac_format in '%lld' '%qd' '%I64d'; do
14213 if test "$cross_compiling" = yes; then
14214   pgac_cv_snprintf_long_long_int_format=cross; break
14215 else
14216   cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 #include "confdefs.h"
14219 #include <stdio.h>
14220 typedef long long int int64;
14221 #define INT64_FORMAT "$pgac_format"
14222
14223 int64 a = 20000001;
14224 int64 b = 40000005;
14225
14226 int does_int64_snprintf_work()
14227 {
14228   int64 c;
14229   char buf[100];
14230
14231   if (sizeof(int64) != 8)
14232     return 0;                   /* doesn't look like the right size */
14233
14234   c = a * b;
14235   snprintf(buf, 100, INT64_FORMAT, c);
14236   if (strcmp(buf, "800000140000005") != 0)
14237     return 0;                   /* either multiply or snprintf is busted */
14238   return 1;
14239 }
14240 main() {
14241   exit(! does_int64_snprintf_work());
14242 }
14243 _ACEOF
14244 rm -f conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246   (eval $ac_link) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14256 else
14257   echo "$as_me: program exited with status $ac_status" >&5
14258 echo "$as_me: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14260 fi
14261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14262 fi
14263 done
14264 fi
14265
14266 LONG_LONG_INT_FORMAT=''
14267
14268 case $pgac_cv_snprintf_long_long_int_format in
14269   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14270 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14271   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14272 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14273          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14274   *)     echo "$as_me:$LINENO: result: none" >&5
14275 echo "${ECHO_T}none" >&6;;
14276 esac
14277     if test "$LONG_LONG_INT_FORMAT" = ""; then
14278       # Force usage of our own snprintf, since system snprintf is broken
14279       pgac_need_repl_snprintf=yes
14280       LONG_LONG_INT_FORMAT='%lld'
14281     fi
14282   else
14283     # Here if we previously decided we needed to use our own snprintf
14284     LONG_LONG_INT_FORMAT='%lld'
14285   fi
14286   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14287   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14288   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14289 else
14290   # Here if we are not using 'long long int' at all
14291   INT64_FORMAT='"%ld"'
14292   UINT64_FORMAT='"%lu"'
14293 fi
14294
14295
14296 cat >>confdefs.h <<_ACEOF
14297 #define INT64_FORMAT $INT64_FORMAT
14298 _ACEOF
14299
14300
14301
14302 cat >>confdefs.h <<_ACEOF
14303 #define UINT64_FORMAT $UINT64_FORMAT
14304 _ACEOF
14305
14306
14307 if test $pgac_need_repl_snprintf = yes; then
14308   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14309 fi
14310
14311 # Need a #define for the size of Datum (unsigned long)
14312 echo "$as_me:$LINENO: checking for unsigned long" >&5
14313 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14314 if test "${ac_cv_type_unsigned_long+set}" = set; then
14315   echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317   cat >conftest.$ac_ext <<_ACEOF
14318 #line $LINENO "configure"
14319 #include "confdefs.h"
14320 $ac_includes_default
14321 #ifdef F77_DUMMY_MAIN
14322 #  ifdef __cplusplus
14323      extern "C"
14324 #  endif
14325    int F77_DUMMY_MAIN() { return 1; }
14326 #endif
14327 int
14328 main ()
14329 {
14330 if ((unsigned long *) 0)
14331   return 0;
14332 if (sizeof (unsigned long))
14333   return 0;
14334   ;
14335   return 0;
14336 }
14337 _ACEOF
14338 rm -f conftest.$ac_objext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14340   (eval $ac_compile) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); } &&
14344          { ac_try='test -s conftest.$ac_objext'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }; then
14350   ac_cv_type_unsigned_long=yes
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14354 ac_cv_type_unsigned_long=no
14355 fi
14356 rm -f conftest.$ac_objext conftest.$ac_ext
14357 fi
14358 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14359 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14360
14361 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14362 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14363 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366   if test "$ac_cv_type_unsigned_long" = yes; then
14367   # The cast to unsigned long works around a bug in the HP C Compiler
14368   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14369   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14370   # This bug is HP SR number 8606223364.
14371   if test "$cross_compiling" = yes; then
14372   # Depending upon the size, compute the lo and hi bounds.
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 #include "confdefs.h"
14376 $ac_includes_default
14377 #ifdef F77_DUMMY_MAIN
14378 #  ifdef __cplusplus
14379      extern "C"
14380 #  endif
14381    int F77_DUMMY_MAIN() { return 1; }
14382 #endif
14383 int
14384 main ()
14385 {
14386 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14387 test_array [0] = 0
14388
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395   (eval $ac_compile) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } &&
14399          { ac_try='test -s conftest.$ac_objext'
14400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401   (eval $ac_try) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_lo=0 ac_mid=0
14406   while :; do
14407     cat >conftest.$ac_ext <<_ACEOF
14408 #line $LINENO "configure"
14409 #include "confdefs.h"
14410 $ac_includes_default
14411 #ifdef F77_DUMMY_MAIN
14412 #  ifdef __cplusplus
14413      extern "C"
14414 #  endif
14415    int F77_DUMMY_MAIN() { return 1; }
14416 #endif
14417 int
14418 main ()
14419 {
14420 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14421 test_array [0] = 0
14422
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest.$ac_objext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14429   (eval $ac_compile) 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } &&
14433          { ac_try='test -s conftest.$ac_objext'
14434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435   (eval $ac_try) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; }; then
14439   ac_hi=$ac_mid; break
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14443 ac_lo=`expr $ac_mid + 1`
14444                     if test $ac_lo -le $ac_mid; then
14445                       ac_lo= ac_hi=
14446                       break
14447                     fi
14448                     ac_mid=`expr 2 '*' $ac_mid + 1`
14449 fi
14450 rm -f conftest.$ac_objext conftest.$ac_ext
14451   done
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14457 #include "confdefs.h"
14458 $ac_includes_default
14459 #ifdef F77_DUMMY_MAIN
14460 #  ifdef __cplusplus
14461      extern "C"
14462 #  endif
14463    int F77_DUMMY_MAIN() { return 1; }
14464 #endif
14465 int
14466 main ()
14467 {
14468 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14469 test_array [0] = 0
14470
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477   (eval $ac_compile) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } &&
14481          { ac_try='test -s conftest.$ac_objext'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487   ac_hi=-1 ac_mid=-1
14488   while :; do
14489     cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 #include "confdefs.h"
14492 $ac_includes_default
14493 #ifdef F77_DUMMY_MAIN
14494 #  ifdef __cplusplus
14495      extern "C"
14496 #  endif
14497    int F77_DUMMY_MAIN() { return 1; }
14498 #endif
14499 int
14500 main ()
14501 {
14502 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14503 test_array [0] = 0
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511   (eval $ac_compile) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } &&
14515          { ac_try='test -s conftest.$ac_objext'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521   ac_lo=$ac_mid; break
14522 else
14523   echo "$as_me: failed program was:" >&5
14524 cat conftest.$ac_ext >&5
14525 ac_hi=`expr '(' $ac_mid ')' - 1`
14526                        if test $ac_mid -le $ac_hi; then
14527                          ac_lo= ac_hi=
14528                          break
14529                        fi
14530                        ac_mid=`expr 2 '*' $ac_mid`
14531 fi
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14533   done
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14537 ac_lo= ac_hi=
14538 fi
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14540 fi
14541 rm -f conftest.$ac_objext conftest.$ac_ext
14542 # Binary search between lo and hi bounds.
14543 while test "x$ac_lo" != "x$ac_hi"; do
14544   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14545   cat >conftest.$ac_ext <<_ACEOF
14546 #line $LINENO "configure"
14547 #include "confdefs.h"
14548 $ac_includes_default
14549 #ifdef F77_DUMMY_MAIN
14550 #  ifdef __cplusplus
14551      extern "C"
14552 #  endif
14553    int F77_DUMMY_MAIN() { return 1; }
14554 #endif
14555 int
14556 main ()
14557 {
14558 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14559 test_array [0] = 0
14560
14561   ;
14562   return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567   (eval $ac_compile) 2>&5
14568   ac_status=$?
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } &&
14571          { ac_try='test -s conftest.$ac_objext'
14572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573   (eval $ac_try) 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); }; }; then
14577   ac_hi=$ac_mid
14578 else
14579   echo "$as_me: failed program was:" >&5
14580 cat conftest.$ac_ext >&5
14581 ac_lo=`expr '(' $ac_mid ')' + 1`
14582 fi
14583 rm -f conftest.$ac_objext conftest.$ac_ext
14584 done
14585 case $ac_lo in
14586 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14587 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14588 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14589    { (exit 1); exit 1; }; } ;;
14590 esac
14591 else
14592   if test "$cross_compiling" = yes; then
14593   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14594 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14595    { (exit 1); exit 1; }; }
14596 else
14597   cat >conftest.$ac_ext <<_ACEOF
14598 #line $LINENO "configure"
14599 #include "confdefs.h"
14600 $ac_includes_default
14601 long longval () { return (long) (sizeof (unsigned long)); }
14602 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14603 #include <stdio.h>
14604 #include <stdlib.h>
14605 #ifdef F77_DUMMY_MAIN
14606 #  ifdef __cplusplus
14607      extern "C"
14608 #  endif
14609    int F77_DUMMY_MAIN() { return 1; }
14610 #endif
14611 int
14612 main ()
14613 {
14614
14615   FILE *f = fopen ("conftest.val", "w");
14616   if (! f)
14617     exit (1);
14618   if (((long) (sizeof (unsigned long))) < 0)
14619     {
14620       long i = longval ();
14621       if (i != ((long) (sizeof (unsigned long))))
14622         exit (1);
14623       fprintf (f, "%ld\n", i);
14624     }
14625   else
14626     {
14627       unsigned long i = ulongval ();
14628       if (i != ((long) (sizeof (unsigned long))))
14629         exit (1);
14630       fprintf (f, "%lu\n", i);
14631     }
14632   exit (ferror (f) || fclose (f) != 0);
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640   (eval $ac_link) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14650 else
14651   echo "$as_me: program exited with status $ac_status" >&5
14652 echo "$as_me: failed program was:" >&5
14653 cat conftest.$ac_ext >&5
14654 ( exit $ac_status )
14655 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14656 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14657    { (exit 1); exit 1; }; }
14658 fi
14659 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14660 fi
14661 fi
14662 rm -f conftest.val
14663 else
14664   ac_cv_sizeof_unsigned_long=0
14665 fi
14666 fi
14667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14668 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14669 cat >>confdefs.h <<_ACEOF
14670 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14671 _ACEOF
14672
14673
14674
14675 # Determine memory alignment requirements for the basic C data types.
14676
14677 echo "$as_me:$LINENO: checking for short" >&5
14678 echo $ECHO_N "checking for short... $ECHO_C" >&6
14679 if test "${ac_cv_type_short+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 #include "confdefs.h"
14685 $ac_includes_default
14686 #ifdef F77_DUMMY_MAIN
14687 #  ifdef __cplusplus
14688      extern "C"
14689 #  endif
14690    int F77_DUMMY_MAIN() { return 1; }
14691 #endif
14692 int
14693 main ()
14694 {
14695 if ((short *) 0)
14696   return 0;
14697 if (sizeof (short))
14698   return 0;
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705   (eval $ac_compile) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } &&
14709          { ac_try='test -s conftest.$ac_objext'
14710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711   (eval $ac_try) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); }; }; then
14715   ac_cv_type_short=yes
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 ac_cv_type_short=no
14720 fi
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14722 fi
14723 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14724 echo "${ECHO_T}$ac_cv_type_short" >&6
14725
14726 echo "$as_me:$LINENO: checking alignment of short" >&5
14727 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14728 if test "${pgac_cv_alignof_short+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731   if test "$ac_cv_type_short" = yes; then
14732   if test "$cross_compiling" = yes; then
14733   # Depending upon the size, compute the lo and hi bounds.
14734 cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14736 #include "confdefs.h"
14737 $ac_includes_default
14738 struct { char filler; short field; } pgac_struct;
14739 #ifdef F77_DUMMY_MAIN
14740 #  ifdef __cplusplus
14741      extern "C"
14742 #  endif
14743    int F77_DUMMY_MAIN() { return 1; }
14744 #endif
14745 int
14746 main ()
14747 {
14748 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14749 test_array [0] = 0
14750
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757   (eval $ac_compile) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } &&
14761          { ac_try='test -s conftest.$ac_objext'
14762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763   (eval $ac_try) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767   ac_lo=0 ac_mid=0
14768   while :; do
14769     cat >conftest.$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14771 #include "confdefs.h"
14772 $ac_includes_default
14773 struct { char filler; short field; } pgac_struct;
14774 #ifdef F77_DUMMY_MAIN
14775 #  ifdef __cplusplus
14776      extern "C"
14777 #  endif
14778    int F77_DUMMY_MAIN() { return 1; }
14779 #endif
14780 int
14781 main ()
14782 {
14783 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14784 test_array [0] = 0
14785
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14792   (eval $ac_compile) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); } &&
14796          { ac_try='test -s conftest.$ac_objext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_hi=$ac_mid; break
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 cat conftest.$ac_ext >&5
14806 ac_lo=`expr $ac_mid + 1`
14807                     if test $ac_lo -le $ac_mid; then
14808                       ac_lo= ac_hi=
14809                       break
14810                     fi
14811                     ac_mid=`expr 2 '*' $ac_mid + 1`
14812 fi
14813 rm -f conftest.$ac_objext conftest.$ac_ext
14814   done
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 #include "confdefs.h"
14821 $ac_includes_default
14822 struct { char filler; short field; } pgac_struct;
14823 #ifdef F77_DUMMY_MAIN
14824 #  ifdef __cplusplus
14825      extern "C"
14826 #  endif
14827    int F77_DUMMY_MAIN() { return 1; }
14828 #endif
14829 int
14830 main ()
14831 {
14832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14833 test_array [0] = 0
14834
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841   (eval $ac_compile) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } &&
14845          { ac_try='test -s conftest.$ac_objext'
14846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847   (eval $ac_try) 2>&5
14848   ac_status=$?
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); }; }; then
14851   ac_hi=-1 ac_mid=-1
14852   while :; do
14853     cat >conftest.$ac_ext <<_ACEOF
14854 #line $LINENO "configure"
14855 #include "confdefs.h"
14856 $ac_includes_default
14857 struct { char filler; short field; } pgac_struct;
14858 #ifdef F77_DUMMY_MAIN
14859 #  ifdef __cplusplus
14860      extern "C"
14861 #  endif
14862    int F77_DUMMY_MAIN() { return 1; }
14863 #endif
14864 int
14865 main ()
14866 {
14867 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14868 test_array [0] = 0
14869
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14876   (eval $ac_compile) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } &&
14880          { ac_try='test -s conftest.$ac_objext'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }; then
14886   ac_lo=$ac_mid; break
14887 else
14888   echo "$as_me: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 ac_hi=`expr '(' $ac_mid ')' - 1`
14891                        if test $ac_mid -le $ac_hi; then
14892                          ac_lo= ac_hi=
14893                          break
14894                        fi
14895                        ac_mid=`expr 2 '*' $ac_mid`
14896 fi
14897 rm -f conftest.$ac_objext conftest.$ac_ext
14898   done
14899 else
14900   echo "$as_me: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 ac_lo= ac_hi=
14903 fi
14904 rm -f conftest.$ac_objext conftest.$ac_ext
14905 fi
14906 rm -f conftest.$ac_objext conftest.$ac_ext
14907 # Binary search between lo and hi bounds.
14908 while test "x$ac_lo" != "x$ac_hi"; do
14909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14910   cat >conftest.$ac_ext <<_ACEOF
14911 #line $LINENO "configure"
14912 #include "confdefs.h"
14913 $ac_includes_default
14914 struct { char filler; short field; } pgac_struct;
14915 #ifdef F77_DUMMY_MAIN
14916 #  ifdef __cplusplus
14917      extern "C"
14918 #  endif
14919    int F77_DUMMY_MAIN() { return 1; }
14920 #endif
14921 int
14922 main ()
14923 {
14924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14925 test_array [0] = 0
14926
14927   ;
14928   return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14933   (eval $ac_compile) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } &&
14937          { ac_try='test -s conftest.$ac_objext'
14938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939   (eval $ac_try) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); }; }; then
14943   ac_hi=$ac_mid
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 ac_lo=`expr '(' $ac_mid ')' + 1`
14948 fi
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14950 done
14951 case $ac_lo in
14952 ?*) pgac_cv_alignof_short=$ac_lo;;
14953 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14954 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14955    { (exit 1); exit 1; }; } ;;
14956 esac
14957 else
14958   if test "$cross_compiling" = yes; then
14959   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14960 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14961    { (exit 1); exit 1; }; }
14962 else
14963   cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 #include "confdefs.h"
14966 $ac_includes_default
14967 struct { char filler; short field; } pgac_struct;
14968 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14969 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14970 #include <stdio.h>
14971 #include <stdlib.h>
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
14982   FILE *f = fopen ("conftest.val", "w");
14983   if (! f)
14984     exit (1);
14985   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14986     {
14987       long i = longval ();
14988       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14989         exit (1);
14990       fprintf (f, "%ld\n", i);
14991     }
14992   else
14993     {
14994       unsigned long i = ulongval ();
14995       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14996         exit (1);
14997       fprintf (f, "%lu\n", i);
14998     }
14999   exit (ferror (f) || fclose (f) != 0);
15000
15001   ;
15002   return 0;
15003 }
15004 _ACEOF
15005 rm -f conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007   (eval $ac_link) 2>&5
15008   ac_status=$?
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   pgac_cv_alignof_short=`cat conftest.val`
15017 else
15018   echo "$as_me: program exited with status $ac_status" >&5
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 ( exit $ac_status )
15022 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15023 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15024    { (exit 1); exit 1; }; }
15025 fi
15026 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15027 fi
15028 fi
15029 rm -f conftest.val
15030 else
15031   pgac_cv_alignof_short=0
15032 fi
15033 fi
15034 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15035 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15036 cat >>confdefs.h <<_ACEOF
15037 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15038 _ACEOF
15039
15040
15041 echo "$as_me:$LINENO: checking for int" >&5
15042 echo $ECHO_N "checking for int... $ECHO_C" >&6
15043 if test "${ac_cv_type_int+set}" = set; then
15044   echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046   cat >conftest.$ac_ext <<_ACEOF
15047 #line $LINENO "configure"
15048 #include "confdefs.h"
15049 $ac_includes_default
15050 #ifdef F77_DUMMY_MAIN
15051 #  ifdef __cplusplus
15052      extern "C"
15053 #  endif
15054    int F77_DUMMY_MAIN() { return 1; }
15055 #endif
15056 int
15057 main ()
15058 {
15059 if ((int *) 0)
15060   return 0;
15061 if (sizeof (int))
15062   return 0;
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069   (eval $ac_compile) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } &&
15073          { ac_try='test -s conftest.$ac_objext'
15074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075   (eval $ac_try) 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }; }; then
15079   ac_cv_type_int=yes
15080 else
15081   echo "$as_me: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 ac_cv_type_int=no
15084 fi
15085 rm -f conftest.$ac_objext conftest.$ac_ext
15086 fi
15087 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15088 echo "${ECHO_T}$ac_cv_type_int" >&6
15089
15090 echo "$as_me:$LINENO: checking alignment of int" >&5
15091 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15092 if test "${pgac_cv_alignof_int+set}" = set; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   if test "$ac_cv_type_int" = yes; then
15096   if test "$cross_compiling" = yes; then
15097   # Depending upon the size, compute the lo and hi bounds.
15098 cat >conftest.$ac_ext <<_ACEOF
15099 #line $LINENO "configure"
15100 #include "confdefs.h"
15101 $ac_includes_default
15102 struct { char filler; int field; } pgac_struct;
15103 #ifdef F77_DUMMY_MAIN
15104 #  ifdef __cplusplus
15105      extern "C"
15106 #  endif
15107    int F77_DUMMY_MAIN() { return 1; }
15108 #endif
15109 int
15110 main ()
15111 {
15112 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15113 test_array [0] = 0
15114
15115   ;
15116   return 0;
15117 }
15118 _ACEOF
15119 rm -f conftest.$ac_objext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121   (eval $ac_compile) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); } &&
15125          { ac_try='test -s conftest.$ac_objext'
15126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127   (eval $ac_try) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); }; }; then
15131   ac_lo=0 ac_mid=0
15132   while :; do
15133     cat >conftest.$ac_ext <<_ACEOF
15134 #line $LINENO "configure"
15135 #include "confdefs.h"
15136 $ac_includes_default
15137 struct { char filler; int field; } pgac_struct;
15138 #ifdef F77_DUMMY_MAIN
15139 #  ifdef __cplusplus
15140      extern "C"
15141 #  endif
15142    int F77_DUMMY_MAIN() { return 1; }
15143 #endif
15144 int
15145 main ()
15146 {
15147 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15148 test_array [0] = 0
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156   (eval $ac_compile) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } &&
15160          { ac_try='test -s conftest.$ac_objext'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; }; then
15166   ac_hi=$ac_mid; break
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 cat conftest.$ac_ext >&5
15170 ac_lo=`expr $ac_mid + 1`
15171                     if test $ac_lo -le $ac_mid; then
15172                       ac_lo= ac_hi=
15173                       break
15174                     fi
15175                     ac_mid=`expr 2 '*' $ac_mid + 1`
15176 fi
15177 rm -f conftest.$ac_objext conftest.$ac_ext
15178   done
15179 else
15180   echo "$as_me: failed program was:" >&5
15181 cat conftest.$ac_ext >&5
15182 cat >conftest.$ac_ext <<_ACEOF
15183 #line $LINENO "configure"
15184 #include "confdefs.h"
15185 $ac_includes_default
15186 struct { char filler; int field; } pgac_struct;
15187 #ifdef F77_DUMMY_MAIN
15188 #  ifdef __cplusplus
15189      extern "C"
15190 #  endif
15191    int F77_DUMMY_MAIN() { return 1; }
15192 #endif
15193 int
15194 main ()
15195 {
15196 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15197 test_array [0] = 0
15198
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205   (eval $ac_compile) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -s conftest.$ac_objext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_hi=-1 ac_mid=-1
15216   while :; do
15217     cat >conftest.$ac_ext <<_ACEOF
15218 #line $LINENO "configure"
15219 #include "confdefs.h"
15220 $ac_includes_default
15221 struct { char filler; int field; } pgac_struct;
15222 #ifdef F77_DUMMY_MAIN
15223 #  ifdef __cplusplus
15224      extern "C"
15225 #  endif
15226    int F77_DUMMY_MAIN() { return 1; }
15227 #endif
15228 int
15229 main ()
15230 {
15231 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15232 test_array [0] = 0
15233
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 rm -f conftest.$ac_objext
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240   (eval $ac_compile) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -s conftest.$ac_objext'
15245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246   (eval $ac_try) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_lo=$ac_mid; break
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 cat conftest.$ac_ext >&5
15254 ac_hi=`expr '(' $ac_mid ')' - 1`
15255                        if test $ac_mid -le $ac_hi; then
15256                          ac_lo= ac_hi=
15257                          break
15258                        fi
15259                        ac_mid=`expr 2 '*' $ac_mid`
15260 fi
15261 rm -f conftest.$ac_objext conftest.$ac_ext
15262   done
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15266 ac_lo= ac_hi=
15267 fi
15268 rm -f conftest.$ac_objext conftest.$ac_ext
15269 fi
15270 rm -f conftest.$ac_objext conftest.$ac_ext
15271 # Binary search between lo and hi bounds.
15272 while test "x$ac_lo" != "x$ac_hi"; do
15273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15274   cat >conftest.$ac_ext <<_ACEOF
15275 #line $LINENO "configure"
15276 #include "confdefs.h"
15277 $ac_includes_default
15278 struct { char filler; int field; } pgac_struct;
15279 #ifdef F77_DUMMY_MAIN
15280 #  ifdef __cplusplus
15281      extern "C"
15282 #  endif
15283    int F77_DUMMY_MAIN() { return 1; }
15284 #endif
15285 int
15286 main ()
15287 {
15288 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15289 test_array [0] = 0
15290
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297   (eval $ac_compile) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -s conftest.$ac_objext'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }; then
15307   ac_hi=$ac_mid
15308 else
15309   echo "$as_me: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15311 ac_lo=`expr '(' $ac_mid ')' + 1`
15312 fi
15313 rm -f conftest.$ac_objext conftest.$ac_ext
15314 done
15315 case $ac_lo in
15316 ?*) pgac_cv_alignof_int=$ac_lo;;
15317 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15318 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15319    { (exit 1); exit 1; }; } ;;
15320 esac
15321 else
15322   if test "$cross_compiling" = yes; then
15323   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15324 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15325    { (exit 1); exit 1; }; }
15326 else
15327   cat >conftest.$ac_ext <<_ACEOF
15328 #line $LINENO "configure"
15329 #include "confdefs.h"
15330 $ac_includes_default
15331 struct { char filler; int field; } pgac_struct;
15332 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15333 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15334 #include <stdio.h>
15335 #include <stdlib.h>
15336 #ifdef F77_DUMMY_MAIN
15337 #  ifdef __cplusplus
15338      extern "C"
15339 #  endif
15340    int F77_DUMMY_MAIN() { return 1; }
15341 #endif
15342 int
15343 main ()
15344 {
15345
15346   FILE *f = fopen ("conftest.val", "w");
15347   if (! f)
15348     exit (1);
15349   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15350     {
15351       long i = longval ();
15352       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15353         exit (1);
15354       fprintf (f, "%ld\n", i);
15355     }
15356   else
15357     {
15358       unsigned long i = ulongval ();
15359       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15360         exit (1);
15361       fprintf (f, "%lu\n", i);
15362     }
15363   exit (ferror (f) || fclose (f) != 0);
15364
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 rm -f conftest$ac_exeext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15371   (eval $ac_link) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   pgac_cv_alignof_int=`cat conftest.val`
15381 else
15382   echo "$as_me: program exited with status $ac_status" >&5
15383 echo "$as_me: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 ( exit $ac_status )
15386 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15387 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15388    { (exit 1); exit 1; }; }
15389 fi
15390 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15391 fi
15392 fi
15393 rm -f conftest.val
15394 else
15395   pgac_cv_alignof_int=0
15396 fi
15397 fi
15398 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15399 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15400 cat >>confdefs.h <<_ACEOF
15401 #define ALIGNOF_INT $pgac_cv_alignof_int
15402 _ACEOF
15403
15404
15405 echo "$as_me:$LINENO: checking for long" >&5
15406 echo $ECHO_N "checking for long... $ECHO_C" >&6
15407 if test "${ac_cv_type_long+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   cat >conftest.$ac_ext <<_ACEOF
15411 #line $LINENO "configure"
15412 #include "confdefs.h"
15413 $ac_includes_default
15414 #ifdef F77_DUMMY_MAIN
15415 #  ifdef __cplusplus
15416      extern "C"
15417 #  endif
15418    int F77_DUMMY_MAIN() { return 1; }
15419 #endif
15420 int
15421 main ()
15422 {
15423 if ((long *) 0)
15424   return 0;
15425 if (sizeof (long))
15426   return 0;
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 rm -f conftest.$ac_objext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433   (eval $ac_compile) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -s conftest.$ac_objext'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   ac_cv_type_long=yes
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 cat conftest.$ac_ext >&5
15447 ac_cv_type_long=no
15448 fi
15449 rm -f conftest.$ac_objext conftest.$ac_ext
15450 fi
15451 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15452 echo "${ECHO_T}$ac_cv_type_long" >&6
15453
15454 echo "$as_me:$LINENO: checking alignment of long" >&5
15455 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15456 if test "${pgac_cv_alignof_long+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   if test "$ac_cv_type_long" = yes; then
15460   if test "$cross_compiling" = yes; then
15461   # Depending upon the size, compute the lo and hi bounds.
15462 cat >conftest.$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15464 #include "confdefs.h"
15465 $ac_includes_default
15466 struct { char filler; long field; } pgac_struct;
15467 #ifdef F77_DUMMY_MAIN
15468 #  ifdef __cplusplus
15469      extern "C"
15470 #  endif
15471    int F77_DUMMY_MAIN() { return 1; }
15472 #endif
15473 int
15474 main ()
15475 {
15476 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15477 test_array [0] = 0
15478
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485   (eval $ac_compile) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } &&
15489          { ac_try='test -s conftest.$ac_objext'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; }; then
15495   ac_lo=0 ac_mid=0
15496   while :; do
15497     cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 #include "confdefs.h"
15500 $ac_includes_default
15501 struct { char filler; long field; } pgac_struct;
15502 #ifdef F77_DUMMY_MAIN
15503 #  ifdef __cplusplus
15504      extern "C"
15505 #  endif
15506    int F77_DUMMY_MAIN() { return 1; }
15507 #endif
15508 int
15509 main ()
15510 {
15511 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15512 test_array [0] = 0
15513
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520   (eval $ac_compile) 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } &&
15524          { ac_try='test -s conftest.$ac_objext'
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   ac_hi=$ac_mid; break
15531 else
15532   echo "$as_me: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 ac_lo=`expr $ac_mid + 1`
15535                     if test $ac_lo -le $ac_mid; then
15536                       ac_lo= ac_hi=
15537                       break
15538                     fi
15539                     ac_mid=`expr 2 '*' $ac_mid + 1`
15540 fi
15541 rm -f conftest.$ac_objext conftest.$ac_ext
15542   done
15543 else
15544   echo "$as_me: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15546 cat >conftest.$ac_ext <<_ACEOF
15547 #line $LINENO "configure"
15548 #include "confdefs.h"
15549 $ac_includes_default
15550 struct { char filler; long field; } pgac_struct;
15551 #ifdef F77_DUMMY_MAIN
15552 #  ifdef __cplusplus
15553      extern "C"
15554 #  endif
15555    int F77_DUMMY_MAIN() { return 1; }
15556 #endif
15557 int
15558 main ()
15559 {
15560 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15561 test_array [0] = 0
15562
15563   ;
15564   return 0;
15565 }
15566 _ACEOF
15567 rm -f conftest.$ac_objext
15568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15569   (eval $ac_compile) 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } &&
15573          { ac_try='test -s conftest.$ac_objext'
15574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575   (eval $ac_try) 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); }; }; then
15579   ac_hi=-1 ac_mid=-1
15580   while :; do
15581     cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 #include "confdefs.h"
15584 $ac_includes_default
15585 struct { char filler; long field; } pgac_struct;
15586 #ifdef F77_DUMMY_MAIN
15587 #  ifdef __cplusplus
15588      extern "C"
15589 #  endif
15590    int F77_DUMMY_MAIN() { return 1; }
15591 #endif
15592 int
15593 main ()
15594 {
15595 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15596 test_array [0] = 0
15597
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604   (eval $ac_compile) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } &&
15608          { ac_try='test -s conftest.$ac_objext'
15609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610   (eval $ac_try) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; }; then
15614   ac_lo=$ac_mid; break
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15618 ac_hi=`expr '(' $ac_mid ')' - 1`
15619                        if test $ac_mid -le $ac_hi; then
15620                          ac_lo= ac_hi=
15621                          break
15622                        fi
15623                        ac_mid=`expr 2 '*' $ac_mid`
15624 fi
15625 rm -f conftest.$ac_objext conftest.$ac_ext
15626   done
15627 else
15628   echo "$as_me: failed program was:" >&5
15629 cat conftest.$ac_ext >&5
15630 ac_lo= ac_hi=
15631 fi
15632 rm -f conftest.$ac_objext conftest.$ac_ext
15633 fi
15634 rm -f conftest.$ac_objext conftest.$ac_ext
15635 # Binary search between lo and hi bounds.
15636 while test "x$ac_lo" != "x$ac_hi"; do
15637   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15638   cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15640 #include "confdefs.h"
15641 $ac_includes_default
15642 struct { char filler; long field; } pgac_struct;
15643 #ifdef F77_DUMMY_MAIN
15644 #  ifdef __cplusplus
15645      extern "C"
15646 #  endif
15647    int F77_DUMMY_MAIN() { return 1; }
15648 #endif
15649 int
15650 main ()
15651 {
15652 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15653 test_array [0] = 0
15654
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661   (eval $ac_compile) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -s conftest.$ac_objext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   ac_hi=$ac_mid
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 ac_lo=`expr '(' $ac_mid ')' + 1`
15676 fi
15677 rm -f conftest.$ac_objext conftest.$ac_ext
15678 done
15679 case $ac_lo in
15680 ?*) pgac_cv_alignof_long=$ac_lo;;
15681 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15682 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15683    { (exit 1); exit 1; }; } ;;
15684 esac
15685 else
15686   if test "$cross_compiling" = yes; then
15687   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15689    { (exit 1); exit 1; }; }
15690 else
15691   cat >conftest.$ac_ext <<_ACEOF
15692 #line $LINENO "configure"
15693 #include "confdefs.h"
15694 $ac_includes_default
15695 struct { char filler; long field; } pgac_struct;
15696 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15697 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15698 #include <stdio.h>
15699 #include <stdlib.h>
15700 #ifdef F77_DUMMY_MAIN
15701 #  ifdef __cplusplus
15702      extern "C"
15703 #  endif
15704    int F77_DUMMY_MAIN() { return 1; }
15705 #endif
15706 int
15707 main ()
15708 {
15709
15710   FILE *f = fopen ("conftest.val", "w");
15711   if (! f)
15712     exit (1);
15713   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15714     {
15715       long i = longval ();
15716       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15717         exit (1);
15718       fprintf (f, "%ld\n", i);
15719     }
15720   else
15721     {
15722       unsigned long i = ulongval ();
15723       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15724         exit (1);
15725       fprintf (f, "%lu\n", i);
15726     }
15727   exit (ferror (f) || fclose (f) != 0);
15728
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735   (eval $ac_link) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   pgac_cv_alignof_long=`cat conftest.val`
15745 else
15746   echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15749 ( exit $ac_status )
15750 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15751 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15752    { (exit 1); exit 1; }; }
15753 fi
15754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15755 fi
15756 fi
15757 rm -f conftest.val
15758 else
15759   pgac_cv_alignof_long=0
15760 fi
15761 fi
15762 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15763 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15764 cat >>confdefs.h <<_ACEOF
15765 #define ALIGNOF_LONG $pgac_cv_alignof_long
15766 _ACEOF
15767
15768
15769 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15770   echo "$as_me:$LINENO: checking for long long int" >&5
15771 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15772 if test "${ac_cv_type_long_long_int+set}" = set; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775   cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 #include "confdefs.h"
15778 $ac_includes_default
15779 #ifdef F77_DUMMY_MAIN
15780 #  ifdef __cplusplus
15781      extern "C"
15782 #  endif
15783    int F77_DUMMY_MAIN() { return 1; }
15784 #endif
15785 int
15786 main ()
15787 {
15788 if ((long long int *) 0)
15789   return 0;
15790 if (sizeof (long long int))
15791   return 0;
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15798   (eval $ac_compile) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } &&
15802          { ac_try='test -s conftest.$ac_objext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808   ac_cv_type_long_long_int=yes
15809 else
15810   echo "$as_me: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15812 ac_cv_type_long_long_int=no
15813 fi
15814 rm -f conftest.$ac_objext conftest.$ac_ext
15815 fi
15816 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15817 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15818
15819 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15820 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15821 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   if test "$ac_cv_type_long_long_int" = yes; then
15825   if test "$cross_compiling" = yes; then
15826   # Depending upon the size, compute the lo and hi bounds.
15827 cat >conftest.$ac_ext <<_ACEOF
15828 #line $LINENO "configure"
15829 #include "confdefs.h"
15830 $ac_includes_default
15831 struct { char filler; long long int field; } pgac_struct;
15832 #ifdef F77_DUMMY_MAIN
15833 #  ifdef __cplusplus
15834      extern "C"
15835 #  endif
15836    int F77_DUMMY_MAIN() { return 1; }
15837 #endif
15838 int
15839 main ()
15840 {
15841 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15842 test_array [0] = 0
15843
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850   (eval $ac_compile) 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -s conftest.$ac_objext'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; }; then
15860   ac_lo=0 ac_mid=0
15861   while :; do
15862     cat >conftest.$ac_ext <<_ACEOF
15863 #line $LINENO "configure"
15864 #include "confdefs.h"
15865 $ac_includes_default
15866 struct { char filler; long long int field; } pgac_struct;
15867 #ifdef F77_DUMMY_MAIN
15868 #  ifdef __cplusplus
15869      extern "C"
15870 #  endif
15871    int F77_DUMMY_MAIN() { return 1; }
15872 #endif
15873 int
15874 main ()
15875 {
15876 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15877 test_array [0] = 0
15878
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885   (eval $ac_compile) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_hi=$ac_mid; break
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 cat conftest.$ac_ext >&5
15899 ac_lo=`expr $ac_mid + 1`
15900                     if test $ac_lo -le $ac_mid; then
15901                       ac_lo= ac_hi=
15902                       break
15903                     fi
15904                     ac_mid=`expr 2 '*' $ac_mid + 1`
15905 fi
15906 rm -f conftest.$ac_objext conftest.$ac_ext
15907   done
15908 else
15909   echo "$as_me: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 cat >conftest.$ac_ext <<_ACEOF
15912 #line $LINENO "configure"
15913 #include "confdefs.h"
15914 $ac_includes_default
15915 struct { char filler; long long int field; } pgac_struct;
15916 #ifdef F77_DUMMY_MAIN
15917 #  ifdef __cplusplus
15918      extern "C"
15919 #  endif
15920    int F77_DUMMY_MAIN() { return 1; }
15921 #endif
15922 int
15923 main ()
15924 {
15925 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15926 test_array [0] = 0
15927
15928   ;
15929   return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934   (eval $ac_compile) 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } &&
15938          { ac_try='test -s conftest.$ac_objext'
15939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940   (eval $ac_try) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; }; then
15944   ac_hi=-1 ac_mid=-1
15945   while :; do
15946     cat >conftest.$ac_ext <<_ACEOF
15947 #line $LINENO "configure"
15948 #include "confdefs.h"
15949 $ac_includes_default
15950 struct { char filler; long long int field; } pgac_struct;
15951 #ifdef F77_DUMMY_MAIN
15952 #  ifdef __cplusplus
15953      extern "C"
15954 #  endif
15955    int F77_DUMMY_MAIN() { return 1; }
15956 #endif
15957 int
15958 main ()
15959 {
15960 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15961 test_array [0] = 0
15962
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969   (eval $ac_compile) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } &&
15973          { ac_try='test -s conftest.$ac_objext'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; }; then
15979   ac_lo=$ac_mid; break
15980 else
15981   echo "$as_me: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15983 ac_hi=`expr '(' $ac_mid ')' - 1`
15984                        if test $ac_mid -le $ac_hi; then
15985                          ac_lo= ac_hi=
15986                          break
15987                        fi
15988                        ac_mid=`expr 2 '*' $ac_mid`
15989 fi
15990 rm -f conftest.$ac_objext conftest.$ac_ext
15991   done
15992 else
15993   echo "$as_me: failed program was:" >&5
15994 cat conftest.$ac_ext >&5
15995 ac_lo= ac_hi=
15996 fi
15997 rm -f conftest.$ac_objext conftest.$ac_ext
15998 fi
15999 rm -f conftest.$ac_objext conftest.$ac_ext
16000 # Binary search between lo and hi bounds.
16001 while test "x$ac_lo" != "x$ac_hi"; do
16002   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16003   cat >conftest.$ac_ext <<_ACEOF
16004 #line $LINENO "configure"
16005 #include "confdefs.h"
16006 $ac_includes_default
16007 struct { char filler; long long int field; } pgac_struct;
16008 #ifdef F77_DUMMY_MAIN
16009 #  ifdef __cplusplus
16010      extern "C"
16011 #  endif
16012    int F77_DUMMY_MAIN() { return 1; }
16013 #endif
16014 int
16015 main ()
16016 {
16017 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16018 test_array [0] = 0
16019
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 rm -f conftest.$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026   (eval $ac_compile) 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); } &&
16030          { ac_try='test -s conftest.$ac_objext'
16031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032   (eval $ac_try) 2>&5
16033   ac_status=$?
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); }; }; then
16036   ac_hi=$ac_mid
16037 else
16038   echo "$as_me: failed program was:" >&5
16039 cat conftest.$ac_ext >&5
16040 ac_lo=`expr '(' $ac_mid ')' + 1`
16041 fi
16042 rm -f conftest.$ac_objext conftest.$ac_ext
16043 done
16044 case $ac_lo in
16045 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16046 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16047 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16048    { (exit 1); exit 1; }; } ;;
16049 esac
16050 else
16051   if test "$cross_compiling" = yes; then
16052   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16053 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16054    { (exit 1); exit 1; }; }
16055 else
16056   cat >conftest.$ac_ext <<_ACEOF
16057 #line $LINENO "configure"
16058 #include "confdefs.h"
16059 $ac_includes_default
16060 struct { char filler; long long int field; } pgac_struct;
16061 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16062 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16063 #include <stdio.h>
16064 #include <stdlib.h>
16065 #ifdef F77_DUMMY_MAIN
16066 #  ifdef __cplusplus
16067      extern "C"
16068 #  endif
16069    int F77_DUMMY_MAIN() { return 1; }
16070 #endif
16071 int
16072 main ()
16073 {
16074
16075   FILE *f = fopen ("conftest.val", "w");
16076   if (! f)
16077     exit (1);
16078   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16079     {
16080       long i = longval ();
16081       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16082         exit (1);
16083       fprintf (f, "%ld\n", i);
16084     }
16085   else
16086     {
16087       unsigned long i = ulongval ();
16088       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16089         exit (1);
16090       fprintf (f, "%lu\n", i);
16091     }
16092   exit (ferror (f) || fclose (f) != 0);
16093
16094   ;
16095   return 0;
16096 }
16097 _ACEOF
16098 rm -f conftest$ac_exeext
16099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16100   (eval $ac_link) 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   pgac_cv_alignof_long_long_int=`cat conftest.val`
16110 else
16111   echo "$as_me: program exited with status $ac_status" >&5
16112 echo "$as_me: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 ( exit $ac_status )
16115 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16116 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16117    { (exit 1); exit 1; }; }
16118 fi
16119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16120 fi
16121 fi
16122 rm -f conftest.val
16123 else
16124   pgac_cv_alignof_long_long_int=0
16125 fi
16126 fi
16127 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16128 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16129 cat >>confdefs.h <<_ACEOF
16130 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16131 _ACEOF
16132
16133
16134 fi
16135 echo "$as_me:$LINENO: checking for double" >&5
16136 echo $ECHO_N "checking for double... $ECHO_C" >&6
16137 if test "${ac_cv_type_double+set}" = set; then
16138   echo $ECHO_N "(cached) $ECHO_C" >&6
16139 else
16140   cat >conftest.$ac_ext <<_ACEOF
16141 #line $LINENO "configure"
16142 #include "confdefs.h"
16143 $ac_includes_default
16144 #ifdef F77_DUMMY_MAIN
16145 #  ifdef __cplusplus
16146      extern "C"
16147 #  endif
16148    int F77_DUMMY_MAIN() { return 1; }
16149 #endif
16150 int
16151 main ()
16152 {
16153 if ((double *) 0)
16154   return 0;
16155 if (sizeof (double))
16156   return 0;
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163   (eval $ac_compile) 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -s conftest.$ac_objext'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; }; then
16173   ac_cv_type_double=yes
16174 else
16175   echo "$as_me: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16177 ac_cv_type_double=no
16178 fi
16179 rm -f conftest.$ac_objext conftest.$ac_ext
16180 fi
16181 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16182 echo "${ECHO_T}$ac_cv_type_double" >&6
16183
16184 echo "$as_me:$LINENO: checking alignment of double" >&5
16185 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16186 if test "${pgac_cv_alignof_double+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   if test "$ac_cv_type_double" = yes; then
16190   if test "$cross_compiling" = yes; then
16191   # Depending upon the size, compute the lo and hi bounds.
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16195 $ac_includes_default
16196 struct { char filler; double field; } pgac_struct;
16197 #ifdef F77_DUMMY_MAIN
16198 #  ifdef __cplusplus
16199      extern "C"
16200 #  endif
16201    int F77_DUMMY_MAIN() { return 1; }
16202 #endif
16203 int
16204 main ()
16205 {
16206 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16207 test_array [0] = 0
16208
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215   (eval $ac_compile) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } &&
16219          { ac_try='test -s conftest.$ac_objext'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; }; then
16225   ac_lo=0 ac_mid=0
16226   while :; do
16227     cat >conftest.$ac_ext <<_ACEOF
16228 #line $LINENO "configure"
16229 #include "confdefs.h"
16230 $ac_includes_default
16231 struct { char filler; double field; } pgac_struct;
16232 #ifdef F77_DUMMY_MAIN
16233 #  ifdef __cplusplus
16234      extern "C"
16235 #  endif
16236    int F77_DUMMY_MAIN() { return 1; }
16237 #endif
16238 int
16239 main ()
16240 {
16241 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16242 test_array [0] = 0
16243
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250   (eval $ac_compile) 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); } &&
16254          { ac_try='test -s conftest.$ac_objext'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   ac_hi=$ac_mid; break
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16264 ac_lo=`expr $ac_mid + 1`
16265                     if test $ac_lo -le $ac_mid; then
16266                       ac_lo= ac_hi=
16267                       break
16268                     fi
16269                     ac_mid=`expr 2 '*' $ac_mid + 1`
16270 fi
16271 rm -f conftest.$ac_objext conftest.$ac_ext
16272   done
16273 else
16274   echo "$as_me: failed program was:" >&5
16275 cat conftest.$ac_ext >&5
16276 cat >conftest.$ac_ext <<_ACEOF
16277 #line $LINENO "configure"
16278 #include "confdefs.h"
16279 $ac_includes_default
16280 struct { char filler; double field; } pgac_struct;
16281 #ifdef F77_DUMMY_MAIN
16282 #  ifdef __cplusplus
16283      extern "C"
16284 #  endif
16285    int F77_DUMMY_MAIN() { return 1; }
16286 #endif
16287 int
16288 main ()
16289 {
16290 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16291 test_array [0] = 0
16292
16293   ;
16294   return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299   (eval $ac_compile) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -s conftest.$ac_objext'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   ac_hi=-1 ac_mid=-1
16310   while :; do
16311     cat >conftest.$ac_ext <<_ACEOF
16312 #line $LINENO "configure"
16313 #include "confdefs.h"
16314 $ac_includes_default
16315 struct { char filler; double field; } pgac_struct;
16316 #ifdef F77_DUMMY_MAIN
16317 #  ifdef __cplusplus
16318      extern "C"
16319 #  endif
16320    int F77_DUMMY_MAIN() { return 1; }
16321 #endif
16322 int
16323 main ()
16324 {
16325 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16326 test_array [0] = 0
16327
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16334   (eval $ac_compile) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } &&
16338          { ac_try='test -s conftest.$ac_objext'
16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340   (eval $ac_try) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; }; then
16344   ac_lo=$ac_mid; break
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 cat conftest.$ac_ext >&5
16348 ac_hi=`expr '(' $ac_mid ')' - 1`
16349                        if test $ac_mid -le $ac_hi; then
16350                          ac_lo= ac_hi=
16351                          break
16352                        fi
16353                        ac_mid=`expr 2 '*' $ac_mid`
16354 fi
16355 rm -f conftest.$ac_objext conftest.$ac_ext
16356   done
16357 else
16358   echo "$as_me: failed program was:" >&5
16359 cat conftest.$ac_ext >&5
16360 ac_lo= ac_hi=
16361 fi
16362 rm -f conftest.$ac_objext conftest.$ac_ext
16363 fi
16364 rm -f conftest.$ac_objext conftest.$ac_ext
16365 # Binary search between lo and hi bounds.
16366 while test "x$ac_lo" != "x$ac_hi"; do
16367   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16368   cat >conftest.$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16370 #include "confdefs.h"
16371 $ac_includes_default
16372 struct { char filler; double field; } pgac_struct;
16373 #ifdef F77_DUMMY_MAIN
16374 #  ifdef __cplusplus
16375      extern "C"
16376 #  endif
16377    int F77_DUMMY_MAIN() { return 1; }
16378 #endif
16379 int
16380 main ()
16381 {
16382 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16383 test_array [0] = 0
16384
16385   ;
16386   return 0;
16387 }
16388 _ACEOF
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391   (eval $ac_compile) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); } &&
16395          { ac_try='test -s conftest.$ac_objext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   ac_hi=$ac_mid
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 ac_lo=`expr '(' $ac_mid ')' + 1`
16406 fi
16407 rm -f conftest.$ac_objext conftest.$ac_ext
16408 done
16409 case $ac_lo in
16410 ?*) pgac_cv_alignof_double=$ac_lo;;
16411 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16412 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16413    { (exit 1); exit 1; }; } ;;
16414 esac
16415 else
16416   if test "$cross_compiling" = yes; then
16417   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16418 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16419    { (exit 1); exit 1; }; }
16420 else
16421   cat >conftest.$ac_ext <<_ACEOF
16422 #line $LINENO "configure"
16423 #include "confdefs.h"
16424 $ac_includes_default
16425 struct { char filler; double field; } pgac_struct;
16426 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16427 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16428 #include <stdio.h>
16429 #include <stdlib.h>
16430 #ifdef F77_DUMMY_MAIN
16431 #  ifdef __cplusplus
16432      extern "C"
16433 #  endif
16434    int F77_DUMMY_MAIN() { return 1; }
16435 #endif
16436 int
16437 main ()
16438 {
16439
16440   FILE *f = fopen ("conftest.val", "w");
16441   if (! f)
16442     exit (1);
16443   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16444     {
16445       long i = longval ();
16446       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16447         exit (1);
16448       fprintf (f, "%ld\n", i);
16449     }
16450   else
16451     {
16452       unsigned long i = ulongval ();
16453       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16454         exit (1);
16455       fprintf (f, "%lu\n", i);
16456     }
16457   exit (ferror (f) || fclose (f) != 0);
16458
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465   (eval $ac_link) 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   pgac_cv_alignof_double=`cat conftest.val`
16475 else
16476   echo "$as_me: program exited with status $ac_status" >&5
16477 echo "$as_me: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 ( exit $ac_status )
16480 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16481 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16482    { (exit 1); exit 1; }; }
16483 fi
16484 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485 fi
16486 fi
16487 rm -f conftest.val
16488 else
16489   pgac_cv_alignof_double=0
16490 fi
16491 fi
16492 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16493 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16494 cat >>confdefs.h <<_ACEOF
16495 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16496 _ACEOF
16497
16498
16499
16500 # Compute maximum alignment of any basic type.
16501 # We assume long's alignment is at least as strong as char, short, or int;
16502 # but we must check long long (if it exists) and double.
16503
16504 MAX_ALIGNOF=$pgac_cv_alignof_long
16505 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16506   MAX_ALIGNOF=$pgac_cv_alignof_double
16507 fi
16508 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16509   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16510 fi
16511
16512 cat >>confdefs.h <<_ACEOF
16513 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16514 _ACEOF
16515
16516
16517
16518 # Some platforms predefine the types int8, int16, etc.  Only check
16519 # a (hopefully) representative subset.
16520 echo "$as_me:$LINENO: checking for int8" >&5
16521 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16522 if test "${ac_cv_type_int8+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   cat >conftest.$ac_ext <<_ACEOF
16526 #line $LINENO "configure"
16527 #include "confdefs.h"
16528 #include <stdio.h>
16529 #ifdef HAVE_SUPPORTDEFS_H
16530 #include <SupportDefs.h>
16531 #endif
16532
16533 #ifdef F77_DUMMY_MAIN
16534 #  ifdef __cplusplus
16535      extern "C"
16536 #  endif
16537    int F77_DUMMY_MAIN() { return 1; }
16538 #endif
16539 int
16540 main ()
16541 {
16542 if ((int8 *) 0)
16543   return 0;
16544 if (sizeof (int8))
16545   return 0;
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552   (eval $ac_compile) 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } &&
16556          { ac_try='test -s conftest.$ac_objext'
16557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558   (eval $ac_try) 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; }; then
16562   ac_cv_type_int8=yes
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16566 ac_cv_type_int8=no
16567 fi
16568 rm -f conftest.$ac_objext conftest.$ac_ext
16569 fi
16570 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16571 echo "${ECHO_T}$ac_cv_type_int8" >&6
16572 if test $ac_cv_type_int8 = yes; then
16573
16574 cat >>confdefs.h <<_ACEOF
16575 #define HAVE_INT8 1
16576 _ACEOF
16577
16578
16579 fi
16580 echo "$as_me:$LINENO: checking for uint8" >&5
16581 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16582 if test "${ac_cv_type_uint8+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   cat >conftest.$ac_ext <<_ACEOF
16586 #line $LINENO "configure"
16587 #include "confdefs.h"
16588 #include <stdio.h>
16589 #ifdef HAVE_SUPPORTDEFS_H
16590 #include <SupportDefs.h>
16591 #endif
16592
16593 #ifdef F77_DUMMY_MAIN
16594 #  ifdef __cplusplus
16595      extern "C"
16596 #  endif
16597    int F77_DUMMY_MAIN() { return 1; }
16598 #endif
16599 int
16600 main ()
16601 {
16602 if ((uint8 *) 0)
16603   return 0;
16604 if (sizeof (uint8))
16605   return 0;
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612   (eval $ac_compile) 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } &&
16616          { ac_try='test -s conftest.$ac_objext'
16617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618   (eval $ac_try) 2>&5
16619   ac_status=$?
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); }; }; then
16622   ac_cv_type_uint8=yes
16623 else
16624   echo "$as_me: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16626 ac_cv_type_uint8=no
16627 fi
16628 rm -f conftest.$ac_objext conftest.$ac_ext
16629 fi
16630 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16631 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16632 if test $ac_cv_type_uint8 = yes; then
16633
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_UINT8 1
16636 _ACEOF
16637
16638
16639 fi
16640 echo "$as_me:$LINENO: checking for int64" >&5
16641 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16642 if test "${ac_cv_type_int64+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645   cat >conftest.$ac_ext <<_ACEOF
16646 #line $LINENO "configure"
16647 #include "confdefs.h"
16648 #include <stdio.h>
16649 #ifdef HAVE_SUPPORTDEFS_H
16650 #include <SupportDefs.h>
16651 #endif
16652
16653 #ifdef F77_DUMMY_MAIN
16654 #  ifdef __cplusplus
16655      extern "C"
16656 #  endif
16657    int F77_DUMMY_MAIN() { return 1; }
16658 #endif
16659 int
16660 main ()
16661 {
16662 if ((int64 *) 0)
16663   return 0;
16664 if (sizeof (int64))
16665   return 0;
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672   (eval $ac_compile) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -s conftest.$ac_objext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_cv_type_int64=yes
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 ac_cv_type_int64=no
16687 fi
16688 rm -f conftest.$ac_objext conftest.$ac_ext
16689 fi
16690 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16691 echo "${ECHO_T}$ac_cv_type_int64" >&6
16692 if test $ac_cv_type_int64 = yes; then
16693
16694 cat >>confdefs.h <<_ACEOF
16695 #define HAVE_INT64 1
16696 _ACEOF
16697
16698
16699 fi
16700 echo "$as_me:$LINENO: checking for uint64" >&5
16701 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16702 if test "${ac_cv_type_uint64+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16707 #include "confdefs.h"
16708 #include <stdio.h>
16709 #ifdef HAVE_SUPPORTDEFS_H
16710 #include <SupportDefs.h>
16711 #endif
16712
16713 #ifdef F77_DUMMY_MAIN
16714 #  ifdef __cplusplus
16715      extern "C"
16716 #  endif
16717    int F77_DUMMY_MAIN() { return 1; }
16718 #endif
16719 int
16720 main ()
16721 {
16722 if ((uint64 *) 0)
16723   return 0;
16724 if (sizeof (uint64))
16725   return 0;
16726   ;
16727   return 0;
16728 }
16729 _ACEOF
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732   (eval $ac_compile) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -s conftest.$ac_objext'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; }; then
16742   ac_cv_type_uint64=yes
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 cat conftest.$ac_ext >&5
16746 ac_cv_type_uint64=no
16747 fi
16748 rm -f conftest.$ac_objext conftest.$ac_ext
16749 fi
16750 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16751 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16752 if test $ac_cv_type_uint64 = yes; then
16753
16754 cat >>confdefs.h <<_ACEOF
16755 #define HAVE_UINT64 1
16756 _ACEOF
16757
16758
16759 fi
16760
16761
16762 # We also check for sig_atomic_t, which *should* be defined per ANSI
16763 # C, but is missing on some old platforms.
16764 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16765 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16766 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16771 #include "confdefs.h"
16772 #include <signal.h>
16773
16774 #ifdef F77_DUMMY_MAIN
16775 #  ifdef __cplusplus
16776      extern "C"
16777 #  endif
16778    int F77_DUMMY_MAIN() { return 1; }
16779 #endif
16780 int
16781 main ()
16782 {
16783 if ((sig_atomic_t *) 0)
16784   return 0;
16785 if (sizeof (sig_atomic_t))
16786   return 0;
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793   (eval $ac_compile) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } &&
16797          { ac_try='test -s conftest.$ac_objext'
16798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799   (eval $ac_try) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; }; then
16803   ac_cv_type_sig_atomic_t=yes
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 ac_cv_type_sig_atomic_t=no
16808 fi
16809 rm -f conftest.$ac_objext conftest.$ac_ext
16810 fi
16811 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16812 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16813 if test $ac_cv_type_sig_atomic_t = yes; then
16814
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_SIG_ATOMIC_T 1
16817 _ACEOF
16818
16819
16820 fi
16821
16822
16823
16824 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16825 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16826 if test "${pgac_cv_func_posix_signals+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16831 #include "confdefs.h"
16832 #include <signal.h>
16833
16834 #ifdef F77_DUMMY_MAIN
16835 #  ifdef __cplusplus
16836      extern "C"
16837 #  endif
16838    int F77_DUMMY_MAIN() { return 1; }
16839 #endif
16840 int
16841 main ()
16842 {
16843 struct sigaction act, oact;
16844 sigemptyset(&act.sa_mask);
16845 act.sa_flags = SA_RESTART;
16846 sigaction(0, &act, &oact);
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853   (eval $ac_link) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } &&
16857          { ac_try='test -s conftest$ac_exeext'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   pgac_cv_func_posix_signals=yes
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16867 pgac_cv_func_posix_signals=no
16868 fi
16869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16870 fi
16871 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16872 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16873 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16874
16875 cat >>confdefs.h <<\_ACEOF
16876 #define HAVE_POSIX_SIGNALS
16877 _ACEOF
16878
16879 fi
16880 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16881
16882 if test $ac_cv_func_fseeko = yes; then
16883 # Check whether --enable-largefile or --disable-largefile was given.
16884 if test "${enable_largefile+set}" = set; then
16885   enableval="$enable_largefile"
16886
16887 fi;
16888 if test "$enable_largefile" != no; then
16889
16890   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16891 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16892 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16893   echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895   ac_cv_sys_largefile_CC=no
16896      if test "$GCC" != yes; then
16897        ac_save_CC=$CC
16898        while :; do
16899          # IRIX 6.2 and later do not support large files by default,
16900          # so use the C compiler's -n32 option if that helps.
16901          cat >conftest.$ac_ext <<_ACEOF
16902 #line $LINENO "configure"
16903 #include "confdefs.h"
16904 #include <sys/types.h>
16905  /* Check that off_t can represent 2**63 - 1 correctly.
16906     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16907     since some C++ compilers masquerading as C compilers
16908     incorrectly reject 9223372036854775807.  */
16909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16910   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16911                        && LARGE_OFF_T % 2147483647 == 1)
16912                       ? 1 : -1];
16913 #ifdef F77_DUMMY_MAIN
16914 #  ifdef __cplusplus
16915      extern "C"
16916 #  endif
16917    int F77_DUMMY_MAIN() { return 1; }
16918 #endif
16919 int
16920 main ()
16921 {
16922
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927          rm -f conftest.$ac_objext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929   (eval $ac_compile) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -s conftest.$ac_objext'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   break
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 fi
16944 rm -f conftest.$ac_objext
16945          CC="$CC -n32"
16946          rm -f conftest.$ac_objext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16948   (eval $ac_compile) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); } &&
16952          { ac_try='test -s conftest.$ac_objext'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; }; then
16958   ac_cv_sys_largefile_CC=' -n32'; break
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 cat conftest.$ac_ext >&5
16962 fi
16963 rm -f conftest.$ac_objext
16964          break
16965        done
16966        CC=$ac_save_CC
16967        rm -f conftest.$ac_ext
16968     fi
16969 fi
16970 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16971 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16972   if test "$ac_cv_sys_largefile_CC" != no; then
16973     CC=$CC$ac_cv_sys_largefile_CC
16974   fi
16975
16976   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16977 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16978 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   while :; do
16982   ac_cv_sys_file_offset_bits=no
16983   cat >conftest.$ac_ext <<_ACEOF
16984 #line $LINENO "configure"
16985 #include "confdefs.h"
16986 #include <sys/types.h>
16987  /* Check that off_t can represent 2**63 - 1 correctly.
16988     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16989     since some C++ compilers masquerading as C compilers
16990     incorrectly reject 9223372036854775807.  */
16991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16992   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16993                        && LARGE_OFF_T % 2147483647 == 1)
16994                       ? 1 : -1];
16995 #ifdef F77_DUMMY_MAIN
16996 #  ifdef __cplusplus
16997      extern "C"
16998 #  endif
16999    int F77_DUMMY_MAIN() { return 1; }
17000 #endif
17001 int
17002 main ()
17003 {
17004
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011   (eval $ac_compile) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } &&
17015          { ac_try='test -s conftest.$ac_objext'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   break
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 cat conftest.$ac_ext >&5
17025 fi
17026 rm -f conftest.$ac_objext conftest.$ac_ext
17027   cat >conftest.$ac_ext <<_ACEOF
17028 #line $LINENO "configure"
17029 #include "confdefs.h"
17030 #define _FILE_OFFSET_BITS 64
17031 #include <sys/types.h>
17032  /* Check that off_t can represent 2**63 - 1 correctly.
17033     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17034     since some C++ compilers masquerading as C compilers
17035     incorrectly reject 9223372036854775807.  */
17036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17037   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17038                        && LARGE_OFF_T % 2147483647 == 1)
17039                       ? 1 : -1];
17040 #ifdef F77_DUMMY_MAIN
17041 #  ifdef __cplusplus
17042      extern "C"
17043 #  endif
17044    int F77_DUMMY_MAIN() { return 1; }
17045 #endif
17046 int
17047 main ()
17048 {
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17056   (eval $ac_compile) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } &&
17060          { ac_try='test -s conftest.$ac_objext'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; }; then
17066   ac_cv_sys_file_offset_bits=64; break
17067 else
17068   echo "$as_me: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17070 fi
17071 rm -f conftest.$ac_objext conftest.$ac_ext
17072   break
17073 done
17074 fi
17075 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17076 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17077 if test "$ac_cv_sys_file_offset_bits" != no; then
17078
17079 cat >>confdefs.h <<_ACEOF
17080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17081 _ACEOF
17082
17083 fi
17084 rm -f conftest*
17085   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17086 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17087 if test "${ac_cv_sys_large_files+set}" = set; then
17088   echo $ECHO_N "(cached) $ECHO_C" >&6
17089 else
17090   while :; do
17091   ac_cv_sys_large_files=no
17092   cat >conftest.$ac_ext <<_ACEOF
17093 #line $LINENO "configure"
17094 #include "confdefs.h"
17095 #include <sys/types.h>
17096  /* Check that off_t can represent 2**63 - 1 correctly.
17097     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17098     since some C++ compilers masquerading as C compilers
17099     incorrectly reject 9223372036854775807.  */
17100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17101   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17102                        && LARGE_OFF_T % 2147483647 == 1)
17103                       ? 1 : -1];
17104 #ifdef F77_DUMMY_MAIN
17105 #  ifdef __cplusplus
17106      extern "C"
17107 #  endif
17108    int F77_DUMMY_MAIN() { return 1; }
17109 #endif
17110 int
17111 main ()
17112 {
17113
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120   (eval $ac_compile) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); } &&
17124          { ac_try='test -s conftest.$ac_objext'
17125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126   (eval $ac_try) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; }; then
17130   break
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 cat conftest.$ac_ext >&5
17134 fi
17135 rm -f conftest.$ac_objext conftest.$ac_ext
17136   cat >conftest.$ac_ext <<_ACEOF
17137 #line $LINENO "configure"
17138 #include "confdefs.h"
17139 #define _LARGE_FILES 1
17140 #include <sys/types.h>
17141  /* Check that off_t can represent 2**63 - 1 correctly.
17142     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17143     since some C++ compilers masquerading as C compilers
17144     incorrectly reject 9223372036854775807.  */
17145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17146   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17147                        && LARGE_OFF_T % 2147483647 == 1)
17148                       ? 1 : -1];
17149 #ifdef F77_DUMMY_MAIN
17150 #  ifdef __cplusplus
17151      extern "C"
17152 #  endif
17153    int F77_DUMMY_MAIN() { return 1; }
17154 #endif
17155 int
17156 main ()
17157 {
17158
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165   (eval $ac_compile) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } &&
17169          { ac_try='test -s conftest.$ac_objext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_cv_sys_large_files=1; break
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17179 fi
17180 rm -f conftest.$ac_objext conftest.$ac_ext
17181   break
17182 done
17183 fi
17184 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17185 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17186 if test "$ac_cv_sys_large_files" != no; then
17187
17188 cat >>confdefs.h <<_ACEOF
17189 #define _LARGE_FILES $ac_cv_sys_large_files
17190 _ACEOF
17191
17192 fi
17193 rm -f conftest*
17194 fi
17195
17196 fi
17197
17198
17199 # Select semaphore implementation type.
17200 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17201
17202 cat >>confdefs.h <<\_ACEOF
17203 #define USE_NAMED_POSIX_SEMAPHORES 1
17204 _ACEOF
17205
17206   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17207 else
17208   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17209
17210 cat >>confdefs.h <<\_ACEOF
17211 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17212 _ACEOF
17213
17214     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17215   else
17216
17217 cat >>confdefs.h <<\_ACEOF
17218 #define USE_SYSV_SEMAPHORES 1
17219 _ACEOF
17220
17221     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17222   fi
17223 fi
17224
17225
17226 # Select shared-memory implementation type.
17227
17228 cat >>confdefs.h <<\_ACEOF
17229 #define USE_SYSV_SHARED_MEMORY 1
17230 _ACEOF
17231
17232 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17233
17234
17235 if test "$enable_nls" = yes ; then
17236
17237   echo "$as_me:$LINENO: checking for library containing gettext" >&5
17238 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17239 if test "${ac_cv_search_gettext+set}" = set; then
17240   echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242   ac_func_search_save_LIBS=$LIBS
17243 ac_cv_search_gettext=no
17244 cat >conftest.$ac_ext <<_ACEOF
17245 #line $LINENO "configure"
17246 #include "confdefs.h"
17247
17248 /* Override any gcc2 internal prototype to avoid an error.  */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 /* We use char because int might match the return type of a gcc2
17253    builtin and then its argument prototype would still apply.  */
17254 char gettext ();
17255 #ifdef F77_DUMMY_MAIN
17256 #  ifdef __cplusplus
17257      extern "C"
17258 #  endif
17259    int F77_DUMMY_MAIN() { return 1; }
17260 #endif
17261 int
17262 main ()
17263 {
17264 gettext ();
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271   (eval $ac_link) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   ac_cv_search_gettext="none required"
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 cat conftest.$ac_ext >&5
17285 fi
17286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17287 if test "$ac_cv_search_gettext" = no; then
17288   for ac_lib in intl; do
17289     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17290     cat >conftest.$ac_ext <<_ACEOF
17291 #line $LINENO "configure"
17292 #include "confdefs.h"
17293
17294 /* Override any gcc2 internal prototype to avoid an error.  */
17295 #ifdef __cplusplus
17296 extern "C"
17297 #endif
17298 /* We use char because int might match the return type of a gcc2
17299    builtin and then its argument prototype would still apply.  */
17300 char gettext ();
17301 #ifdef F77_DUMMY_MAIN
17302 #  ifdef __cplusplus
17303      extern "C"
17304 #  endif
17305    int F77_DUMMY_MAIN() { return 1; }
17306 #endif
17307 int
17308 main ()
17309 {
17310 gettext ();
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317   (eval $ac_link) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); } &&
17321          { ac_try='test -s conftest$ac_exeext'
17322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323   (eval $ac_try) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_search_gettext="-l$ac_lib"
17328 break
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 cat conftest.$ac_ext >&5
17332 fi
17333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17334   done
17335 fi
17336 LIBS=$ac_func_search_save_LIBS
17337 fi
17338 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17339 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17340 if test "$ac_cv_search_gettext" != no; then
17341   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17342
17343 else
17344   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17345 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17346    { (exit 1); exit 1; }; }
17347 fi
17348
17349   if test "${ac_cv_header_libintl_h+set}" = set; then
17350   echo "$as_me:$LINENO: checking for libintl.h" >&5
17351 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17352 if test "${ac_cv_header_libintl_h+set}" = set; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 fi
17355 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17356 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17357 else
17358   # Is the header compilable?
17359 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17360 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17362 #line $LINENO "configure"
17363 #include "confdefs.h"
17364 $ac_includes_default
17365 #include <libintl.h>
17366 _ACEOF
17367 rm -f conftest.$ac_objext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17369   (eval $ac_compile) 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } &&
17373          { ac_try='test -s conftest.$ac_objext'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; }; then
17379   ac_header_compiler=yes
17380 else
17381   echo "$as_me: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17383 ac_header_compiler=no
17384 fi
17385 rm -f conftest.$ac_objext conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17387 echo "${ECHO_T}$ac_header_compiler" >&6
17388
17389 # Is the header present?
17390 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17391 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17392 cat >conftest.$ac_ext <<_ACEOF
17393 #line $LINENO "configure"
17394 #include "confdefs.h"
17395 #include <libintl.h>
17396 _ACEOF
17397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17399   ac_status=$?
17400   egrep -v '^ *\+' conftest.er1 >conftest.err
17401   rm -f conftest.er1
17402   cat conftest.err >&5
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } >/dev/null; then
17405   if test -s conftest.err; then
17406     ac_cpp_err=$ac_c_preproc_warn_flag
17407   else
17408     ac_cpp_err=
17409   fi
17410 else
17411   ac_cpp_err=yes
17412 fi
17413 if test -z "$ac_cpp_err"; then
17414   ac_header_preproc=yes
17415 else
17416   echo "$as_me: failed program was:" >&5
17417   cat conftest.$ac_ext >&5
17418   ac_header_preproc=no
17419 fi
17420 rm -f conftest.err conftest.$ac_ext
17421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17422 echo "${ECHO_T}$ac_header_preproc" >&6
17423
17424 # So?  What about this header?
17425 case $ac_header_compiler:$ac_header_preproc in
17426   yes:no )
17427     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17428 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17429     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17430 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17431   no:yes )
17432     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17433 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17434     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17435 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17436     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17437 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17438 esac
17439 echo "$as_me:$LINENO: checking for libintl.h" >&5
17440 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17441 if test "${ac_cv_header_libintl_h+set}" = set; then
17442   echo $ECHO_N "(cached) $ECHO_C" >&6
17443 else
17444   ac_cv_header_libintl_h=$ac_header_preproc
17445 fi
17446 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17447 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17448
17449 fi
17450 if test $ac_cv_header_libintl_h = yes; then
17451   :
17452 else
17453   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17454 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17455    { (exit 1); exit 1; }; }
17456 fi
17457
17458
17459   for ac_prog in msgfmt
17460 do
17461   # Extract the first word of "$ac_prog", so it can be a program name with args.
17462 set dummy $ac_prog; ac_word=$2
17463 echo "$as_me:$LINENO: checking for $ac_word" >&5
17464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17465 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17466   echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468   if test -n "$MSGFMT"; then
17469   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17470 else
17471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17473 do
17474   IFS=$as_save_IFS
17475   test -z "$as_dir" && as_dir=.
17476   for ac_exec_ext in '' $ac_executable_extensions; do
17477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478     ac_cv_prog_MSGFMT="$ac_prog"
17479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17480     break 2
17481   fi
17482 done
17483 done
17484
17485 fi
17486 fi
17487 MSGFMT=$ac_cv_prog_MSGFMT
17488 if test -n "$MSGFMT"; then
17489   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17490 echo "${ECHO_T}$MSGFMT" >&6
17491 else
17492   echo "$as_me:$LINENO: result: no" >&5
17493 echo "${ECHO_T}no" >&6
17494 fi
17495
17496   test -n "$MSGFMT" && break
17497 done
17498
17499   if test -z "$MSGFMT"; then
17500     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17501 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17502    { (exit 1); exit 1; }; }
17503   fi
17504   for ac_prog in msgmerge
17505 do
17506   # Extract the first word of "$ac_prog", so it can be a program name with args.
17507 set dummy $ac_prog; ac_word=$2
17508 echo "$as_me:$LINENO: checking for $ac_word" >&5
17509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17510 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17511   echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513   if test -n "$MSGMERGE"; then
17514   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17515 else
17516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17517 for as_dir in $PATH
17518 do
17519   IFS=$as_save_IFS
17520   test -z "$as_dir" && as_dir=.
17521   for ac_exec_ext in '' $ac_executable_extensions; do
17522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17523     ac_cv_prog_MSGMERGE="$ac_prog"
17524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17525     break 2
17526   fi
17527 done
17528 done
17529
17530 fi
17531 fi
17532 MSGMERGE=$ac_cv_prog_MSGMERGE
17533 if test -n "$MSGMERGE"; then
17534   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17535 echo "${ECHO_T}$MSGMERGE" >&6
17536 else
17537   echo "$as_me:$LINENO: result: no" >&5
17538 echo "${ECHO_T}no" >&6
17539 fi
17540
17541   test -n "$MSGMERGE" && break
17542 done
17543
17544   for ac_prog in xgettext
17545 do
17546   # Extract the first word of "$ac_prog", so it can be a program name with args.
17547 set dummy $ac_prog; ac_word=$2
17548 echo "$as_me:$LINENO: checking for $ac_word" >&5
17549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17550 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17551   echo $ECHO_N "(cached) $ECHO_C" >&6
17552 else
17553   if test -n "$XGETTEXT"; then
17554   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17555 else
17556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17557 for as_dir in $PATH
17558 do
17559   IFS=$as_save_IFS
17560   test -z "$as_dir" && as_dir=.
17561   for ac_exec_ext in '' $ac_executable_extensions; do
17562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17563     ac_cv_prog_XGETTEXT="$ac_prog"
17564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17565     break 2
17566   fi
17567 done
17568 done
17569
17570 fi
17571 fi
17572 XGETTEXT=$ac_cv_prog_XGETTEXT
17573 if test -n "$XGETTEXT"; then
17574   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17575 echo "${ECHO_T}$XGETTEXT" >&6
17576 else
17577   echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6
17579 fi
17580
17581   test -n "$XGETTEXT" && break
17582 done
17583
17584
17585   # Note: share/locale is always the default, independent of $datadir
17586   localedir='${prefix}/share/locale'
17587   if test x"$prefix" = x"NONE"; then
17588     exp_localedir="$ac_default_prefix/share/locale"
17589   else
17590     exp_localedir="$prefix/share/locale"
17591   fi
17592
17593
17594
17595 cat >>confdefs.h <<_ACEOF
17596 #define LOCALEDIR "$exp_localedir"
17597 _ACEOF
17598
17599
17600 fi
17601
17602 # Check for Tcl configuration script tclConfig.sh
17603 if test "$with_tcl" = yes; then
17604     for ac_prog in tclsh tcl
17605 do
17606   # Extract the first word of "$ac_prog", so it can be a program name with args.
17607 set dummy $ac_prog; ac_word=$2
17608 echo "$as_me:$LINENO: checking for $ac_word" >&5
17609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17610 if test "${ac_cv_path_TCLSH+set}" = set; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   case $TCLSH in
17614   [\\/]* | ?:[\\/]*)
17615   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17616   ;;
17617   *)
17618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17619 for as_dir in $PATH
17620 do
17621   IFS=$as_save_IFS
17622   test -z "$as_dir" && as_dir=.
17623   for ac_exec_ext in '' $ac_executable_extensions; do
17624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17625     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17627     break 2
17628   fi
17629 done
17630 done
17631
17632   ;;
17633 esac
17634 fi
17635 TCLSH=$ac_cv_path_TCLSH
17636
17637 if test -n "$TCLSH"; then
17638   echo "$as_me:$LINENO: result: $TCLSH" >&5
17639 echo "${ECHO_T}$TCLSH" >&6
17640 else
17641   echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17643 fi
17644
17645   test -n "$TCLSH" && break
17646 done
17647
17648 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17649 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17650 # Let user override test
17651 if test -z "$TCL_CONFIG_SH"; then
17652     pgac_test_dirs="$with_tclconfig"
17653
17654     set X $pgac_test_dirs; shift
17655     if test $# -eq 0; then
17656         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17657 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17658    { (exit 1); exit 1; }; }
17659         set X `echo 'puts $auto_path' | $TCLSH`; shift
17660     fi
17661
17662     for pgac_dir do
17663         if test -r "$pgac_dir/tclConfig.sh"; then
17664             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17665             break
17666         fi
17667     done
17668 fi
17669
17670 if test -z "$TCL_CONFIG_SH"; then
17671     echo "$as_me:$LINENO: result: no" >&5
17672 echo "${ECHO_T}no" >&6
17673     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17674 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17675    { (exit 1); exit 1; }; }
17676 else
17677     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17678 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17679 fi
17680
17681
17682
17683     . "$TCL_CONFIG_SH"
17684 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17685 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17686 eval TCL_LIBS=\"$TCL_LIBS\"
17687 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17688 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17689
17690     fi
17691
17692 #
17693 # Check for DocBook and tools
17694 #
17695 for ac_prog in onsgmls nsgmls
17696 do
17697   # Extract the first word of "$ac_prog", so it can be a program name with args.
17698 set dummy $ac_prog; ac_word=$2
17699 echo "$as_me:$LINENO: checking for $ac_word" >&5
17700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17701 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17702   echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704   if test -n "$NSGMLS"; then
17705   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17706 else
17707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17708 for as_dir in $PATH
17709 do
17710   IFS=$as_save_IFS
17711   test -z "$as_dir" && as_dir=.
17712   for ac_exec_ext in '' $ac_executable_extensions; do
17713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17714     ac_cv_prog_NSGMLS="$ac_prog"
17715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17716     break 2
17717   fi
17718 done
17719 done
17720
17721 fi
17722 fi
17723 NSGMLS=$ac_cv_prog_NSGMLS
17724 if test -n "$NSGMLS"; then
17725   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17726 echo "${ECHO_T}$NSGMLS" >&6
17727 else
17728   echo "$as_me:$LINENO: result: no" >&5
17729 echo "${ECHO_T}no" >&6
17730 fi
17731
17732   test -n "$NSGMLS" && break
17733 done
17734
17735 for ac_prog in openjade jade
17736 do
17737   # Extract the first word of "$ac_prog", so it can be a program name with args.
17738 set dummy $ac_prog; ac_word=$2
17739 echo "$as_me:$LINENO: checking for $ac_word" >&5
17740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17741 if test "${ac_cv_prog_JADE+set}" = set; then
17742   echo $ECHO_N "(cached) $ECHO_C" >&6
17743 else
17744   if test -n "$JADE"; then
17745   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17746 else
17747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17748 for as_dir in $PATH
17749 do
17750   IFS=$as_save_IFS
17751   test -z "$as_dir" && as_dir=.
17752   for ac_exec_ext in '' $ac_executable_extensions; do
17753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17754     ac_cv_prog_JADE="$ac_prog"
17755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17756     break 2
17757   fi
17758 done
17759 done
17760
17761 fi
17762 fi
17763 JADE=$ac_cv_prog_JADE
17764 if test -n "$JADE"; then
17765   echo "$as_me:$LINENO: result: $JADE" >&5
17766 echo "${ECHO_T}$JADE" >&6
17767 else
17768   echo "$as_me:$LINENO: result: no" >&5
17769 echo "${ECHO_T}no" >&6
17770 fi
17771
17772   test -n "$JADE" && break
17773 done
17774
17775
17776 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17777 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17778 if test "${pgac_cv_check_docbook+set}" = set; then
17779   echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781   cat >conftest.sgml <<EOF
17782 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17783 <book>
17784  <title>test</title>
17785  <chapter>
17786   <title>random</title>
17787    <sect1>
17788     <title>testsect</title>
17789     <para>text</para>
17790   </sect1>
17791  </chapter>
17792 </book>
17793 EOF
17794
17795 pgac_cv_check_docbook=no
17796
17797 if test -n "$NSGMLS"; then
17798   $NSGMLS -s conftest.sgml 1>&5 2>&1
17799   if test $? -eq 0; then
17800     pgac_cv_check_docbook=yes
17801   fi
17802 fi
17803 rm -f conftest.sgml
17804 fi
17805 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17806 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17807
17808 have_docbook=$pgac_cv_check_docbook
17809
17810
17811 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17812 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17813 if test "${pgac_cv_path_stylesheets+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   if test -n "$DOCBOOKSTYLE"; then
17817   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17818 else
17819   for pgac_prefix in /usr /usr/local /opt; do
17820     for pgac_infix in share lib; do
17821       for pgac_postfix in \
17822         sgml/stylesheets/nwalsh-modular \
17823         sgml/stylesheets/docbook \
17824                 sgml/docbook-dsssl \
17825         sgml/docbook/dsssl/modular \
17826         sgml/docbook/stylesheet/dsssl/modular \
17827         sgml/docbook/dsssl-stylesheets
17828       do
17829         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17830         if test -r "$pgac_candidate/html/docbook.dsl" \
17831            && test -r "$pgac_candidate/print/docbook.dsl"
17832         then
17833           pgac_cv_path_stylesheets=$pgac_candidate
17834           break 3
17835         fi
17836       done
17837     done
17838   done
17839 fi
17840 fi
17841
17842 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17843
17844 if test -n "$DOCBOOKSTYLE"; then
17845   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17846 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17847 else
17848   echo "$as_me:$LINENO: result: no" >&5
17849 echo "${ECHO_T}no" >&6
17850 fi
17851 if test -n "$DOCBOOKSTYLE"; then
17852   for ac_prog in collateindex.pl
17853 do
17854   # Extract the first word of "$ac_prog", so it can be a program name with args.
17855 set dummy $ac_prog; ac_word=$2
17856 echo "$as_me:$LINENO: checking for $ac_word" >&5
17857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17858 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17859   echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861   case $COLLATEINDEX in
17862   [\\/]* | ?:[\\/]*)
17863   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17864   ;;
17865   *)
17866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17867 for as_dir in $DOCBOOKSTYLE/bin $PATH
17868 do
17869   IFS=$as_save_IFS
17870   test -z "$as_dir" && as_dir=.
17871   for ac_exec_ext in '' $ac_executable_extensions; do
17872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17873     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17875     break 2
17876   fi
17877 done
17878 done
17879
17880   ;;
17881 esac
17882 fi
17883 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17884
17885 if test -n "$COLLATEINDEX"; then
17886   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17887 echo "${ECHO_T}$COLLATEINDEX" >&6
17888 else
17889   echo "$as_me:$LINENO: result: no" >&5
17890 echo "${ECHO_T}no" >&6
17891 fi
17892
17893   test -n "$COLLATEINDEX" && break
17894 done
17895
17896 else
17897   for ac_prog in collateindex.pl
17898 do
17899   # Extract the first word of "$ac_prog", so it can be a program name with args.
17900 set dummy $ac_prog; ac_word=$2
17901 echo "$as_me:$LINENO: checking for $ac_word" >&5
17902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17903 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17904   echo $ECHO_N "(cached) $ECHO_C" >&6
17905 else
17906   case $COLLATEINDEX in
17907   [\\/]* | ?:[\\/]*)
17908   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17909   ;;
17910   *)
17911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17912 for as_dir in $PATH
17913 do
17914   IFS=$as_save_IFS
17915   test -z "$as_dir" && as_dir=.
17916   for ac_exec_ext in '' $ac_executable_extensions; do
17917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17918     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17920     break 2
17921   fi
17922 done
17923 done
17924
17925   ;;
17926 esac
17927 fi
17928 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17929
17930 if test -n "$COLLATEINDEX"; then
17931   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17932 echo "${ECHO_T}$COLLATEINDEX" >&6
17933 else
17934   echo "$as_me:$LINENO: result: no" >&5
17935 echo "${ECHO_T}no" >&6
17936 fi
17937
17938   test -n "$COLLATEINDEX" && break
17939 done
17940
17941 fi
17942 for ac_prog in sgmlspl
17943 do
17944   # Extract the first word of "$ac_prog", so it can be a program name with args.
17945 set dummy $ac_prog; ac_word=$2
17946 echo "$as_me:$LINENO: checking for $ac_word" >&5
17947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17948 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   if test -n "$SGMLSPL"; then
17952   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17953 else
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955 for as_dir in $PATH
17956 do
17957   IFS=$as_save_IFS
17958   test -z "$as_dir" && as_dir=.
17959   for ac_exec_ext in '' $ac_executable_extensions; do
17960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17961     ac_cv_prog_SGMLSPL="$ac_prog"
17962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17963     break 2
17964   fi
17965 done
17966 done
17967
17968 fi
17969 fi
17970 SGMLSPL=$ac_cv_prog_SGMLSPL
17971 if test -n "$SGMLSPL"; then
17972   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17973 echo "${ECHO_T}$SGMLSPL" >&6
17974 else
17975   echo "$as_me:$LINENO: result: no" >&5
17976 echo "${ECHO_T}no" >&6
17977 fi
17978
17979   test -n "$SGMLSPL" && break
17980 done
17981
17982
17983 # Thread testing
17984
17985 # We have to run the thread test near the end so we have all our symbols
17986 # defined.  Cross compiling throws a warning.
17987 #
17988 if test "$enable_thread_safety_force" = yes; then
17989   { echo "$as_me:$LINENO: WARNING:
17990 *** Skipping thread test program.  --enable-thread-safety-force was used.
17991 *** Run the program in src/tools/thread on the your machine and add
17992 proper locking function calls to your applications to guarantee thread
17993 safety.
17994 " >&5
17995 echo "$as_me: WARNING:
17996 *** Skipping thread test program.  --enable-thread-safety-force was used.
17997 *** Run the program in src/tools/thread on the your machine and add
17998 proper locking function calls to your applications to guarantee thread
17999 safety.
18000 " >&2;}
18001 elif test "$enable_thread_safety" = yes; then
18002 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18003 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18004
18005 _CFLAGS="$CFLAGS"
18006 _LIBS="$LIBS"
18007 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18008 LIBS="$LIBS $PTHREAD_LIBS"
18009 if test "$cross_compiling" = yes; then
18010   echo "$as_me:$LINENO: result: maybe" >&5
18011 echo "${ECHO_T}maybe" >&6
18012   { echo "$as_me:$LINENO: WARNING:
18013 *** Skipping thread test program because of cross-compile build.
18014 *** Run the program in src/tools/thread on the target machine.
18015 " >&5
18016 echo "$as_me: WARNING:
18017 *** Skipping thread test program because of cross-compile build.
18018 *** Run the program in src/tools/thread on the target machine.
18019 " >&2;}
18020 else
18021   cat >conftest.$ac_ext <<_ACEOF
18022 #line $LINENO "configure"
18023 #include "confdefs.h"
18024 #include "$srcdir/src/tools/thread/thread_test.c"
18025 _ACEOF
18026 rm -f conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028   (eval $ac_link) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033   (eval $ac_try) 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); }; }; then
18037   echo "$as_me:$LINENO: result: yes" >&5
18038 echo "${ECHO_T}yes" >&6
18039 else
18040   echo "$as_me: program exited with status $ac_status" >&5
18041 echo "$as_me: failed program was:" >&5
18042 cat conftest.$ac_ext >&5
18043 ( exit $ac_status )
18044 echo "$as_me:$LINENO: result: no" >&5
18045 echo "${ECHO_T}no" >&6
18046   { { echo "$as_me:$LINENO: error:
18047 *** Thread test program failed.  Your platform is not thread-safe.
18048 *** Check the file 'config.log'for the exact reason.
18049 ***
18050 *** You can use the configure option --enable-thread-safety-force
18051 *** to force threads to be enabled.  However, you must then run
18052 *** the program in src/tools/thread and add locking function calls
18053 *** to your applications to guarantee thread safety.
18054 " >&5
18055 echo "$as_me: error:
18056 *** Thread test program failed.  Your platform is not thread-safe.
18057 *** Check the file 'config.log'for the exact reason.
18058 ***
18059 *** You can use the configure option --enable-thread-safety-force
18060 *** to force threads to be enabled.  However, you must then run
18061 *** the program in src/tools/thread and add locking function calls
18062 *** to your applications to guarantee thread safety.
18063 " >&2;}
18064    { (exit 1); exit 1; }; }
18065 fi
18066 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18067 fi
18068 CFLAGS="$_CFLAGS"
18069 LIBS="$_LIBS"
18070 fi
18071
18072 # prepare build tree if outside source tree
18073 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18074 # Note 2: /bin/pwd might be better than shell's built-in at getting
18075 #         a symlink-free name.
18076 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18077   vpath_build=no
18078 else
18079   vpath_build=yes
18080   if test "$no_create" != yes; then
18081     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18082     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18083     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18084       || { { echo "$as_me:$LINENO: error: failed" >&5
18085 echo "$as_me: error: failed" >&2;}
18086    { (exit 1); exit 1; }; }
18087     echo "$as_me:$LINENO: result: done" >&5
18088 echo "${ECHO_T}done" >&6
18089   fi
18090 fi
18091
18092
18093
18094 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18095
18096
18097 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}"
18098
18099
18100 case $host_os in mingw*)
18101 ac_config_commands="$ac_config_commands check_win32_symlinks"
18102
18103         ;;
18104 esac
18105
18106 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18107
18108
18109 cat >confcache <<\_ACEOF
18110 # This file is a shell script that caches the results of configure
18111 # tests run on this system so they can be shared between configure
18112 # scripts and configure runs, see configure's option --config-cache.
18113 # It is not useful on other systems.  If it contains results you don't
18114 # want to keep, you may remove or edit it.
18115 #
18116 # config.status only pays attention to the cache file if you give it
18117 # the --recheck option to rerun configure.
18118 #
18119 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18121 # following values.
18122
18123 _ACEOF
18124
18125 # The following way of writing the cache mishandles newlines in values,
18126 # but we know of no workaround that is simple, portable, and efficient.
18127 # So, don't put newlines in cache variables' values.
18128 # Ultrix sh set writes to stderr and can't be redirected directly,
18129 # and sets the high bit in the cache file unless we assign to the vars.
18130 {
18131   (set) 2>&1 |
18132     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18133     *ac_space=\ *)
18134       # `set' does not quote correctly, so add quotes (double-quote
18135       # substitution turns \\\\ into \\, and sed turns \\ into \).
18136       sed -n \
18137         "s/'/'\\\\''/g;
18138           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18139       ;;
18140     *)
18141       # `set' quotes correctly as required by POSIX, so do not add quotes.
18142       sed -n \
18143         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18144       ;;
18145     esac;
18146 } |
18147   sed '
18148      t clear
18149      : clear
18150      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18151      t end
18152      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18153      : end' >>confcache
18154 if cmp -s $cache_file confcache; then :; else
18155   if test -w $cache_file; then
18156     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18157     cat confcache >$cache_file
18158   else
18159     echo "not updating unwritable cache $cache_file"
18160   fi
18161 fi
18162 rm -f confcache
18163
18164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18165 # Let make expand exec_prefix.
18166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18167
18168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18174 s/:*\$(srcdir):*/:/;
18175 s/:*\${srcdir}:*/:/;
18176 s/:*@srcdir@:*/:/;
18177 s/^\([^=]*=[    ]*\):*/\1/;
18178 s/:*$//;
18179 s/^[^=]*=[      ]*$//;
18180 }'
18181 fi
18182
18183 DEFS=-DHAVE_CONFIG_H
18184
18185
18186 : ${CONFIG_STATUS=./config.status}
18187 ac_clean_files_save=$ac_clean_files
18188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18191 cat >$CONFIG_STATUS <<_ACEOF
18192 #! $SHELL
18193 # Generated by $as_me.
18194 # Run this file to recreate the current configuration.
18195 # Compiler output produced by configure, useful for debugging
18196 # configure, is in config.log if it exists.
18197
18198 debug=false
18199 SHELL=\${CONFIG_SHELL-$SHELL}
18200 _ACEOF
18201
18202 cat >>$CONFIG_STATUS <<\_ACEOF
18203
18204 ## --------------------- ##
18205 ## M4sh Initialization.  ##
18206 ## --------------------- ##
18207
18208 # Be Bourne compatible
18209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18210   emulate sh
18211   NULLCMD=:
18212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18213   set -o posix
18214 fi
18215
18216 # NLS nuisances.
18217 # Support unset when possible.
18218 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18219   as_unset=unset
18220 else
18221   as_unset=false
18222 fi
18223
18224 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18225     { $as_unset LANG || test "${LANG+set}" != set; } ||
18226       { LANG=C; export LANG; }
18227 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18228     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18229       { LC_ALL=C; export LC_ALL; }
18230 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18231     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18232       { LC_TIME=C; export LC_TIME; }
18233 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18234     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18235       { LC_CTYPE=C; export LC_CTYPE; }
18236 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18237     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18238       { LANGUAGE=C; export LANGUAGE; }
18239 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18240     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18241       { LC_COLLATE=C; export LC_COLLATE; }
18242 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18243     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18244       { LC_NUMERIC=C; export LC_NUMERIC; }
18245 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18246     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18247       { LC_MESSAGES=C; export LC_MESSAGES; }
18248
18249
18250 # Name of the executable.
18251 as_me=`(basename "$0") 2>/dev/null ||
18252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18253          X"$0" : 'X\(//\)$' \| \
18254          X"$0" : 'X\(/\)$' \| \
18255          .     : '\(.\)' 2>/dev/null ||
18256 echo X/"$0" |
18257     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18258           /^X\/\(\/\/\)$/{ s//\1/; q; }
18259           /^X\/\(\/\).*/{ s//\1/; q; }
18260           s/.*/./; q'`
18261
18262 # PATH needs CR, and LINENO needs CR and PATH.
18263 # Avoid depending upon Character Ranges.
18264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18267 as_cr_digits='0123456789'
18268 as_cr_alnum=$as_cr_Letters$as_cr_digits
18269
18270 # The user is always right.
18271 if test "${PATH_SEPARATOR+set}" != set; then
18272   echo "#! /bin/sh" >conftest.sh
18273   echo  "exit 0"   >>conftest.sh
18274   chmod +x conftest.sh
18275   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18276     PATH_SEPARATOR=';'
18277   else
18278     PATH_SEPARATOR=:
18279   fi
18280   rm -f conftest.sh
18281 fi
18282
18283
18284   as_lineno_1=$LINENO
18285   as_lineno_2=$LINENO
18286   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18287   test "x$as_lineno_1" != "x$as_lineno_2" &&
18288   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18289   # Find who we are.  Look in the path if we contain no path at all
18290   # relative or not.
18291   case $0 in
18292     *[\\/]* ) as_myself=$0 ;;
18293     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18294 for as_dir in $PATH
18295 do
18296   IFS=$as_save_IFS
18297   test -z "$as_dir" && as_dir=.
18298   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18299 done
18300
18301        ;;
18302   esac
18303   # We did not find ourselves, most probably we were run as `sh COMMAND'
18304   # in which case we are not to be found in the path.
18305   if test "x$as_myself" = x; then
18306     as_myself=$0
18307   fi
18308   if test ! -f "$as_myself"; then
18309     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18311    { (exit 1); exit 1; }; }
18312   fi
18313   case $CONFIG_SHELL in
18314   '')
18315     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18317 do
18318   IFS=$as_save_IFS
18319   test -z "$as_dir" && as_dir=.
18320   for as_base in sh bash ksh sh5; do
18321          case $as_dir in
18322          /*)
18323            if ("$as_dir/$as_base" -c '
18324   as_lineno_1=$LINENO
18325   as_lineno_2=$LINENO
18326   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18327   test "x$as_lineno_1" != "x$as_lineno_2" &&
18328   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18329              CONFIG_SHELL=$as_dir/$as_base
18330              export CONFIG_SHELL
18331              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18332            fi;;
18333          esac
18334        done
18335 done
18336 ;;
18337   esac
18338
18339   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18340   # uniformly replaced by the line number.  The first 'sed' inserts a
18341   # line-number line before each line; the second 'sed' does the real
18342   # work.  The second script uses 'N' to pair each line-number line
18343   # with the numbered line, and appends trailing '-' during
18344   # substitution so that $LINENO is not a special case at line end.
18345   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18346   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18347   sed '=' <$as_myself |
18348     sed '
18349       N
18350       s,$,-,
18351       : loop
18352       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18353       t loop
18354       s,-$,,
18355       s,^['$as_cr_digits']*\n,,
18356     ' >$as_me.lineno &&
18357   chmod +x $as_me.lineno ||
18358     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18359 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18360    { (exit 1); exit 1; }; }
18361
18362   # Don't try to exec as it changes $[0], causing all sort of problems
18363   # (the dirname of $[0] is not the place where we might find the
18364   # original and so on.  Autoconf is especially sensible to this).
18365   . ./$as_me.lineno
18366   # Exit status is that of the last command.
18367   exit
18368 }
18369
18370
18371 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18372   *c*,-n*) ECHO_N= ECHO_C='
18373 ' ECHO_T='      ' ;;
18374   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18375   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18376 esac
18377
18378 if expr a : '\(a\)' >/dev/null 2>&1; then
18379   as_expr=expr
18380 else
18381   as_expr=false
18382 fi
18383
18384 rm -f conf$$ conf$$.exe conf$$.file
18385 echo >conf$$.file
18386 if ln -s conf$$.file conf$$ 2>/dev/null; then
18387   # We could just check for DJGPP; but this test a) works b) is more generic
18388   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18389   if test -f conf$$.exe; then
18390     # Don't use ln at all; we don't have any links
18391     as_ln_s='cp -p'
18392   else
18393     as_ln_s='ln -s'
18394   fi
18395 elif ln conf$$.file conf$$ 2>/dev/null; then
18396   as_ln_s=ln
18397 else
18398   as_ln_s='cp -p'
18399 fi
18400 rm -f conf$$ conf$$.exe conf$$.file
18401
18402 as_executable_p="test -f"
18403
18404 # Sed expression to map a string onto a valid CPP name.
18405 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18406
18407 # Sed expression to map a string onto a valid variable name.
18408 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18409
18410
18411 # IFS
18412 # We need space, tab and new line, in precisely that order.
18413 as_nl='
18414 '
18415 IFS="   $as_nl"
18416
18417 # CDPATH.
18418 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18419
18420 exec 6>&1
18421
18422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18423 # report actual input values of CONFIG_FILES etc. instead of their
18424 # values after options handling.  Logging --version etc. is OK.
18425 exec 5>>config.log
18426 {
18427   echo
18428   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18429 ## Running $as_me. ##
18430 _ASBOX
18431 } >&5
18432 cat >&5 <<_CSEOF
18433
18434 This file was extended by PostgreSQL $as_me 8.0.0beta1, which was
18435 generated by GNU Autoconf 2.53.  Invocation command line was
18436
18437   CONFIG_FILES    = $CONFIG_FILES
18438   CONFIG_HEADERS  = $CONFIG_HEADERS
18439   CONFIG_LINKS    = $CONFIG_LINKS
18440   CONFIG_COMMANDS = $CONFIG_COMMANDS
18441   $ $0 $@
18442
18443 _CSEOF
18444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18445 echo >&5
18446 _ACEOF
18447
18448 # Files that config.status was made for.
18449 if test -n "$ac_config_files"; then
18450   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18451 fi
18452
18453 if test -n "$ac_config_headers"; then
18454   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18455 fi
18456
18457 if test -n "$ac_config_links"; then
18458   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18459 fi
18460
18461 if test -n "$ac_config_commands"; then
18462   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18463 fi
18464
18465 cat >>$CONFIG_STATUS <<\_ACEOF
18466
18467 ac_cs_usage="\
18468 \`$as_me' instantiates files from templates according to the
18469 current configuration.
18470
18471 Usage: $0 [OPTIONS] [FILE]...
18472
18473   -h, --help       print this help, then exit
18474   -V, --version    print version number, then exit
18475   -d, --debug      don't remove temporary files
18476       --recheck    update $as_me by reconfiguring in the same conditions
18477   --file=FILE[:TEMPLATE]
18478                    instantiate the configuration file FILE
18479   --header=FILE[:TEMPLATE]
18480                    instantiate the configuration header FILE
18481
18482 Configuration files:
18483 $config_files
18484
18485 Configuration headers:
18486 $config_headers
18487
18488 Configuration links:
18489 $config_links
18490
18491 Configuration commands:
18492 $config_commands
18493
18494 Report bugs to <bug-autoconf@gnu.org>."
18495 _ACEOF
18496
18497 cat >>$CONFIG_STATUS <<_ACEOF
18498 ac_cs_version="\\
18499 PostgreSQL config.status 8.0.0beta1
18500 configured by $0, generated by GNU Autoconf 2.53,
18501   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18502
18503 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18504 Free Software Foundation, Inc.
18505 This config.status script is free software; the Free Software Foundation
18506 gives unlimited permission to copy, distribute and modify it."
18507 srcdir=$srcdir
18508 _ACEOF
18509
18510 cat >>$CONFIG_STATUS <<\_ACEOF
18511 # If no file are specified by the user, then we need to provide default
18512 # value.  By we need to know if files were specified by the user.
18513 ac_need_defaults=:
18514 while test $# != 0
18515 do
18516   case $1 in
18517   --*=*)
18518     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18519     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18520     shift
18521     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18522     shift
18523     ;;
18524   -*);;
18525   *) # This is not an option, so the user has probably given explicit
18526      # arguments.
18527      ac_need_defaults=false;;
18528   esac
18529
18530   case $1 in
18531   # Handling of the options.
18532 _ACEOF
18533 cat >>$CONFIG_STATUS <<_ACEOF
18534   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18535     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18536     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18537 _ACEOF
18538 cat >>$CONFIG_STATUS <<\_ACEOF
18539   --version | --vers* | -V )
18540     echo "$ac_cs_version"; exit 0 ;;
18541   --he | --h)
18542     # Conflict between --help and --header
18543     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18544 Try \`$0 --help' for more information." >&5
18545 echo "$as_me: error: ambiguous option: $1
18546 Try \`$0 --help' for more information." >&2;}
18547    { (exit 1); exit 1; }; };;
18548   --help | --hel | -h )
18549     echo "$ac_cs_usage"; exit 0 ;;
18550   --debug | --d* | -d )
18551     debug=: ;;
18552   --file | --fil | --fi | --f )
18553     shift
18554     CONFIG_FILES="$CONFIG_FILES $1"
18555     ac_need_defaults=false;;
18556   --header | --heade | --head | --hea )
18557     shift
18558     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18559     ac_need_defaults=false;;
18560
18561   # This is an error.
18562   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18563 Try \`$0 --help' for more information." >&5
18564 echo "$as_me: error: unrecognized option: $1
18565 Try \`$0 --help' for more information." >&2;}
18566    { (exit 1); exit 1; }; } ;;
18567
18568   *) ac_config_targets="$ac_config_targets $1" ;;
18569
18570   esac
18571   shift
18572 done
18573
18574 _ACEOF
18575
18576
18577
18578
18579
18580 cat >>$CONFIG_STATUS <<\_ACEOF
18581 for ac_config_target in $ac_config_targets
18582 do
18583   case "$ac_config_target" in
18584   # Handling of arguments.
18585   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18586   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18587   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18588   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18589   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18590   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18591   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18592   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18593   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18594   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18595   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18596   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18598    { (exit 1); exit 1; }; };;
18599   esac
18600 done
18601
18602 # If the user did not use the arguments to specify the items to instantiate,
18603 # then the envvar interface is used.  Set only those that are not.
18604 # We use the long form for the default assignment because of an extremely
18605 # bizarre bug on SunOS 4.1.3.
18606 if $ac_need_defaults; then
18607   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18608   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18609   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18610   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18611 fi
18612
18613 # Create a temporary directory, and hook for its removal unless debugging.
18614 $debug ||
18615 {
18616   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18617   trap '{ (exit 1); exit 1; }' 1 2 13 15
18618 }
18619
18620 # Create a (secure) tmp directory for tmp files.
18621 : ${TMPDIR=/tmp}
18622 {
18623   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18624   test -n "$tmp" && test -d "$tmp"
18625 }  ||
18626 {
18627   tmp=$TMPDIR/cs$$-$RANDOM
18628   (umask 077 && mkdir $tmp)
18629 } ||
18630 {
18631    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18632    { (exit 1); exit 1; }
18633 }
18634
18635 _ACEOF
18636
18637 cat >>$CONFIG_STATUS <<_ACEOF
18638
18639 #
18640 # CONFIG_FILES section.
18641 #
18642
18643 # No need to generate the scripts if there are no CONFIG_FILES.
18644 # This happens for instance when ./config.status config.h
18645 if test -n "\$CONFIG_FILES"; then
18646   # Protect against being on the right side of a sed subst in config.status.
18647   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18648    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18649 s,@SHELL@,$SHELL,;t t
18650 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18651 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18652 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18653 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18654 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18655 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18656 s,@exec_prefix@,$exec_prefix,;t t
18657 s,@prefix@,$prefix,;t t
18658 s,@program_transform_name@,$program_transform_name,;t t
18659 s,@bindir@,$bindir,;t t
18660 s,@sbindir@,$sbindir,;t t
18661 s,@libexecdir@,$libexecdir,;t t
18662 s,@datadir@,$datadir,;t t
18663 s,@sysconfdir@,$sysconfdir,;t t
18664 s,@sharedstatedir@,$sharedstatedir,;t t
18665 s,@localstatedir@,$localstatedir,;t t
18666 s,@libdir@,$libdir,;t t
18667 s,@includedir@,$includedir,;t t
18668 s,@oldincludedir@,$oldincludedir,;t t
18669 s,@infodir@,$infodir,;t t
18670 s,@mandir@,$mandir,;t t
18671 s,@build_alias@,$build_alias,;t t
18672 s,@host_alias@,$host_alias,;t t
18673 s,@target_alias@,$target_alias,;t t
18674 s,@DEFS@,$DEFS,;t t
18675 s,@ECHO_C@,$ECHO_C,;t t
18676 s,@ECHO_N@,$ECHO_N,;t t
18677 s,@ECHO_T@,$ECHO_T,;t t
18678 s,@LIBS@,$LIBS,;t t
18679 s,@configure_args@,$configure_args,;t t
18680 s,@build@,$build,;t t
18681 s,@build_cpu@,$build_cpu,;t t
18682 s,@build_vendor@,$build_vendor,;t t
18683 s,@build_os@,$build_os,;t t
18684 s,@host@,$host,;t t
18685 s,@host_cpu@,$host_cpu,;t t
18686 s,@host_vendor@,$host_vendor,;t t
18687 s,@host_os@,$host_os,;t t
18688 s,@PORTNAME@,$PORTNAME,;t t
18689 s,@docdir@,$docdir,;t t
18690 s,@enable_nls@,$enable_nls,;t t
18691 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18692 s,@default_port@,$default_port,;t t
18693 s,@enable_shared@,$enable_shared,;t t
18694 s,@enable_rpath@,$enable_rpath,;t t
18695 s,@enable_debug@,$enable_debug,;t t
18696 s,@CC@,$CC,;t t
18697 s,@CFLAGS@,$CFLAGS,;t t
18698 s,@LDFLAGS@,$LDFLAGS,;t t
18699 s,@CPPFLAGS@,$CPPFLAGS,;t t
18700 s,@ac_ct_CC@,$ac_ct_CC,;t t
18701 s,@EXEEXT@,$EXEEXT,;t t
18702 s,@OBJEXT@,$OBJEXT,;t t
18703 s,@CPP@,$CPP,;t t
18704 s,@GCC@,$GCC,;t t
18705 s,@TAS@,$TAS,;t t
18706 s,@autodepend@,$autodepend,;t t
18707 s,@INCLUDES@,$INCLUDES,;t t
18708 s,@enable_thread_safety@,$enable_thread_safety,;t t
18709 s,@with_tcl@,$with_tcl,;t t
18710 s,@with_perl@,$with_perl,;t t
18711 s,@with_python@,$with_python,;t t
18712 s,@with_krb4@,$with_krb4,;t t
18713 s,@with_krb5@,$with_krb5,;t t
18714 s,@krb_srvtab@,$krb_srvtab,;t t
18715 s,@with_pam@,$with_pam,;t t
18716 s,@with_rendezvous@,$with_rendezvous,;t t
18717 s,@with_openssl@,$with_openssl,;t t
18718 s,@ELF_SYS@,$ELF_SYS,;t t
18719 s,@AWK@,$AWK,;t t
18720 s,@FLEX@,$FLEX,;t t
18721 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18722 s,@LN_S@,$LN_S,;t t
18723 s,@LD@,$LD,;t t
18724 s,@with_gnu_ld@,$with_gnu_ld,;t t
18725 s,@ld_R_works@,$ld_R_works,;t t
18726 s,@RANLIB@,$RANLIB,;t t
18727 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18728 s,@LORDER@,$LORDER,;t t
18729 s,@TAR@,$TAR,;t t
18730 s,@STRIP@,$STRIP,;t t
18731 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18732 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18733 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18734 s,@YACC@,$YACC,;t t
18735 s,@YFLAGS@,$YFLAGS,;t t
18736 s,@PERL@,$PERL,;t t
18737 s,@perl_archlibexp@,$perl_archlibexp,;t t
18738 s,@perl_privlibexp@,$perl_privlibexp,;t t
18739 s,@perl_useshrplib@,$perl_useshrplib,;t t
18740 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18741 s,@PYTHON@,$PYTHON,;t t
18742 s,@python_prefix@,$python_prefix,;t t
18743 s,@python_execprefix@,$python_execprefix,;t t
18744 s,@python_configdir@,$python_configdir,;t t
18745 s,@python_includespec@,$python_includespec,;t t
18746 s,@python_libspec@,$python_libspec,;t t
18747 s,@LIBOBJS@,$LIBOBJS,;t t
18748 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18749 s,@acx_pthread_config@,$acx_pthread_config,;t t
18750 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
18751 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
18752 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
18753 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18754 s,@MSGFMT@,$MSGFMT,;t t
18755 s,@MSGMERGE@,$MSGMERGE,;t t
18756 s,@XGETTEXT@,$XGETTEXT,;t t
18757 s,@localedir@,$localedir,;t t
18758 s,@TCLSH@,$TCLSH,;t t
18759 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18760 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18761 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18762 s,@TCL_LIBS@,$TCL_LIBS,;t t
18763 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18764 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18765 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18766 s,@NSGMLS@,$NSGMLS,;t t
18767 s,@JADE@,$JADE,;t t
18768 s,@have_docbook@,$have_docbook,;t t
18769 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18770 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18771 s,@SGMLSPL@,$SGMLSPL,;t t
18772 s,@vpath_build@,$vpath_build,;t t
18773 CEOF
18774
18775 _ACEOF
18776
18777   cat >>$CONFIG_STATUS <<\_ACEOF
18778   # Split the substitutions into bite-sized pieces for seds with
18779   # small command number limits, like on Digital OSF/1 and HP-UX.
18780   ac_max_sed_lines=48
18781   ac_sed_frag=1 # Number of current file.
18782   ac_beg=1 # First line for current file.
18783   ac_end=$ac_max_sed_lines # Line after last line for current file.
18784   ac_more_lines=:
18785   ac_sed_cmds=
18786   while $ac_more_lines; do
18787     if test $ac_beg -gt 1; then
18788       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18789     else
18790       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18791     fi
18792     if test ! -s $tmp/subs.frag; then
18793       ac_more_lines=false
18794     else
18795       # The purpose of the label and of the branching condition is to
18796       # speed up the sed processing (if there are no `@' at all, there
18797       # is no need to browse any of the substitutions).
18798       # These are the two extra sed commands mentioned above.
18799       (echo ':t
18800   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18801       if test -z "$ac_sed_cmds"; then
18802         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18803       else
18804         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18805       fi
18806       ac_sed_frag=`expr $ac_sed_frag + 1`
18807       ac_beg=$ac_end
18808       ac_end=`expr $ac_end + $ac_max_sed_lines`
18809     fi
18810   done
18811   if test -z "$ac_sed_cmds"; then
18812     ac_sed_cmds=cat
18813   fi
18814 fi # test -n "$CONFIG_FILES"
18815
18816 _ACEOF
18817 cat >>$CONFIG_STATUS <<\_ACEOF
18818 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18819   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18820   case $ac_file in
18821   - | *:- | *:-:* ) # input from stdin
18822         cat >$tmp/stdin
18823         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18824         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18825   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18826         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18827   * )   ac_file_in=$ac_file.in ;;
18828   esac
18829
18830   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18831   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18833          X"$ac_file" : 'X\(//\)[^/]' \| \
18834          X"$ac_file" : 'X\(//\)$' \| \
18835          X"$ac_file" : 'X\(/\)' \| \
18836          .     : '\(.\)' 2>/dev/null ||
18837 echo X"$ac_file" |
18838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18840           /^X\(\/\/\)$/{ s//\1/; q; }
18841           /^X\(\/\).*/{ s//\1/; q; }
18842           s/.*/./; q'`
18843   { case "$ac_dir" in
18844   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18845   *)                      as_incr_dir=.;;
18846 esac
18847 as_dummy="$ac_dir"
18848 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18849   case $as_mkdir_dir in
18850     # Skip DOS drivespec
18851     ?:) as_incr_dir=$as_mkdir_dir ;;
18852     *)
18853       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18854       test -d "$as_incr_dir" ||
18855         mkdir "$as_incr_dir" ||
18856         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18857 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18858    { (exit 1); exit 1; }; }
18859     ;;
18860   esac
18861 done; }
18862
18863   ac_builddir=.
18864
18865 if test "$ac_dir" != .; then
18866   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18867   # A "../" for each directory in $ac_dir_suffix.
18868   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18869 else
18870   ac_dir_suffix= ac_top_builddir=
18871 fi
18872
18873 case $srcdir in
18874   .)  # No --srcdir option.  We are building in place.
18875     ac_srcdir=.
18876     if test -z "$ac_top_builddir"; then
18877        ac_top_srcdir=.
18878     else
18879        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18880     fi ;;
18881   [\\/]* | ?:[\\/]* )  # Absolute path.
18882     ac_srcdir=$srcdir$ac_dir_suffix;
18883     ac_top_srcdir=$srcdir ;;
18884   *) # Relative path.
18885     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18886     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18887 esac
18888 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18889 # absolute.
18890 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18891 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18892 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18893 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18894
18895
18896
18897   if test x"$ac_file" != x-; then
18898     { echo "$as_me:$LINENO: creating $ac_file" >&5
18899 echo "$as_me: creating $ac_file" >&6;}
18900     rm -f "$ac_file"
18901   fi
18902   # Let's still pretend it is `configure' which instantiates (i.e., don't
18903   # use $as_me), people would be surprised to read:
18904   #    /* config.h.  Generated by config.status.  */
18905   if test x"$ac_file" = x-; then
18906     configure_input=
18907   else
18908     configure_input="$ac_file.  "
18909   fi
18910   configure_input=$configure_input"Generated from `echo $ac_file_in |
18911                                      sed 's,.*/,,'` by configure."
18912
18913   # First look for the input files in the build tree, otherwise in the
18914   # src tree.
18915   ac_file_inputs=`IFS=:
18916     for f in $ac_file_in; do
18917       case $f in
18918       -) echo $tmp/stdin ;;
18919       [\\/$]*)
18920          # Absolute (can't be DOS-style, as IFS=:)
18921          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18922 echo "$as_me: error: cannot find input file: $f" >&2;}
18923    { (exit 1); exit 1; }; }
18924          echo $f;;
18925       *) # Relative
18926          if test -f "$f"; then
18927            # Build tree
18928            echo $f
18929          elif test -f "$srcdir/$f"; then
18930            # Source tree
18931            echo $srcdir/$f
18932          else
18933            # /dev/null tree
18934            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18935 echo "$as_me: error: cannot find input file: $f" >&2;}
18936    { (exit 1); exit 1; }; }
18937          fi;;
18938       esac
18939     done` || { (exit 1); exit 1; }
18940 _ACEOF
18941 cat >>$CONFIG_STATUS <<_ACEOF
18942   sed "$ac_vpsub
18943 $extrasub
18944 _ACEOF
18945 cat >>$CONFIG_STATUS <<\_ACEOF
18946 :t
18947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18948 s,@configure_input@,$configure_input,;t t
18949 s,@srcdir@,$ac_srcdir,;t t
18950 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18951 s,@top_srcdir@,$ac_top_srcdir,;t t
18952 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18953 s,@builddir@,$ac_builddir,;t t
18954 s,@abs_builddir@,$ac_abs_builddir,;t t
18955 s,@top_builddir@,$ac_top_builddir,;t t
18956 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18957 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18958   rm -f $tmp/stdin
18959   if test x"$ac_file" != x-; then
18960     mv $tmp/out $ac_file
18961   else
18962     cat $tmp/out
18963     rm -f $tmp/out
18964   fi
18965
18966 done
18967 _ACEOF
18968 cat >>$CONFIG_STATUS <<\_ACEOF
18969
18970 #
18971 # CONFIG_HEADER section.
18972 #
18973
18974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18976 #
18977 # ac_d sets the value in "#define NAME VALUE" lines.
18978 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18979 ac_dB='[        ].*$,\1#\2'
18980 ac_dC=' '
18981 ac_dD=',;t'
18982 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18983 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18984 ac_uB='$,\1#\2define\3'
18985 ac_uC=' '
18986 ac_uD=',;t'
18987
18988 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18989   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18990   case $ac_file in
18991   - | *:- | *:-:* ) # input from stdin
18992         cat >$tmp/stdin
18993         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18995   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18996         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18997   * )   ac_file_in=$ac_file.in ;;
18998   esac
18999
19000   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19001 echo "$as_me: creating $ac_file" >&6;}
19002
19003   # First look for the input files in the build tree, otherwise in the
19004   # src tree.
19005   ac_file_inputs=`IFS=:
19006     for f in $ac_file_in; do
19007       case $f in
19008       -) echo $tmp/stdin ;;
19009       [\\/$]*)
19010          # Absolute (can't be DOS-style, as IFS=:)
19011          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19012 echo "$as_me: error: cannot find input file: $f" >&2;}
19013    { (exit 1); exit 1; }; }
19014          echo $f;;
19015       *) # Relative
19016          if test -f "$f"; then
19017            # Build tree
19018            echo $f
19019          elif test -f "$srcdir/$f"; then
19020            # Source tree
19021            echo $srcdir/$f
19022          else
19023            # /dev/null tree
19024            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19025 echo "$as_me: error: cannot find input file: $f" >&2;}
19026    { (exit 1); exit 1; }; }
19027          fi;;
19028       esac
19029     done` || { (exit 1); exit 1; }
19030   # Remove the trailing spaces.
19031   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19032
19033 _ACEOF
19034
19035 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19036 # `conftest.undefs', that substitutes the proper values into
19037 # config.h.in to produce config.h.  The first handles `#define'
19038 # templates, and the second `#undef' templates.
19039 # And first: Protect against being on the right side of a sed subst in
19040 # config.status.  Protect against being in an unquoted here document
19041 # in config.status.
19042 rm -f conftest.defines conftest.undefs
19043 # Using a here document instead of a string reduces the quoting nightmare.
19044 # Putting comments in sed scripts is not portable.
19045 #
19046 # `end' is used to avoid that the second main sed command (meant for
19047 # 0-ary CPP macros) applies to n-ary macro definitions.
19048 # See the Autoconf documentation for `clear'.
19049 cat >confdef2sed.sed <<\_ACEOF
19050 s/[\\&,]/\\&/g
19051 s,[\\$`],\\&,g
19052 t clear
19053 : clear
19054 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19055 t end
19056 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19057 : end
19058 _ACEOF
19059 # If some macros were called several times there might be several times
19060 # the same #defines, which is useless.  Nevertheless, we may not want to
19061 # sort them, since we want the *last* AC-DEFINE to be honored.
19062 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19063 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19064 rm -f confdef2sed.sed
19065
19066 # This sed command replaces #undef with comments.  This is necessary, for
19067 # example, in the case of _POSIX_SOURCE, which is predefined and required
19068 # on some systems where configure will not decide to define it.
19069 cat >>conftest.undefs <<\_ACEOF
19070 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19071 _ACEOF
19072
19073 # Break up conftest.defines because some shells have a limit on the size
19074 # of here documents, and old seds have small limits too (100 cmds).
19075 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19076 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19077 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19078 echo '  :' >>$CONFIG_STATUS
19079 rm -f conftest.tail
19080 while grep . conftest.defines >/dev/null
19081 do
19082   # Write a limited-size here document to $tmp/defines.sed.
19083   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19084   # Speed up: don't consider the non `#define' lines.
19085   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19086   # Work around the forget-to-reset-the-flag bug.
19087   echo 't clr' >>$CONFIG_STATUS
19088   echo ': clr' >>$CONFIG_STATUS
19089   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19090   echo 'CEOF
19091   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19092   rm -f $tmp/in
19093   mv $tmp/out $tmp/in
19094 ' >>$CONFIG_STATUS
19095   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19096   rm -f conftest.defines
19097   mv conftest.tail conftest.defines
19098 done
19099 rm -f conftest.defines
19100 echo '  fi # egrep' >>$CONFIG_STATUS
19101 echo >>$CONFIG_STATUS
19102
19103 # Break up conftest.undefs because some shells have a limit on the size
19104 # of here documents, and old seds have small limits too (100 cmds).
19105 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19106 rm -f conftest.tail
19107 while grep . conftest.undefs >/dev/null
19108 do
19109   # Write a limited-size here document to $tmp/undefs.sed.
19110   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19111   # Speed up: don't consider the non `#undef'
19112   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19113   # Work around the forget-to-reset-the-flag bug.
19114   echo 't clr' >>$CONFIG_STATUS
19115   echo ': clr' >>$CONFIG_STATUS
19116   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19117   echo 'CEOF
19118   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19119   rm -f $tmp/in
19120   mv $tmp/out $tmp/in
19121 ' >>$CONFIG_STATUS
19122   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19123   rm -f conftest.undefs
19124   mv conftest.tail conftest.undefs
19125 done
19126 rm -f conftest.undefs
19127
19128 cat >>$CONFIG_STATUS <<\_ACEOF
19129   # Let's still pretend it is `configure' which instantiates (i.e., don't
19130   # use $as_me), people would be surprised to read:
19131   #    /* config.h.  Generated by config.status.  */
19132   if test x"$ac_file" = x-; then
19133     echo "/* Generated by configure.  */" >$tmp/config.h
19134   else
19135     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19136   fi
19137   cat $tmp/in >>$tmp/config.h
19138   rm -f $tmp/in
19139   if test x"$ac_file" != x-; then
19140     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19141       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19142 echo "$as_me: $ac_file is unchanged" >&6;}
19143     else
19144       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19146          X"$ac_file" : 'X\(//\)[^/]' \| \
19147          X"$ac_file" : 'X\(//\)$' \| \
19148          X"$ac_file" : 'X\(/\)' \| \
19149          .     : '\(.\)' 2>/dev/null ||
19150 echo X"$ac_file" |
19151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19152           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19153           /^X\(\/\/\)$/{ s//\1/; q; }
19154           /^X\(\/\).*/{ s//\1/; q; }
19155           s/.*/./; q'`
19156       { case "$ac_dir" in
19157   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19158   *)                      as_incr_dir=.;;
19159 esac
19160 as_dummy="$ac_dir"
19161 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19162   case $as_mkdir_dir in
19163     # Skip DOS drivespec
19164     ?:) as_incr_dir=$as_mkdir_dir ;;
19165     *)
19166       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19167       test -d "$as_incr_dir" ||
19168         mkdir "$as_incr_dir" ||
19169         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19170 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19171    { (exit 1); exit 1; }; }
19172     ;;
19173   esac
19174 done; }
19175
19176       rm -f $ac_file
19177       mv $tmp/config.h $ac_file
19178     fi
19179   else
19180     cat $tmp/config.h
19181     rm -f $tmp/config.h
19182   fi
19183   # Run the commands associated with the file.
19184   case $ac_file in
19185     src/include/pg_config.h )
19186 # Update timestamp for pg_config.h (see Makefile.global)
19187 echo >src/include/stamp-h
19188  ;;
19189   esac
19190 done
19191 _ACEOF
19192 cat >>$CONFIG_STATUS <<\_ACEOF
19193
19194 #
19195 # CONFIG_LINKS section.
19196 #
19197
19198 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19199   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19200   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19201
19202   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19203 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19204
19205   if test ! -r $srcdir/$ac_source; then
19206     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19207 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19208    { (exit 1); exit 1; }; }
19209   fi
19210   rm -f $ac_dest
19211
19212   # Make relative symlinks.
19213   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19214 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215          X"$ac_dest" : 'X\(//\)[^/]' \| \
19216          X"$ac_dest" : 'X\(//\)$' \| \
19217          X"$ac_dest" : 'X\(/\)' \| \
19218          .     : '\(.\)' 2>/dev/null ||
19219 echo X"$ac_dest" |
19220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19221           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19222           /^X\(\/\/\)$/{ s//\1/; q; }
19223           /^X\(\/\).*/{ s//\1/; q; }
19224           s/.*/./; q'`
19225   { case "$ac_dest_dir" in
19226   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19227   *)                      as_incr_dir=.;;
19228 esac
19229 as_dummy="$ac_dest_dir"
19230 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19231   case $as_mkdir_dir in
19232     # Skip DOS drivespec
19233     ?:) as_incr_dir=$as_mkdir_dir ;;
19234     *)
19235       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19236       test -d "$as_incr_dir" ||
19237         mkdir "$as_incr_dir" ||
19238         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19239 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19240    { (exit 1); exit 1; }; }
19241     ;;
19242   esac
19243 done; }
19244
19245   ac_builddir=.
19246
19247 if test "$ac_dest_dir" != .; then
19248   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19249   # A "../" for each directory in $ac_dir_suffix.
19250   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19251 else
19252   ac_dir_suffix= ac_top_builddir=
19253 fi
19254
19255 case $srcdir in
19256   .)  # No --srcdir option.  We are building in place.
19257     ac_srcdir=.
19258     if test -z "$ac_top_builddir"; then
19259        ac_top_srcdir=.
19260     else
19261        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19262     fi ;;
19263   [\\/]* | ?:[\\/]* )  # Absolute path.
19264     ac_srcdir=$srcdir$ac_dir_suffix;
19265     ac_top_srcdir=$srcdir ;;
19266   *) # Relative path.
19267     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19268     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19269 esac
19270 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19271 # absolute.
19272 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19273 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19274 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19275 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19276
19277
19278   case $srcdir in
19279   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19280       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19281   esac
19282
19283   # Make a symlink if possible; otherwise try a hard link.
19284   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19285     ln $srcdir/$ac_source $ac_dest ||
19286     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19287 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19288    { (exit 1); exit 1; }; }
19289 done
19290 _ACEOF
19291 cat >>$CONFIG_STATUS <<\_ACEOF
19292
19293 #
19294 # CONFIG_COMMANDS section.
19295 #
19296 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19297   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19298   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19300 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19301          X"$ac_dest" : 'X\(//\)[^/]' \| \
19302          X"$ac_dest" : 'X\(//\)$' \| \
19303          X"$ac_dest" : 'X\(/\)' \| \
19304          .     : '\(.\)' 2>/dev/null ||
19305 echo X"$ac_dest" |
19306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19308           /^X\(\/\/\)$/{ s//\1/; q; }
19309           /^X\(\/\).*/{ s//\1/; q; }
19310           s/.*/./; q'`
19311   ac_builddir=.
19312
19313 if test "$ac_dir" != .; then
19314   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19315   # A "../" for each directory in $ac_dir_suffix.
19316   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19317 else
19318   ac_dir_suffix= ac_top_builddir=
19319 fi
19320
19321 case $srcdir in
19322   .)  # No --srcdir option.  We are building in place.
19323     ac_srcdir=.
19324     if test -z "$ac_top_builddir"; then
19325        ac_top_srcdir=.
19326     else
19327        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19328     fi ;;
19329   [\\/]* | ?:[\\/]* )  # Absolute path.
19330     ac_srcdir=$srcdir$ac_dir_suffix;
19331     ac_top_srcdir=$srcdir ;;
19332   *) # Relative path.
19333     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19334     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19335 esac
19336 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19337 # absolute.
19338 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19339 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19340 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19341 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19342
19343
19344   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19345 echo "$as_me: executing $ac_dest commands" >&6;}
19346   case $ac_dest in
19347     check_win32_symlinks )
19348 # Links sometimes fail undetected on Mingw -
19349 # so here we detect it and warn the user
19350 for FILE in $CONFIG_LINKS
19351  do
19352         # test -e works for symlinks in the MinGW console
19353         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19354 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19355  done
19356  ;;
19357   esac
19358 done
19359 _ACEOF
19360
19361 cat >>$CONFIG_STATUS <<\_ACEOF
19362
19363 { (exit 0); exit 0; }
19364 _ACEOF
19365 chmod +x $CONFIG_STATUS
19366 ac_clean_files=$ac_clean_files_save
19367
19368
19369 # configure is writing to config.log, and then calls config.status.
19370 # config.status does its own redirection, appending to config.log.
19371 # Unfortunately, on DOS this fails, as config.log is still kept open
19372 # by configure, so config.status won't be able to write to it; its
19373 # output is simply discarded.  So we exec the FD to /dev/null,
19374 # effectively closing config.log, so it can be properly (re)opened and
19375 # appended to by config.status.  When coming back to configure, we
19376 # need to make the FD available again.
19377 if test "$no_create" != yes; then
19378   ac_cs_success=:
19379   exec 5>/dev/null
19380   $SHELL $CONFIG_STATUS || ac_cs_success=false
19381   exec 5>>config.log
19382   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19383   # would make configure fail if this is the last instruction.
19384   $ac_cs_success || { (exit 1); exit 1; }
19385 fi
19386
19387