]> granicus.if.org Git - postgresql/blob - configure
Remove --enable-recode feature, since it's been broken by IPv6 changes,
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-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   --enable-debug          build with debugging symbols (-g)
845   --enable-depend         turn on automatic dependency tracking
846   --enable-cassert        enable assertion checks (for debugging)
847   --disable-largefile     omit support for large files
848
849 Optional Packages:
850   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
851   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
852
853   --with-includes=DIRS    look for additional header files in DIRS
854   --with-libraries=DIRS   look for additional libraries in DIRS
855   --with-libs=DIRS        alternative spelling of --with-libraries
856   --with-pgport=PORTNUM   change default port number 5432
857   --enable-thread-safety allow libpq and ecpg to be thread-safe
858   --with-tcl              build Tcl and Tk interfaces
859   --without-tk            do not build Tk interfaces if Tcl is enabled
860   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
861   --with-tkconfig=DIR     tkConfig.sh is in DIR
862   --with-perl             build Perl modules (PL/Perl)
863   --with-python           build Python interface module
864   --with-java             build JDBC interface and Java tools
865   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
866   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
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[=DIR]    build with OpenSSL support [/usr/local/ssl]
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.4devel
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 2002 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.4devel, 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
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384   # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=cygwin ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397    mingw*) template=win32 ;;
1398   netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400  openbsd*) template=openbsd ;;
1401      osf*) template=osf ;;
1402      qnx*) template=qnx4 ;;
1403      sco*) template=sco ;;
1404  solaris*) template=solaris ;;
1405    sunos*) template=sunos4 ;;
1406  sysv4.2*)
1407         case $host_vendor in
1408           univel) template=univel ;;
1409         esac ;;
1410    sysv4*) template=svr4 ;;
1411    sysv5*) template=unixware ;;
1412   ultrix*) template=ultrix4 ;;
1413 esac
1414
1415   if test x"$template" = x"" ; then
1416     { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1421
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this.  Include the above 'checking host system type...'
1424 line.
1425 *******************************************************************
1426 " >&5
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1432
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this.  Include the above 'checking host system type...'
1435 line.
1436 *******************************************************************
1437 " >&2;}
1438    { (exit 1); exit 1; }; }
1439   fi
1440
1441
1442 fi;
1443
1444
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1447
1448 PORTNAME=$template
1449
1450
1451 # Pick right test-and-set (TAS) code.  Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1454 case $host in
1455   hppa*-*-hpux*)        need_tas=yes; tas_file=hpux_hppa.s ;;
1456   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1458   *)                need_tas=no;  tas_file=dummy.s ;;
1459 esac
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1461
1462
1463 if test "$need_tas" = yes ; then
1464   TAS=tas.o
1465 fi
1466
1467
1468
1469
1470 ##
1471 ## Command line options
1472 ##
1473
1474
1475 #
1476 # Add non-standard directories to the include path
1477 #
1478
1479
1480
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483   withval="$with_includes"
1484
1485   case $withval in
1486     yes)
1487       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489    { (exit 1); exit 1; }; }
1490       ;;
1491     no)
1492       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494    { (exit 1); exit 1; }; }
1495       ;;
1496     *)
1497
1498       ;;
1499   esac
1500
1501 fi;
1502
1503
1504
1505 #
1506 # Add non-standard directories to the library search path
1507 #
1508
1509
1510
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513   withval="$with_libraries"
1514
1515   case $withval in
1516     yes)
1517       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519    { (exit 1); exit 1; }; }
1520       ;;
1521     no)
1522       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524    { (exit 1); exit 1; }; }
1525       ;;
1526     *)
1527       LIBRARY_DIRS=$withval
1528       ;;
1529   esac
1530
1531 fi;
1532
1533
1534
1535
1536
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539   withval="$with_libs"
1540
1541   case $withval in
1542     yes)
1543       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545    { (exit 1); exit 1; }; }
1546       ;;
1547     no)
1548       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550    { (exit 1); exit 1; }; }
1551       ;;
1552     *)
1553       LIBRARY_DIRS=$withval
1554       ;;
1555   esac
1556
1557 fi;
1558
1559
1560
1561 #
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 #
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1566
1567
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570   enableval="$enable_integer_datetimes"
1571
1572   case $enableval in
1573     yes)
1574
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1577 _ACEOF
1578
1579       ;;
1580     no)
1581       :
1582       ;;
1583     *)
1584       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586    { (exit 1); exit 1; }; }
1587       ;;
1588   esac
1589
1590 else
1591   enable_integer_datetimes=no
1592
1593 fi;
1594
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1597
1598
1599 #
1600 # NLS
1601 #
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1604
1605
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608   enableval="$enable_nls"
1609
1610   case $enableval in
1611     yes)
1612       :
1613       ;;
1614     no)
1615       :
1616       ;;
1617     *)
1618       enable_nls=yes
1619 WANTED_LANGUAGES=$enableval
1620       ;;
1621   esac
1622
1623 else
1624   enable_nls=no
1625 fi;
1626
1627
1628 if test "$enable_nls" = yes; then
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1632 _ACEOF
1633
1634 fi
1635
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1638
1639
1640
1641 #
1642 # Default port number (--with-pgport), default 5432
1643 #
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1646
1647
1648
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651   withval="$with_pgport"
1652
1653   case $withval in
1654     yes)
1655       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657    { (exit 1); exit 1; }; }
1658       ;;
1659     no)
1660       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662    { (exit 1); exit 1; }; }
1663       ;;
1664     *)
1665       default_port=$withval
1666       ;;
1667   esac
1668
1669 else
1670   default_port=5432
1671 fi;
1672
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1684 _ACEOF
1685
1686
1687
1688 #
1689 # Option to disable shared libraries
1690 #
1691
1692
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695   enableval="$enable_shared"
1696
1697   case $enableval in
1698     yes)
1699       :
1700       ;;
1701     no)
1702       :
1703       ;;
1704     *)
1705       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707    { (exit 1); exit 1; }; }
1708       ;;
1709   esac
1710
1711 else
1712   enable_shared=yes
1713
1714 fi;
1715
1716
1717
1718 #
1719 # '-rpath'-like feature can be disabled
1720 #
1721
1722
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725   enableval="$enable_rpath"
1726
1727   case $enableval in
1728     yes)
1729       :
1730       ;;
1731     no)
1732       :
1733       ;;
1734     *)
1735       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737    { (exit 1); exit 1; }; }
1738       ;;
1739   esac
1740
1741 else
1742   enable_rpath=yes
1743
1744 fi;
1745
1746
1747
1748
1749 #
1750 # --enable-debug adds -g to compiler flags
1751 #
1752
1753
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756   enableval="$enable_debug"
1757
1758   case $enableval in
1759     yes)
1760       :
1761       ;;
1762     no)
1763       :
1764       ;;
1765     *)
1766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768    { (exit 1); exit 1; }; }
1769       ;;
1770   esac
1771
1772 else
1773   enable_debug=no
1774
1775 fi;
1776
1777
1778
1779 #
1780 # C compiler
1781 #
1782
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1785 # variable.
1786
1787
1788
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1791   withval="$with_CC"
1792
1793   case $withval in
1794     yes)
1795       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797    { (exit 1); exit 1; }; }
1798       ;;
1799     no)
1800       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802    { (exit 1); exit 1; }; }
1803       ;;
1804     *)
1805       CC=$with_CC
1806       ;;
1807   esac
1808
1809 fi;
1810
1811
1812 case $template in
1813   aix) pgac_cc_list="gcc xlc";;
1814  irix) pgac_cc_list="cc";; # no gcc
1815     *) pgac_cc_list="gcc cc";;
1816 esac
1817
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824   for ac_prog in $pgac_cc_list
1825   do
1826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861     test -n "$CC" && break
1862   done
1863 fi
1864 if test -z "$CC"; then
1865   ac_ct_CC=$CC
1866   for ac_prog in $pgac_cc_list
1867 do
1868   # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="$ac_prog"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   test -n "$ac_ct_CC" && break
1904 done
1905
1906   CC=$ac_ct_CC
1907 fi
1908
1909
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912    { (exit 1); exit 1; }; }
1913
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916      "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919   (eval $ac_compiler --version </dev/null >&5) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924   (eval $ac_compiler -v </dev/null >&5) 2>&5
1925   ac_status=$?
1926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927   (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929   (eval $ac_compiler -V </dev/null >&5) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }
1933
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1937
1938 #ifdef F77_DUMMY_MAIN
1939 #  ifdef __cplusplus
1940      extern "C"
1941 #  endif
1942    int F77_DUMMY_MAIN() { return 1; }
1943 #endif
1944 int
1945 main ()
1946 {
1947
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961   (eval $ac_link_default) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }; then
1965   # Find the output, starting from the most likely.  This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1968
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973                 ls a.out conftest 2>/dev/null;
1974                 ls a.* conftest.* 2>/dev/null`; do
1975   case $ac_file in
1976     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977     a.out ) # We found the default executable, but exeext='' is most
1978             # certainly right.
1979             break;;
1980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1982           export ac_cv_exeext
1983           break;;
1984     * ) break;;
1985   esac
1986 done
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992    { (exit 77); exit 77; }; }
1993 fi
1994
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1998
1999 # Check the compiler produces executables we can run.  If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006   if { ac_try='./$ac_file'
2007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008   (eval $ac_try) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; }; then
2012     cross_compiling=no
2013   else
2014     if test "$cross_compiling" = maybe; then
2015         cross_compiling=yes
2016     else
2017         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021    { (exit 1); exit 1; }; }
2022     fi
2023   fi
2024 fi
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2027
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run.  If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2036
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040   (eval $ac_link) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2047 # `rm'.
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2049   case $ac_file in
2050     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052           export ac_cv_exeext
2053           break;;
2054     * ) break;;
2055   esac
2056 done
2057 else
2058   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2069 ac_exeext=$EXEEXT
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2078
2079 #ifdef F77_DUMMY_MAIN
2080 #  ifdef __cplusplus
2081      extern "C"
2082 #  endif
2083    int F77_DUMMY_MAIN() { return 1; }
2084 #endif
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; then
2099   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2100   case $ac_file in
2101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2103        break;;
2104   esac
2105 done
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115 fi
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2119 ac_objext=$OBJEXT
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128
2129 #ifdef F77_DUMMY_MAIN
2130 #  ifdef __cplusplus
2131      extern "C"
2132 #  endif
2133    int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2135 int
2136 main ()
2137 {
2138 #ifndef __GNUC__
2139        choke me
2140 #endif
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   ac_compiler_gnu=yes
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_compiler_gnu=no
2163 fi
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2173 CFLAGS="-g"
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2182
2183 #ifdef F77_DUMMY_MAIN
2184 #  ifdef __cplusplus
2185      extern "C"
2186 #  endif
2187    int F77_DUMMY_MAIN() { return 1; }
2188 #endif
2189 int
2190 main ()
2191 {
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199   (eval $ac_compile) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); } &&
2203          { ac_try='test -s conftest.$ac_objext'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209   ac_cv_prog_cc_g=yes
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2213 ac_cv_prog_cc_g=no
2214 fi
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220   CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222   if test "$GCC" = yes; then
2223     CFLAGS="-g -O2"
2224   else
2225     CFLAGS="-g"
2226   fi
2227 else
2228   if test "$GCC" = yes; then
2229     CFLAGS="-O2"
2230   else
2231     CFLAGS=
2232   fi
2233 fi
2234 # Some people use a C++ compiler to compile C.  Since we use `exit',
2235 # in C++ we need to declare it.  In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #ifndef __cplusplus
2240   choke me
2241 #endif
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); } &&
2249          { ac_try='test -s conftest.$ac_objext'
2250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251   (eval $ac_try) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; }; then
2255   for ac_declaration in \
2256    ''\
2257    '#include <stdlib.h>' \
2258    'extern "C" void std::exit (int) throw (); using std::exit;' \
2259    'extern "C" void std::exit (int); using std::exit;' \
2260    'extern "C" void exit (int) throw ();' \
2261    'extern "C" void exit (int);' \
2262    'void exit (int);'
2263 do
2264   cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2267 #include <stdlib.h>
2268 $ac_declaration
2269 #ifdef F77_DUMMY_MAIN
2270 #  ifdef __cplusplus
2271      extern "C"
2272 #  endif
2273    int F77_DUMMY_MAIN() { return 1; }
2274 #endif
2275 int
2276 main ()
2277 {
2278 exit (42);
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   :
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 continue
2300 fi
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 $ac_declaration
2306 #ifdef F77_DUMMY_MAIN
2307 #  ifdef __cplusplus
2308      extern "C"
2309 #  endif
2310    int F77_DUMMY_MAIN() { return 1; }
2311 #endif
2312 int
2313 main ()
2314 {
2315 exit (42);
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   break
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 fi
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341   echo '#ifdef __cplusplus' >>confdefs.h
2342   echo $ac_declaration      >>confdefs.h
2343   echo '#endif'             >>confdefs.h
2344 fi
2345
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 fi
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357 # Read the template
2358 . "$srcdir/src/template/$template" || exit
2359
2360 if test "$ac_env_CFLAGS_set" = set; then
2361   CFLAGS=$ac_env_CFLAGS_value
2362 fi
2363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2364   CFLAGS="$CFLAGS -g"
2365 fi
2366 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2367 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2368
2369 # Check if the compiler still works with the template settings
2370 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2371 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2372
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 #include "confdefs.h"
2376
2377 #ifdef F77_DUMMY_MAIN
2378 #  ifdef __cplusplus
2379      extern "C"
2380 #  endif
2381    int F77_DUMMY_MAIN() { return 1; }
2382 #endif
2383 int
2384 main ()
2385 {
2386 return 0;
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393   (eval $ac_link) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } &&
2397          { ac_try='test -s conftest$ac_exeext'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; }; then
2403   echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2411 echo "$as_me: error: cannot proceed" >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2415
2416 # Defend against gcc -ffastmath
2417 if test "$GCC" = yes; then
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 #include "confdefs.h"
2421
2422 #ifdef F77_DUMMY_MAIN
2423 #  ifdef __cplusplus
2424      extern "C"
2425 #  endif
2426    int F77_DUMMY_MAIN() { return 1; }
2427 #endif
2428 int
2429 main ()
2430 {
2431 #ifdef __FAST_MATH__
2432 choke me
2433 #endif
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440   (eval $ac_compile) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); } &&
2444          { ac_try='test -s conftest.$ac_objext'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450   :
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2455 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2456    { (exit 1); exit 1; }; }
2457 fi
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2459 fi
2460
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2467 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2468 # On Suns, sometimes $CPP names a directory.
2469 if test -n "$CPP" && test -d "$CPP"; then
2470   CPP=
2471 fi
2472 if test -z "$CPP"; then
2473   if test "${ac_cv_prog_CPP+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476       # Double quotes because CPP needs to be expanded
2477     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2478     do
2479       ac_preproc_ok=false
2480 for ac_c_preproc_warn_flag in '' yes
2481 do
2482   # Use a header file that comes with gcc, so configuring glibc
2483   # with a fresh cross-compiler works.
2484   # On the NeXT, cc -E runs the code through the compiler's parser,
2485   # not just through cpp. "Syntax error" is here to catch this case.
2486   cat >conftest.$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2488 #include "confdefs.h"
2489 #include <assert.h>
2490                      Syntax error
2491 _ACEOF
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494   ac_status=$?
2495   egrep -v '^ *\+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } >/dev/null; then
2500   if test -s conftest.err; then
2501     ac_cpp_err=$ac_c_preproc_warn_flag
2502   else
2503     ac_cpp_err=
2504   fi
2505 else
2506   ac_cpp_err=yes
2507 fi
2508 if test -z "$ac_cpp_err"; then
2509   :
2510 else
2511   echo "$as_me: failed program was:" >&5
2512   cat conftest.$ac_ext >&5
2513   # Broken: fails on valid input.
2514 continue
2515 fi
2516 rm -f conftest.err conftest.$ac_ext
2517
2518   # OK, works on sane cases.  Now check whether non-existent headers
2519   # can be detected and how.
2520   cat >conftest.$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2524 _ACEOF
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527   ac_status=$?
2528   egrep -v '^ *\+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } >/dev/null; then
2533   if test -s conftest.err; then
2534     ac_cpp_err=$ac_c_preproc_warn_flag
2535   else
2536     ac_cpp_err=
2537   fi
2538 else
2539   ac_cpp_err=yes
2540 fi
2541 if test -z "$ac_cpp_err"; then
2542   # Broken: success on invalid input.
2543 continue
2544 else
2545   echo "$as_me: failed program was:" >&5
2546   cat conftest.$ac_ext >&5
2547   # Passes both tests.
2548 ac_preproc_ok=:
2549 break
2550 fi
2551 rm -f conftest.err conftest.$ac_ext
2552
2553 done
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2557   break
2558 fi
2559
2560     done
2561     ac_cv_prog_CPP=$CPP
2562
2563 fi
2564   CPP=$ac_cv_prog_CPP
2565 else
2566   ac_cv_prog_CPP=$CPP
2567 fi
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2570 ac_preproc_ok=false
2571 for ac_c_preproc_warn_flag in '' yes
2572 do
2573   # Use a header file that comes with gcc, so configuring glibc
2574   # with a fresh cross-compiler works.
2575   # On the NeXT, cc -E runs the code through the compiler's parser,
2576   # not just through cpp. "Syntax error" is here to catch this case.
2577   cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2580 #include <assert.h>
2581                      Syntax error
2582 _ACEOF
2583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2585   ac_status=$?
2586   egrep -v '^ *\+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } >/dev/null; then
2591   if test -s conftest.err; then
2592     ac_cpp_err=$ac_c_preproc_warn_flag
2593   else
2594     ac_cpp_err=
2595   fi
2596 else
2597   ac_cpp_err=yes
2598 fi
2599 if test -z "$ac_cpp_err"; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603   cat conftest.$ac_ext >&5
2604   # Broken: fails on valid input.
2605 continue
2606 fi
2607 rm -f conftest.err conftest.$ac_ext
2608
2609   # OK, works on sane cases.  Now check whether non-existent headers
2610   # can be detected and how.
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 #include "confdefs.h"
2614 #include <ac_nonexistent.h>
2615 _ACEOF
2616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2618   ac_status=$?
2619   egrep -v '^ *\+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } >/dev/null; then
2624   if test -s conftest.err; then
2625     ac_cpp_err=$ac_c_preproc_warn_flag
2626   else
2627     ac_cpp_err=
2628   fi
2629 else
2630   ac_cpp_err=yes
2631 fi
2632 if test -z "$ac_cpp_err"; then
2633   # Broken: success on invalid input.
2634 continue
2635 else
2636   echo "$as_me: failed program was:" >&5
2637   cat conftest.$ac_ext >&5
2638   # Passes both tests.
2639 ac_preproc_ok=:
2640 break
2641 fi
2642 rm -f conftest.err conftest.$ac_ext
2643
2644 done
2645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2646 rm -f conftest.err conftest.$ac_ext
2647 if $ac_preproc_ok; then
2648   :
2649 else
2650   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661
2662
2663 # Create compiler version string
2664 if test x"$GCC" = x"yes" ; then
2665   cc_string="GCC `${CC} --version | sed q`"
2666 else
2667   cc_string=$CC
2668 fi
2669
2670 cat >>confdefs.h <<_ACEOF
2671 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2672 _ACEOF
2673
2674
2675
2676 #
2677 # Automatic dependency tracking
2678 #
2679
2680
2681 # Check whether --enable-depend or --disable-depend was given.
2682 if test "${enable_depend+set}" = set; then
2683   enableval="$enable_depend"
2684
2685   case $enableval in
2686     yes)
2687       autodepend=yes
2688       ;;
2689     no)
2690       :
2691       ;;
2692     *)
2693       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2694 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2695    { (exit 1); exit 1; }; }
2696       ;;
2697   esac
2698
2699 else
2700   enable_depend=no
2701
2702 fi;
2703
2704
2705
2706
2707 #
2708 # Enable assert checks
2709 #
2710
2711
2712 # Check whether --enable-cassert or --disable-cassert was given.
2713 if test "${enable_cassert+set}" = set; then
2714   enableval="$enable_cassert"
2715
2716   case $enableval in
2717     yes)
2718
2719 cat >>confdefs.h <<\_ACEOF
2720 #define USE_ASSERT_CHECKING 1
2721 _ACEOF
2722
2723       ;;
2724     no)
2725       :
2726       ;;
2727     *)
2728       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2729 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2730    { (exit 1); exit 1; }; }
2731       ;;
2732   esac
2733
2734 else
2735   enable_cassert=no
2736
2737 fi;
2738
2739
2740
2741 #
2742 # Include directories
2743 #
2744 ac_save_IFS=$IFS
2745 IFS="${IFS}:"
2746 # SRCH_INC comes from the template file
2747 for dir in $with_includes $SRCH_INC; do
2748   if test -d "$dir"; then
2749     INCLUDES="$INCLUDES -I$dir"
2750   else
2751     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2752 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2753   fi
2754 done
2755 IFS=$ac_save_IFS
2756
2757
2758
2759 #
2760 # Library directories
2761 #
2762 ac_save_IFS=$IFS
2763 IFS="${IFS}:"
2764 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2765 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2766   if test -d "$dir"; then
2767     LIBDIRS="$LIBDIRS -L$dir"
2768   else
2769     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2770 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2771   fi
2772 done
2773 IFS=$ac_save_IFS
2774
2775 #
2776 # Enable libpq to be thread-safety
2777 #
2778 echo "$as_me:$LINENO: checking allow thread-safe libpq and ecpg" >&5
2779 echo $ECHO_N "checking allow thread-safe libpq and ecpg... $ECHO_C" >&6
2780
2781
2782
2783 # Check whether --with-threads or --without-threads was given.
2784 if test "${with_threads+set}" = set; then
2785   withval="$with_threads"
2786
2787   case $withval in
2788     yes)
2789
2790 cat >>confdefs.h <<\_ACEOF
2791 #define USE_THREADS 1
2792 _ACEOF
2793
2794       ;;
2795     no)
2796       :
2797       ;;
2798     *)
2799       { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2800 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2801    { (exit 1); exit 1; }; }
2802       ;;
2803   esac
2804
2805 else
2806   with_threads=no
2807
2808 fi;
2809
2810
2811 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2812 echo "${ECHO_T}$enable_thread_safety" >&6
2813
2814
2815 #
2816 # Tcl/Tk
2817 #
2818 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2819 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2820
2821
2822
2823 # Check whether --with-tcl or --without-tcl was given.
2824 if test "${with_tcl+set}" = set; then
2825   withval="$with_tcl"
2826
2827   case $withval in
2828     yes)
2829       :
2830       ;;
2831     no)
2832       :
2833       ;;
2834     *)
2835       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2836 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2837    { (exit 1); exit 1; }; }
2838       ;;
2839   esac
2840
2841 else
2842   with_tcl=no
2843
2844 fi;
2845
2846 echo "$as_me:$LINENO: result: $with_tcl" >&5
2847 echo "${ECHO_T}$with_tcl" >&6
2848
2849
2850 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2851 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2852 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2853 if test "$with_tcl" = yes; then
2854
2855
2856
2857 # Check whether --with-tk or --without-tk was given.
2858 if test "${with_tk+set}" = set; then
2859   withval="$with_tk"
2860
2861   case $withval in
2862     yes)
2863       :
2864       ;;
2865     no)
2866       :
2867       ;;
2868     *)
2869       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2870 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2871    { (exit 1); exit 1; }; }
2872       ;;
2873   esac
2874
2875 else
2876   with_tk=yes
2877
2878 fi;
2879
2880 else
2881   with_tk=no
2882 fi
2883 echo "$as_me:$LINENO: result: $with_tk" >&5
2884 echo "${ECHO_T}$with_tk" >&6
2885
2886
2887
2888 # We see if the path to the Tcl/Tk configuration scripts is specified.
2889 # This will override the use of tclsh to find the paths to search.
2890
2891
2892
2893
2894 # Check whether --with-tclconfig or --without-tclconfig was given.
2895 if test "${with_tclconfig+set}" = set; then
2896   withval="$with_tclconfig"
2897
2898   case $withval in
2899     yes)
2900       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2901 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2902    { (exit 1); exit 1; }; }
2903       ;;
2904     no)
2905       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2906 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2907    { (exit 1); exit 1; }; }
2908       ;;
2909     *)
2910
2911       ;;
2912   esac
2913
2914 fi;
2915
2916
2917 # We see if the path to the Tk configuration scripts is specified.
2918 # This will override the use of tclsh to find the paths to search.
2919
2920
2921
2922
2923 # Check whether --with-tkconfig or --without-tkconfig was given.
2924 if test "${with_tkconfig+set}" = set; then
2925   withval="$with_tkconfig"
2926
2927   case $withval in
2928     yes)
2929       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2930 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2931    { (exit 1); exit 1; }; }
2932       ;;
2933     no)
2934       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2935 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2936    { (exit 1); exit 1; }; }
2937       ;;
2938     *)
2939
2940       ;;
2941   esac
2942
2943 fi;
2944
2945
2946 #
2947 # Optionally build Perl modules (PL/Perl)
2948 #
2949 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2950 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2951
2952
2953
2954 # Check whether --with-perl or --without-perl was given.
2955 if test "${with_perl+set}" = set; then
2956   withval="$with_perl"
2957
2958   case $withval in
2959     yes)
2960       :
2961       ;;
2962     no)
2963       :
2964       ;;
2965     *)
2966       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2967 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2968    { (exit 1); exit 1; }; }
2969       ;;
2970   esac
2971
2972 else
2973   with_perl=no
2974
2975 fi;
2976
2977 echo "$as_me:$LINENO: result: $with_perl" >&5
2978 echo "${ECHO_T}$with_perl" >&6
2979
2980
2981 #
2982 # Optionally build Python interface module
2983 #
2984 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2985 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2986
2987
2988
2989 # Check whether --with-python or --without-python was given.
2990 if test "${with_python+set}" = set; then
2991   withval="$with_python"
2992
2993   case $withval in
2994     yes)
2995       :
2996       ;;
2997     no)
2998       :
2999       ;;
3000     *)
3001       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3002 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3003    { (exit 1); exit 1; }; }
3004       ;;
3005   esac
3006
3007 else
3008   with_python=no
3009
3010 fi;
3011
3012 echo "$as_me:$LINENO: result: $with_python" >&5
3013 echo "${ECHO_T}$with_python" >&6
3014
3015
3016 #
3017 # Optionally build the Java/JDBC tools
3018 #
3019 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3020 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3021
3022
3023
3024 # Check whether --with-java or --without-java was given.
3025 if test "${with_java+set}" = set; then
3026   withval="$with_java"
3027
3028   case $withval in
3029     yes)
3030       echo "$as_me:$LINENO: result: yes" >&5
3031 echo "${ECHO_T}yes" >&6
3032
3033   for ac_prog in jakarta-ant ant ant.sh ant.bat
3034 do
3035   # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039 if test "${ac_cv_path_ANT+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   case $ANT in
3043   [\\/]* | ?:[\\/]*)
3044   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3045   ;;
3046   *)
3047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   for ac_exec_ext in '' $ac_executable_extensions; do
3053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059 done
3060
3061   ;;
3062 esac
3063 fi
3064 ANT=$ac_cv_path_ANT
3065
3066 if test -n "$ANT"; then
3067   echo "$as_me:$LINENO: result: $ANT" >&5
3068 echo "${ECHO_T}$ANT" >&6
3069 else
3070   echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3072 fi
3073
3074   test -n "$ANT" && break
3075 done
3076
3077
3078   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3079 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3080 if test "${pgac_cv_prog_ant_works+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083
3084     cat > conftest.java << EOF
3085 public class conftest {
3086     int testmethod(int a, int b) {
3087         return a + b;
3088     }
3089 }
3090 EOF
3091
3092     cat > conftest.xml << EOF
3093 <project name="conftest" default="conftest">
3094  <target name="conftest">
3095   <javac srcdir="." includes="conftest.java">
3096   </javac>
3097  </target>
3098 </project>
3099 EOF
3100
3101     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3102     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3103   (eval $pgac_cmd) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }
3107     pgac_save_status=$?
3108     if test $? = 0 && test -f ./conftest.class ; then
3109       pgac_cv_prog_ant_works=yes
3110     else
3111       echo "configure: failed java program was:" >&5
3112       cat conftest.java >&5
3113       echo "configure: failed build file was:" >&5
3114       cat conftest.xml >&5
3115       pgac_cv_prog_ant_works=no
3116     fi
3117
3118     rm -f conftest* core core.* *.core
3119
3120 fi
3121 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3122 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3123
3124   if test "$pgac_cv_prog_ant_works" != yes; then
3125     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3126 echo "$as_me: error: ant does not work" >&2;}
3127    { (exit 1); exit 1; }; }
3128   fi
3129
3130
3131 if test -z "$ANT"; then
3132   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3133 If you have Ant already installed, see config.log for details on the failure." >&5
3134 echo "$as_me: error: Ant is required to build Java components
3135 If you have Ant already installed, see config.log for details on the failure." >&2;}
3136    { (exit 1); exit 1; }; }
3137 fi
3138 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3139   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3140 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3141    { (exit 1); exit 1; }; }
3142 fi
3143       ;;
3144     no)
3145       echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3147       ;;
3148     *)
3149       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3150 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3151    { (exit 1); exit 1; }; }
3152       ;;
3153   esac
3154
3155 else
3156   with_java=no
3157 echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3159 fi;
3160
3161
3162
3163
3164 #
3165 # Kerberos 4
3166 #
3167 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3168 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3169
3170
3171
3172 # Check whether --with-krb4 or --without-krb4 was given.
3173 if test "${with_krb4+set}" = set; then
3174   withval="$with_krb4"
3175
3176   case $withval in
3177     yes)
3178       krb4_prefix=/usr/athena
3179       ;;
3180     no)
3181       :
3182       ;;
3183     *)
3184       with_krb4=yes
3185 krb4_prefix=$withval
3186       ;;
3187   esac
3188
3189 else
3190   with_krb4=no
3191 fi;
3192
3193
3194 if test "$with_krb4" = yes; then
3195
3196   echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198
3199 cat >>confdefs.h <<\_ACEOF
3200 #define KRB4 1
3201 _ACEOF
3202
3203
3204   if test -d "$krb4_prefix/include"; then
3205     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3206   fi
3207   if test -d "$krb4_prefix/lib"; then
3208     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3209   fi
3210
3211   krb_srvtab="/etc/srvtab"
3212
3213 else
3214   echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3216 fi
3217
3218
3219
3220
3221
3222 #
3223 # Kerberos 5
3224 #
3225 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3226 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3227
3228
3229
3230 # Check whether --with-krb5 or --without-krb5 was given.
3231 if test "${with_krb5+set}" = set; then
3232   withval="$with_krb5"
3233
3234   case $withval in
3235     yes)
3236       krb5_prefix=/usr/athena
3237       ;;
3238     no)
3239       :
3240       ;;
3241     *)
3242       with_krb5=yes
3243 krb5_prefix=$withval
3244       ;;
3245   esac
3246
3247 else
3248   with_krb5=no
3249 fi;
3250
3251
3252 if test "$with_krb5" = yes; then
3253
3254   echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3256
3257 cat >>confdefs.h <<\_ACEOF
3258 #define KRB5 1
3259 _ACEOF
3260
3261
3262   if test -d "$krb5_prefix/include"; then
3263     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3264   fi
3265   if test -d "$krb5_prefix/lib"; then
3266     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3267   fi
3268
3269   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3270
3271 else
3272   echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3274 fi
3275
3276
3277
3278
3279
3280 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3281 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3282   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3283 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3284    { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288
3289
3290 #
3291 # Kerberos configuration parameters
3292 #
3293
3294
3295
3296 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3297 if test "${with_krb_srvnam+set}" = set; then
3298   withval="$with_krb_srvnam"
3299
3300   case $withval in
3301     yes)
3302       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3303 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3304    { (exit 1); exit 1; }; }
3305       ;;
3306     no)
3307       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3308 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3309    { (exit 1); exit 1; }; }
3310       ;;
3311     *)
3312
3313       ;;
3314   esac
3315
3316 else
3317   with_krb_srvnam="postgres"
3318 fi;
3319
3320
3321 cat >>confdefs.h <<_ACEOF
3322 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3323 _ACEOF
3324
3325
3326
3327 #
3328 # PAM
3329 #
3330 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3331 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3332
3333
3334
3335 # Check whether --with-pam or --without-pam was given.
3336 if test "${with_pam+set}" = set; then
3337   withval="$with_pam"
3338
3339   case $withval in
3340     yes)
3341
3342 cat >>confdefs.h <<\_ACEOF
3343 #define USE_PAM 1
3344 _ACEOF
3345
3346       ;;
3347     no)
3348       :
3349       ;;
3350     *)
3351       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3352 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3353    { (exit 1); exit 1; }; }
3354       ;;
3355   esac
3356
3357 else
3358   with_pam=no
3359
3360 fi;
3361
3362 echo "$as_me:$LINENO: result: $with_pam" >&5
3363 echo "${ECHO_T}$with_pam" >&6
3364
3365
3366
3367 #
3368 # Rendezvous
3369 #
3370 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3371 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3372
3373
3374
3375 # Check whether --with-rendezvous or --without-rendezvous was given.
3376 if test "${with_rendezvous+set}" = set; then
3377   withval="$with_rendezvous"
3378
3379   case $withval in
3380     yes)
3381
3382 cat >>confdefs.h <<\_ACEOF
3383 #define USE_RENDEZVOUS 1
3384 _ACEOF
3385
3386       ;;
3387     no)
3388       :
3389       ;;
3390     *)
3391       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3392 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3393    { (exit 1); exit 1; }; }
3394       ;;
3395   esac
3396
3397 else
3398   with_rendezvous=no
3399
3400 fi;
3401
3402 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3403 echo "${ECHO_T}$with_rendezvous" >&6
3404
3405
3406
3407 #
3408 # OpenSSL
3409 #
3410
3411
3412
3413 # Check whether --with-openssl or --without-openssl was given.
3414 if test "${with_openssl+set}" = set; then
3415   withval="$with_openssl"
3416
3417   case $withval in
3418     yes)
3419       openssl_prefix=/usr/local/ssl
3420       ;;
3421     no)
3422       :
3423       ;;
3424     *)
3425       with_openssl=yes
3426 openssl_prefix=$withval
3427       ;;
3428   esac
3429
3430 else
3431   with_openssl=no
3432 fi;
3433
3434
3435 if test "$with_openssl" = yes; then
3436
3437   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3438 echo "${ECHO_T}building with OpenSSL support" >&6
3439
3440 cat >>confdefs.h <<\_ACEOF
3441 #define USE_SSL 1
3442 _ACEOF
3443
3444
3445   if test -d "${openssl_prefix}/include" ; then
3446     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3447   fi
3448   if test -d "${openssl_prefix}/lib" ; then
3449     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3450   fi
3451
3452 fi
3453
3454
3455
3456
3457
3458 #
3459 # Readline
3460 #
3461
3462
3463
3464 # Check whether --with-readline or --without-readline was given.
3465 if test "${with_readline+set}" = set; then
3466   withval="$with_readline"
3467
3468   case $withval in
3469     yes)
3470       :
3471       ;;
3472     no)
3473       :
3474       ;;
3475     *)
3476       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3477 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3478    { (exit 1); exit 1; }; }
3479       ;;
3480   esac
3481
3482 else
3483   with_readline=yes
3484
3485 fi;
3486
3487
3488 #
3489 # Zlib
3490 #
3491
3492
3493
3494 # Check whether --with-zlib or --without-zlib was given.
3495 if test "${with_zlib+set}" = set; then
3496   withval="$with_zlib"
3497
3498   case $withval in
3499     yes)
3500       :
3501       ;;
3502     no)
3503       :
3504       ;;
3505     *)
3506       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3507 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3508    { (exit 1); exit 1; }; }
3509       ;;
3510   esac
3511
3512 else
3513   with_zlib=yes
3514
3515 fi;
3516
3517
3518
3519 #
3520 # Elf
3521 #
3522
3523 # Assume system is ELF if it predefines __ELF__ as 1,
3524 # otherwise believe host_os based default.
3525 case $host_os in
3526     freebsd1*|freebsd2*) elf=no;;
3527     freebsd3*|freebsd4*) elf=yes;;
3528 esac
3529
3530
3531 cat >conftest.$ac_ext <<_ACEOF
3532 #line $LINENO "configure"
3533 #include "confdefs.h"
3534 #if __ELF__
3535   yes
3536 #endif
3537
3538 _ACEOF
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540   egrep "yes" >/dev/null 2>&1; then
3541   ELF_SYS=true
3542 else
3543   if test "X$elf" = "Xyes" ; then
3544   ELF_SYS=true
3545 else
3546   ELF_SYS=
3547 fi
3548 fi
3549 rm -f conftest*
3550
3551
3552
3553 #
3554 # Assignments
3555 #
3556
3557 CPPFLAGS="$CPPFLAGS $INCLUDES"
3558 LDFLAGS="$LDFLAGS $LIBDIRS"
3559
3560 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3561 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3562 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3563 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3564
3565
3566 for ac_prog in gawk mawk nawk awk
3567 do
3568   # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572 if test "${ac_cv_prog_AWK+set}" = set; then
3573   echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575   if test -n "$AWK"; then
3576   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583   for ac_exec_ext in '' $ac_executable_extensions; do
3584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585     ac_cv_prog_AWK="$ac_prog"
3586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587     break 2
3588   fi
3589 done
3590 done
3591
3592 fi
3593 fi
3594 AWK=$ac_cv_prog_AWK
3595 if test -n "$AWK"; then
3596   echo "$as_me:$LINENO: result: $AWK" >&5
3597 echo "${ECHO_T}$AWK" >&6
3598 else
3599   echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603   test -n "$AWK" && break
3604 done
3605
3606 echo "$as_me:$LINENO: checking for flex" >&5
3607 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3608 if test "${pgac_cv_path_flex+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   # Let the user override the test
3612 if test -n "$FLEX"; then
3613   pgac_cv_path_flex=$FLEX
3614 else
3615   pgac_save_IFS=$IFS
3616   IFS=:
3617   for pgac_dir in $PATH; do
3618     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3619       pgac_dir=`pwd`
3620     fi
3621     for pgac_prog in flex lex; do
3622       pgac_candidate="$pgac_dir/$pgac_prog"
3623       if test -f "$pgac_candidate" \
3624         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3625       then
3626         echo '%%'  > conftest.l
3627         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3628           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3629             pgac_broken_flex=$pgac_candidate
3630             continue
3631           fi
3632
3633           pgac_cv_path_flex=$pgac_candidate
3634           break 2
3635         fi
3636       fi
3637     done
3638   done
3639   IFS=$pgac_save_IFS
3640   rm -f conftest.l
3641   : ${pgac_cv_path_flex=no}
3642 fi
3643
3644 fi
3645 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3646 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3647 if test x"$pgac_cv_path_flex" = x"no"; then
3648   if test -n "$pgac_broken_flex"; then
3649     { echo "$as_me:$LINENO: WARNING:
3650 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3651 *** should get version 2.5.4 or later." >&5
3652 echo "$as_me: WARNING:
3653 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3654 *** should get version 2.5.4 or later." >&2;}
3655   fi
3656
3657   { echo "$as_me:$LINENO: WARNING:
3658 *** Without Flex you will not be able to build PostgreSQL from CVS or
3659 *** change any of the scanner definition files.  You can obtain Flex from
3660 *** a GNU mirror site.  (If you are using the official distribution of
3661 *** PostgreSQL then you do not need to worry about this because the Flex
3662 *** output is pre-generated.)" >&5
3663 echo "$as_me: WARNING:
3664 *** Without Flex you will not be able to build PostgreSQL from CVS or
3665 *** change any of the scanner definition files.  You can obtain Flex from
3666 *** a GNU mirror site.  (If you are using the official distribution of
3667 *** PostgreSQL then you do not need to worry about this because the Flex
3668 *** output is pre-generated.)" >&2;}
3669 fi
3670
3671 if test x"$pgac_cv_path_flex" = x"no"; then
3672   FLEX=
3673 else
3674   FLEX=$pgac_cv_path_flex
3675 fi
3676
3677
3678
3679
3680 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3681 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3682 LN_S=$as_ln_s
3683 if test "$LN_S" = "ln -s"; then
3684   echo "$as_me:$LINENO: result: yes" >&5
3685 echo "${ECHO_T}yes" >&6
3686 else
3687   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3688 echo "${ECHO_T}no, using $LN_S" >&6
3689 fi
3690
3691
3692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3693 if test "${with_gnu_ld+set}" = set; then
3694   withval="$with_gnu_ld"
3695   test "$withval" = no || with_gnu_ld=yes
3696 else
3697   with_gnu_ld=no
3698 fi;
3699 ac_prog=ld
3700 if test "$GCC" = yes; then
3701   # Check if gcc -print-prog-name=ld gives a path.
3702   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3703 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3704   case $host in
3705   *-*-mingw*)
3706     # gcc leaves a trailing carriage return which upsets mingw
3707     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3708   *)
3709     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3710   esac
3711   case "$ac_prog" in
3712     # Accept absolute paths.
3713     [\\/]* | [A-Za-z]:[\\/]*)
3714       re_direlt='/[^/][^/]*/\.\./'
3715       # Canonicalize the path of ld
3716       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3717       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3718         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3719       done
3720       test -z "$LD" && LD="$ac_prog"
3721       ;;
3722   "")
3723     # If it fails, then pretend we aren't using GCC.
3724     ac_prog=ld
3725     ;;
3726   *)
3727     # If it is relative, then search for the first ld in PATH.
3728     with_gnu_ld=unknown
3729     ;;
3730   esac
3731 elif test "$with_gnu_ld" = yes; then
3732   echo "$as_me:$LINENO: checking for GNU ld" >&5
3733 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3734 else
3735   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3736 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3737 fi
3738 if test "${ac_cv_path_LD+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   if test -z "$LD"; then
3742   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3743   for ac_dir in $PATH; do
3744     test -z "$ac_dir" && ac_dir=.
3745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3746       ac_cv_path_LD="$ac_dir/$ac_prog"
3747       # Check to see if the program is GNU ld.  I'd rather use --version,
3748       # but apparently some GNU ld's only accept -v.
3749       # Break only if it was the GNU/non-GNU ld that we prefer.
3750       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3751         test "$with_gnu_ld" != no && break
3752       else
3753         test "$with_gnu_ld" != yes && break
3754       fi
3755     fi
3756   done
3757   IFS="$ac_save_ifs"
3758 else
3759   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3760 fi
3761 fi
3762
3763 LD="$ac_cv_path_LD"
3764 if test -n "$LD"; then
3765   echo "$as_me:$LINENO: result: $LD" >&5
3766 echo "${ECHO_T}$LD" >&6
3767 else
3768   echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3770 fi
3771 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3772 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3773    { (exit 1); exit 1; }; }
3774 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3775 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3776 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3780 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3781   ac_cv_prog_gnu_ld=yes
3782 else
3783   ac_cv_prog_gnu_ld=no
3784 fi
3785 fi
3786 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3787 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3788 with_gnu_ld=$ac_cv_prog_gnu_ld
3789
3790
3791
3792
3793 case $host_os in sysv5*)
3794   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3795 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3796 if test "${pgac_cv_prog_ld_R+set}" = set; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799
3800     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3801     cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3804
3805 #ifdef F77_DUMMY_MAIN
3806 #  ifdef __cplusplus
3807      extern "C"
3808 #  endif
3809    int F77_DUMMY_MAIN() { return 1; }
3810 #endif
3811 int
3812 main ()
3813 {
3814
3815   ;
3816   return 0;
3817 }
3818 _ACEOF
3819 rm -f conftest.$ac_objext conftest$ac_exeext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3821   (eval $ac_link) 2>&5
3822   ac_status=$?
3823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); } &&
3825          { ac_try='test -s conftest$ac_exeext'
3826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827   (eval $ac_try) 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }; }; then
3831   pgac_cv_prog_ld_R=yes
3832 else
3833   echo "$as_me: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 pgac_cv_prog_ld_R=no
3836 fi
3837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3838     LDFLAGS=$pgac_save_LDFLAGS
3839
3840 fi
3841 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3842 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3843   ld_R_works=$pgac_cv_prog_ld_R
3844
3845 esac
3846 if test -n "$ac_tool_prefix"; then
3847   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_RANLIB+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -n "$RANLIB"; then
3855   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869 done
3870
3871 fi
3872 fi
3873 RANLIB=$ac_cv_prog_RANLIB
3874 if test -n "$RANLIB"; then
3875   echo "$as_me:$LINENO: result: $RANLIB" >&5
3876 echo "${ECHO_T}$RANLIB" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882 fi
3883 if test -z "$ac_cv_prog_RANLIB"; then
3884   ac_ct_RANLIB=$RANLIB
3885   # Extract the first word of "ranlib", so it can be a program name with args.
3886 set dummy ranlib; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if test -n "$ac_ct_RANLIB"; then
3893   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_prog_ac_ct_RANLIB="ranlib"
3903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907 done
3908
3909   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3910 fi
3911 fi
3912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3913 if test -n "$ac_ct_RANLIB"; then
3914   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3915 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3919 fi
3920
3921   RANLIB=$ac_ct_RANLIB
3922 else
3923   RANLIB="$ac_cv_prog_RANLIB"
3924 fi
3925
3926 for ac_prog in lorder
3927 do
3928   # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_LORDER+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   if test -n "$LORDER"; then
3936   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for ac_exec_ext in '' $ac_executable_extensions; do
3944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945     ac_cv_prog_LORDER="$ac_prog"
3946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950 done
3951
3952 fi
3953 fi
3954 LORDER=$ac_cv_prog_LORDER
3955 if test -n "$LORDER"; then
3956   echo "$as_me:$LINENO: result: $LORDER" >&5
3957 echo "${ECHO_T}$LORDER" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963   test -n "$LORDER" && break
3964 done
3965
3966 # Extract the first word of "tar", so it can be a program name with args.
3967 set dummy tar; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_path_TAR+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   case $TAR in
3974   [\\/]* | ?:[\\/]*)
3975   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3976   ;;
3977   *)
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991
3992   ;;
3993 esac
3994 fi
3995 TAR=$ac_cv_path_TAR
3996
3997 if test -n "$TAR"; then
3998   echo "$as_me:$LINENO: result: $TAR" >&5
3999 echo "${ECHO_T}$TAR" >&6
4000 else
4001   echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4003 fi
4004
4005
4006   if test -n "$ac_tool_prefix"; then
4007   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}strip; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_STRIP+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$STRIP"; then
4015   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031 fi
4032 fi
4033 STRIP=$ac_cv_prog_STRIP
4034 if test -n "$STRIP"; then
4035   echo "$as_me:$LINENO: result: $STRIP" >&5
4036 echo "${ECHO_T}$STRIP" >&6
4037 else
4038   echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042 fi
4043 if test -z "$ac_cv_prog_STRIP"; then
4044   ac_ct_STRIP=$STRIP
4045   # Extract the first word of "strip", so it can be a program name with args.
4046 set dummy strip; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -n "$ac_ct_STRIP"; then
4053   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_ac_ct_STRIP="strip"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068
4069   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4070 fi
4071 fi
4072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4073 if test -n "$ac_ct_STRIP"; then
4074   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4075 echo "${ECHO_T}$ac_ct_STRIP" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081   STRIP=$ac_ct_STRIP
4082 else
4083   STRIP="$ac_cv_prog_STRIP"
4084 fi
4085
4086
4087   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4088 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4089   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4090     STRIP_STATIC_LIB="$STRIP -x"
4091     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4092     echo "$as_me:$LINENO: result: yes" >&5
4093 echo "${ECHO_T}yes" >&6
4094   else
4095     STRIP_STATIC_LIB=:
4096     STRIP_SHARED_LIB=:
4097     echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099   fi
4100
4101
4102
4103
4104 for ac_prog in 'bison -y'
4105 do
4106   # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_prog_YACC+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   if test -n "$YACC"; then
4114   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121   for ac_exec_ext in '' $ac_executable_extensions; do
4122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123     ac_cv_prog_YACC="$ac_prog"
4124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128 done
4129
4130 fi
4131 fi
4132 YACC=$ac_cv_prog_YACC
4133 if test -n "$YACC"; then
4134   echo "$as_me:$LINENO: result: $YACC" >&5
4135 echo "${ECHO_T}$YACC" >&6
4136 else
4137   echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 fi
4140
4141   test -n "$YACC" && break
4142 done
4143
4144
4145 if test "$YACC"; then
4146   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4147     { echo "$as_me:$LINENO: WARNING:
4148 *** The installed version of Bison is too old.  PostgreSQL needs
4149 *** Bison version 1.875 or later." >&5
4150 echo "$as_me: WARNING:
4151 *** The installed version of Bison is too old.  PostgreSQL needs
4152 *** Bison version 1.875 or later." >&2;}
4153   fi
4154 fi
4155
4156 if test -z "$YACC"; then
4157   { echo "$as_me:$LINENO: WARNING:
4158 *** Without Bison you will not be able to build PostgreSQL from CVS or
4159 *** change any of the parser definition files.  You can obtain Bison from
4160 *** a GNU mirror site.  (If you are using the official distribution of
4161 *** PostgreSQL then you do not need to worry about this because the Bison
4162 *** output is pre-generated.)  To use a different yacc program (possible,
4163 *** but not recommended), set the environment variable YACC before running
4164 *** 'configure'." >&5
4165 echo "$as_me: WARNING:
4166 *** Without Bison you will not be able to build PostgreSQL from CVS or
4167 *** change any of the parser definition files.  You can obtain Bison from
4168 *** a GNU mirror site.  (If you are using the official distribution of
4169 *** PostgreSQL then you do not need to worry about this because the Bison
4170 *** output is pre-generated.)  To use a different yacc program (possible,
4171 *** but not recommended), set the environment variable YACC before running
4172 *** 'configure'." >&2;}
4173 fi
4174
4175
4176 # Extract the first word of "perl", so it can be a program name with args.
4177 set dummy perl; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_path_PERL+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   case $PERL in
4184   [\\/]* | ?:[\\/]*)
4185   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4186   ;;
4187   *)
4188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193   for ac_exec_ext in '' $ac_executable_extensions; do
4194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197     break 2
4198   fi
4199 done
4200 done
4201
4202   ;;
4203 esac
4204 fi
4205 PERL=$ac_cv_path_PERL
4206
4207 if test -n "$PERL"; then
4208   echo "$as_me:$LINENO: result: $PERL" >&5
4209 echo "${ECHO_T}$PERL" >&6
4210 else
4211   echo "$as_me:$LINENO: result: no" >&5
4212 echo "${ECHO_T}no" >&6
4213 fi
4214
4215 if test "$with_perl" = yes; then
4216
4217 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4218 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4219 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4220 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4221 echo "${ECHO_T}$perl_archlibexp" >&6
4222 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4223 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4224 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4225 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4226 echo "${ECHO_T}$perl_privlibexp" >&6
4227 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4228 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4229 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4230 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4231 echo "${ECHO_T}$perl_useshrplib" >&6
4232
4233 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4234 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4235 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4236 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4237 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4238 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4239 echo "${ECHO_T}$perl_embed_ldflags" >&6
4240 fi
4241
4242 if test "$with_python" = yes; then
4243   # Extract the first word of "python", so it can be a program name with args.
4244 set dummy python; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_path_PYTHON+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   case $PYTHON in
4251   [\\/]* | ?:[\\/]*)
4252   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4253   ;;
4254   *)
4255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260   for ac_exec_ext in '' $ac_executable_extensions; do
4261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264     break 2
4265   fi
4266 done
4267 done
4268
4269   ;;
4270 esac
4271 fi
4272 PYTHON=$ac_cv_path_PYTHON
4273
4274 if test -n "$PYTHON"; then
4275   echo "$as_me:$LINENO: result: $PYTHON" >&5
4276 echo "${ECHO_T}$PYTHON" >&6
4277 else
4278   echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4280 fi
4281
4282 if test x"$PYTHON" = x""; then
4283   { { echo "$as_me:$LINENO: error: Python not found" >&5
4284 echo "$as_me: error: Python not found" >&2;}
4285    { (exit 1); exit 1; }; }
4286 fi
4287
4288
4289 echo "$as_me:$LINENO: checking Python installation directories" >&5
4290 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4291 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4292 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4293 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4294 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4295 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4296 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4297 python_includespec="-I${python_prefix}/include/python${python_version}"
4298 if test "$python_prefix" != "$python_execprefix"; then
4299   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4300 fi
4301
4302 # This should be enough of a message.
4303 if test "$python_prefix" != "$python_execprefix"; then
4304   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4305 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4306 else
4307   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4308 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4309 fi
4310
4311
4312
4313
4314
4315 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4316 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4317
4318 if test ! -f "$python_configdir/Makefile"; then
4319   echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6
4321   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4322 echo "$as_me: error: Python Makefile not found" >&2;}
4323    { (exit 1); exit 1; }; }
4324 fi
4325
4326 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4327 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4328 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4329 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4330 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4331
4332 pgac_tab="      " # tab character
4333 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"`
4334
4335 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4336 echo "${ECHO_T}${python_libspec}" >&6
4337
4338
4339 fi
4340
4341
4342 ##
4343 ## Libraries
4344 ##
4345
4346 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4347 then
4348
4349 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4350 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4351 if test "${ac_cv_lib_bsd_main+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   ac_check_lib_save_LIBS=$LIBS
4355 LIBS="-lbsd  $LIBS"
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4359
4360
4361 #ifdef F77_DUMMY_MAIN
4362 #  ifdef __cplusplus
4363      extern "C"
4364 #  endif
4365    int F77_DUMMY_MAIN() { return 1; }
4366 #endif
4367 int
4368 main ()
4369 {
4370 main ();
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4377   (eval $ac_link) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); } &&
4381          { ac_try='test -s conftest$ac_exeext'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   ac_cv_lib_bsd_main=yes
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 ac_cv_lib_bsd_main=no
4392 fi
4393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4394 LIBS=$ac_check_lib_save_LIBS
4395 fi
4396 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4397 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4398 if test $ac_cv_lib_bsd_main = yes; then
4399   cat >>confdefs.h <<_ACEOF
4400 #define HAVE_LIBBSD 1
4401 _ACEOF
4402
4403   LIBS="-lbsd $LIBS"
4404
4405 fi
4406
4407 fi
4408
4409 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4410 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4411 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   ac_check_lib_save_LIBS=$LIBS
4415 LIBS="-lutil  $LIBS"
4416 cat >conftest.$ac_ext <<_ACEOF
4417 #line $LINENO "configure"
4418 #include "confdefs.h"
4419
4420 /* Override any gcc2 internal prototype to avoid an error.  */
4421 #ifdef __cplusplus
4422 extern "C"
4423 #endif
4424 /* We use char because int might match the return type of a gcc2
4425    builtin and then its argument prototype would still apply.  */
4426 char setproctitle ();
4427 #ifdef F77_DUMMY_MAIN
4428 #  ifdef __cplusplus
4429      extern "C"
4430 #  endif
4431    int F77_DUMMY_MAIN() { return 1; }
4432 #endif
4433 int
4434 main ()
4435 {
4436 setproctitle ();
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443   (eval $ac_link) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } &&
4447          { ac_try='test -s conftest$ac_exeext'
4448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449   (eval $ac_try) 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }; }; then
4453   ac_cv_lib_util_setproctitle=yes
4454 else
4455   echo "$as_me: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4457 ac_cv_lib_util_setproctitle=no
4458 fi
4459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4460 LIBS=$ac_check_lib_save_LIBS
4461 fi
4462 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4463 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4464 if test $ac_cv_lib_util_setproctitle = yes; then
4465   cat >>confdefs.h <<_ACEOF
4466 #define HAVE_LIBUTIL 1
4467 _ACEOF
4468
4469   LIBS="-lutil $LIBS"
4470
4471 fi
4472
4473
4474 echo "$as_me:$LINENO: checking for main in -lm" >&5
4475 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4476 if test "${ac_cv_lib_m_main+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   ac_check_lib_save_LIBS=$LIBS
4480 LIBS="-lm  $LIBS"
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4484
4485
4486 #ifdef F77_DUMMY_MAIN
4487 #  ifdef __cplusplus
4488      extern "C"
4489 #  endif
4490    int F77_DUMMY_MAIN() { return 1; }
4491 #endif
4492 int
4493 main ()
4494 {
4495 main ();
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 rm -f conftest.$ac_objext conftest$ac_exeext
4501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4502   (eval $ac_link) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); } &&
4506          { ac_try='test -s conftest$ac_exeext'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   ac_cv_lib_m_main=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4516 ac_cv_lib_m_main=no
4517 fi
4518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4520 fi
4521 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4522 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4523 if test $ac_cv_lib_m_main = yes; then
4524   cat >>confdefs.h <<_ACEOF
4525 #define HAVE_LIBM 1
4526 _ACEOF
4527
4528   LIBS="-lm $LIBS"
4529
4530 fi
4531
4532
4533 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4534 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4535 if test "${ac_cv_lib_dl_main+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   ac_check_lib_save_LIBS=$LIBS
4539 LIBS="-ldl  $LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line $LINENO "configure"
4542 #include "confdefs.h"
4543
4544
4545 #ifdef F77_DUMMY_MAIN
4546 #  ifdef __cplusplus
4547      extern "C"
4548 #  endif
4549    int F77_DUMMY_MAIN() { return 1; }
4550 #endif
4551 int
4552 main ()
4553 {
4554 main ();
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext conftest$ac_exeext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4561   (eval $ac_link) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -s conftest$ac_exeext'
4566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567   (eval $ac_try) 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); }; }; then
4571   ac_cv_lib_dl_main=yes
4572 else
4573   echo "$as_me: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 ac_cv_lib_dl_main=no
4576 fi
4577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4578 LIBS=$ac_check_lib_save_LIBS
4579 fi
4580 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4581 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4582 if test $ac_cv_lib_dl_main = yes; then
4583   cat >>confdefs.h <<_ACEOF
4584 #define HAVE_LIBDL 1
4585 _ACEOF
4586
4587   LIBS="-ldl $LIBS"
4588
4589 fi
4590
4591
4592 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4593 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4594 if test "${ac_cv_lib_nsl_main+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   ac_check_lib_save_LIBS=$LIBS
4598 LIBS="-lnsl  $LIBS"
4599 cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4602
4603
4604 #ifdef F77_DUMMY_MAIN
4605 #  ifdef __cplusplus
4606      extern "C"
4607 #  endif
4608    int F77_DUMMY_MAIN() { return 1; }
4609 #endif
4610 int
4611 main ()
4612 {
4613 main ();
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620   (eval $ac_link) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -s conftest$ac_exeext'
4625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626   (eval $ac_try) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; }; then
4630   ac_cv_lib_nsl_main=yes
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4634 ac_cv_lib_nsl_main=no
4635 fi
4636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4637 LIBS=$ac_check_lib_save_LIBS
4638 fi
4639 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4640 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4641 if test $ac_cv_lib_nsl_main = yes; then
4642   cat >>confdefs.h <<_ACEOF
4643 #define HAVE_LIBNSL 1
4644 _ACEOF
4645
4646   LIBS="-lnsl $LIBS"
4647
4648 fi
4649
4650
4651 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4652 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4653 if test "${ac_cv_lib_socket_main+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   ac_check_lib_save_LIBS=$LIBS
4657 LIBS="-lsocket  $LIBS"
4658 cat >conftest.$ac_ext <<_ACEOF
4659 #line $LINENO "configure"
4660 #include "confdefs.h"
4661
4662
4663 #ifdef F77_DUMMY_MAIN
4664 #  ifdef __cplusplus
4665      extern "C"
4666 #  endif
4667    int F77_DUMMY_MAIN() { return 1; }
4668 #endif
4669 int
4670 main ()
4671 {
4672 main ();
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext conftest$ac_exeext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4679   (eval $ac_link) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } &&
4683          { ac_try='test -s conftest$ac_exeext'
4684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685   (eval $ac_try) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); }; }; then
4689   ac_cv_lib_socket_main=yes
4690 else
4691   echo "$as_me: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4693 ac_cv_lib_socket_main=no
4694 fi
4695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4696 LIBS=$ac_check_lib_save_LIBS
4697 fi
4698 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4699 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4700 if test $ac_cv_lib_socket_main = yes; then
4701   cat >>confdefs.h <<_ACEOF
4702 #define HAVE_LIBSOCKET 1
4703 _ACEOF
4704
4705   LIBS="-lsocket $LIBS"
4706
4707 fi
4708
4709
4710 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4711 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4712 if test "${ac_cv_lib_ipc_main+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   ac_check_lib_save_LIBS=$LIBS
4716 LIBS="-lipc  $LIBS"
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 #include "confdefs.h"
4720
4721
4722 #ifdef F77_DUMMY_MAIN
4723 #  ifdef __cplusplus
4724      extern "C"
4725 #  endif
4726    int F77_DUMMY_MAIN() { return 1; }
4727 #endif
4728 int
4729 main ()
4730 {
4731 main ();
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738   (eval $ac_link) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -s conftest$ac_exeext'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; }; then
4748   ac_cv_lib_ipc_main=yes
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4752 ac_cv_lib_ipc_main=no
4753 fi
4754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4755 LIBS=$ac_check_lib_save_LIBS
4756 fi
4757 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4758 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4759 if test $ac_cv_lib_ipc_main = yes; then
4760   cat >>confdefs.h <<_ACEOF
4761 #define HAVE_LIBIPC 1
4762 _ACEOF
4763
4764   LIBS="-lipc $LIBS"
4765
4766 fi
4767
4768
4769 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4770 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4771 if test "${ac_cv_lib_IPC_main+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   ac_check_lib_save_LIBS=$LIBS
4775 LIBS="-lIPC  $LIBS"
4776 cat >conftest.$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4779
4780
4781 #ifdef F77_DUMMY_MAIN
4782 #  ifdef __cplusplus
4783      extern "C"
4784 #  endif
4785    int F77_DUMMY_MAIN() { return 1; }
4786 #endif
4787 int
4788 main ()
4789 {
4790 main ();
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext conftest$ac_exeext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4797   (eval $ac_link) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -s conftest$ac_exeext'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; }; then
4807   ac_cv_lib_IPC_main=yes
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 ac_cv_lib_IPC_main=no
4812 fi
4813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4814 LIBS=$ac_check_lib_save_LIBS
4815 fi
4816 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4817 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4818 if test $ac_cv_lib_IPC_main = yes; then
4819   cat >>confdefs.h <<_ACEOF
4820 #define HAVE_LIBIPC 1
4821 _ACEOF
4822
4823   LIBS="-lIPC $LIBS"
4824
4825 fi
4826
4827
4828 echo "$as_me:$LINENO: checking for main in -llc" >&5
4829 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4830 if test "${ac_cv_lib_lc_main+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   ac_check_lib_save_LIBS=$LIBS
4834 LIBS="-llc  $LIBS"
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 #include "confdefs.h"
4838
4839
4840 #ifdef F77_DUMMY_MAIN
4841 #  ifdef __cplusplus
4842      extern "C"
4843 #  endif
4844    int F77_DUMMY_MAIN() { return 1; }
4845 #endif
4846 int
4847 main ()
4848 {
4849 main ();
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856   (eval $ac_link) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } &&
4860          { ac_try='test -s conftest$ac_exeext'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; }; then
4866   ac_cv_lib_lc_main=yes
4867 else
4868   echo "$as_me: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 ac_cv_lib_lc_main=no
4871 fi
4872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4873 LIBS=$ac_check_lib_save_LIBS
4874 fi
4875 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4876 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4877 if test $ac_cv_lib_lc_main = yes; then
4878   cat >>confdefs.h <<_ACEOF
4879 #define HAVE_LIBLC 1
4880 _ACEOF
4881
4882   LIBS="-llc $LIBS"
4883
4884 fi
4885
4886
4887 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4888 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4889 if test "${ac_cv_lib_dld_main+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   ac_check_lib_save_LIBS=$LIBS
4893 LIBS="-ldld  $LIBS"
4894 cat >conftest.$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4897
4898
4899 #ifdef F77_DUMMY_MAIN
4900 #  ifdef __cplusplus
4901      extern "C"
4902 #  endif
4903    int F77_DUMMY_MAIN() { return 1; }
4904 #endif
4905 int
4906 main ()
4907 {
4908 main ();
4909   ;
4910   return 0;
4911 }
4912 _ACEOF
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915   (eval $ac_link) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } &&
4919          { ac_try='test -s conftest$ac_exeext'
4920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921   (eval $ac_try) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); }; }; then
4925   ac_cv_lib_dld_main=yes
4926 else
4927   echo "$as_me: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4929 ac_cv_lib_dld_main=no
4930 fi
4931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4932 LIBS=$ac_check_lib_save_LIBS
4933 fi
4934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4935 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4936 if test $ac_cv_lib_dld_main = yes; then
4937   cat >>confdefs.h <<_ACEOF
4938 #define HAVE_LIBDLD 1
4939 _ACEOF
4940
4941   LIBS="-ldld $LIBS"
4942
4943 fi
4944
4945
4946 echo "$as_me:$LINENO: checking for main in -lld" >&5
4947 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4948 if test "${ac_cv_lib_ld_main+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   ac_check_lib_save_LIBS=$LIBS
4952 LIBS="-lld  $LIBS"
4953 cat >conftest.$ac_ext <<_ACEOF
4954 #line $LINENO "configure"
4955 #include "confdefs.h"
4956
4957
4958 #ifdef F77_DUMMY_MAIN
4959 #  ifdef __cplusplus
4960      extern "C"
4961 #  endif
4962    int F77_DUMMY_MAIN() { return 1; }
4963 #endif
4964 int
4965 main ()
4966 {
4967 main ();
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974   (eval $ac_link) 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); } &&
4978          { ac_try='test -s conftest$ac_exeext'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; }; then
4984   ac_cv_lib_ld_main=yes
4985 else
4986   echo "$as_me: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4988 ac_cv_lib_ld_main=no
4989 fi
4990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4991 LIBS=$ac_check_lib_save_LIBS
4992 fi
4993 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4994 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4995 if test $ac_cv_lib_ld_main = yes; then
4996   cat >>confdefs.h <<_ACEOF
4997 #define HAVE_LIBLD 1
4998 _ACEOF
4999
5000   LIBS="-lld $LIBS"
5001
5002 fi
5003
5004
5005 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5006 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5007 if test "${ac_cv_lib_compat_main+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   ac_check_lib_save_LIBS=$LIBS
5011 LIBS="-lcompat  $LIBS"
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 #include "confdefs.h"
5015
5016
5017 #ifdef F77_DUMMY_MAIN
5018 #  ifdef __cplusplus
5019      extern "C"
5020 #  endif
5021    int F77_DUMMY_MAIN() { return 1; }
5022 #endif
5023 int
5024 main ()
5025 {
5026 main ();
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033   (eval $ac_link) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } &&
5037          { ac_try='test -s conftest$ac_exeext'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; }; then
5043   ac_cv_lib_compat_main=yes
5044 else
5045   echo "$as_me: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5047 ac_cv_lib_compat_main=no
5048 fi
5049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5050 LIBS=$ac_check_lib_save_LIBS
5051 fi
5052 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5053 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5054 if test $ac_cv_lib_compat_main = yes; then
5055   cat >>confdefs.h <<_ACEOF
5056 #define HAVE_LIBCOMPAT 1
5057 _ACEOF
5058
5059   LIBS="-lcompat $LIBS"
5060
5061 fi
5062
5063
5064 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5065 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5066 if test "${ac_cv_lib_BSD_main+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   ac_check_lib_save_LIBS=$LIBS
5070 LIBS="-lBSD  $LIBS"
5071 cat >conftest.$ac_ext <<_ACEOF
5072 #line $LINENO "configure"
5073 #include "confdefs.h"
5074
5075
5076 #ifdef F77_DUMMY_MAIN
5077 #  ifdef __cplusplus
5078      extern "C"
5079 #  endif
5080    int F77_DUMMY_MAIN() { return 1; }
5081 #endif
5082 int
5083 main ()
5084 {
5085 main ();
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext conftest$ac_exeext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092   (eval $ac_link) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -s conftest$ac_exeext'
5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098   (eval $ac_try) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); }; }; then
5102   ac_cv_lib_BSD_main=yes
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5106 ac_cv_lib_BSD_main=no
5107 fi
5108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109 LIBS=$ac_check_lib_save_LIBS
5110 fi
5111 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5112 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5113 if test $ac_cv_lib_BSD_main = yes; then
5114   cat >>confdefs.h <<_ACEOF
5115 #define HAVE_LIBBSD 1
5116 _ACEOF
5117
5118   LIBS="-lBSD $LIBS"
5119
5120 fi
5121
5122
5123 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5124 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5125 if test "${ac_cv_lib_gen_main+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   ac_check_lib_save_LIBS=$LIBS
5129 LIBS="-lgen  $LIBS"
5130 cat >conftest.$ac_ext <<_ACEOF
5131 #line $LINENO "configure"
5132 #include "confdefs.h"
5133
5134
5135 #ifdef F77_DUMMY_MAIN
5136 #  ifdef __cplusplus
5137      extern "C"
5138 #  endif
5139    int F77_DUMMY_MAIN() { return 1; }
5140 #endif
5141 int
5142 main ()
5143 {
5144 main ();
5145   ;
5146   return 0;
5147 }
5148 _ACEOF
5149 rm -f conftest.$ac_objext conftest$ac_exeext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151   (eval $ac_link) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); } &&
5155          { ac_try='test -s conftest$ac_exeext'
5156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157   (eval $ac_try) 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); }; }; then
5161   ac_cv_lib_gen_main=yes
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5165 ac_cv_lib_gen_main=no
5166 fi
5167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5169 fi
5170 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5171 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5172 if test $ac_cv_lib_gen_main = yes; then
5173   cat >>confdefs.h <<_ACEOF
5174 #define HAVE_LIBGEN 1
5175 _ACEOF
5176
5177   LIBS="-lgen $LIBS"
5178
5179 fi
5180
5181
5182 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5183 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5184 if test "${ac_cv_lib_PW_main+set}" = set; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   ac_check_lib_save_LIBS=$LIBS
5188 LIBS="-lPW  $LIBS"
5189 cat >conftest.$ac_ext <<_ACEOF
5190 #line $LINENO "configure"
5191 #include "confdefs.h"
5192
5193
5194 #ifdef F77_DUMMY_MAIN
5195 #  ifdef __cplusplus
5196      extern "C"
5197 #  endif
5198    int F77_DUMMY_MAIN() { return 1; }
5199 #endif
5200 int
5201 main ()
5202 {
5203 main ();
5204   ;
5205   return 0;
5206 }
5207 _ACEOF
5208 rm -f conftest.$ac_objext conftest$ac_exeext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5210   (eval $ac_link) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } &&
5214          { ac_try='test -s conftest$ac_exeext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_cv_lib_PW_main=yes
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 ac_cv_lib_PW_main=no
5225 fi
5226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5227 LIBS=$ac_check_lib_save_LIBS
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5230 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5231 if test $ac_cv_lib_PW_main = yes; then
5232   cat >>confdefs.h <<_ACEOF
5233 #define HAVE_LIBPW 1
5234 _ACEOF
5235
5236   LIBS="-lPW $LIBS"
5237
5238 fi
5239
5240
5241 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5242 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5243 if test "${ac_cv_lib_resolv_main+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   ac_check_lib_save_LIBS=$LIBS
5247 LIBS="-lresolv  $LIBS"
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 #include "confdefs.h"
5251
5252
5253 #ifdef F77_DUMMY_MAIN
5254 #  ifdef __cplusplus
5255      extern "C"
5256 #  endif
5257    int F77_DUMMY_MAIN() { return 1; }
5258 #endif
5259 int
5260 main ()
5261 {
5262 main ();
5263   ;
5264   return 0;
5265 }
5266 _ACEOF
5267 rm -f conftest.$ac_objext conftest$ac_exeext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5269   (eval $ac_link) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } &&
5273          { ac_try='test -s conftest$ac_exeext'
5274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275   (eval $ac_try) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; }; then
5279   ac_cv_lib_resolv_main=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 ac_cv_lib_resolv_main=no
5284 fi
5285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5287 fi
5288 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5289 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5290 if test $ac_cv_lib_resolv_main = yes; then
5291   cat >>confdefs.h <<_ACEOF
5292 #define HAVE_LIBRESOLV 1
5293 _ACEOF
5294
5295   LIBS="-lresolv $LIBS"
5296
5297 fi
5298
5299
5300 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5301 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5302 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   ac_check_lib_save_LIBS=$LIBS
5306 LIBS="-lwsock32  $LIBS"
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5309 #include "confdefs.h"
5310
5311
5312 #ifdef F77_DUMMY_MAIN
5313 #  ifdef __cplusplus
5314      extern "C"
5315 #  endif
5316    int F77_DUMMY_MAIN() { return 1; }
5317 #endif
5318 int
5319 main ()
5320 {
5321 main ();
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328   (eval $ac_link) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } &&
5332          { ac_try='test -s conftest$ac_exeext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_cv_lib_wsock32_main=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342 ac_cv_lib_wsock32_main=no
5343 fi
5344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5348 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5349 if test $ac_cv_lib_wsock32_main = yes; then
5350   cat >>confdefs.h <<_ACEOF
5351 #define HAVE_LIBWSOCK32 1
5352 _ACEOF
5353
5354   LIBS="-lwsock32 $LIBS"
5355
5356 fi
5357
5358 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5359 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5360 if test "${ac_cv_search_getopt_long+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   ac_func_search_save_LIBS=$LIBS
5364 ac_cv_search_getopt_long=no
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5368
5369 /* Override any gcc2 internal prototype to avoid an error.  */
5370 #ifdef __cplusplus
5371 extern "C"
5372 #endif
5373 /* We use char because int might match the return type of a gcc2
5374    builtin and then its argument prototype would still apply.  */
5375 char getopt_long ();
5376 #ifdef F77_DUMMY_MAIN
5377 #  ifdef __cplusplus
5378      extern "C"
5379 #  endif
5380    int F77_DUMMY_MAIN() { return 1; }
5381 #endif
5382 int
5383 main ()
5384 {
5385 getopt_long ();
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392   (eval $ac_link) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } &&
5396          { ac_try='test -s conftest$ac_exeext'
5397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; }; then
5402   ac_cv_search_getopt_long="none required"
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 fi
5407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5408 if test "$ac_cv_search_getopt_long" = no; then
5409   for ac_lib in getopt gnugetopt; do
5410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5411     cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5414
5415 /* Override any gcc2 internal prototype to avoid an error.  */
5416 #ifdef __cplusplus
5417 extern "C"
5418 #endif
5419 /* We use char because int might match the return type of a gcc2
5420    builtin and then its argument prototype would still apply.  */
5421 char getopt_long ();
5422 #ifdef F77_DUMMY_MAIN
5423 #  ifdef __cplusplus
5424      extern "C"
5425 #  endif
5426    int F77_DUMMY_MAIN() { return 1; }
5427 #endif
5428 int
5429 main ()
5430 {
5431 getopt_long ();
5432   ;
5433   return 0;
5434 }
5435 _ACEOF
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438   (eval $ac_link) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); } &&
5442          { ac_try='test -s conftest$ac_exeext'
5443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444   (eval $ac_try) 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); }; }; then
5448   ac_cv_search_getopt_long="-l$ac_lib"
5449 break
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5453 fi
5454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5455   done
5456 fi
5457 LIBS=$ac_func_search_save_LIBS
5458 fi
5459 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5460 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5461 if test "$ac_cv_search_getopt_long" != no; then
5462   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5463
5464 fi
5465
5466 # QNX:
5467
5468 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5469 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5470 if test "${ac_cv_lib_unix_main+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lunix  $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 #include "confdefs.h"
5478
5479
5480 #ifdef F77_DUMMY_MAIN
5481 #  ifdef __cplusplus
5482      extern "C"
5483 #  endif
5484    int F77_DUMMY_MAIN() { return 1; }
5485 #endif
5486 int
5487 main ()
5488 {
5489 main ();
5490   ;
5491   return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext conftest$ac_exeext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496   (eval $ac_link) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } &&
5500          { ac_try='test -s conftest$ac_exeext'
5501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502   (eval $ac_try) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); }; }; then
5506   ac_cv_lib_unix_main=yes
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 ac_cv_lib_unix_main=no
5511 fi
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5514 fi
5515 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5516 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5517 if test $ac_cv_lib_unix_main = yes; then
5518   cat >>confdefs.h <<_ACEOF
5519 #define HAVE_LIBUNIX 1
5520 _ACEOF
5521
5522   LIBS="-lunix $LIBS"
5523
5524 fi
5525
5526 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5527 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5528 if test "${ac_cv_search_crypt+set}" = set; then
5529   echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531   ac_func_search_save_LIBS=$LIBS
5532 ac_cv_search_crypt=no
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 #include "confdefs.h"
5536
5537 /* Override any gcc2 internal prototype to avoid an error.  */
5538 #ifdef __cplusplus
5539 extern "C"
5540 #endif
5541 /* We use char because int might match the return type of a gcc2
5542    builtin and then its argument prototype would still apply.  */
5543 char crypt ();
5544 #ifdef F77_DUMMY_MAIN
5545 #  ifdef __cplusplus
5546      extern "C"
5547 #  endif
5548    int F77_DUMMY_MAIN() { return 1; }
5549 #endif
5550 int
5551 main ()
5552 {
5553 crypt ();
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558 rm -f conftest.$ac_objext conftest$ac_exeext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560   (eval $ac_link) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } &&
5564          { ac_try='test -s conftest$ac_exeext'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; }; then
5570   ac_cv_search_crypt="none required"
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 fi
5575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576 if test "$ac_cv_search_crypt" = no; then
5577   for ac_lib in crypt; do
5578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5579     cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 #include "confdefs.h"
5582
5583 /* Override any gcc2 internal prototype to avoid an error.  */
5584 #ifdef __cplusplus
5585 extern "C"
5586 #endif
5587 /* We use char because int might match the return type of a gcc2
5588    builtin and then its argument prototype would still apply.  */
5589 char crypt ();
5590 #ifdef F77_DUMMY_MAIN
5591 #  ifdef __cplusplus
5592      extern "C"
5593 #  endif
5594    int F77_DUMMY_MAIN() { return 1; }
5595 #endif
5596 int
5597 main ()
5598 {
5599 crypt ();
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606   (eval $ac_link) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -s conftest$ac_exeext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_cv_search_crypt="-l$ac_lib"
5617 break
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5621 fi
5622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5623   done
5624 fi
5625 LIBS=$ac_func_search_save_LIBS
5626 fi
5627 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5628 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5629 if test "$ac_cv_search_crypt" != no; then
5630   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5631
5632 fi
5633
5634 # BeOS:
5635 if test "$PORTNAME" = "beos"
5636 then
5637
5638 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5639 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5640 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   ac_check_lib_save_LIBS=$LIBS
5644 LIBS="-lbind  $LIBS"
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5648
5649 /* Override any gcc2 internal prototype to avoid an error.  */
5650 #ifdef __cplusplus
5651 extern "C"
5652 #endif
5653 /* We use char because int might match the return type of a gcc2
5654    builtin and then its argument prototype would still apply.  */
5655 char __inet_ntoa ();
5656 #ifdef F77_DUMMY_MAIN
5657 #  ifdef __cplusplus
5658      extern "C"
5659 #  endif
5660    int F77_DUMMY_MAIN() { return 1; }
5661 #endif
5662 int
5663 main ()
5664 {
5665 __inet_ntoa ();
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672   (eval $ac_link) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -s conftest$ac_exeext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_lib_bind___inet_ntoa=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5686 ac_cv_lib_bind___inet_ntoa=no
5687 fi
5688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5689 LIBS=$ac_check_lib_save_LIBS
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5692 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5693 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5694   cat >>confdefs.h <<_ACEOF
5695 #define HAVE_LIBBIND 1
5696 _ACEOF
5697
5698   LIBS="-lbind $LIBS"
5699
5700 fi
5701
5702 fi
5703 # Solaris:
5704 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5705 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5706 if test "${ac_cv_search_fdatasync+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   ac_func_search_save_LIBS=$LIBS
5710 ac_cv_search_fdatasync=no
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line $LINENO "configure"
5713 #include "confdefs.h"
5714
5715 /* Override any gcc2 internal prototype to avoid an error.  */
5716 #ifdef __cplusplus
5717 extern "C"
5718 #endif
5719 /* We use char because int might match the return type of a gcc2
5720    builtin and then its argument prototype would still apply.  */
5721 char fdatasync ();
5722 #ifdef F77_DUMMY_MAIN
5723 #  ifdef __cplusplus
5724      extern "C"
5725 #  endif
5726    int F77_DUMMY_MAIN() { return 1; }
5727 #endif
5728 int
5729 main ()
5730 {
5731 fdatasync ();
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738   (eval $ac_link) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } &&
5742          { ac_try='test -s conftest$ac_exeext'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748   ac_cv_search_fdatasync="none required"
5749 else
5750   echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 fi
5753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 if test "$ac_cv_search_fdatasync" = no; then
5755   for ac_lib in rt posix4; do
5756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5757     cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5760
5761 /* Override any gcc2 internal prototype to avoid an error.  */
5762 #ifdef __cplusplus
5763 extern "C"
5764 #endif
5765 /* We use char because int might match the return type of a gcc2
5766    builtin and then its argument prototype would still apply.  */
5767 char fdatasync ();
5768 #ifdef F77_DUMMY_MAIN
5769 #  ifdef __cplusplus
5770      extern "C"
5771 #  endif
5772    int F77_DUMMY_MAIN() { return 1; }
5773 #endif
5774 int
5775 main ()
5776 {
5777 fdatasync ();
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784   (eval $ac_link) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } &&
5788          { ac_try='test -s conftest$ac_exeext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   ac_cv_search_fdatasync="-l$ac_lib"
5795 break
5796 else
5797   echo "$as_me: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 fi
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801   done
5802 fi
5803 LIBS=$ac_func_search_save_LIBS
5804 fi
5805 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5806 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5807 if test "$ac_cv_search_fdatasync" != no; then
5808   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5809
5810 fi
5811
5812 # Cygwin:
5813
5814 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5815 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5816 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-lcygipc  $LIBS"
5821 cat >conftest.$ac_ext <<_ACEOF
5822 #line $LINENO "configure"
5823 #include "confdefs.h"
5824
5825 /* Override any gcc2 internal prototype to avoid an error.  */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830    builtin and then its argument prototype would still apply.  */
5831 char shmget ();
5832 #ifdef F77_DUMMY_MAIN
5833 #  ifdef __cplusplus
5834      extern "C"
5835 #  endif
5836    int F77_DUMMY_MAIN() { return 1; }
5837 #endif
5838 int
5839 main ()
5840 {
5841 shmget ();
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848   (eval $ac_link) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -s conftest$ac_exeext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_cv_lib_cygipc_shmget=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5862 ac_cv_lib_cygipc_shmget=no
5863 fi
5864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5865 LIBS=$ac_check_lib_save_LIBS
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5868 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5869 if test $ac_cv_lib_cygipc_shmget = yes; then
5870   cat >>confdefs.h <<_ACEOF
5871 #define HAVE_LIBCYGIPC 1
5872 _ACEOF
5873
5874   LIBS="-lcygipc $LIBS"
5875
5876 fi
5877
5878
5879 if test "$with_readline" = yes; then
5880
5881 echo "$as_me:$LINENO: checking for readline" >&5
5882 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5883
5884 if test "${pgac_cv_check_readline+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   pgac_cv_check_readline=no
5888 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5889   for pgac_rllib in -lreadline -ledit ; do
5890     pgac_save_LIBS=$LIBS
5891     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5892     cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 #include "confdefs.h"
5895
5896 /* Override any gcc2 internal prototype to avoid an error.  */
5897 #ifdef __cplusplus
5898 extern "C"
5899 #endif
5900 /* We use char because int might match the return type of a gcc2
5901    builtin and then its argument prototype would still apply.  */
5902 char readline ();
5903 #ifdef F77_DUMMY_MAIN
5904 #  ifdef __cplusplus
5905      extern "C"
5906 #  endif
5907    int F77_DUMMY_MAIN() { return 1; }
5908 #endif
5909 int
5910 main ()
5911 {
5912 readline ();
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919   (eval $ac_link) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } &&
5923          { ac_try='test -s conftest$ac_exeext'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; }; then
5929
5930       # NetBSD and OpenBSD have a broken linker that does not
5931       # recognize dependent libraries
5932       case $host_os in netbsd* | openbsd* )
5933         case $pgac_lib in
5934           *curses*) ;;
5935           *) pgac_lib=" -lcurses" ;;
5936         esac
5937       esac
5938
5939       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5940       break 2
5941
5942 else
5943   echo "$as_me: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5945 fi
5946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5947     LIBS=$pgac_save_LIBS
5948   done
5949 done
5950 LIBS=$pgac_save_LIBS
5951
5952 fi
5953
5954 if test "$pgac_cv_check_readline" != no ; then
5955
5956 cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_LIBREADLINE 1
5958 _ACEOF
5959
5960   LIBS="$pgac_cv_check_readline $LIBS"
5961   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5962 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5963 else
5964   echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5967   if test x"$pgac_cv_check_readline" = x"no"; then
5968     { { echo "$as_me:$LINENO: error: readline library not found
5969 If you have readline already installed, see config.log for details on the
5970 failure.  It is possible the compiler isn't looking in the proper directory.
5971 Use --without-readline to disable readline support." >&5
5972 echo "$as_me: error: readline library not found
5973 If you have readline already installed, see config.log for details on the
5974 failure.  It is possible the compiler isn't looking in the proper directory.
5975 Use --without-readline to disable readline support." >&2;}
5976    { (exit 1); exit 1; }; }
5977   fi
5978 fi
5979
5980 if test "$with_zlib" = yes; then
5981
5982 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5983 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5984 if test "${ac_cv_lib_z_inflate+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   ac_check_lib_save_LIBS=$LIBS
5988 LIBS="-lz  $LIBS"
5989 cat >conftest.$ac_ext <<_ACEOF
5990 #line $LINENO "configure"
5991 #include "confdefs.h"
5992
5993 /* Override any gcc2 internal prototype to avoid an error.  */
5994 #ifdef __cplusplus
5995 extern "C"
5996 #endif
5997 /* We use char because int might match the return type of a gcc2
5998    builtin and then its argument prototype would still apply.  */
5999 char inflate ();
6000 #ifdef F77_DUMMY_MAIN
6001 #  ifdef __cplusplus
6002      extern "C"
6003 #  endif
6004    int F77_DUMMY_MAIN() { return 1; }
6005 #endif
6006 int
6007 main ()
6008 {
6009 inflate ();
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6016   (eval $ac_link) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -s conftest$ac_exeext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   ac_cv_lib_z_inflate=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 ac_cv_lib_z_inflate=no
6031 fi
6032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6033 LIBS=$ac_check_lib_save_LIBS
6034 fi
6035 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6036 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6037 if test $ac_cv_lib_z_inflate = yes; then
6038   cat >>confdefs.h <<_ACEOF
6039 #define HAVE_LIBZ 1
6040 _ACEOF
6041
6042   LIBS="-lz $LIBS"
6043
6044 else
6045   { { echo "$as_me:$LINENO: error: zlib library not found
6046 If you have zlib already installed, see config.log for details on the
6047 failure.  It is possible the compiler isn't looking in the proper directory.
6048 Use --without-zlib to disable zlib support." >&5
6049 echo "$as_me: error: zlib library not found
6050 If you have zlib already installed, see config.log for details on the
6051 failure.  It is possible the compiler isn't looking in the proper directory.
6052 Use --without-zlib to disable zlib support." >&2;}
6053    { (exit 1); exit 1; }; }
6054 fi
6055
6056 fi
6057
6058 if test "$with_krb4" = yes ; then
6059
6060 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6061 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6062 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   ac_check_lib_save_LIBS=$LIBS
6066 LIBS="-ldes  $LIBS"
6067 cat >conftest.$ac_ext <<_ACEOF
6068 #line $LINENO "configure"
6069 #include "confdefs.h"
6070
6071 /* Override any gcc2 internal prototype to avoid an error.  */
6072 #ifdef __cplusplus
6073 extern "C"
6074 #endif
6075 /* We use char because int might match the return type of a gcc2
6076    builtin and then its argument prototype would still apply.  */
6077 char des_encrypt ();
6078 #ifdef F77_DUMMY_MAIN
6079 #  ifdef __cplusplus
6080      extern "C"
6081 #  endif
6082    int F77_DUMMY_MAIN() { return 1; }
6083 #endif
6084 int
6085 main ()
6086 {
6087 des_encrypt ();
6088   ;
6089   return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094   (eval $ac_link) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } &&
6098          { ac_try='test -s conftest$ac_exeext'
6099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100   (eval $ac_try) 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then
6104   ac_cv_lib_des_des_encrypt=yes
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6108 ac_cv_lib_des_des_encrypt=no
6109 fi
6110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6111 LIBS=$ac_check_lib_save_LIBS
6112 fi
6113 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6114 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6115 if test $ac_cv_lib_des_des_encrypt = yes; then
6116   cat >>confdefs.h <<_ACEOF
6117 #define HAVE_LIBDES 1
6118 _ACEOF
6119
6120   LIBS="-ldes $LIBS"
6121
6122 else
6123   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6124 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6125    { (exit 1); exit 1; }; }
6126 fi
6127
6128
6129 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6130 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6131 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   ac_check_lib_save_LIBS=$LIBS
6135 LIBS="-lkrb  $LIBS"
6136 cat >conftest.$ac_ext <<_ACEOF
6137 #line $LINENO "configure"
6138 #include "confdefs.h"
6139
6140 /* Override any gcc2 internal prototype to avoid an error.  */
6141 #ifdef __cplusplus
6142 extern "C"
6143 #endif
6144 /* We use char because int might match the return type of a gcc2
6145    builtin and then its argument prototype would still apply.  */
6146 char krb_sendauth ();
6147 #ifdef F77_DUMMY_MAIN
6148 #  ifdef __cplusplus
6149      extern "C"
6150 #  endif
6151    int F77_DUMMY_MAIN() { return 1; }
6152 #endif
6153 int
6154 main ()
6155 {
6156 krb_sendauth ();
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163   (eval $ac_link) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -s conftest$ac_exeext'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; }; then
6173   ac_cv_lib_krb_krb_sendauth=yes
6174 else
6175   echo "$as_me: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 ac_cv_lib_krb_krb_sendauth=no
6178 fi
6179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_check_lib_save_LIBS
6181 fi
6182 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6183 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6184 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6185   cat >>confdefs.h <<_ACEOF
6186 #define HAVE_LIBKRB 1
6187 _ACEOF
6188
6189   LIBS="-lkrb $LIBS"
6190
6191 else
6192   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6193 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6194    { (exit 1); exit 1; }; }
6195 fi
6196
6197
6198 for ac_func in gethostname
6199 do
6200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6201 echo "$as_me:$LINENO: checking for $ac_func" >&5
6202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_var+set}\" = set"; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 #include "confdefs.h"
6209 /* System header to define __stub macros and hopefully few prototypes,
6210     which can conflict with char $ac_func (); below.  */
6211 #include <assert.h>
6212 /* Override any gcc2 internal prototype to avoid an error.  */
6213 #ifdef __cplusplus
6214 extern "C"
6215 #endif
6216 /* We use char because int might match the return type of a gcc2
6217    builtin and then its argument prototype would still apply.  */
6218 char $ac_func ();
6219 char (*f) ();
6220
6221 #ifdef F77_DUMMY_MAIN
6222 #  ifdef __cplusplus
6223      extern "C"
6224 #  endif
6225    int F77_DUMMY_MAIN() { return 1; }
6226 #endif
6227 int
6228 main ()
6229 {
6230 /* The GNU C library defines this for functions which it implements
6231     to always fail with ENOSYS.  Some functions are actually named
6232     something starting with __ and the normal name is an alias.  */
6233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6234 choke me
6235 #else
6236 f = $ac_func;
6237 #endif
6238
6239   ;
6240   return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6245   (eval $ac_link) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } &&
6249          { ac_try='test -s conftest$ac_exeext'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255   eval "$as_ac_var=yes"
6256 else
6257   echo "$as_me: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 eval "$as_ac_var=no"
6260 fi
6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6262 fi
6263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6265 if test `eval echo '${'$as_ac_var'}'` = yes; then
6266   cat >>confdefs.h <<_ACEOF
6267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6268 _ACEOF
6269
6270 else
6271   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6272 fi
6273 done
6274
6275
6276 fi
6277
6278 if test "$with_krb5" = yes ; then
6279   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6280 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6281 if test "${ac_cv_search_com_err+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   ac_func_search_save_LIBS=$LIBS
6285 ac_cv_search_com_err=no
6286 cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6288 #include "confdefs.h"
6289
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295    builtin and then its argument prototype would still apply.  */
6296 char com_err ();
6297 #ifdef F77_DUMMY_MAIN
6298 #  ifdef __cplusplus
6299      extern "C"
6300 #  endif
6301    int F77_DUMMY_MAIN() { return 1; }
6302 #endif
6303 int
6304 main ()
6305 {
6306 com_err ();
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313   (eval $ac_link) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } &&
6317          { ac_try='test -s conftest$ac_exeext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   ac_cv_search_com_err="none required"
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6327 fi
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 if test "$ac_cv_search_com_err" = no; then
6330   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6332     cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 #include "confdefs.h"
6335
6336 /* Override any gcc2 internal prototype to avoid an error.  */
6337 #ifdef __cplusplus
6338 extern "C"
6339 #endif
6340 /* We use char because int might match the return type of a gcc2
6341    builtin and then its argument prototype would still apply.  */
6342 char com_err ();
6343 #ifdef F77_DUMMY_MAIN
6344 #  ifdef __cplusplus
6345      extern "C"
6346 #  endif
6347    int F77_DUMMY_MAIN() { return 1; }
6348 #endif
6349 int
6350 main ()
6351 {
6352 com_err ();
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359   (eval $ac_link) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -s conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_search_com_err="-l$ac_lib"
6370 break
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 fi
6375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376   done
6377 fi
6378 LIBS=$ac_func_search_save_LIBS
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6381 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6382 if test "$ac_cv_search_com_err" != no; then
6383   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6384
6385 else
6386   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6387 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6388    { (exit 1); exit 1; }; }
6389 fi
6390
6391   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6392 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6393 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   ac_func_search_save_LIBS=$LIBS
6397 ac_cv_search_krb5_encrypt=no
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6401
6402 /* Override any gcc2 internal prototype to avoid an error.  */
6403 #ifdef __cplusplus
6404 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407    builtin and then its argument prototype would still apply.  */
6408 char krb5_encrypt ();
6409 #ifdef F77_DUMMY_MAIN
6410 #  ifdef __cplusplus
6411      extern "C"
6412 #  endif
6413    int F77_DUMMY_MAIN() { return 1; }
6414 #endif
6415 int
6416 main ()
6417 {
6418 krb5_encrypt ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -s conftest$ac_exeext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_cv_search_krb5_encrypt="none required"
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 fi
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 if test "$ac_cv_search_krb5_encrypt" = no; then
6442   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6444     cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6447
6448 /* Override any gcc2 internal prototype to avoid an error.  */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 /* We use char because int might match the return type of a gcc2
6453    builtin and then its argument prototype would still apply.  */
6454 char krb5_encrypt ();
6455 #ifdef F77_DUMMY_MAIN
6456 #  ifdef __cplusplus
6457      extern "C"
6458 #  endif
6459    int F77_DUMMY_MAIN() { return 1; }
6460 #endif
6461 int
6462 main ()
6463 {
6464 krb5_encrypt ();
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471   (eval $ac_link) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } &&
6475          { ac_try='test -s conftest$ac_exeext'
6476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477   (eval $ac_try) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; }; then
6481   ac_cv_search_krb5_encrypt="-l$ac_lib"
6482 break
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 fi
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488   done
6489 fi
6490 LIBS=$ac_func_search_save_LIBS
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6493 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6494 if test "$ac_cv_search_krb5_encrypt" != no; then
6495   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6496
6497 else
6498   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6499 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6500    { (exit 1); exit 1; }; }
6501 fi
6502
6503   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6504 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6505 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   ac_func_search_save_LIBS=$LIBS
6509 ac_cv_search_krb5_sendauth=no
6510 cat >conftest.$ac_ext <<_ACEOF
6511 #line $LINENO "configure"
6512 #include "confdefs.h"
6513
6514 /* Override any gcc2 internal prototype to avoid an error.  */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519    builtin and then its argument prototype would still apply.  */
6520 char krb5_sendauth ();
6521 #ifdef F77_DUMMY_MAIN
6522 #  ifdef __cplusplus
6523      extern "C"
6524 #  endif
6525    int F77_DUMMY_MAIN() { return 1; }
6526 #endif
6527 int
6528 main ()
6529 {
6530 krb5_sendauth ();
6531   ;
6532   return 0;
6533 }
6534 _ACEOF
6535 rm -f conftest.$ac_objext conftest$ac_exeext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6537   (eval $ac_link) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); } &&
6541          { ac_try='test -s conftest$ac_exeext'
6542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543   (eval $ac_try) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; }; then
6547   ac_cv_search_krb5_sendauth="none required"
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6551 fi
6552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6553 if test "$ac_cv_search_krb5_sendauth" = no; then
6554   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6556     cat >conftest.$ac_ext <<_ACEOF
6557 #line $LINENO "configure"
6558 #include "confdefs.h"
6559
6560 /* Override any gcc2 internal prototype to avoid an error.  */
6561 #ifdef __cplusplus
6562 extern "C"
6563 #endif
6564 /* We use char because int might match the return type of a gcc2
6565    builtin and then its argument prototype would still apply.  */
6566 char krb5_sendauth ();
6567 #ifdef F77_DUMMY_MAIN
6568 #  ifdef __cplusplus
6569      extern "C"
6570 #  endif
6571    int F77_DUMMY_MAIN() { return 1; }
6572 #endif
6573 int
6574 main ()
6575 {
6576 krb5_sendauth ();
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583   (eval $ac_link) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -s conftest$ac_exeext'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; }; then
6593   ac_cv_search_krb5_sendauth="-l$ac_lib"
6594 break
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 fi
6599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6600   done
6601 fi
6602 LIBS=$ac_func_search_save_LIBS
6603 fi
6604 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6605 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6606 if test "$ac_cv_search_krb5_sendauth" != no; then
6607   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6608
6609 else
6610   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6611 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6612    { (exit 1); exit 1; }; }
6613 fi
6614
6615 fi
6616
6617 if test "$with_openssl" = yes ; then
6618
6619 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6620 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6621 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   ac_check_lib_save_LIBS=$LIBS
6625 LIBS="-lcrypto  $LIBS"
6626 cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6628 #include "confdefs.h"
6629
6630 /* Override any gcc2 internal prototype to avoid an error.  */
6631 #ifdef __cplusplus
6632 extern "C"
6633 #endif
6634 /* We use char because int might match the return type of a gcc2
6635    builtin and then its argument prototype would still apply.  */
6636 char CRYPTO_new_ex_data ();
6637 #ifdef F77_DUMMY_MAIN
6638 #  ifdef __cplusplus
6639      extern "C"
6640 #  endif
6641    int F77_DUMMY_MAIN() { return 1; }
6642 #endif
6643 int
6644 main ()
6645 {
6646 CRYPTO_new_ex_data ();
6647   ;
6648   return 0;
6649 }
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653   (eval $ac_link) 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } &&
6657          { ac_try='test -s conftest$ac_exeext'
6658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659   (eval $ac_try) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); }; }; then
6663   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6668 fi
6669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6670 LIBS=$ac_check_lib_save_LIBS
6671 fi
6672 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6673 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6674 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6675   cat >>confdefs.h <<_ACEOF
6676 #define HAVE_LIBCRYPTO 1
6677 _ACEOF
6678
6679   LIBS="-lcrypto $LIBS"
6680
6681 else
6682   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6683 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6684    { (exit 1); exit 1; }; }
6685 fi
6686
6687
6688 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6689 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6690 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   ac_check_lib_save_LIBS=$LIBS
6694 LIBS="-lssl  $LIBS"
6695 cat >conftest.$ac_ext <<_ACEOF
6696 #line $LINENO "configure"
6697 #include "confdefs.h"
6698
6699 /* Override any gcc2 internal prototype to avoid an error.  */
6700 #ifdef __cplusplus
6701 extern "C"
6702 #endif
6703 /* We use char because int might match the return type of a gcc2
6704    builtin and then its argument prototype would still apply.  */
6705 char SSL_library_init ();
6706 #ifdef F77_DUMMY_MAIN
6707 #  ifdef __cplusplus
6708      extern "C"
6709 #  endif
6710    int F77_DUMMY_MAIN() { return 1; }
6711 #endif
6712 int
6713 main ()
6714 {
6715 SSL_library_init ();
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722   (eval $ac_link) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } &&
6726          { ac_try='test -s conftest$ac_exeext'
6727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728   (eval $ac_try) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); }; }; then
6732   ac_cv_lib_ssl_SSL_library_init=yes
6733 else
6734   echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 ac_cv_lib_ssl_SSL_library_init=no
6737 fi
6738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6740 fi
6741 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6742 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6743 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6744   cat >>confdefs.h <<_ACEOF
6745 #define HAVE_LIBSSL 1
6746 _ACEOF
6747
6748   LIBS="-lssl $LIBS"
6749
6750 else
6751   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6752 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6753    { (exit 1); exit 1; }; }
6754 fi
6755
6756 fi
6757
6758 if test "$with_pam" = yes ; then
6759
6760 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6761 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6762 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   ac_check_lib_save_LIBS=$LIBS
6766 LIBS="-lpam  $LIBS"
6767 cat >conftest.$ac_ext <<_ACEOF
6768 #line $LINENO "configure"
6769 #include "confdefs.h"
6770
6771 /* Override any gcc2 internal prototype to avoid an error.  */
6772 #ifdef __cplusplus
6773 extern "C"
6774 #endif
6775 /* We use char because int might match the return type of a gcc2
6776    builtin and then its argument prototype would still apply.  */
6777 char pam_start ();
6778 #ifdef F77_DUMMY_MAIN
6779 #  ifdef __cplusplus
6780      extern "C"
6781 #  endif
6782    int F77_DUMMY_MAIN() { return 1; }
6783 #endif
6784 int
6785 main ()
6786 {
6787 pam_start ();
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794   (eval $ac_link) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } &&
6798          { ac_try='test -s conftest$ac_exeext'
6799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; }; then
6804   ac_cv_lib_pam_pam_start=yes
6805 else
6806   echo "$as_me: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 ac_cv_lib_pam_pam_start=no
6809 fi
6810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 LIBS=$ac_check_lib_save_LIBS
6812 fi
6813 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6814 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6815 if test $ac_cv_lib_pam_pam_start = yes; then
6816   cat >>confdefs.h <<_ACEOF
6817 #define HAVE_LIBPAM 1
6818 _ACEOF
6819
6820   LIBS="-lpam $LIBS"
6821
6822 else
6823   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6824 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6825    { (exit 1); exit 1; }; }
6826 fi
6827
6828 fi
6829
6830
6831 ##
6832 ## Header files
6833 ##
6834
6835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6837 if test "${ac_cv_header_stdc+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6842 #include "confdefs.h"
6843 #include <stdlib.h>
6844 #include <stdarg.h>
6845 #include <string.h>
6846 #include <float.h>
6847
6848 _ACEOF
6849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6851   ac_status=$?
6852   egrep -v '^ *\+' conftest.er1 >conftest.err
6853   rm -f conftest.er1
6854   cat conftest.err >&5
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } >/dev/null; then
6857   if test -s conftest.err; then
6858     ac_cpp_err=$ac_c_preproc_warn_flag
6859   else
6860     ac_cpp_err=
6861   fi
6862 else
6863   ac_cpp_err=yes
6864 fi
6865 if test -z "$ac_cpp_err"; then
6866   ac_cv_header_stdc=yes
6867 else
6868   echo "$as_me: failed program was:" >&5
6869   cat conftest.$ac_ext >&5
6870   ac_cv_header_stdc=no
6871 fi
6872 rm -f conftest.err conftest.$ac_ext
6873
6874 if test $ac_cv_header_stdc = yes; then
6875   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6876   cat >conftest.$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6878 #include "confdefs.h"
6879 #include <string.h>
6880
6881 _ACEOF
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883   egrep "memchr" >/dev/null 2>&1; then
6884   :
6885 else
6886   ac_cv_header_stdc=no
6887 fi
6888 rm -f conftest*
6889
6890 fi
6891
6892 if test $ac_cv_header_stdc = yes; then
6893   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6894   cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 #include "confdefs.h"
6897 #include <stdlib.h>
6898
6899 _ACEOF
6900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6901   egrep "free" >/dev/null 2>&1; then
6902   :
6903 else
6904   ac_cv_header_stdc=no
6905 fi
6906 rm -f conftest*
6907
6908 fi
6909
6910 if test $ac_cv_header_stdc = yes; then
6911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6912   if test "$cross_compiling" = yes; then
6913   :
6914 else
6915   cat >conftest.$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6918 #include <ctype.h>
6919 #if ((' ' & 0x0FF) == 0x020)
6920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6922 #else
6923 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6924                      || ('j' <= (c) && (c) <= 'r') \
6925                      || ('s' <= (c) && (c) <= 'z'))
6926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6927 #endif
6928
6929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6930 int
6931 main ()
6932 {
6933   int i;
6934   for (i = 0; i < 256; i++)
6935     if (XOR (islower (i), ISLOWER (i))
6936         || toupper (i) != TOUPPER (i))
6937       exit(2);
6938   exit (0);
6939 }
6940 _ACEOF
6941 rm -f conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943   (eval $ac_link) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; }; then
6952   :
6953 else
6954   echo "$as_me: program exited with status $ac_status" >&5
6955 echo "$as_me: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6957 ( exit $ac_status )
6958 ac_cv_header_stdc=no
6959 fi
6960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6961 fi
6962 fi
6963 fi
6964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6966 if test $ac_cv_header_stdc = yes; then
6967
6968 cat >>confdefs.h <<\_ACEOF
6969 #define STDC_HEADERS 1
6970 _ACEOF
6971
6972 fi
6973
6974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6985                   inttypes.h stdint.h unistd.h
6986 do
6987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6988 echo "$as_me:$LINENO: checking for $ac_header" >&5
6989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   cat >conftest.$ac_ext <<_ACEOF
6994 #line $LINENO "configure"
6995 #include "confdefs.h"
6996 $ac_includes_default
6997
6998 #include <$ac_header>
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002   (eval $ac_compile) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } &&
7006          { ac_try='test -s conftest.$ac_objext'
7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008   (eval $ac_try) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; }; then
7012   eval "$as_ac_Header=yes"
7013 else
7014   echo "$as_me: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7016 eval "$as_ac_Header=no"
7017 fi
7018 rm -f conftest.$ac_objext conftest.$ac_ext
7019 fi
7020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7023   cat >>confdefs.h <<_ACEOF
7024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7025 _ACEOF
7026
7027 fi
7028
7029 done
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 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
7054 do
7055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7057   echo "$as_me:$LINENO: checking for $ac_header" >&5
7058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 fi
7062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7064 else
7065   # Is the header compilable?
7066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7068 cat >conftest.$ac_ext <<_ACEOF
7069 #line $LINENO "configure"
7070 #include "confdefs.h"
7071 $ac_includes_default
7072 #include <$ac_header>
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076   (eval $ac_compile) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } &&
7080          { ac_try='test -s conftest.$ac_objext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   ac_header_compiler=yes
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 ac_header_compiler=no
7091 fi
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7094 echo "${ECHO_T}$ac_header_compiler" >&6
7095
7096 # Is the header present?
7097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7102 #include <$ac_header>
7103 _ACEOF
7104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7106   ac_status=$?
7107   egrep -v '^ *\+' conftest.er1 >conftest.err
7108   rm -f conftest.er1
7109   cat conftest.err >&5
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); } >/dev/null; then
7112   if test -s conftest.err; then
7113     ac_cpp_err=$ac_c_preproc_warn_flag
7114   else
7115     ac_cpp_err=
7116   fi
7117 else
7118   ac_cpp_err=yes
7119 fi
7120 if test -z "$ac_cpp_err"; then
7121   ac_header_preproc=yes
7122 else
7123   echo "$as_me: failed program was:" >&5
7124   cat conftest.$ac_ext >&5
7125   ac_header_preproc=no
7126 fi
7127 rm -f conftest.err conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7129 echo "${ECHO_T}$ac_header_preproc" >&6
7130
7131 # So?  What about this header?
7132 case $ac_header_compiler:$ac_header_preproc in
7133   yes:no )
7134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7138   no:yes )
7139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7141     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7145 esac
7146 echo "$as_me:$LINENO: checking for $ac_header" >&5
7147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   eval "$as_ac_Header=$ac_header_preproc"
7152 fi
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7155
7156 fi
7157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7158   cat >>confdefs.h <<_ACEOF
7159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7160 _ACEOF
7161
7162 fi
7163
7164 done
7165
7166
7167 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7168 # netinet/in.h is included first.
7169
7170 for ac_header in netinet/in.h
7171 do
7172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7174   echo "$as_me:$LINENO: checking for $ac_header" >&5
7175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 fi
7179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7181 else
7182   # Is the header compilable?
7183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7185 cat >conftest.$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 #include "confdefs.h"
7188 $ac_includes_default
7189 #include <$ac_header>
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193   (eval $ac_compile) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } &&
7197          { ac_try='test -s conftest.$ac_objext'
7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199   (eval $ac_try) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; }; then
7203   ac_header_compiler=yes
7204 else
7205   echo "$as_me: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7207 ac_header_compiler=no
7208 fi
7209 rm -f conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6
7212
7213 # Is the header present?
7214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7217 #line $LINENO "configure"
7218 #include "confdefs.h"
7219 #include <$ac_header>
7220 _ACEOF
7221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7223   ac_status=$?
7224   egrep -v '^ *\+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } >/dev/null; then
7229   if test -s conftest.err; then
7230     ac_cpp_err=$ac_c_preproc_warn_flag
7231   else
7232     ac_cpp_err=
7233   fi
7234 else
7235   ac_cpp_err=yes
7236 fi
7237 if test -z "$ac_cpp_err"; then
7238   ac_header_preproc=yes
7239 else
7240   echo "$as_me: failed program was:" >&5
7241   cat conftest.$ac_ext >&5
7242   ac_header_preproc=no
7243 fi
7244 rm -f conftest.err conftest.$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7246 echo "${ECHO_T}$ac_header_preproc" >&6
7247
7248 # So?  What about this header?
7249 case $ac_header_compiler:$ac_header_preproc in
7250   yes:no )
7251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7255   no:yes )
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7262 esac
7263 echo "$as_me:$LINENO: checking for $ac_header" >&5
7264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   eval "$as_ac_Header=$ac_header_preproc"
7269 fi
7270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7272
7273 fi
7274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275   cat >>confdefs.h <<_ACEOF
7276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277 _ACEOF
7278
7279 fi
7280
7281 done
7282
7283
7284 for ac_header in netinet/tcp.h
7285 do
7286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7287 echo "$as_me:$LINENO: checking for $ac_header" >&5
7288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   cat >conftest.$ac_ext <<_ACEOF
7293 #line $LINENO "configure"
7294 #include "confdefs.h"
7295 $ac_includes_default
7296 #ifdef HAVE_NETINET_IN_H
7297 #include <netinet/in.h>
7298 #endif
7299
7300
7301 #include <$ac_header>
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7305   (eval $ac_compile) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } &&
7309          { ac_try='test -s conftest.$ac_objext'
7310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311   (eval $ac_try) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); }; }; then
7315   eval "$as_ac_Header=yes"
7316 else
7317   echo "$as_me: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7319 eval "$as_ac_Header=no"
7320 fi
7321 rm -f conftest.$ac_objext conftest.$ac_ext
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7326   cat >>confdefs.h <<_ACEOF
7327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328 _ACEOF
7329
7330 fi
7331
7332 done
7333
7334
7335 if test "$with_readline" = yes; then
7336
7337 for ac_header in readline/readline.h
7338 do
7339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341   echo "$as_me:$LINENO: checking for $ac_header" >&5
7342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 fi
7346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348 else
7349   # Is the header compilable?
7350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7354 #include "confdefs.h"
7355 $ac_includes_default
7356 #include <$ac_header>
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360   (eval $ac_compile) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } &&
7364          { ac_try='test -s conftest.$ac_objext'
7365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366   (eval $ac_try) 2>&5
7367   ac_status=$?
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); }; }; then
7370   ac_header_compiler=yes
7371 else
7372   echo "$as_me: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7374 ac_header_compiler=no
7375 fi
7376 rm -f conftest.$ac_objext conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7378 echo "${ECHO_T}$ac_header_compiler" >&6
7379
7380 # Is the header present?
7381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7385 #include "confdefs.h"
7386 #include <$ac_header>
7387 _ACEOF
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390   ac_status=$?
7391   egrep -v '^ *\+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } >/dev/null; then
7396   if test -s conftest.err; then
7397     ac_cpp_err=$ac_c_preproc_warn_flag
7398   else
7399     ac_cpp_err=
7400   fi
7401 else
7402   ac_cpp_err=yes
7403 fi
7404 if test -z "$ac_cpp_err"; then
7405   ac_header_preproc=yes
7406 else
7407   echo "$as_me: failed program was:" >&5
7408   cat conftest.$ac_ext >&5
7409   ac_header_preproc=no
7410 fi
7411 rm -f conftest.err conftest.$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7413 echo "${ECHO_T}$ac_header_preproc" >&6
7414
7415 # So?  What about this header?
7416 case $ac_header_compiler:$ac_header_preproc in
7417   yes:no )
7418     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7422   no:yes )
7423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7429 esac
7430 echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   eval "$as_ac_Header=$ac_header_preproc"
7436 fi
7437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7439
7440 fi
7441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7442   cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7444 _ACEOF
7445
7446 else
7447
7448 for ac_header in editline/readline.h
7449 do
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452   echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 else
7460   # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 #include "confdefs.h"
7466 $ac_includes_default
7467 #include <$ac_header>
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7471   (eval $ac_compile) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); } &&
7475          { ac_try='test -s conftest.$ac_objext'
7476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477   (eval $ac_try) 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); }; }; then
7481   ac_header_compiler=yes
7482 else
7483   echo "$as_me: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 ac_header_compiler=no
7486 fi
7487 rm -f conftest.$ac_objext conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7489 echo "${ECHO_T}$ac_header_compiler" >&6
7490
7491 # Is the header present?
7492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7496 #include "confdefs.h"
7497 #include <$ac_header>
7498 _ACEOF
7499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7501   ac_status=$?
7502   egrep -v '^ *\+' conftest.er1 >conftest.err
7503   rm -f conftest.er1
7504   cat conftest.err >&5
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); } >/dev/null; then
7507   if test -s conftest.err; then
7508     ac_cpp_err=$ac_c_preproc_warn_flag
7509   else
7510     ac_cpp_err=
7511   fi
7512 else
7513   ac_cpp_err=yes
7514 fi
7515 if test -z "$ac_cpp_err"; then
7516   ac_header_preproc=yes
7517 else
7518   echo "$as_me: failed program was:" >&5
7519   cat conftest.$ac_ext >&5
7520   ac_header_preproc=no
7521 fi
7522 rm -f conftest.err conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7524 echo "${ECHO_T}$ac_header_preproc" >&6
7525
7526 # So?  What about this header?
7527 case $ac_header_compiler:$ac_header_preproc in
7528   yes:no )
7529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7533   no:yes )
7534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7536     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7540 esac
7541 echo "$as_me:$LINENO: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   eval "$as_ac_Header=$ac_header_preproc"
7547 fi
7548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7550
7551 fi
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553   cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555 _ACEOF
7556
7557 else
7558
7559 for ac_header in readline.h
7560 do
7561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7563   echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 fi
7568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7570 else
7571   # Is the header compilable?
7572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 #include "confdefs.h"
7577 $ac_includes_default
7578 #include <$ac_header>
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582   (eval $ac_compile) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } &&
7586          { ac_try='test -s conftest.$ac_objext'
7587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588   (eval $ac_try) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); }; }; then
7592   ac_header_compiler=yes
7593 else
7594   echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 ac_header_compiler=no
7597 fi
7598 rm -f conftest.$ac_objext conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6
7601
7602 # Is the header present?
7603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7605 cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 #include "confdefs.h"
7608 #include <$ac_header>
7609 _ACEOF
7610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7612   ac_status=$?
7613   egrep -v '^ *\+' conftest.er1 >conftest.err
7614   rm -f conftest.er1
7615   cat conftest.err >&5
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } >/dev/null; then
7618   if test -s conftest.err; then
7619     ac_cpp_err=$ac_c_preproc_warn_flag
7620   else
7621     ac_cpp_err=
7622   fi
7623 else
7624   ac_cpp_err=yes
7625 fi
7626 if test -z "$ac_cpp_err"; then
7627   ac_header_preproc=yes
7628 else
7629   echo "$as_me: failed program was:" >&5
7630   cat conftest.$ac_ext >&5
7631   ac_header_preproc=no
7632 fi
7633 rm -f conftest.err conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 echo "${ECHO_T}$ac_header_preproc" >&6
7636
7637 # So?  What about this header?
7638 case $ac_header_compiler:$ac_header_preproc in
7639   yes:no )
7640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7644   no:yes )
7645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7647     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7651 esac
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   eval "$as_ac_Header=$ac_header_preproc"
7658 fi
7659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7661
7662 fi
7663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7664   cat >>confdefs.h <<_ACEOF
7665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7666 _ACEOF
7667
7668 else
7669   { { echo "$as_me:$LINENO: error: readline header not found
7670 If you have readline already installed, see config.log for details on the
7671 failure.  It is possible the compiler isn't looking in the proper directory.
7672 Use --without-readline to disable readline support." >&5
7673 echo "$as_me: error: readline header not found
7674 If you have readline already installed, see config.log for details on the
7675 failure.  It is possible the compiler isn't looking in the proper directory.
7676 Use --without-readline to disable readline support." >&2;}
7677    { (exit 1); exit 1; }; }
7678 fi
7679
7680 done
7681
7682 fi
7683
7684 done
7685
7686 fi
7687
7688 done
7689
7690
7691 for ac_header in readline/history.h
7692 do
7693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7695   echo "$as_me:$LINENO: checking for $ac_header" >&5
7696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 fi
7700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7702 else
7703   # Is the header compilable?
7704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line $LINENO "configure"
7708 #include "confdefs.h"
7709 $ac_includes_default
7710 #include <$ac_header>
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714   (eval $ac_compile) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); } &&
7718          { ac_try='test -s conftest.$ac_objext'
7719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720   (eval $ac_try) 2>&5
7721   ac_status=$?
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); }; }; then
7724   ac_header_compiler=yes
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7728 ac_header_compiler=no
7729 fi
7730 rm -f conftest.$ac_objext conftest.$ac_ext
7731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7732 echo "${ECHO_T}$ac_header_compiler" >&6
7733
7734 # Is the header present?
7735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7737 cat >conftest.$ac_ext <<_ACEOF
7738 #line $LINENO "configure"
7739 #include "confdefs.h"
7740 #include <$ac_header>
7741 _ACEOF
7742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7744   ac_status=$?
7745   egrep -v '^ *\+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } >/dev/null; then
7750   if test -s conftest.err; then
7751     ac_cpp_err=$ac_c_preproc_warn_flag
7752   else
7753     ac_cpp_err=
7754   fi
7755 else
7756   ac_cpp_err=yes
7757 fi
7758 if test -z "$ac_cpp_err"; then
7759   ac_header_preproc=yes
7760 else
7761   echo "$as_me: failed program was:" >&5
7762   cat conftest.$ac_ext >&5
7763   ac_header_preproc=no
7764 fi
7765 rm -f conftest.err conftest.$ac_ext
7766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767 echo "${ECHO_T}$ac_header_preproc" >&6
7768
7769 # So?  What about this header?
7770 case $ac_header_compiler:$ac_header_preproc in
7771   yes:no )
7772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7776   no:yes )
7777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7783 esac
7784 echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   eval "$as_ac_Header=$ac_header_preproc"
7790 fi
7791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7793
7794 fi
7795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7796   cat >>confdefs.h <<_ACEOF
7797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798 _ACEOF
7799
7800 else
7801
7802 for ac_header in editline/history.h
7803 do
7804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7806   echo "$as_me:$LINENO: checking for $ac_header" >&5
7807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 fi
7811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7813 else
7814   # Is the header compilable?
7815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7820 $ac_includes_default
7821 #include <$ac_header>
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825   (eval $ac_compile) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -s conftest.$ac_objext'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_header_compiler=yes
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_header_compiler=no
7840 fi
7841 rm -f conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843 echo "${ECHO_T}$ac_header_compiler" >&6
7844
7845 # Is the header present?
7846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7849 #line $LINENO "configure"
7850 #include "confdefs.h"
7851 #include <$ac_header>
7852 _ACEOF
7853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7855   ac_status=$?
7856   egrep -v '^ *\+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } >/dev/null; then
7861   if test -s conftest.err; then
7862     ac_cpp_err=$ac_c_preproc_warn_flag
7863   else
7864     ac_cpp_err=
7865   fi
7866 else
7867   ac_cpp_err=yes
7868 fi
7869 if test -z "$ac_cpp_err"; then
7870   ac_header_preproc=yes
7871 else
7872   echo "$as_me: failed program was:" >&5
7873   cat conftest.$ac_ext >&5
7874   ac_header_preproc=no
7875 fi
7876 rm -f conftest.err conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7878 echo "${ECHO_T}$ac_header_preproc" >&6
7879
7880 # So?  What about this header?
7881 case $ac_header_compiler:$ac_header_preproc in
7882   yes:no )
7883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7887   no:yes )
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7894 esac
7895 echo "$as_me:$LINENO: checking for $ac_header" >&5
7896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900   eval "$as_ac_Header=$ac_header_preproc"
7901 fi
7902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904
7905 fi
7906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7907   cat >>confdefs.h <<_ACEOF
7908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7909 _ACEOF
7910
7911 else
7912
7913 for ac_header in history.h
7914 do
7915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7917   echo "$as_me:$LINENO: checking for $ac_header" >&5
7918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 fi
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7924 else
7925   # Is the header compilable?
7926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7931 $ac_includes_default
7932 #include <$ac_header>
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7936   (eval $ac_compile) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   ac_header_compiler=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7950 ac_header_compiler=no
7951 fi
7952 rm -f conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954 echo "${ECHO_T}$ac_header_compiler" >&6
7955
7956 # Is the header present?
7957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7959 cat >conftest.$ac_ext <<_ACEOF
7960 #line $LINENO "configure"
7961 #include "confdefs.h"
7962 #include <$ac_header>
7963 _ACEOF
7964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7966   ac_status=$?
7967   egrep -v '^ *\+' conftest.er1 >conftest.err
7968   rm -f conftest.er1
7969   cat conftest.err >&5
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } >/dev/null; then
7972   if test -s conftest.err; then
7973     ac_cpp_err=$ac_c_preproc_warn_flag
7974   else
7975     ac_cpp_err=
7976   fi
7977 else
7978   ac_cpp_err=yes
7979 fi
7980 if test -z "$ac_cpp_err"; then
7981   ac_header_preproc=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984   cat conftest.$ac_ext >&5
7985   ac_header_preproc=no
7986 fi
7987 rm -f conftest.err conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7989 echo "${ECHO_T}$ac_header_preproc" >&6
7990
7991 # So?  What about this header?
7992 case $ac_header_compiler:$ac_header_preproc in
7993   yes:no )
7994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7998   no:yes )
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8005 esac
8006 echo "$as_me:$LINENO: checking for $ac_header" >&5
8007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   eval "$as_ac_Header=$ac_header_preproc"
8012 fi
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8015
8016 fi
8017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8018   cat >>confdefs.h <<_ACEOF
8019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020 _ACEOF
8021
8022 else
8023   { { echo "$as_me:$LINENO: error: history header not found
8024 If you have readline already installed, see config.log for details on the
8025 failure.  It is possible the compiler isn't looking in the proper directory.
8026 Use --without-readline to disable readline support." >&5
8027 echo "$as_me: error: history header not found
8028 If you have readline already installed, see config.log for details on the
8029 failure.  It is possible the compiler isn't looking in the proper directory.
8030 Use --without-readline to disable readline support." >&2;}
8031    { (exit 1); exit 1; }; }
8032 fi
8033
8034 done
8035
8036 fi
8037
8038 done
8039
8040 fi
8041
8042 done
8043
8044 fi
8045
8046 if test "$with_zlib" = yes; then
8047   if test "${ac_cv_header_zlib_h+set}" = set; then
8048   echo "$as_me:$LINENO: checking for zlib.h" >&5
8049 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8050 if test "${ac_cv_header_zlib_h+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 fi
8053 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8054 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8055 else
8056   # Is the header compilable?
8057 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8058 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8061 #include "confdefs.h"
8062 $ac_includes_default
8063 #include <zlib.h>
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8067   (eval $ac_compile) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); } &&
8071          { ac_try='test -s conftest.$ac_objext'
8072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073   (eval $ac_try) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; }; then
8077   ac_header_compiler=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 ac_header_compiler=no
8082 fi
8083 rm -f conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8085 echo "${ECHO_T}$ac_header_compiler" >&6
8086
8087 # Is the header present?
8088 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8089 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 #include "confdefs.h"
8093 #include <zlib.h>
8094 _ACEOF
8095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8097   ac_status=$?
8098   egrep -v '^ *\+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } >/dev/null; then
8103   if test -s conftest.err; then
8104     ac_cpp_err=$ac_c_preproc_warn_flag
8105   else
8106     ac_cpp_err=
8107   fi
8108 else
8109   ac_cpp_err=yes
8110 fi
8111 if test -z "$ac_cpp_err"; then
8112   ac_header_preproc=yes
8113 else
8114   echo "$as_me: failed program was:" >&5
8115   cat conftest.$ac_ext >&5
8116   ac_header_preproc=no
8117 fi
8118 rm -f conftest.err conftest.$ac_ext
8119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8120 echo "${ECHO_T}$ac_header_preproc" >&6
8121
8122 # So?  What about this header?
8123 case $ac_header_compiler:$ac_header_preproc in
8124   yes:no )
8125     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8126 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8127     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8128 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8129   no:yes )
8130     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8131 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8132     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8133 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8134     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8135 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8136 esac
8137 echo "$as_me:$LINENO: checking for zlib.h" >&5
8138 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8139 if test "${ac_cv_header_zlib_h+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   ac_cv_header_zlib_h=$ac_header_preproc
8143 fi
8144 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8145 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8146
8147 fi
8148 if test $ac_cv_header_zlib_h = yes; then
8149   :
8150 else
8151   { { echo "$as_me:$LINENO: error: zlib header not found
8152 If you have zlib already installed, see config.log for details on the
8153 failure.  It is possible the compiler isn't looking in the proper directory.
8154 Use --without-zlib to disable zlib support." >&5
8155 echo "$as_me: error: zlib header not found
8156 If you have zlib already installed, see config.log for details on the
8157 failure.  It is possible the compiler isn't looking in the proper directory.
8158 Use --without-zlib to disable zlib support." >&2;}
8159    { (exit 1); exit 1; }; }
8160 fi
8161
8162
8163 fi
8164
8165 if test "$with_krb4" = yes ; then
8166   if test "${ac_cv_header_krb_h+set}" = set; then
8167   echo "$as_me:$LINENO: checking for krb.h" >&5
8168 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8169 if test "${ac_cv_header_krb_h+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 fi
8172 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8173 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8174 else
8175   # Is the header compilable?
8176 echo "$as_me:$LINENO: checking krb.h usability" >&5
8177 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8178 cat >conftest.$ac_ext <<_ACEOF
8179 #line $LINENO "configure"
8180 #include "confdefs.h"
8181 $ac_includes_default
8182 #include <krb.h>
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -s conftest.$ac_objext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_header_compiler=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 ac_header_compiler=no
8201 fi
8202 rm -f conftest.$ac_objext conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8204 echo "${ECHO_T}$ac_header_compiler" >&6
8205
8206 # Is the header present?
8207 echo "$as_me:$LINENO: checking krb.h presence" >&5
8208 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8209 cat >conftest.$ac_ext <<_ACEOF
8210 #line $LINENO "configure"
8211 #include "confdefs.h"
8212 #include <krb.h>
8213 _ACEOF
8214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8216   ac_status=$?
8217   egrep -v '^ *\+' conftest.er1 >conftest.err
8218   rm -f conftest.er1
8219   cat conftest.err >&5
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); } >/dev/null; then
8222   if test -s conftest.err; then
8223     ac_cpp_err=$ac_c_preproc_warn_flag
8224   else
8225     ac_cpp_err=
8226   fi
8227 else
8228   ac_cpp_err=yes
8229 fi
8230 if test -z "$ac_cpp_err"; then
8231   ac_header_preproc=yes
8232 else
8233   echo "$as_me: failed program was:" >&5
8234   cat conftest.$ac_ext >&5
8235   ac_header_preproc=no
8236 fi
8237 rm -f conftest.err conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8239 echo "${ECHO_T}$ac_header_preproc" >&6
8240
8241 # So?  What about this header?
8242 case $ac_header_compiler:$ac_header_preproc in
8243   yes:no )
8244     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8245 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8246     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8247 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8248   no:yes )
8249     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8250 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8251     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8252 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8253     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8254 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8255 esac
8256 echo "$as_me:$LINENO: checking for krb.h" >&5
8257 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8258 if test "${ac_cv_header_krb_h+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   ac_cv_header_krb_h=$ac_header_preproc
8262 fi
8263 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8264 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8265
8266 fi
8267 if test $ac_cv_header_krb_h = yes; then
8268   :
8269 else
8270   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8271 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8272    { (exit 1); exit 1; }; }
8273 fi
8274
8275
8276 fi
8277
8278 if test "$with_krb5" = yes ; then
8279   if test "${ac_cv_header_krb5_h+set}" = set; then
8280   echo "$as_me:$LINENO: checking for krb5.h" >&5
8281 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8282 if test "${ac_cv_header_krb5_h+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 fi
8285 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8286 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8287 else
8288   # Is the header compilable?
8289 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8290 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 #include "confdefs.h"
8294 $ac_includes_default
8295 #include <krb5.h>
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299   (eval $ac_compile) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -s conftest.$ac_objext'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_header_compiler=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8313 ac_header_compiler=no
8314 fi
8315 rm -f conftest.$ac_objext conftest.$ac_ext
8316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8317 echo "${ECHO_T}$ac_header_compiler" >&6
8318
8319 # Is the header present?
8320 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8321 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8322 cat >conftest.$ac_ext <<_ACEOF
8323 #line $LINENO "configure"
8324 #include "confdefs.h"
8325 #include <krb5.h>
8326 _ACEOF
8327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8329   ac_status=$?
8330   egrep -v '^ *\+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } >/dev/null; then
8335   if test -s conftest.err; then
8336     ac_cpp_err=$ac_c_preproc_warn_flag
8337   else
8338     ac_cpp_err=
8339   fi
8340 else
8341   ac_cpp_err=yes
8342 fi
8343 if test -z "$ac_cpp_err"; then
8344   ac_header_preproc=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347   cat conftest.$ac_ext >&5
8348   ac_header_preproc=no
8349 fi
8350 rm -f conftest.err conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8352 echo "${ECHO_T}$ac_header_preproc" >&6
8353
8354 # So?  What about this header?
8355 case $ac_header_compiler:$ac_header_preproc in
8356   yes:no )
8357     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8358 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8361   no:yes )
8362     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8363 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8364     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8365 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8366     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8368 esac
8369 echo "$as_me:$LINENO: checking for krb5.h" >&5
8370 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8371 if test "${ac_cv_header_krb5_h+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_cv_header_krb5_h=$ac_header_preproc
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8377 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8378
8379 fi
8380 if test $ac_cv_header_krb5_h = yes; then
8381   :
8382 else
8383   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8384 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8385    { (exit 1); exit 1; }; }
8386 fi
8387
8388
8389   if test "${ac_cv_header_com_err_h+set}" = set; then
8390   echo "$as_me:$LINENO: checking for com_err.h" >&5
8391 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8392 if test "${ac_cv_header_com_err_h+set}" = set; then
8393   echo $ECHO_N "(cached) $ECHO_C" >&6
8394 fi
8395 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8396 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8397 else
8398   # Is the header compilable?
8399 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8400 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8404 $ac_includes_default
8405 #include <com_err.h>
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8409   (eval $ac_compile) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -s conftest.$ac_objext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_header_compiler=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 ac_header_compiler=no
8424 fi
8425 rm -f conftest.$ac_objext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427 echo "${ECHO_T}$ac_header_compiler" >&6
8428
8429 # Is the header present?
8430 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8431 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #line $LINENO "configure"
8434 #include "confdefs.h"
8435 #include <com_err.h>
8436 _ACEOF
8437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8439   ac_status=$?
8440   egrep -v '^ *\+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } >/dev/null; then
8445   if test -s conftest.err; then
8446     ac_cpp_err=$ac_c_preproc_warn_flag
8447   else
8448     ac_cpp_err=
8449   fi
8450 else
8451   ac_cpp_err=yes
8452 fi
8453 if test -z "$ac_cpp_err"; then
8454   ac_header_preproc=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457   cat conftest.$ac_ext >&5
8458   ac_header_preproc=no
8459 fi
8460 rm -f conftest.err conftest.$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462 echo "${ECHO_T}$ac_header_preproc" >&6
8463
8464 # So?  What about this header?
8465 case $ac_header_compiler:$ac_header_preproc in
8466   yes:no )
8467     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8468 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8471   no:yes )
8472     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8473 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8474     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8475 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8476     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8478 esac
8479 echo "$as_me:$LINENO: checking for com_err.h" >&5
8480 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8481 if test "${ac_cv_header_com_err_h+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   ac_cv_header_com_err_h=$ac_header_preproc
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8487 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8488
8489 fi
8490 if test $ac_cv_header_com_err_h = yes; then
8491   :
8492 else
8493   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8494 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8495    { (exit 1); exit 1; }; }
8496 fi
8497
8498
8499 fi
8500
8501 if test "$with_openssl" = yes ; then
8502   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8503   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8504 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8505 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 fi
8508 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8509 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8510 else
8511   # Is the header compilable?
8512 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8513 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8515 #line $LINENO "configure"
8516 #include "confdefs.h"
8517 $ac_includes_default
8518 #include <openssl/ssl.h>
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522   (eval $ac_compile) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -s conftest.$ac_objext'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; }; then
8532   ac_header_compiler=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 ac_header_compiler=no
8537 fi
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540 echo "${ECHO_T}$ac_header_compiler" >&6
8541
8542 # Is the header present?
8543 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8544 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 #include "confdefs.h"
8548 #include <openssl/ssl.h>
8549 _ACEOF
8550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8552   ac_status=$?
8553   egrep -v '^ *\+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } >/dev/null; then
8558   if test -s conftest.err; then
8559     ac_cpp_err=$ac_c_preproc_warn_flag
8560   else
8561     ac_cpp_err=
8562   fi
8563 else
8564   ac_cpp_err=yes
8565 fi
8566 if test -z "$ac_cpp_err"; then
8567   ac_header_preproc=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570   cat conftest.$ac_ext >&5
8571   ac_header_preproc=no
8572 fi
8573 rm -f conftest.err conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6
8576
8577 # So?  What about this header?
8578 case $ac_header_compiler:$ac_header_preproc in
8579   yes:no )
8580     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8583 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8584   no:yes )
8585     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8586 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8588 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8590 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8591 esac
8592 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8593 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8594 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8600 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8601
8602 fi
8603 if test $ac_cv_header_openssl_ssl_h = yes; then
8604   :
8605 else
8606   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8607 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8608    { (exit 1); exit 1; }; }
8609 fi
8610
8611
8612   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8613   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8614 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8615 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 fi
8618 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8619 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8620 else
8621   # Is the header compilable?
8622 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8623 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8625 #line $LINENO "configure"
8626 #include "confdefs.h"
8627 $ac_includes_default
8628 #include <openssl/err.h>
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632   (eval $ac_compile) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } &&
8636          { ac_try='test -s conftest.$ac_objext'
8637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638   (eval $ac_try) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   ac_header_compiler=yes
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8646 ac_header_compiler=no
8647 fi
8648 rm -f conftest.$ac_objext conftest.$ac_ext
8649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8650 echo "${ECHO_T}$ac_header_compiler" >&6
8651
8652 # Is the header present?
8653 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8654 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line $LINENO "configure"
8657 #include "confdefs.h"
8658 #include <openssl/err.h>
8659 _ACEOF
8660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8662   ac_status=$?
8663   egrep -v '^ *\+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } >/dev/null; then
8668   if test -s conftest.err; then
8669     ac_cpp_err=$ac_c_preproc_warn_flag
8670   else
8671     ac_cpp_err=
8672   fi
8673 else
8674   ac_cpp_err=yes
8675 fi
8676 if test -z "$ac_cpp_err"; then
8677   ac_header_preproc=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680   cat conftest.$ac_ext >&5
8681   ac_header_preproc=no
8682 fi
8683 rm -f conftest.err conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 echo "${ECHO_T}$ac_header_preproc" >&6
8686
8687 # So?  What about this header?
8688 case $ac_header_compiler:$ac_header_preproc in
8689   yes:no )
8690     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8691 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8693 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8694   no:yes )
8695     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8697     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8701 esac
8702 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8703 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8704 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   ac_cv_header_openssl_err_h=$ac_header_preproc
8708 fi
8709 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8710 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8711
8712 fi
8713 if test $ac_cv_header_openssl_err_h = yes; then
8714   :
8715 else
8716   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8717 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8718    { (exit 1); exit 1; }; }
8719 fi
8720
8721
8722 fi
8723
8724 if test "$with_pam" = yes ; then
8725
8726 for ac_header in security/pam_appl.h
8727 do
8728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8730   echo "$as_me:$LINENO: checking for $ac_header" >&5
8731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 fi
8735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8737 else
8738   # Is the header compilable?
8739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 $ac_includes_default
8745 #include <$ac_header>
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749   (eval $ac_compile) 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -s conftest.$ac_objext'
8754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755   (eval $ac_try) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; }; then
8759   ac_header_compiler=yes
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 ac_header_compiler=no
8764 fi
8765 rm -f conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8768
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775 #include <$ac_header>
8776 _ACEOF
8777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8779   ac_status=$?
8780   egrep -v '^ *\+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } >/dev/null; then
8785   if test -s conftest.err; then
8786     ac_cpp_err=$ac_c_preproc_warn_flag
8787   else
8788     ac_cpp_err=
8789   fi
8790 else
8791   ac_cpp_err=yes
8792 fi
8793 if test -z "$ac_cpp_err"; then
8794   ac_header_preproc=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797   cat conftest.$ac_ext >&5
8798   ac_header_preproc=no
8799 fi
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8803
8804 # So?  What about this header?
8805 case $ac_header_compiler:$ac_header_preproc in
8806   yes:no )
8807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8811   no:yes )
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8818 esac
8819 echo "$as_me:$LINENO: checking for $ac_header" >&5
8820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   eval "$as_ac_Header=$ac_header_preproc"
8825 fi
8826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8828
8829 fi
8830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8831   cat >>confdefs.h <<_ACEOF
8832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8833 _ACEOF
8834
8835 else
8836
8837 for ac_header in pam/pam_appl.h
8838 do
8839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8841   echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 fi
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8848 else
8849   # Is the header compilable?
8850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8854 #include "confdefs.h"
8855 $ac_includes_default
8856 #include <$ac_header>
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860   (eval $ac_compile) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); } &&
8864          { ac_try='test -s conftest.$ac_objext'
8865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866   (eval $ac_try) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; }; then
8870   ac_header_compiler=yes
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 ac_header_compiler=no
8875 fi
8876 rm -f conftest.$ac_objext conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8878 echo "${ECHO_T}$ac_header_compiler" >&6
8879
8880 # Is the header present?
8881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8884 #line $LINENO "configure"
8885 #include "confdefs.h"
8886 #include <$ac_header>
8887 _ACEOF
8888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8890   ac_status=$?
8891   egrep -v '^ *\+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } >/dev/null; then
8896   if test -s conftest.err; then
8897     ac_cpp_err=$ac_c_preproc_warn_flag
8898   else
8899     ac_cpp_err=
8900   fi
8901 else
8902   ac_cpp_err=yes
8903 fi
8904 if test -z "$ac_cpp_err"; then
8905   ac_header_preproc=yes
8906 else
8907   echo "$as_me: failed program was:" >&5
8908   cat conftest.$ac_ext >&5
8909   ac_header_preproc=no
8910 fi
8911 rm -f conftest.err conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8913 echo "${ECHO_T}$ac_header_preproc" >&6
8914
8915 # So?  What about this header?
8916 case $ac_header_compiler:$ac_header_preproc in
8917   yes:no )
8918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8922   no:yes )
8923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8925     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8929 esac
8930 echo "$as_me:$LINENO: checking for $ac_header" >&5
8931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8933   echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935   eval "$as_ac_Header=$ac_header_preproc"
8936 fi
8937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8939
8940 fi
8941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8942   cat >>confdefs.h <<_ACEOF
8943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8944 _ACEOF
8945
8946 else
8947   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8948 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8949    { (exit 1); exit 1; }; }
8950 fi
8951
8952 done
8953
8954 fi
8955
8956 done
8957
8958 fi
8959
8960 if test "$with_rendezvous" = yes ; then
8961   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8962   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8963 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8964 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 fi
8967 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8968 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8969 else
8970   # Is the header compilable?
8971 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8972 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8973 cat >conftest.$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8975 #include "confdefs.h"
8976 $ac_includes_default
8977 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981   (eval $ac_compile) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } &&
8985          { ac_try='test -s conftest.$ac_objext'
8986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987   (eval $ac_try) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; }; then
8991   ac_header_compiler=yes
8992 else
8993   echo "$as_me: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8995 ac_header_compiler=no
8996 fi
8997 rm -f conftest.$ac_objext conftest.$ac_ext
8998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8999 echo "${ECHO_T}$ac_header_compiler" >&6
9000
9001 # Is the header present?
9002 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9003 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 #include "confdefs.h"
9007 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9008 _ACEOF
9009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9011   ac_status=$?
9012   egrep -v '^ *\+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } >/dev/null; then
9017   if test -s conftest.err; then
9018     ac_cpp_err=$ac_c_preproc_warn_flag
9019   else
9020     ac_cpp_err=
9021   fi
9022 else
9023   ac_cpp_err=yes
9024 fi
9025 if test -z "$ac_cpp_err"; then
9026   ac_header_preproc=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029   cat conftest.$ac_ext >&5
9030   ac_header_preproc=no
9031 fi
9032 rm -f conftest.err conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9034 echo "${ECHO_T}$ac_header_preproc" >&6
9035
9036 # So?  What about this header?
9037 case $ac_header_compiler:$ac_header_preproc in
9038   yes:no )
9039     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9040 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9041     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9042 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9043   no:yes )
9044     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9045 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9050 esac
9051 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9052 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9053 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9057 fi
9058 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9059 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9060
9061 fi
9062 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9063   :
9064 else
9065   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9066 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9067    { (exit 1); exit 1; }; }
9068 fi
9069
9070
9071 fi
9072
9073
9074 ##
9075 ## Types, structures, compiler characteristics
9076 ##
9077
9078
9079 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9081 if test "${ac_cv_c_const+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   cat >conftest.$ac_ext <<_ACEOF
9085 #line $LINENO "configure"
9086 #include "confdefs.h"
9087
9088 #ifdef F77_DUMMY_MAIN
9089 #  ifdef __cplusplus
9090      extern "C"
9091 #  endif
9092    int F77_DUMMY_MAIN() { return 1; }
9093 #endif
9094 int
9095 main ()
9096 {
9097 /* FIXME: Include the comments suggested by Paul. */
9098 #ifndef __cplusplus
9099   /* Ultrix mips cc rejects this.  */
9100   typedef int charset[2];
9101   const charset x;
9102   /* SunOS 4.1.1 cc rejects this.  */
9103   char const *const *ccp;
9104   char **p;
9105   /* NEC SVR4.0.2 mips cc rejects this.  */
9106   struct point {int x, y;};
9107   static struct point const zero = {0,0};
9108   /* AIX XL C 1.02.0.0 rejects this.
9109      It does not let you subtract one const X* pointer from another in
9110      an arm of an if-expression whose if-part is not a constant
9111      expression */
9112   const char *g = "string";
9113   ccp = &g + (g ? g-g : 0);
9114   /* HPUX 7.0 cc rejects these. */
9115   ++ccp;
9116   p = (char**) ccp;
9117   ccp = (char const *const *) p;
9118   { /* SCO 3.2v4 cc rejects this.  */
9119     char *t;
9120     char const *s = 0 ? (char *) 0 : (char const *) 0;
9121
9122     *t++ = 0;
9123   }
9124   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9125     int x[] = {25, 17};
9126     const int *foo = &x[0];
9127     ++foo;
9128   }
9129   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9130     typedef const int *iptr;
9131     iptr p = 0;
9132     ++p;
9133   }
9134   { /* AIX XL C 1.02.0.0 rejects this saying
9135        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9136     struct s { int j; const int *ap[3]; };
9137     struct s *b; b->j = 5;
9138   }
9139   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9140     const int foo = 10;
9141   }
9142 #endif
9143
9144   ;
9145   return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150   (eval $ac_compile) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } &&
9154          { ac_try='test -s conftest.$ac_objext'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160   ac_cv_c_const=yes
9161 else
9162   echo "$as_me: failed program was:" >&5
9163 cat conftest.$ac_ext >&5
9164 ac_cv_c_const=no
9165 fi
9166 rm -f conftest.$ac_objext conftest.$ac_ext
9167 fi
9168 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9169 echo "${ECHO_T}$ac_cv_c_const" >&6
9170 if test $ac_cv_c_const = no; then
9171
9172 cat >>confdefs.h <<\_ACEOF
9173 #define const
9174 _ACEOF
9175
9176 fi
9177
9178 echo "$as_me:$LINENO: checking for inline" >&5
9179 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9180 if test "${ac_cv_c_inline+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183   ac_cv_c_inline=no
9184 for ac_kw in inline __inline__ __inline; do
9185   cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9188 #ifndef __cplusplus
9189 static $ac_kw int static_foo () {return 0; }
9190 $ac_kw int foo () {return 0; }
9191 #endif
9192
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196   (eval $ac_compile) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); } &&
9200          { ac_try='test -s conftest.$ac_objext'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   ac_cv_c_inline=$ac_kw; break
9207 else
9208   echo "$as_me: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9210 fi
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9212 done
9213
9214 fi
9215 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9216 echo "${ECHO_T}$ac_cv_c_inline" >&6
9217 case $ac_cv_c_inline in
9218   inline | yes) ;;
9219   no)
9220 cat >>confdefs.h <<\_ACEOF
9221 #define inline
9222 _ACEOF
9223  ;;
9224   *)  cat >>confdefs.h <<_ACEOF
9225 #define inline $ac_cv_c_inline
9226 _ACEOF
9227  ;;
9228 esac
9229
9230 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9231 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9232 if test "${ac_cv_c_stringize+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   cat >conftest.$ac_ext <<_ACEOF
9236 #line $LINENO "configure"
9237 #include "confdefs.h"
9238 #define x(y) #y
9239
9240 char *s = x(teststring);
9241 _ACEOF
9242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9243   egrep "#teststring" >/dev/null 2>&1; then
9244   ac_cv_c_stringize=no
9245 else
9246   ac_cv_c_stringize=yes
9247 fi
9248 rm -f conftest*
9249
9250 fi
9251 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9252 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9253 if test $ac_cv_c_stringize = yes; then
9254
9255 cat >>confdefs.h <<\_ACEOF
9256 #define HAVE_STRINGIZE 1
9257 _ACEOF
9258
9259 fi
9260
9261 echo "$as_me:$LINENO: checking for signed types" >&5
9262 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9263 if test "${pgac_cv_c_signed+set}" = set; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266   cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 #include "confdefs.h"
9269
9270 #ifdef F77_DUMMY_MAIN
9271 #  ifdef __cplusplus
9272      extern "C"
9273 #  endif
9274    int F77_DUMMY_MAIN() { return 1; }
9275 #endif
9276 int
9277 main ()
9278 {
9279 signed char c; signed short s; signed int i;
9280   ;
9281   return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9286   (eval $ac_compile) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); } &&
9290          { ac_try='test -s conftest.$ac_objext'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; }; then
9296   pgac_cv_c_signed=yes
9297 else
9298   echo "$as_me: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 pgac_cv_c_signed=no
9301 fi
9302 rm -f conftest.$ac_objext conftest.$ac_ext
9303 fi
9304 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9305 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9306 if test x"$pgac_cv_c_signed" = xno ; then
9307
9308 cat >>confdefs.h <<\_ACEOF
9309 #define signed
9310 _ACEOF
9311
9312 fi
9313 echo "$as_me:$LINENO: checking for working volatile" >&5
9314 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9315 if test "${ac_cv_c_volatile+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   cat >conftest.$ac_ext <<_ACEOF
9319 #line $LINENO "configure"
9320 #include "confdefs.h"
9321
9322 #ifdef F77_DUMMY_MAIN
9323 #  ifdef __cplusplus
9324      extern "C"
9325 #  endif
9326    int F77_DUMMY_MAIN() { return 1; }
9327 #endif
9328 int
9329 main ()
9330 {
9331
9332 volatile int x;
9333 int * volatile y;
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340   (eval $ac_compile) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } &&
9344          { ac_try='test -s conftest.$ac_objext'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; }; then
9350   ac_cv_c_volatile=yes
9351 else
9352   echo "$as_me: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9354 ac_cv_c_volatile=no
9355 fi
9356 rm -f conftest.$ac_objext conftest.$ac_ext
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9359 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9360 if test $ac_cv_c_volatile = no; then
9361
9362 cat >>confdefs.h <<\_ACEOF
9363 #define volatile
9364 _ACEOF
9365
9366 fi
9367
9368 echo "$as_me:$LINENO: checking for __func__" >&5
9369 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9370 if test "${pgac_cv_funcname_func_support+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   cat >conftest.$ac_ext <<_ACEOF
9374 #line $LINENO "configure"
9375 #include "confdefs.h"
9376 #include <stdio.h>
9377 #ifdef F77_DUMMY_MAIN
9378 #  ifdef __cplusplus
9379      extern "C"
9380 #  endif
9381    int F77_DUMMY_MAIN() { return 1; }
9382 #endif
9383 int
9384 main ()
9385 {
9386 printf("%s\n", __func__);
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393   (eval $ac_compile) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest.$ac_objext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   pgac_cv_funcname_func_support=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 pgac_cv_funcname_func_support=no
9408 fi
9409 rm -f conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9412 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9413 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9414
9415 cat >>confdefs.h <<\_ACEOF
9416 #define HAVE_FUNCNAME__FUNC 1
9417 _ACEOF
9418
9419 else
9420 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9421 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9422 if test "${pgac_cv_funcname_function_support+set}" = set; then
9423   echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425   cat >conftest.$ac_ext <<_ACEOF
9426 #line $LINENO "configure"
9427 #include "confdefs.h"
9428 #include <stdio.h>
9429 #ifdef F77_DUMMY_MAIN
9430 #  ifdef __cplusplus
9431      extern "C"
9432 #  endif
9433    int F77_DUMMY_MAIN() { return 1; }
9434 #endif
9435 int
9436 main ()
9437 {
9438 printf("%s\n", __FUNCTION__);
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445   (eval $ac_compile) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } &&
9449          { ac_try='test -s conftest.$ac_objext'
9450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451   (eval $ac_try) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); }; }; then
9455   pgac_cv_funcname_function_support=yes
9456 else
9457   echo "$as_me: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9459 pgac_cv_funcname_function_support=no
9460 fi
9461 rm -f conftest.$ac_objext conftest.$ac_ext
9462 fi
9463 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9464 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9465 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_FUNCNAME__FUNCTION 1
9469 _ACEOF
9470
9471 fi
9472 fi
9473 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9474 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9475 if test "${ac_cv_struct_tm+set}" = set; then
9476   echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478   cat >conftest.$ac_ext <<_ACEOF
9479 #line $LINENO "configure"
9480 #include "confdefs.h"
9481 #include <sys/types.h>
9482 #include <time.h>
9483
9484 #ifdef F77_DUMMY_MAIN
9485 #  ifdef __cplusplus
9486      extern "C"
9487 #  endif
9488    int F77_DUMMY_MAIN() { return 1; }
9489 #endif
9490 int
9491 main ()
9492 {
9493 struct tm *tp; tp->tm_sec;
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500   (eval $ac_compile) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } &&
9504          { ac_try='test -s conftest.$ac_objext'
9505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506   (eval $ac_try) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; }; then
9510   ac_cv_struct_tm=time.h
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 ac_cv_struct_tm=sys/time.h
9515 fi
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9517 fi
9518 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9519 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9520 if test $ac_cv_struct_tm = sys/time.h; then
9521
9522 cat >>confdefs.h <<\_ACEOF
9523 #define TM_IN_SYS_TIME 1
9524 _ACEOF
9525
9526 fi
9527
9528 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9529 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9530 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533   cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9535 #include "confdefs.h"
9536 #include <sys/types.h>
9537 #include <$ac_cv_struct_tm>
9538
9539
9540 #ifdef F77_DUMMY_MAIN
9541 #  ifdef __cplusplus
9542      extern "C"
9543 #  endif
9544    int F77_DUMMY_MAIN() { return 1; }
9545 #endif
9546 int
9547 main ()
9548 {
9549 static struct tm ac_aggr;
9550 if (ac_aggr.tm_zone)
9551 return 0;
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558   (eval $ac_compile) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest.$ac_objext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_member_struct_tm_tm_zone=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_member_struct_tm_tm_zone=no
9573 fi
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9577 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9578 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_STRUCT_TM_TM_ZONE 1
9582 _ACEOF
9583
9584
9585 fi
9586
9587 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9588
9589 cat >>confdefs.h <<\_ACEOF
9590 #define HAVE_TM_ZONE 1
9591 _ACEOF
9592
9593 fi
9594 echo "$as_me:$LINENO: checking for tzname" >&5
9595 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9596 if test "${ac_cv_var_tzname+set}" = set; then
9597   echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599   cat >conftest.$ac_ext <<_ACEOF
9600 #line $LINENO "configure"
9601 #include "confdefs.h"
9602 #include <time.h>
9603 #ifndef tzname /* For SGI.  */
9604 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9605 #endif
9606
9607 #ifdef F77_DUMMY_MAIN
9608 #  ifdef __cplusplus
9609      extern "C"
9610 #  endif
9611    int F77_DUMMY_MAIN() { return 1; }
9612 #endif
9613 int
9614 main ()
9615 {
9616 atoi(*tzname);
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623   (eval $ac_link) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -s conftest$ac_exeext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_var_tzname=yes
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 ac_cv_var_tzname=no
9638 fi
9639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9642 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9643 if test $ac_cv_var_tzname = yes; then
9644
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_TZNAME 1
9647 _ACEOF
9648
9649 fi
9650
9651 echo "$as_me:$LINENO: checking for union semun" >&5
9652 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9653 if test "${ac_cv_type_union_semun+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 #include <sys/types.h>
9660 #include <sys/ipc.h>
9661 #include <sys/sem.h>
9662
9663 #ifdef F77_DUMMY_MAIN
9664 #  ifdef __cplusplus
9665      extern "C"
9666 #  endif
9667    int F77_DUMMY_MAIN() { return 1; }
9668 #endif
9669 int
9670 main ()
9671 {
9672 if ((union semun *) 0)
9673   return 0;
9674 if (sizeof (union semun))
9675   return 0;
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9682   (eval $ac_compile) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } &&
9686          { ac_try='test -s conftest.$ac_objext'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_type_union_semun=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9696 ac_cv_type_union_semun=no
9697 fi
9698 rm -f conftest.$ac_objext conftest.$ac_ext
9699 fi
9700 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9701 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9702 if test $ac_cv_type_union_semun = yes; then
9703
9704 cat >>confdefs.h <<_ACEOF
9705 #define HAVE_UNION_SEMUN 1
9706 _ACEOF
9707
9708
9709 fi
9710
9711 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9712 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9713 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 #line $LINENO "configure"
9718 #include "confdefs.h"
9719 #include <sys/types.h>
9720 #ifdef HAVE_SYS_UN_H
9721 #include <sys/un.h>
9722 #endif
9723
9724
9725 #ifdef F77_DUMMY_MAIN
9726 #  ifdef __cplusplus
9727      extern "C"
9728 #  endif
9729    int F77_DUMMY_MAIN() { return 1; }
9730 #endif
9731 int
9732 main ()
9733 {
9734 if ((struct sockaddr_un *) 0)
9735   return 0;
9736 if (sizeof (struct sockaddr_un))
9737   return 0;
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744   (eval $ac_compile) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } &&
9748          { ac_try='test -s conftest.$ac_objext'
9749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750   (eval $ac_try) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754   ac_cv_type_struct_sockaddr_un=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 ac_cv_type_struct_sockaddr_un=no
9759 fi
9760 rm -f conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9763 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9764 if test $ac_cv_type_struct_sockaddr_un = yes; then
9765
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_STRUCT_SOCKADDR_UN 1
9768 _ACEOF
9769
9770
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_UNIX_SOCKETS 1
9773 _ACEOF
9774
9775 fi
9776
9777 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9778 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9779 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   cat >conftest.$ac_ext <<_ACEOF
9783 #line $LINENO "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9786 #ifdef HAVE_SYS_SOCKET_H
9787 #include <sys/socket.h>
9788 #endif
9789
9790
9791 #ifdef F77_DUMMY_MAIN
9792 #  ifdef __cplusplus
9793      extern "C"
9794 #  endif
9795    int F77_DUMMY_MAIN() { return 1; }
9796 #endif
9797 int
9798 main ()
9799 {
9800 if ((struct sockaddr_storage *) 0)
9801   return 0;
9802 if (sizeof (struct sockaddr_storage))
9803   return 0;
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810   (eval $ac_compile) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } &&
9814          { ac_try='test -s conftest.$ac_objext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_type_struct_sockaddr_storage=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 ac_cv_type_struct_sockaddr_storage=no
9825 fi
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9829 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9830 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9831
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9834 _ACEOF
9835
9836
9837 fi
9838
9839 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9840 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9841 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9847 #include <sys/types.h>
9848 #ifdef HAVE_SYS_SOCKET_H
9849 #include <sys/socket.h>
9850 #endif
9851
9852
9853 #ifdef F77_DUMMY_MAIN
9854 #  ifdef __cplusplus
9855      extern "C"
9856 #  endif
9857    int F77_DUMMY_MAIN() { return 1; }
9858 #endif
9859 int
9860 main ()
9861 {
9862 static struct sockaddr_storage ac_aggr;
9863 if (ac_aggr.ss_family)
9864 return 0;
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 ac_cv_member_struct_sockaddr_storage_ss_family=no
9886 fi
9887 rm -f conftest.$ac_objext conftest.$ac_ext
9888 fi
9889 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9890 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9891 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9892
9893 cat >>confdefs.h <<_ACEOF
9894 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9895 _ACEOF
9896
9897
9898 fi
9899 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9900 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9901 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9902   echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904   cat >conftest.$ac_ext <<_ACEOF
9905 #line $LINENO "configure"
9906 #include "confdefs.h"
9907 #include <sys/types.h>
9908 #ifdef HAVE_SYS_SOCKET_H
9909 #include <sys/socket.h>
9910 #endif
9911
9912
9913 #ifdef F77_DUMMY_MAIN
9914 #  ifdef __cplusplus
9915      extern "C"
9916 #  endif
9917    int F77_DUMMY_MAIN() { return 1; }
9918 #endif
9919 int
9920 main ()
9921 {
9922 static struct sockaddr_storage ac_aggr;
9923 if (ac_aggr.__ss_family)
9924 return 0;
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931   (eval $ac_compile) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } &&
9935          { ac_try='test -s conftest.$ac_objext'
9936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937   (eval $ac_try) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; }; then
9941   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 ac_cv_member_struct_sockaddr_storage___ss_family=no
9946 fi
9947 rm -f conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9950 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9951 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9952
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9955 _ACEOF
9956
9957
9958 fi
9959 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9960 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9961 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 #include "confdefs.h"
9967 #include <sys/types.h>
9968 #ifdef HAVE_SYS_SOCKET_H
9969 #include <sys/socket.h>
9970 #endif
9971
9972
9973 #ifdef F77_DUMMY_MAIN
9974 #  ifdef __cplusplus
9975      extern "C"
9976 #  endif
9977    int F77_DUMMY_MAIN() { return 1; }
9978 #endif
9979 int
9980 main ()
9981 {
9982 static struct sockaddr_storage ac_aggr;
9983 if (ac_aggr.ss_len)
9984 return 0;
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991   (eval $ac_compile) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -s conftest.$ac_objext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 ac_cv_member_struct_sockaddr_storage_ss_len=no
10006 fi
10007 rm -f conftest.$ac_objext conftest.$ac_ext
10008 fi
10009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10010 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10011 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10015 _ACEOF
10016
10017
10018 fi
10019 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10020 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10021 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   cat >conftest.$ac_ext <<_ACEOF
10025 #line $LINENO "configure"
10026 #include "confdefs.h"
10027 #include <sys/types.h>
10028 #ifdef HAVE_SYS_SOCKET_H
10029 #include <sys/socket.h>
10030 #endif
10031
10032
10033 #ifdef F77_DUMMY_MAIN
10034 #  ifdef __cplusplus
10035      extern "C"
10036 #  endif
10037    int F77_DUMMY_MAIN() { return 1; }
10038 #endif
10039 int
10040 main ()
10041 {
10042 static struct sockaddr_storage ac_aggr;
10043 if (ac_aggr.__ss_len)
10044 return 0;
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051   (eval $ac_compile) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } &&
10055          { ac_try='test -s conftest.$ac_objext'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; }; then
10061   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 ac_cv_member_struct_sockaddr_storage___ss_len=no
10066 fi
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10070 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10071 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10072
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10075 _ACEOF
10076
10077
10078 fi
10079 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10080 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10081 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10086 #include "confdefs.h"
10087 #include <sys/types.h>
10088 #ifdef HAVE_SYS_SOCKET_H
10089 #include <sys/socket.h>
10090 #endif
10091
10092
10093 #ifdef F77_DUMMY_MAIN
10094 #  ifdef __cplusplus
10095      extern "C"
10096 #  endif
10097    int F77_DUMMY_MAIN() { return 1; }
10098 #endif
10099 int
10100 main ()
10101 {
10102 static struct sockaddr ac_aggr;
10103 if (ac_aggr.sa_len)
10104 return 0;
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111   (eval $ac_compile) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -s conftest.$ac_objext'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; }; then
10121   ac_cv_member_struct_sockaddr_sa_len=yes
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 ac_cv_member_struct_sockaddr_sa_len=no
10126 fi
10127 rm -f conftest.$ac_objext conftest.$ac_ext
10128 fi
10129 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10130 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10131 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10132
10133 cat >>confdefs.h <<_ACEOF
10134 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10135 _ACEOF
10136
10137
10138 fi
10139
10140 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10141 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10142 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 #line $LINENO "configure"
10147 #include "confdefs.h"
10148 #include <sys/types.h>
10149 #include <sys/socket.h>
10150 #include <netdb.h>
10151
10152
10153 #ifdef F77_DUMMY_MAIN
10154 #  ifdef __cplusplus
10155      extern "C"
10156 #  endif
10157    int F77_DUMMY_MAIN() { return 1; }
10158 #endif
10159 int
10160 main ()
10161 {
10162 if ((struct addrinfo *) 0)
10163   return 0;
10164 if (sizeof (struct addrinfo))
10165   return 0;
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172   (eval $ac_compile) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } &&
10176          { ac_try='test -s conftest.$ac_objext'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   ac_cv_type_struct_addrinfo=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 ac_cv_type_struct_addrinfo=no
10187 fi
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10191 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10192 if test $ac_cv_type_struct_addrinfo = yes; then
10193
10194 cat >>confdefs.h <<_ACEOF
10195 #define HAVE_STRUCT_ADDRINFO 1
10196 _ACEOF
10197
10198
10199 fi
10200
10201
10202 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10203 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10204 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/param.h>
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <sys/ucred.h>
10214
10215 #ifdef F77_DUMMY_MAIN
10216 #  ifdef __cplusplus
10217      extern "C"
10218 #  endif
10219    int F77_DUMMY_MAIN() { return 1; }
10220 #endif
10221 int
10222 main ()
10223 {
10224 if ((struct cmsgcred *) 0)
10225   return 0;
10226 if (sizeof (struct cmsgcred))
10227   return 0;
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234   (eval $ac_compile) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -s conftest.$ac_objext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_type_struct_cmsgcred=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_type_struct_cmsgcred=no
10249 fi
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10253 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10254 if test $ac_cv_type_struct_cmsgcred = yes; then
10255
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_CMSGCRED 1
10258 _ACEOF
10259
10260
10261 fi
10262 echo "$as_me:$LINENO: checking for struct fcred" >&5
10263 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10264 if test "${ac_cv_type_struct_fcred+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267   cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10270 #include <sys/param.h>
10271 #include <sys/types.h>
10272 #include <sys/socket.h>
10273 #include <sys/ucred.h>
10274
10275 #ifdef F77_DUMMY_MAIN
10276 #  ifdef __cplusplus
10277      extern "C"
10278 #  endif
10279    int F77_DUMMY_MAIN() { return 1; }
10280 #endif
10281 int
10282 main ()
10283 {
10284 if ((struct fcred *) 0)
10285   return 0;
10286 if (sizeof (struct fcred))
10287   return 0;
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294   (eval $ac_compile) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } &&
10298          { ac_try='test -s conftest.$ac_objext'
10299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300   (eval $ac_try) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; }; then
10304   ac_cv_type_struct_fcred=yes
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10308 ac_cv_type_struct_fcred=no
10309 fi
10310 rm -f conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10313 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10314 if test $ac_cv_type_struct_fcred = yes; then
10315
10316 cat >>confdefs.h <<_ACEOF
10317 #define HAVE_STRUCT_FCRED 1
10318 _ACEOF
10319
10320
10321 fi
10322 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10323 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10324 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   cat >conftest.$ac_ext <<_ACEOF
10328 #line $LINENO "configure"
10329 #include "confdefs.h"
10330 #include <sys/param.h>
10331 #include <sys/types.h>
10332 #include <sys/socket.h>
10333 #include <sys/ucred.h>
10334
10335 #ifdef F77_DUMMY_MAIN
10336 #  ifdef __cplusplus
10337      extern "C"
10338 #  endif
10339    int F77_DUMMY_MAIN() { return 1; }
10340 #endif
10341 int
10342 main ()
10343 {
10344 if ((struct sockcred *) 0)
10345   return 0;
10346 if (sizeof (struct sockcred))
10347   return 0;
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } &&
10358          { ac_try='test -s conftest.$ac_objext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_cv_type_struct_sockcred=yes
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 cat conftest.$ac_ext >&5
10368 ac_cv_type_struct_sockcred=no
10369 fi
10370 rm -f conftest.$ac_objext conftest.$ac_ext
10371 fi
10372 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10373 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10374 if test $ac_cv_type_struct_sockcred = yes; then
10375
10376 cat >>confdefs.h <<_ACEOF
10377 #define HAVE_STRUCT_SOCKCRED 1
10378 _ACEOF
10379
10380
10381 fi
10382
10383
10384 if test "$with_zlib" = yes; then
10385   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10386   # did not).  While we could work around the lack of z_streamp, it
10387   # seems unwise to encourage people to use such old zlib versions...
10388   echo "$as_me:$LINENO: checking for z_streamp" >&5
10389 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10390 if test "${ac_cv_type_z_streamp+set}" = set; then
10391   echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393   cat >conftest.$ac_ext <<_ACEOF
10394 #line $LINENO "configure"
10395 #include "confdefs.h"
10396 #include <zlib.h>
10397
10398 #ifdef F77_DUMMY_MAIN
10399 #  ifdef __cplusplus
10400      extern "C"
10401 #  endif
10402    int F77_DUMMY_MAIN() { return 1; }
10403 #endif
10404 int
10405 main ()
10406 {
10407 if ((z_streamp *) 0)
10408   return 0;
10409 if (sizeof (z_streamp))
10410   return 0;
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417   (eval $ac_compile) 2>&5
10418   ac_status=$?
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } &&
10421          { ac_try='test -s conftest.$ac_objext'
10422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423   (eval $ac_try) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; }; then
10427   ac_cv_type_z_streamp=yes
10428 else
10429   echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_z_streamp=no
10432 fi
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10436 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10437 if test $ac_cv_type_z_streamp = yes; then
10438   :
10439 else
10440   { { echo "$as_me:$LINENO: error: zlib version is too old
10441 Use --without-zlib to disable zlib support." >&5
10442 echo "$as_me: error: zlib version is too old
10443 Use --without-zlib to disable zlib support." >&2;}
10444    { (exit 1); exit 1; }; }
10445 fi
10446
10447 fi
10448
10449 if test "$with_krb5" = yes; then
10450 # Check for differences between MIT and Heimdal (KTH) releases
10451   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10452 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10453 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 #include "confdefs.h"
10459 #include <krb5.h>
10460
10461 #ifdef F77_DUMMY_MAIN
10462 #  ifdef __cplusplus
10463      extern "C"
10464 #  endif
10465    int F77_DUMMY_MAIN() { return 1; }
10466 #endif
10467 int
10468 main ()
10469 {
10470 static krb5_ticket ac_aggr;
10471 if (ac_aggr.enc_part2)
10472 return 0;
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479   (eval $ac_compile) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -s conftest.$ac_objext'
10484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; }; then
10489   ac_cv_member_krb5_ticket_enc_part2=yes
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 ac_cv_member_krb5_ticket_enc_part2=no
10494 fi
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10498 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10499 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10500
10501 cat >>confdefs.h <<_ACEOF
10502 #define HAVE_KRB5_TICKET_ENC_PART2 1
10503 _ACEOF
10504
10505
10506 else
10507   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10508 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10509 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10515 #include <krb5.h>
10516
10517 #ifdef F77_DUMMY_MAIN
10518 #  ifdef __cplusplus
10519      extern "C"
10520 #  endif
10521    int F77_DUMMY_MAIN() { return 1; }
10522 #endif
10523 int
10524 main ()
10525 {
10526 static krb5_ticket ac_aggr;
10527 if (ac_aggr.client)
10528 return 0;
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535   (eval $ac_compile) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -s conftest.$ac_objext'
10540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541   (eval $ac_try) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; }; then
10545   ac_cv_member_krb5_ticket_client=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 ac_cv_member_krb5_ticket_client=no
10550 fi
10551 rm -f conftest.$ac_objext conftest.$ac_ext
10552 fi
10553 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10554 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10555 if test $ac_cv_member_krb5_ticket_client = yes; then
10556
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_KRB5_TICKET_CLIENT 1
10559 _ACEOF
10560
10561
10562 else
10563   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10564 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10565    { (exit 1); exit 1; }; }
10566 fi
10567
10568 fi
10569
10570   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10571 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10572 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 #include "confdefs.h"
10578 #include <krb5.h>
10579
10580 #ifdef F77_DUMMY_MAIN
10581 #  ifdef __cplusplus
10582      extern "C"
10583 #  endif
10584    int F77_DUMMY_MAIN() { return 1; }
10585 #endif
10586 int
10587 main ()
10588 {
10589 static krb5_error ac_aggr;
10590 if (ac_aggr.text.data)
10591 return 0;
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598   (eval $ac_compile) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -s conftest.$ac_objext'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   ac_cv_member_krb5_error_text_data=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 ac_cv_member_krb5_error_text_data=no
10613 fi
10614 rm -f conftest.$ac_objext conftest.$ac_ext
10615 fi
10616 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10617 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10618 if test $ac_cv_member_krb5_error_text_data = yes; then
10619
10620 cat >>confdefs.h <<_ACEOF
10621 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10622 _ACEOF
10623
10624
10625 else
10626   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10627 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10628 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   cat >conftest.$ac_ext <<_ACEOF
10632 #line $LINENO "configure"
10633 #include "confdefs.h"
10634 #include <krb5.h>
10635
10636 #ifdef F77_DUMMY_MAIN
10637 #  ifdef __cplusplus
10638      extern "C"
10639 #  endif
10640    int F77_DUMMY_MAIN() { return 1; }
10641 #endif
10642 int
10643 main ()
10644 {
10645 static krb5_error ac_aggr;
10646 if (ac_aggr.e_data)
10647 return 0;
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654   (eval $ac_compile) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -s conftest.$ac_objext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_cv_member_krb5_error_e_data=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 ac_cv_member_krb5_error_e_data=no
10669 fi
10670 rm -f conftest.$ac_objext conftest.$ac_ext
10671 fi
10672 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10673 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10674 if test $ac_cv_member_krb5_error_e_data = yes; then
10675
10676 cat >>confdefs.h <<_ACEOF
10677 #define HAVE_KRB5_ERROR_E_DATA 1
10678 _ACEOF
10679
10680
10681 else
10682   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10683 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10684    { (exit 1); exit 1; }; }
10685 fi
10686
10687 fi
10688
10689 fi
10690
10691
10692 ##
10693 ## Functions, global variables
10694 ##
10695
10696 echo "$as_me:$LINENO: checking for int timezone" >&5
10697 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10698 if test "${pgac_cv_var_int_timezone+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   cat >conftest.$ac_ext <<_ACEOF
10702 #line $LINENO "configure"
10703 #include "confdefs.h"
10704 #include <time.h>
10705 int res;
10706 #ifdef F77_DUMMY_MAIN
10707 #  ifdef __cplusplus
10708      extern "C"
10709 #  endif
10710    int F77_DUMMY_MAIN() { return 1; }
10711 #endif
10712 int
10713 main ()
10714 {
10715 res = timezone / 60;
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722   (eval $ac_link) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest$ac_exeext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   pgac_cv_var_int_timezone=yes
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 pgac_cv_var_int_timezone=no
10737 fi
10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10739 fi
10740 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10741 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10742 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define HAVE_INT_TIMEZONE
10746 _ACEOF
10747
10748 fi
10749 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10750 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10751  if test "${ac_cv_func_accept_arg1+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754    if test "${ac_cv_func_accept_arg2+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757     if test "${ac_cv_func_accept_arg3+set}" = set; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10761      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10762       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10763        cat >conftest.$ac_ext <<_ACEOF
10764 #line $LINENO "configure"
10765 #include "confdefs.h"
10766 #ifdef HAVE_SYS_TYPES_H
10767 #include <sys/types.h>
10768 #endif
10769 #ifdef HAVE_SYS_SOCKET_H
10770 #include <sys/socket.h>
10771 #endif
10772 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10773 #ifdef F77_DUMMY_MAIN
10774 #  ifdef __cplusplus
10775      extern "C"
10776 #  endif
10777    int F77_DUMMY_MAIN() { return 1; }
10778 #endif
10779 int
10780 main ()
10781 {
10782
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789   (eval $ac_compile) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } &&
10793          { ac_try='test -s conftest.$ac_objext'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   ac_not_found=no; break 3
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 ac_not_found=yes
10804 fi
10805 rm -f conftest.$ac_objext conftest.$ac_ext
10806       done
10807      done
10808     done
10809     if test "$ac_not_found" = yes; then
10810       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10811 echo "$as_me: error: could not determine argument types" >&2;}
10812    { (exit 1); exit 1; }; }
10813     fi
10814     if test "$ac_cv_func_accept_arg3" = "void"; then
10815       ac_cv_func_accept_arg3=int
10816     fi
10817
10818 fi
10819
10820 fi
10821
10822 fi
10823  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10824 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10825
10826 cat >>confdefs.h <<_ACEOF
10827 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10828 _ACEOF
10829
10830
10831 cat >>confdefs.h <<_ACEOF
10832 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10833 _ACEOF
10834
10835
10836 cat >>confdefs.h <<_ACEOF
10837 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10838 _ACEOF
10839
10840
10841 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10842 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10843 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10848 #include "confdefs.h"
10849 #include <sys/time.h>
10850 #ifdef F77_DUMMY_MAIN
10851 #  ifdef __cplusplus
10852      extern "C"
10853 #  endif
10854    int F77_DUMMY_MAIN() { return 1; }
10855 #endif
10856 int
10857 main ()
10858 {
10859 struct timeval *tp;
10860 struct timezone *tzp;
10861 gettimeofday(tp,tzp);
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868   (eval $ac_compile) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } &&
10872          { ac_try='test -s conftest.$ac_objext'
10873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874   (eval $ac_try) 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; }; then
10878   pgac_cv_func_gettimeofday_1arg=no
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 pgac_cv_func_gettimeofday_1arg=yes
10883 fi
10884 rm -f conftest.$ac_objext conftest.$ac_ext
10885 fi
10886 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10887 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10888 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define GETTIMEOFDAY_1ARG
10892 _ACEOF
10893
10894 fi
10895
10896
10897
10898 # SunOS doesn't handle negative byte comparisons properly with +/- return
10899 echo "$as_me:$LINENO: checking for working memcmp" >&5
10900 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10901 if test "${ac_cv_func_memcmp_working+set}" = set; then
10902   echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904   if test "$cross_compiling" = yes; then
10905   ac_cv_func_memcmp_working=no
10906 else
10907   cat >conftest.$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10909 #include "confdefs.h"
10910
10911 #ifdef F77_DUMMY_MAIN
10912 #  ifdef __cplusplus
10913      extern "C"
10914 #  endif
10915    int F77_DUMMY_MAIN() { return 1; }
10916 #endif
10917 int
10918 main ()
10919 {
10920
10921   /* Some versions of memcmp are not 8-bit clean.  */
10922   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10923   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10924     exit (1);
10925
10926   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10927      or more and with at least one buffer not starting on a 4-byte boundary.
10928      William Lewis provided this test program.   */
10929   {
10930     char foo[21];
10931     char bar[21];
10932     int i;
10933     for (i = 0; i < 4; i++)
10934       {
10935         char *a = foo + i;
10936         char *b = bar + i;
10937         strcpy (a, "--------01111111");
10938         strcpy (b, "--------10000000");
10939         if (memcmp (a, b, 16) >= 0)
10940           exit (1);
10941       }
10942     exit (0);
10943   }
10944
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 rm -f conftest$ac_exeext
10950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951   (eval $ac_link) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   ac_cv_func_memcmp_working=yes
10961 else
10962   echo "$as_me: program exited with status $ac_status" >&5
10963 echo "$as_me: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10965 ( exit $ac_status )
10966 ac_cv_func_memcmp_working=no
10967 fi
10968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10969 fi
10970 fi
10971 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10972 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10973 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10993 do
10994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10995 echo "$as_me:$LINENO: checking for $ac_func" >&5
10996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10997 if eval "test \"\${$as_ac_var+set}\" = set"; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11002 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes,
11004     which can conflict with char $ac_func (); below.  */
11005 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error.  */
11007 #ifdef __cplusplus
11008 extern "C"
11009 #endif
11010 /* We use char because int might match the return type of a gcc2
11011    builtin and then its argument prototype would still apply.  */
11012 char $ac_func ();
11013 char (*f) ();
11014
11015 #ifdef F77_DUMMY_MAIN
11016 #  ifdef __cplusplus
11017      extern "C"
11018 #  endif
11019    int F77_DUMMY_MAIN() { return 1; }
11020 #endif
11021 int
11022 main ()
11023 {
11024 /* The GNU C library defines this for functions which it implements
11025     to always fail with ENOSYS.  Some functions are actually named
11026     something starting with __ and the normal name is an alias.  */
11027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11028 choke me
11029 #else
11030 f = $ac_func;
11031 #endif
11032
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039   (eval $ac_link) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -s conftest$ac_exeext'
11044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045   (eval $ac_try) 2>&5
11046   ac_status=$?
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); }; }; then
11049   eval "$as_ac_var=yes"
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 eval "$as_ac_var=no"
11054 fi
11055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11056 fi
11057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11059 if test `eval echo '${'$as_ac_var'}'` = yes; then
11060   cat >>confdefs.h <<_ACEOF
11061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11062 _ACEOF
11063
11064 fi
11065 done
11066
11067
11068 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11069 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11070 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11071   echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073   cat >conftest.$ac_ext <<_ACEOF
11074 #line $LINENO "configure"
11075 #include "confdefs.h"
11076 #include <unistd.h>
11077
11078 #ifdef F77_DUMMY_MAIN
11079 #  ifdef __cplusplus
11080      extern "C"
11081 #  endif
11082    int F77_DUMMY_MAIN() { return 1; }
11083 #endif
11084 int
11085 main ()
11086 {
11087 #ifndef fdatasync
11088   char *p = (char *) fdatasync;
11089 #endif
11090
11091   ;
11092   return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097   (eval $ac_compile) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } &&
11101          { ac_try='test -s conftest.$ac_objext'
11102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103   (eval $ac_try) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; }; then
11107   ac_cv_have_decl_fdatasync=yes
11108 else
11109   echo "$as_me: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 ac_cv_have_decl_fdatasync=no
11112 fi
11113 rm -f conftest.$ac_objext conftest.$ac_ext
11114 fi
11115 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11116 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11117 if test $ac_cv_have_decl_fdatasync = yes; then
11118
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_DECL_FDATASYNC 1
11121 _ACEOF
11122
11123
11124 else
11125   cat >>confdefs.h <<_ACEOF
11126 #define HAVE_DECL_FDATASYNC 0
11127 _ACEOF
11128
11129
11130 fi
11131
11132
11133
11134 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11135 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11136 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11142 $ac_includes_default
11143 #include <netinet/in.h>
11144
11145 #ifdef F77_DUMMY_MAIN
11146 #  ifdef __cplusplus
11147      extern "C"
11148 #  endif
11149    int F77_DUMMY_MAIN() { return 1; }
11150 #endif
11151 int
11152 main ()
11153 {
11154 if ((struct sockaddr_in6 *) 0)
11155   return 0;
11156 if (sizeof (struct sockaddr_in6))
11157   return 0;
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164   (eval $ac_compile) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } &&
11168          { ac_try='test -s conftest.$ac_objext'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   ac_cv_type_struct_sockaddr_in6=yes
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 ac_cv_type_struct_sockaddr_in6=no
11179 fi
11180 rm -f conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11183 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11184 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11185   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11186 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11187 if test "${ac_cv_func_inet_ntop+set}" = set; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   cat >conftest.$ac_ext <<_ACEOF
11191 #line $LINENO "configure"
11192 #include "confdefs.h"
11193 /* System header to define __stub macros and hopefully few prototypes,
11194     which can conflict with char inet_ntop (); below.  */
11195 #include <assert.h>
11196 /* Override any gcc2 internal prototype to avoid an error.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 /* We use char because int might match the return type of a gcc2
11201    builtin and then its argument prototype would still apply.  */
11202 char inet_ntop ();
11203 char (*f) ();
11204
11205 #ifdef F77_DUMMY_MAIN
11206 #  ifdef __cplusplus
11207      extern "C"
11208 #  endif
11209    int F77_DUMMY_MAIN() { return 1; }
11210 #endif
11211 int
11212 main ()
11213 {
11214 /* The GNU C library defines this for functions which it implements
11215     to always fail with ENOSYS.  Some functions are actually named
11216     something starting with __ and the normal name is an alias.  */
11217 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11218 choke me
11219 #else
11220 f = inet_ntop;
11221 #endif
11222
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 rm -f conftest.$ac_objext conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229   (eval $ac_link) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } &&
11233          { ac_try='test -s conftest$ac_exeext'
11234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235   (eval $ac_try) 2>&5
11236   ac_status=$?
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); }; }; then
11239   ac_cv_func_inet_ntop=yes
11240 else
11241   echo "$as_me: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 ac_cv_func_inet_ntop=no
11244 fi
11245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11246 fi
11247 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11248 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11249 if test $ac_cv_func_inet_ntop = yes; then
11250
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_IPV6 1
11253 _ACEOF
11254
11255 fi
11256
11257 fi
11258
11259
11260 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11261 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11262 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 #include <machine/vmparam.h>
11269 #include <sys/exec.h>
11270
11271 #ifdef F77_DUMMY_MAIN
11272 #  ifdef __cplusplus
11273      extern "C"
11274 #  endif
11275    int F77_DUMMY_MAIN() { return 1; }
11276 #endif
11277 int
11278 main ()
11279 {
11280 PS_STRINGS->ps_nargvstr = 1;
11281 PS_STRINGS->ps_argvstr = "foo";
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288   (eval $ac_link) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -s conftest$ac_exeext'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; }; then
11298   pgac_cv_var_PS_STRINGS=yes
11299 else
11300   echo "$as_me: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 pgac_cv_var_PS_STRINGS=no
11303 fi
11304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11305 fi
11306 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11307 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11308 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11309
11310 cat >>confdefs.h <<\_ACEOF
11311 #define HAVE_PS_STRINGS
11312 _ACEOF
11313
11314 fi
11315
11316
11317 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11318 # is missing.  Yes, there are machines that have only one.  We may
11319 # also decide to use snprintf.c if snprintf() is present but does not
11320 # have working "long long int" support -- see below.
11321
11322 pgac_need_repl_snprintf=no
11323
11324 for ac_func in snprintf
11325 do
11326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11327 echo "$as_me:$LINENO: checking for $ac_func" >&5
11328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11329 if eval "test \"\${$as_ac_var+set}\" = set"; then
11330   echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332   cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 #include "confdefs.h"
11335 /* System header to define __stub macros and hopefully few prototypes,
11336     which can conflict with char $ac_func (); below.  */
11337 #include <assert.h>
11338 /* Override any gcc2 internal prototype to avoid an error.  */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 /* We use char because int might match the return type of a gcc2
11343    builtin and then its argument prototype would still apply.  */
11344 char $ac_func ();
11345 char (*f) ();
11346
11347 #ifdef F77_DUMMY_MAIN
11348 #  ifdef __cplusplus
11349      extern "C"
11350 #  endif
11351    int F77_DUMMY_MAIN() { return 1; }
11352 #endif
11353 int
11354 main ()
11355 {
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 choke me
11361 #else
11362 f = $ac_func;
11363 #endif
11364
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371   (eval $ac_link) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } &&
11375          { ac_try='test -s conftest$ac_exeext'
11376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377   (eval $ac_try) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   eval "$as_ac_var=yes"
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11386 fi
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11388 fi
11389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11391 if test `eval echo '${'$as_ac_var'}'` = yes; then
11392   cat >>confdefs.h <<_ACEOF
11393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394 _ACEOF
11395
11396 else
11397   pgac_need_repl_snprintf=yes
11398 fi
11399 done
11400
11401
11402 for ac_func in vsnprintf
11403 do
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_var+set}\" = set"; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   cat >conftest.$ac_ext <<_ACEOF
11411 #line $LINENO "configure"
11412 #include "confdefs.h"
11413 /* System header to define __stub macros and hopefully few prototypes,
11414     which can conflict with char $ac_func (); below.  */
11415 #include <assert.h>
11416 /* Override any gcc2 internal prototype to avoid an error.  */
11417 #ifdef __cplusplus
11418 extern "C"
11419 #endif
11420 /* We use char because int might match the return type of a gcc2
11421    builtin and then its argument prototype would still apply.  */
11422 char $ac_func ();
11423 char (*f) ();
11424
11425 #ifdef F77_DUMMY_MAIN
11426 #  ifdef __cplusplus
11427      extern "C"
11428 #  endif
11429    int F77_DUMMY_MAIN() { return 1; }
11430 #endif
11431 int
11432 main ()
11433 {
11434 /* The GNU C library defines this for functions which it implements
11435     to always fail with ENOSYS.  Some functions are actually named
11436     something starting with __ and the normal name is an alias.  */
11437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11438 choke me
11439 #else
11440 f = $ac_func;
11441 #endif
11442
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11449   (eval $ac_link) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } &&
11453          { ac_try='test -s conftest$ac_exeext'
11454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455   (eval $ac_try) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; }; then
11459   eval "$as_ac_var=yes"
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 eval "$as_ac_var=no"
11464 fi
11465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11466 fi
11467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11469 if test `eval echo '${'$as_ac_var'}'` = yes; then
11470   cat >>confdefs.h <<_ACEOF
11471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11472 _ACEOF
11473
11474 else
11475   pgac_need_repl_snprintf=yes
11476 fi
11477 done
11478
11479
11480
11481 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11482 # include/c.h will provide declarations.  Note this is a separate test
11483 # from whether the functions exist in the C library --- there are
11484 # systems that have the functions but don't bother to declare them :-(
11485
11486 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11487 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11488 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11489   echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491   cat >conftest.$ac_ext <<_ACEOF
11492 #line $LINENO "configure"
11493 #include "confdefs.h"
11494 $ac_includes_default
11495 #ifdef F77_DUMMY_MAIN
11496 #  ifdef __cplusplus
11497      extern "C"
11498 #  endif
11499    int F77_DUMMY_MAIN() { return 1; }
11500 #endif
11501 int
11502 main ()
11503 {
11504 #ifndef snprintf
11505   char *p = (char *) snprintf;
11506 #endif
11507
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514   (eval $ac_compile) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } &&
11518          { ac_try='test -s conftest.$ac_objext'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; }; then
11524   ac_cv_have_decl_snprintf=yes
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 ac_cv_have_decl_snprintf=no
11529 fi
11530 rm -f conftest.$ac_objext conftest.$ac_ext
11531 fi
11532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11533 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11534 if test $ac_cv_have_decl_snprintf = yes; then
11535
11536 cat >>confdefs.h <<_ACEOF
11537 #define HAVE_DECL_SNPRINTF 1
11538 _ACEOF
11539
11540
11541 else
11542   cat >>confdefs.h <<_ACEOF
11543 #define HAVE_DECL_SNPRINTF 0
11544 _ACEOF
11545
11546
11547 fi
11548 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11549 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11550 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 $ac_includes_default
11557 #ifdef F77_DUMMY_MAIN
11558 #  ifdef __cplusplus
11559      extern "C"
11560 #  endif
11561    int F77_DUMMY_MAIN() { return 1; }
11562 #endif
11563 int
11564 main ()
11565 {
11566 #ifndef vsnprintf
11567   char *p = (char *) vsnprintf;
11568 #endif
11569
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11576   (eval $ac_compile) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } &&
11580          { ac_try='test -s conftest.$ac_objext'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; }; then
11586   ac_cv_have_decl_vsnprintf=yes
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 ac_cv_have_decl_vsnprintf=no
11591 fi
11592 rm -f conftest.$ac_objext conftest.$ac_ext
11593 fi
11594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11595 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11596 if test $ac_cv_have_decl_vsnprintf = yes; then
11597
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_DECL_VSNPRINTF 1
11600 _ACEOF
11601
11602
11603 else
11604   cat >>confdefs.h <<_ACEOF
11605 #define HAVE_DECL_VSNPRINTF 0
11606 _ACEOF
11607
11608
11609 fi
11610
11611
11612
11613
11614 # do this one the hard way in case isinf() is a macro
11615 echo "$as_me:$LINENO: checking for isinf" >&5
11616 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11617 if test "${ac_cv_func_isinf+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623 #include <math.h>
11624
11625 #ifdef F77_DUMMY_MAIN
11626 #  ifdef __cplusplus
11627      extern "C"
11628 #  endif
11629    int F77_DUMMY_MAIN() { return 1; }
11630 #endif
11631 int
11632 main ()
11633 {
11634 double x = 0.0; int res = isinf(x);
11635   ;
11636   return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641   (eval $ac_link) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); } &&
11645          { ac_try='test -s conftest$ac_exeext'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; }; then
11651   ac_cv_func_isinf=yes
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 ac_cv_func_isinf=no
11656 fi
11657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11658 fi
11659 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11660 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11661
11662 if test $ac_cv_func_isinf = yes ; then
11663
11664 cat >>confdefs.h <<\_ACEOF
11665 #define HAVE_ISINF 1
11666 _ACEOF
11667
11668 else
11669   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11670   # Look for a way to implement a substitute for isinf()
11671
11672
11673
11674
11675 for ac_func in fpclass fp_class fp_class_d class
11676 do
11677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11678 echo "$as_me:$LINENO: checking for $ac_func" >&5
11679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11680 if eval "test \"\${$as_ac_var+set}\" = set"; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11686 /* System header to define __stub macros and hopefully few prototypes,
11687     which can conflict with char $ac_func (); below.  */
11688 #include <assert.h>
11689 /* Override any gcc2 internal prototype to avoid an error.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694    builtin and then its argument prototype would still apply.  */
11695 char $ac_func ();
11696 char (*f) ();
11697
11698 #ifdef F77_DUMMY_MAIN
11699 #  ifdef __cplusplus
11700      extern "C"
11701 #  endif
11702    int F77_DUMMY_MAIN() { return 1; }
11703 #endif
11704 int
11705 main ()
11706 {
11707 /* The GNU C library defines this for functions which it implements
11708     to always fail with ENOSYS.  Some functions are actually named
11709     something starting with __ and the normal name is an alias.  */
11710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11711 choke me
11712 #else
11713 f = $ac_func;
11714 #endif
11715
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722   (eval $ac_link) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -s conftest$ac_exeext'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   eval "$as_ac_var=yes"
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11737 fi
11738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11739 fi
11740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11742 if test `eval echo '${'$as_ac_var'}'` = yes; then
11743   cat >>confdefs.h <<_ACEOF
11744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 _ACEOF
11746  break
11747 fi
11748 done
11749
11750 fi
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11767 do
11768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769 echo "$as_me:$LINENO: checking for $ac_func" >&5
11770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11771 if eval "test \"\${$as_ac_var+set}\" = set"; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   cat >conftest.$ac_ext <<_ACEOF
11775 #line $LINENO "configure"
11776 #include "confdefs.h"
11777 /* System header to define __stub macros and hopefully few prototypes,
11778     which can conflict with char $ac_func (); below.  */
11779 #include <assert.h>
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 /* We use char because int might match the return type of a gcc2
11785    builtin and then its argument prototype would still apply.  */
11786 char $ac_func ();
11787 char (*f) ();
11788
11789 #ifdef F77_DUMMY_MAIN
11790 #  ifdef __cplusplus
11791      extern "C"
11792 #  endif
11793    int F77_DUMMY_MAIN() { return 1; }
11794 #endif
11795 int
11796 main ()
11797 {
11798 /* The GNU C library defines this for functions which it implements
11799     to always fail with ENOSYS.  Some functions are actually named
11800     something starting with __ and the normal name is an alias.  */
11801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11802 choke me
11803 #else
11804 f = $ac_func;
11805 #endif
11806
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813   (eval $ac_link) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -s conftest$ac_exeext'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }; then
11823   eval "$as_ac_var=yes"
11824 else
11825   echo "$as_me: failed program was:" >&5
11826 cat conftest.$ac_ext >&5
11827 eval "$as_ac_var=no"
11828 fi
11829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11830 fi
11831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11833 if test `eval echo '${'$as_ac_var'}'` = yes; then
11834   cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11836 _ACEOF
11837
11838 else
11839   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11840 fi
11841 done
11842
11843
11844
11845 # system's version of getaddrinfo(), if any, may be used only if we found
11846 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11847 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11848
11849 for ac_func in getaddrinfo
11850 do
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11854 if eval "test \"\${$as_ac_var+set}\" = set"; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   cat >conftest.$ac_ext <<_ACEOF
11858 #line $LINENO "configure"
11859 #include "confdefs.h"
11860 /* System header to define __stub macros and hopefully few prototypes,
11861     which can conflict with char $ac_func (); below.  */
11862 #include <assert.h>
11863 /* Override any gcc2 internal prototype to avoid an error.  */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868    builtin and then its argument prototype would still apply.  */
11869 char $ac_func ();
11870 char (*f) ();
11871
11872 #ifdef F77_DUMMY_MAIN
11873 #  ifdef __cplusplus
11874      extern "C"
11875 #  endif
11876    int F77_DUMMY_MAIN() { return 1; }
11877 #endif
11878 int
11879 main ()
11880 {
11881 /* The GNU C library defines this for functions which it implements
11882     to always fail with ENOSYS.  Some functions are actually named
11883     something starting with __ and the normal name is an alias.  */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885 choke me
11886 #else
11887 f = $ac_func;
11888 #endif
11889
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } &&
11900          { ac_try='test -s conftest$ac_exeext'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; }; then
11906   eval "$as_ac_var=yes"
11907 else
11908   echo "$as_me: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 eval "$as_ac_var=no"
11911 fi
11912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11913 fi
11914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11916 if test `eval echo '${'$as_ac_var'}'` = yes; then
11917   cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11919 _ACEOF
11920
11921 else
11922   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11923 fi
11924 done
11925
11926
11927 else
11928   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11929 fi
11930
11931 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11932 # We override the previous test that said fseeko/ftello didn't exist
11933 # OS tests are also done in include/c.h and port/fseeko.c
11934 case $host_os in bsdi*|netbsd*)
11935 ac_cv_func_fseeko=yes
11936 esac
11937
11938 # Solaris has a very slow qsort in certain cases, so we replace it.
11939 case $host_os in solaris*)
11940 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11941 esac
11942
11943 # Win32 can't to rename or unlink on an open file
11944 case $host_os in mingw*)
11945 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11946 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11947 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11948 esac
11949
11950 if test "$with_readline" = yes; then
11951   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11952 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 #include "confdefs.h"
11956 #include <stdio.h>
11957 #ifdef HAVE_READLINE_READLINE_H
11958 # include <readline/readline.h>
11959 #elif defined(HAVE_READLINE_H)
11960 # include <readline.h>
11961 #endif
11962
11963 #ifdef F77_DUMMY_MAIN
11964 #  ifdef __cplusplus
11965      extern "C"
11966 #  endif
11967    int F77_DUMMY_MAIN() { return 1; }
11968 #endif
11969 int
11970 main ()
11971 {
11972 rl_completion_append_character = 'x';
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979   (eval $ac_link) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   echo "$as_me:$LINENO: result: yes" >&5
11990 echo "${ECHO_T}yes" >&6
11991
11992 cat >>confdefs.h <<\_ACEOF
11993 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11994 _ACEOF
11995
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 echo "$as_me:$LINENO: result: no" >&5
12000 echo "${ECHO_T}no" >&6
12001 fi
12002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12003
12004
12005 for ac_func in rl_completion_matches rl_filename_completion_function
12006 do
12007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 echo "$as_me:$LINENO: checking for $ac_func" >&5
12009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12010 if eval "test \"\${$as_ac_var+set}\" = set"; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   cat >conftest.$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12015 #include "confdefs.h"
12016 /* System header to define __stub macros and hopefully few prototypes,
12017     which can conflict with char $ac_func (); below.  */
12018 #include <assert.h>
12019 /* Override any gcc2 internal prototype to avoid an error.  */
12020 #ifdef __cplusplus
12021 extern "C"
12022 #endif
12023 /* We use char because int might match the return type of a gcc2
12024    builtin and then its argument prototype would still apply.  */
12025 char $ac_func ();
12026 char (*f) ();
12027
12028 #ifdef F77_DUMMY_MAIN
12029 #  ifdef __cplusplus
12030      extern "C"
12031 #  endif
12032    int F77_DUMMY_MAIN() { return 1; }
12033 #endif
12034 int
12035 main ()
12036 {
12037 /* The GNU C library defines this for functions which it implements
12038     to always fail with ENOSYS.  Some functions are actually named
12039     something starting with __ and the normal name is an alias.  */
12040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12041 choke me
12042 #else
12043 f = $ac_func;
12044 #endif
12045
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052   (eval $ac_link) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -s conftest$ac_exeext'
12057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058   (eval $ac_try) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; }; then
12062   eval "$as_ac_var=yes"
12063 else
12064   echo "$as_me: failed program was:" >&5
12065 cat conftest.$ac_ext >&5
12066 eval "$as_ac_var=no"
12067 fi
12068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12069 fi
12070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12072 if test `eval echo '${'$as_ac_var'}'` = yes; then
12073   cat >>confdefs.h <<_ACEOF
12074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075 _ACEOF
12076
12077 fi
12078 done
12079
12080
12081 for ac_func in replace_history_entry
12082 do
12083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084 echo "$as_me:$LINENO: checking for $ac_func" >&5
12085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12086 if eval "test \"\${$as_ac_var+set}\" = set"; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089   cat >conftest.$ac_ext <<_ACEOF
12090 #line $LINENO "configure"
12091 #include "confdefs.h"
12092 /* System header to define __stub macros and hopefully few prototypes,
12093     which can conflict with char $ac_func (); below.  */
12094 #include <assert.h>
12095 /* Override any gcc2 internal prototype to avoid an error.  */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 /* We use char because int might match the return type of a gcc2
12100    builtin and then its argument prototype would still apply.  */
12101 char $ac_func ();
12102 char (*f) ();
12103
12104 #ifdef F77_DUMMY_MAIN
12105 #  ifdef __cplusplus
12106      extern "C"
12107 #  endif
12108    int F77_DUMMY_MAIN() { return 1; }
12109 #endif
12110 int
12111 main ()
12112 {
12113 /* The GNU C library defines this for functions which it implements
12114     to always fail with ENOSYS.  Some functions are actually named
12115     something starting with __ and the normal name is an alias.  */
12116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12117 choke me
12118 #else
12119 f = $ac_func;
12120 #endif
12121
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } &&
12132          { ac_try='test -s conftest$ac_exeext'
12133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134   (eval $ac_try) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; }; then
12138   eval "$as_ac_var=yes"
12139 else
12140   echo "$as_me: failed program was:" >&5
12141 cat conftest.$ac_ext >&5
12142 eval "$as_ac_var=no"
12143 fi
12144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12145 fi
12146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12148 if test `eval echo '${'$as_ac_var'}'` = yes; then
12149   cat >>confdefs.h <<_ACEOF
12150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12151 _ACEOF
12152
12153 fi
12154 done
12155
12156 fi
12157
12158
12159 echo "$as_me:$LINENO: checking for finite" >&5
12160 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12164 #include <math.h>
12165 #ifdef F77_DUMMY_MAIN
12166 #  ifdef __cplusplus
12167      extern "C"
12168 #  endif
12169    int F77_DUMMY_MAIN() { return 1; }
12170 #endif
12171 int
12172 main ()
12173 {
12174 int dummy=finite(1.0);
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -s conftest$ac_exeext'
12186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187   (eval $ac_try) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); }; }; then
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_FINITE 1
12194 _ACEOF
12195
12196 echo "$as_me:$LINENO: result: yes" >&5
12197 echo "${ECHO_T}yes" >&6
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6
12203 fi
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12205
12206 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12207 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12208 cat >conftest.$ac_ext <<_ACEOF
12209 #line $LINENO "configure"
12210 #include "confdefs.h"
12211 #include <setjmp.h>
12212 #ifdef F77_DUMMY_MAIN
12213 #  ifdef __cplusplus
12214      extern "C"
12215 #  endif
12216    int F77_DUMMY_MAIN() { return 1; }
12217 #endif
12218 int
12219 main ()
12220 {
12221 sigjmp_buf x; sigsetjmp(x, 1);
12222   ;
12223   return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228   (eval $ac_link) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); } &&
12232          { ac_try='test -s conftest$ac_exeext'
12233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234   (eval $ac_try) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_SIGSETJMP 1
12241 _ACEOF
12242
12243 echo "$as_me:$LINENO: result: yes" >&5
12244 echo "${ECHO_T}yes" >&6
12245 else
12246   echo "$as_me: failed program was:" >&5
12247 cat conftest.$ac_ext >&5
12248 echo "$as_me:$LINENO: result: no" >&5
12249 echo "${ECHO_T}no" >&6
12250 fi
12251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12252
12253 echo "$as_me:$LINENO: checking for syslog" >&5
12254 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12255 if test "${ac_cv_func_syslog+set}" = set; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258   cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12261 /* System header to define __stub macros and hopefully few prototypes,
12262     which can conflict with char syslog (); below.  */
12263 #include <assert.h>
12264 /* Override any gcc2 internal prototype to avoid an error.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 /* We use char because int might match the return type of a gcc2
12269    builtin and then its argument prototype would still apply.  */
12270 char syslog ();
12271 char (*f) ();
12272
12273 #ifdef F77_DUMMY_MAIN
12274 #  ifdef __cplusplus
12275      extern "C"
12276 #  endif
12277    int F77_DUMMY_MAIN() { return 1; }
12278 #endif
12279 int
12280 main ()
12281 {
12282 /* The GNU C library defines this for functions which it implements
12283     to always fail with ENOSYS.  Some functions are actually named
12284     something starting with __ and the normal name is an alias.  */
12285 #if defined (__stub_syslog) || defined (__stub___syslog)
12286 choke me
12287 #else
12288 f = syslog;
12289 #endif
12290
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297   (eval $ac_link) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } &&
12301          { ac_try='test -s conftest$ac_exeext'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; }; then
12307   ac_cv_func_syslog=yes
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 cat conftest.$ac_ext >&5
12311 ac_cv_func_syslog=no
12312 fi
12313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12314 fi
12315 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12316 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12317 if test $ac_cv_func_syslog = yes; then
12318   if test "${ac_cv_header_syslog_h+set}" = set; then
12319   echo "$as_me:$LINENO: checking for syslog.h" >&5
12320 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12321 if test "${ac_cv_header_syslog_h+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 fi
12324 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12325 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12326 else
12327   # Is the header compilable?
12328 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12329 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 $ac_includes_default
12334 #include <syslog.h>
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338   (eval $ac_compile) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); } &&
12342          { ac_try='test -s conftest.$ac_objext'
12343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344   (eval $ac_try) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); }; }; then
12348   ac_header_compiler=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 ac_header_compiler=no
12353 fi
12354 rm -f conftest.$ac_objext conftest.$ac_ext
12355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12356 echo "${ECHO_T}$ac_header_compiler" >&6
12357
12358 # Is the header present?
12359 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12360 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12361 cat >conftest.$ac_ext <<_ACEOF
12362 #line $LINENO "configure"
12363 #include "confdefs.h"
12364 #include <syslog.h>
12365 _ACEOF
12366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12368   ac_status=$?
12369   egrep -v '^ *\+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } >/dev/null; then
12374   if test -s conftest.err; then
12375     ac_cpp_err=$ac_c_preproc_warn_flag
12376   else
12377     ac_cpp_err=
12378   fi
12379 else
12380   ac_cpp_err=yes
12381 fi
12382 if test -z "$ac_cpp_err"; then
12383   ac_header_preproc=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386   cat conftest.$ac_ext >&5
12387   ac_header_preproc=no
12388 fi
12389 rm -f conftest.err conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12391 echo "${ECHO_T}$ac_header_preproc" >&6
12392
12393 # So?  What about this header?
12394 case $ac_header_compiler:$ac_header_preproc in
12395   yes:no )
12396     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12397 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12398     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12399 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12400   no:yes )
12401     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12402 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12403     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12404 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12405     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12406 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12407 esac
12408 echo "$as_me:$LINENO: checking for syslog.h" >&5
12409 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12410 if test "${ac_cv_header_syslog_h+set}" = set; then
12411   echo $ECHO_N "(cached) $ECHO_C" >&6
12412 else
12413   ac_cv_header_syslog_h=$ac_header_preproc
12414 fi
12415 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12416 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12417
12418 fi
12419 if test $ac_cv_header_syslog_h = yes; then
12420
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_SYSLOG 1
12423 _ACEOF
12424
12425 fi
12426
12427
12428 fi
12429
12430
12431 echo "$as_me:$LINENO: checking for optreset" >&5
12432 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12433 if test "${pgac_cv_var_int_optreset+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   cat >conftest.$ac_ext <<_ACEOF
12437 #line $LINENO "configure"
12438 #include "confdefs.h"
12439 #include <unistd.h>
12440 #ifdef F77_DUMMY_MAIN
12441 #  ifdef __cplusplus
12442      extern "C"
12443 #  endif
12444    int F77_DUMMY_MAIN() { return 1; }
12445 #endif
12446 int
12447 main ()
12448 {
12449 extern int optreset; optreset = 1;
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456   (eval $ac_link) 2>&5
12457   ac_status=$?
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } &&
12460          { ac_try='test -s conftest$ac_exeext'
12461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462   (eval $ac_try) 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); }; }; then
12466   pgac_cv_var_int_optreset=yes
12467 else
12468   echo "$as_me: failed program was:" >&5
12469 cat conftest.$ac_ext >&5
12470 pgac_cv_var_int_optreset=no
12471 fi
12472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12473 fi
12474 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12475 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12476 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12477
12478 cat >>confdefs.h <<\_ACEOF
12479 #define HAVE_INT_OPTRESET 1
12480 _ACEOF
12481
12482 fi
12483
12484
12485
12486 for ac_func in strtoll strtoq
12487 do
12488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12489 echo "$as_me:$LINENO: checking for $ac_func" >&5
12490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12491 if eval "test \"\${$as_ac_var+set}\" = set"; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   cat >conftest.$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12496 #include "confdefs.h"
12497 /* System header to define __stub macros and hopefully few prototypes,
12498     which can conflict with char $ac_func (); below.  */
12499 #include <assert.h>
12500 /* Override any gcc2 internal prototype to avoid an error.  */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 /* We use char because int might match the return type of a gcc2
12505    builtin and then its argument prototype would still apply.  */
12506 char $ac_func ();
12507 char (*f) ();
12508
12509 #ifdef F77_DUMMY_MAIN
12510 #  ifdef __cplusplus
12511      extern "C"
12512 #  endif
12513    int F77_DUMMY_MAIN() { return 1; }
12514 #endif
12515 int
12516 main ()
12517 {
12518 /* The GNU C library defines this for functions which it implements
12519     to always fail with ENOSYS.  Some functions are actually named
12520     something starting with __ and the normal name is an alias.  */
12521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12522 choke me
12523 #else
12524 f = $ac_func;
12525 #endif
12526
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533   (eval $ac_link) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   eval "$as_ac_var=yes"
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 eval "$as_ac_var=no"
12548 fi
12549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12550 fi
12551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12553 if test `eval echo '${'$as_ac_var'}'` = yes; then
12554   cat >>confdefs.h <<_ACEOF
12555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12556 _ACEOF
12557  break
12558 fi
12559 done
12560
12561
12562
12563 for ac_func in strtoull strtouq
12564 do
12565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12568 if eval "test \"\${$as_ac_var+set}\" = set"; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571   cat >conftest.$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12573 #include "confdefs.h"
12574 /* System header to define __stub macros and hopefully few prototypes,
12575     which can conflict with char $ac_func (); below.  */
12576 #include <assert.h>
12577 /* Override any gcc2 internal prototype to avoid an error.  */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582    builtin and then its argument prototype would still apply.  */
12583 char $ac_func ();
12584 char (*f) ();
12585
12586 #ifdef F77_DUMMY_MAIN
12587 #  ifdef __cplusplus
12588      extern "C"
12589 #  endif
12590    int F77_DUMMY_MAIN() { return 1; }
12591 #endif
12592 int
12593 main ()
12594 {
12595 /* The GNU C library defines this for functions which it implements
12596     to always fail with ENOSYS.  Some functions are actually named
12597     something starting with __ and the normal name is an alias.  */
12598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12599 choke me
12600 #else
12601 f = $ac_func;
12602 #endif
12603
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610   (eval $ac_link) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -s conftest$ac_exeext'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; }; then
12620   eval "$as_ac_var=yes"
12621 else
12622   echo "$as_me: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12624 eval "$as_ac_var=no"
12625 fi
12626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12627 fi
12628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12630 if test `eval echo '${'$as_ac_var'}'` = yes; then
12631   cat >>confdefs.h <<_ACEOF
12632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12633 _ACEOF
12634  break
12635 fi
12636 done
12637
12638
12639 # Check for one of atexit() or on_exit()
12640
12641 for ac_func in atexit
12642 do
12643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12644 echo "$as_me:$LINENO: checking for $ac_func" >&5
12645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12646 if eval "test \"\${$as_ac_var+set}\" = set"; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12651 #include "confdefs.h"
12652 /* System header to define __stub macros and hopefully few prototypes,
12653     which can conflict with char $ac_func (); below.  */
12654 #include <assert.h>
12655 /* Override any gcc2 internal prototype to avoid an error.  */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 /* We use char because int might match the return type of a gcc2
12660    builtin and then its argument prototype would still apply.  */
12661 char $ac_func ();
12662 char (*f) ();
12663
12664 #ifdef F77_DUMMY_MAIN
12665 #  ifdef __cplusplus
12666      extern "C"
12667 #  endif
12668    int F77_DUMMY_MAIN() { return 1; }
12669 #endif
12670 int
12671 main ()
12672 {
12673 /* The GNU C library defines this for functions which it implements
12674     to always fail with ENOSYS.  Some functions are actually named
12675     something starting with __ and the normal name is an alias.  */
12676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12677 choke me
12678 #else
12679 f = $ac_func;
12680 #endif
12681
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688   (eval $ac_link) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -s conftest$ac_exeext'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   eval "$as_ac_var=yes"
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12702 eval "$as_ac_var=no"
12703 fi
12704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12705 fi
12706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12708 if test `eval echo '${'$as_ac_var'}'` = yes; then
12709   cat >>confdefs.h <<_ACEOF
12710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12711 _ACEOF
12712
12713 else
12714
12715 for ac_func in on_exit
12716 do
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12720 if eval "test \"\${$as_ac_var+set}\" = set"; then
12721   echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723   cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 #include "confdefs.h"
12726 /* System header to define __stub macros and hopefully few prototypes,
12727     which can conflict with char $ac_func (); below.  */
12728 #include <assert.h>
12729 /* Override any gcc2 internal prototype to avoid an error.  */
12730 #ifdef __cplusplus
12731 extern "C"
12732 #endif
12733 /* We use char because int might match the return type of a gcc2
12734    builtin and then its argument prototype would still apply.  */
12735 char $ac_func ();
12736 char (*f) ();
12737
12738 #ifdef F77_DUMMY_MAIN
12739 #  ifdef __cplusplus
12740      extern "C"
12741 #  endif
12742    int F77_DUMMY_MAIN() { return 1; }
12743 #endif
12744 int
12745 main ()
12746 {
12747 /* The GNU C library defines this for functions which it implements
12748     to always fail with ENOSYS.  Some functions are actually named
12749     something starting with __ and the normal name is an alias.  */
12750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12751 choke me
12752 #else
12753 f = $ac_func;
12754 #endif
12755
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12762   (eval $ac_link) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } &&
12766          { ac_try='test -s conftest$ac_exeext'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   eval "$as_ac_var=yes"
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 cat conftest.$ac_ext >&5
12776 eval "$as_ac_var=no"
12777 fi
12778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12779 fi
12780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12782 if test `eval echo '${'$as_ac_var'}'` = yes; then
12783   cat >>confdefs.h <<_ACEOF
12784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12785 _ACEOF
12786
12787 else
12788   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12789 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12790    { (exit 1); exit 1; }; }
12791 fi
12792 done
12793
12794 fi
12795 done
12796
12797
12798 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12799 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12800 if test "${ac_cv_sys_largefile_source+set}" = set; then
12801   echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803   while :; do
12804   ac_cv_sys_largefile_source=no
12805   cat >conftest.$ac_ext <<_ACEOF
12806 #line $LINENO "configure"
12807 #include "confdefs.h"
12808 #include <stdio.h>
12809 #ifdef F77_DUMMY_MAIN
12810 #  ifdef __cplusplus
12811      extern "C"
12812 #  endif
12813    int F77_DUMMY_MAIN() { return 1; }
12814 #endif
12815 int
12816 main ()
12817 {
12818 return !fseeko;
12819   ;
12820   return 0;
12821 }
12822 _ACEOF
12823 rm -f conftest.$ac_objext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825   (eval $ac_compile) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } &&
12829          { ac_try='test -s conftest.$ac_objext'
12830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831   (eval $ac_try) 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); }; }; then
12835   break
12836 else
12837   echo "$as_me: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12839 fi
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12841   cat >conftest.$ac_ext <<_ACEOF
12842 #line $LINENO "configure"
12843 #include "confdefs.h"
12844 #define _LARGEFILE_SOURCE 1
12845 #include <stdio.h>
12846 #ifdef F77_DUMMY_MAIN
12847 #  ifdef __cplusplus
12848      extern "C"
12849 #  endif
12850    int F77_DUMMY_MAIN() { return 1; }
12851 #endif
12852 int
12853 main ()
12854 {
12855 return !fseeko;
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12862   (eval $ac_compile) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } &&
12866          { ac_try='test -s conftest.$ac_objext'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; }; then
12872   ac_cv_sys_largefile_source=1; break
12873 else
12874   echo "$as_me: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12876 fi
12877 rm -f conftest.$ac_objext conftest.$ac_ext
12878   break
12879 done
12880 fi
12881 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12882 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12883 if test "$ac_cv_sys_largefile_source" != no; then
12884
12885 cat >>confdefs.h <<_ACEOF
12886 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12887 _ACEOF
12888
12889 fi
12890 rm -f conftest*
12891
12892 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12893 # in glibc 2.1.3, but that breaks too many other things.
12894 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12895 echo "$as_me:$LINENO: checking for fseeko" >&5
12896 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12897 if test "${ac_cv_func_fseeko+set}" = set; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900   cat >conftest.$ac_ext <<_ACEOF
12901 #line $LINENO "configure"
12902 #include "confdefs.h"
12903 #include <stdio.h>
12904 #ifdef F77_DUMMY_MAIN
12905 #  ifdef __cplusplus
12906      extern "C"
12907 #  endif
12908    int F77_DUMMY_MAIN() { return 1; }
12909 #endif
12910 int
12911 main ()
12912 {
12913 return fseeko && fseeko (stdin, 0, 0);
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920   (eval $ac_link) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -s conftest$ac_exeext'
12925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926   (eval $ac_try) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; }; then
12930   ac_cv_func_fseeko=yes
12931 else
12932   echo "$as_me: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12934 ac_cv_func_fseeko=no
12935 fi
12936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12937 fi
12938 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12939 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12940 if test $ac_cv_func_fseeko = yes; then
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_FSEEKO 1
12944 _ACEOF
12945
12946 fi
12947
12948
12949 #
12950 # Pthreads
12951 #
12952 # For each platform, we need to know about any special compile and link
12953 # libraries, and whether the normal C function names are thread-safe.
12954 #
12955 if test "$enable_thread_safety" = yes; then
12956 if test "${ac_cv_header_pthread_h+set}" = set; then
12957   echo "$as_me:$LINENO: checking for pthread.h" >&5
12958 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12959 if test "${ac_cv_header_pthread_h+set}" = set; then
12960   echo $ECHO_N "(cached) $ECHO_C" >&6
12961 fi
12962 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12963 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12964 else
12965   # Is the header compilable?
12966 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12967 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971 $ac_includes_default
12972 #include <pthread.h>
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976   (eval $ac_compile) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } &&
12980          { ac_try='test -s conftest.$ac_objext'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; }; then
12986   ac_header_compiler=yes
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 ac_header_compiler=no
12991 fi
12992 rm -f conftest.$ac_objext conftest.$ac_ext
12993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12994 echo "${ECHO_T}$ac_header_compiler" >&6
12995
12996 # Is the header present?
12997 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12998 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12999 cat >conftest.$ac_ext <<_ACEOF
13000 #line $LINENO "configure"
13001 #include "confdefs.h"
13002 #include <pthread.h>
13003 _ACEOF
13004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13006   ac_status=$?
13007   egrep -v '^ *\+' conftest.er1 >conftest.err
13008   rm -f conftest.er1
13009   cat conftest.err >&5
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } >/dev/null; then
13012   if test -s conftest.err; then
13013     ac_cpp_err=$ac_c_preproc_warn_flag
13014   else
13015     ac_cpp_err=
13016   fi
13017 else
13018   ac_cpp_err=yes
13019 fi
13020 if test -z "$ac_cpp_err"; then
13021   ac_header_preproc=yes
13022 else
13023   echo "$as_me: failed program was:" >&5
13024   cat conftest.$ac_ext >&5
13025   ac_header_preproc=no
13026 fi
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13030
13031 # So?  What about this header?
13032 case $ac_header_compiler:$ac_header_preproc in
13033   yes:no )
13034     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13037 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13038   no:yes )
13039     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13040 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13041     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13042 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13044 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13045 esac
13046 echo "$as_me:$LINENO: checking for pthread.h" >&5
13047 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13048 if test "${ac_cv_header_pthread_h+set}" = set; then
13049   echo $ECHO_N "(cached) $ECHO_C" >&6
13050 else
13051   ac_cv_header_pthread_h=$ac_header_preproc
13052 fi
13053 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13054 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13055
13056 fi
13057 if test $ac_cv_header_pthread_h = yes; then
13058   :
13059 else
13060   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
13061 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
13062    { (exit 1); exit 1; }; }
13063 fi
13064
13065
13066
13067 if test "$SUPPORTS_THREADS" != yes; then
13068 { { echo "$as_me:$LINENO: error:
13069 Cannot enable threads on your platform.
13070 Please report your platform threading info to the PostgreSQL mailing lists
13071 so it can be added to the next release.  Report all compile flags, link flags,
13072 functions, or libraries required for threading support.
13073 " >&5
13074 echo "$as_me: error:
13075 Cannot enable threads on your platform.
13076 Please report your platform threading info to the PostgreSQL mailing lists
13077 so it can be added to the next release.  Report all compile flags, link flags,
13078 functions, or libraries required for threading support.
13079 " >&2;}
13080    { (exit 1); exit 1; }; }
13081 fi
13082 fi
13083
13084
13085
13086
13087 #
13088 # Check for re-entrant versions of certain functions
13089 #
13090 # Include special flags if threads are enabled _and_ if required for
13091 # threading on this platform.  Some platforms have *_r functions but
13092 # their natively named funcs are threadsafe, and should be used instead.
13093 #
13094 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13095 # functions are marked "not found", which is perfect.
13096 #
13097 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13098 _CFLAGS="$CFLAGS"
13099 _LIB="$LIBS"
13100 CFLAGS="$CFLAGS $TREAD_CFLAGS"
13101 LIBS="$LIBS $THREAD_LIBS"
13102
13103
13104
13105 for ac_func in strerror_r getpwuid_r gethostbyname_r
13106 do
13107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13108 echo "$as_me:$LINENO: checking for $ac_func" >&5
13109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13110 if eval "test \"\${$as_ac_var+set}\" = set"; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13115 #include "confdefs.h"
13116 /* System header to define __stub macros and hopefully few prototypes,
13117     which can conflict with char $ac_func (); below.  */
13118 #include <assert.h>
13119 /* Override any gcc2 internal prototype to avoid an error.  */
13120 #ifdef __cplusplus
13121 extern "C"
13122 #endif
13123 /* We use char because int might match the return type of a gcc2
13124    builtin and then its argument prototype would still apply.  */
13125 char $ac_func ();
13126 char (*f) ();
13127
13128 #ifdef F77_DUMMY_MAIN
13129 #  ifdef __cplusplus
13130      extern "C"
13131 #  endif
13132    int F77_DUMMY_MAIN() { return 1; }
13133 #endif
13134 int
13135 main ()
13136 {
13137 /* The GNU C library defines this for functions which it implements
13138     to always fail with ENOSYS.  Some functions are actually named
13139     something starting with __ and the normal name is an alias.  */
13140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13141 choke me
13142 #else
13143 f = $ac_func;
13144 #endif
13145
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152   (eval $ac_link) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } &&
13156          { ac_try='test -s conftest$ac_exeext'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   eval "$as_ac_var=yes"
13163 else
13164   echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 eval "$as_ac_var=no"
13167 fi
13168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13169 fi
13170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13172 if test `eval echo '${'$as_ac_var'}'` = yes; then
13173   cat >>confdefs.h <<_ACEOF
13174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13175 _ACEOF
13176
13177 fi
13178 done
13179
13180 CFLAGS="$_CFLAGS"
13181 LIB="$_LIBS"
13182 fi
13183
13184
13185 # This test makes sure that run tests work at all.  Sometimes a shared
13186 # library is found by the linker, but the runtime linker can't find it.
13187 # This check should come after all modifications of compiler or linker
13188 # variables, and before any other run tests.
13189 echo "$as_me:$LINENO: checking test program" >&5
13190 echo $ECHO_N "checking test program... $ECHO_C" >&6
13191 if test "$cross_compiling" = yes; then
13192   echo "$as_me:$LINENO: result: cross-compiling" >&5
13193 echo "${ECHO_T}cross-compiling" >&6
13194 else
13195   cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13197 #include "confdefs.h"
13198 int main() { return 0; }
13199 _ACEOF
13200 rm -f conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202   (eval $ac_link) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207   (eval $ac_try) 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   echo "$as_me:$LINENO: result: ok" >&5
13212 echo "${ECHO_T}ok" >&6
13213 else
13214   echo "$as_me: program exited with status $ac_status" >&5
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 ( exit $ac_status )
13218 echo "$as_me:$LINENO: result: failed" >&5
13219 echo "${ECHO_T}failed" >&6
13220 { { echo "$as_me:$LINENO: error:
13221 *** Could not execute a simple test program.  This may be a problem
13222 *** related to locating shared libraries.  Check the file 'config.log'
13223 *** for the exact reason." >&5
13224 echo "$as_me: error:
13225 *** Could not execute a simple test program.  This may be a problem
13226 *** related to locating shared libraries.  Check the file 'config.log'
13227 *** for the exact reason." >&2;}
13228    { (exit 1); exit 1; }; }
13229 fi
13230 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13231 fi
13232
13233
13234
13235 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13236 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13237 if test "${pgac_cv_type_long_int_64+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   if test "$cross_compiling" = yes; then
13241   # If cross-compiling, check the size reported by the compiler and
13242 # trust that the arithmetic works.
13243 cat >conftest.$ac_ext <<_ACEOF
13244 #line $LINENO "configure"
13245 #include "confdefs.h"
13246
13247 #ifdef F77_DUMMY_MAIN
13248 #  ifdef __cplusplus
13249      extern "C"
13250 #  endif
13251    int F77_DUMMY_MAIN() { return 1; }
13252 #endif
13253 int
13254 main ()
13255 {
13256 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13257 test_array [0] = 0
13258
13259   ;
13260   return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265   (eval $ac_compile) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   pgac_cv_type_long_int_64=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 cat conftest.$ac_ext >&5
13279 pgac_cv_type_long_int_64=no
13280 fi
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13282 else
13283   cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 #include "confdefs.h"
13286 typedef long int int64;
13287
13288 /*
13289  * These are globals to discourage the compiler from folding all the
13290  * arithmetic tests down to compile-time constants.
13291  */
13292 int64 a = 20000001;
13293 int64 b = 40000005;
13294
13295 int does_int64_work()
13296 {
13297   int64 c,d;
13298
13299   if (sizeof(int64) != 8)
13300     return 0;                   /* definitely not the right size */
13301
13302   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13303   c = a * b;
13304   d = (c + b) / b;
13305   if (d != a+1)
13306     return 0;
13307   return 1;
13308 }
13309 main() {
13310   exit(! does_int64_work());
13311 }
13312 _ACEOF
13313 rm -f conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315   (eval $ac_link) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320   (eval $ac_try) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; }; then
13324   pgac_cv_type_long_int_64=yes
13325 else
13326   echo "$as_me: program exited with status $ac_status" >&5
13327 echo "$as_me: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 ( exit $ac_status )
13330 pgac_cv_type_long_int_64=no
13331 fi
13332 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13333 fi
13334 fi
13335 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13336 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13337
13338 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13339 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13340
13341 cat >>confdefs.h <<\_ACEOF
13342 #define HAVE_LONG_INT_64
13343 _ACEOF
13344
13345 fi
13346
13347
13348 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13349   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13350 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13351 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   if test "$cross_compiling" = yes; then
13355   # If cross-compiling, check the size reported by the compiler and
13356 # trust that the arithmetic works.
13357 cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13359 #include "confdefs.h"
13360
13361 #ifdef F77_DUMMY_MAIN
13362 #  ifdef __cplusplus
13363      extern "C"
13364 #  endif
13365    int F77_DUMMY_MAIN() { return 1; }
13366 #endif
13367 int
13368 main ()
13369 {
13370 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13371 test_array [0] = 0
13372
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379   (eval $ac_compile) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); } &&
13383          { ac_try='test -s conftest.$ac_objext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   pgac_cv_type_long_long_int_64=yes
13390 else
13391   echo "$as_me: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 pgac_cv_type_long_long_int_64=no
13394 fi
13395 rm -f conftest.$ac_objext conftest.$ac_ext
13396 else
13397   cat >conftest.$ac_ext <<_ACEOF
13398 #line $LINENO "configure"
13399 #include "confdefs.h"
13400 typedef long long int int64;
13401
13402 /*
13403  * These are globals to discourage the compiler from folding all the
13404  * arithmetic tests down to compile-time constants.
13405  */
13406 int64 a = 20000001;
13407 int64 b = 40000005;
13408
13409 int does_int64_work()
13410 {
13411   int64 c,d;
13412
13413   if (sizeof(int64) != 8)
13414     return 0;                   /* definitely not the right size */
13415
13416   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13417   c = a * b;
13418   d = (c + b) / b;
13419   if (d != a+1)
13420     return 0;
13421   return 1;
13422 }
13423 main() {
13424   exit(! does_int64_work());
13425 }
13426 _ACEOF
13427 rm -f conftest$ac_exeext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13429   (eval $ac_link) 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   pgac_cv_type_long_long_int_64=yes
13439 else
13440   echo "$as_me: program exited with status $ac_status" >&5
13441 echo "$as_me: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13443 ( exit $ac_status )
13444 pgac_cv_type_long_long_int_64=no
13445 fi
13446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 fi
13449 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13450 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13451
13452 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13453 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13454
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_LONG_LONG_INT_64
13457 _ACEOF
13458
13459 fi
13460
13461 fi
13462
13463
13464
13465 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13466   cat >conftest.$ac_ext <<_ACEOF
13467 #line $LINENO "configure"
13468 #include "confdefs.h"
13469
13470 #define INT64CONST(x)  x##LL
13471 long long int foo = INT64CONST(0x1234567890123456);
13472
13473 #ifdef F77_DUMMY_MAIN
13474 #  ifdef __cplusplus
13475      extern "C"
13476 #  endif
13477    int F77_DUMMY_MAIN() { return 1; }
13478 #endif
13479 int
13480 main ()
13481 {
13482
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } &&
13493          { ac_try='test -s conftest.$ac_objext'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499
13500 cat >>confdefs.h <<\_ACEOF
13501 #define HAVE_LL_CONSTANTS 1
13502 _ACEOF
13503
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13507 fi
13508 rm -f conftest.$ac_objext conftest.$ac_ext
13509 fi
13510
13511
13512 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13513 # we found we need to use "long long int", better check.  We cope with
13514 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13515 # neither works, fall back to our own snprintf emulation (which we
13516 # know uses %lld).
13517
13518 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13519   if test $pgac_need_repl_snprintf = no; then
13520     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13521 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13522 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   for pgac_format in '%lld' '%qd' '%I64d'; do
13526 if test "$cross_compiling" = yes; then
13527   pgac_cv_snprintf_long_long_int_format=cross; break
13528 else
13529   cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13531 #include "confdefs.h"
13532 #include <stdio.h>
13533 typedef long long int int64;
13534 #define INT64_FORMAT "$pgac_format"
13535
13536 int64 a = 20000001;
13537 int64 b = 40000005;
13538
13539 int does_int64_snprintf_work()
13540 {
13541   int64 c;
13542   char buf[100];
13543
13544   if (sizeof(int64) != 8)
13545     return 0;                   /* doesn't look like the right size */
13546
13547   c = a * b;
13548   snprintf(buf, 100, INT64_FORMAT, c);
13549   if (strcmp(buf, "800000140000005") != 0)
13550     return 0;                   /* either multiply or snprintf is busted */
13551   return 1;
13552 }
13553 main() {
13554   exit(! does_int64_snprintf_work());
13555 }
13556 _ACEOF
13557 rm -f conftest$ac_exeext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13559   (eval $ac_link) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; }; then
13568   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13569 else
13570   echo "$as_me: program exited with status $ac_status" >&5
13571 echo "$as_me: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13573 fi
13574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 done
13577 fi
13578
13579 LONG_LONG_INT_FORMAT=''
13580
13581 case $pgac_cv_snprintf_long_long_int_format in
13582   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13583 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13584   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13585 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13586          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13587   *)     echo "$as_me:$LINENO: result: none" >&5
13588 echo "${ECHO_T}none" >&6;;
13589 esac
13590     if test "$LONG_LONG_INT_FORMAT" = ""; then
13591       # Force usage of our own snprintf, since system snprintf is broken
13592       pgac_need_repl_snprintf=yes
13593       LONG_LONG_INT_FORMAT='%lld'
13594     fi
13595   else
13596     # Here if we previously decided we needed to use our own snprintf
13597     LONG_LONG_INT_FORMAT='%lld'
13598   fi
13599   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13600 else
13601   # Here if we are not using 'long long int' at all
13602   INT64_FORMAT='"%ld"'
13603 fi
13604
13605
13606 cat >>confdefs.h <<_ACEOF
13607 #define INT64_FORMAT $INT64_FORMAT
13608 _ACEOF
13609
13610
13611 if test $pgac_need_repl_snprintf = yes; then
13612   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13613 fi
13614
13615 # Need a #define for the size of Datum (unsigned long)
13616 echo "$as_me:$LINENO: checking for unsigned long" >&5
13617 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13618 if test "${ac_cv_type_unsigned_long+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   cat >conftest.$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 #include "confdefs.h"
13624 $ac_includes_default
13625 #ifdef F77_DUMMY_MAIN
13626 #  ifdef __cplusplus
13627      extern "C"
13628 #  endif
13629    int F77_DUMMY_MAIN() { return 1; }
13630 #endif
13631 int
13632 main ()
13633 {
13634 if ((unsigned long *) 0)
13635   return 0;
13636 if (sizeof (unsigned long))
13637   return 0;
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644   (eval $ac_compile) 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } &&
13648          { ac_try='test -s conftest.$ac_objext'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_type_unsigned_long=yes
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 cat conftest.$ac_ext >&5
13658 ac_cv_type_unsigned_long=no
13659 fi
13660 rm -f conftest.$ac_objext conftest.$ac_ext
13661 fi
13662 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13663 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13664
13665 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13666 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13667 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13668   echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670   if test "$ac_cv_type_unsigned_long" = yes; then
13671   # The cast to unsigned long works around a bug in the HP C Compiler
13672   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13673   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13674   # This bug is HP SR number 8606223364.
13675   if test "$cross_compiling" = yes; then
13676   # Depending upon the size, compute the lo and hi bounds.
13677 cat >conftest.$ac_ext <<_ACEOF
13678 #line $LINENO "configure"
13679 #include "confdefs.h"
13680 $ac_includes_default
13681 #ifdef F77_DUMMY_MAIN
13682 #  ifdef __cplusplus
13683      extern "C"
13684 #  endif
13685    int F77_DUMMY_MAIN() { return 1; }
13686 #endif
13687 int
13688 main ()
13689 {
13690 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13691 test_array [0] = 0
13692
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699   (eval $ac_compile) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } &&
13703          { ac_try='test -s conftest.$ac_objext'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_lo=0 ac_mid=0
13710   while :; do
13711     cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 $ac_includes_default
13715 #ifdef F77_DUMMY_MAIN
13716 #  ifdef __cplusplus
13717      extern "C"
13718 #  endif
13719    int F77_DUMMY_MAIN() { return 1; }
13720 #endif
13721 int
13722 main ()
13723 {
13724 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13725 test_array [0] = 0
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_hi=$ac_mid; break
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 ac_lo=`expr $ac_mid + 1`
13748                     if test $ac_lo -le $ac_mid; then
13749                       ac_lo= ac_hi=
13750                       break
13751                     fi
13752                     ac_mid=`expr 2 '*' $ac_mid + 1`
13753 fi
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13755   done
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 cat >conftest.$ac_ext <<_ACEOF
13760 #line $LINENO "configure"
13761 #include "confdefs.h"
13762 $ac_includes_default
13763 #ifdef F77_DUMMY_MAIN
13764 #  ifdef __cplusplus
13765      extern "C"
13766 #  endif
13767    int F77_DUMMY_MAIN() { return 1; }
13768 #endif
13769 int
13770 main ()
13771 {
13772 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13773 test_array [0] = 0
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781   (eval $ac_compile) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -s conftest.$ac_objext'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; }; then
13791   ac_hi=-1 ac_mid=-1
13792   while :; do
13793     cat >conftest.$ac_ext <<_ACEOF
13794 #line $LINENO "configure"
13795 #include "confdefs.h"
13796 $ac_includes_default
13797 #ifdef F77_DUMMY_MAIN
13798 #  ifdef __cplusplus
13799      extern "C"
13800 #  endif
13801    int F77_DUMMY_MAIN() { return 1; }
13802 #endif
13803 int
13804 main ()
13805 {
13806 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13807 test_array [0] = 0
13808
13809   ;
13810   return 0;
13811 }
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815   (eval $ac_compile) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -s conftest.$ac_objext'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   ac_lo=$ac_mid; break
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 ac_hi=`expr '(' $ac_mid ')' - 1`
13830                        if test $ac_mid -le $ac_hi; then
13831                          ac_lo= ac_hi=
13832                          break
13833                        fi
13834                        ac_mid=`expr 2 '*' $ac_mid`
13835 fi
13836 rm -f conftest.$ac_objext conftest.$ac_ext
13837   done
13838 else
13839   echo "$as_me: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13841 ac_lo= ac_hi=
13842 fi
13843 rm -f conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 rm -f conftest.$ac_objext conftest.$ac_ext
13846 # Binary search between lo and hi bounds.
13847 while test "x$ac_lo" != "x$ac_hi"; do
13848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13849   cat >conftest.$ac_ext <<_ACEOF
13850 #line $LINENO "configure"
13851 #include "confdefs.h"
13852 $ac_includes_default
13853 #ifdef F77_DUMMY_MAIN
13854 #  ifdef __cplusplus
13855      extern "C"
13856 #  endif
13857    int F77_DUMMY_MAIN() { return 1; }
13858 #endif
13859 int
13860 main ()
13861 {
13862 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13863 test_array [0] = 0
13864
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 rm -f conftest.$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871   (eval $ac_compile) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } &&
13875          { ac_try='test -s conftest.$ac_objext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   ac_hi=$ac_mid
13882 else
13883   echo "$as_me: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13885 ac_lo=`expr '(' $ac_mid ')' + 1`
13886 fi
13887 rm -f conftest.$ac_objext conftest.$ac_ext
13888 done
13889 case $ac_lo in
13890 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13892 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13893    { (exit 1); exit 1; }; } ;;
13894 esac
13895 else
13896   if test "$cross_compiling" = yes; then
13897   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13898 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13899    { (exit 1); exit 1; }; }
13900 else
13901   cat >conftest.$ac_ext <<_ACEOF
13902 #line $LINENO "configure"
13903 #include "confdefs.h"
13904 $ac_includes_default
13905 long longval () { return (long) (sizeof (unsigned long)); }
13906 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13907 #include <stdio.h>
13908 #include <stdlib.h>
13909 #ifdef F77_DUMMY_MAIN
13910 #  ifdef __cplusplus
13911      extern "C"
13912 #  endif
13913    int F77_DUMMY_MAIN() { return 1; }
13914 #endif
13915 int
13916 main ()
13917 {
13918
13919   FILE *f = fopen ("conftest.val", "w");
13920   if (! f)
13921     exit (1);
13922   if (((long) (sizeof (unsigned long))) < 0)
13923     {
13924       long i = longval ();
13925       if (i != ((long) (sizeof (unsigned long))))
13926         exit (1);
13927       fprintf (f, "%ld\n", i);
13928     }
13929   else
13930     {
13931       unsigned long i = ulongval ();
13932       if (i != ((long) (sizeof (unsigned long))))
13933         exit (1);
13934       fprintf (f, "%lu\n", i);
13935     }
13936   exit (ferror (f) || fclose (f) != 0);
13937
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944   (eval $ac_link) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; }; then
13953   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13954 else
13955   echo "$as_me: program exited with status $ac_status" >&5
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13958 ( exit $ac_status )
13959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13960 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13961    { (exit 1); exit 1; }; }
13962 fi
13963 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13964 fi
13965 fi
13966 rm -f conftest.val
13967 else
13968   ac_cv_sizeof_unsigned_long=0
13969 fi
13970 fi
13971 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13972 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13973 cat >>confdefs.h <<_ACEOF
13974 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13975 _ACEOF
13976
13977
13978
13979 # Determine memory alignment requirements for the basic C data types.
13980
13981 echo "$as_me:$LINENO: checking for short" >&5
13982 echo $ECHO_N "checking for short... $ECHO_C" >&6
13983 if test "${ac_cv_type_short+set}" = set; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   cat >conftest.$ac_ext <<_ACEOF
13987 #line $LINENO "configure"
13988 #include "confdefs.h"
13989 $ac_includes_default
13990 #ifdef F77_DUMMY_MAIN
13991 #  ifdef __cplusplus
13992      extern "C"
13993 #  endif
13994    int F77_DUMMY_MAIN() { return 1; }
13995 #endif
13996 int
13997 main ()
13998 {
13999 if ((short *) 0)
14000   return 0;
14001 if (sizeof (short))
14002   return 0;
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009   (eval $ac_compile) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; }; then
14019   ac_cv_type_short=yes
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 ac_cv_type_short=no
14024 fi
14025 rm -f conftest.$ac_objext conftest.$ac_ext
14026 fi
14027 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14028 echo "${ECHO_T}$ac_cv_type_short" >&6
14029
14030 echo "$as_me:$LINENO: checking alignment of short" >&5
14031 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14032 if test "${pgac_cv_alignof_short+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   if test "$ac_cv_type_short" = yes; then
14036   if test "$cross_compiling" = yes; then
14037   # Depending upon the size, compute the lo and hi bounds.
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14041 $ac_includes_default
14042 struct { char filler; short field; } pgac_struct;
14043 #ifdef F77_DUMMY_MAIN
14044 #  ifdef __cplusplus
14045      extern "C"
14046 #  endif
14047    int F77_DUMMY_MAIN() { return 1; }
14048 #endif
14049 int
14050 main ()
14051 {
14052 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14053 test_array [0] = 0
14054
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061   (eval $ac_compile) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -s conftest.$ac_objext'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_lo=0 ac_mid=0
14072   while :; do
14073     cat >conftest.$ac_ext <<_ACEOF
14074 #line $LINENO "configure"
14075 #include "confdefs.h"
14076 $ac_includes_default
14077 struct { char filler; short field; } pgac_struct;
14078 #ifdef F77_DUMMY_MAIN
14079 #  ifdef __cplusplus
14080      extern "C"
14081 #  endif
14082    int F77_DUMMY_MAIN() { return 1; }
14083 #endif
14084 int
14085 main ()
14086 {
14087 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14088 test_array [0] = 0
14089
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096   (eval $ac_compile) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } &&
14100          { ac_try='test -s conftest.$ac_objext'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }; then
14106   ac_hi=$ac_mid; break
14107 else
14108   echo "$as_me: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 ac_lo=`expr $ac_mid + 1`
14111                     if test $ac_lo -le $ac_mid; then
14112                       ac_lo= ac_hi=
14113                       break
14114                     fi
14115                     ac_mid=`expr 2 '*' $ac_mid + 1`
14116 fi
14117 rm -f conftest.$ac_objext conftest.$ac_ext
14118   done
14119 else
14120   echo "$as_me: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14122 cat >conftest.$ac_ext <<_ACEOF
14123 #line $LINENO "configure"
14124 #include "confdefs.h"
14125 $ac_includes_default
14126 struct { char filler; short field; } pgac_struct;
14127 #ifdef F77_DUMMY_MAIN
14128 #  ifdef __cplusplus
14129      extern "C"
14130 #  endif
14131    int F77_DUMMY_MAIN() { return 1; }
14132 #endif
14133 int
14134 main ()
14135 {
14136 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14137 test_array [0] = 0
14138
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 rm -f conftest.$ac_objext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145   (eval $ac_compile) 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } &&
14149          { ac_try='test -s conftest.$ac_objext'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; }; then
14155   ac_hi=-1 ac_mid=-1
14156   while :; do
14157     cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14159 #include "confdefs.h"
14160 $ac_includes_default
14161 struct { char filler; short field; } pgac_struct;
14162 #ifdef F77_DUMMY_MAIN
14163 #  ifdef __cplusplus
14164      extern "C"
14165 #  endif
14166    int F77_DUMMY_MAIN() { return 1; }
14167 #endif
14168 int
14169 main ()
14170 {
14171 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14172 test_array [0] = 0
14173
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180   (eval $ac_compile) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } &&
14184          { ac_try='test -s conftest.$ac_objext'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   ac_lo=$ac_mid; break
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 cat conftest.$ac_ext >&5
14194 ac_hi=`expr '(' $ac_mid ')' - 1`
14195                        if test $ac_mid -le $ac_hi; then
14196                          ac_lo= ac_hi=
14197                          break
14198                        fi
14199                        ac_mid=`expr 2 '*' $ac_mid`
14200 fi
14201 rm -f conftest.$ac_objext conftest.$ac_ext
14202   done
14203 else
14204   echo "$as_me: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 ac_lo= ac_hi=
14207 fi
14208 rm -f conftest.$ac_objext conftest.$ac_ext
14209 fi
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14211 # Binary search between lo and hi bounds.
14212 while test "x$ac_lo" != "x$ac_hi"; do
14213   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14214   cat >conftest.$ac_ext <<_ACEOF
14215 #line $LINENO "configure"
14216 #include "confdefs.h"
14217 $ac_includes_default
14218 struct { char filler; short field; } pgac_struct;
14219 #ifdef F77_DUMMY_MAIN
14220 #  ifdef __cplusplus
14221      extern "C"
14222 #  endif
14223    int F77_DUMMY_MAIN() { return 1; }
14224 #endif
14225 int
14226 main ()
14227 {
14228 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14229 test_array [0] = 0
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237   (eval $ac_compile) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -s conftest.$ac_objext'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   ac_hi=$ac_mid
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 ac_lo=`expr '(' $ac_mid ')' + 1`
14252 fi
14253 rm -f conftest.$ac_objext conftest.$ac_ext
14254 done
14255 case $ac_lo in
14256 ?*) pgac_cv_alignof_short=$ac_lo;;
14257 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14258 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14259    { (exit 1); exit 1; }; } ;;
14260 esac
14261 else
14262   if test "$cross_compiling" = yes; then
14263   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14264 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14265    { (exit 1); exit 1; }; }
14266 else
14267   cat >conftest.$ac_ext <<_ACEOF
14268 #line $LINENO "configure"
14269 #include "confdefs.h"
14270 $ac_includes_default
14271 struct { char filler; short field; } pgac_struct;
14272 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14273 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14274 #include <stdio.h>
14275 #include <stdlib.h>
14276 #ifdef F77_DUMMY_MAIN
14277 #  ifdef __cplusplus
14278      extern "C"
14279 #  endif
14280    int F77_DUMMY_MAIN() { return 1; }
14281 #endif
14282 int
14283 main ()
14284 {
14285
14286   FILE *f = fopen ("conftest.val", "w");
14287   if (! f)
14288     exit (1);
14289   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14290     {
14291       long i = longval ();
14292       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14293         exit (1);
14294       fprintf (f, "%ld\n", i);
14295     }
14296   else
14297     {
14298       unsigned long i = ulongval ();
14299       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14300         exit (1);
14301       fprintf (f, "%lu\n", i);
14302     }
14303   exit (ferror (f) || fclose (f) != 0);
14304
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311   (eval $ac_link) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; }; then
14320   pgac_cv_alignof_short=`cat conftest.val`
14321 else
14322   echo "$as_me: program exited with status $ac_status" >&5
14323 echo "$as_me: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 ( exit $ac_status )
14326 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14327 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14328    { (exit 1); exit 1; }; }
14329 fi
14330 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14331 fi
14332 fi
14333 rm -f conftest.val
14334 else
14335   pgac_cv_alignof_short=0
14336 fi
14337 fi
14338 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14339 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14340 cat >>confdefs.h <<_ACEOF
14341 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14342 _ACEOF
14343
14344
14345 echo "$as_me:$LINENO: checking for int" >&5
14346 echo $ECHO_N "checking for int... $ECHO_C" >&6
14347 if test "${ac_cv_type_int+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 #include "confdefs.h"
14353 $ac_includes_default
14354 #ifdef F77_DUMMY_MAIN
14355 #  ifdef __cplusplus
14356      extern "C"
14357 #  endif
14358    int F77_DUMMY_MAIN() { return 1; }
14359 #endif
14360 int
14361 main ()
14362 {
14363 if ((int *) 0)
14364   return 0;
14365 if (sizeof (int))
14366   return 0;
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373   (eval $ac_compile) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_cv_type_int=yes
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 cat conftest.$ac_ext >&5
14387 ac_cv_type_int=no
14388 fi
14389 rm -f conftest.$ac_objext conftest.$ac_ext
14390 fi
14391 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14392 echo "${ECHO_T}$ac_cv_type_int" >&6
14393
14394 echo "$as_me:$LINENO: checking alignment of int" >&5
14395 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14396 if test "${pgac_cv_alignof_int+set}" = set; then
14397   echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399   if test "$ac_cv_type_int" = yes; then
14400   if test "$cross_compiling" = yes; then
14401   # Depending upon the size, compute the lo and hi bounds.
14402 cat >conftest.$ac_ext <<_ACEOF
14403 #line $LINENO "configure"
14404 #include "confdefs.h"
14405 $ac_includes_default
14406 struct { char filler; int field; } pgac_struct;
14407 #ifdef F77_DUMMY_MAIN
14408 #  ifdef __cplusplus
14409      extern "C"
14410 #  endif
14411    int F77_DUMMY_MAIN() { return 1; }
14412 #endif
14413 int
14414 main ()
14415 {
14416 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14417 test_array [0] = 0
14418
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425   (eval $ac_compile) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } &&
14429          { ac_try='test -s conftest.$ac_objext'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   ac_lo=0 ac_mid=0
14436   while :; do
14437     cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 #include "confdefs.h"
14440 $ac_includes_default
14441 struct { char filler; int field; } pgac_struct;
14442 #ifdef F77_DUMMY_MAIN
14443 #  ifdef __cplusplus
14444      extern "C"
14445 #  endif
14446    int F77_DUMMY_MAIN() { return 1; }
14447 #endif
14448 int
14449 main ()
14450 {
14451 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14452 test_array [0] = 0
14453
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460   (eval $ac_compile) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } &&
14464          { ac_try='test -s conftest.$ac_objext'
14465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466   (eval $ac_try) 2>&5
14467   ac_status=$?
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); }; }; then
14470   ac_hi=$ac_mid; break
14471 else
14472   echo "$as_me: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14474 ac_lo=`expr $ac_mid + 1`
14475                     if test $ac_lo -le $ac_mid; then
14476                       ac_lo= ac_hi=
14477                       break
14478                     fi
14479                     ac_mid=`expr 2 '*' $ac_mid + 1`
14480 fi
14481 rm -f conftest.$ac_objext conftest.$ac_ext
14482   done
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 cat >conftest.$ac_ext <<_ACEOF
14487 #line $LINENO "configure"
14488 #include "confdefs.h"
14489 $ac_includes_default
14490 struct { char filler; int field; } pgac_struct;
14491 #ifdef F77_DUMMY_MAIN
14492 #  ifdef __cplusplus
14493      extern "C"
14494 #  endif
14495    int F77_DUMMY_MAIN() { return 1; }
14496 #endif
14497 int
14498 main ()
14499 {
14500 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14501 test_array [0] = 0
14502
14503   ;
14504   return 0;
14505 }
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509   (eval $ac_compile) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -s conftest.$ac_objext'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; }; then
14519   ac_hi=-1 ac_mid=-1
14520   while :; do
14521     cat >conftest.$ac_ext <<_ACEOF
14522 #line $LINENO "configure"
14523 #include "confdefs.h"
14524 $ac_includes_default
14525 struct { char filler; int field; } pgac_struct;
14526 #ifdef F77_DUMMY_MAIN
14527 #  ifdef __cplusplus
14528      extern "C"
14529 #  endif
14530    int F77_DUMMY_MAIN() { return 1; }
14531 #endif
14532 int
14533 main ()
14534 {
14535 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14536 test_array [0] = 0
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14544   (eval $ac_compile) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -s conftest.$ac_objext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_lo=$ac_mid; break
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14558 ac_hi=`expr '(' $ac_mid ')' - 1`
14559                        if test $ac_mid -le $ac_hi; then
14560                          ac_lo= ac_hi=
14561                          break
14562                        fi
14563                        ac_mid=`expr 2 '*' $ac_mid`
14564 fi
14565 rm -f conftest.$ac_objext conftest.$ac_ext
14566   done
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14570 ac_lo= ac_hi=
14571 fi
14572 rm -f conftest.$ac_objext conftest.$ac_ext
14573 fi
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14575 # Binary search between lo and hi bounds.
14576 while test "x$ac_lo" != "x$ac_hi"; do
14577   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14578   cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 #include "confdefs.h"
14581 $ac_includes_default
14582 struct { char filler; int field; } pgac_struct;
14583 #ifdef F77_DUMMY_MAIN
14584 #  ifdef __cplusplus
14585      extern "C"
14586 #  endif
14587    int F77_DUMMY_MAIN() { return 1; }
14588 #endif
14589 int
14590 main ()
14591 {
14592 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14593 test_array [0] = 0
14594
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601   (eval $ac_compile) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -s conftest.$ac_objext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   ac_hi=$ac_mid
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14615 ac_lo=`expr '(' $ac_mid ')' + 1`
14616 fi
14617 rm -f conftest.$ac_objext conftest.$ac_ext
14618 done
14619 case $ac_lo in
14620 ?*) pgac_cv_alignof_int=$ac_lo;;
14621 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14622 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14623    { (exit 1); exit 1; }; } ;;
14624 esac
14625 else
14626   if test "$cross_compiling" = yes; then
14627   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14628 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14629    { (exit 1); exit 1; }; }
14630 else
14631   cat >conftest.$ac_ext <<_ACEOF
14632 #line $LINENO "configure"
14633 #include "confdefs.h"
14634 $ac_includes_default
14635 struct { char filler; int field; } pgac_struct;
14636 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14637 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14638 #include <stdio.h>
14639 #include <stdlib.h>
14640 #ifdef F77_DUMMY_MAIN
14641 #  ifdef __cplusplus
14642      extern "C"
14643 #  endif
14644    int F77_DUMMY_MAIN() { return 1; }
14645 #endif
14646 int
14647 main ()
14648 {
14649
14650   FILE *f = fopen ("conftest.val", "w");
14651   if (! f)
14652     exit (1);
14653   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14654     {
14655       long i = longval ();
14656       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14657         exit (1);
14658       fprintf (f, "%ld\n", i);
14659     }
14660   else
14661     {
14662       unsigned long i = ulongval ();
14663       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14664         exit (1);
14665       fprintf (f, "%lu\n", i);
14666     }
14667   exit (ferror (f) || fclose (f) != 0);
14668
14669   ;
14670   return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675   (eval $ac_link) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; }; then
14684   pgac_cv_alignof_int=`cat conftest.val`
14685 else
14686   echo "$as_me: program exited with status $ac_status" >&5
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 ( exit $ac_status )
14690 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14691 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14692    { (exit 1); exit 1; }; }
14693 fi
14694 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14695 fi
14696 fi
14697 rm -f conftest.val
14698 else
14699   pgac_cv_alignof_int=0
14700 fi
14701 fi
14702 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14703 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14704 cat >>confdefs.h <<_ACEOF
14705 #define ALIGNOF_INT $pgac_cv_alignof_int
14706 _ACEOF
14707
14708
14709 echo "$as_me:$LINENO: checking for long" >&5
14710 echo $ECHO_N "checking for long... $ECHO_C" >&6
14711 if test "${ac_cv_type_long+set}" = set; then
14712   echo $ECHO_N "(cached) $ECHO_C" >&6
14713 else
14714   cat >conftest.$ac_ext <<_ACEOF
14715 #line $LINENO "configure"
14716 #include "confdefs.h"
14717 $ac_includes_default
14718 #ifdef F77_DUMMY_MAIN
14719 #  ifdef __cplusplus
14720      extern "C"
14721 #  endif
14722    int F77_DUMMY_MAIN() { return 1; }
14723 #endif
14724 int
14725 main ()
14726 {
14727 if ((long *) 0)
14728   return 0;
14729 if (sizeof (long))
14730   return 0;
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737   (eval $ac_compile) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -s conftest.$ac_objext'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; }; then
14747   ac_cv_type_long=yes
14748 else
14749   echo "$as_me: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14751 ac_cv_type_long=no
14752 fi
14753 rm -f conftest.$ac_objext conftest.$ac_ext
14754 fi
14755 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14756 echo "${ECHO_T}$ac_cv_type_long" >&6
14757
14758 echo "$as_me:$LINENO: checking alignment of long" >&5
14759 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14760 if test "${pgac_cv_alignof_long+set}" = set; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   if test "$ac_cv_type_long" = yes; then
14764   if test "$cross_compiling" = yes; then
14765   # Depending upon the size, compute the lo and hi bounds.
14766 cat >conftest.$ac_ext <<_ACEOF
14767 #line $LINENO "configure"
14768 #include "confdefs.h"
14769 $ac_includes_default
14770 struct { char filler; long field; } pgac_struct;
14771 #ifdef F77_DUMMY_MAIN
14772 #  ifdef __cplusplus
14773      extern "C"
14774 #  endif
14775    int F77_DUMMY_MAIN() { return 1; }
14776 #endif
14777 int
14778 main ()
14779 {
14780 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14781 test_array [0] = 0
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789   (eval $ac_compile) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } &&
14793          { ac_try='test -s conftest.$ac_objext'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }; then
14799   ac_lo=0 ac_mid=0
14800   while :; do
14801     cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14803 #include "confdefs.h"
14804 $ac_includes_default
14805 struct { char filler; long field; } pgac_struct;
14806 #ifdef F77_DUMMY_MAIN
14807 #  ifdef __cplusplus
14808      extern "C"
14809 #  endif
14810    int F77_DUMMY_MAIN() { return 1; }
14811 #endif
14812 int
14813 main ()
14814 {
14815 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14816 test_array [0] = 0
14817
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14824   (eval $ac_compile) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } &&
14828          { ac_try='test -s conftest.$ac_objext'
14829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   ac_hi=$ac_mid; break
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 ac_lo=`expr $ac_mid + 1`
14839                     if test $ac_lo -le $ac_mid; then
14840                       ac_lo= ac_hi=
14841                       break
14842                     fi
14843                     ac_mid=`expr 2 '*' $ac_mid + 1`
14844 fi
14845 rm -f conftest.$ac_objext conftest.$ac_ext
14846   done
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 cat >conftest.$ac_ext <<_ACEOF
14851 #line $LINENO "configure"
14852 #include "confdefs.h"
14853 $ac_includes_default
14854 struct { char filler; long field; } pgac_struct;
14855 #ifdef F77_DUMMY_MAIN
14856 #  ifdef __cplusplus
14857      extern "C"
14858 #  endif
14859    int F77_DUMMY_MAIN() { return 1; }
14860 #endif
14861 int
14862 main ()
14863 {
14864 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14865 test_array [0] = 0
14866
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873   (eval $ac_compile) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } &&
14877          { ac_try='test -s conftest.$ac_objext'
14878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879   (eval $ac_try) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; }; then
14883   ac_hi=-1 ac_mid=-1
14884   while :; do
14885     cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 #include "confdefs.h"
14888 $ac_includes_default
14889 struct { char filler; long field; } pgac_struct;
14890 #ifdef F77_DUMMY_MAIN
14891 #  ifdef __cplusplus
14892      extern "C"
14893 #  endif
14894    int F77_DUMMY_MAIN() { return 1; }
14895 #endif
14896 int
14897 main ()
14898 {
14899 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14900 test_array [0] = 0
14901
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908   (eval $ac_compile) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } &&
14912          { ac_try='test -s conftest.$ac_objext'
14913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914   (eval $ac_try) 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }; }; then
14918   ac_lo=$ac_mid; break
14919 else
14920   echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 ac_hi=`expr '(' $ac_mid ')' - 1`
14923                        if test $ac_mid -le $ac_hi; then
14924                          ac_lo= ac_hi=
14925                          break
14926                        fi
14927                        ac_mid=`expr 2 '*' $ac_mid`
14928 fi
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14930   done
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 ac_lo= ac_hi=
14935 fi
14936 rm -f conftest.$ac_objext conftest.$ac_ext
14937 fi
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14939 # Binary search between lo and hi bounds.
14940 while test "x$ac_lo" != "x$ac_hi"; do
14941   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14942   cat >conftest.$ac_ext <<_ACEOF
14943 #line $LINENO "configure"
14944 #include "confdefs.h"
14945 $ac_includes_default
14946 struct { char filler; long field; } pgac_struct;
14947 #ifdef F77_DUMMY_MAIN
14948 #  ifdef __cplusplus
14949      extern "C"
14950 #  endif
14951    int F77_DUMMY_MAIN() { return 1; }
14952 #endif
14953 int
14954 main ()
14955 {
14956 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14957 test_array [0] = 0
14958
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965   (eval $ac_compile) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } &&
14969          { ac_try='test -s conftest.$ac_objext'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975   ac_hi=$ac_mid
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 ac_lo=`expr '(' $ac_mid ')' + 1`
14980 fi
14981 rm -f conftest.$ac_objext conftest.$ac_ext
14982 done
14983 case $ac_lo in
14984 ?*) pgac_cv_alignof_long=$ac_lo;;
14985 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14986 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14987    { (exit 1); exit 1; }; } ;;
14988 esac
14989 else
14990   if test "$cross_compiling" = yes; then
14991   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14992 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14993    { (exit 1); exit 1; }; }
14994 else
14995   cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14997 #include "confdefs.h"
14998 $ac_includes_default
14999 struct { char filler; long field; } pgac_struct;
15000 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15001 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15002 #include <stdio.h>
15003 #include <stdlib.h>
15004 #ifdef F77_DUMMY_MAIN
15005 #  ifdef __cplusplus
15006      extern "C"
15007 #  endif
15008    int F77_DUMMY_MAIN() { return 1; }
15009 #endif
15010 int
15011 main ()
15012 {
15013
15014   FILE *f = fopen ("conftest.val", "w");
15015   if (! f)
15016     exit (1);
15017   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15018     {
15019       long i = longval ();
15020       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15021         exit (1);
15022       fprintf (f, "%ld\n", i);
15023     }
15024   else
15025     {
15026       unsigned long i = ulongval ();
15027       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15028         exit (1);
15029       fprintf (f, "%lu\n", i);
15030     }
15031   exit (ferror (f) || fclose (f) != 0);
15032
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039   (eval $ac_link) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044   (eval $ac_try) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; }; then
15048   pgac_cv_alignof_long=`cat conftest.val`
15049 else
15050   echo "$as_me: program exited with status $ac_status" >&5
15051 echo "$as_me: failed program was:" >&5
15052 cat conftest.$ac_ext >&5
15053 ( exit $ac_status )
15054 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15055 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15056    { (exit 1); exit 1; }; }
15057 fi
15058 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15059 fi
15060 fi
15061 rm -f conftest.val
15062 else
15063   pgac_cv_alignof_long=0
15064 fi
15065 fi
15066 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15067 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15068 cat >>confdefs.h <<_ACEOF
15069 #define ALIGNOF_LONG $pgac_cv_alignof_long
15070 _ACEOF
15071
15072
15073 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15074   echo "$as_me:$LINENO: checking for long long int" >&5
15075 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15076 if test "${ac_cv_type_long_long_int+set}" = set; then
15077   echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079   cat >conftest.$ac_ext <<_ACEOF
15080 #line $LINENO "configure"
15081 #include "confdefs.h"
15082 $ac_includes_default
15083 #ifdef F77_DUMMY_MAIN
15084 #  ifdef __cplusplus
15085      extern "C"
15086 #  endif
15087    int F77_DUMMY_MAIN() { return 1; }
15088 #endif
15089 int
15090 main ()
15091 {
15092 if ((long long int *) 0)
15093   return 0;
15094 if (sizeof (long long int))
15095   return 0;
15096   ;
15097   return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102   (eval $ac_compile) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -s conftest.$ac_objext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_type_long_long_int=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 ac_cv_type_long_long_int=no
15117 fi
15118 rm -f conftest.$ac_objext conftest.$ac_ext
15119 fi
15120 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15121 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15122
15123 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15124 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15125 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15126   echo $ECHO_N "(cached) $ECHO_C" >&6
15127 else
15128   if test "$ac_cv_type_long_long_int" = yes; then
15129   if test "$cross_compiling" = yes; then
15130   # Depending upon the size, compute the lo and hi bounds.
15131 cat >conftest.$ac_ext <<_ACEOF
15132 #line $LINENO "configure"
15133 #include "confdefs.h"
15134 $ac_includes_default
15135 struct { char filler; long long int field; } pgac_struct;
15136 #ifdef F77_DUMMY_MAIN
15137 #  ifdef __cplusplus
15138      extern "C"
15139 #  endif
15140    int F77_DUMMY_MAIN() { return 1; }
15141 #endif
15142 int
15143 main ()
15144 {
15145 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15146 test_array [0] = 0
15147
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154   (eval $ac_compile) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); } &&
15158          { ac_try='test -s conftest.$ac_objext'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_lo=0 ac_mid=0
15165   while :; do
15166     cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 #include "confdefs.h"
15169 $ac_includes_default
15170 struct { char filler; long long int field; } pgac_struct;
15171 #ifdef F77_DUMMY_MAIN
15172 #  ifdef __cplusplus
15173      extern "C"
15174 #  endif
15175    int F77_DUMMY_MAIN() { return 1; }
15176 #endif
15177 int
15178 main ()
15179 {
15180 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15181 test_array [0] = 0
15182
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15189   (eval $ac_compile) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -s conftest.$ac_objext'
15194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195   (eval $ac_try) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; }; then
15199   ac_hi=$ac_mid; break
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 ac_lo=`expr $ac_mid + 1`
15204                     if test $ac_lo -le $ac_mid; then
15205                       ac_lo= ac_hi=
15206                       break
15207                     fi
15208                     ac_mid=`expr 2 '*' $ac_mid + 1`
15209 fi
15210 rm -f conftest.$ac_objext conftest.$ac_ext
15211   done
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 #include "confdefs.h"
15218 $ac_includes_default
15219 struct { char filler; long long int field; } pgac_struct;
15220 #ifdef F77_DUMMY_MAIN
15221 #  ifdef __cplusplus
15222      extern "C"
15223 #  endif
15224    int F77_DUMMY_MAIN() { return 1; }
15225 #endif
15226 int
15227 main ()
15228 {
15229 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15230 test_array [0] = 0
15231
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238   (eval $ac_compile) 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } &&
15242          { ac_try='test -s conftest.$ac_objext'
15243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244   (eval $ac_try) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; }; then
15248   ac_hi=-1 ac_mid=-1
15249   while :; do
15250     cat >conftest.$ac_ext <<_ACEOF
15251 #line $LINENO "configure"
15252 #include "confdefs.h"
15253 $ac_includes_default
15254 struct { char filler; long long int field; } pgac_struct;
15255 #ifdef F77_DUMMY_MAIN
15256 #  ifdef __cplusplus
15257      extern "C"
15258 #  endif
15259    int F77_DUMMY_MAIN() { return 1; }
15260 #endif
15261 int
15262 main ()
15263 {
15264 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15265 test_array [0] = 0
15266
15267   ;
15268   return 0;
15269 }
15270 _ACEOF
15271 rm -f conftest.$ac_objext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15273   (eval $ac_compile) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } &&
15277          { ac_try='test -s conftest.$ac_objext'
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   ac_lo=$ac_mid; break
15284 else
15285   echo "$as_me: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 ac_hi=`expr '(' $ac_mid ')' - 1`
15288                        if test $ac_mid -le $ac_hi; then
15289                          ac_lo= ac_hi=
15290                          break
15291                        fi
15292                        ac_mid=`expr 2 '*' $ac_mid`
15293 fi
15294 rm -f conftest.$ac_objext conftest.$ac_ext
15295   done
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15299 ac_lo= ac_hi=
15300 fi
15301 rm -f conftest.$ac_objext conftest.$ac_ext
15302 fi
15303 rm -f conftest.$ac_objext conftest.$ac_ext
15304 # Binary search between lo and hi bounds.
15305 while test "x$ac_lo" != "x$ac_hi"; do
15306   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15307   cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 #include "confdefs.h"
15310 $ac_includes_default
15311 struct { char filler; long long int field; } pgac_struct;
15312 #ifdef F77_DUMMY_MAIN
15313 #  ifdef __cplusplus
15314      extern "C"
15315 #  endif
15316    int F77_DUMMY_MAIN() { return 1; }
15317 #endif
15318 int
15319 main ()
15320 {
15321 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15322 test_array [0] = 0
15323
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 rm -f conftest.$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330   (eval $ac_compile) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } &&
15334          { ac_try='test -s conftest.$ac_objext'
15335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336   (eval $ac_try) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   ac_hi=$ac_mid
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 ac_lo=`expr '(' $ac_mid ')' + 1`
15345 fi
15346 rm -f conftest.$ac_objext conftest.$ac_ext
15347 done
15348 case $ac_lo in
15349 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15350 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15351 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15352    { (exit 1); exit 1; }; } ;;
15353 esac
15354 else
15355   if test "$cross_compiling" = yes; then
15356   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15357 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15358    { (exit 1); exit 1; }; }
15359 else
15360   cat >conftest.$ac_ext <<_ACEOF
15361 #line $LINENO "configure"
15362 #include "confdefs.h"
15363 $ac_includes_default
15364 struct { char filler; long long int field; } pgac_struct;
15365 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15366 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15367 #include <stdio.h>
15368 #include <stdlib.h>
15369 #ifdef F77_DUMMY_MAIN
15370 #  ifdef __cplusplus
15371      extern "C"
15372 #  endif
15373    int F77_DUMMY_MAIN() { return 1; }
15374 #endif
15375 int
15376 main ()
15377 {
15378
15379   FILE *f = fopen ("conftest.val", "w");
15380   if (! f)
15381     exit (1);
15382   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15383     {
15384       long i = longval ();
15385       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15386         exit (1);
15387       fprintf (f, "%ld\n", i);
15388     }
15389   else
15390     {
15391       unsigned long i = ulongval ();
15392       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15393         exit (1);
15394       fprintf (f, "%lu\n", i);
15395     }
15396   exit (ferror (f) || fclose (f) != 0);
15397
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest$ac_exeext
15403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15404   (eval $ac_link) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; }; then
15413   pgac_cv_alignof_long_long_int=`cat conftest.val`
15414 else
15415   echo "$as_me: program exited with status $ac_status" >&5
15416 echo "$as_me: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 ( exit $ac_status )
15419 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15420 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15421    { (exit 1); exit 1; }; }
15422 fi
15423 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15424 fi
15425 fi
15426 rm -f conftest.val
15427 else
15428   pgac_cv_alignof_long_long_int=0
15429 fi
15430 fi
15431 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15432 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15433 cat >>confdefs.h <<_ACEOF
15434 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15435 _ACEOF
15436
15437
15438 fi
15439 echo "$as_me:$LINENO: checking for double" >&5
15440 echo $ECHO_N "checking for double... $ECHO_C" >&6
15441 if test "${ac_cv_type_double+set}" = set; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444   cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15446 #include "confdefs.h"
15447 $ac_includes_default
15448 #ifdef F77_DUMMY_MAIN
15449 #  ifdef __cplusplus
15450      extern "C"
15451 #  endif
15452    int F77_DUMMY_MAIN() { return 1; }
15453 #endif
15454 int
15455 main ()
15456 {
15457 if ((double *) 0)
15458   return 0;
15459 if (sizeof (double))
15460   return 0;
15461   ;
15462   return 0;
15463 }
15464 _ACEOF
15465 rm -f conftest.$ac_objext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467   (eval $ac_compile) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_cv_type_double=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15481 ac_cv_type_double=no
15482 fi
15483 rm -f conftest.$ac_objext conftest.$ac_ext
15484 fi
15485 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15486 echo "${ECHO_T}$ac_cv_type_double" >&6
15487
15488 echo "$as_me:$LINENO: checking alignment of double" >&5
15489 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15490 if test "${pgac_cv_alignof_double+set}" = set; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   if test "$ac_cv_type_double" = yes; then
15494   if test "$cross_compiling" = yes; then
15495   # Depending upon the size, compute the lo and hi bounds.
15496 cat >conftest.$ac_ext <<_ACEOF
15497 #line $LINENO "configure"
15498 #include "confdefs.h"
15499 $ac_includes_default
15500 struct { char filler; double field; } pgac_struct;
15501 #ifdef F77_DUMMY_MAIN
15502 #  ifdef __cplusplus
15503      extern "C"
15504 #  endif
15505    int F77_DUMMY_MAIN() { return 1; }
15506 #endif
15507 int
15508 main ()
15509 {
15510 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15511 test_array [0] = 0
15512
15513   ;
15514   return 0;
15515 }
15516 _ACEOF
15517 rm -f conftest.$ac_objext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15519   (eval $ac_compile) 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } &&
15523          { ac_try='test -s conftest.$ac_objext'
15524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525   (eval $ac_try) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; }; then
15529   ac_lo=0 ac_mid=0
15530   while :; do
15531     cat >conftest.$ac_ext <<_ACEOF
15532 #line $LINENO "configure"
15533 #include "confdefs.h"
15534 $ac_includes_default
15535 struct { char filler; double field; } pgac_struct;
15536 #ifdef F77_DUMMY_MAIN
15537 #  ifdef __cplusplus
15538      extern "C"
15539 #  endif
15540    int F77_DUMMY_MAIN() { return 1; }
15541 #endif
15542 int
15543 main ()
15544 {
15545 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15546 test_array [0] = 0
15547
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15554   (eval $ac_compile) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } &&
15558          { ac_try='test -s conftest.$ac_objext'
15559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560   (eval $ac_try) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; }; then
15564   ac_hi=$ac_mid; break
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 ac_lo=`expr $ac_mid + 1`
15569                     if test $ac_lo -le $ac_mid; then
15570                       ac_lo= ac_hi=
15571                       break
15572                     fi
15573                     ac_mid=`expr 2 '*' $ac_mid + 1`
15574 fi
15575 rm -f conftest.$ac_objext conftest.$ac_ext
15576   done
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15582 #include "confdefs.h"
15583 $ac_includes_default
15584 struct { char filler; double field; } pgac_struct;
15585 #ifdef F77_DUMMY_MAIN
15586 #  ifdef __cplusplus
15587      extern "C"
15588 #  endif
15589    int F77_DUMMY_MAIN() { return 1; }
15590 #endif
15591 int
15592 main ()
15593 {
15594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15595 test_array [0] = 0
15596
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603   (eval $ac_compile) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_hi=-1 ac_mid=-1
15614   while :; do
15615     cat >conftest.$ac_ext <<_ACEOF
15616 #line $LINENO "configure"
15617 #include "confdefs.h"
15618 $ac_includes_default
15619 struct { char filler; double field; } pgac_struct;
15620 #ifdef F77_DUMMY_MAIN
15621 #  ifdef __cplusplus
15622      extern "C"
15623 #  endif
15624    int F77_DUMMY_MAIN() { return 1; }
15625 #endif
15626 int
15627 main ()
15628 {
15629 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15630 test_array [0] = 0
15631
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15638   (eval $ac_compile) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } &&
15642          { ac_try='test -s conftest.$ac_objext'
15643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644   (eval $ac_try) 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; }; then
15648   ac_lo=$ac_mid; break
15649 else
15650   echo "$as_me: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 ac_hi=`expr '(' $ac_mid ')' - 1`
15653                        if test $ac_mid -le $ac_hi; then
15654                          ac_lo= ac_hi=
15655                          break
15656                        fi
15657                        ac_mid=`expr 2 '*' $ac_mid`
15658 fi
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15660   done
15661 else
15662   echo "$as_me: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 ac_lo= ac_hi=
15665 fi
15666 rm -f conftest.$ac_objext conftest.$ac_ext
15667 fi
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15669 # Binary search between lo and hi bounds.
15670 while test "x$ac_lo" != "x$ac_hi"; do
15671   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15672   cat >conftest.$ac_ext <<_ACEOF
15673 #line $LINENO "configure"
15674 #include "confdefs.h"
15675 $ac_includes_default
15676 struct { char filler; double field; } pgac_struct;
15677 #ifdef F77_DUMMY_MAIN
15678 #  ifdef __cplusplus
15679      extern "C"
15680 #  endif
15681    int F77_DUMMY_MAIN() { return 1; }
15682 #endif
15683 int
15684 main ()
15685 {
15686 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15687 test_array [0] = 0
15688
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695   (eval $ac_compile) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } &&
15699          { ac_try='test -s conftest.$ac_objext'
15700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701   (eval $ac_try) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; }; then
15705   ac_hi=$ac_mid
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 ac_lo=`expr '(' $ac_mid ')' + 1`
15710 fi
15711 rm -f conftest.$ac_objext conftest.$ac_ext
15712 done
15713 case $ac_lo in
15714 ?*) pgac_cv_alignof_double=$ac_lo;;
15715 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15716 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15717    { (exit 1); exit 1; }; } ;;
15718 esac
15719 else
15720   if test "$cross_compiling" = yes; then
15721   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15722 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15723    { (exit 1); exit 1; }; }
15724 else
15725   cat >conftest.$ac_ext <<_ACEOF
15726 #line $LINENO "configure"
15727 #include "confdefs.h"
15728 $ac_includes_default
15729 struct { char filler; double field; } pgac_struct;
15730 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15731 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15732 #include <stdio.h>
15733 #include <stdlib.h>
15734 #ifdef F77_DUMMY_MAIN
15735 #  ifdef __cplusplus
15736      extern "C"
15737 #  endif
15738    int F77_DUMMY_MAIN() { return 1; }
15739 #endif
15740 int
15741 main ()
15742 {
15743
15744   FILE *f = fopen ("conftest.val", "w");
15745   if (! f)
15746     exit (1);
15747   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15748     {
15749       long i = longval ();
15750       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15751         exit (1);
15752       fprintf (f, "%ld\n", i);
15753     }
15754   else
15755     {
15756       unsigned long i = ulongval ();
15757       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15758         exit (1);
15759       fprintf (f, "%lu\n", i);
15760     }
15761   exit (ferror (f) || fclose (f) != 0);
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769   (eval $ac_link) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }; then
15778   pgac_cv_alignof_double=`cat conftest.val`
15779 else
15780   echo "$as_me: program exited with status $ac_status" >&5
15781 echo "$as_me: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 ( exit $ac_status )
15784 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15785 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15786    { (exit 1); exit 1; }; }
15787 fi
15788 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 fi
15791 rm -f conftest.val
15792 else
15793   pgac_cv_alignof_double=0
15794 fi
15795 fi
15796 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15797 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15798 cat >>confdefs.h <<_ACEOF
15799 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15800 _ACEOF
15801
15802
15803
15804 # Compute maximum alignment of any basic type.
15805 # We assume long's alignment is at least as strong as char, short, or int;
15806 # but we must check long long (if it exists) and double.
15807
15808 MAX_ALIGNOF=$pgac_cv_alignof_long
15809 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15810   MAX_ALIGNOF=$pgac_cv_alignof_double
15811 fi
15812 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15813   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15814 fi
15815
15816 cat >>confdefs.h <<_ACEOF
15817 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15818 _ACEOF
15819
15820
15821
15822 # Some platforms predefine the types int8, int16, etc.  Only check
15823 # a (hopefully) representative subset.
15824 echo "$as_me:$LINENO: checking for int8" >&5
15825 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15826 if test "${ac_cv_type_int8+set}" = set; then
15827   echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829   cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15831 #include "confdefs.h"
15832 #include <stdio.h>
15833 #ifdef HAVE_SUPPORTDEFS_H
15834 #include <SupportDefs.h>
15835 #endif
15836
15837 #ifdef F77_DUMMY_MAIN
15838 #  ifdef __cplusplus
15839      extern "C"
15840 #  endif
15841    int F77_DUMMY_MAIN() { return 1; }
15842 #endif
15843 int
15844 main ()
15845 {
15846 if ((int8 *) 0)
15847   return 0;
15848 if (sizeof (int8))
15849   return 0;
15850   ;
15851   return 0;
15852 }
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856   (eval $ac_compile) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); } &&
15860          { ac_try='test -s conftest.$ac_objext'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_cv_type_int8=yes
15867 else
15868   echo "$as_me: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15870 ac_cv_type_int8=no
15871 fi
15872 rm -f conftest.$ac_objext conftest.$ac_ext
15873 fi
15874 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15875 echo "${ECHO_T}$ac_cv_type_int8" >&6
15876 if test $ac_cv_type_int8 = yes; then
15877
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_INT8 1
15880 _ACEOF
15881
15882
15883 fi
15884 echo "$as_me:$LINENO: checking for uint8" >&5
15885 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15886 if test "${ac_cv_type_uint8+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   cat >conftest.$ac_ext <<_ACEOF
15890 #line $LINENO "configure"
15891 #include "confdefs.h"
15892 #include <stdio.h>
15893 #ifdef HAVE_SUPPORTDEFS_H
15894 #include <SupportDefs.h>
15895 #endif
15896
15897 #ifdef F77_DUMMY_MAIN
15898 #  ifdef __cplusplus
15899      extern "C"
15900 #  endif
15901    int F77_DUMMY_MAIN() { return 1; }
15902 #endif
15903 int
15904 main ()
15905 {
15906 if ((uint8 *) 0)
15907   return 0;
15908 if (sizeof (uint8))
15909   return 0;
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15916   (eval $ac_compile) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } &&
15920          { ac_try='test -s conftest.$ac_objext'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; }; then
15926   ac_cv_type_uint8=yes
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 cat conftest.$ac_ext >&5
15930 ac_cv_type_uint8=no
15931 fi
15932 rm -f conftest.$ac_objext conftest.$ac_ext
15933 fi
15934 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15935 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15936 if test $ac_cv_type_uint8 = yes; then
15937
15938 cat >>confdefs.h <<_ACEOF
15939 #define HAVE_UINT8 1
15940 _ACEOF
15941
15942
15943 fi
15944 echo "$as_me:$LINENO: checking for int64" >&5
15945 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15946 if test "${ac_cv_type_int64+set}" = set; then
15947   echo $ECHO_N "(cached) $ECHO_C" >&6
15948 else
15949   cat >conftest.$ac_ext <<_ACEOF
15950 #line $LINENO "configure"
15951 #include "confdefs.h"
15952 #include <stdio.h>
15953 #ifdef HAVE_SUPPORTDEFS_H
15954 #include <SupportDefs.h>
15955 #endif
15956
15957 #ifdef F77_DUMMY_MAIN
15958 #  ifdef __cplusplus
15959      extern "C"
15960 #  endif
15961    int F77_DUMMY_MAIN() { return 1; }
15962 #endif
15963 int
15964 main ()
15965 {
15966 if ((int64 *) 0)
15967   return 0;
15968 if (sizeof (int64))
15969   return 0;
15970   ;
15971   return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15976   (eval $ac_compile) 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); } &&
15980          { ac_try='test -s conftest.$ac_objext'
15981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982   (eval $ac_try) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); }; }; then
15986   ac_cv_type_int64=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 cat conftest.$ac_ext >&5
15990 ac_cv_type_int64=no
15991 fi
15992 rm -f conftest.$ac_objext conftest.$ac_ext
15993 fi
15994 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15995 echo "${ECHO_T}$ac_cv_type_int64" >&6
15996 if test $ac_cv_type_int64 = yes; then
15997
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_INT64 1
16000 _ACEOF
16001
16002
16003 fi
16004 echo "$as_me:$LINENO: checking for uint64" >&5
16005 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16006 if test "${ac_cv_type_uint64+set}" = set; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 #include "confdefs.h"
16012 #include <stdio.h>
16013 #ifdef HAVE_SUPPORTDEFS_H
16014 #include <SupportDefs.h>
16015 #endif
16016
16017 #ifdef F77_DUMMY_MAIN
16018 #  ifdef __cplusplus
16019      extern "C"
16020 #  endif
16021    int F77_DUMMY_MAIN() { return 1; }
16022 #endif
16023 int
16024 main ()
16025 {
16026 if ((uint64 *) 0)
16027   return 0;
16028 if (sizeof (uint64))
16029   return 0;
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 rm -f conftest.$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036   (eval $ac_compile) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } &&
16040          { ac_try='test -s conftest.$ac_objext'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; }; then
16046   ac_cv_type_uint64=yes
16047 else
16048   echo "$as_me: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16050 ac_cv_type_uint64=no
16051 fi
16052 rm -f conftest.$ac_objext conftest.$ac_ext
16053 fi
16054 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16055 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16056 if test $ac_cv_type_uint64 = yes; then
16057
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_UINT64 1
16060 _ACEOF
16061
16062
16063 fi
16064
16065
16066 # We also check for sig_atomic_t, which *should* be defined per ANSI
16067 # C, but is missing on some old platforms.
16068 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16069 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16070 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   cat >conftest.$ac_ext <<_ACEOF
16074 #line $LINENO "configure"
16075 #include "confdefs.h"
16076 #include <signal.h>
16077
16078 #ifdef F77_DUMMY_MAIN
16079 #  ifdef __cplusplus
16080      extern "C"
16081 #  endif
16082    int F77_DUMMY_MAIN() { return 1; }
16083 #endif
16084 int
16085 main ()
16086 {
16087 if ((sig_atomic_t *) 0)
16088   return 0;
16089 if (sizeof (sig_atomic_t))
16090   return 0;
16091   ;
16092   return 0;
16093 }
16094 _ACEOF
16095 rm -f conftest.$ac_objext
16096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16097   (eval $ac_compile) 2>&5
16098   ac_status=$?
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } &&
16101          { ac_try='test -s conftest.$ac_objext'
16102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103   (eval $ac_try) 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; }; then
16107   ac_cv_type_sig_atomic_t=yes
16108 else
16109   echo "$as_me: failed program was:" >&5
16110 cat conftest.$ac_ext >&5
16111 ac_cv_type_sig_atomic_t=no
16112 fi
16113 rm -f conftest.$ac_objext conftest.$ac_ext
16114 fi
16115 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16116 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16117 if test $ac_cv_type_sig_atomic_t = yes; then
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define HAVE_SIG_ATOMIC_T 1
16121 _ACEOF
16122
16123
16124 fi
16125
16126
16127
16128 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16129 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16130 if test "${pgac_cv_func_posix_signals+set}" = set; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133   cat >conftest.$ac_ext <<_ACEOF
16134 #line $LINENO "configure"
16135 #include "confdefs.h"
16136 #include <signal.h>
16137
16138 #ifdef F77_DUMMY_MAIN
16139 #  ifdef __cplusplus
16140      extern "C"
16141 #  endif
16142    int F77_DUMMY_MAIN() { return 1; }
16143 #endif
16144 int
16145 main ()
16146 {
16147 struct sigaction act, oact;
16148 sigemptyset(&act.sa_mask);
16149 act.sa_flags = SA_RESTART;
16150 sigaction(0, &act, &oact);
16151   ;
16152   return 0;
16153 }
16154 _ACEOF
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157   (eval $ac_link) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); } &&
16161          { ac_try='test -s conftest$ac_exeext'
16162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163   (eval $ac_try) 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); }; }; then
16167   pgac_cv_func_posix_signals=yes
16168 else
16169   echo "$as_me: failed program was:" >&5
16170 cat conftest.$ac_ext >&5
16171 pgac_cv_func_posix_signals=no
16172 fi
16173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16174 fi
16175 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16176 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16177 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16178
16179 cat >>confdefs.h <<\_ACEOF
16180 #define HAVE_POSIX_SIGNALS
16181 _ACEOF
16182
16183 fi
16184 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16185
16186 if test $ac_cv_func_fseeko = yes; then
16187 # Check whether --enable-largefile or --disable-largefile was given.
16188 if test "${enable_largefile+set}" = set; then
16189   enableval="$enable_largefile"
16190
16191 fi;
16192 if test "$enable_largefile" != no; then
16193
16194   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16195 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16196 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   ac_cv_sys_largefile_CC=no
16200      if test "$GCC" != yes; then
16201        ac_save_CC=$CC
16202        while :; do
16203          # IRIX 6.2 and later do not support large files by default,
16204          # so use the C compiler's -n32 option if that helps.
16205          cat >conftest.$ac_ext <<_ACEOF
16206 #line $LINENO "configure"
16207 #include "confdefs.h"
16208 #include <sys/types.h>
16209  /* Check that off_t can represent 2**63 - 1 correctly.
16210     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16211     since some C++ compilers masquerading as C compilers
16212     incorrectly reject 9223372036854775807.  */
16213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16214   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16215                        && LARGE_OFF_T % 2147483647 == 1)
16216                       ? 1 : -1];
16217 #ifdef F77_DUMMY_MAIN
16218 #  ifdef __cplusplus
16219      extern "C"
16220 #  endif
16221    int F77_DUMMY_MAIN() { return 1; }
16222 #endif
16223 int
16224 main ()
16225 {
16226
16227   ;
16228   return 0;
16229 }
16230 _ACEOF
16231          rm -f conftest.$ac_objext
16232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233   (eval $ac_compile) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } &&
16237          { ac_try='test -s conftest.$ac_objext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   break
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 cat conftest.$ac_ext >&5
16247 fi
16248 rm -f conftest.$ac_objext
16249          CC="$CC -n32"
16250          rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252   (eval $ac_compile) 2>&5
16253   ac_status=$?
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); } &&
16256          { ac_try='test -s conftest.$ac_objext'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; }; then
16262   ac_cv_sys_largefile_CC=' -n32'; break
16263 else
16264   echo "$as_me: failed program was:" >&5
16265 cat conftest.$ac_ext >&5
16266 fi
16267 rm -f conftest.$ac_objext
16268          break
16269        done
16270        CC=$ac_save_CC
16271        rm -f conftest.$ac_ext
16272     fi
16273 fi
16274 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16275 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16276   if test "$ac_cv_sys_largefile_CC" != no; then
16277     CC=$CC$ac_cv_sys_largefile_CC
16278   fi
16279
16280   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16281 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16282 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16283   echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285   while :; do
16286   ac_cv_sys_file_offset_bits=no
16287   cat >conftest.$ac_ext <<_ACEOF
16288 #line $LINENO "configure"
16289 #include "confdefs.h"
16290 #include <sys/types.h>
16291  /* Check that off_t can represent 2**63 - 1 correctly.
16292     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16293     since some C++ compilers masquerading as C compilers
16294     incorrectly reject 9223372036854775807.  */
16295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16296   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16297                        && LARGE_OFF_T % 2147483647 == 1)
16298                       ? 1 : -1];
16299 #ifdef F77_DUMMY_MAIN
16300 #  ifdef __cplusplus
16301      extern "C"
16302 #  endif
16303    int F77_DUMMY_MAIN() { return 1; }
16304 #endif
16305 int
16306 main ()
16307 {
16308
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315   (eval $ac_compile) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } &&
16319          { ac_try='test -s conftest.$ac_objext'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   break
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 fi
16330 rm -f conftest.$ac_objext conftest.$ac_ext
16331   cat >conftest.$ac_ext <<_ACEOF
16332 #line $LINENO "configure"
16333 #include "confdefs.h"
16334 #define _FILE_OFFSET_BITS 64
16335 #include <sys/types.h>
16336  /* Check that off_t can represent 2**63 - 1 correctly.
16337     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16338     since some C++ compilers masquerading as C compilers
16339     incorrectly reject 9223372036854775807.  */
16340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16341   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16342                        && LARGE_OFF_T % 2147483647 == 1)
16343                       ? 1 : -1];
16344 #ifdef F77_DUMMY_MAIN
16345 #  ifdef __cplusplus
16346      extern "C"
16347 #  endif
16348    int F77_DUMMY_MAIN() { return 1; }
16349 #endif
16350 int
16351 main ()
16352 {
16353
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360   (eval $ac_compile) 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } &&
16364          { ac_try='test -s conftest.$ac_objext'
16365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366   (eval $ac_try) 2>&5
16367   ac_status=$?
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); }; }; then
16370   ac_cv_sys_file_offset_bits=64; break
16371 else
16372   echo "$as_me: failed program was:" >&5
16373 cat conftest.$ac_ext >&5
16374 fi
16375 rm -f conftest.$ac_objext conftest.$ac_ext
16376   break
16377 done
16378 fi
16379 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16380 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16381 if test "$ac_cv_sys_file_offset_bits" != no; then
16382
16383 cat >>confdefs.h <<_ACEOF
16384 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16385 _ACEOF
16386
16387 fi
16388 rm -f conftest*
16389   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16390 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16391 if test "${ac_cv_sys_large_files+set}" = set; then
16392   echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394   while :; do
16395   ac_cv_sys_large_files=no
16396   cat >conftest.$ac_ext <<_ACEOF
16397 #line $LINENO "configure"
16398 #include "confdefs.h"
16399 #include <sys/types.h>
16400  /* Check that off_t can represent 2**63 - 1 correctly.
16401     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16402     since some C++ compilers masquerading as C compilers
16403     incorrectly reject 9223372036854775807.  */
16404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16405   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16406                        && LARGE_OFF_T % 2147483647 == 1)
16407                       ? 1 : -1];
16408 #ifdef F77_DUMMY_MAIN
16409 #  ifdef __cplusplus
16410      extern "C"
16411 #  endif
16412    int F77_DUMMY_MAIN() { return 1; }
16413 #endif
16414 int
16415 main ()
16416 {
16417
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424   (eval $ac_compile) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } &&
16428          { ac_try='test -s conftest.$ac_objext'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   break
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 cat conftest.$ac_ext >&5
16438 fi
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16440   cat >conftest.$ac_ext <<_ACEOF
16441 #line $LINENO "configure"
16442 #include "confdefs.h"
16443 #define _LARGE_FILES 1
16444 #include <sys/types.h>
16445  /* Check that off_t can represent 2**63 - 1 correctly.
16446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16447     since some C++ compilers masquerading as C compilers
16448     incorrectly reject 9223372036854775807.  */
16449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16451                        && LARGE_OFF_T % 2147483647 == 1)
16452                       ? 1 : -1];
16453 #ifdef F77_DUMMY_MAIN
16454 #  ifdef __cplusplus
16455      extern "C"
16456 #  endif
16457    int F77_DUMMY_MAIN() { return 1; }
16458 #endif
16459 int
16460 main ()
16461 {
16462
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest.$ac_objext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16469   (eval $ac_compile) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } &&
16473          { ac_try='test -s conftest.$ac_objext'
16474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475   (eval $ac_try) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }; }; then
16479   ac_cv_sys_large_files=1; break
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 fi
16484 rm -f conftest.$ac_objext conftest.$ac_ext
16485   break
16486 done
16487 fi
16488 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16489 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16490 if test "$ac_cv_sys_large_files" != no; then
16491
16492 cat >>confdefs.h <<_ACEOF
16493 #define _LARGE_FILES $ac_cv_sys_large_files
16494 _ACEOF
16495
16496 fi
16497 rm -f conftest*
16498 fi
16499
16500 fi
16501
16502
16503 # Select semaphore implementation type.
16504 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16505
16506 cat >>confdefs.h <<\_ACEOF
16507 #define USE_NAMED_POSIX_SEMAPHORES 1
16508 _ACEOF
16509
16510   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16511 else
16512   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16513
16514 cat >>confdefs.h <<\_ACEOF
16515 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16516 _ACEOF
16517
16518     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16519   else
16520
16521 cat >>confdefs.h <<\_ACEOF
16522 #define USE_SYSV_SEMAPHORES 1
16523 _ACEOF
16524
16525     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16526   fi
16527 fi
16528
16529
16530 # Select shared-memory implementation type.
16531
16532 cat >>confdefs.h <<\_ACEOF
16533 #define USE_SYSV_SHARED_MEMORY 1
16534 _ACEOF
16535
16536 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16537
16538
16539 if test "$enable_nls" = yes ; then
16540
16541   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16542 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16543 if test "${ac_cv_search_gettext+set}" = set; then
16544   echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546   ac_func_search_save_LIBS=$LIBS
16547 ac_cv_search_gettext=no
16548 cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16550 #include "confdefs.h"
16551
16552 /* Override any gcc2 internal prototype to avoid an error.  */
16553 #ifdef __cplusplus
16554 extern "C"
16555 #endif
16556 /* We use char because int might match the return type of a gcc2
16557    builtin and then its argument prototype would still apply.  */
16558 char gettext ();
16559 #ifdef F77_DUMMY_MAIN
16560 #  ifdef __cplusplus
16561      extern "C"
16562 #  endif
16563    int F77_DUMMY_MAIN() { return 1; }
16564 #endif
16565 int
16566 main ()
16567 {
16568 gettext ();
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575   (eval $ac_link) 2>&5
16576   ac_status=$?
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); } &&
16579          { ac_try='test -s conftest$ac_exeext'
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_search_gettext="none required"
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 fi
16590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16591 if test "$ac_cv_search_gettext" = no; then
16592   for ac_lib in intl; do
16593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16594     cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 #include "confdefs.h"
16597
16598 /* Override any gcc2 internal prototype to avoid an error.  */
16599 #ifdef __cplusplus
16600 extern "C"
16601 #endif
16602 /* We use char because int might match the return type of a gcc2
16603    builtin and then its argument prototype would still apply.  */
16604 char gettext ();
16605 #ifdef F77_DUMMY_MAIN
16606 #  ifdef __cplusplus
16607      extern "C"
16608 #  endif
16609    int F77_DUMMY_MAIN() { return 1; }
16610 #endif
16611 int
16612 main ()
16613 {
16614 gettext ();
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 rm -f conftest.$ac_objext conftest$ac_exeext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16621   (eval $ac_link) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); } &&
16625          { ac_try='test -s conftest$ac_exeext'
16626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627   (eval $ac_try) 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; }; then
16631   ac_cv_search_gettext="-l$ac_lib"
16632 break
16633 else
16634   echo "$as_me: failed program was:" >&5
16635 cat conftest.$ac_ext >&5
16636 fi
16637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16638   done
16639 fi
16640 LIBS=$ac_func_search_save_LIBS
16641 fi
16642 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16643 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16644 if test "$ac_cv_search_gettext" != no; then
16645   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16646
16647 else
16648   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16649 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16650    { (exit 1); exit 1; }; }
16651 fi
16652
16653   if test "${ac_cv_header_libintl_h+set}" = set; then
16654   echo "$as_me:$LINENO: checking for libintl.h" >&5
16655 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16656 if test "${ac_cv_header_libintl_h+set}" = set; then
16657   echo $ECHO_N "(cached) $ECHO_C" >&6
16658 fi
16659 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16660 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16661 else
16662   # Is the header compilable?
16663 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16664 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16665 cat >conftest.$ac_ext <<_ACEOF
16666 #line $LINENO "configure"
16667 #include "confdefs.h"
16668 $ac_includes_default
16669 #include <libintl.h>
16670 _ACEOF
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673   (eval $ac_compile) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } &&
16677          { ac_try='test -s conftest.$ac_objext'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   ac_header_compiler=yes
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16687 ac_header_compiler=no
16688 fi
16689 rm -f conftest.$ac_objext conftest.$ac_ext
16690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16691 echo "${ECHO_T}$ac_header_compiler" >&6
16692
16693 # Is the header present?
16694 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16695 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16696 cat >conftest.$ac_ext <<_ACEOF
16697 #line $LINENO "configure"
16698 #include "confdefs.h"
16699 #include <libintl.h>
16700 _ACEOF
16701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16703   ac_status=$?
16704   egrep -v '^ *\+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } >/dev/null; then
16709   if test -s conftest.err; then
16710     ac_cpp_err=$ac_c_preproc_warn_flag
16711   else
16712     ac_cpp_err=
16713   fi
16714 else
16715   ac_cpp_err=yes
16716 fi
16717 if test -z "$ac_cpp_err"; then
16718   ac_header_preproc=yes
16719 else
16720   echo "$as_me: failed program was:" >&5
16721   cat conftest.$ac_ext >&5
16722   ac_header_preproc=no
16723 fi
16724 rm -f conftest.err conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6
16727
16728 # So?  What about this header?
16729 case $ac_header_compiler:$ac_header_preproc in
16730   yes:no )
16731     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16732 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16735   no:yes )
16736     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16737 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16738     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16739 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16740     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16741 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16742 esac
16743 echo "$as_me:$LINENO: checking for libintl.h" >&5
16744 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16745 if test "${ac_cv_header_libintl_h+set}" = set; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   ac_cv_header_libintl_h=$ac_header_preproc
16749 fi
16750 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16751 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16752
16753 fi
16754 if test $ac_cv_header_libintl_h = yes; then
16755   :
16756 else
16757   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16758 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16759    { (exit 1); exit 1; }; }
16760 fi
16761
16762
16763   for ac_prog in msgfmt
16764 do
16765   # Extract the first word of "$ac_prog", so it can be a program name with args.
16766 set dummy $ac_prog; ac_word=$2
16767 echo "$as_me:$LINENO: checking for $ac_word" >&5
16768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16769 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   if test -n "$MSGFMT"; then
16773   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16774 else
16775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16776 for as_dir in $PATH
16777 do
16778   IFS=$as_save_IFS
16779   test -z "$as_dir" && as_dir=.
16780   for ac_exec_ext in '' $ac_executable_extensions; do
16781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16782     ac_cv_prog_MSGFMT="$ac_prog"
16783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16784     break 2
16785   fi
16786 done
16787 done
16788
16789 fi
16790 fi
16791 MSGFMT=$ac_cv_prog_MSGFMT
16792 if test -n "$MSGFMT"; then
16793   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16794 echo "${ECHO_T}$MSGFMT" >&6
16795 else
16796   echo "$as_me:$LINENO: result: no" >&5
16797 echo "${ECHO_T}no" >&6
16798 fi
16799
16800   test -n "$MSGFMT" && break
16801 done
16802
16803   if test -z "$MSGFMT"; then
16804     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16805 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16806    { (exit 1); exit 1; }; }
16807   fi
16808   for ac_prog in msgmerge
16809 do
16810   # Extract the first word of "$ac_prog", so it can be a program name with args.
16811 set dummy $ac_prog; ac_word=$2
16812 echo "$as_me:$LINENO: checking for $ac_word" >&5
16813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16814 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16815   echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817   if test -n "$MSGMERGE"; then
16818   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16819 else
16820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16821 for as_dir in $PATH
16822 do
16823   IFS=$as_save_IFS
16824   test -z "$as_dir" && as_dir=.
16825   for ac_exec_ext in '' $ac_executable_extensions; do
16826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16827     ac_cv_prog_MSGMERGE="$ac_prog"
16828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16829     break 2
16830   fi
16831 done
16832 done
16833
16834 fi
16835 fi
16836 MSGMERGE=$ac_cv_prog_MSGMERGE
16837 if test -n "$MSGMERGE"; then
16838   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16839 echo "${ECHO_T}$MSGMERGE" >&6
16840 else
16841   echo "$as_me:$LINENO: result: no" >&5
16842 echo "${ECHO_T}no" >&6
16843 fi
16844
16845   test -n "$MSGMERGE" && break
16846 done
16847
16848   for ac_prog in xgettext
16849 do
16850   # Extract the first word of "$ac_prog", so it can be a program name with args.
16851 set dummy $ac_prog; ac_word=$2
16852 echo "$as_me:$LINENO: checking for $ac_word" >&5
16853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16854 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   if test -n "$XGETTEXT"; then
16858   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16859 else
16860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16861 for as_dir in $PATH
16862 do
16863   IFS=$as_save_IFS
16864   test -z "$as_dir" && as_dir=.
16865   for ac_exec_ext in '' $ac_executable_extensions; do
16866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16867     ac_cv_prog_XGETTEXT="$ac_prog"
16868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16869     break 2
16870   fi
16871 done
16872 done
16873
16874 fi
16875 fi
16876 XGETTEXT=$ac_cv_prog_XGETTEXT
16877 if test -n "$XGETTEXT"; then
16878   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16879 echo "${ECHO_T}$XGETTEXT" >&6
16880 else
16881   echo "$as_me:$LINENO: result: no" >&5
16882 echo "${ECHO_T}no" >&6
16883 fi
16884
16885   test -n "$XGETTEXT" && break
16886 done
16887
16888
16889   # Note: share/locale is always the default, independent of $datadir
16890   localedir='${prefix}/share/locale'
16891   if test x"$prefix" = x"NONE"; then
16892     exp_localedir="$ac_default_prefix/share/locale"
16893   else
16894     exp_localedir="$prefix/share/locale"
16895   fi
16896
16897
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define LOCALEDIR "$exp_localedir"
16901 _ACEOF
16902
16903
16904 fi
16905
16906 # Check for Tcl configuration script tclConfig.sh
16907 if test "$with_tcl" = yes; then
16908     for ac_prog in tclsh tcl
16909 do
16910   # Extract the first word of "$ac_prog", so it can be a program name with args.
16911 set dummy $ac_prog; ac_word=$2
16912 echo "$as_me:$LINENO: checking for $ac_word" >&5
16913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16914 if test "${ac_cv_path_TCLSH+set}" = set; then
16915   echo $ECHO_N "(cached) $ECHO_C" >&6
16916 else
16917   case $TCLSH in
16918   [\\/]* | ?:[\\/]*)
16919   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16920   ;;
16921   *)
16922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16923 for as_dir in $PATH
16924 do
16925   IFS=$as_save_IFS
16926   test -z "$as_dir" && as_dir=.
16927   for ac_exec_ext in '' $ac_executable_extensions; do
16928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16929     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16931     break 2
16932   fi
16933 done
16934 done
16935
16936   ;;
16937 esac
16938 fi
16939 TCLSH=$ac_cv_path_TCLSH
16940
16941 if test -n "$TCLSH"; then
16942   echo "$as_me:$LINENO: result: $TCLSH" >&5
16943 echo "${ECHO_T}$TCLSH" >&6
16944 else
16945   echo "$as_me:$LINENO: result: no" >&5
16946 echo "${ECHO_T}no" >&6
16947 fi
16948
16949   test -n "$TCLSH" && break
16950 done
16951
16952 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16953 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16954 # Let user override test
16955 if test -z "$TCL_CONFIG_SH"; then
16956     pgac_test_dirs="$with_tclconfig"
16957
16958     set X $pgac_test_dirs; shift
16959     if test $# -eq 0; then
16960         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16961 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16962    { (exit 1); exit 1; }; }
16963         set X `echo 'puts $auto_path' | $TCLSH`; shift
16964     fi
16965
16966     for pgac_dir do
16967         if test -r "$pgac_dir/tclConfig.sh"; then
16968             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16969             break
16970         fi
16971     done
16972 fi
16973
16974 if test -z "$TCL_CONFIG_SH"; then
16975     echo "$as_me:$LINENO: result: no" >&5
16976 echo "${ECHO_T}no" >&6
16977     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16978 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16979    { (exit 1); exit 1; }; }
16980 else
16981     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16982 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16983 fi
16984
16985
16986
16987     . "$TCL_CONFIG_SH"
16988 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16989 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16990 eval TCL_LIBS=\"$TCL_LIBS\"
16991 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16992 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16993
16994     fi
16995
16996 # Check for Tk configuration script tkConfig.sh
16997 if test "$with_tk" = yes; then
16998     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16999 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17000 # Let user override test
17001 if test -z "$TK_CONFIG_SH"; then
17002     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17003
17004     set X $pgac_test_dirs; shift
17005     if test $# -eq 0; then
17006         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17007 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17008    { (exit 1); exit 1; }; }
17009         set X `echo 'puts $auto_path' | $TCLSH`; shift
17010     fi
17011
17012     for pgac_dir do
17013         if test -r "$pgac_dir/tkConfig.sh"; then
17014             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17015             break
17016         fi
17017     done
17018 fi
17019
17020 if test -z "$TK_CONFIG_SH"; then
17021     echo "$as_me:$LINENO: result: no" >&5
17022 echo "${ECHO_T}no" >&6
17023     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17024 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17025    { (exit 1); exit 1; }; }
17026 else
17027     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17028 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17029 fi
17030
17031
17032
17033     . "$TK_CONFIG_SH"
17034 eval TK_LIBS=\"$TK_LIBS\"
17035 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17036 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17037
17038 fi
17039
17040
17041 #
17042 # Check for DocBook and tools
17043 #
17044 for ac_prog in onsgmls nsgmls
17045 do
17046   # Extract the first word of "$ac_prog", so it can be a program name with args.
17047 set dummy $ac_prog; ac_word=$2
17048 echo "$as_me:$LINENO: checking for $ac_word" >&5
17049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17050 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   if test -n "$NSGMLS"; then
17054   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17055 else
17056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057 for as_dir in $PATH
17058 do
17059   IFS=$as_save_IFS
17060   test -z "$as_dir" && as_dir=.
17061   for ac_exec_ext in '' $ac_executable_extensions; do
17062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17063     ac_cv_prog_NSGMLS="$ac_prog"
17064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17065     break 2
17066   fi
17067 done
17068 done
17069
17070 fi
17071 fi
17072 NSGMLS=$ac_cv_prog_NSGMLS
17073 if test -n "$NSGMLS"; then
17074   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17075 echo "${ECHO_T}$NSGMLS" >&6
17076 else
17077   echo "$as_me:$LINENO: result: no" >&5
17078 echo "${ECHO_T}no" >&6
17079 fi
17080
17081   test -n "$NSGMLS" && break
17082 done
17083
17084 for ac_prog in openjade jade
17085 do
17086   # Extract the first word of "$ac_prog", so it can be a program name with args.
17087 set dummy $ac_prog; ac_word=$2
17088 echo "$as_me:$LINENO: checking for $ac_word" >&5
17089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17090 if test "${ac_cv_prog_JADE+set}" = set; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093   if test -n "$JADE"; then
17094   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17095 else
17096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17097 for as_dir in $PATH
17098 do
17099   IFS=$as_save_IFS
17100   test -z "$as_dir" && as_dir=.
17101   for ac_exec_ext in '' $ac_executable_extensions; do
17102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17103     ac_cv_prog_JADE="$ac_prog"
17104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17105     break 2
17106   fi
17107 done
17108 done
17109
17110 fi
17111 fi
17112 JADE=$ac_cv_prog_JADE
17113 if test -n "$JADE"; then
17114   echo "$as_me:$LINENO: result: $JADE" >&5
17115 echo "${ECHO_T}$JADE" >&6
17116 else
17117   echo "$as_me:$LINENO: result: no" >&5
17118 echo "${ECHO_T}no" >&6
17119 fi
17120
17121   test -n "$JADE" && break
17122 done
17123
17124
17125 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17126 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17127 if test "${pgac_cv_check_docbook+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   cat >conftest.sgml <<EOF
17131 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17132 <book>
17133  <title>test</title>
17134  <chapter>
17135   <title>random</title>
17136    <sect1>
17137     <title>testsect</title>
17138     <para>text</para>
17139   </sect1>
17140  </chapter>
17141 </book>
17142 EOF
17143
17144 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17145 if test $? -eq 0; then
17146   pgac_cv_check_docbook=yes
17147 else
17148   pgac_cv_check_docbook=no
17149 fi
17150 rm -f conftest.sgml
17151 fi
17152 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17153 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17154
17155 have_docbook=$pgac_cv_check_docbook
17156
17157
17158 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17159 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17160 if test "${pgac_cv_path_stylesheets+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   if test -n "$DOCBOOKSTYLE"; then
17164   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17165 else
17166   for pgac_prefix in /usr /usr/local /opt; do
17167     for pgac_infix in share lib; do
17168       for pgac_postfix in \
17169         sgml/stylesheets/nwalsh-modular \
17170         sgml/stylesheets/docbook \
17171         sgml/docbook/dsssl/modular \
17172         sgml/docbook/stylesheet/dsssl/modular \
17173         sgml/docbook/dsssl-stylesheets
17174       do
17175         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17176         if test -r "$pgac_candidate/html/docbook.dsl" \
17177            && test -r "$pgac_candidate/print/docbook.dsl"
17178         then
17179           pgac_cv_path_stylesheets=$pgac_candidate
17180           break 3
17181         fi
17182       done
17183     done
17184   done
17185 fi
17186 fi
17187
17188 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17189
17190 if test -n "$DOCBOOKSTYLE"; then
17191   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17192 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17193 else
17194   echo "$as_me:$LINENO: result: no" >&5
17195 echo "${ECHO_T}no" >&6
17196 fi
17197 if test -n "$DOCBOOKSTYLE"; then
17198   for ac_prog in collateindex.pl
17199 do
17200   # Extract the first word of "$ac_prog", so it can be a program name with args.
17201 set dummy $ac_prog; ac_word=$2
17202 echo "$as_me:$LINENO: checking for $ac_word" >&5
17203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17204 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17205   echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207   case $COLLATEINDEX in
17208   [\\/]* | ?:[\\/]*)
17209   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17210   ;;
17211   *)
17212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17213 for as_dir in $DOCBOOKSTYLE/bin $PATH
17214 do
17215   IFS=$as_save_IFS
17216   test -z "$as_dir" && as_dir=.
17217   for ac_exec_ext in '' $ac_executable_extensions; do
17218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17219     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17221     break 2
17222   fi
17223 done
17224 done
17225
17226   ;;
17227 esac
17228 fi
17229 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17230
17231 if test -n "$COLLATEINDEX"; then
17232   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17233 echo "${ECHO_T}$COLLATEINDEX" >&6
17234 else
17235   echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17237 fi
17238
17239   test -n "$COLLATEINDEX" && break
17240 done
17241
17242 else
17243   for ac_prog in collateindex.pl
17244 do
17245   # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 echo "$as_me:$LINENO: checking for $ac_word" >&5
17248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17249 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17250   echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252   case $COLLATEINDEX in
17253   [\\/]* | ?:[\\/]*)
17254   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17255   ;;
17256   *)
17257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17258 for as_dir in $PATH
17259 do
17260   IFS=$as_save_IFS
17261   test -z "$as_dir" && as_dir=.
17262   for ac_exec_ext in '' $ac_executable_extensions; do
17263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17264     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17266     break 2
17267   fi
17268 done
17269 done
17270
17271   ;;
17272 esac
17273 fi
17274 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17275
17276 if test -n "$COLLATEINDEX"; then
17277   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17278 echo "${ECHO_T}$COLLATEINDEX" >&6
17279 else
17280   echo "$as_me:$LINENO: result: no" >&5
17281 echo "${ECHO_T}no" >&6
17282 fi
17283
17284   test -n "$COLLATEINDEX" && break
17285 done
17286
17287 fi
17288 for ac_prog in sgmlspl
17289 do
17290   # Extract the first word of "$ac_prog", so it can be a program name with args.
17291 set dummy $ac_prog; ac_word=$2
17292 echo "$as_me:$LINENO: checking for $ac_word" >&5
17293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17294 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17295   echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297   if test -n "$SGMLSPL"; then
17298   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17299 else
17300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17301 for as_dir in $PATH
17302 do
17303   IFS=$as_save_IFS
17304   test -z "$as_dir" && as_dir=.
17305   for ac_exec_ext in '' $ac_executable_extensions; do
17306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17307     ac_cv_prog_SGMLSPL="$ac_prog"
17308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17309     break 2
17310   fi
17311 done
17312 done
17313
17314 fi
17315 fi
17316 SGMLSPL=$ac_cv_prog_SGMLSPL
17317 if test -n "$SGMLSPL"; then
17318   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17319 echo "${ECHO_T}$SGMLSPL" >&6
17320 else
17321   echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6
17323 fi
17324
17325   test -n "$SGMLSPL" && break
17326 done
17327
17328
17329
17330 # prepare build tree if outside source tree
17331 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17332 # Note 2: /bin/pwd might be better than shell's built-in at getting
17333 #         a symlink-free name.
17334 if test "$no_create" != yes; then
17335   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17336     :
17337   else
17338     vpath_build=yes
17339
17340     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17341     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17342     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17343       || { { echo "$as_me:$LINENO: error: failed" >&5
17344 echo "$as_me: error: failed" >&2;}
17345    { (exit 1); exit 1; }; }
17346     echo "$as_me:$LINENO: result: done" >&5
17347 echo "${ECHO_T}done" >&6
17348   fi
17349 fi
17350
17351
17352 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17353
17354
17355 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}"
17356
17357
17358 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17359
17360
17361 cat >confcache <<\_ACEOF
17362 # This file is a shell script that caches the results of configure
17363 # tests run on this system so they can be shared between configure
17364 # scripts and configure runs, see configure's option --config-cache.
17365 # It is not useful on other systems.  If it contains results you don't
17366 # want to keep, you may remove or edit it.
17367 #
17368 # config.status only pays attention to the cache file if you give it
17369 # the --recheck option to rerun configure.
17370 #
17371 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17372 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17373 # following values.
17374
17375 _ACEOF
17376
17377 # The following way of writing the cache mishandles newlines in values,
17378 # but we know of no workaround that is simple, portable, and efficient.
17379 # So, don't put newlines in cache variables' values.
17380 # Ultrix sh set writes to stderr and can't be redirected directly,
17381 # and sets the high bit in the cache file unless we assign to the vars.
17382 {
17383   (set) 2>&1 |
17384     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17385     *ac_space=\ *)
17386       # `set' does not quote correctly, so add quotes (double-quote
17387       # substitution turns \\\\ into \\, and sed turns \\ into \).
17388       sed -n \
17389         "s/'/'\\\\''/g;
17390           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17391       ;;
17392     *)
17393       # `set' quotes correctly as required by POSIX, so do not add quotes.
17394       sed -n \
17395         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17396       ;;
17397     esac;
17398 } |
17399   sed '
17400      t clear
17401      : clear
17402      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17403      t end
17404      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17405      : end' >>confcache
17406 if cmp -s $cache_file confcache; then :; else
17407   if test -w $cache_file; then
17408     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17409     cat confcache >$cache_file
17410   else
17411     echo "not updating unwritable cache $cache_file"
17412   fi
17413 fi
17414 rm -f confcache
17415
17416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17417 # Let make expand exec_prefix.
17418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17419
17420 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17421 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17422 # trailing colons and then remove the whole line if VPATH becomes empty
17423 # (actually we leave an empty line to preserve line numbers).
17424 if test "x$srcdir" = x.; then
17425   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17426 s/:*\$(srcdir):*/:/;
17427 s/:*\${srcdir}:*/:/;
17428 s/:*@srcdir@:*/:/;
17429 s/^\([^=]*=[    ]*\):*/\1/;
17430 s/:*$//;
17431 s/^[^=]*=[      ]*$//;
17432 }'
17433 fi
17434
17435 DEFS=-DHAVE_CONFIG_H
17436
17437
17438 : ${CONFIG_STATUS=./config.status}
17439 ac_clean_files_save=$ac_clean_files
17440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17441 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17442 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17443 cat >$CONFIG_STATUS <<_ACEOF
17444 #! $SHELL
17445 # Generated by $as_me.
17446 # Run this file to recreate the current configuration.
17447 # Compiler output produced by configure, useful for debugging
17448 # configure, is in config.log if it exists.
17449
17450 debug=false
17451 SHELL=\${CONFIG_SHELL-$SHELL}
17452 _ACEOF
17453
17454 cat >>$CONFIG_STATUS <<\_ACEOF
17455
17456 ## --------------------- ##
17457 ## M4sh Initialization.  ##
17458 ## --------------------- ##
17459
17460 # Be Bourne compatible
17461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17462   emulate sh
17463   NULLCMD=:
17464 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17465   set -o posix
17466 fi
17467
17468 # NLS nuisances.
17469 # Support unset when possible.
17470 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17471   as_unset=unset
17472 else
17473   as_unset=false
17474 fi
17475
17476 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17477     { $as_unset LANG || test "${LANG+set}" != set; } ||
17478       { LANG=C; export LANG; }
17479 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17480     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17481       { LC_ALL=C; export LC_ALL; }
17482 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17483     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17484       { LC_TIME=C; export LC_TIME; }
17485 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17486     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17487       { LC_CTYPE=C; export LC_CTYPE; }
17488 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17489     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17490       { LANGUAGE=C; export LANGUAGE; }
17491 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17492     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17493       { LC_COLLATE=C; export LC_COLLATE; }
17494 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17495     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17496       { LC_NUMERIC=C; export LC_NUMERIC; }
17497 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17498     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17499       { LC_MESSAGES=C; export LC_MESSAGES; }
17500
17501
17502 # Name of the executable.
17503 as_me=`(basename "$0") 2>/dev/null ||
17504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17505          X"$0" : 'X\(//\)$' \| \
17506          X"$0" : 'X\(/\)$' \| \
17507          .     : '\(.\)' 2>/dev/null ||
17508 echo X/"$0" |
17509     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17510           /^X\/\(\/\/\)$/{ s//\1/; q; }
17511           /^X\/\(\/\).*/{ s//\1/; q; }
17512           s/.*/./; q'`
17513
17514 # PATH needs CR, and LINENO needs CR and PATH.
17515 # Avoid depending upon Character Ranges.
17516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17519 as_cr_digits='0123456789'
17520 as_cr_alnum=$as_cr_Letters$as_cr_digits
17521
17522 # The user is always right.
17523 if test "${PATH_SEPARATOR+set}" != set; then
17524   echo "#! /bin/sh" >conftest.sh
17525   echo  "exit 0"   >>conftest.sh
17526   chmod +x conftest.sh
17527   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17528     PATH_SEPARATOR=';'
17529   else
17530     PATH_SEPARATOR=:
17531   fi
17532   rm -f conftest.sh
17533 fi
17534
17535
17536   as_lineno_1=$LINENO
17537   as_lineno_2=$LINENO
17538   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17539   test "x$as_lineno_1" != "x$as_lineno_2" &&
17540   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17541   # Find who we are.  Look in the path if we contain no path at all
17542   # relative or not.
17543   case $0 in
17544     *[\\/]* ) as_myself=$0 ;;
17545     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17546 for as_dir in $PATH
17547 do
17548   IFS=$as_save_IFS
17549   test -z "$as_dir" && as_dir=.
17550   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17551 done
17552
17553        ;;
17554   esac
17555   # We did not find ourselves, most probably we were run as `sh COMMAND'
17556   # in which case we are not to be found in the path.
17557   if test "x$as_myself" = x; then
17558     as_myself=$0
17559   fi
17560   if test ! -f "$as_myself"; then
17561     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17562 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17563    { (exit 1); exit 1; }; }
17564   fi
17565   case $CONFIG_SHELL in
17566   '')
17567     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17568 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17569 do
17570   IFS=$as_save_IFS
17571   test -z "$as_dir" && as_dir=.
17572   for as_base in sh bash ksh sh5; do
17573          case $as_dir in
17574          /*)
17575            if ("$as_dir/$as_base" -c '
17576   as_lineno_1=$LINENO
17577   as_lineno_2=$LINENO
17578   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17579   test "x$as_lineno_1" != "x$as_lineno_2" &&
17580   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17581              CONFIG_SHELL=$as_dir/$as_base
17582              export CONFIG_SHELL
17583              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17584            fi;;
17585          esac
17586        done
17587 done
17588 ;;
17589   esac
17590
17591   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17592   # uniformly replaced by the line number.  The first 'sed' inserts a
17593   # line-number line before each line; the second 'sed' does the real
17594   # work.  The second script uses 'N' to pair each line-number line
17595   # with the numbered line, and appends trailing '-' during
17596   # substitution so that $LINENO is not a special case at line end.
17597   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17598   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17599   sed '=' <$as_myself |
17600     sed '
17601       N
17602       s,$,-,
17603       : loop
17604       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17605       t loop
17606       s,-$,,
17607       s,^['$as_cr_digits']*\n,,
17608     ' >$as_me.lineno &&
17609   chmod +x $as_me.lineno ||
17610     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17611 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17612    { (exit 1); exit 1; }; }
17613
17614   # Don't try to exec as it changes $[0], causing all sort of problems
17615   # (the dirname of $[0] is not the place where we might find the
17616   # original and so on.  Autoconf is especially sensible to this).
17617   . ./$as_me.lineno
17618   # Exit status is that of the last command.
17619   exit
17620 }
17621
17622
17623 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17624   *c*,-n*) ECHO_N= ECHO_C='
17625 ' ECHO_T='      ' ;;
17626   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17627   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17628 esac
17629
17630 if expr a : '\(a\)' >/dev/null 2>&1; then
17631   as_expr=expr
17632 else
17633   as_expr=false
17634 fi
17635
17636 rm -f conf$$ conf$$.exe conf$$.file
17637 echo >conf$$.file
17638 if ln -s conf$$.file conf$$ 2>/dev/null; then
17639   # We could just check for DJGPP; but this test a) works b) is more generic
17640   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17641   if test -f conf$$.exe; then
17642     # Don't use ln at all; we don't have any links
17643     as_ln_s='cp -p'
17644   else
17645     as_ln_s='ln -s'
17646   fi
17647 elif ln conf$$.file conf$$ 2>/dev/null; then
17648   as_ln_s=ln
17649 else
17650   as_ln_s='cp -p'
17651 fi
17652 rm -f conf$$ conf$$.exe conf$$.file
17653
17654 as_executable_p="test -f"
17655
17656 # Sed expression to map a string onto a valid CPP name.
17657 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17658
17659 # Sed expression to map a string onto a valid variable name.
17660 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17661
17662
17663 # IFS
17664 # We need space, tab and new line, in precisely that order.
17665 as_nl='
17666 '
17667 IFS="   $as_nl"
17668
17669 # CDPATH.
17670 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17671
17672 exec 6>&1
17673
17674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17675 # report actual input values of CONFIG_FILES etc. instead of their
17676 # values after options handling.  Logging --version etc. is OK.
17677 exec 5>>config.log
17678 {
17679   echo
17680   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17681 ## Running $as_me. ##
17682 _ASBOX
17683 } >&5
17684 cat >&5 <<_CSEOF
17685
17686 This file was extended by PostgreSQL $as_me 7.4devel, which was
17687 generated by GNU Autoconf 2.53.  Invocation command line was
17688
17689   CONFIG_FILES    = $CONFIG_FILES
17690   CONFIG_HEADERS  = $CONFIG_HEADERS
17691   CONFIG_LINKS    = $CONFIG_LINKS
17692   CONFIG_COMMANDS = $CONFIG_COMMANDS
17693   $ $0 $@
17694
17695 _CSEOF
17696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17697 echo >&5
17698 _ACEOF
17699
17700 # Files that config.status was made for.
17701 if test -n "$ac_config_files"; then
17702   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17703 fi
17704
17705 if test -n "$ac_config_headers"; then
17706   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17707 fi
17708
17709 if test -n "$ac_config_links"; then
17710   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17711 fi
17712
17713 if test -n "$ac_config_commands"; then
17714   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17715 fi
17716
17717 cat >>$CONFIG_STATUS <<\_ACEOF
17718
17719 ac_cs_usage="\
17720 \`$as_me' instantiates files from templates according to the
17721 current configuration.
17722
17723 Usage: $0 [OPTIONS] [FILE]...
17724
17725   -h, --help       print this help, then exit
17726   -V, --version    print version number, then exit
17727   -d, --debug      don't remove temporary files
17728       --recheck    update $as_me by reconfiguring in the same conditions
17729   --file=FILE[:TEMPLATE]
17730                    instantiate the configuration file FILE
17731   --header=FILE[:TEMPLATE]
17732                    instantiate the configuration header FILE
17733
17734 Configuration files:
17735 $config_files
17736
17737 Configuration headers:
17738 $config_headers
17739
17740 Configuration links:
17741 $config_links
17742
17743 Report bugs to <bug-autoconf@gnu.org>."
17744 _ACEOF
17745
17746 cat >>$CONFIG_STATUS <<_ACEOF
17747 ac_cs_version="\\
17748 PostgreSQL config.status 7.4devel
17749 configured by $0, generated by GNU Autoconf 2.53,
17750   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17751
17752 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17753 Free Software Foundation, Inc.
17754 This config.status script is free software; the Free Software Foundation
17755 gives unlimited permission to copy, distribute and modify it."
17756 srcdir=$srcdir
17757 _ACEOF
17758
17759 cat >>$CONFIG_STATUS <<\_ACEOF
17760 # If no file are specified by the user, then we need to provide default
17761 # value.  By we need to know if files were specified by the user.
17762 ac_need_defaults=:
17763 while test $# != 0
17764 do
17765   case $1 in
17766   --*=*)
17767     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17768     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17769     shift
17770     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17771     shift
17772     ;;
17773   -*);;
17774   *) # This is not an option, so the user has probably given explicit
17775      # arguments.
17776      ac_need_defaults=false;;
17777   esac
17778
17779   case $1 in
17780   # Handling of the options.
17781 _ACEOF
17782 cat >>$CONFIG_STATUS <<_ACEOF
17783   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17784     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17785     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17786 _ACEOF
17787 cat >>$CONFIG_STATUS <<\_ACEOF
17788   --version | --vers* | -V )
17789     echo "$ac_cs_version"; exit 0 ;;
17790   --he | --h)
17791     # Conflict between --help and --header
17792     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17793 Try \`$0 --help' for more information." >&5
17794 echo "$as_me: error: ambiguous option: $1
17795 Try \`$0 --help' for more information." >&2;}
17796    { (exit 1); exit 1; }; };;
17797   --help | --hel | -h )
17798     echo "$ac_cs_usage"; exit 0 ;;
17799   --debug | --d* | -d )
17800     debug=: ;;
17801   --file | --fil | --fi | --f )
17802     shift
17803     CONFIG_FILES="$CONFIG_FILES $1"
17804     ac_need_defaults=false;;
17805   --header | --heade | --head | --hea )
17806     shift
17807     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17808     ac_need_defaults=false;;
17809
17810   # This is an error.
17811   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17812 Try \`$0 --help' for more information." >&5
17813 echo "$as_me: error: unrecognized option: $1
17814 Try \`$0 --help' for more information." >&2;}
17815    { (exit 1); exit 1; }; } ;;
17816
17817   *) ac_config_targets="$ac_config_targets $1" ;;
17818
17819   esac
17820   shift
17821 done
17822
17823 _ACEOF
17824
17825
17826
17827
17828
17829 cat >>$CONFIG_STATUS <<\_ACEOF
17830 for ac_config_target in $ac_config_targets
17831 do
17832   case "$ac_config_target" in
17833   # Handling of arguments.
17834   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17835   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17836   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17837   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17838   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17839   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17840   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17841   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17842   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17843   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17844   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17845 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17846    { (exit 1); exit 1; }; };;
17847   esac
17848 done
17849
17850 # If the user did not use the arguments to specify the items to instantiate,
17851 # then the envvar interface is used.  Set only those that are not.
17852 # We use the long form for the default assignment because of an extremely
17853 # bizarre bug on SunOS 4.1.3.
17854 if $ac_need_defaults; then
17855   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17856   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17857   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17858 fi
17859
17860 # Create a temporary directory, and hook for its removal unless debugging.
17861 $debug ||
17862 {
17863   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17864   trap '{ (exit 1); exit 1; }' 1 2 13 15
17865 }
17866
17867 # Create a (secure) tmp directory for tmp files.
17868 : ${TMPDIR=/tmp}
17869 {
17870   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17871   test -n "$tmp" && test -d "$tmp"
17872 }  ||
17873 {
17874   tmp=$TMPDIR/cs$$-$RANDOM
17875   (umask 077 && mkdir $tmp)
17876 } ||
17877 {
17878    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17879    { (exit 1); exit 1; }
17880 }
17881
17882 _ACEOF
17883
17884 cat >>$CONFIG_STATUS <<_ACEOF
17885
17886 #
17887 # CONFIG_FILES section.
17888 #
17889
17890 # No need to generate the scripts if there are no CONFIG_FILES.
17891 # This happens for instance when ./config.status config.h
17892 if test -n "\$CONFIG_FILES"; then
17893   # Protect against being on the right side of a sed subst in config.status.
17894   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17895    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17896 s,@SHELL@,$SHELL,;t t
17897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17903 s,@exec_prefix@,$exec_prefix,;t t
17904 s,@prefix@,$prefix,;t t
17905 s,@program_transform_name@,$program_transform_name,;t t
17906 s,@bindir@,$bindir,;t t
17907 s,@sbindir@,$sbindir,;t t
17908 s,@libexecdir@,$libexecdir,;t t
17909 s,@datadir@,$datadir,;t t
17910 s,@sysconfdir@,$sysconfdir,;t t
17911 s,@sharedstatedir@,$sharedstatedir,;t t
17912 s,@localstatedir@,$localstatedir,;t t
17913 s,@libdir@,$libdir,;t t
17914 s,@includedir@,$includedir,;t t
17915 s,@oldincludedir@,$oldincludedir,;t t
17916 s,@infodir@,$infodir,;t t
17917 s,@mandir@,$mandir,;t t
17918 s,@build_alias@,$build_alias,;t t
17919 s,@host_alias@,$host_alias,;t t
17920 s,@target_alias@,$target_alias,;t t
17921 s,@DEFS@,$DEFS,;t t
17922 s,@ECHO_C@,$ECHO_C,;t t
17923 s,@ECHO_N@,$ECHO_N,;t t
17924 s,@ECHO_T@,$ECHO_T,;t t
17925 s,@LIBS@,$LIBS,;t t
17926 s,@docdir@,$docdir,;t t
17927 s,@configure_args@,$configure_args,;t t
17928 s,@build@,$build,;t t
17929 s,@build_cpu@,$build_cpu,;t t
17930 s,@build_vendor@,$build_vendor,;t t
17931 s,@build_os@,$build_os,;t t
17932 s,@host@,$host,;t t
17933 s,@host_cpu@,$host_cpu,;t t
17934 s,@host_vendor@,$host_vendor,;t t
17935 s,@host_os@,$host_os,;t t
17936 s,@PORTNAME@,$PORTNAME,;t t
17937 s,@TAS@,$TAS,;t t
17938 s,@enable_nls@,$enable_nls,;t t
17939 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17940 s,@default_port@,$default_port,;t t
17941 s,@enable_shared@,$enable_shared,;t t
17942 s,@enable_rpath@,$enable_rpath,;t t
17943 s,@enable_debug@,$enable_debug,;t t
17944 s,@CC@,$CC,;t t
17945 s,@CFLAGS@,$CFLAGS,;t t
17946 s,@LDFLAGS@,$LDFLAGS,;t t
17947 s,@CPPFLAGS@,$CPPFLAGS,;t t
17948 s,@ac_ct_CC@,$ac_ct_CC,;t t
17949 s,@EXEEXT@,$EXEEXT,;t t
17950 s,@OBJEXT@,$OBJEXT,;t t
17951 s,@CPP@,$CPP,;t t
17952 s,@GCC@,$GCC,;t t
17953 s,@autodepend@,$autodepend,;t t
17954 s,@INCLUDES@,$INCLUDES,;t t
17955 s,@enable_thread_safety@,$enable_thread_safety,;t t
17956 s,@with_tcl@,$with_tcl,;t t
17957 s,@with_tk@,$with_tk,;t t
17958 s,@with_perl@,$with_perl,;t t
17959 s,@with_python@,$with_python,;t t
17960 s,@ANT@,$ANT,;t t
17961 s,@with_java@,$with_java,;t t
17962 s,@with_krb4@,$with_krb4,;t t
17963 s,@with_krb5@,$with_krb5,;t t
17964 s,@krb_srvtab@,$krb_srvtab,;t t
17965 s,@with_pam@,$with_pam,;t t
17966 s,@with_rendezvous@,$with_rendezvous,;t t
17967 s,@with_openssl@,$with_openssl,;t t
17968 s,@ELF_SYS@,$ELF_SYS,;t t
17969 s,@AWK@,$AWK,;t t
17970 s,@FLEX@,$FLEX,;t t
17971 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17972 s,@LN_S@,$LN_S,;t t
17973 s,@LD@,$LD,;t t
17974 s,@with_gnu_ld@,$with_gnu_ld,;t t
17975 s,@ld_R_works@,$ld_R_works,;t t
17976 s,@RANLIB@,$RANLIB,;t t
17977 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17978 s,@LORDER@,$LORDER,;t t
17979 s,@TAR@,$TAR,;t t
17980 s,@STRIP@,$STRIP,;t t
17981 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17982 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17983 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17984 s,@YACC@,$YACC,;t t
17985 s,@YFLAGS@,$YFLAGS,;t t
17986 s,@PERL@,$PERL,;t t
17987 s,@perl_archlibexp@,$perl_archlibexp,;t t
17988 s,@perl_privlibexp@,$perl_privlibexp,;t t
17989 s,@perl_useshrplib@,$perl_useshrplib,;t t
17990 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17991 s,@PYTHON@,$PYTHON,;t t
17992 s,@python_version@,$python_version,;t t
17993 s,@python_prefix@,$python_prefix,;t t
17994 s,@python_execprefix@,$python_execprefix,;t t
17995 s,@python_configdir@,$python_configdir,;t t
17996 s,@python_moduledir@,$python_moduledir,;t t
17997 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17998 s,@python_includespec@,$python_includespec,;t t
17999 s,@python_libspec@,$python_libspec,;t t
18000 s,@LIBOBJS@,$LIBOBJS,;t t
18001 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18002 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18003 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18004 s,@MSGFMT@,$MSGFMT,;t t
18005 s,@MSGMERGE@,$MSGMERGE,;t t
18006 s,@XGETTEXT@,$XGETTEXT,;t t
18007 s,@localedir@,$localedir,;t t
18008 s,@TCLSH@,$TCLSH,;t t
18009 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18010 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18011 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18012 s,@TCL_LIBS@,$TCL_LIBS,;t t
18013 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18014 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18015 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18016 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18017 s,@TK_LIBS@,$TK_LIBS,;t t
18018 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18019 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18020 s,@NSGMLS@,$NSGMLS,;t t
18021 s,@JADE@,$JADE,;t t
18022 s,@have_docbook@,$have_docbook,;t t
18023 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18024 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18025 s,@SGMLSPL@,$SGMLSPL,;t t
18026 s,@vpath_build@,$vpath_build,;t t
18027 CEOF
18028
18029 _ACEOF
18030
18031   cat >>$CONFIG_STATUS <<\_ACEOF
18032   # Split the substitutions into bite-sized pieces for seds with
18033   # small command number limits, like on Digital OSF/1 and HP-UX.
18034   ac_max_sed_lines=48
18035   ac_sed_frag=1 # Number of current file.
18036   ac_beg=1 # First line for current file.
18037   ac_end=$ac_max_sed_lines # Line after last line for current file.
18038   ac_more_lines=:
18039   ac_sed_cmds=
18040   while $ac_more_lines; do
18041     if test $ac_beg -gt 1; then
18042       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18043     else
18044       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18045     fi
18046     if test ! -s $tmp/subs.frag; then
18047       ac_more_lines=false
18048     else
18049       # The purpose of the label and of the branching condition is to
18050       # speed up the sed processing (if there are no `@' at all, there
18051       # is no need to browse any of the substitutions).
18052       # These are the two extra sed commands mentioned above.
18053       (echo ':t
18054   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18055       if test -z "$ac_sed_cmds"; then
18056         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18057       else
18058         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18059       fi
18060       ac_sed_frag=`expr $ac_sed_frag + 1`
18061       ac_beg=$ac_end
18062       ac_end=`expr $ac_end + $ac_max_sed_lines`
18063     fi
18064   done
18065   if test -z "$ac_sed_cmds"; then
18066     ac_sed_cmds=cat
18067   fi
18068 fi # test -n "$CONFIG_FILES"
18069
18070 _ACEOF
18071 cat >>$CONFIG_STATUS <<\_ACEOF
18072 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18073   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18074   case $ac_file in
18075   - | *:- | *:-:* ) # input from stdin
18076         cat >$tmp/stdin
18077         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18078         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18079   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18080         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18081   * )   ac_file_in=$ac_file.in ;;
18082   esac
18083
18084   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18085   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18087          X"$ac_file" : 'X\(//\)[^/]' \| \
18088          X"$ac_file" : 'X\(//\)$' \| \
18089          X"$ac_file" : 'X\(/\)' \| \
18090          .     : '\(.\)' 2>/dev/null ||
18091 echo X"$ac_file" |
18092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18094           /^X\(\/\/\)$/{ s//\1/; q; }
18095           /^X\(\/\).*/{ s//\1/; q; }
18096           s/.*/./; q'`
18097   { case "$ac_dir" in
18098   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18099   *)                      as_incr_dir=.;;
18100 esac
18101 as_dummy="$ac_dir"
18102 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18103   case $as_mkdir_dir in
18104     # Skip DOS drivespec
18105     ?:) as_incr_dir=$as_mkdir_dir ;;
18106     *)
18107       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18108       test -d "$as_incr_dir" ||
18109         mkdir "$as_incr_dir" ||
18110         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18111 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18112    { (exit 1); exit 1; }; }
18113     ;;
18114   esac
18115 done; }
18116
18117   ac_builddir=.
18118
18119 if test "$ac_dir" != .; then
18120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18121   # A "../" for each directory in $ac_dir_suffix.
18122   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18123 else
18124   ac_dir_suffix= ac_top_builddir=
18125 fi
18126
18127 case $srcdir in
18128   .)  # No --srcdir option.  We are building in place.
18129     ac_srcdir=.
18130     if test -z "$ac_top_builddir"; then
18131        ac_top_srcdir=.
18132     else
18133        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18134     fi ;;
18135   [\\/]* | ?:[\\/]* )  # Absolute path.
18136     ac_srcdir=$srcdir$ac_dir_suffix;
18137     ac_top_srcdir=$srcdir ;;
18138   *) # Relative path.
18139     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18140     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18141 esac
18142 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18143 # absolute.
18144 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18145 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18146 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18147 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18148
18149
18150
18151   if test x"$ac_file" != x-; then
18152     { echo "$as_me:$LINENO: creating $ac_file" >&5
18153 echo "$as_me: creating $ac_file" >&6;}
18154     rm -f "$ac_file"
18155   fi
18156   # Let's still pretend it is `configure' which instantiates (i.e., don't
18157   # use $as_me), people would be surprised to read:
18158   #    /* config.h.  Generated by config.status.  */
18159   if test x"$ac_file" = x-; then
18160     configure_input=
18161   else
18162     configure_input="$ac_file.  "
18163   fi
18164   configure_input=$configure_input"Generated from `echo $ac_file_in |
18165                                      sed 's,.*/,,'` by configure."
18166
18167   # First look for the input files in the build tree, otherwise in the
18168   # src tree.
18169   ac_file_inputs=`IFS=:
18170     for f in $ac_file_in; do
18171       case $f in
18172       -) echo $tmp/stdin ;;
18173       [\\/$]*)
18174          # Absolute (can't be DOS-style, as IFS=:)
18175          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18176 echo "$as_me: error: cannot find input file: $f" >&2;}
18177    { (exit 1); exit 1; }; }
18178          echo $f;;
18179       *) # Relative
18180          if test -f "$f"; then
18181            # Build tree
18182            echo $f
18183          elif test -f "$srcdir/$f"; then
18184            # Source tree
18185            echo $srcdir/$f
18186          else
18187            # /dev/null tree
18188            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18189 echo "$as_me: error: cannot find input file: $f" >&2;}
18190    { (exit 1); exit 1; }; }
18191          fi;;
18192       esac
18193     done` || { (exit 1); exit 1; }
18194 _ACEOF
18195 cat >>$CONFIG_STATUS <<_ACEOF
18196   sed "$ac_vpsub
18197 $extrasub
18198 _ACEOF
18199 cat >>$CONFIG_STATUS <<\_ACEOF
18200 :t
18201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18202 s,@configure_input@,$configure_input,;t t
18203 s,@srcdir@,$ac_srcdir,;t t
18204 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18205 s,@top_srcdir@,$ac_top_srcdir,;t t
18206 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18207 s,@builddir@,$ac_builddir,;t t
18208 s,@abs_builddir@,$ac_abs_builddir,;t t
18209 s,@top_builddir@,$ac_top_builddir,;t t
18210 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18211 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18212   rm -f $tmp/stdin
18213   if test x"$ac_file" != x-; then
18214     mv $tmp/out $ac_file
18215   else
18216     cat $tmp/out
18217     rm -f $tmp/out
18218   fi
18219
18220 done
18221 _ACEOF
18222 cat >>$CONFIG_STATUS <<\_ACEOF
18223
18224 #
18225 # CONFIG_HEADER section.
18226 #
18227
18228 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18229 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18230 #
18231 # ac_d sets the value in "#define NAME VALUE" lines.
18232 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18233 ac_dB='[        ].*$,\1#\2'
18234 ac_dC=' '
18235 ac_dD=',;t'
18236 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18237 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18238 ac_uB='$,\1#\2define\3'
18239 ac_uC=' '
18240 ac_uD=',;t'
18241
18242 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18243   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18244   case $ac_file in
18245   - | *:- | *:-:* ) # input from stdin
18246         cat >$tmp/stdin
18247         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18248         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18249   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18250         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18251   * )   ac_file_in=$ac_file.in ;;
18252   esac
18253
18254   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18255 echo "$as_me: creating $ac_file" >&6;}
18256
18257   # First look for the input files in the build tree, otherwise in the
18258   # src tree.
18259   ac_file_inputs=`IFS=:
18260     for f in $ac_file_in; do
18261       case $f in
18262       -) echo $tmp/stdin ;;
18263       [\\/$]*)
18264          # Absolute (can't be DOS-style, as IFS=:)
18265          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18266 echo "$as_me: error: cannot find input file: $f" >&2;}
18267    { (exit 1); exit 1; }; }
18268          echo $f;;
18269       *) # Relative
18270          if test -f "$f"; then
18271            # Build tree
18272            echo $f
18273          elif test -f "$srcdir/$f"; then
18274            # Source tree
18275            echo $srcdir/$f
18276          else
18277            # /dev/null tree
18278            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18279 echo "$as_me: error: cannot find input file: $f" >&2;}
18280    { (exit 1); exit 1; }; }
18281          fi;;
18282       esac
18283     done` || { (exit 1); exit 1; }
18284   # Remove the trailing spaces.
18285   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18286
18287 _ACEOF
18288
18289 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18290 # `conftest.undefs', that substitutes the proper values into
18291 # config.h.in to produce config.h.  The first handles `#define'
18292 # templates, and the second `#undef' templates.
18293 # And first: Protect against being on the right side of a sed subst in
18294 # config.status.  Protect against being in an unquoted here document
18295 # in config.status.
18296 rm -f conftest.defines conftest.undefs
18297 # Using a here document instead of a string reduces the quoting nightmare.
18298 # Putting comments in sed scripts is not portable.
18299 #
18300 # `end' is used to avoid that the second main sed command (meant for
18301 # 0-ary CPP macros) applies to n-ary macro definitions.
18302 # See the Autoconf documentation for `clear'.
18303 cat >confdef2sed.sed <<\_ACEOF
18304 s/[\\&,]/\\&/g
18305 s,[\\$`],\\&,g
18306 t clear
18307 : clear
18308 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18309 t end
18310 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18311 : end
18312 _ACEOF
18313 # If some macros were called several times there might be several times
18314 # the same #defines, which is useless.  Nevertheless, we may not want to
18315 # sort them, since we want the *last* AC-DEFINE to be honored.
18316 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18317 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18318 rm -f confdef2sed.sed
18319
18320 # This sed command replaces #undef with comments.  This is necessary, for
18321 # example, in the case of _POSIX_SOURCE, which is predefined and required
18322 # on some systems where configure will not decide to define it.
18323 cat >>conftest.undefs <<\_ACEOF
18324 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18325 _ACEOF
18326
18327 # Break up conftest.defines because some shells have a limit on the size
18328 # of here documents, and old seds have small limits too (100 cmds).
18329 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18330 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18331 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18332 echo '  :' >>$CONFIG_STATUS
18333 rm -f conftest.tail
18334 while grep . conftest.defines >/dev/null
18335 do
18336   # Write a limited-size here document to $tmp/defines.sed.
18337   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18338   # Speed up: don't consider the non `#define' lines.
18339   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18340   # Work around the forget-to-reset-the-flag bug.
18341   echo 't clr' >>$CONFIG_STATUS
18342   echo ': clr' >>$CONFIG_STATUS
18343   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18344   echo 'CEOF
18345   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18346   rm -f $tmp/in
18347   mv $tmp/out $tmp/in
18348 ' >>$CONFIG_STATUS
18349   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18350   rm -f conftest.defines
18351   mv conftest.tail conftest.defines
18352 done
18353 rm -f conftest.defines
18354 echo '  fi # egrep' >>$CONFIG_STATUS
18355 echo >>$CONFIG_STATUS
18356
18357 # Break up conftest.undefs because some shells have a limit on the size
18358 # of here documents, and old seds have small limits too (100 cmds).
18359 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18360 rm -f conftest.tail
18361 while grep . conftest.undefs >/dev/null
18362 do
18363   # Write a limited-size here document to $tmp/undefs.sed.
18364   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18365   # Speed up: don't consider the non `#undef'
18366   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18367   # Work around the forget-to-reset-the-flag bug.
18368   echo 't clr' >>$CONFIG_STATUS
18369   echo ': clr' >>$CONFIG_STATUS
18370   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18371   echo 'CEOF
18372   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18373   rm -f $tmp/in
18374   mv $tmp/out $tmp/in
18375 ' >>$CONFIG_STATUS
18376   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18377   rm -f conftest.undefs
18378   mv conftest.tail conftest.undefs
18379 done
18380 rm -f conftest.undefs
18381
18382 cat >>$CONFIG_STATUS <<\_ACEOF
18383   # Let's still pretend it is `configure' which instantiates (i.e., don't
18384   # use $as_me), people would be surprised to read:
18385   #    /* config.h.  Generated by config.status.  */
18386   if test x"$ac_file" = x-; then
18387     echo "/* Generated by configure.  */" >$tmp/config.h
18388   else
18389     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18390   fi
18391   cat $tmp/in >>$tmp/config.h
18392   rm -f $tmp/in
18393   if test x"$ac_file" != x-; then
18394     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18395       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18396 echo "$as_me: $ac_file is unchanged" >&6;}
18397     else
18398       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18400          X"$ac_file" : 'X\(//\)[^/]' \| \
18401          X"$ac_file" : 'X\(//\)$' \| \
18402          X"$ac_file" : 'X\(/\)' \| \
18403          .     : '\(.\)' 2>/dev/null ||
18404 echo X"$ac_file" |
18405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18406           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18407           /^X\(\/\/\)$/{ s//\1/; q; }
18408           /^X\(\/\).*/{ s//\1/; q; }
18409           s/.*/./; q'`
18410       { case "$ac_dir" in
18411   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18412   *)                      as_incr_dir=.;;
18413 esac
18414 as_dummy="$ac_dir"
18415 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18416   case $as_mkdir_dir in
18417     # Skip DOS drivespec
18418     ?:) as_incr_dir=$as_mkdir_dir ;;
18419     *)
18420       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18421       test -d "$as_incr_dir" ||
18422         mkdir "$as_incr_dir" ||
18423         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18424 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18425    { (exit 1); exit 1; }; }
18426     ;;
18427   esac
18428 done; }
18429
18430       rm -f $ac_file
18431       mv $tmp/config.h $ac_file
18432     fi
18433   else
18434     cat $tmp/config.h
18435     rm -f $tmp/config.h
18436   fi
18437   # Run the commands associated with the file.
18438   case $ac_file in
18439     src/include/pg_config.h )
18440 # Update timestamp for pg_config.h (see Makefile.global)
18441 echo >src/include/stamp-h
18442  ;;
18443   esac
18444 done
18445 _ACEOF
18446 cat >>$CONFIG_STATUS <<\_ACEOF
18447
18448 #
18449 # CONFIG_LINKS section.
18450 #
18451
18452 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18453   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18454   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18455
18456   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18457 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18458
18459   if test ! -r $srcdir/$ac_source; then
18460     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18461 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18462    { (exit 1); exit 1; }; }
18463   fi
18464   rm -f $ac_dest
18465
18466   # Make relative symlinks.
18467   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18468 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18469          X"$ac_dest" : 'X\(//\)[^/]' \| \
18470          X"$ac_dest" : 'X\(//\)$' \| \
18471          X"$ac_dest" : 'X\(/\)' \| \
18472          .     : '\(.\)' 2>/dev/null ||
18473 echo X"$ac_dest" |
18474     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18475           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18476           /^X\(\/\/\)$/{ s//\1/; q; }
18477           /^X\(\/\).*/{ s//\1/; q; }
18478           s/.*/./; q'`
18479   { case "$ac_dest_dir" in
18480   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18481   *)                      as_incr_dir=.;;
18482 esac
18483 as_dummy="$ac_dest_dir"
18484 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18485   case $as_mkdir_dir in
18486     # Skip DOS drivespec
18487     ?:) as_incr_dir=$as_mkdir_dir ;;
18488     *)
18489       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18490       test -d "$as_incr_dir" ||
18491         mkdir "$as_incr_dir" ||
18492         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18493 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18494    { (exit 1); exit 1; }; }
18495     ;;
18496   esac
18497 done; }
18498
18499   ac_builddir=.
18500
18501 if test "$ac_dest_dir" != .; then
18502   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18503   # A "../" for each directory in $ac_dir_suffix.
18504   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18505 else
18506   ac_dir_suffix= ac_top_builddir=
18507 fi
18508
18509 case $srcdir in
18510   .)  # No --srcdir option.  We are building in place.
18511     ac_srcdir=.
18512     if test -z "$ac_top_builddir"; then
18513        ac_top_srcdir=.
18514     else
18515        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18516     fi ;;
18517   [\\/]* | ?:[\\/]* )  # Absolute path.
18518     ac_srcdir=$srcdir$ac_dir_suffix;
18519     ac_top_srcdir=$srcdir ;;
18520   *) # Relative path.
18521     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18522     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18523 esac
18524 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18525 # absolute.
18526 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18527 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18528 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18529 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18530
18531
18532   case $srcdir in
18533   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18534       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18535   esac
18536
18537   # Make a symlink if possible; otherwise try a hard link.
18538   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18539     ln $srcdir/$ac_source $ac_dest ||
18540     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18541 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18542    { (exit 1); exit 1; }; }
18543 done
18544 _ACEOF
18545
18546 cat >>$CONFIG_STATUS <<\_ACEOF
18547
18548 { (exit 0); exit 0; }
18549 _ACEOF
18550 chmod +x $CONFIG_STATUS
18551 ac_clean_files=$ac_clean_files_save
18552
18553
18554 # configure is writing to config.log, and then calls config.status.
18555 # config.status does its own redirection, appending to config.log.
18556 # Unfortunately, on DOS this fails, as config.log is still kept open
18557 # by configure, so config.status won't be able to write to it; its
18558 # output is simply discarded.  So we exec the FD to /dev/null,
18559 # effectively closing config.log, so it can be properly (re)opened and
18560 # appended to by config.status.  When coming back to configure, we
18561 # need to make the FD available again.
18562 if test "$no_create" != yes; then
18563   ac_cs_success=:
18564   exec 5>/dev/null
18565   $SHELL $CONFIG_STATUS || ac_cs_success=false
18566   exec 5>>config.log
18567   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18568   # would make configure fail if this is the last instruction.
18569   $ac_cs_success || { (exit 1); exit 1; }
18570 fi
18571