]> granicus.if.org Git - postgresql/blob - configure
Rename --with-threads to --enable-thread-safeness, per Peter.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-recode         enable single-byte recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --enable-thread-safeness allow libpq and ecpg to be thread-safe
859   --with-tcl              build Tcl and Tk interfaces
860   --without-tk            do not build Tk interfaces if Tcl is enabled
861   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
862   --with-tkconfig=DIR     tkConfig.sh is in DIR
863   --with-perl             build Perl modules (PL/Perl)
864   --with-python           build Python interface module
865   --with-java             build JDBC interface and Java tools
866   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
867   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
869   --with-pam              build with PAM support
870   --with-rendezvous       build with Rendezvous support
871   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
872   --without-readline      do not use Readline
873   --without-zlib          do not use Zlib
874   --with-gnu-ld           assume the C compiler uses GNU ld default=no
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884   DOCBOOKSTYLE
885               location of DocBook stylesheets
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <pgsql-bugs@postgresql.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
955
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960
961 Copyright 2002 PostgreSQL Global Development Group
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1027 do
1028   case $ac_arg in
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n ) continue ;;
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     continue ;;
1034   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036   esac
1037   case " $ac_configure_args " in
1038     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1039     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040        ac_sep=" " ;;
1041   esac
1042   # Get rid of the leading space.
1043 done
1044
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log.  We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051   # Save into config.log some information that might help in debugging.
1052   {
1053     echo
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076     if test -s confdefs.h; then
1077       cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082       echo
1083       sed "/^$/d" confdefs.h
1084       echo
1085     fi
1086     test "$ac_signal" != 0 &&
1087       echo "$as_me: caught signal $ac_signal"
1088     echo "$as_me: exit $exit_status"
1089   } >&5
1090   rm -f core core.* *.core &&
1091   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092     exit $exit_status
1093      ' 0
1094 for ac_signal in 1 2 13 15; do
1095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
1098
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 echo >confdefs.h
1103
1104 # Predefined preprocessor variables.
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
1129
1130
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134   if test "x$prefix" != xNONE; then
1135     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136   else
1137     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138   fi
1139 fi
1140 for ac_site_file in $CONFIG_SITE; do
1141   if test -r "$ac_site_file"; then
1142     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144     sed 's/^/| /' "$ac_site_file" >&5
1145     . "$ac_site_file"
1146   fi
1147 done
1148
1149 if test -r "$cache_file"; then
1150   # Some versions of bash will fail to source /dev/null (special
1151   # files actually), so we avoid doing that.
1152   if test -f "$cache_file"; then
1153     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1155     case $cache_file in
1156       [\\/]* | ?:[\\/]* ) . $cache_file;;
1157       *)                      . ./$cache_file;;
1158     esac
1159   fi
1160 else
1161   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163   >$cache_file
1164 fi
1165
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172   eval ac_new_set=\$ac_env_${ac_var}_set
1173   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174   eval ac_new_val="\$ac_env_${ac_var}_value"
1175   case $ac_old_set,$ac_new_set in
1176     set,)
1177       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179       ac_cache_corrupted=: ;;
1180     ,set)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,);;
1185     *)
1186       if test "x$ac_old_val" != "x$ac_new_val"; then
1187         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190 echo "$as_me:   former value:  $ac_old_val" >&2;}
1191         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192 echo "$as_me:   current value: $ac_new_val" >&2;}
1193         ac_cache_corrupted=:
1194       fi;;
1195   esac
1196   # Pass precious variables to config.status.
1197   if test "$ac_new_set" = set; then
1198     case $ac_new_val in
1199     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201     *) ac_arg=$ac_var=$ac_new_val ;;
1202     esac
1203     case " $ac_configure_args " in
1204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1205       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206     esac
1207   fi
1208 done
1209 if $ac_cache_corrupted; then
1210   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 ac_ext=c
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255 ac_aux_dir=
1256 for ac_dir in config $srcdir/config; do
1257   if test -f $ac_dir/install-sh; then
1258     ac_aux_dir=$ac_dir
1259     ac_install_sh="$ac_aux_dir/install-sh -c"
1260     break
1261   elif test -f $ac_dir/install.sh; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/install.sh -c"
1264     break
1265   elif test -f $ac_dir/shtool; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/shtool install -c"
1268     break
1269   fi
1270 done
1271 if test -z "$ac_aux_dir"; then
1272   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1279
1280
1281 configure_args=$ac_configure_args
1282
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1287 _ACEOF
1288
1289
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294    { (exit 1); exit 1; }; }
1295
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299   echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301   ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303   ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307    { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311    { (exit 1); exit 1; }; }
1312
1313 fi
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1316 build=$ac_cv_build
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320
1321
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325   echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327   ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329   ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333    { (exit 1); exit 1; }; }
1334
1335 fi
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1338 host=$ac_cv_host
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342
1343
1344
1345 template=
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1348
1349
1350
1351
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354   withval="$with_template"
1355
1356   case $withval in
1357     yes)
1358       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360    { (exit 1); exit 1; }; }
1361       ;;
1362     no)
1363       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365    { (exit 1); exit 1; }; }
1366       ;;
1367     *)
1368
1369   case $withval in
1370     list)   echo; ls "$srcdir/src/template"; exit;;
1371     *)      if test -f "$srcdir/src/template/$with_template" ; then
1372               template=$withval
1373             else
1374               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376    { (exit 1); exit 1; }; }
1377             fi;;
1378   esac
1379
1380       ;;
1381   esac
1382
1383 else
1384
1385   # --with-template not given
1386
1387 case $host_os in
1388      aix*) template=aix ;;
1389     beos*) template=beos ;;
1390     bsdi*) template=bsdi ;;
1391   cygwin*) template=cygwin ;;
1392   darwin*) template=darwin ;;
1393     dgux*) template=dgux ;;
1394  freebsd*) template=freebsd ;;
1395     hpux*) template=hpux ;;
1396     irix*) template=irix5 ;;
1397    linux*) template=linux ;;
1398    mingw*) template=win32 ;;
1399   netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401  openbsd*) template=openbsd ;;
1402      osf*) template=osf ;;
1403      qnx*) template=qnx4 ;;
1404      sco*) template=sco ;;
1405  solaris*) template=solaris ;;
1406    sunos*) template=sunos4 ;;
1407  sysv4.2*)
1408         case $host_vendor in
1409           univel) template=univel ;;
1410         esac ;;
1411    sysv4*) template=svr4 ;;
1412    sysv5*) template=unixware ;;
1413   ultrix*) template=ultrix4 ;;
1414 esac
1415
1416   if test x"$template" = x"" ; then
1417     { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1422
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this.  Include the above 'checking host system type...'
1425 line.
1426 *******************************************************************
1427 " >&5
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1433
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this.  Include the above 'checking host system type...'
1436 line.
1437 *******************************************************************
1438 " >&2;}
1439    { (exit 1); exit 1; }; }
1440   fi
1441
1442
1443 fi;
1444
1445
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1448
1449 PORTNAME=$template
1450
1451
1452 # Pick right test-and-set (TAS) code.  Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1455 case $host in
1456   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1457   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1459   *)                need_tas=no;  tas_file=dummy.s ;;
1460 esac
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462
1463
1464 if test "$need_tas" = yes ; then
1465   TAS=tas.o
1466 fi
1467
1468
1469
1470
1471 ##
1472 ## Command line options
1473 ##
1474
1475
1476 #
1477 # Add non-standard directories to the include path
1478 #
1479
1480
1481
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484   withval="$with_includes"
1485
1486   case $withval in
1487     yes)
1488       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490    { (exit 1); exit 1; }; }
1491       ;;
1492     no)
1493       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495    { (exit 1); exit 1; }; }
1496       ;;
1497     *)
1498
1499       ;;
1500   esac
1501
1502 fi;
1503
1504
1505
1506 #
1507 # Add non-standard directories to the library search path
1508 #
1509
1510
1511
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514   withval="$with_libraries"
1515
1516   case $withval in
1517     yes)
1518       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520    { (exit 1); exit 1; }; }
1521       ;;
1522     no)
1523       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525    { (exit 1); exit 1; }; }
1526       ;;
1527     *)
1528       LIBRARY_DIRS=$withval
1529       ;;
1530   esac
1531
1532 fi;
1533
1534
1535
1536
1537
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540   withval="$with_libs"
1541
1542   case $withval in
1543     yes)
1544       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546    { (exit 1); exit 1; }; }
1547       ;;
1548     no)
1549       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551    { (exit 1); exit 1; }; }
1552       ;;
1553     *)
1554       LIBRARY_DIRS=$withval
1555       ;;
1556   esac
1557
1558 fi;
1559
1560
1561
1562 #
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 #
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567
1568
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571   enableval="$enable_integer_datetimes"
1572
1573   case $enableval in
1574     yes)
1575
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1578 _ACEOF
1579
1580       ;;
1581     no)
1582       :
1583       ;;
1584     *)
1585       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587    { (exit 1); exit 1; }; }
1588       ;;
1589   esac
1590
1591 else
1592   enable_integer_datetimes=no
1593
1594 fi;
1595
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598
1599
1600 # Character set recode (--enable-recode)
1601 #
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1604
1605
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608   enableval="$enable_recode"
1609
1610   case $enableval in
1611     yes)
1612
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1615 _ACEOF
1616
1617       ;;
1618     no)
1619       :
1620       ;;
1621     *)
1622       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624    { (exit 1); exit 1; }; }
1625       ;;
1626   esac
1627
1628 else
1629   enable_recode=no
1630
1631 fi;
1632
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1635
1636
1637 #
1638 # NLS
1639 #
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1642
1643
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646   enableval="$enable_nls"
1647
1648   case $enableval in
1649     yes)
1650       :
1651       ;;
1652     no)
1653       :
1654       ;;
1655     *)
1656       enable_nls=yes
1657 WANTED_LANGUAGES=$enableval
1658       ;;
1659   esac
1660
1661 else
1662   enable_nls=no
1663 fi;
1664
1665
1666 if test "$enable_nls" = yes; then
1667
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1670 _ACEOF
1671
1672 fi
1673
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1676
1677
1678
1679 #
1680 # Default port number (--with-pgport), default 5432
1681 #
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1684
1685
1686
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689   withval="$with_pgport"
1690
1691   case $withval in
1692     yes)
1693       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695    { (exit 1); exit 1; }; }
1696       ;;
1697     no)
1698       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700    { (exit 1); exit 1; }; }
1701       ;;
1702     *)
1703       default_port=$withval
1704       ;;
1705   esac
1706
1707 else
1708   default_port=5432
1709 fi;
1710
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1722 _ACEOF
1723
1724
1725
1726 #
1727 # Option to disable shared libraries
1728 #
1729
1730
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733   enableval="$enable_shared"
1734
1735   case $enableval in
1736     yes)
1737       :
1738       ;;
1739     no)
1740       :
1741       ;;
1742     *)
1743       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745    { (exit 1); exit 1; }; }
1746       ;;
1747   esac
1748
1749 else
1750   enable_shared=yes
1751
1752 fi;
1753
1754
1755
1756 #
1757 # '-rpath'-like feature can be disabled
1758 #
1759
1760
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763   enableval="$enable_rpath"
1764
1765   case $enableval in
1766     yes)
1767       :
1768       ;;
1769     no)
1770       :
1771       ;;
1772     *)
1773       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777   esac
1778
1779 else
1780   enable_rpath=yes
1781
1782 fi;
1783
1784
1785
1786
1787 #
1788 # --enable-debug adds -g to compiler flags
1789 #
1790
1791
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794   enableval="$enable_debug"
1795
1796   case $enableval in
1797     yes)
1798       :
1799       ;;
1800     no)
1801       :
1802       ;;
1803     *)
1804       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806    { (exit 1); exit 1; }; }
1807       ;;
1808   esac
1809
1810 else
1811   enable_debug=no
1812
1813 fi;
1814
1815
1816
1817 #
1818 # C compiler
1819 #
1820
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1823 # variable.
1824
1825
1826
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1829   withval="$with_CC"
1830
1831   case $withval in
1832     yes)
1833       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835    { (exit 1); exit 1; }; }
1836       ;;
1837     no)
1838       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840    { (exit 1); exit 1; }; }
1841       ;;
1842     *)
1843       CC=$with_CC
1844       ;;
1845   esac
1846
1847 fi;
1848
1849
1850 case $template in
1851   aix) pgac_cc_list="gcc xlc";;
1852  irix) pgac_cc_list="cc";; # no gcc
1853     *) pgac_cc_list="gcc cc";;
1854 esac
1855
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862   for ac_prog in $pgac_cc_list
1863   do
1864     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$CC"; then
1872   ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 CC=$ac_cv_prog_CC
1891 if test -n "$CC"; then
1892   echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899     test -n "$CC" && break
1900   done
1901 fi
1902 if test -z "$CC"; then
1903   ac_ct_CC=$CC
1904   for ac_prog in $pgac_cc_list
1905 do
1906   # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$ac_ct_CC"; then
1914   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_ac_ct_CC="$ac_prog"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941   test -n "$ac_ct_CC" && break
1942 done
1943
1944   CC=$ac_ct_CC
1945 fi
1946
1947
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950    { (exit 1); exit 1; }; }
1951
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954      "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957   (eval $ac_compiler --version </dev/null >&5) 2>&5
1958   ac_status=$?
1959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960   (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962   (eval $ac_compiler -v </dev/null >&5) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967   (eval $ac_compiler -V </dev/null >&5) 2>&5
1968   ac_status=$?
1969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970   (exit $ac_status); }
1971
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1975
1976 #ifdef F77_DUMMY_MAIN
1977 #  ifdef __cplusplus
1978      extern "C"
1979 #  endif
1980    int F77_DUMMY_MAIN() { return 1; }
1981 #endif
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1994 # of exeext.
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999   (eval $ac_link_default) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; then
2003   # Find the output, starting from the most likely.  This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # resort.
2006
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009 ac_cv_exeext=
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011                 ls a.out conftest 2>/dev/null;
2012                 ls a.* conftest.* 2>/dev/null`; do
2013   case $ac_file in
2014     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015     a.out ) # We found the default executable, but exeext='' is most
2016             # certainly right.
2017             break;;
2018     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2020           export ac_cv_exeext
2021           break;;
2022     * ) break;;
2023   esac
2024 done
2025 else
2026   echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030    { (exit 77); exit 77; }; }
2031 fi
2032
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2036
2037 # Check the compiler produces executables we can run.  If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044   if { ac_try='./$ac_file'
2045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046   (eval $ac_try) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; }; then
2050     cross_compiling=no
2051   else
2052     if test "$cross_compiling" = maybe; then
2053         cross_compiling=yes
2054     else
2055         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059    { (exit 1); exit 1; }; }
2060     fi
2061   fi
2062 fi
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2065
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run.  If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2074
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078   (eval $ac_link) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; then
2082   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2085 # `rm'.
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2087   case $ac_file in
2088     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090           export ac_cv_exeext
2091           break;;
2092     * ) break;;
2093   esac
2094 done
2095 else
2096   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098    { (exit 1); exit 1; }; }
2099 fi
2100
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2104
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2107 ac_exeext=$EXEEXT
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2116
2117 #ifdef F77_DUMMY_MAIN
2118 #  ifdef __cplusplus
2119      extern "C"
2120 #  endif
2121    int F77_DUMMY_MAIN() { return 1; }
2122 #endif
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }; then
2137   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2138   case $ac_file in
2139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2141        break;;
2142   esac
2143 done
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2153 fi
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$OBJEXT
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2166
2167 #ifdef F77_DUMMY_MAIN
2168 #  ifdef __cplusplus
2169      extern "C"
2170 #  endif
2171    int F77_DUMMY_MAIN() { return 1; }
2172 #endif
2173 int
2174 main ()
2175 {
2176 #ifndef __GNUC__
2177        choke me
2178 #endif
2179
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186   (eval $ac_compile) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); } &&
2190          { ac_try='test -s conftest.$ac_objext'
2191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192   (eval $ac_try) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; }; then
2196   ac_compiler_gnu=yes
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2201 fi
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204
2205 fi
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2211 CFLAGS="-g"
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220
2221 #ifdef F77_DUMMY_MAIN
2222 #  ifdef __cplusplus
2223      extern "C"
2224 #  endif
2225    int F77_DUMMY_MAIN() { return 1; }
2226 #endif
2227 int
2228 main ()
2229 {
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237   (eval $ac_compile) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); } &&
2241          { ac_try='test -s conftest.$ac_objext'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247   ac_cv_prog_cc_g=yes
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 ac_cv_prog_cc_g=no
2252 fi
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258   CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260   if test "$GCC" = yes; then
2261     CFLAGS="-g -O2"
2262   else
2263     CFLAGS="-g"
2264   fi
2265 else
2266   if test "$GCC" = yes; then
2267     CFLAGS="-O2"
2268   else
2269     CFLAGS=
2270   fi
2271 fi
2272 # Some people use a C++ compiler to compile C.  Since we use `exit',
2273 # in C++ we need to declare it.  In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #ifndef __cplusplus
2278   choke me
2279 #endif
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   for ac_declaration in \
2294    ''\
2295    '#include <stdlib.h>' \
2296    'extern "C" void std::exit (int) throw (); using std::exit;' \
2297    'extern "C" void std::exit (int); using std::exit;' \
2298    'extern "C" void exit (int) throw ();' \
2299    'extern "C" void exit (int);' \
2300    'void exit (int);'
2301 do
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 #include <stdlib.h>
2306 $ac_declaration
2307 #ifdef F77_DUMMY_MAIN
2308 #  ifdef __cplusplus
2309      extern "C"
2310 #  endif
2311    int F77_DUMMY_MAIN() { return 1; }
2312 #endif
2313 int
2314 main ()
2315 {
2316 exit (42);
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); } &&
2327          { ac_try='test -s conftest.$ac_objext'
2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329   (eval $ac_try) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; }; then
2333   :
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 continue
2338 fi
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2343 $ac_declaration
2344 #ifdef F77_DUMMY_MAIN
2345 #  ifdef __cplusplus
2346      extern "C"
2347 #  endif
2348    int F77_DUMMY_MAIN() { return 1; }
2349 #endif
2350 int
2351 main ()
2352 {
2353 exit (42);
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   break
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 fi
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2376 done
2377 rm -f conftest*
2378 if test -n "$ac_declaration"; then
2379   echo '#ifdef __cplusplus' >>confdefs.h
2380   echo $ac_declaration      >>confdefs.h
2381   echo '#endif'             >>confdefs.h
2382 fi
2383
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 fi
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395 # Read the template
2396 . "$srcdir/src/template/$template" || exit
2397
2398 if test "$ac_env_CFLAGS_set" = set; then
2399   CFLAGS=$ac_env_CFLAGS_value
2400 fi
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2402   CFLAGS="$CFLAGS -g"
2403 fi
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2406
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2410
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2414
2415 #ifdef F77_DUMMY_MAIN
2416 #  ifdef __cplusplus
2417      extern "C"
2418 #  endif
2419    int F77_DUMMY_MAIN() { return 1; }
2420 #endif
2421 int
2422 main ()
2423 {
2424 return 0;
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431   (eval $ac_link) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } &&
2435          { ac_try='test -s conftest$ac_exeext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450    { (exit 1); exit 1; }; }
2451 fi
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2453
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2459
2460 #ifdef F77_DUMMY_MAIN
2461 #  ifdef __cplusplus
2462      extern "C"
2463 #  endif
2464    int F77_DUMMY_MAIN() { return 1; }
2465 #endif
2466 int
2467 main ()
2468 {
2469 #ifdef __FAST_MATH__
2470 choke me
2471 #endif
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   :
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494    { (exit 1); exit 1; }; }
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 fi
2498
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2508   CPP=
2509 fi
2510 if test -z "$CPP"; then
2511   if test "${ac_cv_prog_CPP+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514       # Double quotes because CPP needs to be expanded
2515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2516     do
2517       ac_preproc_ok=false
2518 for ac_c_preproc_warn_flag in '' yes
2519 do
2520   # Use a header file that comes with gcc, so configuring glibc
2521   # with a fresh cross-compiler works.
2522   # On the NeXT, cc -E runs the code through the compiler's parser,
2523   # not just through cpp. "Syntax error" is here to catch this case.
2524   cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <assert.h>
2528                      Syntax error
2529 _ACEOF
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532   ac_status=$?
2533   egrep -v '^ *\+' conftest.er1 >conftest.err
2534   rm -f conftest.er1
2535   cat conftest.err >&5
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); } >/dev/null; then
2538   if test -s conftest.err; then
2539     ac_cpp_err=$ac_c_preproc_warn_flag
2540   else
2541     ac_cpp_err=
2542   fi
2543 else
2544   ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547   :
2548 else
2549   echo "$as_me: failed program was:" >&5
2550   cat conftest.$ac_ext >&5
2551   # Broken: fails on valid input.
2552 continue
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556   # OK, works on sane cases.  Now check whether non-existent headers
2557   # can be detected and how.
2558   cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2562 _ACEOF
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565   ac_status=$?
2566   egrep -v '^ *\+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } >/dev/null; then
2571   if test -s conftest.err; then
2572     ac_cpp_err=$ac_c_preproc_warn_flag
2573   else
2574     ac_cpp_err=
2575   fi
2576 else
2577   ac_cpp_err=yes
2578 fi
2579 if test -z "$ac_cpp_err"; then
2580   # Broken: success on invalid input.
2581 continue
2582 else
2583   echo "$as_me: failed program was:" >&5
2584   cat conftest.$ac_ext >&5
2585   # Passes both tests.
2586 ac_preproc_ok=:
2587 break
2588 fi
2589 rm -f conftest.err conftest.$ac_ext
2590
2591 done
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2595   break
2596 fi
2597
2598     done
2599     ac_cv_prog_CPP=$CPP
2600
2601 fi
2602   CPP=$ac_cv_prog_CPP
2603 else
2604   ac_cv_prog_CPP=$CPP
2605 fi
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2608 ac_preproc_ok=false
2609 for ac_c_preproc_warn_flag in '' yes
2610 do
2611   # Use a header file that comes with gcc, so configuring glibc
2612   # with a fresh cross-compiler works.
2613   # On the NeXT, cc -E runs the code through the compiler's parser,
2614   # not just through cpp. "Syntax error" is here to catch this case.
2615   cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <assert.h>
2619                      Syntax error
2620 _ACEOF
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2623   ac_status=$?
2624   egrep -v '^ *\+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } >/dev/null; then
2629   if test -s conftest.err; then
2630     ac_cpp_err=$ac_c_preproc_warn_flag
2631   else
2632     ac_cpp_err=
2633   fi
2634 else
2635   ac_cpp_err=yes
2636 fi
2637 if test -z "$ac_cpp_err"; then
2638   :
2639 else
2640   echo "$as_me: failed program was:" >&5
2641   cat conftest.$ac_ext >&5
2642   # Broken: fails on valid input.
2643 continue
2644 fi
2645 rm -f conftest.err conftest.$ac_ext
2646
2647   # OK, works on sane cases.  Now check whether non-existent headers
2648   # can be detected and how.
2649   cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2653 _ACEOF
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656   ac_status=$?
2657   egrep -v '^ *\+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } >/dev/null; then
2662   if test -s conftest.err; then
2663     ac_cpp_err=$ac_c_preproc_warn_flag
2664   else
2665     ac_cpp_err=
2666   fi
2667 else
2668   ac_cpp_err=yes
2669 fi
2670 if test -z "$ac_cpp_err"; then
2671   # Broken: success on invalid input.
2672 continue
2673 else
2674   echo "$as_me: failed program was:" >&5
2675   cat conftest.$ac_ext >&5
2676   # Passes both tests.
2677 ac_preproc_ok=:
2678 break
2679 fi
2680 rm -f conftest.err conftest.$ac_ext
2681
2682 done
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2686   :
2687 else
2688   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698
2699
2700
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703   cc_string="GCC `${CC} --version | sed q`"
2704 else
2705   cc_string=$CC
2706 fi
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2710 _ACEOF
2711
2712
2713
2714 #
2715 # Automatic dependency tracking
2716 #
2717
2718
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721   enableval="$enable_depend"
2722
2723   case $enableval in
2724     yes)
2725       autodepend=yes
2726       ;;
2727     no)
2728       :
2729       ;;
2730     *)
2731       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733    { (exit 1); exit 1; }; }
2734       ;;
2735   esac
2736
2737 else
2738   enable_depend=no
2739
2740 fi;
2741
2742
2743
2744
2745 #
2746 # Enable assert checks
2747 #
2748
2749
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752   enableval="$enable_cassert"
2753
2754   case $enableval in
2755     yes)
2756
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2759 _ACEOF
2760
2761       ;;
2762     no)
2763       :
2764       ;;
2765     *)
2766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768    { (exit 1); exit 1; }; }
2769       ;;
2770   esac
2771
2772 else
2773   enable_cassert=no
2774
2775 fi;
2776
2777
2778
2779 #
2780 # Include directories
2781 #
2782 ac_save_IFS=$IFS
2783 IFS="${IFS}:"
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786   if test -d "$dir"; then
2787     INCLUDES="$INCLUDES -I$dir"
2788   else
2789     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2791   fi
2792 done
2793 IFS=$ac_save_IFS
2794
2795
2796
2797 #
2798 # Library directories
2799 #
2800 ac_save_IFS=$IFS
2801 IFS="${IFS}:"
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804   if test -d "$dir"; then
2805     LIBDIRS="$LIBDIRS -L$dir"
2806   else
2807     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2809   fi
2810 done
2811 IFS=$ac_save_IFS
2812
2813 #
2814 # Enable libpq to be thread-safeness
2815 #
2816 echo "$as_me:$LINENO: checking allow thread-safe libpq and ecpg" >&5
2817 echo $ECHO_N "checking allow thread-safe libpq and ecpg... $ECHO_C" >&6
2818
2819
2820
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823   withval="$with_threads"
2824
2825   case $withval in
2826     yes)
2827
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2830 _ACEOF
2831
2832       ;;
2833     no)
2834       :
2835       ;;
2836     *)
2837       { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2838 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2839    { (exit 1); exit 1; }; }
2840       ;;
2841   esac
2842
2843 else
2844   with_threads=no
2845
2846 fi;
2847
2848
2849 echo "$as_me:$LINENO: result: $enable_thread_safeness" >&5
2850 echo "${ECHO_T}$enable_thread_safeness" >&6
2851
2852
2853 #
2854 # Tcl/Tk
2855 #
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2858
2859
2860
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2863   withval="$with_tcl"
2864
2865   case $withval in
2866     yes)
2867       :
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   with_tcl=no
2881
2882 fi;
2883
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2886
2887
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2892
2893
2894
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2897   withval="$with_tk"
2898
2899   case $withval in
2900     yes)
2901       :
2902       ;;
2903     no)
2904       :
2905       ;;
2906     *)
2907       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911   esac
2912
2913 else
2914   with_tk=yes
2915
2916 fi;
2917
2918 else
2919   with_tk=no
2920 fi
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2923
2924
2925
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2928
2929
2930
2931
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934   withval="$with_tclconfig"
2935
2936   case $withval in
2937     yes)
2938       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940    { (exit 1); exit 1; }; }
2941       ;;
2942     no)
2943       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945    { (exit 1); exit 1; }; }
2946       ;;
2947     *)
2948
2949       ;;
2950   esac
2951
2952 fi;
2953
2954
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2957
2958
2959
2960
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963   withval="$with_tkconfig"
2964
2965   case $withval in
2966     yes)
2967       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969    { (exit 1); exit 1; }; }
2970       ;;
2971     no)
2972       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976     *)
2977
2978       ;;
2979   esac
2980
2981 fi;
2982
2983
2984 #
2985 # Optionally build Perl modules (PL/Perl)
2986 #
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2989
2990
2991
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994   withval="$with_perl"
2995
2996   case $withval in
2997     yes)
2998       :
2999       ;;
3000     no)
3001       :
3002       ;;
3003     *)
3004       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008   esac
3009
3010 else
3011   with_perl=no
3012
3013 fi;
3014
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3017
3018
3019 #
3020 # Optionally build Python interface module
3021 #
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3024
3025
3026
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029   withval="$with_python"
3030
3031   case $withval in
3032     yes)
3033       :
3034       ;;
3035     no)
3036       :
3037       ;;
3038     *)
3039       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041    { (exit 1); exit 1; }; }
3042       ;;
3043   esac
3044
3045 else
3046   with_python=no
3047
3048 fi;
3049
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3052
3053
3054 #
3055 # Optionally build the Java/JDBC tools
3056 #
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3059
3060
3061
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064   withval="$with_java"
3065
3066   case $withval in
3067     yes)
3068       echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070
3071   for ac_prog in jakarta-ant ant ant.sh ant.bat
3072 do
3073   # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   case $ANT in
3081   [\\/]* | ?:[\\/]*)
3082   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3083   ;;
3084   *)
3085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098
3099   ;;
3100 esac
3101 fi
3102 ANT=$ac_cv_path_ANT
3103
3104 if test -n "$ANT"; then
3105   echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3107 else
3108   echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3110 fi
3111
3112   test -n "$ANT" && break
3113 done
3114
3115
3116   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121
3122     cat > conftest.java << EOF
3123 public class conftest {
3124     int testmethod(int a, int b) {
3125         return a + b;
3126     }
3127 }
3128 EOF
3129
3130     cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132  <target name="conftest">
3133   <javac srcdir="." includes="conftest.java">
3134   </javac>
3135  </target>
3136 </project>
3137 EOF
3138
3139     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141   (eval $pgac_cmd) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }
3145     pgac_save_status=$?
3146     if test $? = 0 && test -f ./conftest.class ; then
3147       pgac_cv_prog_ant_works=yes
3148     else
3149       echo "configure: failed java program was:" >&5
3150       cat conftest.java >&5
3151       echo "configure: failed build file was:" >&5
3152       cat conftest.xml >&5
3153       pgac_cv_prog_ant_works=no
3154     fi
3155
3156     rm -f conftest* core core.* *.core
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3161
3162   if test "$pgac_cv_prog_ant_works" != yes; then
3163     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165    { (exit 1); exit 1; }; }
3166   fi
3167
3168
3169 if test -z "$ANT"; then
3170   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181       ;;
3182     no)
3183       echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185       ;;
3186     *)
3187       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189    { (exit 1); exit 1; }; }
3190       ;;
3191   esac
3192
3193 else
3194   with_java=no
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi;
3198
3199
3200
3201
3202 #
3203 # Kerberos 4
3204 #
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3207
3208
3209
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212   withval="$with_krb4"
3213
3214   case $withval in
3215     yes)
3216       krb4_prefix=/usr/athena
3217       ;;
3218     no)
3219       :
3220       ;;
3221     *)
3222       with_krb4=yes
3223 krb4_prefix=$withval
3224       ;;
3225   esac
3226
3227 else
3228   with_krb4=no
3229 fi;
3230
3231
3232 if test "$with_krb4" = yes; then
3233
3234   echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3236
3237 cat >>confdefs.h <<\_ACEOF
3238 #define KRB4 1
3239 _ACEOF
3240
3241
3242   if test -d "$krb4_prefix/include"; then
3243     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244   fi
3245   if test -d "$krb4_prefix/lib"; then
3246     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3247   fi
3248
3249   krb_srvtab="/etc/srvtab"
3250
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 fi
3255
3256
3257
3258
3259
3260 #
3261 # Kerberos 5
3262 #
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3265
3266
3267
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270   withval="$with_krb5"
3271
3272   case $withval in
3273     yes)
3274       krb5_prefix=/usr/athena
3275       ;;
3276     no)
3277       :
3278       ;;
3279     *)
3280       with_krb5=yes
3281 krb5_prefix=$withval
3282       ;;
3283   esac
3284
3285 else
3286   with_krb5=no
3287 fi;
3288
3289
3290 if test "$with_krb5" = yes; then
3291
3292   echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define KRB5 1
3297 _ACEOF
3298
3299
3300   if test -d "$krb5_prefix/include"; then
3301     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302   fi
3303   if test -d "$krb5_prefix/lib"; then
3304     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3305   fi
3306
3307   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3308
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314
3315
3316
3317
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326
3327
3328 #
3329 # Kerberos configuration parameters
3330 #
3331
3332
3333
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336   withval="$with_krb_srvnam"
3337
3338   case $withval in
3339     yes)
3340       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344     no)
3345       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347    { (exit 1); exit 1; }; }
3348       ;;
3349     *)
3350
3351       ;;
3352   esac
3353
3354 else
3355   with_krb_srvnam="postgres"
3356 fi;
3357
3358
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3361 _ACEOF
3362
3363
3364
3365 #
3366 # PAM
3367 #
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3370
3371
3372
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3375   withval="$with_pam"
3376
3377   case $withval in
3378     yes)
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_PAM 1
3382 _ACEOF
3383
3384       ;;
3385     no)
3386       :
3387       ;;
3388     *)
3389       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391    { (exit 1); exit 1; }; }
3392       ;;
3393   esac
3394
3395 else
3396   with_pam=no
3397
3398 fi;
3399
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3402
3403
3404
3405 #
3406 # Rendezvous
3407 #
3408 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3409 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3410
3411
3412
3413 # Check whether --with-rendezvous or --without-rendezvous was given.
3414 if test "${with_rendezvous+set}" = set; then
3415   withval="$with_rendezvous"
3416
3417   case $withval in
3418     yes)
3419
3420 cat >>confdefs.h <<\_ACEOF
3421 #define USE_RENDEZVOUS 1
3422 _ACEOF
3423
3424       ;;
3425     no)
3426       :
3427       ;;
3428     *)
3429       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3430 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3431    { (exit 1); exit 1; }; }
3432       ;;
3433   esac
3434
3435 else
3436   with_rendezvous=no
3437
3438 fi;
3439
3440 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3441 echo "${ECHO_T}$with_rendezvous" >&6
3442
3443
3444
3445 #
3446 # OpenSSL
3447 #
3448
3449
3450
3451 # Check whether --with-openssl or --without-openssl was given.
3452 if test "${with_openssl+set}" = set; then
3453   withval="$with_openssl"
3454
3455   case $withval in
3456     yes)
3457       openssl_prefix=/usr/local/ssl
3458       ;;
3459     no)
3460       :
3461       ;;
3462     *)
3463       with_openssl=yes
3464 openssl_prefix=$withval
3465       ;;
3466   esac
3467
3468 else
3469   with_openssl=no
3470 fi;
3471
3472
3473 if test "$with_openssl" = yes; then
3474
3475   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3476 echo "${ECHO_T}building with OpenSSL support" >&6
3477
3478 cat >>confdefs.h <<\_ACEOF
3479 #define USE_SSL 1
3480 _ACEOF
3481
3482
3483   if test -d "${openssl_prefix}/include" ; then
3484     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3485   fi
3486   if test -d "${openssl_prefix}/lib" ; then
3487     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3488   fi
3489
3490 fi
3491
3492
3493
3494
3495
3496 #
3497 # Readline
3498 #
3499
3500
3501
3502 # Check whether --with-readline or --without-readline was given.
3503 if test "${with_readline+set}" = set; then
3504   withval="$with_readline"
3505
3506   case $withval in
3507     yes)
3508       :
3509       ;;
3510     no)
3511       :
3512       ;;
3513     *)
3514       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3515 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3516    { (exit 1); exit 1; }; }
3517       ;;
3518   esac
3519
3520 else
3521   with_readline=yes
3522
3523 fi;
3524
3525
3526 #
3527 # Zlib
3528 #
3529
3530
3531
3532 # Check whether --with-zlib or --without-zlib was given.
3533 if test "${with_zlib+set}" = set; then
3534   withval="$with_zlib"
3535
3536   case $withval in
3537     yes)
3538       :
3539       ;;
3540     no)
3541       :
3542       ;;
3543     *)
3544       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3545 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3546    { (exit 1); exit 1; }; }
3547       ;;
3548   esac
3549
3550 else
3551   with_zlib=yes
3552
3553 fi;
3554
3555
3556
3557 #
3558 # Elf
3559 #
3560
3561 # Assume system is ELF if it predefines __ELF__ as 1,
3562 # otherwise believe host_os based default.
3563 case $host_os in
3564     freebsd1*|freebsd2*) elf=no;;
3565     freebsd3*|freebsd4*) elf=yes;;
3566 esac
3567
3568
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3572 #if __ELF__
3573   yes
3574 #endif
3575
3576 _ACEOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578   egrep "yes" >/dev/null 2>&1; then
3579   ELF_SYS=true
3580 else
3581   if test "X$elf" = "Xyes" ; then
3582   ELF_SYS=true
3583 else
3584   ELF_SYS=
3585 fi
3586 fi
3587 rm -f conftest*
3588
3589
3590
3591 #
3592 # Assignments
3593 #
3594
3595 CPPFLAGS="$CPPFLAGS $INCLUDES"
3596 LDFLAGS="$LDFLAGS $LIBDIRS"
3597
3598 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3599 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3600 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3601 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3602
3603
3604 for ac_prog in gawk mawk nawk awk
3605 do
3606   # Extract the first word of "$ac_prog", so it can be a program name with args.
3607 set dummy $ac_prog; ac_word=$2
3608 echo "$as_me:$LINENO: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_prog_AWK+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   if test -n "$AWK"; then
3614   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619   IFS=$as_save_IFS
3620   test -z "$as_dir" && as_dir=.
3621   for ac_exec_ext in '' $ac_executable_extensions; do
3622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623     ac_cv_prog_AWK="$ac_prog"
3624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625     break 2
3626   fi
3627 done
3628 done
3629
3630 fi
3631 fi
3632 AWK=$ac_cv_prog_AWK
3633 if test -n "$AWK"; then
3634   echo "$as_me:$LINENO: result: $AWK" >&5
3635 echo "${ECHO_T}$AWK" >&6
3636 else
3637   echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3639 fi
3640
3641   test -n "$AWK" && break
3642 done
3643
3644 echo "$as_me:$LINENO: checking for flex" >&5
3645 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3646 if test "${pgac_cv_path_flex+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   # Let the user override the test
3650 if test -n "$FLEX"; then
3651   pgac_cv_path_flex=$FLEX
3652 else
3653   pgac_save_IFS=$IFS
3654   IFS=:
3655   for pgac_dir in $PATH; do
3656     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3657       pgac_dir=`pwd`
3658     fi
3659     for pgac_prog in flex lex; do
3660       pgac_candidate="$pgac_dir/$pgac_prog"
3661       if test -f "$pgac_candidate" \
3662         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3663       then
3664         echo '%%'  > conftest.l
3665         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3666           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3667             pgac_broken_flex=$pgac_candidate
3668             continue
3669           fi
3670
3671           pgac_cv_path_flex=$pgac_candidate
3672           break 2
3673         fi
3674       fi
3675     done
3676   done
3677   IFS=$pgac_save_IFS
3678   rm -f conftest.l
3679   : ${pgac_cv_path_flex=no}
3680 fi
3681
3682 fi
3683 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3684 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3685 if test x"$pgac_cv_path_flex" = x"no"; then
3686   if test -n "$pgac_broken_flex"; then
3687     { echo "$as_me:$LINENO: WARNING:
3688 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3689 *** should get version 2.5.4 or later." >&5
3690 echo "$as_me: WARNING:
3691 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3692 *** should get version 2.5.4 or later." >&2;}
3693   fi
3694
3695   { echo "$as_me:$LINENO: WARNING:
3696 *** Without Flex you will not be able to build PostgreSQL from CVS or
3697 *** change any of the scanner definition files.  You can obtain Flex from
3698 *** a GNU mirror site.  (If you are using the official distribution of
3699 *** PostgreSQL then you do not need to worry about this because the Flex
3700 *** output is pre-generated.)" >&5
3701 echo "$as_me: WARNING:
3702 *** Without Flex you will not be able to build PostgreSQL from CVS or
3703 *** change any of the scanner definition files.  You can obtain Flex from
3704 *** a GNU mirror site.  (If you are using the official distribution of
3705 *** PostgreSQL then you do not need to worry about this because the Flex
3706 *** output is pre-generated.)" >&2;}
3707 fi
3708
3709 if test x"$pgac_cv_path_flex" = x"no"; then
3710   FLEX=
3711 else
3712   FLEX=$pgac_cv_path_flex
3713 fi
3714
3715
3716
3717
3718 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3720 LN_S=$as_ln_s
3721 if test "$LN_S" = "ln -s"; then
3722   echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6
3724 else
3725   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3726 echo "${ECHO_T}no, using $LN_S" >&6
3727 fi
3728
3729
3730 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3731 if test "${with_gnu_ld+set}" = set; then
3732   withval="$with_gnu_ld"
3733   test "$withval" = no || with_gnu_ld=yes
3734 else
3735   with_gnu_ld=no
3736 fi;
3737 ac_prog=ld
3738 if test "$GCC" = yes; then
3739   # Check if gcc -print-prog-name=ld gives a path.
3740   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3741 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3742   case $host in
3743   *-*-mingw*)
3744     # gcc leaves a trailing carriage return which upsets mingw
3745     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3746   *)
3747     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3748   esac
3749   case "$ac_prog" in
3750     # Accept absolute paths.
3751     [\\/]* | [A-Za-z]:[\\/]*)
3752       re_direlt='/[^/][^/]*/\.\./'
3753       # Canonicalize the path of ld
3754       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3755       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3756         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3757       done
3758       test -z "$LD" && LD="$ac_prog"
3759       ;;
3760   "")
3761     # If it fails, then pretend we aren't using GCC.
3762     ac_prog=ld
3763     ;;
3764   *)
3765     # If it is relative, then search for the first ld in PATH.
3766     with_gnu_ld=unknown
3767     ;;
3768   esac
3769 elif test "$with_gnu_ld" = yes; then
3770   echo "$as_me:$LINENO: checking for GNU ld" >&5
3771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3772 else
3773   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3775 fi
3776 if test "${ac_cv_path_LD+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   if test -z "$LD"; then
3780   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3781   for ac_dir in $PATH; do
3782     test -z "$ac_dir" && ac_dir=.
3783     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3784       ac_cv_path_LD="$ac_dir/$ac_prog"
3785       # Check to see if the program is GNU ld.  I'd rather use --version,
3786       # but apparently some GNU ld's only accept -v.
3787       # Break only if it was the GNU/non-GNU ld that we prefer.
3788       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3789         test "$with_gnu_ld" != no && break
3790       else
3791         test "$with_gnu_ld" != yes && break
3792       fi
3793     fi
3794   done
3795   IFS="$ac_save_ifs"
3796 else
3797   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3798 fi
3799 fi
3800
3801 LD="$ac_cv_path_LD"
3802 if test -n "$LD"; then
3803   echo "$as_me:$LINENO: result: $LD" >&5
3804 echo "${ECHO_T}$LD" >&6
3805 else
3806   echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3808 fi
3809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3811    { (exit 1); exit 1; }; }
3812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3814 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3818 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3819   ac_cv_prog_gnu_ld=yes
3820 else
3821   ac_cv_prog_gnu_ld=no
3822 fi
3823 fi
3824 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3825 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3826 with_gnu_ld=$ac_cv_prog_gnu_ld
3827
3828
3829
3830
3831 case $host_os in sysv5*)
3832   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3833 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3834 if test "${pgac_cv_prog_ld_R+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837
3838     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3839     cat >conftest.$ac_ext <<_ACEOF
3840 #line $LINENO "configure"
3841 #include "confdefs.h"
3842
3843 #ifdef F77_DUMMY_MAIN
3844 #  ifdef __cplusplus
3845      extern "C"
3846 #  endif
3847    int F77_DUMMY_MAIN() { return 1; }
3848 #endif
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859   (eval $ac_link) 2>&5
3860   ac_status=$?
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); } &&
3863          { ac_try='test -s conftest$ac_exeext'
3864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865   (eval $ac_try) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); }; }; then
3869   pgac_cv_prog_ld_R=yes
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 pgac_cv_prog_ld_R=no
3874 fi
3875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3876     LDFLAGS=$pgac_save_LDFLAGS
3877
3878 fi
3879 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3880 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3881   ld_R_works=$pgac_cv_prog_ld_R
3882
3883 esac
3884 if test -n "$ac_tool_prefix"; then
3885   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if test -n "$RANLIB"; then
3893   ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 fi
3910 fi
3911 RANLIB=$ac_cv_prog_RANLIB
3912 if test -n "$RANLIB"; then
3913   echo "$as_me:$LINENO: result: $RANLIB" >&5
3914 echo "${ECHO_T}$RANLIB" >&6
3915 else
3916   echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3918 fi
3919
3920 fi
3921 if test -z "$ac_cv_prog_RANLIB"; then
3922   ac_ct_RANLIB=$RANLIB
3923   # Extract the first word of "ranlib", so it can be a program name with args.
3924 set dummy ranlib; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   if test -n "$ac_ct_RANLIB"; then
3931   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938   for ac_exec_ext in '' $ac_executable_extensions; do
3939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940     ac_cv_prog_ac_ct_RANLIB="ranlib"
3941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942     break 2
3943   fi
3944 done
3945 done
3946
3947   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3948 fi
3949 fi
3950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3951 if test -n "$ac_ct_RANLIB"; then
3952   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3953 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3954 else
3955   echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3957 fi
3958
3959   RANLIB=$ac_ct_RANLIB
3960 else
3961   RANLIB="$ac_cv_prog_RANLIB"
3962 fi
3963
3964 for ac_prog in lorder
3965 do
3966   # Extract the first word of "$ac_prog", so it can be a program name with args.
3967 set dummy $ac_prog; 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_prog_LORDER+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   if test -n "$LORDER"; then
3974   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983     ac_cv_prog_LORDER="$ac_prog"
3984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985     break 2
3986   fi
3987 done
3988 done
3989
3990 fi
3991 fi
3992 LORDER=$ac_cv_prog_LORDER
3993 if test -n "$LORDER"; then
3994   echo "$as_me:$LINENO: result: $LORDER" >&5
3995 echo "${ECHO_T}$LORDER" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001   test -n "$LORDER" && break
4002 done
4003
4004 # Extract the first word of "tar", so it can be a program name with args.
4005 set dummy tar; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_path_TAR+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   case $TAR in
4012   [\\/]* | ?:[\\/]*)
4013   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4014   ;;
4015   *)
4016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   for ac_exec_ext in '' $ac_executable_extensions; do
4022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028 done
4029
4030   ;;
4031 esac
4032 fi
4033 TAR=$ac_cv_path_TAR
4034
4035 if test -n "$TAR"; then
4036   echo "$as_me:$LINENO: result: $TAR" >&5
4037 echo "${ECHO_T}$TAR" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043
4044   if test -n "$ac_tool_prefix"; then
4045   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -n "$STRIP"; then
4053   ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 fi
4070 fi
4071 STRIP=$ac_cv_prog_STRIP
4072 if test -n "$STRIP"; then
4073   echo "$as_me:$LINENO: result: $STRIP" >&5
4074 echo "${ECHO_T}$STRIP" >&6
4075 else
4076   echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080 fi
4081 if test -z "$ac_cv_prog_STRIP"; then
4082   ac_ct_STRIP=$STRIP
4083   # Extract the first word of "strip", so it can be a program name with args.
4084 set dummy strip; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$ac_ct_STRIP"; then
4091   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_ac_ct_STRIP="strip"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4108 fi
4109 fi
4110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4111 if test -n "$ac_ct_STRIP"; then
4112   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4113 echo "${ECHO_T}$ac_ct_STRIP" >&6
4114 else
4115   echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117 fi
4118
4119   STRIP=$ac_ct_STRIP
4120 else
4121   STRIP="$ac_cv_prog_STRIP"
4122 fi
4123
4124
4125   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4126 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4127   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4128     STRIP_STATIC_LIB="$STRIP -x"
4129     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4130     echo "$as_me:$LINENO: result: yes" >&5
4131 echo "${ECHO_T}yes" >&6
4132   else
4133     STRIP_STATIC_LIB=:
4134     STRIP_SHARED_LIB=:
4135     echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137   fi
4138
4139
4140
4141
4142 for ac_prog in 'bison -y'
4143 do
4144   # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_YACC+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$YACC"; then
4152   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_YACC="$ac_prog"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167
4168 fi
4169 fi
4170 YACC=$ac_cv_prog_YACC
4171 if test -n "$YACC"; then
4172   echo "$as_me:$LINENO: result: $YACC" >&5
4173 echo "${ECHO_T}$YACC" >&6
4174 else
4175   echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4177 fi
4178
4179   test -n "$YACC" && break
4180 done
4181
4182
4183 if test "$YACC"; then
4184   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4185     { echo "$as_me:$LINENO: WARNING:
4186 *** The installed version of Bison is too old.  PostgreSQL needs
4187 *** Bison version 1.875 or later." >&5
4188 echo "$as_me: WARNING:
4189 *** The installed version of Bison is too old.  PostgreSQL needs
4190 *** Bison version 1.875 or later." >&2;}
4191   fi
4192 fi
4193
4194 if test -z "$YACC"; then
4195   { echo "$as_me:$LINENO: WARNING:
4196 *** Without Bison you will not be able to build PostgreSQL from CVS or
4197 *** change any of the parser definition files.  You can obtain Bison from
4198 *** a GNU mirror site.  (If you are using the official distribution of
4199 *** PostgreSQL then you do not need to worry about this because the Bison
4200 *** output is pre-generated.)  To use a different yacc program (possible,
4201 *** but not recommended), set the environment variable YACC before running
4202 *** 'configure'." >&5
4203 echo "$as_me: WARNING:
4204 *** Without Bison you will not be able to build PostgreSQL from CVS or
4205 *** change any of the parser definition files.  You can obtain Bison from
4206 *** a GNU mirror site.  (If you are using the official distribution of
4207 *** PostgreSQL then you do not need to worry about this because the Bison
4208 *** output is pre-generated.)  To use a different yacc program (possible,
4209 *** but not recommended), set the environment variable YACC before running
4210 *** 'configure'." >&2;}
4211 fi
4212
4213
4214 # Extract the first word of "perl", so it can be a program name with args.
4215 set dummy perl; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_path_PERL+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   case $PERL in
4222   [\\/]* | ?:[\\/]*)
4223   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4224   ;;
4225   *)
4226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231   for ac_exec_ext in '' $ac_executable_extensions; do
4232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238 done
4239
4240   ;;
4241 esac
4242 fi
4243 PERL=$ac_cv_path_PERL
4244
4245 if test -n "$PERL"; then
4246   echo "$as_me:$LINENO: result: $PERL" >&5
4247 echo "${ECHO_T}$PERL" >&6
4248 else
4249   echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4251 fi
4252
4253 if test "$with_perl" = yes; then
4254
4255 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4256 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4257 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4258 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4259 echo "${ECHO_T}$perl_archlibexp" >&6
4260 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4261 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4262 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4263 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4264 echo "${ECHO_T}$perl_privlibexp" >&6
4265 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4266 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4267 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4268 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4269 echo "${ECHO_T}$perl_useshrplib" >&6
4270
4271 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4272 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4273 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4274 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4275 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4276 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4277 echo "${ECHO_T}$perl_embed_ldflags" >&6
4278 fi
4279
4280 if test "$with_python" = yes; then
4281   # Extract the first word of "python", so it can be a program name with args.
4282 set dummy python; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_PYTHON+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   case $PYTHON in
4289   [\\/]* | ?:[\\/]*)
4290   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4291   ;;
4292   *)
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306
4307   ;;
4308 esac
4309 fi
4310 PYTHON=$ac_cv_path_PYTHON
4311
4312 if test -n "$PYTHON"; then
4313   echo "$as_me:$LINENO: result: $PYTHON" >&5
4314 echo "${ECHO_T}$PYTHON" >&6
4315 else
4316   echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4318 fi
4319
4320 if test x"$PYTHON" = x""; then
4321   { { echo "$as_me:$LINENO: error: Python not found" >&5
4322 echo "$as_me: error: Python not found" >&2;}
4323    { (exit 1); exit 1; }; }
4324 fi
4325
4326
4327 echo "$as_me:$LINENO: checking Python installation directories" >&5
4328 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4329 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4330 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4331 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4332 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4333 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4334 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4335 python_includespec="-I${python_prefix}/include/python${python_version}"
4336 if test "$python_prefix" != "$python_execprefix"; then
4337   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4338 fi
4339
4340 # This should be enough of a message.
4341 if test "$python_prefix" != "$python_execprefix"; then
4342   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4343 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4344 else
4345   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4346 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4347 fi
4348
4349
4350
4351
4352
4353 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4354 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4355
4356 if test ! -f "$python_configdir/Makefile"; then
4357   echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4359   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4360 echo "$as_me: error: Python Makefile not found" >&2;}
4361    { (exit 1); exit 1; }; }
4362 fi
4363
4364 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4365 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4366 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4367 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4368 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4369
4370 pgac_tab="      " # tab character
4371 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"`
4372
4373 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4374 echo "${ECHO_T}${python_libspec}" >&6
4375
4376
4377 fi
4378
4379
4380 ##
4381 ## Libraries
4382 ##
4383
4384 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4385 then
4386
4387 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4388 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4389 if test "${ac_cv_lib_bsd_main+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   ac_check_lib_save_LIBS=$LIBS
4393 LIBS="-lbsd  $LIBS"
4394 cat >conftest.$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4396 #include "confdefs.h"
4397
4398
4399 #ifdef F77_DUMMY_MAIN
4400 #  ifdef __cplusplus
4401      extern "C"
4402 #  endif
4403    int F77_DUMMY_MAIN() { return 1; }
4404 #endif
4405 int
4406 main ()
4407 {
4408 main ();
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415   (eval $ac_link) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); } &&
4419          { ac_try='test -s conftest$ac_exeext'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; }; then
4425   ac_cv_lib_bsd_main=yes
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 ac_cv_lib_bsd_main=no
4430 fi
4431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4432 LIBS=$ac_check_lib_save_LIBS
4433 fi
4434 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4435 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4436 if test $ac_cv_lib_bsd_main = yes; then
4437   cat >>confdefs.h <<_ACEOF
4438 #define HAVE_LIBBSD 1
4439 _ACEOF
4440
4441   LIBS="-lbsd $LIBS"
4442
4443 fi
4444
4445 fi
4446
4447 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4448 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4449 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   ac_check_lib_save_LIBS=$LIBS
4453 LIBS="-lutil  $LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 #include "confdefs.h"
4457
4458 /* Override any gcc2 internal prototype to avoid an error.  */
4459 #ifdef __cplusplus
4460 extern "C"
4461 #endif
4462 /* We use char because int might match the return type of a gcc2
4463    builtin and then its argument prototype would still apply.  */
4464 char setproctitle ();
4465 #ifdef F77_DUMMY_MAIN
4466 #  ifdef __cplusplus
4467      extern "C"
4468 #  endif
4469    int F77_DUMMY_MAIN() { return 1; }
4470 #endif
4471 int
4472 main ()
4473 {
4474 setproctitle ();
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext conftest$ac_exeext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481   (eval $ac_link) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } &&
4485          { ac_try='test -s conftest$ac_exeext'
4486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487   (eval $ac_try) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; }; then
4491   ac_cv_lib_util_setproctitle=yes
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 ac_cv_lib_util_setproctitle=no
4496 fi
4497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4499 fi
4500 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4501 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4502 if test $ac_cv_lib_util_setproctitle = yes; then
4503   cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBUTIL 1
4505 _ACEOF
4506
4507   LIBS="-lutil $LIBS"
4508
4509 fi
4510
4511
4512 echo "$as_me:$LINENO: checking for main in -lm" >&5
4513 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4514 if test "${ac_cv_lib_m_main+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   ac_check_lib_save_LIBS=$LIBS
4518 LIBS="-lm  $LIBS"
4519 cat >conftest.$ac_ext <<_ACEOF
4520 #line $LINENO "configure"
4521 #include "confdefs.h"
4522
4523
4524 #ifdef F77_DUMMY_MAIN
4525 #  ifdef __cplusplus
4526      extern "C"
4527 #  endif
4528    int F77_DUMMY_MAIN() { return 1; }
4529 #endif
4530 int
4531 main ()
4532 {
4533 main ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540   (eval $ac_link) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } &&
4544          { ac_try='test -s conftest$ac_exeext'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; }; then
4550   ac_cv_lib_m_main=yes
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 ac_cv_lib_m_main=no
4555 fi
4556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4557 LIBS=$ac_check_lib_save_LIBS
4558 fi
4559 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4560 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4561 if test $ac_cv_lib_m_main = yes; then
4562   cat >>confdefs.h <<_ACEOF
4563 #define HAVE_LIBM 1
4564 _ACEOF
4565
4566   LIBS="-lm $LIBS"
4567
4568 fi
4569
4570
4571 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4572 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4573 if test "${ac_cv_lib_dl_main+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   ac_check_lib_save_LIBS=$LIBS
4577 LIBS="-ldl  $LIBS"
4578 cat >conftest.$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 #include "confdefs.h"
4581
4582
4583 #ifdef F77_DUMMY_MAIN
4584 #  ifdef __cplusplus
4585      extern "C"
4586 #  endif
4587    int F77_DUMMY_MAIN() { return 1; }
4588 #endif
4589 int
4590 main ()
4591 {
4592 main ();
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599   (eval $ac_link) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } &&
4603          { ac_try='test -s conftest$ac_exeext'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   ac_cv_lib_dl_main=yes
4610 else
4611   echo "$as_me: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 ac_cv_lib_dl_main=no
4614 fi
4615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4616 LIBS=$ac_check_lib_save_LIBS
4617 fi
4618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4619 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4620 if test $ac_cv_lib_dl_main = yes; then
4621   cat >>confdefs.h <<_ACEOF
4622 #define HAVE_LIBDL 1
4623 _ACEOF
4624
4625   LIBS="-ldl $LIBS"
4626
4627 fi
4628
4629
4630 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4631 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4632 if test "${ac_cv_lib_nsl_main+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   ac_check_lib_save_LIBS=$LIBS
4636 LIBS="-lnsl  $LIBS"
4637 cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 #include "confdefs.h"
4640
4641
4642 #ifdef F77_DUMMY_MAIN
4643 #  ifdef __cplusplus
4644      extern "C"
4645 #  endif
4646    int F77_DUMMY_MAIN() { return 1; }
4647 #endif
4648 int
4649 main ()
4650 {
4651 main ();
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658   (eval $ac_link) 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } &&
4662          { ac_try='test -s conftest$ac_exeext'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; }; then
4668   ac_cv_lib_nsl_main=yes
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672 ac_cv_lib_nsl_main=no
4673 fi
4674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4675 LIBS=$ac_check_lib_save_LIBS
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4678 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4679 if test $ac_cv_lib_nsl_main = yes; then
4680   cat >>confdefs.h <<_ACEOF
4681 #define HAVE_LIBNSL 1
4682 _ACEOF
4683
4684   LIBS="-lnsl $LIBS"
4685
4686 fi
4687
4688
4689 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4690 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4691 if test "${ac_cv_lib_socket_main+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   ac_check_lib_save_LIBS=$LIBS
4695 LIBS="-lsocket  $LIBS"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699
4700
4701 #ifdef F77_DUMMY_MAIN
4702 #  ifdef __cplusplus
4703      extern "C"
4704 #  endif
4705    int F77_DUMMY_MAIN() { return 1; }
4706 #endif
4707 int
4708 main ()
4709 {
4710 main ();
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext conftest$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717   (eval $ac_link) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } &&
4721          { ac_try='test -s conftest$ac_exeext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   ac_cv_lib_socket_main=yes
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 ac_cv_lib_socket_main=no
4732 fi
4733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4735 fi
4736 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4737 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4738 if test $ac_cv_lib_socket_main = yes; then
4739   cat >>confdefs.h <<_ACEOF
4740 #define HAVE_LIBSOCKET 1
4741 _ACEOF
4742
4743   LIBS="-lsocket $LIBS"
4744
4745 fi
4746
4747
4748 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4749 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4750 if test "${ac_cv_lib_ipc_main+set}" = set; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-lipc  $LIBS"
4755 cat >conftest.$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4757 #include "confdefs.h"
4758
4759
4760 #ifdef F77_DUMMY_MAIN
4761 #  ifdef __cplusplus
4762      extern "C"
4763 #  endif
4764    int F77_DUMMY_MAIN() { return 1; }
4765 #endif
4766 int
4767 main ()
4768 {
4769 main ();
4770   ;
4771   return 0;
4772 }
4773 _ACEOF
4774 rm -f conftest.$ac_objext conftest$ac_exeext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776   (eval $ac_link) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -s conftest$ac_exeext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   ac_cv_lib_ipc_main=yes
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 ac_cv_lib_ipc_main=no
4791 fi
4792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4793 LIBS=$ac_check_lib_save_LIBS
4794 fi
4795 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4796 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4797 if test $ac_cv_lib_ipc_main = yes; then
4798   cat >>confdefs.h <<_ACEOF
4799 #define HAVE_LIBIPC 1
4800 _ACEOF
4801
4802   LIBS="-lipc $LIBS"
4803
4804 fi
4805
4806
4807 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4808 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4809 if test "${ac_cv_lib_IPC_main+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   ac_check_lib_save_LIBS=$LIBS
4813 LIBS="-lIPC  $LIBS"
4814 cat >conftest.$ac_ext <<_ACEOF
4815 #line $LINENO "configure"
4816 #include "confdefs.h"
4817
4818
4819 #ifdef F77_DUMMY_MAIN
4820 #  ifdef __cplusplus
4821      extern "C"
4822 #  endif
4823    int F77_DUMMY_MAIN() { return 1; }
4824 #endif
4825 int
4826 main ()
4827 {
4828 main ();
4829   ;
4830   return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext conftest$ac_exeext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835   (eval $ac_link) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } &&
4839          { ac_try='test -s conftest$ac_exeext'
4840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841   (eval $ac_try) 2>&5
4842   ac_status=$?
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); }; }; then
4845   ac_cv_lib_IPC_main=yes
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 ac_cv_lib_IPC_main=no
4850 fi
4851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4852 LIBS=$ac_check_lib_save_LIBS
4853 fi
4854 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4855 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4856 if test $ac_cv_lib_IPC_main = yes; then
4857   cat >>confdefs.h <<_ACEOF
4858 #define HAVE_LIBIPC 1
4859 _ACEOF
4860
4861   LIBS="-lIPC $LIBS"
4862
4863 fi
4864
4865
4866 echo "$as_me:$LINENO: checking for main in -llc" >&5
4867 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4868 if test "${ac_cv_lib_lc_main+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   ac_check_lib_save_LIBS=$LIBS
4872 LIBS="-llc  $LIBS"
4873 cat >conftest.$ac_ext <<_ACEOF
4874 #line $LINENO "configure"
4875 #include "confdefs.h"
4876
4877
4878 #ifdef F77_DUMMY_MAIN
4879 #  ifdef __cplusplus
4880      extern "C"
4881 #  endif
4882    int F77_DUMMY_MAIN() { return 1; }
4883 #endif
4884 int
4885 main ()
4886 {
4887 main ();
4888   ;
4889   return 0;
4890 }
4891 _ACEOF
4892 rm -f conftest.$ac_objext conftest$ac_exeext
4893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4894   (eval $ac_link) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } &&
4898          { ac_try='test -s conftest$ac_exeext'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   ac_cv_lib_lc_main=yes
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_cv_lib_lc_main=no
4909 fi
4910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4911 LIBS=$ac_check_lib_save_LIBS
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4914 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4915 if test $ac_cv_lib_lc_main = yes; then
4916   cat >>confdefs.h <<_ACEOF
4917 #define HAVE_LIBLC 1
4918 _ACEOF
4919
4920   LIBS="-llc $LIBS"
4921
4922 fi
4923
4924
4925 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4926 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4927 if test "${ac_cv_lib_dld_main+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-ldld  $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 #include "confdefs.h"
4935
4936
4937 #ifdef F77_DUMMY_MAIN
4938 #  ifdef __cplusplus
4939      extern "C"
4940 #  endif
4941    int F77_DUMMY_MAIN() { return 1; }
4942 #endif
4943 int
4944 main ()
4945 {
4946 main ();
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953   (eval $ac_link) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } &&
4957          { ac_try='test -s conftest$ac_exeext'
4958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959   (eval $ac_try) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); }; }; then
4963   ac_cv_lib_dld_main=yes
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 ac_cv_lib_dld_main=no
4968 fi
4969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4971 fi
4972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4973 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4974 if test $ac_cv_lib_dld_main = yes; then
4975   cat >>confdefs.h <<_ACEOF
4976 #define HAVE_LIBDLD 1
4977 _ACEOF
4978
4979   LIBS="-ldld $LIBS"
4980
4981 fi
4982
4983
4984 echo "$as_me:$LINENO: checking for main in -lld" >&5
4985 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4986 if test "${ac_cv_lib_ld_main+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   ac_check_lib_save_LIBS=$LIBS
4990 LIBS="-lld  $LIBS"
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #line $LINENO "configure"
4993 #include "confdefs.h"
4994
4995
4996 #ifdef F77_DUMMY_MAIN
4997 #  ifdef __cplusplus
4998      extern "C"
4999 #  endif
5000    int F77_DUMMY_MAIN() { return 1; }
5001 #endif
5002 int
5003 main ()
5004 {
5005 main ();
5006   ;
5007   return 0;
5008 }
5009 _ACEOF
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5012   (eval $ac_link) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } &&
5016          { ac_try='test -s conftest$ac_exeext'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   ac_cv_lib_ld_main=yes
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 ac_cv_lib_ld_main=no
5027 fi
5028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS
5030 fi
5031 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5032 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5033 if test $ac_cv_lib_ld_main = yes; then
5034   cat >>confdefs.h <<_ACEOF
5035 #define HAVE_LIBLD 1
5036 _ACEOF
5037
5038   LIBS="-lld $LIBS"
5039
5040 fi
5041
5042
5043 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5044 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5045 if test "${ac_cv_lib_compat_main+set}" = set; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   ac_check_lib_save_LIBS=$LIBS
5049 LIBS="-lcompat  $LIBS"
5050 cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 #include "confdefs.h"
5053
5054
5055 #ifdef F77_DUMMY_MAIN
5056 #  ifdef __cplusplus
5057      extern "C"
5058 #  endif
5059    int F77_DUMMY_MAIN() { return 1; }
5060 #endif
5061 int
5062 main ()
5063 {
5064 main ();
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071   (eval $ac_link) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } &&
5075          { ac_try='test -s conftest$ac_exeext'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; }; then
5081   ac_cv_lib_compat_main=yes
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_cv_lib_compat_main=no
5086 fi
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5089 fi
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5091 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5092 if test $ac_cv_lib_compat_main = yes; then
5093   cat >>confdefs.h <<_ACEOF
5094 #define HAVE_LIBCOMPAT 1
5095 _ACEOF
5096
5097   LIBS="-lcompat $LIBS"
5098
5099 fi
5100
5101
5102 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5103 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5104 if test "${ac_cv_lib_BSD_main+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lBSD  $LIBS"
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5112
5113
5114 #ifdef F77_DUMMY_MAIN
5115 #  ifdef __cplusplus
5116      extern "C"
5117 #  endif
5118    int F77_DUMMY_MAIN() { return 1; }
5119 #endif
5120 int
5121 main ()
5122 {
5123 main ();
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 rm -f conftest.$ac_objext conftest$ac_exeext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130   (eval $ac_link) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } &&
5134          { ac_try='test -s conftest$ac_exeext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   ac_cv_lib_BSD_main=yes
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5144 ac_cv_lib_BSD_main=no
5145 fi
5146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5147 LIBS=$ac_check_lib_save_LIBS
5148 fi
5149 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5150 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5151 if test $ac_cv_lib_BSD_main = yes; then
5152   cat >>confdefs.h <<_ACEOF
5153 #define HAVE_LIBBSD 1
5154 _ACEOF
5155
5156   LIBS="-lBSD $LIBS"
5157
5158 fi
5159
5160
5161 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5162 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5163 if test "${ac_cv_lib_gen_main+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   ac_check_lib_save_LIBS=$LIBS
5167 LIBS="-lgen  $LIBS"
5168 cat >conftest.$ac_ext <<_ACEOF
5169 #line $LINENO "configure"
5170 #include "confdefs.h"
5171
5172
5173 #ifdef F77_DUMMY_MAIN
5174 #  ifdef __cplusplus
5175      extern "C"
5176 #  endif
5177    int F77_DUMMY_MAIN() { return 1; }
5178 #endif
5179 int
5180 main ()
5181 {
5182 main ();
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189   (eval $ac_link) 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); } &&
5193          { ac_try='test -s conftest$ac_exeext'
5194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195   (eval $ac_try) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; }; then
5199   ac_cv_lib_gen_main=yes
5200 else
5201   echo "$as_me: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 ac_cv_lib_gen_main=no
5204 fi
5205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5206 LIBS=$ac_check_lib_save_LIBS
5207 fi
5208 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5209 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5210 if test $ac_cv_lib_gen_main = yes; then
5211   cat >>confdefs.h <<_ACEOF
5212 #define HAVE_LIBGEN 1
5213 _ACEOF
5214
5215   LIBS="-lgen $LIBS"
5216
5217 fi
5218
5219
5220 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5221 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5222 if test "${ac_cv_lib_PW_main+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lPW  $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5229 #include "confdefs.h"
5230
5231
5232 #ifdef F77_DUMMY_MAIN
5233 #  ifdef __cplusplus
5234      extern "C"
5235 #  endif
5236    int F77_DUMMY_MAIN() { return 1; }
5237 #endif
5238 int
5239 main ()
5240 {
5241 main ();
5242   ;
5243   return 0;
5244 }
5245 _ACEOF
5246 rm -f conftest.$ac_objext conftest$ac_exeext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5248   (eval $ac_link) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } &&
5252          { ac_try='test -s conftest$ac_exeext'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; }; then
5258   ac_cv_lib_PW_main=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 ac_cv_lib_PW_main=no
5263 fi
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5266 fi
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5268 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5269 if test $ac_cv_lib_PW_main = yes; then
5270   cat >>confdefs.h <<_ACEOF
5271 #define HAVE_LIBPW 1
5272 _ACEOF
5273
5274   LIBS="-lPW $LIBS"
5275
5276 fi
5277
5278
5279 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5280 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5281 if test "${ac_cv_lib_resolv_main+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   ac_check_lib_save_LIBS=$LIBS
5285 LIBS="-lresolv  $LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 #include "confdefs.h"
5289
5290
5291 #ifdef F77_DUMMY_MAIN
5292 #  ifdef __cplusplus
5293      extern "C"
5294 #  endif
5295    int F77_DUMMY_MAIN() { return 1; }
5296 #endif
5297 int
5298 main ()
5299 {
5300 main ();
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307   (eval $ac_link) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } &&
5311          { ac_try='test -s conftest$ac_exeext'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   ac_cv_lib_resolv_main=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5321 ac_cv_lib_resolv_main=no
5322 fi
5323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5325 fi
5326 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5327 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5328 if test $ac_cv_lib_resolv_main = yes; then
5329   cat >>confdefs.h <<_ACEOF
5330 #define HAVE_LIBRESOLV 1
5331 _ACEOF
5332
5333   LIBS="-lresolv $LIBS"
5334
5335 fi
5336
5337
5338 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5339 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5340 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   ac_check_lib_save_LIBS=$LIBS
5344 LIBS="-lwsock32  $LIBS"
5345 cat >conftest.$ac_ext <<_ACEOF
5346 #line $LINENO "configure"
5347 #include "confdefs.h"
5348
5349
5350 #ifdef F77_DUMMY_MAIN
5351 #  ifdef __cplusplus
5352      extern "C"
5353 #  endif
5354    int F77_DUMMY_MAIN() { return 1; }
5355 #endif
5356 int
5357 main ()
5358 {
5359 main ();
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 rm -f conftest.$ac_objext conftest$ac_exeext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366   (eval $ac_link) 2>&5
5367   ac_status=$?
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } &&
5370          { ac_try='test -s conftest$ac_exeext'
5371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372   (eval $ac_try) 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; }; then
5376   ac_cv_lib_wsock32_main=yes
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5380 ac_cv_lib_wsock32_main=no
5381 fi
5382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5383 LIBS=$ac_check_lib_save_LIBS
5384 fi
5385 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5386 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5387 if test $ac_cv_lib_wsock32_main = yes; then
5388   cat >>confdefs.h <<_ACEOF
5389 #define HAVE_LIBWSOCK32 1
5390 _ACEOF
5391
5392   LIBS="-lwsock32 $LIBS"
5393
5394 fi
5395
5396 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5397 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5398 if test "${ac_cv_search_getopt_long+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   ac_func_search_save_LIBS=$LIBS
5402 ac_cv_search_getopt_long=no
5403 cat >conftest.$ac_ext <<_ACEOF
5404 #line $LINENO "configure"
5405 #include "confdefs.h"
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char getopt_long ();
5414 #ifdef F77_DUMMY_MAIN
5415 #  ifdef __cplusplus
5416      extern "C"
5417 #  endif
5418    int F77_DUMMY_MAIN() { return 1; }
5419 #endif
5420 int
5421 main ()
5422 {
5423 getopt_long ();
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430   (eval $ac_link) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } &&
5434          { ac_try='test -s conftest$ac_exeext'
5435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436   (eval $ac_try) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; }; then
5440   ac_cv_search_getopt_long="none required"
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 fi
5445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 if test "$ac_cv_search_getopt_long" = no; then
5447   for ac_lib in getopt gnugetopt; do
5448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5449     cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5452
5453 /* Override any gcc2 internal prototype to avoid an error.  */
5454 #ifdef __cplusplus
5455 extern "C"
5456 #endif
5457 /* We use char because int might match the return type of a gcc2
5458    builtin and then its argument prototype would still apply.  */
5459 char getopt_long ();
5460 #ifdef F77_DUMMY_MAIN
5461 #  ifdef __cplusplus
5462      extern "C"
5463 #  endif
5464    int F77_DUMMY_MAIN() { return 1; }
5465 #endif
5466 int
5467 main ()
5468 {
5469 getopt_long ();
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext conftest$ac_exeext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5476   (eval $ac_link) 2>&5
5477   ac_status=$?
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); } &&
5480          { ac_try='test -s conftest$ac_exeext'
5481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482   (eval $ac_try) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); }; }; then
5486   ac_cv_search_getopt_long="-l$ac_lib"
5487 break
5488 else
5489   echo "$as_me: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5491 fi
5492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5493   done
5494 fi
5495 LIBS=$ac_func_search_save_LIBS
5496 fi
5497 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5498 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5499 if test "$ac_cv_search_getopt_long" != no; then
5500   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5501
5502 fi
5503
5504 # QNX:
5505
5506 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5507 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5508 if test "${ac_cv_lib_unix_main+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   ac_check_lib_save_LIBS=$LIBS
5512 LIBS="-lunix  $LIBS"
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5515 #include "confdefs.h"
5516
5517
5518 #ifdef F77_DUMMY_MAIN
5519 #  ifdef __cplusplus
5520      extern "C"
5521 #  endif
5522    int F77_DUMMY_MAIN() { return 1; }
5523 #endif
5524 int
5525 main ()
5526 {
5527 main ();
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534   (eval $ac_link) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } &&
5538          { ac_try='test -s conftest$ac_exeext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   ac_cv_lib_unix_main=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 ac_cv_lib_unix_main=no
5549 fi
5550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5551 LIBS=$ac_check_lib_save_LIBS
5552 fi
5553 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5554 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5555 if test $ac_cv_lib_unix_main = yes; then
5556   cat >>confdefs.h <<_ACEOF
5557 #define HAVE_LIBUNIX 1
5558 _ACEOF
5559
5560   LIBS="-lunix $LIBS"
5561
5562 fi
5563
5564 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5565 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5566 if test "${ac_cv_search_crypt+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   ac_func_search_save_LIBS=$LIBS
5570 ac_cv_search_crypt=no
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 #include "confdefs.h"
5574
5575 /* Override any gcc2 internal prototype to avoid an error.  */
5576 #ifdef __cplusplus
5577 extern "C"
5578 #endif
5579 /* We use char because int might match the return type of a gcc2
5580    builtin and then its argument prototype would still apply.  */
5581 char crypt ();
5582 #ifdef F77_DUMMY_MAIN
5583 #  ifdef __cplusplus
5584      extern "C"
5585 #  endif
5586    int F77_DUMMY_MAIN() { return 1; }
5587 #endif
5588 int
5589 main ()
5590 {
5591 crypt ();
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598   (eval $ac_link) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } &&
5602          { ac_try='test -s conftest$ac_exeext'
5603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; }; then
5608   ac_cv_search_crypt="none required"
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5612 fi
5613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5614 if test "$ac_cv_search_crypt" = no; then
5615   for ac_lib in crypt; do
5616     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5617     cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 #include "confdefs.h"
5620
5621 /* Override any gcc2 internal prototype to avoid an error.  */
5622 #ifdef __cplusplus
5623 extern "C"
5624 #endif
5625 /* We use char because int might match the return type of a gcc2
5626    builtin and then its argument prototype would still apply.  */
5627 char crypt ();
5628 #ifdef F77_DUMMY_MAIN
5629 #  ifdef __cplusplus
5630      extern "C"
5631 #  endif
5632    int F77_DUMMY_MAIN() { return 1; }
5633 #endif
5634 int
5635 main ()
5636 {
5637 crypt ();
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644   (eval $ac_link) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } &&
5648          { ac_try='test -s conftest$ac_exeext'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; }; then
5654   ac_cv_search_crypt="-l$ac_lib"
5655 break
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5659 fi
5660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5661   done
5662 fi
5663 LIBS=$ac_func_search_save_LIBS
5664 fi
5665 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5666 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5667 if test "$ac_cv_search_crypt" != no; then
5668   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5669
5670 fi
5671
5672 # BeOS:
5673
5674 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5675 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5676 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   ac_check_lib_save_LIBS=$LIBS
5680 LIBS="-lbind  $LIBS"
5681 cat >conftest.$ac_ext <<_ACEOF
5682 #line $LINENO "configure"
5683 #include "confdefs.h"
5684
5685 /* Override any gcc2 internal prototype to avoid an error.  */
5686 #ifdef __cplusplus
5687 extern "C"
5688 #endif
5689 /* We use char because int might match the return type of a gcc2
5690    builtin and then its argument prototype would still apply.  */
5691 char __inet_ntoa ();
5692 #ifdef F77_DUMMY_MAIN
5693 #  ifdef __cplusplus
5694      extern "C"
5695 #  endif
5696    int F77_DUMMY_MAIN() { return 1; }
5697 #endif
5698 int
5699 main ()
5700 {
5701 __inet_ntoa ();
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708   (eval $ac_link) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } &&
5712          { ac_try='test -s conftest$ac_exeext'
5713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714   (eval $ac_try) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); }; }; then
5718   ac_cv_lib_bind___inet_ntoa=yes
5719 else
5720   echo "$as_me: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5722 ac_cv_lib_bind___inet_ntoa=no
5723 fi
5724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5725 LIBS=$ac_check_lib_save_LIBS
5726 fi
5727 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5728 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5729 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5730   cat >>confdefs.h <<_ACEOF
5731 #define HAVE_LIBBIND 1
5732 _ACEOF
5733
5734   LIBS="-lbind $LIBS"
5735
5736 fi
5737
5738 # Solaris:
5739 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5740 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5741 if test "${ac_cv_search_fdatasync+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   ac_func_search_save_LIBS=$LIBS
5745 ac_cv_search_fdatasync=no
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 #include "confdefs.h"
5749
5750 /* Override any gcc2 internal prototype to avoid an error.  */
5751 #ifdef __cplusplus
5752 extern "C"
5753 #endif
5754 /* We use char because int might match the return type of a gcc2
5755    builtin and then its argument prototype would still apply.  */
5756 char fdatasync ();
5757 #ifdef F77_DUMMY_MAIN
5758 #  ifdef __cplusplus
5759      extern "C"
5760 #  endif
5761    int F77_DUMMY_MAIN() { return 1; }
5762 #endif
5763 int
5764 main ()
5765 {
5766 fdatasync ();
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773   (eval $ac_link) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } &&
5777          { ac_try='test -s conftest$ac_exeext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_cv_search_fdatasync="none required"
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 fi
5788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 if test "$ac_cv_search_fdatasync" = no; then
5790   for ac_lib in rt posix4; do
5791     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5792     cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795
5796 /* Override any gcc2 internal prototype to avoid an error.  */
5797 #ifdef __cplusplus
5798 extern "C"
5799 #endif
5800 /* We use char because int might match the return type of a gcc2
5801    builtin and then its argument prototype would still apply.  */
5802 char fdatasync ();
5803 #ifdef F77_DUMMY_MAIN
5804 #  ifdef __cplusplus
5805      extern "C"
5806 #  endif
5807    int F77_DUMMY_MAIN() { return 1; }
5808 #endif
5809 int
5810 main ()
5811 {
5812 fdatasync ();
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819   (eval $ac_link) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -s conftest$ac_exeext'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; }; then
5829   ac_cv_search_fdatasync="-l$ac_lib"
5830 break
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 fi
5835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5836   done
5837 fi
5838 LIBS=$ac_func_search_save_LIBS
5839 fi
5840 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5841 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5842 if test "$ac_cv_search_fdatasync" != no; then
5843   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5844
5845 fi
5846
5847 # Cygwin:
5848
5849 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5850 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5851 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   ac_check_lib_save_LIBS=$LIBS
5855 LIBS="-lcygipc  $LIBS"
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 #include "confdefs.h"
5859
5860 /* Override any gcc2 internal prototype to avoid an error.  */
5861 #ifdef __cplusplus
5862 extern "C"
5863 #endif
5864 /* We use char because int might match the return type of a gcc2
5865    builtin and then its argument prototype would still apply.  */
5866 char shmget ();
5867 #ifdef F77_DUMMY_MAIN
5868 #  ifdef __cplusplus
5869      extern "C"
5870 #  endif
5871    int F77_DUMMY_MAIN() { return 1; }
5872 #endif
5873 int
5874 main ()
5875 {
5876 shmget ();
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5883   (eval $ac_link) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); } &&
5887          { ac_try='test -s conftest$ac_exeext'
5888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889   (eval $ac_try) 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; }; then
5893   ac_cv_lib_cygipc_shmget=yes
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 ac_cv_lib_cygipc_shmget=no
5898 fi
5899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5900 LIBS=$ac_check_lib_save_LIBS
5901 fi
5902 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5903 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5904 if test $ac_cv_lib_cygipc_shmget = yes; then
5905   cat >>confdefs.h <<_ACEOF
5906 #define HAVE_LIBCYGIPC 1
5907 _ACEOF
5908
5909   LIBS="-lcygipc $LIBS"
5910
5911 fi
5912
5913
5914 if test "$with_readline" = yes; then
5915
5916 echo "$as_me:$LINENO: checking for readline" >&5
5917 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5918
5919 if test "${pgac_cv_check_readline+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   pgac_cv_check_readline=no
5923 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5924   for pgac_rllib in -lreadline -ledit ; do
5925     pgac_save_LIBS=$LIBS
5926     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5927     cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 #include "confdefs.h"
5930
5931 /* Override any gcc2 internal prototype to avoid an error.  */
5932 #ifdef __cplusplus
5933 extern "C"
5934 #endif
5935 /* We use char because int might match the return type of a gcc2
5936    builtin and then its argument prototype would still apply.  */
5937 char readline ();
5938 #ifdef F77_DUMMY_MAIN
5939 #  ifdef __cplusplus
5940      extern "C"
5941 #  endif
5942    int F77_DUMMY_MAIN() { return 1; }
5943 #endif
5944 int
5945 main ()
5946 {
5947 readline ();
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } &&
5958          { ac_try='test -s conftest$ac_exeext'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; }; then
5964
5965       # NetBSD and OpenBSD have a broken linker that does not
5966       # recognize dependent libraries
5967       case $host_os in netbsd* | openbsd* )
5968         case $pgac_lib in
5969           *curses*) ;;
5970           *) pgac_lib=" -lcurses" ;;
5971         esac
5972       esac
5973
5974       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5975       break 2
5976
5977 else
5978   echo "$as_me: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5980 fi
5981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5982     LIBS=$pgac_save_LIBS
5983   done
5984 done
5985 LIBS=$pgac_save_LIBS
5986
5987 fi
5988
5989 if test "$pgac_cv_check_readline" != no ; then
5990
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_LIBREADLINE 1
5993 _ACEOF
5994
5995   LIBS="$pgac_cv_check_readline $LIBS"
5996   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5997 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5998 else
5999   echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6001 fi
6002   if test x"$pgac_cv_check_readline" = x"no"; then
6003     { { echo "$as_me:$LINENO: error: readline library not found
6004 If you have readline already installed, see config.log for details on the
6005 failure.  It is possible the compiler isn't looking in the proper directory.
6006 Use --without-readline to disable readline support." >&5
6007 echo "$as_me: error: readline library not found
6008 If you have readline already installed, see config.log for details on the
6009 failure.  It is possible the compiler isn't looking in the proper directory.
6010 Use --without-readline to disable readline support." >&2;}
6011    { (exit 1); exit 1; }; }
6012   fi
6013 fi
6014
6015 if test "$with_zlib" = yes; then
6016
6017 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6018 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6019 if test "${ac_cv_lib_z_inflate+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   ac_check_lib_save_LIBS=$LIBS
6023 LIBS="-lz  $LIBS"
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6027
6028 /* Override any gcc2 internal prototype to avoid an error.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 /* We use char because int might match the return type of a gcc2
6033    builtin and then its argument prototype would still apply.  */
6034 char inflate ();
6035 #ifdef F77_DUMMY_MAIN
6036 #  ifdef __cplusplus
6037      extern "C"
6038 #  endif
6039    int F77_DUMMY_MAIN() { return 1; }
6040 #endif
6041 int
6042 main ()
6043 {
6044 inflate ();
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051   (eval $ac_link) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } &&
6055          { ac_try='test -s conftest$ac_exeext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   ac_cv_lib_z_inflate=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_lib_z_inflate=no
6066 fi
6067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6069 fi
6070 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6071 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6072 if test $ac_cv_lib_z_inflate = yes; then
6073   cat >>confdefs.h <<_ACEOF
6074 #define HAVE_LIBZ 1
6075 _ACEOF
6076
6077   LIBS="-lz $LIBS"
6078
6079 else
6080   { { echo "$as_me:$LINENO: error: zlib library not found
6081 If you have zlib already installed, see config.log for details on the
6082 failure.  It is possible the compiler isn't looking in the proper directory.
6083 Use --without-zlib to disable zlib support." >&5
6084 echo "$as_me: error: zlib library not found
6085 If you have zlib already installed, see config.log for details on the
6086 failure.  It is possible the compiler isn't looking in the proper directory.
6087 Use --without-zlib to disable zlib support." >&2;}
6088    { (exit 1); exit 1; }; }
6089 fi
6090
6091 fi
6092
6093 if test "$with_krb4" = yes ; then
6094
6095 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6096 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6097 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   ac_check_lib_save_LIBS=$LIBS
6101 LIBS="-ldes  $LIBS"
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 #include "confdefs.h"
6105
6106 /* Override any gcc2 internal prototype to avoid an error.  */
6107 #ifdef __cplusplus
6108 extern "C"
6109 #endif
6110 /* We use char because int might match the return type of a gcc2
6111    builtin and then its argument prototype would still apply.  */
6112 char des_encrypt ();
6113 #ifdef F77_DUMMY_MAIN
6114 #  ifdef __cplusplus
6115      extern "C"
6116 #  endif
6117    int F77_DUMMY_MAIN() { return 1; }
6118 #endif
6119 int
6120 main ()
6121 {
6122 des_encrypt ();
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6129   (eval $ac_link) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -s conftest$ac_exeext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_lib_des_des_encrypt=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 ac_cv_lib_des_des_encrypt=no
6144 fi
6145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6146 LIBS=$ac_check_lib_save_LIBS
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6149 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6150 if test $ac_cv_lib_des_des_encrypt = yes; then
6151   cat >>confdefs.h <<_ACEOF
6152 #define HAVE_LIBDES 1
6153 _ACEOF
6154
6155   LIBS="-ldes $LIBS"
6156
6157 else
6158   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6159 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6160    { (exit 1); exit 1; }; }
6161 fi
6162
6163
6164 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6165 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6166 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   ac_check_lib_save_LIBS=$LIBS
6170 LIBS="-lkrb  $LIBS"
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 #include "confdefs.h"
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char krb_sendauth ();
6182 #ifdef F77_DUMMY_MAIN
6183 #  ifdef __cplusplus
6184      extern "C"
6185 #  endif
6186    int F77_DUMMY_MAIN() { return 1; }
6187 #endif
6188 int
6189 main ()
6190 {
6191 krb_sendauth ();
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198   (eval $ac_link) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } &&
6202          { ac_try='test -s conftest$ac_exeext'
6203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204   (eval $ac_try) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   ac_cv_lib_krb_krb_sendauth=yes
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 ac_cv_lib_krb_krb_sendauth=no
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6216 fi
6217 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6218 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6219 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6220   cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LIBKRB 1
6222 _ACEOF
6223
6224   LIBS="-lkrb $LIBS"
6225
6226 else
6227   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6228 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6229    { (exit 1); exit 1; }; }
6230 fi
6231
6232
6233 for ac_func in gethostname
6234 do
6235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6236 echo "$as_me:$LINENO: checking for $ac_func" >&5
6237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6238 if eval "test \"\${$as_ac_var+set}\" = set"; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   cat >conftest.$ac_ext <<_ACEOF
6242 #line $LINENO "configure"
6243 #include "confdefs.h"
6244 /* System header to define __stub macros and hopefully few prototypes,
6245     which can conflict with char $ac_func (); below.  */
6246 #include <assert.h>
6247 /* Override any gcc2 internal prototype to avoid an error.  */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 /* We use char because int might match the return type of a gcc2
6252    builtin and then its argument prototype would still apply.  */
6253 char $ac_func ();
6254 char (*f) ();
6255
6256 #ifdef F77_DUMMY_MAIN
6257 #  ifdef __cplusplus
6258      extern "C"
6259 #  endif
6260    int F77_DUMMY_MAIN() { return 1; }
6261 #endif
6262 int
6263 main ()
6264 {
6265 /* The GNU C library defines this for functions which it implements
6266     to always fail with ENOSYS.  Some functions are actually named
6267     something starting with __ and the normal name is an alias.  */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 choke me
6270 #else
6271 f = $ac_func;
6272 #endif
6273
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280   (eval $ac_link) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); } &&
6284          { ac_try='test -s conftest$ac_exeext'
6285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286   (eval $ac_try) 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); }; }; then
6290   eval "$as_ac_var=yes"
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6294 eval "$as_ac_var=no"
6295 fi
6296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6297 fi
6298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6300 if test `eval echo '${'$as_ac_var'}'` = yes; then
6301   cat >>confdefs.h <<_ACEOF
6302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6303 _ACEOF
6304
6305 else
6306   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6307 fi
6308 done
6309
6310
6311 fi
6312
6313 if test "$with_krb5" = yes ; then
6314   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6315 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6316 if test "${ac_cv_search_com_err+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   ac_func_search_save_LIBS=$LIBS
6320 ac_cv_search_com_err=no
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6323 #include "confdefs.h"
6324
6325 /* Override any gcc2 internal prototype to avoid an error.  */
6326 #ifdef __cplusplus
6327 extern "C"
6328 #endif
6329 /* We use char because int might match the return type of a gcc2
6330    builtin and then its argument prototype would still apply.  */
6331 char com_err ();
6332 #ifdef F77_DUMMY_MAIN
6333 #  ifdef __cplusplus
6334      extern "C"
6335 #  endif
6336    int F77_DUMMY_MAIN() { return 1; }
6337 #endif
6338 int
6339 main ()
6340 {
6341 com_err ();
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348   (eval $ac_link) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -s conftest$ac_exeext'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; }; then
6358   ac_cv_search_com_err="none required"
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 fi
6363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6364 if test "$ac_cv_search_com_err" = no; then
6365   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6367     cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6370
6371 /* Override any gcc2 internal prototype to avoid an error.  */
6372 #ifdef __cplusplus
6373 extern "C"
6374 #endif
6375 /* We use char because int might match the return type of a gcc2
6376    builtin and then its argument prototype would still apply.  */
6377 char com_err ();
6378 #ifdef F77_DUMMY_MAIN
6379 #  ifdef __cplusplus
6380      extern "C"
6381 #  endif
6382    int F77_DUMMY_MAIN() { return 1; }
6383 #endif
6384 int
6385 main ()
6386 {
6387 com_err ();
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394   (eval $ac_link) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -s conftest$ac_exeext'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   ac_cv_search_com_err="-l$ac_lib"
6405 break
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 fi
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411   done
6412 fi
6413 LIBS=$ac_func_search_save_LIBS
6414 fi
6415 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6416 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6417 if test "$ac_cv_search_com_err" != no; then
6418   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6419
6420 else
6421   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6422 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6423    { (exit 1); exit 1; }; }
6424 fi
6425
6426   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6427 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6428 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   ac_func_search_save_LIBS=$LIBS
6432 ac_cv_search_krb5_encrypt=no
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6435 #include "confdefs.h"
6436
6437 /* Override any gcc2 internal prototype to avoid an error.  */
6438 #ifdef __cplusplus
6439 extern "C"
6440 #endif
6441 /* We use char because int might match the return type of a gcc2
6442    builtin and then its argument prototype would still apply.  */
6443 char krb5_encrypt ();
6444 #ifdef F77_DUMMY_MAIN
6445 #  ifdef __cplusplus
6446      extern "C"
6447 #  endif
6448    int F77_DUMMY_MAIN() { return 1; }
6449 #endif
6450 int
6451 main ()
6452 {
6453 krb5_encrypt ();
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext conftest$ac_exeext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6460   (eval $ac_link) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } &&
6464          { ac_try='test -s conftest$ac_exeext'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; }; then
6470   ac_cv_search_krb5_encrypt="none required"
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 fi
6475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6476 if test "$ac_cv_search_krb5_encrypt" = no; then
6477   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6479     cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6481 #include "confdefs.h"
6482
6483 /* Override any gcc2 internal prototype to avoid an error.  */
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 /* We use char because int might match the return type of a gcc2
6488    builtin and then its argument prototype would still apply.  */
6489 char krb5_encrypt ();
6490 #ifdef F77_DUMMY_MAIN
6491 #  ifdef __cplusplus
6492      extern "C"
6493 #  endif
6494    int F77_DUMMY_MAIN() { return 1; }
6495 #endif
6496 int
6497 main ()
6498 {
6499 krb5_encrypt ();
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506   (eval $ac_link) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); } &&
6510          { ac_try='test -s conftest$ac_exeext'
6511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512   (eval $ac_try) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); }; }; then
6516   ac_cv_search_krb5_encrypt="-l$ac_lib"
6517 break
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6521 fi
6522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6523   done
6524 fi
6525 LIBS=$ac_func_search_save_LIBS
6526 fi
6527 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6528 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6529 if test "$ac_cv_search_krb5_encrypt" != no; then
6530   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6531
6532 else
6533   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6534 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6535    { (exit 1); exit 1; }; }
6536 fi
6537
6538   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6539 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6540 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   ac_func_search_save_LIBS=$LIBS
6544 ac_cv_search_krb5_sendauth=no
6545 cat >conftest.$ac_ext <<_ACEOF
6546 #line $LINENO "configure"
6547 #include "confdefs.h"
6548
6549 /* Override any gcc2 internal prototype to avoid an error.  */
6550 #ifdef __cplusplus
6551 extern "C"
6552 #endif
6553 /* We use char because int might match the return type of a gcc2
6554    builtin and then its argument prototype would still apply.  */
6555 char krb5_sendauth ();
6556 #ifdef F77_DUMMY_MAIN
6557 #  ifdef __cplusplus
6558      extern "C"
6559 #  endif
6560    int F77_DUMMY_MAIN() { return 1; }
6561 #endif
6562 int
6563 main ()
6564 {
6565 krb5_sendauth ();
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -s conftest$ac_exeext'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; }; then
6582   ac_cv_search_krb5_sendauth="none required"
6583 else
6584   echo "$as_me: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6586 fi
6587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6588 if test "$ac_cv_search_krb5_sendauth" = no; then
6589   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6591     cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6593 #include "confdefs.h"
6594
6595 /* Override any gcc2 internal prototype to avoid an error.  */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600    builtin and then its argument prototype would still apply.  */
6601 char krb5_sendauth ();
6602 #ifdef F77_DUMMY_MAIN
6603 #  ifdef __cplusplus
6604      extern "C"
6605 #  endif
6606    int F77_DUMMY_MAIN() { return 1; }
6607 #endif
6608 int
6609 main ()
6610 {
6611 krb5_sendauth ();
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618   (eval $ac_link) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } &&
6622          { ac_try='test -s conftest$ac_exeext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   ac_cv_search_krb5_sendauth="-l$ac_lib"
6629 break
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6633 fi
6634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6635   done
6636 fi
6637 LIBS=$ac_func_search_save_LIBS
6638 fi
6639 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6640 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6641 if test "$ac_cv_search_krb5_sendauth" != no; then
6642   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6643
6644 else
6645   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6646 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6647    { (exit 1); exit 1; }; }
6648 fi
6649
6650 fi
6651
6652 if test "$with_openssl" = yes ; then
6653
6654 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6655 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6656 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6657   echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659   ac_check_lib_save_LIBS=$LIBS
6660 LIBS="-lcrypto  $LIBS"
6661 cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664
6665 /* Override any gcc2 internal prototype to avoid an error.  */
6666 #ifdef __cplusplus
6667 extern "C"
6668 #endif
6669 /* We use char because int might match the return type of a gcc2
6670    builtin and then its argument prototype would still apply.  */
6671 char CRYPTO_new_ex_data ();
6672 #ifdef F77_DUMMY_MAIN
6673 #  ifdef __cplusplus
6674      extern "C"
6675 #  endif
6676    int F77_DUMMY_MAIN() { return 1; }
6677 #endif
6678 int
6679 main ()
6680 {
6681 CRYPTO_new_ex_data ();
6682   ;
6683   return 0;
6684 }
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688   (eval $ac_link) 2>&5
6689   ac_status=$?
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } &&
6692          { ac_try='test -s conftest$ac_exeext'
6693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694   (eval $ac_try) 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); }; }; then
6698   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6703 fi
6704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6706 fi
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6708 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6709 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBCRYPTO 1
6712 _ACEOF
6713
6714   LIBS="-lcrypto $LIBS"
6715
6716 else
6717   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6718 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6719    { (exit 1); exit 1; }; }
6720 fi
6721
6722
6723 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6724 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6725 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   ac_check_lib_save_LIBS=$LIBS
6729 LIBS="-lssl  $LIBS"
6730 cat >conftest.$ac_ext <<_ACEOF
6731 #line $LINENO "configure"
6732 #include "confdefs.h"
6733
6734 /* Override any gcc2 internal prototype to avoid an error.  */
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 /* We use char because int might match the return type of a gcc2
6739    builtin and then its argument prototype would still apply.  */
6740 char SSL_library_init ();
6741 #ifdef F77_DUMMY_MAIN
6742 #  ifdef __cplusplus
6743      extern "C"
6744 #  endif
6745    int F77_DUMMY_MAIN() { return 1; }
6746 #endif
6747 int
6748 main ()
6749 {
6750 SSL_library_init ();
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757   (eval $ac_link) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); } &&
6761          { ac_try='test -s conftest$ac_exeext'
6762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763   (eval $ac_try) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; }; then
6767   ac_cv_lib_ssl_SSL_library_init=yes
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6771 ac_cv_lib_ssl_SSL_library_init=no
6772 fi
6773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6774 LIBS=$ac_check_lib_save_LIBS
6775 fi
6776 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6777 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6778 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6779   cat >>confdefs.h <<_ACEOF
6780 #define HAVE_LIBSSL 1
6781 _ACEOF
6782
6783   LIBS="-lssl $LIBS"
6784
6785 else
6786   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6787 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6788    { (exit 1); exit 1; }; }
6789 fi
6790
6791 fi
6792
6793 if test "$with_pam" = yes ; then
6794
6795 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6796 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6797 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   ac_check_lib_save_LIBS=$LIBS
6801 LIBS="-lpam  $LIBS"
6802 cat >conftest.$ac_ext <<_ACEOF
6803 #line $LINENO "configure"
6804 #include "confdefs.h"
6805
6806 /* Override any gcc2 internal prototype to avoid an error.  */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811    builtin and then its argument prototype would still apply.  */
6812 char pam_start ();
6813 #ifdef F77_DUMMY_MAIN
6814 #  ifdef __cplusplus
6815      extern "C"
6816 #  endif
6817    int F77_DUMMY_MAIN() { return 1; }
6818 #endif
6819 int
6820 main ()
6821 {
6822 pam_start ();
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829   (eval $ac_link) 2>&5
6830   ac_status=$?
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); } &&
6833          { ac_try='test -s conftest$ac_exeext'
6834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835   (eval $ac_try) 2>&5
6836   ac_status=$?
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); }; }; then
6839   ac_cv_lib_pam_pam_start=yes
6840 else
6841   echo "$as_me: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6843 ac_cv_lib_pam_pam_start=no
6844 fi
6845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846 LIBS=$ac_check_lib_save_LIBS
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6849 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6850 if test $ac_cv_lib_pam_pam_start = yes; then
6851   cat >>confdefs.h <<_ACEOF
6852 #define HAVE_LIBPAM 1
6853 _ACEOF
6854
6855   LIBS="-lpam $LIBS"
6856
6857 else
6858   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6859 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6860    { (exit 1); exit 1; }; }
6861 fi
6862
6863 fi
6864
6865
6866 ##
6867 ## Header files
6868 ##
6869
6870 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6872 if test "${ac_cv_header_stdc+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   cat >conftest.$ac_ext <<_ACEOF
6876 #line $LINENO "configure"
6877 #include "confdefs.h"
6878 #include <stdlib.h>
6879 #include <stdarg.h>
6880 #include <string.h>
6881 #include <float.h>
6882
6883 _ACEOF
6884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6886   ac_status=$?
6887   egrep -v '^ *\+' conftest.er1 >conftest.err
6888   rm -f conftest.er1
6889   cat conftest.err >&5
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } >/dev/null; then
6892   if test -s conftest.err; then
6893     ac_cpp_err=$ac_c_preproc_warn_flag
6894   else
6895     ac_cpp_err=
6896   fi
6897 else
6898   ac_cpp_err=yes
6899 fi
6900 if test -z "$ac_cpp_err"; then
6901   ac_cv_header_stdc=yes
6902 else
6903   echo "$as_me: failed program was:" >&5
6904   cat conftest.$ac_ext >&5
6905   ac_cv_header_stdc=no
6906 fi
6907 rm -f conftest.err conftest.$ac_ext
6908
6909 if test $ac_cv_header_stdc = yes; then
6910   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6911   cat >conftest.$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6913 #include "confdefs.h"
6914 #include <string.h>
6915
6916 _ACEOF
6917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6918   egrep "memchr" >/dev/null 2>&1; then
6919   :
6920 else
6921   ac_cv_header_stdc=no
6922 fi
6923 rm -f conftest*
6924
6925 fi
6926
6927 if test $ac_cv_header_stdc = yes; then
6928   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6929   cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 #include "confdefs.h"
6932 #include <stdlib.h>
6933
6934 _ACEOF
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936   egrep "free" >/dev/null 2>&1; then
6937   :
6938 else
6939   ac_cv_header_stdc=no
6940 fi
6941 rm -f conftest*
6942
6943 fi
6944
6945 if test $ac_cv_header_stdc = yes; then
6946   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6947   if test "$cross_compiling" = yes; then
6948   :
6949 else
6950   cat >conftest.$ac_ext <<_ACEOF
6951 #line $LINENO "configure"
6952 #include "confdefs.h"
6953 #include <ctype.h>
6954 #if ((' ' & 0x0FF) == 0x020)
6955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6957 #else
6958 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6959                      || ('j' <= (c) && (c) <= 'r') \
6960                      || ('s' <= (c) && (c) <= 'z'))
6961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6962 #endif
6963
6964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6965 int
6966 main ()
6967 {
6968   int i;
6969   for (i = 0; i < 256; i++)
6970     if (XOR (islower (i), ISLOWER (i))
6971         || toupper (i) != TOUPPER (i))
6972       exit(2);
6973   exit (0);
6974 }
6975 _ACEOF
6976 rm -f conftest$ac_exeext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978   (eval $ac_link) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983   (eval $ac_try) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }; }; then
6987   :
6988 else
6989   echo "$as_me: program exited with status $ac_status" >&5
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 ( exit $ac_status )
6993 ac_cv_header_stdc=no
6994 fi
6995 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 fi
6998 fi
6999 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7000 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7001 if test $ac_cv_header_stdc = yes; then
7002
7003 cat >>confdefs.h <<\_ACEOF
7004 #define STDC_HEADERS 1
7005 _ACEOF
7006
7007 fi
7008
7009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7020                   inttypes.h stdint.h unistd.h
7021 do
7022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7023 echo "$as_me:$LINENO: checking for $ac_header" >&5
7024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   cat >conftest.$ac_ext <<_ACEOF
7029 #line $LINENO "configure"
7030 #include "confdefs.h"
7031 $ac_includes_default
7032
7033 #include <$ac_header>
7034 _ACEOF
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037   (eval $ac_compile) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); } &&
7041          { ac_try='test -s conftest.$ac_objext'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; }; then
7047   eval "$as_ac_Header=yes"
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7051 eval "$as_ac_Header=no"
7052 fi
7053 rm -f conftest.$ac_objext conftest.$ac_ext
7054 fi
7055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7058   cat >>confdefs.h <<_ACEOF
7059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7060 _ACEOF
7061
7062 fi
7063
7064 done
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088 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
7089 do
7090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092   echo "$as_me:$LINENO: checking for $ac_header" >&5
7093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 fi
7097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7099 else
7100   # Is the header compilable?
7101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7105 #include "confdefs.h"
7106 $ac_includes_default
7107 #include <$ac_header>
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111   (eval $ac_compile) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); } &&
7115          { ac_try='test -s conftest.$ac_objext'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; }; then
7121   ac_header_compiler=yes
7122 else
7123   echo "$as_me: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 ac_header_compiler=no
7126 fi
7127 rm -f conftest.$ac_objext conftest.$ac_ext
7128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7129 echo "${ECHO_T}$ac_header_compiler" >&6
7130
7131 # Is the header present?
7132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7135 #line $LINENO "configure"
7136 #include "confdefs.h"
7137 #include <$ac_header>
7138 _ACEOF
7139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7141   ac_status=$?
7142   egrep -v '^ *\+' conftest.er1 >conftest.err
7143   rm -f conftest.er1
7144   cat conftest.err >&5
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); } >/dev/null; then
7147   if test -s conftest.err; then
7148     ac_cpp_err=$ac_c_preproc_warn_flag
7149   else
7150     ac_cpp_err=
7151   fi
7152 else
7153   ac_cpp_err=yes
7154 fi
7155 if test -z "$ac_cpp_err"; then
7156   ac_header_preproc=yes
7157 else
7158   echo "$as_me: failed program was:" >&5
7159   cat conftest.$ac_ext >&5
7160   ac_header_preproc=no
7161 fi
7162 rm -f conftest.err conftest.$ac_ext
7163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7164 echo "${ECHO_T}$ac_header_preproc" >&6
7165
7166 # So?  What about this header?
7167 case $ac_header_compiler:$ac_header_preproc in
7168   yes:no )
7169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7173   no:yes )
7174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7176     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7180 esac
7181 echo "$as_me:$LINENO: checking for $ac_header" >&5
7182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   eval "$as_ac_Header=$ac_header_preproc"
7187 fi
7188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7190
7191 fi
7192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7193   cat >>confdefs.h <<_ACEOF
7194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7195 _ACEOF
7196
7197 fi
7198
7199 done
7200
7201
7202 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7203 # netinet/in.h is included first.
7204
7205 for ac_header in netinet/in.h
7206 do
7207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7209   echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 fi
7214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7216 else
7217   # Is the header compilable?
7218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7221 #line $LINENO "configure"
7222 #include "confdefs.h"
7223 $ac_includes_default
7224 #include <$ac_header>
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228   (eval $ac_compile) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); } &&
7232          { ac_try='test -s conftest.$ac_objext'
7233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234   (eval $ac_try) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; }; then
7238   ac_header_compiler=yes
7239 else
7240   echo "$as_me: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 ac_header_compiler=no
7243 fi
7244 rm -f conftest.$ac_objext conftest.$ac_ext
7245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7246 echo "${ECHO_T}$ac_header_compiler" >&6
7247
7248 # Is the header present?
7249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7251 cat >conftest.$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 #include <$ac_header>
7255 _ACEOF
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258   ac_status=$?
7259   egrep -v '^ *\+' conftest.er1 >conftest.err
7260   rm -f conftest.er1
7261   cat conftest.err >&5
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } >/dev/null; then
7264   if test -s conftest.err; then
7265     ac_cpp_err=$ac_c_preproc_warn_flag
7266   else
7267     ac_cpp_err=
7268   fi
7269 else
7270   ac_cpp_err=yes
7271 fi
7272 if test -z "$ac_cpp_err"; then
7273   ac_header_preproc=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276   cat conftest.$ac_ext >&5
7277   ac_header_preproc=no
7278 fi
7279 rm -f conftest.err conftest.$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7281 echo "${ECHO_T}$ac_header_preproc" >&6
7282
7283 # So?  What about this header?
7284 case $ac_header_compiler:$ac_header_preproc in
7285   yes:no )
7286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7290   no:yes )
7291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7293     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7297 esac
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   eval "$as_ac_Header=$ac_header_preproc"
7304 fi
7305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7307
7308 fi
7309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7310   cat >>confdefs.h <<_ACEOF
7311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7312 _ACEOF
7313
7314 fi
7315
7316 done
7317
7318
7319 for ac_header in netinet/tcp.h
7320 do
7321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7322 echo "$as_me:$LINENO: checking for $ac_header" >&5
7323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   cat >conftest.$ac_ext <<_ACEOF
7328 #line $LINENO "configure"
7329 #include "confdefs.h"
7330 $ac_includes_default
7331 #ifdef HAVE_NETINET_IN_H
7332 #include <netinet/in.h>
7333 #endif
7334
7335
7336 #include <$ac_header>
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } &&
7344          { ac_try='test -s conftest.$ac_objext'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; }; then
7350   eval "$as_ac_Header=yes"
7351 else
7352   echo "$as_me: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7354 eval "$as_ac_Header=no"
7355 fi
7356 rm -f conftest.$ac_objext conftest.$ac_ext
7357 fi
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7361   cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363 _ACEOF
7364
7365 fi
7366
7367 done
7368
7369
7370 if test "$with_readline" = yes; then
7371
7372 for ac_header in readline/readline.h
7373 do
7374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376   echo "$as_me:$LINENO: checking for $ac_header" >&5
7377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 fi
7381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7383 else
7384   # Is the header compilable?
7385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7387 cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 $ac_includes_default
7391 #include <$ac_header>
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395   (eval $ac_compile) 2>&5
7396   ac_status=$?
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); } &&
7399          { ac_try='test -s conftest.$ac_objext'
7400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401   (eval $ac_try) 2>&5
7402   ac_status=$?
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); }; }; then
7405   ac_header_compiler=yes
7406 else
7407   echo "$as_me: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7409 ac_header_compiler=no
7410 fi
7411 rm -f conftest.$ac_objext conftest.$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7413 echo "${ECHO_T}$ac_header_compiler" >&6
7414
7415 # Is the header present?
7416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7418 cat >conftest.$ac_ext <<_ACEOF
7419 #line $LINENO "configure"
7420 #include "confdefs.h"
7421 #include <$ac_header>
7422 _ACEOF
7423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7425   ac_status=$?
7426   egrep -v '^ *\+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } >/dev/null; then
7431   if test -s conftest.err; then
7432     ac_cpp_err=$ac_c_preproc_warn_flag
7433   else
7434     ac_cpp_err=
7435   fi
7436 else
7437   ac_cpp_err=yes
7438 fi
7439 if test -z "$ac_cpp_err"; then
7440   ac_header_preproc=yes
7441 else
7442   echo "$as_me: failed program was:" >&5
7443   cat conftest.$ac_ext >&5
7444   ac_header_preproc=no
7445 fi
7446 rm -f conftest.err conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7448 echo "${ECHO_T}$ac_header_preproc" >&6
7449
7450 # So?  What about this header?
7451 case $ac_header_compiler:$ac_header_preproc in
7452   yes:no )
7453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7457   no:yes )
7458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7460     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7464 esac
7465 echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   eval "$as_ac_Header=$ac_header_preproc"
7471 fi
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7474
7475 fi
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477   cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479 _ACEOF
7480
7481 else
7482
7483 for ac_header in editline/readline.h
7484 do
7485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7487   echo "$as_me:$LINENO: checking for $ac_header" >&5
7488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 fi
7492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7494 else
7495   # Is the header compilable?
7496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7498 cat >conftest.$ac_ext <<_ACEOF
7499 #line $LINENO "configure"
7500 #include "confdefs.h"
7501 $ac_includes_default
7502 #include <$ac_header>
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506   (eval $ac_compile) 2>&5
7507   ac_status=$?
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); } &&
7510          { ac_try='test -s conftest.$ac_objext'
7511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512   (eval $ac_try) 2>&5
7513   ac_status=$?
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); }; }; then
7516   ac_header_compiler=yes
7517 else
7518   echo "$as_me: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7520 ac_header_compiler=no
7521 fi
7522 rm -f conftest.$ac_objext conftest.$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7524 echo "${ECHO_T}$ac_header_compiler" >&6
7525
7526 # Is the header present?
7527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7530 #line $LINENO "configure"
7531 #include "confdefs.h"
7532 #include <$ac_header>
7533 _ACEOF
7534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7536   ac_status=$?
7537   egrep -v '^ *\+' conftest.er1 >conftest.err
7538   rm -f conftest.er1
7539   cat conftest.err >&5
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } >/dev/null; then
7542   if test -s conftest.err; then
7543     ac_cpp_err=$ac_c_preproc_warn_flag
7544   else
7545     ac_cpp_err=
7546   fi
7547 else
7548   ac_cpp_err=yes
7549 fi
7550 if test -z "$ac_cpp_err"; then
7551   ac_header_preproc=yes
7552 else
7553   echo "$as_me: failed program was:" >&5
7554   cat conftest.$ac_ext >&5
7555   ac_header_preproc=no
7556 fi
7557 rm -f conftest.err conftest.$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7559 echo "${ECHO_T}$ac_header_preproc" >&6
7560
7561 # So?  What about this header?
7562 case $ac_header_compiler:$ac_header_preproc in
7563   yes:no )
7564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7568   no:yes )
7569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7571     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7575 esac
7576 echo "$as_me:$LINENO: checking for $ac_header" >&5
7577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   eval "$as_ac_Header=$ac_header_preproc"
7582 fi
7583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7585
7586 fi
7587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7588   cat >>confdefs.h <<_ACEOF
7589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7590 _ACEOF
7591
7592 else
7593
7594 for ac_header in readline.h
7595 do
7596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598   echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 fi
7603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7605 else
7606   # Is the header compilable?
7607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7609 cat >conftest.$ac_ext <<_ACEOF
7610 #line $LINENO "configure"
7611 #include "confdefs.h"
7612 $ac_includes_default
7613 #include <$ac_header>
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617   (eval $ac_compile) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } &&
7621          { ac_try='test -s conftest.$ac_objext'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; }; then
7627   ac_header_compiler=yes
7628 else
7629   echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 ac_header_compiler=no
7632 fi
7633 rm -f conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7636
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7642 #include "confdefs.h"
7643 #include <$ac_header>
7644 _ACEOF
7645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7647   ac_status=$?
7648   egrep -v '^ *\+' conftest.er1 >conftest.err
7649   rm -f conftest.er1
7650   cat conftest.err >&5
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); } >/dev/null; then
7653   if test -s conftest.err; then
7654     ac_cpp_err=$ac_c_preproc_warn_flag
7655   else
7656     ac_cpp_err=
7657   fi
7658 else
7659   ac_cpp_err=yes
7660 fi
7661 if test -z "$ac_cpp_err"; then
7662   ac_header_preproc=yes
7663 else
7664   echo "$as_me: failed program was:" >&5
7665   cat conftest.$ac_ext >&5
7666   ac_header_preproc=no
7667 fi
7668 rm -f conftest.err conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7670 echo "${ECHO_T}$ac_header_preproc" >&6
7671
7672 # So?  What about this header?
7673 case $ac_header_compiler:$ac_header_preproc in
7674   yes:no )
7675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7679   no:yes )
7680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7686 esac
7687 echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7690   echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692   eval "$as_ac_Header=$ac_header_preproc"
7693 fi
7694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7696
7697 fi
7698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7699   cat >>confdefs.h <<_ACEOF
7700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7701 _ACEOF
7702
7703 else
7704   { { echo "$as_me:$LINENO: error: readline header not found
7705 If you have readline already installed, see config.log for details on the
7706 failure.  It is possible the compiler isn't looking in the proper directory.
7707 Use --without-readline to disable readline support." >&5
7708 echo "$as_me: error: readline header not found
7709 If you have readline already installed, see config.log for details on the
7710 failure.  It is possible the compiler isn't looking in the proper directory.
7711 Use --without-readline to disable readline support." >&2;}
7712    { (exit 1); exit 1; }; }
7713 fi
7714
7715 done
7716
7717 fi
7718
7719 done
7720
7721 fi
7722
7723 done
7724
7725
7726 for ac_header in readline/history.h
7727 do
7728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7730   echo "$as_me:$LINENO: checking for $ac_header" >&5
7731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 fi
7735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7737 else
7738   # Is the header compilable?
7739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7741 cat >conftest.$ac_ext <<_ACEOF
7742 #line $LINENO "configure"
7743 #include "confdefs.h"
7744 $ac_includes_default
7745 #include <$ac_header>
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749   (eval $ac_compile) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -s conftest.$ac_objext'
7754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755   (eval $ac_try) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }; }; then
7759   ac_header_compiler=yes
7760 else
7761   echo "$as_me: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7763 ac_header_compiler=no
7764 fi
7765 rm -f conftest.$ac_objext conftest.$ac_ext
7766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767 echo "${ECHO_T}$ac_header_compiler" >&6
7768
7769 # Is the header present?
7770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7772 cat >conftest.$ac_ext <<_ACEOF
7773 #line $LINENO "configure"
7774 #include "confdefs.h"
7775 #include <$ac_header>
7776 _ACEOF
7777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7779   ac_status=$?
7780   egrep -v '^ *\+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } >/dev/null; then
7785   if test -s conftest.err; then
7786     ac_cpp_err=$ac_c_preproc_warn_flag
7787   else
7788     ac_cpp_err=
7789   fi
7790 else
7791   ac_cpp_err=yes
7792 fi
7793 if test -z "$ac_cpp_err"; then
7794   ac_header_preproc=yes
7795 else
7796   echo "$as_me: failed program was:" >&5
7797   cat conftest.$ac_ext >&5
7798   ac_header_preproc=no
7799 fi
7800 rm -f conftest.err conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802 echo "${ECHO_T}$ac_header_preproc" >&6
7803
7804 # So?  What about this header?
7805 case $ac_header_compiler:$ac_header_preproc in
7806   yes:no )
7807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7811   no:yes )
7812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7814     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7818 esac
7819 echo "$as_me:$LINENO: checking for $ac_header" >&5
7820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   eval "$as_ac_Header=$ac_header_preproc"
7825 fi
7826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7828
7829 fi
7830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7831   cat >>confdefs.h <<_ACEOF
7832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7833 _ACEOF
7834
7835 else
7836
7837 for ac_header in editline/history.h
7838 do
7839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7841   echo "$as_me:$LINENO: checking for $ac_header" >&5
7842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 fi
7846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7848 else
7849   # Is the header compilable?
7850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7855 $ac_includes_default
7856 #include <$ac_header>
7857 _ACEOF
7858 rm -f conftest.$ac_objext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860   (eval $ac_compile) 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } &&
7864          { ac_try='test -s conftest.$ac_objext'
7865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866   (eval $ac_try) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); }; }; then
7870   ac_header_compiler=yes
7871 else
7872   echo "$as_me: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 ac_header_compiler=no
7875 fi
7876 rm -f conftest.$ac_objext conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7878 echo "${ECHO_T}$ac_header_compiler" >&6
7879
7880 # Is the header present?
7881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 #include <$ac_header>
7887 _ACEOF
7888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7890   ac_status=$?
7891   egrep -v '^ *\+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } >/dev/null; then
7896   if test -s conftest.err; then
7897     ac_cpp_err=$ac_c_preproc_warn_flag
7898   else
7899     ac_cpp_err=
7900   fi
7901 else
7902   ac_cpp_err=yes
7903 fi
7904 if test -z "$ac_cpp_err"; then
7905   ac_header_preproc=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908   cat conftest.$ac_ext >&5
7909   ac_header_preproc=no
7910 fi
7911 rm -f conftest.err conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7913 echo "${ECHO_T}$ac_header_preproc" >&6
7914
7915 # So?  What about this header?
7916 case $ac_header_compiler:$ac_header_preproc in
7917   yes:no )
7918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7922   no:yes )
7923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7925     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7929 esac
7930 echo "$as_me:$LINENO: checking for $ac_header" >&5
7931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   eval "$as_ac_Header=$ac_header_preproc"
7936 fi
7937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7939
7940 fi
7941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7942   cat >>confdefs.h <<_ACEOF
7943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7944 _ACEOF
7945
7946 else
7947
7948 for ac_header in history.h
7949 do
7950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7952   echo "$as_me:$LINENO: checking for $ac_header" >&5
7953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 fi
7957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7959 else
7960   # Is the header compilable?
7961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line $LINENO "configure"
7965 #include "confdefs.h"
7966 $ac_includes_default
7967 #include <$ac_header>
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -s conftest.$ac_objext'
7976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977   (eval $ac_try) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   ac_header_compiler=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_header_compiler=no
7986 fi
7987 rm -f conftest.$ac_objext conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7989 echo "${ECHO_T}$ac_header_compiler" >&6
7990
7991 # Is the header present?
7992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line $LINENO "configure"
7996 #include "confdefs.h"
7997 #include <$ac_header>
7998 _ACEOF
7999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8001   ac_status=$?
8002   egrep -v '^ *\+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } >/dev/null; then
8007   if test -s conftest.err; then
8008     ac_cpp_err=$ac_c_preproc_warn_flag
8009   else
8010     ac_cpp_err=
8011   fi
8012 else
8013   ac_cpp_err=yes
8014 fi
8015 if test -z "$ac_cpp_err"; then
8016   ac_header_preproc=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019   cat conftest.$ac_ext >&5
8020   ac_header_preproc=no
8021 fi
8022 rm -f conftest.err conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8024 echo "${ECHO_T}$ac_header_preproc" >&6
8025
8026 # So?  What about this header?
8027 case $ac_header_compiler:$ac_header_preproc in
8028   yes:no )
8029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8033   no:yes )
8034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8036     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8040 esac
8041 echo "$as_me:$LINENO: checking for $ac_header" >&5
8042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8044   echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046   eval "$as_ac_Header=$ac_header_preproc"
8047 fi
8048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8050
8051 fi
8052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053   cat >>confdefs.h <<_ACEOF
8054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055 _ACEOF
8056
8057 else
8058   { { echo "$as_me:$LINENO: error: history header not found
8059 If you have readline already installed, see config.log for details on the
8060 failure.  It is possible the compiler isn't looking in the proper directory.
8061 Use --without-readline to disable readline support." >&5
8062 echo "$as_me: error: history header not found
8063 If you have readline already installed, see config.log for details on the
8064 failure.  It is possible the compiler isn't looking in the proper directory.
8065 Use --without-readline to disable readline support." >&2;}
8066    { (exit 1); exit 1; }; }
8067 fi
8068
8069 done
8070
8071 fi
8072
8073 done
8074
8075 fi
8076
8077 done
8078
8079 fi
8080
8081 if test "$with_zlib" = yes; then
8082   if test "${ac_cv_header_zlib_h+set}" = set; then
8083   echo "$as_me:$LINENO: checking for zlib.h" >&5
8084 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8085 if test "${ac_cv_header_zlib_h+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 fi
8088 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8089 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8090 else
8091   # Is the header compilable?
8092 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8093 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8094 cat >conftest.$ac_ext <<_ACEOF
8095 #line $LINENO "configure"
8096 #include "confdefs.h"
8097 $ac_includes_default
8098 #include <zlib.h>
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102   (eval $ac_compile) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -s conftest.$ac_objext'
8107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108   (eval $ac_try) 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   ac_header_compiler=yes
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8116 ac_header_compiler=no
8117 fi
8118 rm -f conftest.$ac_objext conftest.$ac_ext
8119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8120 echo "${ECHO_T}$ac_header_compiler" >&6
8121
8122 # Is the header present?
8123 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8124 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line $LINENO "configure"
8127 #include "confdefs.h"
8128 #include <zlib.h>
8129 _ACEOF
8130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8132   ac_status=$?
8133   egrep -v '^ *\+' conftest.er1 >conftest.err
8134   rm -f conftest.er1
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } >/dev/null; then
8138   if test -s conftest.err; then
8139     ac_cpp_err=$ac_c_preproc_warn_flag
8140   else
8141     ac_cpp_err=
8142   fi
8143 else
8144   ac_cpp_err=yes
8145 fi
8146 if test -z "$ac_cpp_err"; then
8147   ac_header_preproc=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150   cat conftest.$ac_ext >&5
8151   ac_header_preproc=no
8152 fi
8153 rm -f conftest.err conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8155 echo "${ECHO_T}$ac_header_preproc" >&6
8156
8157 # So?  What about this header?
8158 case $ac_header_compiler:$ac_header_preproc in
8159   yes:no )
8160     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8161 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8162     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8163 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8164   no:yes )
8165     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8166 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8167     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8168 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8169     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8171 esac
8172 echo "$as_me:$LINENO: checking for zlib.h" >&5
8173 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8174 if test "${ac_cv_header_zlib_h+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   ac_cv_header_zlib_h=$ac_header_preproc
8178 fi
8179 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8180 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8181
8182 fi
8183 if test $ac_cv_header_zlib_h = yes; then
8184   :
8185 else
8186   { { echo "$as_me:$LINENO: error: zlib header not found
8187 If you have zlib already installed, see config.log for details on the
8188 failure.  It is possible the compiler isn't looking in the proper directory.
8189 Use --without-zlib to disable zlib support." >&5
8190 echo "$as_me: error: zlib header not found
8191 If you have zlib already installed, see config.log for details on the
8192 failure.  It is possible the compiler isn't looking in the proper directory.
8193 Use --without-zlib to disable zlib support." >&2;}
8194    { (exit 1); exit 1; }; }
8195 fi
8196
8197
8198 fi
8199
8200 if test "$with_krb4" = yes ; then
8201   if test "${ac_cv_header_krb_h+set}" = set; then
8202   echo "$as_me:$LINENO: checking for krb.h" >&5
8203 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8204 if test "${ac_cv_header_krb_h+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 fi
8207 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8208 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8209 else
8210   # Is the header compilable?
8211 echo "$as_me:$LINENO: checking krb.h usability" >&5
8212 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8213 cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8215 #include "confdefs.h"
8216 $ac_includes_default
8217 #include <krb.h>
8218 _ACEOF
8219 rm -f conftest.$ac_objext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8221   (eval $ac_compile) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } &&
8225          { ac_try='test -s conftest.$ac_objext'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; }; then
8231   ac_header_compiler=yes
8232 else
8233   echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 ac_header_compiler=no
8236 fi
8237 rm -f conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8239 echo "${ECHO_T}$ac_header_compiler" >&6
8240
8241 # Is the header present?
8242 echo "$as_me:$LINENO: checking krb.h presence" >&5
8243 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8244 cat >conftest.$ac_ext <<_ACEOF
8245 #line $LINENO "configure"
8246 #include "confdefs.h"
8247 #include <krb.h>
8248 _ACEOF
8249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8251   ac_status=$?
8252   egrep -v '^ *\+' conftest.er1 >conftest.err
8253   rm -f conftest.er1
8254   cat conftest.err >&5
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } >/dev/null; then
8257   if test -s conftest.err; then
8258     ac_cpp_err=$ac_c_preproc_warn_flag
8259   else
8260     ac_cpp_err=
8261   fi
8262 else
8263   ac_cpp_err=yes
8264 fi
8265 if test -z "$ac_cpp_err"; then
8266   ac_header_preproc=yes
8267 else
8268   echo "$as_me: failed program was:" >&5
8269   cat conftest.$ac_ext >&5
8270   ac_header_preproc=no
8271 fi
8272 rm -f conftest.err conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8274 echo "${ECHO_T}$ac_header_preproc" >&6
8275
8276 # So?  What about this header?
8277 case $ac_header_compiler:$ac_header_preproc in
8278   yes:no )
8279     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8280 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8281     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8282 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8283   no:yes )
8284     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8285 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8286     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8287 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8288     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8289 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8290 esac
8291 echo "$as_me:$LINENO: checking for krb.h" >&5
8292 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8293 if test "${ac_cv_header_krb_h+set}" = set; then
8294   echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296   ac_cv_header_krb_h=$ac_header_preproc
8297 fi
8298 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8299 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8300
8301 fi
8302 if test $ac_cv_header_krb_h = yes; then
8303   :
8304 else
8305   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8306 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8307    { (exit 1); exit 1; }; }
8308 fi
8309
8310
8311 fi
8312
8313 if test "$with_krb5" = yes ; then
8314   if test "${ac_cv_header_krb5_h+set}" = set; then
8315   echo "$as_me:$LINENO: checking for krb5.h" >&5
8316 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8317 if test "${ac_cv_header_krb5_h+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8321 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8322 else
8323   # Is the header compilable?
8324 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8325 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8328 #include "confdefs.h"
8329 $ac_includes_default
8330 #include <krb5.h>
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334   (eval $ac_compile) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } &&
8338          { ac_try='test -s conftest.$ac_objext'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   ac_header_compiler=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8348 ac_header_compiler=no
8349 fi
8350 rm -f conftest.$ac_objext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8352 echo "${ECHO_T}$ac_header_compiler" >&6
8353
8354 # Is the header present?
8355 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8356 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360 #include <krb5.h>
8361 _ACEOF
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364   ac_status=$?
8365   egrep -v '^ *\+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } >/dev/null; then
8370   if test -s conftest.err; then
8371     ac_cpp_err=$ac_c_preproc_warn_flag
8372   else
8373     ac_cpp_err=
8374   fi
8375 else
8376   ac_cpp_err=yes
8377 fi
8378 if test -z "$ac_cpp_err"; then
8379   ac_header_preproc=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382   cat conftest.$ac_ext >&5
8383   ac_header_preproc=no
8384 fi
8385 rm -f conftest.err conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8387 echo "${ECHO_T}$ac_header_preproc" >&6
8388
8389 # So?  What about this header?
8390 case $ac_header_compiler:$ac_header_preproc in
8391   yes:no )
8392     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8393 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8394     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8395 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8396   no:yes )
8397     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8398 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8399     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8400 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8401     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8403 esac
8404 echo "$as_me:$LINENO: checking for krb5.h" >&5
8405 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8406 if test "${ac_cv_header_krb5_h+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   ac_cv_header_krb5_h=$ac_header_preproc
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8412 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8413
8414 fi
8415 if test $ac_cv_header_krb5_h = yes; then
8416   :
8417 else
8418   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8419 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8420    { (exit 1); exit 1; }; }
8421 fi
8422
8423
8424   if test "${ac_cv_header_com_err_h+set}" = set; then
8425   echo "$as_me:$LINENO: checking for com_err.h" >&5
8426 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8427 if test "${ac_cv_header_com_err_h+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 fi
8430 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8431 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8432 else
8433   # Is the header compilable?
8434 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8435 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 #include "confdefs.h"
8439 $ac_includes_default
8440 #include <com_err.h>
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444   (eval $ac_compile) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_header_compiler=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 ac_header_compiler=no
8459 fi
8460 rm -f conftest.$ac_objext conftest.$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462 echo "${ECHO_T}$ac_header_compiler" >&6
8463
8464 # Is the header present?
8465 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8466 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 #include "confdefs.h"
8470 #include <com_err.h>
8471 _ACEOF
8472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8474   ac_status=$?
8475   egrep -v '^ *\+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } >/dev/null; then
8480   if test -s conftest.err; then
8481     ac_cpp_err=$ac_c_preproc_warn_flag
8482   else
8483     ac_cpp_err=
8484   fi
8485 else
8486   ac_cpp_err=yes
8487 fi
8488 if test -z "$ac_cpp_err"; then
8489   ac_header_preproc=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492   cat conftest.$ac_ext >&5
8493   ac_header_preproc=no
8494 fi
8495 rm -f conftest.err conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8497 echo "${ECHO_T}$ac_header_preproc" >&6
8498
8499 # So?  What about this header?
8500 case $ac_header_compiler:$ac_header_preproc in
8501   yes:no )
8502     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8503 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8504     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8505 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8506   no:yes )
8507     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8508 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8509     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8510 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8511     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8512 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8513 esac
8514 echo "$as_me:$LINENO: checking for com_err.h" >&5
8515 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8516 if test "${ac_cv_header_com_err_h+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   ac_cv_header_com_err_h=$ac_header_preproc
8520 fi
8521 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8522 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8523
8524 fi
8525 if test $ac_cv_header_com_err_h = yes; then
8526   :
8527 else
8528   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8529 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8530    { (exit 1); exit 1; }; }
8531 fi
8532
8533
8534 fi
8535
8536 if test "$with_openssl" = yes ; then
8537   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8538   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8539 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8540 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 fi
8543 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8544 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8545 else
8546   # Is the header compilable?
8547 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8548 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 #line $LINENO "configure"
8551 #include "confdefs.h"
8552 $ac_includes_default
8553 #include <openssl/ssl.h>
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557   (eval $ac_compile) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -s conftest.$ac_objext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_header_compiler=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 ac_header_compiler=no
8572 fi
8573 rm -f conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8575 echo "${ECHO_T}$ac_header_compiler" >&6
8576
8577 # Is the header present?
8578 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8579 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 #include "confdefs.h"
8583 #include <openssl/ssl.h>
8584 _ACEOF
8585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8587   ac_status=$?
8588   egrep -v '^ *\+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } >/dev/null; then
8593   if test -s conftest.err; then
8594     ac_cpp_err=$ac_c_preproc_warn_flag
8595   else
8596     ac_cpp_err=
8597   fi
8598 else
8599   ac_cpp_err=yes
8600 fi
8601 if test -z "$ac_cpp_err"; then
8602   ac_header_preproc=yes
8603 else
8604   echo "$as_me: failed program was:" >&5
8605   cat conftest.$ac_ext >&5
8606   ac_header_preproc=no
8607 fi
8608 rm -f conftest.err conftest.$ac_ext
8609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8610 echo "${ECHO_T}$ac_header_preproc" >&6
8611
8612 # So?  What about this header?
8613 case $ac_header_compiler:$ac_header_preproc in
8614   yes:no )
8615     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8616 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8617     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8619   no:yes )
8620     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8621 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8622     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8623 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8624     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8625 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8626 esac
8627 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8628 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8629 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8633 fi
8634 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8635 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8636
8637 fi
8638 if test $ac_cv_header_openssl_ssl_h = yes; then
8639   :
8640 else
8641   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8642 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8643    { (exit 1); exit 1; }; }
8644 fi
8645
8646
8647   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8648   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8649 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8650 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 fi
8653 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8654 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8655 else
8656   # Is the header compilable?
8657 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8658 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 #include "confdefs.h"
8662 $ac_includes_default
8663 #include <openssl/err.h>
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667   (eval $ac_compile) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -s conftest.$ac_objext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_header_compiler=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 ac_header_compiler=no
8682 fi
8683 rm -f conftest.$ac_objext conftest.$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8685 echo "${ECHO_T}$ac_header_compiler" >&6
8686
8687 # Is the header present?
8688 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8689 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693 #include <openssl/err.h>
8694 _ACEOF
8695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8697   ac_status=$?
8698   egrep -v '^ *\+' conftest.er1 >conftest.err
8699   rm -f conftest.er1
8700   cat conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } >/dev/null; then
8703   if test -s conftest.err; then
8704     ac_cpp_err=$ac_c_preproc_warn_flag
8705   else
8706     ac_cpp_err=
8707   fi
8708 else
8709   ac_cpp_err=yes
8710 fi
8711 if test -z "$ac_cpp_err"; then
8712   ac_header_preproc=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715   cat conftest.$ac_ext >&5
8716   ac_header_preproc=no
8717 fi
8718 rm -f conftest.err conftest.$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8720 echo "${ECHO_T}$ac_header_preproc" >&6
8721
8722 # So?  What about this header?
8723 case $ac_header_compiler:$ac_header_preproc in
8724   yes:no )
8725     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8726 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8727     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8729   no:yes )
8730     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8731 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8732     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8733 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8734     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8735 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8736 esac
8737 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8738 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8739 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   ac_cv_header_openssl_err_h=$ac_header_preproc
8743 fi
8744 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8745 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8746
8747 fi
8748 if test $ac_cv_header_openssl_err_h = yes; then
8749   :
8750 else
8751   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8752 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8753    { (exit 1); exit 1; }; }
8754 fi
8755
8756
8757 fi
8758
8759 if test "$with_pam" = yes ; then
8760
8761 for ac_header in security/pam_appl.h
8762 do
8763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765   echo "$as_me:$LINENO: checking for $ac_header" >&5
8766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 fi
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8772 else
8773   # Is the header compilable?
8774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8778 #include "confdefs.h"
8779 $ac_includes_default
8780 #include <$ac_header>
8781 _ACEOF
8782 rm -f conftest.$ac_objext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784   (eval $ac_compile) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } &&
8788          { ac_try='test -s conftest.$ac_objext'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   ac_header_compiler=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_header_compiler=no
8799 fi
8800 rm -f conftest.$ac_objext conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8802 echo "${ECHO_T}$ac_header_compiler" >&6
8803
8804 # Is the header present?
8805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 #include "confdefs.h"
8810 #include <$ac_header>
8811 _ACEOF
8812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8814   ac_status=$?
8815   egrep -v '^ *\+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } >/dev/null; then
8820   if test -s conftest.err; then
8821     ac_cpp_err=$ac_c_preproc_warn_flag
8822   else
8823     ac_cpp_err=
8824   fi
8825 else
8826   ac_cpp_err=yes
8827 fi
8828 if test -z "$ac_cpp_err"; then
8829   ac_header_preproc=yes
8830 else
8831   echo "$as_me: failed program was:" >&5
8832   cat conftest.$ac_ext >&5
8833   ac_header_preproc=no
8834 fi
8835 rm -f conftest.err conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8837 echo "${ECHO_T}$ac_header_preproc" >&6
8838
8839 # So?  What about this header?
8840 case $ac_header_compiler:$ac_header_preproc in
8841   yes:no )
8842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8846   no:yes )
8847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8849     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8853 esac
8854 echo "$as_me:$LINENO: checking for $ac_header" >&5
8855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859   eval "$as_ac_Header=$ac_header_preproc"
8860 fi
8861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8863
8864 fi
8865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8866   cat >>confdefs.h <<_ACEOF
8867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8868 _ACEOF
8869
8870 else
8871
8872 for ac_header in pam/pam_appl.h
8873 do
8874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876   echo "$as_me:$LINENO: checking for $ac_header" >&5
8877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 fi
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8883 else
8884   # Is the header compilable?
8885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8889 #include "confdefs.h"
8890 $ac_includes_default
8891 #include <$ac_header>
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895   (eval $ac_compile) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } &&
8899          { ac_try='test -s conftest.$ac_objext'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; }; then
8905   ac_header_compiler=yes
8906 else
8907   echo "$as_me: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 ac_header_compiler=no
8910 fi
8911 rm -f conftest.$ac_objext conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8913 echo "${ECHO_T}$ac_header_compiler" >&6
8914
8915 # Is the header present?
8916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8918 cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 #include "confdefs.h"
8921 #include <$ac_header>
8922 _ACEOF
8923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8925   ac_status=$?
8926   egrep -v '^ *\+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } >/dev/null; then
8931   if test -s conftest.err; then
8932     ac_cpp_err=$ac_c_preproc_warn_flag
8933   else
8934     ac_cpp_err=
8935   fi
8936 else
8937   ac_cpp_err=yes
8938 fi
8939 if test -z "$ac_cpp_err"; then
8940   ac_header_preproc=yes
8941 else
8942   echo "$as_me: failed program was:" >&5
8943   cat conftest.$ac_ext >&5
8944   ac_header_preproc=no
8945 fi
8946 rm -f conftest.err conftest.$ac_ext
8947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8948 echo "${ECHO_T}$ac_header_preproc" >&6
8949
8950 # So?  What about this header?
8951 case $ac_header_compiler:$ac_header_preproc in
8952   yes:no )
8953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8957   no:yes )
8958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8960     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8964 esac
8965 echo "$as_me:$LINENO: checking for $ac_header" >&5
8966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   eval "$as_ac_Header=$ac_header_preproc"
8971 fi
8972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8974
8975 fi
8976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8977   cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8979 _ACEOF
8980
8981 else
8982   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8983 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8984    { (exit 1); exit 1; }; }
8985 fi
8986
8987 done
8988
8989 fi
8990
8991 done
8992
8993 fi
8994
8995 if test "$with_rendezvous" = yes ; then
8996   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8997   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8998 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8999 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 fi
9002 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9003 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9004 else
9005   # Is the header compilable?
9006 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9007 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9008 cat >conftest.$ac_ext <<_ACEOF
9009 #line $LINENO "configure"
9010 #include "confdefs.h"
9011 $ac_includes_default
9012 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016   (eval $ac_compile) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } &&
9020          { ac_try='test -s conftest.$ac_objext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_header_compiler=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_header_compiler=no
9031 fi
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034 echo "${ECHO_T}$ac_header_compiler" >&6
9035
9036 # Is the header present?
9037 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9038 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9040 #line $LINENO "configure"
9041 #include "confdefs.h"
9042 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9043 _ACEOF
9044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9046   ac_status=$?
9047   egrep -v '^ *\+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } >/dev/null; then
9052   if test -s conftest.err; then
9053     ac_cpp_err=$ac_c_preproc_warn_flag
9054   else
9055     ac_cpp_err=
9056   fi
9057 else
9058   ac_cpp_err=yes
9059 fi
9060 if test -z "$ac_cpp_err"; then
9061   ac_header_preproc=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064   cat conftest.$ac_ext >&5
9065   ac_header_preproc=no
9066 fi
9067 rm -f conftest.err conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9069 echo "${ECHO_T}$ac_header_preproc" >&6
9070
9071 # So?  What about this header?
9072 case $ac_header_compiler:$ac_header_preproc in
9073   yes:no )
9074     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9075 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9076     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9078   no:yes )
9079     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9080 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9081     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9082 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9084 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9085 esac
9086 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9087 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9088 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9092 fi
9093 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9094 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9095
9096 fi
9097 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9098   :
9099 else
9100   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9101 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9102    { (exit 1); exit 1; }; }
9103 fi
9104
9105
9106 fi
9107
9108
9109 ##
9110 ## Types, structures, compiler characteristics
9111 ##
9112
9113
9114 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9115 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9116 if test "${ac_cv_c_const+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9121 #include "confdefs.h"
9122
9123 #ifdef F77_DUMMY_MAIN
9124 #  ifdef __cplusplus
9125      extern "C"
9126 #  endif
9127    int F77_DUMMY_MAIN() { return 1; }
9128 #endif
9129 int
9130 main ()
9131 {
9132 /* FIXME: Include the comments suggested by Paul. */
9133 #ifndef __cplusplus
9134   /* Ultrix mips cc rejects this.  */
9135   typedef int charset[2];
9136   const charset x;
9137   /* SunOS 4.1.1 cc rejects this.  */
9138   char const *const *ccp;
9139   char **p;
9140   /* NEC SVR4.0.2 mips cc rejects this.  */
9141   struct point {int x, y;};
9142   static struct point const zero = {0,0};
9143   /* AIX XL C 1.02.0.0 rejects this.
9144      It does not let you subtract one const X* pointer from another in
9145      an arm of an if-expression whose if-part is not a constant
9146      expression */
9147   const char *g = "string";
9148   ccp = &g + (g ? g-g : 0);
9149   /* HPUX 7.0 cc rejects these. */
9150   ++ccp;
9151   p = (char**) ccp;
9152   ccp = (char const *const *) p;
9153   { /* SCO 3.2v4 cc rejects this.  */
9154     char *t;
9155     char const *s = 0 ? (char *) 0 : (char const *) 0;
9156
9157     *t++ = 0;
9158   }
9159   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9160     int x[] = {25, 17};
9161     const int *foo = &x[0];
9162     ++foo;
9163   }
9164   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9165     typedef const int *iptr;
9166     iptr p = 0;
9167     ++p;
9168   }
9169   { /* AIX XL C 1.02.0.0 rejects this saying
9170        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9171     struct s { int j; const int *ap[3]; };
9172     struct s *b; b->j = 5;
9173   }
9174   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9175     const int foo = 10;
9176   }
9177 #endif
9178
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 rm -f conftest.$ac_objext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185   (eval $ac_compile) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } &&
9189          { ac_try='test -s conftest.$ac_objext'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   ac_cv_c_const=yes
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 ac_cv_c_const=no
9200 fi
9201 rm -f conftest.$ac_objext conftest.$ac_ext
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9204 echo "${ECHO_T}$ac_cv_c_const" >&6
9205 if test $ac_cv_c_const = no; then
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define const
9209 _ACEOF
9210
9211 fi
9212
9213 echo "$as_me:$LINENO: checking for inline" >&5
9214 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9215 if test "${ac_cv_c_inline+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   ac_cv_c_inline=no
9219 for ac_kw in inline __inline__ __inline; do
9220   cat >conftest.$ac_ext <<_ACEOF
9221 #line $LINENO "configure"
9222 #include "confdefs.h"
9223 #ifndef __cplusplus
9224 static $ac_kw int static_foo () {return 0; }
9225 $ac_kw int foo () {return 0; }
9226 #endif
9227
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231   (eval $ac_compile) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } &&
9235          { ac_try='test -s conftest.$ac_objext'
9236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237   (eval $ac_try) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; }; then
9241   ac_cv_c_inline=$ac_kw; break
9242 else
9243   echo "$as_me: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 fi
9246 rm -f conftest.$ac_objext conftest.$ac_ext
9247 done
9248
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9251 echo "${ECHO_T}$ac_cv_c_inline" >&6
9252 case $ac_cv_c_inline in
9253   inline | yes) ;;
9254   no)
9255 cat >>confdefs.h <<\_ACEOF
9256 #define inline
9257 _ACEOF
9258  ;;
9259   *)  cat >>confdefs.h <<_ACEOF
9260 #define inline $ac_cv_c_inline
9261 _ACEOF
9262  ;;
9263 esac
9264
9265 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9266 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9267 if test "${ac_cv_c_stringize+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9273 #define x(y) #y
9274
9275 char *s = x(teststring);
9276 _ACEOF
9277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9278   egrep "#teststring" >/dev/null 2>&1; then
9279   ac_cv_c_stringize=no
9280 else
9281   ac_cv_c_stringize=yes
9282 fi
9283 rm -f conftest*
9284
9285 fi
9286 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9287 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9288 if test $ac_cv_c_stringize = yes; then
9289
9290 cat >>confdefs.h <<\_ACEOF
9291 #define HAVE_STRINGIZE 1
9292 _ACEOF
9293
9294 fi
9295
9296 echo "$as_me:$LINENO: checking for signed types" >&5
9297 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9298 if test "${pgac_cv_c_signed+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 #include "confdefs.h"
9304
9305 #ifdef F77_DUMMY_MAIN
9306 #  ifdef __cplusplus
9307      extern "C"
9308 #  endif
9309    int F77_DUMMY_MAIN() { return 1; }
9310 #endif
9311 int
9312 main ()
9313 {
9314 signed char c; signed short s; signed int i;
9315   ;
9316   return 0;
9317 }
9318 _ACEOF
9319 rm -f conftest.$ac_objext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321   (eval $ac_compile) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; }; then
9331   pgac_cv_c_signed=yes
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9335 pgac_cv_c_signed=no
9336 fi
9337 rm -f conftest.$ac_objext conftest.$ac_ext
9338 fi
9339 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9340 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9341 if test x"$pgac_cv_c_signed" = xno ; then
9342
9343 cat >>confdefs.h <<\_ACEOF
9344 #define signed
9345 _ACEOF
9346
9347 fi
9348 echo "$as_me:$LINENO: checking for working volatile" >&5
9349 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9350 if test "${ac_cv_c_volatile+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 #include "confdefs.h"
9356
9357 #ifdef F77_DUMMY_MAIN
9358 #  ifdef __cplusplus
9359      extern "C"
9360 #  endif
9361    int F77_DUMMY_MAIN() { return 1; }
9362 #endif
9363 int
9364 main ()
9365 {
9366
9367 volatile int x;
9368 int * volatile y;
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -s conftest.$ac_objext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   ac_cv_c_volatile=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 ac_cv_c_volatile=no
9390 fi
9391 rm -f conftest.$ac_objext conftest.$ac_ext
9392 fi
9393 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9394 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9395 if test $ac_cv_c_volatile = no; then
9396
9397 cat >>confdefs.h <<\_ACEOF
9398 #define volatile
9399 _ACEOF
9400
9401 fi
9402
9403 echo "$as_me:$LINENO: checking for __func__" >&5
9404 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9405 if test "${pgac_cv_funcname_func_support+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408   cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 #include "confdefs.h"
9411 #include <stdio.h>
9412 #ifdef F77_DUMMY_MAIN
9413 #  ifdef __cplusplus
9414      extern "C"
9415 #  endif
9416    int F77_DUMMY_MAIN() { return 1; }
9417 #endif
9418 int
9419 main ()
9420 {
9421 printf("%s\n", __func__);
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9428   (eval $ac_compile) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -s conftest.$ac_objext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   pgac_cv_funcname_func_support=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 pgac_cv_funcname_func_support=no
9443 fi
9444 rm -f conftest.$ac_objext conftest.$ac_ext
9445 fi
9446 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9447 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9448 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9449
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_FUNCNAME__FUNC 1
9452 _ACEOF
9453
9454 else
9455 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9456 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9457 if test "${pgac_cv_funcname_function_support+set}" = set; then
9458   echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460   cat >conftest.$ac_ext <<_ACEOF
9461 #line $LINENO "configure"
9462 #include "confdefs.h"
9463 #include <stdio.h>
9464 #ifdef F77_DUMMY_MAIN
9465 #  ifdef __cplusplus
9466      extern "C"
9467 #  endif
9468    int F77_DUMMY_MAIN() { return 1; }
9469 #endif
9470 int
9471 main ()
9472 {
9473 printf("%s\n", __FUNCTION__);
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480   (eval $ac_compile) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } &&
9484          { ac_try='test -s conftest.$ac_objext'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; }; then
9490   pgac_cv_funcname_function_support=yes
9491 else
9492   echo "$as_me: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 pgac_cv_funcname_function_support=no
9495 fi
9496 rm -f conftest.$ac_objext conftest.$ac_ext
9497 fi
9498 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9499 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9500 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_FUNCNAME__FUNCTION 1
9504 _ACEOF
9505
9506 fi
9507 fi
9508 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9510 if test "${ac_cv_struct_tm+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   cat >conftest.$ac_ext <<_ACEOF
9514 #line $LINENO "configure"
9515 #include "confdefs.h"
9516 #include <sys/types.h>
9517 #include <time.h>
9518
9519 #ifdef F77_DUMMY_MAIN
9520 #  ifdef __cplusplus
9521      extern "C"
9522 #  endif
9523    int F77_DUMMY_MAIN() { return 1; }
9524 #endif
9525 int
9526 main ()
9527 {
9528 struct tm *tp; tp->tm_sec;
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535   (eval $ac_compile) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -s conftest.$ac_objext'
9540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541   (eval $ac_try) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); }; }; then
9545   ac_cv_struct_tm=time.h
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9549 ac_cv_struct_tm=sys/time.h
9550 fi
9551 rm -f conftest.$ac_objext conftest.$ac_ext
9552 fi
9553 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9554 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9555 if test $ac_cv_struct_tm = sys/time.h; then
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define TM_IN_SYS_TIME 1
9559 _ACEOF
9560
9561 fi
9562
9563 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9564 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9565 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   cat >conftest.$ac_ext <<_ACEOF
9569 #line $LINENO "configure"
9570 #include "confdefs.h"
9571 #include <sys/types.h>
9572 #include <$ac_cv_struct_tm>
9573
9574
9575 #ifdef F77_DUMMY_MAIN
9576 #  ifdef __cplusplus
9577      extern "C"
9578 #  endif
9579    int F77_DUMMY_MAIN() { return 1; }
9580 #endif
9581 int
9582 main ()
9583 {
9584 static struct tm ac_aggr;
9585 if (ac_aggr.tm_zone)
9586 return 0;
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 rm -f conftest.$ac_objext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9593   (eval $ac_compile) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } &&
9597          { ac_try='test -s conftest.$ac_objext'
9598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599   (eval $ac_try) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   ac_cv_member_struct_tm_tm_zone=yes
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 ac_cv_member_struct_tm_tm_zone=no
9608 fi
9609 rm -f conftest.$ac_objext conftest.$ac_ext
9610 fi
9611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9614
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_STRUCT_TM_TM_ZONE 1
9617 _ACEOF
9618
9619
9620 fi
9621
9622 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9623
9624 cat >>confdefs.h <<\_ACEOF
9625 #define HAVE_TM_ZONE 1
9626 _ACEOF
9627
9628 fi
9629 echo "$as_me:$LINENO: checking for tzname" >&5
9630 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9631 if test "${ac_cv_var_tzname+set}" = set; then
9632   echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634   cat >conftest.$ac_ext <<_ACEOF
9635 #line $LINENO "configure"
9636 #include "confdefs.h"
9637 #include <time.h>
9638 #ifndef tzname /* For SGI.  */
9639 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9640 #endif
9641
9642 #ifdef F77_DUMMY_MAIN
9643 #  ifdef __cplusplus
9644      extern "C"
9645 #  endif
9646    int F77_DUMMY_MAIN() { return 1; }
9647 #endif
9648 int
9649 main ()
9650 {
9651 atoi(*tzname);
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -s conftest$ac_exeext'
9663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; }; then
9668   ac_cv_var_tzname=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 ac_cv_var_tzname=no
9673 fi
9674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9675 fi
9676 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9677 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9678 if test $ac_cv_var_tzname = yes; then
9679
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_TZNAME 1
9682 _ACEOF
9683
9684 fi
9685
9686 echo "$as_me:$LINENO: checking for union semun" >&5
9687 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9688 if test "${ac_cv_type_union_semun+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9695 #include <sys/ipc.h>
9696 #include <sys/sem.h>
9697
9698 #ifdef F77_DUMMY_MAIN
9699 #  ifdef __cplusplus
9700      extern "C"
9701 #  endif
9702    int F77_DUMMY_MAIN() { return 1; }
9703 #endif
9704 int
9705 main ()
9706 {
9707 if ((union semun *) 0)
9708   return 0;
9709 if (sizeof (union semun))
9710   return 0;
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717   (eval $ac_compile) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } &&
9721          { ac_try='test -s conftest.$ac_objext'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   ac_cv_type_union_semun=yes
9728 else
9729   echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 ac_cv_type_union_semun=no
9732 fi
9733 rm -f conftest.$ac_objext conftest.$ac_ext
9734 fi
9735 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9736 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9737 if test $ac_cv_type_union_semun = yes; then
9738
9739 cat >>confdefs.h <<_ACEOF
9740 #define HAVE_UNION_SEMUN 1
9741 _ACEOF
9742
9743
9744 fi
9745
9746 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9747 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9748 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 #line $LINENO "configure"
9753 #include "confdefs.h"
9754 #include <sys/types.h>
9755 #ifdef HAVE_SYS_UN_H
9756 #include <sys/un.h>
9757 #endif
9758
9759
9760 #ifdef F77_DUMMY_MAIN
9761 #  ifdef __cplusplus
9762      extern "C"
9763 #  endif
9764    int F77_DUMMY_MAIN() { return 1; }
9765 #endif
9766 int
9767 main ()
9768 {
9769 if ((struct sockaddr_un *) 0)
9770   return 0;
9771 if (sizeof (struct sockaddr_un))
9772   return 0;
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779   (eval $ac_compile) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -s conftest.$ac_objext'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789   ac_cv_type_struct_sockaddr_un=yes
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 ac_cv_type_struct_sockaddr_un=no
9794 fi
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9796 fi
9797 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9798 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9799 if test $ac_cv_type_struct_sockaddr_un = yes; then
9800
9801 cat >>confdefs.h <<_ACEOF
9802 #define HAVE_STRUCT_SOCKADDR_UN 1
9803 _ACEOF
9804
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_UNIX_SOCKETS 1
9808 _ACEOF
9809
9810 fi
9811
9812 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9813 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9814 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9819 #include "confdefs.h"
9820 #include <sys/types.h>
9821 #ifdef HAVE_SYS_SOCKET_H
9822 #include <sys/socket.h>
9823 #endif
9824
9825
9826 #ifdef F77_DUMMY_MAIN
9827 #  ifdef __cplusplus
9828      extern "C"
9829 #  endif
9830    int F77_DUMMY_MAIN() { return 1; }
9831 #endif
9832 int
9833 main ()
9834 {
9835 if ((struct sockaddr_storage *) 0)
9836   return 0;
9837 if (sizeof (struct sockaddr_storage))
9838   return 0;
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } &&
9849          { ac_try='test -s conftest.$ac_objext'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   ac_cv_type_struct_sockaddr_storage=yes
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 ac_cv_type_struct_sockaddr_storage=no
9860 fi
9861 rm -f conftest.$ac_objext conftest.$ac_ext
9862 fi
9863 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9864 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9865 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9866
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9869 _ACEOF
9870
9871
9872 fi
9873
9874 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9875 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9876 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #ifdef HAVE_SYS_SOCKET_H
9884 #include <sys/socket.h>
9885 #endif
9886
9887
9888 #ifdef F77_DUMMY_MAIN
9889 #  ifdef __cplusplus
9890      extern "C"
9891 #  endif
9892    int F77_DUMMY_MAIN() { return 1; }
9893 #endif
9894 int
9895 main ()
9896 {
9897 static struct sockaddr_storage ac_aggr;
9898 if (ac_aggr.ss_family)
9899 return 0;
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906   (eval $ac_compile) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -s conftest.$ac_objext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_cv_member_struct_sockaddr_storage_ss_family=no
9921 fi
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9925 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9926 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9930 _ACEOF
9931
9932
9933 fi
9934 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9935 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9936 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9943 #ifdef HAVE_SYS_SOCKET_H
9944 #include <sys/socket.h>
9945 #endif
9946
9947
9948 #ifdef F77_DUMMY_MAIN
9949 #  ifdef __cplusplus
9950      extern "C"
9951 #  endif
9952    int F77_DUMMY_MAIN() { return 1; }
9953 #endif
9954 int
9955 main ()
9956 {
9957 static struct sockaddr_storage ac_aggr;
9958 if (ac_aggr.__ss_family)
9959 return 0;
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -s conftest.$ac_objext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 ac_cv_member_struct_sockaddr_storage___ss_family=no
9981 fi
9982 rm -f conftest.$ac_objext conftest.$ac_ext
9983 fi
9984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9985 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9986 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9987
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9990 _ACEOF
9991
9992
9993 fi
9994
9995 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
9996 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
9997 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10004 #include <sys/socket.h>
10005 #include <netdb.h>
10006
10007
10008 #ifdef F77_DUMMY_MAIN
10009 #  ifdef __cplusplus
10010      extern "C"
10011 #  endif
10012    int F77_DUMMY_MAIN() { return 1; }
10013 #endif
10014 int
10015 main ()
10016 {
10017 if ((struct addrinfo *) 0)
10018   return 0;
10019 if (sizeof (struct addrinfo))
10020   return 0;
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027   (eval $ac_compile) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -s conftest.$ac_objext'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037   ac_cv_type_struct_addrinfo=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 ac_cv_type_struct_addrinfo=no
10042 fi
10043 rm -f conftest.$ac_objext conftest.$ac_ext
10044 fi
10045 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10046 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10047 if test $ac_cv_type_struct_addrinfo = yes; then
10048
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_STRUCT_ADDRINFO 1
10051 _ACEOF
10052
10053
10054 fi
10055
10056
10057 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10058 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10059 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   cat >conftest.$ac_ext <<_ACEOF
10063 #line $LINENO "configure"
10064 #include "confdefs.h"
10065 #include <sys/param.h>
10066 #include <sys/types.h>
10067 #include <sys/socket.h>
10068 #include <sys/ucred.h>
10069
10070 #ifdef F77_DUMMY_MAIN
10071 #  ifdef __cplusplus
10072      extern "C"
10073 #  endif
10074    int F77_DUMMY_MAIN() { return 1; }
10075 #endif
10076 int
10077 main ()
10078 {
10079 if ((struct cmsgcred *) 0)
10080   return 0;
10081 if (sizeof (struct cmsgcred))
10082   return 0;
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089   (eval $ac_compile) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); } &&
10093          { ac_try='test -s conftest.$ac_objext'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; }; then
10099   ac_cv_type_struct_cmsgcred=yes
10100 else
10101   echo "$as_me: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 ac_cv_type_struct_cmsgcred=no
10104 fi
10105 rm -f conftest.$ac_objext conftest.$ac_ext
10106 fi
10107 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10108 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10109 if test $ac_cv_type_struct_cmsgcred = yes; then
10110
10111 cat >>confdefs.h <<_ACEOF
10112 #define HAVE_STRUCT_CMSGCRED 1
10113 _ACEOF
10114
10115
10116 fi
10117 echo "$as_me:$LINENO: checking for struct fcred" >&5
10118 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10119 if test "${ac_cv_type_struct_fcred+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10124 #include "confdefs.h"
10125 #include <sys/param.h>
10126 #include <sys/types.h>
10127 #include <sys/socket.h>
10128 #include <sys/ucred.h>
10129
10130 #ifdef F77_DUMMY_MAIN
10131 #  ifdef __cplusplus
10132      extern "C"
10133 #  endif
10134    int F77_DUMMY_MAIN() { return 1; }
10135 #endif
10136 int
10137 main ()
10138 {
10139 if ((struct fcred *) 0)
10140   return 0;
10141 if (sizeof (struct fcred))
10142   return 0;
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10149   (eval $ac_compile) 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } &&
10153          { ac_try='test -s conftest.$ac_objext'
10154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155   (eval $ac_try) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; }; then
10159   ac_cv_type_struct_fcred=yes
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10163 ac_cv_type_struct_fcred=no
10164 fi
10165 rm -f conftest.$ac_objext conftest.$ac_ext
10166 fi
10167 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10168 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10169 if test $ac_cv_type_struct_fcred = yes; then
10170
10171 cat >>confdefs.h <<_ACEOF
10172 #define HAVE_STRUCT_FCRED 1
10173 _ACEOF
10174
10175
10176 fi
10177 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10178 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10179 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 #include "confdefs.h"
10185 #include <sys/param.h>
10186 #include <sys/types.h>
10187 #include <sys/socket.h>
10188 #include <sys/ucred.h>
10189
10190 #ifdef F77_DUMMY_MAIN
10191 #  ifdef __cplusplus
10192      extern "C"
10193 #  endif
10194    int F77_DUMMY_MAIN() { return 1; }
10195 #endif
10196 int
10197 main ()
10198 {
10199 if ((struct sockcred *) 0)
10200   return 0;
10201 if (sizeof (struct sockcred))
10202   return 0;
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest.$ac_objext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209   (eval $ac_compile) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -s conftest.$ac_objext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_type_struct_sockcred=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 ac_cv_type_struct_sockcred=no
10224 fi
10225 rm -f conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10228 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10229 if test $ac_cv_type_struct_sockcred = yes; then
10230
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_STRUCT_SOCKCRED 1
10233 _ACEOF
10234
10235
10236 fi
10237
10238
10239 if test "$with_zlib" = yes; then
10240   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10241   # did not).  While we could work around the lack of z_streamp, it
10242   # seems unwise to encourage people to use such old zlib versions...
10243   echo "$as_me:$LINENO: checking for z_streamp" >&5
10244 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10245 if test "${ac_cv_type_z_streamp+set}" = set; then
10246   echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248   cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 #include "confdefs.h"
10251 #include <zlib.h>
10252
10253 #ifdef F77_DUMMY_MAIN
10254 #  ifdef __cplusplus
10255      extern "C"
10256 #  endif
10257    int F77_DUMMY_MAIN() { return 1; }
10258 #endif
10259 int
10260 main ()
10261 {
10262 if ((z_streamp *) 0)
10263   return 0;
10264 if (sizeof (z_streamp))
10265   return 0;
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272   (eval $ac_compile) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -s conftest.$ac_objext'
10277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   ac_cv_type_z_streamp=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 ac_cv_type_z_streamp=no
10287 fi
10288 rm -f conftest.$ac_objext conftest.$ac_ext
10289 fi
10290 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10291 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10292 if test $ac_cv_type_z_streamp = yes; then
10293   :
10294 else
10295   { { echo "$as_me:$LINENO: error: zlib version is too old
10296 Use --without-zlib to disable zlib support." >&5
10297 echo "$as_me: error: zlib version is too old
10298 Use --without-zlib to disable zlib support." >&2;}
10299    { (exit 1); exit 1; }; }
10300 fi
10301
10302 fi
10303
10304 if test "$with_krb5" = yes; then
10305 # Check for differences between MIT and Heimdal (KTH) releases
10306   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10307 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10308 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10313 #include "confdefs.h"
10314 #include <krb5.h>
10315
10316 #ifdef F77_DUMMY_MAIN
10317 #  ifdef __cplusplus
10318      extern "C"
10319 #  endif
10320    int F77_DUMMY_MAIN() { return 1; }
10321 #endif
10322 int
10323 main ()
10324 {
10325 static krb5_ticket ac_aggr;
10326 if (ac_aggr.enc_part2)
10327 return 0;
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334   (eval $ac_compile) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } &&
10338          { ac_try='test -s conftest.$ac_objext'
10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340   (eval $ac_try) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; }; then
10344   ac_cv_member_krb5_ticket_enc_part2=yes
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 ac_cv_member_krb5_ticket_enc_part2=no
10349 fi
10350 rm -f conftest.$ac_objext conftest.$ac_ext
10351 fi
10352 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10353 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10354 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10355
10356 cat >>confdefs.h <<_ACEOF
10357 #define HAVE_KRB5_TICKET_ENC_PART2 1
10358 _ACEOF
10359
10360
10361 else
10362   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10363 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10364 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10369 #include "confdefs.h"
10370 #include <krb5.h>
10371
10372 #ifdef F77_DUMMY_MAIN
10373 #  ifdef __cplusplus
10374      extern "C"
10375 #  endif
10376    int F77_DUMMY_MAIN() { return 1; }
10377 #endif
10378 int
10379 main ()
10380 {
10381 static krb5_ticket ac_aggr;
10382 if (ac_aggr.client)
10383 return 0;
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390   (eval $ac_compile) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } &&
10394          { ac_try='test -s conftest.$ac_objext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   ac_cv_member_krb5_ticket_client=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 ac_cv_member_krb5_ticket_client=no
10405 fi
10406 rm -f conftest.$ac_objext conftest.$ac_ext
10407 fi
10408 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10409 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10410 if test $ac_cv_member_krb5_ticket_client = yes; then
10411
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_KRB5_TICKET_CLIENT 1
10414 _ACEOF
10415
10416
10417 else
10418   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10419 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10420    { (exit 1); exit 1; }; }
10421 fi
10422
10423 fi
10424
10425   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10426 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10427 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10428   echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430   cat >conftest.$ac_ext <<_ACEOF
10431 #line $LINENO "configure"
10432 #include "confdefs.h"
10433 #include <krb5.h>
10434
10435 #ifdef F77_DUMMY_MAIN
10436 #  ifdef __cplusplus
10437      extern "C"
10438 #  endif
10439    int F77_DUMMY_MAIN() { return 1; }
10440 #endif
10441 int
10442 main ()
10443 {
10444 static krb5_error ac_aggr;
10445 if (ac_aggr.text.data)
10446 return 0;
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453   (eval $ac_compile) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -s conftest.$ac_objext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_cv_member_krb5_error_text_data=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 ac_cv_member_krb5_error_text_data=no
10468 fi
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10470 fi
10471 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10472 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10473 if test $ac_cv_member_krb5_error_text_data = yes; then
10474
10475 cat >>confdefs.h <<_ACEOF
10476 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10477 _ACEOF
10478
10479
10480 else
10481   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10482 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10483 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10488 #include "confdefs.h"
10489 #include <krb5.h>
10490
10491 #ifdef F77_DUMMY_MAIN
10492 #  ifdef __cplusplus
10493      extern "C"
10494 #  endif
10495    int F77_DUMMY_MAIN() { return 1; }
10496 #endif
10497 int
10498 main ()
10499 {
10500 static krb5_error ac_aggr;
10501 if (ac_aggr.e_data)
10502 return 0;
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509   (eval $ac_compile) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } &&
10513          { ac_try='test -s conftest.$ac_objext'
10514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515   (eval $ac_try) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; }; then
10519   ac_cv_member_krb5_error_e_data=yes
10520 else
10521   echo "$as_me: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 ac_cv_member_krb5_error_e_data=no
10524 fi
10525 rm -f conftest.$ac_objext conftest.$ac_ext
10526 fi
10527 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10528 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10529 if test $ac_cv_member_krb5_error_e_data = yes; then
10530
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_KRB5_ERROR_E_DATA 1
10533 _ACEOF
10534
10535
10536 else
10537   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10538 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10539    { (exit 1); exit 1; }; }
10540 fi
10541
10542 fi
10543
10544 fi
10545
10546
10547 ##
10548 ## Functions, global variables
10549 ##
10550
10551 echo "$as_me:$LINENO: checking for int timezone" >&5
10552 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10553 if test "${pgac_cv_var_int_timezone+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 #include "confdefs.h"
10559 #include <time.h>
10560 int res;
10561 #ifdef F77_DUMMY_MAIN
10562 #  ifdef __cplusplus
10563      extern "C"
10564 #  endif
10565    int F77_DUMMY_MAIN() { return 1; }
10566 #endif
10567 int
10568 main ()
10569 {
10570 res = timezone / 60;
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577   (eval $ac_link) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } &&
10581          { ac_try='test -s conftest$ac_exeext'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; }; then
10587   pgac_cv_var_int_timezone=yes
10588 else
10589   echo "$as_me: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 pgac_cv_var_int_timezone=no
10592 fi
10593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10594 fi
10595 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10596 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10597 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_INT_TIMEZONE
10601 _ACEOF
10602
10603 fi
10604 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10605 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10606  if test "${ac_cv_func_accept_arg1+set}" = set; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609    if test "${ac_cv_func_accept_arg2+set}" = set; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612     if test "${ac_cv_func_accept_arg3+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10616      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10617       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10618        cat >conftest.$ac_ext <<_ACEOF
10619 #line $LINENO "configure"
10620 #include "confdefs.h"
10621 #ifdef HAVE_SYS_TYPES_H
10622 #include <sys/types.h>
10623 #endif
10624 #ifdef HAVE_SYS_SOCKET_H
10625 #include <sys/socket.h>
10626 #endif
10627 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10628 #ifdef F77_DUMMY_MAIN
10629 #  ifdef __cplusplus
10630      extern "C"
10631 #  endif
10632    int F77_DUMMY_MAIN() { return 1; }
10633 #endif
10634 int
10635 main ()
10636 {
10637
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10644   (eval $ac_compile) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } &&
10648          { ac_try='test -s conftest.$ac_objext'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; }; then
10654   ac_not_found=no; break 3
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 ac_not_found=yes
10659 fi
10660 rm -f conftest.$ac_objext conftest.$ac_ext
10661       done
10662      done
10663     done
10664     if test "$ac_not_found" = yes; then
10665       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10666 echo "$as_me: error: could not determine argument types" >&2;}
10667    { (exit 1); exit 1; }; }
10668     fi
10669     if test "$ac_cv_func_accept_arg3" = "void"; then
10670       ac_cv_func_accept_arg3=int
10671     fi
10672
10673 fi
10674
10675 fi
10676
10677 fi
10678  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10679 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10680
10681 cat >>confdefs.h <<_ACEOF
10682 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10683 _ACEOF
10684
10685
10686 cat >>confdefs.h <<_ACEOF
10687 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10688 _ACEOF
10689
10690
10691 cat >>confdefs.h <<_ACEOF
10692 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10693 _ACEOF
10694
10695
10696 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10697 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10698 if test "${pgac_cv_func_gettimeofday_1arg+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 <sys/time.h>
10705 #ifdef F77_DUMMY_MAIN
10706 #  ifdef __cplusplus
10707      extern "C"
10708 #  endif
10709    int F77_DUMMY_MAIN() { return 1; }
10710 #endif
10711 int
10712 main ()
10713 {
10714 struct timeval *tp;
10715 struct timezone *tzp;
10716 gettimeofday(tp,tzp);
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10723   (eval $ac_compile) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } &&
10727          { ac_try='test -s conftest.$ac_objext'
10728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729   (eval $ac_try) 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); }; }; then
10733   pgac_cv_func_gettimeofday_1arg=no
10734 else
10735   echo "$as_me: failed program was:" >&5
10736 cat conftest.$ac_ext >&5
10737 pgac_cv_func_gettimeofday_1arg=yes
10738 fi
10739 rm -f conftest.$ac_objext conftest.$ac_ext
10740 fi
10741 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10742 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10743 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10744
10745 cat >>confdefs.h <<\_ACEOF
10746 #define GETTIMEOFDAY_1ARG
10747 _ACEOF
10748
10749 fi
10750
10751
10752
10753 # SunOS doesn't handle negative byte comparisons properly with +/- return
10754 echo "$as_me:$LINENO: checking for working memcmp" >&5
10755 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10756 if test "${ac_cv_func_memcmp_working+set}" = set; then
10757   echo $ECHO_N "(cached) $ECHO_C" >&6
10758 else
10759   if test "$cross_compiling" = yes; then
10760   ac_cv_func_memcmp_working=no
10761 else
10762   cat >conftest.$ac_ext <<_ACEOF
10763 #line $LINENO "configure"
10764 #include "confdefs.h"
10765
10766 #ifdef F77_DUMMY_MAIN
10767 #  ifdef __cplusplus
10768      extern "C"
10769 #  endif
10770    int F77_DUMMY_MAIN() { return 1; }
10771 #endif
10772 int
10773 main ()
10774 {
10775
10776   /* Some versions of memcmp are not 8-bit clean.  */
10777   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10778   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10779     exit (1);
10780
10781   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10782      or more and with at least one buffer not starting on a 4-byte boundary.
10783      William Lewis provided this test program.   */
10784   {
10785     char foo[21];
10786     char bar[21];
10787     int i;
10788     for (i = 0; i < 4; i++)
10789       {
10790         char *a = foo + i;
10791         char *b = bar + i;
10792         strcpy (a, "--------01111111");
10793         strcpy (b, "--------10000000");
10794         if (memcmp (a, b, 16) >= 0)
10795           exit (1);
10796       }
10797     exit (0);
10798   }
10799
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806   (eval $ac_link) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811   (eval $ac_try) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   ac_cv_func_memcmp_working=yes
10816 else
10817   echo "$as_me: program exited with status $ac_status" >&5
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 ( exit $ac_status )
10821 ac_cv_func_memcmp_working=no
10822 fi
10823 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10824 fi
10825 fi
10826 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10827 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10828 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10848 do
10849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10850 echo "$as_me:$LINENO: checking for $ac_func" >&5
10851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10852 if eval "test \"\${$as_ac_var+set}\" = set"; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   cat >conftest.$ac_ext <<_ACEOF
10856 #line $LINENO "configure"
10857 #include "confdefs.h"
10858 /* System header to define __stub macros and hopefully few prototypes,
10859     which can conflict with char $ac_func (); below.  */
10860 #include <assert.h>
10861 /* Override any gcc2 internal prototype to avoid an error.  */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 /* We use char because int might match the return type of a gcc2
10866    builtin and then its argument prototype would still apply.  */
10867 char $ac_func ();
10868 char (*f) ();
10869
10870 #ifdef F77_DUMMY_MAIN
10871 #  ifdef __cplusplus
10872      extern "C"
10873 #  endif
10874    int F77_DUMMY_MAIN() { return 1; }
10875 #endif
10876 int
10877 main ()
10878 {
10879 /* The GNU C library defines this for functions which it implements
10880     to always fail with ENOSYS.  Some functions are actually named
10881     something starting with __ and the normal name is an alias.  */
10882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10883 choke me
10884 #else
10885 f = $ac_func;
10886 #endif
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894   (eval $ac_link) 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } &&
10898          { ac_try='test -s conftest$ac_exeext'
10899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900   (eval $ac_try) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; }; then
10904   eval "$as_ac_var=yes"
10905 else
10906   echo "$as_me: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 eval "$as_ac_var=no"
10909 fi
10910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10911 fi
10912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10914 if test `eval echo '${'$as_ac_var'}'` = yes; then
10915   cat >>confdefs.h <<_ACEOF
10916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10917 _ACEOF
10918
10919 fi
10920 done
10921
10922
10923 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10924 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10925 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   cat >conftest.$ac_ext <<_ACEOF
10929 #line $LINENO "configure"
10930 #include "confdefs.h"
10931 #include <unistd.h>
10932
10933 #ifdef F77_DUMMY_MAIN
10934 #  ifdef __cplusplus
10935      extern "C"
10936 #  endif
10937    int F77_DUMMY_MAIN() { return 1; }
10938 #endif
10939 int
10940 main ()
10941 {
10942 #ifndef fdatasync
10943   char *p = (char *) fdatasync;
10944 #endif
10945
10946   ;
10947   return 0;
10948 }
10949 _ACEOF
10950 rm -f conftest.$ac_objext
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952   (eval $ac_compile) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } &&
10956          { ac_try='test -s conftest.$ac_objext'
10957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958   (eval $ac_try) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962   ac_cv_have_decl_fdatasync=yes
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 ac_cv_have_decl_fdatasync=no
10967 fi
10968 rm -f conftest.$ac_objext conftest.$ac_ext
10969 fi
10970 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10971 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10972 if test $ac_cv_have_decl_fdatasync = yes; then
10973
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_DECL_FDATASYNC 1
10976 _ACEOF
10977
10978
10979 else
10980   cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_FDATASYNC 0
10982 _ACEOF
10983
10984
10985 fi
10986
10987
10988
10989 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10990 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10991 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   cat >conftest.$ac_ext <<_ACEOF
10995 #line $LINENO "configure"
10996 #include "confdefs.h"
10997 $ac_includes_default
10998 #include <netinet/in.h>
10999
11000 #ifdef F77_DUMMY_MAIN
11001 #  ifdef __cplusplus
11002      extern "C"
11003 #  endif
11004    int F77_DUMMY_MAIN() { return 1; }
11005 #endif
11006 int
11007 main ()
11008 {
11009 if ((struct sockaddr_in6 *) 0)
11010   return 0;
11011 if (sizeof (struct sockaddr_in6))
11012   return 0;
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019   (eval $ac_compile) 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -s conftest.$ac_objext'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; }; then
11029   ac_cv_type_struct_sockaddr_in6=yes
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 ac_cv_type_struct_sockaddr_in6=no
11034 fi
11035 rm -f conftest.$ac_objext conftest.$ac_ext
11036 fi
11037 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11038 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11039 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11040   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11041 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11042 if test "${ac_cv_func_inet_ntop+set}" = set; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   cat >conftest.$ac_ext <<_ACEOF
11046 #line $LINENO "configure"
11047 #include "confdefs.h"
11048 /* System header to define __stub macros and hopefully few prototypes,
11049     which can conflict with char inet_ntop (); below.  */
11050 #include <assert.h>
11051 /* Override any gcc2 internal prototype to avoid an error.  */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 /* We use char because int might match the return type of a gcc2
11056    builtin and then its argument prototype would still apply.  */
11057 char inet_ntop ();
11058 char (*f) ();
11059
11060 #ifdef F77_DUMMY_MAIN
11061 #  ifdef __cplusplus
11062      extern "C"
11063 #  endif
11064    int F77_DUMMY_MAIN() { return 1; }
11065 #endif
11066 int
11067 main ()
11068 {
11069 /* The GNU C library defines this for functions which it implements
11070     to always fail with ENOSYS.  Some functions are actually named
11071     something starting with __ and the normal name is an alias.  */
11072 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11073 choke me
11074 #else
11075 f = inet_ntop;
11076 #endif
11077
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084   (eval $ac_link) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -s conftest$ac_exeext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_cv_func_inet_ntop=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 ac_cv_func_inet_ntop=no
11099 fi
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11101 fi
11102 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11103 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11104 if test $ac_cv_func_inet_ntop = yes; then
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define HAVE_IPV6 1
11108 _ACEOF
11109
11110 fi
11111
11112 fi
11113
11114
11115 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11116 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11117 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   cat >conftest.$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11122 #include "confdefs.h"
11123 #include <machine/vmparam.h>
11124 #include <sys/exec.h>
11125
11126 #ifdef F77_DUMMY_MAIN
11127 #  ifdef __cplusplus
11128      extern "C"
11129 #  endif
11130    int F77_DUMMY_MAIN() { return 1; }
11131 #endif
11132 int
11133 main ()
11134 {
11135 PS_STRINGS->ps_nargvstr = 1;
11136 PS_STRINGS->ps_argvstr = "foo";
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143   (eval $ac_link) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } &&
11147          { ac_try='test -s conftest$ac_exeext'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   pgac_cv_var_PS_STRINGS=yes
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 pgac_cv_var_PS_STRINGS=no
11158 fi
11159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11160 fi
11161 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11162 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11163 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11164
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_PS_STRINGS
11167 _ACEOF
11168
11169 fi
11170
11171
11172 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11173 # is missing.  Yes, there are machines that have only one.  We may
11174 # also decide to use snprintf.c if snprintf() is present but does not
11175 # have working "long long int" support -- see below.
11176
11177 pgac_need_repl_snprintf=no
11178
11179 for ac_func in snprintf
11180 do
11181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11184 if eval "test \"\${$as_ac_var+set}\" = set"; then
11185   echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187   cat >conftest.$ac_ext <<_ACEOF
11188 #line $LINENO "configure"
11189 #include "confdefs.h"
11190 /* System header to define __stub macros and hopefully few prototypes,
11191     which can conflict with char $ac_func (); below.  */
11192 #include <assert.h>
11193 /* Override any gcc2 internal prototype to avoid an error.  */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 /* We use char because int might match the return type of a gcc2
11198    builtin and then its argument prototype would still apply.  */
11199 char $ac_func ();
11200 char (*f) ();
11201
11202 #ifdef F77_DUMMY_MAIN
11203 #  ifdef __cplusplus
11204      extern "C"
11205 #  endif
11206    int F77_DUMMY_MAIN() { return 1; }
11207 #endif
11208 int
11209 main ()
11210 {
11211 /* The GNU C library defines this for functions which it implements
11212     to always fail with ENOSYS.  Some functions are actually named
11213     something starting with __ and the normal name is an alias.  */
11214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11215 choke me
11216 #else
11217 f = $ac_func;
11218 #endif
11219
11220   ;
11221   return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226   (eval $ac_link) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -s conftest$ac_exeext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   eval "$as_ac_var=yes"
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 eval "$as_ac_var=no"
11241 fi
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11243 fi
11244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11246 if test `eval echo '${'$as_ac_var'}'` = yes; then
11247   cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 _ACEOF
11250
11251 else
11252   pgac_need_repl_snprintf=yes
11253 fi
11254 done
11255
11256
11257 for ac_func in vsnprintf
11258 do
11259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260 echo "$as_me:$LINENO: checking for $ac_func" >&5
11261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11262 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
11269     which can conflict with char $ac_func (); below.  */
11270 #include <assert.h>
11271 /* Override any gcc2 internal prototype to avoid an error.  */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 /* We use char because int might match the return type of a gcc2
11276    builtin and then its argument prototype would still apply.  */
11277 char $ac_func ();
11278 char (*f) ();
11279
11280 #ifdef F77_DUMMY_MAIN
11281 #  ifdef __cplusplus
11282      extern "C"
11283 #  endif
11284    int F77_DUMMY_MAIN() { return 1; }
11285 #endif
11286 int
11287 main ()
11288 {
11289 /* The GNU C library defines this for functions which it implements
11290     to always fail with ENOSYS.  Some functions are actually named
11291     something starting with __ and the normal name is an alias.  */
11292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11293 choke me
11294 #else
11295 f = $ac_func;
11296 #endif
11297
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304   (eval $ac_link) 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } &&
11308          { ac_try='test -s conftest$ac_exeext'
11309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310   (eval $ac_try) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); }; }; then
11314   eval "$as_ac_var=yes"
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11318 eval "$as_ac_var=no"
11319 fi
11320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11321 fi
11322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11324 if test `eval echo '${'$as_ac_var'}'` = yes; then
11325   cat >>confdefs.h <<_ACEOF
11326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11327 _ACEOF
11328
11329 else
11330   pgac_need_repl_snprintf=yes
11331 fi
11332 done
11333
11334
11335
11336 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11337 # include/c.h will provide declarations.  Note this is a separate test
11338 # from whether the functions exist in the C library --- there are
11339 # systems that have the functions but don't bother to declare them :-(
11340
11341 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11342 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11343 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   cat >conftest.$ac_ext <<_ACEOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349 $ac_includes_default
11350 #ifdef F77_DUMMY_MAIN
11351 #  ifdef __cplusplus
11352      extern "C"
11353 #  endif
11354    int F77_DUMMY_MAIN() { return 1; }
11355 #endif
11356 int
11357 main ()
11358 {
11359 #ifndef snprintf
11360   char *p = (char *) snprintf;
11361 #endif
11362
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369   (eval $ac_compile) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } &&
11373          { ac_try='test -s conftest.$ac_objext'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379   ac_cv_have_decl_snprintf=yes
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11383 ac_cv_have_decl_snprintf=no
11384 fi
11385 rm -f conftest.$ac_objext conftest.$ac_ext
11386 fi
11387 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11388 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11389 if test $ac_cv_have_decl_snprintf = yes; then
11390
11391 cat >>confdefs.h <<_ACEOF
11392 #define HAVE_DECL_SNPRINTF 1
11393 _ACEOF
11394
11395
11396 else
11397   cat >>confdefs.h <<_ACEOF
11398 #define HAVE_DECL_SNPRINTF 0
11399 _ACEOF
11400
11401
11402 fi
11403 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11404 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11405 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 $ac_includes_default
11412 #ifdef F77_DUMMY_MAIN
11413 #  ifdef __cplusplus
11414      extern "C"
11415 #  endif
11416    int F77_DUMMY_MAIN() { return 1; }
11417 #endif
11418 int
11419 main ()
11420 {
11421 #ifndef vsnprintf
11422   char *p = (char *) vsnprintf;
11423 #endif
11424
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431   (eval $ac_compile) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -s conftest.$ac_objext'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; }; then
11441   ac_cv_have_decl_vsnprintf=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 ac_cv_have_decl_vsnprintf=no
11446 fi
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11448 fi
11449 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11450 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11451 if test $ac_cv_have_decl_vsnprintf = yes; then
11452
11453 cat >>confdefs.h <<_ACEOF
11454 #define HAVE_DECL_VSNPRINTF 1
11455 _ACEOF
11456
11457
11458 else
11459   cat >>confdefs.h <<_ACEOF
11460 #define HAVE_DECL_VSNPRINTF 0
11461 _ACEOF
11462
11463
11464 fi
11465
11466
11467
11468
11469 # do this one the hard way in case isinf() is a macro
11470 echo "$as_me:$LINENO: checking for isinf" >&5
11471 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11472 if test "${ac_cv_func_isinf+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478 #include <math.h>
11479
11480 #ifdef F77_DUMMY_MAIN
11481 #  ifdef __cplusplus
11482      extern "C"
11483 #  endif
11484    int F77_DUMMY_MAIN() { return 1; }
11485 #endif
11486 int
11487 main ()
11488 {
11489 double x = 0.0; int res = isinf(x);
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -s conftest$ac_exeext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   ac_cv_func_isinf=yes
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 ac_cv_func_isinf=no
11511 fi
11512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11513 fi
11514 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11515 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11516
11517 if test $ac_cv_func_isinf = yes ; then
11518
11519 cat >>confdefs.h <<\_ACEOF
11520 #define HAVE_ISINF 1
11521 _ACEOF
11522
11523 else
11524   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11525   # Look for a way to implement a substitute for isinf()
11526
11527
11528
11529
11530 for ac_func in fpclass fp_class fp_class_d class
11531 do
11532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11533 echo "$as_me:$LINENO: checking for $ac_func" >&5
11534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11535 if eval "test \"\${$as_ac_var+set}\" = set"; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542     which can conflict with char $ac_func (); below.  */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error.  */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 /* We use char because int might match the return type of a gcc2
11549    builtin and then its argument prototype would still apply.  */
11550 char $ac_func ();
11551 char (*f) ();
11552
11553 #ifdef F77_DUMMY_MAIN
11554 #  ifdef __cplusplus
11555      extern "C"
11556 #  endif
11557    int F77_DUMMY_MAIN() { return 1; }
11558 #endif
11559 int
11560 main ()
11561 {
11562 /* The GNU C library defines this for functions which it implements
11563     to always fail with ENOSYS.  Some functions are actually named
11564     something starting with __ and the normal name is an alias.  */
11565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11566 choke me
11567 #else
11568 f = $ac_func;
11569 #endif
11570
11571   ;
11572   return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577   (eval $ac_link) 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } &&
11581          { ac_try='test -s conftest$ac_exeext'
11582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583   (eval $ac_try) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   eval "$as_ac_var=yes"
11588 else
11589   echo "$as_me: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 eval "$as_ac_var=no"
11592 fi
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 fi
11595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598   cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11600 _ACEOF
11601  break
11602 fi
11603 done
11604
11605 fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11622 do
11623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 echo "$as_me:$LINENO: checking for $ac_func" >&5
11625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11626 if eval "test \"\${$as_ac_var+set}\" = set"; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   cat >conftest.$ac_ext <<_ACEOF
11630 #line $LINENO "configure"
11631 #include "confdefs.h"
11632 /* System header to define __stub macros and hopefully few prototypes,
11633     which can conflict with char $ac_func (); below.  */
11634 #include <assert.h>
11635 /* Override any gcc2 internal prototype to avoid an error.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 /* We use char because int might match the return type of a gcc2
11640    builtin and then its argument prototype would still apply.  */
11641 char $ac_func ();
11642 char (*f) ();
11643
11644 #ifdef F77_DUMMY_MAIN
11645 #  ifdef __cplusplus
11646      extern "C"
11647 #  endif
11648    int F77_DUMMY_MAIN() { return 1; }
11649 #endif
11650 int
11651 main ()
11652 {
11653 /* The GNU C library defines this for functions which it implements
11654     to always fail with ENOSYS.  Some functions are actually named
11655     something starting with __ and the normal name is an alias.  */
11656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11657 choke me
11658 #else
11659 f = $ac_func;
11660 #endif
11661
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668   (eval $ac_link) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -s conftest$ac_exeext'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; }; then
11678   eval "$as_ac_var=yes"
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 cat conftest.$ac_ext >&5
11682 eval "$as_ac_var=no"
11683 fi
11684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11685 fi
11686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11688 if test `eval echo '${'$as_ac_var'}'` = yes; then
11689   cat >>confdefs.h <<_ACEOF
11690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11691 _ACEOF
11692
11693 else
11694   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11695 fi
11696 done
11697
11698
11699
11700 # system's version of getaddrinfo(), if any, may be used only if we found
11701 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11702 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11703
11704 for ac_func in getaddrinfo
11705 do
11706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 echo "$as_me:$LINENO: checking for $ac_func" >&5
11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   cat >conftest.$ac_ext <<_ACEOF
11713 #line $LINENO "configure"
11714 #include "confdefs.h"
11715 /* System header to define __stub macros and hopefully few prototypes,
11716     which can conflict with char $ac_func (); below.  */
11717 #include <assert.h>
11718 /* Override any gcc2 internal prototype to avoid an error.  */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 /* We use char because int might match the return type of a gcc2
11723    builtin and then its argument prototype would still apply.  */
11724 char $ac_func ();
11725 char (*f) ();
11726
11727 #ifdef F77_DUMMY_MAIN
11728 #  ifdef __cplusplus
11729      extern "C"
11730 #  endif
11731    int F77_DUMMY_MAIN() { return 1; }
11732 #endif
11733 int
11734 main ()
11735 {
11736 /* The GNU C library defines this for functions which it implements
11737     to always fail with ENOSYS.  Some functions are actually named
11738     something starting with __ and the normal name is an alias.  */
11739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11740 choke me
11741 #else
11742 f = $ac_func;
11743 #endif
11744
11745   ;
11746   return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751   (eval $ac_link) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -s conftest$ac_exeext'
11756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757   (eval $ac_try) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); }; }; then
11761   eval "$as_ac_var=yes"
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 eval "$as_ac_var=no"
11766 fi
11767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11768 fi
11769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11771 if test `eval echo '${'$as_ac_var'}'` = yes; then
11772   cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11774 _ACEOF
11775
11776 else
11777   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11778 fi
11779 done
11780
11781
11782 else
11783   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11784 fi
11785
11786 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11787 # We override the previous test that said fseeko/ftello didn't exist
11788 # OS tests are also done in include/c.h and port/fseeko.c
11789 case $host_os in bsdi*|netbsd*)
11790 ac_cv_func_fseeko=yes
11791 esac
11792
11793 # Solaris has a very slow qsort in certain cases, so we replace it.
11794 case $host_os in solaris*)
11795 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11796 esac
11797
11798 # Win32 can't to rename or unlink on an open file
11799 case $host_os in mingw*)
11800 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11801 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11802 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11803 esac
11804
11805 if test "$with_readline" = yes; then
11806   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11807 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11809 #line $LINENO "configure"
11810 #include "confdefs.h"
11811 #include <stdio.h>
11812 #ifdef HAVE_READLINE_READLINE_H
11813 # include <readline/readline.h>
11814 #elif defined(HAVE_READLINE_H)
11815 # include <readline.h>
11816 #endif
11817
11818 #ifdef F77_DUMMY_MAIN
11819 #  ifdef __cplusplus
11820      extern "C"
11821 #  endif
11822    int F77_DUMMY_MAIN() { return 1; }
11823 #endif
11824 int
11825 main ()
11826 {
11827 rl_completion_append_character = 'x';
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834   (eval $ac_link) 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } &&
11838          { ac_try='test -s conftest$ac_exeext'
11839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840   (eval $ac_try) 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }; }; then
11844   echo "$as_me:$LINENO: result: yes" >&5
11845 echo "${ECHO_T}yes" >&6
11846
11847 cat >>confdefs.h <<\_ACEOF
11848 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11849 _ACEOF
11850
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 echo "$as_me:$LINENO: result: no" >&5
11855 echo "${ECHO_T}no" >&6
11856 fi
11857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11858
11859
11860 for ac_func in rl_completion_matches rl_filename_completion_function
11861 do
11862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863 echo "$as_me:$LINENO: checking for $ac_func" >&5
11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11865 if eval "test \"\${$as_ac_var+set}\" = set"; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11870 #include "confdefs.h"
11871 /* System header to define __stub macros and hopefully few prototypes,
11872     which can conflict with char $ac_func (); below.  */
11873 #include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error.  */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 /* We use char because int might match the return type of a gcc2
11879    builtin and then its argument prototype would still apply.  */
11880 char $ac_func ();
11881 char (*f) ();
11882
11883 #ifdef F77_DUMMY_MAIN
11884 #  ifdef __cplusplus
11885      extern "C"
11886 #  endif
11887    int F77_DUMMY_MAIN() { return 1; }
11888 #endif
11889 int
11890 main ()
11891 {
11892 /* The GNU C library defines this for functions which it implements
11893     to always fail with ENOSYS.  Some functions are actually named
11894     something starting with __ and the normal name is an alias.  */
11895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11896 choke me
11897 #else
11898 f = $ac_func;
11899 #endif
11900
11901   ;
11902   return 0;
11903 }
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907   (eval $ac_link) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } &&
11911          { ac_try='test -s conftest$ac_exeext'
11912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913   (eval $ac_try) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; }; then
11917   eval "$as_ac_var=yes"
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 eval "$as_ac_var=no"
11922 fi
11923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11924 fi
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928   cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 _ACEOF
11931
11932 fi
11933 done
11934
11935
11936 for ac_func in replace_history_entry
11937 do
11938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11939 echo "$as_me:$LINENO: checking for $ac_func" >&5
11940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_var+set}\" = set"; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944   cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 #include "confdefs.h"
11947 /* System header to define __stub macros and hopefully few prototypes,
11948     which can conflict with char $ac_func (); below.  */
11949 #include <assert.h>
11950 /* Override any gcc2 internal prototype to avoid an error.  */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 /* We use char because int might match the return type of a gcc2
11955    builtin and then its argument prototype would still apply.  */
11956 char $ac_func ();
11957 char (*f) ();
11958
11959 #ifdef F77_DUMMY_MAIN
11960 #  ifdef __cplusplus
11961      extern "C"
11962 #  endif
11963    int F77_DUMMY_MAIN() { return 1; }
11964 #endif
11965 int
11966 main ()
11967 {
11968 /* The GNU C library defines this for functions which it implements
11969     to always fail with ENOSYS.  Some functions are actually named
11970     something starting with __ and the normal name is an alias.  */
11971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972 choke me
11973 #else
11974 f = $ac_func;
11975 #endif
11976
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 rm -f conftest.$ac_objext conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983   (eval $ac_link) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } &&
11987          { ac_try='test -s conftest$ac_exeext'
11988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989   (eval $ac_try) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   eval "$as_ac_var=yes"
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 eval "$as_ac_var=no"
11998 fi
11999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12000 fi
12001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12003 if test `eval echo '${'$as_ac_var'}'` = yes; then
12004   cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006 _ACEOF
12007
12008 fi
12009 done
12010
12011 fi
12012
12013
12014 echo "$as_me:$LINENO: checking for finite" >&5
12015 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12016 cat >conftest.$ac_ext <<_ACEOF
12017 #line $LINENO "configure"
12018 #include "confdefs.h"
12019 #include <math.h>
12020 #ifdef F77_DUMMY_MAIN
12021 #  ifdef __cplusplus
12022      extern "C"
12023 #  endif
12024    int F77_DUMMY_MAIN() { return 1; }
12025 #endif
12026 int
12027 main ()
12028 {
12029 int dummy=finite(1.0);
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036   (eval $ac_link) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } &&
12040          { ac_try='test -s conftest$ac_exeext'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046
12047 cat >>confdefs.h <<\_ACEOF
12048 #define HAVE_FINITE 1
12049 _ACEOF
12050
12051 echo "$as_me:$LINENO: result: yes" >&5
12052 echo "${ECHO_T}yes" >&6
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6
12058 fi
12059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12060
12061 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12062 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12063 cat >conftest.$ac_ext <<_ACEOF
12064 #line $LINENO "configure"
12065 #include "confdefs.h"
12066 #include <setjmp.h>
12067 #ifdef F77_DUMMY_MAIN
12068 #  ifdef __cplusplus
12069      extern "C"
12070 #  endif
12071    int F77_DUMMY_MAIN() { return 1; }
12072 #endif
12073 int
12074 main ()
12075 {
12076 sigjmp_buf x; sigsetjmp(x, 1);
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083   (eval $ac_link) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); } &&
12087          { ac_try='test -s conftest$ac_exeext'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_SIGSETJMP 1
12096 _ACEOF
12097
12098 echo "$as_me:$LINENO: result: yes" >&5
12099 echo "${ECHO_T}yes" >&6
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12103 echo "$as_me:$LINENO: result: no" >&5
12104 echo "${ECHO_T}no" >&6
12105 fi
12106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12107
12108 echo "$as_me:$LINENO: checking for syslog" >&5
12109 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12110 if test "${ac_cv_func_syslog+set}" = set; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113   cat >conftest.$ac_ext <<_ACEOF
12114 #line $LINENO "configure"
12115 #include "confdefs.h"
12116 /* System header to define __stub macros and hopefully few prototypes,
12117     which can conflict with char syslog (); below.  */
12118 #include <assert.h>
12119 /* Override any gcc2 internal prototype to avoid an error.  */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 /* We use char because int might match the return type of a gcc2
12124    builtin and then its argument prototype would still apply.  */
12125 char syslog ();
12126 char (*f) ();
12127
12128 #ifdef F77_DUMMY_MAIN
12129 #  ifdef __cplusplus
12130      extern "C"
12131 #  endif
12132    int F77_DUMMY_MAIN() { return 1; }
12133 #endif
12134 int
12135 main ()
12136 {
12137 /* The GNU C library defines this for functions which it implements
12138     to always fail with ENOSYS.  Some functions are actually named
12139     something starting with __ and the normal name is an alias.  */
12140 #if defined (__stub_syslog) || defined (__stub___syslog)
12141 choke me
12142 #else
12143 f = syslog;
12144 #endif
12145
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152   (eval $ac_link) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } &&
12156          { ac_try='test -s conftest$ac_exeext'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   ac_cv_func_syslog=yes
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 ac_cv_func_syslog=no
12167 fi
12168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12169 fi
12170 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12171 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12172 if test $ac_cv_func_syslog = yes; then
12173   if test "${ac_cv_header_syslog_h+set}" = set; then
12174   echo "$as_me:$LINENO: checking for syslog.h" >&5
12175 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12176 if test "${ac_cv_header_syslog_h+set}" = set; then
12177   echo $ECHO_N "(cached) $ECHO_C" >&6
12178 fi
12179 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12180 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12181 else
12182   # Is the header compilable?
12183 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12184 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12186 #line $LINENO "configure"
12187 #include "confdefs.h"
12188 $ac_includes_default
12189 #include <syslog.h>
12190 _ACEOF
12191 rm -f conftest.$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193   (eval $ac_compile) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); } &&
12197          { ac_try='test -s conftest.$ac_objext'
12198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199   (eval $ac_try) 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); }; }; then
12203   ac_header_compiler=yes
12204 else
12205   echo "$as_me: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12207 ac_header_compiler=no
12208 fi
12209 rm -f conftest.$ac_objext conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12211 echo "${ECHO_T}$ac_header_compiler" >&6
12212
12213 # Is the header present?
12214 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12215 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12217 #line $LINENO "configure"
12218 #include "confdefs.h"
12219 #include <syslog.h>
12220 _ACEOF
12221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12223   ac_status=$?
12224   egrep -v '^ *\+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } >/dev/null; then
12229   if test -s conftest.err; then
12230     ac_cpp_err=$ac_c_preproc_warn_flag
12231   else
12232     ac_cpp_err=
12233   fi
12234 else
12235   ac_cpp_err=yes
12236 fi
12237 if test -z "$ac_cpp_err"; then
12238   ac_header_preproc=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241   cat conftest.$ac_ext >&5
12242   ac_header_preproc=no
12243 fi
12244 rm -f conftest.err conftest.$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12246 echo "${ECHO_T}$ac_header_preproc" >&6
12247
12248 # So?  What about this header?
12249 case $ac_header_compiler:$ac_header_preproc in
12250   yes:no )
12251     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12252 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12254 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12255   no:yes )
12256     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12258     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12260     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12261 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12262 esac
12263 echo "$as_me:$LINENO: checking for syslog.h" >&5
12264 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12265 if test "${ac_cv_header_syslog_h+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   ac_cv_header_syslog_h=$ac_header_preproc
12269 fi
12270 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12271 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12272
12273 fi
12274 if test $ac_cv_header_syslog_h = yes; then
12275
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_SYSLOG 1
12278 _ACEOF
12279
12280 fi
12281
12282
12283 fi
12284
12285
12286 echo "$as_me:$LINENO: checking for optreset" >&5
12287 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12288 if test "${pgac_cv_var_int_optreset+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   cat >conftest.$ac_ext <<_ACEOF
12292 #line $LINENO "configure"
12293 #include "confdefs.h"
12294 #include <unistd.h>
12295 #ifdef F77_DUMMY_MAIN
12296 #  ifdef __cplusplus
12297      extern "C"
12298 #  endif
12299    int F77_DUMMY_MAIN() { return 1; }
12300 #endif
12301 int
12302 main ()
12303 {
12304 extern int optreset; optreset = 1;
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311   (eval $ac_link) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } &&
12315          { ac_try='test -s conftest$ac_exeext'
12316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317   (eval $ac_try) 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; }; then
12321   pgac_cv_var_int_optreset=yes
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12325 pgac_cv_var_int_optreset=no
12326 fi
12327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12328 fi
12329 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12330 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12331 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12332
12333 cat >>confdefs.h <<\_ACEOF
12334 #define HAVE_INT_OPTRESET 1
12335 _ACEOF
12336
12337 fi
12338
12339
12340
12341 for ac_func in strtoll strtoq
12342 do
12343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12344 echo "$as_me:$LINENO: checking for $ac_func" >&5
12345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12346 if eval "test \"\${$as_ac_var+set}\" = set"; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   cat >conftest.$ac_ext <<_ACEOF
12350 #line $LINENO "configure"
12351 #include "confdefs.h"
12352 /* System header to define __stub macros and hopefully few prototypes,
12353     which can conflict with char $ac_func (); below.  */
12354 #include <assert.h>
12355 /* Override any gcc2 internal prototype to avoid an error.  */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 /* We use char because int might match the return type of a gcc2
12360    builtin and then its argument prototype would still apply.  */
12361 char $ac_func ();
12362 char (*f) ();
12363
12364 #ifdef F77_DUMMY_MAIN
12365 #  ifdef __cplusplus
12366      extern "C"
12367 #  endif
12368    int F77_DUMMY_MAIN() { return 1; }
12369 #endif
12370 int
12371 main ()
12372 {
12373 /* The GNU C library defines this for functions which it implements
12374     to always fail with ENOSYS.  Some functions are actually named
12375     something starting with __ and the normal name is an alias.  */
12376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12377 choke me
12378 #else
12379 f = $ac_func;
12380 #endif
12381
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388   (eval $ac_link) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -s conftest$ac_exeext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   eval "$as_ac_var=yes"
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12402 eval "$as_ac_var=no"
12403 fi
12404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12405 fi
12406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12408 if test `eval echo '${'$as_ac_var'}'` = yes; then
12409   cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12411 _ACEOF
12412  break
12413 fi
12414 done
12415
12416
12417
12418 for ac_func in strtoull strtouq
12419 do
12420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12421 echo "$as_me:$LINENO: checking for $ac_func" >&5
12422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12423 if eval "test \"\${$as_ac_var+set}\" = set"; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   cat >conftest.$ac_ext <<_ACEOF
12427 #line $LINENO "configure"
12428 #include "confdefs.h"
12429 /* System header to define __stub macros and hopefully few prototypes,
12430     which can conflict with char $ac_func (); below.  */
12431 #include <assert.h>
12432 /* Override any gcc2 internal prototype to avoid an error.  */
12433 #ifdef __cplusplus
12434 extern "C"
12435 #endif
12436 /* We use char because int might match the return type of a gcc2
12437    builtin and then its argument prototype would still apply.  */
12438 char $ac_func ();
12439 char (*f) ();
12440
12441 #ifdef F77_DUMMY_MAIN
12442 #  ifdef __cplusplus
12443      extern "C"
12444 #  endif
12445    int F77_DUMMY_MAIN() { return 1; }
12446 #endif
12447 int
12448 main ()
12449 {
12450 /* The GNU C library defines this for functions which it implements
12451     to always fail with ENOSYS.  Some functions are actually named
12452     something starting with __ and the normal name is an alias.  */
12453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12454 choke me
12455 #else
12456 f = $ac_func;
12457 #endif
12458
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465   (eval $ac_link) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -s conftest$ac_exeext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   eval "$as_ac_var=yes"
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 eval "$as_ac_var=no"
12480 fi
12481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12482 fi
12483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12485 if test `eval echo '${'$as_ac_var'}'` = yes; then
12486   cat >>confdefs.h <<_ACEOF
12487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12488 _ACEOF
12489  break
12490 fi
12491 done
12492
12493
12494 # Check for one of atexit() or on_exit()
12495
12496 for ac_func in atexit
12497 do
12498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12501 if eval "test \"\${$as_ac_var+set}\" = set"; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12506 #include "confdefs.h"
12507 /* System header to define __stub macros and hopefully few prototypes,
12508     which can conflict with char $ac_func (); below.  */
12509 #include <assert.h>
12510 /* Override any gcc2 internal prototype to avoid an error.  */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 /* We use char because int might match the return type of a gcc2
12515    builtin and then its argument prototype would still apply.  */
12516 char $ac_func ();
12517 char (*f) ();
12518
12519 #ifdef F77_DUMMY_MAIN
12520 #  ifdef __cplusplus
12521      extern "C"
12522 #  endif
12523    int F77_DUMMY_MAIN() { return 1; }
12524 #endif
12525 int
12526 main ()
12527 {
12528 /* The GNU C library defines this for functions which it implements
12529     to always fail with ENOSYS.  Some functions are actually named
12530     something starting with __ and the normal name is an alias.  */
12531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12532 choke me
12533 #else
12534 f = $ac_func;
12535 #endif
12536
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543   (eval $ac_link) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } &&
12547          { ac_try='test -s conftest$ac_exeext'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; }; then
12553   eval "$as_ac_var=yes"
12554 else
12555   echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 eval "$as_ac_var=no"
12558 fi
12559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12560 fi
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12564   cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12566 _ACEOF
12567
12568 else
12569
12570 for ac_func in on_exit
12571 do
12572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12575 if eval "test \"\${$as_ac_var+set}\" = set"; then
12576   echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578   cat >conftest.$ac_ext <<_ACEOF
12579 #line $LINENO "configure"
12580 #include "confdefs.h"
12581 /* System header to define __stub macros and hopefully few prototypes,
12582     which can conflict with char $ac_func (); below.  */
12583 #include <assert.h>
12584 /* Override any gcc2 internal prototype to avoid an error.  */
12585 #ifdef __cplusplus
12586 extern "C"
12587 #endif
12588 /* We use char because int might match the return type of a gcc2
12589    builtin and then its argument prototype would still apply.  */
12590 char $ac_func ();
12591 char (*f) ();
12592
12593 #ifdef F77_DUMMY_MAIN
12594 #  ifdef __cplusplus
12595      extern "C"
12596 #  endif
12597    int F77_DUMMY_MAIN() { return 1; }
12598 #endif
12599 int
12600 main ()
12601 {
12602 /* The GNU C library defines this for functions which it implements
12603     to always fail with ENOSYS.  Some functions are actually named
12604     something starting with __ and the normal name is an alias.  */
12605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12606 choke me
12607 #else
12608 f = $ac_func;
12609 #endif
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617   (eval $ac_link) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } &&
12621          { ac_try='test -s conftest$ac_exeext'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   eval "$as_ac_var=yes"
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 eval "$as_ac_var=no"
12632 fi
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12634 fi
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638   cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12640 _ACEOF
12641
12642 else
12643   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12644 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12645    { (exit 1); exit 1; }; }
12646 fi
12647 done
12648
12649 fi
12650 done
12651
12652
12653 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12654 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12655 if test "${ac_cv_sys_largefile_source+set}" = set; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   while :; do
12659   ac_cv_sys_largefile_source=no
12660   cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 #include "confdefs.h"
12663 #include <stdio.h>
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 return !fseeko;
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680   (eval $ac_compile) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } &&
12684          { ac_try='test -s conftest.$ac_objext'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   break
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 fi
12695 rm -f conftest.$ac_objext conftest.$ac_ext
12696   cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12698 #include "confdefs.h"
12699 #define _LARGEFILE_SOURCE 1
12700 #include <stdio.h>
12701 #ifdef F77_DUMMY_MAIN
12702 #  ifdef __cplusplus
12703      extern "C"
12704 #  endif
12705    int F77_DUMMY_MAIN() { return 1; }
12706 #endif
12707 int
12708 main ()
12709 {
12710 return !fseeko;
12711   ;
12712   return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12717   (eval $ac_compile) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -s conftest.$ac_objext'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; }; then
12727   ac_cv_sys_largefile_source=1; break
12728 else
12729   echo "$as_me: failed program was:" >&5
12730 cat conftest.$ac_ext >&5
12731 fi
12732 rm -f conftest.$ac_objext conftest.$ac_ext
12733   break
12734 done
12735 fi
12736 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12737 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12738 if test "$ac_cv_sys_largefile_source" != no; then
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12742 _ACEOF
12743
12744 fi
12745 rm -f conftest*
12746
12747 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12748 # in glibc 2.1.3, but that breaks too many other things.
12749 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12750 echo "$as_me:$LINENO: checking for fseeko" >&5
12751 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12752 if test "${ac_cv_func_fseeko+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   cat >conftest.$ac_ext <<_ACEOF
12756 #line $LINENO "configure"
12757 #include "confdefs.h"
12758 #include <stdio.h>
12759 #ifdef F77_DUMMY_MAIN
12760 #  ifdef __cplusplus
12761      extern "C"
12762 #  endif
12763    int F77_DUMMY_MAIN() { return 1; }
12764 #endif
12765 int
12766 main ()
12767 {
12768 return fseeko && fseeko (stdin, 0, 0);
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775   (eval $ac_link) 2>&5
12776   ac_status=$?
12777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); } &&
12779          { ac_try='test -s conftest$ac_exeext'
12780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781   (eval $ac_try) 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); }; }; then
12785   ac_cv_func_fseeko=yes
12786 else
12787   echo "$as_me: failed program was:" >&5
12788 cat conftest.$ac_ext >&5
12789 ac_cv_func_fseeko=no
12790 fi
12791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12792 fi
12793 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12794 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12795 if test $ac_cv_func_fseeko = yes; then
12796
12797 cat >>confdefs.h <<\_ACEOF
12798 #define HAVE_FSEEKO 1
12799 _ACEOF
12800
12801 fi
12802
12803
12804 #
12805 # Pthreads
12806 #
12807 # For each platform, we need to know about any special compile and link
12808 # libraries, and whether the normal C function names are thread-safe.
12809 #
12810 if test "$enable_thread_safeness" = yes; then
12811 if test "${ac_cv_header_pthread_h+set}" = set; then
12812   echo "$as_me:$LINENO: checking for pthread.h" >&5
12813 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12814 if test "${ac_cv_header_pthread_h+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 fi
12817 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12818 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12819 else
12820   # Is the header compilable?
12821 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12822 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 #line $LINENO "configure"
12825 #include "confdefs.h"
12826 $ac_includes_default
12827 #include <pthread.h>
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831   (eval $ac_compile) 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -s conftest.$ac_objext'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; }; then
12841   ac_header_compiler=yes
12842 else
12843   echo "$as_me: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 ac_header_compiler=no
12846 fi
12847 rm -f conftest.$ac_objext conftest.$ac_ext
12848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12849 echo "${ECHO_T}$ac_header_compiler" >&6
12850
12851 # Is the header present?
12852 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12853 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12857 #include <pthread.h>
12858 _ACEOF
12859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12861   ac_status=$?
12862   egrep -v '^ *\+' conftest.er1 >conftest.err
12863   rm -f conftest.er1
12864   cat conftest.err >&5
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } >/dev/null; then
12867   if test -s conftest.err; then
12868     ac_cpp_err=$ac_c_preproc_warn_flag
12869   else
12870     ac_cpp_err=
12871   fi
12872 else
12873   ac_cpp_err=yes
12874 fi
12875 if test -z "$ac_cpp_err"; then
12876   ac_header_preproc=yes
12877 else
12878   echo "$as_me: failed program was:" >&5
12879   cat conftest.$ac_ext >&5
12880   ac_header_preproc=no
12881 fi
12882 rm -f conftest.err conftest.$ac_ext
12883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12884 echo "${ECHO_T}$ac_header_preproc" >&6
12885
12886 # So?  What about this header?
12887 case $ac_header_compiler:$ac_header_preproc in
12888   yes:no )
12889     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
12890 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12891     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12892 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12893   no:yes )
12894     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
12895 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
12896     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
12897 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
12898     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12899 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12900 esac
12901 echo "$as_me:$LINENO: checking for pthread.h" >&5
12902 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12903 if test "${ac_cv_header_pthread_h+set}" = set; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906   ac_cv_header_pthread_h=$ac_header_preproc
12907 fi
12908 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12909 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12910
12911 fi
12912 if test $ac_cv_header_pthread_h = yes; then
12913   :
12914 else
12915   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
12916 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
12917    { (exit 1); exit 1; }; }
12918 fi
12919
12920
12921
12922 if test "$SUPPORTS_THREADS" != yes; then
12923 { { echo "$as_me:$LINENO: error:
12924 Cannot enable threads on your platform.
12925 Please report your platform threading info to the PostgreSQL mailing lists
12926 so it can be added to the next release.  Report all compile flags, link flags,
12927 functions, or libraries required for threading support.
12928 " >&5
12929 echo "$as_me: error:
12930 Cannot enable threads on your platform.
12931 Please report your platform threading info to the PostgreSQL mailing lists
12932 so it can be added to the next release.  Report all compile flags, link flags,
12933 functions, or libraries required for threading support.
12934 " >&2;}
12935    { (exit 1); exit 1; }; }
12936 fi
12937 fi
12938
12939
12940
12941
12942 #
12943 # Check for re-entrant versions of certain functions
12944 #
12945 # Include special flags if threads are enabled _and_ if required for
12946 # threading on this platform.  Some platforms have *_r functions but
12947 # their natively named funcs are threadsafe, and should be used instead.
12948 #
12949 # One trick here is that if we don't call AC_CHECK_FUNCS, the
12950 # functions are marked "not found", which is perfect.
12951 #
12952 if test "$enable_thread_safeness" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
12953 _CFLAGS="$CFLAGS"
12954 _LIB="$LIBS"
12955 CFLAGS="$CFLAGS $TREAD_CFLAGS"
12956 LIBS="$LIBS $THREAD_LIBS"
12957
12958
12959
12960 for ac_func in strerror_r getpwuid_r gethostbyname_r
12961 do
12962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12963 echo "$as_me:$LINENO: checking for $ac_func" >&5
12964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12965 if eval "test \"\${$as_ac_var+set}\" = set"; then
12966   echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968   cat >conftest.$ac_ext <<_ACEOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971 /* System header to define __stub macros and hopefully few prototypes,
12972     which can conflict with char $ac_func (); below.  */
12973 #include <assert.h>
12974 /* Override any gcc2 internal prototype to avoid an error.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 /* We use char because int might match the return type of a gcc2
12979    builtin and then its argument prototype would still apply.  */
12980 char $ac_func ();
12981 char (*f) ();
12982
12983 #ifdef F77_DUMMY_MAIN
12984 #  ifdef __cplusplus
12985      extern "C"
12986 #  endif
12987    int F77_DUMMY_MAIN() { return 1; }
12988 #endif
12989 int
12990 main ()
12991 {
12992 /* The GNU C library defines this for functions which it implements
12993     to always fail with ENOSYS.  Some functions are actually named
12994     something starting with __ and the normal name is an alias.  */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996 choke me
12997 #else
12998 f = $ac_func;
12999 #endif
13000
13001   ;
13002   return 0;
13003 }
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007   (eval $ac_link) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); } &&
13011          { ac_try='test -s conftest$ac_exeext'
13012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013   (eval $ac_try) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; }; then
13017   eval "$as_ac_var=yes"
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13021 eval "$as_ac_var=no"
13022 fi
13023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13024 fi
13025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13027 if test `eval echo '${'$as_ac_var'}'` = yes; then
13028   cat >>confdefs.h <<_ACEOF
13029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13030 _ACEOF
13031
13032 fi
13033 done
13034
13035 CFLAGS="$_CFLAGS"
13036 LIB="$_LIBS"
13037 fi
13038
13039
13040 # This test makes sure that run tests work at all.  Sometimes a shared
13041 # library is found by the linker, but the runtime linker can't find it.
13042 # This check should come after all modifications of compiler or linker
13043 # variables, and before any other run tests.
13044 echo "$as_me:$LINENO: checking test program" >&5
13045 echo $ECHO_N "checking test program... $ECHO_C" >&6
13046 if test "$cross_compiling" = yes; then
13047   echo "$as_me:$LINENO: result: cross-compiling" >&5
13048 echo "${ECHO_T}cross-compiling" >&6
13049 else
13050   cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053 int main() { return 0; }
13054 _ACEOF
13055 rm -f conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057   (eval $ac_link) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   echo "$as_me:$LINENO: result: ok" >&5
13067 echo "${ECHO_T}ok" >&6
13068 else
13069   echo "$as_me: program exited with status $ac_status" >&5
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 ( exit $ac_status )
13073 echo "$as_me:$LINENO: result: failed" >&5
13074 echo "${ECHO_T}failed" >&6
13075 { { echo "$as_me:$LINENO: error:
13076 *** Could not execute a simple test program.  This may be a problem
13077 *** related to locating shared libraries.  Check the file 'config.log'
13078 *** for the exact reason." >&5
13079 echo "$as_me: error:
13080 *** Could not execute a simple test program.  This may be a problem
13081 *** related to locating shared libraries.  Check the file 'config.log'
13082 *** for the exact reason." >&2;}
13083    { (exit 1); exit 1; }; }
13084 fi
13085 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13086 fi
13087
13088
13089
13090 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13091 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13092 if test "${pgac_cv_type_long_int_64+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   if test "$cross_compiling" = yes; then
13096   # If cross-compiling, check the size reported by the compiler and
13097 # trust that the arithmetic works.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13100 #include "confdefs.h"
13101
13102 #ifdef F77_DUMMY_MAIN
13103 #  ifdef __cplusplus
13104      extern "C"
13105 #  endif
13106    int F77_DUMMY_MAIN() { return 1; }
13107 #endif
13108 int
13109 main ()
13110 {
13111 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13112 test_array [0] = 0
13113
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 rm -f conftest.$ac_objext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120   (eval $ac_compile) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); } &&
13124          { ac_try='test -s conftest.$ac_objext'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   pgac_cv_type_long_int_64=yes
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 pgac_cv_type_long_int_64=no
13135 fi
13136 rm -f conftest.$ac_objext conftest.$ac_ext
13137 else
13138   cat >conftest.$ac_ext <<_ACEOF
13139 #line $LINENO "configure"
13140 #include "confdefs.h"
13141 typedef long int int64;
13142
13143 /*
13144  * These are globals to discourage the compiler from folding all the
13145  * arithmetic tests down to compile-time constants.
13146  */
13147 int64 a = 20000001;
13148 int64 b = 40000005;
13149
13150 int does_int64_work()
13151 {
13152   int64 c,d;
13153
13154   if (sizeof(int64) != 8)
13155     return 0;                   /* definitely not the right size */
13156
13157   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13158   c = a * b;
13159   d = (c + b) / b;
13160   if (d != a+1)
13161     return 0;
13162   return 1;
13163 }
13164 main() {
13165   exit(! does_int64_work());
13166 }
13167 _ACEOF
13168 rm -f conftest$ac_exeext
13169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13170   (eval $ac_link) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175   (eval $ac_try) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   pgac_cv_type_long_int_64=yes
13180 else
13181   echo "$as_me: program exited with status $ac_status" >&5
13182 echo "$as_me: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 ( exit $ac_status )
13185 pgac_cv_type_long_int_64=no
13186 fi
13187 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13188 fi
13189 fi
13190 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13191 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13192
13193 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13194 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13195
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_LONG_INT_64
13198 _ACEOF
13199
13200 fi
13201
13202
13203 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13204   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13205 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13206 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13207   echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209   if test "$cross_compiling" = yes; then
13210   # If cross-compiling, check the size reported by the compiler and
13211 # trust that the arithmetic works.
13212 cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13214 #include "confdefs.h"
13215
13216 #ifdef F77_DUMMY_MAIN
13217 #  ifdef __cplusplus
13218      extern "C"
13219 #  endif
13220    int F77_DUMMY_MAIN() { return 1; }
13221 #endif
13222 int
13223 main ()
13224 {
13225 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13226 test_array [0] = 0
13227
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234   (eval $ac_compile) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -s conftest.$ac_objext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   pgac_cv_type_long_long_int_64=yes
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 cat conftest.$ac_ext >&5
13248 pgac_cv_type_long_long_int_64=no
13249 fi
13250 rm -f conftest.$ac_objext conftest.$ac_ext
13251 else
13252   cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13254 #include "confdefs.h"
13255 typedef long long int int64;
13256
13257 /*
13258  * These are globals to discourage the compiler from folding all the
13259  * arithmetic tests down to compile-time constants.
13260  */
13261 int64 a = 20000001;
13262 int64 b = 40000005;
13263
13264 int does_int64_work()
13265 {
13266   int64 c,d;
13267
13268   if (sizeof(int64) != 8)
13269     return 0;                   /* definitely not the right size */
13270
13271   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13272   c = a * b;
13273   d = (c + b) / b;
13274   if (d != a+1)
13275     return 0;
13276   return 1;
13277 }
13278 main() {
13279   exit(! does_int64_work());
13280 }
13281 _ACEOF
13282 rm -f conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284   (eval $ac_link) 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289   (eval $ac_try) 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); }; }; then
13293   pgac_cv_type_long_long_int_64=yes
13294 else
13295   echo "$as_me: program exited with status $ac_status" >&5
13296 echo "$as_me: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13298 ( exit $ac_status )
13299 pgac_cv_type_long_long_int_64=no
13300 fi
13301 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13302 fi
13303 fi
13304 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13305 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13306
13307 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13308 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13309
13310 cat >>confdefs.h <<\_ACEOF
13311 #define HAVE_LONG_LONG_INT_64
13312 _ACEOF
13313
13314 fi
13315
13316 fi
13317
13318
13319
13320 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13321   cat >conftest.$ac_ext <<_ACEOF
13322 #line $LINENO "configure"
13323 #include "confdefs.h"
13324
13325 #define INT64CONST(x)  x##LL
13326 long long int foo = INT64CONST(0x1234567890123456);
13327
13328 #ifdef F77_DUMMY_MAIN
13329 #  ifdef __cplusplus
13330      extern "C"
13331 #  endif
13332    int F77_DUMMY_MAIN() { return 1; }
13333 #endif
13334 int
13335 main ()
13336 {
13337
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344   (eval $ac_compile) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } &&
13348          { ac_try='test -s conftest.$ac_objext'
13349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350   (eval $ac_try) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }; then
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define HAVE_LL_CONSTANTS 1
13357 _ACEOF
13358
13359 else
13360   echo "$as_me: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 fi
13363 rm -f conftest.$ac_objext conftest.$ac_ext
13364 fi
13365
13366
13367 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13368 # we found we need to use "long long int", better check.  We cope with
13369 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13370 # neither works, fall back to our own snprintf emulation (which we
13371 # know uses %lld).
13372
13373 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13374   if test $pgac_need_repl_snprintf = no; then
13375     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13376 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13377 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380   for pgac_format in '%lld' '%qd' '%I64d'; do
13381 if test "$cross_compiling" = yes; then
13382   pgac_cv_snprintf_long_long_int_format=cross; break
13383 else
13384   cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13386 #include "confdefs.h"
13387 #include <stdio.h>
13388 typedef long long int int64;
13389 #define INT64_FORMAT "$pgac_format"
13390
13391 int64 a = 20000001;
13392 int64 b = 40000005;
13393
13394 int does_int64_snprintf_work()
13395 {
13396   int64 c;
13397   char buf[100];
13398
13399   if (sizeof(int64) != 8)
13400     return 0;                   /* doesn't look like the right size */
13401
13402   c = a * b;
13403   snprintf(buf, 100, INT64_FORMAT, c);
13404   if (strcmp(buf, "800000140000005") != 0)
13405     return 0;                   /* either multiply or snprintf is busted */
13406   return 1;
13407 }
13408 main() {
13409   exit(! does_int64_snprintf_work());
13410 }
13411 _ACEOF
13412 rm -f conftest$ac_exeext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13414   (eval $ac_link) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419   (eval $ac_try) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; }; then
13423   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13424 else
13425   echo "$as_me: program exited with status $ac_status" >&5
13426 echo "$as_me: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13428 fi
13429 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 done
13432 fi
13433
13434 LONG_LONG_INT_FORMAT=''
13435
13436 case $pgac_cv_snprintf_long_long_int_format in
13437   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13438 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13439   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13440 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13441          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13442   *)     echo "$as_me:$LINENO: result: none" >&5
13443 echo "${ECHO_T}none" >&6;;
13444 esac
13445     if test "$LONG_LONG_INT_FORMAT" = ""; then
13446       # Force usage of our own snprintf, since system snprintf is broken
13447       pgac_need_repl_snprintf=yes
13448       LONG_LONG_INT_FORMAT='%lld'
13449     fi
13450   else
13451     # Here if we previously decided we needed to use our own snprintf
13452     LONG_LONG_INT_FORMAT='%lld'
13453   fi
13454   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13455 else
13456   # Here if we are not using 'long long int' at all
13457   INT64_FORMAT='"%ld"'
13458 fi
13459
13460
13461 cat >>confdefs.h <<_ACEOF
13462 #define INT64_FORMAT $INT64_FORMAT
13463 _ACEOF
13464
13465
13466 if test $pgac_need_repl_snprintf = yes; then
13467   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13468 fi
13469
13470 # Need a #define for the size of Datum (unsigned long)
13471 echo "$as_me:$LINENO: checking for unsigned long" >&5
13472 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13473 if test "${ac_cv_type_unsigned_long+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 #include "confdefs.h"
13479 $ac_includes_default
13480 #ifdef F77_DUMMY_MAIN
13481 #  ifdef __cplusplus
13482      extern "C"
13483 #  endif
13484    int F77_DUMMY_MAIN() { return 1; }
13485 #endif
13486 int
13487 main ()
13488 {
13489 if ((unsigned long *) 0)
13490   return 0;
13491 if (sizeof (unsigned long))
13492   return 0;
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499   (eval $ac_compile) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_type_unsigned_long=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 ac_cv_type_unsigned_long=no
13514 fi
13515 rm -f conftest.$ac_objext conftest.$ac_ext
13516 fi
13517 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13518 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13519
13520 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13521 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13522 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   if test "$ac_cv_type_unsigned_long" = yes; then
13526   # The cast to unsigned long works around a bug in the HP C Compiler
13527   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13528   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13529   # This bug is HP SR number 8606223364.
13530   if test "$cross_compiling" = yes; then
13531   # Depending upon the size, compute the lo and hi bounds.
13532 cat >conftest.$ac_ext <<_ACEOF
13533 #line $LINENO "configure"
13534 #include "confdefs.h"
13535 $ac_includes_default
13536 #ifdef F77_DUMMY_MAIN
13537 #  ifdef __cplusplus
13538      extern "C"
13539 #  endif
13540    int F77_DUMMY_MAIN() { return 1; }
13541 #endif
13542 int
13543 main ()
13544 {
13545 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13546 test_array [0] = 0
13547
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554   (eval $ac_compile) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); } &&
13558          { ac_try='test -s conftest.$ac_objext'
13559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560   (eval $ac_try) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; }; then
13564   ac_lo=0 ac_mid=0
13565   while :; do
13566     cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13568 #include "confdefs.h"
13569 $ac_includes_default
13570 #ifdef F77_DUMMY_MAIN
13571 #  ifdef __cplusplus
13572      extern "C"
13573 #  endif
13574    int F77_DUMMY_MAIN() { return 1; }
13575 #endif
13576 int
13577 main ()
13578 {
13579 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13580 test_array [0] = 0
13581
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 rm -f conftest.$ac_objext
13587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13588   (eval $ac_compile) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -s conftest.$ac_objext'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_hi=$ac_mid; break
13599 else
13600   echo "$as_me: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13602 ac_lo=`expr $ac_mid + 1`
13603                     if test $ac_lo -le $ac_mid; then
13604                       ac_lo= ac_hi=
13605                       break
13606                     fi
13607                     ac_mid=`expr 2 '*' $ac_mid + 1`
13608 fi
13609 rm -f conftest.$ac_objext conftest.$ac_ext
13610   done
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 cat >conftest.$ac_ext <<_ACEOF
13615 #line $LINENO "configure"
13616 #include "confdefs.h"
13617 $ac_includes_default
13618 #ifdef F77_DUMMY_MAIN
13619 #  ifdef __cplusplus
13620      extern "C"
13621 #  endif
13622    int F77_DUMMY_MAIN() { return 1; }
13623 #endif
13624 int
13625 main ()
13626 {
13627 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13628 test_array [0] = 0
13629
13630   ;
13631   return 0;
13632 }
13633 _ACEOF
13634 rm -f conftest.$ac_objext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636   (eval $ac_compile) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -s conftest.$ac_objext'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; }; then
13646   ac_hi=-1 ac_mid=-1
13647   while :; do
13648     cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13651 $ac_includes_default
13652 #ifdef F77_DUMMY_MAIN
13653 #  ifdef __cplusplus
13654      extern "C"
13655 #  endif
13656    int F77_DUMMY_MAIN() { return 1; }
13657 #endif
13658 int
13659 main ()
13660 {
13661 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13662 test_array [0] = 0
13663
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670   (eval $ac_compile) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -s conftest.$ac_objext'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   ac_lo=$ac_mid; break
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 ac_hi=`expr '(' $ac_mid ')' - 1`
13685                        if test $ac_mid -le $ac_hi; then
13686                          ac_lo= ac_hi=
13687                          break
13688                        fi
13689                        ac_mid=`expr 2 '*' $ac_mid`
13690 fi
13691 rm -f conftest.$ac_objext conftest.$ac_ext
13692   done
13693 else
13694   echo "$as_me: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13696 ac_lo= ac_hi=
13697 fi
13698 rm -f conftest.$ac_objext conftest.$ac_ext
13699 fi
13700 rm -f conftest.$ac_objext conftest.$ac_ext
13701 # Binary search between lo and hi bounds.
13702 while test "x$ac_lo" != "x$ac_hi"; do
13703   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13704   cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13706 #include "confdefs.h"
13707 $ac_includes_default
13708 #ifdef F77_DUMMY_MAIN
13709 #  ifdef __cplusplus
13710      extern "C"
13711 #  endif
13712    int F77_DUMMY_MAIN() { return 1; }
13713 #endif
13714 int
13715 main ()
13716 {
13717 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13718 test_array [0] = 0
13719
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 rm -f conftest.$ac_objext
13725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13726   (eval $ac_compile) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -s conftest.$ac_objext'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   ac_hi=$ac_mid
13737 else
13738   echo "$as_me: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 ac_lo=`expr '(' $ac_mid ')' + 1`
13741 fi
13742 rm -f conftest.$ac_objext conftest.$ac_ext
13743 done
13744 case $ac_lo in
13745 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13746 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13747 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13748    { (exit 1); exit 1; }; } ;;
13749 esac
13750 else
13751   if test "$cross_compiling" = yes; then
13752   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13753 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13754    { (exit 1); exit 1; }; }
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 #include "confdefs.h"
13759 $ac_includes_default
13760 long longval () { return (long) (sizeof (unsigned long)); }
13761 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13762 #include <stdio.h>
13763 #include <stdlib.h>
13764 #ifdef F77_DUMMY_MAIN
13765 #  ifdef __cplusplus
13766      extern "C"
13767 #  endif
13768    int F77_DUMMY_MAIN() { return 1; }
13769 #endif
13770 int
13771 main ()
13772 {
13773
13774   FILE *f = fopen ("conftest.val", "w");
13775   if (! f)
13776     exit (1);
13777   if (((long) (sizeof (unsigned long))) < 0)
13778     {
13779       long i = longval ();
13780       if (i != ((long) (sizeof (unsigned long))))
13781         exit (1);
13782       fprintf (f, "%ld\n", i);
13783     }
13784   else
13785     {
13786       unsigned long i = ulongval ();
13787       if (i != ((long) (sizeof (unsigned long))))
13788         exit (1);
13789       fprintf (f, "%lu\n", i);
13790     }
13791   exit (ferror (f) || fclose (f) != 0);
13792
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest$ac_exeext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799   (eval $ac_link) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13809 else
13810   echo "$as_me: program exited with status $ac_status" >&5
13811 echo "$as_me: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 ( exit $ac_status )
13814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13815 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13816    { (exit 1); exit 1; }; }
13817 fi
13818 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13819 fi
13820 fi
13821 rm -f conftest.val
13822 else
13823   ac_cv_sizeof_unsigned_long=0
13824 fi
13825 fi
13826 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13827 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13828 cat >>confdefs.h <<_ACEOF
13829 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13830 _ACEOF
13831
13832
13833
13834 # Determine memory alignment requirements for the basic C data types.
13835
13836 echo "$as_me:$LINENO: checking for short" >&5
13837 echo $ECHO_N "checking for short... $ECHO_C" >&6
13838 if test "${ac_cv_type_short+set}" = set; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   cat >conftest.$ac_ext <<_ACEOF
13842 #line $LINENO "configure"
13843 #include "confdefs.h"
13844 $ac_includes_default
13845 #ifdef F77_DUMMY_MAIN
13846 #  ifdef __cplusplus
13847      extern "C"
13848 #  endif
13849    int F77_DUMMY_MAIN() { return 1; }
13850 #endif
13851 int
13852 main ()
13853 {
13854 if ((short *) 0)
13855   return 0;
13856 if (sizeof (short))
13857   return 0;
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 rm -f conftest.$ac_objext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864   (eval $ac_compile) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_type_short=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 ac_cv_type_short=no
13879 fi
13880 rm -f conftest.$ac_objext conftest.$ac_ext
13881 fi
13882 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13883 echo "${ECHO_T}$ac_cv_type_short" >&6
13884
13885 echo "$as_me:$LINENO: checking alignment of short" >&5
13886 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13887 if test "${pgac_cv_alignof_short+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   if test "$ac_cv_type_short" = yes; then
13891   if test "$cross_compiling" = yes; then
13892   # Depending upon the size, compute the lo and hi bounds.
13893 cat >conftest.$ac_ext <<_ACEOF
13894 #line $LINENO "configure"
13895 #include "confdefs.h"
13896 $ac_includes_default
13897 struct { char filler; short field; } pgac_struct;
13898 #ifdef F77_DUMMY_MAIN
13899 #  ifdef __cplusplus
13900      extern "C"
13901 #  endif
13902    int F77_DUMMY_MAIN() { return 1; }
13903 #endif
13904 int
13905 main ()
13906 {
13907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13908 test_array [0] = 0
13909
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916   (eval $ac_compile) 2>&5
13917   ac_status=$?
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } &&
13920          { ac_try='test -s conftest.$ac_objext'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; }; then
13926   ac_lo=0 ac_mid=0
13927   while :; do
13928     cat >conftest.$ac_ext <<_ACEOF
13929 #line $LINENO "configure"
13930 #include "confdefs.h"
13931 $ac_includes_default
13932 struct { char filler; short field; } pgac_struct;
13933 #ifdef F77_DUMMY_MAIN
13934 #  ifdef __cplusplus
13935      extern "C"
13936 #  endif
13937    int F77_DUMMY_MAIN() { return 1; }
13938 #endif
13939 int
13940 main ()
13941 {
13942 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13943 test_array [0] = 0
13944
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13951   (eval $ac_compile) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } &&
13955          { ac_try='test -s conftest.$ac_objext'
13956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957   (eval $ac_try) 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; }; then
13961   ac_hi=$ac_mid; break
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 cat conftest.$ac_ext >&5
13965 ac_lo=`expr $ac_mid + 1`
13966                     if test $ac_lo -le $ac_mid; then
13967                       ac_lo= ac_hi=
13968                       break
13969                     fi
13970                     ac_mid=`expr 2 '*' $ac_mid + 1`
13971 fi
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13973   done
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13977 cat >conftest.$ac_ext <<_ACEOF
13978 #line $LINENO "configure"
13979 #include "confdefs.h"
13980 $ac_includes_default
13981 struct { char filler; short field; } pgac_struct;
13982 #ifdef F77_DUMMY_MAIN
13983 #  ifdef __cplusplus
13984      extern "C"
13985 #  endif
13986    int F77_DUMMY_MAIN() { return 1; }
13987 #endif
13988 int
13989 main ()
13990 {
13991 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13992 test_array [0] = 0
13993
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000   (eval $ac_compile) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -s conftest.$ac_objext'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; }; then
14010   ac_hi=-1 ac_mid=-1
14011   while :; do
14012     cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 #include "confdefs.h"
14015 $ac_includes_default
14016 struct { char filler; short field; } pgac_struct;
14017 #ifdef F77_DUMMY_MAIN
14018 #  ifdef __cplusplus
14019      extern "C"
14020 #  endif
14021    int F77_DUMMY_MAIN() { return 1; }
14022 #endif
14023 int
14024 main ()
14025 {
14026 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14027 test_array [0] = 0
14028
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035   (eval $ac_compile) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -s conftest.$ac_objext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_lo=$ac_mid; break
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 ac_hi=`expr '(' $ac_mid ')' - 1`
14050                        if test $ac_mid -le $ac_hi; then
14051                          ac_lo= ac_hi=
14052                          break
14053                        fi
14054                        ac_mid=`expr 2 '*' $ac_mid`
14055 fi
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14057   done
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 ac_lo= ac_hi=
14062 fi
14063 rm -f conftest.$ac_objext conftest.$ac_ext
14064 fi
14065 rm -f conftest.$ac_objext conftest.$ac_ext
14066 # Binary search between lo and hi bounds.
14067 while test "x$ac_lo" != "x$ac_hi"; do
14068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14069   cat >conftest.$ac_ext <<_ACEOF
14070 #line $LINENO "configure"
14071 #include "confdefs.h"
14072 $ac_includes_default
14073 struct { char filler; short field; } pgac_struct;
14074 #ifdef F77_DUMMY_MAIN
14075 #  ifdef __cplusplus
14076      extern "C"
14077 #  endif
14078    int F77_DUMMY_MAIN() { return 1; }
14079 #endif
14080 int
14081 main ()
14082 {
14083 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14084 test_array [0] = 0
14085
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092   (eval $ac_compile) 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -s conftest.$ac_objext'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; }; then
14102   ac_hi=$ac_mid
14103 else
14104   echo "$as_me: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14106 ac_lo=`expr '(' $ac_mid ')' + 1`
14107 fi
14108 rm -f conftest.$ac_objext conftest.$ac_ext
14109 done
14110 case $ac_lo in
14111 ?*) pgac_cv_alignof_short=$ac_lo;;
14112 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14113 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14114    { (exit 1); exit 1; }; } ;;
14115 esac
14116 else
14117   if test "$cross_compiling" = yes; then
14118   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14119 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14120    { (exit 1); exit 1; }; }
14121 else
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 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14128 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14129 #include <stdio.h>
14130 #include <stdlib.h>
14131 #ifdef F77_DUMMY_MAIN
14132 #  ifdef __cplusplus
14133      extern "C"
14134 #  endif
14135    int F77_DUMMY_MAIN() { return 1; }
14136 #endif
14137 int
14138 main ()
14139 {
14140
14141   FILE *f = fopen ("conftest.val", "w");
14142   if (! f)
14143     exit (1);
14144   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14145     {
14146       long i = longval ();
14147       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14148         exit (1);
14149       fprintf (f, "%ld\n", i);
14150     }
14151   else
14152     {
14153       unsigned long i = ulongval ();
14154       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14155         exit (1);
14156       fprintf (f, "%lu\n", i);
14157     }
14158   exit (ferror (f) || fclose (f) != 0);
14159
14160   ;
14161   return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest$ac_exeext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14166   (eval $ac_link) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171   (eval $ac_try) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); }; }; then
14175   pgac_cv_alignof_short=`cat conftest.val`
14176 else
14177   echo "$as_me: program exited with status $ac_status" >&5
14178 echo "$as_me: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14180 ( exit $ac_status )
14181 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14182 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14183    { (exit 1); exit 1; }; }
14184 fi
14185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14186 fi
14187 fi
14188 rm -f conftest.val
14189 else
14190   pgac_cv_alignof_short=0
14191 fi
14192 fi
14193 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14194 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14195 cat >>confdefs.h <<_ACEOF
14196 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14197 _ACEOF
14198
14199
14200 echo "$as_me:$LINENO: checking for int" >&5
14201 echo $ECHO_N "checking for int... $ECHO_C" >&6
14202 if test "${ac_cv_type_int+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14207 #include "confdefs.h"
14208 $ac_includes_default
14209 #ifdef F77_DUMMY_MAIN
14210 #  ifdef __cplusplus
14211      extern "C"
14212 #  endif
14213    int F77_DUMMY_MAIN() { return 1; }
14214 #endif
14215 int
14216 main ()
14217 {
14218 if ((int *) 0)
14219   return 0;
14220 if (sizeof (int))
14221   return 0;
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 rm -f conftest.$ac_objext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228   (eval $ac_compile) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } &&
14232          { ac_try='test -s conftest.$ac_objext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_cv_type_int=yes
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14242 ac_cv_type_int=no
14243 fi
14244 rm -f conftest.$ac_objext conftest.$ac_ext
14245 fi
14246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14247 echo "${ECHO_T}$ac_cv_type_int" >&6
14248
14249 echo "$as_me:$LINENO: checking alignment of int" >&5
14250 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14251 if test "${pgac_cv_alignof_int+set}" = set; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254   if test "$ac_cv_type_int" = yes; then
14255   if test "$cross_compiling" = yes; then
14256   # Depending upon the size, compute the lo and hi bounds.
14257 cat >conftest.$ac_ext <<_ACEOF
14258 #line $LINENO "configure"
14259 #include "confdefs.h"
14260 $ac_includes_default
14261 struct { char filler; int field; } pgac_struct;
14262 #ifdef F77_DUMMY_MAIN
14263 #  ifdef __cplusplus
14264      extern "C"
14265 #  endif
14266    int F77_DUMMY_MAIN() { return 1; }
14267 #endif
14268 int
14269 main ()
14270 {
14271 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14272 test_array [0] = 0
14273
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280   (eval $ac_compile) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -s conftest.$ac_objext'
14285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286   (eval $ac_try) 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_lo=0 ac_mid=0
14291   while :; do
14292     cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 #include "confdefs.h"
14295 $ac_includes_default
14296 struct { char filler; int field; } pgac_struct;
14297 #ifdef F77_DUMMY_MAIN
14298 #  ifdef __cplusplus
14299      extern "C"
14300 #  endif
14301    int F77_DUMMY_MAIN() { return 1; }
14302 #endif
14303 int
14304 main ()
14305 {
14306 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14307 test_array [0] = 0
14308
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315   (eval $ac_compile) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -s conftest.$ac_objext'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   ac_hi=$ac_mid; break
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 ac_lo=`expr $ac_mid + 1`
14330                     if test $ac_lo -le $ac_mid; then
14331                       ac_lo= ac_hi=
14332                       break
14333                     fi
14334                     ac_mid=`expr 2 '*' $ac_mid + 1`
14335 fi
14336 rm -f conftest.$ac_objext conftest.$ac_ext
14337   done
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 cat >conftest.$ac_ext <<_ACEOF
14342 #line $LINENO "configure"
14343 #include "confdefs.h"
14344 $ac_includes_default
14345 struct { char filler; int field; } pgac_struct;
14346 #ifdef F77_DUMMY_MAIN
14347 #  ifdef __cplusplus
14348      extern "C"
14349 #  endif
14350    int F77_DUMMY_MAIN() { return 1; }
14351 #endif
14352 int
14353 main ()
14354 {
14355 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14356 test_array [0] = 0
14357
14358   ;
14359   return 0;
14360 }
14361 _ACEOF
14362 rm -f conftest.$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364   (eval $ac_compile) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } &&
14368          { ac_try='test -s conftest.$ac_objext'
14369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370   (eval $ac_try) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); }; }; then
14374   ac_hi=-1 ac_mid=-1
14375   while :; do
14376     cat >conftest.$ac_ext <<_ACEOF
14377 #line $LINENO "configure"
14378 #include "confdefs.h"
14379 $ac_includes_default
14380 struct { char filler; int field; } pgac_struct;
14381 #ifdef F77_DUMMY_MAIN
14382 #  ifdef __cplusplus
14383      extern "C"
14384 #  endif
14385    int F77_DUMMY_MAIN() { return 1; }
14386 #endif
14387 int
14388 main ()
14389 {
14390 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14391 test_array [0] = 0
14392
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399   (eval $ac_compile) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   ac_lo=$ac_mid; break
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 ac_hi=`expr '(' $ac_mid ')' - 1`
14414                        if test $ac_mid -le $ac_hi; then
14415                          ac_lo= ac_hi=
14416                          break
14417                        fi
14418                        ac_mid=`expr 2 '*' $ac_mid`
14419 fi
14420 rm -f conftest.$ac_objext conftest.$ac_ext
14421   done
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ac_lo= ac_hi=
14426 fi
14427 rm -f conftest.$ac_objext conftest.$ac_ext
14428 fi
14429 rm -f conftest.$ac_objext conftest.$ac_ext
14430 # Binary search between lo and hi bounds.
14431 while test "x$ac_lo" != "x$ac_hi"; do
14432   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14433   cat >conftest.$ac_ext <<_ACEOF
14434 #line $LINENO "configure"
14435 #include "confdefs.h"
14436 $ac_includes_default
14437 struct { char filler; int field; } pgac_struct;
14438 #ifdef F77_DUMMY_MAIN
14439 #  ifdef __cplusplus
14440      extern "C"
14441 #  endif
14442    int F77_DUMMY_MAIN() { return 1; }
14443 #endif
14444 int
14445 main ()
14446 {
14447 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14448 test_array [0] = 0
14449
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456   (eval $ac_compile) 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -s conftest.$ac_objext'
14461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462   (eval $ac_try) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_hi=$ac_mid
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 ac_lo=`expr '(' $ac_mid ')' + 1`
14471 fi
14472 rm -f conftest.$ac_objext conftest.$ac_ext
14473 done
14474 case $ac_lo in
14475 ?*) pgac_cv_alignof_int=$ac_lo;;
14476 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14477 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14478    { (exit 1); exit 1; }; } ;;
14479 esac
14480 else
14481   if test "$cross_compiling" = yes; then
14482   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14483 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14484    { (exit 1); exit 1; }; }
14485 else
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 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14492 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14493 #include <stdio.h>
14494 #include <stdlib.h>
14495 #ifdef F77_DUMMY_MAIN
14496 #  ifdef __cplusplus
14497      extern "C"
14498 #  endif
14499    int F77_DUMMY_MAIN() { return 1; }
14500 #endif
14501 int
14502 main ()
14503 {
14504
14505   FILE *f = fopen ("conftest.val", "w");
14506   if (! f)
14507     exit (1);
14508   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14509     {
14510       long i = longval ();
14511       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14512         exit (1);
14513       fprintf (f, "%ld\n", i);
14514     }
14515   else
14516     {
14517       unsigned long i = ulongval ();
14518       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14519         exit (1);
14520       fprintf (f, "%lu\n", i);
14521     }
14522   exit (ferror (f) || fclose (f) != 0);
14523
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530   (eval $ac_link) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539   pgac_cv_alignof_int=`cat conftest.val`
14540 else
14541   echo "$as_me: program exited with status $ac_status" >&5
14542 echo "$as_me: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14544 ( exit $ac_status )
14545 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14546 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14547    { (exit 1); exit 1; }; }
14548 fi
14549 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14550 fi
14551 fi
14552 rm -f conftest.val
14553 else
14554   pgac_cv_alignof_int=0
14555 fi
14556 fi
14557 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14558 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14559 cat >>confdefs.h <<_ACEOF
14560 #define ALIGNOF_INT $pgac_cv_alignof_int
14561 _ACEOF
14562
14563
14564 echo "$as_me:$LINENO: checking for long" >&5
14565 echo $ECHO_N "checking for long... $ECHO_C" >&6
14566 if test "${ac_cv_type_long+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572 $ac_includes_default
14573 #ifdef F77_DUMMY_MAIN
14574 #  ifdef __cplusplus
14575      extern "C"
14576 #  endif
14577    int F77_DUMMY_MAIN() { return 1; }
14578 #endif
14579 int
14580 main ()
14581 {
14582 if ((long *) 0)
14583   return 0;
14584 if (sizeof (long))
14585   return 0;
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602   ac_cv_type_long=yes
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 ac_cv_type_long=no
14607 fi
14608 rm -f conftest.$ac_objext conftest.$ac_ext
14609 fi
14610 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14611 echo "${ECHO_T}$ac_cv_type_long" >&6
14612
14613 echo "$as_me:$LINENO: checking alignment of long" >&5
14614 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14615 if test "${pgac_cv_alignof_long+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   if test "$ac_cv_type_long" = yes; then
14619   if test "$cross_compiling" = yes; then
14620   # Depending upon the size, compute the lo and hi bounds.
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 #include "confdefs.h"
14624 $ac_includes_default
14625 struct { char filler; long field; } pgac_struct;
14626 #ifdef F77_DUMMY_MAIN
14627 #  ifdef __cplusplus
14628      extern "C"
14629 #  endif
14630    int F77_DUMMY_MAIN() { return 1; }
14631 #endif
14632 int
14633 main ()
14634 {
14635 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14636 test_array [0] = 0
14637
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644   (eval $ac_compile) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } &&
14648          { ac_try='test -s conftest.$ac_objext'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; }; then
14654   ac_lo=0 ac_mid=0
14655   while :; do
14656     cat >conftest.$ac_ext <<_ACEOF
14657 #line $LINENO "configure"
14658 #include "confdefs.h"
14659 $ac_includes_default
14660 struct { char filler; long field; } pgac_struct;
14661 #ifdef F77_DUMMY_MAIN
14662 #  ifdef __cplusplus
14663      extern "C"
14664 #  endif
14665    int F77_DUMMY_MAIN() { return 1; }
14666 #endif
14667 int
14668 main ()
14669 {
14670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14671 test_array [0] = 0
14672
14673   ;
14674   return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679   (eval $ac_compile) 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -s conftest.$ac_objext'
14684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685   (eval $ac_try) 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689   ac_hi=$ac_mid; break
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14693 ac_lo=`expr $ac_mid + 1`
14694                     if test $ac_lo -le $ac_mid; then
14695                       ac_lo= ac_hi=
14696                       break
14697                     fi
14698                     ac_mid=`expr 2 '*' $ac_mid + 1`
14699 fi
14700 rm -f conftest.$ac_objext conftest.$ac_ext
14701   done
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14707 #include "confdefs.h"
14708 $ac_includes_default
14709 struct { char filler; long field; } pgac_struct;
14710 #ifdef F77_DUMMY_MAIN
14711 #  ifdef __cplusplus
14712      extern "C"
14713 #  endif
14714    int F77_DUMMY_MAIN() { return 1; }
14715 #endif
14716 int
14717 main ()
14718 {
14719 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14720 test_array [0] = 0
14721
14722   ;
14723   return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest.$ac_objext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728   (eval $ac_compile) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } &&
14732          { ac_try='test -s conftest.$ac_objext'
14733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734   (eval $ac_try) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; }; then
14738   ac_hi=-1 ac_mid=-1
14739   while :; do
14740     cat >conftest.$ac_ext <<_ACEOF
14741 #line $LINENO "configure"
14742 #include "confdefs.h"
14743 $ac_includes_default
14744 struct { char filler; long field; } pgac_struct;
14745 #ifdef F77_DUMMY_MAIN
14746 #  ifdef __cplusplus
14747      extern "C"
14748 #  endif
14749    int F77_DUMMY_MAIN() { return 1; }
14750 #endif
14751 int
14752 main ()
14753 {
14754 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14755 test_array [0] = 0
14756
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763   (eval $ac_compile) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } &&
14767          { ac_try='test -s conftest.$ac_objext'
14768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769   (eval $ac_try) 2>&5
14770   ac_status=$?
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); }; }; then
14773   ac_lo=$ac_mid; break
14774 else
14775   echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 ac_hi=`expr '(' $ac_mid ')' - 1`
14778                        if test $ac_mid -le $ac_hi; then
14779                          ac_lo= ac_hi=
14780                          break
14781                        fi
14782                        ac_mid=`expr 2 '*' $ac_mid`
14783 fi
14784 rm -f conftest.$ac_objext conftest.$ac_ext
14785   done
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 ac_lo= ac_hi=
14790 fi
14791 rm -f conftest.$ac_objext conftest.$ac_ext
14792 fi
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14794 # Binary search between lo and hi bounds.
14795 while test "x$ac_lo" != "x$ac_hi"; do
14796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14797   cat >conftest.$ac_ext <<_ACEOF
14798 #line $LINENO "configure"
14799 #include "confdefs.h"
14800 $ac_includes_default
14801 struct { char filler; long field; } pgac_struct;
14802 #ifdef F77_DUMMY_MAIN
14803 #  ifdef __cplusplus
14804      extern "C"
14805 #  endif
14806    int F77_DUMMY_MAIN() { return 1; }
14807 #endif
14808 int
14809 main ()
14810 {
14811 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14812 test_array [0] = 0
14813
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820   (eval $ac_compile) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_hi=$ac_mid
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 ac_lo=`expr '(' $ac_mid ')' + 1`
14835 fi
14836 rm -f conftest.$ac_objext conftest.$ac_ext
14837 done
14838 case $ac_lo in
14839 ?*) pgac_cv_alignof_long=$ac_lo;;
14840 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14841 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14842    { (exit 1); exit 1; }; } ;;
14843 esac
14844 else
14845   if test "$cross_compiling" = yes; then
14846   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14847 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14848    { (exit 1); exit 1; }; }
14849 else
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 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14856 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14857 #include <stdio.h>
14858 #include <stdlib.h>
14859 #ifdef F77_DUMMY_MAIN
14860 #  ifdef __cplusplus
14861      extern "C"
14862 #  endif
14863    int F77_DUMMY_MAIN() { return 1; }
14864 #endif
14865 int
14866 main ()
14867 {
14868
14869   FILE *f = fopen ("conftest.val", "w");
14870   if (! f)
14871     exit (1);
14872   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14873     {
14874       long i = longval ();
14875       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14876         exit (1);
14877       fprintf (f, "%ld\n", i);
14878     }
14879   else
14880     {
14881       unsigned long i = ulongval ();
14882       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14883         exit (1);
14884       fprintf (f, "%lu\n", i);
14885     }
14886   exit (ferror (f) || fclose (f) != 0);
14887
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest$ac_exeext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894   (eval $ac_link) 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903   pgac_cv_alignof_long=`cat conftest.val`
14904 else
14905   echo "$as_me: program exited with status $ac_status" >&5
14906 echo "$as_me: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 ( exit $ac_status )
14909 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14910 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14911    { (exit 1); exit 1; }; }
14912 fi
14913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14914 fi
14915 fi
14916 rm -f conftest.val
14917 else
14918   pgac_cv_alignof_long=0
14919 fi
14920 fi
14921 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14922 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14923 cat >>confdefs.h <<_ACEOF
14924 #define ALIGNOF_LONG $pgac_cv_alignof_long
14925 _ACEOF
14926
14927
14928 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14929   echo "$as_me:$LINENO: checking for long long int" >&5
14930 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14931 if test "${ac_cv_type_long_long_int+set}" = set; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   cat >conftest.$ac_ext <<_ACEOF
14935 #line $LINENO "configure"
14936 #include "confdefs.h"
14937 $ac_includes_default
14938 #ifdef F77_DUMMY_MAIN
14939 #  ifdef __cplusplus
14940      extern "C"
14941 #  endif
14942    int F77_DUMMY_MAIN() { return 1; }
14943 #endif
14944 int
14945 main ()
14946 {
14947 if ((long long int *) 0)
14948   return 0;
14949 if (sizeof (long long int))
14950   return 0;
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957   (eval $ac_compile) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); } &&
14961          { ac_try='test -s conftest.$ac_objext'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; }; then
14967   ac_cv_type_long_long_int=yes
14968 else
14969   echo "$as_me: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 ac_cv_type_long_long_int=no
14972 fi
14973 rm -f conftest.$ac_objext conftest.$ac_ext
14974 fi
14975 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14976 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14977
14978 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14979 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14980 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   if test "$ac_cv_type_long_long_int" = yes; then
14984   if test "$cross_compiling" = yes; then
14985   # Depending upon the size, compute the lo and hi bounds.
14986 cat >conftest.$ac_ext <<_ACEOF
14987 #line $LINENO "configure"
14988 #include "confdefs.h"
14989 $ac_includes_default
14990 struct { char filler; long long int field; } pgac_struct;
14991 #ifdef F77_DUMMY_MAIN
14992 #  ifdef __cplusplus
14993      extern "C"
14994 #  endif
14995    int F77_DUMMY_MAIN() { return 1; }
14996 #endif
14997 int
14998 main ()
14999 {
15000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15001 test_array [0] = 0
15002
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009   (eval $ac_compile) 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -s conftest.$ac_objext'
15014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015   (eval $ac_try) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; }; then
15019   ac_lo=0 ac_mid=0
15020   while :; do
15021     cat >conftest.$ac_ext <<_ACEOF
15022 #line $LINENO "configure"
15023 #include "confdefs.h"
15024 $ac_includes_default
15025 struct { char filler; long long int field; } pgac_struct;
15026 #ifdef F77_DUMMY_MAIN
15027 #  ifdef __cplusplus
15028      extern "C"
15029 #  endif
15030    int F77_DUMMY_MAIN() { return 1; }
15031 #endif
15032 int
15033 main ()
15034 {
15035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15036 test_array [0] = 0
15037
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044   (eval $ac_compile) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054   ac_hi=$ac_mid; break
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 ac_lo=`expr $ac_mid + 1`
15059                     if test $ac_lo -le $ac_mid; then
15060                       ac_lo= ac_hi=
15061                       break
15062                     fi
15063                     ac_mid=`expr 2 '*' $ac_mid + 1`
15064 fi
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15066   done
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15070 cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15072 #include "confdefs.h"
15073 $ac_includes_default
15074 struct { char filler; long long int field; } pgac_struct;
15075 #ifdef F77_DUMMY_MAIN
15076 #  ifdef __cplusplus
15077      extern "C"
15078 #  endif
15079    int F77_DUMMY_MAIN() { return 1; }
15080 #endif
15081 int
15082 main ()
15083 {
15084 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15085 test_array [0] = 0
15086
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093   (eval $ac_compile) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } &&
15097          { ac_try='test -s conftest.$ac_objext'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103   ac_hi=-1 ac_mid=-1
15104   while :; do
15105     cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 #include "confdefs.h"
15108 $ac_includes_default
15109 struct { char filler; long long int field; } pgac_struct;
15110 #ifdef F77_DUMMY_MAIN
15111 #  ifdef __cplusplus
15112      extern "C"
15113 #  endif
15114    int F77_DUMMY_MAIN() { return 1; }
15115 #endif
15116 int
15117 main ()
15118 {
15119 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15120 test_array [0] = 0
15121
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128   (eval $ac_compile) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -s conftest.$ac_objext'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; }; then
15138   ac_lo=$ac_mid; break
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 ac_hi=`expr '(' $ac_mid ')' - 1`
15143                        if test $ac_mid -le $ac_hi; then
15144                          ac_lo= ac_hi=
15145                          break
15146                        fi
15147                        ac_mid=`expr 2 '*' $ac_mid`
15148 fi
15149 rm -f conftest.$ac_objext conftest.$ac_ext
15150   done
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 ac_lo= ac_hi=
15155 fi
15156 rm -f conftest.$ac_objext conftest.$ac_ext
15157 fi
15158 rm -f conftest.$ac_objext conftest.$ac_ext
15159 # Binary search between lo and hi bounds.
15160 while test "x$ac_lo" != "x$ac_hi"; do
15161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15162   cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 #include "confdefs.h"
15165 $ac_includes_default
15166 struct { char filler; long long int field; } pgac_struct;
15167 #ifdef F77_DUMMY_MAIN
15168 #  ifdef __cplusplus
15169      extern "C"
15170 #  endif
15171    int F77_DUMMY_MAIN() { return 1; }
15172 #endif
15173 int
15174 main ()
15175 {
15176 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15177 test_array [0] = 0
15178
15179   ;
15180   return 0;
15181 }
15182 _ACEOF
15183 rm -f conftest.$ac_objext
15184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15185   (eval $ac_compile) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } &&
15189          { ac_try='test -s conftest.$ac_objext'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; }; then
15195   ac_hi=$ac_mid
15196 else
15197   echo "$as_me: failed program was:" >&5
15198 cat conftest.$ac_ext >&5
15199 ac_lo=`expr '(' $ac_mid ')' + 1`
15200 fi
15201 rm -f conftest.$ac_objext conftest.$ac_ext
15202 done
15203 case $ac_lo in
15204 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15205 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15206 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15207    { (exit 1); exit 1; }; } ;;
15208 esac
15209 else
15210   if test "$cross_compiling" = yes; then
15211   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15212 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15213    { (exit 1); exit 1; }; }
15214 else
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 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15221 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15222 #include <stdio.h>
15223 #include <stdlib.h>
15224 #ifdef F77_DUMMY_MAIN
15225 #  ifdef __cplusplus
15226      extern "C"
15227 #  endif
15228    int F77_DUMMY_MAIN() { return 1; }
15229 #endif
15230 int
15231 main ()
15232 {
15233
15234   FILE *f = fopen ("conftest.val", "w");
15235   if (! f)
15236     exit (1);
15237   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15238     {
15239       long i = longval ();
15240       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15241         exit (1);
15242       fprintf (f, "%ld\n", i);
15243     }
15244   else
15245     {
15246       unsigned long i = ulongval ();
15247       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15248         exit (1);
15249       fprintf (f, "%lu\n", i);
15250     }
15251   exit (ferror (f) || fclose (f) != 0);
15252
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259   (eval $ac_link) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; }; then
15268   pgac_cv_alignof_long_long_int=`cat conftest.val`
15269 else
15270   echo "$as_me: program exited with status $ac_status" >&5
15271 echo "$as_me: failed program was:" >&5
15272 cat conftest.$ac_ext >&5
15273 ( exit $ac_status )
15274 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15275 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15276    { (exit 1); exit 1; }; }
15277 fi
15278 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15279 fi
15280 fi
15281 rm -f conftest.val
15282 else
15283   pgac_cv_alignof_long_long_int=0
15284 fi
15285 fi
15286 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15287 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15288 cat >>confdefs.h <<_ACEOF
15289 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15290 _ACEOF
15291
15292
15293 fi
15294 echo "$as_me:$LINENO: checking for double" >&5
15295 echo $ECHO_N "checking for double... $ECHO_C" >&6
15296 if test "${ac_cv_type_double+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   cat >conftest.$ac_ext <<_ACEOF
15300 #line $LINENO "configure"
15301 #include "confdefs.h"
15302 $ac_includes_default
15303 #ifdef F77_DUMMY_MAIN
15304 #  ifdef __cplusplus
15305      extern "C"
15306 #  endif
15307    int F77_DUMMY_MAIN() { return 1; }
15308 #endif
15309 int
15310 main ()
15311 {
15312 if ((double *) 0)
15313   return 0;
15314 if (sizeof (double))
15315   return 0;
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 rm -f conftest.$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322   (eval $ac_compile) 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); } &&
15326          { ac_try='test -s conftest.$ac_objext'
15327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328   (eval $ac_try) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; }; then
15332   ac_cv_type_double=yes
15333 else
15334   echo "$as_me: failed program was:" >&5
15335 cat conftest.$ac_ext >&5
15336 ac_cv_type_double=no
15337 fi
15338 rm -f conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15341 echo "${ECHO_T}$ac_cv_type_double" >&6
15342
15343 echo "$as_me:$LINENO: checking alignment of double" >&5
15344 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15345 if test "${pgac_cv_alignof_double+set}" = set; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348   if test "$ac_cv_type_double" = yes; then
15349   if test "$cross_compiling" = yes; then
15350   # Depending upon the size, compute the lo and hi bounds.
15351 cat >conftest.$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15353 #include "confdefs.h"
15354 $ac_includes_default
15355 struct { char filler; double field; } pgac_struct;
15356 #ifdef F77_DUMMY_MAIN
15357 #  ifdef __cplusplus
15358      extern "C"
15359 #  endif
15360    int F77_DUMMY_MAIN() { return 1; }
15361 #endif
15362 int
15363 main ()
15364 {
15365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15366 test_array [0] = 0
15367
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374   (eval $ac_compile) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -s conftest.$ac_objext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   ac_lo=0 ac_mid=0
15385   while :; do
15386     cat >conftest.$ac_ext <<_ACEOF
15387 #line $LINENO "configure"
15388 #include "confdefs.h"
15389 $ac_includes_default
15390 struct { char filler; double field; } pgac_struct;
15391 #ifdef F77_DUMMY_MAIN
15392 #  ifdef __cplusplus
15393      extern "C"
15394 #  endif
15395    int F77_DUMMY_MAIN() { return 1; }
15396 #endif
15397 int
15398 main ()
15399 {
15400 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15401 test_array [0] = 0
15402
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15409   (eval $ac_compile) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } &&
15413          { ac_try='test -s conftest.$ac_objext'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_hi=$ac_mid; break
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15423 ac_lo=`expr $ac_mid + 1`
15424                     if test $ac_lo -le $ac_mid; then
15425                       ac_lo= ac_hi=
15426                       break
15427                     fi
15428                     ac_mid=`expr 2 '*' $ac_mid + 1`
15429 fi
15430 rm -f conftest.$ac_objext conftest.$ac_ext
15431   done
15432 else
15433   echo "$as_me: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 $ac_includes_default
15439 struct { char filler; double field; } pgac_struct;
15440 #ifdef F77_DUMMY_MAIN
15441 #  ifdef __cplusplus
15442      extern "C"
15443 #  endif
15444    int F77_DUMMY_MAIN() { return 1; }
15445 #endif
15446 int
15447 main ()
15448 {
15449 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15450 test_array [0] = 0
15451
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 rm -f conftest.$ac_objext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15458   (eval $ac_compile) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); } &&
15462          { ac_try='test -s conftest.$ac_objext'
15463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464   (eval $ac_try) 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); }; }; then
15468   ac_hi=-1 ac_mid=-1
15469   while :; do
15470     cat >conftest.$ac_ext <<_ACEOF
15471 #line $LINENO "configure"
15472 #include "confdefs.h"
15473 $ac_includes_default
15474 struct { char filler; double field; } pgac_struct;
15475 #ifdef F77_DUMMY_MAIN
15476 #  ifdef __cplusplus
15477      extern "C"
15478 #  endif
15479    int F77_DUMMY_MAIN() { return 1; }
15480 #endif
15481 int
15482 main ()
15483 {
15484 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15485 test_array [0] = 0
15486
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493   (eval $ac_compile) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -s conftest.$ac_objext'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; }; then
15503   ac_lo=$ac_mid; break
15504 else
15505   echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 ac_hi=`expr '(' $ac_mid ')' - 1`
15508                        if test $ac_mid -le $ac_hi; then
15509                          ac_lo= ac_hi=
15510                          break
15511                        fi
15512                        ac_mid=`expr 2 '*' $ac_mid`
15513 fi
15514 rm -f conftest.$ac_objext conftest.$ac_ext
15515   done
15516 else
15517   echo "$as_me: failed program was:" >&5
15518 cat conftest.$ac_ext >&5
15519 ac_lo= ac_hi=
15520 fi
15521 rm -f conftest.$ac_objext conftest.$ac_ext
15522 fi
15523 rm -f conftest.$ac_objext conftest.$ac_ext
15524 # Binary search between lo and hi bounds.
15525 while test "x$ac_lo" != "x$ac_hi"; do
15526   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15527   cat >conftest.$ac_ext <<_ACEOF
15528 #line $LINENO "configure"
15529 #include "confdefs.h"
15530 $ac_includes_default
15531 struct { char filler; double field; } pgac_struct;
15532 #ifdef F77_DUMMY_MAIN
15533 #  ifdef __cplusplus
15534      extern "C"
15535 #  endif
15536    int F77_DUMMY_MAIN() { return 1; }
15537 #endif
15538 int
15539 main ()
15540 {
15541 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15542 test_array [0] = 0
15543
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550   (eval $ac_compile) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -s conftest.$ac_objext'
15555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556   (eval $ac_try) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   ac_hi=$ac_mid
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15564 ac_lo=`expr '(' $ac_mid ')' + 1`
15565 fi
15566 rm -f conftest.$ac_objext conftest.$ac_ext
15567 done
15568 case $ac_lo in
15569 ?*) pgac_cv_alignof_double=$ac_lo;;
15570 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15571 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15572    { (exit 1); exit 1; }; } ;;
15573 esac
15574 else
15575   if test "$cross_compiling" = yes; then
15576   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15577 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15578    { (exit 1); exit 1; }; }
15579 else
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 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15586 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15587 #include <stdio.h>
15588 #include <stdlib.h>
15589 #ifdef F77_DUMMY_MAIN
15590 #  ifdef __cplusplus
15591      extern "C"
15592 #  endif
15593    int F77_DUMMY_MAIN() { return 1; }
15594 #endif
15595 int
15596 main ()
15597 {
15598
15599   FILE *f = fopen ("conftest.val", "w");
15600   if (! f)
15601     exit (1);
15602   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15603     {
15604       long i = longval ();
15605       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15606         exit (1);
15607       fprintf (f, "%ld\n", i);
15608     }
15609   else
15610     {
15611       unsigned long i = ulongval ();
15612       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15613         exit (1);
15614       fprintf (f, "%lu\n", i);
15615     }
15616   exit (ferror (f) || fclose (f) != 0);
15617
15618   ;
15619   return 0;
15620 }
15621 _ACEOF
15622 rm -f conftest$ac_exeext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15624   (eval $ac_link) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633   pgac_cv_alignof_double=`cat conftest.val`
15634 else
15635   echo "$as_me: program exited with status $ac_status" >&5
15636 echo "$as_me: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15638 ( exit $ac_status )
15639 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15640 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15641    { (exit 1); exit 1; }; }
15642 fi
15643 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15644 fi
15645 fi
15646 rm -f conftest.val
15647 else
15648   pgac_cv_alignof_double=0
15649 fi
15650 fi
15651 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15652 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15653 cat >>confdefs.h <<_ACEOF
15654 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15655 _ACEOF
15656
15657
15658
15659 # Compute maximum alignment of any basic type.
15660 # We assume long's alignment is at least as strong as char, short, or int;
15661 # but we must check long long (if it exists) and double.
15662
15663 MAX_ALIGNOF=$pgac_cv_alignof_long
15664 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15665   MAX_ALIGNOF=$pgac_cv_alignof_double
15666 fi
15667 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15668   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15669 fi
15670
15671 cat >>confdefs.h <<_ACEOF
15672 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15673 _ACEOF
15674
15675
15676
15677 # Some platforms predefine the types int8, int16, etc.  Only check
15678 # a (hopefully) representative subset.
15679 echo "$as_me:$LINENO: checking for int8" >&5
15680 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15681 if test "${ac_cv_type_int8+set}" = set; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684   cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15687 #include <stdio.h>
15688 #ifdef HAVE_SUPPORTDEFS_H
15689 #include <SupportDefs.h>
15690 #endif
15691
15692 #ifdef F77_DUMMY_MAIN
15693 #  ifdef __cplusplus
15694      extern "C"
15695 #  endif
15696    int F77_DUMMY_MAIN() { return 1; }
15697 #endif
15698 int
15699 main ()
15700 {
15701 if ((int8 *) 0)
15702   return 0;
15703 if (sizeof (int8))
15704   return 0;
15705   ;
15706   return 0;
15707 }
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711   (eval $ac_compile) 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } &&
15715          { ac_try='test -s conftest.$ac_objext'
15716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717   (eval $ac_try) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); }; }; then
15721   ac_cv_type_int8=yes
15722 else
15723   echo "$as_me: failed program was:" >&5
15724 cat conftest.$ac_ext >&5
15725 ac_cv_type_int8=no
15726 fi
15727 rm -f conftest.$ac_objext conftest.$ac_ext
15728 fi
15729 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15730 echo "${ECHO_T}$ac_cv_type_int8" >&6
15731 if test $ac_cv_type_int8 = yes; then
15732
15733 cat >>confdefs.h <<_ACEOF
15734 #define HAVE_INT8 1
15735 _ACEOF
15736
15737
15738 fi
15739 echo "$as_me:$LINENO: checking for uint8" >&5
15740 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15741 if test "${ac_cv_type_uint8+set}" = set; then
15742   echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744   cat >conftest.$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15747 #include <stdio.h>
15748 #ifdef HAVE_SUPPORTDEFS_H
15749 #include <SupportDefs.h>
15750 #endif
15751
15752 #ifdef F77_DUMMY_MAIN
15753 #  ifdef __cplusplus
15754      extern "C"
15755 #  endif
15756    int F77_DUMMY_MAIN() { return 1; }
15757 #endif
15758 int
15759 main ()
15760 {
15761 if ((uint8 *) 0)
15762   return 0;
15763 if (sizeof (uint8))
15764   return 0;
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15771   (eval $ac_compile) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } &&
15775          { ac_try='test -s conftest.$ac_objext'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; }; then
15781   ac_cv_type_uint8=yes
15782 else
15783   echo "$as_me: failed program was:" >&5
15784 cat conftest.$ac_ext >&5
15785 ac_cv_type_uint8=no
15786 fi
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15788 fi
15789 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15790 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15791 if test $ac_cv_type_uint8 = yes; then
15792
15793 cat >>confdefs.h <<_ACEOF
15794 #define HAVE_UINT8 1
15795 _ACEOF
15796
15797
15798 fi
15799 echo "$as_me:$LINENO: checking for int64" >&5
15800 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15801 if test "${ac_cv_type_int64+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   cat >conftest.$ac_ext <<_ACEOF
15805 #line $LINENO "configure"
15806 #include "confdefs.h"
15807 #include <stdio.h>
15808 #ifdef HAVE_SUPPORTDEFS_H
15809 #include <SupportDefs.h>
15810 #endif
15811
15812 #ifdef F77_DUMMY_MAIN
15813 #  ifdef __cplusplus
15814      extern "C"
15815 #  endif
15816    int F77_DUMMY_MAIN() { return 1; }
15817 #endif
15818 int
15819 main ()
15820 {
15821 if ((int64 *) 0)
15822   return 0;
15823 if (sizeof (int64))
15824   return 0;
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831   (eval $ac_compile) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -s conftest.$ac_objext'
15836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837   (eval $ac_try) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }; }; then
15841   ac_cv_type_int64=yes
15842 else
15843   echo "$as_me: failed program was:" >&5
15844 cat conftest.$ac_ext >&5
15845 ac_cv_type_int64=no
15846 fi
15847 rm -f conftest.$ac_objext conftest.$ac_ext
15848 fi
15849 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15850 echo "${ECHO_T}$ac_cv_type_int64" >&6
15851 if test $ac_cv_type_int64 = yes; then
15852
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_INT64 1
15855 _ACEOF
15856
15857
15858 fi
15859 echo "$as_me:$LINENO: checking for uint64" >&5
15860 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15861 if test "${ac_cv_type_uint64+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 #line $LINENO "configure"
15866 #include "confdefs.h"
15867 #include <stdio.h>
15868 #ifdef HAVE_SUPPORTDEFS_H
15869 #include <SupportDefs.h>
15870 #endif
15871
15872 #ifdef F77_DUMMY_MAIN
15873 #  ifdef __cplusplus
15874      extern "C"
15875 #  endif
15876    int F77_DUMMY_MAIN() { return 1; }
15877 #endif
15878 int
15879 main ()
15880 {
15881 if ((uint64 *) 0)
15882   return 0;
15883 if (sizeof (uint64))
15884   return 0;
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891   (eval $ac_compile) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } &&
15895          { ac_try='test -s conftest.$ac_objext'
15896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897   (eval $ac_try) 2>&5
15898   ac_status=$?
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); }; }; then
15901   ac_cv_type_uint64=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 cat conftest.$ac_ext >&5
15905 ac_cv_type_uint64=no
15906 fi
15907 rm -f conftest.$ac_objext conftest.$ac_ext
15908 fi
15909 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15910 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15911 if test $ac_cv_type_uint64 = yes; then
15912
15913 cat >>confdefs.h <<_ACEOF
15914 #define HAVE_UINT64 1
15915 _ACEOF
15916
15917
15918 fi
15919
15920
15921 # We also check for sig_atomic_t, which *should* be defined per ANSI
15922 # C, but is missing on some old platforms.
15923 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15924 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15925 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   cat >conftest.$ac_ext <<_ACEOF
15929 #line $LINENO "configure"
15930 #include "confdefs.h"
15931 #include <signal.h>
15932
15933 #ifdef F77_DUMMY_MAIN
15934 #  ifdef __cplusplus
15935      extern "C"
15936 #  endif
15937    int F77_DUMMY_MAIN() { return 1; }
15938 #endif
15939 int
15940 main ()
15941 {
15942 if ((sig_atomic_t *) 0)
15943   return 0;
15944 if (sizeof (sig_atomic_t))
15945   return 0;
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952   (eval $ac_compile) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } &&
15956          { ac_try='test -s conftest.$ac_objext'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962   ac_cv_type_sig_atomic_t=yes
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15966 ac_cv_type_sig_atomic_t=no
15967 fi
15968 rm -f conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15971 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15972 if test $ac_cv_type_sig_atomic_t = yes; then
15973
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_SIG_ATOMIC_T 1
15976 _ACEOF
15977
15978
15979 fi
15980
15981
15982
15983 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15984 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15985 if test "${pgac_cv_func_posix_signals+set}" = set; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988   cat >conftest.$ac_ext <<_ACEOF
15989 #line $LINENO "configure"
15990 #include "confdefs.h"
15991 #include <signal.h>
15992
15993 #ifdef F77_DUMMY_MAIN
15994 #  ifdef __cplusplus
15995      extern "C"
15996 #  endif
15997    int F77_DUMMY_MAIN() { return 1; }
15998 #endif
15999 int
16000 main ()
16001 {
16002 struct sigaction act, oact;
16003 sigemptyset(&act.sa_mask);
16004 act.sa_flags = SA_RESTART;
16005 sigaction(0, &act, &oact);
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012   (eval $ac_link) 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } &&
16016          { ac_try='test -s conftest$ac_exeext'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; }; then
16022   pgac_cv_func_posix_signals=yes
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 cat conftest.$ac_ext >&5
16026 pgac_cv_func_posix_signals=no
16027 fi
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16029 fi
16030 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16031 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16032 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16033
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_POSIX_SIGNALS
16036 _ACEOF
16037
16038 fi
16039 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16040
16041 if test $ac_cv_func_fseeko = yes; then
16042 # Check whether --enable-largefile or --disable-largefile was given.
16043 if test "${enable_largefile+set}" = set; then
16044   enableval="$enable_largefile"
16045
16046 fi;
16047 if test "$enable_largefile" != no; then
16048
16049   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16050 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16051 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16052   echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054   ac_cv_sys_largefile_CC=no
16055      if test "$GCC" != yes; then
16056        ac_save_CC=$CC
16057        while :; do
16058          # IRIX 6.2 and later do not support large files by default,
16059          # so use the C compiler's -n32 option if that helps.
16060          cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 #include <sys/types.h>
16064  /* Check that off_t can represent 2**63 - 1 correctly.
16065     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16066     since some C++ compilers masquerading as C compilers
16067     incorrectly reject 9223372036854775807.  */
16068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16069   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16070                        && LARGE_OFF_T % 2147483647 == 1)
16071                       ? 1 : -1];
16072 #ifdef F77_DUMMY_MAIN
16073 #  ifdef __cplusplus
16074      extern "C"
16075 #  endif
16076    int F77_DUMMY_MAIN() { return 1; }
16077 #endif
16078 int
16079 main ()
16080 {
16081
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086          rm -f conftest.$ac_objext
16087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16088   (eval $ac_compile) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); } &&
16092          { ac_try='test -s conftest.$ac_objext'
16093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094   (eval $ac_try) 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; }; then
16098   break
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 cat conftest.$ac_ext >&5
16102 fi
16103 rm -f conftest.$ac_objext
16104          CC="$CC -n32"
16105          rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107   (eval $ac_compile) 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -s conftest.$ac_objext'
16112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113   (eval $ac_try) 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); }; }; then
16117   ac_cv_sys_largefile_CC=' -n32'; break
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
16121 fi
16122 rm -f conftest.$ac_objext
16123          break
16124        done
16125        CC=$ac_save_CC
16126        rm -f conftest.$ac_ext
16127     fi
16128 fi
16129 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16130 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16131   if test "$ac_cv_sys_largefile_CC" != no; then
16132     CC=$CC$ac_cv_sys_largefile_CC
16133   fi
16134
16135   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16136 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16138   echo $ECHO_N "(cached) $ECHO_C" >&6
16139 else
16140   while :; do
16141   ac_cv_sys_file_offset_bits=no
16142   cat >conftest.$ac_ext <<_ACEOF
16143 #line $LINENO "configure"
16144 #include "confdefs.h"
16145 #include <sys/types.h>
16146  /* Check that off_t can represent 2**63 - 1 correctly.
16147     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16148     since some C++ compilers masquerading as C compilers
16149     incorrectly reject 9223372036854775807.  */
16150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16151   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16152                        && LARGE_OFF_T % 2147483647 == 1)
16153                       ? 1 : -1];
16154 #ifdef F77_DUMMY_MAIN
16155 #  ifdef __cplusplus
16156      extern "C"
16157 #  endif
16158    int F77_DUMMY_MAIN() { return 1; }
16159 #endif
16160 int
16161 main ()
16162 {
16163
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170   (eval $ac_compile) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -s conftest.$ac_objext'
16175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176   (eval $ac_try) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180   break
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16184 fi
16185 rm -f conftest.$ac_objext conftest.$ac_ext
16186   cat >conftest.$ac_ext <<_ACEOF
16187 #line $LINENO "configure"
16188 #include "confdefs.h"
16189 #define _FILE_OFFSET_BITS 64
16190 #include <sys/types.h>
16191  /* Check that off_t can represent 2**63 - 1 correctly.
16192     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16193     since some C++ compilers masquerading as C compilers
16194     incorrectly reject 9223372036854775807.  */
16195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16196   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16197                        && LARGE_OFF_T % 2147483647 == 1)
16198                       ? 1 : -1];
16199 #ifdef F77_DUMMY_MAIN
16200 #  ifdef __cplusplus
16201      extern "C"
16202 #  endif
16203    int F77_DUMMY_MAIN() { return 1; }
16204 #endif
16205 int
16206 main ()
16207 {
16208
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215   (eval $ac_compile) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } &&
16219          { ac_try='test -s conftest.$ac_objext'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; }; then
16225   ac_cv_sys_file_offset_bits=64; break
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16229 fi
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16231   break
16232 done
16233 fi
16234 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16235 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16236 if test "$ac_cv_sys_file_offset_bits" != no; then
16237
16238 cat >>confdefs.h <<_ACEOF
16239 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16240 _ACEOF
16241
16242 fi
16243 rm -f conftest*
16244   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16245 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16246 if test "${ac_cv_sys_large_files+set}" = set; then
16247   echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249   while :; do
16250   ac_cv_sys_large_files=no
16251   cat >conftest.$ac_ext <<_ACEOF
16252 #line $LINENO "configure"
16253 #include "confdefs.h"
16254 #include <sys/types.h>
16255  /* Check that off_t can represent 2**63 - 1 correctly.
16256     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16257     since some C++ compilers masquerading as C compilers
16258     incorrectly reject 9223372036854775807.  */
16259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16260   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16261                        && LARGE_OFF_T % 2147483647 == 1)
16262                       ? 1 : -1];
16263 #ifdef F77_DUMMY_MAIN
16264 #  ifdef __cplusplus
16265      extern "C"
16266 #  endif
16267    int F77_DUMMY_MAIN() { return 1; }
16268 #endif
16269 int
16270 main ()
16271 {
16272
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 rm -f conftest.$ac_objext
16278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16279   (eval $ac_compile) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); } &&
16283          { ac_try='test -s conftest.$ac_objext'
16284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285   (eval $ac_try) 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; }; then
16289   break
16290 else
16291   echo "$as_me: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16293 fi
16294 rm -f conftest.$ac_objext conftest.$ac_ext
16295   cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16297 #include "confdefs.h"
16298 #define _LARGE_FILES 1
16299 #include <sys/types.h>
16300  /* Check that off_t can represent 2**63 - 1 correctly.
16301     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16302     since some C++ compilers masquerading as C compilers
16303     incorrectly reject 9223372036854775807.  */
16304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16305   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16306                        && LARGE_OFF_T % 2147483647 == 1)
16307                       ? 1 : -1];
16308 #ifdef F77_DUMMY_MAIN
16309 #  ifdef __cplusplus
16310      extern "C"
16311 #  endif
16312    int F77_DUMMY_MAIN() { return 1; }
16313 #endif
16314 int
16315 main ()
16316 {
16317
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324   (eval $ac_compile) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } &&
16328          { ac_try='test -s conftest.$ac_objext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334   ac_cv_sys_large_files=1; break
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 fi
16339 rm -f conftest.$ac_objext conftest.$ac_ext
16340   break
16341 done
16342 fi
16343 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16344 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16345 if test "$ac_cv_sys_large_files" != no; then
16346
16347 cat >>confdefs.h <<_ACEOF
16348 #define _LARGE_FILES $ac_cv_sys_large_files
16349 _ACEOF
16350
16351 fi
16352 rm -f conftest*
16353 fi
16354
16355 fi
16356
16357
16358 # Select semaphore implementation type.
16359 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16360
16361 cat >>confdefs.h <<\_ACEOF
16362 #define USE_NAMED_POSIX_SEMAPHORES 1
16363 _ACEOF
16364
16365   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16366 else
16367   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16368
16369 cat >>confdefs.h <<\_ACEOF
16370 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16371 _ACEOF
16372
16373     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16374   else
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define USE_SYSV_SEMAPHORES 1
16378 _ACEOF
16379
16380     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16381   fi
16382 fi
16383
16384
16385 # Select shared-memory implementation type.
16386
16387 cat >>confdefs.h <<\_ACEOF
16388 #define USE_SYSV_SHARED_MEMORY 1
16389 _ACEOF
16390
16391 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16392
16393
16394 if test "$enable_nls" = yes ; then
16395
16396   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16397 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16398 if test "${ac_cv_search_gettext+set}" = set; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401   ac_func_search_save_LIBS=$LIBS
16402 ac_cv_search_gettext=no
16403 cat >conftest.$ac_ext <<_ACEOF
16404 #line $LINENO "configure"
16405 #include "confdefs.h"
16406
16407 /* Override any gcc2 internal prototype to avoid an error.  */
16408 #ifdef __cplusplus
16409 extern "C"
16410 #endif
16411 /* We use char because int might match the return type of a gcc2
16412    builtin and then its argument prototype would still apply.  */
16413 char gettext ();
16414 #ifdef F77_DUMMY_MAIN
16415 #  ifdef __cplusplus
16416      extern "C"
16417 #  endif
16418    int F77_DUMMY_MAIN() { return 1; }
16419 #endif
16420 int
16421 main ()
16422 {
16423 gettext ();
16424   ;
16425   return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430   (eval $ac_link) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -s conftest$ac_exeext'
16435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436   (eval $ac_try) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); }; }; then
16440   ac_cv_search_gettext="none required"
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 fi
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446 if test "$ac_cv_search_gettext" = no; then
16447   for ac_lib in intl; do
16448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16449     cat >conftest.$ac_ext <<_ACEOF
16450 #line $LINENO "configure"
16451 #include "confdefs.h"
16452
16453 /* Override any gcc2 internal prototype to avoid an error.  */
16454 #ifdef __cplusplus
16455 extern "C"
16456 #endif
16457 /* We use char because int might match the return type of a gcc2
16458    builtin and then its argument prototype would still apply.  */
16459 char gettext ();
16460 #ifdef F77_DUMMY_MAIN
16461 #  ifdef __cplusplus
16462      extern "C"
16463 #  endif
16464    int F77_DUMMY_MAIN() { return 1; }
16465 #endif
16466 int
16467 main ()
16468 {
16469 gettext ();
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476   (eval $ac_link) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -s conftest$ac_exeext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   ac_cv_search_gettext="-l$ac_lib"
16487 break
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16491 fi
16492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16493   done
16494 fi
16495 LIBS=$ac_func_search_save_LIBS
16496 fi
16497 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16498 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16499 if test "$ac_cv_search_gettext" != no; then
16500   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16501
16502 else
16503   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16504 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16505    { (exit 1); exit 1; }; }
16506 fi
16507
16508   if test "${ac_cv_header_libintl_h+set}" = set; then
16509   echo "$as_me:$LINENO: checking for libintl.h" >&5
16510 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16511 if test "${ac_cv_header_libintl_h+set}" = set; then
16512   echo $ECHO_N "(cached) $ECHO_C" >&6
16513 fi
16514 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16515 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16516 else
16517   # Is the header compilable?
16518 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16519 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16521 #line $LINENO "configure"
16522 #include "confdefs.h"
16523 $ac_includes_default
16524 #include <libintl.h>
16525 _ACEOF
16526 rm -f conftest.$ac_objext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16528   (eval $ac_compile) 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } &&
16532          { ac_try='test -s conftest.$ac_objext'
16533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534   (eval $ac_try) 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); }; }; then
16538   ac_header_compiler=yes
16539 else
16540   echo "$as_me: failed program was:" >&5
16541 cat conftest.$ac_ext >&5
16542 ac_header_compiler=no
16543 fi
16544 rm -f conftest.$ac_objext conftest.$ac_ext
16545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6
16547
16548 # Is the header present?
16549 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16550 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16551 cat >conftest.$ac_ext <<_ACEOF
16552 #line $LINENO "configure"
16553 #include "confdefs.h"
16554 #include <libintl.h>
16555 _ACEOF
16556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16558   ac_status=$?
16559   egrep -v '^ *\+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } >/dev/null; then
16564   if test -s conftest.err; then
16565     ac_cpp_err=$ac_c_preproc_warn_flag
16566   else
16567     ac_cpp_err=
16568   fi
16569 else
16570   ac_cpp_err=yes
16571 fi
16572 if test -z "$ac_cpp_err"; then
16573   ac_header_preproc=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576   cat conftest.$ac_ext >&5
16577   ac_header_preproc=no
16578 fi
16579 rm -f conftest.err conftest.$ac_ext
16580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16581 echo "${ECHO_T}$ac_header_preproc" >&6
16582
16583 # So?  What about this header?
16584 case $ac_header_compiler:$ac_header_preproc in
16585   yes:no )
16586     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16587 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16588     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16589 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16590   no:yes )
16591     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16592 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16593     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16594 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16595     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16596 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16597 esac
16598 echo "$as_me:$LINENO: checking for libintl.h" >&5
16599 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16600 if test "${ac_cv_header_libintl_h+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   ac_cv_header_libintl_h=$ac_header_preproc
16604 fi
16605 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16606 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16607
16608 fi
16609 if test $ac_cv_header_libintl_h = yes; then
16610   :
16611 else
16612   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16613 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16614    { (exit 1); exit 1; }; }
16615 fi
16616
16617
16618   for ac_prog in msgfmt
16619 do
16620   # Extract the first word of "$ac_prog", so it can be a program name with args.
16621 set dummy $ac_prog; ac_word=$2
16622 echo "$as_me:$LINENO: checking for $ac_word" >&5
16623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16624 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16625   echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627   if test -n "$MSGFMT"; then
16628   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16629 else
16630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16631 for as_dir in $PATH
16632 do
16633   IFS=$as_save_IFS
16634   test -z "$as_dir" && as_dir=.
16635   for ac_exec_ext in '' $ac_executable_extensions; do
16636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16637     ac_cv_prog_MSGFMT="$ac_prog"
16638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16639     break 2
16640   fi
16641 done
16642 done
16643
16644 fi
16645 fi
16646 MSGFMT=$ac_cv_prog_MSGFMT
16647 if test -n "$MSGFMT"; then
16648   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16649 echo "${ECHO_T}$MSGFMT" >&6
16650 else
16651   echo "$as_me:$LINENO: result: no" >&5
16652 echo "${ECHO_T}no" >&6
16653 fi
16654
16655   test -n "$MSGFMT" && break
16656 done
16657
16658   if test -z "$MSGFMT"; then
16659     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16660 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16661    { (exit 1); exit 1; }; }
16662   fi
16663   for ac_prog in msgmerge
16664 do
16665   # Extract the first word of "$ac_prog", so it can be a program name with args.
16666 set dummy $ac_prog; ac_word=$2
16667 echo "$as_me:$LINENO: checking for $ac_word" >&5
16668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16669 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   if test -n "$MSGMERGE"; then
16673   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16674 else
16675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16676 for as_dir in $PATH
16677 do
16678   IFS=$as_save_IFS
16679   test -z "$as_dir" && as_dir=.
16680   for ac_exec_ext in '' $ac_executable_extensions; do
16681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16682     ac_cv_prog_MSGMERGE="$ac_prog"
16683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16684     break 2
16685   fi
16686 done
16687 done
16688
16689 fi
16690 fi
16691 MSGMERGE=$ac_cv_prog_MSGMERGE
16692 if test -n "$MSGMERGE"; then
16693   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16694 echo "${ECHO_T}$MSGMERGE" >&6
16695 else
16696   echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6
16698 fi
16699
16700   test -n "$MSGMERGE" && break
16701 done
16702
16703   for ac_prog in xgettext
16704 do
16705   # Extract the first word of "$ac_prog", so it can be a program name with args.
16706 set dummy $ac_prog; ac_word=$2
16707 echo "$as_me:$LINENO: checking for $ac_word" >&5
16708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16709 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   if test -n "$XGETTEXT"; then
16713   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16714 else
16715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16716 for as_dir in $PATH
16717 do
16718   IFS=$as_save_IFS
16719   test -z "$as_dir" && as_dir=.
16720   for ac_exec_ext in '' $ac_executable_extensions; do
16721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16722     ac_cv_prog_XGETTEXT="$ac_prog"
16723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16724     break 2
16725   fi
16726 done
16727 done
16728
16729 fi
16730 fi
16731 XGETTEXT=$ac_cv_prog_XGETTEXT
16732 if test -n "$XGETTEXT"; then
16733   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16734 echo "${ECHO_T}$XGETTEXT" >&6
16735 else
16736   echo "$as_me:$LINENO: result: no" >&5
16737 echo "${ECHO_T}no" >&6
16738 fi
16739
16740   test -n "$XGETTEXT" && break
16741 done
16742
16743
16744   # Note: share/locale is always the default, independent of $datadir
16745   localedir='${prefix}/share/locale'
16746   if test x"$prefix" = x"NONE"; then
16747     exp_localedir="$ac_default_prefix/share/locale"
16748   else
16749     exp_localedir="$prefix/share/locale"
16750   fi
16751
16752
16753
16754 cat >>confdefs.h <<_ACEOF
16755 #define LOCALEDIR "$exp_localedir"
16756 _ACEOF
16757
16758
16759 fi
16760
16761 # Check for Tcl configuration script tclConfig.sh
16762 if test "$with_tcl" = yes; then
16763     for ac_prog in tclsh tcl
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_path_TCLSH+set}" = set; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   case $TCLSH in
16773   [\\/]* | ?:[\\/]*)
16774   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16775   ;;
16776   *)
16777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16778 for as_dir in $PATH
16779 do
16780   IFS=$as_save_IFS
16781   test -z "$as_dir" && as_dir=.
16782   for ac_exec_ext in '' $ac_executable_extensions; do
16783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16784     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16786     break 2
16787   fi
16788 done
16789 done
16790
16791   ;;
16792 esac
16793 fi
16794 TCLSH=$ac_cv_path_TCLSH
16795
16796 if test -n "$TCLSH"; then
16797   echo "$as_me:$LINENO: result: $TCLSH" >&5
16798 echo "${ECHO_T}$TCLSH" >&6
16799 else
16800   echo "$as_me:$LINENO: result: no" >&5
16801 echo "${ECHO_T}no" >&6
16802 fi
16803
16804   test -n "$TCLSH" && break
16805 done
16806
16807 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16808 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16809 # Let user override test
16810 if test -z "$TCL_CONFIG_SH"; then
16811     pgac_test_dirs="$with_tclconfig"
16812
16813     set X $pgac_test_dirs; shift
16814     if test $# -eq 0; then
16815         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16816 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16817    { (exit 1); exit 1; }; }
16818         set X `echo 'puts $auto_path' | $TCLSH`; shift
16819     fi
16820
16821     for pgac_dir do
16822         if test -r "$pgac_dir/tclConfig.sh"; then
16823             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16824             break
16825         fi
16826     done
16827 fi
16828
16829 if test -z "$TCL_CONFIG_SH"; then
16830     echo "$as_me:$LINENO: result: no" >&5
16831 echo "${ECHO_T}no" >&6
16832     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16833 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16834    { (exit 1); exit 1; }; }
16835 else
16836     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16837 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16838 fi
16839
16840
16841
16842     . "$TCL_CONFIG_SH"
16843 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16844 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16845 eval TCL_LIBS=\"$TCL_LIBS\"
16846 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16847 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16848
16849     fi
16850
16851 # Check for Tk configuration script tkConfig.sh
16852 if test "$with_tk" = yes; then
16853     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16854 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16855 # Let user override test
16856 if test -z "$TK_CONFIG_SH"; then
16857     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16858
16859     set X $pgac_test_dirs; shift
16860     if test $# -eq 0; then
16861         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16862 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16863    { (exit 1); exit 1; }; }
16864         set X `echo 'puts $auto_path' | $TCLSH`; shift
16865     fi
16866
16867     for pgac_dir do
16868         if test -r "$pgac_dir/tkConfig.sh"; then
16869             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16870             break
16871         fi
16872     done
16873 fi
16874
16875 if test -z "$TK_CONFIG_SH"; then
16876     echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6
16878     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16879 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16880    { (exit 1); exit 1; }; }
16881 else
16882     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16883 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16884 fi
16885
16886
16887
16888     . "$TK_CONFIG_SH"
16889 eval TK_LIBS=\"$TK_LIBS\"
16890 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16891 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16892
16893 fi
16894
16895
16896 #
16897 # Check for DocBook and tools
16898 #
16899 for ac_prog in onsgmls nsgmls
16900 do
16901   # Extract the first word of "$ac_prog", so it can be a program name with args.
16902 set dummy $ac_prog; ac_word=$2
16903 echo "$as_me:$LINENO: checking for $ac_word" >&5
16904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16905 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   if test -n "$NSGMLS"; then
16909   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16910 else
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16913 do
16914   IFS=$as_save_IFS
16915   test -z "$as_dir" && as_dir=.
16916   for ac_exec_ext in '' $ac_executable_extensions; do
16917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16918     ac_cv_prog_NSGMLS="$ac_prog"
16919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16920     break 2
16921   fi
16922 done
16923 done
16924
16925 fi
16926 fi
16927 NSGMLS=$ac_cv_prog_NSGMLS
16928 if test -n "$NSGMLS"; then
16929   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16930 echo "${ECHO_T}$NSGMLS" >&6
16931 else
16932   echo "$as_me:$LINENO: result: no" >&5
16933 echo "${ECHO_T}no" >&6
16934 fi
16935
16936   test -n "$NSGMLS" && break
16937 done
16938
16939 for ac_prog in openjade jade
16940 do
16941   # Extract the first word of "$ac_prog", so it can be a program name with args.
16942 set dummy $ac_prog; ac_word=$2
16943 echo "$as_me:$LINENO: checking for $ac_word" >&5
16944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16945 if test "${ac_cv_prog_JADE+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   if test -n "$JADE"; then
16949   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16950 else
16951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16953 do
16954   IFS=$as_save_IFS
16955   test -z "$as_dir" && as_dir=.
16956   for ac_exec_ext in '' $ac_executable_extensions; do
16957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16958     ac_cv_prog_JADE="$ac_prog"
16959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16960     break 2
16961   fi
16962 done
16963 done
16964
16965 fi
16966 fi
16967 JADE=$ac_cv_prog_JADE
16968 if test -n "$JADE"; then
16969   echo "$as_me:$LINENO: result: $JADE" >&5
16970 echo "${ECHO_T}$JADE" >&6
16971 else
16972   echo "$as_me:$LINENO: result: no" >&5
16973 echo "${ECHO_T}no" >&6
16974 fi
16975
16976   test -n "$JADE" && break
16977 done
16978
16979
16980 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16981 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16982 if test "${pgac_cv_check_docbook+set}" = set; then
16983   echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985   cat >conftest.sgml <<EOF
16986 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16987 <book>
16988  <title>test</title>
16989  <chapter>
16990   <title>random</title>
16991    <sect1>
16992     <title>testsect</title>
16993     <para>text</para>
16994   </sect1>
16995  </chapter>
16996 </book>
16997 EOF
16998
16999 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17000 if test $? -eq 0; then
17001   pgac_cv_check_docbook=yes
17002 else
17003   pgac_cv_check_docbook=no
17004 fi
17005 rm -f conftest.sgml
17006 fi
17007 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17008 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17009
17010 have_docbook=$pgac_cv_check_docbook
17011
17012
17013 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17014 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17015 if test "${pgac_cv_path_stylesheets+set}" = set; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   if test -n "$DOCBOOKSTYLE"; then
17019   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17020 else
17021   for pgac_prefix in /usr /usr/local /opt; do
17022     for pgac_infix in share lib; do
17023       for pgac_postfix in \
17024         sgml/stylesheets/nwalsh-modular \
17025         sgml/stylesheets/docbook \
17026         sgml/docbook/dsssl/modular \
17027         sgml/docbook/stylesheet/dsssl/modular \
17028         sgml/docbook/dsssl-stylesheets
17029       do
17030         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17031         if test -r "$pgac_candidate/html/docbook.dsl" \
17032            && test -r "$pgac_candidate/print/docbook.dsl"
17033         then
17034           pgac_cv_path_stylesheets=$pgac_candidate
17035           break 3
17036         fi
17037       done
17038     done
17039   done
17040 fi
17041 fi
17042
17043 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17044
17045 if test -n "$DOCBOOKSTYLE"; then
17046   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17047 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17048 else
17049   echo "$as_me:$LINENO: result: no" >&5
17050 echo "${ECHO_T}no" >&6
17051 fi
17052 if test -n "$DOCBOOKSTYLE"; then
17053   for ac_prog in collateindex.pl
17054 do
17055   # Extract the first word of "$ac_prog", so it can be a program name with args.
17056 set dummy $ac_prog; ac_word=$2
17057 echo "$as_me:$LINENO: checking for $ac_word" >&5
17058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17059 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   case $COLLATEINDEX in
17063   [\\/]* | ?:[\\/]*)
17064   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17065   ;;
17066   *)
17067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068 for as_dir in $DOCBOOKSTYLE/bin $PATH
17069 do
17070   IFS=$as_save_IFS
17071   test -z "$as_dir" && as_dir=.
17072   for ac_exec_ext in '' $ac_executable_extensions; do
17073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17074     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17076     break 2
17077   fi
17078 done
17079 done
17080
17081   ;;
17082 esac
17083 fi
17084 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17085
17086 if test -n "$COLLATEINDEX"; then
17087   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17088 echo "${ECHO_T}$COLLATEINDEX" >&6
17089 else
17090   echo "$as_me:$LINENO: result: no" >&5
17091 echo "${ECHO_T}no" >&6
17092 fi
17093
17094   test -n "$COLLATEINDEX" && break
17095 done
17096
17097 else
17098   for ac_prog in collateindex.pl
17099 do
17100   # Extract the first word of "$ac_prog", so it can be a program name with args.
17101 set dummy $ac_prog; ac_word=$2
17102 echo "$as_me:$LINENO: checking for $ac_word" >&5
17103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17104 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17105   echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107   case $COLLATEINDEX in
17108   [\\/]* | ?:[\\/]*)
17109   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17110   ;;
17111   *)
17112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17113 for as_dir in $PATH
17114 do
17115   IFS=$as_save_IFS
17116   test -z "$as_dir" && as_dir=.
17117   for ac_exec_ext in '' $ac_executable_extensions; do
17118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17119     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17121     break 2
17122   fi
17123 done
17124 done
17125
17126   ;;
17127 esac
17128 fi
17129 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17130
17131 if test -n "$COLLATEINDEX"; then
17132   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17133 echo "${ECHO_T}$COLLATEINDEX" >&6
17134 else
17135   echo "$as_me:$LINENO: result: no" >&5
17136 echo "${ECHO_T}no" >&6
17137 fi
17138
17139   test -n "$COLLATEINDEX" && break
17140 done
17141
17142 fi
17143 for ac_prog in sgmlspl
17144 do
17145   # Extract the first word of "$ac_prog", so it can be a program name with args.
17146 set dummy $ac_prog; ac_word=$2
17147 echo "$as_me:$LINENO: checking for $ac_word" >&5
17148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17149 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17150   echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152   if test -n "$SGMLSPL"; then
17153   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17154 else
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 for as_dir in $PATH
17157 do
17158   IFS=$as_save_IFS
17159   test -z "$as_dir" && as_dir=.
17160   for ac_exec_ext in '' $ac_executable_extensions; do
17161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17162     ac_cv_prog_SGMLSPL="$ac_prog"
17163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17164     break 2
17165   fi
17166 done
17167 done
17168
17169 fi
17170 fi
17171 SGMLSPL=$ac_cv_prog_SGMLSPL
17172 if test -n "$SGMLSPL"; then
17173   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17174 echo "${ECHO_T}$SGMLSPL" >&6
17175 else
17176   echo "$as_me:$LINENO: result: no" >&5
17177 echo "${ECHO_T}no" >&6
17178 fi
17179
17180   test -n "$SGMLSPL" && break
17181 done
17182
17183
17184
17185 # prepare build tree if outside source tree
17186 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17187 # Note 2: /bin/pwd might be better than shell's built-in at getting
17188 #         a symlink-free name.
17189 if test "$no_create" != yes; then
17190   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17191     :
17192   else
17193     vpath_build=yes
17194
17195     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17196     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17197     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17198       || { { echo "$as_me:$LINENO: error: failed" >&5
17199 echo "$as_me: error: failed" >&2;}
17200    { (exit 1); exit 1; }; }
17201     echo "$as_me:$LINENO: result: done" >&5
17202 echo "${ECHO_T}done" >&6
17203   fi
17204 fi
17205
17206
17207 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17208
17209
17210 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}"
17211
17212
17213 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17214
17215
17216 cat >confcache <<\_ACEOF
17217 # This file is a shell script that caches the results of configure
17218 # tests run on this system so they can be shared between configure
17219 # scripts and configure runs, see configure's option --config-cache.
17220 # It is not useful on other systems.  If it contains results you don't
17221 # want to keep, you may remove or edit it.
17222 #
17223 # config.status only pays attention to the cache file if you give it
17224 # the --recheck option to rerun configure.
17225 #
17226 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17228 # following values.
17229
17230 _ACEOF
17231
17232 # The following way of writing the cache mishandles newlines in values,
17233 # but we know of no workaround that is simple, portable, and efficient.
17234 # So, don't put newlines in cache variables' values.
17235 # Ultrix sh set writes to stderr and can't be redirected directly,
17236 # and sets the high bit in the cache file unless we assign to the vars.
17237 {
17238   (set) 2>&1 |
17239     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17240     *ac_space=\ *)
17241       # `set' does not quote correctly, so add quotes (double-quote
17242       # substitution turns \\\\ into \\, and sed turns \\ into \).
17243       sed -n \
17244         "s/'/'\\\\''/g;
17245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17246       ;;
17247     *)
17248       # `set' quotes correctly as required by POSIX, so do not add quotes.
17249       sed -n \
17250         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17251       ;;
17252     esac;
17253 } |
17254   sed '
17255      t clear
17256      : clear
17257      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17258      t end
17259      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17260      : end' >>confcache
17261 if cmp -s $cache_file confcache; then :; else
17262   if test -w $cache_file; then
17263     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17264     cat confcache >$cache_file
17265   else
17266     echo "not updating unwritable cache $cache_file"
17267   fi
17268 fi
17269 rm -f confcache
17270
17271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17272 # Let make expand exec_prefix.
17273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17274
17275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17277 # trailing colons and then remove the whole line if VPATH becomes empty
17278 # (actually we leave an empty line to preserve line numbers).
17279 if test "x$srcdir" = x.; then
17280   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17281 s/:*\$(srcdir):*/:/;
17282 s/:*\${srcdir}:*/:/;
17283 s/:*@srcdir@:*/:/;
17284 s/^\([^=]*=[    ]*\):*/\1/;
17285 s/:*$//;
17286 s/^[^=]*=[      ]*$//;
17287 }'
17288 fi
17289
17290 DEFS=-DHAVE_CONFIG_H
17291
17292
17293 : ${CONFIG_STATUS=./config.status}
17294 ac_clean_files_save=$ac_clean_files
17295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17298 cat >$CONFIG_STATUS <<_ACEOF
17299 #! $SHELL
17300 # Generated by $as_me.
17301 # Run this file to recreate the current configuration.
17302 # Compiler output produced by configure, useful for debugging
17303 # configure, is in config.log if it exists.
17304
17305 debug=false
17306 SHELL=\${CONFIG_SHELL-$SHELL}
17307 _ACEOF
17308
17309 cat >>$CONFIG_STATUS <<\_ACEOF
17310
17311 ## --------------------- ##
17312 ## M4sh Initialization.  ##
17313 ## --------------------- ##
17314
17315 # Be Bourne compatible
17316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17317   emulate sh
17318   NULLCMD=:
17319 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17320   set -o posix
17321 fi
17322
17323 # NLS nuisances.
17324 # Support unset when possible.
17325 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17326   as_unset=unset
17327 else
17328   as_unset=false
17329 fi
17330
17331 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17332     { $as_unset LANG || test "${LANG+set}" != set; } ||
17333       { LANG=C; export LANG; }
17334 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17335     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17336       { LC_ALL=C; export LC_ALL; }
17337 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17338     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17339       { LC_TIME=C; export LC_TIME; }
17340 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17341     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17342       { LC_CTYPE=C; export LC_CTYPE; }
17343 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17344     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17345       { LANGUAGE=C; export LANGUAGE; }
17346 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17347     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17348       { LC_COLLATE=C; export LC_COLLATE; }
17349 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17350     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17351       { LC_NUMERIC=C; export LC_NUMERIC; }
17352 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17353     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17354       { LC_MESSAGES=C; export LC_MESSAGES; }
17355
17356
17357 # Name of the executable.
17358 as_me=`(basename "$0") 2>/dev/null ||
17359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17360          X"$0" : 'X\(//\)$' \| \
17361          X"$0" : 'X\(/\)$' \| \
17362          .     : '\(.\)' 2>/dev/null ||
17363 echo X/"$0" |
17364     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17365           /^X\/\(\/\/\)$/{ s//\1/; q; }
17366           /^X\/\(\/\).*/{ s//\1/; q; }
17367           s/.*/./; q'`
17368
17369 # PATH needs CR, and LINENO needs CR and PATH.
17370 # Avoid depending upon Character Ranges.
17371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17374 as_cr_digits='0123456789'
17375 as_cr_alnum=$as_cr_Letters$as_cr_digits
17376
17377 # The user is always right.
17378 if test "${PATH_SEPARATOR+set}" != set; then
17379   echo "#! /bin/sh" >conftest.sh
17380   echo  "exit 0"   >>conftest.sh
17381   chmod +x conftest.sh
17382   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17383     PATH_SEPARATOR=';'
17384   else
17385     PATH_SEPARATOR=:
17386   fi
17387   rm -f conftest.sh
17388 fi
17389
17390
17391   as_lineno_1=$LINENO
17392   as_lineno_2=$LINENO
17393   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17394   test "x$as_lineno_1" != "x$as_lineno_2" &&
17395   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17396   # Find who we are.  Look in the path if we contain no path at all
17397   # relative or not.
17398   case $0 in
17399     *[\\/]* ) as_myself=$0 ;;
17400     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401 for as_dir in $PATH
17402 do
17403   IFS=$as_save_IFS
17404   test -z "$as_dir" && as_dir=.
17405   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17406 done
17407
17408        ;;
17409   esac
17410   # We did not find ourselves, most probably we were run as `sh COMMAND'
17411   # in which case we are not to be found in the path.
17412   if test "x$as_myself" = x; then
17413     as_myself=$0
17414   fi
17415   if test ! -f "$as_myself"; then
17416     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17417 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17418    { (exit 1); exit 1; }; }
17419   fi
17420   case $CONFIG_SHELL in
17421   '')
17422     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17423 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17424 do
17425   IFS=$as_save_IFS
17426   test -z "$as_dir" && as_dir=.
17427   for as_base in sh bash ksh sh5; do
17428          case $as_dir in
17429          /*)
17430            if ("$as_dir/$as_base" -c '
17431   as_lineno_1=$LINENO
17432   as_lineno_2=$LINENO
17433   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17434   test "x$as_lineno_1" != "x$as_lineno_2" &&
17435   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17436              CONFIG_SHELL=$as_dir/$as_base
17437              export CONFIG_SHELL
17438              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17439            fi;;
17440          esac
17441        done
17442 done
17443 ;;
17444   esac
17445
17446   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17447   # uniformly replaced by the line number.  The first 'sed' inserts a
17448   # line-number line before each line; the second 'sed' does the real
17449   # work.  The second script uses 'N' to pair each line-number line
17450   # with the numbered line, and appends trailing '-' during
17451   # substitution so that $LINENO is not a special case at line end.
17452   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17453   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17454   sed '=' <$as_myself |
17455     sed '
17456       N
17457       s,$,-,
17458       : loop
17459       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17460       t loop
17461       s,-$,,
17462       s,^['$as_cr_digits']*\n,,
17463     ' >$as_me.lineno &&
17464   chmod +x $as_me.lineno ||
17465     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17467    { (exit 1); exit 1; }; }
17468
17469   # Don't try to exec as it changes $[0], causing all sort of problems
17470   # (the dirname of $[0] is not the place where we might find the
17471   # original and so on.  Autoconf is especially sensible to this).
17472   . ./$as_me.lineno
17473   # Exit status is that of the last command.
17474   exit
17475 }
17476
17477
17478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17479   *c*,-n*) ECHO_N= ECHO_C='
17480 ' ECHO_T='      ' ;;
17481   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17482   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17483 esac
17484
17485 if expr a : '\(a\)' >/dev/null 2>&1; then
17486   as_expr=expr
17487 else
17488   as_expr=false
17489 fi
17490
17491 rm -f conf$$ conf$$.exe conf$$.file
17492 echo >conf$$.file
17493 if ln -s conf$$.file conf$$ 2>/dev/null; then
17494   # We could just check for DJGPP; but this test a) works b) is more generic
17495   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17496   if test -f conf$$.exe; then
17497     # Don't use ln at all; we don't have any links
17498     as_ln_s='cp -p'
17499   else
17500     as_ln_s='ln -s'
17501   fi
17502 elif ln conf$$.file conf$$ 2>/dev/null; then
17503   as_ln_s=ln
17504 else
17505   as_ln_s='cp -p'
17506 fi
17507 rm -f conf$$ conf$$.exe conf$$.file
17508
17509 as_executable_p="test -f"
17510
17511 # Sed expression to map a string onto a valid CPP name.
17512 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17513
17514 # Sed expression to map a string onto a valid variable name.
17515 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17516
17517
17518 # IFS
17519 # We need space, tab and new line, in precisely that order.
17520 as_nl='
17521 '
17522 IFS="   $as_nl"
17523
17524 # CDPATH.
17525 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17526
17527 exec 6>&1
17528
17529 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17530 # report actual input values of CONFIG_FILES etc. instead of their
17531 # values after options handling.  Logging --version etc. is OK.
17532 exec 5>>config.log
17533 {
17534   echo
17535   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17536 ## Running $as_me. ##
17537 _ASBOX
17538 } >&5
17539 cat >&5 <<_CSEOF
17540
17541 This file was extended by PostgreSQL $as_me 7.4devel, which was
17542 generated by GNU Autoconf 2.53.  Invocation command line was
17543
17544   CONFIG_FILES    = $CONFIG_FILES
17545   CONFIG_HEADERS  = $CONFIG_HEADERS
17546   CONFIG_LINKS    = $CONFIG_LINKS
17547   CONFIG_COMMANDS = $CONFIG_COMMANDS
17548   $ $0 $@
17549
17550 _CSEOF
17551 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17552 echo >&5
17553 _ACEOF
17554
17555 # Files that config.status was made for.
17556 if test -n "$ac_config_files"; then
17557   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17558 fi
17559
17560 if test -n "$ac_config_headers"; then
17561   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17562 fi
17563
17564 if test -n "$ac_config_links"; then
17565   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17566 fi
17567
17568 if test -n "$ac_config_commands"; then
17569   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17570 fi
17571
17572 cat >>$CONFIG_STATUS <<\_ACEOF
17573
17574 ac_cs_usage="\
17575 \`$as_me' instantiates files from templates according to the
17576 current configuration.
17577
17578 Usage: $0 [OPTIONS] [FILE]...
17579
17580   -h, --help       print this help, then exit
17581   -V, --version    print version number, then exit
17582   -d, --debug      don't remove temporary files
17583       --recheck    update $as_me by reconfiguring in the same conditions
17584   --file=FILE[:TEMPLATE]
17585                    instantiate the configuration file FILE
17586   --header=FILE[:TEMPLATE]
17587                    instantiate the configuration header FILE
17588
17589 Configuration files:
17590 $config_files
17591
17592 Configuration headers:
17593 $config_headers
17594
17595 Configuration links:
17596 $config_links
17597
17598 Report bugs to <bug-autoconf@gnu.org>."
17599 _ACEOF
17600
17601 cat >>$CONFIG_STATUS <<_ACEOF
17602 ac_cs_version="\\
17603 PostgreSQL config.status 7.4devel
17604 configured by $0, generated by GNU Autoconf 2.53,
17605   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17606
17607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17608 Free Software Foundation, Inc.
17609 This config.status script is free software; the Free Software Foundation
17610 gives unlimited permission to copy, distribute and modify it."
17611 srcdir=$srcdir
17612 _ACEOF
17613
17614 cat >>$CONFIG_STATUS <<\_ACEOF
17615 # If no file are specified by the user, then we need to provide default
17616 # value.  By we need to know if files were specified by the user.
17617 ac_need_defaults=:
17618 while test $# != 0
17619 do
17620   case $1 in
17621   --*=*)
17622     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17623     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17624     shift
17625     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17626     shift
17627     ;;
17628   -*);;
17629   *) # This is not an option, so the user has probably given explicit
17630      # arguments.
17631      ac_need_defaults=false;;
17632   esac
17633
17634   case $1 in
17635   # Handling of the options.
17636 _ACEOF
17637 cat >>$CONFIG_STATUS <<_ACEOF
17638   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17639     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17640     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17641 _ACEOF
17642 cat >>$CONFIG_STATUS <<\_ACEOF
17643   --version | --vers* | -V )
17644     echo "$ac_cs_version"; exit 0 ;;
17645   --he | --h)
17646     # Conflict between --help and --header
17647     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17648 Try \`$0 --help' for more information." >&5
17649 echo "$as_me: error: ambiguous option: $1
17650 Try \`$0 --help' for more information." >&2;}
17651    { (exit 1); exit 1; }; };;
17652   --help | --hel | -h )
17653     echo "$ac_cs_usage"; exit 0 ;;
17654   --debug | --d* | -d )
17655     debug=: ;;
17656   --file | --fil | --fi | --f )
17657     shift
17658     CONFIG_FILES="$CONFIG_FILES $1"
17659     ac_need_defaults=false;;
17660   --header | --heade | --head | --hea )
17661     shift
17662     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17663     ac_need_defaults=false;;
17664
17665   # This is an error.
17666   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17667 Try \`$0 --help' for more information." >&5
17668 echo "$as_me: error: unrecognized option: $1
17669 Try \`$0 --help' for more information." >&2;}
17670    { (exit 1); exit 1; }; } ;;
17671
17672   *) ac_config_targets="$ac_config_targets $1" ;;
17673
17674   esac
17675   shift
17676 done
17677
17678 _ACEOF
17679
17680
17681
17682
17683
17684 cat >>$CONFIG_STATUS <<\_ACEOF
17685 for ac_config_target in $ac_config_targets
17686 do
17687   case "$ac_config_target" in
17688   # Handling of arguments.
17689   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17690   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17691   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17692   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17693   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17694   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17695   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17696   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17697   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17698   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17699   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17700 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17701    { (exit 1); exit 1; }; };;
17702   esac
17703 done
17704
17705 # If the user did not use the arguments to specify the items to instantiate,
17706 # then the envvar interface is used.  Set only those that are not.
17707 # We use the long form for the default assignment because of an extremely
17708 # bizarre bug on SunOS 4.1.3.
17709 if $ac_need_defaults; then
17710   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17711   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17712   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17713 fi
17714
17715 # Create a temporary directory, and hook for its removal unless debugging.
17716 $debug ||
17717 {
17718   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17719   trap '{ (exit 1); exit 1; }' 1 2 13 15
17720 }
17721
17722 # Create a (secure) tmp directory for tmp files.
17723 : ${TMPDIR=/tmp}
17724 {
17725   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17726   test -n "$tmp" && test -d "$tmp"
17727 }  ||
17728 {
17729   tmp=$TMPDIR/cs$$-$RANDOM
17730   (umask 077 && mkdir $tmp)
17731 } ||
17732 {
17733    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17734    { (exit 1); exit 1; }
17735 }
17736
17737 _ACEOF
17738
17739 cat >>$CONFIG_STATUS <<_ACEOF
17740
17741 #
17742 # CONFIG_FILES section.
17743 #
17744
17745 # No need to generate the scripts if there are no CONFIG_FILES.
17746 # This happens for instance when ./config.status config.h
17747 if test -n "\$CONFIG_FILES"; then
17748   # Protect against being on the right side of a sed subst in config.status.
17749   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17750    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17751 s,@SHELL@,$SHELL,;t t
17752 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17753 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17754 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17755 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17756 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17757 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17758 s,@exec_prefix@,$exec_prefix,;t t
17759 s,@prefix@,$prefix,;t t
17760 s,@program_transform_name@,$program_transform_name,;t t
17761 s,@bindir@,$bindir,;t t
17762 s,@sbindir@,$sbindir,;t t
17763 s,@libexecdir@,$libexecdir,;t t
17764 s,@datadir@,$datadir,;t t
17765 s,@sysconfdir@,$sysconfdir,;t t
17766 s,@sharedstatedir@,$sharedstatedir,;t t
17767 s,@localstatedir@,$localstatedir,;t t
17768 s,@libdir@,$libdir,;t t
17769 s,@includedir@,$includedir,;t t
17770 s,@oldincludedir@,$oldincludedir,;t t
17771 s,@infodir@,$infodir,;t t
17772 s,@mandir@,$mandir,;t t
17773 s,@build_alias@,$build_alias,;t t
17774 s,@host_alias@,$host_alias,;t t
17775 s,@target_alias@,$target_alias,;t t
17776 s,@DEFS@,$DEFS,;t t
17777 s,@ECHO_C@,$ECHO_C,;t t
17778 s,@ECHO_N@,$ECHO_N,;t t
17779 s,@ECHO_T@,$ECHO_T,;t t
17780 s,@LIBS@,$LIBS,;t t
17781 s,@docdir@,$docdir,;t t
17782 s,@configure_args@,$configure_args,;t t
17783 s,@build@,$build,;t t
17784 s,@build_cpu@,$build_cpu,;t t
17785 s,@build_vendor@,$build_vendor,;t t
17786 s,@build_os@,$build_os,;t t
17787 s,@host@,$host,;t t
17788 s,@host_cpu@,$host_cpu,;t t
17789 s,@host_vendor@,$host_vendor,;t t
17790 s,@host_os@,$host_os,;t t
17791 s,@PORTNAME@,$PORTNAME,;t t
17792 s,@TAS@,$TAS,;t t
17793 s,@enable_nls@,$enable_nls,;t t
17794 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17795 s,@default_port@,$default_port,;t t
17796 s,@enable_shared@,$enable_shared,;t t
17797 s,@enable_rpath@,$enable_rpath,;t t
17798 s,@enable_debug@,$enable_debug,;t t
17799 s,@CC@,$CC,;t t
17800 s,@CFLAGS@,$CFLAGS,;t t
17801 s,@LDFLAGS@,$LDFLAGS,;t t
17802 s,@CPPFLAGS@,$CPPFLAGS,;t t
17803 s,@ac_ct_CC@,$ac_ct_CC,;t t
17804 s,@EXEEXT@,$EXEEXT,;t t
17805 s,@OBJEXT@,$OBJEXT,;t t
17806 s,@CPP@,$CPP,;t t
17807 s,@GCC@,$GCC,;t t
17808 s,@autodepend@,$autodepend,;t t
17809 s,@INCLUDES@,$INCLUDES,;t t
17810 s,@enable_thread_safeness@,$enable_thread_safeness,;t t
17811 s,@with_tcl@,$with_tcl,;t t
17812 s,@with_tk@,$with_tk,;t t
17813 s,@with_perl@,$with_perl,;t t
17814 s,@with_python@,$with_python,;t t
17815 s,@ANT@,$ANT,;t t
17816 s,@with_java@,$with_java,;t t
17817 s,@with_krb4@,$with_krb4,;t t
17818 s,@with_krb5@,$with_krb5,;t t
17819 s,@krb_srvtab@,$krb_srvtab,;t t
17820 s,@with_pam@,$with_pam,;t t
17821 s,@with_rendezvous@,$with_rendezvous,;t t
17822 s,@with_openssl@,$with_openssl,;t t
17823 s,@ELF_SYS@,$ELF_SYS,;t t
17824 s,@AWK@,$AWK,;t t
17825 s,@FLEX@,$FLEX,;t t
17826 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17827 s,@LN_S@,$LN_S,;t t
17828 s,@LD@,$LD,;t t
17829 s,@with_gnu_ld@,$with_gnu_ld,;t t
17830 s,@ld_R_works@,$ld_R_works,;t t
17831 s,@RANLIB@,$RANLIB,;t t
17832 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17833 s,@LORDER@,$LORDER,;t t
17834 s,@TAR@,$TAR,;t t
17835 s,@STRIP@,$STRIP,;t t
17836 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17837 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17838 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17839 s,@YACC@,$YACC,;t t
17840 s,@YFLAGS@,$YFLAGS,;t t
17841 s,@PERL@,$PERL,;t t
17842 s,@perl_archlibexp@,$perl_archlibexp,;t t
17843 s,@perl_privlibexp@,$perl_privlibexp,;t t
17844 s,@perl_useshrplib@,$perl_useshrplib,;t t
17845 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17846 s,@PYTHON@,$PYTHON,;t t
17847 s,@python_version@,$python_version,;t t
17848 s,@python_prefix@,$python_prefix,;t t
17849 s,@python_execprefix@,$python_execprefix,;t t
17850 s,@python_configdir@,$python_configdir,;t t
17851 s,@python_moduledir@,$python_moduledir,;t t
17852 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17853 s,@python_includespec@,$python_includespec,;t t
17854 s,@python_libspec@,$python_libspec,;t t
17855 s,@LIBOBJS@,$LIBOBJS,;t t
17856 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17857 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17858 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17859 s,@MSGFMT@,$MSGFMT,;t t
17860 s,@MSGMERGE@,$MSGMERGE,;t t
17861 s,@XGETTEXT@,$XGETTEXT,;t t
17862 s,@localedir@,$localedir,;t t
17863 s,@TCLSH@,$TCLSH,;t t
17864 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17865 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17866 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17867 s,@TCL_LIBS@,$TCL_LIBS,;t t
17868 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17869 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17870 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17871 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17872 s,@TK_LIBS@,$TK_LIBS,;t t
17873 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17874 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17875 s,@NSGMLS@,$NSGMLS,;t t
17876 s,@JADE@,$JADE,;t t
17877 s,@have_docbook@,$have_docbook,;t t
17878 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17879 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17880 s,@SGMLSPL@,$SGMLSPL,;t t
17881 s,@vpath_build@,$vpath_build,;t t
17882 CEOF
17883
17884 _ACEOF
17885
17886   cat >>$CONFIG_STATUS <<\_ACEOF
17887   # Split the substitutions into bite-sized pieces for seds with
17888   # small command number limits, like on Digital OSF/1 and HP-UX.
17889   ac_max_sed_lines=48
17890   ac_sed_frag=1 # Number of current file.
17891   ac_beg=1 # First line for current file.
17892   ac_end=$ac_max_sed_lines # Line after last line for current file.
17893   ac_more_lines=:
17894   ac_sed_cmds=
17895   while $ac_more_lines; do
17896     if test $ac_beg -gt 1; then
17897       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17898     else
17899       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17900     fi
17901     if test ! -s $tmp/subs.frag; then
17902       ac_more_lines=false
17903     else
17904       # The purpose of the label and of the branching condition is to
17905       # speed up the sed processing (if there are no `@' at all, there
17906       # is no need to browse any of the substitutions).
17907       # These are the two extra sed commands mentioned above.
17908       (echo ':t
17909   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17910       if test -z "$ac_sed_cmds"; then
17911         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17912       else
17913         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17914       fi
17915       ac_sed_frag=`expr $ac_sed_frag + 1`
17916       ac_beg=$ac_end
17917       ac_end=`expr $ac_end + $ac_max_sed_lines`
17918     fi
17919   done
17920   if test -z "$ac_sed_cmds"; then
17921     ac_sed_cmds=cat
17922   fi
17923 fi # test -n "$CONFIG_FILES"
17924
17925 _ACEOF
17926 cat >>$CONFIG_STATUS <<\_ACEOF
17927 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17928   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17929   case $ac_file in
17930   - | *:- | *:-:* ) # input from stdin
17931         cat >$tmp/stdin
17932         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17933         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17934   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17936   * )   ac_file_in=$ac_file.in ;;
17937   esac
17938
17939   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17940   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17941 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17942          X"$ac_file" : 'X\(//\)[^/]' \| \
17943          X"$ac_file" : 'X\(//\)$' \| \
17944          X"$ac_file" : 'X\(/\)' \| \
17945          .     : '\(.\)' 2>/dev/null ||
17946 echo X"$ac_file" |
17947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17948           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17949           /^X\(\/\/\)$/{ s//\1/; q; }
17950           /^X\(\/\).*/{ s//\1/; q; }
17951           s/.*/./; q'`
17952   { case "$ac_dir" in
17953   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17954   *)                      as_incr_dir=.;;
17955 esac
17956 as_dummy="$ac_dir"
17957 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17958   case $as_mkdir_dir in
17959     # Skip DOS drivespec
17960     ?:) as_incr_dir=$as_mkdir_dir ;;
17961     *)
17962       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17963       test -d "$as_incr_dir" ||
17964         mkdir "$as_incr_dir" ||
17965         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17966 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17967    { (exit 1); exit 1; }; }
17968     ;;
17969   esac
17970 done; }
17971
17972   ac_builddir=.
17973
17974 if test "$ac_dir" != .; then
17975   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17976   # A "../" for each directory in $ac_dir_suffix.
17977   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17978 else
17979   ac_dir_suffix= ac_top_builddir=
17980 fi
17981
17982 case $srcdir in
17983   .)  # No --srcdir option.  We are building in place.
17984     ac_srcdir=.
17985     if test -z "$ac_top_builddir"; then
17986        ac_top_srcdir=.
17987     else
17988        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17989     fi ;;
17990   [\\/]* | ?:[\\/]* )  # Absolute path.
17991     ac_srcdir=$srcdir$ac_dir_suffix;
17992     ac_top_srcdir=$srcdir ;;
17993   *) # Relative path.
17994     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17995     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17996 esac
17997 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17998 # absolute.
17999 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18000 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18001 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18002 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18003
18004
18005
18006   if test x"$ac_file" != x-; then
18007     { echo "$as_me:$LINENO: creating $ac_file" >&5
18008 echo "$as_me: creating $ac_file" >&6;}
18009     rm -f "$ac_file"
18010   fi
18011   # Let's still pretend it is `configure' which instantiates (i.e., don't
18012   # use $as_me), people would be surprised to read:
18013   #    /* config.h.  Generated by config.status.  */
18014   if test x"$ac_file" = x-; then
18015     configure_input=
18016   else
18017     configure_input="$ac_file.  "
18018   fi
18019   configure_input=$configure_input"Generated from `echo $ac_file_in |
18020                                      sed 's,.*/,,'` by configure."
18021
18022   # First look for the input files in the build tree, otherwise in the
18023   # src tree.
18024   ac_file_inputs=`IFS=:
18025     for f in $ac_file_in; do
18026       case $f in
18027       -) echo $tmp/stdin ;;
18028       [\\/$]*)
18029          # Absolute (can't be DOS-style, as IFS=:)
18030          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18031 echo "$as_me: error: cannot find input file: $f" >&2;}
18032    { (exit 1); exit 1; }; }
18033          echo $f;;
18034       *) # Relative
18035          if test -f "$f"; then
18036            # Build tree
18037            echo $f
18038          elif test -f "$srcdir/$f"; then
18039            # Source tree
18040            echo $srcdir/$f
18041          else
18042            # /dev/null tree
18043            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18044 echo "$as_me: error: cannot find input file: $f" >&2;}
18045    { (exit 1); exit 1; }; }
18046          fi;;
18047       esac
18048     done` || { (exit 1); exit 1; }
18049 _ACEOF
18050 cat >>$CONFIG_STATUS <<_ACEOF
18051   sed "$ac_vpsub
18052 $extrasub
18053 _ACEOF
18054 cat >>$CONFIG_STATUS <<\_ACEOF
18055 :t
18056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18057 s,@configure_input@,$configure_input,;t t
18058 s,@srcdir@,$ac_srcdir,;t t
18059 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18060 s,@top_srcdir@,$ac_top_srcdir,;t t
18061 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18062 s,@builddir@,$ac_builddir,;t t
18063 s,@abs_builddir@,$ac_abs_builddir,;t t
18064 s,@top_builddir@,$ac_top_builddir,;t t
18065 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18066 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18067   rm -f $tmp/stdin
18068   if test x"$ac_file" != x-; then
18069     mv $tmp/out $ac_file
18070   else
18071     cat $tmp/out
18072     rm -f $tmp/out
18073   fi
18074
18075 done
18076 _ACEOF
18077 cat >>$CONFIG_STATUS <<\_ACEOF
18078
18079 #
18080 # CONFIG_HEADER section.
18081 #
18082
18083 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18084 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18085 #
18086 # ac_d sets the value in "#define NAME VALUE" lines.
18087 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18088 ac_dB='[        ].*$,\1#\2'
18089 ac_dC=' '
18090 ac_dD=',;t'
18091 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18092 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18093 ac_uB='$,\1#\2define\3'
18094 ac_uC=' '
18095 ac_uD=',;t'
18096
18097 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18098   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18099   case $ac_file in
18100   - | *:- | *:-:* ) # input from stdin
18101         cat >$tmp/stdin
18102         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18103         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18104   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18105         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18106   * )   ac_file_in=$ac_file.in ;;
18107   esac
18108
18109   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18110 echo "$as_me: creating $ac_file" >&6;}
18111
18112   # First look for the input files in the build tree, otherwise in the
18113   # src tree.
18114   ac_file_inputs=`IFS=:
18115     for f in $ac_file_in; do
18116       case $f in
18117       -) echo $tmp/stdin ;;
18118       [\\/$]*)
18119          # Absolute (can't be DOS-style, as IFS=:)
18120          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18121 echo "$as_me: error: cannot find input file: $f" >&2;}
18122    { (exit 1); exit 1; }; }
18123          echo $f;;
18124       *) # Relative
18125          if test -f "$f"; then
18126            # Build tree
18127            echo $f
18128          elif test -f "$srcdir/$f"; then
18129            # Source tree
18130            echo $srcdir/$f
18131          else
18132            # /dev/null tree
18133            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18134 echo "$as_me: error: cannot find input file: $f" >&2;}
18135    { (exit 1); exit 1; }; }
18136          fi;;
18137       esac
18138     done` || { (exit 1); exit 1; }
18139   # Remove the trailing spaces.
18140   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18141
18142 _ACEOF
18143
18144 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18145 # `conftest.undefs', that substitutes the proper values into
18146 # config.h.in to produce config.h.  The first handles `#define'
18147 # templates, and the second `#undef' templates.
18148 # And first: Protect against being on the right side of a sed subst in
18149 # config.status.  Protect against being in an unquoted here document
18150 # in config.status.
18151 rm -f conftest.defines conftest.undefs
18152 # Using a here document instead of a string reduces the quoting nightmare.
18153 # Putting comments in sed scripts is not portable.
18154 #
18155 # `end' is used to avoid that the second main sed command (meant for
18156 # 0-ary CPP macros) applies to n-ary macro definitions.
18157 # See the Autoconf documentation for `clear'.
18158 cat >confdef2sed.sed <<\_ACEOF
18159 s/[\\&,]/\\&/g
18160 s,[\\$`],\\&,g
18161 t clear
18162 : clear
18163 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18164 t end
18165 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18166 : end
18167 _ACEOF
18168 # If some macros were called several times there might be several times
18169 # the same #defines, which is useless.  Nevertheless, we may not want to
18170 # sort them, since we want the *last* AC-DEFINE to be honored.
18171 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18172 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18173 rm -f confdef2sed.sed
18174
18175 # This sed command replaces #undef with comments.  This is necessary, for
18176 # example, in the case of _POSIX_SOURCE, which is predefined and required
18177 # on some systems where configure will not decide to define it.
18178 cat >>conftest.undefs <<\_ACEOF
18179 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18180 _ACEOF
18181
18182 # Break up conftest.defines because some shells have a limit on the size
18183 # of here documents, and old seds have small limits too (100 cmds).
18184 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18185 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18186 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18187 echo '  :' >>$CONFIG_STATUS
18188 rm -f conftest.tail
18189 while grep . conftest.defines >/dev/null
18190 do
18191   # Write a limited-size here document to $tmp/defines.sed.
18192   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18193   # Speed up: don't consider the non `#define' lines.
18194   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18195   # Work around the forget-to-reset-the-flag bug.
18196   echo 't clr' >>$CONFIG_STATUS
18197   echo ': clr' >>$CONFIG_STATUS
18198   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18199   echo 'CEOF
18200   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18201   rm -f $tmp/in
18202   mv $tmp/out $tmp/in
18203 ' >>$CONFIG_STATUS
18204   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18205   rm -f conftest.defines
18206   mv conftest.tail conftest.defines
18207 done
18208 rm -f conftest.defines
18209 echo '  fi # egrep' >>$CONFIG_STATUS
18210 echo >>$CONFIG_STATUS
18211
18212 # Break up conftest.undefs because some shells have a limit on the size
18213 # of here documents, and old seds have small limits too (100 cmds).
18214 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18215 rm -f conftest.tail
18216 while grep . conftest.undefs >/dev/null
18217 do
18218   # Write a limited-size here document to $tmp/undefs.sed.
18219   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18220   # Speed up: don't consider the non `#undef'
18221   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18222   # Work around the forget-to-reset-the-flag bug.
18223   echo 't clr' >>$CONFIG_STATUS
18224   echo ': clr' >>$CONFIG_STATUS
18225   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18226   echo 'CEOF
18227   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18228   rm -f $tmp/in
18229   mv $tmp/out $tmp/in
18230 ' >>$CONFIG_STATUS
18231   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18232   rm -f conftest.undefs
18233   mv conftest.tail conftest.undefs
18234 done
18235 rm -f conftest.undefs
18236
18237 cat >>$CONFIG_STATUS <<\_ACEOF
18238   # Let's still pretend it is `configure' which instantiates (i.e., don't
18239   # use $as_me), people would be surprised to read:
18240   #    /* config.h.  Generated by config.status.  */
18241   if test x"$ac_file" = x-; then
18242     echo "/* Generated by configure.  */" >$tmp/config.h
18243   else
18244     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18245   fi
18246   cat $tmp/in >>$tmp/config.h
18247   rm -f $tmp/in
18248   if test x"$ac_file" != x-; then
18249     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18250       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18251 echo "$as_me: $ac_file is unchanged" >&6;}
18252     else
18253       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18255          X"$ac_file" : 'X\(//\)[^/]' \| \
18256          X"$ac_file" : 'X\(//\)$' \| \
18257          X"$ac_file" : 'X\(/\)' \| \
18258          .     : '\(.\)' 2>/dev/null ||
18259 echo X"$ac_file" |
18260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18261           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18262           /^X\(\/\/\)$/{ s//\1/; q; }
18263           /^X\(\/\).*/{ s//\1/; q; }
18264           s/.*/./; q'`
18265       { case "$ac_dir" in
18266   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18267   *)                      as_incr_dir=.;;
18268 esac
18269 as_dummy="$ac_dir"
18270 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18271   case $as_mkdir_dir in
18272     # Skip DOS drivespec
18273     ?:) as_incr_dir=$as_mkdir_dir ;;
18274     *)
18275       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18276       test -d "$as_incr_dir" ||
18277         mkdir "$as_incr_dir" ||
18278         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18279 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18280    { (exit 1); exit 1; }; }
18281     ;;
18282   esac
18283 done; }
18284
18285       rm -f $ac_file
18286       mv $tmp/config.h $ac_file
18287     fi
18288   else
18289     cat $tmp/config.h
18290     rm -f $tmp/config.h
18291   fi
18292   # Run the commands associated with the file.
18293   case $ac_file in
18294     src/include/pg_config.h )
18295 # Update timestamp for pg_config.h (see Makefile.global)
18296 echo >src/include/stamp-h
18297  ;;
18298   esac
18299 done
18300 _ACEOF
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18302
18303 #
18304 # CONFIG_LINKS section.
18305 #
18306
18307 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18308   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18309   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18310
18311   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18312 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18313
18314   if test ! -r $srcdir/$ac_source; then
18315     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18316 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18317    { (exit 1); exit 1; }; }
18318   fi
18319   rm -f $ac_dest
18320
18321   # Make relative symlinks.
18322   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18323 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324          X"$ac_dest" : 'X\(//\)[^/]' \| \
18325          X"$ac_dest" : 'X\(//\)$' \| \
18326          X"$ac_dest" : 'X\(/\)' \| \
18327          .     : '\(.\)' 2>/dev/null ||
18328 echo X"$ac_dest" |
18329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18331           /^X\(\/\/\)$/{ s//\1/; q; }
18332           /^X\(\/\).*/{ s//\1/; q; }
18333           s/.*/./; q'`
18334   { case "$ac_dest_dir" in
18335   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18336   *)                      as_incr_dir=.;;
18337 esac
18338 as_dummy="$ac_dest_dir"
18339 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18340   case $as_mkdir_dir in
18341     # Skip DOS drivespec
18342     ?:) as_incr_dir=$as_mkdir_dir ;;
18343     *)
18344       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18345       test -d "$as_incr_dir" ||
18346         mkdir "$as_incr_dir" ||
18347         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18348 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18349    { (exit 1); exit 1; }; }
18350     ;;
18351   esac
18352 done; }
18353
18354   ac_builddir=.
18355
18356 if test "$ac_dest_dir" != .; then
18357   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18358   # A "../" for each directory in $ac_dir_suffix.
18359   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18360 else
18361   ac_dir_suffix= ac_top_builddir=
18362 fi
18363
18364 case $srcdir in
18365   .)  # No --srcdir option.  We are building in place.
18366     ac_srcdir=.
18367     if test -z "$ac_top_builddir"; then
18368        ac_top_srcdir=.
18369     else
18370        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18371     fi ;;
18372   [\\/]* | ?:[\\/]* )  # Absolute path.
18373     ac_srcdir=$srcdir$ac_dir_suffix;
18374     ac_top_srcdir=$srcdir ;;
18375   *) # Relative path.
18376     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18377     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18378 esac
18379 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18380 # absolute.
18381 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18382 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18383 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18384 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18385
18386
18387   case $srcdir in
18388   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18389       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18390   esac
18391
18392   # Make a symlink if possible; otherwise try a hard link.
18393   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18394     ln $srcdir/$ac_source $ac_dest ||
18395     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18396 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18397    { (exit 1); exit 1; }; }
18398 done
18399 _ACEOF
18400
18401 cat >>$CONFIG_STATUS <<\_ACEOF
18402
18403 { (exit 0); exit 0; }
18404 _ACEOF
18405 chmod +x $CONFIG_STATUS
18406 ac_clean_files=$ac_clean_files_save
18407
18408
18409 # configure is writing to config.log, and then calls config.status.
18410 # config.status does its own redirection, appending to config.log.
18411 # Unfortunately, on DOS this fails, as config.log is still kept open
18412 # by configure, so config.status won't be able to write to it; its
18413 # output is simply discarded.  So we exec the FD to /dev/null,
18414 # effectively closing config.log, so it can be properly (re)opened and
18415 # appended to by config.status.  When coming back to configure, we
18416 # need to make the FD available again.
18417 if test "$no_create" != yes; then
18418   ac_cs_success=:
18419   exec 5>/dev/null
18420   $SHELL $CONFIG_STATUS || ac_cs_success=false
18421   exec 5>>config.log
18422   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18423   # would make configure fail if this is the last instruction.
18424   $ac_cs_success || { (exit 1); exit 1; }
18425 fi
18426