]> granicus.if.org Git - postgresql/blob - configure
Align prototype in C code.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.5devel.
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='7.5devel'
262 PACKAGE_STRING='PostgreSQL 7.5devel'
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 7.5devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.5devel:";;
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   --disable-largefile     omit support for large files
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854
855   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
856   --without-docdir        do not install the documentation
857   --with-includes=DIRS    look for additional header files in DIRS
858   --with-libraries=DIRS   look for additional libraries in DIRS
859   --with-libs=DIRS        alternative spelling of --with-libraries
860   --with-pgport=PORTNUM   change default port number 5432
861   --with-tcl              build Tcl and Tk interfaces
862   --with-tclconfig=DIR    tclConfig.sh is in DIR
863   --with-perl             build Perl modules (PL/Perl)
864   --with-python           build Python modules (PL/Python)
865   --with-krb4             build with Kerberos 4 support
866   --with-krb5             build with Kerberos 5 support
867   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]
868   --with-pam              build with PAM support
869   --with-rendezvous       build with Rendezvous support
870   --with-openssl          build with OpenSSL support
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.5devel
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2003 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.5devel, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
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 ac_aux_dir=
1252 for ac_dir in config $srcdir/config; do
1253   if test -f $ac_dir/install-sh; then
1254     ac_aux_dir=$ac_dir
1255     ac_install_sh="$ac_aux_dir/install-sh -c"
1256     break
1257   elif test -f $ac_dir/install.sh; then
1258     ac_aux_dir=$ac_dir
1259     ac_install_sh="$ac_aux_dir/install.sh -c"
1260     break
1261   elif test -f $ac_dir/shtool; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/shtool install -c"
1264     break
1265   fi
1266 done
1267 if test -z "$ac_aux_dir"; then
1268   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1269 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1270    { (exit 1); exit 1; }; }
1271 fi
1272 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1273 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1274 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1275
1276
1277 configure_args=$ac_configure_args
1278
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PG_VERSION "$PACKAGE_VERSION"
1283 _ACEOF
1284
1285
1286 # Make sure we can run config.sub.
1287 $ac_config_sub sun4 >/dev/null 2>&1 ||
1288   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1289 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1290    { (exit 1); exit 1; }; }
1291
1292 echo "$as_me:$LINENO: checking build system type" >&5
1293 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1294 if test "${ac_cv_build+set}" = set; then
1295   echo $ECHO_N "(cached) $ECHO_C" >&6
1296 else
1297   ac_cv_build_alias=$build_alias
1298 test -z "$ac_cv_build_alias" &&
1299   ac_cv_build_alias=`$ac_config_guess`
1300 test -z "$ac_cv_build_alias" &&
1301   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1302 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1303    { (exit 1); exit 1; }; }
1304 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1305   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1306 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1307    { (exit 1); exit 1; }; }
1308
1309 fi
1310 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1311 echo "${ECHO_T}$ac_cv_build" >&6
1312 build=$ac_cv_build
1313 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1314 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1315 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1316
1317
1318 echo "$as_me:$LINENO: checking host system type" >&5
1319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1320 if test "${ac_cv_host+set}" = set; then
1321   echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323   ac_cv_host_alias=$host_alias
1324 test -z "$ac_cv_host_alias" &&
1325   ac_cv_host_alias=$ac_cv_build_alias
1326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1329    { (exit 1); exit 1; }; }
1330
1331 fi
1332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1333 echo "${ECHO_T}$ac_cv_host" >&6
1334 host=$ac_cv_host
1335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340
1341 template=
1342 echo "$as_me:$LINENO: checking which template to use" >&5
1343 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1344
1345
1346
1347
1348 # Check whether --with-template or --without-template was given.
1349 if test "${with_template+set}" = set; then
1350   withval="$with_template"
1351
1352   case $withval in
1353     yes)
1354       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1355 echo "$as_me: error: argument required for --with-template option" >&2;}
1356    { (exit 1); exit 1; }; }
1357       ;;
1358     no)
1359       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1360 echo "$as_me: error: argument required for --with-template option" >&2;}
1361    { (exit 1); exit 1; }; }
1362       ;;
1363     *)
1364
1365   case $withval in
1366     list)   echo; ls "$srcdir/src/template"; exit;;
1367     *)      if test -f "$srcdir/src/template/$with_template" ; then
1368               template=$withval
1369             else
1370               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1371 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1372    { (exit 1); exit 1; }; }
1373             fi;;
1374   esac
1375
1376       ;;
1377   esac
1378
1379 else
1380
1381 # --with-template not given
1382
1383 case $host_os in
1384      aix*) template=aix ;;
1385     beos*) template=beos ;;
1386     bsdi*) template=bsdi ;;
1387   cygwin*) template=cygwin ;;
1388   darwin*) template=darwin ;;
1389     dgux*) template=dgux ;;
1390  freebsd*) template=freebsd ;;
1391     hpux*) template=hpux ;;
1392     irix*) template=irix5 ;;
1393    linux*) template=linux ;;
1394    mingw*) template=win32 ;;
1395   netbsd*) template=netbsd ;;
1396 nextstep*) template=nextstep ;;
1397  openbsd*) template=openbsd ;;
1398      osf*) template=osf ;;
1399      qnx*) template=qnx4 ;;
1400      sco*) template=sco ;;
1401  solaris*) template=solaris ;;
1402    sunos*) template=sunos4 ;;
1403  sysv4.2*)
1404         case $host_vendor in
1405           univel) template=univel ;;
1406         esac ;;
1407    sysv4*) template=svr4 ;;
1408    sysv5*) template=unixware ;;
1409   ultrix*) template=ultrix4 ;;
1410 esac
1411
1412   if test x"$template" = x"" ; then
1413     { { echo "$as_me:$LINENO: error:
1414 *******************************************************************
1415 PostgreSQL has apparently not been ported to your platform yet.
1416 To try a manual configuration, look into the src/template directory
1417 for a similar platform and use the '--with-template=' option.
1418
1419 Please also contact <pgsql-ports@postgresql.org> to see about
1420 rectifying this.  Include the above 'checking host system type...'
1421 line.
1422 *******************************************************************
1423 " >&5
1424 echo "$as_me: error:
1425 *******************************************************************
1426 PostgreSQL has apparently not been ported to your platform yet.
1427 To try a manual configuration, look into the src/template directory
1428 for a similar platform and use the '--with-template=' option.
1429
1430 Please also contact <pgsql-ports@postgresql.org> to see about
1431 rectifying this.  Include the above 'checking host system type...'
1432 line.
1433 *******************************************************************
1434 " >&2;}
1435    { (exit 1); exit 1; }; }
1436   fi
1437
1438
1439 fi;
1440
1441
1442 echo "$as_me:$LINENO: result: $template" >&5
1443 echo "${ECHO_T}$template" >&6
1444
1445 PORTNAME=$template
1446
1447
1448 # Initialize default assumption that we do not need separate assembly code
1449 # for TAS (test-and-set).  This can be overridden by the template file
1450 # when it's executed.
1451 need_tas=no
1452 tas_file=dummy.s
1453
1454
1455
1456 ##
1457 ## Command line options
1458 ##
1459
1460 #
1461 # Installation directory for documentation
1462 #
1463
1464
1465
1466 # Check whether --with-docdir or --without-docdir was given.
1467 if test "${with_docdir+set}" = set; then
1468   withval="$with_docdir"
1469
1470   case $withval in
1471     yes)
1472       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1473 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1474    { (exit 1); exit 1; }; }
1475       ;;
1476     no)
1477       docdir=
1478       ;;
1479     *)
1480       docdir=$withval
1481       ;;
1482   esac
1483
1484 else
1485   docdir='${prefix}/doc'
1486 fi;
1487
1488
1489
1490
1491 #
1492 # Add non-standard directories to the include path
1493 #
1494
1495
1496
1497 # Check whether --with-includes or --without-includes was given.
1498 if test "${with_includes+set}" = set; then
1499   withval="$with_includes"
1500
1501   case $withval in
1502     yes)
1503       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1504 echo "$as_me: error: argument required for --with-includes option" >&2;}
1505    { (exit 1); exit 1; }; }
1506       ;;
1507     no)
1508       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1509 echo "$as_me: error: argument required for --with-includes option" >&2;}
1510    { (exit 1); exit 1; }; }
1511       ;;
1512     *)
1513
1514       ;;
1515   esac
1516
1517 fi;
1518
1519
1520
1521 #
1522 # Add non-standard directories to the library search path
1523 #
1524
1525
1526
1527 # Check whether --with-libraries or --without-libraries was given.
1528 if test "${with_libraries+set}" = set; then
1529   withval="$with_libraries"
1530
1531   case $withval in
1532     yes)
1533       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1534 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1535    { (exit 1); exit 1; }; }
1536       ;;
1537     no)
1538       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1539 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1540    { (exit 1); exit 1; }; }
1541       ;;
1542     *)
1543       LIBRARY_DIRS=$withval
1544       ;;
1545   esac
1546
1547 fi;
1548
1549
1550
1551
1552
1553 # Check whether --with-libs or --without-libs was given.
1554 if test "${with_libs+set}" = set; then
1555   withval="$with_libs"
1556
1557   case $withval in
1558     yes)
1559       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1560 echo "$as_me: error: argument required for --with-libs option" >&2;}
1561    { (exit 1); exit 1; }; }
1562       ;;
1563     no)
1564       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1565 echo "$as_me: error: argument required for --with-libs option" >&2;}
1566    { (exit 1); exit 1; }; }
1567       ;;
1568     *)
1569       LIBRARY_DIRS=$withval
1570       ;;
1571   esac
1572
1573 fi;
1574
1575
1576
1577 #
1578 # 64-bit integer date/time storage (--enable-integer-datetimes)
1579 #
1580 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1581 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1582
1583
1584 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1585 if test "${enable_integer_datetimes+set}" = set; then
1586   enableval="$enable_integer_datetimes"
1587
1588   case $enableval in
1589     yes)
1590
1591 cat >>confdefs.h <<\_ACEOF
1592 #define USE_INTEGER_DATETIMES 1
1593 _ACEOF
1594
1595       ;;
1596     no)
1597       :
1598       ;;
1599     *)
1600       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1601 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1602    { (exit 1); exit 1; }; }
1603       ;;
1604   esac
1605
1606 else
1607   enable_integer_datetimes=no
1608
1609 fi;
1610
1611 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1612 echo "${ECHO_T}$enable_integer_datetimes" >&6
1613
1614
1615 #
1616 # NLS
1617 #
1618 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1619 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1620
1621
1622 # Check whether --enable-nls or --disable-nls was given.
1623 if test "${enable_nls+set}" = set; then
1624   enableval="$enable_nls"
1625
1626   case $enableval in
1627     yes)
1628       :
1629       ;;
1630     no)
1631       :
1632       ;;
1633     *)
1634       enable_nls=yes
1635 WANTED_LANGUAGES=$enableval
1636       ;;
1637   esac
1638
1639 else
1640   enable_nls=no
1641 fi;
1642
1643
1644 if test "$enable_nls" = yes; then
1645
1646 cat >>confdefs.h <<\_ACEOF
1647 #define ENABLE_NLS 1
1648 _ACEOF
1649
1650 fi
1651
1652 echo "$as_me:$LINENO: result: $enable_nls" >&5
1653 echo "${ECHO_T}$enable_nls" >&6
1654
1655
1656
1657 #
1658 # Default port number (--with-pgport), default 5432
1659 #
1660 echo "$as_me:$LINENO: checking for default port number" >&5
1661 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1662
1663
1664
1665 # Check whether --with-pgport or --without-pgport was given.
1666 if test "${with_pgport+set}" = set; then
1667   withval="$with_pgport"
1668
1669   case $withval in
1670     yes)
1671       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1672 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1673    { (exit 1); exit 1; }; }
1674       ;;
1675     no)
1676       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1677 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1678    { (exit 1); exit 1; }; }
1679       ;;
1680     *)
1681       default_port=$withval
1682       ;;
1683   esac
1684
1685 else
1686   default_port=5432
1687 fi;
1688
1689 echo "$as_me:$LINENO: result: $default_port" >&5
1690 echo "${ECHO_T}$default_port" >&6
1691 # Need both of these because some places want an integer and some a string
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define DEF_PGPORT ${default_port}
1695 _ACEOF
1696
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define DEF_PGPORT_STR "${default_port}"
1700 _ACEOF
1701
1702
1703
1704 #
1705 # Option to disable shared libraries
1706 #
1707
1708
1709 # Check whether --enable-shared or --disable-shared was given.
1710 if test "${enable_shared+set}" = set; then
1711   enableval="$enable_shared"
1712
1713   case $enableval in
1714     yes)
1715       :
1716       ;;
1717     no)
1718       :
1719       ;;
1720     *)
1721       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1722 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1723    { (exit 1); exit 1; }; }
1724       ;;
1725   esac
1726
1727 else
1728   enable_shared=yes
1729
1730 fi;
1731
1732
1733
1734 #
1735 # '-rpath'-like feature can be disabled
1736 #
1737
1738
1739 # Check whether --enable-rpath or --disable-rpath was given.
1740 if test "${enable_rpath+set}" = set; then
1741   enableval="$enable_rpath"
1742
1743   case $enableval in
1744     yes)
1745       :
1746       ;;
1747     no)
1748       :
1749       ;;
1750     *)
1751       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1752 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1753    { (exit 1); exit 1; }; }
1754       ;;
1755   esac
1756
1757 else
1758   enable_rpath=yes
1759
1760 fi;
1761
1762
1763
1764 #
1765 # Spinlocks
1766 #
1767
1768
1769 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1770 if test "${enable_spinlocks+set}" = set; then
1771   enableval="$enable_spinlocks"
1772
1773   case $enableval in
1774     yes)
1775       :
1776       ;;
1777     no)
1778       :
1779       ;;
1780     *)
1781       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1782 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1783    { (exit 1); exit 1; }; }
1784       ;;
1785   esac
1786
1787 else
1788   enable_spinlocks=yes
1789
1790 fi;
1791
1792
1793 #
1794 # --enable-debug adds -g to compiler flags
1795 #
1796
1797
1798 # Check whether --enable-debug or --disable-debug was given.
1799 if test "${enable_debug+set}" = set; then
1800   enableval="$enable_debug"
1801
1802   case $enableval in
1803     yes)
1804       :
1805       ;;
1806     no)
1807       :
1808       ;;
1809     *)
1810       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1811 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1812    { (exit 1); exit 1; }; }
1813       ;;
1814   esac
1815
1816 else
1817   enable_debug=no
1818
1819 fi;
1820
1821
1822
1823 #
1824 # C compiler
1825 #
1826
1827 # For historical reasons you can also use --with-CC to specify the C compiler
1828 # to use, although the standard way to do this is to set the CC environment
1829 # variable.
1830
1831
1832
1833 # Check whether --with-CC or --without-CC was given.
1834 if test "${with_CC+set}" = set; then
1835   withval="$with_CC"
1836
1837   case $withval in
1838     yes)
1839       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1840 echo "$as_me: error: argument required for --with-CC option" >&2;}
1841    { (exit 1); exit 1; }; }
1842       ;;
1843     no)
1844       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1845 echo "$as_me: error: argument required for --with-CC option" >&2;}
1846    { (exit 1); exit 1; }; }
1847       ;;
1848     *)
1849       CC=$with_CC
1850       ;;
1851   esac
1852
1853 fi;
1854
1855
1856 case $template in
1857   aix) pgac_cc_list="gcc xlc";;
1858  irix) pgac_cc_list="cc";; # no gcc
1859     *) pgac_cc_list="gcc cc";;
1860 esac
1861
1862 ac_ext=c
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test -n "$ac_tool_prefix"; then
1868   for ac_prog in $pgac_cc_list
1869   do
1870     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   if test -n "$CC"; then
1878   ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883   IFS=$as_save_IFS
1884   test -z "$as_dir" && as_dir=.
1885   for ac_exec_ext in '' $ac_executable_extensions; do
1886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889     break 2
1890   fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 CC=$ac_cv_prog_CC
1897 if test -n "$CC"; then
1898   echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1900 else
1901   echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905     test -n "$CC" && break
1906   done
1907 fi
1908 if test -z "$CC"; then
1909   ac_ct_CC=$CC
1910   for ac_prog in $pgac_cc_list
1911 do
1912   # Extract the first word of "$ac_prog", so it can be a program name with args.
1913 set dummy $ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$ac_ct_CC"; then
1920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_ac_ct_CC="$ac_prog"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947   test -n "$ac_ct_CC" && break
1948 done
1949
1950   CC=$ac_ct_CC
1951 fi
1952
1953
1954 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1956    { (exit 1); exit 1; }; }
1957
1958 # Provide some information about the compiler.
1959 echo "$as_me:$LINENO:" \
1960      "checking for C compiler version" >&5
1961 ac_compiler=`set X $ac_compile; echo $2`
1962 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1963   (eval $ac_compiler --version </dev/null >&5) 2>&5
1964   ac_status=$?
1965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966   (exit $ac_status); }
1967 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1968   (eval $ac_compiler -v </dev/null >&5) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }
1972 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1973   (eval $ac_compiler -V </dev/null >&5) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }
1977
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1981
1982 #ifdef F77_DUMMY_MAIN
1983 #  ifdef __cplusplus
1984      extern "C"
1985 #  endif
1986    int F77_DUMMY_MAIN() { return 1; }
1987 #endif
1988 int
1989 main ()
1990 {
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 ac_clean_files_save=$ac_clean_files
1997 ac_clean_files="$ac_clean_files a.out a.exe"
1998 # Try to create an executable without -o first, disregard a.out.
1999 # It will help us diagnose broken compilers, and finding out an intuition
2000 # of exeext.
2001 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2002 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2003 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2004 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2005   (eval $ac_link_default) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }; then
2009   # Find the output, starting from the most likely.  This scheme is
2010 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2011 # resort.
2012
2013 # Be careful to initialize this variable, since it used to be cached.
2014 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2015 ac_cv_exeext=
2016 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2017                 ls a.out conftest 2>/dev/null;
2018                 ls a.* conftest.* 2>/dev/null`; do
2019   case $ac_file in
2020     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2021     a.out ) # We found the default executable, but exeext='' is most
2022             # certainly right.
2023             break;;
2024     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2025           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2026           export ac_cv_exeext
2027           break;;
2028     * ) break;;
2029   esac
2030 done
2031 else
2032   echo "$as_me: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2035 echo "$as_me: error: C compiler cannot create executables" >&2;}
2036    { (exit 77); exit 77; }; }
2037 fi
2038
2039 ac_exeext=$ac_cv_exeext
2040 echo "$as_me:$LINENO: result: $ac_file" >&5
2041 echo "${ECHO_T}$ac_file" >&6
2042
2043 # Check the compiler produces executables we can run.  If not, either
2044 # the compiler is broken, or we cross compile.
2045 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2046 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2047 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2048 # If not cross compiling, check that we can run a simple program.
2049 if test "$cross_compiling" != yes; then
2050   if { ac_try='./$ac_file'
2051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052   (eval $ac_try) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); }; }; then
2056     cross_compiling=no
2057   else
2058     if test "$cross_compiling" = maybe; then
2059         cross_compiling=yes
2060     else
2061         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2062 If you meant to cross compile, use \`--host'." >&5
2063 echo "$as_me: error: cannot run C compiled programs.
2064 If you meant to cross compile, use \`--host'." >&2;}
2065    { (exit 1); exit 1; }; }
2066     fi
2067   fi
2068 fi
2069 echo "$as_me:$LINENO: result: yes" >&5
2070 echo "${ECHO_T}yes" >&6
2071
2072 rm -f a.out a.exe conftest$ac_cv_exeext
2073 ac_clean_files=$ac_clean_files_save
2074 # Check the compiler produces executables we can run.  If not, either
2075 # the compiler is broken, or we cross compile.
2076 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2077 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2078 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2079 echo "${ECHO_T}$cross_compiling" >&6
2080
2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2082 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2084   (eval $ac_link) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }; then
2088   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2089 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2090 # work properly (i.e., refer to `conftest.exe'), while it won't with
2091 # `rm'.
2092 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2093   case $ac_file in
2094     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2095     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096           export ac_cv_exeext
2097           break;;
2098     * ) break;;
2099   esac
2100 done
2101 else
2102   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2104    { (exit 1); exit 1; }; }
2105 fi
2106
2107 rm -f conftest$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2109 echo "${ECHO_T}$ac_cv_exeext" >&6
2110
2111 rm -f conftest.$ac_ext
2112 EXEEXT=$ac_cv_exeext
2113 ac_exeext=$EXEEXT
2114 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2116 if test "${ac_cv_objext+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2121 #include "confdefs.h"
2122
2123 #ifdef F77_DUMMY_MAIN
2124 #  ifdef __cplusplus
2125      extern "C"
2126 #  endif
2127    int F77_DUMMY_MAIN() { return 1; }
2128 #endif
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.o conftest.obj
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; then
2143   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2144   case $ac_file in
2145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2146     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2147        break;;
2148   esac
2149 done
2150 else
2151   echo "$as_me: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2155    { (exit 1); exit 1; }; }
2156 fi
2157
2158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2159 fi
2160 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2161 echo "${ECHO_T}$ac_cv_objext" >&6
2162 OBJEXT=$ac_cv_objext
2163 ac_objext=$OBJEXT
2164 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2165 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 #include "confdefs.h"
2172
2173 #ifdef F77_DUMMY_MAIN
2174 #  ifdef __cplusplus
2175      extern "C"
2176 #  endif
2177    int F77_DUMMY_MAIN() { return 1; }
2178 #endif
2179 int
2180 main ()
2181 {
2182 #ifndef __GNUC__
2183        choke me
2184 #endif
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192   (eval $ac_compile) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); } &&
2196          { ac_try='test -s conftest.$ac_objext'
2197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198   (eval $ac_try) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; }; then
2202   ac_compiler_gnu=yes
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 ac_compiler_gnu=no
2207 fi
2208 rm -f conftest.$ac_objext conftest.$ac_ext
2209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210
2211 fi
2212 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2214 GCC=`test $ac_compiler_gnu = yes && echo yes`
2215 ac_test_CFLAGS=${CFLAGS+set}
2216 ac_save_CFLAGS=$CFLAGS
2217 CFLAGS="-g"
2218 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2220 if test "${ac_cv_prog_cc_g+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2225 #include "confdefs.h"
2226
2227 #ifdef F77_DUMMY_MAIN
2228 #  ifdef __cplusplus
2229      extern "C"
2230 #  endif
2231    int F77_DUMMY_MAIN() { return 1; }
2232 #endif
2233 int
2234 main ()
2235 {
2236
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243   (eval $ac_compile) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); } &&
2247          { ac_try='test -s conftest.$ac_objext'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253   ac_cv_prog_cc_g=yes
2254 else
2255   echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 ac_cv_prog_cc_g=no
2258 fi
2259 rm -f conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263 if test "$ac_test_CFLAGS" = set; then
2264   CFLAGS=$ac_save_CFLAGS
2265 elif test $ac_cv_prog_cc_g = yes; then
2266   if test "$GCC" = yes; then
2267     CFLAGS="-g -O2"
2268   else
2269     CFLAGS="-g"
2270   fi
2271 else
2272   if test "$GCC" = yes; then
2273     CFLAGS="-O2"
2274   else
2275     CFLAGS=
2276   fi
2277 fi
2278 # Some people use a C++ compiler to compile C.  Since we use `exit',
2279 # in C++ we need to declare it.  In case someone uses the same compiler
2280 # for both compiling C and C++ we need to have the C++ compiler decide
2281 # the declaration of exit, since it's the most demanding environment.
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #ifndef __cplusplus
2284   choke me
2285 #endif
2286 _ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289   (eval $ac_compile) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); } &&
2293          { ac_try='test -s conftest.$ac_objext'
2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295   (eval $ac_try) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; }; then
2299   for ac_declaration in \
2300    ''\
2301    '#include <stdlib.h>' \
2302    'extern "C" void std::exit (int) throw (); using std::exit;' \
2303    'extern "C" void std::exit (int); using std::exit;' \
2304    'extern "C" void exit (int) throw ();' \
2305    'extern "C" void exit (int);' \
2306    'void exit (int);'
2307 do
2308   cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 #include "confdefs.h"
2311 #include <stdlib.h>
2312 $ac_declaration
2313 #ifdef F77_DUMMY_MAIN
2314 #  ifdef __cplusplus
2315      extern "C"
2316 #  endif
2317    int F77_DUMMY_MAIN() { return 1; }
2318 #endif
2319 int
2320 main ()
2321 {
2322 exit (42);
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329   (eval $ac_compile) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); } &&
2333          { ac_try='test -s conftest.$ac_objext'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; }; then
2339   :
2340 else
2341   echo "$as_me: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 continue
2344 fi
2345 rm -f conftest.$ac_objext conftest.$ac_ext
2346   cat >conftest.$ac_ext <<_ACEOF
2347 #line $LINENO "configure"
2348 #include "confdefs.h"
2349 $ac_declaration
2350 #ifdef F77_DUMMY_MAIN
2351 #  ifdef __cplusplus
2352      extern "C"
2353 #  endif
2354    int F77_DUMMY_MAIN() { return 1; }
2355 #endif
2356 int
2357 main ()
2358 {
2359 exit (42);
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   break
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 fi
2381 rm -f conftest.$ac_objext conftest.$ac_ext
2382 done
2383 rm -f conftest*
2384 if test -n "$ac_declaration"; then
2385   echo '#ifdef __cplusplus' >>confdefs.h
2386   echo $ac_declaration      >>confdefs.h
2387   echo '#endif'             >>confdefs.h
2388 fi
2389
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 fi
2394 rm -f conftest.$ac_objext conftest.$ac_ext
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402 unset CFLAGS
2403
2404 #
2405 # Read the template
2406 #
2407 . "$srcdir/src/template/$template" || exit
2408
2409 # CFLAGS are selected so:
2410 # If the user specifies something in the environment, that is used.
2411 # else:  If the template file set something, that is used.
2412 # else:  If the compiler is GCC, then we use -O2.
2413 # else:  If the compiler is something else, then we use -0.
2414
2415 if test "$ac_env_CFLAGS_set" = set; then
2416   CFLAGS=$ac_env_CFLAGS_value
2417 elif test "${CFLAGS+set}" = set; then
2418   : # (keep what template set)
2419 elif test "$GCC" = yes; then
2420   CFLAGS="-O2"
2421 else
2422   # if the user selected debug mode, don't use -O
2423   if test "$enable_debug" != yes; then
2424     CFLAGS="-O"
2425   fi
2426 fi
2427
2428 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2429 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2430 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2431 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   pgac_save_CFLAGS=$CFLAGS
2435 if test "$GCC" = yes; then
2436   pgac_try="-fno-strict-aliasing"
2437 else
2438   # Maybe fill in later...
2439   pgac_try=
2440 fi
2441
2442 for pgac_flag in $pgac_try; do
2443   CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2444   cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2447
2448 #ifdef F77_DUMMY_MAIN
2449 #  ifdef __cplusplus
2450      extern "C"
2451 #  endif
2452    int F77_DUMMY_MAIN() { return 1; }
2453 #endif
2454 int
2455 main ()
2456 {
2457
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464   (eval $ac_compile) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2475 break
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 fi
2480 rm -f conftest.$ac_objext conftest.$ac_ext
2481 done
2482
2483 CFLAGS=$pgac_save_CFLAGS
2484
2485 fi
2486 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2487 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2488
2489 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2490   CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2491 fi
2492
2493 # supply -g if --enable-debug
2494 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2495   CFLAGS="$CFLAGS -g"
2496 fi
2497
2498 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2499 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2500
2501 # We already have this in Makefile.win32, but configure needs it too
2502 if test "$PORTNAME" = "win32"; then
2503   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2504 fi
2505
2506 # Check if the compiler still works with the template settings
2507 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2508 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2509
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 #include "confdefs.h"
2513
2514 #ifdef F77_DUMMY_MAIN
2515 #  ifdef __cplusplus
2516      extern "C"
2517 #  endif
2518    int F77_DUMMY_MAIN() { return 1; }
2519 #endif
2520 int
2521 main ()
2522 {
2523 return 0;
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext conftest$ac_exeext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2530   (eval $ac_link) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -s conftest$ac_exeext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   echo "$as_me:$LINENO: result: yes" >&5
2541 echo "${ECHO_T}yes" >&6
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2548 echo "$as_me: error: cannot proceed" >&2;}
2549    { (exit 1); exit 1; }; }
2550 fi
2551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2552
2553 # Defend against gcc -ffast-math
2554 if test "$GCC" = yes; then
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 #include "confdefs.h"
2558
2559 #ifdef F77_DUMMY_MAIN
2560 #  ifdef __cplusplus
2561      extern "C"
2562 #  endif
2563    int F77_DUMMY_MAIN() { return 1; }
2564 #endif
2565 int
2566 main ()
2567 {
2568 #ifdef __FAST_MATH__
2569 choke me
2570 #endif
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577   (eval $ac_compile) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   :
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2592 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2593    { (exit 1); exit 1; }; }
2594 fi
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2596 fi
2597
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2604 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2605 # On Suns, sometimes $CPP names a directory.
2606 if test -n "$CPP" && test -d "$CPP"; then
2607   CPP=
2608 fi
2609 if test -z "$CPP"; then
2610   if test "${ac_cv_prog_CPP+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613       # Double quotes because CPP needs to be expanded
2614     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2615     do
2616       ac_preproc_ok=false
2617 for ac_c_preproc_warn_flag in '' yes
2618 do
2619   # Use a header file that comes with gcc, so configuring glibc
2620   # with a fresh cross-compiler works.
2621   # On the NeXT, cc -E runs the code through the compiler's parser,
2622   # not just through cpp. "Syntax error" is here to catch this case.
2623   cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2626 #include <assert.h>
2627                      Syntax error
2628 _ACEOF
2629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631   ac_status=$?
2632   egrep -v '^ *\+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } >/dev/null; then
2637   if test -s conftest.err; then
2638     ac_cpp_err=$ac_c_preproc_warn_flag
2639   else
2640     ac_cpp_err=
2641   fi
2642 else
2643   ac_cpp_err=yes
2644 fi
2645 if test -z "$ac_cpp_err"; then
2646   :
2647 else
2648   echo "$as_me: failed program was:" >&5
2649   cat conftest.$ac_ext >&5
2650   # Broken: fails on valid input.
2651 continue
2652 fi
2653 rm -f conftest.err conftest.$ac_ext
2654
2655   # OK, works on sane cases.  Now check whether non-existent headers
2656   # can be detected and how.
2657   cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 #include "confdefs.h"
2660 #include <ac_nonexistent.h>
2661 _ACEOF
2662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2664   ac_status=$?
2665   egrep -v '^ *\+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } >/dev/null; then
2670   if test -s conftest.err; then
2671     ac_cpp_err=$ac_c_preproc_warn_flag
2672   else
2673     ac_cpp_err=
2674   fi
2675 else
2676   ac_cpp_err=yes
2677 fi
2678 if test -z "$ac_cpp_err"; then
2679   # Broken: success on invalid input.
2680 continue
2681 else
2682   echo "$as_me: failed program was:" >&5
2683   cat conftest.$ac_ext >&5
2684   # Passes both tests.
2685 ac_preproc_ok=:
2686 break
2687 fi
2688 rm -f conftest.err conftest.$ac_ext
2689
2690 done
2691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2692 rm -f conftest.err conftest.$ac_ext
2693 if $ac_preproc_ok; then
2694   break
2695 fi
2696
2697     done
2698     ac_cv_prog_CPP=$CPP
2699
2700 fi
2701   CPP=$ac_cv_prog_CPP
2702 else
2703   ac_cv_prog_CPP=$CPP
2704 fi
2705 echo "$as_me:$LINENO: result: $CPP" >&5
2706 echo "${ECHO_T}$CPP" >&6
2707 ac_preproc_ok=false
2708 for ac_c_preproc_warn_flag in '' yes
2709 do
2710   # Use a header file that comes with gcc, so configuring glibc
2711   # with a fresh cross-compiler works.
2712   # On the NeXT, cc -E runs the code through the compiler's parser,
2713   # not just through cpp. "Syntax error" is here to catch this case.
2714   cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2717 #include <assert.h>
2718                      Syntax error
2719 _ACEOF
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722   ac_status=$?
2723   egrep -v '^ *\+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } >/dev/null; then
2728   if test -s conftest.err; then
2729     ac_cpp_err=$ac_c_preproc_warn_flag
2730   else
2731     ac_cpp_err=
2732   fi
2733 else
2734   ac_cpp_err=yes
2735 fi
2736 if test -z "$ac_cpp_err"; then
2737   :
2738 else
2739   echo "$as_me: failed program was:" >&5
2740   cat conftest.$ac_ext >&5
2741   # Broken: fails on valid input.
2742 continue
2743 fi
2744 rm -f conftest.err conftest.$ac_ext
2745
2746   # OK, works on sane cases.  Now check whether non-existent headers
2747   # can be detected and how.
2748   cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 #include "confdefs.h"
2751 #include <ac_nonexistent.h>
2752 _ACEOF
2753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2755   ac_status=$?
2756   egrep -v '^ *\+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } >/dev/null; then
2761   if test -s conftest.err; then
2762     ac_cpp_err=$ac_c_preproc_warn_flag
2763   else
2764     ac_cpp_err=
2765   fi
2766 else
2767   ac_cpp_err=yes
2768 fi
2769 if test -z "$ac_cpp_err"; then
2770   # Broken: success on invalid input.
2771 continue
2772 else
2773   echo "$as_me: failed program was:" >&5
2774   cat conftest.$ac_ext >&5
2775   # Passes both tests.
2776 ac_preproc_ok=:
2777 break
2778 fi
2779 rm -f conftest.err conftest.$ac_ext
2780
2781 done
2782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2783 rm -f conftest.err conftest.$ac_ext
2784 if $ac_preproc_ok; then
2785   :
2786 else
2787   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2789    { (exit 1); exit 1; }; }
2790 fi
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798
2799
2800 # Create compiler version string
2801 if test x"$GCC" = x"yes" ; then
2802   cc_string="GCC `${CC} --version | sed q`"
2803 else
2804   cc_string=$CC
2805 fi
2806
2807 cat >>confdefs.h <<_ACEOF
2808 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2809 _ACEOF
2810
2811
2812
2813 #
2814 # Set up TAS assembly code if needed; the template file has now had its
2815 # chance to request this.
2816 #
2817 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2818
2819
2820 if test "$need_tas" = yes ; then
2821   TAS=tas.o
2822 else
2823   TAS=""
2824 fi
2825
2826
2827
2828 #
2829 # Automatic dependency tracking
2830 #
2831
2832
2833 # Check whether --enable-depend or --disable-depend was given.
2834 if test "${enable_depend+set}" = set; then
2835   enableval="$enable_depend"
2836
2837   case $enableval in
2838     yes)
2839       autodepend=yes
2840       ;;
2841     no)
2842       :
2843       ;;
2844     *)
2845       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2846 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2847    { (exit 1); exit 1; }; }
2848       ;;
2849   esac
2850
2851 else
2852   enable_depend=no
2853
2854 fi;
2855
2856
2857
2858
2859 #
2860 # Enable assert checks
2861 #
2862
2863
2864 # Check whether --enable-cassert or --disable-cassert was given.
2865 if test "${enable_cassert+set}" = set; then
2866   enableval="$enable_cassert"
2867
2868   case $enableval in
2869     yes)
2870
2871 cat >>confdefs.h <<\_ACEOF
2872 #define USE_ASSERT_CHECKING 1
2873 _ACEOF
2874
2875       ;;
2876     no)
2877       :
2878       ;;
2879     *)
2880       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2881 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2882    { (exit 1); exit 1; }; }
2883       ;;
2884   esac
2885
2886 else
2887   enable_cassert=no
2888
2889 fi;
2890
2891
2892
2893 #
2894 # Include directories
2895 #
2896 ac_save_IFS=$IFS
2897 IFS="${IFS}:"
2898 # SRCH_INC comes from the template file
2899 for dir in $with_includes $SRCH_INC; do
2900   if test -d "$dir"; then
2901     INCLUDES="$INCLUDES -I$dir"
2902   else
2903     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2904 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2905   fi
2906 done
2907 IFS=$ac_save_IFS
2908
2909
2910
2911 #
2912 # Library directories
2913 #
2914 ac_save_IFS=$IFS
2915 IFS="${IFS}:"
2916 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2917 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2918   if test -d "$dir"; then
2919     LIBDIRS="$LIBDIRS -L$dir"
2920   else
2921     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2922 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2923   fi
2924 done
2925 IFS=$ac_save_IFS
2926
2927 #
2928 # Enable thread-safe client libraries
2929 #
2930 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2931 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2932
2933
2934 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2935 if test "${enable_thread_safety+set}" = set; then
2936   enableval="$enable_thread_safety"
2937
2938   case $enableval in
2939     yes)
2940
2941 cat >>confdefs.h <<\_ACEOF
2942 #define ENABLE_THREAD_SAFETY 1
2943 _ACEOF
2944
2945       ;;
2946     no)
2947       :
2948       ;;
2949     *)
2950       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2951 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2952    { (exit 1); exit 1; }; }
2953       ;;
2954   esac
2955
2956 else
2957   enable_thread_safety=no
2958
2959 fi;
2960
2961 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2962 echo "${ECHO_T}$enable_thread_safety" >&6
2963
2964
2965 #
2966 # Tcl/Tk
2967 #
2968 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2969 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2970
2971
2972
2973 # Check whether --with-tcl or --without-tcl was given.
2974 if test "${with_tcl+set}" = set; then
2975   withval="$with_tcl"
2976
2977   case $withval in
2978     yes)
2979       :
2980       ;;
2981     no)
2982       :
2983       ;;
2984     *)
2985       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2986 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2987    { (exit 1); exit 1; }; }
2988       ;;
2989   esac
2990
2991 else
2992   with_tcl=no
2993
2994 fi;
2995
2996 echo "$as_me:$LINENO: result: $with_tcl" >&5
2997 echo "${ECHO_T}$with_tcl" >&6
2998
2999
3000 # We see if the path to the Tcl/Tk configuration scripts is specified.
3001 # This will override the use of tclsh to find the paths to search.
3002
3003
3004
3005
3006 # Check whether --with-tclconfig or --without-tclconfig was given.
3007 if test "${with_tclconfig+set}" = set; then
3008   withval="$with_tclconfig"
3009
3010   case $withval in
3011     yes)
3012       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3013 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3014    { (exit 1); exit 1; }; }
3015       ;;
3016     no)
3017       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3018 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3019    { (exit 1); exit 1; }; }
3020       ;;
3021     *)
3022
3023       ;;
3024   esac
3025
3026 fi;
3027
3028
3029 #
3030 # Optionally build Perl modules (PL/Perl)
3031 #
3032 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3033 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3034
3035
3036
3037 # Check whether --with-perl or --without-perl was given.
3038 if test "${with_perl+set}" = set; then
3039   withval="$with_perl"
3040
3041   case $withval in
3042     yes)
3043       :
3044       ;;
3045     no)
3046       :
3047       ;;
3048     *)
3049       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3050 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3051    { (exit 1); exit 1; }; }
3052       ;;
3053   esac
3054
3055 else
3056   with_perl=no
3057
3058 fi;
3059
3060 echo "$as_me:$LINENO: result: $with_perl" >&5
3061 echo "${ECHO_T}$with_perl" >&6
3062
3063
3064 #
3065 # Optionally build Python modules (PL/Python)
3066 #
3067 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3068 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3069
3070
3071
3072 # Check whether --with-python or --without-python was given.
3073 if test "${with_python+set}" = set; then
3074   withval="$with_python"
3075
3076   case $withval in
3077     yes)
3078       :
3079       ;;
3080     no)
3081       :
3082       ;;
3083     *)
3084       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3085 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3086    { (exit 1); exit 1; }; }
3087       ;;
3088   esac
3089
3090 else
3091   with_python=no
3092
3093 fi;
3094
3095 echo "$as_me:$LINENO: result: $with_python" >&5
3096 echo "${ECHO_T}$with_python" >&6
3097
3098
3099 #
3100 # Kerberos 4
3101 #
3102 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3103 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3104
3105
3106
3107 # Check whether --with-krb4 or --without-krb4 was given.
3108 if test "${with_krb4+set}" = set; then
3109   withval="$with_krb4"
3110
3111   case $withval in
3112     yes)
3113
3114
3115 cat >>confdefs.h <<\_ACEOF
3116 #define KRB4 1
3117 _ACEOF
3118
3119   krb_srvtab="/etc/srvtab"
3120
3121       ;;
3122     no)
3123       :
3124       ;;
3125     *)
3126       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3127 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3128    { (exit 1); exit 1; }; }
3129       ;;
3130   esac
3131
3132 else
3133   with_krb4=no
3134
3135 fi;
3136
3137 echo "$as_me:$LINENO: result: $with_krb4" >&5
3138 echo "${ECHO_T}$with_krb4" >&6
3139
3140
3141
3142 #
3143 # Kerberos 5
3144 #
3145 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3146 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3147
3148
3149
3150 # Check whether --with-krb5 or --without-krb5 was given.
3151 if test "${with_krb5+set}" = set; then
3152   withval="$with_krb5"
3153
3154   case $withval in
3155     yes)
3156
3157
3158 cat >>confdefs.h <<\_ACEOF
3159 #define KRB5 1
3160 _ACEOF
3161
3162   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3163
3164       ;;
3165     no)
3166       :
3167       ;;
3168     *)
3169       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3170 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3171    { (exit 1); exit 1; }; }
3172       ;;
3173   esac
3174
3175 else
3176   with_krb5=no
3177
3178 fi;
3179
3180 echo "$as_me:$LINENO: result: $with_krb5" >&5
3181 echo "${ECHO_T}$with_krb5" >&6
3182
3183
3184
3185 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3186 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3187   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3188 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3189    { (exit 1); exit 1; }; }
3190 fi
3191
3192
3193
3194
3195 #
3196 # Kerberos configuration parameters
3197 #
3198
3199
3200
3201 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3202 if test "${with_krb_srvnam+set}" = set; then
3203   withval="$with_krb_srvnam"
3204
3205   case $withval in
3206     yes)
3207       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3208 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3209    { (exit 1); exit 1; }; }
3210       ;;
3211     no)
3212       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3213 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3214    { (exit 1); exit 1; }; }
3215       ;;
3216     *)
3217
3218       ;;
3219   esac
3220
3221 else
3222   with_krb_srvnam="postgres"
3223 fi;
3224
3225
3226 cat >>confdefs.h <<_ACEOF
3227 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3228 _ACEOF
3229
3230
3231
3232 #
3233 # PAM
3234 #
3235 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3236 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3237
3238
3239
3240 # Check whether --with-pam or --without-pam was given.
3241 if test "${with_pam+set}" = set; then
3242   withval="$with_pam"
3243
3244   case $withval in
3245     yes)
3246
3247 cat >>confdefs.h <<\_ACEOF
3248 #define USE_PAM 1
3249 _ACEOF
3250
3251       ;;
3252     no)
3253       :
3254       ;;
3255     *)
3256       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3257 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3258    { (exit 1); exit 1; }; }
3259       ;;
3260   esac
3261
3262 else
3263   with_pam=no
3264
3265 fi;
3266
3267 echo "$as_me:$LINENO: result: $with_pam" >&5
3268 echo "${ECHO_T}$with_pam" >&6
3269
3270
3271
3272 #
3273 # Rendezvous
3274 #
3275 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3276 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3277
3278
3279
3280 # Check whether --with-rendezvous or --without-rendezvous was given.
3281 if test "${with_rendezvous+set}" = set; then
3282   withval="$with_rendezvous"
3283
3284   case $withval in
3285     yes)
3286
3287 cat >>confdefs.h <<\_ACEOF
3288 #define USE_RENDEZVOUS 1
3289 _ACEOF
3290
3291       ;;
3292     no)
3293       :
3294       ;;
3295     *)
3296       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3297 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3298    { (exit 1); exit 1; }; }
3299       ;;
3300   esac
3301
3302 else
3303   with_rendezvous=no
3304
3305 fi;
3306
3307 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3308 echo "${ECHO_T}$with_rendezvous" >&6
3309
3310
3311
3312 #
3313 # OpenSSL
3314 #
3315 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3316 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3317
3318
3319
3320 # Check whether --with-openssl or --without-openssl was given.
3321 if test "${with_openssl+set}" = set; then
3322   withval="$with_openssl"
3323
3324   case $withval in
3325     yes)
3326
3327 cat >>confdefs.h <<\_ACEOF
3328 #define USE_SSL 1
3329 _ACEOF
3330
3331       ;;
3332     no)
3333       :
3334       ;;
3335     *)
3336       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3337 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3338    { (exit 1); exit 1; }; }
3339       ;;
3340   esac
3341
3342 else
3343   with_openssl=no
3344
3345 fi;
3346
3347 echo "$as_me:$LINENO: result: $with_openssl" >&5
3348 echo "${ECHO_T}$with_openssl" >&6
3349
3350
3351
3352 #
3353 # Readline
3354 #
3355
3356
3357
3358 # Check whether --with-readline or --without-readline was given.
3359 if test "${with_readline+set}" = set; then
3360   withval="$with_readline"
3361
3362   case $withval in
3363     yes)
3364       :
3365       ;;
3366     no)
3367       :
3368       ;;
3369     *)
3370       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3371 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3372    { (exit 1); exit 1; }; }
3373       ;;
3374   esac
3375
3376 else
3377   with_readline=yes
3378
3379 fi;
3380
3381
3382 #
3383 # Zlib
3384 #
3385
3386
3387
3388 # Check whether --with-zlib or --without-zlib was given.
3389 if test "${with_zlib+set}" = set; then
3390   withval="$with_zlib"
3391
3392   case $withval in
3393     yes)
3394       :
3395       ;;
3396     no)
3397       :
3398       ;;
3399     *)
3400       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3401 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3402    { (exit 1); exit 1; }; }
3403       ;;
3404   esac
3405
3406 else
3407   with_zlib=yes
3408
3409 fi;
3410
3411
3412 #
3413 # Elf
3414 #
3415
3416 # Assume system is ELF if it predefines __ELF__ as 1,
3417 # otherwise believe host_os based default.
3418 case $host_os in
3419     freebsd1*|freebsd2*) elf=no;;
3420     freebsd3*|freebsd4*) elf=yes;;
3421 esac
3422
3423
3424 cat >conftest.$ac_ext <<_ACEOF
3425 #line $LINENO "configure"
3426 #include "confdefs.h"
3427 #if __ELF__
3428   yes
3429 #endif
3430
3431 _ACEOF
3432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433   egrep "yes" >/dev/null 2>&1; then
3434   ELF_SYS=true
3435 else
3436   if test "X$elf" = "Xyes" ; then
3437   ELF_SYS=true
3438 else
3439   ELF_SYS=
3440 fi
3441 fi
3442 rm -f conftest*
3443
3444
3445
3446 #
3447 # Assignments
3448 #
3449
3450 CPPFLAGS="$CPPFLAGS $INCLUDES"
3451 LDFLAGS="$LDFLAGS $LIBDIRS"
3452
3453 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3454 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3455 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3456 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3457
3458
3459 for ac_prog in gawk mawk nawk awk
3460 do
3461   # Extract the first word of "$ac_prog", so it can be a program name with args.
3462 set dummy $ac_prog; ac_word=$2
3463 echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_prog_AWK+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   if test -n "$AWK"; then
3469   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476   for ac_exec_ext in '' $ac_executable_extensions; do
3477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     ac_cv_prog_AWK="$ac_prog"
3479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483 done
3484
3485 fi
3486 fi
3487 AWK=$ac_cv_prog_AWK
3488 if test -n "$AWK"; then
3489   echo "$as_me:$LINENO: result: $AWK" >&5
3490 echo "${ECHO_T}$AWK" >&6
3491 else
3492   echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3494 fi
3495
3496   test -n "$AWK" && break
3497 done
3498
3499 echo "$as_me:$LINENO: checking for flex" >&5
3500 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3501 if test "${pgac_cv_path_flex+set}" = set; then
3502   echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504   # Let the user override the test
3505 if test -n "$FLEX"; then
3506   pgac_cv_path_flex=$FLEX
3507 else
3508   pgac_save_IFS=$IFS
3509   IFS=:
3510   for pgac_dir in $PATH; do
3511     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3512       pgac_dir=`pwd`
3513     fi
3514     for pgac_prog in flex lex; do
3515       pgac_candidate="$pgac_dir/$pgac_prog"
3516       if test -f "$pgac_candidate" \
3517         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3518       then
3519         echo '%%'  > conftest.l
3520         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3521           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3522             pgac_broken_flex=$pgac_candidate
3523             continue
3524           fi
3525
3526           pgac_cv_path_flex=$pgac_candidate
3527           break 2
3528         fi
3529       fi
3530     done
3531   done
3532   IFS=$pgac_save_IFS
3533   rm -f conftest.l
3534   : ${pgac_cv_path_flex=no}
3535 fi
3536
3537 fi
3538 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3539 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3540 if test x"$pgac_cv_path_flex" = x"no"; then
3541   if test -n "$pgac_broken_flex"; then
3542     { echo "$as_me:$LINENO: WARNING:
3543 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3544 *** should get version 2.5.4 or later." >&5
3545 echo "$as_me: WARNING:
3546 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3547 *** should get version 2.5.4 or later." >&2;}
3548   fi
3549
3550   { echo "$as_me:$LINENO: WARNING:
3551 *** Without Flex you will not be able to build PostgreSQL from CVS or
3552 *** change any of the scanner definition files.  You can obtain Flex from
3553 *** a GNU mirror site.  (If you are using the official distribution of
3554 *** PostgreSQL then you do not need to worry about this because the Flex
3555 *** output is pre-generated.)" >&5
3556 echo "$as_me: WARNING:
3557 *** Without Flex you will not be able to build PostgreSQL from CVS or
3558 *** change any of the scanner definition files.  You can obtain Flex from
3559 *** a GNU mirror site.  (If you are using the official distribution of
3560 *** PostgreSQL then you do not need to worry about this because the Flex
3561 *** output is pre-generated.)" >&2;}
3562 fi
3563
3564 if test x"$pgac_cv_path_flex" = x"no"; then
3565   FLEX=
3566 else
3567   FLEX=$pgac_cv_path_flex
3568 fi
3569
3570
3571
3572
3573 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3574 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3575 LN_S=$as_ln_s
3576 if test "$LN_S" = "ln -s"; then
3577   echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3579 else
3580   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3581 echo "${ECHO_T}no, using $LN_S" >&6
3582 fi
3583
3584
3585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3586 if test "${with_gnu_ld+set}" = set; then
3587   withval="$with_gnu_ld"
3588   test "$withval" = no || with_gnu_ld=yes
3589 else
3590   with_gnu_ld=no
3591 fi;
3592 ac_prog=ld
3593 if test "$GCC" = yes; then
3594   # Check if gcc -print-prog-name=ld gives a path.
3595   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3596 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3597   case $host in
3598   *-*-mingw*)
3599     # gcc leaves a trailing carriage return which upsets mingw
3600     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3601   *)
3602     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3603   esac
3604   case "$ac_prog" in
3605     # Accept absolute paths.
3606     [\\/]* | [A-Za-z]:[\\/]*)
3607       re_direlt='/[^/][^/]*/\.\./'
3608       # Canonicalize the path of ld
3609       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3610       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3611         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3612       done
3613       test -z "$LD" && LD="$ac_prog"
3614       ;;
3615   "")
3616     # If it fails, then pretend we aren't using GCC.
3617     ac_prog=ld
3618     ;;
3619   *)
3620     # If it is relative, then search for the first ld in PATH.
3621     with_gnu_ld=unknown
3622     ;;
3623   esac
3624 elif test "$with_gnu_ld" = yes; then
3625   echo "$as_me:$LINENO: checking for GNU ld" >&5
3626 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3627 else
3628   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3629 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3630 fi
3631 if test "${ac_cv_path_LD+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   if test -z "$LD"; then
3635   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3636   for ac_dir in $PATH; do
3637     test -z "$ac_dir" && ac_dir=.
3638     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3639       ac_cv_path_LD="$ac_dir/$ac_prog"
3640       # Check to see if the program is GNU ld.  I'd rather use --version,
3641       # but apparently some GNU ld's only accept -v.
3642       # Break only if it was the GNU/non-GNU ld that we prefer.
3643       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3644         test "$with_gnu_ld" != no && break
3645       else
3646         test "$with_gnu_ld" != yes && break
3647       fi
3648     fi
3649   done
3650   IFS="$ac_save_ifs"
3651 else
3652   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3653 fi
3654 fi
3655
3656 LD="$ac_cv_path_LD"
3657 if test -n "$LD"; then
3658   echo "$as_me:$LINENO: result: $LD" >&5
3659 echo "${ECHO_T}$LD" >&6
3660 else
3661   echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3665 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3666    { (exit 1); exit 1; }; }
3667 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3668 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3669 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3673 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3674   ac_cv_prog_gnu_ld=yes
3675 else
3676   ac_cv_prog_gnu_ld=no
3677 fi
3678 fi
3679 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3680 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3681 with_gnu_ld=$ac_cv_prog_gnu_ld
3682
3683
3684
3685
3686 case $host_os in sysv5*)
3687   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3688 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3689 if test "${pgac_cv_prog_ld_R+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692
3693     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3694     cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 #include "confdefs.h"
3697
3698 #ifdef F77_DUMMY_MAIN
3699 #  ifdef __cplusplus
3700      extern "C"
3701 #  endif
3702    int F77_DUMMY_MAIN() { return 1; }
3703 #endif
3704 int
3705 main ()
3706 {
3707
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714   (eval $ac_link) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -s conftest$ac_exeext'
3719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; }; then
3724   pgac_cv_prog_ld_R=yes
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 pgac_cv_prog_ld_R=no
3729 fi
3730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731     LDFLAGS=$pgac_save_LDFLAGS
3732
3733 fi
3734 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3735 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3736   ld_R_works=$pgac_cv_prog_ld_R
3737
3738 esac
3739 if test -n "$ac_tool_prefix"; then
3740   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_RANLIB+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   if test -n "$RANLIB"; then
3748   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764 fi
3765 fi
3766 RANLIB=$ac_cv_prog_RANLIB
3767 if test -n "$RANLIB"; then
3768   echo "$as_me:$LINENO: result: $RANLIB" >&5
3769 echo "${ECHO_T}$RANLIB" >&6
3770 else
3771   echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3773 fi
3774
3775 fi
3776 if test -z "$ac_cv_prog_RANLIB"; then
3777   ac_ct_RANLIB=$RANLIB
3778   # Extract the first word of "ranlib", so it can be a program name with args.
3779 set dummy ranlib; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -n "$ac_ct_RANLIB"; then
3786   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_prog_ac_ct_RANLIB="ranlib"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3803 fi
3804 fi
3805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3806 if test -n "$ac_ct_RANLIB"; then
3807   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3808 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3809 else
3810   echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3812 fi
3813
3814   RANLIB=$ac_ct_RANLIB
3815 else
3816   RANLIB="$ac_cv_prog_RANLIB"
3817 fi
3818
3819 for ac_prog in lorder
3820 do
3821   # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy $ac_prog; ac_word=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_LORDER+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   if test -n "$LORDER"; then
3829   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for ac_exec_ext in '' $ac_executable_extensions; do
3837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_prog_LORDER="$ac_prog"
3839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843 done
3844
3845 fi
3846 fi
3847 LORDER=$ac_cv_prog_LORDER
3848 if test -n "$LORDER"; then
3849   echo "$as_me:$LINENO: result: $LORDER" >&5
3850 echo "${ECHO_T}$LORDER" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856   test -n "$LORDER" && break
3857 done
3858
3859 # Extract the first word of "tar", so it can be a program name with args.
3860 set dummy tar; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_TAR+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   case $TAR in
3867   [\\/]* | ?:[\\/]*)
3868   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3869   ;;
3870   *)
3871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883 done
3884
3885   ;;
3886 esac
3887 fi
3888 TAR=$ac_cv_path_TAR
3889
3890 if test -n "$TAR"; then
3891   echo "$as_me:$LINENO: result: $TAR" >&5
3892 echo "${ECHO_T}$TAR" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898
3899   if test -n "$ac_tool_prefix"; then
3900   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}strip; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_STRIP+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   if test -n "$STRIP"; then
3908   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924 fi
3925 fi
3926 STRIP=$ac_cv_prog_STRIP
3927 if test -n "$STRIP"; then
3928   echo "$as_me:$LINENO: result: $STRIP" >&5
3929 echo "${ECHO_T}$STRIP" >&6
3930 else
3931   echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 fi
3934
3935 fi
3936 if test -z "$ac_cv_prog_STRIP"; then
3937   ac_ct_STRIP=$STRIP
3938   # Extract the first word of "strip", so it can be a program name with args.
3939 set dummy strip; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   if test -n "$ac_ct_STRIP"; then
3946   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_prog_ac_ct_STRIP="strip"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3963 fi
3964 fi
3965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3966 if test -n "$ac_ct_STRIP"; then
3967   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3968 echo "${ECHO_T}$ac_ct_STRIP" >&6
3969 else
3970   echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3972 fi
3973
3974   STRIP=$ac_ct_STRIP
3975 else
3976   STRIP="$ac_cv_prog_STRIP"
3977 fi
3978
3979
3980   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
3981 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
3982   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
3983     STRIP_STATIC_LIB="$STRIP -x"
3984     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
3985     echo "$as_me:$LINENO: result: yes" >&5
3986 echo "${ECHO_T}yes" >&6
3987   else
3988     STRIP_STATIC_LIB=:
3989     STRIP_SHARED_LIB=:
3990     echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992   fi
3993
3994
3995
3996
3997 for ac_prog in 'bison -y'
3998 do
3999   # Extract the first word of "$ac_prog", so it can be a program name with args.
4000 set dummy $ac_prog; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_YACC+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$YACC"; then
4007   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_YACC="$ac_prog"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023 fi
4024 fi
4025 YACC=$ac_cv_prog_YACC
4026 if test -n "$YACC"; then
4027   echo "$as_me:$LINENO: result: $YACC" >&5
4028 echo "${ECHO_T}$YACC" >&6
4029 else
4030   echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4032 fi
4033
4034   test -n "$YACC" && break
4035 done
4036
4037
4038 if test "$YACC"; then
4039   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4040     { echo "$as_me:$LINENO: WARNING:
4041 *** If you are going to modify the grammar files or build from CVS, the installed
4042 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4043 echo "$as_me: WARNING:
4044 *** If you are going to modify the grammar files or build from CVS, the installed
4045 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4046   fi
4047 fi
4048
4049 if test -z "$YACC"; then
4050   { echo "$as_me:$LINENO: WARNING:
4051 *** Without Bison you will not be able to build PostgreSQL from CVS or
4052 *** change any of the parser definition files.  You can obtain Bison from
4053 *** a GNU mirror site.  (If you are using the official distribution of
4054 *** PostgreSQL then you do not need to worry about this because the Bison
4055 *** output is pre-generated.)  To use a different yacc program (possible,
4056 *** but not recommended), set the environment variable YACC before running
4057 *** 'configure'." >&5
4058 echo "$as_me: WARNING:
4059 *** Without Bison you will not be able to build PostgreSQL from CVS or
4060 *** change any of the parser definition files.  You can obtain Bison from
4061 *** a GNU mirror site.  (If you are using the official distribution of
4062 *** PostgreSQL then you do not need to worry about this because the Bison
4063 *** output is pre-generated.)  To use a different yacc program (possible,
4064 *** but not recommended), set the environment variable YACC before running
4065 *** 'configure'." >&2;}
4066 fi
4067
4068
4069 # Extract the first word of "perl", so it can be a program name with args.
4070 set dummy perl; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PERL+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   case $PERL in
4077   [\\/]* | ?:[\\/]*)
4078   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4079   ;;
4080   *)
4081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094
4095   ;;
4096 esac
4097 fi
4098 PERL=$ac_cv_path_PERL
4099
4100 if test -n "$PERL"; then
4101   echo "$as_me:$LINENO: result: $PERL" >&5
4102 echo "${ECHO_T}$PERL" >&6
4103 else
4104   echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108 if test "$with_perl" = yes; then
4109
4110 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4111 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4112 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4113 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4114 echo "${ECHO_T}$perl_archlibexp" >&6
4115 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4116 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4117 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4118 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4119 echo "${ECHO_T}$perl_privlibexp" >&6
4120 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4121 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4122 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4123 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4124 echo "${ECHO_T}$perl_useshrplib" >&6
4125
4126 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4127 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4128 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4129 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4130 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4131 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4132 echo "${ECHO_T}$perl_embed_ldflags" >&6
4133 fi
4134
4135 if test "$with_python" = yes; then
4136   # Extract the first word of "python", so it can be a program name with args.
4137 set dummy python; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_path_PYTHON+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   case $PYTHON in
4144   [\\/]* | ?:[\\/]*)
4145   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4146   ;;
4147   *)
4148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151   IFS=$as_save_IFS
4152   test -z "$as_dir" && as_dir=.
4153   for ac_exec_ext in '' $ac_executable_extensions; do
4154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157     break 2
4158   fi
4159 done
4160 done
4161
4162   ;;
4163 esac
4164 fi
4165 PYTHON=$ac_cv_path_PYTHON
4166
4167 if test -n "$PYTHON"; then
4168   echo "$as_me:$LINENO: result: $PYTHON" >&5
4169 echo "${ECHO_T}$PYTHON" >&6
4170 else
4171   echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4173 fi
4174
4175 if test x"$PYTHON" = x""; then
4176   { { echo "$as_me:$LINENO: error: Python not found" >&5
4177 echo "$as_me: error: Python not found" >&2;}
4178    { (exit 1); exit 1; }; }
4179 fi
4180
4181
4182 echo "$as_me:$LINENO: checking Python installation directories" >&5
4183 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4184 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4185 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4186 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4187 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4188 python_includespec="-I${python_prefix}/include/python${python_version}"
4189 if test "$python_prefix" != "$python_execprefix"; then
4190   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4191 fi
4192
4193 # This should be enough of a message.
4194 if test "$python_prefix" != "$python_execprefix"; then
4195   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4196 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4197 else
4198   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4199 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4200 fi
4201
4202
4203 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4204 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4205
4206 if test ! -f "$python_configdir/Makefile"; then
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4210 echo "$as_me: error: Python Makefile not found" >&2;}
4211    { (exit 1); exit 1; }; }
4212 fi
4213
4214 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4215 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4216 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4217 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4218 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4219
4220 pgac_tab="      " # tab character
4221 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"`
4222
4223 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4224 echo "${ECHO_T}${python_libspec}" >&6
4225
4226
4227 fi
4228
4229
4230 ##
4231 ## Libraries
4232 ##
4233
4234 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4235 then
4236
4237 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4238 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4239 if test "${ac_cv_lib_bsd_main+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   ac_check_lib_save_LIBS=$LIBS
4243 LIBS="-lbsd  $LIBS"
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 #include "confdefs.h"
4247
4248
4249 #ifdef F77_DUMMY_MAIN
4250 #  ifdef __cplusplus
4251      extern "C"
4252 #  endif
4253    int F77_DUMMY_MAIN() { return 1; }
4254 #endif
4255 int
4256 main ()
4257 {
4258 main ();
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265   (eval $ac_link) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   ac_cv_lib_bsd_main=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 ac_cv_lib_bsd_main=no
4280 fi
4281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4282 LIBS=$ac_check_lib_save_LIBS
4283 fi
4284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4285 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4286 if test $ac_cv_lib_bsd_main = yes; then
4287   cat >>confdefs.h <<_ACEOF
4288 #define HAVE_LIBBSD 1
4289 _ACEOF
4290
4291   LIBS="-lbsd $LIBS"
4292
4293 fi
4294
4295 fi
4296
4297 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4298 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4299 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   ac_check_lib_save_LIBS=$LIBS
4303 LIBS="-lutil  $LIBS"
4304 cat >conftest.$ac_ext <<_ACEOF
4305 #line $LINENO "configure"
4306 #include "confdefs.h"
4307
4308 /* Override any gcc2 internal prototype to avoid an error.  */
4309 #ifdef __cplusplus
4310 extern "C"
4311 #endif
4312 /* We use char because int might match the return type of a gcc2
4313    builtin and then its argument prototype would still apply.  */
4314 char setproctitle ();
4315 #ifdef F77_DUMMY_MAIN
4316 #  ifdef __cplusplus
4317      extern "C"
4318 #  endif
4319    int F77_DUMMY_MAIN() { return 1; }
4320 #endif
4321 int
4322 main ()
4323 {
4324 setproctitle ();
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4331   (eval $ac_link) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -s conftest$ac_exeext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   ac_cv_lib_util_setproctitle=yes
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 ac_cv_lib_util_setproctitle=no
4346 fi
4347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4348 LIBS=$ac_check_lib_save_LIBS
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4351 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4352 if test $ac_cv_lib_util_setproctitle = yes; then
4353   cat >>confdefs.h <<_ACEOF
4354 #define HAVE_LIBUTIL 1
4355 _ACEOF
4356
4357   LIBS="-lutil $LIBS"
4358
4359 fi
4360
4361
4362 echo "$as_me:$LINENO: checking for main in -lm" >&5
4363 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4364 if test "${ac_cv_lib_m_main+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   ac_check_lib_save_LIBS=$LIBS
4368 LIBS="-lm  $LIBS"
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 #include "confdefs.h"
4372
4373
4374 #ifdef F77_DUMMY_MAIN
4375 #  ifdef __cplusplus
4376      extern "C"
4377 #  endif
4378    int F77_DUMMY_MAIN() { return 1; }
4379 #endif
4380 int
4381 main ()
4382 {
4383 main ();
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390   (eval $ac_link) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -s conftest$ac_exeext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_cv_lib_m_main=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 ac_cv_lib_m_main=no
4405 fi
4406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4407 LIBS=$ac_check_lib_save_LIBS
4408 fi
4409 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4410 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4411 if test $ac_cv_lib_m_main = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define HAVE_LIBM 1
4414 _ACEOF
4415
4416   LIBS="-lm $LIBS"
4417
4418 fi
4419
4420
4421 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4422 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4423 if test "${ac_cv_lib_dl_main+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   ac_check_lib_save_LIBS=$LIBS
4427 LIBS="-ldl  $LIBS"
4428 cat >conftest.$ac_ext <<_ACEOF
4429 #line $LINENO "configure"
4430 #include "confdefs.h"
4431
4432
4433 #ifdef F77_DUMMY_MAIN
4434 #  ifdef __cplusplus
4435      extern "C"
4436 #  endif
4437    int F77_DUMMY_MAIN() { return 1; }
4438 #endif
4439 int
4440 main ()
4441 {
4442 main ();
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449   (eval $ac_link) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -s conftest$ac_exeext'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459   ac_cv_lib_dl_main=yes
4460 else
4461   echo "$as_me: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 ac_cv_lib_dl_main=no
4464 fi
4465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4466 LIBS=$ac_check_lib_save_LIBS
4467 fi
4468 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4469 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4470 if test $ac_cv_lib_dl_main = yes; then
4471   cat >>confdefs.h <<_ACEOF
4472 #define HAVE_LIBDL 1
4473 _ACEOF
4474
4475   LIBS="-ldl $LIBS"
4476
4477 fi
4478
4479
4480 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4481 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4482 if test "${ac_cv_lib_nsl_main+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   ac_check_lib_save_LIBS=$LIBS
4486 LIBS="-lnsl  $LIBS"
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4489 #include "confdefs.h"
4490
4491
4492 #ifdef F77_DUMMY_MAIN
4493 #  ifdef __cplusplus
4494      extern "C"
4495 #  endif
4496    int F77_DUMMY_MAIN() { return 1; }
4497 #endif
4498 int
4499 main ()
4500 {
4501 main ();
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508   (eval $ac_link) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_cv_lib_nsl_main=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_cv_lib_nsl_main=no
4523 fi
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4526 fi
4527 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4528 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4529 if test $ac_cv_lib_nsl_main = yes; then
4530   cat >>confdefs.h <<_ACEOF
4531 #define HAVE_LIBNSL 1
4532 _ACEOF
4533
4534   LIBS="-lnsl $LIBS"
4535
4536 fi
4537
4538
4539 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4540 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4541 if test "${ac_cv_lib_socket_main+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   ac_check_lib_save_LIBS=$LIBS
4545 LIBS="-lsocket  $LIBS"
4546 cat >conftest.$ac_ext <<_ACEOF
4547 #line $LINENO "configure"
4548 #include "confdefs.h"
4549
4550
4551 #ifdef F77_DUMMY_MAIN
4552 #  ifdef __cplusplus
4553      extern "C"
4554 #  endif
4555    int F77_DUMMY_MAIN() { return 1; }
4556 #endif
4557 int
4558 main ()
4559 {
4560 main ();
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567   (eval $ac_link) 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } &&
4571          { ac_try='test -s conftest$ac_exeext'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; }; then
4577   ac_cv_lib_socket_main=yes
4578 else
4579   echo "$as_me: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 ac_cv_lib_socket_main=no
4582 fi
4583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4584 LIBS=$ac_check_lib_save_LIBS
4585 fi
4586 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4587 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4588 if test $ac_cv_lib_socket_main = yes; then
4589   cat >>confdefs.h <<_ACEOF
4590 #define HAVE_LIBSOCKET 1
4591 _ACEOF
4592
4593   LIBS="-lsocket $LIBS"
4594
4595 fi
4596
4597
4598 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4599 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4600 if test "${ac_cv_lib_ipc_main+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   ac_check_lib_save_LIBS=$LIBS
4604 LIBS="-lipc  $LIBS"
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4608
4609
4610 #ifdef F77_DUMMY_MAIN
4611 #  ifdef __cplusplus
4612      extern "C"
4613 #  endif
4614    int F77_DUMMY_MAIN() { return 1; }
4615 #endif
4616 int
4617 main ()
4618 {
4619 main ();
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626   (eval $ac_link) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } &&
4630          { ac_try='test -s conftest$ac_exeext'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636   ac_cv_lib_ipc_main=yes
4637 else
4638   echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_lib_ipc_main=no
4641 fi
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4643 LIBS=$ac_check_lib_save_LIBS
4644 fi
4645 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4646 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4647 if test $ac_cv_lib_ipc_main = yes; then
4648   cat >>confdefs.h <<_ACEOF
4649 #define HAVE_LIBIPC 1
4650 _ACEOF
4651
4652   LIBS="-lipc $LIBS"
4653
4654 fi
4655
4656
4657 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4658 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4659 if test "${ac_cv_lib_IPC_main+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   ac_check_lib_save_LIBS=$LIBS
4663 LIBS="-lIPC  $LIBS"
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667
4668
4669 #ifdef F77_DUMMY_MAIN
4670 #  ifdef __cplusplus
4671      extern "C"
4672 #  endif
4673    int F77_DUMMY_MAIN() { return 1; }
4674 #endif
4675 int
4676 main ()
4677 {
4678 main ();
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685   (eval $ac_link) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } &&
4689          { ac_try='test -s conftest$ac_exeext'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   ac_cv_lib_IPC_main=yes
4696 else
4697   echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_lib_IPC_main=no
4700 fi
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4705 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4706 if test $ac_cv_lib_IPC_main = yes; then
4707   cat >>confdefs.h <<_ACEOF
4708 #define HAVE_LIBIPC 1
4709 _ACEOF
4710
4711   LIBS="-lIPC $LIBS"
4712
4713 fi
4714
4715
4716 echo "$as_me:$LINENO: checking for main in -llc" >&5
4717 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4718 if test "${ac_cv_lib_lc_main+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   ac_check_lib_save_LIBS=$LIBS
4722 LIBS="-llc  $LIBS"
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4726
4727
4728 #ifdef F77_DUMMY_MAIN
4729 #  ifdef __cplusplus
4730      extern "C"
4731 #  endif
4732    int F77_DUMMY_MAIN() { return 1; }
4733 #endif
4734 int
4735 main ()
4736 {
4737 main ();
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744   (eval $ac_link) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -s conftest$ac_exeext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_lib_lc_main=yes
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 ac_cv_lib_lc_main=no
4759 fi
4760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4761 LIBS=$ac_check_lib_save_LIBS
4762 fi
4763 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4764 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4765 if test $ac_cv_lib_lc_main = yes; then
4766   cat >>confdefs.h <<_ACEOF
4767 #define HAVE_LIBLC 1
4768 _ACEOF
4769
4770   LIBS="-llc $LIBS"
4771
4772 fi
4773
4774
4775 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4776 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4777 if test "${ac_cv_lib_dld_main+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   ac_check_lib_save_LIBS=$LIBS
4781 LIBS="-ldld  $LIBS"
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 #include "confdefs.h"
4785
4786
4787 #ifdef F77_DUMMY_MAIN
4788 #  ifdef __cplusplus
4789      extern "C"
4790 #  endif
4791    int F77_DUMMY_MAIN() { return 1; }
4792 #endif
4793 int
4794 main ()
4795 {
4796 main ();
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803   (eval $ac_link) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -s conftest$ac_exeext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_cv_lib_dld_main=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_dld_main=no
4818 fi
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4821 fi
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4823 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4824 if test $ac_cv_lib_dld_main = yes; then
4825   cat >>confdefs.h <<_ACEOF
4826 #define HAVE_LIBDLD 1
4827 _ACEOF
4828
4829   LIBS="-ldld $LIBS"
4830
4831 fi
4832
4833
4834 echo "$as_me:$LINENO: checking for main in -lld" >&5
4835 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4836 if test "${ac_cv_lib_ld_main+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   ac_check_lib_save_LIBS=$LIBS
4840 LIBS="-lld  $LIBS"
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844
4845
4846 #ifdef F77_DUMMY_MAIN
4847 #  ifdef __cplusplus
4848      extern "C"
4849 #  endif
4850    int F77_DUMMY_MAIN() { return 1; }
4851 #endif
4852 int
4853 main ()
4854 {
4855 main ();
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862   (eval $ac_link) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -s conftest$ac_exeext'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   ac_cv_lib_ld_main=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_ld_main=no
4877 fi
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4880 fi
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4882 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4883 if test $ac_cv_lib_ld_main = yes; then
4884   cat >>confdefs.h <<_ACEOF
4885 #define HAVE_LIBLD 1
4886 _ACEOF
4887
4888   LIBS="-lld $LIBS"
4889
4890 fi
4891
4892
4893 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4894 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4895 if test "${ac_cv_lib_compat_main+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   ac_check_lib_save_LIBS=$LIBS
4899 LIBS="-lcompat  $LIBS"
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 #include "confdefs.h"
4903
4904
4905 #ifdef F77_DUMMY_MAIN
4906 #  ifdef __cplusplus
4907      extern "C"
4908 #  endif
4909    int F77_DUMMY_MAIN() { return 1; }
4910 #endif
4911 int
4912 main ()
4913 {
4914 main ();
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921   (eval $ac_link) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } &&
4925          { ac_try='test -s conftest$ac_exeext'
4926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   ac_cv_lib_compat_main=yes
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_lib_compat_main=no
4936 fi
4937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4939 fi
4940 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4941 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4942 if test $ac_cv_lib_compat_main = yes; then
4943   cat >>confdefs.h <<_ACEOF
4944 #define HAVE_LIBCOMPAT 1
4945 _ACEOF
4946
4947   LIBS="-lcompat $LIBS"
4948
4949 fi
4950
4951
4952 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4953 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
4954 if test "${ac_cv_lib_BSD_main+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   ac_check_lib_save_LIBS=$LIBS
4958 LIBS="-lBSD  $LIBS"
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4962
4963
4964 #ifdef F77_DUMMY_MAIN
4965 #  ifdef __cplusplus
4966      extern "C"
4967 #  endif
4968    int F77_DUMMY_MAIN() { return 1; }
4969 #endif
4970 int
4971 main ()
4972 {
4973 main ();
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980   (eval $ac_link) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -s conftest$ac_exeext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   ac_cv_lib_BSD_main=yes
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 ac_cv_lib_BSD_main=no
4995 fi
4996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 LIBS=$ac_check_lib_save_LIBS
4998 fi
4999 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5000 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5001 if test $ac_cv_lib_BSD_main = yes; then
5002   cat >>confdefs.h <<_ACEOF
5003 #define HAVE_LIBBSD 1
5004 _ACEOF
5005
5006   LIBS="-lBSD $LIBS"
5007
5008 fi
5009
5010
5011 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5012 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5013 if test "${ac_cv_lib_gen_main+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   ac_check_lib_save_LIBS=$LIBS
5017 LIBS="-lgen  $LIBS"
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5021
5022
5023 #ifdef F77_DUMMY_MAIN
5024 #  ifdef __cplusplus
5025      extern "C"
5026 #  endif
5027    int F77_DUMMY_MAIN() { return 1; }
5028 #endif
5029 int
5030 main ()
5031 {
5032 main ();
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039   (eval $ac_link) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -s conftest$ac_exeext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   ac_cv_lib_gen_main=yes
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_cv_lib_gen_main=no
5054 fi
5055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5056 LIBS=$ac_check_lib_save_LIBS
5057 fi
5058 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5059 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5060 if test $ac_cv_lib_gen_main = yes; then
5061   cat >>confdefs.h <<_ACEOF
5062 #define HAVE_LIBGEN 1
5063 _ACEOF
5064
5065   LIBS="-lgen $LIBS"
5066
5067 fi
5068
5069
5070 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5071 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5072 if test "${ac_cv_lib_PW_main+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   ac_check_lib_save_LIBS=$LIBS
5076 LIBS="-lPW  $LIBS"
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5080
5081
5082 #ifdef F77_DUMMY_MAIN
5083 #  ifdef __cplusplus
5084      extern "C"
5085 #  endif
5086    int F77_DUMMY_MAIN() { return 1; }
5087 #endif
5088 int
5089 main ()
5090 {
5091 main ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -s conftest$ac_exeext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_cv_lib_PW_main=yes
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_cv_lib_PW_main=no
5113 fi
5114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5115 LIBS=$ac_check_lib_save_LIBS
5116 fi
5117 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5118 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5119 if test $ac_cv_lib_PW_main = yes; then
5120   cat >>confdefs.h <<_ACEOF
5121 #define HAVE_LIBPW 1
5122 _ACEOF
5123
5124   LIBS="-lPW $LIBS"
5125
5126 fi
5127
5128
5129 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5130 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5131 if test "${ac_cv_lib_resolv_main+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   ac_check_lib_save_LIBS=$LIBS
5135 LIBS="-lresolv  $LIBS"
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 #include "confdefs.h"
5139
5140
5141 #ifdef F77_DUMMY_MAIN
5142 #  ifdef __cplusplus
5143      extern "C"
5144 #  endif
5145    int F77_DUMMY_MAIN() { return 1; }
5146 #endif
5147 int
5148 main ()
5149 {
5150 main ();
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext conftest$ac_exeext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157   (eval $ac_link) 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } &&
5161          { ac_try='test -s conftest$ac_exeext'
5162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163   (eval $ac_try) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; }; then
5167   ac_cv_lib_resolv_main=yes
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 ac_cv_lib_resolv_main=no
5172 fi
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5175 fi
5176 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5177 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5178 if test $ac_cv_lib_resolv_main = yes; then
5179   cat >>confdefs.h <<_ACEOF
5180 #define HAVE_LIBRESOLV 1
5181 _ACEOF
5182
5183   LIBS="-lresolv $LIBS"
5184
5185 fi
5186
5187 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5188 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5189 if test "${ac_cv_search_getopt_long+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   ac_func_search_save_LIBS=$LIBS
5193 ac_cv_search_getopt_long=no
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5197
5198 /* Override any gcc2 internal prototype to avoid an error.  */
5199 #ifdef __cplusplus
5200 extern "C"
5201 #endif
5202 /* We use char because int might match the return type of a gcc2
5203    builtin and then its argument prototype would still apply.  */
5204 char getopt_long ();
5205 #ifdef F77_DUMMY_MAIN
5206 #  ifdef __cplusplus
5207      extern "C"
5208 #  endif
5209    int F77_DUMMY_MAIN() { return 1; }
5210 #endif
5211 int
5212 main ()
5213 {
5214 getopt_long ();
5215   ;
5216   return 0;
5217 }
5218 _ACEOF
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221   (eval $ac_link) 2>&5
5222   ac_status=$?
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); } &&
5225          { ac_try='test -s conftest$ac_exeext'
5226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227   (eval $ac_try) 2>&5
5228   ac_status=$?
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); }; }; then
5231   ac_cv_search_getopt_long="none required"
5232 else
5233   echo "$as_me: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5235 fi
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 if test "$ac_cv_search_getopt_long" = no; then
5238   for ac_lib in getopt gnugetopt; do
5239     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5240     cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5243
5244 /* Override any gcc2 internal prototype to avoid an error.  */
5245 #ifdef __cplusplus
5246 extern "C"
5247 #endif
5248 /* We use char because int might match the return type of a gcc2
5249    builtin and then its argument prototype would still apply.  */
5250 char getopt_long ();
5251 #ifdef F77_DUMMY_MAIN
5252 #  ifdef __cplusplus
5253      extern "C"
5254 #  endif
5255    int F77_DUMMY_MAIN() { return 1; }
5256 #endif
5257 int
5258 main ()
5259 {
5260 getopt_long ();
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267   (eval $ac_link) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } &&
5271          { ac_try='test -s conftest$ac_exeext'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; }; then
5277   ac_cv_search_getopt_long="-l$ac_lib"
5278 break
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5282 fi
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284   done
5285 fi
5286 LIBS=$ac_func_search_save_LIBS
5287 fi
5288 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5289 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5290 if test "$ac_cv_search_getopt_long" != no; then
5291   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5292
5293 fi
5294
5295 # QNX:
5296
5297 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5298 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5299 if test "${ac_cv_lib_unix_main+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   ac_check_lib_save_LIBS=$LIBS
5303 LIBS="-lunix  $LIBS"
5304 cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5306 #include "confdefs.h"
5307
5308
5309 #ifdef F77_DUMMY_MAIN
5310 #  ifdef __cplusplus
5311      extern "C"
5312 #  endif
5313    int F77_DUMMY_MAIN() { return 1; }
5314 #endif
5315 int
5316 main ()
5317 {
5318 main ();
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325   (eval $ac_link) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -s conftest$ac_exeext'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; }; then
5335   ac_cv_lib_unix_main=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 ac_cv_lib_unix_main=no
5340 fi
5341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342 LIBS=$ac_check_lib_save_LIBS
5343 fi
5344 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5345 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5346 if test $ac_cv_lib_unix_main = yes; then
5347   cat >>confdefs.h <<_ACEOF
5348 #define HAVE_LIBUNIX 1
5349 _ACEOF
5350
5351   LIBS="-lunix $LIBS"
5352
5353 fi
5354
5355 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5356 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5357 if test "${ac_cv_search_crypt+set}" = set; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360   ac_func_search_save_LIBS=$LIBS
5361 ac_cv_search_crypt=no
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line $LINENO "configure"
5364 #include "confdefs.h"
5365
5366 /* Override any gcc2 internal prototype to avoid an error.  */
5367 #ifdef __cplusplus
5368 extern "C"
5369 #endif
5370 /* We use char because int might match the return type of a gcc2
5371    builtin and then its argument prototype would still apply.  */
5372 char crypt ();
5373 #ifdef F77_DUMMY_MAIN
5374 #  ifdef __cplusplus
5375      extern "C"
5376 #  endif
5377    int F77_DUMMY_MAIN() { return 1; }
5378 #endif
5379 int
5380 main ()
5381 {
5382 crypt ();
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5389   (eval $ac_link) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest$ac_exeext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_cv_search_crypt="none required"
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5403 fi
5404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5405 if test "$ac_cv_search_crypt" = no; then
5406   for ac_lib in crypt; do
5407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5408     cat >conftest.$ac_ext <<_ACEOF
5409 #line $LINENO "configure"
5410 #include "confdefs.h"
5411
5412 /* Override any gcc2 internal prototype to avoid an error.  */
5413 #ifdef __cplusplus
5414 extern "C"
5415 #endif
5416 /* We use char because int might match the return type of a gcc2
5417    builtin and then its argument prototype would still apply.  */
5418 char crypt ();
5419 #ifdef F77_DUMMY_MAIN
5420 #  ifdef __cplusplus
5421      extern "C"
5422 #  endif
5423    int F77_DUMMY_MAIN() { return 1; }
5424 #endif
5425 int
5426 main ()
5427 {
5428 crypt ();
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435   (eval $ac_link) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -s conftest$ac_exeext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   ac_cv_search_crypt="-l$ac_lib"
5446 break
5447 else
5448   echo "$as_me: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5450 fi
5451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5452   done
5453 fi
5454 LIBS=$ac_func_search_save_LIBS
5455 fi
5456 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5457 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5458 if test "$ac_cv_search_crypt" != no; then
5459   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5460
5461 fi
5462
5463 # BeOS:
5464 if test "$PORTNAME" = "beos"
5465 then
5466
5467 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5468 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5469 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   ac_check_lib_save_LIBS=$LIBS
5473 LIBS="-lbind  $LIBS"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 #include "confdefs.h"
5477
5478 /* Override any gcc2 internal prototype to avoid an error.  */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483    builtin and then its argument prototype would still apply.  */
5484 char __inet_ntoa ();
5485 #ifdef F77_DUMMY_MAIN
5486 #  ifdef __cplusplus
5487      extern "C"
5488 #  endif
5489    int F77_DUMMY_MAIN() { return 1; }
5490 #endif
5491 int
5492 main ()
5493 {
5494 __inet_ntoa ();
5495   ;
5496   return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501   (eval $ac_link) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } &&
5505          { ac_try='test -s conftest$ac_exeext'
5506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507   (eval $ac_try) 2>&5
5508   ac_status=$?
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); }; }; then
5511   ac_cv_lib_bind___inet_ntoa=yes
5512 else
5513   echo "$as_me: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5515 ac_cv_lib_bind___inet_ntoa=no
5516 fi
5517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5518 LIBS=$ac_check_lib_save_LIBS
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5521 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5522 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5523   cat >>confdefs.h <<_ACEOF
5524 #define HAVE_LIBBIND 1
5525 _ACEOF
5526
5527   LIBS="-lbind $LIBS"
5528
5529 fi
5530
5531 fi
5532 # Solaris:
5533 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5534 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5535 if test "${ac_cv_search_fdatasync+set}" = set; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   ac_func_search_save_LIBS=$LIBS
5539 ac_cv_search_fdatasync=no
5540 cat >conftest.$ac_ext <<_ACEOF
5541 #line $LINENO "configure"
5542 #include "confdefs.h"
5543
5544 /* Override any gcc2 internal prototype to avoid an error.  */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 /* We use char because int might match the return type of a gcc2
5549    builtin and then its argument prototype would still apply.  */
5550 char fdatasync ();
5551 #ifdef F77_DUMMY_MAIN
5552 #  ifdef __cplusplus
5553      extern "C"
5554 #  endif
5555    int F77_DUMMY_MAIN() { return 1; }
5556 #endif
5557 int
5558 main ()
5559 {
5560 fdatasync ();
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567   (eval $ac_link) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } &&
5571          { ac_try='test -s conftest$ac_exeext'
5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573   (eval $ac_try) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; }; then
5577   ac_cv_search_fdatasync="none required"
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5581 fi
5582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5583 if test "$ac_cv_search_fdatasync" = no; then
5584   for ac_lib in rt posix4; do
5585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5586     cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 #include "confdefs.h"
5589
5590 /* Override any gcc2 internal prototype to avoid an error.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595    builtin and then its argument prototype would still apply.  */
5596 char fdatasync ();
5597 #ifdef F77_DUMMY_MAIN
5598 #  ifdef __cplusplus
5599      extern "C"
5600 #  endif
5601    int F77_DUMMY_MAIN() { return 1; }
5602 #endif
5603 int
5604 main ()
5605 {
5606 fdatasync ();
5607   ;
5608   return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613   (eval $ac_link) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); } &&
5617          { ac_try='test -s conftest$ac_exeext'
5618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; }; then
5623   ac_cv_search_fdatasync="-l$ac_lib"
5624 break
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 fi
5629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630   done
5631 fi
5632 LIBS=$ac_func_search_save_LIBS
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5635 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5636 if test "$ac_cv_search_fdatasync" != no; then
5637   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5638
5639 fi
5640
5641 # Cygwin:
5642
5643 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5644 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5645 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   ac_check_lib_save_LIBS=$LIBS
5649 LIBS="-lcygipc  $LIBS"
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 #include "confdefs.h"
5653
5654 /* Override any gcc2 internal prototype to avoid an error.  */
5655 #ifdef __cplusplus
5656 extern "C"
5657 #endif
5658 /* We use char because int might match the return type of a gcc2
5659    builtin and then its argument prototype would still apply.  */
5660 char shmget ();
5661 #ifdef F77_DUMMY_MAIN
5662 #  ifdef __cplusplus
5663      extern "C"
5664 #  endif
5665    int F77_DUMMY_MAIN() { return 1; }
5666 #endif
5667 int
5668 main ()
5669 {
5670 shmget ();
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext conftest$ac_exeext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677   (eval $ac_link) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); } &&
5681          { ac_try='test -s conftest$ac_exeext'
5682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683   (eval $ac_try) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; then
5687   ac_cv_lib_cygipc_shmget=yes
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5691 ac_cv_lib_cygipc_shmget=no
5692 fi
5693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694 LIBS=$ac_check_lib_save_LIBS
5695 fi
5696 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5697 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5698 if test $ac_cv_lib_cygipc_shmget = yes; then
5699   cat >>confdefs.h <<_ACEOF
5700 #define HAVE_LIBCYGIPC 1
5701 _ACEOF
5702
5703   LIBS="-lcygipc $LIBS"
5704
5705 fi
5706
5707 # WIN32:
5708 if test "$PORTNAME" = "win32"
5709 then
5710
5711 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5712 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5713 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   ac_check_lib_save_LIBS=$LIBS
5717 LIBS="-lwsock32  $LIBS"
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 #include "confdefs.h"
5721
5722
5723 #ifdef F77_DUMMY_MAIN
5724 #  ifdef __cplusplus
5725      extern "C"
5726 #  endif
5727    int F77_DUMMY_MAIN() { return 1; }
5728 #endif
5729 int
5730 main ()
5731 {
5732 main ();
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_cv_lib_wsock32_main=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 ac_cv_lib_wsock32_main=no
5754 fi
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5756 LIBS=$ac_check_lib_save_LIBS
5757 fi
5758 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5759 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5760 if test $ac_cv_lib_wsock32_main = yes; then
5761   cat >>confdefs.h <<_ACEOF
5762 #define HAVE_LIBWSOCK32 1
5763 _ACEOF
5764
5765   LIBS="-lwsock32 $LIBS"
5766
5767 fi
5768
5769 fi
5770
5771 if test "$with_readline" = yes; then
5772
5773 echo "$as_me:$LINENO: checking for readline" >&5
5774 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5775
5776 if test "${pgac_cv_check_readline+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   pgac_cv_check_readline=no
5780 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5781   for pgac_rllib in -lreadline -ledit ; do
5782     pgac_save_LIBS=$LIBS
5783     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5784     cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 #include "confdefs.h"
5787
5788 /* Override any gcc2 internal prototype to avoid an error.  */
5789 #ifdef __cplusplus
5790 extern "C"
5791 #endif
5792 /* We use char because int might match the return type of a gcc2
5793    builtin and then its argument prototype would still apply.  */
5794 char readline ();
5795 #ifdef F77_DUMMY_MAIN
5796 #  ifdef __cplusplus
5797      extern "C"
5798 #  endif
5799    int F77_DUMMY_MAIN() { return 1; }
5800 #endif
5801 int
5802 main ()
5803 {
5804 readline ();
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811   (eval $ac_link) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -s conftest$ac_exeext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821
5822       # NetBSD and OpenBSD have a broken linker that does not
5823       # recognize dependent libraries
5824       case $host_os in netbsd* | openbsd* )
5825         case $pgac_lib in
5826           *curses*) ;;
5827           *) pgac_lib=" -lcurses" ;;
5828         esac
5829       esac
5830
5831       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5832       break 2
5833
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 fi
5838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5839     LIBS=$pgac_save_LIBS
5840   done
5841 done
5842 LIBS=$pgac_save_LIBS
5843
5844 fi
5845
5846 if test "$pgac_cv_check_readline" != no ; then
5847
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_LIBREADLINE 1
5850 _ACEOF
5851
5852   LIBS="$pgac_cv_check_readline $LIBS"
5853   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5854 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5855 else
5856   echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5858 fi
5859   if test x"$pgac_cv_check_readline" = x"no"; then
5860     { { echo "$as_me:$LINENO: error: readline library not found
5861 If you have readline already installed, see config.log for details on the
5862 failure.  It is possible the compiler isn't looking in the proper directory.
5863 Use --without-readline to disable readline support." >&5
5864 echo "$as_me: error: readline library not found
5865 If you have readline already installed, see config.log for details on the
5866 failure.  It is possible the compiler isn't looking in the proper directory.
5867 Use --without-readline to disable readline support." >&2;}
5868    { (exit 1); exit 1; }; }
5869   fi
5870 fi
5871
5872 if test "$with_zlib" = yes; then
5873
5874 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5875 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5876 if test "${ac_cv_lib_z_inflate+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_check_lib_save_LIBS=$LIBS
5880 LIBS="-lz  $LIBS"
5881 cat >conftest.$ac_ext <<_ACEOF
5882 #line $LINENO "configure"
5883 #include "confdefs.h"
5884
5885 /* Override any gcc2 internal prototype to avoid an error.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 /* We use char because int might match the return type of a gcc2
5890    builtin and then its argument prototype would still apply.  */
5891 char inflate ();
5892 #ifdef F77_DUMMY_MAIN
5893 #  ifdef __cplusplus
5894      extern "C"
5895 #  endif
5896    int F77_DUMMY_MAIN() { return 1; }
5897 #endif
5898 int
5899 main ()
5900 {
5901 inflate ();
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5908   (eval $ac_link) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -s conftest$ac_exeext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   ac_cv_lib_z_inflate=yes
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 ac_cv_lib_z_inflate=no
5923 fi
5924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5925 LIBS=$ac_check_lib_save_LIBS
5926 fi
5927 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5928 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5929 if test $ac_cv_lib_z_inflate = yes; then
5930   cat >>confdefs.h <<_ACEOF
5931 #define HAVE_LIBZ 1
5932 _ACEOF
5933
5934   LIBS="-lz $LIBS"
5935
5936 else
5937   { { echo "$as_me:$LINENO: error: zlib library not found
5938 If you have zlib already installed, see config.log for details on the
5939 failure.  It is possible the compiler isn't looking in the proper directory.
5940 Use --without-zlib to disable zlib support." >&5
5941 echo "$as_me: error: zlib library not found
5942 If you have zlib already installed, see config.log for details on the
5943 failure.  It is possible the compiler isn't looking in the proper directory.
5944 Use --without-zlib to disable zlib support." >&2;}
5945    { (exit 1); exit 1; }; }
5946 fi
5947
5948 fi
5949
5950 if test "$enable_spinlocks" = yes; then
5951
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_SPINLOCKS 1
5954 _ACEOF
5955
5956 else
5957   { echo "$as_me:$LINENO: WARNING:
5958 *** Not using spinlocks will cause poor performance." >&5
5959 echo "$as_me: WARNING:
5960 *** Not using spinlocks will cause poor performance." >&2;}
5961 fi
5962
5963 if test "$with_krb4" = yes ; then
5964
5965 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5966 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5967 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   ac_check_lib_save_LIBS=$LIBS
5971 LIBS="-ldes  $LIBS"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 #include "confdefs.h"
5975
5976 /* Override any gcc2 internal prototype to avoid an error.  */
5977 #ifdef __cplusplus
5978 extern "C"
5979 #endif
5980 /* We use char because int might match the return type of a gcc2
5981    builtin and then its argument prototype would still apply.  */
5982 char des_encrypt ();
5983 #ifdef F77_DUMMY_MAIN
5984 #  ifdef __cplusplus
5985      extern "C"
5986 #  endif
5987    int F77_DUMMY_MAIN() { return 1; }
5988 #endif
5989 int
5990 main ()
5991 {
5992 des_encrypt ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -s conftest$ac_exeext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_lib_des_des_encrypt=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 ac_cv_lib_des_des_encrypt=no
6014 fi
6015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_check_lib_save_LIBS
6017 fi
6018 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6019 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6020 if test $ac_cv_lib_des_des_encrypt = yes; then
6021   cat >>confdefs.h <<_ACEOF
6022 #define HAVE_LIBDES 1
6023 _ACEOF
6024
6025   LIBS="-ldes $LIBS"
6026
6027 else
6028   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6029 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6030    { (exit 1); exit 1; }; }
6031 fi
6032
6033
6034 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6035 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6036 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   ac_check_lib_save_LIBS=$LIBS
6040 LIBS="-lkrb  $LIBS"
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 #include "confdefs.h"
6044
6045 /* Override any gcc2 internal prototype to avoid an error.  */
6046 #ifdef __cplusplus
6047 extern "C"
6048 #endif
6049 /* We use char because int might match the return type of a gcc2
6050    builtin and then its argument prototype would still apply.  */
6051 char krb_sendauth ();
6052 #ifdef F77_DUMMY_MAIN
6053 #  ifdef __cplusplus
6054      extern "C"
6055 #  endif
6056    int F77_DUMMY_MAIN() { return 1; }
6057 #endif
6058 int
6059 main ()
6060 {
6061 krb_sendauth ();
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068   (eval $ac_link) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } &&
6072          { ac_try='test -s conftest$ac_exeext'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; }; then
6078   ac_cv_lib_krb_krb_sendauth=yes
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 ac_cv_lib_krb_krb_sendauth=no
6083 fi
6084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6086 fi
6087 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6088 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6089 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6090   cat >>confdefs.h <<_ACEOF
6091 #define HAVE_LIBKRB 1
6092 _ACEOF
6093
6094   LIBS="-lkrb $LIBS"
6095
6096 else
6097   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6098 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6099    { (exit 1); exit 1; }; }
6100 fi
6101
6102
6103 for ac_func in gethostname
6104 do
6105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6106 echo "$as_me:$LINENO: checking for $ac_func" >&5
6107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6108 if eval "test \"\${$as_ac_var+set}\" = set"; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 /* System header to define __stub macros and hopefully few prototypes,
6115     which can conflict with char $ac_func (); below.  */
6116 #include <assert.h>
6117 /* Override any gcc2 internal prototype to avoid an error.  */
6118 #ifdef __cplusplus
6119 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122    builtin and then its argument prototype would still apply.  */
6123 char $ac_func ();
6124 char (*f) ();
6125
6126 #ifdef F77_DUMMY_MAIN
6127 #  ifdef __cplusplus
6128      extern "C"
6129 #  endif
6130    int F77_DUMMY_MAIN() { return 1; }
6131 #endif
6132 int
6133 main ()
6134 {
6135 /* The GNU C library defines this for functions which it implements
6136     to always fail with ENOSYS.  Some functions are actually named
6137     something starting with __ and the normal name is an alias.  */
6138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6139 choke me
6140 #else
6141 f = $ac_func;
6142 #endif
6143
6144   ;
6145   return 0;
6146 }
6147 _ACEOF
6148 rm -f conftest.$ac_objext conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150   (eval $ac_link) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } &&
6154          { ac_try='test -s conftest$ac_exeext'
6155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156   (eval $ac_try) 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; }; then
6160   eval "$as_ac_var=yes"
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 eval "$as_ac_var=no"
6165 fi
6166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6167 fi
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6170 if test `eval echo '${'$as_ac_var'}'` = yes; then
6171   cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6173 _ACEOF
6174
6175 else
6176   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6177 fi
6178 done
6179
6180
6181 fi
6182
6183 if test "$with_krb5" = yes ; then
6184   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6185 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6186 if test "${ac_cv_search_com_err+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   ac_func_search_save_LIBS=$LIBS
6190 ac_cv_search_com_err=no
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 #include "confdefs.h"
6194
6195 /* Override any gcc2 internal prototype to avoid an error.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 /* We use char because int might match the return type of a gcc2
6200    builtin and then its argument prototype would still apply.  */
6201 char com_err ();
6202 #ifdef F77_DUMMY_MAIN
6203 #  ifdef __cplusplus
6204      extern "C"
6205 #  endif
6206    int F77_DUMMY_MAIN() { return 1; }
6207 #endif
6208 int
6209 main ()
6210 {
6211 com_err ();
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218   (eval $ac_link) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -s conftest$ac_exeext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_search_com_err="none required"
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6232 fi
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234 if test "$ac_cv_search_com_err" = no; then
6235   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6237     cat >conftest.$ac_ext <<_ACEOF
6238 #line $LINENO "configure"
6239 #include "confdefs.h"
6240
6241 /* Override any gcc2 internal prototype to avoid an error.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 /* We use char because int might match the return type of a gcc2
6246    builtin and then its argument prototype would still apply.  */
6247 char com_err ();
6248 #ifdef F77_DUMMY_MAIN
6249 #  ifdef __cplusplus
6250      extern "C"
6251 #  endif
6252    int F77_DUMMY_MAIN() { return 1; }
6253 #endif
6254 int
6255 main ()
6256 {
6257 com_err ();
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264   (eval $ac_link) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -s conftest$ac_exeext'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_cv_search_com_err="-l$ac_lib"
6275 break
6276 else
6277   echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281   done
6282 fi
6283 LIBS=$ac_func_search_save_LIBS
6284 fi
6285 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6286 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6287 if test "$ac_cv_search_com_err" != no; then
6288   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6289
6290 else
6291   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6292 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6293    { (exit 1); exit 1; }; }
6294 fi
6295
6296   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6297 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6298 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   ac_func_search_save_LIBS=$LIBS
6302 ac_cv_search_krb5_encrypt=no
6303 cat >conftest.$ac_ext <<_ACEOF
6304 #line $LINENO "configure"
6305 #include "confdefs.h"
6306
6307 /* Override any gcc2 internal prototype to avoid an error.  */
6308 #ifdef __cplusplus
6309 extern "C"
6310 #endif
6311 /* We use char because int might match the return type of a gcc2
6312    builtin and then its argument prototype would still apply.  */
6313 char krb5_encrypt ();
6314 #ifdef F77_DUMMY_MAIN
6315 #  ifdef __cplusplus
6316      extern "C"
6317 #  endif
6318    int F77_DUMMY_MAIN() { return 1; }
6319 #endif
6320 int
6321 main ()
6322 {
6323 krb5_encrypt ();
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330   (eval $ac_link) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } &&
6334          { ac_try='test -s conftest$ac_exeext'
6335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336   (eval $ac_try) 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }; }; then
6340   ac_cv_search_krb5_encrypt="none required"
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 fi
6345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6346 if test "$ac_cv_search_krb5_encrypt" = no; then
6347   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6349     cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6352
6353 /* Override any gcc2 internal prototype to avoid an error.  */
6354 #ifdef __cplusplus
6355 extern "C"
6356 #endif
6357 /* We use char because int might match the return type of a gcc2
6358    builtin and then its argument prototype would still apply.  */
6359 char krb5_encrypt ();
6360 #ifdef F77_DUMMY_MAIN
6361 #  ifdef __cplusplus
6362      extern "C"
6363 #  endif
6364    int F77_DUMMY_MAIN() { return 1; }
6365 #endif
6366 int
6367 main ()
6368 {
6369 krb5_encrypt ();
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376   (eval $ac_link) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest$ac_exeext'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_cv_search_krb5_encrypt="-l$ac_lib"
6387 break
6388 else
6389   echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 fi
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393   done
6394 fi
6395 LIBS=$ac_func_search_save_LIBS
6396 fi
6397 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6398 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6399 if test "$ac_cv_search_krb5_encrypt" != no; then
6400   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6401
6402 else
6403   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6404 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6405    { (exit 1); exit 1; }; }
6406 fi
6407
6408   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6409 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6410 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413   ac_func_search_save_LIBS=$LIBS
6414 ac_cv_search_krb5_sendauth=no
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6418
6419 /* Override any gcc2 internal prototype to avoid an error.  */
6420 #ifdef __cplusplus
6421 extern "C"
6422 #endif
6423 /* We use char because int might match the return type of a gcc2
6424    builtin and then its argument prototype would still apply.  */
6425 char krb5_sendauth ();
6426 #ifdef F77_DUMMY_MAIN
6427 #  ifdef __cplusplus
6428      extern "C"
6429 #  endif
6430    int F77_DUMMY_MAIN() { return 1; }
6431 #endif
6432 int
6433 main ()
6434 {
6435 krb5_sendauth ();
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442   (eval $ac_link) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } &&
6446          { ac_try='test -s conftest$ac_exeext'
6447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448   (eval $ac_try) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; }; then
6452   ac_cv_search_krb5_sendauth="none required"
6453 else
6454   echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 fi
6457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458 if test "$ac_cv_search_krb5_sendauth" = no; then
6459   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6461     cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 #include "confdefs.h"
6464
6465 /* Override any gcc2 internal prototype to avoid an error.  */
6466 #ifdef __cplusplus
6467 extern "C"
6468 #endif
6469 /* We use char because int might match the return type of a gcc2
6470    builtin and then its argument prototype would still apply.  */
6471 char krb5_sendauth ();
6472 #ifdef F77_DUMMY_MAIN
6473 #  ifdef __cplusplus
6474      extern "C"
6475 #  endif
6476    int F77_DUMMY_MAIN() { return 1; }
6477 #endif
6478 int
6479 main ()
6480 {
6481 krb5_sendauth ();
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -s conftest$ac_exeext'
6493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; }; then
6498   ac_cv_search_krb5_sendauth="-l$ac_lib"
6499 break
6500 else
6501   echo "$as_me: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6503 fi
6504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6505   done
6506 fi
6507 LIBS=$ac_func_search_save_LIBS
6508 fi
6509 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6510 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6511 if test "$ac_cv_search_krb5_sendauth" != no; then
6512   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6513
6514 else
6515   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6516 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6517    { (exit 1); exit 1; }; }
6518 fi
6519
6520 fi
6521
6522 if test "$with_openssl" = yes ; then
6523
6524 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6525 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6526 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   ac_check_lib_save_LIBS=$LIBS
6530 LIBS="-lcrypto  $LIBS"
6531 cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6533 #include "confdefs.h"
6534
6535 /* Override any gcc2 internal prototype to avoid an error.  */
6536 #ifdef __cplusplus
6537 extern "C"
6538 #endif
6539 /* We use char because int might match the return type of a gcc2
6540    builtin and then its argument prototype would still apply.  */
6541 char CRYPTO_new_ex_data ();
6542 #ifdef F77_DUMMY_MAIN
6543 #  ifdef __cplusplus
6544      extern "C"
6545 #  endif
6546    int F77_DUMMY_MAIN() { return 1; }
6547 #endif
6548 int
6549 main ()
6550 {
6551 CRYPTO_new_ex_data ();
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558   (eval $ac_link) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); } &&
6562          { ac_try='test -s conftest$ac_exeext'
6563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564   (eval $ac_try) 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; }; then
6568   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6572 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6573 fi
6574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6576 fi
6577 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6578 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6579 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6580   cat >>confdefs.h <<_ACEOF
6581 #define HAVE_LIBCRYPTO 1
6582 _ACEOF
6583
6584   LIBS="-lcrypto $LIBS"
6585
6586 else
6587   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6588 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6589    { (exit 1); exit 1; }; }
6590 fi
6591
6592
6593 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6594 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6595 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   ac_check_lib_save_LIBS=$LIBS
6599 LIBS="-lssl  $LIBS"
6600 cat >conftest.$ac_ext <<_ACEOF
6601 #line $LINENO "configure"
6602 #include "confdefs.h"
6603
6604 /* Override any gcc2 internal prototype to avoid an error.  */
6605 #ifdef __cplusplus
6606 extern "C"
6607 #endif
6608 /* We use char because int might match the return type of a gcc2
6609    builtin and then its argument prototype would still apply.  */
6610 char SSL_library_init ();
6611 #ifdef F77_DUMMY_MAIN
6612 #  ifdef __cplusplus
6613      extern "C"
6614 #  endif
6615    int F77_DUMMY_MAIN() { return 1; }
6616 #endif
6617 int
6618 main ()
6619 {
6620 SSL_library_init ();
6621   ;
6622   return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627   (eval $ac_link) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -s conftest$ac_exeext'
6632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633   (eval $ac_try) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; }; then
6637   ac_cv_lib_ssl_SSL_library_init=yes
6638 else
6639   echo "$as_me: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6641 ac_cv_lib_ssl_SSL_library_init=no
6642 fi
6643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6644 LIBS=$ac_check_lib_save_LIBS
6645 fi
6646 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6647 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6648 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6649   cat >>confdefs.h <<_ACEOF
6650 #define HAVE_LIBSSL 1
6651 _ACEOF
6652
6653   LIBS="-lssl $LIBS"
6654
6655 else
6656   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6657 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6658    { (exit 1); exit 1; }; }
6659 fi
6660
6661 fi
6662
6663 if test "$with_pam" = yes ; then
6664
6665 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6666 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6667 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   ac_check_lib_save_LIBS=$LIBS
6671 LIBS="-lpam  $LIBS"
6672 cat >conftest.$ac_ext <<_ACEOF
6673 #line $LINENO "configure"
6674 #include "confdefs.h"
6675
6676 /* Override any gcc2 internal prototype to avoid an error.  */
6677 #ifdef __cplusplus
6678 extern "C"
6679 #endif
6680 /* We use char because int might match the return type of a gcc2
6681    builtin and then its argument prototype would still apply.  */
6682 char pam_start ();
6683 #ifdef F77_DUMMY_MAIN
6684 #  ifdef __cplusplus
6685      extern "C"
6686 #  endif
6687    int F77_DUMMY_MAIN() { return 1; }
6688 #endif
6689 int
6690 main ()
6691 {
6692 pam_start ();
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699   (eval $ac_link) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); } &&
6703          { ac_try='test -s conftest$ac_exeext'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; }; then
6709   ac_cv_lib_pam_pam_start=yes
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6713 ac_cv_lib_pam_pam_start=no
6714 fi
6715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6717 fi
6718 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6719 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6720 if test $ac_cv_lib_pam_pam_start = yes; then
6721   cat >>confdefs.h <<_ACEOF
6722 #define HAVE_LIBPAM 1
6723 _ACEOF
6724
6725   LIBS="-lpam $LIBS"
6726
6727 else
6728   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6729 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6730    { (exit 1); exit 1; }; }
6731 fi
6732
6733 fi
6734
6735
6736 ##
6737 ## Header files
6738 ##
6739
6740 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6742 if test "${ac_cv_header_stdc+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   cat >conftest.$ac_ext <<_ACEOF
6746 #line $LINENO "configure"
6747 #include "confdefs.h"
6748 #include <stdlib.h>
6749 #include <stdarg.h>
6750 #include <string.h>
6751 #include <float.h>
6752
6753 _ACEOF
6754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6756   ac_status=$?
6757   egrep -v '^ *\+' conftest.er1 >conftest.err
6758   rm -f conftest.er1
6759   cat conftest.err >&5
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); } >/dev/null; then
6762   if test -s conftest.err; then
6763     ac_cpp_err=$ac_c_preproc_warn_flag
6764   else
6765     ac_cpp_err=
6766   fi
6767 else
6768   ac_cpp_err=yes
6769 fi
6770 if test -z "$ac_cpp_err"; then
6771   ac_cv_header_stdc=yes
6772 else
6773   echo "$as_me: failed program was:" >&5
6774   cat conftest.$ac_ext >&5
6775   ac_cv_header_stdc=no
6776 fi
6777 rm -f conftest.err conftest.$ac_ext
6778
6779 if test $ac_cv_header_stdc = yes; then
6780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6781   cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6784 #include <string.h>
6785
6786 _ACEOF
6787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788   egrep "memchr" >/dev/null 2>&1; then
6789   :
6790 else
6791   ac_cv_header_stdc=no
6792 fi
6793 rm -f conftest*
6794
6795 fi
6796
6797 if test $ac_cv_header_stdc = yes; then
6798   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6799   cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6802 #include <stdlib.h>
6803
6804 _ACEOF
6805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6806   egrep "free" >/dev/null 2>&1; then
6807   :
6808 else
6809   ac_cv_header_stdc=no
6810 fi
6811 rm -f conftest*
6812
6813 fi
6814
6815 if test $ac_cv_header_stdc = yes; then
6816   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6817   if test "$cross_compiling" = yes; then
6818   :
6819 else
6820   cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6823 #include <ctype.h>
6824 #if ((' ' & 0x0FF) == 0x020)
6825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6827 #else
6828 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6829                      || ('j' <= (c) && (c) <= 'r') \
6830                      || ('s' <= (c) && (c) <= 'z'))
6831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6832 #endif
6833
6834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6835 int
6836 main ()
6837 {
6838   int i;
6839   for (i = 0; i < 256; i++)
6840     if (XOR (islower (i), ISLOWER (i))
6841         || toupper (i) != TOUPPER (i))
6842       exit(2);
6843   exit (0);
6844 }
6845 _ACEOF
6846 rm -f conftest$ac_exeext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6848   (eval $ac_link) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   :
6858 else
6859   echo "$as_me: program exited with status $ac_status" >&5
6860 echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 ( exit $ac_status )
6863 ac_cv_header_stdc=no
6864 fi
6865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 fi
6868 fi
6869 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6870 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6871 if test $ac_cv_header_stdc = yes; then
6872
6873 cat >>confdefs.h <<\_ACEOF
6874 #define STDC_HEADERS 1
6875 _ACEOF
6876
6877 fi
6878
6879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6890                   inttypes.h stdint.h unistd.h
6891 do
6892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893 echo "$as_me:$LINENO: checking for $ac_header" >&5
6894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6901 $ac_includes_default
6902
6903 #include <$ac_header>
6904 _ACEOF
6905 rm -f conftest.$ac_objext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6907   (eval $ac_compile) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } &&
6911          { ac_try='test -s conftest.$ac_objext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   eval "$as_ac_Header=yes"
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 eval "$as_ac_Header=no"
6922 fi
6923 rm -f conftest.$ac_objext conftest.$ac_ext
6924 fi
6925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6928   cat >>confdefs.h <<_ACEOF
6929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930 _ACEOF
6931
6932 fi
6933
6934 done
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
6959 do
6960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962   echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
6970   # Is the header compilable?
6971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6976 $ac_includes_default
6977 #include <$ac_header>
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981   (eval $ac_compile) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -s conftest.$ac_objext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_header_compiler=yes
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 ac_header_compiler=no
6996 fi
6997 rm -f conftest.$ac_objext conftest.$ac_ext
6998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6999 echo "${ECHO_T}$ac_header_compiler" >&6
7000
7001 # Is the header present?
7002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7004 cat >conftest.$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7006 #include "confdefs.h"
7007 #include <$ac_header>
7008 _ACEOF
7009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7011   ac_status=$?
7012   egrep -v '^ *\+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } >/dev/null; then
7017   if test -s conftest.err; then
7018     ac_cpp_err=$ac_c_preproc_warn_flag
7019   else
7020     ac_cpp_err=
7021   fi
7022 else
7023   ac_cpp_err=yes
7024 fi
7025 if test -z "$ac_cpp_err"; then
7026   ac_header_preproc=yes
7027 else
7028   echo "$as_me: failed program was:" >&5
7029   cat conftest.$ac_ext >&5
7030   ac_header_preproc=no
7031 fi
7032 rm -f conftest.err conftest.$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7034 echo "${ECHO_T}$ac_header_preproc" >&6
7035
7036 # So?  What about this header?
7037 case $ac_header_compiler:$ac_header_preproc in
7038   yes:no )
7039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7043   no:yes )
7044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7046     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7050 esac
7051 echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   eval "$as_ac_Header=$ac_header_preproc"
7057 fi
7058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7060
7061 fi
7062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063   cat >>confdefs.h <<_ACEOF
7064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065 _ACEOF
7066
7067 fi
7068
7069 done
7070
7071
7072 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7073 # netinet/in.h is included first.
7074
7075 for ac_header in netinet/in.h
7076 do
7077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079   echo "$as_me:$LINENO: checking for $ac_header" >&5
7080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 fi
7084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7086 else
7087   # Is the header compilable?
7088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7093 $ac_includes_default
7094 #include <$ac_header>
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098   (eval $ac_compile) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); } &&
7102          { ac_try='test -s conftest.$ac_objext'
7103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104   (eval $ac_try) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); }; }; then
7108   ac_header_compiler=yes
7109 else
7110   echo "$as_me: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 ac_header_compiler=no
7113 fi
7114 rm -f conftest.$ac_objext conftest.$ac_ext
7115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7116 echo "${ECHO_T}$ac_header_compiler" >&6
7117
7118 # Is the header present?
7119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7121 cat >conftest.$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 #include "confdefs.h"
7124 #include <$ac_header>
7125 _ACEOF
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7128   ac_status=$?
7129   egrep -v '^ *\+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } >/dev/null; then
7134   if test -s conftest.err; then
7135     ac_cpp_err=$ac_c_preproc_warn_flag
7136   else
7137     ac_cpp_err=
7138   fi
7139 else
7140   ac_cpp_err=yes
7141 fi
7142 if test -z "$ac_cpp_err"; then
7143   ac_header_preproc=yes
7144 else
7145   echo "$as_me: failed program was:" >&5
7146   cat conftest.$ac_ext >&5
7147   ac_header_preproc=no
7148 fi
7149 rm -f conftest.err conftest.$ac_ext
7150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7151 echo "${ECHO_T}$ac_header_preproc" >&6
7152
7153 # So?  What about this header?
7154 case $ac_header_compiler:$ac_header_preproc in
7155   yes:no )
7156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7160   no:yes )
7161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7163     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7167 esac
7168 echo "$as_me:$LINENO: checking for $ac_header" >&5
7169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   eval "$as_ac_Header=$ac_header_preproc"
7174 fi
7175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7177
7178 fi
7179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7180   cat >>confdefs.h <<_ACEOF
7181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7182 _ACEOF
7183
7184 fi
7185
7186 done
7187
7188
7189 for ac_header in netinet/tcp.h
7190 do
7191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7192 echo "$as_me:$LINENO: checking for $ac_header" >&5
7193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   cat >conftest.$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 $ac_includes_default
7201 #ifdef HAVE_NETINET_IN_H
7202 #include <netinet/in.h>
7203 #endif
7204
7205
7206 #include <$ac_header>
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210   (eval $ac_compile) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } &&
7214          { ac_try='test -s conftest.$ac_objext'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; }; then
7220   eval "$as_ac_Header=yes"
7221 else
7222   echo "$as_me: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7224 eval "$as_ac_Header=no"
7225 fi
7226 rm -f conftest.$ac_objext conftest.$ac_ext
7227 fi
7228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7231   cat >>confdefs.h <<_ACEOF
7232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7233 _ACEOF
7234
7235 fi
7236
7237 done
7238
7239
7240 if test "$with_readline" = yes; then
7241
7242 for ac_header in readline/readline.h
7243 do
7244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246   echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 fi
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253 else
7254   # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7259 #include "confdefs.h"
7260 $ac_includes_default
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265   (eval $ac_compile) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -s conftest.$ac_objext'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; }; then
7275   ac_header_compiler=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 ac_header_compiler=no
7280 fi
7281 rm -f conftest.$ac_objext conftest.$ac_ext
7282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7283 echo "${ECHO_T}$ac_header_compiler" >&6
7284
7285 # Is the header present?
7286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7288 cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7290 #include "confdefs.h"
7291 #include <$ac_header>
7292 _ACEOF
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7295   ac_status=$?
7296   egrep -v '^ *\+' conftest.er1 >conftest.err
7297   rm -f conftest.er1
7298   cat conftest.err >&5
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); } >/dev/null; then
7301   if test -s conftest.err; then
7302     ac_cpp_err=$ac_c_preproc_warn_flag
7303   else
7304     ac_cpp_err=
7305   fi
7306 else
7307   ac_cpp_err=yes
7308 fi
7309 if test -z "$ac_cpp_err"; then
7310   ac_header_preproc=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313   cat conftest.$ac_ext >&5
7314   ac_header_preproc=no
7315 fi
7316 rm -f conftest.err conftest.$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6
7319
7320 # So?  What about this header?
7321 case $ac_header_compiler:$ac_header_preproc in
7322   yes:no )
7323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7327   no:yes )
7328     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7330     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7334 esac
7335 echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   eval "$as_ac_Header=$ac_header_preproc"
7341 fi
7342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7344
7345 fi
7346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347   cat >>confdefs.h <<_ACEOF
7348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF
7350
7351 else
7352
7353 for ac_header in editline/readline.h
7354 do
7355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357   echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 fi
7362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7364 else
7365   # Is the header compilable?
7366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7368 cat >conftest.$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7370 #include "confdefs.h"
7371 $ac_includes_default
7372 #include <$ac_header>
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376   (eval $ac_compile) 2>&5
7377   ac_status=$?
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } &&
7380          { ac_try='test -s conftest.$ac_objext'
7381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382   (eval $ac_try) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   ac_header_compiler=yes
7387 else
7388   echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 ac_header_compiler=no
7391 fi
7392 rm -f conftest.$ac_objext conftest.$ac_ext
7393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7394 echo "${ECHO_T}$ac_header_compiler" >&6
7395
7396 # Is the header present?
7397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7399 cat >conftest.$ac_ext <<_ACEOF
7400 #line $LINENO "configure"
7401 #include "confdefs.h"
7402 #include <$ac_header>
7403 _ACEOF
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7406   ac_status=$?
7407   egrep -v '^ *\+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } >/dev/null; then
7412   if test -s conftest.err; then
7413     ac_cpp_err=$ac_c_preproc_warn_flag
7414   else
7415     ac_cpp_err=
7416   fi
7417 else
7418   ac_cpp_err=yes
7419 fi
7420 if test -z "$ac_cpp_err"; then
7421   ac_header_preproc=yes
7422 else
7423   echo "$as_me: failed program was:" >&5
7424   cat conftest.$ac_ext >&5
7425   ac_header_preproc=no
7426 fi
7427 rm -f conftest.err conftest.$ac_ext
7428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7429 echo "${ECHO_T}$ac_header_preproc" >&6
7430
7431 # So?  What about this header?
7432 case $ac_header_compiler:$ac_header_preproc in
7433   yes:no )
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7438   no:yes )
7439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7441     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7445 esac
7446 echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   eval "$as_ac_Header=$ac_header_preproc"
7452 fi
7453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7455
7456 fi
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458   cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 _ACEOF
7461
7462 else
7463
7464 for ac_header in readline.h
7465 do
7466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468   echo "$as_me:$LINENO: checking for $ac_header" >&5
7469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 fi
7473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7475 else
7476   # Is the header compilable?
7477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7479 cat >conftest.$ac_ext <<_ACEOF
7480 #line $LINENO "configure"
7481 #include "confdefs.h"
7482 $ac_includes_default
7483 #include <$ac_header>
7484 _ACEOF
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487   (eval $ac_compile) 2>&5
7488   ac_status=$?
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -s conftest.$ac_objext'
7492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493   (eval $ac_try) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }; }; then
7497   ac_header_compiler=yes
7498 else
7499   echo "$as_me: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7501 ac_header_compiler=no
7502 fi
7503 rm -f conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7505 echo "${ECHO_T}$ac_header_compiler" >&6
7506
7507 # Is the header present?
7508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7512 #include "confdefs.h"
7513 #include <$ac_header>
7514 _ACEOF
7515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7516   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7517   ac_status=$?
7518   egrep -v '^ *\+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } >/dev/null; then
7523   if test -s conftest.err; then
7524     ac_cpp_err=$ac_c_preproc_warn_flag
7525   else
7526     ac_cpp_err=
7527   fi
7528 else
7529   ac_cpp_err=yes
7530 fi
7531 if test -z "$ac_cpp_err"; then
7532   ac_header_preproc=yes
7533 else
7534   echo "$as_me: failed program was:" >&5
7535   cat conftest.$ac_ext >&5
7536   ac_header_preproc=no
7537 fi
7538 rm -f conftest.err conftest.$ac_ext
7539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7540 echo "${ECHO_T}$ac_header_preproc" >&6
7541
7542 # So?  What about this header?
7543 case $ac_header_compiler:$ac_header_preproc in
7544   yes:no )
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7549   no:yes )
7550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7552     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7556 esac
7557 echo "$as_me:$LINENO: checking for $ac_header" >&5
7558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   eval "$as_ac_Header=$ac_header_preproc"
7563 fi
7564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7566
7567 fi
7568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7569   cat >>confdefs.h <<_ACEOF
7570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7571 _ACEOF
7572
7573 else
7574   { { echo "$as_me:$LINENO: error: readline header not found
7575 If you have readline already installed, see config.log for details on the
7576 failure.  It is possible the compiler isn't looking in the proper directory.
7577 Use --without-readline to disable readline support." >&5
7578 echo "$as_me: error: readline header not found
7579 If you have readline already installed, see config.log for details on the
7580 failure.  It is possible the compiler isn't looking in the proper directory.
7581 Use --without-readline to disable readline support." >&2;}
7582    { (exit 1); exit 1; }; }
7583 fi
7584
7585 done
7586
7587 fi
7588
7589 done
7590
7591 fi
7592
7593 done
7594
7595
7596 for ac_header in readline/history.h
7597 do
7598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600   echo "$as_me:$LINENO: checking for $ac_header" >&5
7601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 fi
7605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7607 else
7608   # Is the header compilable?
7609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7612 #line $LINENO "configure"
7613 #include "confdefs.h"
7614 $ac_includes_default
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619   (eval $ac_compile) 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } &&
7623          { ac_try='test -s conftest.$ac_objext'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; }; then
7629   ac_header_compiler=yes
7630 else
7631   echo "$as_me: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7633 ac_header_compiler=no
7634 fi
7635 rm -f conftest.$ac_objext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7637 echo "${ECHO_T}$ac_header_compiler" >&6
7638
7639 # Is the header present?
7640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7645 #include <$ac_header>
7646 _ACEOF
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649   ac_status=$?
7650   egrep -v '^ *\+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } >/dev/null; then
7655   if test -s conftest.err; then
7656     ac_cpp_err=$ac_c_preproc_warn_flag
7657   else
7658     ac_cpp_err=
7659   fi
7660 else
7661   ac_cpp_err=yes
7662 fi
7663 if test -z "$ac_cpp_err"; then
7664   ac_header_preproc=yes
7665 else
7666   echo "$as_me: failed program was:" >&5
7667   cat conftest.$ac_ext >&5
7668   ac_header_preproc=no
7669 fi
7670 rm -f conftest.err conftest.$ac_ext
7671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7672 echo "${ECHO_T}$ac_header_preproc" >&6
7673
7674 # So?  What about this header?
7675 case $ac_header_compiler:$ac_header_preproc in
7676   yes:no )
7677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7681   no:yes )
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7684     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7688 esac
7689 echo "$as_me:$LINENO: checking for $ac_header" >&5
7690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   eval "$as_ac_Header=$ac_header_preproc"
7695 fi
7696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7698
7699 fi
7700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7701   cat >>confdefs.h <<_ACEOF
7702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7703 _ACEOF
7704
7705 else
7706
7707 for ac_header in editline/history.h
7708 do
7709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711   echo "$as_me:$LINENO: checking for $ac_header" >&5
7712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 fi
7716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7718 else
7719   # Is the header compilable?
7720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7722 cat >conftest.$ac_ext <<_ACEOF
7723 #line $LINENO "configure"
7724 #include "confdefs.h"
7725 $ac_includes_default
7726 #include <$ac_header>
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730   (eval $ac_compile) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -s conftest.$ac_objext'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; }; then
7740   ac_header_compiler=yes
7741 else
7742   echo "$as_me: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7744 ac_header_compiler=no
7745 fi
7746 rm -f conftest.$ac_objext conftest.$ac_ext
7747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7748 echo "${ECHO_T}$ac_header_compiler" >&6
7749
7750 # Is the header present?
7751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 #include "confdefs.h"
7756 #include <$ac_header>
7757 _ACEOF
7758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7760   ac_status=$?
7761   egrep -v '^ *\+' conftest.er1 >conftest.err
7762   rm -f conftest.er1
7763   cat conftest.err >&5
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } >/dev/null; then
7766   if test -s conftest.err; then
7767     ac_cpp_err=$ac_c_preproc_warn_flag
7768   else
7769     ac_cpp_err=
7770   fi
7771 else
7772   ac_cpp_err=yes
7773 fi
7774 if test -z "$ac_cpp_err"; then
7775   ac_header_preproc=yes
7776 else
7777   echo "$as_me: failed program was:" >&5
7778   cat conftest.$ac_ext >&5
7779   ac_header_preproc=no
7780 fi
7781 rm -f conftest.err conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7783 echo "${ECHO_T}$ac_header_preproc" >&6
7784
7785 # So?  What about this header?
7786 case $ac_header_compiler:$ac_header_preproc in
7787   yes:no )
7788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7792   no:yes )
7793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7795     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7799 esac
7800 echo "$as_me:$LINENO: checking for $ac_header" >&5
7801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   eval "$as_ac_Header=$ac_header_preproc"
7806 fi
7807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7809
7810 fi
7811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7812   cat >>confdefs.h <<_ACEOF
7813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7814 _ACEOF
7815
7816 else
7817
7818 for ac_header in history.h
7819 do
7820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822   echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 fi
7827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7829 else
7830   # Is the header compilable?
7831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 #include "confdefs.h"
7836 $ac_includes_default
7837 #include <$ac_header>
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841   (eval $ac_compile) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } &&
7845          { ac_try='test -s conftest.$ac_objext'
7846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847   (eval $ac_try) 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); }; }; then
7851   ac_header_compiler=yes
7852 else
7853   echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 ac_header_compiler=no
7856 fi
7857 rm -f conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859 echo "${ECHO_T}$ac_header_compiler" >&6
7860
7861 # Is the header present?
7862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7864 cat >conftest.$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7867 #include <$ac_header>
7868 _ACEOF
7869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871   ac_status=$?
7872   egrep -v '^ *\+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } >/dev/null; then
7877   if test -s conftest.err; then
7878     ac_cpp_err=$ac_c_preproc_warn_flag
7879   else
7880     ac_cpp_err=
7881   fi
7882 else
7883   ac_cpp_err=yes
7884 fi
7885 if test -z "$ac_cpp_err"; then
7886   ac_header_preproc=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889   cat conftest.$ac_ext >&5
7890   ac_header_preproc=no
7891 fi
7892 rm -f conftest.err conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7894 echo "${ECHO_T}$ac_header_preproc" >&6
7895
7896 # So?  What about this header?
7897 case $ac_header_compiler:$ac_header_preproc in
7898   yes:no )
7899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7903   no:yes )
7904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7906     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7910 esac
7911 echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   eval "$as_ac_Header=$ac_header_preproc"
7917 fi
7918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7920
7921 fi
7922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7923   cat >>confdefs.h <<_ACEOF
7924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7925 _ACEOF
7926
7927 else
7928   { { echo "$as_me:$LINENO: error: history header not found
7929 If you have readline already installed, see config.log for details on the
7930 failure.  It is possible the compiler isn't looking in the proper directory.
7931 Use --without-readline to disable readline support." >&5
7932 echo "$as_me: error: history header not found
7933 If you have readline already installed, see config.log for details on the
7934 failure.  It is possible the compiler isn't looking in the proper directory.
7935 Use --without-readline to disable readline support." >&2;}
7936    { (exit 1); exit 1; }; }
7937 fi
7938
7939 done
7940
7941 fi
7942
7943 done
7944
7945 fi
7946
7947 done
7948
7949 fi
7950
7951 if test "$with_zlib" = yes; then
7952   if test "${ac_cv_header_zlib_h+set}" = set; then
7953   echo "$as_me:$LINENO: checking for zlib.h" >&5
7954 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7955 if test "${ac_cv_header_zlib_h+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 fi
7958 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7959 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7960 else
7961   # Is the header compilable?
7962 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7963 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 #include "confdefs.h"
7967 $ac_includes_default
7968 #include <zlib.h>
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972   (eval $ac_compile) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } &&
7976          { ac_try='test -s conftest.$ac_objext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   ac_header_compiler=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 ac_header_compiler=no
7987 fi
7988 rm -f conftest.$ac_objext conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7990 echo "${ECHO_T}$ac_header_compiler" >&6
7991
7992 # Is the header present?
7993 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7994 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 #include "confdefs.h"
7998 #include <zlib.h>
7999 _ACEOF
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002   ac_status=$?
8003   egrep -v '^ *\+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } >/dev/null; then
8008   if test -s conftest.err; then
8009     ac_cpp_err=$ac_c_preproc_warn_flag
8010   else
8011     ac_cpp_err=
8012   fi
8013 else
8014   ac_cpp_err=yes
8015 fi
8016 if test -z "$ac_cpp_err"; then
8017   ac_header_preproc=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020   cat conftest.$ac_ext >&5
8021   ac_header_preproc=no
8022 fi
8023 rm -f conftest.err conftest.$ac_ext
8024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8025 echo "${ECHO_T}$ac_header_preproc" >&6
8026
8027 # So?  What about this header?
8028 case $ac_header_compiler:$ac_header_preproc in
8029   yes:no )
8030     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8031 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8032     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8033 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8034   no:yes )
8035     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8036 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8037     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8038 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8039     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8040 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8041 esac
8042 echo "$as_me:$LINENO: checking for zlib.h" >&5
8043 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8044 if test "${ac_cv_header_zlib_h+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   ac_cv_header_zlib_h=$ac_header_preproc
8048 fi
8049 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8050 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8051
8052 fi
8053 if test $ac_cv_header_zlib_h = yes; then
8054   :
8055 else
8056   { { echo "$as_me:$LINENO: error: zlib header not found
8057 If you have zlib already installed, see config.log for details on the
8058 failure.  It is possible the compiler isn't looking in the proper directory.
8059 Use --without-zlib to disable zlib support." >&5
8060 echo "$as_me: error: zlib header not found
8061 If you have zlib already installed, see config.log for details on the
8062 failure.  It is possible the compiler isn't looking in the proper directory.
8063 Use --without-zlib to disable zlib support." >&2;}
8064    { (exit 1); exit 1; }; }
8065 fi
8066
8067
8068 fi
8069
8070 if test "$with_krb4" = yes ; then
8071   if test "${ac_cv_header_krb_h+set}" = set; then
8072   echo "$as_me:$LINENO: checking for krb.h" >&5
8073 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8074 if test "${ac_cv_header_krb_h+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 fi
8077 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8078 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8079 else
8080   # Is the header compilable?
8081 echo "$as_me:$LINENO: checking krb.h usability" >&5
8082 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 #include "confdefs.h"
8086 $ac_includes_default
8087 #include <krb.h>
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091   (eval $ac_compile) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } &&
8095          { ac_try='test -s conftest.$ac_objext'
8096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097   (eval $ac_try) 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); }; }; then
8101   ac_header_compiler=yes
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 ac_header_compiler=no
8106 fi
8107 rm -f conftest.$ac_objext conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8109 echo "${ECHO_T}$ac_header_compiler" >&6
8110
8111 # Is the header present?
8112 echo "$as_me:$LINENO: checking krb.h presence" >&5
8113 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8115 #line $LINENO "configure"
8116 #include "confdefs.h"
8117 #include <krb.h>
8118 _ACEOF
8119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8121   ac_status=$?
8122   egrep -v '^ *\+' conftest.er1 >conftest.err
8123   rm -f conftest.er1
8124   cat conftest.err >&5
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } >/dev/null; then
8127   if test -s conftest.err; then
8128     ac_cpp_err=$ac_c_preproc_warn_flag
8129   else
8130     ac_cpp_err=
8131   fi
8132 else
8133   ac_cpp_err=yes
8134 fi
8135 if test -z "$ac_cpp_err"; then
8136   ac_header_preproc=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139   cat conftest.$ac_ext >&5
8140   ac_header_preproc=no
8141 fi
8142 rm -f conftest.err conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8144 echo "${ECHO_T}$ac_header_preproc" >&6
8145
8146 # So?  What about this header?
8147 case $ac_header_compiler:$ac_header_preproc in
8148   yes:no )
8149     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8150 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8151     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8152 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8153   no:yes )
8154     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8155 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8156     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8157 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8158     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8159 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8160 esac
8161 echo "$as_me:$LINENO: checking for krb.h" >&5
8162 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8163 if test "${ac_cv_header_krb_h+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   ac_cv_header_krb_h=$ac_header_preproc
8167 fi
8168 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8169 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8170
8171 fi
8172 if test $ac_cv_header_krb_h = yes; then
8173   :
8174 else
8175   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8176 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8177    { (exit 1); exit 1; }; }
8178 fi
8179
8180
8181 fi
8182
8183 if test "$with_krb5" = yes ; then
8184   if test "${ac_cv_header_krb5_h+set}" = set; then
8185   echo "$as_me:$LINENO: checking for krb5.h" >&5
8186 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8187 if test "${ac_cv_header_krb5_h+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 fi
8190 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8191 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8192 else
8193   # Is the header compilable?
8194 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8195 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8198 #include "confdefs.h"
8199 $ac_includes_default
8200 #include <krb5.h>
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204   (eval $ac_compile) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -s conftest.$ac_objext'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_header_compiler=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8218 ac_header_compiler=no
8219 fi
8220 rm -f conftest.$ac_objext conftest.$ac_ext
8221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8222 echo "${ECHO_T}$ac_header_compiler" >&6
8223
8224 # Is the header present?
8225 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8226 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8230 #include <krb5.h>
8231 _ACEOF
8232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8234   ac_status=$?
8235   egrep -v '^ *\+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } >/dev/null; then
8240   if test -s conftest.err; then
8241     ac_cpp_err=$ac_c_preproc_warn_flag
8242   else
8243     ac_cpp_err=
8244   fi
8245 else
8246   ac_cpp_err=yes
8247 fi
8248 if test -z "$ac_cpp_err"; then
8249   ac_header_preproc=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252   cat conftest.$ac_ext >&5
8253   ac_header_preproc=no
8254 fi
8255 rm -f conftest.err conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8257 echo "${ECHO_T}$ac_header_preproc" >&6
8258
8259 # So?  What about this header?
8260 case $ac_header_compiler:$ac_header_preproc in
8261   yes:no )
8262     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8263 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8264     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8265 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8266   no:yes )
8267     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8268 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8269     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8270 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8271     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8272 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8273 esac
8274 echo "$as_me:$LINENO: checking for krb5.h" >&5
8275 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8276 if test "${ac_cv_header_krb5_h+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   ac_cv_header_krb5_h=$ac_header_preproc
8280 fi
8281 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8282 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8283
8284 fi
8285 if test $ac_cv_header_krb5_h = yes; then
8286   :
8287 else
8288   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8289 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8290    { (exit 1); exit 1; }; }
8291 fi
8292
8293
8294   if test "${ac_cv_header_com_err_h+set}" = set; then
8295   echo "$as_me:$LINENO: checking for com_err.h" >&5
8296 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8297 if test "${ac_cv_header_com_err_h+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 fi
8300 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8301 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8302 else
8303   # Is the header compilable?
8304 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8305 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 #include "confdefs.h"
8309 $ac_includes_default
8310 #include <com_err.h>
8311 _ACEOF
8312 rm -f conftest.$ac_objext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8314   (eval $ac_compile) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } &&
8318          { ac_try='test -s conftest.$ac_objext'
8319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320   (eval $ac_try) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   ac_header_compiler=yes
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8328 ac_header_compiler=no
8329 fi
8330 rm -f conftest.$ac_objext conftest.$ac_ext
8331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8332 echo "${ECHO_T}$ac_header_compiler" >&6
8333
8334 # Is the header present?
8335 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8336 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8337 cat >conftest.$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8339 #include "confdefs.h"
8340 #include <com_err.h>
8341 _ACEOF
8342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8344   ac_status=$?
8345   egrep -v '^ *\+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } >/dev/null; then
8350   if test -s conftest.err; then
8351     ac_cpp_err=$ac_c_preproc_warn_flag
8352   else
8353     ac_cpp_err=
8354   fi
8355 else
8356   ac_cpp_err=yes
8357 fi
8358 if test -z "$ac_cpp_err"; then
8359   ac_header_preproc=yes
8360 else
8361   echo "$as_me: failed program was:" >&5
8362   cat conftest.$ac_ext >&5
8363   ac_header_preproc=no
8364 fi
8365 rm -f conftest.err conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367 echo "${ECHO_T}$ac_header_preproc" >&6
8368
8369 # So?  What about this header?
8370 case $ac_header_compiler:$ac_header_preproc in
8371   yes:no )
8372     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8373 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8375 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8376   no:yes )
8377     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8378 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8379     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8380 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8381     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8382 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8383 esac
8384 echo "$as_me:$LINENO: checking for com_err.h" >&5
8385 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8386 if test "${ac_cv_header_com_err_h+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_cv_header_com_err_h=$ac_header_preproc
8390 fi
8391 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8392 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8393
8394 fi
8395 if test $ac_cv_header_com_err_h = yes; then
8396   :
8397 else
8398   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8399 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8400    { (exit 1); exit 1; }; }
8401 fi
8402
8403
8404 fi
8405
8406 if test "$with_openssl" = yes ; then
8407   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8408   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8409 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8410 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 fi
8413 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8414 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8415 else
8416   # Is the header compilable?
8417 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8418 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line $LINENO "configure"
8421 #include "confdefs.h"
8422 $ac_includes_default
8423 #include <openssl/ssl.h>
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8427   (eval $ac_compile) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -s conftest.$ac_objext'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; }; then
8437   ac_header_compiler=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 ac_header_compiler=no
8442 fi
8443 rm -f conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6
8446
8447 # Is the header present?
8448 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8449 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8452 #include "confdefs.h"
8453 #include <openssl/ssl.h>
8454 _ACEOF
8455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8457   ac_status=$?
8458   egrep -v '^ *\+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } >/dev/null; then
8463   if test -s conftest.err; then
8464     ac_cpp_err=$ac_c_preproc_warn_flag
8465   else
8466     ac_cpp_err=
8467   fi
8468 else
8469   ac_cpp_err=yes
8470 fi
8471 if test -z "$ac_cpp_err"; then
8472   ac_header_preproc=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475   cat conftest.$ac_ext >&5
8476   ac_header_preproc=no
8477 fi
8478 rm -f conftest.err conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 echo "${ECHO_T}$ac_header_preproc" >&6
8481
8482 # So?  What about this header?
8483 case $ac_header_compiler:$ac_header_preproc in
8484   yes:no )
8485     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8486 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8488 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8489   no:yes )
8490     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8491 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8493 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8494     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8495 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8496 esac
8497 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8498 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8499 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8503 fi
8504 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8505 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8506
8507 fi
8508 if test $ac_cv_header_openssl_ssl_h = yes; then
8509   :
8510 else
8511   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8512 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8513    { (exit 1); exit 1; }; }
8514 fi
8515
8516
8517   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8518   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8519 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8520 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 fi
8523 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8524 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8525 else
8526   # Is the header compilable?
8527 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8528 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8531 #include "confdefs.h"
8532 $ac_includes_default
8533 #include <openssl/err.h>
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537   (eval $ac_compile) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -s conftest.$ac_objext'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_header_compiler=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 ac_header_compiler=no
8552 fi
8553 rm -f conftest.$ac_objext conftest.$ac_ext
8554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8555 echo "${ECHO_T}$ac_header_compiler" >&6
8556
8557 # Is the header present?
8558 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8559 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8563 #include <openssl/err.h>
8564 _ACEOF
8565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8567   ac_status=$?
8568   egrep -v '^ *\+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
8570   cat conftest.err >&5
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } >/dev/null; then
8573   if test -s conftest.err; then
8574     ac_cpp_err=$ac_c_preproc_warn_flag
8575   else
8576     ac_cpp_err=
8577   fi
8578 else
8579   ac_cpp_err=yes
8580 fi
8581 if test -z "$ac_cpp_err"; then
8582   ac_header_preproc=yes
8583 else
8584   echo "$as_me: failed program was:" >&5
8585   cat conftest.$ac_ext >&5
8586   ac_header_preproc=no
8587 fi
8588 rm -f conftest.err conftest.$ac_ext
8589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8590 echo "${ECHO_T}$ac_header_preproc" >&6
8591
8592 # So?  What about this header?
8593 case $ac_header_compiler:$ac_header_preproc in
8594   yes:no )
8595     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8596 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8597     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8598 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8599   no:yes )
8600     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8601 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8602     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8603 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8604     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8605 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8606 esac
8607 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8608 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8609 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8610   echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612   ac_cv_header_openssl_err_h=$ac_header_preproc
8613 fi
8614 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8615 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8616
8617 fi
8618 if test $ac_cv_header_openssl_err_h = yes; then
8619   :
8620 else
8621   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8622 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8623    { (exit 1); exit 1; }; }
8624 fi
8625
8626
8627 fi
8628
8629 if test "$with_pam" = yes ; then
8630
8631 for ac_header in security/pam_appl.h
8632 do
8633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635   echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 fi
8640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8642 else
8643   # Is the header compilable?
8644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 $ac_includes_default
8650 #include <$ac_header>
8651 _ACEOF
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654   (eval $ac_compile) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } &&
8658          { ac_try='test -s conftest.$ac_objext'
8659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660   (eval $ac_try) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); }; }; then
8664   ac_header_compiler=yes
8665 else
8666   echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 ac_header_compiler=no
8669 fi
8670 rm -f conftest.$ac_objext conftest.$ac_ext
8671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672 echo "${ECHO_T}$ac_header_compiler" >&6
8673
8674 # Is the header present?
8675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8678 #line $LINENO "configure"
8679 #include "confdefs.h"
8680 #include <$ac_header>
8681 _ACEOF
8682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684   ac_status=$?
8685   egrep -v '^ *\+' conftest.er1 >conftest.err
8686   rm -f conftest.er1
8687   cat conftest.err >&5
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); } >/dev/null; then
8690   if test -s conftest.err; then
8691     ac_cpp_err=$ac_c_preproc_warn_flag
8692   else
8693     ac_cpp_err=
8694   fi
8695 else
8696   ac_cpp_err=yes
8697 fi
8698 if test -z "$ac_cpp_err"; then
8699   ac_header_preproc=yes
8700 else
8701   echo "$as_me: failed program was:" >&5
8702   cat conftest.$ac_ext >&5
8703   ac_header_preproc=no
8704 fi
8705 rm -f conftest.err conftest.$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 echo "${ECHO_T}$ac_header_preproc" >&6
8708
8709 # So?  What about this header?
8710 case $ac_header_compiler:$ac_header_preproc in
8711   yes:no )
8712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8716   no:yes )
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8723 esac
8724 echo "$as_me:$LINENO: checking for $ac_header" >&5
8725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   eval "$as_ac_Header=$ac_header_preproc"
8730 fi
8731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8733
8734 fi
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 else
8741
8742 for ac_header in pam/pam_appl.h
8743 do
8744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8746   echo "$as_me:$LINENO: checking for $ac_header" >&5
8747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 fi
8751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8753 else
8754   # Is the header compilable?
8755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line $LINENO "configure"
8759 #include "confdefs.h"
8760 $ac_includes_default
8761 #include <$ac_header>
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765   (eval $ac_compile) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } &&
8769          { ac_try='test -s conftest.$ac_objext'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   ac_header_compiler=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 ac_header_compiler=no
8780 fi
8781 rm -f conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8784
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791 #include <$ac_header>
8792 _ACEOF
8793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8795   ac_status=$?
8796   egrep -v '^ *\+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } >/dev/null; then
8801   if test -s conftest.err; then
8802     ac_cpp_err=$ac_c_preproc_warn_flag
8803   else
8804     ac_cpp_err=
8805   fi
8806 else
8807   ac_cpp_err=yes
8808 fi
8809 if test -z "$ac_cpp_err"; then
8810   ac_header_preproc=yes
8811 else
8812   echo "$as_me: failed program was:" >&5
8813   cat conftest.$ac_ext >&5
8814   ac_header_preproc=no
8815 fi
8816 rm -f conftest.err conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818 echo "${ECHO_T}$ac_header_preproc" >&6
8819
8820 # So?  What about this header?
8821 case $ac_header_compiler:$ac_header_preproc in
8822   yes:no )
8823     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8827   no:yes )
8828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8830     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8834 esac
8835 echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840   eval "$as_ac_Header=$ac_header_preproc"
8841 fi
8842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8844
8845 fi
8846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8847   cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 _ACEOF
8850
8851 else
8852   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8853 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8854    { (exit 1); exit 1; }; }
8855 fi
8856
8857 done
8858
8859 fi
8860
8861 done
8862
8863 fi
8864
8865 if test "$with_rendezvous" = yes ; then
8866   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8867   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8868 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8869 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 fi
8872 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8873 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8874 else
8875   # Is the header compilable?
8876 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8877 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8881 $ac_includes_default
8882 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886   (eval $ac_compile) 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } &&
8890          { ac_try='test -s conftest.$ac_objext'
8891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892   (eval $ac_try) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); }; }; then
8896   ac_header_compiler=yes
8897 else
8898   echo "$as_me: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8900 ac_header_compiler=no
8901 fi
8902 rm -f conftest.$ac_objext conftest.$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8904 echo "${ECHO_T}$ac_header_compiler" >&6
8905
8906 # Is the header present?
8907 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8908 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8910 #line $LINENO "configure"
8911 #include "confdefs.h"
8912 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8913 _ACEOF
8914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8916   ac_status=$?
8917   egrep -v '^ *\+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } >/dev/null; then
8922   if test -s conftest.err; then
8923     ac_cpp_err=$ac_c_preproc_warn_flag
8924   else
8925     ac_cpp_err=
8926   fi
8927 else
8928   ac_cpp_err=yes
8929 fi
8930 if test -z "$ac_cpp_err"; then
8931   ac_header_preproc=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934   cat conftest.$ac_ext >&5
8935   ac_header_preproc=no
8936 fi
8937 rm -f conftest.err conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939 echo "${ECHO_T}$ac_header_preproc" >&6
8940
8941 # So?  What about this header?
8942 case $ac_header_compiler:$ac_header_preproc in
8943   yes:no )
8944     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
8945 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8948   no:yes )
8949     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
8950 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
8951     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
8952 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
8953     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8955 esac
8956 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8957 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8958 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8964 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8965
8966 fi
8967 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
8968   :
8969 else
8970   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
8971 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
8972    { (exit 1); exit 1; }; }
8973 fi
8974
8975
8976 fi
8977
8978
8979 ##
8980 ## Types, structures, compiler characteristics
8981 ##
8982
8983
8984 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8985 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8986 if test "${ac_cv_c_const+set}" = set; then
8987   echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989   cat >conftest.$ac_ext <<_ACEOF
8990 #line $LINENO "configure"
8991 #include "confdefs.h"
8992
8993 #ifdef F77_DUMMY_MAIN
8994 #  ifdef __cplusplus
8995      extern "C"
8996 #  endif
8997    int F77_DUMMY_MAIN() { return 1; }
8998 #endif
8999 int
9000 main ()
9001 {
9002 /* FIXME: Include the comments suggested by Paul. */
9003 #ifndef __cplusplus
9004   /* Ultrix mips cc rejects this.  */
9005   typedef int charset[2];
9006   const charset x;
9007   /* SunOS 4.1.1 cc rejects this.  */
9008   char const *const *ccp;
9009   char **p;
9010   /* NEC SVR4.0.2 mips cc rejects this.  */
9011   struct point {int x, y;};
9012   static struct point const zero = {0,0};
9013   /* AIX XL C 1.02.0.0 rejects this.
9014      It does not let you subtract one const X* pointer from another in
9015      an arm of an if-expression whose if-part is not a constant
9016      expression */
9017   const char *g = "string";
9018   ccp = &g + (g ? g-g : 0);
9019   /* HPUX 7.0 cc rejects these. */
9020   ++ccp;
9021   p = (char**) ccp;
9022   ccp = (char const *const *) p;
9023   { /* SCO 3.2v4 cc rejects this.  */
9024     char *t;
9025     char const *s = 0 ? (char *) 0 : (char const *) 0;
9026
9027     *t++ = 0;
9028   }
9029   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9030     int x[] = {25, 17};
9031     const int *foo = &x[0];
9032     ++foo;
9033   }
9034   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9035     typedef const int *iptr;
9036     iptr p = 0;
9037     ++p;
9038   }
9039   { /* AIX XL C 1.02.0.0 rejects this saying
9040        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9041     struct s { int j; const int *ap[3]; };
9042     struct s *b; b->j = 5;
9043   }
9044   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9045     const int foo = 10;
9046   }
9047 #endif
9048
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9055   (eval $ac_compile) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); } &&
9059          { ac_try='test -s conftest.$ac_objext'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; }; then
9065   ac_cv_c_const=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 ac_cv_c_const=no
9070 fi
9071 rm -f conftest.$ac_objext conftest.$ac_ext
9072 fi
9073 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9074 echo "${ECHO_T}$ac_cv_c_const" >&6
9075 if test $ac_cv_c_const = no; then
9076
9077 cat >>confdefs.h <<\_ACEOF
9078 #define const
9079 _ACEOF
9080
9081 fi
9082
9083 echo "$as_me:$LINENO: checking for inline" >&5
9084 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9085 if test "${ac_cv_c_inline+set}" = set; then
9086   echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088   ac_cv_c_inline=no
9089 for ac_kw in inline __inline__ __inline; do
9090   cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 #include "confdefs.h"
9093 #ifndef __cplusplus
9094 typedef int foo_t;
9095 static $ac_kw foo_t static_foo () {return 0; }
9096 $ac_kw int foo () {return 0; }
9097 #endif
9098
9099 _ACEOF
9100 rm -f conftest.$ac_objext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9102   (eval $ac_compile) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } &&
9106          { ac_try='test -s conftest.$ac_objext'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; }; then
9112   ac_cv_c_inline=$ac_kw; break
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9116 fi
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9118 done
9119
9120 fi
9121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9122 echo "${ECHO_T}$ac_cv_c_inline" >&6
9123 case $ac_cv_c_inline in
9124   inline | yes) ;;
9125   no)
9126 cat >>confdefs.h <<\_ACEOF
9127 #define inline
9128 _ACEOF
9129  ;;
9130   *)  cat >>confdefs.h <<_ACEOF
9131 #define inline $ac_cv_c_inline
9132 _ACEOF
9133  ;;
9134 esac
9135
9136 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9137 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9138 if test "${ac_cv_c_stringize+set}" = set; then
9139   echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141   cat >conftest.$ac_ext <<_ACEOF
9142 #line $LINENO "configure"
9143 #include "confdefs.h"
9144 #define x(y) #y
9145
9146 char *s = x(teststring);
9147 _ACEOF
9148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9149   egrep "#teststring" >/dev/null 2>&1; then
9150   ac_cv_c_stringize=no
9151 else
9152   ac_cv_c_stringize=yes
9153 fi
9154 rm -f conftest*
9155
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9158 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9159 if test $ac_cv_c_stringize = yes; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_STRINGIZE 1
9163 _ACEOF
9164
9165 fi
9166
9167 echo "$as_me:$LINENO: checking for signed types" >&5
9168 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9169 if test "${pgac_cv_c_signed+set}" = set; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9174 #include "confdefs.h"
9175
9176 #ifdef F77_DUMMY_MAIN
9177 #  ifdef __cplusplus
9178      extern "C"
9179 #  endif
9180    int F77_DUMMY_MAIN() { return 1; }
9181 #endif
9182 int
9183 main ()
9184 {
9185 signed char c; signed short s; signed int i;
9186   ;
9187   return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } &&
9196          { ac_try='test -s conftest.$ac_objext'
9197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; }; then
9202   pgac_cv_c_signed=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 pgac_cv_c_signed=no
9207 fi
9208 rm -f conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9211 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9212 if test x"$pgac_cv_c_signed" = xno ; then
9213
9214 cat >>confdefs.h <<\_ACEOF
9215 #define signed
9216 _ACEOF
9217
9218 fi
9219 echo "$as_me:$LINENO: checking for working volatile" >&5
9220 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9221 if test "${ac_cv_c_volatile+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 #include "confdefs.h"
9227
9228 #ifdef F77_DUMMY_MAIN
9229 #  ifdef __cplusplus
9230      extern "C"
9231 #  endif
9232    int F77_DUMMY_MAIN() { return 1; }
9233 #endif
9234 int
9235 main ()
9236 {
9237
9238 volatile int x;
9239 int * volatile y;
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246   (eval $ac_compile) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -s conftest.$ac_objext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_c_volatile=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_cv_c_volatile=no
9261 fi
9262 rm -f conftest.$ac_objext conftest.$ac_ext
9263 fi
9264 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9265 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9266 if test $ac_cv_c_volatile = no; then
9267
9268 cat >>confdefs.h <<\_ACEOF
9269 #define volatile
9270 _ACEOF
9271
9272 fi
9273
9274 echo "$as_me:$LINENO: checking for __func__" >&5
9275 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9276 if test "${pgac_cv_funcname_func_support+set}" = set; then
9277   echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279   cat >conftest.$ac_ext <<_ACEOF
9280 #line $LINENO "configure"
9281 #include "confdefs.h"
9282 #include <stdio.h>
9283 #ifdef F77_DUMMY_MAIN
9284 #  ifdef __cplusplus
9285      extern "C"
9286 #  endif
9287    int F77_DUMMY_MAIN() { return 1; }
9288 #endif
9289 int
9290 main ()
9291 {
9292 printf("%s\n", __func__);
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299   (eval $ac_compile) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); } &&
9303          { ac_try='test -s conftest.$ac_objext'
9304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); }; }; then
9309   pgac_cv_funcname_func_support=yes
9310 else
9311   echo "$as_me: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9313 pgac_cv_funcname_func_support=no
9314 fi
9315 rm -f conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9318 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9319 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9320
9321 cat >>confdefs.h <<\_ACEOF
9322 #define HAVE_FUNCNAME__FUNC 1
9323 _ACEOF
9324
9325 else
9326 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9327 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9328 if test "${pgac_cv_funcname_function_support+set}" = set; then
9329   echo $ECHO_N "(cached) $ECHO_C" >&6
9330 else
9331   cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9333 #include "confdefs.h"
9334 #include <stdio.h>
9335 #ifdef F77_DUMMY_MAIN
9336 #  ifdef __cplusplus
9337      extern "C"
9338 #  endif
9339    int F77_DUMMY_MAIN() { return 1; }
9340 #endif
9341 int
9342 main ()
9343 {
9344 printf("%s\n", __FUNCTION__);
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351   (eval $ac_compile) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } &&
9355          { ac_try='test -s conftest.$ac_objext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   pgac_cv_funcname_function_support=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 pgac_cv_funcname_function_support=no
9366 fi
9367 rm -f conftest.$ac_objext conftest.$ac_ext
9368 fi
9369 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9370 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9371 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_FUNCNAME__FUNCTION 1
9375 _ACEOF
9376
9377 fi
9378 fi
9379 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9380 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9381 if test "${ac_cv_struct_tm+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 #include "confdefs.h"
9387 #include <sys/types.h>
9388 #include <time.h>
9389
9390 #ifdef F77_DUMMY_MAIN
9391 #  ifdef __cplusplus
9392      extern "C"
9393 #  endif
9394    int F77_DUMMY_MAIN() { return 1; }
9395 #endif
9396 int
9397 main ()
9398 {
9399 struct tm *tp; tp->tm_sec;
9400   ;
9401   return 0;
9402 }
9403 _ACEOF
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406   (eval $ac_compile) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } &&
9410          { ac_try='test -s conftest.$ac_objext'
9411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412   (eval $ac_try) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; }; then
9416   ac_cv_struct_tm=time.h
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9420 ac_cv_struct_tm=sys/time.h
9421 fi
9422 rm -f conftest.$ac_objext conftest.$ac_ext
9423 fi
9424 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9425 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9426 if test $ac_cv_struct_tm = sys/time.h; then
9427
9428 cat >>confdefs.h <<\_ACEOF
9429 #define TM_IN_SYS_TIME 1
9430 _ACEOF
9431
9432 fi
9433
9434 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9435 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9436 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 #include "confdefs.h"
9442 #include <sys/types.h>
9443 #include <$ac_cv_struct_tm>
9444
9445
9446 #ifdef F77_DUMMY_MAIN
9447 #  ifdef __cplusplus
9448      extern "C"
9449 #  endif
9450    int F77_DUMMY_MAIN() { return 1; }
9451 #endif
9452 int
9453 main ()
9454 {
9455 static struct tm ac_aggr;
9456 if (ac_aggr.tm_zone)
9457 return 0;
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9464   (eval $ac_compile) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } &&
9468          { ac_try='test -s conftest.$ac_objext'
9469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470   (eval $ac_try) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; }; then
9474   ac_cv_member_struct_tm_tm_zone=yes
9475 else
9476   echo "$as_me: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 ac_cv_member_struct_tm_tm_zone=no
9479 fi
9480 rm -f conftest.$ac_objext conftest.$ac_ext
9481 fi
9482 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9483 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9484 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9485
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE_STRUCT_TM_TM_ZONE 1
9488 _ACEOF
9489
9490
9491 fi
9492
9493 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9494
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_TM_ZONE 1
9497 _ACEOF
9498
9499 fi
9500 echo "$as_me:$LINENO: checking for tzname" >&5
9501 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9502 if test "${ac_cv_var_tzname+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   cat >conftest.$ac_ext <<_ACEOF
9506 #line $LINENO "configure"
9507 #include "confdefs.h"
9508 #include <time.h>
9509 #ifndef tzname /* For SGI.  */
9510 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9511 #endif
9512
9513 #ifdef F77_DUMMY_MAIN
9514 #  ifdef __cplusplus
9515      extern "C"
9516 #  endif
9517    int F77_DUMMY_MAIN() { return 1; }
9518 #endif
9519 int
9520 main ()
9521 {
9522 atoi(*tzname);
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529   (eval $ac_link) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } &&
9533          { ac_try='test -s conftest$ac_exeext'
9534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535   (eval $ac_try) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; }; then
9539   ac_cv_var_tzname=yes
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 ac_cv_var_tzname=no
9544 fi
9545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546 fi
9547 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9548 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9549 if test $ac_cv_var_tzname = yes; then
9550
9551 cat >>confdefs.h <<\_ACEOF
9552 #define HAVE_TZNAME 1
9553 _ACEOF
9554
9555 fi
9556
9557 echo "$as_me:$LINENO: checking for union semun" >&5
9558 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9559 if test "${ac_cv_type_union_semun+set}" = set; then
9560   echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562   cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9564 #include "confdefs.h"
9565 #include <sys/types.h>
9566 #include <sys/ipc.h>
9567 #include <sys/sem.h>
9568
9569 #ifdef F77_DUMMY_MAIN
9570 #  ifdef __cplusplus
9571      extern "C"
9572 #  endif
9573    int F77_DUMMY_MAIN() { return 1; }
9574 #endif
9575 int
9576 main ()
9577 {
9578 if ((union semun *) 0)
9579   return 0;
9580 if (sizeof (union semun))
9581   return 0;
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588   (eval $ac_compile) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } &&
9592          { ac_try='test -s conftest.$ac_objext'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_cv_type_union_semun=yes
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 ac_cv_type_union_semun=no
9603 fi
9604 rm -f conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9607 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9608 if test $ac_cv_type_union_semun = yes; then
9609
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_UNION_SEMUN 1
9612 _ACEOF
9613
9614
9615 fi
9616
9617 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9618 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9619 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   cat >conftest.$ac_ext <<_ACEOF
9623 #line $LINENO "configure"
9624 #include "confdefs.h"
9625 #include <sys/types.h>
9626 #ifdef HAVE_SYS_UN_H
9627 #include <sys/un.h>
9628 #endif
9629
9630
9631 #ifdef F77_DUMMY_MAIN
9632 #  ifdef __cplusplus
9633      extern "C"
9634 #  endif
9635    int F77_DUMMY_MAIN() { return 1; }
9636 #endif
9637 int
9638 main ()
9639 {
9640 if ((struct sockaddr_un *) 0)
9641   return 0;
9642 if (sizeof (struct sockaddr_un))
9643   return 0;
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650   (eval $ac_compile) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } &&
9654          { ac_try='test -s conftest.$ac_objext'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; }; then
9660   ac_cv_type_struct_sockaddr_un=yes
9661 else
9662   echo "$as_me: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9664 ac_cv_type_struct_sockaddr_un=no
9665 fi
9666 rm -f conftest.$ac_objext conftest.$ac_ext
9667 fi
9668 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9669 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9670 if test $ac_cv_type_struct_sockaddr_un = yes; then
9671
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_STRUCT_SOCKADDR_UN 1
9674 _ACEOF
9675
9676
9677 cat >>confdefs.h <<\_ACEOF
9678 #define HAVE_UNIX_SOCKETS 1
9679 _ACEOF
9680
9681 fi
9682
9683 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9684 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9685 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   cat >conftest.$ac_ext <<_ACEOF
9689 #line $LINENO "configure"
9690 #include "confdefs.h"
9691 #include <sys/types.h>
9692 #ifdef HAVE_SYS_SOCKET_H
9693 #include <sys/socket.h>
9694 #endif
9695
9696
9697 #ifdef F77_DUMMY_MAIN
9698 #  ifdef __cplusplus
9699      extern "C"
9700 #  endif
9701    int F77_DUMMY_MAIN() { return 1; }
9702 #endif
9703 int
9704 main ()
9705 {
9706 if ((struct sockaddr_storage *) 0)
9707   return 0;
9708 if (sizeof (struct sockaddr_storage))
9709   return 0;
9710   ;
9711   return 0;
9712 }
9713 _ACEOF
9714 rm -f conftest.$ac_objext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9716   (eval $ac_compile) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } &&
9720          { ac_try='test -s conftest.$ac_objext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_type_struct_sockaddr_storage=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9730 ac_cv_type_struct_sockaddr_storage=no
9731 fi
9732 rm -f conftest.$ac_objext conftest.$ac_ext
9733 fi
9734 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9735 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9736 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9737
9738 cat >>confdefs.h <<_ACEOF
9739 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9740 _ACEOF
9741
9742
9743 fi
9744
9745 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9746 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9747 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 #include "confdefs.h"
9753 #include <sys/types.h>
9754 #ifdef HAVE_SYS_SOCKET_H
9755 #include <sys/socket.h>
9756 #endif
9757
9758
9759 #ifdef F77_DUMMY_MAIN
9760 #  ifdef __cplusplus
9761      extern "C"
9762 #  endif
9763    int F77_DUMMY_MAIN() { return 1; }
9764 #endif
9765 int
9766 main ()
9767 {
9768 static struct sockaddr_storage ac_aggr;
9769 if (ac_aggr.ss_family)
9770 return 0;
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9777   (eval $ac_compile) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } &&
9781          { ac_try='test -s conftest.$ac_objext'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; }; then
9787   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9791 ac_cv_member_struct_sockaddr_storage_ss_family=no
9792 fi
9793 rm -f conftest.$ac_objext conftest.$ac_ext
9794 fi
9795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9796 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9797 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9798
9799 cat >>confdefs.h <<_ACEOF
9800 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9801 _ACEOF
9802
9803
9804 fi
9805 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9806 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9807 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 #include "confdefs.h"
9813 #include <sys/types.h>
9814 #ifdef HAVE_SYS_SOCKET_H
9815 #include <sys/socket.h>
9816 #endif
9817
9818
9819 #ifdef F77_DUMMY_MAIN
9820 #  ifdef __cplusplus
9821      extern "C"
9822 #  endif
9823    int F77_DUMMY_MAIN() { return 1; }
9824 #endif
9825 int
9826 main ()
9827 {
9828 static struct sockaddr_storage ac_aggr;
9829 if (ac_aggr.__ss_family)
9830 return 0;
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9837   (eval $ac_compile) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -s conftest.$ac_objext'
9842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843   (eval $ac_try) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; }; then
9847   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 ac_cv_member_struct_sockaddr_storage___ss_family=no
9852 fi
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9854 fi
9855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9856 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9857 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9858
9859 cat >>confdefs.h <<_ACEOF
9860 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9861 _ACEOF
9862
9863
9864 fi
9865 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9866 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9867 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   cat >conftest.$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9872 #include "confdefs.h"
9873 #include <sys/types.h>
9874 #ifdef HAVE_SYS_SOCKET_H
9875 #include <sys/socket.h>
9876 #endif
9877
9878
9879 #ifdef F77_DUMMY_MAIN
9880 #  ifdef __cplusplus
9881      extern "C"
9882 #  endif
9883    int F77_DUMMY_MAIN() { return 1; }
9884 #endif
9885 int
9886 main ()
9887 {
9888 static struct sockaddr_storage ac_aggr;
9889 if (ac_aggr.ss_len)
9890 return 0;
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897   (eval $ac_compile) 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } &&
9901          { ac_try='test -s conftest.$ac_objext'
9902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903   (eval $ac_try) 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_cv_member_struct_sockaddr_storage_ss_len=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 ac_cv_member_struct_sockaddr_storage_ss_len=no
9912 fi
9913 rm -f conftest.$ac_objext conftest.$ac_ext
9914 fi
9915 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9916 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9917 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9918
9919 cat >>confdefs.h <<_ACEOF
9920 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9921 _ACEOF
9922
9923
9924 fi
9925 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9926 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9927 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930   cat >conftest.$ac_ext <<_ACEOF
9931 #line $LINENO "configure"
9932 #include "confdefs.h"
9933 #include <sys/types.h>
9934 #ifdef HAVE_SYS_SOCKET_H
9935 #include <sys/socket.h>
9936 #endif
9937
9938
9939 #ifdef F77_DUMMY_MAIN
9940 #  ifdef __cplusplus
9941      extern "C"
9942 #  endif
9943    int F77_DUMMY_MAIN() { return 1; }
9944 #endif
9945 int
9946 main ()
9947 {
9948 static struct sockaddr_storage ac_aggr;
9949 if (ac_aggr.__ss_len)
9950 return 0;
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957   (eval $ac_compile) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -s conftest.$ac_objext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_cv_member_struct_sockaddr_storage___ss_len=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 ac_cv_member_struct_sockaddr_storage___ss_len=no
9972 fi
9973 rm -f conftest.$ac_objext conftest.$ac_ext
9974 fi
9975 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
9976 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
9977 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
9978
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
9981 _ACEOF
9982
9983
9984 fi
9985 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
9986 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
9987 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9994 #ifdef HAVE_SYS_SOCKET_H
9995 #include <sys/socket.h>
9996 #endif
9997
9998
9999 #ifdef F77_DUMMY_MAIN
10000 #  ifdef __cplusplus
10001      extern "C"
10002 #  endif
10003    int F77_DUMMY_MAIN() { return 1; }
10004 #endif
10005 int
10006 main ()
10007 {
10008 static struct sockaddr ac_aggr;
10009 if (ac_aggr.sa_len)
10010 return 0;
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10017   (eval $ac_compile) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); } &&
10021          { ac_try='test -s conftest.$ac_objext'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; }; then
10027   ac_cv_member_struct_sockaddr_sa_len=yes
10028 else
10029   echo "$as_me: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 ac_cv_member_struct_sockaddr_sa_len=no
10032 fi
10033 rm -f conftest.$ac_objext conftest.$ac_ext
10034 fi
10035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10036 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10037 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10038
10039 cat >>confdefs.h <<_ACEOF
10040 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10041 _ACEOF
10042
10043
10044 fi
10045
10046 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10047 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10048 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   cat >conftest.$ac_ext <<_ACEOF
10052 #line $LINENO "configure"
10053 #include "confdefs.h"
10054 #include <sys/types.h>
10055 #include <sys/socket.h>
10056 #include <netdb.h>
10057
10058
10059 #ifdef F77_DUMMY_MAIN
10060 #  ifdef __cplusplus
10061      extern "C"
10062 #  endif
10063    int F77_DUMMY_MAIN() { return 1; }
10064 #endif
10065 int
10066 main ()
10067 {
10068 if ((struct addrinfo *) 0)
10069   return 0;
10070 if (sizeof (struct addrinfo))
10071   return 0;
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078   (eval $ac_compile) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -s conftest.$ac_objext'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088   ac_cv_type_struct_addrinfo=yes
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ac_cv_type_struct_addrinfo=no
10093 fi
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10095 fi
10096 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10097 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10098 if test $ac_cv_type_struct_addrinfo = yes; then
10099
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_STRUCT_ADDRINFO 1
10102 _ACEOF
10103
10104
10105 fi
10106
10107
10108 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10109 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10110 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10115 #include "confdefs.h"
10116 #include <sys/param.h>
10117 #include <sys/types.h>
10118 #include <sys/socket.h>
10119 #include <sys/ucred.h>
10120
10121 #ifdef F77_DUMMY_MAIN
10122 #  ifdef __cplusplus
10123      extern "C"
10124 #  endif
10125    int F77_DUMMY_MAIN() { return 1; }
10126 #endif
10127 int
10128 main ()
10129 {
10130 if ((struct cmsgcred *) 0)
10131   return 0;
10132 if (sizeof (struct cmsgcred))
10133   return 0;
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140   (eval $ac_compile) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -s conftest.$ac_objext'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150   ac_cv_type_struct_cmsgcred=yes
10151 else
10152   echo "$as_me: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 ac_cv_type_struct_cmsgcred=no
10155 fi
10156 rm -f conftest.$ac_objext conftest.$ac_ext
10157 fi
10158 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10159 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10160 if test $ac_cv_type_struct_cmsgcred = yes; then
10161
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_STRUCT_CMSGCRED 1
10164 _ACEOF
10165
10166
10167 fi
10168 echo "$as_me:$LINENO: checking for struct fcred" >&5
10169 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10170 if test "${ac_cv_type_struct_fcred+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10175 #include "confdefs.h"
10176 #include <sys/param.h>
10177 #include <sys/types.h>
10178 #include <sys/socket.h>
10179 #include <sys/ucred.h>
10180
10181 #ifdef F77_DUMMY_MAIN
10182 #  ifdef __cplusplus
10183      extern "C"
10184 #  endif
10185    int F77_DUMMY_MAIN() { return 1; }
10186 #endif
10187 int
10188 main ()
10189 {
10190 if ((struct fcred *) 0)
10191   return 0;
10192 if (sizeof (struct fcred))
10193   return 0;
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200   (eval $ac_compile) 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -s conftest.$ac_objext'
10205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206   (eval $ac_try) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; }; then
10210   ac_cv_type_struct_fcred=yes
10211 else
10212   echo "$as_me: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 ac_cv_type_struct_fcred=no
10215 fi
10216 rm -f conftest.$ac_objext conftest.$ac_ext
10217 fi
10218 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10219 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10220 if test $ac_cv_type_struct_fcred = yes; then
10221
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_STRUCT_FCRED 1
10224 _ACEOF
10225
10226
10227 fi
10228 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10229 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10230 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 #line $LINENO "configure"
10235 #include "confdefs.h"
10236 #include <sys/param.h>
10237 #include <sys/types.h>
10238 #include <sys/socket.h>
10239 #include <sys/ucred.h>
10240
10241 #ifdef F77_DUMMY_MAIN
10242 #  ifdef __cplusplus
10243      extern "C"
10244 #  endif
10245    int F77_DUMMY_MAIN() { return 1; }
10246 #endif
10247 int
10248 main ()
10249 {
10250 if ((struct sockcred *) 0)
10251   return 0;
10252 if (sizeof (struct sockcred))
10253   return 0;
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260   (eval $ac_compile) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } &&
10264          { ac_try='test -s conftest.$ac_objext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_type_struct_sockcred=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10274 ac_cv_type_struct_sockcred=no
10275 fi
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10279 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10280 if test $ac_cv_type_struct_sockcred = yes; then
10281
10282 cat >>confdefs.h <<_ACEOF
10283 #define HAVE_STRUCT_SOCKCRED 1
10284 _ACEOF
10285
10286
10287 fi
10288
10289
10290 echo "$as_me:$LINENO: checking for struct option" >&5
10291 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10292 if test "${ac_cv_type_struct_option+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   cat >conftest.$ac_ext <<_ACEOF
10296 #line $LINENO "configure"
10297 #include "confdefs.h"
10298 #ifdef HAVE_GETOPT_H
10299 #include <getopt.h>
10300 #endif
10301
10302 #ifdef F77_DUMMY_MAIN
10303 #  ifdef __cplusplus
10304      extern "C"
10305 #  endif
10306    int F77_DUMMY_MAIN() { return 1; }
10307 #endif
10308 int
10309 main ()
10310 {
10311 if ((struct option *) 0)
10312   return 0;
10313 if (sizeof (struct option))
10314   return 0;
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321   (eval $ac_compile) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_cv_type_struct_option=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 ac_cv_type_struct_option=no
10336 fi
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10340 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10341 if test $ac_cv_type_struct_option = yes; then
10342
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_STRUCT_OPTION 1
10345 _ACEOF
10346
10347
10348 fi
10349
10350
10351 if test "$with_zlib" = yes; then
10352   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10353   # did not).  While we could work around the lack of z_streamp, it
10354   # seems unwise to encourage people to use such old zlib versions...
10355   echo "$as_me:$LINENO: checking for z_streamp" >&5
10356 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10357 if test "${ac_cv_type_z_streamp+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 #include <zlib.h>
10364
10365 #ifdef F77_DUMMY_MAIN
10366 #  ifdef __cplusplus
10367      extern "C"
10368 #  endif
10369    int F77_DUMMY_MAIN() { return 1; }
10370 #endif
10371 int
10372 main ()
10373 {
10374 if ((z_streamp *) 0)
10375   return 0;
10376 if (sizeof (z_streamp))
10377   return 0;
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384   (eval $ac_compile) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -s conftest.$ac_objext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_cv_type_z_streamp=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 ac_cv_type_z_streamp=no
10399 fi
10400 rm -f conftest.$ac_objext conftest.$ac_ext
10401 fi
10402 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10403 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10404 if test $ac_cv_type_z_streamp = yes; then
10405   :
10406 else
10407   { { echo "$as_me:$LINENO: error: zlib version is too old
10408 Use --without-zlib to disable zlib support." >&5
10409 echo "$as_me: error: zlib version is too old
10410 Use --without-zlib to disable zlib support." >&2;}
10411    { (exit 1); exit 1; }; }
10412 fi
10413
10414 fi
10415
10416 if test "$with_krb5" = yes; then
10417 # Check for differences between MIT and Heimdal (KTH) releases
10418   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10419 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10420 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 #line $LINENO "configure"
10425 #include "confdefs.h"
10426 #include <krb5.h>
10427
10428 #ifdef F77_DUMMY_MAIN
10429 #  ifdef __cplusplus
10430      extern "C"
10431 #  endif
10432    int F77_DUMMY_MAIN() { return 1; }
10433 #endif
10434 int
10435 main ()
10436 {
10437 static krb5_ticket ac_aggr;
10438 if (ac_aggr.enc_part2)
10439 return 0;
10440   ;
10441   return 0;
10442 }
10443 _ACEOF
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446   (eval $ac_compile) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); } &&
10450          { ac_try='test -s conftest.$ac_objext'
10451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452   (eval $ac_try) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   ac_cv_member_krb5_ticket_enc_part2=yes
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 ac_cv_member_krb5_ticket_enc_part2=no
10461 fi
10462 rm -f conftest.$ac_objext conftest.$ac_ext
10463 fi
10464 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10465 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10466 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10467
10468 cat >>confdefs.h <<_ACEOF
10469 #define HAVE_KRB5_TICKET_ENC_PART2 1
10470 _ACEOF
10471
10472
10473 else
10474   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10475 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10476 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 #include "confdefs.h"
10482 #include <krb5.h>
10483
10484 #ifdef F77_DUMMY_MAIN
10485 #  ifdef __cplusplus
10486      extern "C"
10487 #  endif
10488    int F77_DUMMY_MAIN() { return 1; }
10489 #endif
10490 int
10491 main ()
10492 {
10493 static krb5_ticket ac_aggr;
10494 if (ac_aggr.client)
10495 return 0;
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502   (eval $ac_compile) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); } &&
10506          { ac_try='test -s conftest.$ac_objext'
10507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508   (eval $ac_try) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   ac_cv_member_krb5_ticket_client=yes
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 ac_cv_member_krb5_ticket_client=no
10517 fi
10518 rm -f conftest.$ac_objext conftest.$ac_ext
10519 fi
10520 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10521 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10522 if test $ac_cv_member_krb5_ticket_client = yes; then
10523
10524 cat >>confdefs.h <<_ACEOF
10525 #define HAVE_KRB5_TICKET_CLIENT 1
10526 _ACEOF
10527
10528
10529 else
10530   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10531 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10532    { (exit 1); exit 1; }; }
10533 fi
10534
10535 fi
10536
10537   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10538 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10539 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542   cat >conftest.$ac_ext <<_ACEOF
10543 #line $LINENO "configure"
10544 #include "confdefs.h"
10545 #include <krb5.h>
10546
10547 #ifdef F77_DUMMY_MAIN
10548 #  ifdef __cplusplus
10549      extern "C"
10550 #  endif
10551    int F77_DUMMY_MAIN() { return 1; }
10552 #endif
10553 int
10554 main ()
10555 {
10556 static krb5_error ac_aggr;
10557 if (ac_aggr.text.data)
10558 return 0;
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565   (eval $ac_compile) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -s conftest.$ac_objext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_member_krb5_error_text_data=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 ac_cv_member_krb5_error_text_data=no
10580 fi
10581 rm -f conftest.$ac_objext conftest.$ac_ext
10582 fi
10583 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10584 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10585 if test $ac_cv_member_krb5_error_text_data = yes; then
10586
10587 cat >>confdefs.h <<_ACEOF
10588 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10589 _ACEOF
10590
10591
10592 else
10593   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10594 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10595 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10600 #include "confdefs.h"
10601 #include <krb5.h>
10602
10603 #ifdef F77_DUMMY_MAIN
10604 #  ifdef __cplusplus
10605      extern "C"
10606 #  endif
10607    int F77_DUMMY_MAIN() { return 1; }
10608 #endif
10609 int
10610 main ()
10611 {
10612 static krb5_error ac_aggr;
10613 if (ac_aggr.e_data)
10614 return 0;
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621   (eval $ac_compile) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   ac_cv_member_krb5_error_e_data=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10635 ac_cv_member_krb5_error_e_data=no
10636 fi
10637 rm -f conftest.$ac_objext conftest.$ac_ext
10638 fi
10639 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10640 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10641 if test $ac_cv_member_krb5_error_e_data = yes; then
10642
10643 cat >>confdefs.h <<_ACEOF
10644 #define HAVE_KRB5_ERROR_E_DATA 1
10645 _ACEOF
10646
10647
10648 else
10649   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10650 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10651    { (exit 1); exit 1; }; }
10652 fi
10653
10654 fi
10655
10656 fi
10657
10658
10659 ##
10660 ## Functions, global variables
10661 ##
10662
10663 echo "$as_me:$LINENO: checking for int timezone" >&5
10664 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10665 if test "${pgac_cv_var_int_timezone+set}" = set; then
10666   echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668   cat >conftest.$ac_ext <<_ACEOF
10669 #line $LINENO "configure"
10670 #include "confdefs.h"
10671 #include <time.h>
10672 int res;
10673 #ifdef F77_DUMMY_MAIN
10674 #  ifdef __cplusplus
10675      extern "C"
10676 #  endif
10677    int F77_DUMMY_MAIN() { return 1; }
10678 #endif
10679 int
10680 main ()
10681 {
10682 res = timezone / 60;
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689   (eval $ac_link) 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -s conftest$ac_exeext'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   pgac_cv_var_int_timezone=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 pgac_cv_var_int_timezone=no
10704 fi
10705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10706 fi
10707 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10708 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10709 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10710
10711 cat >>confdefs.h <<\_ACEOF
10712 #define HAVE_INT_TIMEZONE
10713 _ACEOF
10714
10715 fi
10716 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10717 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10718  if test "${ac_cv_func_accept_return+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721    if test "${ac_cv_func_accept_arg1+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724     if test "${ac_cv_func_accept_arg2+set}" = set; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727      if test "${ac_cv_func_accept_arg3+set}" = set; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10731       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10732        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10733         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10734          cat >conftest.$ac_ext <<_ACEOF
10735 #line $LINENO "configure"
10736 #include "confdefs.h"
10737 #ifdef HAVE_SYS_TYPES_H
10738 #include <sys/types.h>
10739 #endif
10740 #ifdef HAVE_SYS_SOCKET_H
10741 #include <sys/socket.h>
10742 #endif
10743 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10744 #ifdef F77_DUMMY_MAIN
10745 #  ifdef __cplusplus
10746      extern "C"
10747 #  endif
10748    int F77_DUMMY_MAIN() { return 1; }
10749 #endif
10750 int
10751 main ()
10752 {
10753
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760   (eval $ac_compile) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); } &&
10764          { ac_try='test -s conftest.$ac_objext'
10765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766   (eval $ac_try) 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }; then
10770   ac_not_found=no; break 4
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 cat conftest.$ac_ext >&5
10774 ac_not_found=yes
10775 fi
10776 rm -f conftest.$ac_objext conftest.$ac_ext
10777        done
10778       done
10779      done
10780     done
10781     if test "$ac_not_found" = yes; then
10782       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10783 echo "$as_me: error: could not determine argument types" >&2;}
10784    { (exit 1); exit 1; }; }
10785     fi
10786     if test "$ac_cv_func_accept_arg3" = "void"; then
10787       ac_cv_func_accept_arg3=int
10788     fi
10789
10790 fi
10791
10792 fi
10793
10794 fi
10795
10796 fi
10797  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
10798 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10799
10800 cat >>confdefs.h <<_ACEOF
10801 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10802 _ACEOF
10803
10804
10805 cat >>confdefs.h <<_ACEOF
10806 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10807 _ACEOF
10808
10809
10810 cat >>confdefs.h <<_ACEOF
10811 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10812 _ACEOF
10813
10814
10815 cat >>confdefs.h <<_ACEOF
10816 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10817 _ACEOF
10818
10819
10820 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10821 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10822 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 #include <sys/time.h>
10829 #ifdef F77_DUMMY_MAIN
10830 #  ifdef __cplusplus
10831      extern "C"
10832 #  endif
10833    int F77_DUMMY_MAIN() { return 1; }
10834 #endif
10835 int
10836 main ()
10837 {
10838 struct timeval *tp;
10839 struct timezone *tzp;
10840 gettimeofday(tp,tzp);
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847   (eval $ac_compile) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -s conftest.$ac_objext'
10852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853   (eval $ac_try) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   pgac_cv_func_gettimeofday_1arg=no
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10861 pgac_cv_func_gettimeofday_1arg=yes
10862 fi
10863 rm -f conftest.$ac_objext conftest.$ac_ext
10864 fi
10865 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10866 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10867 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define GETTIMEOFDAY_1ARG
10871 _ACEOF
10872
10873 fi
10874
10875
10876
10877 # SunOS doesn't handle negative byte comparisons properly with +/- return
10878 echo "$as_me:$LINENO: checking for working memcmp" >&5
10879 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10880 if test "${ac_cv_func_memcmp_working+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   if test "$cross_compiling" = yes; then
10884   ac_cv_func_memcmp_working=no
10885 else
10886   cat >conftest.$ac_ext <<_ACEOF
10887 #line $LINENO "configure"
10888 #include "confdefs.h"
10889
10890 #ifdef F77_DUMMY_MAIN
10891 #  ifdef __cplusplus
10892      extern "C"
10893 #  endif
10894    int F77_DUMMY_MAIN() { return 1; }
10895 #endif
10896 int
10897 main ()
10898 {
10899
10900   /* Some versions of memcmp are not 8-bit clean.  */
10901   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10902   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10903     exit (1);
10904
10905   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10906      or more and with at least one buffer not starting on a 4-byte boundary.
10907      William Lewis provided this test program.   */
10908   {
10909     char foo[21];
10910     char bar[21];
10911     int i;
10912     for (i = 0; i < 4; i++)
10913       {
10914         char *a = foo + i;
10915         char *b = bar + i;
10916         strcpy (a, "--------01111111");
10917         strcpy (b, "--------10000000");
10918         if (memcmp (a, b, 16) >= 0)
10919           exit (1);
10920       }
10921     exit (0);
10922   }
10923
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930   (eval $ac_link) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935   (eval $ac_try) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; }; then
10939   ac_cv_func_memcmp_working=yes
10940 else
10941   echo "$as_me: program exited with status $ac_status" >&5
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 ( exit $ac_status )
10945 ac_cv_func_memcmp_working=no
10946 fi
10947 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10948 fi
10949 fi
10950 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10951 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10952 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10972 do
10973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974 echo "$as_me:$LINENO: checking for $ac_func" >&5
10975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_var+set}\" = set"; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10981 #include "confdefs.h"
10982 /* System header to define __stub macros and hopefully few prototypes,
10983     which can conflict with char $ac_func (); below.  */
10984 #include <assert.h>
10985 /* Override any gcc2 internal prototype to avoid an error.  */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 /* We use char because int might match the return type of a gcc2
10990    builtin and then its argument prototype would still apply.  */
10991 char $ac_func ();
10992 char (*f) ();
10993
10994 #ifdef F77_DUMMY_MAIN
10995 #  ifdef __cplusplus
10996      extern "C"
10997 #  endif
10998    int F77_DUMMY_MAIN() { return 1; }
10999 #endif
11000 int
11001 main ()
11002 {
11003 /* The GNU C library defines this for functions which it implements
11004     to always fail with ENOSYS.  Some functions are actually named
11005     something starting with __ and the normal name is an alias.  */
11006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11007 choke me
11008 #else
11009 f = $ac_func;
11010 #endif
11011
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018   (eval $ac_link) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -s conftest$ac_exeext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   eval "$as_ac_var=yes"
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 eval "$as_ac_var=no"
11033 fi
11034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11035 fi
11036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11038 if test `eval echo '${'$as_ac_var'}'` = yes; then
11039   cat >>confdefs.h <<_ACEOF
11040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11041 _ACEOF
11042
11043 fi
11044 done
11045
11046
11047 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11048 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11049 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 #include "confdefs.h"
11055 #include <unistd.h>
11056
11057 #ifdef F77_DUMMY_MAIN
11058 #  ifdef __cplusplus
11059      extern "C"
11060 #  endif
11061    int F77_DUMMY_MAIN() { return 1; }
11062 #endif
11063 int
11064 main ()
11065 {
11066 #ifndef fdatasync
11067   char *p = (char *) fdatasync;
11068 #endif
11069
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076   (eval $ac_compile) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -s conftest.$ac_objext'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; }; then
11086   ac_cv_have_decl_fdatasync=yes
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11090 ac_cv_have_decl_fdatasync=no
11091 fi
11092 rm -f conftest.$ac_objext conftest.$ac_ext
11093 fi
11094 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11095 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11096 if test $ac_cv_have_decl_fdatasync = yes; then
11097
11098 cat >>confdefs.h <<_ACEOF
11099 #define HAVE_DECL_FDATASYNC 1
11100 _ACEOF
11101
11102
11103 else
11104   cat >>confdefs.h <<_ACEOF
11105 #define HAVE_DECL_FDATASYNC 0
11106 _ACEOF
11107
11108
11109 fi
11110
11111
11112
11113 HAVE_IPV6=no
11114 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11115 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11116 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11117   echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119   cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11121 #include "confdefs.h"
11122 $ac_includes_default
11123 #include <netinet/in.h>
11124
11125 #ifdef F77_DUMMY_MAIN
11126 #  ifdef __cplusplus
11127      extern "C"
11128 #  endif
11129    int F77_DUMMY_MAIN() { return 1; }
11130 #endif
11131 int
11132 main ()
11133 {
11134 if ((struct sockaddr_in6 *) 0)
11135   return 0;
11136 if (sizeof (struct sockaddr_in6))
11137   return 0;
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144   (eval $ac_compile) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -s conftest.$ac_objext'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }; then
11154   ac_cv_type_struct_sockaddr_in6=yes
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 ac_cv_type_struct_sockaddr_in6=no
11159 fi
11160 rm -f conftest.$ac_objext conftest.$ac_ext
11161 fi
11162 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11163 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11164 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11165   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11166 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11167 if test "${ac_cv_func_inet_ntop+set}" = set; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170   cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11172 #include "confdefs.h"
11173 /* System header to define __stub macros and hopefully few prototypes,
11174     which can conflict with char inet_ntop (); below.  */
11175 #include <assert.h>
11176 /* Override any gcc2 internal prototype to avoid an error.  */
11177 #ifdef __cplusplus
11178 extern "C"
11179 #endif
11180 /* We use char because int might match the return type of a gcc2
11181    builtin and then its argument prototype would still apply.  */
11182 char inet_ntop ();
11183 char (*f) ();
11184
11185 #ifdef F77_DUMMY_MAIN
11186 #  ifdef __cplusplus
11187      extern "C"
11188 #  endif
11189    int F77_DUMMY_MAIN() { return 1; }
11190 #endif
11191 int
11192 main ()
11193 {
11194 /* The GNU C library defines this for functions which it implements
11195     to always fail with ENOSYS.  Some functions are actually named
11196     something starting with __ and the normal name is an alias.  */
11197 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11198 choke me
11199 #else
11200 f = inet_ntop;
11201 #endif
11202
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209   (eval $ac_link) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } &&
11213          { ac_try='test -s conftest$ac_exeext'
11214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215   (eval $ac_try) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   ac_cv_func_inet_ntop=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 ac_cv_func_inet_ntop=no
11224 fi
11225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11226 fi
11227 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11228 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11229 if test $ac_cv_func_inet_ntop = yes; then
11230
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_IPV6 1
11233 _ACEOF
11234
11235                                                           HAVE_IPV6=yes
11236 fi
11237
11238 fi
11239
11240
11241
11242 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11243 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11244 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 #include <machine/vmparam.h>
11251 #include <sys/exec.h>
11252
11253 #ifdef F77_DUMMY_MAIN
11254 #  ifdef __cplusplus
11255      extern "C"
11256 #  endif
11257    int F77_DUMMY_MAIN() { return 1; }
11258 #endif
11259 int
11260 main ()
11261 {
11262 PS_STRINGS->ps_nargvstr = 1;
11263 PS_STRINGS->ps_argvstr = "foo";
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270   (eval $ac_link) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -s conftest$ac_exeext'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; }; then
11280   pgac_cv_var_PS_STRINGS=yes
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 pgac_cv_var_PS_STRINGS=no
11285 fi
11286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11287 fi
11288 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11289 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11290 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11291
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_PS_STRINGS
11294 _ACEOF
11295
11296 fi
11297
11298
11299 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11300 # is missing.  Yes, there are machines that have only one.  We may
11301 # also decide to use snprintf.c if snprintf() is present but does not
11302 # have working "long long int" support -- see below.
11303
11304 pgac_need_repl_snprintf=no
11305
11306 for ac_func in snprintf
11307 do
11308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 echo "$as_me:$LINENO: checking for $ac_func" >&5
11310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11311 if eval "test \"\${$as_ac_var+set}\" = set"; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 #include "confdefs.h"
11317 /* System header to define __stub macros and hopefully few prototypes,
11318     which can conflict with char $ac_func (); below.  */
11319 #include <assert.h>
11320 /* Override any gcc2 internal prototype to avoid an error.  */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 /* We use char because int might match the return type of a gcc2
11325    builtin and then its argument prototype would still apply.  */
11326 char $ac_func ();
11327 char (*f) ();
11328
11329 #ifdef F77_DUMMY_MAIN
11330 #  ifdef __cplusplus
11331      extern "C"
11332 #  endif
11333    int F77_DUMMY_MAIN() { return 1; }
11334 #endif
11335 int
11336 main ()
11337 {
11338 /* The GNU C library defines this for functions which it implements
11339     to always fail with ENOSYS.  Some functions are actually named
11340     something starting with __ and the normal name is an alias.  */
11341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11342 choke me
11343 #else
11344 f = $ac_func;
11345 #endif
11346
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353   (eval $ac_link) 2>&5
11354   ac_status=$?
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } &&
11357          { ac_try='test -s conftest$ac_exeext'
11358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359   (eval $ac_try) 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); }; }; then
11363   eval "$as_ac_var=yes"
11364 else
11365   echo "$as_me: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 eval "$as_ac_var=no"
11368 fi
11369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11370 fi
11371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11373 if test `eval echo '${'$as_ac_var'}'` = yes; then
11374   cat >>confdefs.h <<_ACEOF
11375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11376 _ACEOF
11377
11378 else
11379   pgac_need_repl_snprintf=yes
11380 fi
11381 done
11382
11383
11384 for ac_func in vsnprintf
11385 do
11386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11387 echo "$as_me:$LINENO: checking for $ac_func" >&5
11388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11389 if eval "test \"\${$as_ac_var+set}\" = set"; then
11390   echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392   cat >conftest.$ac_ext <<_ACEOF
11393 #line $LINENO "configure"
11394 #include "confdefs.h"
11395 /* System header to define __stub macros and hopefully few prototypes,
11396     which can conflict with char $ac_func (); below.  */
11397 #include <assert.h>
11398 /* Override any gcc2 internal prototype to avoid an error.  */
11399 #ifdef __cplusplus
11400 extern "C"
11401 #endif
11402 /* We use char because int might match the return type of a gcc2
11403    builtin and then its argument prototype would still apply.  */
11404 char $ac_func ();
11405 char (*f) ();
11406
11407 #ifdef F77_DUMMY_MAIN
11408 #  ifdef __cplusplus
11409      extern "C"
11410 #  endif
11411    int F77_DUMMY_MAIN() { return 1; }
11412 #endif
11413 int
11414 main ()
11415 {
11416 /* The GNU C library defines this for functions which it implements
11417     to always fail with ENOSYS.  Some functions are actually named
11418     something starting with __ and the normal name is an alias.  */
11419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11420 choke me
11421 #else
11422 f = $ac_func;
11423 #endif
11424
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431   (eval $ac_link) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -s conftest$ac_exeext'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; }; then
11441   eval "$as_ac_var=yes"
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11446 fi
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448 fi
11449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452   cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11454 _ACEOF
11455
11456 else
11457   pgac_need_repl_snprintf=yes
11458 fi
11459 done
11460
11461
11462
11463 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11464 # include/c.h will provide declarations.  Note this is a separate test
11465 # from whether the functions exist in the C library --- there are
11466 # systems that have the functions but don't bother to declare them :-(
11467
11468 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11469 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11470 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11475 #include "confdefs.h"
11476 $ac_includes_default
11477 #ifdef F77_DUMMY_MAIN
11478 #  ifdef __cplusplus
11479      extern "C"
11480 #  endif
11481    int F77_DUMMY_MAIN() { return 1; }
11482 #endif
11483 int
11484 main ()
11485 {
11486 #ifndef snprintf
11487   char *p = (char *) snprintf;
11488 #endif
11489
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496   (eval $ac_compile) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -s conftest.$ac_objext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   ac_cv_have_decl_snprintf=yes
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 ac_cv_have_decl_snprintf=no
11511 fi
11512 rm -f conftest.$ac_objext conftest.$ac_ext
11513 fi
11514 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11515 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11516 if test $ac_cv_have_decl_snprintf = yes; then
11517
11518 cat >>confdefs.h <<_ACEOF
11519 #define HAVE_DECL_SNPRINTF 1
11520 _ACEOF
11521
11522
11523 else
11524   cat >>confdefs.h <<_ACEOF
11525 #define HAVE_DECL_SNPRINTF 0
11526 _ACEOF
11527
11528
11529 fi
11530 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11531 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11532 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535   cat >conftest.$ac_ext <<_ACEOF
11536 #line $LINENO "configure"
11537 #include "confdefs.h"
11538 $ac_includes_default
11539 #ifdef F77_DUMMY_MAIN
11540 #  ifdef __cplusplus
11541      extern "C"
11542 #  endif
11543    int F77_DUMMY_MAIN() { return 1; }
11544 #endif
11545 int
11546 main ()
11547 {
11548 #ifndef vsnprintf
11549   char *p = (char *) vsnprintf;
11550 #endif
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558   (eval $ac_compile) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -s conftest.$ac_objext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   ac_cv_have_decl_vsnprintf=yes
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 ac_cv_have_decl_vsnprintf=no
11573 fi
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11575 fi
11576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11577 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11578 if test $ac_cv_have_decl_vsnprintf = yes; then
11579
11580 cat >>confdefs.h <<_ACEOF
11581 #define HAVE_DECL_VSNPRINTF 1
11582 _ACEOF
11583
11584
11585 else
11586   cat >>confdefs.h <<_ACEOF
11587 #define HAVE_DECL_VSNPRINTF 0
11588 _ACEOF
11589
11590
11591 fi
11592
11593
11594
11595
11596 # do this one the hard way in case isinf() is a macro
11597 echo "$as_me:$LINENO: checking for isinf" >&5
11598 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11599 if test "${ac_cv_func_isinf+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 #include "confdefs.h"
11605 #include <math.h>
11606
11607 #ifdef F77_DUMMY_MAIN
11608 #  ifdef __cplusplus
11609      extern "C"
11610 #  endif
11611    int F77_DUMMY_MAIN() { return 1; }
11612 #endif
11613 int
11614 main ()
11615 {
11616 double x = 0.0; int res = isinf(x);
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623   (eval $ac_link) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -s conftest$ac_exeext'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; }; then
11633   ac_cv_func_isinf=yes
11634 else
11635   echo "$as_me: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11637 ac_cv_func_isinf=no
11638 fi
11639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11640 fi
11641 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11642 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11643
11644 if test $ac_cv_func_isinf = yes ; then
11645
11646 cat >>confdefs.h <<\_ACEOF
11647 #define HAVE_ISINF 1
11648 _ACEOF
11649
11650 else
11651   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11652   # Look for a way to implement a substitute for isinf()
11653
11654
11655
11656
11657 for ac_func in fpclass fp_class fp_class_d class
11658 do
11659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11662 if eval "test \"\${$as_ac_var+set}\" = set"; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   cat >conftest.$ac_ext <<_ACEOF
11666 #line $LINENO "configure"
11667 #include "confdefs.h"
11668 /* System header to define __stub macros and hopefully few prototypes,
11669     which can conflict with char $ac_func (); below.  */
11670 #include <assert.h>
11671 /* Override any gcc2 internal prototype to avoid an error.  */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 /* We use char because int might match the return type of a gcc2
11676    builtin and then its argument prototype would still apply.  */
11677 char $ac_func ();
11678 char (*f) ();
11679
11680 #ifdef F77_DUMMY_MAIN
11681 #  ifdef __cplusplus
11682      extern "C"
11683 #  endif
11684    int F77_DUMMY_MAIN() { return 1; }
11685 #endif
11686 int
11687 main ()
11688 {
11689 /* The GNU C library defines this for functions which it implements
11690     to always fail with ENOSYS.  Some functions are actually named
11691     something starting with __ and the normal name is an alias.  */
11692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11693 choke me
11694 #else
11695 f = $ac_func;
11696 #endif
11697
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704   (eval $ac_link) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -s conftest$ac_exeext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   eval "$as_ac_var=yes"
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 cat conftest.$ac_ext >&5
11718 eval "$as_ac_var=no"
11719 fi
11720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725   cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11727 _ACEOF
11728  break
11729 fi
11730 done
11731
11732 fi
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11748 do
11749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11750 echo "$as_me:$LINENO: checking for $ac_func" >&5
11751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11752 if eval "test \"\${$as_ac_var+set}\" = set"; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 #include "confdefs.h"
11758 /* System header to define __stub macros and hopefully few prototypes,
11759     which can conflict with char $ac_func (); below.  */
11760 #include <assert.h>
11761 /* Override any gcc2 internal prototype to avoid an error.  */
11762 #ifdef __cplusplus
11763 extern "C"
11764 #endif
11765 /* We use char because int might match the return type of a gcc2
11766    builtin and then its argument prototype would still apply.  */
11767 char $ac_func ();
11768 char (*f) ();
11769
11770 #ifdef F77_DUMMY_MAIN
11771 #  ifdef __cplusplus
11772      extern "C"
11773 #  endif
11774    int F77_DUMMY_MAIN() { return 1; }
11775 #endif
11776 int
11777 main ()
11778 {
11779 /* The GNU C library defines this for functions which it implements
11780     to always fail with ENOSYS.  Some functions are actually named
11781     something starting with __ and the normal name is an alias.  */
11782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11783 choke me
11784 #else
11785 f = $ac_func;
11786 #endif
11787
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794   (eval $ac_link) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } &&
11798          { ac_try='test -s conftest$ac_exeext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   eval "$as_ac_var=yes"
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 eval "$as_ac_var=no"
11809 fi
11810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11811 fi
11812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11814 if test `eval echo '${'$as_ac_var'}'` = yes; then
11815   cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 _ACEOF
11818
11819 else
11820   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11821 fi
11822 done
11823
11824
11825
11826 # system's version of getaddrinfo(), if any, may be used only if we found
11827 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11828 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11829
11830 for ac_func in getaddrinfo
11831 do
11832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11833 echo "$as_me:$LINENO: checking for $ac_func" >&5
11834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_var+set}\" = set"; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   cat >conftest.$ac_ext <<_ACEOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11841 /* System header to define __stub macros and hopefully few prototypes,
11842     which can conflict with char $ac_func (); below.  */
11843 #include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error.  */
11845 #ifdef __cplusplus
11846 extern "C"
11847 #endif
11848 /* We use char because int might match the return type of a gcc2
11849    builtin and then its argument prototype would still apply.  */
11850 char $ac_func ();
11851 char (*f) ();
11852
11853 #ifdef F77_DUMMY_MAIN
11854 #  ifdef __cplusplus
11855      extern "C"
11856 #  endif
11857    int F77_DUMMY_MAIN() { return 1; }
11858 #endif
11859 int
11860 main ()
11861 {
11862 /* The GNU C library defines this for functions which it implements
11863     to always fail with ENOSYS.  Some functions are actually named
11864     something starting with __ and the normal name is an alias.  */
11865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11866 choke me
11867 #else
11868 f = $ac_func;
11869 #endif
11870
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877   (eval $ac_link) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -s conftest$ac_exeext'
11882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883   (eval $ac_try) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   eval "$as_ac_var=yes"
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11891 eval "$as_ac_var=no"
11892 fi
11893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11894 fi
11895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11897 if test `eval echo '${'$as_ac_var'}'` = yes; then
11898   cat >>confdefs.h <<_ACEOF
11899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11900 _ACEOF
11901
11902 else
11903   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11904 fi
11905 done
11906
11907
11908 else
11909   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11910 fi
11911
11912 # similarly, use system's getopt_long() only if system provides struct option.
11913 if test x"$ac_cv_type_struct_option" = xyes ; then
11914
11915 for ac_func in getopt_long
11916 do
11917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918 echo "$as_me:$LINENO: checking for $ac_func" >&5
11919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_var+set}\" = set"; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 #include "confdefs.h"
11926 /* System header to define __stub macros and hopefully few prototypes,
11927     which can conflict with char $ac_func (); below.  */
11928 #include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error.  */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 /* We use char because int might match the return type of a gcc2
11934    builtin and then its argument prototype would still apply.  */
11935 char $ac_func ();
11936 char (*f) ();
11937
11938 #ifdef F77_DUMMY_MAIN
11939 #  ifdef __cplusplus
11940      extern "C"
11941 #  endif
11942    int F77_DUMMY_MAIN() { return 1; }
11943 #endif
11944 int
11945 main ()
11946 {
11947 /* The GNU C library defines this for functions which it implements
11948     to always fail with ENOSYS.  Some functions are actually named
11949     something starting with __ and the normal name is an alias.  */
11950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11951 choke me
11952 #else
11953 f = $ac_func;
11954 #endif
11955
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962   (eval $ac_link) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; }; then
11972   eval "$as_ac_var=yes"
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 eval "$as_ac_var=no"
11977 fi
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979 fi
11980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983   cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 _ACEOF
11986
11987 else
11988   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11989 fi
11990 done
11991
11992
11993 else
11994   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11995 fi
11996
11997 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11998 # We override the previous test that said fseeko/ftello didn't exist
11999 # OS tests are also done in include/c.h and port/fseeko.c
12000 case $host_os in bsdi*|netbsd*)
12001 ac_cv_func_fseeko=yes
12002 esac
12003
12004 # Solaris has a very slow qsort in certain cases, so we replace it.
12005 case $host_os in solaris*)
12006 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12007 esac
12008
12009 # Win32 support
12010 case $host_os in mingw*)
12011 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12012 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12013 LIBOBJS="$LIBOBJS open.$ac_objext"
12014 LIBOBJS="$LIBOBJS pipe.$ac_objext"
12015 LIBOBJS="$LIBOBJS rand.$ac_objext"
12016
12017 cat >>confdefs.h <<\_ACEOF
12018 #define USE_PGTZ 1
12019 _ACEOF
12020
12021 USE_PGTZ=yes
12022  ;;
12023 esac
12024
12025 # Win32 can't to rename or unlink on an open file
12026 case $host_os in mingw*|cygwin*)
12027 LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
12028 esac
12029
12030 if test "$with_readline" = yes; then
12031   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12032 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 #include "confdefs.h"
12036 #include <stdio.h>
12037 #ifdef HAVE_READLINE_READLINE_H
12038 # include <readline/readline.h>
12039 #elif defined(HAVE_READLINE_H)
12040 # include <readline.h>
12041 #endif
12042
12043 #ifdef F77_DUMMY_MAIN
12044 #  ifdef __cplusplus
12045      extern "C"
12046 #  endif
12047    int F77_DUMMY_MAIN() { return 1; }
12048 #endif
12049 int
12050 main ()
12051 {
12052 rl_completion_append_character = 'x';
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059   (eval $ac_link) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -s conftest$ac_exeext'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; }; then
12069   echo "$as_me:$LINENO: result: yes" >&5
12070 echo "${ECHO_T}yes" >&6
12071
12072 cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12074 _ACEOF
12075
12076 else
12077   echo "$as_me: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6
12081 fi
12082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12083
12084
12085 for ac_func in rl_completion_matches rl_filename_completion_function
12086 do
12087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12088 echo "$as_me:$LINENO: checking for $ac_func" >&5
12089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12090 if eval "test \"\${$as_ac_var+set}\" = set"; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   cat >conftest.$ac_ext <<_ACEOF
12094 #line $LINENO "configure"
12095 #include "confdefs.h"
12096 /* System header to define __stub macros and hopefully few prototypes,
12097     which can conflict with char $ac_func (); below.  */
12098 #include <assert.h>
12099 /* Override any gcc2 internal prototype to avoid an error.  */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 /* We use char because int might match the return type of a gcc2
12104    builtin and then its argument prototype would still apply.  */
12105 char $ac_func ();
12106 char (*f) ();
12107
12108 #ifdef F77_DUMMY_MAIN
12109 #  ifdef __cplusplus
12110      extern "C"
12111 #  endif
12112    int F77_DUMMY_MAIN() { return 1; }
12113 #endif
12114 int
12115 main ()
12116 {
12117 /* The GNU C library defines this for functions which it implements
12118     to always fail with ENOSYS.  Some functions are actually named
12119     something starting with __ and the normal name is an alias.  */
12120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12121 choke me
12122 #else
12123 f = $ac_func;
12124 #endif
12125
12126   ;
12127   return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132   (eval $ac_link) 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } &&
12136          { ac_try='test -s conftest$ac_exeext'
12137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138   (eval $ac_try) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; }; then
12142   eval "$as_ac_var=yes"
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12146 eval "$as_ac_var=no"
12147 fi
12148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12149 fi
12150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152 if test `eval echo '${'$as_ac_var'}'` = yes; then
12153   cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155 _ACEOF
12156
12157 fi
12158 done
12159
12160
12161 for ac_func in replace_history_entry
12162 do
12163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12164 echo "$as_me:$LINENO: checking for $ac_func" >&5
12165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12166 if eval "test \"\${$as_ac_var+set}\" = set"; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12171 #include "confdefs.h"
12172 /* System header to define __stub macros and hopefully few prototypes,
12173     which can conflict with char $ac_func (); below.  */
12174 #include <assert.h>
12175 /* Override any gcc2 internal prototype to avoid an error.  */
12176 #ifdef __cplusplus
12177 extern "C"
12178 #endif
12179 /* We use char because int might match the return type of a gcc2
12180    builtin and then its argument prototype would still apply.  */
12181 char $ac_func ();
12182 char (*f) ();
12183
12184 #ifdef F77_DUMMY_MAIN
12185 #  ifdef __cplusplus
12186      extern "C"
12187 #  endif
12188    int F77_DUMMY_MAIN() { return 1; }
12189 #endif
12190 int
12191 main ()
12192 {
12193 /* The GNU C library defines this for functions which it implements
12194     to always fail with ENOSYS.  Some functions are actually named
12195     something starting with __ and the normal name is an alias.  */
12196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12197 choke me
12198 #else
12199 f = $ac_func;
12200 #endif
12201
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208   (eval $ac_link) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); } &&
12212          { ac_try='test -s conftest$ac_exeext'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218   eval "$as_ac_var=yes"
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 eval "$as_ac_var=no"
12223 fi
12224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12225 fi
12226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12228 if test `eval echo '${'$as_ac_var'}'` = yes; then
12229   cat >>confdefs.h <<_ACEOF
12230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12231 _ACEOF
12232
12233 fi
12234 done
12235
12236 fi
12237
12238
12239 echo "$as_me:$LINENO: checking for finite" >&5
12240 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12243 #include "confdefs.h"
12244 #include <math.h>
12245 #ifdef F77_DUMMY_MAIN
12246 #  ifdef __cplusplus
12247      extern "C"
12248 #  endif
12249    int F77_DUMMY_MAIN() { return 1; }
12250 #endif
12251 int
12252 main ()
12253 {
12254 int dummy=finite(1.0);
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261   (eval $ac_link) 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } &&
12265          { ac_try='test -s conftest$ac_exeext'
12266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267   (eval $ac_try) 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; }; then
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define HAVE_FINITE 1
12274 _ACEOF
12275
12276 echo "$as_me:$LINENO: result: yes" >&5
12277 echo "${ECHO_T}yes" >&6
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12281 echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12283 fi
12284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12285
12286 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12287 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12288 cat >conftest.$ac_ext <<_ACEOF
12289 #line $LINENO "configure"
12290 #include "confdefs.h"
12291 #include <setjmp.h>
12292 #ifdef F77_DUMMY_MAIN
12293 #  ifdef __cplusplus
12294      extern "C"
12295 #  endif
12296    int F77_DUMMY_MAIN() { return 1; }
12297 #endif
12298 int
12299 main ()
12300 {
12301 sigjmp_buf x; sigsetjmp(x, 1);
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12308   (eval $ac_link) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -s conftest$ac_exeext'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; }; then
12318
12319 cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_SIGSETJMP 1
12321 _ACEOF
12322
12323 echo "$as_me:$LINENO: result: yes" >&5
12324 echo "${ECHO_T}yes" >&6
12325 else
12326   echo "$as_me: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 echo "$as_me:$LINENO: result: no" >&5
12329 echo "${ECHO_T}no" >&6
12330 fi
12331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12332
12333 echo "$as_me:$LINENO: checking for syslog" >&5
12334 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12335 if test "${ac_cv_func_syslog+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339 #line $LINENO "configure"
12340 #include "confdefs.h"
12341 /* System header to define __stub macros and hopefully few prototypes,
12342     which can conflict with char syslog (); below.  */
12343 #include <assert.h>
12344 /* Override any gcc2 internal prototype to avoid an error.  */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 /* We use char because int might match the return type of a gcc2
12349    builtin and then its argument prototype would still apply.  */
12350 char syslog ();
12351 char (*f) ();
12352
12353 #ifdef F77_DUMMY_MAIN
12354 #  ifdef __cplusplus
12355      extern "C"
12356 #  endif
12357    int F77_DUMMY_MAIN() { return 1; }
12358 #endif
12359 int
12360 main ()
12361 {
12362 /* The GNU C library defines this for functions which it implements
12363     to always fail with ENOSYS.  Some functions are actually named
12364     something starting with __ and the normal name is an alias.  */
12365 #if defined (__stub_syslog) || defined (__stub___syslog)
12366 choke me
12367 #else
12368 f = syslog;
12369 #endif
12370
12371   ;
12372   return 0;
12373 }
12374 _ACEOF
12375 rm -f conftest.$ac_objext conftest$ac_exeext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12377   (eval $ac_link) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -s conftest$ac_exeext'
12382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383   (eval $ac_try) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; }; then
12387   ac_cv_func_syslog=yes
12388 else
12389   echo "$as_me: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12391 ac_cv_func_syslog=no
12392 fi
12393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12394 fi
12395 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12396 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12397 if test $ac_cv_func_syslog = yes; then
12398   if test "${ac_cv_header_syslog_h+set}" = set; then
12399   echo "$as_me:$LINENO: checking for syslog.h" >&5
12400 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12401 if test "${ac_cv_header_syslog_h+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 fi
12404 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12405 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12406 else
12407   # Is the header compilable?
12408 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12409 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 #include "confdefs.h"
12413 $ac_includes_default
12414 #include <syslog.h>
12415 _ACEOF
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418   (eval $ac_compile) 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -s conftest.$ac_objext'
12423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424   (eval $ac_try) 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; }; then
12428   ac_header_compiler=yes
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 ac_header_compiler=no
12433 fi
12434 rm -f conftest.$ac_objext conftest.$ac_ext
12435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12436 echo "${ECHO_T}$ac_header_compiler" >&6
12437
12438 # Is the header present?
12439 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12440 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12441 cat >conftest.$ac_ext <<_ACEOF
12442 #line $LINENO "configure"
12443 #include "confdefs.h"
12444 #include <syslog.h>
12445 _ACEOF
12446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12448   ac_status=$?
12449   egrep -v '^ *\+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } >/dev/null; then
12454   if test -s conftest.err; then
12455     ac_cpp_err=$ac_c_preproc_warn_flag
12456   else
12457     ac_cpp_err=
12458   fi
12459 else
12460   ac_cpp_err=yes
12461 fi
12462 if test -z "$ac_cpp_err"; then
12463   ac_header_preproc=yes
12464 else
12465   echo "$as_me: failed program was:" >&5
12466   cat conftest.$ac_ext >&5
12467   ac_header_preproc=no
12468 fi
12469 rm -f conftest.err conftest.$ac_ext
12470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471 echo "${ECHO_T}$ac_header_preproc" >&6
12472
12473 # So?  What about this header?
12474 case $ac_header_compiler:$ac_header_preproc in
12475   yes:no )
12476     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12477 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12479 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12480   no:yes )
12481     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12482 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12483     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12484 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12485     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12486 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12487 esac
12488 echo "$as_me:$LINENO: checking for syslog.h" >&5
12489 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12490 if test "${ac_cv_header_syslog_h+set}" = set; then
12491   echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493   ac_cv_header_syslog_h=$ac_header_preproc
12494 fi
12495 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12496 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12497
12498 fi
12499 if test $ac_cv_header_syslog_h = yes; then
12500
12501 cat >>confdefs.h <<\_ACEOF
12502 #define HAVE_SYSLOG 1
12503 _ACEOF
12504
12505 fi
12506
12507
12508 fi
12509
12510
12511 echo "$as_me:$LINENO: checking for optreset" >&5
12512 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12513 if test "${pgac_cv_var_int_optreset+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   cat >conftest.$ac_ext <<_ACEOF
12517 #line $LINENO "configure"
12518 #include "confdefs.h"
12519 #include <unistd.h>
12520 #ifdef F77_DUMMY_MAIN
12521 #  ifdef __cplusplus
12522      extern "C"
12523 #  endif
12524    int F77_DUMMY_MAIN() { return 1; }
12525 #endif
12526 int
12527 main ()
12528 {
12529 extern int optreset; optreset = 1;
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12536   (eval $ac_link) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   pgac_cv_var_int_optreset=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12550 pgac_cv_var_int_optreset=no
12551 fi
12552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12553 fi
12554 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12555 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12556 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12557
12558 cat >>confdefs.h <<\_ACEOF
12559 #define HAVE_INT_OPTRESET 1
12560 _ACEOF
12561
12562 fi
12563
12564
12565
12566 for ac_func in strtoll strtoq
12567 do
12568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12569 echo "$as_me:$LINENO: checking for $ac_func" >&5
12570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12571 if eval "test \"\${$as_ac_var+set}\" = set"; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   cat >conftest.$ac_ext <<_ACEOF
12575 #line $LINENO "configure"
12576 #include "confdefs.h"
12577 /* System header to define __stub macros and hopefully few prototypes,
12578     which can conflict with char $ac_func (); below.  */
12579 #include <assert.h>
12580 /* Override any gcc2 internal prototype to avoid an error.  */
12581 #ifdef __cplusplus
12582 extern "C"
12583 #endif
12584 /* We use char because int might match the return type of a gcc2
12585    builtin and then its argument prototype would still apply.  */
12586 char $ac_func ();
12587 char (*f) ();
12588
12589 #ifdef F77_DUMMY_MAIN
12590 #  ifdef __cplusplus
12591      extern "C"
12592 #  endif
12593    int F77_DUMMY_MAIN() { return 1; }
12594 #endif
12595 int
12596 main ()
12597 {
12598 /* The GNU C library defines this for functions which it implements
12599     to always fail with ENOSYS.  Some functions are actually named
12600     something starting with __ and the normal name is an alias.  */
12601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12602 choke me
12603 #else
12604 f = $ac_func;
12605 #endif
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613   (eval $ac_link) 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } &&
12617          { ac_try='test -s conftest$ac_exeext'
12618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619   (eval $ac_try) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; }; then
12623   eval "$as_ac_var=yes"
12624 else
12625   echo "$as_me: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 eval "$as_ac_var=no"
12628 fi
12629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12630 fi
12631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12633 if test `eval echo '${'$as_ac_var'}'` = yes; then
12634   cat >>confdefs.h <<_ACEOF
12635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12636 _ACEOF
12637  break
12638 fi
12639 done
12640
12641
12642
12643 for ac_func in strtoull strtouq
12644 do
12645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12646 echo "$as_me:$LINENO: checking for $ac_func" >&5
12647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12648 if eval "test \"\${$as_ac_var+set}\" = set"; then
12649   echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651   cat >conftest.$ac_ext <<_ACEOF
12652 #line $LINENO "configure"
12653 #include "confdefs.h"
12654 /* System header to define __stub macros and hopefully few prototypes,
12655     which can conflict with char $ac_func (); below.  */
12656 #include <assert.h>
12657 /* Override any gcc2 internal prototype to avoid an error.  */
12658 #ifdef __cplusplus
12659 extern "C"
12660 #endif
12661 /* We use char because int might match the return type of a gcc2
12662    builtin and then its argument prototype would still apply.  */
12663 char $ac_func ();
12664 char (*f) ();
12665
12666 #ifdef F77_DUMMY_MAIN
12667 #  ifdef __cplusplus
12668      extern "C"
12669 #  endif
12670    int F77_DUMMY_MAIN() { return 1; }
12671 #endif
12672 int
12673 main ()
12674 {
12675 /* The GNU C library defines this for functions which it implements
12676     to always fail with ENOSYS.  Some functions are actually named
12677     something starting with __ and the normal name is an alias.  */
12678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12679 choke me
12680 #else
12681 f = $ac_func;
12682 #endif
12683
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690   (eval $ac_link) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } &&
12694          { ac_try='test -s conftest$ac_exeext'
12695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696   (eval $ac_try) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; }; then
12700   eval "$as_ac_var=yes"
12701 else
12702   echo "$as_me: failed program was:" >&5
12703 cat conftest.$ac_ext >&5
12704 eval "$as_ac_var=no"
12705 fi
12706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12707 fi
12708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711   cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713 _ACEOF
12714  break
12715 fi
12716 done
12717
12718
12719 # Check for one of atexit() or on_exit()
12720
12721 for ac_func in atexit
12722 do
12723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12724 echo "$as_me:$LINENO: checking for $ac_func" >&5
12725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12726 if eval "test \"\${$as_ac_var+set}\" = set"; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   cat >conftest.$ac_ext <<_ACEOF
12730 #line $LINENO "configure"
12731 #include "confdefs.h"
12732 /* System header to define __stub macros and hopefully few prototypes,
12733     which can conflict with char $ac_func (); below.  */
12734 #include <assert.h>
12735 /* Override any gcc2 internal prototype to avoid an error.  */
12736 #ifdef __cplusplus
12737 extern "C"
12738 #endif
12739 /* We use char because int might match the return type of a gcc2
12740    builtin and then its argument prototype would still apply.  */
12741 char $ac_func ();
12742 char (*f) ();
12743
12744 #ifdef F77_DUMMY_MAIN
12745 #  ifdef __cplusplus
12746      extern "C"
12747 #  endif
12748    int F77_DUMMY_MAIN() { return 1; }
12749 #endif
12750 int
12751 main ()
12752 {
12753 /* The GNU C library defines this for functions which it implements
12754     to always fail with ENOSYS.  Some functions are actually named
12755     something starting with __ and the normal name is an alias.  */
12756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12757 choke me
12758 #else
12759 f = $ac_func;
12760 #endif
12761
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768   (eval $ac_link) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -s conftest$ac_exeext'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; }; then
12778   eval "$as_ac_var=yes"
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12782 eval "$as_ac_var=no"
12783 fi
12784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12785 fi
12786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12788 if test `eval echo '${'$as_ac_var'}'` = yes; then
12789   cat >>confdefs.h <<_ACEOF
12790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12791 _ACEOF
12792
12793 else
12794
12795 for ac_func in on_exit
12796 do
12797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12798 echo "$as_me:$LINENO: checking for $ac_func" >&5
12799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12800 if eval "test \"\${$as_ac_var+set}\" = set"; then
12801   echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803   cat >conftest.$ac_ext <<_ACEOF
12804 #line $LINENO "configure"
12805 #include "confdefs.h"
12806 /* System header to define __stub macros and hopefully few prototypes,
12807     which can conflict with char $ac_func (); below.  */
12808 #include <assert.h>
12809 /* Override any gcc2 internal prototype to avoid an error.  */
12810 #ifdef __cplusplus
12811 extern "C"
12812 #endif
12813 /* We use char because int might match the return type of a gcc2
12814    builtin and then its argument prototype would still apply.  */
12815 char $ac_func ();
12816 char (*f) ();
12817
12818 #ifdef F77_DUMMY_MAIN
12819 #  ifdef __cplusplus
12820      extern "C"
12821 #  endif
12822    int F77_DUMMY_MAIN() { return 1; }
12823 #endif
12824 int
12825 main ()
12826 {
12827 /* The GNU C library defines this for functions which it implements
12828     to always fail with ENOSYS.  Some functions are actually named
12829     something starting with __ and the normal name is an alias.  */
12830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12831 choke me
12832 #else
12833 f = $ac_func;
12834 #endif
12835
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842   (eval $ac_link) 2>&5
12843   ac_status=$?
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } &&
12846          { ac_try='test -s conftest$ac_exeext'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; }; then
12852   eval "$as_ac_var=yes"
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12856 eval "$as_ac_var=no"
12857 fi
12858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12859 fi
12860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12862 if test `eval echo '${'$as_ac_var'}'` = yes; then
12863   cat >>confdefs.h <<_ACEOF
12864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12865 _ACEOF
12866
12867 else
12868   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12869 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12870    { (exit 1); exit 1; }; }
12871 fi
12872 done
12873
12874 fi
12875 done
12876
12877
12878 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12879 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12880 if test "${ac_cv_sys_largefile_source+set}" = set; then
12881   echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883   while :; do
12884   ac_cv_sys_largefile_source=no
12885   cat >conftest.$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12888 #include <stdio.h>
12889 #ifdef F77_DUMMY_MAIN
12890 #  ifdef __cplusplus
12891      extern "C"
12892 #  endif
12893    int F77_DUMMY_MAIN() { return 1; }
12894 #endif
12895 int
12896 main ()
12897 {
12898 return !fseeko;
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905   (eval $ac_compile) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } &&
12909          { ac_try='test -s conftest.$ac_objext'
12910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911   (eval $ac_try) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   break
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 fi
12920 rm -f conftest.$ac_objext conftest.$ac_ext
12921   cat >conftest.$ac_ext <<_ACEOF
12922 #line $LINENO "configure"
12923 #include "confdefs.h"
12924 #define _LARGEFILE_SOURCE 1
12925 #include <stdio.h>
12926 #ifdef F77_DUMMY_MAIN
12927 #  ifdef __cplusplus
12928      extern "C"
12929 #  endif
12930    int F77_DUMMY_MAIN() { return 1; }
12931 #endif
12932 int
12933 main ()
12934 {
12935 return !fseeko;
12936   ;
12937   return 0;
12938 }
12939 _ACEOF
12940 rm -f conftest.$ac_objext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942   (eval $ac_compile) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } &&
12946          { ac_try='test -s conftest.$ac_objext'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; }; then
12952   ac_cv_sys_largefile_source=1; break
12953 else
12954   echo "$as_me: failed program was:" >&5
12955 cat conftest.$ac_ext >&5
12956 fi
12957 rm -f conftest.$ac_objext conftest.$ac_ext
12958   break
12959 done
12960 fi
12961 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12962 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12963 if test "$ac_cv_sys_largefile_source" != no; then
12964
12965 cat >>confdefs.h <<_ACEOF
12966 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12967 _ACEOF
12968
12969 fi
12970 rm -f conftest*
12971
12972 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12973 # in glibc 2.1.3, but that breaks too many other things.
12974 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12975 echo "$as_me:$LINENO: checking for fseeko" >&5
12976 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12977 if test "${ac_cv_func_fseeko+set}" = set; then
12978   echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980   cat >conftest.$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12982 #include "confdefs.h"
12983 #include <stdio.h>
12984 #ifdef F77_DUMMY_MAIN
12985 #  ifdef __cplusplus
12986      extern "C"
12987 #  endif
12988    int F77_DUMMY_MAIN() { return 1; }
12989 #endif
12990 int
12991 main ()
12992 {
12993 return fseeko && fseeko (stdin, 0, 0);
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000   (eval $ac_link) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } &&
13004          { ac_try='test -s conftest$ac_exeext'
13005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006   (eval $ac_try) 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; }; then
13010   ac_cv_func_fseeko=yes
13011 else
13012   echo "$as_me: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13014 ac_cv_func_fseeko=no
13015 fi
13016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13017 fi
13018 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13019 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13020 if test $ac_cv_func_fseeko = yes; then
13021
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_FSEEKO 1
13024 _ACEOF
13025
13026 fi
13027
13028
13029 #
13030 # Pthreads
13031 #
13032 # For each platform, we need to know about any special compile and link
13033 # libraries, and whether the normal C function names are thread-safe.
13034 # See the comment at the top of src/port/thread.c for more information.
13035 #
13036 if test "$enable_thread_safety" = yes; then
13037
13038
13039
13040
13041 ac_ext=c
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047 acx_pthread_ok=no
13048
13049 # We used to check for pthread.h first, but this fails if pthread.h
13050 # requires special compiler flags (e.g. on True64 or Sequent).
13051 # It gets checked for in the link test anyway.
13052
13053 # First of all, check if the user has set any of the PTHREAD_LIBS,
13054 # etcetera environment variables, and if threads linking works using
13055 # them:
13056 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13057         save_CFLAGS="$CFLAGS"
13058         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13059         save_LIBS="$LIBS"
13060         LIBS="$PTHREAD_LIBS $LIBS"
13061         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13062 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13063         cat >conftest.$ac_ext <<_ACEOF
13064 #line $LINENO "configure"
13065 #include "confdefs.h"
13066
13067 /* Override any gcc2 internal prototype to avoid an error.  */
13068 #ifdef __cplusplus
13069 extern "C"
13070 #endif
13071 /* We use char because int might match the return type of a gcc2
13072    builtin and then its argument prototype would still apply.  */
13073 char pthread_join ();
13074 #ifdef F77_DUMMY_MAIN
13075 #  ifdef __cplusplus
13076      extern "C"
13077 #  endif
13078    int F77_DUMMY_MAIN() { return 1; }
13079 #endif
13080 int
13081 main ()
13082 {
13083 pthread_join ();
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090   (eval $ac_link) 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); } &&
13094          { ac_try='test -s conftest$ac_exeext'
13095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096   (eval $ac_try) 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; }; then
13100   acx_pthread_ok=yes
13101 else
13102   echo "$as_me: failed program was:" >&5
13103 cat conftest.$ac_ext >&5
13104 fi
13105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13106         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13107 echo "${ECHO_T}$acx_pthread_ok" >&6
13108         if test x"$acx_pthread_ok" = xno; then
13109                 PTHREAD_LIBS=""
13110                 PTHREAD_CFLAGS=""
13111         fi
13112         LIBS="$save_LIBS"
13113         CFLAGS="$save_CFLAGS"
13114 fi
13115
13116 # We must check for the threads library under a number of different
13117 # names; the ordering is very important because some systems
13118 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13119 # libraries is broken (non-POSIX).
13120
13121 # Create a list of thread flags to try.  Items starting with a "-" are
13122 # C compiler flags, and other items are library names, except for "none"
13123 # which indicates that we try without any flags at all, and "pthread-config"
13124 # which is a program returning the flags for the Pth emulation library.
13125
13126 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13127
13128 # The ordering *is* (sometimes) important.  Some notes on the
13129 # individual items follow:
13130
13131 # pthreads: AIX (must check this before -lpthread)
13132 # none: in case threads are in libc; should be tried before -Kthread and
13133 #       other compiler flags to prevent continual compiler warnings
13134 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13135 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13136 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13137 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13138 # -pthreads: Solaris/gcc
13139 # -mthreads: Mingw32/gcc, Lynx/gcc
13140 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13141 #      doesn't hurt to check since this sometimes defines pthreads too;
13142 #      also defines -D_REENTRANT)
13143 # pthread: Linux, etcetera
13144 # --thread-safe: KAI C++
13145 # pthread-config: use pthread-config program (for GNU Pth library)
13146
13147 case "${host_cpu}-${host_os}" in
13148         *solaris*)
13149
13150         # On Solaris (at least, for some versions), libc contains stubbed
13151         # (non-functional) versions of the pthreads routines, so link-based
13152         # tests will erroneously succeed.  (We need to link with -pthread or
13153         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13154         # a function called by this macro, so we could check for that, but
13155         # who knows whether they'll stub that too in a future libc.)  So,
13156         # we'll just look for -pthreads and -lpthread first:
13157
13158         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13159         ;;
13160 esac
13161
13162 if test x"$acx_pthread_ok" = xno; then
13163 for flag in $acx_pthread_flags; do
13164
13165         case $flag in
13166                 none)
13167                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13168 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13169                 ;;
13170
13171                 -*)
13172                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13173 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13174                 PTHREAD_CFLAGS="$flag"
13175                 ;;
13176
13177                 pthread-config)
13178                 # Extract the first word of "pthread-config", so it can be a program name with args.
13179 set dummy pthread-config; ac_word=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   if test -n "$acx_pthread_config"; then
13186   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191   IFS=$as_save_IFS
13192   test -z "$as_dir" && as_dir=.
13193   for ac_exec_ext in '' $ac_executable_extensions; do
13194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195     ac_cv_prog_acx_pthread_config="yes"
13196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13197     break 2
13198   fi
13199 done
13200 done
13201
13202   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13203 fi
13204 fi
13205 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13206 if test -n "$acx_pthread_config"; then
13207   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13208 echo "${ECHO_T}$acx_pthread_config" >&6
13209 else
13210   echo "$as_me:$LINENO: result: no" >&5
13211 echo "${ECHO_T}no" >&6
13212 fi
13213
13214                 if test x"$acx_pthread_config" = xno; then continue; fi
13215                 PTHREAD_CFLAGS="`pthread-config --cflags`"
13216                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13217                 ;;
13218
13219                 *)
13220                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13221 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13222                 PTHREAD_LIBS="-l$flag"
13223                 ;;
13224         esac
13225
13226         save_LIBS="$LIBS"
13227         save_CFLAGS="$CFLAGS"
13228         LIBS="$PTHREAD_LIBS $LIBS"
13229         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13230
13231         # Check for various functions.  We must include pthread.h,
13232         # since some functions may be macros.  (On the Sequent, we
13233         # need a special flag -Kthread to make this header compile.)
13234         # We check for pthread_join because it is in -lpthread on IRIX
13235         # while pthread_create is in libc.  We check for pthread_attr_init
13236         # due to DEC craziness with -lpthreads.  We check for
13237         # pthread_cleanup_push because it is one of the few pthread
13238         # functions on Solaris that doesn't have a non-functional libc stub.
13239         # We try pthread_create on general principles.
13240         cat >conftest.$ac_ext <<_ACEOF
13241 #line $LINENO "configure"
13242 #include "confdefs.h"
13243 #include <pthread.h>
13244 #ifdef F77_DUMMY_MAIN
13245 #  ifdef __cplusplus
13246      extern "C"
13247 #  endif
13248    int F77_DUMMY_MAIN() { return 1; }
13249 #endif
13250 int
13251 main ()
13252 {
13253 pthread_t th; pthread_join(th, 0);
13254                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
13255                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext conftest$ac_exeext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13262   (eval $ac_link) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -s conftest$ac_exeext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   acx_pthread_ok=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 cat conftest.$ac_ext >&5
13276 fi
13277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13278
13279         LIBS="$save_LIBS"
13280         CFLAGS="$save_CFLAGS"
13281
13282         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13283 echo "${ECHO_T}$acx_pthread_ok" >&6
13284         if test "x$acx_pthread_ok" = xyes; then
13285                 break;
13286         fi
13287
13288         PTHREAD_LIBS=""
13289         PTHREAD_CFLAGS=""
13290 done
13291 fi
13292
13293 # Various other checks:
13294 if test "x$acx_pthread_ok" = xyes; then
13295         save_LIBS="$LIBS"
13296         LIBS="$PTHREAD_LIBS $LIBS"
13297         save_CFLAGS="$CFLAGS"
13298         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13299
13300         # Detect AIX lossage: threads are created detached by default
13301         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13302         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13303 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13304         cat >conftest.$ac_ext <<_ACEOF
13305 #line $LINENO "configure"
13306 #include "confdefs.h"
13307 #include <pthread.h>
13308 #ifdef F77_DUMMY_MAIN
13309 #  ifdef __cplusplus
13310      extern "C"
13311 #  endif
13312    int F77_DUMMY_MAIN() { return 1; }
13313 #endif
13314 int
13315 main ()
13316 {
13317 int attr=PTHREAD_CREATE_JOINABLE;
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324   (eval $ac_link) 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } &&
13328          { ac_try='test -s conftest$ac_exeext'
13329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330   (eval $ac_try) 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; }; then
13334   ok=PTHREAD_CREATE_JOINABLE
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13338 ok=unknown
13339 fi
13340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13341         if test x"$ok" = xunknown; then
13342                 cat >conftest.$ac_ext <<_ACEOF
13343 #line $LINENO "configure"
13344 #include "confdefs.h"
13345 #include <pthread.h>
13346 #ifdef F77_DUMMY_MAIN
13347 #  ifdef __cplusplus
13348      extern "C"
13349 #  endif
13350    int F77_DUMMY_MAIN() { return 1; }
13351 #endif
13352 int
13353 main ()
13354 {
13355 int attr=PTHREAD_CREATE_UNDETACHED;
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362   (eval $ac_link) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } &&
13366          { ac_try='test -s conftest$ac_exeext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   ok=PTHREAD_CREATE_UNDETACHED
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13376 ok=unknown
13377 fi
13378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13379         fi
13380         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13381
13382 cat >>confdefs.h <<\_ACEOF
13383 #define PTHREAD_CREATE_JOINABLE $ok
13384 _ACEOF
13385
13386         fi
13387         echo "$as_me:$LINENO: result: ${ok}" >&5
13388 echo "${ECHO_T}${ok}" >&6
13389         if test x"$ok" = xunknown; then
13390                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13391 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13392         fi
13393
13394         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13395 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13396         flag=no
13397 # We handle this ourselves in PostgreSQL
13398 #        case "${host_cpu}-${host_os}" in
13399 #                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
13400 #                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13401 #        esac
13402         echo "$as_me:$LINENO: result: ${flag}" >&5
13403 echo "${ECHO_T}${flag}" >&6
13404         if test "x$flag" != xno; then
13405                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13406         fi
13407
13408         LIBS="$save_LIBS"
13409         CFLAGS="$save_CFLAGS"
13410
13411         # More AIX lossage: must compile with cc_r
13412         # Extract the first word of "cc_r", so it can be a program name with args.
13413 set dummy cc_r; ac_word=$2
13414 echo "$as_me:$LINENO: checking for $ac_word" >&5
13415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13416 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13417   echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419   if test -n "$PTHREAD_CC"; then
13420   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13421 else
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13424 do
13425   IFS=$as_save_IFS
13426   test -z "$as_dir" && as_dir=.
13427   for ac_exec_ext in '' $ac_executable_extensions; do
13428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13429     ac_cv_prog_PTHREAD_CC="cc_r"
13430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13431     break 2
13432   fi
13433 done
13434 done
13435
13436   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13437 fi
13438 fi
13439 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13440 if test -n "$PTHREAD_CC"; then
13441   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13442 echo "${ECHO_T}$PTHREAD_CC" >&6
13443 else
13444   echo "$as_me:$LINENO: result: no" >&5
13445 echo "${ECHO_T}no" >&6
13446 fi
13447
13448 else
13449         PTHREAD_CC="$CC"
13450 fi
13451
13452
13453
13454
13455
13456 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13457 if test x"$acx_pthread_ok" = xyes; then
13458
13459 cat >>confdefs.h <<\_ACEOF
13460 #define HAVE_PTHREAD 1
13461 _ACEOF
13462
13463         :
13464 else
13465         acx_pthread_ok=no
13466
13467 fi
13468 ac_ext=c
13469 ac_cpp='$CPP $CPPFLAGS'
13470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13473
13474         # set thread flags
13475
13476 # Some platforms use these, so just defineed them.  They can't hurt if they
13477 # are not supported.
13478 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13479
13480
13481 # At this point, we don't want to muck with the compiler name for threading.
13482 # Let's see who fails, perhaps AIX.  2004-04-23
13483 if test "$PTHREAD_CC" != "$CC"; then
13484 { { echo "$as_me:$LINENO: error:
13485 PostgreSQL does not support platforms that require a special
13486 compiler binary for thread-safety.
13487 " >&5
13488 echo "$as_me: error:
13489 PostgreSQL does not support platforms that require a special
13490 compiler binary for thread-safety.
13491 " >&2;}
13492    { (exit 1); exit 1; }; }
13493 fi
13494
13495 if test "$THREAD_SUPPORT" = no; then
13496 { { echo "$as_me:$LINENO: error:
13497 Cannot enable threads on your platform.
13498 Your platform is known to not support thread-safe programs.
13499 For details, compile and run src/bin/pg_thread_test.
13500 " >&5
13501 echo "$as_me: error:
13502 Cannot enable threads on your platform.
13503 Your platform is known to not support thread-safe programs.
13504 For details, compile and run src/bin/pg_thread_test.
13505 " >&2;}
13506    { (exit 1); exit 1; }; }
13507 fi
13508
13509 if test "${ac_cv_header_pthread_h+set}" = set; then
13510   echo "$as_me:$LINENO: checking for pthread.h" >&5
13511 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13512 if test "${ac_cv_header_pthread_h+set}" = set; then
13513   echo $ECHO_N "(cached) $ECHO_C" >&6
13514 fi
13515 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13516 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13517 else
13518   # Is the header compilable?
13519 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13520 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13521 cat >conftest.$ac_ext <<_ACEOF
13522 #line $LINENO "configure"
13523 #include "confdefs.h"
13524 $ac_includes_default
13525 #include <pthread.h>
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529   (eval $ac_compile) 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } &&
13533          { ac_try='test -s conftest.$ac_objext'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; }; then
13539   ac_header_compiler=yes
13540 else
13541   echo "$as_me: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13543 ac_header_compiler=no
13544 fi
13545 rm -f conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13547 echo "${ECHO_T}$ac_header_compiler" >&6
13548
13549 # Is the header present?
13550 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13551 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13555 #include <pthread.h>
13556 _ACEOF
13557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13559   ac_status=$?
13560   egrep -v '^ *\+' conftest.er1 >conftest.err
13561   rm -f conftest.er1
13562   cat conftest.err >&5
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } >/dev/null; then
13565   if test -s conftest.err; then
13566     ac_cpp_err=$ac_c_preproc_warn_flag
13567   else
13568     ac_cpp_err=
13569   fi
13570 else
13571   ac_cpp_err=yes
13572 fi
13573 if test -z "$ac_cpp_err"; then
13574   ac_header_preproc=yes
13575 else
13576   echo "$as_me: failed program was:" >&5
13577   cat conftest.$ac_ext >&5
13578   ac_header_preproc=no
13579 fi
13580 rm -f conftest.err conftest.$ac_ext
13581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13582 echo "${ECHO_T}$ac_header_preproc" >&6
13583
13584 # So?  What about this header?
13585 case $ac_header_compiler:$ac_header_preproc in
13586   yes:no )
13587     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13588 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13589     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13590 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13591   no:yes )
13592     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13596     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13597 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13598 esac
13599 echo "$as_me:$LINENO: checking for pthread.h" >&5
13600 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13601 if test "${ac_cv_header_pthread_h+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604   ac_cv_header_pthread_h=$ac_header_preproc
13605 fi
13606 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13607 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13608
13609 fi
13610 if test $ac_cv_header_pthread_h = yes; then
13611   :
13612 else
13613   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13614 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13615    { (exit 1); exit 1; }; }
13616 fi
13617
13618
13619
13620 # Check for *_r functions
13621 _CFLAGS="$CFLAGS"
13622 _LIBS="$LIBS"
13623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13624 LIBS="$LIBS $PTHREAD_LIBS"
13625
13626
13627
13628 for ac_func in strerror_r getpwuid_r gethostbyname_r
13629 do
13630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13631 echo "$as_me:$LINENO: checking for $ac_func" >&5
13632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13633 if eval "test \"\${$as_ac_var+set}\" = set"; then
13634   echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636   cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13639 /* System header to define __stub macros and hopefully few prototypes,
13640     which can conflict with char $ac_func (); below.  */
13641 #include <assert.h>
13642 /* Override any gcc2 internal prototype to avoid an error.  */
13643 #ifdef __cplusplus
13644 extern "C"
13645 #endif
13646 /* We use char because int might match the return type of a gcc2
13647    builtin and then its argument prototype would still apply.  */
13648 char $ac_func ();
13649 char (*f) ();
13650
13651 #ifdef F77_DUMMY_MAIN
13652 #  ifdef __cplusplus
13653      extern "C"
13654 #  endif
13655    int F77_DUMMY_MAIN() { return 1; }
13656 #endif
13657 int
13658 main ()
13659 {
13660 /* The GNU C library defines this for functions which it implements
13661     to always fail with ENOSYS.  Some functions are actually named
13662     something starting with __ and the normal name is an alias.  */
13663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13664 choke me
13665 #else
13666 f = $ac_func;
13667 #endif
13668
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675   (eval $ac_link) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } &&
13679          { ac_try='test -s conftest$ac_exeext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   eval "$as_ac_var=yes"
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 eval "$as_ac_var=no"
13690 fi
13691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13692 fi
13693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13695 if test `eval echo '${'$as_ac_var'}'` = yes; then
13696   cat >>confdefs.h <<_ACEOF
13697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13698 _ACEOF
13699
13700 fi
13701 done
13702
13703 CFLAGS="$_CFLAGS"
13704 LIBS="$_LIBS"
13705
13706 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13707 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13708 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 #include <sys/types.h>
13715 #include <pwd.h>
13716 #ifdef F77_DUMMY_MAIN
13717 #  ifdef __cplusplus
13718      extern "C"
13719 #  endif
13720    int F77_DUMMY_MAIN() { return 1; }
13721 #endif
13722 int
13723 main ()
13724 {
13725 uid_t uid;
13726 struct passwd *space;
13727 char *buf;
13728 size_t bufsize;
13729 struct passwd **result;
13730 getpwuid_r(uid, space, buf, bufsize, result);
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 rm -f conftest.$ac_objext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737   (eval $ac_compile) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); } &&
13741          { ac_try='test -s conftest.$ac_objext'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; }; then
13747   pgac_func_getpwuid_r_5arg=yes
13748 else
13749   echo "$as_me: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 pgac_func_getpwuid_r_5arg=no
13752 fi
13753 rm -f conftest.$ac_objext conftest.$ac_ext
13754 fi
13755 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13756 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13757 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13758
13759 cat >>confdefs.h <<\_ACEOF
13760 #define GETPWUID_R_5ARG
13761 _ACEOF
13762
13763 fi
13764
13765
13766 else
13767 # do not use values from template file
13768 PTHREAD_CFLAGS=
13769 PTHREAD_LIBS=
13770 fi
13771
13772
13773
13774
13775
13776 # This test makes sure that run tests work at all.  Sometimes a shared
13777 # library is found by the linker, but the runtime linker can't find it.
13778 # This check should come after all modifications of compiler or linker
13779 # variables, and before any other run tests.
13780 echo "$as_me:$LINENO: checking test program" >&5
13781 echo $ECHO_N "checking test program... $ECHO_C" >&6
13782 if test "$cross_compiling" = yes; then
13783   echo "$as_me:$LINENO: result: cross-compiling" >&5
13784 echo "${ECHO_T}cross-compiling" >&6
13785 else
13786   cat >conftest.$ac_ext <<_ACEOF
13787 #line $LINENO "configure"
13788 #include "confdefs.h"
13789 int main() { return 0; }
13790 _ACEOF
13791 rm -f conftest$ac_exeext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793   (eval $ac_link) 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }; then
13802   echo "$as_me:$LINENO: result: ok" >&5
13803 echo "${ECHO_T}ok" >&6
13804 else
13805   echo "$as_me: program exited with status $ac_status" >&5
13806 echo "$as_me: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13808 ( exit $ac_status )
13809 echo "$as_me:$LINENO: result: failed" >&5
13810 echo "${ECHO_T}failed" >&6
13811 { { echo "$as_me:$LINENO: error:
13812 *** Could not execute a simple test program.  This may be a problem
13813 *** related to locating shared libraries.  Check the file 'config.log'
13814 *** for the exact reason." >&5
13815 echo "$as_me: error:
13816 *** Could not execute a simple test program.  This may be a problem
13817 *** related to locating shared libraries.  Check the file 'config.log'
13818 *** for the exact reason." >&2;}
13819    { (exit 1); exit 1; }; }
13820 fi
13821 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13822 fi
13823
13824
13825
13826 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13827 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13828 if test "${pgac_cv_type_long_int_64+set}" = set; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   if test "$cross_compiling" = yes; then
13832   # If cross-compiling, check the size reported by the compiler and
13833 # trust that the arithmetic works.
13834 cat >conftest.$ac_ext <<_ACEOF
13835 #line $LINENO "configure"
13836 #include "confdefs.h"
13837
13838 #ifdef F77_DUMMY_MAIN
13839 #  ifdef __cplusplus
13840      extern "C"
13841 #  endif
13842    int F77_DUMMY_MAIN() { return 1; }
13843 #endif
13844 int
13845 main ()
13846 {
13847 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13848 test_array [0] = 0
13849
13850   ;
13851   return 0;
13852 }
13853 _ACEOF
13854 rm -f conftest.$ac_objext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13856   (eval $ac_compile) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); } &&
13860          { ac_try='test -s conftest.$ac_objext'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866   pgac_cv_type_long_int_64=yes
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13870 pgac_cv_type_long_int_64=no
13871 fi
13872 rm -f conftest.$ac_objext conftest.$ac_ext
13873 else
13874   cat >conftest.$ac_ext <<_ACEOF
13875 #line $LINENO "configure"
13876 #include "confdefs.h"
13877 typedef long int int64;
13878
13879 /*
13880  * These are globals to discourage the compiler from folding all the
13881  * arithmetic tests down to compile-time constants.
13882  */
13883 int64 a = 20000001;
13884 int64 b = 40000005;
13885
13886 int does_int64_work()
13887 {
13888   int64 c,d;
13889
13890   if (sizeof(int64) != 8)
13891     return 0;                   /* definitely not the right size */
13892
13893   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13894   c = a * b;
13895   d = (c + b) / b;
13896   if (d != a+1)
13897     return 0;
13898   return 1;
13899 }
13900 main() {
13901   exit(! does_int64_work());
13902 }
13903 _ACEOF
13904 rm -f conftest$ac_exeext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13906   (eval $ac_link) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911   (eval $ac_try) 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); }; }; then
13915   pgac_cv_type_long_int_64=yes
13916 else
13917   echo "$as_me: program exited with status $ac_status" >&5
13918 echo "$as_me: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13920 ( exit $ac_status )
13921 pgac_cv_type_long_int_64=no
13922 fi
13923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924 fi
13925 fi
13926 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13927 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13928
13929 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13930 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13931
13932 cat >>confdefs.h <<\_ACEOF
13933 #define HAVE_LONG_INT_64
13934 _ACEOF
13935
13936 fi
13937
13938
13939 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13940   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13941 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13942 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13943   echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945   if test "$cross_compiling" = yes; then
13946   # If cross-compiling, check the size reported by the compiler and
13947 # trust that the arithmetic works.
13948 cat >conftest.$ac_ext <<_ACEOF
13949 #line $LINENO "configure"
13950 #include "confdefs.h"
13951
13952 #ifdef F77_DUMMY_MAIN
13953 #  ifdef __cplusplus
13954      extern "C"
13955 #  endif
13956    int F77_DUMMY_MAIN() { return 1; }
13957 #endif
13958 int
13959 main ()
13960 {
13961 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13962 test_array [0] = 0
13963
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970   (eval $ac_compile) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } &&
13974          { ac_try='test -s conftest.$ac_objext'
13975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976   (eval $ac_try) 2>&5
13977   ac_status=$?
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); }; }; then
13980   pgac_cv_type_long_long_int_64=yes
13981 else
13982   echo "$as_me: failed program was:" >&5
13983 cat conftest.$ac_ext >&5
13984 pgac_cv_type_long_long_int_64=no
13985 fi
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13987 else
13988   cat >conftest.$ac_ext <<_ACEOF
13989 #line $LINENO "configure"
13990 #include "confdefs.h"
13991 typedef long long int int64;
13992
13993 /*
13994  * These are globals to discourage the compiler from folding all the
13995  * arithmetic tests down to compile-time constants.
13996  */
13997 int64 a = 20000001;
13998 int64 b = 40000005;
13999
14000 int does_int64_work()
14001 {
14002   int64 c,d;
14003
14004   if (sizeof(int64) != 8)
14005     return 0;                   /* definitely not the right size */
14006
14007   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14008   c = a * b;
14009   d = (c + b) / b;
14010   if (d != a+1)
14011     return 0;
14012   return 1;
14013 }
14014 main() {
14015   exit(! does_int64_work());
14016 }
14017 _ACEOF
14018 rm -f conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020   (eval $ac_link) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029   pgac_cv_type_long_long_int_64=yes
14030 else
14031   echo "$as_me: program exited with status $ac_status" >&5
14032 echo "$as_me: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
14034 ( exit $ac_status )
14035 pgac_cv_type_long_long_int_64=no
14036 fi
14037 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14038 fi
14039 fi
14040 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14041 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14042
14043 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14044 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_LONG_LONG_INT_64
14048 _ACEOF
14049
14050 fi
14051
14052 fi
14053
14054
14055
14056 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14057   cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 #include "confdefs.h"
14060
14061 #define INT64CONST(x)  x##LL
14062 long long int foo = INT64CONST(0x1234567890123456);
14063
14064 #ifdef F77_DUMMY_MAIN
14065 #  ifdef __cplusplus
14066      extern "C"
14067 #  endif
14068    int F77_DUMMY_MAIN() { return 1; }
14069 #endif
14070 int
14071 main ()
14072 {
14073
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080   (eval $ac_compile) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -s conftest.$ac_objext'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090
14091 cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_LL_CONSTANTS 1
14093 _ACEOF
14094
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 cat conftest.$ac_ext >&5
14098 fi
14099 rm -f conftest.$ac_objext conftest.$ac_ext
14100 fi
14101
14102
14103 # If we found "long int" is 64 bits, assume snprintf handles it.  If
14104 # we found we need to use "long long int", better check.  We cope with
14105 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
14106 # work, fall back to our own snprintf emulation (which we know uses %lld).
14107
14108 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14109   if test $pgac_need_repl_snprintf = no; then
14110     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14111 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14112 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   for pgac_format in '%lld' '%qd' '%I64d'; do
14116 if test "$cross_compiling" = yes; then
14117   pgac_cv_snprintf_long_long_int_format=cross; break
14118 else
14119   cat >conftest.$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14121 #include "confdefs.h"
14122 #include <stdio.h>
14123 typedef long long int int64;
14124 #define INT64_FORMAT "$pgac_format"
14125
14126 int64 a = 20000001;
14127 int64 b = 40000005;
14128
14129 int does_int64_snprintf_work()
14130 {
14131   int64 c;
14132   char buf[100];
14133
14134   if (sizeof(int64) != 8)
14135     return 0;                   /* doesn't look like the right size */
14136
14137   c = a * b;
14138   snprintf(buf, 100, INT64_FORMAT, c);
14139   if (strcmp(buf, "800000140000005") != 0)
14140     return 0;                   /* either multiply or snprintf is busted */
14141   return 1;
14142 }
14143 main() {
14144   exit(! does_int64_snprintf_work());
14145 }
14146 _ACEOF
14147 rm -f conftest$ac_exeext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14149   (eval $ac_link) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14159 else
14160   echo "$as_me: program exited with status $ac_status" >&5
14161 echo "$as_me: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 fi
14164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14165 fi
14166 done
14167 fi
14168
14169 LONG_LONG_INT_FORMAT=''
14170
14171 case $pgac_cv_snprintf_long_long_int_format in
14172   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14173 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14174   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14175 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14176          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14177   *)     echo "$as_me:$LINENO: result: none" >&5
14178 echo "${ECHO_T}none" >&6;;
14179 esac
14180     if test "$LONG_LONG_INT_FORMAT" = ""; then
14181       # Force usage of our own snprintf, since system snprintf is broken
14182       pgac_need_repl_snprintf=yes
14183       LONG_LONG_INT_FORMAT='%lld'
14184     fi
14185   else
14186     # Here if we previously decided we needed to use our own snprintf
14187     LONG_LONG_INT_FORMAT='%lld'
14188   fi
14189   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14190   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14191   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14192 else
14193   # Here if we are not using 'long long int' at all
14194   INT64_FORMAT='"%ld"'
14195   UINT64_FORMAT='"%lu"'
14196 fi
14197
14198
14199 cat >>confdefs.h <<_ACEOF
14200 #define INT64_FORMAT $INT64_FORMAT
14201 _ACEOF
14202
14203
14204
14205 cat >>confdefs.h <<_ACEOF
14206 #define UINT64_FORMAT $UINT64_FORMAT
14207 _ACEOF
14208
14209
14210 if test $pgac_need_repl_snprintf = yes; then
14211   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14212 fi
14213
14214 # Need a #define for the size of Datum (unsigned long)
14215 echo "$as_me:$LINENO: checking for unsigned long" >&5
14216 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14217 if test "${ac_cv_type_unsigned_long+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   cat >conftest.$ac_ext <<_ACEOF
14221 #line $LINENO "configure"
14222 #include "confdefs.h"
14223 $ac_includes_default
14224 #ifdef F77_DUMMY_MAIN
14225 #  ifdef __cplusplus
14226      extern "C"
14227 #  endif
14228    int F77_DUMMY_MAIN() { return 1; }
14229 #endif
14230 int
14231 main ()
14232 {
14233 if ((unsigned long *) 0)
14234   return 0;
14235 if (sizeof (unsigned long))
14236   return 0;
14237   ;
14238   return 0;
14239 }
14240 _ACEOF
14241 rm -f conftest.$ac_objext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243   (eval $ac_compile) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); } &&
14247          { ac_try='test -s conftest.$ac_objext'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; }; then
14253   ac_cv_type_unsigned_long=yes
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 ac_cv_type_unsigned_long=no
14258 fi
14259 rm -f conftest.$ac_objext conftest.$ac_ext
14260 fi
14261 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14262 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14263
14264 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14265 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14266 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269   if test "$ac_cv_type_unsigned_long" = yes; then
14270   # The cast to unsigned long works around a bug in the HP C Compiler
14271   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14272   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14273   # This bug is HP SR number 8606223364.
14274   if test "$cross_compiling" = yes; then
14275   # Depending upon the size, compute the lo and hi bounds.
14276 cat >conftest.$ac_ext <<_ACEOF
14277 #line $LINENO "configure"
14278 #include "confdefs.h"
14279 $ac_includes_default
14280 #ifdef F77_DUMMY_MAIN
14281 #  ifdef __cplusplus
14282      extern "C"
14283 #  endif
14284    int F77_DUMMY_MAIN() { return 1; }
14285 #endif
14286 int
14287 main ()
14288 {
14289 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14290 test_array [0] = 0
14291
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14298   (eval $ac_compile) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } &&
14302          { ac_try='test -s conftest.$ac_objext'
14303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304   (eval $ac_try) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); }; }; then
14308   ac_lo=0 ac_mid=0
14309   while :; do
14310     cat >conftest.$ac_ext <<_ACEOF
14311 #line $LINENO "configure"
14312 #include "confdefs.h"
14313 $ac_includes_default
14314 #ifdef F77_DUMMY_MAIN
14315 #  ifdef __cplusplus
14316      extern "C"
14317 #  endif
14318    int F77_DUMMY_MAIN() { return 1; }
14319 #endif
14320 int
14321 main ()
14322 {
14323 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14324 test_array [0] = 0
14325
14326   ;
14327   return 0;
14328 }
14329 _ACEOF
14330 rm -f conftest.$ac_objext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332   (eval $ac_compile) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } &&
14336          { ac_try='test -s conftest.$ac_objext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   ac_hi=$ac_mid; break
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 cat conftest.$ac_ext >&5
14346 ac_lo=`expr $ac_mid + 1`
14347                     if test $ac_lo -le $ac_mid; then
14348                       ac_lo= ac_hi=
14349                       break
14350                     fi
14351                     ac_mid=`expr 2 '*' $ac_mid + 1`
14352 fi
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354   done
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 cat >conftest.$ac_ext <<_ACEOF
14359 #line $LINENO "configure"
14360 #include "confdefs.h"
14361 $ac_includes_default
14362 #ifdef F77_DUMMY_MAIN
14363 #  ifdef __cplusplus
14364      extern "C"
14365 #  endif
14366    int F77_DUMMY_MAIN() { return 1; }
14367 #endif
14368 int
14369 main ()
14370 {
14371 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14372 test_array [0] = 0
14373
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380   (eval $ac_compile) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -s conftest.$ac_objext'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; }; then
14390   ac_hi=-1 ac_mid=-1
14391   while :; do
14392     cat >conftest.$ac_ext <<_ACEOF
14393 #line $LINENO "configure"
14394 #include "confdefs.h"
14395 $ac_includes_default
14396 #ifdef F77_DUMMY_MAIN
14397 #  ifdef __cplusplus
14398      extern "C"
14399 #  endif
14400    int F77_DUMMY_MAIN() { return 1; }
14401 #endif
14402 int
14403 main ()
14404 {
14405 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14406 test_array [0] = 0
14407
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414   (eval $ac_compile) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -s conftest.$ac_objext'
14419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420   (eval $ac_try) 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; }; then
14424   ac_lo=$ac_mid; break
14425 else
14426   echo "$as_me: failed program was:" >&5
14427 cat conftest.$ac_ext >&5
14428 ac_hi=`expr '(' $ac_mid ')' - 1`
14429                        if test $ac_mid -le $ac_hi; then
14430                          ac_lo= ac_hi=
14431                          break
14432                        fi
14433                        ac_mid=`expr 2 '*' $ac_mid`
14434 fi
14435 rm -f conftest.$ac_objext conftest.$ac_ext
14436   done
14437 else
14438   echo "$as_me: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14440 ac_lo= ac_hi=
14441 fi
14442 rm -f conftest.$ac_objext conftest.$ac_ext
14443 fi
14444 rm -f conftest.$ac_objext conftest.$ac_ext
14445 # Binary search between lo and hi bounds.
14446 while test "x$ac_lo" != "x$ac_hi"; do
14447   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14448   cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 #ifdef F77_DUMMY_MAIN
14453 #  ifdef __cplusplus
14454      extern "C"
14455 #  endif
14456    int F77_DUMMY_MAIN() { return 1; }
14457 #endif
14458 int
14459 main ()
14460 {
14461 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14462 test_array [0] = 0
14463
14464   ;
14465   return 0;
14466 }
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470   (eval $ac_compile) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -s conftest.$ac_objext'
14475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476   (eval $ac_try) 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); }; }; then
14480   ac_hi=$ac_mid
14481 else
14482   echo "$as_me: failed program was:" >&5
14483 cat conftest.$ac_ext >&5
14484 ac_lo=`expr '(' $ac_mid ')' + 1`
14485 fi
14486 rm -f conftest.$ac_objext conftest.$ac_ext
14487 done
14488 case $ac_lo in
14489 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14491 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14492    { (exit 1); exit 1; }; } ;;
14493 esac
14494 else
14495   if test "$cross_compiling" = yes; then
14496   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14497 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14498    { (exit 1); exit 1; }; }
14499 else
14500   cat >conftest.$ac_ext <<_ACEOF
14501 #line $LINENO "configure"
14502 #include "confdefs.h"
14503 $ac_includes_default
14504 long longval () { return (long) (sizeof (unsigned long)); }
14505 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14506 #include <stdio.h>
14507 #include <stdlib.h>
14508 #ifdef F77_DUMMY_MAIN
14509 #  ifdef __cplusplus
14510      extern "C"
14511 #  endif
14512    int F77_DUMMY_MAIN() { return 1; }
14513 #endif
14514 int
14515 main ()
14516 {
14517
14518   FILE *f = fopen ("conftest.val", "w");
14519   if (! f)
14520     exit (1);
14521   if (((long) (sizeof (unsigned long))) < 0)
14522     {
14523       long i = longval ();
14524       if (i != ((long) (sizeof (unsigned long))))
14525         exit (1);
14526       fprintf (f, "%ld\n", i);
14527     }
14528   else
14529     {
14530       unsigned long i = ulongval ();
14531       if (i != ((long) (sizeof (unsigned long))))
14532         exit (1);
14533       fprintf (f, "%lu\n", i);
14534     }
14535   exit (ferror (f) || fclose (f) != 0);
14536
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543   (eval $ac_link) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14553 else
14554   echo "$as_me: program exited with status $ac_status" >&5
14555 echo "$as_me: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14557 ( exit $ac_status )
14558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14559 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14560    { (exit 1); exit 1; }; }
14561 fi
14562 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14563 fi
14564 fi
14565 rm -f conftest.val
14566 else
14567   ac_cv_sizeof_unsigned_long=0
14568 fi
14569 fi
14570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14571 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14572 cat >>confdefs.h <<_ACEOF
14573 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14574 _ACEOF
14575
14576
14577
14578 # Determine memory alignment requirements for the basic C data types.
14579
14580 echo "$as_me:$LINENO: checking for short" >&5
14581 echo $ECHO_N "checking for short... $ECHO_C" >&6
14582 if test "${ac_cv_type_short+set}" = set; then
14583   echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585   cat >conftest.$ac_ext <<_ACEOF
14586 #line $LINENO "configure"
14587 #include "confdefs.h"
14588 $ac_includes_default
14589 #ifdef F77_DUMMY_MAIN
14590 #  ifdef __cplusplus
14591      extern "C"
14592 #  endif
14593    int F77_DUMMY_MAIN() { return 1; }
14594 #endif
14595 int
14596 main ()
14597 {
14598 if ((short *) 0)
14599   return 0;
14600 if (sizeof (short))
14601   return 0;
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608   (eval $ac_compile) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } &&
14612          { ac_try='test -s conftest.$ac_objext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618   ac_cv_type_short=yes
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14622 ac_cv_type_short=no
14623 fi
14624 rm -f conftest.$ac_objext conftest.$ac_ext
14625 fi
14626 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14627 echo "${ECHO_T}$ac_cv_type_short" >&6
14628
14629 echo "$as_me:$LINENO: checking alignment of short" >&5
14630 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14631 if test "${pgac_cv_alignof_short+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   if test "$ac_cv_type_short" = yes; then
14635   if test "$cross_compiling" = yes; then
14636   # Depending upon the size, compute the lo and hi bounds.
14637 cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14640 $ac_includes_default
14641 struct { char filler; short field; } pgac_struct;
14642 #ifdef F77_DUMMY_MAIN
14643 #  ifdef __cplusplus
14644      extern "C"
14645 #  endif
14646    int F77_DUMMY_MAIN() { return 1; }
14647 #endif
14648 int
14649 main ()
14650 {
14651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14652 test_array [0] = 0
14653
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660   (eval $ac_compile) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ac_lo=0 ac_mid=0
14671   while :; do
14672     cat >conftest.$ac_ext <<_ACEOF
14673 #line $LINENO "configure"
14674 #include "confdefs.h"
14675 $ac_includes_default
14676 struct { char filler; short field; } pgac_struct;
14677 #ifdef F77_DUMMY_MAIN
14678 #  ifdef __cplusplus
14679      extern "C"
14680 #  endif
14681    int F77_DUMMY_MAIN() { return 1; }
14682 #endif
14683 int
14684 main ()
14685 {
14686 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14687 test_array [0] = 0
14688
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695   (eval $ac_compile) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); } &&
14699          { ac_try='test -s conftest.$ac_objext'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; }; then
14705   ac_hi=$ac_mid; break
14706 else
14707   echo "$as_me: failed program was:" >&5
14708 cat conftest.$ac_ext >&5
14709 ac_lo=`expr $ac_mid + 1`
14710                     if test $ac_lo -le $ac_mid; then
14711                       ac_lo= ac_hi=
14712                       break
14713                     fi
14714                     ac_mid=`expr 2 '*' $ac_mid + 1`
14715 fi
14716 rm -f conftest.$ac_objext conftest.$ac_ext
14717   done
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 cat conftest.$ac_ext >&5
14721 cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14723 #include "confdefs.h"
14724 $ac_includes_default
14725 struct { char filler; short field; } pgac_struct;
14726 #ifdef F77_DUMMY_MAIN
14727 #  ifdef __cplusplus
14728      extern "C"
14729 #  endif
14730    int F77_DUMMY_MAIN() { return 1; }
14731 #endif
14732 int
14733 main ()
14734 {
14735 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14736 test_array [0] = 0
14737
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744   (eval $ac_compile) 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } &&
14748          { ac_try='test -s conftest.$ac_objext'
14749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750   (eval $ac_try) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; }; then
14754   ac_hi=-1 ac_mid=-1
14755   while :; do
14756     cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759 $ac_includes_default
14760 struct { char filler; short field; } pgac_struct;
14761 #ifdef F77_DUMMY_MAIN
14762 #  ifdef __cplusplus
14763      extern "C"
14764 #  endif
14765    int F77_DUMMY_MAIN() { return 1; }
14766 #endif
14767 int
14768 main ()
14769 {
14770 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14771 test_array [0] = 0
14772
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779   (eval $ac_compile) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -s conftest.$ac_objext'
14784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785   (eval $ac_try) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); }; }; then
14789   ac_lo=$ac_mid; break
14790 else
14791   echo "$as_me: failed program was:" >&5
14792 cat conftest.$ac_ext >&5
14793 ac_hi=`expr '(' $ac_mid ')' - 1`
14794                        if test $ac_mid -le $ac_hi; then
14795                          ac_lo= ac_hi=
14796                          break
14797                        fi
14798                        ac_mid=`expr 2 '*' $ac_mid`
14799 fi
14800 rm -f conftest.$ac_objext conftest.$ac_ext
14801   done
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 ac_lo= ac_hi=
14806 fi
14807 rm -f conftest.$ac_objext conftest.$ac_ext
14808 fi
14809 rm -f conftest.$ac_objext conftest.$ac_ext
14810 # Binary search between lo and hi bounds.
14811 while test "x$ac_lo" != "x$ac_hi"; do
14812   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14813   cat >conftest.$ac_ext <<_ACEOF
14814 #line $LINENO "configure"
14815 #include "confdefs.h"
14816 $ac_includes_default
14817 struct { char filler; short field; } pgac_struct;
14818 #ifdef F77_DUMMY_MAIN
14819 #  ifdef __cplusplus
14820      extern "C"
14821 #  endif
14822    int F77_DUMMY_MAIN() { return 1; }
14823 #endif
14824 int
14825 main ()
14826 {
14827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14828 test_array [0] = 0
14829
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836   (eval $ac_compile) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_hi=$ac_mid
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 ac_lo=`expr '(' $ac_mid ')' + 1`
14851 fi
14852 rm -f conftest.$ac_objext conftest.$ac_ext
14853 done
14854 case $ac_lo in
14855 ?*) pgac_cv_alignof_short=$ac_lo;;
14856 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14857 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14858    { (exit 1); exit 1; }; } ;;
14859 esac
14860 else
14861   if test "$cross_compiling" = yes; then
14862   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14863 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14864    { (exit 1); exit 1; }; }
14865 else
14866   cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14868 #include "confdefs.h"
14869 $ac_includes_default
14870 struct { char filler; short field; } pgac_struct;
14871 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14872 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14873 #include <stdio.h>
14874 #include <stdlib.h>
14875 #ifdef F77_DUMMY_MAIN
14876 #  ifdef __cplusplus
14877      extern "C"
14878 #  endif
14879    int F77_DUMMY_MAIN() { return 1; }
14880 #endif
14881 int
14882 main ()
14883 {
14884
14885   FILE *f = fopen ("conftest.val", "w");
14886   if (! f)
14887     exit (1);
14888   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14889     {
14890       long i = longval ();
14891       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14892         exit (1);
14893       fprintf (f, "%ld\n", i);
14894     }
14895   else
14896     {
14897       unsigned long i = ulongval ();
14898       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14899         exit (1);
14900       fprintf (f, "%lu\n", i);
14901     }
14902   exit (ferror (f) || fclose (f) != 0);
14903
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910   (eval $ac_link) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915   (eval $ac_try) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; }; then
14919   pgac_cv_alignof_short=`cat conftest.val`
14920 else
14921   echo "$as_me: program exited with status $ac_status" >&5
14922 echo "$as_me: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 ( exit $ac_status )
14925 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14926 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14927    { (exit 1); exit 1; }; }
14928 fi
14929 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 fi
14931 fi
14932 rm -f conftest.val
14933 else
14934   pgac_cv_alignof_short=0
14935 fi
14936 fi
14937 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14938 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14939 cat >>confdefs.h <<_ACEOF
14940 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14941 _ACEOF
14942
14943
14944 echo "$as_me:$LINENO: checking for int" >&5
14945 echo $ECHO_N "checking for int... $ECHO_C" >&6
14946 if test "${ac_cv_type_int+set}" = set; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949   cat >conftest.$ac_ext <<_ACEOF
14950 #line $LINENO "configure"
14951 #include "confdefs.h"
14952 $ac_includes_default
14953 #ifdef F77_DUMMY_MAIN
14954 #  ifdef __cplusplus
14955      extern "C"
14956 #  endif
14957    int F77_DUMMY_MAIN() { return 1; }
14958 #endif
14959 int
14960 main ()
14961 {
14962 if ((int *) 0)
14963   return 0;
14964 if (sizeof (int))
14965   return 0;
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972   (eval $ac_compile) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } &&
14976          { ac_try='test -s conftest.$ac_objext'
14977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978   (eval $ac_try) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; }; then
14982   ac_cv_type_int=yes
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14986 ac_cv_type_int=no
14987 fi
14988 rm -f conftest.$ac_objext conftest.$ac_ext
14989 fi
14990 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14991 echo "${ECHO_T}$ac_cv_type_int" >&6
14992
14993 echo "$as_me:$LINENO: checking alignment of int" >&5
14994 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14995 if test "${pgac_cv_alignof_int+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   if test "$ac_cv_type_int" = yes; then
14999   if test "$cross_compiling" = yes; then
15000   # Depending upon the size, compute the lo and hi bounds.
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 #include "confdefs.h"
15004 $ac_includes_default
15005 struct { char filler; int field; } pgac_struct;
15006 #ifdef F77_DUMMY_MAIN
15007 #  ifdef __cplusplus
15008      extern "C"
15009 #  endif
15010    int F77_DUMMY_MAIN() { return 1; }
15011 #endif
15012 int
15013 main ()
15014 {
15015 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15016 test_array [0] = 0
15017
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024   (eval $ac_compile) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -s conftest.$ac_objext'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; }; then
15034   ac_lo=0 ac_mid=0
15035   while :; do
15036     cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15038 #include "confdefs.h"
15039 $ac_includes_default
15040 struct { char filler; int field; } pgac_struct;
15041 #ifdef F77_DUMMY_MAIN
15042 #  ifdef __cplusplus
15043      extern "C"
15044 #  endif
15045    int F77_DUMMY_MAIN() { return 1; }
15046 #endif
15047 int
15048 main ()
15049 {
15050 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15051 test_array [0] = 0
15052
15053   ;
15054   return 0;
15055 }
15056 _ACEOF
15057 rm -f conftest.$ac_objext
15058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15059   (eval $ac_compile) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } &&
15063          { ac_try='test -s conftest.$ac_objext'
15064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065   (eval $ac_try) 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); }; }; then
15069   ac_hi=$ac_mid; break
15070 else
15071   echo "$as_me: failed program was:" >&5
15072 cat conftest.$ac_ext >&5
15073 ac_lo=`expr $ac_mid + 1`
15074                     if test $ac_lo -le $ac_mid; then
15075                       ac_lo= ac_hi=
15076                       break
15077                     fi
15078                     ac_mid=`expr 2 '*' $ac_mid + 1`
15079 fi
15080 rm -f conftest.$ac_objext conftest.$ac_ext
15081   done
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15085 cat >conftest.$ac_ext <<_ACEOF
15086 #line $LINENO "configure"
15087 #include "confdefs.h"
15088 $ac_includes_default
15089 struct { char filler; int field; } pgac_struct;
15090 #ifdef F77_DUMMY_MAIN
15091 #  ifdef __cplusplus
15092      extern "C"
15093 #  endif
15094    int F77_DUMMY_MAIN() { return 1; }
15095 #endif
15096 int
15097 main ()
15098 {
15099 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15100 test_array [0] = 0
15101
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108   (eval $ac_compile) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } &&
15112          { ac_try='test -s conftest.$ac_objext'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; }; then
15118   ac_hi=-1 ac_mid=-1
15119   while :; do
15120     cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 #include "confdefs.h"
15123 $ac_includes_default
15124 struct { char filler; int field; } pgac_struct;
15125 #ifdef F77_DUMMY_MAIN
15126 #  ifdef __cplusplus
15127      extern "C"
15128 #  endif
15129    int F77_DUMMY_MAIN() { return 1; }
15130 #endif
15131 int
15132 main ()
15133 {
15134 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15135 test_array [0] = 0
15136
15137   ;
15138   return 0;
15139 }
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143   (eval $ac_compile) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -s conftest.$ac_objext'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; }; then
15153   ac_lo=$ac_mid; break
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15157 ac_hi=`expr '(' $ac_mid ')' - 1`
15158                        if test $ac_mid -le $ac_hi; then
15159                          ac_lo= ac_hi=
15160                          break
15161                        fi
15162                        ac_mid=`expr 2 '*' $ac_mid`
15163 fi
15164 rm -f conftest.$ac_objext conftest.$ac_ext
15165   done
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15169 ac_lo= ac_hi=
15170 fi
15171 rm -f conftest.$ac_objext conftest.$ac_ext
15172 fi
15173 rm -f conftest.$ac_objext conftest.$ac_ext
15174 # Binary search between lo and hi bounds.
15175 while test "x$ac_lo" != "x$ac_hi"; do
15176   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15177   cat >conftest.$ac_ext <<_ACEOF
15178 #line $LINENO "configure"
15179 #include "confdefs.h"
15180 $ac_includes_default
15181 struct { char filler; int field; } pgac_struct;
15182 #ifdef F77_DUMMY_MAIN
15183 #  ifdef __cplusplus
15184      extern "C"
15185 #  endif
15186    int F77_DUMMY_MAIN() { return 1; }
15187 #endif
15188 int
15189 main ()
15190 {
15191 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15192 test_array [0] = 0
15193
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 rm -f conftest.$ac_objext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200   (eval $ac_compile) 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); } &&
15204          { ac_try='test -s conftest.$ac_objext'
15205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206   (eval $ac_try) 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_hi=$ac_mid
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 cat conftest.$ac_ext >&5
15214 ac_lo=`expr '(' $ac_mid ')' + 1`
15215 fi
15216 rm -f conftest.$ac_objext conftest.$ac_ext
15217 done
15218 case $ac_lo in
15219 ?*) pgac_cv_alignof_int=$ac_lo;;
15220 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15221 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15222    { (exit 1); exit 1; }; } ;;
15223 esac
15224 else
15225   if test "$cross_compiling" = yes; then
15226   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15227 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15228    { (exit 1); exit 1; }; }
15229 else
15230   cat >conftest.$ac_ext <<_ACEOF
15231 #line $LINENO "configure"
15232 #include "confdefs.h"
15233 $ac_includes_default
15234 struct { char filler; int field; } pgac_struct;
15235 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15236 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15237 #include <stdio.h>
15238 #include <stdlib.h>
15239 #ifdef F77_DUMMY_MAIN
15240 #  ifdef __cplusplus
15241      extern "C"
15242 #  endif
15243    int F77_DUMMY_MAIN() { return 1; }
15244 #endif
15245 int
15246 main ()
15247 {
15248
15249   FILE *f = fopen ("conftest.val", "w");
15250   if (! f)
15251     exit (1);
15252   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15253     {
15254       long i = longval ();
15255       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15256         exit (1);
15257       fprintf (f, "%ld\n", i);
15258     }
15259   else
15260     {
15261       unsigned long i = ulongval ();
15262       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15263         exit (1);
15264       fprintf (f, "%lu\n", i);
15265     }
15266   exit (ferror (f) || fclose (f) != 0);
15267
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274   (eval $ac_link) 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279   (eval $ac_try) 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); }; }; then
15283   pgac_cv_alignof_int=`cat conftest.val`
15284 else
15285   echo "$as_me: program exited with status $ac_status" >&5
15286 echo "$as_me: failed program was:" >&5
15287 cat conftest.$ac_ext >&5
15288 ( exit $ac_status )
15289 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15290 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15291    { (exit 1); exit 1; }; }
15292 fi
15293 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 fi
15296 rm -f conftest.val
15297 else
15298   pgac_cv_alignof_int=0
15299 fi
15300 fi
15301 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15302 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15303 cat >>confdefs.h <<_ACEOF
15304 #define ALIGNOF_INT $pgac_cv_alignof_int
15305 _ACEOF
15306
15307
15308 echo "$as_me:$LINENO: checking for long" >&5
15309 echo $ECHO_N "checking for long... $ECHO_C" >&6
15310 if test "${ac_cv_type_long+set}" = set; then
15311   echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313   cat >conftest.$ac_ext <<_ACEOF
15314 #line $LINENO "configure"
15315 #include "confdefs.h"
15316 $ac_includes_default
15317 #ifdef F77_DUMMY_MAIN
15318 #  ifdef __cplusplus
15319      extern "C"
15320 #  endif
15321    int F77_DUMMY_MAIN() { return 1; }
15322 #endif
15323 int
15324 main ()
15325 {
15326 if ((long *) 0)
15327   return 0;
15328 if (sizeof (long))
15329   return 0;
15330   ;
15331   return 0;
15332 }
15333 _ACEOF
15334 rm -f conftest.$ac_objext
15335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15336   (eval $ac_compile) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); } &&
15340          { ac_try='test -s conftest.$ac_objext'
15341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342   (eval $ac_try) 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); }; }; then
15346   ac_cv_type_long=yes
15347 else
15348   echo "$as_me: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15350 ac_cv_type_long=no
15351 fi
15352 rm -f conftest.$ac_objext conftest.$ac_ext
15353 fi
15354 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15355 echo "${ECHO_T}$ac_cv_type_long" >&6
15356
15357 echo "$as_me:$LINENO: checking alignment of long" >&5
15358 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15359 if test "${pgac_cv_alignof_long+set}" = set; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362   if test "$ac_cv_type_long" = yes; then
15363   if test "$cross_compiling" = yes; then
15364   # Depending upon the size, compute the lo and hi bounds.
15365 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15367 #include "confdefs.h"
15368 $ac_includes_default
15369 struct { char filler; long field; } pgac_struct;
15370 #ifdef F77_DUMMY_MAIN
15371 #  ifdef __cplusplus
15372      extern "C"
15373 #  endif
15374    int F77_DUMMY_MAIN() { return 1; }
15375 #endif
15376 int
15377 main ()
15378 {
15379 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15380 test_array [0] = 0
15381
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388   (eval $ac_compile) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } &&
15392          { ac_try='test -s conftest.$ac_objext'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398   ac_lo=0 ac_mid=0
15399   while :; do
15400     cat >conftest.$ac_ext <<_ACEOF
15401 #line $LINENO "configure"
15402 #include "confdefs.h"
15403 $ac_includes_default
15404 struct { char filler; long field; } pgac_struct;
15405 #ifdef F77_DUMMY_MAIN
15406 #  ifdef __cplusplus
15407      extern "C"
15408 #  endif
15409    int F77_DUMMY_MAIN() { return 1; }
15410 #endif
15411 int
15412 main ()
15413 {
15414 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15415 test_array [0] = 0
15416
15417   ;
15418   return 0;
15419 }
15420 _ACEOF
15421 rm -f conftest.$ac_objext
15422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15423   (eval $ac_compile) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -s conftest.$ac_objext'
15428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429   (eval $ac_try) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; }; then
15433   ac_hi=$ac_mid; break
15434 else
15435   echo "$as_me: failed program was:" >&5
15436 cat conftest.$ac_ext >&5
15437 ac_lo=`expr $ac_mid + 1`
15438                     if test $ac_lo -le $ac_mid; then
15439                       ac_lo= ac_hi=
15440                       break
15441                     fi
15442                     ac_mid=`expr 2 '*' $ac_mid + 1`
15443 fi
15444 rm -f conftest.$ac_objext conftest.$ac_ext
15445   done
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 cat >conftest.$ac_ext <<_ACEOF
15450 #line $LINENO "configure"
15451 #include "confdefs.h"
15452 $ac_includes_default
15453 struct { char filler; long field; } pgac_struct;
15454 #ifdef F77_DUMMY_MAIN
15455 #  ifdef __cplusplus
15456      extern "C"
15457 #  endif
15458    int F77_DUMMY_MAIN() { return 1; }
15459 #endif
15460 int
15461 main ()
15462 {
15463 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15464 test_array [0] = 0
15465
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15472   (eval $ac_compile) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); } &&
15476          { ac_try='test -s conftest.$ac_objext'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; }; then
15482   ac_hi=-1 ac_mid=-1
15483   while :; do
15484     cat >conftest.$ac_ext <<_ACEOF
15485 #line $LINENO "configure"
15486 #include "confdefs.h"
15487 $ac_includes_default
15488 struct { char filler; long field; } pgac_struct;
15489 #ifdef F77_DUMMY_MAIN
15490 #  ifdef __cplusplus
15491      extern "C"
15492 #  endif
15493    int F77_DUMMY_MAIN() { return 1; }
15494 #endif
15495 int
15496 main ()
15497 {
15498 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15499 test_array [0] = 0
15500
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507   (eval $ac_compile) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -s conftest.$ac_objext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517   ac_lo=$ac_mid; break
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 cat conftest.$ac_ext >&5
15521 ac_hi=`expr '(' $ac_mid ')' - 1`
15522                        if test $ac_mid -le $ac_hi; then
15523                          ac_lo= ac_hi=
15524                          break
15525                        fi
15526                        ac_mid=`expr 2 '*' $ac_mid`
15527 fi
15528 rm -f conftest.$ac_objext conftest.$ac_ext
15529   done
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 cat conftest.$ac_ext >&5
15533 ac_lo= ac_hi=
15534 fi
15535 rm -f conftest.$ac_objext conftest.$ac_ext
15536 fi
15537 rm -f conftest.$ac_objext conftest.$ac_ext
15538 # Binary search between lo and hi bounds.
15539 while test "x$ac_lo" != "x$ac_hi"; do
15540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15541   cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 struct { char filler; long field; } pgac_struct;
15546 #ifdef F77_DUMMY_MAIN
15547 #  ifdef __cplusplus
15548      extern "C"
15549 #  endif
15550    int F77_DUMMY_MAIN() { return 1; }
15551 #endif
15552 int
15553 main ()
15554 {
15555 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15556 test_array [0] = 0
15557
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } &&
15568          { ac_try='test -s conftest.$ac_objext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_hi=$ac_mid
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_lo=`expr '(' $ac_mid ')' + 1`
15579 fi
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15581 done
15582 case $ac_lo in
15583 ?*) pgac_cv_alignof_long=$ac_lo;;
15584 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15585 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15586    { (exit 1); exit 1; }; } ;;
15587 esac
15588 else
15589   if test "$cross_compiling" = yes; then
15590   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15591 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15592    { (exit 1); exit 1; }; }
15593 else
15594   cat >conftest.$ac_ext <<_ACEOF
15595 #line $LINENO "configure"
15596 #include "confdefs.h"
15597 $ac_includes_default
15598 struct { char filler; long field; } pgac_struct;
15599 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15600 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15601 #include <stdio.h>
15602 #include <stdlib.h>
15603 #ifdef F77_DUMMY_MAIN
15604 #  ifdef __cplusplus
15605      extern "C"
15606 #  endif
15607    int F77_DUMMY_MAIN() { return 1; }
15608 #endif
15609 int
15610 main ()
15611 {
15612
15613   FILE *f = fopen ("conftest.val", "w");
15614   if (! f)
15615     exit (1);
15616   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15617     {
15618       long i = longval ();
15619       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15620         exit (1);
15621       fprintf (f, "%ld\n", i);
15622     }
15623   else
15624     {
15625       unsigned long i = ulongval ();
15626       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15627         exit (1);
15628       fprintf (f, "%lu\n", i);
15629     }
15630   exit (ferror (f) || fclose (f) != 0);
15631
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638   (eval $ac_link) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   pgac_cv_alignof_long=`cat conftest.val`
15648 else
15649   echo "$as_me: program exited with status $ac_status" >&5
15650 echo "$as_me: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 ( exit $ac_status )
15653 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15654 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15655    { (exit 1); exit 1; }; }
15656 fi
15657 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15658 fi
15659 fi
15660 rm -f conftest.val
15661 else
15662   pgac_cv_alignof_long=0
15663 fi
15664 fi
15665 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15666 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15667 cat >>confdefs.h <<_ACEOF
15668 #define ALIGNOF_LONG $pgac_cv_alignof_long
15669 _ACEOF
15670
15671
15672 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15673   echo "$as_me:$LINENO: checking for long long int" >&5
15674 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15675 if test "${ac_cv_type_long_long_int+set}" = set; then
15676   echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678   cat >conftest.$ac_ext <<_ACEOF
15679 #line $LINENO "configure"
15680 #include "confdefs.h"
15681 $ac_includes_default
15682 #ifdef F77_DUMMY_MAIN
15683 #  ifdef __cplusplus
15684      extern "C"
15685 #  endif
15686    int F77_DUMMY_MAIN() { return 1; }
15687 #endif
15688 int
15689 main ()
15690 {
15691 if ((long long int *) 0)
15692   return 0;
15693 if (sizeof (long long int))
15694   return 0;
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15701   (eval $ac_compile) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } &&
15705          { ac_try='test -s conftest.$ac_objext'
15706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707   (eval $ac_try) 2>&5
15708   ac_status=$?
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); }; }; then
15711   ac_cv_type_long_long_int=yes
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15715 ac_cv_type_long_long_int=no
15716 fi
15717 rm -f conftest.$ac_objext conftest.$ac_ext
15718 fi
15719 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15720 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15721
15722 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15723 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15724 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   if test "$ac_cv_type_long_long_int" = yes; then
15728   if test "$cross_compiling" = yes; then
15729   # Depending upon the size, compute the lo and hi bounds.
15730 cat >conftest.$ac_ext <<_ACEOF
15731 #line $LINENO "configure"
15732 #include "confdefs.h"
15733 $ac_includes_default
15734 struct { char filler; long long int field; } pgac_struct;
15735 #ifdef F77_DUMMY_MAIN
15736 #  ifdef __cplusplus
15737      extern "C"
15738 #  endif
15739    int F77_DUMMY_MAIN() { return 1; }
15740 #endif
15741 int
15742 main ()
15743 {
15744 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15745 test_array [0] = 0
15746
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753   (eval $ac_compile) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -s conftest.$ac_objext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_lo=0 ac_mid=0
15764   while :; do
15765     cat >conftest.$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15767 #include "confdefs.h"
15768 $ac_includes_default
15769 struct { char filler; long long int field; } pgac_struct;
15770 #ifdef F77_DUMMY_MAIN
15771 #  ifdef __cplusplus
15772      extern "C"
15773 #  endif
15774    int F77_DUMMY_MAIN() { return 1; }
15775 #endif
15776 int
15777 main ()
15778 {
15779 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15780 test_array [0] = 0
15781
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15788   (eval $ac_compile) 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -s conftest.$ac_objext'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   ac_hi=$ac_mid; break
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 cat conftest.$ac_ext >&5
15802 ac_lo=`expr $ac_mid + 1`
15803                     if test $ac_lo -le $ac_mid; then
15804                       ac_lo= ac_hi=
15805                       break
15806                     fi
15807                     ac_mid=`expr 2 '*' $ac_mid + 1`
15808 fi
15809 rm -f conftest.$ac_objext conftest.$ac_ext
15810   done
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15816 #include "confdefs.h"
15817 $ac_includes_default
15818 struct { char filler; long long int field; } pgac_struct;
15819 #ifdef F77_DUMMY_MAIN
15820 #  ifdef __cplusplus
15821      extern "C"
15822 #  endif
15823    int F77_DUMMY_MAIN() { return 1; }
15824 #endif
15825 int
15826 main ()
15827 {
15828 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15829 test_array [0] = 0
15830
15831   ;
15832   return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837   (eval $ac_compile) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -s conftest.$ac_objext'
15842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843   (eval $ac_try) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_hi=-1 ac_mid=-1
15848   while :; do
15849     cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15851 #include "confdefs.h"
15852 $ac_includes_default
15853 struct { char filler; long long int field; } pgac_struct;
15854 #ifdef F77_DUMMY_MAIN
15855 #  ifdef __cplusplus
15856      extern "C"
15857 #  endif
15858    int F77_DUMMY_MAIN() { return 1; }
15859 #endif
15860 int
15861 main ()
15862 {
15863 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15864 test_array [0] = 0
15865
15866   ;
15867   return 0;
15868 }
15869 _ACEOF
15870 rm -f conftest.$ac_objext
15871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872   (eval $ac_compile) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } &&
15876          { ac_try='test -s conftest.$ac_objext'
15877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878   (eval $ac_try) 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); }; }; then
15882   ac_lo=$ac_mid; break
15883 else
15884   echo "$as_me: failed program was:" >&5
15885 cat conftest.$ac_ext >&5
15886 ac_hi=`expr '(' $ac_mid ')' - 1`
15887                        if test $ac_mid -le $ac_hi; then
15888                          ac_lo= ac_hi=
15889                          break
15890                        fi
15891                        ac_mid=`expr 2 '*' $ac_mid`
15892 fi
15893 rm -f conftest.$ac_objext conftest.$ac_ext
15894   done
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 cat conftest.$ac_ext >&5
15898 ac_lo= ac_hi=
15899 fi
15900 rm -f conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 rm -f conftest.$ac_objext conftest.$ac_ext
15903 # Binary search between lo and hi bounds.
15904 while test "x$ac_lo" != "x$ac_hi"; do
15905   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15906   cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 #include "confdefs.h"
15909 $ac_includes_default
15910 struct { char filler; long long int field; } pgac_struct;
15911 #ifdef F77_DUMMY_MAIN
15912 #  ifdef __cplusplus
15913      extern "C"
15914 #  endif
15915    int F77_DUMMY_MAIN() { return 1; }
15916 #endif
15917 int
15918 main ()
15919 {
15920 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15921 test_array [0] = 0
15922
15923   ;
15924   return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929   (eval $ac_compile) 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -s conftest.$ac_objext'
15934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935   (eval $ac_try) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); }; }; then
15939   ac_hi=$ac_mid
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15943 ac_lo=`expr '(' $ac_mid ')' + 1`
15944 fi
15945 rm -f conftest.$ac_objext conftest.$ac_ext
15946 done
15947 case $ac_lo in
15948 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15949 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15950 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15951    { (exit 1); exit 1; }; } ;;
15952 esac
15953 else
15954   if test "$cross_compiling" = yes; then
15955   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15956 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15957    { (exit 1); exit 1; }; }
15958 else
15959   cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 #include "confdefs.h"
15962 $ac_includes_default
15963 struct { char filler; long long int field; } pgac_struct;
15964 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15965 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15966 #include <stdio.h>
15967 #include <stdlib.h>
15968 #ifdef F77_DUMMY_MAIN
15969 #  ifdef __cplusplus
15970      extern "C"
15971 #  endif
15972    int F77_DUMMY_MAIN() { return 1; }
15973 #endif
15974 int
15975 main ()
15976 {
15977
15978   FILE *f = fopen ("conftest.val", "w");
15979   if (! f)
15980     exit (1);
15981   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15982     {
15983       long i = longval ();
15984       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15985         exit (1);
15986       fprintf (f, "%ld\n", i);
15987     }
15988   else
15989     {
15990       unsigned long i = ulongval ();
15991       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15992         exit (1);
15993       fprintf (f, "%lu\n", i);
15994     }
15995   exit (ferror (f) || fclose (f) != 0);
15996
15997   ;
15998   return 0;
15999 }
16000 _ACEOF
16001 rm -f conftest$ac_exeext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003   (eval $ac_link) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008   (eval $ac_try) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); }; }; then
16012   pgac_cv_alignof_long_long_int=`cat conftest.val`
16013 else
16014   echo "$as_me: program exited with status $ac_status" >&5
16015 echo "$as_me: failed program was:" >&5
16016 cat conftest.$ac_ext >&5
16017 ( exit $ac_status )
16018 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16019 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16020    { (exit 1); exit 1; }; }
16021 fi
16022 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16023 fi
16024 fi
16025 rm -f conftest.val
16026 else
16027   pgac_cv_alignof_long_long_int=0
16028 fi
16029 fi
16030 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16031 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16032 cat >>confdefs.h <<_ACEOF
16033 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16034 _ACEOF
16035
16036
16037 fi
16038 echo "$as_me:$LINENO: checking for double" >&5
16039 echo $ECHO_N "checking for double... $ECHO_C" >&6
16040 if test "${ac_cv_type_double+set}" = set; then
16041   echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043   cat >conftest.$ac_ext <<_ACEOF
16044 #line $LINENO "configure"
16045 #include "confdefs.h"
16046 $ac_includes_default
16047 #ifdef F77_DUMMY_MAIN
16048 #  ifdef __cplusplus
16049      extern "C"
16050 #  endif
16051    int F77_DUMMY_MAIN() { return 1; }
16052 #endif
16053 int
16054 main ()
16055 {
16056 if ((double *) 0)
16057   return 0;
16058 if (sizeof (double))
16059   return 0;
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16066   (eval $ac_compile) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } &&
16070          { ac_try='test -s conftest.$ac_objext'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; }; then
16076   ac_cv_type_double=yes
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 cat conftest.$ac_ext >&5
16080 ac_cv_type_double=no
16081 fi
16082 rm -f conftest.$ac_objext conftest.$ac_ext
16083 fi
16084 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16085 echo "${ECHO_T}$ac_cv_type_double" >&6
16086
16087 echo "$as_me:$LINENO: checking alignment of double" >&5
16088 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16089 if test "${pgac_cv_alignof_double+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   if test "$ac_cv_type_double" = yes; then
16093   if test "$cross_compiling" = yes; then
16094   # Depending upon the size, compute the lo and hi bounds.
16095 cat >conftest.$ac_ext <<_ACEOF
16096 #line $LINENO "configure"
16097 #include "confdefs.h"
16098 $ac_includes_default
16099 struct { char filler; double field; } pgac_struct;
16100 #ifdef F77_DUMMY_MAIN
16101 #  ifdef __cplusplus
16102      extern "C"
16103 #  endif
16104    int F77_DUMMY_MAIN() { return 1; }
16105 #endif
16106 int
16107 main ()
16108 {
16109 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16110 test_array [0] = 0
16111
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118   (eval $ac_compile) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); } &&
16122          { ac_try='test -s conftest.$ac_objext'
16123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124   (eval $ac_try) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; }; then
16128   ac_lo=0 ac_mid=0
16129   while :; do
16130     cat >conftest.$ac_ext <<_ACEOF
16131 #line $LINENO "configure"
16132 #include "confdefs.h"
16133 $ac_includes_default
16134 struct { char filler; double field; } pgac_struct;
16135 #ifdef F77_DUMMY_MAIN
16136 #  ifdef __cplusplus
16137      extern "C"
16138 #  endif
16139    int F77_DUMMY_MAIN() { return 1; }
16140 #endif
16141 int
16142 main ()
16143 {
16144 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16145 test_array [0] = 0
16146
16147   ;
16148   return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153   (eval $ac_compile) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); } &&
16157          { ac_try='test -s conftest.$ac_objext'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }; then
16163   ac_hi=$ac_mid; break
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 cat conftest.$ac_ext >&5
16167 ac_lo=`expr $ac_mid + 1`
16168                     if test $ac_lo -le $ac_mid; then
16169                       ac_lo= ac_hi=
16170                       break
16171                     fi
16172                     ac_mid=`expr 2 '*' $ac_mid + 1`
16173 fi
16174 rm -f conftest.$ac_objext conftest.$ac_ext
16175   done
16176 else
16177   echo "$as_me: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16179 cat >conftest.$ac_ext <<_ACEOF
16180 #line $LINENO "configure"
16181 #include "confdefs.h"
16182 $ac_includes_default
16183 struct { char filler; double field; } pgac_struct;
16184 #ifdef F77_DUMMY_MAIN
16185 #  ifdef __cplusplus
16186      extern "C"
16187 #  endif
16188    int F77_DUMMY_MAIN() { return 1; }
16189 #endif
16190 int
16191 main ()
16192 {
16193 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16194 test_array [0] = 0
16195
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202   (eval $ac_compile) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } &&
16206          { ac_try='test -s conftest.$ac_objext'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; }; then
16212   ac_hi=-1 ac_mid=-1
16213   while :; do
16214     cat >conftest.$ac_ext <<_ACEOF
16215 #line $LINENO "configure"
16216 #include "confdefs.h"
16217 $ac_includes_default
16218 struct { char filler; double field; } pgac_struct;
16219 #ifdef F77_DUMMY_MAIN
16220 #  ifdef __cplusplus
16221      extern "C"
16222 #  endif
16223    int F77_DUMMY_MAIN() { return 1; }
16224 #endif
16225 int
16226 main ()
16227 {
16228 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16229 test_array [0] = 0
16230
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16237   (eval $ac_compile) 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } &&
16241          { ac_try='test -s conftest.$ac_objext'
16242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243   (eval $ac_try) 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; }; then
16247   ac_lo=$ac_mid; break
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 ac_hi=`expr '(' $ac_mid ')' - 1`
16252                        if test $ac_mid -le $ac_hi; then
16253                          ac_lo= ac_hi=
16254                          break
16255                        fi
16256                        ac_mid=`expr 2 '*' $ac_mid`
16257 fi
16258 rm -f conftest.$ac_objext conftest.$ac_ext
16259   done
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 cat conftest.$ac_ext >&5
16263 ac_lo= ac_hi=
16264 fi
16265 rm -f conftest.$ac_objext conftest.$ac_ext
16266 fi
16267 rm -f conftest.$ac_objext conftest.$ac_ext
16268 # Binary search between lo and hi bounds.
16269 while test "x$ac_lo" != "x$ac_hi"; do
16270   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16271   cat >conftest.$ac_ext <<_ACEOF
16272 #line $LINENO "configure"
16273 #include "confdefs.h"
16274 $ac_includes_default
16275 struct { char filler; double field; } pgac_struct;
16276 #ifdef F77_DUMMY_MAIN
16277 #  ifdef __cplusplus
16278      extern "C"
16279 #  endif
16280    int F77_DUMMY_MAIN() { return 1; }
16281 #endif
16282 int
16283 main ()
16284 {
16285 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16286 test_array [0] = 0
16287
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294   (eval $ac_compile) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } &&
16298          { ac_try='test -s conftest.$ac_objext'
16299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300   (eval $ac_try) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304   ac_hi=$ac_mid
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 ac_lo=`expr '(' $ac_mid ')' + 1`
16309 fi
16310 rm -f conftest.$ac_objext conftest.$ac_ext
16311 done
16312 case $ac_lo in
16313 ?*) pgac_cv_alignof_double=$ac_lo;;
16314 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16315 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16316    { (exit 1); exit 1; }; } ;;
16317 esac
16318 else
16319   if test "$cross_compiling" = yes; then
16320   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16321 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16322    { (exit 1); exit 1; }; }
16323 else
16324   cat >conftest.$ac_ext <<_ACEOF
16325 #line $LINENO "configure"
16326 #include "confdefs.h"
16327 $ac_includes_default
16328 struct { char filler; double field; } pgac_struct;
16329 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16330 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16331 #include <stdio.h>
16332 #include <stdlib.h>
16333 #ifdef F77_DUMMY_MAIN
16334 #  ifdef __cplusplus
16335      extern "C"
16336 #  endif
16337    int F77_DUMMY_MAIN() { return 1; }
16338 #endif
16339 int
16340 main ()
16341 {
16342
16343   FILE *f = fopen ("conftest.val", "w");
16344   if (! f)
16345     exit (1);
16346   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16347     {
16348       long i = longval ();
16349       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16350         exit (1);
16351       fprintf (f, "%ld\n", i);
16352     }
16353   else
16354     {
16355       unsigned long i = ulongval ();
16356       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16357         exit (1);
16358       fprintf (f, "%lu\n", i);
16359     }
16360   exit (ferror (f) || fclose (f) != 0);
16361
16362   ;
16363   return 0;
16364 }
16365 _ACEOF
16366 rm -f conftest$ac_exeext
16367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16368   (eval $ac_link) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373   (eval $ac_try) 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); }; }; then
16377   pgac_cv_alignof_double=`cat conftest.val`
16378 else
16379   echo "$as_me: program exited with status $ac_status" >&5
16380 echo "$as_me: failed program was:" >&5
16381 cat conftest.$ac_ext >&5
16382 ( exit $ac_status )
16383 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16384 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16385    { (exit 1); exit 1; }; }
16386 fi
16387 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16388 fi
16389 fi
16390 rm -f conftest.val
16391 else
16392   pgac_cv_alignof_double=0
16393 fi
16394 fi
16395 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16396 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16397 cat >>confdefs.h <<_ACEOF
16398 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16399 _ACEOF
16400
16401
16402
16403 # Compute maximum alignment of any basic type.
16404 # We assume long's alignment is at least as strong as char, short, or int;
16405 # but we must check long long (if it exists) and double.
16406
16407 MAX_ALIGNOF=$pgac_cv_alignof_long
16408 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16409   MAX_ALIGNOF=$pgac_cv_alignof_double
16410 fi
16411 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16412   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16413 fi
16414
16415 cat >>confdefs.h <<_ACEOF
16416 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16417 _ACEOF
16418
16419
16420
16421 # Some platforms predefine the types int8, int16, etc.  Only check
16422 # a (hopefully) representative subset.
16423 echo "$as_me:$LINENO: checking for int8" >&5
16424 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16425 if test "${ac_cv_type_int8+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   cat >conftest.$ac_ext <<_ACEOF
16429 #line $LINENO "configure"
16430 #include "confdefs.h"
16431 #include <stdio.h>
16432 #ifdef HAVE_SUPPORTDEFS_H
16433 #include <SupportDefs.h>
16434 #endif
16435
16436 #ifdef F77_DUMMY_MAIN
16437 #  ifdef __cplusplus
16438      extern "C"
16439 #  endif
16440    int F77_DUMMY_MAIN() { return 1; }
16441 #endif
16442 int
16443 main ()
16444 {
16445 if ((int8 *) 0)
16446   return 0;
16447 if (sizeof (int8))
16448   return 0;
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455   (eval $ac_compile) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); } &&
16459          { ac_try='test -s conftest.$ac_objext'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; }; then
16465   ac_cv_type_int8=yes
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16469 ac_cv_type_int8=no
16470 fi
16471 rm -f conftest.$ac_objext conftest.$ac_ext
16472 fi
16473 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16474 echo "${ECHO_T}$ac_cv_type_int8" >&6
16475 if test $ac_cv_type_int8 = yes; then
16476
16477 cat >>confdefs.h <<_ACEOF
16478 #define HAVE_INT8 1
16479 _ACEOF
16480
16481
16482 fi
16483 echo "$as_me:$LINENO: checking for uint8" >&5
16484 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16485 if test "${ac_cv_type_uint8+set}" = set; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   cat >conftest.$ac_ext <<_ACEOF
16489 #line $LINENO "configure"
16490 #include "confdefs.h"
16491 #include <stdio.h>
16492 #ifdef HAVE_SUPPORTDEFS_H
16493 #include <SupportDefs.h>
16494 #endif
16495
16496 #ifdef F77_DUMMY_MAIN
16497 #  ifdef __cplusplus
16498      extern "C"
16499 #  endif
16500    int F77_DUMMY_MAIN() { return 1; }
16501 #endif
16502 int
16503 main ()
16504 {
16505 if ((uint8 *) 0)
16506   return 0;
16507 if (sizeof (uint8))
16508   return 0;
16509   ;
16510   return 0;
16511 }
16512 _ACEOF
16513 rm -f conftest.$ac_objext
16514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515   (eval $ac_compile) 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); } &&
16519          { ac_try='test -s conftest.$ac_objext'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; }; then
16525   ac_cv_type_uint8=yes
16526 else
16527   echo "$as_me: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16529 ac_cv_type_uint8=no
16530 fi
16531 rm -f conftest.$ac_objext conftest.$ac_ext
16532 fi
16533 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16534 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16535 if test $ac_cv_type_uint8 = yes; then
16536
16537 cat >>confdefs.h <<_ACEOF
16538 #define HAVE_UINT8 1
16539 _ACEOF
16540
16541
16542 fi
16543 echo "$as_me:$LINENO: checking for int64" >&5
16544 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16545 if test "${ac_cv_type_int64+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548   cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16550 #include "confdefs.h"
16551 #include <stdio.h>
16552 #ifdef HAVE_SUPPORTDEFS_H
16553 #include <SupportDefs.h>
16554 #endif
16555
16556 #ifdef F77_DUMMY_MAIN
16557 #  ifdef __cplusplus
16558      extern "C"
16559 #  endif
16560    int F77_DUMMY_MAIN() { return 1; }
16561 #endif
16562 int
16563 main ()
16564 {
16565 if ((int64 *) 0)
16566   return 0;
16567 if (sizeof (int64))
16568   return 0;
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16575   (eval $ac_compile) 2>&5
16576   ac_status=$?
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); } &&
16579          { ac_try='test -s conftest.$ac_objext'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_type_int64=yes
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 ac_cv_type_int64=no
16590 fi
16591 rm -f conftest.$ac_objext conftest.$ac_ext
16592 fi
16593 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16594 echo "${ECHO_T}$ac_cv_type_int64" >&6
16595 if test $ac_cv_type_int64 = yes; then
16596
16597 cat >>confdefs.h <<_ACEOF
16598 #define HAVE_INT64 1
16599 _ACEOF
16600
16601
16602 fi
16603 echo "$as_me:$LINENO: checking for uint64" >&5
16604 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16605 if test "${ac_cv_type_uint64+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   cat >conftest.$ac_ext <<_ACEOF
16609 #line $LINENO "configure"
16610 #include "confdefs.h"
16611 #include <stdio.h>
16612 #ifdef HAVE_SUPPORTDEFS_H
16613 #include <SupportDefs.h>
16614 #endif
16615
16616 #ifdef F77_DUMMY_MAIN
16617 #  ifdef __cplusplus
16618      extern "C"
16619 #  endif
16620    int F77_DUMMY_MAIN() { return 1; }
16621 #endif
16622 int
16623 main ()
16624 {
16625 if ((uint64 *) 0)
16626   return 0;
16627 if (sizeof (uint64))
16628   return 0;
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635   (eval $ac_compile) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641   (eval $ac_try) 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; }; then
16645   ac_cv_type_uint64=yes
16646 else
16647   echo "$as_me: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 ac_cv_type_uint64=no
16650 fi
16651 rm -f conftest.$ac_objext conftest.$ac_ext
16652 fi
16653 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16654 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16655 if test $ac_cv_type_uint64 = yes; then
16656
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_UINT64 1
16659 _ACEOF
16660
16661
16662 fi
16663
16664
16665 # We also check for sig_atomic_t, which *should* be defined per ANSI
16666 # C, but is missing on some old platforms.
16667 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16668 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16669 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   cat >conftest.$ac_ext <<_ACEOF
16673 #line $LINENO "configure"
16674 #include "confdefs.h"
16675 #include <signal.h>
16676
16677 #ifdef F77_DUMMY_MAIN
16678 #  ifdef __cplusplus
16679      extern "C"
16680 #  endif
16681    int F77_DUMMY_MAIN() { return 1; }
16682 #endif
16683 int
16684 main ()
16685 {
16686 if ((sig_atomic_t *) 0)
16687   return 0;
16688 if (sizeof (sig_atomic_t))
16689   return 0;
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext
16695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16696   (eval $ac_compile) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } &&
16700          { ac_try='test -s conftest.$ac_objext'
16701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702   (eval $ac_try) 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; }; then
16706   ac_cv_type_sig_atomic_t=yes
16707 else
16708   echo "$as_me: failed program was:" >&5
16709 cat conftest.$ac_ext >&5
16710 ac_cv_type_sig_atomic_t=no
16711 fi
16712 rm -f conftest.$ac_objext conftest.$ac_ext
16713 fi
16714 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16715 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16716 if test $ac_cv_type_sig_atomic_t = yes; then
16717
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_SIG_ATOMIC_T 1
16720 _ACEOF
16721
16722
16723 fi
16724
16725
16726
16727 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16728 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16729 if test "${pgac_cv_func_posix_signals+set}" = set; then
16730   echo $ECHO_N "(cached) $ECHO_C" >&6
16731 else
16732   cat >conftest.$ac_ext <<_ACEOF
16733 #line $LINENO "configure"
16734 #include "confdefs.h"
16735 #include <signal.h>
16736
16737 #ifdef F77_DUMMY_MAIN
16738 #  ifdef __cplusplus
16739      extern "C"
16740 #  endif
16741    int F77_DUMMY_MAIN() { return 1; }
16742 #endif
16743 int
16744 main ()
16745 {
16746 struct sigaction act, oact;
16747 sigemptyset(&act.sa_mask);
16748 act.sa_flags = SA_RESTART;
16749 sigaction(0, &act, &oact);
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756   (eval $ac_link) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } &&
16760          { ac_try='test -s conftest$ac_exeext'
16761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762   (eval $ac_try) 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; }; then
16766   pgac_cv_func_posix_signals=yes
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16770 pgac_cv_func_posix_signals=no
16771 fi
16772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16773 fi
16774 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16775 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16776 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16777
16778 cat >>confdefs.h <<\_ACEOF
16779 #define HAVE_POSIX_SIGNALS
16780 _ACEOF
16781
16782 fi
16783 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16784
16785 if test $ac_cv_func_fseeko = yes; then
16786 # Check whether --enable-largefile or --disable-largefile was given.
16787 if test "${enable_largefile+set}" = set; then
16788   enableval="$enable_largefile"
16789
16790 fi;
16791 if test "$enable_largefile" != no; then
16792
16793   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16794 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16795 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   ac_cv_sys_largefile_CC=no
16799      if test "$GCC" != yes; then
16800        ac_save_CC=$CC
16801        while :; do
16802          # IRIX 6.2 and later do not support large files by default,
16803          # so use the C compiler's -n32 option if that helps.
16804          cat >conftest.$ac_ext <<_ACEOF
16805 #line $LINENO "configure"
16806 #include "confdefs.h"
16807 #include <sys/types.h>
16808  /* Check that off_t can represent 2**63 - 1 correctly.
16809     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16810     since some C++ compilers masquerading as C compilers
16811     incorrectly reject 9223372036854775807.  */
16812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16813   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16814                        && LARGE_OFF_T % 2147483647 == 1)
16815                       ? 1 : -1];
16816 #ifdef F77_DUMMY_MAIN
16817 #  ifdef __cplusplus
16818      extern "C"
16819 #  endif
16820    int F77_DUMMY_MAIN() { return 1; }
16821 #endif
16822 int
16823 main ()
16824 {
16825
16826   ;
16827   return 0;
16828 }
16829 _ACEOF
16830          rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832   (eval $ac_compile) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -s conftest.$ac_objext'
16837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838   (eval $ac_try) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; }; then
16842   break
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 fi
16847 rm -f conftest.$ac_objext
16848          CC="$CC -n32"
16849          rm -f conftest.$ac_objext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851   (eval $ac_compile) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } &&
16855          { ac_try='test -s conftest.$ac_objext'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_cv_sys_largefile_CC=' -n32'; break
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 cat conftest.$ac_ext >&5
16865 fi
16866 rm -f conftest.$ac_objext
16867          break
16868        done
16869        CC=$ac_save_CC
16870        rm -f conftest.$ac_ext
16871     fi
16872 fi
16873 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16874 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16875   if test "$ac_cv_sys_largefile_CC" != no; then
16876     CC=$CC$ac_cv_sys_largefile_CC
16877   fi
16878
16879   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16880 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16881 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   while :; do
16885   ac_cv_sys_file_offset_bits=no
16886   cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 #include "confdefs.h"
16889 #include <sys/types.h>
16890  /* Check that off_t can represent 2**63 - 1 correctly.
16891     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16892     since some C++ compilers masquerading as C compilers
16893     incorrectly reject 9223372036854775807.  */
16894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16895   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16896                        && LARGE_OFF_T % 2147483647 == 1)
16897                       ? 1 : -1];
16898 #ifdef F77_DUMMY_MAIN
16899 #  ifdef __cplusplus
16900      extern "C"
16901 #  endif
16902    int F77_DUMMY_MAIN() { return 1; }
16903 #endif
16904 int
16905 main ()
16906 {
16907
16908   ;
16909   return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16914   (eval $ac_compile) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -s conftest.$ac_objext'
16919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920   (eval $ac_try) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   break
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16928 fi
16929 rm -f conftest.$ac_objext conftest.$ac_ext
16930   cat >conftest.$ac_ext <<_ACEOF
16931 #line $LINENO "configure"
16932 #include "confdefs.h"
16933 #define _FILE_OFFSET_BITS 64
16934 #include <sys/types.h>
16935  /* Check that off_t can represent 2**63 - 1 correctly.
16936     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16937     since some C++ compilers masquerading as C compilers
16938     incorrectly reject 9223372036854775807.  */
16939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16940   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16941                        && LARGE_OFF_T % 2147483647 == 1)
16942                       ? 1 : -1];
16943 #ifdef F77_DUMMY_MAIN
16944 #  ifdef __cplusplus
16945      extern "C"
16946 #  endif
16947    int F77_DUMMY_MAIN() { return 1; }
16948 #endif
16949 int
16950 main ()
16951 {
16952
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16959   (eval $ac_compile) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -s conftest.$ac_objext'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; }; then
16969   ac_cv_sys_file_offset_bits=64; break
16970 else
16971   echo "$as_me: failed program was:" >&5
16972 cat conftest.$ac_ext >&5
16973 fi
16974 rm -f conftest.$ac_objext conftest.$ac_ext
16975   break
16976 done
16977 fi
16978 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16979 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16980 if test "$ac_cv_sys_file_offset_bits" != no; then
16981
16982 cat >>confdefs.h <<_ACEOF
16983 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16984 _ACEOF
16985
16986 fi
16987 rm -f conftest*
16988   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16989 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16990 if test "${ac_cv_sys_large_files+set}" = set; then
16991   echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993   while :; do
16994   ac_cv_sys_large_files=no
16995   cat >conftest.$ac_ext <<_ACEOF
16996 #line $LINENO "configure"
16997 #include "confdefs.h"
16998 #include <sys/types.h>
16999  /* Check that off_t can represent 2**63 - 1 correctly.
17000     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17001     since some C++ compilers masquerading as C compilers
17002     incorrectly reject 9223372036854775807.  */
17003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17004   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17005                        && LARGE_OFF_T % 2147483647 == 1)
17006                       ? 1 : -1];
17007 #ifdef F77_DUMMY_MAIN
17008 #  ifdef __cplusplus
17009      extern "C"
17010 #  endif
17011    int F77_DUMMY_MAIN() { return 1; }
17012 #endif
17013 int
17014 main ()
17015 {
17016
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023   (eval $ac_compile) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -s conftest.$ac_objext'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   break
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 cat conftest.$ac_ext >&5
17037 fi
17038 rm -f conftest.$ac_objext conftest.$ac_ext
17039   cat >conftest.$ac_ext <<_ACEOF
17040 #line $LINENO "configure"
17041 #include "confdefs.h"
17042 #define _LARGE_FILES 1
17043 #include <sys/types.h>
17044  /* Check that off_t can represent 2**63 - 1 correctly.
17045     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17046     since some C++ compilers masquerading as C compilers
17047     incorrectly reject 9223372036854775807.  */
17048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17049   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17050                        && LARGE_OFF_T % 2147483647 == 1)
17051                       ? 1 : -1];
17052 #ifdef F77_DUMMY_MAIN
17053 #  ifdef __cplusplus
17054      extern "C"
17055 #  endif
17056    int F77_DUMMY_MAIN() { return 1; }
17057 #endif
17058 int
17059 main ()
17060 {
17061
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068   (eval $ac_compile) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); } &&
17072          { ac_try='test -s conftest.$ac_objext'
17073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074   (eval $ac_try) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; }; then
17078   ac_cv_sys_large_files=1; break
17079 else
17080   echo "$as_me: failed program was:" >&5
17081 cat conftest.$ac_ext >&5
17082 fi
17083 rm -f conftest.$ac_objext conftest.$ac_ext
17084   break
17085 done
17086 fi
17087 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17088 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17089 if test "$ac_cv_sys_large_files" != no; then
17090
17091 cat >>confdefs.h <<_ACEOF
17092 #define _LARGE_FILES $ac_cv_sys_large_files
17093 _ACEOF
17094
17095 fi
17096 rm -f conftest*
17097 fi
17098
17099 fi
17100
17101
17102 # Select semaphore implementation type.
17103 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17104
17105 cat >>confdefs.h <<\_ACEOF
17106 #define USE_NAMED_POSIX_SEMAPHORES 1
17107 _ACEOF
17108
17109   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17110 else
17111   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17112
17113 cat >>confdefs.h <<\_ACEOF
17114 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17115 _ACEOF
17116
17117     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17118   else
17119
17120 cat >>confdefs.h <<\_ACEOF
17121 #define USE_SYSV_SEMAPHORES 1
17122 _ACEOF
17123
17124     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17125   fi
17126 fi
17127
17128
17129 # Select shared-memory implementation type.
17130
17131 cat >>confdefs.h <<\_ACEOF
17132 #define USE_SYSV_SHARED_MEMORY 1
17133 _ACEOF
17134
17135 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17136
17137
17138 if test "$enable_nls" = yes ; then
17139
17140   echo "$as_me:$LINENO: checking for library containing gettext" >&5
17141 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17142 if test "${ac_cv_search_gettext+set}" = set; then
17143   echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145   ac_func_search_save_LIBS=$LIBS
17146 ac_cv_search_gettext=no
17147 cat >conftest.$ac_ext <<_ACEOF
17148 #line $LINENO "configure"
17149 #include "confdefs.h"
17150
17151 /* Override any gcc2 internal prototype to avoid an error.  */
17152 #ifdef __cplusplus
17153 extern "C"
17154 #endif
17155 /* We use char because int might match the return type of a gcc2
17156    builtin and then its argument prototype would still apply.  */
17157 char gettext ();
17158 #ifdef F77_DUMMY_MAIN
17159 #  ifdef __cplusplus
17160      extern "C"
17161 #  endif
17162    int F77_DUMMY_MAIN() { return 1; }
17163 #endif
17164 int
17165 main ()
17166 {
17167 gettext ();
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174   (eval $ac_link) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } &&
17178          { ac_try='test -s conftest$ac_exeext'
17179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180   (eval $ac_try) 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; }; then
17184   ac_cv_search_gettext="none required"
17185 else
17186   echo "$as_me: failed program was:" >&5
17187 cat conftest.$ac_ext >&5
17188 fi
17189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17190 if test "$ac_cv_search_gettext" = no; then
17191   for ac_lib in intl; do
17192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17193     cat >conftest.$ac_ext <<_ACEOF
17194 #line $LINENO "configure"
17195 #include "confdefs.h"
17196
17197 /* Override any gcc2 internal prototype to avoid an error.  */
17198 #ifdef __cplusplus
17199 extern "C"
17200 #endif
17201 /* We use char because int might match the return type of a gcc2
17202    builtin and then its argument prototype would still apply.  */
17203 char gettext ();
17204 #ifdef F77_DUMMY_MAIN
17205 #  ifdef __cplusplus
17206      extern "C"
17207 #  endif
17208    int F77_DUMMY_MAIN() { return 1; }
17209 #endif
17210 int
17211 main ()
17212 {
17213 gettext ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220   (eval $ac_link) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   ac_cv_search_gettext="-l$ac_lib"
17231 break
17232 else
17233   echo "$as_me: failed program was:" >&5
17234 cat conftest.$ac_ext >&5
17235 fi
17236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17237   done
17238 fi
17239 LIBS=$ac_func_search_save_LIBS
17240 fi
17241 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17242 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17243 if test "$ac_cv_search_gettext" != no; then
17244   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17245
17246 else
17247   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17248 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17249    { (exit 1); exit 1; }; }
17250 fi
17251
17252   if test "${ac_cv_header_libintl_h+set}" = set; then
17253   echo "$as_me:$LINENO: checking for libintl.h" >&5
17254 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17255 if test "${ac_cv_header_libintl_h+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 fi
17258 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17259 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17260 else
17261   # Is the header compilable?
17262 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17263 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17265 #line $LINENO "configure"
17266 #include "confdefs.h"
17267 $ac_includes_default
17268 #include <libintl.h>
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272   (eval $ac_compile) 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } &&
17276          { ac_try='test -s conftest.$ac_objext'
17277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278   (eval $ac_try) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; }; then
17282   ac_header_compiler=yes
17283 else
17284   echo "$as_me: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17286 ac_header_compiler=no
17287 fi
17288 rm -f conftest.$ac_objext conftest.$ac_ext
17289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17290 echo "${ECHO_T}$ac_header_compiler" >&6
17291
17292 # Is the header present?
17293 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17294 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17295 cat >conftest.$ac_ext <<_ACEOF
17296 #line $LINENO "configure"
17297 #include "confdefs.h"
17298 #include <libintl.h>
17299 _ACEOF
17300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17302   ac_status=$?
17303   egrep -v '^ *\+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } >/dev/null; then
17308   if test -s conftest.err; then
17309     ac_cpp_err=$ac_c_preproc_warn_flag
17310   else
17311     ac_cpp_err=
17312   fi
17313 else
17314   ac_cpp_err=yes
17315 fi
17316 if test -z "$ac_cpp_err"; then
17317   ac_header_preproc=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320   cat conftest.$ac_ext >&5
17321   ac_header_preproc=no
17322 fi
17323 rm -f conftest.err conftest.$ac_ext
17324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17325 echo "${ECHO_T}$ac_header_preproc" >&6
17326
17327 # So?  What about this header?
17328 case $ac_header_compiler:$ac_header_preproc in
17329   yes:no )
17330     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17331 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17332     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17333 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17334   no:yes )
17335     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17336 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17337     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17338 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17339     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17340 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17341 esac
17342 echo "$as_me:$LINENO: checking for libintl.h" >&5
17343 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17344 if test "${ac_cv_header_libintl_h+set}" = set; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347   ac_cv_header_libintl_h=$ac_header_preproc
17348 fi
17349 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17350 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17351
17352 fi
17353 if test $ac_cv_header_libintl_h = yes; then
17354   :
17355 else
17356   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17357 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17358    { (exit 1); exit 1; }; }
17359 fi
17360
17361
17362   for ac_prog in msgfmt
17363 do
17364   # Extract the first word of "$ac_prog", so it can be a program name with args.
17365 set dummy $ac_prog; ac_word=$2
17366 echo "$as_me:$LINENO: checking for $ac_word" >&5
17367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17368 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371   if test -n "$MSGFMT"; then
17372   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17373 else
17374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17375 for as_dir in $PATH
17376 do
17377   IFS=$as_save_IFS
17378   test -z "$as_dir" && as_dir=.
17379   for ac_exec_ext in '' $ac_executable_extensions; do
17380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17381     ac_cv_prog_MSGFMT="$ac_prog"
17382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17383     break 2
17384   fi
17385 done
17386 done
17387
17388 fi
17389 fi
17390 MSGFMT=$ac_cv_prog_MSGFMT
17391 if test -n "$MSGFMT"; then
17392   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17393 echo "${ECHO_T}$MSGFMT" >&6
17394 else
17395   echo "$as_me:$LINENO: result: no" >&5
17396 echo "${ECHO_T}no" >&6
17397 fi
17398
17399   test -n "$MSGFMT" && break
17400 done
17401
17402   if test -z "$MSGFMT"; then
17403     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17404 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17405    { (exit 1); exit 1; }; }
17406   fi
17407   for ac_prog in msgmerge
17408 do
17409   # Extract the first word of "$ac_prog", so it can be a program name with args.
17410 set dummy $ac_prog; ac_word=$2
17411 echo "$as_me:$LINENO: checking for $ac_word" >&5
17412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17413 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17414   echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416   if test -n "$MSGMERGE"; then
17417   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17418 else
17419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17420 for as_dir in $PATH
17421 do
17422   IFS=$as_save_IFS
17423   test -z "$as_dir" && as_dir=.
17424   for ac_exec_ext in '' $ac_executable_extensions; do
17425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17426     ac_cv_prog_MSGMERGE="$ac_prog"
17427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17428     break 2
17429   fi
17430 done
17431 done
17432
17433 fi
17434 fi
17435 MSGMERGE=$ac_cv_prog_MSGMERGE
17436 if test -n "$MSGMERGE"; then
17437   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17438 echo "${ECHO_T}$MSGMERGE" >&6
17439 else
17440   echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6
17442 fi
17443
17444   test -n "$MSGMERGE" && break
17445 done
17446
17447   for ac_prog in xgettext
17448 do
17449   # Extract the first word of "$ac_prog", so it can be a program name with args.
17450 set dummy $ac_prog; ac_word=$2
17451 echo "$as_me:$LINENO: checking for $ac_word" >&5
17452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17453 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   if test -n "$XGETTEXT"; then
17457   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17458 else
17459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17460 for as_dir in $PATH
17461 do
17462   IFS=$as_save_IFS
17463   test -z "$as_dir" && as_dir=.
17464   for ac_exec_ext in '' $ac_executable_extensions; do
17465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17466     ac_cv_prog_XGETTEXT="$ac_prog"
17467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17468     break 2
17469   fi
17470 done
17471 done
17472
17473 fi
17474 fi
17475 XGETTEXT=$ac_cv_prog_XGETTEXT
17476 if test -n "$XGETTEXT"; then
17477   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17478 echo "${ECHO_T}$XGETTEXT" >&6
17479 else
17480   echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17482 fi
17483
17484   test -n "$XGETTEXT" && break
17485 done
17486
17487
17488   # Note: share/locale is always the default, independent of $datadir
17489   localedir='${prefix}/share/locale'
17490   if test x"$prefix" = x"NONE"; then
17491     exp_localedir="$ac_default_prefix/share/locale"
17492   else
17493     exp_localedir="$prefix/share/locale"
17494   fi
17495
17496
17497
17498 cat >>confdefs.h <<_ACEOF
17499 #define LOCALEDIR "$exp_localedir"
17500 _ACEOF
17501
17502
17503 fi
17504
17505 # Check for Tcl configuration script tclConfig.sh
17506 if test "$with_tcl" = yes; then
17507     for ac_prog in tclsh tcl
17508 do
17509   # Extract the first word of "$ac_prog", so it can be a program name with args.
17510 set dummy $ac_prog; ac_word=$2
17511 echo "$as_me:$LINENO: checking for $ac_word" >&5
17512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17513 if test "${ac_cv_path_TCLSH+set}" = set; then
17514   echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516   case $TCLSH in
17517   [\\/]* | ?:[\\/]*)
17518   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17519   ;;
17520   *)
17521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17522 for as_dir in $PATH
17523 do
17524   IFS=$as_save_IFS
17525   test -z "$as_dir" && as_dir=.
17526   for ac_exec_ext in '' $ac_executable_extensions; do
17527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17528     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17530     break 2
17531   fi
17532 done
17533 done
17534
17535   ;;
17536 esac
17537 fi
17538 TCLSH=$ac_cv_path_TCLSH
17539
17540 if test -n "$TCLSH"; then
17541   echo "$as_me:$LINENO: result: $TCLSH" >&5
17542 echo "${ECHO_T}$TCLSH" >&6
17543 else
17544   echo "$as_me:$LINENO: result: no" >&5
17545 echo "${ECHO_T}no" >&6
17546 fi
17547
17548   test -n "$TCLSH" && break
17549 done
17550
17551 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17552 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17553 # Let user override test
17554 if test -z "$TCL_CONFIG_SH"; then
17555     pgac_test_dirs="$with_tclconfig"
17556
17557     set X $pgac_test_dirs; shift
17558     if test $# -eq 0; then
17559         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17560 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17561    { (exit 1); exit 1; }; }
17562         set X `echo 'puts $auto_path' | $TCLSH`; shift
17563     fi
17564
17565     for pgac_dir do
17566         if test -r "$pgac_dir/tclConfig.sh"; then
17567             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17568             break
17569         fi
17570     done
17571 fi
17572
17573 if test -z "$TCL_CONFIG_SH"; then
17574     echo "$as_me:$LINENO: result: no" >&5
17575 echo "${ECHO_T}no" >&6
17576     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17577 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17578    { (exit 1); exit 1; }; }
17579 else
17580     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17581 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17582 fi
17583
17584
17585
17586     . "$TCL_CONFIG_SH"
17587 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17588 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17589 eval TCL_LIBS=\"$TCL_LIBS\"
17590 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17591 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17592
17593     fi
17594
17595 #
17596 # Check for DocBook and tools
17597 #
17598 for ac_prog in onsgmls nsgmls
17599 do
17600   # Extract the first word of "$ac_prog", so it can be a program name with args.
17601 set dummy $ac_prog; ac_word=$2
17602 echo "$as_me:$LINENO: checking for $ac_word" >&5
17603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17604 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17605   echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607   if test -n "$NSGMLS"; then
17608   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17609 else
17610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17611 for as_dir in $PATH
17612 do
17613   IFS=$as_save_IFS
17614   test -z "$as_dir" && as_dir=.
17615   for ac_exec_ext in '' $ac_executable_extensions; do
17616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17617     ac_cv_prog_NSGMLS="$ac_prog"
17618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17619     break 2
17620   fi
17621 done
17622 done
17623
17624 fi
17625 fi
17626 NSGMLS=$ac_cv_prog_NSGMLS
17627 if test -n "$NSGMLS"; then
17628   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17629 echo "${ECHO_T}$NSGMLS" >&6
17630 else
17631   echo "$as_me:$LINENO: result: no" >&5
17632 echo "${ECHO_T}no" >&6
17633 fi
17634
17635   test -n "$NSGMLS" && break
17636 done
17637
17638 for ac_prog in openjade jade
17639 do
17640   # Extract the first word of "$ac_prog", so it can be a program name with args.
17641 set dummy $ac_prog; ac_word=$2
17642 echo "$as_me:$LINENO: checking for $ac_word" >&5
17643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17644 if test "${ac_cv_prog_JADE+set}" = set; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647   if test -n "$JADE"; then
17648   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17649 else
17650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17651 for as_dir in $PATH
17652 do
17653   IFS=$as_save_IFS
17654   test -z "$as_dir" && as_dir=.
17655   for ac_exec_ext in '' $ac_executable_extensions; do
17656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17657     ac_cv_prog_JADE="$ac_prog"
17658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17659     break 2
17660   fi
17661 done
17662 done
17663
17664 fi
17665 fi
17666 JADE=$ac_cv_prog_JADE
17667 if test -n "$JADE"; then
17668   echo "$as_me:$LINENO: result: $JADE" >&5
17669 echo "${ECHO_T}$JADE" >&6
17670 else
17671   echo "$as_me:$LINENO: result: no" >&5
17672 echo "${ECHO_T}no" >&6
17673 fi
17674
17675   test -n "$JADE" && break
17676 done
17677
17678
17679 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17680 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17681 if test "${pgac_cv_check_docbook+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684   cat >conftest.sgml <<EOF
17685 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17686 <book>
17687  <title>test</title>
17688  <chapter>
17689   <title>random</title>
17690    <sect1>
17691     <title>testsect</title>
17692     <para>text</para>
17693   </sect1>
17694  </chapter>
17695 </book>
17696 EOF
17697
17698 pgac_cv_check_docbook=no
17699
17700 if test -n "$NSGMLS"; then
17701   $NSGMLS -s conftest.sgml 1>&5 2>&1
17702   if test $? -eq 0; then
17703     pgac_cv_check_docbook=yes
17704   fi
17705 fi
17706 rm -f conftest.sgml
17707 fi
17708 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17709 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17710
17711 have_docbook=$pgac_cv_check_docbook
17712
17713
17714 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17715 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17716 if test "${pgac_cv_path_stylesheets+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719   if test -n "$DOCBOOKSTYLE"; then
17720   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17721 else
17722   for pgac_prefix in /usr /usr/local /opt; do
17723     for pgac_infix in share lib; do
17724       for pgac_postfix in \
17725         sgml/stylesheets/nwalsh-modular \
17726         sgml/stylesheets/docbook \
17727                 sgml/docbook-dsssl \
17728         sgml/docbook/dsssl/modular \
17729         sgml/docbook/stylesheet/dsssl/modular \
17730         sgml/docbook/dsssl-stylesheets
17731       do
17732         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17733         if test -r "$pgac_candidate/html/docbook.dsl" \
17734            && test -r "$pgac_candidate/print/docbook.dsl"
17735         then
17736           pgac_cv_path_stylesheets=$pgac_candidate
17737           break 3
17738         fi
17739       done
17740     done
17741   done
17742 fi
17743 fi
17744
17745 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17746
17747 if test -n "$DOCBOOKSTYLE"; then
17748   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17749 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17750 else
17751   echo "$as_me:$LINENO: result: no" >&5
17752 echo "${ECHO_T}no" >&6
17753 fi
17754 if test -n "$DOCBOOKSTYLE"; then
17755   for ac_prog in collateindex.pl
17756 do
17757   # Extract the first word of "$ac_prog", so it can be a program name with args.
17758 set dummy $ac_prog; ac_word=$2
17759 echo "$as_me:$LINENO: checking for $ac_word" >&5
17760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17761 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   case $COLLATEINDEX in
17765   [\\/]* | ?:[\\/]*)
17766   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17767   ;;
17768   *)
17769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $DOCBOOKSTYLE/bin $PATH
17771 do
17772   IFS=$as_save_IFS
17773   test -z "$as_dir" && as_dir=.
17774   for ac_exec_ext in '' $ac_executable_extensions; do
17775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17776     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17778     break 2
17779   fi
17780 done
17781 done
17782
17783   ;;
17784 esac
17785 fi
17786 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17787
17788 if test -n "$COLLATEINDEX"; then
17789   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17790 echo "${ECHO_T}$COLLATEINDEX" >&6
17791 else
17792   echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6
17794 fi
17795
17796   test -n "$COLLATEINDEX" && break
17797 done
17798
17799 else
17800   for ac_prog in collateindex.pl
17801 do
17802   # Extract the first word of "$ac_prog", so it can be a program name with args.
17803 set dummy $ac_prog; ac_word=$2
17804 echo "$as_me:$LINENO: checking for $ac_word" >&5
17805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17806 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   case $COLLATEINDEX in
17810   [\\/]* | ?:[\\/]*)
17811   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17812   ;;
17813   *)
17814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17815 for as_dir in $PATH
17816 do
17817   IFS=$as_save_IFS
17818   test -z "$as_dir" && as_dir=.
17819   for ac_exec_ext in '' $ac_executable_extensions; do
17820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17821     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17823     break 2
17824   fi
17825 done
17826 done
17827
17828   ;;
17829 esac
17830 fi
17831 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17832
17833 if test -n "$COLLATEINDEX"; then
17834   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17835 echo "${ECHO_T}$COLLATEINDEX" >&6
17836 else
17837   echo "$as_me:$LINENO: result: no" >&5
17838 echo "${ECHO_T}no" >&6
17839 fi
17840
17841   test -n "$COLLATEINDEX" && break
17842 done
17843
17844 fi
17845 for ac_prog in sgmlspl
17846 do
17847   # Extract the first word of "$ac_prog", so it can be a program name with args.
17848 set dummy $ac_prog; ac_word=$2
17849 echo "$as_me:$LINENO: checking for $ac_word" >&5
17850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17851 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   if test -n "$SGMLSPL"; then
17855   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17856 else
17857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17858 for as_dir in $PATH
17859 do
17860   IFS=$as_save_IFS
17861   test -z "$as_dir" && as_dir=.
17862   for ac_exec_ext in '' $ac_executable_extensions; do
17863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17864     ac_cv_prog_SGMLSPL="$ac_prog"
17865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17866     break 2
17867   fi
17868 done
17869 done
17870
17871 fi
17872 fi
17873 SGMLSPL=$ac_cv_prog_SGMLSPL
17874 if test -n "$SGMLSPL"; then
17875   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17876 echo "${ECHO_T}$SGMLSPL" >&6
17877 else
17878   echo "$as_me:$LINENO: result: no" >&5
17879 echo "${ECHO_T}no" >&6
17880 fi
17881
17882   test -n "$SGMLSPL" && break
17883 done
17884
17885
17886 # Thread testing
17887
17888 # We have to run the thread test near the end so we have all our symbols
17889 # defined.  Cross compiling throws a warning.
17890 #
17891 if test "$enable_thread_safety" = yes; then
17892 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
17893 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
17894
17895 _CFLAGS="$CFLAGS"
17896 _LIBS="$LIBS"
17897 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
17898 LIBS="$LIBS $PTHREAD_LIBS"
17899 if test "$cross_compiling" = yes; then
17900   echo "$as_me:$LINENO: result: maybe" >&5
17901 echo "${ECHO_T}maybe" >&6
17902   { echo "$as_me:$LINENO: WARNING:
17903 *** Skipping thread test program because of cross-compile build.
17904 *** Run the program in src/tools/thread on the target matchine.
17905 " >&5
17906 echo "$as_me: WARNING:
17907 *** Skipping thread test program because of cross-compile build.
17908 *** Run the program in src/tools/thread on the target matchine.
17909 " >&2;}
17910 else
17911   cat >conftest.$ac_ext <<_ACEOF
17912 #line $LINENO "configure"
17913 #include "confdefs.h"
17914 #include "$srcdir/src/tools/thread/thread_test.c"
17915 _ACEOF
17916 rm -f conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918   (eval $ac_link) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923   (eval $ac_try) 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   echo "$as_me:$LINENO: result: yes" >&5
17928 echo "${ECHO_T}yes" >&6
17929 else
17930   echo "$as_me: program exited with status $ac_status" >&5
17931 echo "$as_me: failed program was:" >&5
17932 cat conftest.$ac_ext >&5
17933 ( exit $ac_status )
17934 echo "$as_me:$LINENO: result: no" >&5
17935 echo "${ECHO_T}no" >&6
17936   { { echo "$as_me:$LINENO: error:
17937 *** Thread test program failed.  Your platform is not thread-safe.
17938 *** Check the file 'config.log'for the exact reason." >&5
17939 echo "$as_me: error:
17940 *** Thread test program failed.  Your platform is not thread-safe.
17941 *** Check the file 'config.log'for the exact reason." >&2;}
17942    { (exit 1); exit 1; }; }
17943 fi
17944 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17945 fi
17946 CFLAGS="$_CFLAGS"
17947 LIBS="$_LIBS"
17948 fi
17949
17950 # prepare build tree if outside source tree
17951 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17952 # Note 2: /bin/pwd might be better than shell's built-in at getting
17953 #         a symlink-free name.
17954 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17955   vpath_build=no
17956 else
17957   vpath_build=yes
17958   if test "$no_create" != yes; then
17959     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17960     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17961     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17962       || { { echo "$as_me:$LINENO: error: failed" >&5
17963 echo "$as_me: error: failed" >&2;}
17964    { (exit 1); exit 1; }; }
17965     echo "$as_me:$LINENO: result: done" >&5
17966 echo "${ECHO_T}done" >&6
17967   fi
17968 fi
17969
17970
17971
17972 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17973
17974
17975 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}"
17976
17977
17978 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17979
17980
17981 cat >confcache <<\_ACEOF
17982 # This file is a shell script that caches the results of configure
17983 # tests run on this system so they can be shared between configure
17984 # scripts and configure runs, see configure's option --config-cache.
17985 # It is not useful on other systems.  If it contains results you don't
17986 # want to keep, you may remove or edit it.
17987 #
17988 # config.status only pays attention to the cache file if you give it
17989 # the --recheck option to rerun configure.
17990 #
17991 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17993 # following values.
17994
17995 _ACEOF
17996
17997 # The following way of writing the cache mishandles newlines in values,
17998 # but we know of no workaround that is simple, portable, and efficient.
17999 # So, don't put newlines in cache variables' values.
18000 # Ultrix sh set writes to stderr and can't be redirected directly,
18001 # and sets the high bit in the cache file unless we assign to the vars.
18002 {
18003   (set) 2>&1 |
18004     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18005     *ac_space=\ *)
18006       # `set' does not quote correctly, so add quotes (double-quote
18007       # substitution turns \\\\ into \\, and sed turns \\ into \).
18008       sed -n \
18009         "s/'/'\\\\''/g;
18010           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18011       ;;
18012     *)
18013       # `set' quotes correctly as required by POSIX, so do not add quotes.
18014       sed -n \
18015         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18016       ;;
18017     esac;
18018 } |
18019   sed '
18020      t clear
18021      : clear
18022      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18023      t end
18024      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18025      : end' >>confcache
18026 if cmp -s $cache_file confcache; then :; else
18027   if test -w $cache_file; then
18028     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18029     cat confcache >$cache_file
18030   else
18031     echo "not updating unwritable cache $cache_file"
18032   fi
18033 fi
18034 rm -f confcache
18035
18036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18037 # Let make expand exec_prefix.
18038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18039
18040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18042 # trailing colons and then remove the whole line if VPATH becomes empty
18043 # (actually we leave an empty line to preserve line numbers).
18044 if test "x$srcdir" = x.; then
18045   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18046 s/:*\$(srcdir):*/:/;
18047 s/:*\${srcdir}:*/:/;
18048 s/:*@srcdir@:*/:/;
18049 s/^\([^=]*=[    ]*\):*/\1/;
18050 s/:*$//;
18051 s/^[^=]*=[      ]*$//;
18052 }'
18053 fi
18054
18055 DEFS=-DHAVE_CONFIG_H
18056
18057
18058 : ${CONFIG_STATUS=./config.status}
18059 ac_clean_files_save=$ac_clean_files
18060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18063 cat >$CONFIG_STATUS <<_ACEOF
18064 #! $SHELL
18065 # Generated by $as_me.
18066 # Run this file to recreate the current configuration.
18067 # Compiler output produced by configure, useful for debugging
18068 # configure, is in config.log if it exists.
18069
18070 debug=false
18071 SHELL=\${CONFIG_SHELL-$SHELL}
18072 _ACEOF
18073
18074 cat >>$CONFIG_STATUS <<\_ACEOF
18075
18076 ## --------------------- ##
18077 ## M4sh Initialization.  ##
18078 ## --------------------- ##
18079
18080 # Be Bourne compatible
18081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18082   emulate sh
18083   NULLCMD=:
18084 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18085   set -o posix
18086 fi
18087
18088 # NLS nuisances.
18089 # Support unset when possible.
18090 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18091   as_unset=unset
18092 else
18093   as_unset=false
18094 fi
18095
18096 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18097     { $as_unset LANG || test "${LANG+set}" != set; } ||
18098       { LANG=C; export LANG; }
18099 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18100     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18101       { LC_ALL=C; export LC_ALL; }
18102 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18103     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18104       { LC_TIME=C; export LC_TIME; }
18105 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18106     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18107       { LC_CTYPE=C; export LC_CTYPE; }
18108 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18109     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18110       { LANGUAGE=C; export LANGUAGE; }
18111 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18112     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18113       { LC_COLLATE=C; export LC_COLLATE; }
18114 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18115     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18116       { LC_NUMERIC=C; export LC_NUMERIC; }
18117 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18118     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18119       { LC_MESSAGES=C; export LC_MESSAGES; }
18120
18121
18122 # Name of the executable.
18123 as_me=`(basename "$0") 2>/dev/null ||
18124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18125          X"$0" : 'X\(//\)$' \| \
18126          X"$0" : 'X\(/\)$' \| \
18127          .     : '\(.\)' 2>/dev/null ||
18128 echo X/"$0" |
18129     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18130           /^X\/\(\/\/\)$/{ s//\1/; q; }
18131           /^X\/\(\/\).*/{ s//\1/; q; }
18132           s/.*/./; q'`
18133
18134 # PATH needs CR, and LINENO needs CR and PATH.
18135 # Avoid depending upon Character Ranges.
18136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18139 as_cr_digits='0123456789'
18140 as_cr_alnum=$as_cr_Letters$as_cr_digits
18141
18142 # The user is always right.
18143 if test "${PATH_SEPARATOR+set}" != set; then
18144   echo "#! /bin/sh" >conftest.sh
18145   echo  "exit 0"   >>conftest.sh
18146   chmod +x conftest.sh
18147   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18148     PATH_SEPARATOR=';'
18149   else
18150     PATH_SEPARATOR=:
18151   fi
18152   rm -f conftest.sh
18153 fi
18154
18155
18156   as_lineno_1=$LINENO
18157   as_lineno_2=$LINENO
18158   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18159   test "x$as_lineno_1" != "x$as_lineno_2" &&
18160   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18161   # Find who we are.  Look in the path if we contain no path at all
18162   # relative or not.
18163   case $0 in
18164     *[\\/]* ) as_myself=$0 ;;
18165     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166 for as_dir in $PATH
18167 do
18168   IFS=$as_save_IFS
18169   test -z "$as_dir" && as_dir=.
18170   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18171 done
18172
18173        ;;
18174   esac
18175   # We did not find ourselves, most probably we were run as `sh COMMAND'
18176   # in which case we are not to be found in the path.
18177   if test "x$as_myself" = x; then
18178     as_myself=$0
18179   fi
18180   if test ! -f "$as_myself"; then
18181     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18182 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18183    { (exit 1); exit 1; }; }
18184   fi
18185   case $CONFIG_SHELL in
18186   '')
18187     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18189 do
18190   IFS=$as_save_IFS
18191   test -z "$as_dir" && as_dir=.
18192   for as_base in sh bash ksh sh5; do
18193          case $as_dir in
18194          /*)
18195            if ("$as_dir/$as_base" -c '
18196   as_lineno_1=$LINENO
18197   as_lineno_2=$LINENO
18198   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18199   test "x$as_lineno_1" != "x$as_lineno_2" &&
18200   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18201              CONFIG_SHELL=$as_dir/$as_base
18202              export CONFIG_SHELL
18203              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18204            fi;;
18205          esac
18206        done
18207 done
18208 ;;
18209   esac
18210
18211   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18212   # uniformly replaced by the line number.  The first 'sed' inserts a
18213   # line-number line before each line; the second 'sed' does the real
18214   # work.  The second script uses 'N' to pair each line-number line
18215   # with the numbered line, and appends trailing '-' during
18216   # substitution so that $LINENO is not a special case at line end.
18217   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18218   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18219   sed '=' <$as_myself |
18220     sed '
18221       N
18222       s,$,-,
18223       : loop
18224       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18225       t loop
18226       s,-$,,
18227       s,^['$as_cr_digits']*\n,,
18228     ' >$as_me.lineno &&
18229   chmod +x $as_me.lineno ||
18230     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18232    { (exit 1); exit 1; }; }
18233
18234   # Don't try to exec as it changes $[0], causing all sort of problems
18235   # (the dirname of $[0] is not the place where we might find the
18236   # original and so on.  Autoconf is especially sensible to this).
18237   . ./$as_me.lineno
18238   # Exit status is that of the last command.
18239   exit
18240 }
18241
18242
18243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18244   *c*,-n*) ECHO_N= ECHO_C='
18245 ' ECHO_T='      ' ;;
18246   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18247   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18248 esac
18249
18250 if expr a : '\(a\)' >/dev/null 2>&1; then
18251   as_expr=expr
18252 else
18253   as_expr=false
18254 fi
18255
18256 rm -f conf$$ conf$$.exe conf$$.file
18257 echo >conf$$.file
18258 if ln -s conf$$.file conf$$ 2>/dev/null; then
18259   # We could just check for DJGPP; but this test a) works b) is more generic
18260   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18261   if test -f conf$$.exe; then
18262     # Don't use ln at all; we don't have any links
18263     as_ln_s='cp -p'
18264   else
18265     as_ln_s='ln -s'
18266   fi
18267 elif ln conf$$.file conf$$ 2>/dev/null; then
18268   as_ln_s=ln
18269 else
18270   as_ln_s='cp -p'
18271 fi
18272 rm -f conf$$ conf$$.exe conf$$.file
18273
18274 as_executable_p="test -f"
18275
18276 # Sed expression to map a string onto a valid CPP name.
18277 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18278
18279 # Sed expression to map a string onto a valid variable name.
18280 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18281
18282
18283 # IFS
18284 # We need space, tab and new line, in precisely that order.
18285 as_nl='
18286 '
18287 IFS="   $as_nl"
18288
18289 # CDPATH.
18290 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18291
18292 exec 6>&1
18293
18294 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18295 # report actual input values of CONFIG_FILES etc. instead of their
18296 # values after options handling.  Logging --version etc. is OK.
18297 exec 5>>config.log
18298 {
18299   echo
18300   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18301 ## Running $as_me. ##
18302 _ASBOX
18303 } >&5
18304 cat >&5 <<_CSEOF
18305
18306 This file was extended by PostgreSQL $as_me 7.5devel, which was
18307 generated by GNU Autoconf 2.53.  Invocation command line was
18308
18309   CONFIG_FILES    = $CONFIG_FILES
18310   CONFIG_HEADERS  = $CONFIG_HEADERS
18311   CONFIG_LINKS    = $CONFIG_LINKS
18312   CONFIG_COMMANDS = $CONFIG_COMMANDS
18313   $ $0 $@
18314
18315 _CSEOF
18316 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18317 echo >&5
18318 _ACEOF
18319
18320 # Files that config.status was made for.
18321 if test -n "$ac_config_files"; then
18322   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18323 fi
18324
18325 if test -n "$ac_config_headers"; then
18326   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18327 fi
18328
18329 if test -n "$ac_config_links"; then
18330   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18331 fi
18332
18333 if test -n "$ac_config_commands"; then
18334   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18335 fi
18336
18337 cat >>$CONFIG_STATUS <<\_ACEOF
18338
18339 ac_cs_usage="\
18340 \`$as_me' instantiates files from templates according to the
18341 current configuration.
18342
18343 Usage: $0 [OPTIONS] [FILE]...
18344
18345   -h, --help       print this help, then exit
18346   -V, --version    print version number, then exit
18347   -d, --debug      don't remove temporary files
18348       --recheck    update $as_me by reconfiguring in the same conditions
18349   --file=FILE[:TEMPLATE]
18350                    instantiate the configuration file FILE
18351   --header=FILE[:TEMPLATE]
18352                    instantiate the configuration header FILE
18353
18354 Configuration files:
18355 $config_files
18356
18357 Configuration headers:
18358 $config_headers
18359
18360 Configuration links:
18361 $config_links
18362
18363 Report bugs to <bug-autoconf@gnu.org>."
18364 _ACEOF
18365
18366 cat >>$CONFIG_STATUS <<_ACEOF
18367 ac_cs_version="\\
18368 PostgreSQL config.status 7.5devel
18369 configured by $0, generated by GNU Autoconf 2.53,
18370   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18371
18372 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18373 Free Software Foundation, Inc.
18374 This config.status script is free software; the Free Software Foundation
18375 gives unlimited permission to copy, distribute and modify it."
18376 srcdir=$srcdir
18377 _ACEOF
18378
18379 cat >>$CONFIG_STATUS <<\_ACEOF
18380 # If no file are specified by the user, then we need to provide default
18381 # value.  By we need to know if files were specified by the user.
18382 ac_need_defaults=:
18383 while test $# != 0
18384 do
18385   case $1 in
18386   --*=*)
18387     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18388     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18389     shift
18390     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18391     shift
18392     ;;
18393   -*);;
18394   *) # This is not an option, so the user has probably given explicit
18395      # arguments.
18396      ac_need_defaults=false;;
18397   esac
18398
18399   case $1 in
18400   # Handling of the options.
18401 _ACEOF
18402 cat >>$CONFIG_STATUS <<_ACEOF
18403   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18404     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18405     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18406 _ACEOF
18407 cat >>$CONFIG_STATUS <<\_ACEOF
18408   --version | --vers* | -V )
18409     echo "$ac_cs_version"; exit 0 ;;
18410   --he | --h)
18411     # Conflict between --help and --header
18412     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18413 Try \`$0 --help' for more information." >&5
18414 echo "$as_me: error: ambiguous option: $1
18415 Try \`$0 --help' for more information." >&2;}
18416    { (exit 1); exit 1; }; };;
18417   --help | --hel | -h )
18418     echo "$ac_cs_usage"; exit 0 ;;
18419   --debug | --d* | -d )
18420     debug=: ;;
18421   --file | --fil | --fi | --f )
18422     shift
18423     CONFIG_FILES="$CONFIG_FILES $1"
18424     ac_need_defaults=false;;
18425   --header | --heade | --head | --hea )
18426     shift
18427     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18428     ac_need_defaults=false;;
18429
18430   # This is an error.
18431   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18432 Try \`$0 --help' for more information." >&5
18433 echo "$as_me: error: unrecognized option: $1
18434 Try \`$0 --help' for more information." >&2;}
18435    { (exit 1); exit 1; }; } ;;
18436
18437   *) ac_config_targets="$ac_config_targets $1" ;;
18438
18439   esac
18440   shift
18441 done
18442
18443 _ACEOF
18444
18445
18446
18447
18448
18449 cat >>$CONFIG_STATUS <<\_ACEOF
18450 for ac_config_target in $ac_config_targets
18451 do
18452   case "$ac_config_target" in
18453   # Handling of arguments.
18454   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18455   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18456   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18457   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18458   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18459   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18460   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18461   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18462   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18463   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18464   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18465 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18466    { (exit 1); exit 1; }; };;
18467   esac
18468 done
18469
18470 # If the user did not use the arguments to specify the items to instantiate,
18471 # then the envvar interface is used.  Set only those that are not.
18472 # We use the long form for the default assignment because of an extremely
18473 # bizarre bug on SunOS 4.1.3.
18474 if $ac_need_defaults; then
18475   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18476   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18477   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18478 fi
18479
18480 # Create a temporary directory, and hook for its removal unless debugging.
18481 $debug ||
18482 {
18483   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18484   trap '{ (exit 1); exit 1; }' 1 2 13 15
18485 }
18486
18487 # Create a (secure) tmp directory for tmp files.
18488 : ${TMPDIR=/tmp}
18489 {
18490   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18491   test -n "$tmp" && test -d "$tmp"
18492 }  ||
18493 {
18494   tmp=$TMPDIR/cs$$-$RANDOM
18495   (umask 077 && mkdir $tmp)
18496 } ||
18497 {
18498    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18499    { (exit 1); exit 1; }
18500 }
18501
18502 _ACEOF
18503
18504 cat >>$CONFIG_STATUS <<_ACEOF
18505
18506 #
18507 # CONFIG_FILES section.
18508 #
18509
18510 # No need to generate the scripts if there are no CONFIG_FILES.
18511 # This happens for instance when ./config.status config.h
18512 if test -n "\$CONFIG_FILES"; then
18513   # Protect against being on the right side of a sed subst in config.status.
18514   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18515    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18516 s,@SHELL@,$SHELL,;t t
18517 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18518 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18519 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18520 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18521 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18522 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18523 s,@exec_prefix@,$exec_prefix,;t t
18524 s,@prefix@,$prefix,;t t
18525 s,@program_transform_name@,$program_transform_name,;t t
18526 s,@bindir@,$bindir,;t t
18527 s,@sbindir@,$sbindir,;t t
18528 s,@libexecdir@,$libexecdir,;t t
18529 s,@datadir@,$datadir,;t t
18530 s,@sysconfdir@,$sysconfdir,;t t
18531 s,@sharedstatedir@,$sharedstatedir,;t t
18532 s,@localstatedir@,$localstatedir,;t t
18533 s,@libdir@,$libdir,;t t
18534 s,@includedir@,$includedir,;t t
18535 s,@oldincludedir@,$oldincludedir,;t t
18536 s,@infodir@,$infodir,;t t
18537 s,@mandir@,$mandir,;t t
18538 s,@build_alias@,$build_alias,;t t
18539 s,@host_alias@,$host_alias,;t t
18540 s,@target_alias@,$target_alias,;t t
18541 s,@DEFS@,$DEFS,;t t
18542 s,@ECHO_C@,$ECHO_C,;t t
18543 s,@ECHO_N@,$ECHO_N,;t t
18544 s,@ECHO_T@,$ECHO_T,;t t
18545 s,@LIBS@,$LIBS,;t t
18546 s,@configure_args@,$configure_args,;t t
18547 s,@build@,$build,;t t
18548 s,@build_cpu@,$build_cpu,;t t
18549 s,@build_vendor@,$build_vendor,;t t
18550 s,@build_os@,$build_os,;t t
18551 s,@host@,$host,;t t
18552 s,@host_cpu@,$host_cpu,;t t
18553 s,@host_vendor@,$host_vendor,;t t
18554 s,@host_os@,$host_os,;t t
18555 s,@PORTNAME@,$PORTNAME,;t t
18556 s,@docdir@,$docdir,;t t
18557 s,@enable_nls@,$enable_nls,;t t
18558 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18559 s,@default_port@,$default_port,;t t
18560 s,@enable_shared@,$enable_shared,;t t
18561 s,@enable_rpath@,$enable_rpath,;t t
18562 s,@enable_debug@,$enable_debug,;t t
18563 s,@CC@,$CC,;t t
18564 s,@CFLAGS@,$CFLAGS,;t t
18565 s,@LDFLAGS@,$LDFLAGS,;t t
18566 s,@CPPFLAGS@,$CPPFLAGS,;t t
18567 s,@ac_ct_CC@,$ac_ct_CC,;t t
18568 s,@EXEEXT@,$EXEEXT,;t t
18569 s,@OBJEXT@,$OBJEXT,;t t
18570 s,@CPP@,$CPP,;t t
18571 s,@GCC@,$GCC,;t t
18572 s,@TAS@,$TAS,;t t
18573 s,@autodepend@,$autodepend,;t t
18574 s,@INCLUDES@,$INCLUDES,;t t
18575 s,@enable_thread_safety@,$enable_thread_safety,;t t
18576 s,@with_tcl@,$with_tcl,;t t
18577 s,@with_perl@,$with_perl,;t t
18578 s,@with_python@,$with_python,;t t
18579 s,@with_krb4@,$with_krb4,;t t
18580 s,@with_krb5@,$with_krb5,;t t
18581 s,@krb_srvtab@,$krb_srvtab,;t t
18582 s,@with_pam@,$with_pam,;t t
18583 s,@with_rendezvous@,$with_rendezvous,;t t
18584 s,@with_openssl@,$with_openssl,;t t
18585 s,@ELF_SYS@,$ELF_SYS,;t t
18586 s,@AWK@,$AWK,;t t
18587 s,@FLEX@,$FLEX,;t t
18588 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18589 s,@LN_S@,$LN_S,;t t
18590 s,@LD@,$LD,;t t
18591 s,@with_gnu_ld@,$with_gnu_ld,;t t
18592 s,@ld_R_works@,$ld_R_works,;t t
18593 s,@RANLIB@,$RANLIB,;t t
18594 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18595 s,@LORDER@,$LORDER,;t t
18596 s,@TAR@,$TAR,;t t
18597 s,@STRIP@,$STRIP,;t t
18598 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18599 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18600 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18601 s,@YACC@,$YACC,;t t
18602 s,@YFLAGS@,$YFLAGS,;t t
18603 s,@PERL@,$PERL,;t t
18604 s,@perl_archlibexp@,$perl_archlibexp,;t t
18605 s,@perl_privlibexp@,$perl_privlibexp,;t t
18606 s,@perl_useshrplib@,$perl_useshrplib,;t t
18607 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18608 s,@PYTHON@,$PYTHON,;t t
18609 s,@python_prefix@,$python_prefix,;t t
18610 s,@python_execprefix@,$python_execprefix,;t t
18611 s,@python_configdir@,$python_configdir,;t t
18612 s,@python_includespec@,$python_includespec,;t t
18613 s,@python_libspec@,$python_libspec,;t t
18614 s,@LIBOBJS@,$LIBOBJS,;t t
18615 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18616 s,@USE_PGTZ@,$USE_PGTZ,;t t
18617 s,@acx_pthread_config@,$acx_pthread_config,;t t
18618 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
18619 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
18620 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
18621 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18622 s,@MSGFMT@,$MSGFMT,;t t
18623 s,@MSGMERGE@,$MSGMERGE,;t t
18624 s,@XGETTEXT@,$XGETTEXT,;t t
18625 s,@localedir@,$localedir,;t t
18626 s,@TCLSH@,$TCLSH,;t t
18627 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18628 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18629 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18630 s,@TCL_LIBS@,$TCL_LIBS,;t t
18631 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18632 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18633 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18634 s,@NSGMLS@,$NSGMLS,;t t
18635 s,@JADE@,$JADE,;t t
18636 s,@have_docbook@,$have_docbook,;t t
18637 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18638 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18639 s,@SGMLSPL@,$SGMLSPL,;t t
18640 s,@vpath_build@,$vpath_build,;t t
18641 CEOF
18642
18643 _ACEOF
18644
18645   cat >>$CONFIG_STATUS <<\_ACEOF
18646   # Split the substitutions into bite-sized pieces for seds with
18647   # small command number limits, like on Digital OSF/1 and HP-UX.
18648   ac_max_sed_lines=48
18649   ac_sed_frag=1 # Number of current file.
18650   ac_beg=1 # First line for current file.
18651   ac_end=$ac_max_sed_lines # Line after last line for current file.
18652   ac_more_lines=:
18653   ac_sed_cmds=
18654   while $ac_more_lines; do
18655     if test $ac_beg -gt 1; then
18656       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18657     else
18658       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18659     fi
18660     if test ! -s $tmp/subs.frag; then
18661       ac_more_lines=false
18662     else
18663       # The purpose of the label and of the branching condition is to
18664       # speed up the sed processing (if there are no `@' at all, there
18665       # is no need to browse any of the substitutions).
18666       # These are the two extra sed commands mentioned above.
18667       (echo ':t
18668   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18669       if test -z "$ac_sed_cmds"; then
18670         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18671       else
18672         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18673       fi
18674       ac_sed_frag=`expr $ac_sed_frag + 1`
18675       ac_beg=$ac_end
18676       ac_end=`expr $ac_end + $ac_max_sed_lines`
18677     fi
18678   done
18679   if test -z "$ac_sed_cmds"; then
18680     ac_sed_cmds=cat
18681   fi
18682 fi # test -n "$CONFIG_FILES"
18683
18684 _ACEOF
18685 cat >>$CONFIG_STATUS <<\_ACEOF
18686 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18687   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18688   case $ac_file in
18689   - | *:- | *:-:* ) # input from stdin
18690         cat >$tmp/stdin
18691         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18692         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18693   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18694         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18695   * )   ac_file_in=$ac_file.in ;;
18696   esac
18697
18698   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18699   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701          X"$ac_file" : 'X\(//\)[^/]' \| \
18702          X"$ac_file" : 'X\(//\)$' \| \
18703          X"$ac_file" : 'X\(/\)' \| \
18704          .     : '\(.\)' 2>/dev/null ||
18705 echo X"$ac_file" |
18706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18708           /^X\(\/\/\)$/{ s//\1/; q; }
18709           /^X\(\/\).*/{ s//\1/; q; }
18710           s/.*/./; q'`
18711   { case "$ac_dir" in
18712   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18713   *)                      as_incr_dir=.;;
18714 esac
18715 as_dummy="$ac_dir"
18716 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18717   case $as_mkdir_dir in
18718     # Skip DOS drivespec
18719     ?:) as_incr_dir=$as_mkdir_dir ;;
18720     *)
18721       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18722       test -d "$as_incr_dir" ||
18723         mkdir "$as_incr_dir" ||
18724         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18725 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18726    { (exit 1); exit 1; }; }
18727     ;;
18728   esac
18729 done; }
18730
18731   ac_builddir=.
18732
18733 if test "$ac_dir" != .; then
18734   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18735   # A "../" for each directory in $ac_dir_suffix.
18736   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18737 else
18738   ac_dir_suffix= ac_top_builddir=
18739 fi
18740
18741 case $srcdir in
18742   .)  # No --srcdir option.  We are building in place.
18743     ac_srcdir=.
18744     if test -z "$ac_top_builddir"; then
18745        ac_top_srcdir=.
18746     else
18747        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18748     fi ;;
18749   [\\/]* | ?:[\\/]* )  # Absolute path.
18750     ac_srcdir=$srcdir$ac_dir_suffix;
18751     ac_top_srcdir=$srcdir ;;
18752   *) # Relative path.
18753     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18754     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18755 esac
18756 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18757 # absolute.
18758 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18759 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18760 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18761 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18762
18763
18764
18765   if test x"$ac_file" != x-; then
18766     { echo "$as_me:$LINENO: creating $ac_file" >&5
18767 echo "$as_me: creating $ac_file" >&6;}
18768     rm -f "$ac_file"
18769   fi
18770   # Let's still pretend it is `configure' which instantiates (i.e., don't
18771   # use $as_me), people would be surprised to read:
18772   #    /* config.h.  Generated by config.status.  */
18773   if test x"$ac_file" = x-; then
18774     configure_input=
18775   else
18776     configure_input="$ac_file.  "
18777   fi
18778   configure_input=$configure_input"Generated from `echo $ac_file_in |
18779                                      sed 's,.*/,,'` by configure."
18780
18781   # First look for the input files in the build tree, otherwise in the
18782   # src tree.
18783   ac_file_inputs=`IFS=:
18784     for f in $ac_file_in; do
18785       case $f in
18786       -) echo $tmp/stdin ;;
18787       [\\/$]*)
18788          # Absolute (can't be DOS-style, as IFS=:)
18789          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18790 echo "$as_me: error: cannot find input file: $f" >&2;}
18791    { (exit 1); exit 1; }; }
18792          echo $f;;
18793       *) # Relative
18794          if test -f "$f"; then
18795            # Build tree
18796            echo $f
18797          elif test -f "$srcdir/$f"; then
18798            # Source tree
18799            echo $srcdir/$f
18800          else
18801            # /dev/null tree
18802            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18803 echo "$as_me: error: cannot find input file: $f" >&2;}
18804    { (exit 1); exit 1; }; }
18805          fi;;
18806       esac
18807     done` || { (exit 1); exit 1; }
18808 _ACEOF
18809 cat >>$CONFIG_STATUS <<_ACEOF
18810   sed "$ac_vpsub
18811 $extrasub
18812 _ACEOF
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 :t
18815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18816 s,@configure_input@,$configure_input,;t t
18817 s,@srcdir@,$ac_srcdir,;t t
18818 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18819 s,@top_srcdir@,$ac_top_srcdir,;t t
18820 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18821 s,@builddir@,$ac_builddir,;t t
18822 s,@abs_builddir@,$ac_abs_builddir,;t t
18823 s,@top_builddir@,$ac_top_builddir,;t t
18824 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18825 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18826   rm -f $tmp/stdin
18827   if test x"$ac_file" != x-; then
18828     mv $tmp/out $ac_file
18829   else
18830     cat $tmp/out
18831     rm -f $tmp/out
18832   fi
18833
18834 done
18835 _ACEOF
18836 cat >>$CONFIG_STATUS <<\_ACEOF
18837
18838 #
18839 # CONFIG_HEADER section.
18840 #
18841
18842 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18843 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18844 #
18845 # ac_d sets the value in "#define NAME VALUE" lines.
18846 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18847 ac_dB='[        ].*$,\1#\2'
18848 ac_dC=' '
18849 ac_dD=',;t'
18850 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18851 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18852 ac_uB='$,\1#\2define\3'
18853 ac_uC=' '
18854 ac_uD=',;t'
18855
18856 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18857   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18858   case $ac_file in
18859   - | *:- | *:-:* ) # input from stdin
18860         cat >$tmp/stdin
18861         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18862         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18863   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18864         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18865   * )   ac_file_in=$ac_file.in ;;
18866   esac
18867
18868   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18869 echo "$as_me: creating $ac_file" >&6;}
18870
18871   # First look for the input files in the build tree, otherwise in the
18872   # src tree.
18873   ac_file_inputs=`IFS=:
18874     for f in $ac_file_in; do
18875       case $f in
18876       -) echo $tmp/stdin ;;
18877       [\\/$]*)
18878          # Absolute (can't be DOS-style, as IFS=:)
18879          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18880 echo "$as_me: error: cannot find input file: $f" >&2;}
18881    { (exit 1); exit 1; }; }
18882          echo $f;;
18883       *) # Relative
18884          if test -f "$f"; then
18885            # Build tree
18886            echo $f
18887          elif test -f "$srcdir/$f"; then
18888            # Source tree
18889            echo $srcdir/$f
18890          else
18891            # /dev/null tree
18892            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18893 echo "$as_me: error: cannot find input file: $f" >&2;}
18894    { (exit 1); exit 1; }; }
18895          fi;;
18896       esac
18897     done` || { (exit 1); exit 1; }
18898   # Remove the trailing spaces.
18899   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18900
18901 _ACEOF
18902
18903 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18904 # `conftest.undefs', that substitutes the proper values into
18905 # config.h.in to produce config.h.  The first handles `#define'
18906 # templates, and the second `#undef' templates.
18907 # And first: Protect against being on the right side of a sed subst in
18908 # config.status.  Protect against being in an unquoted here document
18909 # in config.status.
18910 rm -f conftest.defines conftest.undefs
18911 # Using a here document instead of a string reduces the quoting nightmare.
18912 # Putting comments in sed scripts is not portable.
18913 #
18914 # `end' is used to avoid that the second main sed command (meant for
18915 # 0-ary CPP macros) applies to n-ary macro definitions.
18916 # See the Autoconf documentation for `clear'.
18917 cat >confdef2sed.sed <<\_ACEOF
18918 s/[\\&,]/\\&/g
18919 s,[\\$`],\\&,g
18920 t clear
18921 : clear
18922 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18923 t end
18924 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18925 : end
18926 _ACEOF
18927 # If some macros were called several times there might be several times
18928 # the same #defines, which is useless.  Nevertheless, we may not want to
18929 # sort them, since we want the *last* AC-DEFINE to be honored.
18930 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18931 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18932 rm -f confdef2sed.sed
18933
18934 # This sed command replaces #undef with comments.  This is necessary, for
18935 # example, in the case of _POSIX_SOURCE, which is predefined and required
18936 # on some systems where configure will not decide to define it.
18937 cat >>conftest.undefs <<\_ACEOF
18938 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18939 _ACEOF
18940
18941 # Break up conftest.defines because some shells have a limit on the size
18942 # of here documents, and old seds have small limits too (100 cmds).
18943 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18944 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18945 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18946 echo '  :' >>$CONFIG_STATUS
18947 rm -f conftest.tail
18948 while grep . conftest.defines >/dev/null
18949 do
18950   # Write a limited-size here document to $tmp/defines.sed.
18951   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18952   # Speed up: don't consider the non `#define' lines.
18953   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18954   # Work around the forget-to-reset-the-flag bug.
18955   echo 't clr' >>$CONFIG_STATUS
18956   echo ': clr' >>$CONFIG_STATUS
18957   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18958   echo 'CEOF
18959   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18960   rm -f $tmp/in
18961   mv $tmp/out $tmp/in
18962 ' >>$CONFIG_STATUS
18963   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18964   rm -f conftest.defines
18965   mv conftest.tail conftest.defines
18966 done
18967 rm -f conftest.defines
18968 echo '  fi # egrep' >>$CONFIG_STATUS
18969 echo >>$CONFIG_STATUS
18970
18971 # Break up conftest.undefs because some shells have a limit on the size
18972 # of here documents, and old seds have small limits too (100 cmds).
18973 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18974 rm -f conftest.tail
18975 while grep . conftest.undefs >/dev/null
18976 do
18977   # Write a limited-size here document to $tmp/undefs.sed.
18978   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18979   # Speed up: don't consider the non `#undef'
18980   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18981   # Work around the forget-to-reset-the-flag bug.
18982   echo 't clr' >>$CONFIG_STATUS
18983   echo ': clr' >>$CONFIG_STATUS
18984   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18985   echo 'CEOF
18986   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18987   rm -f $tmp/in
18988   mv $tmp/out $tmp/in
18989 ' >>$CONFIG_STATUS
18990   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18991   rm -f conftest.undefs
18992   mv conftest.tail conftest.undefs
18993 done
18994 rm -f conftest.undefs
18995
18996 cat >>$CONFIG_STATUS <<\_ACEOF
18997   # Let's still pretend it is `configure' which instantiates (i.e., don't
18998   # use $as_me), people would be surprised to read:
18999   #    /* config.h.  Generated by config.status.  */
19000   if test x"$ac_file" = x-; then
19001     echo "/* Generated by configure.  */" >$tmp/config.h
19002   else
19003     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19004   fi
19005   cat $tmp/in >>$tmp/config.h
19006   rm -f $tmp/in
19007   if test x"$ac_file" != x-; then
19008     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19009       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19010 echo "$as_me: $ac_file is unchanged" >&6;}
19011     else
19012       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19014          X"$ac_file" : 'X\(//\)[^/]' \| \
19015          X"$ac_file" : 'X\(//\)$' \| \
19016          X"$ac_file" : 'X\(/\)' \| \
19017          .     : '\(.\)' 2>/dev/null ||
19018 echo X"$ac_file" |
19019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19020           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19021           /^X\(\/\/\)$/{ s//\1/; q; }
19022           /^X\(\/\).*/{ s//\1/; q; }
19023           s/.*/./; q'`
19024       { case "$ac_dir" in
19025   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19026   *)                      as_incr_dir=.;;
19027 esac
19028 as_dummy="$ac_dir"
19029 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19030   case $as_mkdir_dir in
19031     # Skip DOS drivespec
19032     ?:) as_incr_dir=$as_mkdir_dir ;;
19033     *)
19034       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19035       test -d "$as_incr_dir" ||
19036         mkdir "$as_incr_dir" ||
19037         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19038 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19039    { (exit 1); exit 1; }; }
19040     ;;
19041   esac
19042 done; }
19043
19044       rm -f $ac_file
19045       mv $tmp/config.h $ac_file
19046     fi
19047   else
19048     cat $tmp/config.h
19049     rm -f $tmp/config.h
19050   fi
19051   # Run the commands associated with the file.
19052   case $ac_file in
19053     src/include/pg_config.h )
19054 # Update timestamp for pg_config.h (see Makefile.global)
19055 echo >src/include/stamp-h
19056  ;;
19057   esac
19058 done
19059 _ACEOF
19060 cat >>$CONFIG_STATUS <<\_ACEOF
19061
19062 #
19063 # CONFIG_LINKS section.
19064 #
19065
19066 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19067   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19068   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19069
19070   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19071 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19072
19073   if test ! -r $srcdir/$ac_source; then
19074     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19075 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19076    { (exit 1); exit 1; }; }
19077   fi
19078   rm -f $ac_dest
19079
19080   # Make relative symlinks.
19081   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19083          X"$ac_dest" : 'X\(//\)[^/]' \| \
19084          X"$ac_dest" : 'X\(//\)$' \| \
19085          X"$ac_dest" : 'X\(/\)' \| \
19086          .     : '\(.\)' 2>/dev/null ||
19087 echo X"$ac_dest" |
19088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19089           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19090           /^X\(\/\/\)$/{ s//\1/; q; }
19091           /^X\(\/\).*/{ s//\1/; q; }
19092           s/.*/./; q'`
19093   { case "$ac_dest_dir" in
19094   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19095   *)                      as_incr_dir=.;;
19096 esac
19097 as_dummy="$ac_dest_dir"
19098 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19099   case $as_mkdir_dir in
19100     # Skip DOS drivespec
19101     ?:) as_incr_dir=$as_mkdir_dir ;;
19102     *)
19103       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19104       test -d "$as_incr_dir" ||
19105         mkdir "$as_incr_dir" ||
19106         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19107 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19108    { (exit 1); exit 1; }; }
19109     ;;
19110   esac
19111 done; }
19112
19113   ac_builddir=.
19114
19115 if test "$ac_dest_dir" != .; then
19116   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19117   # A "../" for each directory in $ac_dir_suffix.
19118   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19119 else
19120   ac_dir_suffix= ac_top_builddir=
19121 fi
19122
19123 case $srcdir in
19124   .)  # No --srcdir option.  We are building in place.
19125     ac_srcdir=.
19126     if test -z "$ac_top_builddir"; then
19127        ac_top_srcdir=.
19128     else
19129        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19130     fi ;;
19131   [\\/]* | ?:[\\/]* )  # Absolute path.
19132     ac_srcdir=$srcdir$ac_dir_suffix;
19133     ac_top_srcdir=$srcdir ;;
19134   *) # Relative path.
19135     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19136     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19137 esac
19138 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19139 # absolute.
19140 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19141 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19142 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19143 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19144
19145
19146   case $srcdir in
19147   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19148       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19149   esac
19150
19151   # Make a symlink if possible; otherwise try a hard link.
19152   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19153     ln $srcdir/$ac_source $ac_dest ||
19154     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19155 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19156    { (exit 1); exit 1; }; }
19157 done
19158 _ACEOF
19159
19160 cat >>$CONFIG_STATUS <<\_ACEOF
19161
19162 { (exit 0); exit 0; }
19163 _ACEOF
19164 chmod +x $CONFIG_STATUS
19165 ac_clean_files=$ac_clean_files_save
19166
19167
19168 # configure is writing to config.log, and then calls config.status.
19169 # config.status does its own redirection, appending to config.log.
19170 # Unfortunately, on DOS this fails, as config.log is still kept open
19171 # by configure, so config.status won't be able to write to it; its
19172 # output is simply discarded.  So we exec the FD to /dev/null,
19173 # effectively closing config.log, so it can be properly (re)opened and
19174 # appended to by config.status.  When coming back to configure, we
19175 # need to make the FD available again.
19176 if test "$no_create" != yes; then
19177   ac_cs_success=:
19178   exec 5>/dev/null
19179   $SHELL $CONFIG_STATUS || ac_cs_success=false
19180   exec 5>>config.log
19181   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19182   # would make configure fail if this is the last instruction.
19183   $ac_cs_success || { (exit 1); exit 1; }
19184 fi
19185