]> granicus.if.org Git - postgresql/blob - configure
2c673fc1a8651ba6d59785e017c77bd2d2cf4a61
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-recode         enable single-byte recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-maxbackends=N    set default maximum number of connections 32
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-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.4devel
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2002 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.4devel, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384   # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=cygwin ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397    mingw*) template=win ;;
1398   netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400  openbsd*) template=openbsd ;;
1401      osf*) template=osf ;;
1402      qnx*) template=qnx4 ;;
1403      sco*) template=sco ;;
1404  solaris*) template=solaris ;;
1405    sunos*) template=sunos4 ;;
1406  sysv4.2*)
1407         case $host_vendor in
1408           univel) template=univel ;;
1409         esac ;;
1410    sysv4*) template=svr4 ;;
1411    sysv5*) template=unixware ;;
1412   ultrix*) template=ultrix4 ;;
1413 esac
1414
1415   if test x"$template" = x"" ; then
1416     { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1421
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this.  Include the above 'checking host system type...'
1424 line.
1425 *******************************************************************
1426 " >&5
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1432
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this.  Include the above 'checking host system type...'
1435 line.
1436 *******************************************************************
1437 " >&2;}
1438    { (exit 1); exit 1; }; }
1439   fi
1440
1441
1442 fi;
1443
1444
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1447
1448 PORTNAME=$template
1449
1450
1451 # Pick right test-and-set (TAS) code.  Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1454 case $host in
1455   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1456   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1458   *)                need_tas=no;  tas_file=dummy.s ;;
1459 esac
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1461
1462
1463 if test "$need_tas" = yes ; then
1464   TAS=tas.o
1465 fi
1466
1467
1468
1469
1470 ##
1471 ## Command line options
1472 ##
1473
1474
1475 #
1476 # Add non-standard directories to the include path
1477 #
1478
1479
1480
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483   withval="$with_includes"
1484
1485   case $withval in
1486     yes)
1487       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489    { (exit 1); exit 1; }; }
1490       ;;
1491     no)
1492       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494    { (exit 1); exit 1; }; }
1495       ;;
1496     *)
1497
1498       ;;
1499   esac
1500
1501 fi;
1502
1503
1504
1505 #
1506 # Add non-standard directories to the library search path
1507 #
1508
1509
1510
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513   withval="$with_libraries"
1514
1515   case $withval in
1516     yes)
1517       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519    { (exit 1); exit 1; }; }
1520       ;;
1521     no)
1522       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524    { (exit 1); exit 1; }; }
1525       ;;
1526     *)
1527       LIBRARY_DIRS=$withval
1528       ;;
1529   esac
1530
1531 fi;
1532
1533
1534
1535
1536
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539   withval="$with_libs"
1540
1541   case $withval in
1542     yes)
1543       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545    { (exit 1); exit 1; }; }
1546       ;;
1547     no)
1548       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550    { (exit 1); exit 1; }; }
1551       ;;
1552     *)
1553       LIBRARY_DIRS=$withval
1554       ;;
1555   esac
1556
1557 fi;
1558
1559
1560
1561 #
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 #
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1566
1567
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570   enableval="$enable_integer_datetimes"
1571
1572   case $enableval in
1573     yes)
1574
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1577 _ACEOF
1578
1579       ;;
1580     no)
1581       :
1582       ;;
1583     *)
1584       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586    { (exit 1); exit 1; }; }
1587       ;;
1588   esac
1589
1590 else
1591   enable_integer_datetimes=no
1592
1593 fi;
1594
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1597
1598
1599 # Character set recode (--enable-recode)
1600 #
1601 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1602 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1603
1604
1605 # Check whether --enable-recode or --disable-recode was given.
1606 if test "${enable_recode+set}" = set; then
1607   enableval="$enable_recode"
1608
1609   case $enableval in
1610     yes)
1611
1612 cat >>confdefs.h <<\_ACEOF
1613 #define CYR_RECODE 1
1614 _ACEOF
1615
1616       ;;
1617     no)
1618       :
1619       ;;
1620     *)
1621       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1622 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1623    { (exit 1); exit 1; }; }
1624       ;;
1625   esac
1626
1627 else
1628   enable_recode=no
1629
1630 fi;
1631
1632 echo "$as_me:$LINENO: result: $enable_recode" >&5
1633 echo "${ECHO_T}$enable_recode" >&6
1634
1635
1636 #
1637 # NLS
1638 #
1639 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1640 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1641
1642
1643 # Check whether --enable-nls or --disable-nls was given.
1644 if test "${enable_nls+set}" = set; then
1645   enableval="$enable_nls"
1646
1647   case $enableval in
1648     yes)
1649       :
1650       ;;
1651     no)
1652       :
1653       ;;
1654     *)
1655       enable_nls=yes
1656 WANTED_LANGUAGES=$enableval
1657       ;;
1658   esac
1659
1660 else
1661   enable_nls=no
1662 fi;
1663
1664
1665 if test "$enable_nls" = yes; then
1666
1667 cat >>confdefs.h <<\_ACEOF
1668 #define ENABLE_NLS 1
1669 _ACEOF
1670
1671 fi
1672
1673 echo "$as_me:$LINENO: result: $enable_nls" >&5
1674 echo "${ECHO_T}$enable_nls" >&6
1675
1676
1677
1678 #
1679 # Default port number (--with-pgport), default 5432
1680 #
1681 echo "$as_me:$LINENO: checking for default port number" >&5
1682 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1683
1684
1685
1686 # Check whether --with-pgport or --without-pgport was given.
1687 if test "${with_pgport+set}" = set; then
1688   withval="$with_pgport"
1689
1690   case $withval in
1691     yes)
1692       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1693 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1694    { (exit 1); exit 1; }; }
1695       ;;
1696     no)
1697       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1698 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1699    { (exit 1); exit 1; }; }
1700       ;;
1701     *)
1702       default_port=$withval
1703       ;;
1704   esac
1705
1706 else
1707   default_port=5432
1708 fi;
1709
1710 echo "$as_me:$LINENO: result: $default_port" >&5
1711 echo "${ECHO_T}$default_port" >&6
1712 # Need both of these because some places want an integer and some a string
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define DEF_PGPORT ${default_port}
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define DEF_PGPORT_STR "${default_port}"
1721 _ACEOF
1722
1723
1724
1725 #
1726 # Maximum number of allowed connections (--with-maxbackends), default 32
1727 #
1728 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1729 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1730
1731
1732
1733 # Check whether --with-maxbackends or --without-maxbackends was given.
1734 if test "${with_maxbackends+set}" = set; then
1735   withval="$with_maxbackends"
1736
1737   case $withval in
1738     yes)
1739       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1740 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1741    { (exit 1); exit 1; }; }
1742       ;;
1743     no)
1744       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1745 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1746    { (exit 1); exit 1; }; }
1747       ;;
1748     *)
1749
1750       ;;
1751   esac
1752
1753 else
1754   with_maxbackends=32
1755 fi;
1756
1757 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1758 echo "${ECHO_T}$with_maxbackends" >&6
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define DEF_MAXBACKENDS $with_maxbackends
1762 _ACEOF
1763
1764
1765
1766 #
1767 # Option to disable shared libraries
1768 #
1769
1770
1771 # Check whether --enable-shared or --disable-shared was given.
1772 if test "${enable_shared+set}" = set; then
1773   enableval="$enable_shared"
1774
1775   case $enableval in
1776     yes)
1777       :
1778       ;;
1779     no)
1780       :
1781       ;;
1782     *)
1783       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1784 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1785    { (exit 1); exit 1; }; }
1786       ;;
1787   esac
1788
1789 else
1790   enable_shared=yes
1791
1792 fi;
1793
1794
1795
1796 #
1797 # '-rpath'-like feature can be disabled
1798 #
1799
1800
1801 # Check whether --enable-rpath or --disable-rpath was given.
1802 if test "${enable_rpath+set}" = set; then
1803   enableval="$enable_rpath"
1804
1805   case $enableval in
1806     yes)
1807       :
1808       ;;
1809     no)
1810       :
1811       ;;
1812     *)
1813       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1814 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1815    { (exit 1); exit 1; }; }
1816       ;;
1817   esac
1818
1819 else
1820   enable_rpath=yes
1821
1822 fi;
1823
1824
1825
1826
1827 #
1828 # --enable-debug adds -g to compiler flags
1829 #
1830
1831
1832 # Check whether --enable-debug or --disable-debug was given.
1833 if test "${enable_debug+set}" = set; then
1834   enableval="$enable_debug"
1835
1836   case $enableval in
1837     yes)
1838       :
1839       ;;
1840     no)
1841       :
1842       ;;
1843     *)
1844       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1845 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1846    { (exit 1); exit 1; }; }
1847       ;;
1848   esac
1849
1850 else
1851   enable_debug=no
1852
1853 fi;
1854
1855
1856
1857 #
1858 # C compiler
1859 #
1860
1861 # For historical reasons you can also use --with-CC to specify the C compiler
1862 # to use, although the standard way to do this is to set the CC environment
1863 # variable.
1864
1865
1866
1867 # Check whether --with-CC or --without-CC was given.
1868 if test "${with_CC+set}" = set; then
1869   withval="$with_CC"
1870
1871   case $withval in
1872     yes)
1873       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1874 echo "$as_me: error: argument required for --with-CC option" >&2;}
1875    { (exit 1); exit 1; }; }
1876       ;;
1877     no)
1878       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1879 echo "$as_me: error: argument required for --with-CC option" >&2;}
1880    { (exit 1); exit 1; }; }
1881       ;;
1882     *)
1883       CC=$with_CC
1884       ;;
1885   esac
1886
1887 fi;
1888
1889
1890 case $template in
1891   aix) pgac_cc_list="gcc xlc";;
1892  irix) pgac_cc_list="cc";; # no gcc
1893     *) pgac_cc_list="gcc cc";;
1894 esac
1895
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 if test -n "$ac_tool_prefix"; then
1902   for ac_prog in $pgac_cc_list
1903   do
1904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$CC"; then
1912   ac_cv_prog_CC="$CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927
1928 fi
1929 fi
1930 CC=$ac_cv_prog_CC
1931 if test -n "$CC"; then
1932   echo "$as_me:$LINENO: result: $CC" >&5
1933 echo "${ECHO_T}$CC" >&6
1934 else
1935   echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 fi
1938
1939     test -n "$CC" && break
1940   done
1941 fi
1942 if test -z "$CC"; then
1943   ac_ct_CC=$CC
1944   for ac_prog in $pgac_cc_list
1945 do
1946   # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   if test -n "$ac_ct_CC"; then
1954   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959   IFS=$as_save_IFS
1960   test -z "$as_dir" && as_dir=.
1961   for ac_exec_ext in '' $ac_executable_extensions; do
1962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963     ac_cv_prog_ac_ct_CC="$ac_prog"
1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965     break 2
1966   fi
1967 done
1968 done
1969
1970 fi
1971 fi
1972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1976 else
1977   echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 fi
1980
1981   test -n "$ac_ct_CC" && break
1982 done
1983
1984   CC=$ac_ct_CC
1985 fi
1986
1987
1988 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1990    { (exit 1); exit 1; }; }
1991
1992 # Provide some information about the compiler.
1993 echo "$as_me:$LINENO:" \
1994      "checking for C compiler version" >&5
1995 ac_compiler=`set X $ac_compile; echo $2`
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997   (eval $ac_compiler --version </dev/null >&5) 2>&5
1998   ac_status=$?
1999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000   (exit $ac_status); }
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002   (eval $ac_compiler -v </dev/null >&5) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); }
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2007   (eval $ac_compiler -V </dev/null >&5) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }
2011
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 #include "confdefs.h"
2015
2016 #ifdef F77_DUMMY_MAIN
2017 #  ifdef __cplusplus
2018      extern "C"
2019 #  endif
2020    int F77_DUMMY_MAIN() { return 1; }
2021 #endif
2022 int
2023 main ()
2024 {
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 ac_clean_files_save=$ac_clean_files
2031 ac_clean_files="$ac_clean_files a.out a.exe"
2032 # Try to create an executable without -o first, disregard a.out.
2033 # It will help us diagnose broken compilers, and finding out an intuition
2034 # of exeext.
2035 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2036 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2037 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2038 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2039   (eval $ac_link_default) 2>&5
2040   ac_status=$?
2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042   (exit $ac_status); }; then
2043   # Find the output, starting from the most likely.  This scheme is
2044 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045 # resort.
2046
2047 # Be careful to initialize this variable, since it used to be cached.
2048 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049 ac_cv_exeext=
2050 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2051                 ls a.out conftest 2>/dev/null;
2052                 ls a.* conftest.* 2>/dev/null`; do
2053   case $ac_file in
2054     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2055     a.out ) # We found the default executable, but exeext='' is most
2056             # certainly right.
2057             break;;
2058     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2060           export ac_cv_exeext
2061           break;;
2062     * ) break;;
2063   esac
2064 done
2065 else
2066   echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2069 echo "$as_me: error: C compiler cannot create executables" >&2;}
2070    { (exit 77); exit 77; }; }
2071 fi
2072
2073 ac_exeext=$ac_cv_exeext
2074 echo "$as_me:$LINENO: result: $ac_file" >&5
2075 echo "${ECHO_T}$ac_file" >&6
2076
2077 # Check the compiler produces executables we can run.  If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2080 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2081 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2082 # If not cross compiling, check that we can run a simple program.
2083 if test "$cross_compiling" != yes; then
2084   if { ac_try='./$ac_file'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; }; then
2090     cross_compiling=no
2091   else
2092     if test "$cross_compiling" = maybe; then
2093         cross_compiling=yes
2094     else
2095         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2096 If you meant to cross compile, use \`--host'." >&5
2097 echo "$as_me: error: cannot run C compiled programs.
2098 If you meant to cross compile, use \`--host'." >&2;}
2099    { (exit 1); exit 1; }; }
2100     fi
2101   fi
2102 fi
2103 echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6
2105
2106 rm -f a.out a.exe conftest$ac_cv_exeext
2107 ac_clean_files=$ac_clean_files_save
2108 # Check the compiler produces executables we can run.  If not, either
2109 # the compiler is broken, or we cross compile.
2110 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2111 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2112 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2113 echo "${ECHO_T}$cross_compiling" >&6
2114
2115 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2116 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2118   (eval $ac_link) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; then
2122   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2123 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2124 # work properly (i.e., refer to `conftest.exe'), while it won't with
2125 # `rm'.
2126 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2127   case $ac_file in
2128     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2129     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130           export ac_cv_exeext
2131           break;;
2132     * ) break;;
2133   esac
2134 done
2135 else
2136   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   cat >conftest.$ac_ext <<_ACEOF
2154 #line $LINENO "configure"
2155 #include "confdefs.h"
2156
2157 #ifdef F77_DUMMY_MAIN
2158 #  ifdef __cplusplus
2159      extern "C"
2160 #  endif
2161    int F77_DUMMY_MAIN() { return 1; }
2162 #endif
2163 int
2164 main ()
2165 {
2166
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 rm -f conftest.o conftest.obj
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173   (eval $ac_compile) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2180     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2181        break;;
2182   esac
2183 done
2184 else
2185   echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2189    { (exit 1); exit 1; }; }
2190 fi
2191
2192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 fi
2194 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195 echo "${ECHO_T}$ac_cv_objext" >&6
2196 OBJEXT=$ac_cv_objext
2197 ac_objext=$OBJEXT
2198 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   cat >conftest.$ac_ext <<_ACEOF
2204 #line $LINENO "configure"
2205 #include "confdefs.h"
2206
2207 #ifdef F77_DUMMY_MAIN
2208 #  ifdef __cplusplus
2209      extern "C"
2210 #  endif
2211    int F77_DUMMY_MAIN() { return 1; }
2212 #endif
2213 int
2214 main ()
2215 {
2216 #ifndef __GNUC__
2217        choke me
2218 #endif
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226   (eval $ac_compile) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   ac_compiler_gnu=yes
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 ac_compiler_gnu=no
2241 fi
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2244
2245 fi
2246 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248 GCC=`test $ac_compiler_gnu = yes && echo yes`
2249 ac_test_CFLAGS=${CFLAGS+set}
2250 ac_save_CFLAGS=$CFLAGS
2251 CFLAGS="-g"
2252 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2253 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254 if test "${ac_cv_prog_cc_g+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   cat >conftest.$ac_ext <<_ACEOF
2258 #line $LINENO "configure"
2259 #include "confdefs.h"
2260
2261 #ifdef F77_DUMMY_MAIN
2262 #  ifdef __cplusplus
2263      extern "C"
2264 #  endif
2265    int F77_DUMMY_MAIN() { return 1; }
2266 #endif
2267 int
2268 main ()
2269 {
2270
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   ac_cv_prog_cc_g=yes
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 ac_cv_prog_cc_g=no
2292 fi
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2297 if test "$ac_test_CFLAGS" = set; then
2298   CFLAGS=$ac_save_CFLAGS
2299 elif test $ac_cv_prog_cc_g = yes; then
2300   if test "$GCC" = yes; then
2301     CFLAGS="-g -O2"
2302   else
2303     CFLAGS="-g"
2304   fi
2305 else
2306   if test "$GCC" = yes; then
2307     CFLAGS="-O2"
2308   else
2309     CFLAGS=
2310   fi
2311 fi
2312 # Some people use a C++ compiler to compile C.  Since we use `exit',
2313 # in C++ we need to declare it.  In case someone uses the same compiler
2314 # for both compiling C and C++ we need to have the C++ compiler decide
2315 # the declaration of exit, since it's the most demanding environment.
2316 cat >conftest.$ac_ext <<_ACEOF
2317 #ifndef __cplusplus
2318   choke me
2319 #endif
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   for ac_declaration in \
2334    ''\
2335    '#include <stdlib.h>' \
2336    'extern "C" void std::exit (int) throw (); using std::exit;' \
2337    'extern "C" void std::exit (int); using std::exit;' \
2338    'extern "C" void exit (int) throw ();' \
2339    'extern "C" void exit (int);' \
2340    'void exit (int);'
2341 do
2342   cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2344 #include "confdefs.h"
2345 #include <stdlib.h>
2346 $ac_declaration
2347 #ifdef F77_DUMMY_MAIN
2348 #  ifdef __cplusplus
2349      extern "C"
2350 #  endif
2351    int F77_DUMMY_MAIN() { return 1; }
2352 #endif
2353 int
2354 main ()
2355 {
2356 exit (42);
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363   (eval $ac_compile) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   :
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2377 continue
2378 fi
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2380   cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 #include "confdefs.h"
2383 $ac_declaration
2384 #ifdef F77_DUMMY_MAIN
2385 #  ifdef __cplusplus
2386      extern "C"
2387 #  endif
2388    int F77_DUMMY_MAIN() { return 1; }
2389 #endif
2390 int
2391 main ()
2392 {
2393 exit (42);
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400   (eval $ac_compile) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -s conftest.$ac_objext'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   break
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 fi
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2416 done
2417 rm -f conftest*
2418 if test -n "$ac_declaration"; then
2419   echo '#ifdef __cplusplus' >>confdefs.h
2420   echo $ac_declaration      >>confdefs.h
2421   echo '#endif'             >>confdefs.h
2422 fi
2423
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 fi
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434
2435 # Read the template
2436 . "$srcdir/src/template/$template" || exit
2437
2438 if test "$ac_env_CFLAGS_set" = set; then
2439   CFLAGS=$ac_env_CFLAGS_value
2440 fi
2441 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2442   CFLAGS="$CFLAGS -g"
2443 fi
2444 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2445 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2446
2447 # Check if the compiler still works with the template settings
2448 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2449 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2450
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 #include "confdefs.h"
2454
2455 #ifdef F77_DUMMY_MAIN
2456 #  ifdef __cplusplus
2457      extern "C"
2458 #  endif
2459    int F77_DUMMY_MAIN() { return 1; }
2460 #endif
2461 int
2462 main ()
2463 {
2464 return 0;
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471   (eval $ac_link) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -s conftest$ac_exeext'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2489 echo "$as_me: error: cannot proceed" >&2;}
2490    { (exit 1); exit 1; }; }
2491 fi
2492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2493
2494 # Defend against gcc -ffastmath
2495 if test "$GCC" = yes; then
2496 cat >conftest.$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2499
2500 #ifdef F77_DUMMY_MAIN
2501 #  ifdef __cplusplus
2502      extern "C"
2503 #  endif
2504    int F77_DUMMY_MAIN() { return 1; }
2505 #endif
2506 int
2507 main ()
2508 {
2509 #ifdef __FAST_MATH__
2510 choke me
2511 #endif
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest.$ac_objext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   :
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2533 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 fi
2538
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2546 # On Suns, sometimes $CPP names a directory.
2547 if test -n "$CPP" && test -d "$CPP"; then
2548   CPP=
2549 fi
2550 if test -z "$CPP"; then
2551   if test "${ac_cv_prog_CPP+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554       # Double quotes because CPP needs to be expanded
2555     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2556     do
2557       ac_preproc_ok=false
2558 for ac_c_preproc_warn_flag in '' yes
2559 do
2560   # Use a header file that comes with gcc, so configuring glibc
2561   # with a fresh cross-compiler works.
2562   # On the NeXT, cc -E runs the code through the compiler's parser,
2563   # not just through cpp. "Syntax error" is here to catch this case.
2564   cat >conftest.$ac_ext <<_ACEOF
2565 #line $LINENO "configure"
2566 #include "confdefs.h"
2567 #include <assert.h>
2568                      Syntax error
2569 _ACEOF
2570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2572   ac_status=$?
2573   egrep -v '^ *\+' conftest.er1 >conftest.err
2574   rm -f conftest.er1
2575   cat conftest.err >&5
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } >/dev/null; then
2578   if test -s conftest.err; then
2579     ac_cpp_err=$ac_c_preproc_warn_flag
2580   else
2581     ac_cpp_err=
2582   fi
2583 else
2584   ac_cpp_err=yes
2585 fi
2586 if test -z "$ac_cpp_err"; then
2587   :
2588 else
2589   echo "$as_me: failed program was:" >&5
2590   cat conftest.$ac_ext >&5
2591   # Broken: fails on valid input.
2592 continue
2593 fi
2594 rm -f conftest.err conftest.$ac_ext
2595
2596   # OK, works on sane cases.  Now check whether non-existent headers
2597   # can be detected and how.
2598   cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2600 #include "confdefs.h"
2601 #include <ac_nonexistent.h>
2602 _ACEOF
2603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605   ac_status=$?
2606   egrep -v '^ *\+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } >/dev/null; then
2611   if test -s conftest.err; then
2612     ac_cpp_err=$ac_c_preproc_warn_flag
2613   else
2614     ac_cpp_err=
2615   fi
2616 else
2617   ac_cpp_err=yes
2618 fi
2619 if test -z "$ac_cpp_err"; then
2620   # Broken: success on invalid input.
2621 continue
2622 else
2623   echo "$as_me: failed program was:" >&5
2624   cat conftest.$ac_ext >&5
2625   # Passes both tests.
2626 ac_preproc_ok=:
2627 break
2628 fi
2629 rm -f conftest.err conftest.$ac_ext
2630
2631 done
2632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2633 rm -f conftest.err conftest.$ac_ext
2634 if $ac_preproc_ok; then
2635   break
2636 fi
2637
2638     done
2639     ac_cv_prog_CPP=$CPP
2640
2641 fi
2642   CPP=$ac_cv_prog_CPP
2643 else
2644   ac_cv_prog_CPP=$CPP
2645 fi
2646 echo "$as_me:$LINENO: result: $CPP" >&5
2647 echo "${ECHO_T}$CPP" >&6
2648 ac_preproc_ok=false
2649 for ac_c_preproc_warn_flag in '' yes
2650 do
2651   # Use a header file that comes with gcc, so configuring glibc
2652   # with a fresh cross-compiler works.
2653   # On the NeXT, cc -E runs the code through the compiler's parser,
2654   # not just through cpp. "Syntax error" is here to catch this case.
2655   cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 #include "confdefs.h"
2658 #include <assert.h>
2659                      Syntax error
2660 _ACEOF
2661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2663   ac_status=$?
2664   egrep -v '^ *\+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } >/dev/null; then
2669   if test -s conftest.err; then
2670     ac_cpp_err=$ac_c_preproc_warn_flag
2671   else
2672     ac_cpp_err=
2673   fi
2674 else
2675   ac_cpp_err=yes
2676 fi
2677 if test -z "$ac_cpp_err"; then
2678   :
2679 else
2680   echo "$as_me: failed program was:" >&5
2681   cat conftest.$ac_ext >&5
2682   # Broken: fails on valid input.
2683 continue
2684 fi
2685 rm -f conftest.err conftest.$ac_ext
2686
2687   # OK, works on sane cases.  Now check whether non-existent headers
2688   # can be detected and how.
2689   cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 #include "confdefs.h"
2692 #include <ac_nonexistent.h>
2693 _ACEOF
2694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2696   ac_status=$?
2697   egrep -v '^ *\+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } >/dev/null; then
2702   if test -s conftest.err; then
2703     ac_cpp_err=$ac_c_preproc_warn_flag
2704   else
2705     ac_cpp_err=
2706   fi
2707 else
2708   ac_cpp_err=yes
2709 fi
2710 if test -z "$ac_cpp_err"; then
2711   # Broken: success on invalid input.
2712 continue
2713 else
2714   echo "$as_me: failed program was:" >&5
2715   cat conftest.$ac_ext >&5
2716   # Passes both tests.
2717 ac_preproc_ok=:
2718 break
2719 fi
2720 rm -f conftest.err conftest.$ac_ext
2721
2722 done
2723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2724 rm -f conftest.err conftest.$ac_ext
2725 if $ac_preproc_ok; then
2726   :
2727 else
2728   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2730    { (exit 1); exit 1; }; }
2731 fi
2732
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740
2741 # Create compiler version string
2742 if test x"$GCC" = x"yes" ; then
2743   cc_string="GCC `${CC} --version | sed q`"
2744 else
2745   cc_string=$CC
2746 fi
2747
2748 cat >>confdefs.h <<_ACEOF
2749 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2750 _ACEOF
2751
2752
2753
2754 #
2755 # Automatic dependency tracking
2756 #
2757
2758
2759 # Check whether --enable-depend or --disable-depend was given.
2760 if test "${enable_depend+set}" = set; then
2761   enableval="$enable_depend"
2762
2763   case $enableval in
2764     yes)
2765       autodepend=yes
2766       ;;
2767     no)
2768       :
2769       ;;
2770     *)
2771       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2772 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2773    { (exit 1); exit 1; }; }
2774       ;;
2775   esac
2776
2777 else
2778   enable_depend=no
2779
2780 fi;
2781
2782
2783
2784
2785 #
2786 # Enable assert checks
2787 #
2788
2789
2790 # Check whether --enable-cassert or --disable-cassert was given.
2791 if test "${enable_cassert+set}" = set; then
2792   enableval="$enable_cassert"
2793
2794   case $enableval in
2795     yes)
2796
2797 cat >>confdefs.h <<\_ACEOF
2798 #define USE_ASSERT_CHECKING 1
2799 _ACEOF
2800
2801       ;;
2802     no)
2803       :
2804       ;;
2805     *)
2806       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2807 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2808    { (exit 1); exit 1; }; }
2809       ;;
2810   esac
2811
2812 else
2813   enable_cassert=no
2814
2815 fi;
2816
2817
2818
2819 #
2820 # Include directories
2821 #
2822 ac_save_IFS=$IFS
2823 IFS="${IFS}:"
2824 # SRCH_INC comes from the template file
2825 for dir in $with_includes $SRCH_INC; do
2826   if test -d "$dir"; then
2827     INCLUDES="$INCLUDES -I$dir"
2828   else
2829     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2830 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2831   fi
2832 done
2833 IFS=$ac_save_IFS
2834
2835
2836
2837 #
2838 # Library directories
2839 #
2840 ac_save_IFS=$IFS
2841 IFS="${IFS}:"
2842 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2843 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2844   if test -d "$dir"; then
2845     LIBDIRS="$LIBDIRS -L$dir"
2846   else
2847     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2848 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2849   fi
2850 done
2851 IFS=$ac_save_IFS
2852
2853
2854 #
2855 # Tcl/Tk
2856 #
2857 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2858 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2859
2860
2861
2862 # Check whether --with-tcl or --without-tcl was given.
2863 if test "${with_tcl+set}" = set; then
2864   withval="$with_tcl"
2865
2866   case $withval in
2867     yes)
2868       :
2869       ;;
2870     no)
2871       :
2872       ;;
2873     *)
2874       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2875 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2876    { (exit 1); exit 1; }; }
2877       ;;
2878   esac
2879
2880 else
2881   with_tcl=no
2882
2883 fi;
2884
2885 echo "$as_me:$LINENO: result: $with_tcl" >&5
2886 echo "${ECHO_T}$with_tcl" >&6
2887
2888
2889 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2890 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2891 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2892 if test "$with_tcl" = yes; then
2893
2894
2895
2896 # Check whether --with-tk or --without-tk was given.
2897 if test "${with_tk+set}" = set; then
2898   withval="$with_tk"
2899
2900   case $withval in
2901     yes)
2902       :
2903       ;;
2904     no)
2905       :
2906       ;;
2907     *)
2908       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2909 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2910    { (exit 1); exit 1; }; }
2911       ;;
2912   esac
2913
2914 else
2915   with_tk=yes
2916
2917 fi;
2918
2919 else
2920   with_tk=no
2921 fi
2922 echo "$as_me:$LINENO: result: $with_tk" >&5
2923 echo "${ECHO_T}$with_tk" >&6
2924
2925
2926
2927 # We see if the path to the Tcl/Tk configuration scripts is specified.
2928 # This will override the use of tclsh to find the paths to search.
2929
2930
2931
2932
2933 # Check whether --with-tclconfig or --without-tclconfig was given.
2934 if test "${with_tclconfig+set}" = set; then
2935   withval="$with_tclconfig"
2936
2937   case $withval in
2938     yes)
2939       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2940 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2941    { (exit 1); exit 1; }; }
2942       ;;
2943     no)
2944       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2945 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2946    { (exit 1); exit 1; }; }
2947       ;;
2948     *)
2949
2950       ;;
2951   esac
2952
2953 fi;
2954
2955
2956 # We see if the path to the Tk configuration scripts is specified.
2957 # This will override the use of tclsh to find the paths to search.
2958
2959
2960
2961
2962 # Check whether --with-tkconfig or --without-tkconfig was given.
2963 if test "${with_tkconfig+set}" = set; then
2964   withval="$with_tkconfig"
2965
2966   case $withval in
2967     yes)
2968       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2969 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2970    { (exit 1); exit 1; }; }
2971       ;;
2972     no)
2973       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2974 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2975    { (exit 1); exit 1; }; }
2976       ;;
2977     *)
2978
2979       ;;
2980   esac
2981
2982 fi;
2983
2984
2985 #
2986 # Optionally build Perl modules (PL/Perl)
2987 #
2988 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2989 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2990
2991
2992
2993 # Check whether --with-perl or --without-perl was given.
2994 if test "${with_perl+set}" = set; then
2995   withval="$with_perl"
2996
2997   case $withval in
2998     yes)
2999       :
3000       ;;
3001     no)
3002       :
3003       ;;
3004     *)
3005       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3006 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3007    { (exit 1); exit 1; }; }
3008       ;;
3009   esac
3010
3011 else
3012   with_perl=no
3013
3014 fi;
3015
3016 echo "$as_me:$LINENO: result: $with_perl" >&5
3017 echo "${ECHO_T}$with_perl" >&6
3018
3019
3020 #
3021 # Optionally build Python interface module
3022 #
3023 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3024 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3025
3026
3027
3028 # Check whether --with-python or --without-python was given.
3029 if test "${with_python+set}" = set; then
3030   withval="$with_python"
3031
3032   case $withval in
3033     yes)
3034       :
3035       ;;
3036     no)
3037       :
3038       ;;
3039     *)
3040       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3041 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3042    { (exit 1); exit 1; }; }
3043       ;;
3044   esac
3045
3046 else
3047   with_python=no
3048
3049 fi;
3050
3051 echo "$as_me:$LINENO: result: $with_python" >&5
3052 echo "${ECHO_T}$with_python" >&6
3053
3054
3055 #
3056 # Optionally build the Java/JDBC tools
3057 #
3058 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3059 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3060
3061
3062
3063 # Check whether --with-java or --without-java was given.
3064 if test "${with_java+set}" = set; then
3065   withval="$with_java"
3066
3067   case $withval in
3068     yes)
3069       echo "$as_me:$LINENO: result: yes" >&5
3070 echo "${ECHO_T}yes" >&6
3071
3072   for ac_prog in jakarta-ant ant ant.sh ant.bat
3073 do
3074   # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_path_ANT+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   case $ANT in
3082   [\\/]* | ?:[\\/]*)
3083   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3084   ;;
3085   *)
3086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091   for ac_exec_ext in '' $ac_executable_extensions; do
3092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099
3100   ;;
3101 esac
3102 fi
3103 ANT=$ac_cv_path_ANT
3104
3105 if test -n "$ANT"; then
3106   echo "$as_me:$LINENO: result: $ANT" >&5
3107 echo "${ECHO_T}$ANT" >&6
3108 else
3109   echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3111 fi
3112
3113   test -n "$ANT" && break
3114 done
3115
3116
3117   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3118 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3119 if test "${pgac_cv_prog_ant_works+set}" = set; then
3120   echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122
3123     cat > conftest.java << EOF
3124 public class conftest {
3125     int testmethod(int a, int b) {
3126         return a + b;
3127     }
3128 }
3129 EOF
3130
3131     cat > conftest.xml << EOF
3132 <project name="conftest" default="conftest">
3133  <target name="conftest">
3134   <javac srcdir="." includes="conftest.java">
3135   </javac>
3136  </target>
3137 </project>
3138 EOF
3139
3140     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3141     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3142   (eval $pgac_cmd) 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }
3146     pgac_save_status=$?
3147     if test $? = 0 && test -f ./conftest.class ; then
3148       pgac_cv_prog_ant_works=yes
3149     else
3150       echo "configure: failed java program was:" >&5
3151       cat conftest.java >&5
3152       echo "configure: failed build file was:" >&5
3153       cat conftest.xml >&5
3154       pgac_cv_prog_ant_works=no
3155     fi
3156
3157     rm -f conftest* core core.* *.core
3158
3159 fi
3160 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3161 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3162
3163   if test "$pgac_cv_prog_ant_works" != yes; then
3164     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3165 echo "$as_me: error: ant does not work" >&2;}
3166    { (exit 1); exit 1; }; }
3167   fi
3168
3169
3170 if test -z "$ANT"; then
3171   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3172 If you have Ant already installed, see config.log for details on the failure." >&5
3173 echo "$as_me: error: Ant is required to build Java components
3174 If you have Ant already installed, see config.log for details on the failure." >&2;}
3175    { (exit 1); exit 1; }; }
3176 fi
3177 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3178   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3179 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3180    { (exit 1); exit 1; }; }
3181 fi
3182       ;;
3183     no)
3184       echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3186       ;;
3187     *)
3188       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3189 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3190    { (exit 1); exit 1; }; }
3191       ;;
3192   esac
3193
3194 else
3195   with_java=no
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 fi;
3199
3200
3201
3202
3203 #
3204 # Kerberos 4
3205 #
3206 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3207 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3208
3209
3210
3211 # Check whether --with-krb4 or --without-krb4 was given.
3212 if test "${with_krb4+set}" = set; then
3213   withval="$with_krb4"
3214
3215   case $withval in
3216     yes)
3217       krb4_prefix=/usr/athena
3218       ;;
3219     no)
3220       :
3221       ;;
3222     *)
3223       with_krb4=yes
3224 krb4_prefix=$withval
3225       ;;
3226   esac
3227
3228 else
3229   with_krb4=no
3230 fi;
3231
3232
3233 if test "$with_krb4" = yes; then
3234
3235   echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3237
3238 cat >>confdefs.h <<\_ACEOF
3239 #define KRB4 1
3240 _ACEOF
3241
3242
3243   if test -d "$krb4_prefix/include"; then
3244     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3245   fi
3246   if test -d "$krb4_prefix/lib"; then
3247     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3248   fi
3249
3250   krb_srvtab="/etc/srvtab"
3251
3252 else
3253   echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3255 fi
3256
3257
3258
3259
3260
3261 #
3262 # Kerberos 5
3263 #
3264 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3265 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3266
3267
3268
3269 # Check whether --with-krb5 or --without-krb5 was given.
3270 if test "${with_krb5+set}" = set; then
3271   withval="$with_krb5"
3272
3273   case $withval in
3274     yes)
3275       krb5_prefix=/usr/athena
3276       ;;
3277     no)
3278       :
3279       ;;
3280     *)
3281       with_krb5=yes
3282 krb5_prefix=$withval
3283       ;;
3284   esac
3285
3286 else
3287   with_krb5=no
3288 fi;
3289
3290
3291 if test "$with_krb5" = yes; then
3292
3293   echo "$as_me:$LINENO: result: yes" >&5
3294 echo "${ECHO_T}yes" >&6
3295
3296 cat >>confdefs.h <<\_ACEOF
3297 #define KRB5 1
3298 _ACEOF
3299
3300
3301   if test -d "$krb5_prefix/include"; then
3302     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3303   fi
3304   if test -d "$krb5_prefix/lib"; then
3305     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3306   fi
3307
3308   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3309
3310 else
3311   echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3313 fi
3314
3315
3316
3317
3318
3319 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3320 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3321   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3322 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3323    { (exit 1); exit 1; }; }
3324 fi
3325
3326
3327
3328
3329 #
3330 # Kerberos configuration parameters
3331 #
3332
3333
3334
3335 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3336 if test "${with_krb_srvnam+set}" = set; then
3337   withval="$with_krb_srvnam"
3338
3339   case $withval in
3340     yes)
3341       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3342 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3343    { (exit 1); exit 1; }; }
3344       ;;
3345     no)
3346       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3347 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3348    { (exit 1); exit 1; }; }
3349       ;;
3350     *)
3351
3352       ;;
3353   esac
3354
3355 else
3356   with_krb_srvnam="postgres"
3357 fi;
3358
3359
3360 cat >>confdefs.h <<_ACEOF
3361 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3362 _ACEOF
3363
3364
3365
3366 #
3367 # PAM
3368 #
3369 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3370 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3371
3372
3373
3374 # Check whether --with-pam or --without-pam was given.
3375 if test "${with_pam+set}" = set; then
3376   withval="$with_pam"
3377
3378   case $withval in
3379     yes)
3380
3381 cat >>confdefs.h <<\_ACEOF
3382 #define USE_PAM 1
3383 _ACEOF
3384
3385       ;;
3386     no)
3387       :
3388       ;;
3389     *)
3390       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3391 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3392    { (exit 1); exit 1; }; }
3393       ;;
3394   esac
3395
3396 else
3397   with_pam=no
3398
3399 fi;
3400
3401 echo "$as_me:$LINENO: result: $with_pam" >&5
3402 echo "${ECHO_T}$with_pam" >&6
3403
3404
3405
3406 #
3407 # OpenSSL
3408 #
3409
3410
3411
3412 # Check whether --with-openssl or --without-openssl was given.
3413 if test "${with_openssl+set}" = set; then
3414   withval="$with_openssl"
3415
3416   case $withval in
3417     yes)
3418       openssl_prefix=/usr/local/ssl
3419       ;;
3420     no)
3421       :
3422       ;;
3423     *)
3424       with_openssl=yes
3425 openssl_prefix=$withval
3426       ;;
3427   esac
3428
3429 else
3430   with_openssl=no
3431 fi;
3432
3433
3434 if test "$with_openssl" = yes; then
3435
3436   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3437 echo "${ECHO_T}building with OpenSSL support" >&6
3438
3439 cat >>confdefs.h <<\_ACEOF
3440 #define USE_SSL 1
3441 _ACEOF
3442
3443
3444   if test -d "${openssl_prefix}/include" ; then
3445     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3446   fi
3447   if test -d "${openssl_prefix}/lib" ; then
3448     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3449   fi
3450
3451 fi
3452
3453
3454
3455
3456
3457 #
3458 # Readline
3459 #
3460
3461
3462
3463 # Check whether --with-readline or --without-readline was given.
3464 if test "${with_readline+set}" = set; then
3465   withval="$with_readline"
3466
3467   case $withval in
3468     yes)
3469       :
3470       ;;
3471     no)
3472       :
3473       ;;
3474     *)
3475       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3476 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3477    { (exit 1); exit 1; }; }
3478       ;;
3479   esac
3480
3481 else
3482   with_readline=yes
3483
3484 fi;
3485
3486
3487 #
3488 # Zlib
3489 #
3490
3491
3492
3493 # Check whether --with-zlib or --without-zlib was given.
3494 if test "${with_zlib+set}" = set; then
3495   withval="$with_zlib"
3496
3497   case $withval in
3498     yes)
3499       :
3500       ;;
3501     no)
3502       :
3503       ;;
3504     *)
3505       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3506 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3507    { (exit 1); exit 1; }; }
3508       ;;
3509   esac
3510
3511 else
3512   with_zlib=yes
3513
3514 fi;
3515
3516
3517
3518
3519 # Assume system is ELF if it predefines __ELF__ as 1,
3520 # otherwise believe host_os based default.
3521 case $host_os in
3522     freebsd1*|freebsd2*) elf=no;;
3523     freebsd3*|freebsd4*) elf=yes;;
3524 esac
3525
3526
3527 cat >conftest.$ac_ext <<_ACEOF
3528 #line $LINENO "configure"
3529 #include "confdefs.h"
3530 #if __ELF__
3531   yes
3532 #endif
3533
3534 _ACEOF
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536   egrep "yes" >/dev/null 2>&1; then
3537   ELF_SYS=true
3538 else
3539   if test "X$elf" = "Xyes" ; then
3540   ELF_SYS=true
3541 else
3542   ELF_SYS=
3543 fi
3544 fi
3545 rm -f conftest*
3546
3547
3548
3549
3550
3551 CPPFLAGS="$CPPFLAGS $INCLUDES"
3552 LDFLAGS="$LDFLAGS $LIBDIRS"
3553
3554 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3555 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3556 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3557 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3558
3559
3560 for ac_prog in gawk mawk nawk awk
3561 do
3562   # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_AWK+set}" = set; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569   if test -n "$AWK"; then
3570   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577   for ac_exec_ext in '' $ac_executable_extensions; do
3578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579     ac_cv_prog_AWK="$ac_prog"
3580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584 done
3585
3586 fi
3587 fi
3588 AWK=$ac_cv_prog_AWK
3589 if test -n "$AWK"; then
3590   echo "$as_me:$LINENO: result: $AWK" >&5
3591 echo "${ECHO_T}$AWK" >&6
3592 else
3593   echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3595 fi
3596
3597   test -n "$AWK" && break
3598 done
3599
3600 echo "$as_me:$LINENO: checking for flex" >&5
3601 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3602 if test "${pgac_cv_path_flex+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   # Let the user override the test
3606 if test -n "$FLEX"; then
3607   pgac_cv_path_flex=$FLEX
3608 else
3609   pgac_save_IFS=$IFS
3610   IFS=:
3611   for pgac_dir in $PATH; do
3612     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3613       pgac_dir=`pwd`
3614     fi
3615     for pgac_prog in flex lex; do
3616       pgac_candidate="$pgac_dir/$pgac_prog"
3617       if test -f "$pgac_candidate" \
3618         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3619       then
3620         echo '%%'  > conftest.l
3621         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3622           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3623             pgac_broken_flex=$pgac_candidate
3624             continue
3625           fi
3626
3627           pgac_cv_path_flex=$pgac_candidate
3628           break 2
3629         fi
3630       fi
3631     done
3632   done
3633   IFS=$pgac_save_IFS
3634   rm -f conftest.l
3635   : ${pgac_cv_path_flex=no}
3636 fi
3637
3638 fi
3639 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3640 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3641 if test x"$pgac_cv_path_flex" = x"no"; then
3642   if test -n "$pgac_broken_flex"; then
3643     { echo "$as_me:$LINENO: WARNING:
3644 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3645 *** should get version 2.5.4 or later." >&5
3646 echo "$as_me: WARNING:
3647 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3648 *** should get version 2.5.4 or later." >&2;}
3649   fi
3650
3651   { echo "$as_me:$LINENO: WARNING:
3652 *** Without Flex you will not be able to build PostgreSQL from CVS or
3653 *** change any of the scanner definition files.  You can obtain Flex from
3654 *** a GNU mirror site.  (If you are using the official distribution of
3655 *** PostgreSQL then you do not need to worry about this because the Flex
3656 *** output is pre-generated.)" >&5
3657 echo "$as_me: WARNING:
3658 *** Without Flex you will not be able to build PostgreSQL from CVS or
3659 *** change any of the scanner definition files.  You can obtain Flex from
3660 *** a GNU mirror site.  (If you are using the official distribution of
3661 *** PostgreSQL then you do not need to worry about this because the Flex
3662 *** output is pre-generated.)" >&2;}
3663 fi
3664
3665 if test x"$pgac_cv_path_flex" = x"no"; then
3666   FLEX=
3667 else
3668   FLEX=$pgac_cv_path_flex
3669 fi
3670
3671
3672
3673
3674 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3675 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3676 LN_S=$as_ln_s
3677 if test "$LN_S" = "ln -s"; then
3678   echo "$as_me:$LINENO: result: yes" >&5
3679 echo "${ECHO_T}yes" >&6
3680 else
3681   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3682 echo "${ECHO_T}no, using $LN_S" >&6
3683 fi
3684
3685
3686 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3687 if test "${with_gnu_ld+set}" = set; then
3688   withval="$with_gnu_ld"
3689   test "$withval" = no || with_gnu_ld=yes
3690 else
3691   with_gnu_ld=no
3692 fi;
3693 ac_prog=ld
3694 if test "$GCC" = yes; then
3695   # Check if gcc -print-prog-name=ld gives a path.
3696   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3697 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3698   case $host in
3699   *-*-mingw*)
3700     # gcc leaves a trailing carriage return which upsets mingw
3701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3702   *)
3703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3704   esac
3705   case "$ac_prog" in
3706     # Accept absolute paths.
3707     [\\/]* | [A-Za-z]:[\\/]*)
3708       re_direlt='/[^/][^/]*/\.\./'
3709       # Canonicalize the path of ld
3710       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3711       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3712         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3713       done
3714       test -z "$LD" && LD="$ac_prog"
3715       ;;
3716   "")
3717     # If it fails, then pretend we aren't using GCC.
3718     ac_prog=ld
3719     ;;
3720   *)
3721     # If it is relative, then search for the first ld in PATH.
3722     with_gnu_ld=unknown
3723     ;;
3724   esac
3725 elif test "$with_gnu_ld" = yes; then
3726   echo "$as_me:$LINENO: checking for GNU ld" >&5
3727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3728 else
3729   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3731 fi
3732 if test "${ac_cv_path_LD+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if test -z "$LD"; then
3736   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3737   for ac_dir in $PATH; do
3738     test -z "$ac_dir" && ac_dir=.
3739     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3740       ac_cv_path_LD="$ac_dir/$ac_prog"
3741       # Check to see if the program is GNU ld.  I'd rather use --version,
3742       # but apparently some GNU ld's only accept -v.
3743       # Break only if it was the GNU/non-GNU ld that we prefer.
3744       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3745         test "$with_gnu_ld" != no && break
3746       else
3747         test "$with_gnu_ld" != yes && break
3748       fi
3749     fi
3750   done
3751   IFS="$ac_save_ifs"
3752 else
3753   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3754 fi
3755 fi
3756
3757 LD="$ac_cv_path_LD"
3758 if test -n "$LD"; then
3759   echo "$as_me:$LINENO: result: $LD" >&5
3760 echo "${ECHO_T}$LD" >&6
3761 else
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3767    { (exit 1); exit 1; }; }
3768 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3770 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3774 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3775   ac_cv_prog_gnu_ld=yes
3776 else
3777   ac_cv_prog_gnu_ld=no
3778 fi
3779 fi
3780 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3781 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3782 with_gnu_ld=$ac_cv_prog_gnu_ld
3783
3784
3785
3786
3787 case $host_os in sysv5*)
3788   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3789 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3790 if test "${pgac_cv_prog_ld_R+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793
3794     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3795     cat >conftest.$ac_ext <<_ACEOF
3796 #line $LINENO "configure"
3797 #include "confdefs.h"
3798
3799 #ifdef F77_DUMMY_MAIN
3800 #  ifdef __cplusplus
3801      extern "C"
3802 #  endif
3803    int F77_DUMMY_MAIN() { return 1; }
3804 #endif
3805 int
3806 main ()
3807 {
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext conftest$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815   (eval $ac_link) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } &&
3819          { ac_try='test -s conftest$ac_exeext'
3820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821   (eval $ac_try) 2>&5
3822   ac_status=$?
3823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); }; }; then
3825   pgac_cv_prog_ld_R=yes
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 pgac_cv_prog_ld_R=no
3830 fi
3831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3832     LDFLAGS=$pgac_save_LDFLAGS
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3836 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3837   ld_R_works=$pgac_cv_prog_ld_R
3838
3839 esac
3840 if test -n "$ac_tool_prefix"; then
3841   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_RANLIB+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   if test -n "$RANLIB"; then
3849   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863 done
3864
3865 fi
3866 fi
3867 RANLIB=$ac_cv_prog_RANLIB
3868 if test -n "$RANLIB"; then
3869   echo "$as_me:$LINENO: result: $RANLIB" >&5
3870 echo "${ECHO_T}$RANLIB" >&6
3871 else
3872   echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876 fi
3877 if test -z "$ac_cv_prog_RANLIB"; then
3878   ac_ct_RANLIB=$RANLIB
3879   # Extract the first word of "ranlib", so it can be a program name with args.
3880 set dummy ranlib; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   if test -n "$ac_ct_RANLIB"; then
3887   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_exec_ext in '' $ac_executable_extensions; do
3895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_prog_ac_ct_RANLIB="ranlib"
3897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901 done
3902
3903   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3904 fi
3905 fi
3906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3907 if test -n "$ac_ct_RANLIB"; then
3908   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3910 else
3911   echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3913 fi
3914
3915   RANLIB=$ac_ct_RANLIB
3916 else
3917   RANLIB="$ac_cv_prog_RANLIB"
3918 fi
3919
3920 for ac_prog in lorder
3921 do
3922   # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_LORDER+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test -n "$LORDER"; then
3930   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   test -z "$as_dir" && as_dir=.
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939     ac_cv_prog_LORDER="$ac_prog"
3940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941     break 2
3942   fi
3943 done
3944 done
3945
3946 fi
3947 fi
3948 LORDER=$ac_cv_prog_LORDER
3949 if test -n "$LORDER"; then
3950   echo "$as_me:$LINENO: result: $LORDER" >&5
3951 echo "${ECHO_T}$LORDER" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957   test -n "$LORDER" && break
3958 done
3959
3960 # Extract the first word of "tar", so it can be a program name with args.
3961 set dummy tar; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_path_TAR+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   case $TAR in
3968   [\\/]* | ?:[\\/]*)
3969   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3970   ;;
3971   *)
3972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984 done
3985
3986   ;;
3987 esac
3988 fi
3989 TAR=$ac_cv_path_TAR
3990
3991 if test -n "$TAR"; then
3992   echo "$as_me:$LINENO: result: $TAR" >&5
3993 echo "${ECHO_T}$TAR" >&6
3994 else
3995   echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
3999
4000   if test -n "$ac_tool_prefix"; then
4001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}strip; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_prog_STRIP+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   if test -n "$STRIP"; then
4009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016   for ac_exec_ext in '' $ac_executable_extensions; do
4017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020     break 2
4021   fi
4022 done
4023 done
4024
4025 fi
4026 fi
4027 STRIP=$ac_cv_prog_STRIP
4028 if test -n "$STRIP"; then
4029   echo "$as_me:$LINENO: result: $STRIP" >&5
4030 echo "${ECHO_T}$STRIP" >&6
4031 else
4032   echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4034 fi
4035
4036 fi
4037 if test -z "$ac_cv_prog_STRIP"; then
4038   ac_ct_STRIP=$STRIP
4039   # Extract the first word of "strip", so it can be a program name with args.
4040 set dummy strip; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if test -n "$ac_ct_STRIP"; then
4047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_exec_ext in '' $ac_executable_extensions; do
4055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056     ac_cv_prog_ac_ct_STRIP="strip"
4057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061 done
4062
4063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4064 fi
4065 fi
4066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4067 if test -n "$ac_ct_STRIP"; then
4068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4069 echo "${ECHO_T}$ac_ct_STRIP" >&6
4070 else
4071   echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4073 fi
4074
4075   STRIP=$ac_ct_STRIP
4076 else
4077   STRIP="$ac_cv_prog_STRIP"
4078 fi
4079
4080
4081   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4082 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4083   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4084     STRIP_STATIC_LIB="$STRIP -x"
4085     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4086     echo "$as_me:$LINENO: result: yes" >&5
4087 echo "${ECHO_T}yes" >&6
4088   else
4089     STRIP_STATIC_LIB=:
4090     STRIP_SHARED_LIB=:
4091     echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4093   fi
4094
4095
4096
4097
4098 for ac_prog in 'bison -y'
4099 do
4100   # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_YACC+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   if test -n "$YACC"; then
4108   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_exec_ext in '' $ac_executable_extensions; do
4116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117     ac_cv_prog_YACC="$ac_prog"
4118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122 done
4123
4124 fi
4125 fi
4126 YACC=$ac_cv_prog_YACC
4127 if test -n "$YACC"; then
4128   echo "$as_me:$LINENO: result: $YACC" >&5
4129 echo "${ECHO_T}$YACC" >&6
4130 else
4131   echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4133 fi
4134
4135   test -n "$YACC" && break
4136 done
4137
4138 if test -z "$YACC"; then
4139   { echo "$as_me:$LINENO: WARNING:
4140 *** Without Bison you will not be able to build PostgreSQL from CVS or
4141 *** change any of the parser definition files.  You can obtain Bison from
4142 *** a GNU mirror site.  (If you are using the official distribution of
4143 *** PostgreSQL then you do not need to worry about this because the Bison
4144 *** output is pre-generated.)  To use a different yacc program (possible,
4145 *** but not recommended), set the environment variable YACC before running
4146 *** 'configure'." >&5
4147 echo "$as_me: WARNING:
4148 *** Without Bison you will not be able to build PostgreSQL from CVS or
4149 *** change any of the parser definition files.  You can obtain Bison from
4150 *** a GNU mirror site.  (If you are using the official distribution of
4151 *** PostgreSQL then you do not need to worry about this because the Bison
4152 *** output is pre-generated.)  To use a different yacc program (possible,
4153 *** but not recommended), set the environment variable YACC before running
4154 *** 'configure'." >&2;}
4155 fi
4156
4157
4158 # Extract the first word of "perl", so it can be a program name with args.
4159 set dummy perl; ac_word=$2
4160 echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4162 if test "${ac_cv_path_PERL+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   case $PERL in
4166   [\\/]* | ?:[\\/]*)
4167   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4168   ;;
4169   *)
4170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_exec_ext in '' $ac_executable_extensions; do
4176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182 done
4183
4184   ;;
4185 esac
4186 fi
4187 PERL=$ac_cv_path_PERL
4188
4189 if test -n "$PERL"; then
4190   echo "$as_me:$LINENO: result: $PERL" >&5
4191 echo "${ECHO_T}$PERL" >&6
4192 else
4193   echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4195 fi
4196
4197 if test "$with_perl" = yes; then
4198
4199 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4200 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4201 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4202 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4203 echo "${ECHO_T}$perl_archlibexp" >&6
4204 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4205 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4206 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4207 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4208 echo "${ECHO_T}$perl_privlibexp" >&6
4209 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4210 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4211 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4212 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4213 echo "${ECHO_T}$perl_useshrplib" >&6
4214
4215 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4216 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4217 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4218 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4219 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4220 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4221 echo "${ECHO_T}$perl_embed_ldflags" >&6
4222 fi
4223
4224 if test "$with_python" = yes; then
4225   # Extract the first word of "python", so it can be a program name with args.
4226 set dummy python; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_path_PYTHON+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   case $PYTHON in
4233   [\\/]* | ?:[\\/]*)
4234   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4235   ;;
4236   *)
4237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242   for ac_exec_ext in '' $ac_executable_extensions; do
4243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249 done
4250
4251   ;;
4252 esac
4253 fi
4254 PYTHON=$ac_cv_path_PYTHON
4255
4256 if test -n "$PYTHON"; then
4257   echo "$as_me:$LINENO: result: $PYTHON" >&5
4258 echo "${ECHO_T}$PYTHON" >&6
4259 else
4260   echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4262 fi
4263
4264 if test x"$PYTHON" = x""; then
4265   { { echo "$as_me:$LINENO: error: Python not found" >&5
4266 echo "$as_me: error: Python not found" >&2;}
4267    { (exit 1); exit 1; }; }
4268 fi
4269
4270
4271 echo "$as_me:$LINENO: checking Python installation directories" >&5
4272 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4273 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4274 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4275 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4276 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4277 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4278 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4279 python_includespec="-I${python_prefix}/include/python${python_version}"
4280 if test "$python_prefix" != "$python_execprefix"; then
4281   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4282 fi
4283
4284 # This should be enough of a message.
4285 if test "$python_prefix" != "$python_execprefix"; then
4286   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4287 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4288 else
4289   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4290 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4291 fi
4292
4293
4294
4295
4296
4297 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4298 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4299
4300 if test ! -f "$python_configdir/Makefile"; then
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4304 echo "$as_me: error: Python Makefile not found" >&2;}
4305    { (exit 1); exit 1; }; }
4306 fi
4307
4308 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4309 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4310 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4311 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4312 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4313
4314 pgac_tab="      " # tab character
4315 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"`
4316
4317 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4318 echo "${ECHO_T}${python_libspec}" >&6
4319
4320
4321 fi
4322
4323
4324 ##
4325 ## Libraries
4326 ##
4327
4328 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4329 then
4330
4331 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4332 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4333 if test "${ac_cv_lib_bsd_main+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   ac_check_lib_save_LIBS=$LIBS
4337 LIBS="-lbsd  $LIBS"
4338 cat >conftest.$ac_ext <<_ACEOF
4339 #line $LINENO "configure"
4340 #include "confdefs.h"
4341
4342
4343 #ifdef F77_DUMMY_MAIN
4344 #  ifdef __cplusplus
4345      extern "C"
4346 #  endif
4347    int F77_DUMMY_MAIN() { return 1; }
4348 #endif
4349 int
4350 main ()
4351 {
4352 main ();
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359   (eval $ac_link) 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } &&
4363          { ac_try='test -s conftest$ac_exeext'
4364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365   (eval $ac_try) 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; }; then
4369   ac_cv_lib_bsd_main=yes
4370 else
4371   echo "$as_me: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4373 ac_cv_lib_bsd_main=no
4374 fi
4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4376 LIBS=$ac_check_lib_save_LIBS
4377 fi
4378 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4379 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4380 if test $ac_cv_lib_bsd_main = yes; then
4381   cat >>confdefs.h <<_ACEOF
4382 #define HAVE_LIBBSD 1
4383 _ACEOF
4384
4385   LIBS="-lbsd $LIBS"
4386
4387 fi
4388
4389 fi
4390
4391 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4392 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4393 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   ac_check_lib_save_LIBS=$LIBS
4397 LIBS="-lutil  $LIBS"
4398 cat >conftest.$ac_ext <<_ACEOF
4399 #line $LINENO "configure"
4400 #include "confdefs.h"
4401
4402 /* Override any gcc2 internal prototype to avoid an error.  */
4403 #ifdef __cplusplus
4404 extern "C"
4405 #endif
4406 /* We use char because int might match the return type of a gcc2
4407    builtin and then its argument prototype would still apply.  */
4408 char setproctitle ();
4409 #ifdef F77_DUMMY_MAIN
4410 #  ifdef __cplusplus
4411      extern "C"
4412 #  endif
4413    int F77_DUMMY_MAIN() { return 1; }
4414 #endif
4415 int
4416 main ()
4417 {
4418 setproctitle ();
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4425   (eval $ac_link) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } &&
4429          { ac_try='test -s conftest$ac_exeext'
4430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431   (eval $ac_try) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; }; then
4435   ac_cv_lib_util_setproctitle=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ac_cv_lib_util_setproctitle=no
4440 fi
4441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4442 LIBS=$ac_check_lib_save_LIBS
4443 fi
4444 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4445 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4446 if test $ac_cv_lib_util_setproctitle = yes; then
4447   cat >>confdefs.h <<_ACEOF
4448 #define HAVE_LIBUTIL 1
4449 _ACEOF
4450
4451   LIBS="-lutil $LIBS"
4452
4453 fi
4454
4455
4456 echo "$as_me:$LINENO: checking for main in -lm" >&5
4457 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4458 if test "${ac_cv_lib_m_main+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   ac_check_lib_save_LIBS=$LIBS
4462 LIBS="-lm  $LIBS"
4463 cat >conftest.$ac_ext <<_ACEOF
4464 #line $LINENO "configure"
4465 #include "confdefs.h"
4466
4467
4468 #ifdef F77_DUMMY_MAIN
4469 #  ifdef __cplusplus
4470      extern "C"
4471 #  endif
4472    int F77_DUMMY_MAIN() { return 1; }
4473 #endif
4474 int
4475 main ()
4476 {
4477 main ();
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484   (eval $ac_link) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -s conftest$ac_exeext'
4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490   (eval $ac_try) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; }; then
4494   ac_cv_lib_m_main=yes
4495 else
4496   echo "$as_me: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 ac_cv_lib_m_main=no
4499 fi
4500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501 LIBS=$ac_check_lib_save_LIBS
4502 fi
4503 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4504 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4505 if test $ac_cv_lib_m_main = yes; then
4506   cat >>confdefs.h <<_ACEOF
4507 #define HAVE_LIBM 1
4508 _ACEOF
4509
4510   LIBS="-lm $LIBS"
4511
4512 fi
4513
4514
4515 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4516 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4517 if test "${ac_cv_lib_dl_main+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   ac_check_lib_save_LIBS=$LIBS
4521 LIBS="-ldl  $LIBS"
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 #include "confdefs.h"
4525
4526
4527 #ifdef F77_DUMMY_MAIN
4528 #  ifdef __cplusplus
4529      extern "C"
4530 #  endif
4531    int F77_DUMMY_MAIN() { return 1; }
4532 #endif
4533 int
4534 main ()
4535 {
4536 main ();
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext conftest$ac_exeext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543   (eval $ac_link) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -s conftest$ac_exeext'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; }; then
4553   ac_cv_lib_dl_main=yes
4554 else
4555   echo "$as_me: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4557 ac_cv_lib_dl_main=no
4558 fi
4559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4561 fi
4562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4563 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4564 if test $ac_cv_lib_dl_main = yes; then
4565   cat >>confdefs.h <<_ACEOF
4566 #define HAVE_LIBDL 1
4567 _ACEOF
4568
4569   LIBS="-ldl $LIBS"
4570
4571 fi
4572
4573
4574 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4575 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4576 if test "${ac_cv_lib_nsl_main+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   ac_check_lib_save_LIBS=$LIBS
4580 LIBS="-lnsl  $LIBS"
4581 cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4583 #include "confdefs.h"
4584
4585
4586 #ifdef F77_DUMMY_MAIN
4587 #  ifdef __cplusplus
4588      extern "C"
4589 #  endif
4590    int F77_DUMMY_MAIN() { return 1; }
4591 #endif
4592 int
4593 main ()
4594 {
4595 main ();
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4602   (eval $ac_link) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -s conftest$ac_exeext'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; }; then
4612   ac_cv_lib_nsl_main=yes
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4616 ac_cv_lib_nsl_main=no
4617 fi
4618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4619 LIBS=$ac_check_lib_save_LIBS
4620 fi
4621 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4622 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4623 if test $ac_cv_lib_nsl_main = yes; then
4624   cat >>confdefs.h <<_ACEOF
4625 #define HAVE_LIBNSL 1
4626 _ACEOF
4627
4628   LIBS="-lnsl $LIBS"
4629
4630 fi
4631
4632
4633 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4634 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4635 if test "${ac_cv_lib_socket_main+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-lsocket  $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4643
4644
4645 #ifdef F77_DUMMY_MAIN
4646 #  ifdef __cplusplus
4647      extern "C"
4648 #  endif
4649    int F77_DUMMY_MAIN() { return 1; }
4650 #endif
4651 int
4652 main ()
4653 {
4654 main ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661   (eval $ac_link) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; }; then
4671   ac_cv_lib_socket_main=yes
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_cv_lib_socket_main=no
4676 fi
4677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4679 fi
4680 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4681 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4682 if test $ac_cv_lib_socket_main = yes; then
4683   cat >>confdefs.h <<_ACEOF
4684 #define HAVE_LIBSOCKET 1
4685 _ACEOF
4686
4687   LIBS="-lsocket $LIBS"
4688
4689 fi
4690
4691
4692 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4693 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4694 if test "${ac_cv_lib_ipc_main+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   ac_check_lib_save_LIBS=$LIBS
4698 LIBS="-lipc  $LIBS"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 #line $LINENO "configure"
4701 #include "confdefs.h"
4702
4703
4704 #ifdef F77_DUMMY_MAIN
4705 #  ifdef __cplusplus
4706      extern "C"
4707 #  endif
4708    int F77_DUMMY_MAIN() { return 1; }
4709 #endif
4710 int
4711 main ()
4712 {
4713 main ();
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720   (eval $ac_link) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -s conftest$ac_exeext'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; }; then
4730   ac_cv_lib_ipc_main=yes
4731 else
4732   echo "$as_me: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 ac_cv_lib_ipc_main=no
4735 fi
4736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4738 fi
4739 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4740 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4741 if test $ac_cv_lib_ipc_main = yes; then
4742   cat >>confdefs.h <<_ACEOF
4743 #define HAVE_LIBIPC 1
4744 _ACEOF
4745
4746   LIBS="-lipc $LIBS"
4747
4748 fi
4749
4750
4751 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4752 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4753 if test "${ac_cv_lib_IPC_main+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756   ac_check_lib_save_LIBS=$LIBS
4757 LIBS="-lIPC  $LIBS"
4758 cat >conftest.$ac_ext <<_ACEOF
4759 #line $LINENO "configure"
4760 #include "confdefs.h"
4761
4762
4763 #ifdef F77_DUMMY_MAIN
4764 #  ifdef __cplusplus
4765      extern "C"
4766 #  endif
4767    int F77_DUMMY_MAIN() { return 1; }
4768 #endif
4769 int
4770 main ()
4771 {
4772 main ();
4773   ;
4774   return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext conftest$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779   (eval $ac_link) 2>&5
4780   ac_status=$?
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } &&
4783          { ac_try='test -s conftest$ac_exeext'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; }; then
4789   ac_cv_lib_IPC_main=yes
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4793 ac_cv_lib_IPC_main=no
4794 fi
4795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4796 LIBS=$ac_check_lib_save_LIBS
4797 fi
4798 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4799 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4800 if test $ac_cv_lib_IPC_main = yes; then
4801   cat >>confdefs.h <<_ACEOF
4802 #define HAVE_LIBIPC 1
4803 _ACEOF
4804
4805   LIBS="-lIPC $LIBS"
4806
4807 fi
4808
4809
4810 echo "$as_me:$LINENO: checking for main in -llc" >&5
4811 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4812 if test "${ac_cv_lib_lc_main+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   ac_check_lib_save_LIBS=$LIBS
4816 LIBS="-llc  $LIBS"
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line $LINENO "configure"
4819 #include "confdefs.h"
4820
4821
4822 #ifdef F77_DUMMY_MAIN
4823 #  ifdef __cplusplus
4824      extern "C"
4825 #  endif
4826    int F77_DUMMY_MAIN() { return 1; }
4827 #endif
4828 int
4829 main ()
4830 {
4831 main ();
4832   ;
4833   return 0;
4834 }
4835 _ACEOF
4836 rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4838   (eval $ac_link) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); } &&
4842          { ac_try='test -s conftest$ac_exeext'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; }; then
4848   ac_cv_lib_lc_main=yes
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4852 ac_cv_lib_lc_main=no
4853 fi
4854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4855 LIBS=$ac_check_lib_save_LIBS
4856 fi
4857 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4858 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4859 if test $ac_cv_lib_lc_main = yes; then
4860   cat >>confdefs.h <<_ACEOF
4861 #define HAVE_LIBLC 1
4862 _ACEOF
4863
4864   LIBS="-llc $LIBS"
4865
4866 fi
4867
4868
4869 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4870 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4871 if test "${ac_cv_lib_dld_main+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   ac_check_lib_save_LIBS=$LIBS
4875 LIBS="-ldld  $LIBS"
4876 cat >conftest.$ac_ext <<_ACEOF
4877 #line $LINENO "configure"
4878 #include "confdefs.h"
4879
4880
4881 #ifdef F77_DUMMY_MAIN
4882 #  ifdef __cplusplus
4883      extern "C"
4884 #  endif
4885    int F77_DUMMY_MAIN() { return 1; }
4886 #endif
4887 int
4888 main ()
4889 {
4890 main ();
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897   (eval $ac_link) 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); } &&
4901          { ac_try='test -s conftest$ac_exeext'
4902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903   (eval $ac_try) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; }; then
4907   ac_cv_lib_dld_main=yes
4908 else
4909   echo "$as_me: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 ac_cv_lib_dld_main=no
4912 fi
4913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4914 LIBS=$ac_check_lib_save_LIBS
4915 fi
4916 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4917 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4918 if test $ac_cv_lib_dld_main = yes; then
4919   cat >>confdefs.h <<_ACEOF
4920 #define HAVE_LIBDLD 1
4921 _ACEOF
4922
4923   LIBS="-ldld $LIBS"
4924
4925 fi
4926
4927
4928 echo "$as_me:$LINENO: checking for main in -lld" >&5
4929 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4930 if test "${ac_cv_lib_ld_main+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   ac_check_lib_save_LIBS=$LIBS
4934 LIBS="-lld  $LIBS"
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 #include "confdefs.h"
4938
4939
4940 #ifdef F77_DUMMY_MAIN
4941 #  ifdef __cplusplus
4942      extern "C"
4943 #  endif
4944    int F77_DUMMY_MAIN() { return 1; }
4945 #endif
4946 int
4947 main ()
4948 {
4949 main ();
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956   (eval $ac_link) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -s conftest$ac_exeext'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; }; then
4966   ac_cv_lib_ld_main=yes
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ac_cv_lib_ld_main=no
4971 fi
4972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 LIBS=$ac_check_lib_save_LIBS
4974 fi
4975 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4976 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4977 if test $ac_cv_lib_ld_main = yes; then
4978   cat >>confdefs.h <<_ACEOF
4979 #define HAVE_LIBLD 1
4980 _ACEOF
4981
4982   LIBS="-lld $LIBS"
4983
4984 fi
4985
4986
4987 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4988 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4989 if test "${ac_cv_lib_compat_main+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   ac_check_lib_save_LIBS=$LIBS
4993 LIBS="-lcompat  $LIBS"
4994 cat >conftest.$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4996 #include "confdefs.h"
4997
4998
4999 #ifdef F77_DUMMY_MAIN
5000 #  ifdef __cplusplus
5001      extern "C"
5002 #  endif
5003    int F77_DUMMY_MAIN() { return 1; }
5004 #endif
5005 int
5006 main ()
5007 {
5008 main ();
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext conftest$ac_exeext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015   (eval $ac_link) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); } &&
5019          { ac_try='test -s conftest$ac_exeext'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; }; then
5025   ac_cv_lib_compat_main=yes
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5029 ac_cv_lib_compat_main=no
5030 fi
5031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5032 LIBS=$ac_check_lib_save_LIBS
5033 fi
5034 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5035 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5036 if test $ac_cv_lib_compat_main = yes; then
5037   cat >>confdefs.h <<_ACEOF
5038 #define HAVE_LIBCOMPAT 1
5039 _ACEOF
5040
5041   LIBS="-lcompat $LIBS"
5042
5043 fi
5044
5045
5046 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5047 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5048 if test "${ac_cv_lib_BSD_main+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   ac_check_lib_save_LIBS=$LIBS
5052 LIBS="-lBSD  $LIBS"
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5055 #include "confdefs.h"
5056
5057
5058 #ifdef F77_DUMMY_MAIN
5059 #  ifdef __cplusplus
5060      extern "C"
5061 #  endif
5062    int F77_DUMMY_MAIN() { return 1; }
5063 #endif
5064 int
5065 main ()
5066 {
5067 main ();
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074   (eval $ac_link) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } &&
5078          { ac_try='test -s conftest$ac_exeext'
5079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080   (eval $ac_try) 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; }; then
5084   ac_cv_lib_BSD_main=yes
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 ac_cv_lib_BSD_main=no
5089 fi
5090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5092 fi
5093 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5094 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5095 if test $ac_cv_lib_BSD_main = yes; then
5096   cat >>confdefs.h <<_ACEOF
5097 #define HAVE_LIBBSD 1
5098 _ACEOF
5099
5100   LIBS="-lBSD $LIBS"
5101
5102 fi
5103
5104
5105 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5106 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5107 if test "${ac_cv_lib_gen_main+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   ac_check_lib_save_LIBS=$LIBS
5111 LIBS="-lgen  $LIBS"
5112 cat >conftest.$ac_ext <<_ACEOF
5113 #line $LINENO "configure"
5114 #include "confdefs.h"
5115
5116
5117 #ifdef F77_DUMMY_MAIN
5118 #  ifdef __cplusplus
5119      extern "C"
5120 #  endif
5121    int F77_DUMMY_MAIN() { return 1; }
5122 #endif
5123 int
5124 main ()
5125 {
5126 main ();
5127   ;
5128   return 0;
5129 }
5130 _ACEOF
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133   (eval $ac_link) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -s conftest$ac_exeext'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; }; then
5143   ac_cv_lib_gen_main=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 ac_cv_lib_gen_main=no
5148 fi
5149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5150 LIBS=$ac_check_lib_save_LIBS
5151 fi
5152 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5153 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5154 if test $ac_cv_lib_gen_main = yes; then
5155   cat >>confdefs.h <<_ACEOF
5156 #define HAVE_LIBGEN 1
5157 _ACEOF
5158
5159   LIBS="-lgen $LIBS"
5160
5161 fi
5162
5163
5164 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5165 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5166 if test "${ac_cv_lib_PW_main+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   ac_check_lib_save_LIBS=$LIBS
5170 LIBS="-lPW  $LIBS"
5171 cat >conftest.$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5173 #include "confdefs.h"
5174
5175
5176 #ifdef F77_DUMMY_MAIN
5177 #  ifdef __cplusplus
5178      extern "C"
5179 #  endif
5180    int F77_DUMMY_MAIN() { return 1; }
5181 #endif
5182 int
5183 main ()
5184 {
5185 main ();
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192   (eval $ac_link) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -s conftest$ac_exeext'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   ac_cv_lib_PW_main=yes
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_PW_main=no
5207 fi
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5210 fi
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5212 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5213 if test $ac_cv_lib_PW_main = yes; then
5214   cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBPW 1
5216 _ACEOF
5217
5218   LIBS="-lPW $LIBS"
5219
5220 fi
5221
5222
5223 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5224 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5225 if test "${ac_cv_lib_resolv_main+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lresolv  $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5233
5234
5235 #ifdef F77_DUMMY_MAIN
5236 #  ifdef __cplusplus
5237      extern "C"
5238 #  endif
5239    int F77_DUMMY_MAIN() { return 1; }
5240 #endif
5241 int
5242 main ()
5243 {
5244 main ();
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251   (eval $ac_link) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } &&
5255          { ac_try='test -s conftest$ac_exeext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_cv_lib_resolv_main=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_cv_lib_resolv_main=no
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5272 if test $ac_cv_lib_resolv_main = yes; then
5273   cat >>confdefs.h <<_ACEOF
5274 #define HAVE_LIBRESOLV 1
5275 _ACEOF
5276
5277   LIBS="-lresolv $LIBS"
5278
5279 fi
5280
5281 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5282 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5283 if test "${ac_cv_search_getopt_long+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   ac_func_search_save_LIBS=$LIBS
5287 ac_cv_search_getopt_long=no
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5291
5292 /* Override any gcc2 internal prototype to avoid an error.  */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 /* We use char because int might match the return type of a gcc2
5297    builtin and then its argument prototype would still apply.  */
5298 char getopt_long ();
5299 #ifdef F77_DUMMY_MAIN
5300 #  ifdef __cplusplus
5301      extern "C"
5302 #  endif
5303    int F77_DUMMY_MAIN() { return 1; }
5304 #endif
5305 int
5306 main ()
5307 {
5308 getopt_long ();
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315   (eval $ac_link) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } &&
5319          { ac_try='test -s conftest$ac_exeext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_search_getopt_long="none required"
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 fi
5330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5331 if test "$ac_cv_search_getopt_long" = no; then
5332   for ac_lib in getopt gnugetopt; do
5333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5334     cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 #include "confdefs.h"
5337
5338 /* Override any gcc2 internal prototype to avoid an error.  */
5339 #ifdef __cplusplus
5340 extern "C"
5341 #endif
5342 /* We use char because int might match the return type of a gcc2
5343    builtin and then its argument prototype would still apply.  */
5344 char getopt_long ();
5345 #ifdef F77_DUMMY_MAIN
5346 #  ifdef __cplusplus
5347      extern "C"
5348 #  endif
5349    int F77_DUMMY_MAIN() { return 1; }
5350 #endif
5351 int
5352 main ()
5353 {
5354 getopt_long ();
5355   ;
5356   return 0;
5357 }
5358 _ACEOF
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361   (eval $ac_link) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } &&
5365          { ac_try='test -s conftest$ac_exeext'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; }; then
5371   ac_cv_search_getopt_long="-l$ac_lib"
5372 break
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5376 fi
5377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5378   done
5379 fi
5380 LIBS=$ac_func_search_save_LIBS
5381 fi
5382 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5383 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5384 if test "$ac_cv_search_getopt_long" != no; then
5385   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5386
5387 fi
5388
5389 # QNX:
5390
5391 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5392 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5393 if test "${ac_cv_lib_unix_main+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   ac_check_lib_save_LIBS=$LIBS
5397 LIBS="-lunix  $LIBS"
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5401
5402
5403 #ifdef F77_DUMMY_MAIN
5404 #  ifdef __cplusplus
5405      extern "C"
5406 #  endif
5407    int F77_DUMMY_MAIN() { return 1; }
5408 #endif
5409 int
5410 main ()
5411 {
5412 main ();
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419   (eval $ac_link) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } &&
5423          { ac_try='test -s conftest$ac_exeext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   ac_cv_lib_unix_main=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5433 ac_cv_lib_unix_main=no
5434 fi
5435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_check_lib_save_LIBS
5437 fi
5438 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5439 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5440 if test $ac_cv_lib_unix_main = yes; then
5441   cat >>confdefs.h <<_ACEOF
5442 #define HAVE_LIBUNIX 1
5443 _ACEOF
5444
5445   LIBS="-lunix $LIBS"
5446
5447 fi
5448
5449 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5450 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5451 if test "${ac_cv_search_crypt+set}" = set; then
5452   echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454   ac_func_search_save_LIBS=$LIBS
5455 ac_cv_search_crypt=no
5456 cat >conftest.$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5459
5460 /* Override any gcc2 internal prototype to avoid an error.  */
5461 #ifdef __cplusplus
5462 extern "C"
5463 #endif
5464 /* We use char because int might match the return type of a gcc2
5465    builtin and then its argument prototype would still apply.  */
5466 char crypt ();
5467 #ifdef F77_DUMMY_MAIN
5468 #  ifdef __cplusplus
5469      extern "C"
5470 #  endif
5471    int F77_DUMMY_MAIN() { return 1; }
5472 #endif
5473 int
5474 main ()
5475 {
5476 crypt ();
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483   (eval $ac_link) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -s conftest$ac_exeext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_cv_search_crypt="none required"
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 fi
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 if test "$ac_cv_search_crypt" = no; then
5500   for ac_lib in crypt; do
5501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5502     cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5505
5506 /* Override any gcc2 internal prototype to avoid an error.  */
5507 #ifdef __cplusplus
5508 extern "C"
5509 #endif
5510 /* We use char because int might match the return type of a gcc2
5511    builtin and then its argument prototype would still apply.  */
5512 char crypt ();
5513 #ifdef F77_DUMMY_MAIN
5514 #  ifdef __cplusplus
5515      extern "C"
5516 #  endif
5517    int F77_DUMMY_MAIN() { return 1; }
5518 #endif
5519 int
5520 main ()
5521 {
5522 crypt ();
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } &&
5533          { ac_try='test -s conftest$ac_exeext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   ac_cv_search_crypt="-l$ac_lib"
5540 break
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 fi
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546   done
5547 fi
5548 LIBS=$ac_func_search_save_LIBS
5549 fi
5550 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5551 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5552 if test "$ac_cv_search_crypt" != no; then
5553   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5554
5555 fi
5556
5557 # BeOS:
5558
5559 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5560 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5561 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   ac_check_lib_save_LIBS=$LIBS
5565 LIBS="-lbind  $LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 #include "confdefs.h"
5569
5570 /* Override any gcc2 internal prototype to avoid an error.  */
5571 #ifdef __cplusplus
5572 extern "C"
5573 #endif
5574 /* We use char because int might match the return type of a gcc2
5575    builtin and then its argument prototype would still apply.  */
5576 char __inet_ntoa ();
5577 #ifdef F77_DUMMY_MAIN
5578 #  ifdef __cplusplus
5579      extern "C"
5580 #  endif
5581    int F77_DUMMY_MAIN() { return 1; }
5582 #endif
5583 int
5584 main ()
5585 {
5586 __inet_ntoa ();
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593   (eval $ac_link) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } &&
5597          { ac_try='test -s conftest$ac_exeext'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   ac_cv_lib_bind___inet_ntoa=yes
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 ac_cv_lib_bind___inet_ntoa=no
5608 fi
5609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5610 LIBS=$ac_check_lib_save_LIBS
5611 fi
5612 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5613 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5614 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5615   cat >>confdefs.h <<_ACEOF
5616 #define HAVE_LIBBIND 1
5617 _ACEOF
5618
5619   LIBS="-lbind $LIBS"
5620
5621 fi
5622
5623 # Solaris:
5624 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5625 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5626 if test "${ac_cv_search_fdatasync+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   ac_func_search_save_LIBS=$LIBS
5630 ac_cv_search_fdatasync=no
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5633 #include "confdefs.h"
5634
5635 /* Override any gcc2 internal prototype to avoid an error.  */
5636 #ifdef __cplusplus
5637 extern "C"
5638 #endif
5639 /* We use char because int might match the return type of a gcc2
5640    builtin and then its argument prototype would still apply.  */
5641 char fdatasync ();
5642 #ifdef F77_DUMMY_MAIN
5643 #  ifdef __cplusplus
5644      extern "C"
5645 #  endif
5646    int F77_DUMMY_MAIN() { return 1; }
5647 #endif
5648 int
5649 main ()
5650 {
5651 fdatasync ();
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658   (eval $ac_link) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -s conftest$ac_exeext'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; }; then
5668   ac_cv_search_fdatasync="none required"
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 fi
5673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5674 if test "$ac_cv_search_fdatasync" = no; then
5675   for ac_lib in rt posix4; do
5676     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5677     cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 #include "confdefs.h"
5680
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 #endif
5685 /* We use char because int might match the return type of a gcc2
5686    builtin and then its argument prototype would still apply.  */
5687 char fdatasync ();
5688 #ifdef F77_DUMMY_MAIN
5689 #  ifdef __cplusplus
5690      extern "C"
5691 #  endif
5692    int F77_DUMMY_MAIN() { return 1; }
5693 #endif
5694 int
5695 main ()
5696 {
5697 fdatasync ();
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704   (eval $ac_link) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } &&
5708          { ac_try='test -s conftest$ac_exeext'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; }; then
5714   ac_cv_search_fdatasync="-l$ac_lib"
5715 break
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5719 fi
5720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5721   done
5722 fi
5723 LIBS=$ac_func_search_save_LIBS
5724 fi
5725 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5726 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5727 if test "$ac_cv_search_fdatasync" != no; then
5728   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5729
5730 fi
5731
5732 # Cygwin:
5733
5734 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5735 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5736 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   ac_check_lib_save_LIBS=$LIBS
5740 LIBS="-lcygipc  $LIBS"
5741 cat >conftest.$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5743 #include "confdefs.h"
5744
5745 /* Override any gcc2 internal prototype to avoid an error.  */
5746 #ifdef __cplusplus
5747 extern "C"
5748 #endif
5749 /* We use char because int might match the return type of a gcc2
5750    builtin and then its argument prototype would still apply.  */
5751 char shmget ();
5752 #ifdef F77_DUMMY_MAIN
5753 #  ifdef __cplusplus
5754      extern "C"
5755 #  endif
5756    int F77_DUMMY_MAIN() { return 1; }
5757 #endif
5758 int
5759 main ()
5760 {
5761 shmget ();
5762   ;
5763   return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768   (eval $ac_link) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } &&
5772          { ac_try='test -s conftest$ac_exeext'
5773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774   (eval $ac_try) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }; }; then
5778   ac_cv_lib_cygipc_shmget=yes
5779 else
5780   echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 ac_cv_lib_cygipc_shmget=no
5783 fi
5784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5785 LIBS=$ac_check_lib_save_LIBS
5786 fi
5787 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5788 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5789 if test $ac_cv_lib_cygipc_shmget = yes; then
5790   cat >>confdefs.h <<_ACEOF
5791 #define HAVE_LIBCYGIPC 1
5792 _ACEOF
5793
5794   LIBS="-lcygipc $LIBS"
5795
5796 fi
5797
5798
5799 if test "$with_readline" = yes; then
5800
5801 echo "$as_me:$LINENO: checking for readline" >&5
5802 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5803
5804 if test "${pgac_cv_check_readline+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   pgac_cv_check_readline=no
5808 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5809   for pgac_rllib in -lreadline -ledit ; do
5810     pgac_save_LIBS=$LIBS
5811     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5812     cat >conftest.$ac_ext <<_ACEOF
5813 #line $LINENO "configure"
5814 #include "confdefs.h"
5815
5816 /* Override any gcc2 internal prototype to avoid an error.  */
5817 #ifdef __cplusplus
5818 extern "C"
5819 #endif
5820 /* We use char because int might match the return type of a gcc2
5821    builtin and then its argument prototype would still apply.  */
5822 char readline ();
5823 #ifdef F77_DUMMY_MAIN
5824 #  ifdef __cplusplus
5825      extern "C"
5826 #  endif
5827    int F77_DUMMY_MAIN() { return 1; }
5828 #endif
5829 int
5830 main ()
5831 {
5832 readline ();
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839   (eval $ac_link) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } &&
5843          { ac_try='test -s conftest$ac_exeext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849
5850       # NetBSD and OpenBSD have a broken linker that does not
5851       # recognize dependent libraries
5852       case $host_os in netbsd* | openbsd* )
5853         case $pgac_lib in
5854           *curses*) ;;
5855           *) pgac_lib=" -lcurses" ;;
5856         esac
5857       esac
5858
5859       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5860       break 2
5861
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 fi
5866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867     LIBS=$pgac_save_LIBS
5868   done
5869 done
5870 LIBS=$pgac_save_LIBS
5871
5872 fi
5873
5874 if test "$pgac_cv_check_readline" != no ; then
5875
5876 cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_LIBREADLINE 1
5878 _ACEOF
5879
5880   LIBS="$pgac_cv_check_readline $LIBS"
5881   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5882 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5883 else
5884   echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5886 fi
5887   if test x"$pgac_cv_check_readline" = x"no"; then
5888     { { echo "$as_me:$LINENO: error: readline library not found
5889 If you have readline already installed, see config.log for details on the
5890 failure.  It is possible the compiler isn't looking in the proper directory.
5891 Use --without-readline to disable readline support." >&5
5892 echo "$as_me: error: readline library not found
5893 If you have readline already installed, see config.log for details on the
5894 failure.  It is possible the compiler isn't looking in the proper directory.
5895 Use --without-readline to disable readline support." >&2;}
5896    { (exit 1); exit 1; }; }
5897   fi
5898 fi
5899
5900 if test "$with_zlib" = yes; then
5901
5902 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5903 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5904 if test "${ac_cv_lib_z_inflate+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   ac_check_lib_save_LIBS=$LIBS
5908 LIBS="-lz  $LIBS"
5909 cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5911 #include "confdefs.h"
5912
5913 /* Override any gcc2 internal prototype to avoid an error.  */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 /* We use char because int might match the return type of a gcc2
5918    builtin and then its argument prototype would still apply.  */
5919 char inflate ();
5920 #ifdef F77_DUMMY_MAIN
5921 #  ifdef __cplusplus
5922      extern "C"
5923 #  endif
5924    int F77_DUMMY_MAIN() { return 1; }
5925 #endif
5926 int
5927 main ()
5928 {
5929 inflate ();
5930   ;
5931   return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936   (eval $ac_link) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } &&
5940          { ac_try='test -s conftest$ac_exeext'
5941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942   (eval $ac_try) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   ac_cv_lib_z_inflate=yes
5947 else
5948   echo "$as_me: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 ac_cv_lib_z_inflate=no
5951 fi
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5953 LIBS=$ac_check_lib_save_LIBS
5954 fi
5955 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5956 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5957 if test $ac_cv_lib_z_inflate = yes; then
5958   cat >>confdefs.h <<_ACEOF
5959 #define HAVE_LIBZ 1
5960 _ACEOF
5961
5962   LIBS="-lz $LIBS"
5963
5964 else
5965   { { echo "$as_me:$LINENO: error: zlib library not found
5966 If you have zlib already installed, see config.log for details on the
5967 failure.  It is possible the compiler isn't looking in the proper directory.
5968 Use --without-zlib to disable zlib support." >&5
5969 echo "$as_me: error: zlib library not found
5970 If you have zlib already installed, see config.log for details on the
5971 failure.  It is possible the compiler isn't looking in the proper directory.
5972 Use --without-zlib to disable zlib support." >&2;}
5973    { (exit 1); exit 1; }; }
5974 fi
5975
5976 fi
5977
5978 if test "$with_krb4" = yes ; then
5979
5980 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5981 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5982 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   ac_check_lib_save_LIBS=$LIBS
5986 LIBS="-ldes  $LIBS"
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 #include "confdefs.h"
5990
5991 /* Override any gcc2 internal prototype to avoid an error.  */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 /* We use char because int might match the return type of a gcc2
5996    builtin and then its argument prototype would still apply.  */
5997 char des_encrypt ();
5998 #ifdef F77_DUMMY_MAIN
5999 #  ifdef __cplusplus
6000      extern "C"
6001 #  endif
6002    int F77_DUMMY_MAIN() { return 1; }
6003 #endif
6004 int
6005 main ()
6006 {
6007 des_encrypt ();
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014   (eval $ac_link) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -s conftest$ac_exeext'
6019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024   ac_cv_lib_des_des_encrypt=yes
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 ac_cv_lib_des_des_encrypt=no
6029 fi
6030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6032 fi
6033 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6034 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6035 if test $ac_cv_lib_des_des_encrypt = yes; then
6036   cat >>confdefs.h <<_ACEOF
6037 #define HAVE_LIBDES 1
6038 _ACEOF
6039
6040   LIBS="-ldes $LIBS"
6041
6042 else
6043   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6044 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6045    { (exit 1); exit 1; }; }
6046 fi
6047
6048
6049 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6050 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6051 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lkrb  $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6059
6060 /* Override any gcc2 internal prototype to avoid an error.  */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 /* We use char because int might match the return type of a gcc2
6065    builtin and then its argument prototype would still apply.  */
6066 char krb_sendauth ();
6067 #ifdef F77_DUMMY_MAIN
6068 #  ifdef __cplusplus
6069      extern "C"
6070 #  endif
6071    int F77_DUMMY_MAIN() { return 1; }
6072 #endif
6073 int
6074 main ()
6075 {
6076 krb_sendauth ();
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext conftest$ac_exeext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083   (eval $ac_link) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } &&
6087          { ac_try='test -s conftest$ac_exeext'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; }; then
6093   ac_cv_lib_krb_krb_sendauth=yes
6094 else
6095   echo "$as_me: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6097 ac_cv_lib_krb_krb_sendauth=no
6098 fi
6099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6101 fi
6102 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6103 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6104 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6105   cat >>confdefs.h <<_ACEOF
6106 #define HAVE_LIBKRB 1
6107 _ACEOF
6108
6109   LIBS="-lkrb $LIBS"
6110
6111 else
6112   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6113 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6114    { (exit 1); exit 1; }; }
6115 fi
6116
6117 fi
6118
6119 if test "$with_krb5" = yes ; then
6120   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6121 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6122 if test "${ac_cv_search_com_err+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   ac_func_search_save_LIBS=$LIBS
6126 ac_cv_search_com_err=no
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 #include "confdefs.h"
6130
6131 /* Override any gcc2 internal prototype to avoid an error.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 /* We use char because int might match the return type of a gcc2
6136    builtin and then its argument prototype would still apply.  */
6137 char com_err ();
6138 #ifdef F77_DUMMY_MAIN
6139 #  ifdef __cplusplus
6140      extern "C"
6141 #  endif
6142    int F77_DUMMY_MAIN() { return 1; }
6143 #endif
6144 int
6145 main ()
6146 {
6147 com_err ();
6148   ;
6149   return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154   (eval $ac_link) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); } &&
6158          { ac_try='test -s conftest$ac_exeext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_search_com_err="none required"
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 fi
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 if test "$ac_cv_search_com_err" = no; then
6171   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6172     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6173     cat >conftest.$ac_ext <<_ACEOF
6174 #line $LINENO "configure"
6175 #include "confdefs.h"
6176
6177 /* Override any gcc2 internal prototype to avoid an error.  */
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 /* We use char because int might match the return type of a gcc2
6182    builtin and then its argument prototype would still apply.  */
6183 char com_err ();
6184 #ifdef F77_DUMMY_MAIN
6185 #  ifdef __cplusplus
6186      extern "C"
6187 #  endif
6188    int F77_DUMMY_MAIN() { return 1; }
6189 #endif
6190 int
6191 main ()
6192 {
6193 com_err ();
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -s conftest$ac_exeext'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; }; then
6210   ac_cv_search_com_err="-l$ac_lib"
6211 break
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 fi
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6217   done
6218 fi
6219 LIBS=$ac_func_search_save_LIBS
6220 fi
6221 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6222 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6223 if test "$ac_cv_search_com_err" != no; then
6224   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6225
6226 else
6227   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6228 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6229    { (exit 1); exit 1; }; }
6230 fi
6231
6232   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6233 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6234 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   ac_func_search_save_LIBS=$LIBS
6238 ac_cv_search_krb5_encrypt=no
6239 cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6241 #include "confdefs.h"
6242
6243 /* Override any gcc2 internal prototype to avoid an error.  */
6244 #ifdef __cplusplus
6245 extern "C"
6246 #endif
6247 /* We use char because int might match the return type of a gcc2
6248    builtin and then its argument prototype would still apply.  */
6249 char krb5_encrypt ();
6250 #ifdef F77_DUMMY_MAIN
6251 #  ifdef __cplusplus
6252      extern "C"
6253 #  endif
6254    int F77_DUMMY_MAIN() { return 1; }
6255 #endif
6256 int
6257 main ()
6258 {
6259 krb5_encrypt ();
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266   (eval $ac_link) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -s conftest$ac_exeext'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_search_krb5_encrypt="none required"
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 fi
6281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6282 if test "$ac_cv_search_krb5_encrypt" = no; then
6283   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6284     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6285     cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6288
6289 /* Override any gcc2 internal prototype to avoid an error.  */
6290 #ifdef __cplusplus
6291 extern "C"
6292 #endif
6293 /* We use char because int might match the return type of a gcc2
6294    builtin and then its argument prototype would still apply.  */
6295 char krb5_encrypt ();
6296 #ifdef F77_DUMMY_MAIN
6297 #  ifdef __cplusplus
6298      extern "C"
6299 #  endif
6300    int F77_DUMMY_MAIN() { return 1; }
6301 #endif
6302 int
6303 main ()
6304 {
6305 krb5_encrypt ();
6306   ;
6307   return 0;
6308 }
6309 _ACEOF
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312   (eval $ac_link) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } &&
6316          { ac_try='test -s conftest$ac_exeext'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_search_krb5_encrypt="-l$ac_lib"
6323 break
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6327 fi
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329   done
6330 fi
6331 LIBS=$ac_func_search_save_LIBS
6332 fi
6333 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6334 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6335 if test "$ac_cv_search_krb5_encrypt" != no; then
6336   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6337
6338 else
6339   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6340 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6341    { (exit 1); exit 1; }; }
6342 fi
6343
6344   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6345 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6346 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   ac_func_search_save_LIBS=$LIBS
6350 ac_cv_search_krb5_sendauth=no
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 #include "confdefs.h"
6354
6355 /* Override any gcc2 internal prototype to avoid an error.  */
6356 #ifdef __cplusplus
6357 extern "C"
6358 #endif
6359 /* We use char because int might match the return type of a gcc2
6360    builtin and then its argument prototype would still apply.  */
6361 char krb5_sendauth ();
6362 #ifdef F77_DUMMY_MAIN
6363 #  ifdef __cplusplus
6364      extern "C"
6365 #  endif
6366    int F77_DUMMY_MAIN() { return 1; }
6367 #endif
6368 int
6369 main ()
6370 {
6371 krb5_sendauth ();
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378   (eval $ac_link) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); } &&
6382          { ac_try='test -s conftest$ac_exeext'
6383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384   (eval $ac_try) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   ac_cv_search_krb5_sendauth="none required"
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6392 fi
6393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6394 if test "$ac_cv_search_krb5_sendauth" = no; then
6395   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6397     cat >conftest.$ac_ext <<_ACEOF
6398 #line $LINENO "configure"
6399 #include "confdefs.h"
6400
6401 /* Override any gcc2 internal prototype to avoid an error.  */
6402 #ifdef __cplusplus
6403 extern "C"
6404 #endif
6405 /* We use char because int might match the return type of a gcc2
6406    builtin and then its argument prototype would still apply.  */
6407 char krb5_sendauth ();
6408 #ifdef F77_DUMMY_MAIN
6409 #  ifdef __cplusplus
6410      extern "C"
6411 #  endif
6412    int F77_DUMMY_MAIN() { return 1; }
6413 #endif
6414 int
6415 main ()
6416 {
6417 krb5_sendauth ();
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424   (eval $ac_link) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -s conftest$ac_exeext'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; }; then
6434   ac_cv_search_krb5_sendauth="-l$ac_lib"
6435 break
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 fi
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441   done
6442 fi
6443 LIBS=$ac_func_search_save_LIBS
6444 fi
6445 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6446 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6447 if test "$ac_cv_search_krb5_sendauth" != no; then
6448   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6449
6450 else
6451   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6452 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6453    { (exit 1); exit 1; }; }
6454 fi
6455
6456 fi
6457
6458 if test "$with_openssl" = yes ; then
6459
6460 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6461 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6462 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   ac_check_lib_save_LIBS=$LIBS
6466 LIBS="-lcrypto  $LIBS"
6467 cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6469 #include "confdefs.h"
6470
6471 /* Override any gcc2 internal prototype to avoid an error.  */
6472 #ifdef __cplusplus
6473 extern "C"
6474 #endif
6475 /* We use char because int might match the return type of a gcc2
6476    builtin and then its argument prototype would still apply.  */
6477 char CRYPTO_new_ex_data ();
6478 #ifdef F77_DUMMY_MAIN
6479 #  ifdef __cplusplus
6480      extern "C"
6481 #  endif
6482    int F77_DUMMY_MAIN() { return 1; }
6483 #endif
6484 int
6485 main ()
6486 {
6487 CRYPTO_new_ex_data ();
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494   (eval $ac_link) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }; then
6504   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6509 fi
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 LIBS=$ac_check_lib_save_LIBS
6512 fi
6513 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6514 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6515 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6516   cat >>confdefs.h <<_ACEOF
6517 #define HAVE_LIBCRYPTO 1
6518 _ACEOF
6519
6520   LIBS="-lcrypto $LIBS"
6521
6522 else
6523   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6524 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6525    { (exit 1); exit 1; }; }
6526 fi
6527
6528
6529 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6530 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6531 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   ac_check_lib_save_LIBS=$LIBS
6535 LIBS="-lssl  $LIBS"
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6539
6540 /* Override any gcc2 internal prototype to avoid an error.  */
6541 #ifdef __cplusplus
6542 extern "C"
6543 #endif
6544 /* We use char because int might match the return type of a gcc2
6545    builtin and then its argument prototype would still apply.  */
6546 char SSL_library_init ();
6547 #ifdef F77_DUMMY_MAIN
6548 #  ifdef __cplusplus
6549      extern "C"
6550 #  endif
6551    int F77_DUMMY_MAIN() { return 1; }
6552 #endif
6553 int
6554 main ()
6555 {
6556 SSL_library_init ();
6557   ;
6558   return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563   (eval $ac_link) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); } &&
6567          { ac_try='test -s conftest$ac_exeext'
6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569   (eval $ac_try) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; }; then
6573   ac_cv_lib_ssl_SSL_library_init=yes
6574 else
6575   echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6577 ac_cv_lib_ssl_SSL_library_init=no
6578 fi
6579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6580 LIBS=$ac_check_lib_save_LIBS
6581 fi
6582 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6583 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6584 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6585   cat >>confdefs.h <<_ACEOF
6586 #define HAVE_LIBSSL 1
6587 _ACEOF
6588
6589   LIBS="-lssl $LIBS"
6590
6591 else
6592   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6593 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6594    { (exit 1); exit 1; }; }
6595 fi
6596
6597 fi
6598
6599 if test "$with_pam" = yes ; then
6600
6601 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6602 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6603 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   ac_check_lib_save_LIBS=$LIBS
6607 LIBS="-lpam  $LIBS"
6608 cat >conftest.$ac_ext <<_ACEOF
6609 #line $LINENO "configure"
6610 #include "confdefs.h"
6611
6612 /* Override any gcc2 internal prototype to avoid an error.  */
6613 #ifdef __cplusplus
6614 extern "C"
6615 #endif
6616 /* We use char because int might match the return type of a gcc2
6617    builtin and then its argument prototype would still apply.  */
6618 char pam_start ();
6619 #ifdef F77_DUMMY_MAIN
6620 #  ifdef __cplusplus
6621      extern "C"
6622 #  endif
6623    int F77_DUMMY_MAIN() { return 1; }
6624 #endif
6625 int
6626 main ()
6627 {
6628 pam_start ();
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635   (eval $ac_link) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } &&
6639          { ac_try='test -s conftest$ac_exeext'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; }; then
6645   ac_cv_lib_pam_pam_start=yes
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 ac_cv_lib_pam_pam_start=no
6650 fi
6651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6652 LIBS=$ac_check_lib_save_LIBS
6653 fi
6654 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6655 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6656 if test $ac_cv_lib_pam_pam_start = yes; then
6657   cat >>confdefs.h <<_ACEOF
6658 #define HAVE_LIBPAM 1
6659 _ACEOF
6660
6661   LIBS="-lpam $LIBS"
6662
6663 else
6664   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6665 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6666    { (exit 1); exit 1; }; }
6667 fi
6668
6669 fi
6670
6671
6672 ##
6673 ## Header files
6674 ##
6675
6676 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6677 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6678 if test "${ac_cv_header_stdc+set}" = set; then
6679   echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681   cat >conftest.$ac_ext <<_ACEOF
6682 #line $LINENO "configure"
6683 #include "confdefs.h"
6684 #include <stdlib.h>
6685 #include <stdarg.h>
6686 #include <string.h>
6687 #include <float.h>
6688
6689 _ACEOF
6690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6692   ac_status=$?
6693   egrep -v '^ *\+' conftest.er1 >conftest.err
6694   rm -f conftest.er1
6695   cat conftest.err >&5
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); } >/dev/null; then
6698   if test -s conftest.err; then
6699     ac_cpp_err=$ac_c_preproc_warn_flag
6700   else
6701     ac_cpp_err=
6702   fi
6703 else
6704   ac_cpp_err=yes
6705 fi
6706 if test -z "$ac_cpp_err"; then
6707   ac_cv_header_stdc=yes
6708 else
6709   echo "$as_me: failed program was:" >&5
6710   cat conftest.$ac_ext >&5
6711   ac_cv_header_stdc=no
6712 fi
6713 rm -f conftest.err conftest.$ac_ext
6714
6715 if test $ac_cv_header_stdc = yes; then
6716   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717   cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720 #include <string.h>
6721
6722 _ACEOF
6723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6724   egrep "memchr" >/dev/null 2>&1; then
6725   :
6726 else
6727   ac_cv_header_stdc=no
6728 fi
6729 rm -f conftest*
6730
6731 fi
6732
6733 if test $ac_cv_header_stdc = yes; then
6734   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6735   cat >conftest.$ac_ext <<_ACEOF
6736 #line $LINENO "configure"
6737 #include "confdefs.h"
6738 #include <stdlib.h>
6739
6740 _ACEOF
6741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6742   egrep "free" >/dev/null 2>&1; then
6743   :
6744 else
6745   ac_cv_header_stdc=no
6746 fi
6747 rm -f conftest*
6748
6749 fi
6750
6751 if test $ac_cv_header_stdc = yes; then
6752   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6753   if test "$cross_compiling" = yes; then
6754   :
6755 else
6756   cat >conftest.$ac_ext <<_ACEOF
6757 #line $LINENO "configure"
6758 #include "confdefs.h"
6759 #include <ctype.h>
6760 #if ((' ' & 0x0FF) == 0x020)
6761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6763 #else
6764 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6765                      || ('j' <= (c) && (c) <= 'r') \
6766                      || ('s' <= (c) && (c) <= 'z'))
6767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6768 #endif
6769
6770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6771 int
6772 main ()
6773 {
6774   int i;
6775   for (i = 0; i < 256; i++)
6776     if (XOR (islower (i), ISLOWER (i))
6777         || toupper (i) != TOUPPER (i))
6778       exit(2);
6779   exit (0);
6780 }
6781 _ACEOF
6782 rm -f conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784   (eval $ac_link) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789   (eval $ac_try) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); }; }; then
6793   :
6794 else
6795   echo "$as_me: program exited with status $ac_status" >&5
6796 echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6798 ( exit $ac_status )
6799 ac_cv_header_stdc=no
6800 fi
6801 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6802 fi
6803 fi
6804 fi
6805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6806 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6807 if test $ac_cv_header_stdc = yes; then
6808
6809 cat >>confdefs.h <<\_ACEOF
6810 #define STDC_HEADERS 1
6811 _ACEOF
6812
6813 fi
6814
6815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6826                   inttypes.h stdint.h unistd.h
6827 do
6828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6829 echo "$as_me:$LINENO: checking for $ac_header" >&5
6830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837 $ac_includes_default
6838
6839 #include <$ac_header>
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843   (eval $ac_compile) 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); } &&
6847          { ac_try='test -s conftest.$ac_objext'
6848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849   (eval $ac_try) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }; }; then
6853   eval "$as_ac_Header=yes"
6854 else
6855   echo "$as_me: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6857 eval "$as_ac_Header=no"
6858 fi
6859 rm -f conftest.$ac_objext conftest.$ac_ext
6860 fi
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6864   cat >>confdefs.h <<_ACEOF
6865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6867
6868 fi
6869
6870 done
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894 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
6895 do
6896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6898   echo "$as_me:$LINENO: checking for $ac_header" >&5
6899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 fi
6903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6905 else
6906   # Is the header compilable?
6907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6909 cat >conftest.$ac_ext <<_ACEOF
6910 #line $LINENO "configure"
6911 #include "confdefs.h"
6912 $ac_includes_default
6913 #include <$ac_header>
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917   (eval $ac_compile) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -s conftest.$ac_objext'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; }; then
6927   ac_header_compiler=yes
6928 else
6929   echo "$as_me: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6931 ac_header_compiler=no
6932 fi
6933 rm -f conftest.$ac_objext conftest.$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6935 echo "${ECHO_T}$ac_header_compiler" >&6
6936
6937 # Is the header present?
6938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 #include <$ac_header>
6944 _ACEOF
6945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6947   ac_status=$?
6948   egrep -v '^ *\+' conftest.er1 >conftest.err
6949   rm -f conftest.er1
6950   cat conftest.err >&5
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); } >/dev/null; then
6953   if test -s conftest.err; then
6954     ac_cpp_err=$ac_c_preproc_warn_flag
6955   else
6956     ac_cpp_err=
6957   fi
6958 else
6959   ac_cpp_err=yes
6960 fi
6961 if test -z "$ac_cpp_err"; then
6962   ac_header_preproc=yes
6963 else
6964   echo "$as_me: failed program was:" >&5
6965   cat conftest.$ac_ext >&5
6966   ac_header_preproc=no
6967 fi
6968 rm -f conftest.err conftest.$ac_ext
6969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6970 echo "${ECHO_T}$ac_header_preproc" >&6
6971
6972 # So?  What about this header?
6973 case $ac_header_compiler:$ac_header_preproc in
6974   yes:no )
6975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6979   no:yes )
6980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6982     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6986 esac
6987 echo "$as_me:$LINENO: checking for $ac_header" >&5
6988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   eval "$as_ac_Header=$ac_header_preproc"
6993 fi
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6996
6997 fi
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999   cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 _ACEOF
7002
7003 fi
7004
7005 done
7006
7007
7008 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7009 # netinet/in.h is included first.
7010
7011 for ac_header in netinet/in.h
7012 do
7013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7015   echo "$as_me:$LINENO: checking for $ac_header" >&5
7016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7018   echo $ECHO_N "(cached) $ECHO_C" >&6
7019 fi
7020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022 else
7023   # Is the header compilable?
7024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7026 cat >conftest.$ac_ext <<_ACEOF
7027 #line $LINENO "configure"
7028 #include "confdefs.h"
7029 $ac_includes_default
7030 #include <$ac_header>
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034   (eval $ac_compile) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); } &&
7038          { ac_try='test -s conftest.$ac_objext'
7039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040   (eval $ac_try) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044   ac_header_compiler=yes
7045 else
7046   echo "$as_me: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7048 ac_header_compiler=no
7049 fi
7050 rm -f conftest.$ac_objext conftest.$ac_ext
7051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7052 echo "${ECHO_T}$ac_header_compiler" >&6
7053
7054 # Is the header present?
7055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7057 cat >conftest.$ac_ext <<_ACEOF
7058 #line $LINENO "configure"
7059 #include "confdefs.h"
7060 #include <$ac_header>
7061 _ACEOF
7062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7064   ac_status=$?
7065   egrep -v '^ *\+' conftest.er1 >conftest.err
7066   rm -f conftest.er1
7067   cat conftest.err >&5
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } >/dev/null; then
7070   if test -s conftest.err; then
7071     ac_cpp_err=$ac_c_preproc_warn_flag
7072   else
7073     ac_cpp_err=
7074   fi
7075 else
7076   ac_cpp_err=yes
7077 fi
7078 if test -z "$ac_cpp_err"; then
7079   ac_header_preproc=yes
7080 else
7081   echo "$as_me: failed program was:" >&5
7082   cat conftest.$ac_ext >&5
7083   ac_header_preproc=no
7084 fi
7085 rm -f conftest.err conftest.$ac_ext
7086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7087 echo "${ECHO_T}$ac_header_preproc" >&6
7088
7089 # So?  What about this header?
7090 case $ac_header_compiler:$ac_header_preproc in
7091   yes:no )
7092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7096   no:yes )
7097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7103 esac
7104 echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   eval "$as_ac_Header=$ac_header_preproc"
7110 fi
7111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7113
7114 fi
7115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7116   cat >>confdefs.h <<_ACEOF
7117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 _ACEOF
7119
7120 fi
7121
7122 done
7123
7124
7125 for ac_header in netinet/tcp.h
7126 do
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 echo "$as_me:$LINENO: checking for $ac_header" >&5
7129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   cat >conftest.$ac_ext <<_ACEOF
7134 #line $LINENO "configure"
7135 #include "confdefs.h"
7136 $ac_includes_default
7137 #ifdef HAVE_NETINET_IN_H
7138 #include <netinet/in.h>
7139 #endif
7140
7141
7142 #include <$ac_header>
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146   (eval $ac_compile) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } &&
7150          { ac_try='test -s conftest.$ac_objext'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   eval "$as_ac_Header=yes"
7157 else
7158   echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 eval "$as_ac_Header=no"
7161 fi
7162 rm -f conftest.$ac_objext conftest.$ac_ext
7163 fi
7164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7167   cat >>confdefs.h <<_ACEOF
7168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7169 _ACEOF
7170
7171 fi
7172
7173 done
7174
7175
7176 if test "$with_readline" = yes; then
7177
7178 for ac_header in readline/readline.h
7179 do
7180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182   echo "$as_me:$LINENO: checking for $ac_header" >&5
7183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 fi
7187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7189 else
7190   # Is the header compilable?
7191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7196 $ac_includes_default
7197 #include <$ac_header>
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -s conftest.$ac_objext'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   ac_header_compiler=yes
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 ac_header_compiler=no
7216 fi
7217 rm -f conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7219 echo "${ECHO_T}$ac_header_compiler" >&6
7220
7221 # Is the header present?
7222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7227 #include <$ac_header>
7228 _ACEOF
7229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7231   ac_status=$?
7232   egrep -v '^ *\+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } >/dev/null; then
7237   if test -s conftest.err; then
7238     ac_cpp_err=$ac_c_preproc_warn_flag
7239   else
7240     ac_cpp_err=
7241   fi
7242 else
7243   ac_cpp_err=yes
7244 fi
7245 if test -z "$ac_cpp_err"; then
7246   ac_header_preproc=yes
7247 else
7248   echo "$as_me: failed program was:" >&5
7249   cat conftest.$ac_ext >&5
7250   ac_header_preproc=no
7251 fi
7252 rm -f conftest.err conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7254 echo "${ECHO_T}$ac_header_preproc" >&6
7255
7256 # So?  What about this header?
7257 case $ac_header_compiler:$ac_header_preproc in
7258   yes:no )
7259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7263   no:yes )
7264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7266     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7270 esac
7271 echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   eval "$as_ac_Header=$ac_header_preproc"
7277 fi
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7280
7281 fi
7282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7283   cat >>confdefs.h <<_ACEOF
7284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 _ACEOF
7286
7287 else
7288
7289 for ac_header in editline/readline.h
7290 do
7291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7293   echo "$as_me:$LINENO: checking for $ac_header" >&5
7294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 fi
7298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7300 else
7301   # Is the header compilable?
7302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7306 #include "confdefs.h"
7307 $ac_includes_default
7308 #include <$ac_header>
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312   (eval $ac_compile) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } &&
7316          { ac_try='test -s conftest.$ac_objext'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; }; then
7322   ac_header_compiler=yes
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 ac_header_compiler=no
7327 fi
7328 rm -f conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7330 echo "${ECHO_T}$ac_header_compiler" >&6
7331
7332 # Is the header present?
7333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7337 #include "confdefs.h"
7338 #include <$ac_header>
7339 _ACEOF
7340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7342   ac_status=$?
7343   egrep -v '^ *\+' conftest.er1 >conftest.err
7344   rm -f conftest.er1
7345   cat conftest.err >&5
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } >/dev/null; then
7348   if test -s conftest.err; then
7349     ac_cpp_err=$ac_c_preproc_warn_flag
7350   else
7351     ac_cpp_err=
7352   fi
7353 else
7354   ac_cpp_err=yes
7355 fi
7356 if test -z "$ac_cpp_err"; then
7357   ac_header_preproc=yes
7358 else
7359   echo "$as_me: failed program was:" >&5
7360   cat conftest.$ac_ext >&5
7361   ac_header_preproc=no
7362 fi
7363 rm -f conftest.err conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7365 echo "${ECHO_T}$ac_header_preproc" >&6
7366
7367 # So?  What about this header?
7368 case $ac_header_compiler:$ac_header_preproc in
7369   yes:no )
7370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7374   no:yes )
7375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7377     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7381 esac
7382 echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   eval "$as_ac_Header=$ac_header_preproc"
7388 fi
7389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391
7392 fi
7393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7394   cat >>confdefs.h <<_ACEOF
7395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7396 _ACEOF
7397
7398 else
7399
7400 for ac_header in readline.h
7401 do
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404   echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 fi
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 else
7412   # Is the header compilable?
7413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line $LINENO "configure"
7417 #include "confdefs.h"
7418 $ac_includes_default
7419 #include <$ac_header>
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423   (eval $ac_compile) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -s conftest.$ac_objext'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433   ac_header_compiler=yes
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 ac_header_compiler=no
7438 fi
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6
7442
7443 # Is the header present?
7444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7446 cat >conftest.$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 #include "confdefs.h"
7449 #include <$ac_header>
7450 _ACEOF
7451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7453   ac_status=$?
7454   egrep -v '^ *\+' conftest.er1 >conftest.err
7455   rm -f conftest.er1
7456   cat conftest.err >&5
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); } >/dev/null; then
7459   if test -s conftest.err; then
7460     ac_cpp_err=$ac_c_preproc_warn_flag
7461   else
7462     ac_cpp_err=
7463   fi
7464 else
7465   ac_cpp_err=yes
7466 fi
7467 if test -z "$ac_cpp_err"; then
7468   ac_header_preproc=yes
7469 else
7470   echo "$as_me: failed program was:" >&5
7471   cat conftest.$ac_ext >&5
7472   ac_header_preproc=no
7473 fi
7474 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7476 echo "${ECHO_T}$ac_header_preproc" >&6
7477
7478 # So?  What about this header?
7479 case $ac_header_compiler:$ac_header_preproc in
7480   yes:no )
7481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7485   no:yes )
7486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7488     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7492 esac
7493 echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   eval "$as_ac_Header=$ac_header_preproc"
7499 fi
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7502
7503 fi
7504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7505   cat >>confdefs.h <<_ACEOF
7506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 _ACEOF
7508
7509 else
7510   { { echo "$as_me:$LINENO: error: readline header not found
7511 If you have readline already installed, see config.log for details on the
7512 failure.  It is possible the compiler isn't looking in the proper directory.
7513 Use --without-readline to disable readline support." >&5
7514 echo "$as_me: error: readline header not found
7515 If you have readline already installed, see config.log for details on the
7516 failure.  It is possible the compiler isn't looking in the proper directory.
7517 Use --without-readline to disable readline support." >&2;}
7518    { (exit 1); exit 1; }; }
7519 fi
7520
7521 done
7522
7523 fi
7524
7525 done
7526
7527 fi
7528
7529 done
7530
7531
7532 for ac_header in readline/history.h
7533 do
7534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536   echo "$as_me:$LINENO: checking for $ac_header" >&5
7537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 fi
7541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7543 else
7544   # Is the header compilable?
7545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 #include "confdefs.h"
7550 $ac_includes_default
7551 #include <$ac_header>
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555   (eval $ac_compile) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } &&
7559          { ac_try='test -s conftest.$ac_objext'
7560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561   (eval $ac_try) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); }; }; then
7565   ac_header_compiler=yes
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 ac_header_compiler=no
7570 fi
7571 rm -f conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7573 echo "${ECHO_T}$ac_header_compiler" >&6
7574
7575 # Is the header present?
7576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7579 #line $LINENO "configure"
7580 #include "confdefs.h"
7581 #include <$ac_header>
7582 _ACEOF
7583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7585   ac_status=$?
7586   egrep -v '^ *\+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } >/dev/null; then
7591   if test -s conftest.err; then
7592     ac_cpp_err=$ac_c_preproc_warn_flag
7593   else
7594     ac_cpp_err=
7595   fi
7596 else
7597   ac_cpp_err=yes
7598 fi
7599 if test -z "$ac_cpp_err"; then
7600   ac_header_preproc=yes
7601 else
7602   echo "$as_me: failed program was:" >&5
7603   cat conftest.$ac_ext >&5
7604   ac_header_preproc=no
7605 fi
7606 rm -f conftest.err conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7608 echo "${ECHO_T}$ac_header_preproc" >&6
7609
7610 # So?  What about this header?
7611 case $ac_header_compiler:$ac_header_preproc in
7612   yes:no )
7613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7617   no:yes )
7618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7620     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7624 esac
7625 echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   eval "$as_ac_Header=$ac_header_preproc"
7631 fi
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634
7635 fi
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637   cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7639 _ACEOF
7640
7641 else
7642
7643 for ac_header in editline/history.h
7644 do
7645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7647   echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 fi
7652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7654 else
7655   # Is the header compilable?
7656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7659 #line $LINENO "configure"
7660 #include "confdefs.h"
7661 $ac_includes_default
7662 #include <$ac_header>
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7666   (eval $ac_compile) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); } &&
7670          { ac_try='test -s conftest.$ac_objext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   ac_header_compiler=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 ac_header_compiler=no
7681 fi
7682 rm -f conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6
7685
7686 # Is the header present?
7687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7692 #include <$ac_header>
7693 _ACEOF
7694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696   ac_status=$?
7697   egrep -v '^ *\+' conftest.er1 >conftest.err
7698   rm -f conftest.er1
7699   cat conftest.err >&5
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); } >/dev/null; then
7702   if test -s conftest.err; then
7703     ac_cpp_err=$ac_c_preproc_warn_flag
7704   else
7705     ac_cpp_err=
7706   fi
7707 else
7708   ac_cpp_err=yes
7709 fi
7710 if test -z "$ac_cpp_err"; then
7711   ac_header_preproc=yes
7712 else
7713   echo "$as_me: failed program was:" >&5
7714   cat conftest.$ac_ext >&5
7715   ac_header_preproc=no
7716 fi
7717 rm -f conftest.err conftest.$ac_ext
7718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7719 echo "${ECHO_T}$ac_header_preproc" >&6
7720
7721 # So?  What about this header?
7722 case $ac_header_compiler:$ac_header_preproc in
7723   yes:no )
7724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7728   no:yes )
7729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7731     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7735 esac
7736 echo "$as_me:$LINENO: checking for $ac_header" >&5
7737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739   echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741   eval "$as_ac_Header=$ac_header_preproc"
7742 fi
7743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7745
7746 fi
7747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7748   cat >>confdefs.h <<_ACEOF
7749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7750 _ACEOF
7751
7752 else
7753
7754 for ac_header in history.h
7755 do
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758   echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 fi
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 else
7766   # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7774 _ACEOF
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777   (eval $ac_compile) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -s conftest.$ac_objext'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   ac_header_compiler=yes
7788 else
7789   echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7792 fi
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7796
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7804 _ACEOF
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807   ac_status=$?
7808   egrep -v '^ *\+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } >/dev/null; then
7813   if test -s conftest.err; then
7814     ac_cpp_err=$ac_c_preproc_warn_flag
7815   else
7816     ac_cpp_err=
7817   fi
7818 else
7819   ac_cpp_err=yes
7820 fi
7821 if test -z "$ac_cpp_err"; then
7822   ac_header_preproc=yes
7823 else
7824   echo "$as_me: failed program was:" >&5
7825   cat conftest.$ac_ext >&5
7826   ac_header_preproc=no
7827 fi
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7831
7832 # So?  What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7834   yes:no )
7835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839   no:yes )
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 esac
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   eval "$as_ac_Header=$ac_header_preproc"
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856
7857 fi
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859   cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7861 _ACEOF
7862
7863 else
7864   { { echo "$as_me:$LINENO: error: history header not found
7865 If you have readline already installed, see config.log for details on the
7866 failure.  It is possible the compiler isn't looking in the proper directory.
7867 Use --without-readline to disable readline support." >&5
7868 echo "$as_me: error: history header not found
7869 If you have readline already installed, see config.log for details on the
7870 failure.  It is possible the compiler isn't looking in the proper directory.
7871 Use --without-readline to disable readline support." >&2;}
7872    { (exit 1); exit 1; }; }
7873 fi
7874
7875 done
7876
7877 fi
7878
7879 done
7880
7881 fi
7882
7883 done
7884
7885 fi
7886
7887 if test "$with_zlib" = yes; then
7888   if test "${ac_cv_header_zlib_h+set}" = set; then
7889   echo "$as_me:$LINENO: checking for zlib.h" >&5
7890 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7891 if test "${ac_cv_header_zlib_h+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 fi
7894 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7895 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7896 else
7897   # Is the header compilable?
7898 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7899 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7902 #include "confdefs.h"
7903 $ac_includes_default
7904 #include <zlib.h>
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908   (eval $ac_compile) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); } &&
7912          { ac_try='test -s conftest.$ac_objext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   ac_header_compiler=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7922 ac_header_compiler=no
7923 fi
7924 rm -f conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7927
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7930 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 #include "confdefs.h"
7934 #include <zlib.h>
7935 _ACEOF
7936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7938   ac_status=$?
7939   egrep -v '^ *\+' conftest.er1 >conftest.err
7940   rm -f conftest.er1
7941   cat conftest.err >&5
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } >/dev/null; then
7944   if test -s conftest.err; then
7945     ac_cpp_err=$ac_c_preproc_warn_flag
7946   else
7947     ac_cpp_err=
7948   fi
7949 else
7950   ac_cpp_err=yes
7951 fi
7952 if test -z "$ac_cpp_err"; then
7953   ac_header_preproc=yes
7954 else
7955   echo "$as_me: failed program was:" >&5
7956   cat conftest.$ac_ext >&5
7957   ac_header_preproc=no
7958 fi
7959 rm -f conftest.err conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7961 echo "${ECHO_T}$ac_header_preproc" >&6
7962
7963 # So?  What about this header?
7964 case $ac_header_compiler:$ac_header_preproc in
7965   yes:no )
7966     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7967 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7968     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7969 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7970   no:yes )
7971     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7972 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7973     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7974 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7975     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7976 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7977 esac
7978 echo "$as_me:$LINENO: checking for zlib.h" >&5
7979 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7980 if test "${ac_cv_header_zlib_h+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   ac_cv_header_zlib_h=$ac_header_preproc
7984 fi
7985 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7986 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7987
7988 fi
7989 if test $ac_cv_header_zlib_h = yes; then
7990   :
7991 else
7992   { { echo "$as_me:$LINENO: error: zlib header not found
7993 If you have zlib already installed, see config.log for details on the
7994 failure.  It is possible the compiler isn't looking in the proper directory.
7995 Use --without-zlib to disable zlib support." >&5
7996 echo "$as_me: error: zlib header not found
7997 If you have zlib already installed, see config.log for details on the
7998 failure.  It is possible the compiler isn't looking in the proper directory.
7999 Use --without-zlib to disable zlib support." >&2;}
8000    { (exit 1); exit 1; }; }
8001 fi
8002
8003
8004 fi
8005
8006 if test "$with_krb4" = yes ; then
8007   if test "${ac_cv_header_krb_h+set}" = set; then
8008   echo "$as_me:$LINENO: checking for krb.h" >&5
8009 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8010 if test "${ac_cv_header_krb_h+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 fi
8013 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8014 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8015 else
8016   # Is the header compilable?
8017 echo "$as_me:$LINENO: checking krb.h usability" >&5
8018 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 #include "confdefs.h"
8022 $ac_includes_default
8023 #include <krb.h>
8024 _ACEOF
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027   (eval $ac_compile) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -s conftest.$ac_objext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_header_compiler=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_header_compiler=no
8042 fi
8043 rm -f conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8045 echo "${ECHO_T}$ac_header_compiler" >&6
8046
8047 # Is the header present?
8048 echo "$as_me:$LINENO: checking krb.h presence" >&5
8049 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8053 #include <krb.h>
8054 _ACEOF
8055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8057   ac_status=$?
8058   egrep -v '^ *\+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } >/dev/null; then
8063   if test -s conftest.err; then
8064     ac_cpp_err=$ac_c_preproc_warn_flag
8065   else
8066     ac_cpp_err=
8067   fi
8068 else
8069   ac_cpp_err=yes
8070 fi
8071 if test -z "$ac_cpp_err"; then
8072   ac_header_preproc=yes
8073 else
8074   echo "$as_me: failed program was:" >&5
8075   cat conftest.$ac_ext >&5
8076   ac_header_preproc=no
8077 fi
8078 rm -f conftest.err conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8080 echo "${ECHO_T}$ac_header_preproc" >&6
8081
8082 # So?  What about this header?
8083 case $ac_header_compiler:$ac_header_preproc in
8084   yes:no )
8085     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8086 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8087     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8089   no:yes )
8090     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8091 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8092     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8093 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8094     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8095 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8096 esac
8097 echo "$as_me:$LINENO: checking for krb.h" >&5
8098 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8099 if test "${ac_cv_header_krb_h+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   ac_cv_header_krb_h=$ac_header_preproc
8103 fi
8104 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8105 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8106
8107 fi
8108 if test $ac_cv_header_krb_h = yes; then
8109   :
8110 else
8111   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8112 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8113    { (exit 1); exit 1; }; }
8114 fi
8115
8116
8117 fi
8118
8119 if test "$with_krb5" = yes ; then
8120   if test "${ac_cv_header_krb5_h+set}" = set; then
8121   echo "$as_me:$LINENO: checking for krb5.h" >&5
8122 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8123 if test "${ac_cv_header_krb5_h+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 fi
8126 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8127 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8128 else
8129   # Is the header compilable?
8130 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8131 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 #include "confdefs.h"
8135 $ac_includes_default
8136 #include <krb5.h>
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140   (eval $ac_compile) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -s conftest.$ac_objext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   ac_header_compiler=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8154 ac_header_compiler=no
8155 fi
8156 rm -f conftest.$ac_objext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 echo "${ECHO_T}$ac_header_compiler" >&6
8159
8160 # Is the header present?
8161 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8162 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 #include "confdefs.h"
8166 #include <krb5.h>
8167 _ACEOF
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8170   ac_status=$?
8171   egrep -v '^ *\+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } >/dev/null; then
8176   if test -s conftest.err; then
8177     ac_cpp_err=$ac_c_preproc_warn_flag
8178   else
8179     ac_cpp_err=
8180   fi
8181 else
8182   ac_cpp_err=yes
8183 fi
8184 if test -z "$ac_cpp_err"; then
8185   ac_header_preproc=yes
8186 else
8187   echo "$as_me: failed program was:" >&5
8188   cat conftest.$ac_ext >&5
8189   ac_header_preproc=no
8190 fi
8191 rm -f conftest.err conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8194
8195 # So?  What about this header?
8196 case $ac_header_compiler:$ac_header_preproc in
8197   yes:no )
8198     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8202   no:yes )
8203     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8204 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8205     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8206 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8207     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8208 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8209 esac
8210 echo "$as_me:$LINENO: checking for krb5.h" >&5
8211 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8212 if test "${ac_cv_header_krb5_h+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   ac_cv_header_krb5_h=$ac_header_preproc
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8219
8220 fi
8221 if test $ac_cv_header_krb5_h = yes; then
8222   :
8223 else
8224   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8225 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8226    { (exit 1); exit 1; }; }
8227 fi
8228
8229
8230   if test "${ac_cv_header_com_err_h+set}" = set; then
8231   echo "$as_me:$LINENO: checking for com_err.h" >&5
8232 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_com_err_h+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 fi
8236 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8238 else
8239   # Is the header compilable?
8240 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8241 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8246 #include <com_err.h>
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250   (eval $ac_compile) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_header_compiler=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8265 fi
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8269
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8272 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8276 #include <com_err.h>
8277 _ACEOF
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8280   ac_status=$?
8281   egrep -v '^ *\+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } >/dev/null; then
8286   if test -s conftest.err; then
8287     ac_cpp_err=$ac_c_preproc_warn_flag
8288   else
8289     ac_cpp_err=
8290   fi
8291 else
8292   ac_cpp_err=yes
8293 fi
8294 if test -z "$ac_cpp_err"; then
8295   ac_header_preproc=yes
8296 else
8297   echo "$as_me: failed program was:" >&5
8298   cat conftest.$ac_ext >&5
8299   ac_header_preproc=no
8300 fi
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8304
8305 # So?  What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8307   yes:no )
8308     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8312   no:yes )
8313     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8317     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8319 esac
8320 echo "$as_me:$LINENO: checking for com_err.h" >&5
8321 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_com_err_h+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   ac_cv_header_com_err_h=$ac_header_preproc
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8329
8330 fi
8331 if test $ac_cv_header_com_err_h = yes; then
8332   :
8333 else
8334   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8335 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8336    { (exit 1); exit 1; }; }
8337 fi
8338
8339
8340 fi
8341
8342 if test "$with_openssl" = yes ; then
8343   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8344   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8345 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8346 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8350 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8351 else
8352   # Is the header compilable?
8353 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8354 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8358 $ac_includes_default
8359 #include <openssl/ssl.h>
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363   (eval $ac_compile) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -s conftest.$ac_objext'
8368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369   (eval $ac_try) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; }; then
8373   ac_header_compiler=yes
8374 else
8375   echo "$as_me: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8377 ac_header_compiler=no
8378 fi
8379 rm -f conftest.$ac_objext conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8381 echo "${ECHO_T}$ac_header_compiler" >&6
8382
8383 # Is the header present?
8384 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8385 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 #include "confdefs.h"
8389 #include <openssl/ssl.h>
8390 _ACEOF
8391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8392   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8393   ac_status=$?
8394   egrep -v '^ *\+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } >/dev/null; then
8399   if test -s conftest.err; then
8400     ac_cpp_err=$ac_c_preproc_warn_flag
8401   else
8402     ac_cpp_err=
8403   fi
8404 else
8405   ac_cpp_err=yes
8406 fi
8407 if test -z "$ac_cpp_err"; then
8408   ac_header_preproc=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411   cat conftest.$ac_ext >&5
8412   ac_header_preproc=no
8413 fi
8414 rm -f conftest.err conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 echo "${ECHO_T}$ac_header_preproc" >&6
8417
8418 # So?  What about this header?
8419 case $ac_header_compiler:$ac_header_preproc in
8420   yes:no )
8421     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8422 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8424 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8425   no:yes )
8426     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8427 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8428     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8429 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8432 esac
8433 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8434 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8435 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8442
8443 fi
8444 if test $ac_cv_header_openssl_ssl_h = yes; then
8445   :
8446 else
8447   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8448 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8449    { (exit 1); exit 1; }; }
8450 fi
8451
8452
8453   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8454   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8455 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8461 else
8462   # Is the header compilable?
8463 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8464 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8469 #include <openssl/err.h>
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -s conftest.$ac_objext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   ac_header_compiler=yes
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8488 fi
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8492
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8495 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <openssl/err.h>
8500 _ACEOF
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503   ac_status=$?
8504   egrep -v '^ *\+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } >/dev/null; then
8509   if test -s conftest.err; then
8510     ac_cpp_err=$ac_c_preproc_warn_flag
8511   else
8512     ac_cpp_err=
8513   fi
8514 else
8515   ac_cpp_err=yes
8516 fi
8517 if test -z "$ac_cpp_err"; then
8518   ac_header_preproc=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521   cat conftest.$ac_ext >&5
8522   ac_header_preproc=no
8523 fi
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8527
8528 # So?  What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8530   yes:no )
8531     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8535   no:yes )
8536     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8542 esac
8543 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8544 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_cv_header_openssl_err_h=$ac_header_preproc
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8552
8553 fi
8554 if test $ac_cv_header_openssl_err_h = yes; then
8555   :
8556 else
8557   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8558 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8559    { (exit 1); exit 1; }; }
8560 fi
8561
8562
8563 fi
8564
8565 if test "$with_pam" = yes ; then
8566
8567 for ac_header in security/pam_appl.h
8568 do
8569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571   echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 fi
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 else
8579   # Is the header compilable?
8580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 $ac_includes_default
8586 #include <$ac_header>
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590   (eval $ac_compile) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } &&
8594          { ac_try='test -s conftest.$ac_objext'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   ac_header_compiler=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 ac_header_compiler=no
8605 fi
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8609
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 #include "confdefs.h"
8616 #include <$ac_header>
8617 _ACEOF
8618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8620   ac_status=$?
8621   egrep -v '^ *\+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } >/dev/null; then
8626   if test -s conftest.err; then
8627     ac_cpp_err=$ac_c_preproc_warn_flag
8628   else
8629     ac_cpp_err=
8630   fi
8631 else
8632   ac_cpp_err=yes
8633 fi
8634 if test -z "$ac_cpp_err"; then
8635   ac_header_preproc=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638   cat conftest.$ac_ext >&5
8639   ac_header_preproc=no
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8644
8645 # So?  What about this header?
8646 case $ac_header_compiler:$ac_header_preproc in
8647   yes:no )
8648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8652   no:yes )
8653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8659 esac
8660 echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   eval "$as_ac_Header=$ac_header_preproc"
8666 fi
8667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8669
8670 fi
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672   cat >>confdefs.h <<_ACEOF
8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8674 _ACEOF
8675
8676 else
8677
8678 for ac_header in pam/pam_appl.h
8679 do
8680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8682   echo "$as_me:$LINENO: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 fi
8687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8689 else
8690   # Is the header compilable?
8691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8694 #line $LINENO "configure"
8695 #include "confdefs.h"
8696 $ac_includes_default
8697 #include <$ac_header>
8698 _ACEOF
8699 rm -f conftest.$ac_objext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8701   (eval $ac_compile) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -s conftest.$ac_objext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_header_compiler=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_header_compiler=no
8716 fi
8717 rm -f conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8720
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 #include "confdefs.h"
8727 #include <$ac_header>
8728 _ACEOF
8729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731   ac_status=$?
8732   egrep -v '^ *\+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } >/dev/null; then
8737   if test -s conftest.err; then
8738     ac_cpp_err=$ac_c_preproc_warn_flag
8739   else
8740     ac_cpp_err=
8741   fi
8742 else
8743   ac_cpp_err=yes
8744 fi
8745 if test -z "$ac_cpp_err"; then
8746   ac_header_preproc=yes
8747 else
8748   echo "$as_me: failed program was:" >&5
8749   cat conftest.$ac_ext >&5
8750   ac_header_preproc=no
8751 fi
8752 rm -f conftest.err conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8754 echo "${ECHO_T}$ac_header_preproc" >&6
8755
8756 # So?  What about this header?
8757 case $ac_header_compiler:$ac_header_preproc in
8758   yes:no )
8759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8763   no:yes )
8764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8770 esac
8771 echo "$as_me:$LINENO: checking for $ac_header" >&5
8772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   eval "$as_ac_Header=$ac_header_preproc"
8777 fi
8778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8780
8781 fi
8782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8783   cat >>confdefs.h <<_ACEOF
8784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8785 _ACEOF
8786
8787 else
8788   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8789 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8790    { (exit 1); exit 1; }; }
8791 fi
8792
8793 done
8794
8795 fi
8796
8797 done
8798
8799 fi
8800
8801
8802 ##
8803 ## Types, structures, compiler characteristics
8804 ##
8805
8806
8807 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8809 if test "${ac_cv_c_const+set}" = set; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812   cat >conftest.$ac_ext <<_ACEOF
8813 #line $LINENO "configure"
8814 #include "confdefs.h"
8815
8816 #ifdef F77_DUMMY_MAIN
8817 #  ifdef __cplusplus
8818      extern "C"
8819 #  endif
8820    int F77_DUMMY_MAIN() { return 1; }
8821 #endif
8822 int
8823 main ()
8824 {
8825 /* FIXME: Include the comments suggested by Paul. */
8826 #ifndef __cplusplus
8827   /* Ultrix mips cc rejects this.  */
8828   typedef int charset[2];
8829   const charset x;
8830   /* SunOS 4.1.1 cc rejects this.  */
8831   char const *const *ccp;
8832   char **p;
8833   /* NEC SVR4.0.2 mips cc rejects this.  */
8834   struct point {int x, y;};
8835   static struct point const zero = {0,0};
8836   /* AIX XL C 1.02.0.0 rejects this.
8837      It does not let you subtract one const X* pointer from another in
8838      an arm of an if-expression whose if-part is not a constant
8839      expression */
8840   const char *g = "string";
8841   ccp = &g + (g ? g-g : 0);
8842   /* HPUX 7.0 cc rejects these. */
8843   ++ccp;
8844   p = (char**) ccp;
8845   ccp = (char const *const *) p;
8846   { /* SCO 3.2v4 cc rejects this.  */
8847     char *t;
8848     char const *s = 0 ? (char *) 0 : (char const *) 0;
8849
8850     *t++ = 0;
8851   }
8852   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8853     int x[] = {25, 17};
8854     const int *foo = &x[0];
8855     ++foo;
8856   }
8857   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8858     typedef const int *iptr;
8859     iptr p = 0;
8860     ++p;
8861   }
8862   { /* AIX XL C 1.02.0.0 rejects this saying
8863        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8864     struct s { int j; const int *ap[3]; };
8865     struct s *b; b->j = 5;
8866   }
8867   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8868     const int foo = 10;
8869   }
8870 #endif
8871
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878   (eval $ac_compile) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); } &&
8882          { ac_try='test -s conftest.$ac_objext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   ac_cv_c_const=yes
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 ac_cv_c_const=no
8893 fi
8894 rm -f conftest.$ac_objext conftest.$ac_ext
8895 fi
8896 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8897 echo "${ECHO_T}$ac_cv_c_const" >&6
8898 if test $ac_cv_c_const = no; then
8899
8900 cat >>confdefs.h <<\_ACEOF
8901 #define const
8902 _ACEOF
8903
8904 fi
8905
8906 echo "$as_me:$LINENO: checking for inline" >&5
8907 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8908 if test "${ac_cv_c_inline+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   ac_cv_c_inline=no
8912 for ac_kw in inline __inline__ __inline; do
8913   cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8916 #ifndef __cplusplus
8917 static $ac_kw int static_foo () {return 0; }
8918 $ac_kw int foo () {return 0; }
8919 #endif
8920
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924   (eval $ac_compile) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -s conftest.$ac_objext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_cv_c_inline=$ac_kw; break
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 fi
8939 rm -f conftest.$ac_objext conftest.$ac_ext
8940 done
8941
8942 fi
8943 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8944 echo "${ECHO_T}$ac_cv_c_inline" >&6
8945 case $ac_cv_c_inline in
8946   inline | yes) ;;
8947   no)
8948 cat >>confdefs.h <<\_ACEOF
8949 #define inline
8950 _ACEOF
8951  ;;
8952   *)  cat >>confdefs.h <<_ACEOF
8953 #define inline $ac_cv_c_inline
8954 _ACEOF
8955  ;;
8956 esac
8957
8958 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8959 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8960 if test "${ac_cv_c_stringize+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 #include "confdefs.h"
8966 #define x(y) #y
8967
8968 char *s = x(teststring);
8969 _ACEOF
8970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8971   egrep "#teststring" >/dev/null 2>&1; then
8972   ac_cv_c_stringize=no
8973 else
8974   ac_cv_c_stringize=yes
8975 fi
8976 rm -f conftest*
8977
8978 fi
8979 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8980 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8981 if test $ac_cv_c_stringize = yes; then
8982
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_STRINGIZE 1
8985 _ACEOF
8986
8987 fi
8988
8989 echo "$as_me:$LINENO: checking for signed types" >&5
8990 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8991 if test "${pgac_cv_c_signed+set}" = set; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994   cat >conftest.$ac_ext <<_ACEOF
8995 #line $LINENO "configure"
8996 #include "confdefs.h"
8997
8998 #ifdef F77_DUMMY_MAIN
8999 #  ifdef __cplusplus
9000      extern "C"
9001 #  endif
9002    int F77_DUMMY_MAIN() { return 1; }
9003 #endif
9004 int
9005 main ()
9006 {
9007 signed char c; signed short s; signed int i;
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014   (eval $ac_compile) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -s conftest.$ac_objext'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; }; then
9024   pgac_cv_c_signed=yes
9025 else
9026   echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 pgac_cv_c_signed=no
9029 fi
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9031 fi
9032 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9033 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9034 if test x"$pgac_cv_c_signed" = xno ; then
9035
9036 cat >>confdefs.h <<\_ACEOF
9037 #define signed
9038 _ACEOF
9039
9040 fi
9041 echo "$as_me:$LINENO: checking for working volatile" >&5
9042 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9043 if test "${ac_cv_c_volatile+set}" = set; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 #include "confdefs.h"
9049
9050 #ifdef F77_DUMMY_MAIN
9051 #  ifdef __cplusplus
9052      extern "C"
9053 #  endif
9054    int F77_DUMMY_MAIN() { return 1; }
9055 #endif
9056 int
9057 main ()
9058 {
9059
9060 volatile int x;
9061 int * volatile y;
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068   (eval $ac_compile) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -s conftest.$ac_objext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_cv_c_volatile=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9082 ac_cv_c_volatile=no
9083 fi
9084 rm -f conftest.$ac_objext conftest.$ac_ext
9085 fi
9086 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9087 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9088 if test $ac_cv_c_volatile = no; then
9089
9090 cat >>confdefs.h <<\_ACEOF
9091 #define volatile
9092 _ACEOF
9093
9094 fi
9095
9096 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9097 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9098 if test "${ac_cv_struct_tm+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   cat >conftest.$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9104 #include <sys/types.h>
9105 #include <time.h>
9106
9107 #ifdef F77_DUMMY_MAIN
9108 #  ifdef __cplusplus
9109      extern "C"
9110 #  endif
9111    int F77_DUMMY_MAIN() { return 1; }
9112 #endif
9113 int
9114 main ()
9115 {
9116 struct tm *tp; tp->tm_sec;
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123   (eval $ac_compile) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -s conftest.$ac_objext'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   ac_cv_struct_tm=time.h
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9137 ac_cv_struct_tm=sys/time.h
9138 fi
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9140 fi
9141 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9142 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9143 if test $ac_cv_struct_tm = sys/time.h; then
9144
9145 cat >>confdefs.h <<\_ACEOF
9146 #define TM_IN_SYS_TIME 1
9147 _ACEOF
9148
9149 fi
9150
9151 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9152 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9153 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156   cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 #include "confdefs.h"
9159 #include <sys/types.h>
9160 #include <$ac_cv_struct_tm>
9161
9162
9163 #ifdef F77_DUMMY_MAIN
9164 #  ifdef __cplusplus
9165      extern "C"
9166 #  endif
9167    int F77_DUMMY_MAIN() { return 1; }
9168 #endif
9169 int
9170 main ()
9171 {
9172 static struct tm ac_aggr;
9173 if (ac_aggr.tm_zone)
9174 return 0;
9175   ;
9176   return 0;
9177 }
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181   (eval $ac_compile) 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } &&
9185          { ac_try='test -s conftest.$ac_objext'
9186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187   (eval $ac_try) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); }; }; then
9191   ac_cv_member_struct_tm_tm_zone=yes
9192 else
9193   echo "$as_me: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 ac_cv_member_struct_tm_tm_zone=no
9196 fi
9197 rm -f conftest.$ac_objext conftest.$ac_ext
9198 fi
9199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9200 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9201 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9202
9203 cat >>confdefs.h <<_ACEOF
9204 #define HAVE_STRUCT_TM_TM_ZONE 1
9205 _ACEOF
9206
9207
9208 fi
9209
9210 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9211
9212 cat >>confdefs.h <<\_ACEOF
9213 #define HAVE_TM_ZONE 1
9214 _ACEOF
9215
9216 else
9217   echo "$as_me:$LINENO: checking for tzname" >&5
9218 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9219 if test "${ac_cv_var_tzname+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   cat >conftest.$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9224 #include "confdefs.h"
9225 #include <time.h>
9226 #ifndef tzname /* For SGI.  */
9227 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9228 #endif
9229
9230 #ifdef F77_DUMMY_MAIN
9231 #  ifdef __cplusplus
9232      extern "C"
9233 #  endif
9234    int F77_DUMMY_MAIN() { return 1; }
9235 #endif
9236 int
9237 main ()
9238 {
9239 atoi(*tzname);
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246   (eval $ac_link) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -s conftest$ac_exeext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   ac_cv_var_tzname=yes
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_cv_var_tzname=no
9261 fi
9262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9263 fi
9264 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9265 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9266   if test $ac_cv_var_tzname = yes; then
9267
9268 cat >>confdefs.h <<\_ACEOF
9269 #define HAVE_TZNAME 1
9270 _ACEOF
9271
9272   fi
9273 fi
9274
9275 echo "$as_me:$LINENO: checking for union semun" >&5
9276 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9277 if test "${ac_cv_type_union_semun+set}" = set; then
9278   echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280   cat >conftest.$ac_ext <<_ACEOF
9281 #line $LINENO "configure"
9282 #include "confdefs.h"
9283 #include <sys/types.h>
9284 #include <sys/ipc.h>
9285 #include <sys/sem.h>
9286
9287 #ifdef F77_DUMMY_MAIN
9288 #  ifdef __cplusplus
9289      extern "C"
9290 #  endif
9291    int F77_DUMMY_MAIN() { return 1; }
9292 #endif
9293 int
9294 main ()
9295 {
9296 if ((union semun *) 0)
9297   return 0;
9298 if (sizeof (union semun))
9299   return 0;
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9306   (eval $ac_compile) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); } &&
9310          { ac_try='test -s conftest.$ac_objext'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; }; then
9316   ac_cv_type_union_semun=yes
9317 else
9318   echo "$as_me: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9320 ac_cv_type_union_semun=no
9321 fi
9322 rm -f conftest.$ac_objext conftest.$ac_ext
9323 fi
9324 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9325 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9326 if test $ac_cv_type_union_semun = yes; then
9327
9328 cat >>confdefs.h <<_ACEOF
9329 #define HAVE_UNION_SEMUN 1
9330 _ACEOF
9331
9332
9333 fi
9334
9335 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9336 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9337 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 #include "confdefs.h"
9343 #include <sys/types.h>
9344 #ifdef HAVE_SYS_UN_H
9345 #include <sys/un.h>
9346 #endif
9347
9348
9349 #ifdef F77_DUMMY_MAIN
9350 #  ifdef __cplusplus
9351      extern "C"
9352 #  endif
9353    int F77_DUMMY_MAIN() { return 1; }
9354 #endif
9355 int
9356 main ()
9357 {
9358 if ((struct sockaddr_un *) 0)
9359   return 0;
9360 if (sizeof (struct sockaddr_un))
9361   return 0;
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368   (eval $ac_compile) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -s conftest.$ac_objext'
9373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374   (eval $ac_try) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; }; then
9378   ac_cv_type_struct_sockaddr_un=yes
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 ac_cv_type_struct_sockaddr_un=no
9383 fi
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9387 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9388 if test $ac_cv_type_struct_sockaddr_un = yes; then
9389
9390 cat >>confdefs.h <<_ACEOF
9391 #define HAVE_STRUCT_SOCKADDR_UN 1
9392 _ACEOF
9393
9394
9395 fi
9396
9397
9398 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9399 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9400 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 #include <sys/param.h>
9407 #include <sys/socket.h>
9408 #include <sys/ucred.h>
9409
9410 #ifdef F77_DUMMY_MAIN
9411 #  ifdef __cplusplus
9412      extern "C"
9413 #  endif
9414    int F77_DUMMY_MAIN() { return 1; }
9415 #endif
9416 int
9417 main ()
9418 {
9419 if ((struct cmsgcred *) 0)
9420   return 0;
9421 if (sizeof (struct cmsgcred))
9422   return 0;
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429   (eval $ac_compile) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); } &&
9433          { ac_try='test -s conftest.$ac_objext'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; }; then
9439   ac_cv_type_struct_cmsgcred=yes
9440 else
9441   echo "$as_me: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 ac_cv_type_struct_cmsgcred=no
9444 fi
9445 rm -f conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9448 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9449 if test $ac_cv_type_struct_cmsgcred = yes; then
9450
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE_STRUCT_CMSGCRED 1
9453 _ACEOF
9454
9455
9456 fi
9457 echo "$as_me:$LINENO: checking for struct fcred" >&5
9458 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9459 if test "${ac_cv_type_struct_fcred+set}" = set; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   cat >conftest.$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9464 #include "confdefs.h"
9465 #include <sys/param.h>
9466 #include <sys/socket.h>
9467 #include <sys/ucred.h>
9468
9469 #ifdef F77_DUMMY_MAIN
9470 #  ifdef __cplusplus
9471      extern "C"
9472 #  endif
9473    int F77_DUMMY_MAIN() { return 1; }
9474 #endif
9475 int
9476 main ()
9477 {
9478 if ((struct fcred *) 0)
9479   return 0;
9480 if (sizeof (struct fcred))
9481   return 0;
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488   (eval $ac_compile) 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -s conftest.$ac_objext'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   ac_cv_type_struct_fcred=yes
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_cv_type_struct_fcred=no
9503 fi
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9505 fi
9506 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9507 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9508 if test $ac_cv_type_struct_fcred = yes; then
9509
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_STRUCT_FCRED 1
9512 _ACEOF
9513
9514
9515 fi
9516 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9517 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9518 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9523 #include "confdefs.h"
9524 #include <sys/param.h>
9525 #include <sys/socket.h>
9526 #include <sys/ucred.h>
9527
9528 #ifdef F77_DUMMY_MAIN
9529 #  ifdef __cplusplus
9530      extern "C"
9531 #  endif
9532    int F77_DUMMY_MAIN() { return 1; }
9533 #endif
9534 int
9535 main ()
9536 {
9537 if ((struct sockcred *) 0)
9538   return 0;
9539 if (sizeof (struct sockcred))
9540   return 0;
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547   (eval $ac_compile) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -s conftest.$ac_objext'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; }; then
9557   ac_cv_type_struct_sockcred=yes
9558 else
9559   echo "$as_me: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 ac_cv_type_struct_sockcred=no
9562 fi
9563 rm -f conftest.$ac_objext conftest.$ac_ext
9564 fi
9565 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9566 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9567 if test $ac_cv_type_struct_sockcred = yes; then
9568
9569 cat >>confdefs.h <<_ACEOF
9570 #define HAVE_STRUCT_SOCKCRED 1
9571 _ACEOF
9572
9573
9574 fi
9575
9576
9577 if test "$with_zlib" = yes; then
9578   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9579   # did not).  While we could work around the lack of z_streamp, it
9580   # seems unwise to encourage people to use such old zlib versions...
9581   echo "$as_me:$LINENO: checking for z_streamp" >&5
9582 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9583 if test "${ac_cv_type_z_streamp+set}" = set; then
9584   echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586   cat >conftest.$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9589 #include <zlib.h>
9590
9591 #ifdef F77_DUMMY_MAIN
9592 #  ifdef __cplusplus
9593      extern "C"
9594 #  endif
9595    int F77_DUMMY_MAIN() { return 1; }
9596 #endif
9597 int
9598 main ()
9599 {
9600 if ((z_streamp *) 0)
9601   return 0;
9602 if (sizeof (z_streamp))
9603   return 0;
9604   ;
9605   return 0;
9606 }
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610   (eval $ac_compile) 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } &&
9614          { ac_try='test -s conftest.$ac_objext'
9615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616   (eval $ac_try) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; }; then
9620   ac_cv_type_z_streamp=yes
9621 else
9622   echo "$as_me: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9624 ac_cv_type_z_streamp=no
9625 fi
9626 rm -f conftest.$ac_objext conftest.$ac_ext
9627 fi
9628 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9629 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9630 if test $ac_cv_type_z_streamp = yes; then
9631   :
9632 else
9633   { { echo "$as_me:$LINENO: error: zlib version is too old
9634 Use --without-zlib to disable zlib support." >&5
9635 echo "$as_me: error: zlib version is too old
9636 Use --without-zlib to disable zlib support." >&2;}
9637    { (exit 1); exit 1; }; }
9638 fi
9639
9640 fi
9641
9642 if test "$with_krb5" = yes; then
9643 # Check for differences between MIT and Heimdal (KTH) releases
9644   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9645 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9646 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   cat >conftest.$ac_ext <<_ACEOF
9650 #line $LINENO "configure"
9651 #include "confdefs.h"
9652 #include <krb5.h>
9653
9654 #ifdef F77_DUMMY_MAIN
9655 #  ifdef __cplusplus
9656      extern "C"
9657 #  endif
9658    int F77_DUMMY_MAIN() { return 1; }
9659 #endif
9660 int
9661 main ()
9662 {
9663 static krb5_ticket ac_aggr;
9664 if (ac_aggr.enc_part2)
9665 return 0;
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672   (eval $ac_compile) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } &&
9676          { ac_try='test -s conftest.$ac_objext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   ac_cv_member_krb5_ticket_enc_part2=yes
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9686 ac_cv_member_krb5_ticket_enc_part2=no
9687 fi
9688 rm -f conftest.$ac_objext conftest.$ac_ext
9689 fi
9690 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9691 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9692 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9693
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_KRB5_TICKET_ENC_PART2 1
9696 _ACEOF
9697
9698
9699 else
9700   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9701 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9702 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   cat >conftest.$ac_ext <<_ACEOF
9706 #line $LINENO "configure"
9707 #include "confdefs.h"
9708 #include <krb5.h>
9709
9710 #ifdef F77_DUMMY_MAIN
9711 #  ifdef __cplusplus
9712      extern "C"
9713 #  endif
9714    int F77_DUMMY_MAIN() { return 1; }
9715 #endif
9716 int
9717 main ()
9718 {
9719 static krb5_ticket ac_aggr;
9720 if (ac_aggr.client)
9721 return 0;
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728   (eval $ac_compile) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -s conftest.$ac_objext'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_cv_member_krb5_ticket_client=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 ac_cv_member_krb5_ticket_client=no
9743 fi
9744 rm -f conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9747 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9748 if test $ac_cv_member_krb5_ticket_client = yes; then
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define HAVE_KRB5_TICKET_CLIENT 1
9752 _ACEOF
9753
9754
9755 else
9756   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9757 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9758    { (exit 1); exit 1; }; }
9759 fi
9760
9761 fi
9762
9763   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9764 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9765 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   cat >conftest.$ac_ext <<_ACEOF
9769 #line $LINENO "configure"
9770 #include "confdefs.h"
9771 #include <krb5.h>
9772
9773 #ifdef F77_DUMMY_MAIN
9774 #  ifdef __cplusplus
9775      extern "C"
9776 #  endif
9777    int F77_DUMMY_MAIN() { return 1; }
9778 #endif
9779 int
9780 main ()
9781 {
9782 static krb5_error ac_aggr;
9783 if (ac_aggr.text.data)
9784 return 0;
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791   (eval $ac_compile) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } &&
9795          { ac_try='test -s conftest.$ac_objext'
9796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797   (eval $ac_try) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; }; then
9801   ac_cv_member_krb5_error_text_data=yes
9802 else
9803   echo "$as_me: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 ac_cv_member_krb5_error_text_data=no
9806 fi
9807 rm -f conftest.$ac_objext conftest.$ac_ext
9808 fi
9809 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9810 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9811 if test $ac_cv_member_krb5_error_text_data = yes; then
9812
9813 cat >>confdefs.h <<_ACEOF
9814 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9815 _ACEOF
9816
9817
9818 else
9819   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9820 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9821 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   cat >conftest.$ac_ext <<_ACEOF
9825 #line $LINENO "configure"
9826 #include "confdefs.h"
9827 #include <krb5.h>
9828
9829 #ifdef F77_DUMMY_MAIN
9830 #  ifdef __cplusplus
9831      extern "C"
9832 #  endif
9833    int F77_DUMMY_MAIN() { return 1; }
9834 #endif
9835 int
9836 main ()
9837 {
9838 static krb5_error ac_aggr;
9839 if (ac_aggr.e_data)
9840 return 0;
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9847   (eval $ac_compile) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } &&
9851          { ac_try='test -s conftest.$ac_objext'
9852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853   (eval $ac_try) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; }; then
9857   ac_cv_member_krb5_error_e_data=yes
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 ac_cv_member_krb5_error_e_data=no
9862 fi
9863 rm -f conftest.$ac_objext conftest.$ac_ext
9864 fi
9865 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9866 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9867 if test $ac_cv_member_krb5_error_e_data = yes; then
9868
9869 cat >>confdefs.h <<_ACEOF
9870 #define HAVE_KRB5_ERROR_E_DATA 1
9871 _ACEOF
9872
9873
9874 else
9875   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9876 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9877    { (exit 1); exit 1; }; }
9878 fi
9879
9880 fi
9881
9882 fi
9883
9884
9885 ##
9886 ## Functions, global variables
9887 ##
9888
9889 echo "$as_me:$LINENO: checking for int timezone" >&5
9890 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9891 if test "${pgac_cv_var_int_timezone+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 #include "confdefs.h"
9897 #include <time.h>
9898 int res;
9899 #ifdef F77_DUMMY_MAIN
9900 #  ifdef __cplusplus
9901      extern "C"
9902 #  endif
9903    int F77_DUMMY_MAIN() { return 1; }
9904 #endif
9905 int
9906 main ()
9907 {
9908 res = timezone / 60;
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915   (eval $ac_link) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   pgac_cv_var_int_timezone=yes
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 pgac_cv_var_int_timezone=no
9930 fi
9931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9932 fi
9933 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9934 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9935 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9936
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_INT_TIMEZONE
9939 _ACEOF
9940
9941 fi
9942 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9943 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9944  if test "${ac_cv_func_accept_arg1+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947    if test "${ac_cv_func_accept_arg2+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950     if test "${ac_cv_func_accept_arg3+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9954      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9955       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9956        cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9958 #include "confdefs.h"
9959 #ifdef HAVE_SYS_TYPES_H
9960 #include <sys/types.h>
9961 #endif
9962 #ifdef HAVE_SYS_SOCKET_H
9963 #include <sys/socket.h>
9964 #endif
9965 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9966 #ifdef F77_DUMMY_MAIN
9967 #  ifdef __cplusplus
9968      extern "C"
9969 #  endif
9970    int F77_DUMMY_MAIN() { return 1; }
9971 #endif
9972 int
9973 main ()
9974 {
9975
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982   (eval $ac_compile) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); } &&
9986          { ac_try='test -s conftest.$ac_objext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_not_found=no; break 3
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9996 ac_not_found=yes
9997 fi
9998 rm -f conftest.$ac_objext conftest.$ac_ext
9999       done
10000      done
10001     done
10002     if test "$ac_not_found" = yes; then
10003       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10004 echo "$as_me: error: could not determine argument types" >&2;}
10005    { (exit 1); exit 1; }; }
10006     fi
10007     if test "$ac_cv_func_accept_arg3" = "void"; then
10008       ac_cv_func_accept_arg3=int
10009     fi
10010
10011 fi
10012
10013 fi
10014
10015 fi
10016  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10017 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10021 _ACEOF
10022
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10026 _ACEOF
10027
10028
10029 cat >>confdefs.h <<_ACEOF
10030 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10031 _ACEOF
10032
10033
10034 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10035 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10036 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   cat >conftest.$ac_ext <<_ACEOF
10040 #line $LINENO "configure"
10041 #include "confdefs.h"
10042 #include <sys/time.h>
10043 #ifdef F77_DUMMY_MAIN
10044 #  ifdef __cplusplus
10045      extern "C"
10046 #  endif
10047    int F77_DUMMY_MAIN() { return 1; }
10048 #endif
10049 int
10050 main ()
10051 {
10052 struct timeval *tp;
10053 struct timezone *tzp;
10054 gettimeofday(tp,tzp);
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061   (eval $ac_compile) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -s conftest.$ac_objext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   pgac_cv_func_gettimeofday_1arg=no
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 pgac_cv_func_gettimeofday_1arg=yes
10076 fi
10077 rm -f conftest.$ac_objext conftest.$ac_ext
10078 fi
10079 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10080 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10081 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define GETTIMEOFDAY_1ARG
10085 _ACEOF
10086
10087 fi
10088
10089 # SunOS doesn't handle negative byte comparisons properly with +/- return
10090 echo "$as_me:$LINENO: checking for working memcmp" >&5
10091 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10092 if test "${ac_cv_func_memcmp_working+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   if test "$cross_compiling" = yes; then
10096   ac_cv_func_memcmp_working=no
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 #include "confdefs.h"
10101
10102 #ifdef F77_DUMMY_MAIN
10103 #  ifdef __cplusplus
10104      extern "C"
10105 #  endif
10106    int F77_DUMMY_MAIN() { return 1; }
10107 #endif
10108 int
10109 main ()
10110 {
10111
10112   /* Some versions of memcmp are not 8-bit clean.  */
10113   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10114   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10115     exit (1);
10116
10117   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10118      or more and with at least one buffer not starting on a 4-byte boundary.
10119      William Lewis provided this test program.   */
10120   {
10121     char foo[21];
10122     char bar[21];
10123     int i;
10124     for (i = 0; i < 4; i++)
10125       {
10126         char *a = foo + i;
10127         char *b = bar + i;
10128         strcpy (a, "--------01111111");
10129         strcpy (b, "--------10000000");
10130         if (memcmp (a, b, 16) >= 0)
10131           exit (1);
10132       }
10133     exit (0);
10134   }
10135
10136   ;
10137   return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142   (eval $ac_link) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   ac_cv_func_memcmp_working=yes
10152 else
10153   echo "$as_me: program exited with status $ac_status" >&5
10154 echo "$as_me: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10156 ( exit $ac_status )
10157 ac_cv_func_memcmp_working=no
10158 fi
10159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10160 fi
10161 fi
10162 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10163 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10164 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid
10183 do
10184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10185 echo "$as_me:$LINENO: checking for $ac_func" >&5
10186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10187 if eval "test \"\${$as_ac_var+set}\" = set"; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190   cat >conftest.$ac_ext <<_ACEOF
10191 #line $LINENO "configure"
10192 #include "confdefs.h"
10193 /* System header to define __stub macros and hopefully few prototypes,
10194     which can conflict with char $ac_func (); below.  */
10195 #include <assert.h>
10196 /* Override any gcc2 internal prototype to avoid an error.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 /* We use char because int might match the return type of a gcc2
10201    builtin and then its argument prototype would still apply.  */
10202 char $ac_func ();
10203 char (*f) ();
10204
10205 #ifdef F77_DUMMY_MAIN
10206 #  ifdef __cplusplus
10207      extern "C"
10208 #  endif
10209    int F77_DUMMY_MAIN() { return 1; }
10210 #endif
10211 int
10212 main ()
10213 {
10214 /* The GNU C library defines this for functions which it implements
10215     to always fail with ENOSYS.  Some functions are actually named
10216     something starting with __ and the normal name is an alias.  */
10217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10218 choke me
10219 #else
10220 f = $ac_func;
10221 #endif
10222
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229   (eval $ac_link) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } &&
10233          { ac_try='test -s conftest$ac_exeext'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; }; then
10239   eval "$as_ac_var=yes"
10240 else
10241   echo "$as_me: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10243 eval "$as_ac_var=no"
10244 fi
10245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10246 fi
10247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10249 if test `eval echo '${'$as_ac_var'}'` = yes; then
10250   cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10252 _ACEOF
10253
10254 fi
10255 done
10256
10257
10258 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10259 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10260 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 #include "confdefs.h"
10266 #include <unistd.h>
10267
10268 #ifdef F77_DUMMY_MAIN
10269 #  ifdef __cplusplus
10270      extern "C"
10271 #  endif
10272    int F77_DUMMY_MAIN() { return 1; }
10273 #endif
10274 int
10275 main ()
10276 {
10277 #ifndef fdatasync
10278   char *p = (char *) fdatasync;
10279 #endif
10280
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287   (eval $ac_compile) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } &&
10291          { ac_try='test -s conftest.$ac_objext'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; }; then
10297   ac_cv_have_decl_fdatasync=yes
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 ac_cv_have_decl_fdatasync=no
10302 fi
10303 rm -f conftest.$ac_objext conftest.$ac_ext
10304 fi
10305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10306 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10307 if test $ac_cv_have_decl_fdatasync = yes; then
10308
10309 cat >>confdefs.h <<_ACEOF
10310 #define HAVE_DECL_FDATASYNC 1
10311 _ACEOF
10312
10313
10314 else
10315   cat >>confdefs.h <<_ACEOF
10316 #define HAVE_DECL_FDATASYNC 0
10317 _ACEOF
10318
10319
10320 fi
10321
10322
10323
10324 # This exports HAVE_IPV6 to both C files and Makefiles
10325 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
10326 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
10327 if test "${ac_cv_func_getaddrinfo+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 /* System header to define __stub macros and hopefully few prototypes,
10334     which can conflict with char getaddrinfo (); below.  */
10335 #include <assert.h>
10336 /* Override any gcc2 internal prototype to avoid an error.  */
10337 #ifdef __cplusplus
10338 extern "C"
10339 #endif
10340 /* We use char because int might match the return type of a gcc2
10341    builtin and then its argument prototype would still apply.  */
10342 char getaddrinfo ();
10343 char (*f) ();
10344
10345 #ifdef F77_DUMMY_MAIN
10346 #  ifdef __cplusplus
10347      extern "C"
10348 #  endif
10349    int F77_DUMMY_MAIN() { return 1; }
10350 #endif
10351 int
10352 main ()
10353 {
10354 /* The GNU C library defines this for functions which it implements
10355     to always fail with ENOSYS.  Some functions are actually named
10356     something starting with __ and the normal name is an alias.  */
10357 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
10358 choke me
10359 #else
10360 f = getaddrinfo;
10361 #endif
10362
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369   (eval $ac_link) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } &&
10373          { ac_try='test -s conftest$ac_exeext'
10374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375   (eval $ac_try) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); }; }; then
10379   ac_cv_func_getaddrinfo=yes
10380 else
10381   echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_cv_func_getaddrinfo=no
10384 fi
10385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10386 fi
10387 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
10388 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
10389 if test $ac_cv_func_getaddrinfo = yes; then
10390   echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10391 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10392 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   cat >conftest.$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10397 #include "confdefs.h"
10398 $ac_includes_default
10399 #include <netinet/in.h>
10400
10401 #ifdef F77_DUMMY_MAIN
10402 #  ifdef __cplusplus
10403      extern "C"
10404 #  endif
10405    int F77_DUMMY_MAIN() { return 1; }
10406 #endif
10407 int
10408 main ()
10409 {
10410 if ((struct sockaddr_in6 *) 0)
10411   return 0;
10412 if (sizeof (struct sockaddr_in6))
10413   return 0;
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420   (eval $ac_compile) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -s conftest.$ac_objext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   ac_cv_type_struct_sockaddr_in6=yes
10431 else
10432   echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 ac_cv_type_struct_sockaddr_in6=no
10435 fi
10436 rm -f conftest.$ac_objext conftest.$ac_ext
10437 fi
10438 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
10439 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
10440 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10441   HAVE_IPV6="yes"; cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_IPV6 1
10443 _ACEOF
10444
10445 fi
10446
10447 fi
10448
10449
10450
10451 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10452 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10453 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 #include "confdefs.h"
10459 #include <machine/vmparam.h>
10460 #include <sys/exec.h>
10461
10462 #ifdef F77_DUMMY_MAIN
10463 #  ifdef __cplusplus
10464      extern "C"
10465 #  endif
10466    int F77_DUMMY_MAIN() { return 1; }
10467 #endif
10468 int
10469 main ()
10470 {
10471 PS_STRINGS->ps_nargvstr = 1;
10472 PS_STRINGS->ps_argvstr = "foo";
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479   (eval $ac_link) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -s conftest$ac_exeext'
10484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; }; then
10489   pgac_cv_var_PS_STRINGS=yes
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 pgac_cv_var_PS_STRINGS=no
10494 fi
10495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10496 fi
10497 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10498 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10499 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_PS_STRINGS
10503 _ACEOF
10504
10505 fi
10506
10507
10508 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10509 # is missing.  Yes, there are machines that have only one.  We may
10510 # also decide to use snprintf.c if snprintf() is present but does not
10511 # have working "long long int" support -- see below.
10512
10513 pgac_need_repl_snprintf=no
10514
10515 for ac_func in snprintf
10516 do
10517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10518 echo "$as_me:$LINENO: checking for $ac_func" >&5
10519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10520 if eval "test \"\${$as_ac_var+set}\" = set"; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   cat >conftest.$ac_ext <<_ACEOF
10524 #line $LINENO "configure"
10525 #include "confdefs.h"
10526 /* System header to define __stub macros and hopefully few prototypes,
10527     which can conflict with char $ac_func (); below.  */
10528 #include <assert.h>
10529 /* Override any gcc2 internal prototype to avoid an error.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 /* We use char because int might match the return type of a gcc2
10534    builtin and then its argument prototype would still apply.  */
10535 char $ac_func ();
10536 char (*f) ();
10537
10538 #ifdef F77_DUMMY_MAIN
10539 #  ifdef __cplusplus
10540      extern "C"
10541 #  endif
10542    int F77_DUMMY_MAIN() { return 1; }
10543 #endif
10544 int
10545 main ()
10546 {
10547 /* The GNU C library defines this for functions which it implements
10548     to always fail with ENOSYS.  Some functions are actually named
10549     something starting with __ and the normal name is an alias.  */
10550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10551 choke me
10552 #else
10553 f = $ac_func;
10554 #endif
10555
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562   (eval $ac_link) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -s conftest$ac_exeext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   eval "$as_ac_var=yes"
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10577 fi
10578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10579 fi
10580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10582 if test `eval echo '${'$as_ac_var'}'` = yes; then
10583   cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10585 _ACEOF
10586
10587 else
10588   pgac_need_repl_snprintf=yes
10589 fi
10590 done
10591
10592
10593 for ac_func in vsnprintf
10594 do
10595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 echo "$as_me:$LINENO: checking for $ac_func" >&5
10597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_var+set}\" = set"; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 #include "confdefs.h"
10604 /* System header to define __stub macros and hopefully few prototypes,
10605     which can conflict with char $ac_func (); below.  */
10606 #include <assert.h>
10607 /* Override any gcc2 internal prototype to avoid an error.  */
10608 #ifdef __cplusplus
10609 extern "C"
10610 #endif
10611 /* We use char because int might match the return type of a gcc2
10612    builtin and then its argument prototype would still apply.  */
10613 char $ac_func ();
10614 char (*f) ();
10615
10616 #ifdef F77_DUMMY_MAIN
10617 #  ifdef __cplusplus
10618      extern "C"
10619 #  endif
10620    int F77_DUMMY_MAIN() { return 1; }
10621 #endif
10622 int
10623 main ()
10624 {
10625 /* The GNU C library defines this for functions which it implements
10626     to always fail with ENOSYS.  Some functions are actually named
10627     something starting with __ and the normal name is an alias.  */
10628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10629 choke me
10630 #else
10631 f = $ac_func;
10632 #endif
10633
10634   ;
10635   return 0;
10636 }
10637 _ACEOF
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10640   (eval $ac_link) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } &&
10644          { ac_try='test -s conftest$ac_exeext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650   eval "$as_ac_var=yes"
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 eval "$as_ac_var=no"
10655 fi
10656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10657 fi
10658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10660 if test `eval echo '${'$as_ac_var'}'` = yes; then
10661   cat >>confdefs.h <<_ACEOF
10662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10663 _ACEOF
10664
10665 else
10666   pgac_need_repl_snprintf=yes
10667 fi
10668 done
10669
10670
10671
10672 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10673 # include/c.h will provide declarations.  Note this is a separate test
10674 # from whether the functions exist in the C library --- there are
10675 # systems that have the functions but don't bother to declare them :-(
10676
10677 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10678 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10679 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10685 $ac_includes_default
10686 #ifdef F77_DUMMY_MAIN
10687 #  ifdef __cplusplus
10688      extern "C"
10689 #  endif
10690    int F77_DUMMY_MAIN() { return 1; }
10691 #endif
10692 int
10693 main ()
10694 {
10695 #ifndef snprintf
10696   char *p = (char *) snprintf;
10697 #endif
10698
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705   (eval $ac_compile) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } &&
10709          { ac_try='test -s conftest.$ac_objext'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; }; then
10715   ac_cv_have_decl_snprintf=yes
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 ac_cv_have_decl_snprintf=no
10720 fi
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10722 fi
10723 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10724 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10725 if test $ac_cv_have_decl_snprintf = yes; then
10726
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_DECL_SNPRINTF 1
10729 _ACEOF
10730
10731
10732 else
10733   cat >>confdefs.h <<_ACEOF
10734 #define HAVE_DECL_SNPRINTF 0
10735 _ACEOF
10736
10737
10738 fi
10739 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10740 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10741 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10742   echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744   cat >conftest.$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10746 #include "confdefs.h"
10747 $ac_includes_default
10748 #ifdef F77_DUMMY_MAIN
10749 #  ifdef __cplusplus
10750      extern "C"
10751 #  endif
10752    int F77_DUMMY_MAIN() { return 1; }
10753 #endif
10754 int
10755 main ()
10756 {
10757 #ifndef vsnprintf
10758   char *p = (char *) vsnprintf;
10759 #endif
10760
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767   (eval $ac_compile) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } &&
10771          { ac_try='test -s conftest.$ac_objext'
10772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773   (eval $ac_try) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; }; then
10777   ac_cv_have_decl_vsnprintf=yes
10778 else
10779   echo "$as_me: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10781 ac_cv_have_decl_vsnprintf=no
10782 fi
10783 rm -f conftest.$ac_objext conftest.$ac_ext
10784 fi
10785 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10786 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10787 if test $ac_cv_have_decl_vsnprintf = yes; then
10788
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_DECL_VSNPRINTF 1
10791 _ACEOF
10792
10793
10794 else
10795   cat >>confdefs.h <<_ACEOF
10796 #define HAVE_DECL_VSNPRINTF 0
10797 _ACEOF
10798
10799
10800 fi
10801
10802
10803
10804
10805 # do this one the hard way in case isinf() is a macro
10806 echo "$as_me:$LINENO: checking for isinf" >&5
10807 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10808 if test "${ac_cv_func_isinf+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10814 #include <math.h>
10815
10816 #ifdef F77_DUMMY_MAIN
10817 #  ifdef __cplusplus
10818      extern "C"
10819 #  endif
10820    int F77_DUMMY_MAIN() { return 1; }
10821 #endif
10822 int
10823 main ()
10824 {
10825 double x = 0.0; int res = isinf(x);
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832   (eval $ac_link) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } &&
10836          { ac_try='test -s conftest$ac_exeext'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; }; then
10842   ac_cv_func_isinf=yes
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 ac_cv_func_isinf=no
10847 fi
10848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10849 fi
10850 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10851 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10852
10853 if test $ac_cv_func_isinf = yes ; then
10854
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_ISINF 1
10857 _ACEOF
10858
10859 else
10860   LIBOBJS="$LIBOBJS isinf.$ac_objext"
10861   # Look for a way to implement a substitute for isinf()
10862
10863
10864
10865
10866 for ac_func in fpclass fp_class fp_class_d class
10867 do
10868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10869 echo "$as_me:$LINENO: checking for $ac_func" >&5
10870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10871 if eval "test \"\${$as_ac_var+set}\" = set"; then
10872   echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874   cat >conftest.$ac_ext <<_ACEOF
10875 #line $LINENO "configure"
10876 #include "confdefs.h"
10877 /* System header to define __stub macros and hopefully few prototypes,
10878     which can conflict with char $ac_func (); below.  */
10879 #include <assert.h>
10880 /* Override any gcc2 internal prototype to avoid an error.  */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 /* We use char because int might match the return type of a gcc2
10885    builtin and then its argument prototype would still apply.  */
10886 char $ac_func ();
10887 char (*f) ();
10888
10889 #ifdef F77_DUMMY_MAIN
10890 #  ifdef __cplusplus
10891      extern "C"
10892 #  endif
10893    int F77_DUMMY_MAIN() { return 1; }
10894 #endif
10895 int
10896 main ()
10897 {
10898 /* The GNU C library defines this for functions which it implements
10899     to always fail with ENOSYS.  Some functions are actually named
10900     something starting with __ and the normal name is an alias.  */
10901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10902 choke me
10903 #else
10904 f = $ac_func;
10905 #endif
10906
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913   (eval $ac_link) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   eval "$as_ac_var=yes"
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10927 eval "$as_ac_var=no"
10928 fi
10929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10930 fi
10931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10933 if test `eval echo '${'$as_ac_var'}'` = yes; then
10934   cat >>confdefs.h <<_ACEOF
10935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 _ACEOF
10937  break
10938 fi
10939 done
10940
10941 fi
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955 for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10956 do
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10960 if eval "test \"\${$as_ac_var+set}\" = set"; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 #include "confdefs.h"
10966 /* System header to define __stub macros and hopefully few prototypes,
10967     which can conflict with char $ac_func (); below.  */
10968 #include <assert.h>
10969 /* Override any gcc2 internal prototype to avoid an error.  */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 /* We use char because int might match the return type of a gcc2
10974    builtin and then its argument prototype would still apply.  */
10975 char $ac_func ();
10976 char (*f) ();
10977
10978 #ifdef F77_DUMMY_MAIN
10979 #  ifdef __cplusplus
10980      extern "C"
10981 #  endif
10982    int F77_DUMMY_MAIN() { return 1; }
10983 #endif
10984 int
10985 main ()
10986 {
10987 /* The GNU C library defines this for functions which it implements
10988     to always fail with ENOSYS.  Some functions are actually named
10989     something starting with __ and the normal name is an alias.  */
10990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10991 choke me
10992 #else
10993 f = $ac_func;
10994 #endif
10995
10996   ;
10997   return 0;
10998 }
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002   (eval $ac_link) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } &&
11006          { ac_try='test -s conftest$ac_exeext'
11007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008   (eval $ac_try) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; }; then
11012   eval "$as_ac_var=yes"
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11016 eval "$as_ac_var=no"
11017 fi
11018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11019 fi
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023   cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 _ACEOF
11026
11027 else
11028   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11029 fi
11030 done
11031
11032
11033
11034 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11035 # We override the previous test that said fseeko/ftello didn't exist
11036 # OS tests are also done in include/c.h and port/fseeko.c
11037 case $host_os in bsdi*|netbsd*)
11038 ac_cv_func_fseeko=yes
11039 esac
11040
11041 # Solaris has a very slow qsort in certain cases, so we replace it.
11042 case $host_os in
11043   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11044 esac
11045
11046 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11047 # this hackery with HPUXMATHLIB allows us to cope.
11048 HPUXMATHLIB=""
11049 case $host_cpu in
11050   hppa1.1)
11051         if test -r /lib/pa1.1/libm.a ; then
11052             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11053         fi ;;
11054 esac
11055
11056
11057
11058 for ac_func in rint
11059 do
11060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11061 echo "$as_me:$LINENO: checking for $ac_func" >&5
11062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11063 if eval "test \"\${$as_ac_var+set}\" = set"; then
11064   echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066   cat >conftest.$ac_ext <<_ACEOF
11067 #line $LINENO "configure"
11068 #include "confdefs.h"
11069 /* System header to define __stub macros and hopefully few prototypes,
11070     which can conflict with char $ac_func (); below.  */
11071 #include <assert.h>
11072 /* Override any gcc2 internal prototype to avoid an error.  */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 /* We use char because int might match the return type of a gcc2
11077    builtin and then its argument prototype would still apply.  */
11078 char $ac_func ();
11079 char (*f) ();
11080
11081 #ifdef F77_DUMMY_MAIN
11082 #  ifdef __cplusplus
11083      extern "C"
11084 #  endif
11085    int F77_DUMMY_MAIN() { return 1; }
11086 #endif
11087 int
11088 main ()
11089 {
11090 /* The GNU C library defines this for functions which it implements
11091     to always fail with ENOSYS.  Some functions are actually named
11092     something starting with __ and the normal name is an alias.  */
11093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11094 choke me
11095 #else
11096 f = $ac_func;
11097 #endif
11098
11099   ;
11100   return 0;
11101 }
11102 _ACEOF
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105   (eval $ac_link) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } &&
11109          { ac_try='test -s conftest$ac_exeext'
11110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111   (eval $ac_try) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }; then
11115   eval "$as_ac_var=yes"
11116 else
11117   echo "$as_me: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11119 eval "$as_ac_var=no"
11120 fi
11121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11122 fi
11123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126   cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11129
11130 else
11131   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11132 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11133 if test "${ac_cv_lib_m_rint+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   ac_check_lib_save_LIBS=$LIBS
11137 LIBS="-lm $HPUXMATHLIB $LIBS"
11138 cat >conftest.$ac_ext <<_ACEOF
11139 #line $LINENO "configure"
11140 #include "confdefs.h"
11141
11142 /* Override any gcc2 internal prototype to avoid an error.  */
11143 #ifdef __cplusplus
11144 extern "C"
11145 #endif
11146 /* We use char because int might match the return type of a gcc2
11147    builtin and then its argument prototype would still apply.  */
11148 char rint ();
11149 #ifdef F77_DUMMY_MAIN
11150 #  ifdef __cplusplus
11151      extern "C"
11152 #  endif
11153    int F77_DUMMY_MAIN() { return 1; }
11154 #endif
11155 int
11156 main ()
11157 {
11158 rint ();
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165   (eval $ac_link) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } &&
11169          { ac_try='test -s conftest$ac_exeext'
11170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171   (eval $ac_try) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; }; then
11175   ac_cv_lib_m_rint=yes
11176 else
11177   echo "$as_me: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 ac_cv_lib_m_rint=no
11180 fi
11181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11183 fi
11184 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11185 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11186 if test $ac_cv_lib_m_rint = yes; then
11187   cat >>confdefs.h <<\_ACEOF
11188 #define HAVE_RINT 1
11189 _ACEOF
11190
11191 fi
11192
11193 fi
11194 done
11195
11196
11197
11198 if test "$with_readline" = yes; then
11199   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11200 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11202 #line $LINENO "configure"
11203 #include "confdefs.h"
11204 #include <stdio.h>
11205 #ifdef HAVE_READLINE_READLINE_H
11206 # include <readline/readline.h>
11207 #elif defined(HAVE_READLINE_H)
11208 # include <readline.h>
11209 #endif
11210
11211 #ifdef F77_DUMMY_MAIN
11212 #  ifdef __cplusplus
11213      extern "C"
11214 #  endif
11215    int F77_DUMMY_MAIN() { return 1; }
11216 #endif
11217 int
11218 main ()
11219 {
11220 rl_completion_append_character = 'x';
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227   (eval $ac_link) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } &&
11231          { ac_try='test -s conftest$ac_exeext'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   echo "$as_me:$LINENO: result: yes" >&5
11238 echo "${ECHO_T}yes" >&6
11239
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11242 _ACEOF
11243
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11247 echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6
11249 fi
11250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11251
11252
11253 for ac_func in rl_completion_matches rl_filename_completion_function
11254 do
11255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11256 echo "$as_me:$LINENO: checking for $ac_func" >&5
11257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_var+set}\" = set"; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
11263 #include "confdefs.h"
11264 /* System header to define __stub macros and hopefully few prototypes,
11265     which can conflict with char $ac_func (); below.  */
11266 #include <assert.h>
11267 /* Override any gcc2 internal prototype to avoid an error.  */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 /* We use char because int might match the return type of a gcc2
11272    builtin and then its argument prototype would still apply.  */
11273 char $ac_func ();
11274 char (*f) ();
11275
11276 #ifdef F77_DUMMY_MAIN
11277 #  ifdef __cplusplus
11278      extern "C"
11279 #  endif
11280    int F77_DUMMY_MAIN() { return 1; }
11281 #endif
11282 int
11283 main ()
11284 {
11285 /* The GNU C library defines this for functions which it implements
11286     to always fail with ENOSYS.  Some functions are actually named
11287     something starting with __ and the normal name is an alias.  */
11288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11289 choke me
11290 #else
11291 f = $ac_func;
11292 #endif
11293
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300   (eval $ac_link) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -s conftest$ac_exeext'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   eval "$as_ac_var=yes"
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 eval "$as_ac_var=no"
11315 fi
11316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11317 fi
11318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11320 if test `eval echo '${'$as_ac_var'}'` = yes; then
11321   cat >>confdefs.h <<_ACEOF
11322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11323 _ACEOF
11324
11325 fi
11326 done
11327
11328
11329 for ac_func in replace_history_entry
11330 do
11331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11334 if eval "test \"\${$as_ac_var+set}\" = set"; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11339 #include "confdefs.h"
11340 /* System header to define __stub macros and hopefully few prototypes,
11341     which can conflict with char $ac_func (); below.  */
11342 #include <assert.h>
11343 /* Override any gcc2 internal prototype to avoid an error.  */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 /* We use char because int might match the return type of a gcc2
11348    builtin and then its argument prototype would still apply.  */
11349 char $ac_func ();
11350 char (*f) ();
11351
11352 #ifdef F77_DUMMY_MAIN
11353 #  ifdef __cplusplus
11354      extern "C"
11355 #  endif
11356    int F77_DUMMY_MAIN() { return 1; }
11357 #endif
11358 int
11359 main ()
11360 {
11361 /* The GNU C library defines this for functions which it implements
11362     to always fail with ENOSYS.  Some functions are actually named
11363     something starting with __ and the normal name is an alias.  */
11364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11365 choke me
11366 #else
11367 f = $ac_func;
11368 #endif
11369
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376   (eval $ac_link) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } &&
11380          { ac_try='test -s conftest$ac_exeext'
11381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382   (eval $ac_try) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; }; then
11386   eval "$as_ac_var=yes"
11387 else
11388   echo "$as_me: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11390 eval "$as_ac_var=no"
11391 fi
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11393 fi
11394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11396 if test `eval echo '${'$as_ac_var'}'` = yes; then
11397   cat >>confdefs.h <<_ACEOF
11398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11399 _ACEOF
11400
11401 fi
11402 done
11403
11404 fi
11405
11406
11407 echo "$as_me:$LINENO: checking for finite" >&5
11408 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 #include "confdefs.h"
11412 #include <math.h>
11413 #ifdef F77_DUMMY_MAIN
11414 #  ifdef __cplusplus
11415      extern "C"
11416 #  endif
11417    int F77_DUMMY_MAIN() { return 1; }
11418 #endif
11419 int
11420 main ()
11421 {
11422 int dummy=finite(1.0);
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429   (eval $ac_link) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -s conftest$ac_exeext'
11434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435   (eval $ac_try) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }; then
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_FINITE 1
11442 _ACEOF
11443
11444 echo "$as_me:$LINENO: result: yes" >&5
11445 echo "${ECHO_T}yes" >&6
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6
11451 fi
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453
11454 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11455 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11458 #include "confdefs.h"
11459 #include <setjmp.h>
11460 #ifdef F77_DUMMY_MAIN
11461 #  ifdef __cplusplus
11462      extern "C"
11463 #  endif
11464    int F77_DUMMY_MAIN() { return 1; }
11465 #endif
11466 int
11467 main ()
11468 {
11469 sigjmp_buf x; sigsetjmp(x, 1);
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11476   (eval $ac_link) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); } &&
11480          { ac_try='test -s conftest$ac_exeext'
11481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482   (eval $ac_try) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); }; }; then
11486
11487 cat >>confdefs.h <<\_ACEOF
11488 #define HAVE_SIGSETJMP 1
11489 _ACEOF
11490
11491 echo "$as_me:$LINENO: result: yes" >&5
11492 echo "${ECHO_T}yes" >&6
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 echo "$as_me:$LINENO: result: no" >&5
11497 echo "${ECHO_T}no" >&6
11498 fi
11499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11500
11501 echo "$as_me:$LINENO: checking for syslog" >&5
11502 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11503 if test "${ac_cv_func_syslog+set}" = set; then
11504   echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506   cat >conftest.$ac_ext <<_ACEOF
11507 #line $LINENO "configure"
11508 #include "confdefs.h"
11509 /* System header to define __stub macros and hopefully few prototypes,
11510     which can conflict with char syslog (); below.  */
11511 #include <assert.h>
11512 /* Override any gcc2 internal prototype to avoid an error.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 /* We use char because int might match the return type of a gcc2
11517    builtin and then its argument prototype would still apply.  */
11518 char syslog ();
11519 char (*f) ();
11520
11521 #ifdef F77_DUMMY_MAIN
11522 #  ifdef __cplusplus
11523      extern "C"
11524 #  endif
11525    int F77_DUMMY_MAIN() { return 1; }
11526 #endif
11527 int
11528 main ()
11529 {
11530 /* The GNU C library defines this for functions which it implements
11531     to always fail with ENOSYS.  Some functions are actually named
11532     something starting with __ and the normal name is an alias.  */
11533 #if defined (__stub_syslog) || defined (__stub___syslog)
11534 choke me
11535 #else
11536 f = syslog;
11537 #endif
11538
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545   (eval $ac_link) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); } &&
11549          { ac_try='test -s conftest$ac_exeext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_cv_func_syslog=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 ac_cv_func_syslog=no
11560 fi
11561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11562 fi
11563 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11564 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11565 if test $ac_cv_func_syslog = yes; then
11566   if test "${ac_cv_header_syslog_h+set}" = set; then
11567   echo "$as_me:$LINENO: checking for syslog.h" >&5
11568 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11569 if test "${ac_cv_header_syslog_h+set}" = set; then
11570   echo $ECHO_N "(cached) $ECHO_C" >&6
11571 fi
11572 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11573 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11574 else
11575   # Is the header compilable?
11576 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11577 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11578 cat >conftest.$ac_ext <<_ACEOF
11579 #line $LINENO "configure"
11580 #include "confdefs.h"
11581 $ac_includes_default
11582 #include <syslog.h>
11583 _ACEOF
11584 rm -f conftest.$ac_objext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11586   (eval $ac_compile) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } &&
11590          { ac_try='test -s conftest.$ac_objext'
11591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592   (eval $ac_try) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; }; then
11596   ac_header_compiler=yes
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11600 ac_header_compiler=no
11601 fi
11602 rm -f conftest.$ac_objext conftest.$ac_ext
11603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11604 echo "${ECHO_T}$ac_header_compiler" >&6
11605
11606 # Is the header present?
11607 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11608 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612 #include <syslog.h>
11613 _ACEOF
11614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11615   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11616   ac_status=$?
11617   egrep -v '^ *\+' conftest.er1 >conftest.err
11618   rm -f conftest.er1
11619   cat conftest.err >&5
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } >/dev/null; then
11622   if test -s conftest.err; then
11623     ac_cpp_err=$ac_c_preproc_warn_flag
11624   else
11625     ac_cpp_err=
11626   fi
11627 else
11628   ac_cpp_err=yes
11629 fi
11630 if test -z "$ac_cpp_err"; then
11631   ac_header_preproc=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634   cat conftest.$ac_ext >&5
11635   ac_header_preproc=no
11636 fi
11637 rm -f conftest.err conftest.$ac_ext
11638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11639 echo "${ECHO_T}$ac_header_preproc" >&6
11640
11641 # So?  What about this header?
11642 case $ac_header_compiler:$ac_header_preproc in
11643   yes:no )
11644     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11645 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11646     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11647 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11648   no:yes )
11649     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11650 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11651     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11652 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11653     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11654 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11655 esac
11656 echo "$as_me:$LINENO: checking for syslog.h" >&5
11657 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11658 if test "${ac_cv_header_syslog_h+set}" = set; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   ac_cv_header_syslog_h=$ac_header_preproc
11662 fi
11663 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11664 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11665
11666 fi
11667 if test $ac_cv_header_syslog_h = yes; then
11668   cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_SYSLOG 1
11670 _ACEOF
11671
11672 fi
11673
11674
11675 fi
11676
11677
11678 echo "$as_me:$LINENO: checking for optreset" >&5
11679 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11680 if test "${pgac_cv_var_int_optreset+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11686 #include <unistd.h>
11687 #ifdef F77_DUMMY_MAIN
11688 #  ifdef __cplusplus
11689      extern "C"
11690 #  endif
11691    int F77_DUMMY_MAIN() { return 1; }
11692 #endif
11693 int
11694 main ()
11695 {
11696 extern int optreset; optreset = 1;
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703   (eval $ac_link) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -s conftest$ac_exeext'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   pgac_cv_var_int_optreset=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 pgac_cv_var_int_optreset=no
11718 fi
11719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11722 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11723 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11724
11725 cat >>confdefs.h <<\_ACEOF
11726 #define HAVE_INT_OPTRESET 1
11727 _ACEOF
11728
11729 fi
11730
11731
11732
11733 for ac_func in strtoll strtoq
11734 do
11735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11736 echo "$as_me:$LINENO: checking for $ac_func" >&5
11737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11738 if eval "test \"\${$as_ac_var+set}\" = set"; then
11739   echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741   cat >conftest.$ac_ext <<_ACEOF
11742 #line $LINENO "configure"
11743 #include "confdefs.h"
11744 /* System header to define __stub macros and hopefully few prototypes,
11745     which can conflict with char $ac_func (); below.  */
11746 #include <assert.h>
11747 /* Override any gcc2 internal prototype to avoid an error.  */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 /* We use char because int might match the return type of a gcc2
11752    builtin and then its argument prototype would still apply.  */
11753 char $ac_func ();
11754 char (*f) ();
11755
11756 #ifdef F77_DUMMY_MAIN
11757 #  ifdef __cplusplus
11758      extern "C"
11759 #  endif
11760    int F77_DUMMY_MAIN() { return 1; }
11761 #endif
11762 int
11763 main ()
11764 {
11765 /* The GNU C library defines this for functions which it implements
11766     to always fail with ENOSYS.  Some functions are actually named
11767     something starting with __ and the normal name is an alias.  */
11768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11769 choke me
11770 #else
11771 f = $ac_func;
11772 #endif
11773
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780   (eval $ac_link) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   eval "$as_ac_var=yes"
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11794 eval "$as_ac_var=no"
11795 fi
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11797 fi
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801   cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11803 _ACEOF
11804  break
11805 fi
11806 done
11807
11808
11809
11810 for ac_func in strtoull strtouq
11811 do
11812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11813 echo "$as_me:$LINENO: checking for $ac_func" >&5
11814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11815 if eval "test \"\${$as_ac_var+set}\" = set"; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   cat >conftest.$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11820 #include "confdefs.h"
11821 /* System header to define __stub macros and hopefully few prototypes,
11822     which can conflict with char $ac_func (); below.  */
11823 #include <assert.h>
11824 /* Override any gcc2 internal prototype to avoid an error.  */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829    builtin and then its argument prototype would still apply.  */
11830 char $ac_func ();
11831 char (*f) ();
11832
11833 #ifdef F77_DUMMY_MAIN
11834 #  ifdef __cplusplus
11835      extern "C"
11836 #  endif
11837    int F77_DUMMY_MAIN() { return 1; }
11838 #endif
11839 int
11840 main ()
11841 {
11842 /* The GNU C library defines this for functions which it implements
11843     to always fail with ENOSYS.  Some functions are actually named
11844     something starting with __ and the normal name is an alias.  */
11845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11846 choke me
11847 #else
11848 f = $ac_func;
11849 #endif
11850
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857   (eval $ac_link) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } &&
11861          { ac_try='test -s conftest$ac_exeext'
11862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863   (eval $ac_try) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; }; then
11867   eval "$as_ac_var=yes"
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 eval "$as_ac_var=no"
11872 fi
11873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11874 fi
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11877 if test `eval echo '${'$as_ac_var'}'` = yes; then
11878   cat >>confdefs.h <<_ACEOF
11879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11880 _ACEOF
11881  break
11882 fi
11883 done
11884
11885
11886 # Check for one of atexit() or on_exit()
11887
11888 for ac_func in atexit
11889 do
11890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11891 echo "$as_me:$LINENO: checking for $ac_func" >&5
11892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11893 if eval "test \"\${$as_ac_var+set}\" = set"; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11899 /* System header to define __stub macros and hopefully few prototypes,
11900     which can conflict with char $ac_func (); below.  */
11901 #include <assert.h>
11902 /* Override any gcc2 internal prototype to avoid an error.  */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 /* We use char because int might match the return type of a gcc2
11907    builtin and then its argument prototype would still apply.  */
11908 char $ac_func ();
11909 char (*f) ();
11910
11911 #ifdef F77_DUMMY_MAIN
11912 #  ifdef __cplusplus
11913      extern "C"
11914 #  endif
11915    int F77_DUMMY_MAIN() { return 1; }
11916 #endif
11917 int
11918 main ()
11919 {
11920 /* The GNU C library defines this for functions which it implements
11921     to always fail with ENOSYS.  Some functions are actually named
11922     something starting with __ and the normal name is an alias.  */
11923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11924 choke me
11925 #else
11926 f = $ac_func;
11927 #endif
11928
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935   (eval $ac_link) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -s conftest$ac_exeext'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; }; then
11945   eval "$as_ac_var=yes"
11946 else
11947   echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 eval "$as_ac_var=no"
11950 fi
11951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11955 if test `eval echo '${'$as_ac_var'}'` = yes; then
11956   cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 _ACEOF
11959
11960 else
11961
11962 for ac_func in on_exit
11963 do
11964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 echo "$as_me:$LINENO: checking for $ac_func" >&5
11966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11967 if eval "test \"\${$as_ac_var+set}\" = set"; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 #line $LINENO "configure"
11972 #include "confdefs.h"
11973 /* System header to define __stub macros and hopefully few prototypes,
11974     which can conflict with char $ac_func (); below.  */
11975 #include <assert.h>
11976 /* Override any gcc2 internal prototype to avoid an error.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 /* We use char because int might match the return type of a gcc2
11981    builtin and then its argument prototype would still apply.  */
11982 char $ac_func ();
11983 char (*f) ();
11984
11985 #ifdef F77_DUMMY_MAIN
11986 #  ifdef __cplusplus
11987      extern "C"
11988 #  endif
11989    int F77_DUMMY_MAIN() { return 1; }
11990 #endif
11991 int
11992 main ()
11993 {
11994 /* The GNU C library defines this for functions which it implements
11995     to always fail with ENOSYS.  Some functions are actually named
11996     something starting with __ and the normal name is an alias.  */
11997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11998 choke me
11999 #else
12000 f = $ac_func;
12001 #endif
12002
12003   ;
12004   return 0;
12005 }
12006 _ACEOF
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009   (eval $ac_link) 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } &&
12013          { ac_try='test -s conftest$ac_exeext'
12014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015   (eval $ac_try) 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; }; then
12019   eval "$as_ac_var=yes"
12020 else
12021   echo "$as_me: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12023 eval "$as_ac_var=no"
12024 fi
12025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12026 fi
12027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12029 if test `eval echo '${'$as_ac_var'}'` = yes; then
12030   cat >>confdefs.h <<_ACEOF
12031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12032 _ACEOF
12033
12034 else
12035   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12036 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12037    { (exit 1); exit 1; }; }
12038 fi
12039 done
12040
12041 fi
12042 done
12043
12044
12045 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12046 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12047 if test "${ac_cv_sys_largefile_source+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   while :; do
12051   ac_cv_sys_largefile_source=no
12052   cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12055 #include <stdio.h>
12056 #ifdef F77_DUMMY_MAIN
12057 #  ifdef __cplusplus
12058      extern "C"
12059 #  endif
12060    int F77_DUMMY_MAIN() { return 1; }
12061 #endif
12062 int
12063 main ()
12064 {
12065 return !fseeko;
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072   (eval $ac_compile) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -s conftest.$ac_objext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   break
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 fi
12087 rm -f conftest.$ac_objext conftest.$ac_ext
12088   cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091 #define _LARGEFILE_SOURCE 1
12092 #include <stdio.h>
12093 #ifdef F77_DUMMY_MAIN
12094 #  ifdef __cplusplus
12095      extern "C"
12096 #  endif
12097    int F77_DUMMY_MAIN() { return 1; }
12098 #endif
12099 int
12100 main ()
12101 {
12102 return !fseeko;
12103   ;
12104   return 0;
12105 }
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109   (eval $ac_compile) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } &&
12113          { ac_try='test -s conftest.$ac_objext'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; }; then
12119   ac_cv_sys_largefile_source=1; break
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12123 fi
12124 rm -f conftest.$ac_objext conftest.$ac_ext
12125   break
12126 done
12127 fi
12128 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12129 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12130 if test "$ac_cv_sys_largefile_source" != no; then
12131
12132 cat >>confdefs.h <<_ACEOF
12133 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12134 _ACEOF
12135
12136 fi
12137 rm -f conftest*
12138
12139 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12140 # in glibc 2.1.3, but that breaks too many other things.
12141 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12142 echo "$as_me:$LINENO: checking for fseeko" >&5
12143 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12144 if test "${ac_cv_func_fseeko+set}" = set; then
12145   echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147   cat >conftest.$ac_ext <<_ACEOF
12148 #line $LINENO "configure"
12149 #include "confdefs.h"
12150 #include <stdio.h>
12151 #ifdef F77_DUMMY_MAIN
12152 #  ifdef __cplusplus
12153      extern "C"
12154 #  endif
12155    int F77_DUMMY_MAIN() { return 1; }
12156 #endif
12157 int
12158 main ()
12159 {
12160 return fseeko && fseeko (stdin, 0, 0);
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167   (eval $ac_link) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -s conftest$ac_exeext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   ac_cv_func_fseeko=yes
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 cat conftest.$ac_ext >&5
12181 ac_cv_func_fseeko=no
12182 fi
12183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12184 fi
12185 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12186 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12187 if test $ac_cv_func_fseeko = yes; then
12188
12189 cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_FSEEKO 1
12191 _ACEOF
12192
12193 fi
12194
12195
12196
12197 # This test makes sure that run tests work at all.  Sometimes a shared
12198 # library is found by the linker, but the runtime linker can't find it.
12199 # This check should come after all modifications of compiler or linker
12200 # variables, and before any other run tests.
12201 echo "$as_me:$LINENO: checking test program" >&5
12202 echo $ECHO_N "checking test program... $ECHO_C" >&6
12203 if test "$cross_compiling" = yes; then
12204   echo "$as_me:$LINENO: result: cross-compiling" >&5
12205 echo "${ECHO_T}cross-compiling" >&6
12206 else
12207   cat >conftest.$ac_ext <<_ACEOF
12208 #line $LINENO "configure"
12209 #include "confdefs.h"
12210 int main() { return 0; }
12211 _ACEOF
12212 rm -f conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214   (eval $ac_link) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   echo "$as_me:$LINENO: result: ok" >&5
12224 echo "${ECHO_T}ok" >&6
12225 else
12226   echo "$as_me: program exited with status $ac_status" >&5
12227 echo "$as_me: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 ( exit $ac_status )
12230 echo "$as_me:$LINENO: result: failed" >&5
12231 echo "${ECHO_T}failed" >&6
12232 { { echo "$as_me:$LINENO: error:
12233 *** Could not execute a simple test program.  This may be a problem
12234 *** related to locating shared libraries.  Check the file 'config.log'
12235 *** for the exact reason." >&5
12236 echo "$as_me: error:
12237 *** Could not execute a simple test program.  This may be a problem
12238 *** related to locating shared libraries.  Check the file 'config.log'
12239 *** for the exact reason." >&2;}
12240    { (exit 1); exit 1; }; }
12241 fi
12242 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12243 fi
12244
12245
12246
12247 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12248 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12249 if test "${pgac_cv_type_long_int_64+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   if test "$cross_compiling" = yes; then
12253   # If cross-compiling, check the size reported by the compiler and
12254 # trust that the arithmetic works.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 #line $LINENO "configure"
12257 #include "confdefs.h"
12258
12259 #ifdef F77_DUMMY_MAIN
12260 #  ifdef __cplusplus
12261      extern "C"
12262 #  endif
12263    int F77_DUMMY_MAIN() { return 1; }
12264 #endif
12265 int
12266 main ()
12267 {
12268 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12269 test_array [0] = 0
12270
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277   (eval $ac_compile) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } &&
12281          { ac_try='test -s conftest.$ac_objext'
12282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283   (eval $ac_try) 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); }; }; then
12287   pgac_cv_type_long_int_64=yes
12288 else
12289   echo "$as_me: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 pgac_cv_type_long_int_64=no
12292 fi
12293 rm -f conftest.$ac_objext conftest.$ac_ext
12294 else
12295   cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12297 #include "confdefs.h"
12298 typedef long int int64;
12299
12300 /*
12301  * These are globals to discourage the compiler from folding all the
12302  * arithmetic tests down to compile-time constants.
12303  */
12304 int64 a = 20000001;
12305 int64 b = 40000005;
12306
12307 int does_int64_work()
12308 {
12309   int64 c,d;
12310
12311   if (sizeof(int64) != 8)
12312     return 0;                   /* definitely not the right size */
12313
12314   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12315   c = a * b;
12316   d = (c + b) / b;
12317   if (d != a+1)
12318     return 0;
12319   return 1;
12320 }
12321 main() {
12322   exit(! does_int64_work());
12323 }
12324 _ACEOF
12325 rm -f conftest$ac_exeext
12326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327   (eval $ac_link) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332   (eval $ac_try) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }; }; then
12336   pgac_cv_type_long_int_64=yes
12337 else
12338   echo "$as_me: program exited with status $ac_status" >&5
12339 echo "$as_me: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 ( exit $ac_status )
12342 pgac_cv_type_long_int_64=no
12343 fi
12344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12345 fi
12346 fi
12347 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12348 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12349
12350 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12351 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12352
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_LONG_INT_64
12355 _ACEOF
12356
12357 fi
12358
12359
12360 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12361   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12362 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12363 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   if test "$cross_compiling" = yes; then
12367   # If cross-compiling, check the size reported by the compiler and
12368 # trust that the arithmetic works.
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12372
12373 #ifdef F77_DUMMY_MAIN
12374 #  ifdef __cplusplus
12375      extern "C"
12376 #  endif
12377    int F77_DUMMY_MAIN() { return 1; }
12378 #endif
12379 int
12380 main ()
12381 {
12382 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12383 test_array [0] = 0
12384
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   pgac_cv_type_long_long_int_64=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 pgac_cv_type_long_long_int_64=no
12406 fi
12407 rm -f conftest.$ac_objext conftest.$ac_ext
12408 else
12409   cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 typedef long long int int64;
12413
12414 /*
12415  * These are globals to discourage the compiler from folding all the
12416  * arithmetic tests down to compile-time constants.
12417  */
12418 int64 a = 20000001;
12419 int64 b = 40000005;
12420
12421 int does_int64_work()
12422 {
12423   int64 c,d;
12424
12425   if (sizeof(int64) != 8)
12426     return 0;                   /* definitely not the right size */
12427
12428   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12429   c = a * b;
12430   d = (c + b) / b;
12431   if (d != a+1)
12432     return 0;
12433   return 1;
12434 }
12435 main() {
12436   exit(! does_int64_work());
12437 }
12438 _ACEOF
12439 rm -f conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441   (eval $ac_link) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   pgac_cv_type_long_long_int_64=yes
12451 else
12452   echo "$as_me: program exited with status $ac_status" >&5
12453 echo "$as_me: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12455 ( exit $ac_status )
12456 pgac_cv_type_long_long_int_64=no
12457 fi
12458 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 fi
12461 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12462 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12463
12464 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12465 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12466
12467 cat >>confdefs.h <<\_ACEOF
12468 #define HAVE_LONG_LONG_INT_64
12469 _ACEOF
12470
12471 fi
12472
12473 fi
12474
12475
12476
12477 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12478   cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12480 #include "confdefs.h"
12481
12482 #define INT64CONST(x)  x##LL
12483 long long int foo = INT64CONST(0x1234567890123456);
12484
12485 #ifdef F77_DUMMY_MAIN
12486 #  ifdef __cplusplus
12487      extern "C"
12488 #  endif
12489    int F77_DUMMY_MAIN() { return 1; }
12490 #endif
12491 int
12492 main ()
12493 {
12494
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 rm -f conftest.$ac_objext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501   (eval $ac_compile) 2>&5
12502   ac_status=$?
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); } &&
12505          { ac_try='test -s conftest.$ac_objext'
12506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507   (eval $ac_try) 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); }; }; then
12511
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_LL_CONSTANTS 1
12514 _ACEOF
12515
12516 else
12517   echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 fi
12520 rm -f conftest.$ac_objext conftest.$ac_ext
12521 fi
12522
12523
12524 # If we found "long int" is 64 bits, assume snprintf handles it.  If
12525 # we found we need to use "long long int", better check.  We cope with
12526 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
12527 # neither works, fall back to our own snprintf emulation (which we
12528 # know uses %lld).
12529
12530 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
12531   if test $pgac_need_repl_snprintf = no; then
12532     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
12533 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
12534 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   for pgac_format in '%lld' '%qd' '%I64d'; do
12538 if test "$cross_compiling" = yes; then
12539   pgac_cv_snprintf_long_long_int_format=cross; break
12540 else
12541   cat >conftest.$ac_ext <<_ACEOF
12542 #line $LINENO "configure"
12543 #include "confdefs.h"
12544 #include <stdio.h>
12545 typedef long long int int64;
12546 #define INT64_FORMAT "$pgac_format"
12547
12548 int64 a = 20000001;
12549 int64 b = 40000005;
12550
12551 int does_int64_snprintf_work()
12552 {
12553   int64 c;
12554   char buf[100];
12555
12556   if (sizeof(int64) != 8)
12557     return 0;                   /* doesn't look like the right size */
12558
12559   c = a * b;
12560   snprintf(buf, 100, INT64_FORMAT, c);
12561   if (strcmp(buf, "800000140000005") != 0)
12562     return 0;                   /* either multiply or snprintf is busted */
12563   return 1;
12564 }
12565 main() {
12566   exit(! does_int64_snprintf_work());
12567 }
12568 _ACEOF
12569 rm -f conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571   (eval $ac_link) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576   (eval $ac_try) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; }; then
12580   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
12581 else
12582   echo "$as_me: program exited with status $ac_status" >&5
12583 echo "$as_me: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12585 fi
12586 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12587 fi
12588 done
12589 fi
12590
12591 LONG_LONG_INT_FORMAT=''
12592
12593 case $pgac_cv_snprintf_long_long_int_format in
12594   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12595 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
12596   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
12597 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
12598          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
12599   *)     echo "$as_me:$LINENO: result: none" >&5
12600 echo "${ECHO_T}none" >&6;;
12601 esac
12602     if test "$LONG_LONG_INT_FORMAT" = ""; then
12603       # Force usage of our own snprintf, since system snprintf is broken
12604       pgac_need_repl_snprintf=yes
12605       LONG_LONG_INT_FORMAT='%lld'
12606     fi
12607   else
12608     # Here if we previously decided we needed to use our own snprintf
12609     LONG_LONG_INT_FORMAT='%lld'
12610   fi
12611   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
12612 else
12613   # Here if we are not using 'long long int' at all
12614   INT64_FORMAT='"%ld"'
12615 fi
12616
12617
12618 cat >>confdefs.h <<_ACEOF
12619 #define INT64_FORMAT $INT64_FORMAT
12620 _ACEOF
12621
12622
12623 if test $pgac_need_repl_snprintf = yes; then
12624   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12625 fi
12626
12627
12628 echo "$as_me:$LINENO: checking for unsigned long" >&5
12629 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12630 if test "${ac_cv_type_unsigned_long+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12635 #include "confdefs.h"
12636 $ac_includes_default
12637 #ifdef F77_DUMMY_MAIN
12638 #  ifdef __cplusplus
12639      extern "C"
12640 #  endif
12641    int F77_DUMMY_MAIN() { return 1; }
12642 #endif
12643 int
12644 main ()
12645 {
12646 if ((unsigned long *) 0)
12647   return 0;
12648 if (sizeof (unsigned long))
12649   return 0;
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656   (eval $ac_compile) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -s conftest.$ac_objext'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; }; then
12666   ac_cv_type_unsigned_long=yes
12667 else
12668   echo "$as_me: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 ac_cv_type_unsigned_long=no
12671 fi
12672 rm -f conftest.$ac_objext conftest.$ac_ext
12673 fi
12674 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12675 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12676
12677 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12678 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12679 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   if test "$ac_cv_type_unsigned_long" = yes; then
12683   # The cast to unsigned long works around a bug in the HP C Compiler
12684   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12685   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12686   # This bug is HP SR number 8606223364.
12687   if test "$cross_compiling" = yes; then
12688   # Depending upon the size, compute the lo and hi bounds.
12689 cat >conftest.$ac_ext <<_ACEOF
12690 #line $LINENO "configure"
12691 #include "confdefs.h"
12692 $ac_includes_default
12693 #ifdef F77_DUMMY_MAIN
12694 #  ifdef __cplusplus
12695      extern "C"
12696 #  endif
12697    int F77_DUMMY_MAIN() { return 1; }
12698 #endif
12699 int
12700 main ()
12701 {
12702 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12703 test_array [0] = 0
12704
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711   (eval $ac_compile) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } &&
12715          { ac_try='test -s conftest.$ac_objext'
12716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717   (eval $ac_try) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_lo=0 ac_mid=0
12722   while :; do
12723     cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 #include "confdefs.h"
12726 $ac_includes_default
12727 #ifdef F77_DUMMY_MAIN
12728 #  ifdef __cplusplus
12729      extern "C"
12730 #  endif
12731    int F77_DUMMY_MAIN() { return 1; }
12732 #endif
12733 int
12734 main ()
12735 {
12736 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12737 test_array [0] = 0
12738
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745   (eval $ac_compile) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   ac_hi=$ac_mid; break
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12759 ac_lo=`expr $ac_mid + 1`
12760                     if test $ac_lo -le $ac_mid; then
12761                       ac_lo= ac_hi=
12762                       break
12763                     fi
12764                     ac_mid=`expr 2 '*' $ac_mid + 1`
12765 fi
12766 rm -f conftest.$ac_objext conftest.$ac_ext
12767   done
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12774 $ac_includes_default
12775 #ifdef F77_DUMMY_MAIN
12776 #  ifdef __cplusplus
12777      extern "C"
12778 #  endif
12779    int F77_DUMMY_MAIN() { return 1; }
12780 #endif
12781 int
12782 main ()
12783 {
12784 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12785 test_array [0] = 0
12786
12787   ;
12788   return 0;
12789 }
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12793   (eval $ac_compile) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); } &&
12797          { ac_try='test -s conftest.$ac_objext'
12798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799   (eval $ac_try) 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; }; then
12803   ac_hi=-1 ac_mid=-1
12804   while :; do
12805     cat >conftest.$ac_ext <<_ACEOF
12806 #line $LINENO "configure"
12807 #include "confdefs.h"
12808 $ac_includes_default
12809 #ifdef F77_DUMMY_MAIN
12810 #  ifdef __cplusplus
12811      extern "C"
12812 #  endif
12813    int F77_DUMMY_MAIN() { return 1; }
12814 #endif
12815 int
12816 main ()
12817 {
12818 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12819 test_array [0] = 0
12820
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827   (eval $ac_compile) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } &&
12831          { ac_try='test -s conftest.$ac_objext'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   ac_lo=$ac_mid; break
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 ac_hi=`expr '(' $ac_mid ')' - 1`
12842                        if test $ac_mid -le $ac_hi; then
12843                          ac_lo= ac_hi=
12844                          break
12845                        fi
12846                        ac_mid=`expr 2 '*' $ac_mid`
12847 fi
12848 rm -f conftest.$ac_objext conftest.$ac_ext
12849   done
12850 else
12851   echo "$as_me: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12853 ac_lo= ac_hi=
12854 fi
12855 rm -f conftest.$ac_objext conftest.$ac_ext
12856 fi
12857 rm -f conftest.$ac_objext conftest.$ac_ext
12858 # Binary search between lo and hi bounds.
12859 while test "x$ac_lo" != "x$ac_hi"; do
12860   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12861   cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12863 #include "confdefs.h"
12864 $ac_includes_default
12865 #ifdef F77_DUMMY_MAIN
12866 #  ifdef __cplusplus
12867      extern "C"
12868 #  endif
12869    int F77_DUMMY_MAIN() { return 1; }
12870 #endif
12871 int
12872 main ()
12873 {
12874 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12875 test_array [0] = 0
12876
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 rm -f conftest.$ac_objext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883   (eval $ac_compile) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } &&
12887          { ac_try='test -s conftest.$ac_objext'
12888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889   (eval $ac_try) 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; }; then
12893   ac_hi=$ac_mid
12894 else
12895   echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ac_lo=`expr '(' $ac_mid ')' + 1`
12898 fi
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12900 done
12901 case $ac_lo in
12902 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12904 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12905    { (exit 1); exit 1; }; } ;;
12906 esac
12907 else
12908   if test "$cross_compiling" = yes; then
12909   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12910 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12911    { (exit 1); exit 1; }; }
12912 else
12913   cat >conftest.$ac_ext <<_ACEOF
12914 #line $LINENO "configure"
12915 #include "confdefs.h"
12916 $ac_includes_default
12917 long longval () { return (long) (sizeof (unsigned long)); }
12918 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12919 #include <stdio.h>
12920 #include <stdlib.h>
12921 #ifdef F77_DUMMY_MAIN
12922 #  ifdef __cplusplus
12923      extern "C"
12924 #  endif
12925    int F77_DUMMY_MAIN() { return 1; }
12926 #endif
12927 int
12928 main ()
12929 {
12930
12931   FILE *f = fopen ("conftest.val", "w");
12932   if (! f)
12933     exit (1);
12934   if (((long) (sizeof (unsigned long))) < 0)
12935     {
12936       long i = longval ();
12937       if (i != ((long) (sizeof (unsigned long))))
12938         exit (1);
12939       fprintf (f, "%ld\n", i);
12940     }
12941   else
12942     {
12943       unsigned long i = ulongval ();
12944       if (i != ((long) (sizeof (unsigned long))))
12945         exit (1);
12946       fprintf (f, "%lu\n", i);
12947     }
12948   exit (ferror (f) || fclose (f) != 0);
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956   (eval $ac_link) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; }; then
12965   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12966 else
12967   echo "$as_me: program exited with status $ac_status" >&5
12968 echo "$as_me: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12970 ( exit $ac_status )
12971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12972 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12973    { (exit 1); exit 1; }; }
12974 fi
12975 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12976 fi
12977 fi
12978 rm -f conftest.val
12979 else
12980   ac_cv_sizeof_unsigned_long=0
12981 fi
12982 fi
12983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12984 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12985 cat >>confdefs.h <<_ACEOF
12986 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12987 _ACEOF
12988
12989
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12993 _ACEOF
12994
12995
12996 # Determine memory alignment requirements for the basic C data types.
12997
12998 echo "$as_me:$LINENO: checking for short" >&5
12999 echo $ECHO_N "checking for short... $ECHO_C" >&6
13000 if test "${ac_cv_type_short+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   cat >conftest.$ac_ext <<_ACEOF
13004 #line $LINENO "configure"
13005 #include "confdefs.h"
13006 $ac_includes_default
13007 #ifdef F77_DUMMY_MAIN
13008 #  ifdef __cplusplus
13009      extern "C"
13010 #  endif
13011    int F77_DUMMY_MAIN() { return 1; }
13012 #endif
13013 int
13014 main ()
13015 {
13016 if ((short *) 0)
13017   return 0;
13018 if (sizeof (short))
13019   return 0;
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026   (eval $ac_compile) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -s conftest.$ac_objext'
13031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032   (eval $ac_try) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; }; then
13036   ac_cv_type_short=yes
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 ac_cv_type_short=no
13041 fi
13042 rm -f conftest.$ac_objext conftest.$ac_ext
13043 fi
13044 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13045 echo "${ECHO_T}$ac_cv_type_short" >&6
13046
13047 echo "$as_me:$LINENO: checking alignment of short" >&5
13048 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13049 if test "${pgac_cv_alignof_short+set}" = set; then
13050   echo $ECHO_N "(cached) $ECHO_C" >&6
13051 else
13052   if test "$ac_cv_type_short" = yes; then
13053   if test "$cross_compiling" = yes; then
13054   # Depending upon the size, compute the lo and hi bounds.
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13057 #include "confdefs.h"
13058 $ac_includes_default
13059 struct { char filler; short field; } pgac_struct;
13060 #ifdef F77_DUMMY_MAIN
13061 #  ifdef __cplusplus
13062      extern "C"
13063 #  endif
13064    int F77_DUMMY_MAIN() { return 1; }
13065 #endif
13066 int
13067 main ()
13068 {
13069 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13070 test_array [0] = 0
13071
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078   (eval $ac_compile) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } &&
13082          { ac_try='test -s conftest.$ac_objext'
13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084   (eval $ac_try) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; }; then
13088   ac_lo=0 ac_mid=0
13089   while :; do
13090     cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13092 #include "confdefs.h"
13093 $ac_includes_default
13094 struct { char filler; short field; } pgac_struct;
13095 #ifdef F77_DUMMY_MAIN
13096 #  ifdef __cplusplus
13097      extern "C"
13098 #  endif
13099    int F77_DUMMY_MAIN() { return 1; }
13100 #endif
13101 int
13102 main ()
13103 {
13104 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13105 test_array [0] = 0
13106
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113   (eval $ac_compile) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -s conftest.$ac_objext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_hi=$ac_mid; break
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 ac_lo=`expr $ac_mid + 1`
13128                     if test $ac_lo -le $ac_mid; then
13129                       ac_lo= ac_hi=
13130                       break
13131                     fi
13132                     ac_mid=`expr 2 '*' $ac_mid + 1`
13133 fi
13134 rm -f conftest.$ac_objext conftest.$ac_ext
13135   done
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13139 cat >conftest.$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 #include "confdefs.h"
13142 $ac_includes_default
13143 struct { char filler; short field; } pgac_struct;
13144 #ifdef F77_DUMMY_MAIN
13145 #  ifdef __cplusplus
13146      extern "C"
13147 #  endif
13148    int F77_DUMMY_MAIN() { return 1; }
13149 #endif
13150 int
13151 main ()
13152 {
13153 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13154 test_array [0] = 0
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162   (eval $ac_compile) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest.$ac_objext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_hi=-1 ac_mid=-1
13173   while :; do
13174     cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13176 #include "confdefs.h"
13177 $ac_includes_default
13178 struct { char filler; short field; } pgac_struct;
13179 #ifdef F77_DUMMY_MAIN
13180 #  ifdef __cplusplus
13181      extern "C"
13182 #  endif
13183    int F77_DUMMY_MAIN() { return 1; }
13184 #endif
13185 int
13186 main ()
13187 {
13188 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13189 test_array [0] = 0
13190
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197   (eval $ac_compile) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } &&
13201          { ac_try='test -s conftest.$ac_objext'
13202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203   (eval $ac_try) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   ac_lo=$ac_mid; break
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 cat conftest.$ac_ext >&5
13211 ac_hi=`expr '(' $ac_mid ')' - 1`
13212                        if test $ac_mid -le $ac_hi; then
13213                          ac_lo= ac_hi=
13214                          break
13215                        fi
13216                        ac_mid=`expr 2 '*' $ac_mid`
13217 fi
13218 rm -f conftest.$ac_objext conftest.$ac_ext
13219   done
13220 else
13221   echo "$as_me: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13223 ac_lo= ac_hi=
13224 fi
13225 rm -f conftest.$ac_objext conftest.$ac_ext
13226 fi
13227 rm -f conftest.$ac_objext conftest.$ac_ext
13228 # Binary search between lo and hi bounds.
13229 while test "x$ac_lo" != "x$ac_hi"; do
13230   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13231   cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13233 #include "confdefs.h"
13234 $ac_includes_default
13235 struct { char filler; short field; } pgac_struct;
13236 #ifdef F77_DUMMY_MAIN
13237 #  ifdef __cplusplus
13238      extern "C"
13239 #  endif
13240    int F77_DUMMY_MAIN() { return 1; }
13241 #endif
13242 int
13243 main ()
13244 {
13245 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13246 test_array [0] = 0
13247
13248   ;
13249   return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254   (eval $ac_compile) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); } &&
13258          { ac_try='test -s conftest.$ac_objext'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   ac_hi=$ac_mid
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13268 ac_lo=`expr '(' $ac_mid ')' + 1`
13269 fi
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271 done
13272 case $ac_lo in
13273 ?*) pgac_cv_alignof_short=$ac_lo;;
13274 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13275 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13276    { (exit 1); exit 1; }; } ;;
13277 esac
13278 else
13279   if test "$cross_compiling" = yes; then
13280   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13281 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13282    { (exit 1); exit 1; }; }
13283 else
13284   cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 $ac_includes_default
13288 struct { char filler; short field; } pgac_struct;
13289 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13290 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13291 #include <stdio.h>
13292 #include <stdlib.h>
13293 #ifdef F77_DUMMY_MAIN
13294 #  ifdef __cplusplus
13295      extern "C"
13296 #  endif
13297    int F77_DUMMY_MAIN() { return 1; }
13298 #endif
13299 int
13300 main ()
13301 {
13302
13303   FILE *f = fopen ("conftest.val", "w");
13304   if (! f)
13305     exit (1);
13306   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13307     {
13308       long i = longval ();
13309       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13310         exit (1);
13311       fprintf (f, "%ld\n", i);
13312     }
13313   else
13314     {
13315       unsigned long i = ulongval ();
13316       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13317         exit (1);
13318       fprintf (f, "%lu\n", i);
13319     }
13320   exit (ferror (f) || fclose (f) != 0);
13321
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest$ac_exeext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328   (eval $ac_link) 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   pgac_cv_alignof_short=`cat conftest.val`
13338 else
13339   echo "$as_me: program exited with status $ac_status" >&5
13340 echo "$as_me: failed program was:" >&5
13341 cat conftest.$ac_ext >&5
13342 ( exit $ac_status )
13343 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13344 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13345    { (exit 1); exit 1; }; }
13346 fi
13347 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 fi
13350 rm -f conftest.val
13351 else
13352   pgac_cv_alignof_short=0
13353 fi
13354 fi
13355 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13356 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13357 cat >>confdefs.h <<_ACEOF
13358 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13359 _ACEOF
13360
13361
13362 echo "$as_me:$LINENO: checking for int" >&5
13363 echo $ECHO_N "checking for int... $ECHO_C" >&6
13364 if test "${ac_cv_type_int+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13370 $ac_includes_default
13371 #ifdef F77_DUMMY_MAIN
13372 #  ifdef __cplusplus
13373      extern "C"
13374 #  endif
13375    int F77_DUMMY_MAIN() { return 1; }
13376 #endif
13377 int
13378 main ()
13379 {
13380 if ((int *) 0)
13381   return 0;
13382 if (sizeof (int))
13383   return 0;
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390   (eval $ac_compile) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } &&
13394          { ac_try='test -s conftest.$ac_objext'
13395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396   (eval $ac_try) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_type_int=yes
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 ac_cv_type_int=no
13405 fi
13406 rm -f conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13409 echo "${ECHO_T}$ac_cv_type_int" >&6
13410
13411 echo "$as_me:$LINENO: checking alignment of int" >&5
13412 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13413 if test "${pgac_cv_alignof_int+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   if test "$ac_cv_type_int" = yes; then
13417   if test "$cross_compiling" = yes; then
13418   # Depending upon the size, compute the lo and hi bounds.
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 #include "confdefs.h"
13422 $ac_includes_default
13423 struct { char filler; int field; } pgac_struct;
13424 #ifdef F77_DUMMY_MAIN
13425 #  ifdef __cplusplus
13426      extern "C"
13427 #  endif
13428    int F77_DUMMY_MAIN() { return 1; }
13429 #endif
13430 int
13431 main ()
13432 {
13433 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13434 test_array [0] = 0
13435
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442   (eval $ac_compile) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } &&
13446          { ac_try='test -s conftest.$ac_objext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452   ac_lo=0 ac_mid=0
13453   while :; do
13454     cat >conftest.$ac_ext <<_ACEOF
13455 #line $LINENO "configure"
13456 #include "confdefs.h"
13457 $ac_includes_default
13458 struct { char filler; int field; } pgac_struct;
13459 #ifdef F77_DUMMY_MAIN
13460 #  ifdef __cplusplus
13461      extern "C"
13462 #  endif
13463    int F77_DUMMY_MAIN() { return 1; }
13464 #endif
13465 int
13466 main ()
13467 {
13468 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13469 test_array [0] = 0
13470
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477   (eval $ac_compile) 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); } &&
13481          { ac_try='test -s conftest.$ac_objext'
13482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483   (eval $ac_try) 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; }; then
13487   ac_hi=$ac_mid; break
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 ac_lo=`expr $ac_mid + 1`
13492                     if test $ac_lo -le $ac_mid; then
13493                       ac_lo= ac_hi=
13494                       break
13495                     fi
13496                     ac_mid=`expr 2 '*' $ac_mid + 1`
13497 fi
13498 rm -f conftest.$ac_objext conftest.$ac_ext
13499   done
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13505 #include "confdefs.h"
13506 $ac_includes_default
13507 struct { char filler; int field; } pgac_struct;
13508 #ifdef F77_DUMMY_MAIN
13509 #  ifdef __cplusplus
13510      extern "C"
13511 #  endif
13512    int F77_DUMMY_MAIN() { return 1; }
13513 #endif
13514 int
13515 main ()
13516 {
13517 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13518 test_array [0] = 0
13519
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526   (eval $ac_compile) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -s conftest.$ac_objext'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_hi=-1 ac_mid=-1
13537   while :; do
13538     cat >conftest.$ac_ext <<_ACEOF
13539 #line $LINENO "configure"
13540 #include "confdefs.h"
13541 $ac_includes_default
13542 struct { char filler; int field; } pgac_struct;
13543 #ifdef F77_DUMMY_MAIN
13544 #  ifdef __cplusplus
13545      extern "C"
13546 #  endif
13547    int F77_DUMMY_MAIN() { return 1; }
13548 #endif
13549 int
13550 main ()
13551 {
13552 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13553 test_array [0] = 0
13554
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561   (eval $ac_compile) 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } &&
13565          { ac_try='test -s conftest.$ac_objext'
13566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567   (eval $ac_try) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; }; then
13571   ac_lo=$ac_mid; break
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 ac_hi=`expr '(' $ac_mid ')' - 1`
13576                        if test $ac_mid -le $ac_hi; then
13577                          ac_lo= ac_hi=
13578                          break
13579                        fi
13580                        ac_mid=`expr 2 '*' $ac_mid`
13581 fi
13582 rm -f conftest.$ac_objext conftest.$ac_ext
13583   done
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13587 ac_lo= ac_hi=
13588 fi
13589 rm -f conftest.$ac_objext conftest.$ac_ext
13590 fi
13591 rm -f conftest.$ac_objext conftest.$ac_ext
13592 # Binary search between lo and hi bounds.
13593 while test "x$ac_lo" != "x$ac_hi"; do
13594   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13595   cat >conftest.$ac_ext <<_ACEOF
13596 #line $LINENO "configure"
13597 #include "confdefs.h"
13598 $ac_includes_default
13599 struct { char filler; int field; } pgac_struct;
13600 #ifdef F77_DUMMY_MAIN
13601 #  ifdef __cplusplus
13602      extern "C"
13603 #  endif
13604    int F77_DUMMY_MAIN() { return 1; }
13605 #endif
13606 int
13607 main ()
13608 {
13609 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13610 test_array [0] = 0
13611
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618   (eval $ac_compile) 2>&5
13619   ac_status=$?
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } &&
13622          { ac_try='test -s conftest.$ac_objext'
13623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624   (eval $ac_try) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; }; then
13628   ac_hi=$ac_mid
13629 else
13630   echo "$as_me: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 ac_lo=`expr '(' $ac_mid ')' + 1`
13633 fi
13634 rm -f conftest.$ac_objext conftest.$ac_ext
13635 done
13636 case $ac_lo in
13637 ?*) pgac_cv_alignof_int=$ac_lo;;
13638 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13639 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13640    { (exit 1); exit 1; }; } ;;
13641 esac
13642 else
13643   if test "$cross_compiling" = yes; then
13644   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13645 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13646    { (exit 1); exit 1; }; }
13647 else
13648   cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13651 $ac_includes_default
13652 struct { char filler; int field; } pgac_struct;
13653 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13654 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13655 #include <stdio.h>
13656 #include <stdlib.h>
13657 #ifdef F77_DUMMY_MAIN
13658 #  ifdef __cplusplus
13659      extern "C"
13660 #  endif
13661    int F77_DUMMY_MAIN() { return 1; }
13662 #endif
13663 int
13664 main ()
13665 {
13666
13667   FILE *f = fopen ("conftest.val", "w");
13668   if (! f)
13669     exit (1);
13670   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13671     {
13672       long i = longval ();
13673       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13674         exit (1);
13675       fprintf (f, "%ld\n", i);
13676     }
13677   else
13678     {
13679       unsigned long i = ulongval ();
13680       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13681         exit (1);
13682       fprintf (f, "%lu\n", i);
13683     }
13684   exit (ferror (f) || fclose (f) != 0);
13685
13686   ;
13687   return 0;
13688 }
13689 _ACEOF
13690 rm -f conftest$ac_exeext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692   (eval $ac_link) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   pgac_cv_alignof_int=`cat conftest.val`
13702 else
13703   echo "$as_me: program exited with status $ac_status" >&5
13704 echo "$as_me: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13706 ( exit $ac_status )
13707 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13708 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13709    { (exit 1); exit 1; }; }
13710 fi
13711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13712 fi
13713 fi
13714 rm -f conftest.val
13715 else
13716   pgac_cv_alignof_int=0
13717 fi
13718 fi
13719 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13720 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13721 cat >>confdefs.h <<_ACEOF
13722 #define ALIGNOF_INT $pgac_cv_alignof_int
13723 _ACEOF
13724
13725
13726 echo "$as_me:$LINENO: checking for long" >&5
13727 echo $ECHO_N "checking for long... $ECHO_C" >&6
13728 if test "${ac_cv_type_long+set}" = set; then
13729   echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 #include "confdefs.h"
13734 $ac_includes_default
13735 #ifdef F77_DUMMY_MAIN
13736 #  ifdef __cplusplus
13737      extern "C"
13738 #  endif
13739    int F77_DUMMY_MAIN() { return 1; }
13740 #endif
13741 int
13742 main ()
13743 {
13744 if ((long *) 0)
13745   return 0;
13746 if (sizeof (long))
13747   return 0;
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754   (eval $ac_compile) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -s conftest.$ac_objext'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   ac_cv_type_long=yes
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 cat conftest.$ac_ext >&5
13768 ac_cv_type_long=no
13769 fi
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13773 echo "${ECHO_T}$ac_cv_type_long" >&6
13774
13775 echo "$as_me:$LINENO: checking alignment of long" >&5
13776 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13777 if test "${pgac_cv_alignof_long+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   if test "$ac_cv_type_long" = yes; then
13781   if test "$cross_compiling" = yes; then
13782   # Depending upon the size, compute the lo and hi bounds.
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13785 #include "confdefs.h"
13786 $ac_includes_default
13787 struct { char filler; long field; } pgac_struct;
13788 #ifdef F77_DUMMY_MAIN
13789 #  ifdef __cplusplus
13790      extern "C"
13791 #  endif
13792    int F77_DUMMY_MAIN() { return 1; }
13793 #endif
13794 int
13795 main ()
13796 {
13797 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13798 test_array [0] = 0
13799
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 rm -f conftest.$ac_objext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806   (eval $ac_compile) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); } &&
13810          { ac_try='test -s conftest.$ac_objext'
13811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812   (eval $ac_try) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); }; }; then
13816   ac_lo=0 ac_mid=0
13817   while :; do
13818     cat >conftest.$ac_ext <<_ACEOF
13819 #line $LINENO "configure"
13820 #include "confdefs.h"
13821 $ac_includes_default
13822 struct { char filler; long field; } pgac_struct;
13823 #ifdef F77_DUMMY_MAIN
13824 #  ifdef __cplusplus
13825      extern "C"
13826 #  endif
13827    int F77_DUMMY_MAIN() { return 1; }
13828 #endif
13829 int
13830 main ()
13831 {
13832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13833 test_array [0] = 0
13834
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841   (eval $ac_compile) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -s conftest.$ac_objext'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }; then
13851   ac_hi=$ac_mid; break
13852 else
13853   echo "$as_me: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 ac_lo=`expr $ac_mid + 1`
13856                     if test $ac_lo -le $ac_mid; then
13857                       ac_lo= ac_hi=
13858                       break
13859                     fi
13860                     ac_mid=`expr 2 '*' $ac_mid + 1`
13861 fi
13862 rm -f conftest.$ac_objext conftest.$ac_ext
13863   done
13864 else
13865   echo "$as_me: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; long field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 #  ifdef __cplusplus
13874      extern "C"
13875 #  endif
13876    int F77_DUMMY_MAIN() { return 1; }
13877 #endif
13878 int
13879 main ()
13880 {
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13882 test_array [0] = 0
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890   (eval $ac_compile) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_hi=-1 ac_mid=-1
13901   while :; do
13902     cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13904 #include "confdefs.h"
13905 $ac_includes_default
13906 struct { char filler; long field; } pgac_struct;
13907 #ifdef F77_DUMMY_MAIN
13908 #  ifdef __cplusplus
13909      extern "C"
13910 #  endif
13911    int F77_DUMMY_MAIN() { return 1; }
13912 #endif
13913 int
13914 main ()
13915 {
13916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13917 test_array [0] = 0
13918
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925   (eval $ac_compile) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } &&
13929          { ac_try='test -s conftest.$ac_objext'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   ac_lo=$ac_mid; break
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 ac_hi=`expr '(' $ac_mid ')' - 1`
13940                        if test $ac_mid -le $ac_hi; then
13941                          ac_lo= ac_hi=
13942                          break
13943                        fi
13944                        ac_mid=`expr 2 '*' $ac_mid`
13945 fi
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13947   done
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13951 ac_lo= ac_hi=
13952 fi
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13954 fi
13955 rm -f conftest.$ac_objext conftest.$ac_ext
13956 # Binary search between lo and hi bounds.
13957 while test "x$ac_lo" != "x$ac_hi"; do
13958   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13959   cat >conftest.$ac_ext <<_ACEOF
13960 #line $LINENO "configure"
13961 #include "confdefs.h"
13962 $ac_includes_default
13963 struct { char filler; long field; } pgac_struct;
13964 #ifdef F77_DUMMY_MAIN
13965 #  ifdef __cplusplus
13966      extern "C"
13967 #  endif
13968    int F77_DUMMY_MAIN() { return 1; }
13969 #endif
13970 int
13971 main ()
13972 {
13973 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13974 test_array [0] = 0
13975
13976   ;
13977   return 0;
13978 }
13979 _ACEOF
13980 rm -f conftest.$ac_objext
13981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13982   (eval $ac_compile) 2>&5
13983   ac_status=$?
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); } &&
13986          { ac_try='test -s conftest.$ac_objext'
13987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988   (eval $ac_try) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; }; then
13992   ac_hi=$ac_mid
13993 else
13994   echo "$as_me: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 ac_lo=`expr '(' $ac_mid ')' + 1`
13997 fi
13998 rm -f conftest.$ac_objext conftest.$ac_ext
13999 done
14000 case $ac_lo in
14001 ?*) pgac_cv_alignof_long=$ac_lo;;
14002 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14003 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14004    { (exit 1); exit 1; }; } ;;
14005 esac
14006 else
14007   if test "$cross_compiling" = yes; then
14008   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14009 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14010    { (exit 1); exit 1; }; }
14011 else
14012   cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 #include "confdefs.h"
14015 $ac_includes_default
14016 struct { char filler; long field; } pgac_struct;
14017 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14018 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14019 #include <stdio.h>
14020 #include <stdlib.h>
14021 #ifdef F77_DUMMY_MAIN
14022 #  ifdef __cplusplus
14023      extern "C"
14024 #  endif
14025    int F77_DUMMY_MAIN() { return 1; }
14026 #endif
14027 int
14028 main ()
14029 {
14030
14031   FILE *f = fopen ("conftest.val", "w");
14032   if (! f)
14033     exit (1);
14034   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14035     {
14036       long i = longval ();
14037       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14038         exit (1);
14039       fprintf (f, "%ld\n", i);
14040     }
14041   else
14042     {
14043       unsigned long i = ulongval ();
14044       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14045         exit (1);
14046       fprintf (f, "%lu\n", i);
14047     }
14048   exit (ferror (f) || fclose (f) != 0);
14049
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 rm -f conftest$ac_exeext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14056   (eval $ac_link) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; }; then
14065   pgac_cv_alignof_long=`cat conftest.val`
14066 else
14067   echo "$as_me: program exited with status $ac_status" >&5
14068 echo "$as_me: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 ( exit $ac_status )
14071 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14072 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14073    { (exit 1); exit 1; }; }
14074 fi
14075 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14076 fi
14077 fi
14078 rm -f conftest.val
14079 else
14080   pgac_cv_alignof_long=0
14081 fi
14082 fi
14083 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14084 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14085 cat >>confdefs.h <<_ACEOF
14086 #define ALIGNOF_LONG $pgac_cv_alignof_long
14087 _ACEOF
14088
14089
14090 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14091   echo "$as_me:$LINENO: checking for long long int" >&5
14092 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14093 if test "${ac_cv_type_long_long_int+set}" = set; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 #include "confdefs.h"
14099 $ac_includes_default
14100 #ifdef F77_DUMMY_MAIN
14101 #  ifdef __cplusplus
14102      extern "C"
14103 #  endif
14104    int F77_DUMMY_MAIN() { return 1; }
14105 #endif
14106 int
14107 main ()
14108 {
14109 if ((long long int *) 0)
14110   return 0;
14111 if (sizeof (long long int))
14112   return 0;
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 rm -f conftest.$ac_objext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119   (eval $ac_compile) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); } &&
14123          { ac_try='test -s conftest.$ac_objext'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129   ac_cv_type_long_long_int=yes
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 ac_cv_type_long_long_int=no
14134 fi
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14136 fi
14137 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14138 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14139
14140 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14141 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14142 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   if test "$ac_cv_type_long_long_int" = yes; then
14146   if test "$cross_compiling" = yes; then
14147   # Depending upon the size, compute the lo and hi bounds.
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14150 #include "confdefs.h"
14151 $ac_includes_default
14152 struct { char filler; long long int field; } pgac_struct;
14153 #ifdef F77_DUMMY_MAIN
14154 #  ifdef __cplusplus
14155      extern "C"
14156 #  endif
14157    int F77_DUMMY_MAIN() { return 1; }
14158 #endif
14159 int
14160 main ()
14161 {
14162 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14163 test_array [0] = 0
14164
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171   (eval $ac_compile) 2>&5
14172   ac_status=$?
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -s conftest.$ac_objext'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; }; then
14181   ac_lo=0 ac_mid=0
14182   while :; do
14183     cat >conftest.$ac_ext <<_ACEOF
14184 #line $LINENO "configure"
14185 #include "confdefs.h"
14186 $ac_includes_default
14187 struct { char filler; long long int field; } pgac_struct;
14188 #ifdef F77_DUMMY_MAIN
14189 #  ifdef __cplusplus
14190      extern "C"
14191 #  endif
14192    int F77_DUMMY_MAIN() { return 1; }
14193 #endif
14194 int
14195 main ()
14196 {
14197 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14198 test_array [0] = 0
14199
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206   (eval $ac_compile) 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); } &&
14210          { ac_try='test -s conftest.$ac_objext'
14211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212   (eval $ac_try) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); }; }; then
14216   ac_hi=$ac_mid; break
14217 else
14218   echo "$as_me: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 ac_lo=`expr $ac_mid + 1`
14221                     if test $ac_lo -le $ac_mid; then
14222                       ac_lo= ac_hi=
14223                       break
14224                     fi
14225                     ac_mid=`expr 2 '*' $ac_mid + 1`
14226 fi
14227 rm -f conftest.$ac_objext conftest.$ac_ext
14228   done
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14234 #include "confdefs.h"
14235 $ac_includes_default
14236 struct { char filler; long long int field; } pgac_struct;
14237 #ifdef F77_DUMMY_MAIN
14238 #  ifdef __cplusplus
14239      extern "C"
14240 #  endif
14241    int F77_DUMMY_MAIN() { return 1; }
14242 #endif
14243 int
14244 main ()
14245 {
14246 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14247 test_array [0] = 0
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255   (eval $ac_compile) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } &&
14259          { ac_try='test -s conftest.$ac_objext'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265   ac_hi=-1 ac_mid=-1
14266   while :; do
14267     cat >conftest.$ac_ext <<_ACEOF
14268 #line $LINENO "configure"
14269 #include "confdefs.h"
14270 $ac_includes_default
14271 struct { char filler; long long int field; } pgac_struct;
14272 #ifdef F77_DUMMY_MAIN
14273 #  ifdef __cplusplus
14274      extern "C"
14275 #  endif
14276    int F77_DUMMY_MAIN() { return 1; }
14277 #endif
14278 int
14279 main ()
14280 {
14281 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14282 test_array [0] = 0
14283
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290   (eval $ac_compile) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); } &&
14294          { ac_try='test -s conftest.$ac_objext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   ac_lo=$ac_mid; break
14301 else
14302   echo "$as_me: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14304 ac_hi=`expr '(' $ac_mid ')' - 1`
14305                        if test $ac_mid -le $ac_hi; then
14306                          ac_lo= ac_hi=
14307                          break
14308                        fi
14309                        ac_mid=`expr 2 '*' $ac_mid`
14310 fi
14311 rm -f conftest.$ac_objext conftest.$ac_ext
14312   done
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14316 ac_lo= ac_hi=
14317 fi
14318 rm -f conftest.$ac_objext conftest.$ac_ext
14319 fi
14320 rm -f conftest.$ac_objext conftest.$ac_ext
14321 # Binary search between lo and hi bounds.
14322 while test "x$ac_lo" != "x$ac_hi"; do
14323   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14324   cat >conftest.$ac_ext <<_ACEOF
14325 #line $LINENO "configure"
14326 #include "confdefs.h"
14327 $ac_includes_default
14328 struct { char filler; long long int field; } pgac_struct;
14329 #ifdef F77_DUMMY_MAIN
14330 #  ifdef __cplusplus
14331      extern "C"
14332 #  endif
14333    int F77_DUMMY_MAIN() { return 1; }
14334 #endif
14335 int
14336 main ()
14337 {
14338 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14339 test_array [0] = 0
14340
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347   (eval $ac_compile) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -s conftest.$ac_objext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   ac_hi=$ac_mid
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 ac_lo=`expr '(' $ac_mid ')' + 1`
14362 fi
14363 rm -f conftest.$ac_objext conftest.$ac_ext
14364 done
14365 case $ac_lo in
14366 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14367 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14368 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14369    { (exit 1); exit 1; }; } ;;
14370 esac
14371 else
14372   if test "$cross_compiling" = yes; then
14373   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14374 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14375    { (exit 1); exit 1; }; }
14376 else
14377   cat >conftest.$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14379 #include "confdefs.h"
14380 $ac_includes_default
14381 struct { char filler; long long int field; } pgac_struct;
14382 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14383 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14384 #include <stdio.h>
14385 #include <stdlib.h>
14386 #ifdef F77_DUMMY_MAIN
14387 #  ifdef __cplusplus
14388      extern "C"
14389 #  endif
14390    int F77_DUMMY_MAIN() { return 1; }
14391 #endif
14392 int
14393 main ()
14394 {
14395
14396   FILE *f = fopen ("conftest.val", "w");
14397   if (! f)
14398     exit (1);
14399   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14400     {
14401       long i = longval ();
14402       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14403         exit (1);
14404       fprintf (f, "%ld\n", i);
14405     }
14406   else
14407     {
14408       unsigned long i = ulongval ();
14409       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14410         exit (1);
14411       fprintf (f, "%lu\n", i);
14412     }
14413   exit (ferror (f) || fclose (f) != 0);
14414
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 rm -f conftest$ac_exeext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421   (eval $ac_link) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426   (eval $ac_try) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; }; then
14430   pgac_cv_alignof_long_long_int=`cat conftest.val`
14431 else
14432   echo "$as_me: program exited with status $ac_status" >&5
14433 echo "$as_me: failed program was:" >&5
14434 cat conftest.$ac_ext >&5
14435 ( exit $ac_status )
14436 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14437 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14438    { (exit 1); exit 1; }; }
14439 fi
14440 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14441 fi
14442 fi
14443 rm -f conftest.val
14444 else
14445   pgac_cv_alignof_long_long_int=0
14446 fi
14447 fi
14448 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14449 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14450 cat >>confdefs.h <<_ACEOF
14451 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14452 _ACEOF
14453
14454
14455 fi
14456 echo "$as_me:$LINENO: checking for double" >&5
14457 echo $ECHO_N "checking for double... $ECHO_C" >&6
14458 if test "${ac_cv_type_double+set}" = set; then
14459   echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461   cat >conftest.$ac_ext <<_ACEOF
14462 #line $LINENO "configure"
14463 #include "confdefs.h"
14464 $ac_includes_default
14465 #ifdef F77_DUMMY_MAIN
14466 #  ifdef __cplusplus
14467      extern "C"
14468 #  endif
14469    int F77_DUMMY_MAIN() { return 1; }
14470 #endif
14471 int
14472 main ()
14473 {
14474 if ((double *) 0)
14475   return 0;
14476 if (sizeof (double))
14477   return 0;
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484   (eval $ac_compile) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } &&
14488          { ac_try='test -s conftest.$ac_objext'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   ac_cv_type_double=yes
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14498 ac_cv_type_double=no
14499 fi
14500 rm -f conftest.$ac_objext conftest.$ac_ext
14501 fi
14502 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14503 echo "${ECHO_T}$ac_cv_type_double" >&6
14504
14505 echo "$as_me:$LINENO: checking alignment of double" >&5
14506 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14507 if test "${pgac_cv_alignof_double+set}" = set; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   if test "$ac_cv_type_double" = yes; then
14511   if test "$cross_compiling" = yes; then
14512   # Depending upon the size, compute the lo and hi bounds.
14513 cat >conftest.$ac_ext <<_ACEOF
14514 #line $LINENO "configure"
14515 #include "confdefs.h"
14516 $ac_includes_default
14517 struct { char filler; double field; } pgac_struct;
14518 #ifdef F77_DUMMY_MAIN
14519 #  ifdef __cplusplus
14520      extern "C"
14521 #  endif
14522    int F77_DUMMY_MAIN() { return 1; }
14523 #endif
14524 int
14525 main ()
14526 {
14527 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14528 test_array [0] = 0
14529
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536   (eval $ac_compile) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -s conftest.$ac_objext'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; }; then
14546   ac_lo=0 ac_mid=0
14547   while :; do
14548     cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551 $ac_includes_default
14552 struct { char filler; double field; } pgac_struct;
14553 #ifdef F77_DUMMY_MAIN
14554 #  ifdef __cplusplus
14555      extern "C"
14556 #  endif
14557    int F77_DUMMY_MAIN() { return 1; }
14558 #endif
14559 int
14560 main ()
14561 {
14562 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14563 test_array [0] = 0
14564
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -s conftest.$ac_objext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   ac_hi=$ac_mid; break
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 ac_lo=`expr $ac_mid + 1`
14586                     if test $ac_lo -le $ac_mid; then
14587                       ac_lo= ac_hi=
14588                       break
14589                     fi
14590                     ac_mid=`expr 2 '*' $ac_mid + 1`
14591 fi
14592 rm -f conftest.$ac_objext conftest.$ac_ext
14593   done
14594 else
14595   echo "$as_me: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14597 cat >conftest.$ac_ext <<_ACEOF
14598 #line $LINENO "configure"
14599 #include "confdefs.h"
14600 $ac_includes_default
14601 struct { char filler; double field; } pgac_struct;
14602 #ifdef F77_DUMMY_MAIN
14603 #  ifdef __cplusplus
14604      extern "C"
14605 #  endif
14606    int F77_DUMMY_MAIN() { return 1; }
14607 #endif
14608 int
14609 main ()
14610 {
14611 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14612 test_array [0] = 0
14613
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620   (eval $ac_compile) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -s conftest.$ac_objext'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630   ac_hi=-1 ac_mid=-1
14631   while :; do
14632     cat >conftest.$ac_ext <<_ACEOF
14633 #line $LINENO "configure"
14634 #include "confdefs.h"
14635 $ac_includes_default
14636 struct { char filler; double field; } pgac_struct;
14637 #ifdef F77_DUMMY_MAIN
14638 #  ifdef __cplusplus
14639      extern "C"
14640 #  endif
14641    int F77_DUMMY_MAIN() { return 1; }
14642 #endif
14643 int
14644 main ()
14645 {
14646 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14647 test_array [0] = 0
14648
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655   (eval $ac_compile) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -s conftest.$ac_objext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665   ac_lo=$ac_mid; break
14666 else
14667   echo "$as_me: failed program was:" >&5
14668 cat conftest.$ac_ext >&5
14669 ac_hi=`expr '(' $ac_mid ')' - 1`
14670                        if test $ac_mid -le $ac_hi; then
14671                          ac_lo= ac_hi=
14672                          break
14673                        fi
14674                        ac_mid=`expr 2 '*' $ac_mid`
14675 fi
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14677   done
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14681 ac_lo= ac_hi=
14682 fi
14683 rm -f conftest.$ac_objext conftest.$ac_ext
14684 fi
14685 rm -f conftest.$ac_objext conftest.$ac_ext
14686 # Binary search between lo and hi bounds.
14687 while test "x$ac_lo" != "x$ac_hi"; do
14688   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14689   cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14691 #include "confdefs.h"
14692 $ac_includes_default
14693 struct { char filler; double field; } pgac_struct;
14694 #ifdef F77_DUMMY_MAIN
14695 #  ifdef __cplusplus
14696      extern "C"
14697 #  endif
14698    int F77_DUMMY_MAIN() { return 1; }
14699 #endif
14700 int
14701 main ()
14702 {
14703 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14704 test_array [0] = 0
14705
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712   (eval $ac_compile) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } &&
14716          { ac_try='test -s conftest.$ac_objext'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722   ac_hi=$ac_mid
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 ac_lo=`expr '(' $ac_mid ')' + 1`
14727 fi
14728 rm -f conftest.$ac_objext conftest.$ac_ext
14729 done
14730 case $ac_lo in
14731 ?*) pgac_cv_alignof_double=$ac_lo;;
14732 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14733 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14734    { (exit 1); exit 1; }; } ;;
14735 esac
14736 else
14737   if test "$cross_compiling" = yes; then
14738   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14739 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14740    { (exit 1); exit 1; }; }
14741 else
14742   cat >conftest.$ac_ext <<_ACEOF
14743 #line $LINENO "configure"
14744 #include "confdefs.h"
14745 $ac_includes_default
14746 struct { char filler; double field; } pgac_struct;
14747 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14748 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14749 #include <stdio.h>
14750 #include <stdlib.h>
14751 #ifdef F77_DUMMY_MAIN
14752 #  ifdef __cplusplus
14753      extern "C"
14754 #  endif
14755    int F77_DUMMY_MAIN() { return 1; }
14756 #endif
14757 int
14758 main ()
14759 {
14760
14761   FILE *f = fopen ("conftest.val", "w");
14762   if (! f)
14763     exit (1);
14764   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14765     {
14766       long i = longval ();
14767       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14768         exit (1);
14769       fprintf (f, "%ld\n", i);
14770     }
14771   else
14772     {
14773       unsigned long i = ulongval ();
14774       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14775         exit (1);
14776       fprintf (f, "%lu\n", i);
14777     }
14778   exit (ferror (f) || fclose (f) != 0);
14779
14780   ;
14781   return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786   (eval $ac_link) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791   (eval $ac_try) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; }; then
14795   pgac_cv_alignof_double=`cat conftest.val`
14796 else
14797   echo "$as_me: program exited with status $ac_status" >&5
14798 echo "$as_me: failed program was:" >&5
14799 cat conftest.$ac_ext >&5
14800 ( exit $ac_status )
14801 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14802 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14803    { (exit 1); exit 1; }; }
14804 fi
14805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 fi
14808 rm -f conftest.val
14809 else
14810   pgac_cv_alignof_double=0
14811 fi
14812 fi
14813 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14814 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14815 cat >>confdefs.h <<_ACEOF
14816 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14817 _ACEOF
14818
14819
14820
14821 # Compute maximum alignment of any basic type.
14822 # We assume long's alignment is at least as strong as char, short, or int;
14823 # but we must check long long (if it exists) and double.
14824
14825 MAX_ALIGNOF=$pgac_cv_alignof_long
14826 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14827   MAX_ALIGNOF=$pgac_cv_alignof_double
14828 fi
14829 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14830   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14831 fi
14832
14833 cat >>confdefs.h <<_ACEOF
14834 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14835 _ACEOF
14836
14837
14838
14839 # Some platforms predefine the types int8, int16, etc.  Only check
14840 # a (hopefully) representative subset.
14841 echo "$as_me:$LINENO: checking for int8" >&5
14842 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14843 if test "${ac_cv_type_int8+set}" = set; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846   cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 #include "confdefs.h"
14849 #include <stdio.h>
14850 #ifdef HAVE_SUPPORTDEFS_H
14851 #include <SupportDefs.h>
14852 #endif
14853
14854 #ifdef F77_DUMMY_MAIN
14855 #  ifdef __cplusplus
14856      extern "C"
14857 #  endif
14858    int F77_DUMMY_MAIN() { return 1; }
14859 #endif
14860 int
14861 main ()
14862 {
14863 if ((int8 *) 0)
14864   return 0;
14865 if (sizeof (int8))
14866   return 0;
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873   (eval $ac_compile) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } &&
14877          { ac_try='test -s conftest.$ac_objext'
14878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879   (eval $ac_try) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; }; then
14883   ac_cv_type_int8=yes
14884 else
14885   echo "$as_me: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14887 ac_cv_type_int8=no
14888 fi
14889 rm -f conftest.$ac_objext conftest.$ac_ext
14890 fi
14891 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14892 echo "${ECHO_T}$ac_cv_type_int8" >&6
14893 if test $ac_cv_type_int8 = yes; then
14894
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_INT8 1
14897 _ACEOF
14898
14899
14900 fi
14901 echo "$as_me:$LINENO: checking for uint8" >&5
14902 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14903 if test "${ac_cv_type_uint8+set}" = set; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906   cat >conftest.$ac_ext <<_ACEOF
14907 #line $LINENO "configure"
14908 #include "confdefs.h"
14909 #include <stdio.h>
14910 #ifdef HAVE_SUPPORTDEFS_H
14911 #include <SupportDefs.h>
14912 #endif
14913
14914 #ifdef F77_DUMMY_MAIN
14915 #  ifdef __cplusplus
14916      extern "C"
14917 #  endif
14918    int F77_DUMMY_MAIN() { return 1; }
14919 #endif
14920 int
14921 main ()
14922 {
14923 if ((uint8 *) 0)
14924   return 0;
14925 if (sizeof (uint8))
14926   return 0;
14927   ;
14928   return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14933   (eval $ac_compile) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } &&
14937          { ac_try='test -s conftest.$ac_objext'
14938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939   (eval $ac_try) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); }; }; then
14943   ac_cv_type_uint8=yes
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 ac_cv_type_uint8=no
14948 fi
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14950 fi
14951 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14952 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14953 if test $ac_cv_type_uint8 = yes; then
14954
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_UINT8 1
14957 _ACEOF
14958
14959
14960 fi
14961 echo "$as_me:$LINENO: checking for int64" >&5
14962 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14963 if test "${ac_cv_type_int64+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   cat >conftest.$ac_ext <<_ACEOF
14967 #line $LINENO "configure"
14968 #include "confdefs.h"
14969 #include <stdio.h>
14970 #ifdef HAVE_SUPPORTDEFS_H
14971 #include <SupportDefs.h>
14972 #endif
14973
14974 #ifdef F77_DUMMY_MAIN
14975 #  ifdef __cplusplus
14976      extern "C"
14977 #  endif
14978    int F77_DUMMY_MAIN() { return 1; }
14979 #endif
14980 int
14981 main ()
14982 {
14983 if ((int64 *) 0)
14984   return 0;
14985 if (sizeof (int64))
14986   return 0;
14987   ;
14988   return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993   (eval $ac_compile) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } &&
14997          { ac_try='test -s conftest.$ac_objext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   ac_cv_type_int64=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 ac_cv_type_int64=no
15008 fi
15009 rm -f conftest.$ac_objext conftest.$ac_ext
15010 fi
15011 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15012 echo "${ECHO_T}$ac_cv_type_int64" >&6
15013 if test $ac_cv_type_int64 = yes; then
15014
15015 cat >>confdefs.h <<_ACEOF
15016 #define HAVE_INT64 1
15017 _ACEOF
15018
15019
15020 fi
15021 echo "$as_me:$LINENO: checking for uint64" >&5
15022 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15023 if test "${ac_cv_type_uint64+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 #include <stdio.h>
15030 #ifdef HAVE_SUPPORTDEFS_H
15031 #include <SupportDefs.h>
15032 #endif
15033
15034 #ifdef F77_DUMMY_MAIN
15035 #  ifdef __cplusplus
15036      extern "C"
15037 #  endif
15038    int F77_DUMMY_MAIN() { return 1; }
15039 #endif
15040 int
15041 main ()
15042 {
15043 if ((uint64 *) 0)
15044   return 0;
15045 if (sizeof (uint64))
15046   return 0;
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053   (eval $ac_compile) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_cv_type_uint64=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 ac_cv_type_uint64=no
15068 fi
15069 rm -f conftest.$ac_objext conftest.$ac_ext
15070 fi
15071 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15072 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15073 if test $ac_cv_type_uint64 = yes; then
15074
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_UINT64 1
15077 _ACEOF
15078
15079
15080 fi
15081
15082
15083 # We also check for sig_atomic_t, which *should* be defined per ANSI
15084 # C, but is missing on some old platforms.
15085 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15086 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15087 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 #include "confdefs.h"
15093 #include <signal.h>
15094
15095 #ifdef F77_DUMMY_MAIN
15096 #  ifdef __cplusplus
15097      extern "C"
15098 #  endif
15099    int F77_DUMMY_MAIN() { return 1; }
15100 #endif
15101 int
15102 main ()
15103 {
15104 if ((sig_atomic_t *) 0)
15105   return 0;
15106 if (sizeof (sig_atomic_t))
15107   return 0;
15108   ;
15109   return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest.$ac_objext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15114   (eval $ac_compile) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -s conftest.$ac_objext'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; }; then
15124   ac_cv_type_sig_atomic_t=yes
15125 else
15126   echo "$as_me: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 ac_cv_type_sig_atomic_t=no
15129 fi
15130 rm -f conftest.$ac_objext conftest.$ac_ext
15131 fi
15132 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15133 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15134 if test $ac_cv_type_sig_atomic_t = yes; then
15135
15136 cat >>confdefs.h <<_ACEOF
15137 #define HAVE_SIG_ATOMIC_T 1
15138 _ACEOF
15139
15140
15141 fi
15142
15143
15144
15145 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15146 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15147 if test "${pgac_cv_func_posix_signals+set}" = set; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150   cat >conftest.$ac_ext <<_ACEOF
15151 #line $LINENO "configure"
15152 #include "confdefs.h"
15153 #include <signal.h>
15154
15155 #ifdef F77_DUMMY_MAIN
15156 #  ifdef __cplusplus
15157      extern "C"
15158 #  endif
15159    int F77_DUMMY_MAIN() { return 1; }
15160 #endif
15161 int
15162 main ()
15163 {
15164 struct sigaction act, oact;
15165 sigemptyset(&act.sa_mask);
15166 act.sa_flags = SA_RESTART;
15167 sigaction(0, &act, &oact);
15168   ;
15169   return 0;
15170 }
15171 _ACEOF
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174   (eval $ac_link) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } &&
15178          { ac_try='test -s conftest$ac_exeext'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   pgac_cv_func_posix_signals=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 pgac_cv_func_posix_signals=no
15189 fi
15190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15191 fi
15192 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15193 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15194 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15195
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_POSIX_SIGNALS
15198 _ACEOF
15199
15200 fi
15201 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15202
15203 if test $ac_cv_func_fseeko = yes; then
15204 # Check whether --enable-largefile or --disable-largefile was given.
15205 if test "${enable_largefile+set}" = set; then
15206   enableval="$enable_largefile"
15207
15208 fi;
15209 if test "$enable_largefile" != no; then
15210
15211   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15212 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15213 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15214   echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216   ac_cv_sys_largefile_CC=no
15217      if test "$GCC" != yes; then
15218        ac_save_CC=$CC
15219        while :; do
15220          # IRIX 6.2 and later do not support large files by default,
15221          # so use the C compiler's -n32 option if that helps.
15222          cat >conftest.$ac_ext <<_ACEOF
15223 #line $LINENO "configure"
15224 #include "confdefs.h"
15225 #include <sys/types.h>
15226  /* Check that off_t can represent 2**63 - 1 correctly.
15227     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15228     since some C++ compilers masquerading as C compilers
15229     incorrectly reject 9223372036854775807.  */
15230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15231   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15232                        && LARGE_OFF_T % 2147483647 == 1)
15233                       ? 1 : -1];
15234 #ifdef F77_DUMMY_MAIN
15235 #  ifdef __cplusplus
15236      extern "C"
15237 #  endif
15238    int F77_DUMMY_MAIN() { return 1; }
15239 #endif
15240 int
15241 main ()
15242 {
15243
15244   ;
15245   return 0;
15246 }
15247 _ACEOF
15248          rm -f conftest.$ac_objext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15250   (eval $ac_compile) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -s conftest.$ac_objext'
15255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256   (eval $ac_try) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); }; }; then
15260   break
15261 else
15262   echo "$as_me: failed program was:" >&5
15263 cat conftest.$ac_ext >&5
15264 fi
15265 rm -f conftest.$ac_objext
15266          CC="$CC -n32"
15267          rm -f conftest.$ac_objext
15268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15269   (eval $ac_compile) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); } &&
15273          { ac_try='test -s conftest.$ac_objext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_cv_sys_largefile_CC=' -n32'; break
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15283 fi
15284 rm -f conftest.$ac_objext
15285          break
15286        done
15287        CC=$ac_save_CC
15288        rm -f conftest.$ac_ext
15289     fi
15290 fi
15291 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15292 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15293   if test "$ac_cv_sys_largefile_CC" != no; then
15294     CC=$CC$ac_cv_sys_largefile_CC
15295   fi
15296
15297   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15298 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15299 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   while :; do
15303   ac_cv_sys_file_offset_bits=no
15304   cat >conftest.$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15306 #include "confdefs.h"
15307 #include <sys/types.h>
15308  /* Check that off_t can represent 2**63 - 1 correctly.
15309     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15310     since some C++ compilers masquerading as C compilers
15311     incorrectly reject 9223372036854775807.  */
15312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15313   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15314                        && LARGE_OFF_T % 2147483647 == 1)
15315                       ? 1 : -1];
15316 #ifdef F77_DUMMY_MAIN
15317 #  ifdef __cplusplus
15318      extern "C"
15319 #  endif
15320    int F77_DUMMY_MAIN() { return 1; }
15321 #endif
15322 int
15323 main ()
15324 {
15325
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15332   (eval $ac_compile) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -s conftest.$ac_objext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   break
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 fi
15347 rm -f conftest.$ac_objext conftest.$ac_ext
15348   cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 #include "confdefs.h"
15351 #define _FILE_OFFSET_BITS 64
15352 #include <sys/types.h>
15353  /* Check that off_t can represent 2**63 - 1 correctly.
15354     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15355     since some C++ compilers masquerading as C compilers
15356     incorrectly reject 9223372036854775807.  */
15357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15358   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15359                        && LARGE_OFF_T % 2147483647 == 1)
15360                       ? 1 : -1];
15361 #ifdef F77_DUMMY_MAIN
15362 #  ifdef __cplusplus
15363      extern "C"
15364 #  endif
15365    int F77_DUMMY_MAIN() { return 1; }
15366 #endif
15367 int
15368 main ()
15369 {
15370
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377   (eval $ac_compile) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } &&
15381          { ac_try='test -s conftest.$ac_objext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387   ac_cv_sys_file_offset_bits=64; break
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 cat conftest.$ac_ext >&5
15391 fi
15392 rm -f conftest.$ac_objext conftest.$ac_ext
15393   break
15394 done
15395 fi
15396 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15397 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
15398 if test "$ac_cv_sys_file_offset_bits" != no; then
15399
15400 cat >>confdefs.h <<_ACEOF
15401 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15402 _ACEOF
15403
15404 fi
15405 rm -f conftest*
15406   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15407 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15408 if test "${ac_cv_sys_large_files+set}" = set; then
15409   echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411   while :; do
15412   ac_cv_sys_large_files=no
15413   cat >conftest.$ac_ext <<_ACEOF
15414 #line $LINENO "configure"
15415 #include "confdefs.h"
15416 #include <sys/types.h>
15417  /* Check that off_t can represent 2**63 - 1 correctly.
15418     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15419     since some C++ compilers masquerading as C compilers
15420     incorrectly reject 9223372036854775807.  */
15421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15422   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15423                        && LARGE_OFF_T % 2147483647 == 1)
15424                       ? 1 : -1];
15425 #ifdef F77_DUMMY_MAIN
15426 #  ifdef __cplusplus
15427      extern "C"
15428 #  endif
15429    int F77_DUMMY_MAIN() { return 1; }
15430 #endif
15431 int
15432 main ()
15433 {
15434
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 rm -f conftest.$ac_objext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441   (eval $ac_compile) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); } &&
15445          { ac_try='test -s conftest.$ac_objext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   break
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 cat conftest.$ac_ext >&5
15455 fi
15456 rm -f conftest.$ac_objext conftest.$ac_ext
15457   cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 #include "confdefs.h"
15460 #define _LARGE_FILES 1
15461 #include <sys/types.h>
15462  /* Check that off_t can represent 2**63 - 1 correctly.
15463     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15464     since some C++ compilers masquerading as C compilers
15465     incorrectly reject 9223372036854775807.  */
15466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15467   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15468                        && LARGE_OFF_T % 2147483647 == 1)
15469                       ? 1 : -1];
15470 #ifdef F77_DUMMY_MAIN
15471 #  ifdef __cplusplus
15472      extern "C"
15473 #  endif
15474    int F77_DUMMY_MAIN() { return 1; }
15475 #endif
15476 int
15477 main ()
15478 {
15479
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486   (eval $ac_compile) 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } &&
15490          { ac_try='test -s conftest.$ac_objext'
15491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492   (eval $ac_try) 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); }; }; then
15496   ac_cv_sys_large_files=1; break
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 fi
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15502   break
15503 done
15504 fi
15505 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15506 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15507 if test "$ac_cv_sys_large_files" != no; then
15508
15509 cat >>confdefs.h <<_ACEOF
15510 #define _LARGE_FILES $ac_cv_sys_large_files
15511 _ACEOF
15512
15513 fi
15514 rm -f conftest*
15515 fi
15516
15517 fi
15518
15519
15520 # Select semaphore implementation type.
15521 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15522
15523 cat >>confdefs.h <<\_ACEOF
15524 #define USE_NAMED_POSIX_SEMAPHORES 1
15525 _ACEOF
15526
15527   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15528 else
15529   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15530
15531 cat >>confdefs.h <<\_ACEOF
15532 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15533 _ACEOF
15534
15535     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15536   else
15537
15538 cat >>confdefs.h <<\_ACEOF
15539 #define USE_SYSV_SEMAPHORES 1
15540 _ACEOF
15541
15542     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15543   fi
15544 fi
15545
15546
15547 # Select shared-memory implementation type.
15548
15549 cat >>confdefs.h <<\_ACEOF
15550 #define USE_SYSV_SHARED_MEMORY 1
15551 _ACEOF
15552
15553 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15554
15555
15556 if test "$enable_nls" = yes ; then
15557
15558   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15559 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15560 if test "${ac_cv_search_gettext+set}" = set; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   ac_func_search_save_LIBS=$LIBS
15564 ac_cv_search_gettext=no
15565 cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15567 #include "confdefs.h"
15568
15569 /* Override any gcc2 internal prototype to avoid an error.  */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 /* We use char because int might match the return type of a gcc2
15574    builtin and then its argument prototype would still apply.  */
15575 char gettext ();
15576 #ifdef F77_DUMMY_MAIN
15577 #  ifdef __cplusplus
15578      extern "C"
15579 #  endif
15580    int F77_DUMMY_MAIN() { return 1; }
15581 #endif
15582 int
15583 main ()
15584 {
15585 gettext ();
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15592   (eval $ac_link) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } &&
15596          { ac_try='test -s conftest$ac_exeext'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   ac_cv_search_gettext="none required"
15603 else
15604   echo "$as_me: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 fi
15607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15608 if test "$ac_cv_search_gettext" = no; then
15609   for ac_lib in intl; do
15610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15611     cat >conftest.$ac_ext <<_ACEOF
15612 #line $LINENO "configure"
15613 #include "confdefs.h"
15614
15615 /* Override any gcc2 internal prototype to avoid an error.  */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 /* We use char because int might match the return type of a gcc2
15620    builtin and then its argument prototype would still apply.  */
15621 char gettext ();
15622 #ifdef F77_DUMMY_MAIN
15623 #  ifdef __cplusplus
15624      extern "C"
15625 #  endif
15626    int F77_DUMMY_MAIN() { return 1; }
15627 #endif
15628 int
15629 main ()
15630 {
15631 gettext ();
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638   (eval $ac_link) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } &&
15642          { ac_try='test -s conftest$ac_exeext'
15643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644   (eval $ac_try) 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; }; then
15648   ac_cv_search_gettext="-l$ac_lib"
15649 break
15650 else
15651   echo "$as_me: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15653 fi
15654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15655   done
15656 fi
15657 LIBS=$ac_func_search_save_LIBS
15658 fi
15659 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15660 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15661 if test "$ac_cv_search_gettext" != no; then
15662   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15663
15664 else
15665   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15666 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15667    { (exit 1); exit 1; }; }
15668 fi
15669
15670   if test "${ac_cv_header_libintl_h+set}" = set; then
15671   echo "$as_me:$LINENO: checking for libintl.h" >&5
15672 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15673 if test "${ac_cv_header_libintl_h+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 fi
15676 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15677 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15678 else
15679   # Is the header compilable?
15680 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15681 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15682 cat >conftest.$ac_ext <<_ACEOF
15683 #line $LINENO "configure"
15684 #include "confdefs.h"
15685 $ac_includes_default
15686 #include <libintl.h>
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690   (eval $ac_compile) 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } &&
15694          { ac_try='test -s conftest.$ac_objext'
15695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696   (eval $ac_try) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   ac_header_compiler=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15704 ac_header_compiler=no
15705 fi
15706 rm -f conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6
15709
15710 # Is the header present?
15711 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15712 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 #include "confdefs.h"
15716 #include <libintl.h>
15717 _ACEOF
15718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15720   ac_status=$?
15721   egrep -v '^ *\+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } >/dev/null; then
15726   if test -s conftest.err; then
15727     ac_cpp_err=$ac_c_preproc_warn_flag
15728   else
15729     ac_cpp_err=
15730   fi
15731 else
15732   ac_cpp_err=yes
15733 fi
15734 if test -z "$ac_cpp_err"; then
15735   ac_header_preproc=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738   cat conftest.$ac_ext >&5
15739   ac_header_preproc=no
15740 fi
15741 rm -f conftest.err conftest.$ac_ext
15742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15743 echo "${ECHO_T}$ac_header_preproc" >&6
15744
15745 # So?  What about this header?
15746 case $ac_header_compiler:$ac_header_preproc in
15747   yes:no )
15748     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15749 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15750     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15751 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15752   no:yes )
15753     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15754 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15756 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15757     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15758 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15759 esac
15760 echo "$as_me:$LINENO: checking for libintl.h" >&5
15761 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15762 if test "${ac_cv_header_libintl_h+set}" = set; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765   ac_cv_header_libintl_h=$ac_header_preproc
15766 fi
15767 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15768 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15769
15770 fi
15771 if test $ac_cv_header_libintl_h = yes; then
15772   :
15773 else
15774   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15775 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15776    { (exit 1); exit 1; }; }
15777 fi
15778
15779
15780   for ac_prog in msgfmt
15781 do
15782   # Extract the first word of "$ac_prog", so it can be a program name with args.
15783 set dummy $ac_prog; ac_word=$2
15784 echo "$as_me:$LINENO: checking for $ac_word" >&5
15785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15786 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   if test -n "$MSGFMT"; then
15790   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15791 else
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15794 do
15795   IFS=$as_save_IFS
15796   test -z "$as_dir" && as_dir=.
15797   for ac_exec_ext in '' $ac_executable_extensions; do
15798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799     ac_cv_prog_MSGFMT="$ac_prog"
15800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15801     break 2
15802   fi
15803 done
15804 done
15805
15806 fi
15807 fi
15808 MSGFMT=$ac_cv_prog_MSGFMT
15809 if test -n "$MSGFMT"; then
15810   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15811 echo "${ECHO_T}$MSGFMT" >&6
15812 else
15813   echo "$as_me:$LINENO: result: no" >&5
15814 echo "${ECHO_T}no" >&6
15815 fi
15816
15817   test -n "$MSGFMT" && break
15818 done
15819
15820   if test -z "$MSGFMT"; then
15821     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15822 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15823    { (exit 1); exit 1; }; }
15824   fi
15825   for ac_prog in msgmerge
15826 do
15827   # Extract the first word of "$ac_prog", so it can be a program name with args.
15828 set dummy $ac_prog; ac_word=$2
15829 echo "$as_me:$LINENO: checking for $ac_word" >&5
15830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15831 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15832   echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834   if test -n "$MSGMERGE"; then
15835   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15836 else
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15839 do
15840   IFS=$as_save_IFS
15841   test -z "$as_dir" && as_dir=.
15842   for ac_exec_ext in '' $ac_executable_extensions; do
15843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844     ac_cv_prog_MSGMERGE="$ac_prog"
15845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15846     break 2
15847   fi
15848 done
15849 done
15850
15851 fi
15852 fi
15853 MSGMERGE=$ac_cv_prog_MSGMERGE
15854 if test -n "$MSGMERGE"; then
15855   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15856 echo "${ECHO_T}$MSGMERGE" >&6
15857 else
15858   echo "$as_me:$LINENO: result: no" >&5
15859 echo "${ECHO_T}no" >&6
15860 fi
15861
15862   test -n "$MSGMERGE" && break
15863 done
15864
15865   for ac_prog in xgettext
15866 do
15867   # Extract the first word of "$ac_prog", so it can be a program name with args.
15868 set dummy $ac_prog; ac_word=$2
15869 echo "$as_me:$LINENO: checking for $ac_word" >&5
15870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15871 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15872   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874   if test -n "$XGETTEXT"; then
15875   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15876 else
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15879 do
15880   IFS=$as_save_IFS
15881   test -z "$as_dir" && as_dir=.
15882   for ac_exec_ext in '' $ac_executable_extensions; do
15883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884     ac_cv_prog_XGETTEXT="$ac_prog"
15885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15886     break 2
15887   fi
15888 done
15889 done
15890
15891 fi
15892 fi
15893 XGETTEXT=$ac_cv_prog_XGETTEXT
15894 if test -n "$XGETTEXT"; then
15895   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15896 echo "${ECHO_T}$XGETTEXT" >&6
15897 else
15898   echo "$as_me:$LINENO: result: no" >&5
15899 echo "${ECHO_T}no" >&6
15900 fi
15901
15902   test -n "$XGETTEXT" && break
15903 done
15904
15905
15906   # Note: share/locale is always the default, independent of $datadir
15907   localedir='${prefix}/share/locale'
15908   if test x"$prefix" = x"NONE"; then
15909     exp_localedir="$ac_default_prefix/share/locale"
15910   else
15911     exp_localedir="$prefix/share/locale"
15912   fi
15913
15914
15915
15916 cat >>confdefs.h <<_ACEOF
15917 #define LOCALEDIR "$exp_localedir"
15918 _ACEOF
15919
15920
15921 fi
15922
15923 # Check for Tcl configuration script tclConfig.sh
15924 if test "$with_tcl" = yes; then
15925     for ac_prog in tclsh tcl
15926 do
15927   # Extract the first word of "$ac_prog", so it can be a program name with args.
15928 set dummy $ac_prog; ac_word=$2
15929 echo "$as_me:$LINENO: checking for $ac_word" >&5
15930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15931 if test "${ac_cv_path_TCLSH+set}" = set; then
15932   echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934   case $TCLSH in
15935   [\\/]* | ?:[\\/]*)
15936   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15937   ;;
15938   *)
15939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15941 do
15942   IFS=$as_save_IFS
15943   test -z "$as_dir" && as_dir=.
15944   for ac_exec_ext in '' $ac_executable_extensions; do
15945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15948     break 2
15949   fi
15950 done
15951 done
15952
15953   ;;
15954 esac
15955 fi
15956 TCLSH=$ac_cv_path_TCLSH
15957
15958 if test -n "$TCLSH"; then
15959   echo "$as_me:$LINENO: result: $TCLSH" >&5
15960 echo "${ECHO_T}$TCLSH" >&6
15961 else
15962   echo "$as_me:$LINENO: result: no" >&5
15963 echo "${ECHO_T}no" >&6
15964 fi
15965
15966   test -n "$TCLSH" && break
15967 done
15968
15969 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15970 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15971 # Let user override test
15972 if test -z "$TCL_CONFIG_SH"; then
15973     pgac_test_dirs="$with_tclconfig"
15974
15975     set X $pgac_test_dirs; shift
15976     if test $# -eq 0; then
15977         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15978 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15979    { (exit 1); exit 1; }; }
15980         set X `echo 'puts $auto_path' | $TCLSH`; shift
15981     fi
15982
15983     for pgac_dir do
15984         if test -r "$pgac_dir/tclConfig.sh"; then
15985             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15986             break
15987         fi
15988     done
15989 fi
15990
15991 if test -z "$TCL_CONFIG_SH"; then
15992     echo "$as_me:$LINENO: result: no" >&5
15993 echo "${ECHO_T}no" >&6
15994     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15995 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15996    { (exit 1); exit 1; }; }
15997 else
15998     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15999 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16000 fi
16001
16002
16003
16004     . "$TCL_CONFIG_SH"
16005 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16006 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16007 eval TCL_LIBS=\"$TCL_LIBS\"
16008 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16009 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16010
16011     fi
16012
16013 # Check for Tk configuration script tkConfig.sh
16014 if test "$with_tk" = yes; then
16015     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16016 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16017 # Let user override test
16018 if test -z "$TK_CONFIG_SH"; then
16019     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16020
16021     set X $pgac_test_dirs; shift
16022     if test $# -eq 0; then
16023         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16024 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16025    { (exit 1); exit 1; }; }
16026         set X `echo 'puts $auto_path' | $TCLSH`; shift
16027     fi
16028
16029     for pgac_dir do
16030         if test -r "$pgac_dir/tkConfig.sh"; then
16031             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16032             break
16033         fi
16034     done
16035 fi
16036
16037 if test -z "$TK_CONFIG_SH"; then
16038     echo "$as_me:$LINENO: result: no" >&5
16039 echo "${ECHO_T}no" >&6
16040     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16041 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16042    { (exit 1); exit 1; }; }
16043 else
16044     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16045 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16046 fi
16047
16048
16049
16050     . "$TK_CONFIG_SH"
16051 eval TK_LIBS=\"$TK_LIBS\"
16052 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16053 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16054
16055 fi
16056
16057
16058 #
16059 # Check for DocBook and tools
16060 #
16061 for ac_prog in onsgmls nsgmls
16062 do
16063   # Extract the first word of "$ac_prog", so it can be a program name with args.
16064 set dummy $ac_prog; ac_word=$2
16065 echo "$as_me:$LINENO: checking for $ac_word" >&5
16066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16067 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070   if test -n "$NSGMLS"; then
16071   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16072 else
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16075 do
16076   IFS=$as_save_IFS
16077   test -z "$as_dir" && as_dir=.
16078   for ac_exec_ext in '' $ac_executable_extensions; do
16079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080     ac_cv_prog_NSGMLS="$ac_prog"
16081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16082     break 2
16083   fi
16084 done
16085 done
16086
16087 fi
16088 fi
16089 NSGMLS=$ac_cv_prog_NSGMLS
16090 if test -n "$NSGMLS"; then
16091   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16092 echo "${ECHO_T}$NSGMLS" >&6
16093 else
16094   echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6
16096 fi
16097
16098   test -n "$NSGMLS" && break
16099 done
16100
16101 for ac_prog in openjade jade
16102 do
16103   # Extract the first word of "$ac_prog", so it can be a program name with args.
16104 set dummy $ac_prog; ac_word=$2
16105 echo "$as_me:$LINENO: checking for $ac_word" >&5
16106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16107 if test "${ac_cv_prog_JADE+set}" = set; then
16108   echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110   if test -n "$JADE"; then
16111   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16112 else
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16115 do
16116   IFS=$as_save_IFS
16117   test -z "$as_dir" && as_dir=.
16118   for ac_exec_ext in '' $ac_executable_extensions; do
16119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120     ac_cv_prog_JADE="$ac_prog"
16121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16122     break 2
16123   fi
16124 done
16125 done
16126
16127 fi
16128 fi
16129 JADE=$ac_cv_prog_JADE
16130 if test -n "$JADE"; then
16131   echo "$as_me:$LINENO: result: $JADE" >&5
16132 echo "${ECHO_T}$JADE" >&6
16133 else
16134   echo "$as_me:$LINENO: result: no" >&5
16135 echo "${ECHO_T}no" >&6
16136 fi
16137
16138   test -n "$JADE" && break
16139 done
16140
16141
16142 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16143 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16144 if test "${pgac_cv_check_docbook+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   cat >conftest.sgml <<EOF
16148 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16149 <book>
16150  <title>test</title>
16151  <chapter>
16152   <title>random</title>
16153    <sect1>
16154     <title>testsect</title>
16155     <para>text</para>
16156   </sect1>
16157  </chapter>
16158 </book>
16159 EOF
16160
16161 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16162 if test $? -eq 0; then
16163   pgac_cv_check_docbook=yes
16164 else
16165   pgac_cv_check_docbook=no
16166 fi
16167 rm -f conftest.sgml
16168 fi
16169 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16170 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16171
16172 have_docbook=$pgac_cv_check_docbook
16173
16174
16175 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16176 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16177 if test "${pgac_cv_path_stylesheets+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   if test -n "$DOCBOOKSTYLE"; then
16181   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16182 else
16183   for pgac_prefix in /usr /usr/local /opt; do
16184     for pgac_infix in share lib; do
16185       for pgac_postfix in \
16186         sgml/stylesheets/nwalsh-modular \
16187         sgml/stylesheets/docbook \
16188         sgml/docbook/dsssl/modular \
16189         sgml/docbook/stylesheet/dsssl/modular \
16190         sgml/docbook/dsssl-stylesheets
16191       do
16192         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16193         if test -r "$pgac_candidate/html/docbook.dsl" \
16194            && test -r "$pgac_candidate/print/docbook.dsl"
16195         then
16196           pgac_cv_path_stylesheets=$pgac_candidate
16197           break 3
16198         fi
16199       done
16200     done
16201   done
16202 fi
16203 fi
16204
16205 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16206
16207 if test -n "$DOCBOOKSTYLE"; then
16208   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16209 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16210 else
16211   echo "$as_me:$LINENO: result: no" >&5
16212 echo "${ECHO_T}no" >&6
16213 fi
16214 if test -n "$DOCBOOKSTYLE"; then
16215   for ac_prog in collateindex.pl
16216 do
16217   # Extract the first word of "$ac_prog", so it can be a program name with args.
16218 set dummy $ac_prog; ac_word=$2
16219 echo "$as_me:$LINENO: checking for $ac_word" >&5
16220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16221 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16222   echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224   case $COLLATEINDEX in
16225   [\\/]* | ?:[\\/]*)
16226   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16227   ;;
16228   *)
16229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16230 for as_dir in $DOCBOOKSTYLE/bin $PATH
16231 do
16232   IFS=$as_save_IFS
16233   test -z "$as_dir" && as_dir=.
16234   for ac_exec_ext in '' $ac_executable_extensions; do
16235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16236     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16238     break 2
16239   fi
16240 done
16241 done
16242
16243   ;;
16244 esac
16245 fi
16246 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16247
16248 if test -n "$COLLATEINDEX"; then
16249   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16250 echo "${ECHO_T}$COLLATEINDEX" >&6
16251 else
16252   echo "$as_me:$LINENO: result: no" >&5
16253 echo "${ECHO_T}no" >&6
16254 fi
16255
16256   test -n "$COLLATEINDEX" && break
16257 done
16258
16259 else
16260   for ac_prog in collateindex.pl
16261 do
16262   # Extract the first word of "$ac_prog", so it can be a program name with args.
16263 set dummy $ac_prog; ac_word=$2
16264 echo "$as_me:$LINENO: checking for $ac_word" >&5
16265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16266 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16267   echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269   case $COLLATEINDEX in
16270   [\\/]* | ?:[\\/]*)
16271   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16272   ;;
16273   *)
16274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16275 for as_dir in $PATH
16276 do
16277   IFS=$as_save_IFS
16278   test -z "$as_dir" && as_dir=.
16279   for ac_exec_ext in '' $ac_executable_extensions; do
16280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16281     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16283     break 2
16284   fi
16285 done
16286 done
16287
16288   ;;
16289 esac
16290 fi
16291 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16292
16293 if test -n "$COLLATEINDEX"; then
16294   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16295 echo "${ECHO_T}$COLLATEINDEX" >&6
16296 else
16297   echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6
16299 fi
16300
16301   test -n "$COLLATEINDEX" && break
16302 done
16303
16304 fi
16305 for ac_prog in sgmlspl
16306 do
16307   # Extract the first word of "$ac_prog", so it can be a program name with args.
16308 set dummy $ac_prog; ac_word=$2
16309 echo "$as_me:$LINENO: checking for $ac_word" >&5
16310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16311 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   if test -n "$SGMLSPL"; then
16315   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16316 else
16317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16318 for as_dir in $PATH
16319 do
16320   IFS=$as_save_IFS
16321   test -z "$as_dir" && as_dir=.
16322   for ac_exec_ext in '' $ac_executable_extensions; do
16323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16324     ac_cv_prog_SGMLSPL="$ac_prog"
16325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16326     break 2
16327   fi
16328 done
16329 done
16330
16331 fi
16332 fi
16333 SGMLSPL=$ac_cv_prog_SGMLSPL
16334 if test -n "$SGMLSPL"; then
16335   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16336 echo "${ECHO_T}$SGMLSPL" >&6
16337 else
16338   echo "$as_me:$LINENO: result: no" >&5
16339 echo "${ECHO_T}no" >&6
16340 fi
16341
16342   test -n "$SGMLSPL" && break
16343 done
16344
16345
16346
16347 # prepare build tree if outside source tree
16348 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16349 # Note 2: /bin/pwd might be better than shell's built-in at getting
16350 #         a symlink-free name.
16351 if test "$no_create" != yes; then
16352   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16353     :
16354   else
16355     vpath_build=yes
16356
16357     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16358     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16359     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16360       || { { echo "$as_me:$LINENO: error: failed" >&5
16361 echo "$as_me: error: failed" >&2;}
16362    { (exit 1); exit 1; }; }
16363     echo "$as_me:$LINENO: result: done" >&5
16364 echo "${ECHO_T}done" >&6
16365   fi
16366 fi
16367
16368
16369 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16370
16371
16372 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}"
16373
16374
16375 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16376
16377
16378 cat >confcache <<\_ACEOF
16379 # This file is a shell script that caches the results of configure
16380 # tests run on this system so they can be shared between configure
16381 # scripts and configure runs, see configure's option --config-cache.
16382 # It is not useful on other systems.  If it contains results you don't
16383 # want to keep, you may remove or edit it.
16384 #
16385 # config.status only pays attention to the cache file if you give it
16386 # the --recheck option to rerun configure.
16387 #
16388 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16390 # following values.
16391
16392 _ACEOF
16393
16394 # The following way of writing the cache mishandles newlines in values,
16395 # but we know of no workaround that is simple, portable, and efficient.
16396 # So, don't put newlines in cache variables' values.
16397 # Ultrix sh set writes to stderr and can't be redirected directly,
16398 # and sets the high bit in the cache file unless we assign to the vars.
16399 {
16400   (set) 2>&1 |
16401     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16402     *ac_space=\ *)
16403       # `set' does not quote correctly, so add quotes (double-quote
16404       # substitution turns \\\\ into \\, and sed turns \\ into \).
16405       sed -n \
16406         "s/'/'\\\\''/g;
16407           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16408       ;;
16409     *)
16410       # `set' quotes correctly as required by POSIX, so do not add quotes.
16411       sed -n \
16412         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16413       ;;
16414     esac;
16415 } |
16416   sed '
16417      t clear
16418      : clear
16419      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16420      t end
16421      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16422      : end' >>confcache
16423 if cmp -s $cache_file confcache; then :; else
16424   if test -w $cache_file; then
16425     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16426     cat confcache >$cache_file
16427   else
16428     echo "not updating unwritable cache $cache_file"
16429   fi
16430 fi
16431 rm -f confcache
16432
16433 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16434 # Let make expand exec_prefix.
16435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16436
16437 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16439 # trailing colons and then remove the whole line if VPATH becomes empty
16440 # (actually we leave an empty line to preserve line numbers).
16441 if test "x$srcdir" = x.; then
16442   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16443 s/:*\$(srcdir):*/:/;
16444 s/:*\${srcdir}:*/:/;
16445 s/:*@srcdir@:*/:/;
16446 s/^\([^=]*=[    ]*\):*/\1/;
16447 s/:*$//;
16448 s/^[^=]*=[      ]*$//;
16449 }'
16450 fi
16451
16452 DEFS=-DHAVE_CONFIG_H
16453
16454
16455 : ${CONFIG_STATUS=./config.status}
16456 ac_clean_files_save=$ac_clean_files
16457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16460 cat >$CONFIG_STATUS <<_ACEOF
16461 #! $SHELL
16462 # Generated by $as_me.
16463 # Run this file to recreate the current configuration.
16464 # Compiler output produced by configure, useful for debugging
16465 # configure, is in config.log if it exists.
16466
16467 debug=false
16468 SHELL=\${CONFIG_SHELL-$SHELL}
16469 _ACEOF
16470
16471 cat >>$CONFIG_STATUS <<\_ACEOF
16472
16473 ## --------------------- ##
16474 ## M4sh Initialization.  ##
16475 ## --------------------- ##
16476
16477 # Be Bourne compatible
16478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16479   emulate sh
16480   NULLCMD=:
16481 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16482   set -o posix
16483 fi
16484
16485 # NLS nuisances.
16486 # Support unset when possible.
16487 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16488   as_unset=unset
16489 else
16490   as_unset=false
16491 fi
16492
16493 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16494     { $as_unset LANG || test "${LANG+set}" != set; } ||
16495       { LANG=C; export LANG; }
16496 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16497     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16498       { LC_ALL=C; export LC_ALL; }
16499 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16500     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16501       { LC_TIME=C; export LC_TIME; }
16502 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16503     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16504       { LC_CTYPE=C; export LC_CTYPE; }
16505 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16506     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16507       { LANGUAGE=C; export LANGUAGE; }
16508 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16509     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16510       { LC_COLLATE=C; export LC_COLLATE; }
16511 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16512     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16513       { LC_NUMERIC=C; export LC_NUMERIC; }
16514 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16515     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16516       { LC_MESSAGES=C; export LC_MESSAGES; }
16517
16518
16519 # Name of the executable.
16520 as_me=`(basename "$0") 2>/dev/null ||
16521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16522          X"$0" : 'X\(//\)$' \| \
16523          X"$0" : 'X\(/\)$' \| \
16524          .     : '\(.\)' 2>/dev/null ||
16525 echo X/"$0" |
16526     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16527           /^X\/\(\/\/\)$/{ s//\1/; q; }
16528           /^X\/\(\/\).*/{ s//\1/; q; }
16529           s/.*/./; q'`
16530
16531 # PATH needs CR, and LINENO needs CR and PATH.
16532 # Avoid depending upon Character Ranges.
16533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16536 as_cr_digits='0123456789'
16537 as_cr_alnum=$as_cr_Letters$as_cr_digits
16538
16539 # The user is always right.
16540 if test "${PATH_SEPARATOR+set}" != set; then
16541   echo "#! /bin/sh" >conftest.sh
16542   echo  "exit 0"   >>conftest.sh
16543   chmod +x conftest.sh
16544   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16545     PATH_SEPARATOR=';'
16546   else
16547     PATH_SEPARATOR=:
16548   fi
16549   rm -f conftest.sh
16550 fi
16551
16552
16553   as_lineno_1=$LINENO
16554   as_lineno_2=$LINENO
16555   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16556   test "x$as_lineno_1" != "x$as_lineno_2" &&
16557   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16558   # Find who we are.  Look in the path if we contain no path at all
16559   # relative or not.
16560   case $0 in
16561     *[\\/]* ) as_myself=$0 ;;
16562     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563 for as_dir in $PATH
16564 do
16565   IFS=$as_save_IFS
16566   test -z "$as_dir" && as_dir=.
16567   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16568 done
16569
16570        ;;
16571   esac
16572   # We did not find ourselves, most probably we were run as `sh COMMAND'
16573   # in which case we are not to be found in the path.
16574   if test "x$as_myself" = x; then
16575     as_myself=$0
16576   fi
16577   if test ! -f "$as_myself"; then
16578     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16580    { (exit 1); exit 1; }; }
16581   fi
16582   case $CONFIG_SHELL in
16583   '')
16584     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16585 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16586 do
16587   IFS=$as_save_IFS
16588   test -z "$as_dir" && as_dir=.
16589   for as_base in sh bash ksh sh5; do
16590          case $as_dir in
16591          /*)
16592            if ("$as_dir/$as_base" -c '
16593   as_lineno_1=$LINENO
16594   as_lineno_2=$LINENO
16595   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16596   test "x$as_lineno_1" != "x$as_lineno_2" &&
16597   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16598              CONFIG_SHELL=$as_dir/$as_base
16599              export CONFIG_SHELL
16600              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16601            fi;;
16602          esac
16603        done
16604 done
16605 ;;
16606   esac
16607
16608   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16609   # uniformly replaced by the line number.  The first 'sed' inserts a
16610   # line-number line before each line; the second 'sed' does the real
16611   # work.  The second script uses 'N' to pair each line-number line
16612   # with the numbered line, and appends trailing '-' during
16613   # substitution so that $LINENO is not a special case at line end.
16614   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16615   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16616   sed '=' <$as_myself |
16617     sed '
16618       N
16619       s,$,-,
16620       : loop
16621       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16622       t loop
16623       s,-$,,
16624       s,^['$as_cr_digits']*\n,,
16625     ' >$as_me.lineno &&
16626   chmod +x $as_me.lineno ||
16627     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16628 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16629    { (exit 1); exit 1; }; }
16630
16631   # Don't try to exec as it changes $[0], causing all sort of problems
16632   # (the dirname of $[0] is not the place where we might find the
16633   # original and so on.  Autoconf is especially sensible to this).
16634   . ./$as_me.lineno
16635   # Exit status is that of the last command.
16636   exit
16637 }
16638
16639
16640 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16641   *c*,-n*) ECHO_N= ECHO_C='
16642 ' ECHO_T='      ' ;;
16643   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16644   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16645 esac
16646
16647 if expr a : '\(a\)' >/dev/null 2>&1; then
16648   as_expr=expr
16649 else
16650   as_expr=false
16651 fi
16652
16653 rm -f conf$$ conf$$.exe conf$$.file
16654 echo >conf$$.file
16655 if ln -s conf$$.file conf$$ 2>/dev/null; then
16656   # We could just check for DJGPP; but this test a) works b) is more generic
16657   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16658   if test -f conf$$.exe; then
16659     # Don't use ln at all; we don't have any links
16660     as_ln_s='cp -p'
16661   else
16662     as_ln_s='ln -s'
16663   fi
16664 elif ln conf$$.file conf$$ 2>/dev/null; then
16665   as_ln_s=ln
16666 else
16667   as_ln_s='cp -p'
16668 fi
16669 rm -f conf$$ conf$$.exe conf$$.file
16670
16671 as_executable_p="test -f"
16672
16673 # Sed expression to map a string onto a valid CPP name.
16674 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16675
16676 # Sed expression to map a string onto a valid variable name.
16677 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16678
16679
16680 # IFS
16681 # We need space, tab and new line, in precisely that order.
16682 as_nl='
16683 '
16684 IFS="   $as_nl"
16685
16686 # CDPATH.
16687 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16688
16689 exec 6>&1
16690
16691 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16692 # report actual input values of CONFIG_FILES etc. instead of their
16693 # values after options handling.  Logging --version etc. is OK.
16694 exec 5>>config.log
16695 {
16696   echo
16697   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16698 ## Running $as_me. ##
16699 _ASBOX
16700 } >&5
16701 cat >&5 <<_CSEOF
16702
16703 This file was extended by PostgreSQL $as_me 7.4devel, which was
16704 generated by GNU Autoconf 2.53.  Invocation command line was
16705
16706   CONFIG_FILES    = $CONFIG_FILES
16707   CONFIG_HEADERS  = $CONFIG_HEADERS
16708   CONFIG_LINKS    = $CONFIG_LINKS
16709   CONFIG_COMMANDS = $CONFIG_COMMANDS
16710   $ $0 $@
16711
16712 _CSEOF
16713 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16714 echo >&5
16715 _ACEOF
16716
16717 # Files that config.status was made for.
16718 if test -n "$ac_config_files"; then
16719   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16720 fi
16721
16722 if test -n "$ac_config_headers"; then
16723   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16724 fi
16725
16726 if test -n "$ac_config_links"; then
16727   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16728 fi
16729
16730 if test -n "$ac_config_commands"; then
16731   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16732 fi
16733
16734 cat >>$CONFIG_STATUS <<\_ACEOF
16735
16736 ac_cs_usage="\
16737 \`$as_me' instantiates files from templates according to the
16738 current configuration.
16739
16740 Usage: $0 [OPTIONS] [FILE]...
16741
16742   -h, --help       print this help, then exit
16743   -V, --version    print version number, then exit
16744   -d, --debug      don't remove temporary files
16745       --recheck    update $as_me by reconfiguring in the same conditions
16746   --file=FILE[:TEMPLATE]
16747                    instantiate the configuration file FILE
16748   --header=FILE[:TEMPLATE]
16749                    instantiate the configuration header FILE
16750
16751 Configuration files:
16752 $config_files
16753
16754 Configuration headers:
16755 $config_headers
16756
16757 Configuration links:
16758 $config_links
16759
16760 Report bugs to <bug-autoconf@gnu.org>."
16761 _ACEOF
16762
16763 cat >>$CONFIG_STATUS <<_ACEOF
16764 ac_cs_version="\\
16765 PostgreSQL config.status 7.4devel
16766 configured by $0, generated by GNU Autoconf 2.53,
16767   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16768
16769 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16770 Free Software Foundation, Inc.
16771 This config.status script is free software; the Free Software Foundation
16772 gives unlimited permission to copy, distribute and modify it."
16773 srcdir=$srcdir
16774 _ACEOF
16775
16776 cat >>$CONFIG_STATUS <<\_ACEOF
16777 # If no file are specified by the user, then we need to provide default
16778 # value.  By we need to know if files were specified by the user.
16779 ac_need_defaults=:
16780 while test $# != 0
16781 do
16782   case $1 in
16783   --*=*)
16784     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16785     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16786     shift
16787     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16788     shift
16789     ;;
16790   -*);;
16791   *) # This is not an option, so the user has probably given explicit
16792      # arguments.
16793      ac_need_defaults=false;;
16794   esac
16795
16796   case $1 in
16797   # Handling of the options.
16798 _ACEOF
16799 cat >>$CONFIG_STATUS <<_ACEOF
16800   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16801     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16802     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16803 _ACEOF
16804 cat >>$CONFIG_STATUS <<\_ACEOF
16805   --version | --vers* | -V )
16806     echo "$ac_cs_version"; exit 0 ;;
16807   --he | --h)
16808     # Conflict between --help and --header
16809     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16810 Try \`$0 --help' for more information." >&5
16811 echo "$as_me: error: ambiguous option: $1
16812 Try \`$0 --help' for more information." >&2;}
16813    { (exit 1); exit 1; }; };;
16814   --help | --hel | -h )
16815     echo "$ac_cs_usage"; exit 0 ;;
16816   --debug | --d* | -d )
16817     debug=: ;;
16818   --file | --fil | --fi | --f )
16819     shift
16820     CONFIG_FILES="$CONFIG_FILES $1"
16821     ac_need_defaults=false;;
16822   --header | --heade | --head | --hea )
16823     shift
16824     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16825     ac_need_defaults=false;;
16826
16827   # This is an error.
16828   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16829 Try \`$0 --help' for more information." >&5
16830 echo "$as_me: error: unrecognized option: $1
16831 Try \`$0 --help' for more information." >&2;}
16832    { (exit 1); exit 1; }; } ;;
16833
16834   *) ac_config_targets="$ac_config_targets $1" ;;
16835
16836   esac
16837   shift
16838 done
16839
16840 _ACEOF
16841
16842
16843
16844
16845
16846 cat >>$CONFIG_STATUS <<\_ACEOF
16847 for ac_config_target in $ac_config_targets
16848 do
16849   case "$ac_config_target" in
16850   # Handling of arguments.
16851   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16852   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16853   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16854   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16855   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16856   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16857   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16858   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16859   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16860   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16861   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16862 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16863    { (exit 1); exit 1; }; };;
16864   esac
16865 done
16866
16867 # If the user did not use the arguments to specify the items to instantiate,
16868 # then the envvar interface is used.  Set only those that are not.
16869 # We use the long form for the default assignment because of an extremely
16870 # bizarre bug on SunOS 4.1.3.
16871 if $ac_need_defaults; then
16872   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16873   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16874   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16875 fi
16876
16877 # Create a temporary directory, and hook for its removal unless debugging.
16878 $debug ||
16879 {
16880   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16881   trap '{ (exit 1); exit 1; }' 1 2 13 15
16882 }
16883
16884 # Create a (secure) tmp directory for tmp files.
16885 : ${TMPDIR=/tmp}
16886 {
16887   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16888   test -n "$tmp" && test -d "$tmp"
16889 }  ||
16890 {
16891   tmp=$TMPDIR/cs$$-$RANDOM
16892   (umask 077 && mkdir $tmp)
16893 } ||
16894 {
16895    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16896    { (exit 1); exit 1; }
16897 }
16898
16899 _ACEOF
16900
16901 cat >>$CONFIG_STATUS <<_ACEOF
16902
16903 #
16904 # CONFIG_FILES section.
16905 #
16906
16907 # No need to generate the scripts if there are no CONFIG_FILES.
16908 # This happens for instance when ./config.status config.h
16909 if test -n "\$CONFIG_FILES"; then
16910   # Protect against being on the right side of a sed subst in config.status.
16911   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16912    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16913 s,@SHELL@,$SHELL,;t t
16914 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16915 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16916 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16917 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16918 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16919 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16920 s,@exec_prefix@,$exec_prefix,;t t
16921 s,@prefix@,$prefix,;t t
16922 s,@program_transform_name@,$program_transform_name,;t t
16923 s,@bindir@,$bindir,;t t
16924 s,@sbindir@,$sbindir,;t t
16925 s,@libexecdir@,$libexecdir,;t t
16926 s,@datadir@,$datadir,;t t
16927 s,@sysconfdir@,$sysconfdir,;t t
16928 s,@sharedstatedir@,$sharedstatedir,;t t
16929 s,@localstatedir@,$localstatedir,;t t
16930 s,@libdir@,$libdir,;t t
16931 s,@includedir@,$includedir,;t t
16932 s,@oldincludedir@,$oldincludedir,;t t
16933 s,@infodir@,$infodir,;t t
16934 s,@mandir@,$mandir,;t t
16935 s,@build_alias@,$build_alias,;t t
16936 s,@host_alias@,$host_alias,;t t
16937 s,@target_alias@,$target_alias,;t t
16938 s,@DEFS@,$DEFS,;t t
16939 s,@ECHO_C@,$ECHO_C,;t t
16940 s,@ECHO_N@,$ECHO_N,;t t
16941 s,@ECHO_T@,$ECHO_T,;t t
16942 s,@LIBS@,$LIBS,;t t
16943 s,@docdir@,$docdir,;t t
16944 s,@configure_args@,$configure_args,;t t
16945 s,@build@,$build,;t t
16946 s,@build_cpu@,$build_cpu,;t t
16947 s,@build_vendor@,$build_vendor,;t t
16948 s,@build_os@,$build_os,;t t
16949 s,@host@,$host,;t t
16950 s,@host_cpu@,$host_cpu,;t t
16951 s,@host_vendor@,$host_vendor,;t t
16952 s,@host_os@,$host_os,;t t
16953 s,@PORTNAME@,$PORTNAME,;t t
16954 s,@TAS@,$TAS,;t t
16955 s,@enable_nls@,$enable_nls,;t t
16956 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16957 s,@default_port@,$default_port,;t t
16958 s,@enable_shared@,$enable_shared,;t t
16959 s,@enable_rpath@,$enable_rpath,;t t
16960 s,@enable_debug@,$enable_debug,;t t
16961 s,@CC@,$CC,;t t
16962 s,@CFLAGS@,$CFLAGS,;t t
16963 s,@LDFLAGS@,$LDFLAGS,;t t
16964 s,@CPPFLAGS@,$CPPFLAGS,;t t
16965 s,@ac_ct_CC@,$ac_ct_CC,;t t
16966 s,@EXEEXT@,$EXEEXT,;t t
16967 s,@OBJEXT@,$OBJEXT,;t t
16968 s,@CPP@,$CPP,;t t
16969 s,@GCC@,$GCC,;t t
16970 s,@autodepend@,$autodepend,;t t
16971 s,@INCLUDES@,$INCLUDES,;t t
16972 s,@with_tcl@,$with_tcl,;t t
16973 s,@with_tk@,$with_tk,;t t
16974 s,@with_perl@,$with_perl,;t t
16975 s,@with_python@,$with_python,;t t
16976 s,@ANT@,$ANT,;t t
16977 s,@with_java@,$with_java,;t t
16978 s,@with_krb4@,$with_krb4,;t t
16979 s,@with_krb5@,$with_krb5,;t t
16980 s,@krb_srvtab@,$krb_srvtab,;t t
16981 s,@with_pam@,$with_pam,;t t
16982 s,@with_openssl@,$with_openssl,;t t
16983 s,@ELF_SYS@,$ELF_SYS,;t t
16984 s,@AWK@,$AWK,;t t
16985 s,@FLEX@,$FLEX,;t t
16986 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16987 s,@LN_S@,$LN_S,;t t
16988 s,@LD@,$LD,;t t
16989 s,@with_gnu_ld@,$with_gnu_ld,;t t
16990 s,@ld_R_works@,$ld_R_works,;t t
16991 s,@RANLIB@,$RANLIB,;t t
16992 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16993 s,@LORDER@,$LORDER,;t t
16994 s,@TAR@,$TAR,;t t
16995 s,@STRIP@,$STRIP,;t t
16996 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16997 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16998 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16999 s,@YACC@,$YACC,;t t
17000 s,@YFLAGS@,$YFLAGS,;t t
17001 s,@PERL@,$PERL,;t t
17002 s,@perl_archlibexp@,$perl_archlibexp,;t t
17003 s,@perl_privlibexp@,$perl_privlibexp,;t t
17004 s,@perl_useshrplib@,$perl_useshrplib,;t t
17005 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17006 s,@PYTHON@,$PYTHON,;t t
17007 s,@python_version@,$python_version,;t t
17008 s,@python_prefix@,$python_prefix,;t t
17009 s,@python_execprefix@,$python_execprefix,;t t
17010 s,@python_configdir@,$python_configdir,;t t
17011 s,@python_moduledir@,$python_moduledir,;t t
17012 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17013 s,@python_includespec@,$python_includespec,;t t
17014 s,@python_libspec@,$python_libspec,;t t
17015 s,@LIBOBJS@,$LIBOBJS,;t t
17016 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
17017 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17018 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17019 s,@MSGFMT@,$MSGFMT,;t t
17020 s,@MSGMERGE@,$MSGMERGE,;t t
17021 s,@XGETTEXT@,$XGETTEXT,;t t
17022 s,@localedir@,$localedir,;t t
17023 s,@TCLSH@,$TCLSH,;t t
17024 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17025 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17026 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17027 s,@TCL_LIBS@,$TCL_LIBS,;t t
17028 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17029 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17030 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17031 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17032 s,@TK_LIBS@,$TK_LIBS,;t t
17033 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17034 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17035 s,@NSGMLS@,$NSGMLS,;t t
17036 s,@JADE@,$JADE,;t t
17037 s,@have_docbook@,$have_docbook,;t t
17038 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17039 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17040 s,@SGMLSPL@,$SGMLSPL,;t t
17041 s,@vpath_build@,$vpath_build,;t t
17042 CEOF
17043
17044 _ACEOF
17045
17046   cat >>$CONFIG_STATUS <<\_ACEOF
17047   # Split the substitutions into bite-sized pieces for seds with
17048   # small command number limits, like on Digital OSF/1 and HP-UX.
17049   ac_max_sed_lines=48
17050   ac_sed_frag=1 # Number of current file.
17051   ac_beg=1 # First line for current file.
17052   ac_end=$ac_max_sed_lines # Line after last line for current file.
17053   ac_more_lines=:
17054   ac_sed_cmds=
17055   while $ac_more_lines; do
17056     if test $ac_beg -gt 1; then
17057       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17058     else
17059       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17060     fi
17061     if test ! -s $tmp/subs.frag; then
17062       ac_more_lines=false
17063     else
17064       # The purpose of the label and of the branching condition is to
17065       # speed up the sed processing (if there are no `@' at all, there
17066       # is no need to browse any of the substitutions).
17067       # These are the two extra sed commands mentioned above.
17068       (echo ':t
17069   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17070       if test -z "$ac_sed_cmds"; then
17071         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17072       else
17073         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17074       fi
17075       ac_sed_frag=`expr $ac_sed_frag + 1`
17076       ac_beg=$ac_end
17077       ac_end=`expr $ac_end + $ac_max_sed_lines`
17078     fi
17079   done
17080   if test -z "$ac_sed_cmds"; then
17081     ac_sed_cmds=cat
17082   fi
17083 fi # test -n "$CONFIG_FILES"
17084
17085 _ACEOF
17086 cat >>$CONFIG_STATUS <<\_ACEOF
17087 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17088   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17089   case $ac_file in
17090   - | *:- | *:-:* ) # input from stdin
17091         cat >$tmp/stdin
17092         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17093         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17094   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17095         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17096   * )   ac_file_in=$ac_file.in ;;
17097   esac
17098
17099   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17100   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17102          X"$ac_file" : 'X\(//\)[^/]' \| \
17103          X"$ac_file" : 'X\(//\)$' \| \
17104          X"$ac_file" : 'X\(/\)' \| \
17105          .     : '\(.\)' 2>/dev/null ||
17106 echo X"$ac_file" |
17107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17108           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17109           /^X\(\/\/\)$/{ s//\1/; q; }
17110           /^X\(\/\).*/{ s//\1/; q; }
17111           s/.*/./; q'`
17112   { case "$ac_dir" in
17113   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17114   *)                      as_incr_dir=.;;
17115 esac
17116 as_dummy="$ac_dir"
17117 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17118   case $as_mkdir_dir in
17119     # Skip DOS drivespec
17120     ?:) as_incr_dir=$as_mkdir_dir ;;
17121     *)
17122       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17123       test -d "$as_incr_dir" ||
17124         mkdir "$as_incr_dir" ||
17125         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17126 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17127    { (exit 1); exit 1; }; }
17128     ;;
17129   esac
17130 done; }
17131
17132   ac_builddir=.
17133
17134 if test "$ac_dir" != .; then
17135   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17136   # A "../" for each directory in $ac_dir_suffix.
17137   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17138 else
17139   ac_dir_suffix= ac_top_builddir=
17140 fi
17141
17142 case $srcdir in
17143   .)  # No --srcdir option.  We are building in place.
17144     ac_srcdir=.
17145     if test -z "$ac_top_builddir"; then
17146        ac_top_srcdir=.
17147     else
17148        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17149     fi ;;
17150   [\\/]* | ?:[\\/]* )  # Absolute path.
17151     ac_srcdir=$srcdir$ac_dir_suffix;
17152     ac_top_srcdir=$srcdir ;;
17153   *) # Relative path.
17154     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17155     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17156 esac
17157 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17158 # absolute.
17159 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17160 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17161 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17162 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17163
17164
17165
17166   if test x"$ac_file" != x-; then
17167     { echo "$as_me:$LINENO: creating $ac_file" >&5
17168 echo "$as_me: creating $ac_file" >&6;}
17169     rm -f "$ac_file"
17170   fi
17171   # Let's still pretend it is `configure' which instantiates (i.e., don't
17172   # use $as_me), people would be surprised to read:
17173   #    /* config.h.  Generated by config.status.  */
17174   if test x"$ac_file" = x-; then
17175     configure_input=
17176   else
17177     configure_input="$ac_file.  "
17178   fi
17179   configure_input=$configure_input"Generated from `echo $ac_file_in |
17180                                      sed 's,.*/,,'` by configure."
17181
17182   # First look for the input files in the build tree, otherwise in the
17183   # src tree.
17184   ac_file_inputs=`IFS=:
17185     for f in $ac_file_in; do
17186       case $f in
17187       -) echo $tmp/stdin ;;
17188       [\\/$]*)
17189          # Absolute (can't be DOS-style, as IFS=:)
17190          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17191 echo "$as_me: error: cannot find input file: $f" >&2;}
17192    { (exit 1); exit 1; }; }
17193          echo $f;;
17194       *) # Relative
17195          if test -f "$f"; then
17196            # Build tree
17197            echo $f
17198          elif test -f "$srcdir/$f"; then
17199            # Source tree
17200            echo $srcdir/$f
17201          else
17202            # /dev/null tree
17203            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17204 echo "$as_me: error: cannot find input file: $f" >&2;}
17205    { (exit 1); exit 1; }; }
17206          fi;;
17207       esac
17208     done` || { (exit 1); exit 1; }
17209 _ACEOF
17210 cat >>$CONFIG_STATUS <<_ACEOF
17211   sed "$ac_vpsub
17212 $extrasub
17213 _ACEOF
17214 cat >>$CONFIG_STATUS <<\_ACEOF
17215 :t
17216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17217 s,@configure_input@,$configure_input,;t t
17218 s,@srcdir@,$ac_srcdir,;t t
17219 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17220 s,@top_srcdir@,$ac_top_srcdir,;t t
17221 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17222 s,@builddir@,$ac_builddir,;t t
17223 s,@abs_builddir@,$ac_abs_builddir,;t t
17224 s,@top_builddir@,$ac_top_builddir,;t t
17225 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17226 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17227   rm -f $tmp/stdin
17228   if test x"$ac_file" != x-; then
17229     mv $tmp/out $ac_file
17230   else
17231     cat $tmp/out
17232     rm -f $tmp/out
17233   fi
17234
17235 done
17236 _ACEOF
17237 cat >>$CONFIG_STATUS <<\_ACEOF
17238
17239 #
17240 # CONFIG_HEADER section.
17241 #
17242
17243 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17244 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17245 #
17246 # ac_d sets the value in "#define NAME VALUE" lines.
17247 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17248 ac_dB='[        ].*$,\1#\2'
17249 ac_dC=' '
17250 ac_dD=',;t'
17251 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17252 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17253 ac_uB='$,\1#\2define\3'
17254 ac_uC=' '
17255 ac_uD=',;t'
17256
17257 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17258   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17259   case $ac_file in
17260   - | *:- | *:-:* ) # input from stdin
17261         cat >$tmp/stdin
17262         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17263         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17264   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17265         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17266   * )   ac_file_in=$ac_file.in ;;
17267   esac
17268
17269   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17270 echo "$as_me: creating $ac_file" >&6;}
17271
17272   # First look for the input files in the build tree, otherwise in the
17273   # src tree.
17274   ac_file_inputs=`IFS=:
17275     for f in $ac_file_in; do
17276       case $f in
17277       -) echo $tmp/stdin ;;
17278       [\\/$]*)
17279          # Absolute (can't be DOS-style, as IFS=:)
17280          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17281 echo "$as_me: error: cannot find input file: $f" >&2;}
17282    { (exit 1); exit 1; }; }
17283          echo $f;;
17284       *) # Relative
17285          if test -f "$f"; then
17286            # Build tree
17287            echo $f
17288          elif test -f "$srcdir/$f"; then
17289            # Source tree
17290            echo $srcdir/$f
17291          else
17292            # /dev/null tree
17293            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17294 echo "$as_me: error: cannot find input file: $f" >&2;}
17295    { (exit 1); exit 1; }; }
17296          fi;;
17297       esac
17298     done` || { (exit 1); exit 1; }
17299   # Remove the trailing spaces.
17300   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17301
17302 _ACEOF
17303
17304 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17305 # `conftest.undefs', that substitutes the proper values into
17306 # config.h.in to produce config.h.  The first handles `#define'
17307 # templates, and the second `#undef' templates.
17308 # And first: Protect against being on the right side of a sed subst in
17309 # config.status.  Protect against being in an unquoted here document
17310 # in config.status.
17311 rm -f conftest.defines conftest.undefs
17312 # Using a here document instead of a string reduces the quoting nightmare.
17313 # Putting comments in sed scripts is not portable.
17314 #
17315 # `end' is used to avoid that the second main sed command (meant for
17316 # 0-ary CPP macros) applies to n-ary macro definitions.
17317 # See the Autoconf documentation for `clear'.
17318 cat >confdef2sed.sed <<\_ACEOF
17319 s/[\\&,]/\\&/g
17320 s,[\\$`],\\&,g
17321 t clear
17322 : clear
17323 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17324 t end
17325 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17326 : end
17327 _ACEOF
17328 # If some macros were called several times there might be several times
17329 # the same #defines, which is useless.  Nevertheless, we may not want to
17330 # sort them, since we want the *last* AC-DEFINE to be honored.
17331 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17332 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17333 rm -f confdef2sed.sed
17334
17335 # This sed command replaces #undef with comments.  This is necessary, for
17336 # example, in the case of _POSIX_SOURCE, which is predefined and required
17337 # on some systems where configure will not decide to define it.
17338 cat >>conftest.undefs <<\_ACEOF
17339 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17340 _ACEOF
17341
17342 # Break up conftest.defines because some shells have a limit on the size
17343 # of here documents, and old seds have small limits too (100 cmds).
17344 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17345 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17346 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17347 echo '  :' >>$CONFIG_STATUS
17348 rm -f conftest.tail
17349 while grep . conftest.defines >/dev/null
17350 do
17351   # Write a limited-size here document to $tmp/defines.sed.
17352   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17353   # Speed up: don't consider the non `#define' lines.
17354   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17355   # Work around the forget-to-reset-the-flag bug.
17356   echo 't clr' >>$CONFIG_STATUS
17357   echo ': clr' >>$CONFIG_STATUS
17358   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17359   echo 'CEOF
17360   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17361   rm -f $tmp/in
17362   mv $tmp/out $tmp/in
17363 ' >>$CONFIG_STATUS
17364   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17365   rm -f conftest.defines
17366   mv conftest.tail conftest.defines
17367 done
17368 rm -f conftest.defines
17369 echo '  fi # egrep' >>$CONFIG_STATUS
17370 echo >>$CONFIG_STATUS
17371
17372 # Break up conftest.undefs because some shells have a limit on the size
17373 # of here documents, and old seds have small limits too (100 cmds).
17374 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17375 rm -f conftest.tail
17376 while grep . conftest.undefs >/dev/null
17377 do
17378   # Write a limited-size here document to $tmp/undefs.sed.
17379   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17380   # Speed up: don't consider the non `#undef'
17381   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17382   # Work around the forget-to-reset-the-flag bug.
17383   echo 't clr' >>$CONFIG_STATUS
17384   echo ': clr' >>$CONFIG_STATUS
17385   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17386   echo 'CEOF
17387   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17388   rm -f $tmp/in
17389   mv $tmp/out $tmp/in
17390 ' >>$CONFIG_STATUS
17391   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17392   rm -f conftest.undefs
17393   mv conftest.tail conftest.undefs
17394 done
17395 rm -f conftest.undefs
17396
17397 cat >>$CONFIG_STATUS <<\_ACEOF
17398   # Let's still pretend it is `configure' which instantiates (i.e., don't
17399   # use $as_me), people would be surprised to read:
17400   #    /* config.h.  Generated by config.status.  */
17401   if test x"$ac_file" = x-; then
17402     echo "/* Generated by configure.  */" >$tmp/config.h
17403   else
17404     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17405   fi
17406   cat $tmp/in >>$tmp/config.h
17407   rm -f $tmp/in
17408   if test x"$ac_file" != x-; then
17409     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17410       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17411 echo "$as_me: $ac_file is unchanged" >&6;}
17412     else
17413       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17415          X"$ac_file" : 'X\(//\)[^/]' \| \
17416          X"$ac_file" : 'X\(//\)$' \| \
17417          X"$ac_file" : 'X\(/\)' \| \
17418          .     : '\(.\)' 2>/dev/null ||
17419 echo X"$ac_file" |
17420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17421           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17422           /^X\(\/\/\)$/{ s//\1/; q; }
17423           /^X\(\/\).*/{ s//\1/; q; }
17424           s/.*/./; q'`
17425       { case "$ac_dir" in
17426   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17427   *)                      as_incr_dir=.;;
17428 esac
17429 as_dummy="$ac_dir"
17430 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17431   case $as_mkdir_dir in
17432     # Skip DOS drivespec
17433     ?:) as_incr_dir=$as_mkdir_dir ;;
17434     *)
17435       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17436       test -d "$as_incr_dir" ||
17437         mkdir "$as_incr_dir" ||
17438         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17439 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17440    { (exit 1); exit 1; }; }
17441     ;;
17442   esac
17443 done; }
17444
17445       rm -f $ac_file
17446       mv $tmp/config.h $ac_file
17447     fi
17448   else
17449     cat $tmp/config.h
17450     rm -f $tmp/config.h
17451   fi
17452   # Run the commands associated with the file.
17453   case $ac_file in
17454     src/include/pg_config.h )
17455 # Update timestamp for pg_config.h (see Makefile.global)
17456 echo >src/include/stamp-h
17457  ;;
17458   esac
17459 done
17460 _ACEOF
17461 cat >>$CONFIG_STATUS <<\_ACEOF
17462
17463 #
17464 # CONFIG_LINKS section.
17465 #
17466
17467 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17468   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17469   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17470
17471   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17472 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17473
17474   if test ! -r $srcdir/$ac_source; then
17475     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17476 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17477    { (exit 1); exit 1; }; }
17478   fi
17479   rm -f $ac_dest
17480
17481   # Make relative symlinks.
17482   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17483 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17484          X"$ac_dest" : 'X\(//\)[^/]' \| \
17485          X"$ac_dest" : 'X\(//\)$' \| \
17486          X"$ac_dest" : 'X\(/\)' \| \
17487          .     : '\(.\)' 2>/dev/null ||
17488 echo X"$ac_dest" |
17489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17490           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17491           /^X\(\/\/\)$/{ s//\1/; q; }
17492           /^X\(\/\).*/{ s//\1/; q; }
17493           s/.*/./; q'`
17494   { case "$ac_dest_dir" in
17495   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17496   *)                      as_incr_dir=.;;
17497 esac
17498 as_dummy="$ac_dest_dir"
17499 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17500   case $as_mkdir_dir in
17501     # Skip DOS drivespec
17502     ?:) as_incr_dir=$as_mkdir_dir ;;
17503     *)
17504       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17505       test -d "$as_incr_dir" ||
17506         mkdir "$as_incr_dir" ||
17507         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17508 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17509    { (exit 1); exit 1; }; }
17510     ;;
17511   esac
17512 done; }
17513
17514   ac_builddir=.
17515
17516 if test "$ac_dest_dir" != .; then
17517   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17518   # A "../" for each directory in $ac_dir_suffix.
17519   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17520 else
17521   ac_dir_suffix= ac_top_builddir=
17522 fi
17523
17524 case $srcdir in
17525   .)  # No --srcdir option.  We are building in place.
17526     ac_srcdir=.
17527     if test -z "$ac_top_builddir"; then
17528        ac_top_srcdir=.
17529     else
17530        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17531     fi ;;
17532   [\\/]* | ?:[\\/]* )  # Absolute path.
17533     ac_srcdir=$srcdir$ac_dir_suffix;
17534     ac_top_srcdir=$srcdir ;;
17535   *) # Relative path.
17536     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17537     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17538 esac
17539 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17540 # absolute.
17541 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17542 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17543 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17544 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17545
17546
17547   case $srcdir in
17548   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17549       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17550   esac
17551
17552   # Make a symlink if possible; otherwise try a hard link.
17553   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17554     ln $srcdir/$ac_source $ac_dest ||
17555     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17556 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17557    { (exit 1); exit 1; }; }
17558 done
17559 _ACEOF
17560
17561 cat >>$CONFIG_STATUS <<\_ACEOF
17562
17563 { (exit 0); exit 0; }
17564 _ACEOF
17565 chmod +x $CONFIG_STATUS
17566 ac_clean_files=$ac_clean_files_save
17567
17568
17569 # configure is writing to config.log, and then calls config.status.
17570 # config.status does its own redirection, appending to config.log.
17571 # Unfortunately, on DOS this fails, as config.log is still kept open
17572 # by configure, so config.status won't be able to write to it; its
17573 # output is simply discarded.  So we exec the FD to /dev/null,
17574 # effectively closing config.log, so it can be properly (re)opened and
17575 # appended to by config.status.  When coming back to configure, we
17576 # need to make the FD available again.
17577 if test "$no_create" != yes; then
17578   ac_cs_success=:
17579   exec 5>/dev/null
17580   $SHELL $CONFIG_STATUS || ac_cs_success=false
17581   exec 5>>config.log
17582   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17583   # would make configure fail if this is the last instruction.
17584   $ac_cs_success || { (exit 1); exit 1; }
17585 fi
17586