Annotation of pgsql/configure, revision 1.191
1.1 petere 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.179 petere 3: # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
4: #
5: # Report bugs to <[email protected]>.
1.1 petere 6: #
1.179 petere 7: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8: # Free Software Foundation, Inc.
1.1 petere 9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.179 petere 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
1.1 petere 192:
1.179 petere 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: #
1.1 petere 246: ac_default_prefix=/usr/local
1.179 petere 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.3devel'
262: PACKAGE_STRING='PostgreSQL 7.3devel'
263: PACKAGE_BUGREPORT='[email protected]'
264:
265: ac_unique_file="src/backend/access/common/heaptuple.c"
1.1 petere 266: ac_default_prefix=/usr/local/pgsql
1.179 petere 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:
1.1 petere 304:
305: # Initialize some variables set by options.
1.179 petere 306: ac_init_help=
307: ac_init_version=false
1.1 petere 308: # The variables have the same names as the options, with
309: # dashes changed to underlines.
1.179 petere 310: cache_file=/dev/null
1.1 petere 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
1.179 petere 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.
1.1 petere 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'
1.32 petere 340: docdir='${prefix}/doc'
1.1 petere 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:
1.179 petere 353: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 petere 354:
355: # Accept the important Cygnus configure options, so we can diagnose typos.
356:
1.179 petere 357: case $ac_option in
1.1 petere 358:
359: -bindir | --bindir | --bindi | --bind | --bin | --bi)
360: ac_prev=bindir ;;
361: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.179 petere 362: bindir=$ac_optarg ;;
1.1 petere 363:
364: -build | --build | --buil | --bui | --bu)
1.179 petere 365: ac_prev=build_alias ;;
1.1 petere 366: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.179 petere 367: build_alias=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 374: cache_file=$ac_optarg ;;
375:
376: --config-cache | -C)
377: cache_file=config.cache ;;
1.1 petere 378:
379: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380: ac_prev=datadir ;;
381: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382: | --da=*)
1.179 petere 383: datadir=$ac_optarg ;;
1.1 petere 384:
385: -disable-* | --disable-*)
1.179 petere 386: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 petere 387: # Reject names that are not valid shell variable names.
1.179 petere 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" ;;
1.1 petere 393:
394: -enable-* | --enable-*)
1.179 petere 395: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 petere 396: # Reject names that are not valid shell variable names.
1.179 petere 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"`;;
1.1 petere 403: *) ac_optarg=yes ;;
404: esac
1.179 petere 405: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 petere 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=*)
1.179 petere 414: exec_prefix=$ac_optarg ;;
1.1 petere 415:
416: -gas | --gas | --ga | --g)
417: # Obsolete; use --with-gas.
418: with_gas=yes ;;
419:
1.179 petere 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 ;;
1.1 petere 426:
427: -host | --host | --hos | --ho)
1.179 petere 428: ac_prev=host_alias ;;
1.1 petere 429: -host=* | --host=* | --hos=* | --ho=*)
1.179 petere 430: host_alias=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 437: includedir=$ac_optarg ;;
1.1 petere 438:
1.32 petere 439: -docdir | --docdir | --infodi | --infod | --doc | --inf)
440: ac_prev=docdir ;;
441: -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
1.179 petere 442: docdir=$ac_optarg ;;
1.1 petere 443:
444: -libdir | --libdir | --libdi | --libd)
445: ac_prev=libdir ;;
446: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.179 petere 447: libdir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 454: libexecdir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 463: localstatedir=$ac_optarg ;;
1.1 petere 464:
465: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466: ac_prev=mandir ;;
467: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.179 petere 468: mandir=$ac_optarg ;;
1.1 petere 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 \
1.179 petere 475: | --no-cr | --no-c | -n)
1.1 petere 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=*)
1.179 petere 489: oldincludedir=$ac_optarg ;;
1.1 petere 490:
491: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492: ac_prev=prefix ;;
493: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.179 petere 494: prefix=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 501: program_prefix=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 508: program_suffix=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 525: program_transform_name=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 535: sbindir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 546: sharedstatedir=$ac_optarg ;;
1.1 petere 547:
548: -site | --site | --sit)
549: ac_prev=site ;;
550: -site=* | --site=* | --sit=*)
1.179 petere 551: site=$ac_optarg ;;
1.1 petere 552:
553: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554: ac_prev=srcdir ;;
555: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.179 petere 556: srcdir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 563: sysconfdir=$ac_optarg ;;
1.1 petere 564:
565: -target | --target | --targe | --targ | --tar | --ta | --t)
1.179 petere 566: ac_prev=target_alias ;;
1.1 petere 567: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.179 petere 568: target_alias=$ac_optarg ;;
1.1 petere 569:
570: -v | -verbose | --verbose | --verbos | --verbo | --verb)
571: verbose=yes ;;
572:
1.179 petere 573: -version | --version | --versio | --versi | --vers | -V)
574: ac_init_version=: ;;
1.1 petere 575:
576: -with-* | --with-*)
1.179 petere 577: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 petere 578: # Reject names that are not valid shell variable names.
1.179 petere 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; }; }
1.1 petere 582: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.179 petere 583: case $ac_option in
584: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 petere 585: *) ac_optarg=yes ;;
586: esac
1.179 petere 587: eval "with_$ac_package='$ac_optarg'" ;;
1.1 petere 588:
589: -without-* | --without-*)
1.179 petere 590: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 petere 591: # Reject names that are not valid shell variable names.
1.179 petere 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" ;;
1.1 petere 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=*)
1.179 petere 607: x_includes=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 614: x_libraries=$ac_optarg ;;
1.1 petere 615:
1.179 petere 616: -*) { echo "$as_me: error: unrecognized option: $ac_option
617: Try \`$0 --help' for more information." >&2
618: { (exit 1); exit 1; }; }
1.1 petere 619: ;;
620:
1.179 petere 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:
1.1 petere 631: *)
1.179 petere 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}
1.1 petere 637: ;;
638:
639: esac
640: done
641:
642: if test -n "$ac_prev"; then
1.179 petere 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; }; }
1.1 petere 646: fi
647:
1.179 petere 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
1.1 petere 658:
1.179 petere 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
1.1 petere 662: do
1.179 petere 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; }; };;
1.1 petere 668: esac
669: done
670:
1.179 petere 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-
1.1 petere 691:
1.179 petere 692: test "$silent" = yes && exec 6>/dev/null
1.1 petere 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.
1.179 petere 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'`
1.1 petere 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
1.179 petere 720: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721: { (exit 1); exit 1; }; }
1.1 petere 722: else
1.179 petere 723: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724: { (exit 1); exit 1; }; }
1.1 petere 725: fi
726: fi
1.179 petere 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_CXX_set=${CXX+set}
761: ac_env_CXX_value=$CXX
762: ac_cv_env_CXX_set=${CXX+set}
763: ac_cv_env_CXX_value=$CXX
764: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765: ac_env_CXXFLAGS_value=$CXXFLAGS
766: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768: ac_env_CXXCPP_set=${CXXCPP+set}
769: ac_env_CXXCPP_value=$CXXCPP
770: ac_cv_env_CXXCPP_set=${CXXCPP+set}
771: ac_cv_env_CXXCPP_value=$CXXCPP
1.187 petere 772: ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773: ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774: ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775: ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
1.179 petere 776:
777: #
778: # Report the --help message.
779: #
780: if test "$ac_init_help" = "long"; then
781: # Omit some internal or obsolete options to make the list less imposing.
782: # This message is too long to be a string in the A/UX 3.1 sh.
783: cat <<_ACEOF
784: \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
785:
786: Usage: $0 [OPTION]... [VAR=VALUE]...
787:
788: To assign environment variables (e.g., CC, CFLAGS...), specify them as
789: VAR=VALUE. See below for descriptions of some of the useful variables.
790:
791: Defaults for the options are specified in brackets.
792:
793: Configuration:
794: -h, --help display this help and exit
795: --help=short display options specific to this package
796: --help=recursive display the short help of all the included packages
797: -V, --version display version information and exit
798: -q, --quiet, --silent do not print \`checking...' messages
799: --cache-file=FILE cache test results in FILE [disabled]
800: -C, --config-cache alias for \`--cache-file=config.cache'
801: -n, --no-create do not create output files
802: --srcdir=DIR find the sources in DIR [configure dir or \`..']
803:
804: _ACEOF
805:
806: cat <<_ACEOF
807: Installation directories:
808: --prefix=PREFIX install architecture-independent files in PREFIX
809: [$ac_default_prefix]
810: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811: [PREFIX]
812:
813: By default, \`make install' will install all the files in
814: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816: for instance \`--prefix=\$HOME'.
817:
818: For better control, use the options below.
819:
820: Fine tuning of the installation directories:
821: --bindir=DIR user executables [EPREFIX/bin]
822: --sbindir=DIR system admin executables [EPREFIX/sbin]
823: --libexecdir=DIR program executables [EPREFIX/libexec]
824: --datadir=DIR read-only architecture-independent data [PREFIX/share]
825: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828: --libdir=DIR object code libraries [EPREFIX/lib]
829: --includedir=DIR C header files [PREFIX/include]
830: --oldincludedir=DIR C header files for non-gcc [/usr/include]
831: --infodir=DIR info documentation [PREFIX/info]
832: --mandir=DIR man documentation [PREFIX/man]
833: _ACEOF
834:
835: cat <<\_ACEOF
836:
837: System types:
838: --build=BUILD configure for building on BUILD [guessed]
839: --host=HOST cross-compile to build programs to run on HOST [BUILD]
840: _ACEOF
841: fi
842:
843: if test -n "$ac_init_help"; then
844: case $ac_init_help in
845: short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
846: esac
847: cat <<\_ACEOF
848:
849: Optional Features:
850: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.189 thomas 852: --enable-integer-datetimes enable 64-bit integer date/time support
1.179 petere 853: --enable-recode enable character set recode support
854: --enable-nls[=LANGUAGES] enable Native Language Support
855: --disable-shared do not build shared libraries
856: --disable-rpath do not embed shared library search path in executables
857: --enable-debug build with debugging symbols (-g)
858: --enable-depend turn on automatic dependency tracking
859: --enable-cassert enable assertion checks (for debugging)
860: --enable-odbc build the ODBC driver package
861:
862: Optional Packages:
863: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865:
866: --with-includes=DIRS look for additional header files in DIRS
867: --with-libraries=DIRS look for additional libraries in DIRS
868: --with-libs=DIRS alternative spelling of --with-libraries
869: --with-pgport=PORTNUM change default port number 5432
870: --with-maxbackends=N set default maximum number of connections 32
871: --with-tcl build Tcl and Tk interfaces
872: --without-tk do not build Tk interfaces if Tcl is enabled
873: --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
874: --with-tkconfig=DIR tkConfig.sh is in DIR
875: --with-perl build Perl interface and PL/Perl
876: --with-python build Python interface module
877: --with-java build JDBC interface and Java tools
878: --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
879: --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
880: --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
881: --with-pam build with PAM support
882: --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
1.186 petere 883: --without-readline do not use Readline
884: --without-zlib do not use Zlib
1.179 petere 885: --with-unixodbc build ODBC driver for unixODBC
886: --with-iodbc build ODBC driver for iODBC
887: --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
888: --with-CXX build C++ modules (libpq++)
889: --with-gnu-ld assume the C compiler uses GNU ld default=no
890:
891: Some influential environment variables:
892: CC C compiler command
893: CFLAGS C compiler flags
894: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895: nonstandard directory <lib dir>
896: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897: headers in a nonstandard directory <include dir>
898: CPP C preprocessor
899: CXX C++ compiler command
900: CXXFLAGS C++ compiler flags
901: CXXCPP C++ preprocessor
1.187 petere 902: DOCBOOKSTYLE
903: location of DocBook stylesheets
1.179 petere 904:
905: Use these variables to override the choices made by `configure' or to help
906: it to find libraries and programs with nonstandard names/locations.
907:
908: Report bugs to <[email protected]>.
909: _ACEOF
910: fi
911:
912: if test "$ac_init_help" = "recursive"; then
913: # If there are subdirs, report their specific --help.
914: ac_popdir=`pwd`
915: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916: test -d $ac_dir || continue
917: ac_builddir=.
918:
919: if test "$ac_dir" != .; then
920: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921: # A "../" for each directory in $ac_dir_suffix.
922: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923: else
924: ac_dir_suffix= ac_top_builddir=
925: fi
926:
927: case $srcdir in
928: .) # No --srcdir option. We are building in place.
929: ac_srcdir=.
930: if test -z "$ac_top_builddir"; then
931: ac_top_srcdir=.
932: else
933: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934: fi ;;
935: [\\/]* | ?:[\\/]* ) # Absolute path.
936: ac_srcdir=$srcdir$ac_dir_suffix;
937: ac_top_srcdir=$srcdir ;;
938: *) # Relative path.
939: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940: ac_top_srcdir=$ac_top_builddir$srcdir ;;
941: esac
942: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943: # absolute.
944: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948:
949: cd $ac_dir
950: # Check for guested configure; otherwise get Cygnus style configure.
951: if test -f $ac_srcdir/configure.gnu; then
952: echo
953: $SHELL $ac_srcdir/configure.gnu --help=recursive
954: elif test -f $ac_srcdir/configure; then
955: echo
956: $SHELL $ac_srcdir/configure --help=recursive
957: elif test -f $ac_srcdir/configure.ac ||
958: test -f $ac_srcdir/configure.in; then
959: echo
960: $ac_configure --help
961: else
962: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963: fi
964: cd $ac_popdir
965: done
966: fi
967:
968: test -n "$ac_init_help" && exit 0
969: if $ac_init_version; then
970: cat <<\_ACEOF
971: PostgreSQL configure 7.3devel
972: generated by GNU Autoconf 2.53
973:
974: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975: Free Software Foundation, Inc.
976: This configure script is free software; the Free Software Foundation
977: gives unlimited permission to copy, distribute and modify it.
978:
979: Copyright 2002 PostgreSQL Global Development Group
980: _ACEOF
981: exit 0
982: fi
983: exec 5>config.log
984: cat >&5 <<_ACEOF
985: This file contains any messages produced by compilers while
986: running configure, to aid debugging if configure makes a mistake.
987:
988: It was created by PostgreSQL $as_me 7.3devel, which was
989: generated by GNU Autoconf 2.53. Invocation command line was
990:
991: $ $0 $@
992:
993: _ACEOF
994: {
995: cat <<_ASUNAME
996: ## --------- ##
997: ## Platform. ##
998: ## --------- ##
999:
1000: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005:
1006: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008:
1009: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016:
1017: _ASUNAME
1018:
1019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020: for as_dir in $PATH
1021: do
1022: IFS=$as_save_IFS
1023: test -z "$as_dir" && as_dir=.
1024: echo "PATH: $as_dir"
1025: done
1026:
1027: } >&5
1028:
1029: cat >&5 <<_ACEOF
1030:
1031:
1032: ## ----------- ##
1033: ## Core tests. ##
1034: ## ----------- ##
1035:
1036: _ACEOF
1037:
1038:
1039: # Keep a trace of the command line.
1040: # Strip out --no-create and --no-recursion so they do not pile up.
1041: # Also quote any args containing shell meta-characters.
1042: ac_configure_args=
1043: ac_sep=
1044: for ac_arg
1045: do
1046: case $ac_arg in
1047: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048: | --no-cr | --no-c | -n ) continue ;;
1049: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051: continue ;;
1052: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054: esac
1055: case " $ac_configure_args " in
1056: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1057: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058: ac_sep=" " ;;
1059: esac
1060: # Get rid of the leading space.
1061: done
1062:
1063: # When interrupted or exit'd, cleanup temporary files, and complete
1064: # config.log. We remove comments because anyway the quotes in there
1065: # would cause problems or look ugly.
1066: # WARNING: Be sure not to use single quotes in there, as some shells,
1067: # such as our DU 5.0 friend, will then `close' the trap.
1068: trap 'exit_status=$?
1069: # Save into config.log some information that might help in debugging.
1070: {
1071: echo
1072: cat <<\_ASBOX
1073: ## ---------------- ##
1074: ## Cache variables. ##
1075: ## ---------------- ##
1076: _ASBOX
1077: echo
1078: # The following way of writing the cache mishandles newlines in values,
1079: {
1080: (set) 2>&1 |
1081: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082: *ac_space=\ *)
1083: sed -n \
1084: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086: ;;
1087: *)
1088: sed -n \
1089: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090: ;;
1091: esac;
1092: }
1093: echo
1094: if test -s confdefs.h; then
1095: cat <<\_ASBOX
1096: ## ----------- ##
1097: ## confdefs.h. ##
1098: ## ----------- ##
1099: _ASBOX
1100: echo
1101: sed "/^$/d" confdefs.h
1102: echo
1103: fi
1104: test "$ac_signal" != 0 &&
1105: echo "$as_me: caught signal $ac_signal"
1106: echo "$as_me: exit $exit_status"
1107: } >&5
1108: rm -f core core.* *.core &&
1109: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110: exit $exit_status
1111: ' 0
1112: for ac_signal in 1 2 13 15; do
1113: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114: done
1115: ac_signal=0
1116:
1117: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118: rm -rf conftest* confdefs.h
1119: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120: echo >confdefs.h
1121:
1122: # Predefined preprocessor variables.
1123:
1124: cat >>confdefs.h <<_ACEOF
1125: #define PACKAGE_NAME "$PACKAGE_NAME"
1126: _ACEOF
1127:
1128:
1129: cat >>confdefs.h <<_ACEOF
1130: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131: _ACEOF
1132:
1133:
1134: cat >>confdefs.h <<_ACEOF
1135: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136: _ACEOF
1.1 petere 1137:
1.179 petere 1138:
1139: cat >>confdefs.h <<_ACEOF
1140: #define PACKAGE_STRING "$PACKAGE_STRING"
1141: _ACEOF
1142:
1143:
1144: cat >>confdefs.h <<_ACEOF
1145: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146: _ACEOF
1147:
1148:
1149: # Let the site file select an alternate cache file if it wants to.
1.1 petere 1150: # Prefer explicitly selected file to automatically selected ones.
1151: if test -z "$CONFIG_SITE"; then
1152: if test "x$prefix" != xNONE; then
1153: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154: else
1155: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156: fi
1157: fi
1158: for ac_site_file in $CONFIG_SITE; do
1159: if test -r "$ac_site_file"; then
1.179 petere 1160: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161: echo "$as_me: loading site script $ac_site_file" >&6;}
1162: sed 's/^/| /' "$ac_site_file" >&5
1.1 petere 1163: . "$ac_site_file"
1164: fi
1165: done
1166:
1167: if test -r "$cache_file"; then
1.179 petere 1168: # Some versions of bash will fail to source /dev/null (special
1169: # files actually), so we avoid doing that.
1170: if test -f "$cache_file"; then
1171: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172: echo "$as_me: loading cache $cache_file" >&6;}
1173: case $cache_file in
1174: [\\/]* | ?:[\\/]* ) . $cache_file;;
1175: *) . ./$cache_file;;
1176: esac
1177: fi
1.1 petere 1178: else
1.179 petere 1179: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180: echo "$as_me: creating cache $cache_file" >&6;}
1181: >$cache_file
1182: fi
1183:
1184: # Check that the precious variables saved in the cache have kept the same
1185: # value.
1186: ac_cache_corrupted=false
1187: for ac_var in `(set) 2>&1 |
1188: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190: eval ac_new_set=\$ac_env_${ac_var}_set
1191: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192: eval ac_new_val="\$ac_env_${ac_var}_value"
1193: case $ac_old_set,$ac_new_set in
1194: set,)
1195: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197: ac_cache_corrupted=: ;;
1198: ,set)
1199: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201: ac_cache_corrupted=: ;;
1202: ,);;
1203: *)
1204: if test "x$ac_old_val" != "x$ac_new_val"; then
1205: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208: echo "$as_me: former value: $ac_old_val" >&2;}
1209: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210: echo "$as_me: current value: $ac_new_val" >&2;}
1211: ac_cache_corrupted=:
1212: fi;;
1213: esac
1214: # Pass precious variables to config.status.
1215: if test "$ac_new_set" = set; then
1216: case $ac_new_val in
1217: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219: *) ac_arg=$ac_var=$ac_new_val ;;
1220: esac
1221: case " $ac_configure_args " in
1222: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224: esac
1225: fi
1226: done
1227: if $ac_cache_corrupted; then
1228: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232: { (exit 1); exit 1; }; }
1.1 petere 1233: fi
1234:
1235: ac_ext=c
1236: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 1237: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240:
1241:
1242:
1243:
1244:
1245:
1246:
1247:
1248:
1249:
1250:
1251:
1252:
1253:
1254:
1255:
1256:
1257:
1258:
1259:
1260:
1261:
1262:
1263:
1.1 petere 1264:
1265:
1266:
1267:
1268:
1269:
1.32 petere 1270:
1271:
1272:
1.1 petere 1273: ac_aux_dir=
1.28 petere 1274: for ac_dir in config $srcdir/config; do
1.1 petere 1275: if test -f $ac_dir/install-sh; then
1276: ac_aux_dir=$ac_dir
1277: ac_install_sh="$ac_aux_dir/install-sh -c"
1278: break
1279: elif test -f $ac_dir/install.sh; then
1280: ac_aux_dir=$ac_dir
1281: ac_install_sh="$ac_aux_dir/install.sh -c"
1282: break
1.179 petere 1283: elif test -f $ac_dir/shtool; then
1284: ac_aux_dir=$ac_dir
1285: ac_install_sh="$ac_aux_dir/shtool install -c"
1286: break
1.1 petere 1287: fi
1288: done
1289: if test -z "$ac_aux_dir"; then
1.179 petere 1290: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291: echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292: { (exit 1); exit 1; }; }
1.1 petere 1293: fi
1.179 petere 1294: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 petere 1297:
1298:
1.179 petere 1299: configure_args=$ac_configure_args
1.24 petere 1300:
1301:
1302:
1.179 petere 1303: cat >>confdefs.h <<_ACEOF
1304: #define PG_VERSION "$PACKAGE_VERSION"
1305: _ACEOF
1.63 petere 1306:
1.1 petere 1307:
1308: # Make sure we can run config.sub.
1.179 petere 1309: $ac_config_sub sun4 >/dev/null 2>&1 ||
1310: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312: { (exit 1); exit 1; }; }
1313:
1314: echo "$as_me:$LINENO: checking build system type" >&5
1315: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316: if test "${ac_cv_build+set}" = set; then
1317: echo $ECHO_N "(cached) $ECHO_C" >&6
1318: else
1319: ac_cv_build_alias=$build_alias
1320: test -z "$ac_cv_build_alias" &&
1321: ac_cv_build_alias=`$ac_config_guess`
1322: test -z "$ac_cv_build_alias" &&
1323: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325: { (exit 1); exit 1; }; }
1326: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329: { (exit 1); exit 1; }; }
1330:
1331: fi
1332: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333: echo "${ECHO_T}$ac_cv_build" >&6
1334: build=$ac_cv_build
1335: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338:
1339:
1340: echo "$as_me:$LINENO: checking host system type" >&5
1341: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342: if test "${ac_cv_host+set}" = set; then
1343: echo $ECHO_N "(cached) $ECHO_C" >&6
1344: else
1345: ac_cv_host_alias=$host_alias
1346: test -z "$ac_cv_host_alias" &&
1347: ac_cv_host_alias=$ac_cv_build_alias
1348: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351: { (exit 1); exit 1; }; }
1352:
1353: fi
1354: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355: echo "${ECHO_T}$ac_cv_host" >&6
1356: host=$ac_cv_host
1357: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 petere 1360:
1361:
1362:
1.179 petere 1363: template=
1364: echo "$as_me:$LINENO: checking which template to use" >&5
1365: echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1.1 petere 1366:
1367:
1.46 petere 1368:
1369:
1.179 petere 1370: # Check whether --with-template or --without-template was given.
1371: if test "${with_template+set}" = set; then
1372: withval="$with_template"
1.46 petere 1373:
1.179 petere 1374: case $withval in
1.43 petere 1375: yes)
1.179 petere 1376: { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377: echo "$as_me: error: argument required for --with-template option" >&2;}
1378: { (exit 1); exit 1; }; }
1.43 petere 1379: ;;
1380: no)
1.179 petere 1381: { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382: echo "$as_me: error: argument required for --with-template option" >&2;}
1383: { (exit 1); exit 1; }; }
1.43 petere 1384: ;;
1385: *)
1.179 petere 1386:
1.43 petere 1387: case $withval in
1.30 petere 1388: list) echo; ls "$srcdir/src/template"; exit;;
1389: *) if test -f "$srcdir/src/template/$with_template" ; then
1.43 petere 1390: template=$withval
1.30 petere 1391: else
1.179 petere 1392: { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393: echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394: { (exit 1); exit 1; }; }
1.30 petere 1395: fi;;
1396: esac
1397:
1.43 petere 1398: ;;
1.179 petere 1399: esac
1400:
1.43 petere 1401: else
1.179 petere 1402:
1.43 petere 1403: # --with-template not given
1.30 petere 1404:
1405: case $host_os in
1406: aix*) template=aix ;;
1.56 momjian 1407: beos*) template=beos ;;
1.30 petere 1408: bsdi*) template=bsdi ;;
1409: cygwin*) template=win ;;
1.76 petere 1410: darwin*) template=darwin ;;
1.30 petere 1411: dgux*) template=dgux ;;
1412: freebsd*) template=freebsd ;;
1413: hpux*) template=hpux ;;
1414: irix*) template=irix5 ;;
1415: linux*) template=linux ;;
1416: netbsd*) template=netbsd ;;
1417: nextstep*) template=nextstep ;;
1418: openbsd*) template=openbsd ;;
1419: osf*) template=osf ;;
1420: qnx*) template=qnx4 ;;
1421: sco*) template=sco ;;
1.60 petere 1422: solaris*) template=solaris ;;
1.30 petere 1423: sunos*) template=sunos4 ;;
1.1 petere 1424: sysv4.2*)
1.30 petere 1425: case $host_vendor in
1426: univel) template=univel ;;
1427: esac ;;
1428: sysv4*) template=svr4 ;;
1.143 petere 1429: sysv5*) template=unixware ;;
1.30 petere 1430: ultrix*) template=ultrix4 ;;
1.1 petere 1431: esac
1432:
1.30 petere 1433: if test x"$template" = x"" ; then
1.179 petere 1434: { { echo "$as_me:$LINENO: error:
1435: *******************************************************************
1436: PostgreSQL has apparently not been ported to your platform yet.
1437: To try a manual configuration, look into the src/template directory
1438: for a similar platform and use the '--with-template=' option.
1439:
1440: Please also contact <[email protected]> to see about
1441: rectifying this. Include the above 'checking host system type...'
1442: line.
1443: *******************************************************************
1444: " >&5
1445: echo "$as_me: error:
1.30 petere 1446: *******************************************************************
1447: PostgreSQL has apparently not been ported to your platform yet.
1.32 petere 1448: To try a manual configuration, look into the src/template directory
1.86 petere 1449: for a similar platform and use the '--with-template=' option.
1.1 petere 1450:
1.30 petere 1451: Please also contact <[email protected]> to see about
1.86 petere 1452: rectifying this. Include the above 'checking host system type...'
1.30 petere 1453: line.
1454: *******************************************************************
1.179 petere 1455: " >&2;}
1456: { (exit 1); exit 1; }; }
1.30 petere 1457: fi
1458:
1.43 petere 1459:
1.179 petere 1460: fi;
1461:
1.1 petere 1462:
1.179 petere 1463: echo "$as_me:$LINENO: result: $template" >&5
1464: echo "${ECHO_T}$template" >&6
1.30 petere 1465:
1466: PORTNAME=$template
1.1 petere 1467:
1468:
1.60 petere 1469: # Pick right test-and-set (TAS) code. Most platforms have inline
1470: # assembler code in src/include/storage/s_lock.h, so we just use
1471: # a dummy file here.
1472: case $host in
1473: *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1474: sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1.156 momjian 1475: i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1.65 petere 1476: *) need_tas=no; tas_file=dummy.s ;;
1.30 petere 1477: esac
1.179 petere 1478: ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1.1 petere 1479:
1.65 petere 1480:
1.30 petere 1481: if test "$need_tas" = yes ; then
1482: TAS=tas.o
1.1 petere 1483: fi
1484:
1485:
1486:
1.30 petere 1487:
1488: ##
1489: ## Command line options
1490: ##
1.1 petere 1491:
1492:
1.30 petere 1493: #
1494: # Add non-standard directories to the include path
1495: #
1.179 petere 1496:
1497:
1498:
1499: # Check whether --with-includes or --without-includes was given.
1500: if test "${with_includes+set}" = set; then
1501: withval="$with_includes"
1502:
1503: case $withval in
1.43 petere 1504: yes)
1.179 petere 1505: { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506: echo "$as_me: error: argument required for --with-includes option" >&2;}
1507: { (exit 1); exit 1; }; }
1.43 petere 1508: ;;
1509: no)
1.179 petere 1510: { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511: echo "$as_me: error: argument required for --with-includes option" >&2;}
1512: { (exit 1); exit 1; }; }
1.43 petere 1513: ;;
1.179 petere 1514: *)
1515:
1516: ;;
1517: esac
1518:
1519: fi;
1520:
1.1 petere 1521:
1522:
1.30 petere 1523: #
1524: # Add non-standard directories to the library search path
1525: #
1.179 petere 1526:
1527:
1528:
1529: # Check whether --with-libraries or --without-libraries was given.
1530: if test "${with_libraries+set}" = set; then
1531: withval="$with_libraries"
1532:
1533: case $withval in
1.43 petere 1534: yes)
1.179 petere 1535: { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536: echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537: { (exit 1); exit 1; }; }
1.43 petere 1538: ;;
1539: no)
1.179 petere 1540: { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541: echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542: { (exit 1); exit 1; }; }
1.43 petere 1543: ;;
1544: *)
1545: LIBRARY_DIRS=$withval
1546: ;;
1.179 petere 1547: esac
1548:
1549: fi;
1550:
1551:
1552:
1553:
1554:
1555: # Check whether --with-libs or --without-libs was given.
1556: if test "${with_libs+set}" = set; then
1557: withval="$with_libs"
1.1 petere 1558:
1.179 petere 1559: case $withval in
1.43 petere 1560: yes)
1.179 petere 1561: { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562: echo "$as_me: error: argument required for --with-libs option" >&2;}
1563: { (exit 1); exit 1; }; }
1.43 petere 1564: ;;
1565: no)
1.179 petere 1566: { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567: echo "$as_me: error: argument required for --with-libs option" >&2;}
1568: { (exit 1); exit 1; }; }
1.43 petere 1569: ;;
1570: *)
1571: LIBRARY_DIRS=$withval
1572: ;;
1.179 petere 1573: esac
1574:
1575: fi;
1576:
1.1 petere 1577:
1578:
1.29 petere 1579: #
1.189 thomas 1580: # 64-bit integer date/time storage (--enable-integer-datetimes)
1581: #
1582: echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583: echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584:
1585:
1586: # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587: if test "${enable_integer_datetimes+set}" = set; then
1588: enableval="$enable_integer_datetimes"
1589:
1590: case $enableval in
1591: yes)
1592:
1593: cat >>confdefs.h <<\_ACEOF
1594: #define USE_INTEGER_DATETIMES 1
1595: _ACEOF
1596:
1597: ;;
1598: no)
1599: :
1600: ;;
1601: *)
1602: { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603: echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604: { (exit 1); exit 1; }; }
1605: ;;
1606: esac
1607:
1608: else
1609: enable_integer_datetimes=no
1610:
1611: fi;
1612:
1613: echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614: echo "${ECHO_T}$enable_integer_datetimes" >&6
1615:
1616:
1.43 petere 1617: # Character set recode (--enable-recode)
1.29 petere 1618: #
1.179 petere 1619: echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620: echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1621:
1622:
1623: # Check whether --enable-recode or --disable-recode was given.
1624: if test "${enable_recode+set}" = set; then
1625: enableval="$enable_recode"
1626:
1627: case $enableval in
1.43 petere 1628: yes)
1.179 petere 1629:
1630: cat >>confdefs.h <<\_ACEOF
1.30 petere 1631: #define CYR_RECODE 1
1.179 petere 1632: _ACEOF
1.29 petere 1633:
1.43 petere 1634: ;;
1635: no)
1636: :
1637: ;;
1638: *)
1.179 petere 1639: { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640: echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641: { (exit 1); exit 1; }; }
1.43 petere 1642: ;;
1.179 petere 1643: esac
1644:
1.1 petere 1645: else
1.29 petere 1646: enable_recode=no
1.43 petere 1647:
1.179 petere 1648: fi;
1649:
1650: echo "$as_me:$LINENO: result: $enable_recode" >&5
1651: echo "${ECHO_T}$enable_recode" >&6
1.1 petere 1652:
1653:
1.29 petere 1654: #
1655: # Multibyte support
1656: #
1.191 ! ishii 1657: MULTIBYTE=SQL_ASCII
1.179 petere 1658:
1659: cat >>confdefs.h <<\_ACEOF
1.30 petere 1660: #define MULTIBYTE 1
1.179 petere 1661: _ACEOF
1.1 petere 1662:
1.43 petere 1663:
1664:
1.74 ishii 1665: #
1.135 petere 1666: # NLS
1667: #
1.179 petere 1668: echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669: echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1670:
1671:
1672: # Check whether --enable-nls or --disable-nls was given.
1673: if test "${enable_nls+set}" = set; then
1674: enableval="$enable_nls"
1675:
1676: case $enableval in
1.135 petere 1677: yes)
1678: :
1679: ;;
1680: no)
1681: :
1682: ;;
1683: *)
1684: enable_nls=yes
1685: WANTED_LANGUAGES=$enableval
1686: ;;
1.179 petere 1687: esac
1688:
1.135 petere 1689: else
1690: enable_nls=no
1.179 petere 1691: fi;
1692:
1.135 petere 1693:
1694: if test "$enable_nls" = yes; then
1.179 petere 1695:
1696: cat >>confdefs.h <<\_ACEOF
1.135 petere 1697: #define ENABLE_NLS 1
1.179 petere 1698: _ACEOF
1.135 petere 1699:
1700: fi
1701:
1.179 petere 1702: echo "$as_me:$LINENO: result: $enable_nls" >&5
1703: echo "${ECHO_T}$enable_nls" >&6
1.135 petere 1704:
1705:
1706:
1707: #
1.29 petere 1708: # Default port number (--with-pgport), default 5432
1709: #
1.179 petere 1710: echo "$as_me:$LINENO: checking for default port number" >&5
1711: echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1712:
1713:
1714:
1715: # Check whether --with-pgport or --without-pgport was given.
1716: if test "${with_pgport+set}" = set; then
1717: withval="$with_pgport"
1718:
1719: case $withval in
1.43 petere 1720: yes)
1.179 petere 1721: { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722: echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723: { (exit 1); exit 1; }; }
1.43 petere 1724: ;;
1725: no)
1.179 petere 1726: { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727: echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728: { (exit 1); exit 1; }; }
1.43 petere 1729: ;;
1730: *)
1731: default_port=$withval
1732: ;;
1.179 petere 1733: esac
1734:
1.1 petere 1735: else
1736: default_port=5432
1.179 petere 1737: fi;
1738:
1739: echo "$as_me:$LINENO: result: $default_port" >&5
1740: echo "${ECHO_T}$default_port" >&6
1.104 tgl 1741: # Need both of these because some places want an integer and some a string
1.179 petere 1742:
1743: cat >>confdefs.h <<_ACEOF
1.1 petere 1744: #define DEF_PGPORT ${default_port}
1.179 petere 1745: _ACEOF
1746:
1.1 petere 1747:
1.179 petere 1748: cat >>confdefs.h <<_ACEOF
1.1 petere 1749: #define DEF_PGPORT_STR "${default_port}"
1.179 petere 1750: _ACEOF
1.1 petere 1751:
1752:
1753:
1.29 petere 1754: #
1755: # Maximum number of allowed connections (--with-maxbackends), default 32
1756: #
1.179 petere 1757: echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758: echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1759:
1760:
1761:
1762: # Check whether --with-maxbackends or --without-maxbackends was given.
1763: if test "${with_maxbackends+set}" = set; then
1764: withval="$with_maxbackends"
1765:
1766: case $withval in
1.43 petere 1767: yes)
1.179 petere 1768: { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769: echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770: { (exit 1); exit 1; }; }
1.43 petere 1771: ;;
1772: no)
1.179 petere 1773: { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774: echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775: { (exit 1); exit 1; }; }
1776: ;;
1777: *)
1778:
1.43 petere 1779: ;;
1.179 petere 1780: esac
1781:
1.1 petere 1782: else
1.29 petere 1783: with_maxbackends=32
1.179 petere 1784: fi;
1785:
1786: echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787: echo "${ECHO_T}$with_maxbackends" >&6
1788:
1789: cat >>confdefs.h <<_ACEOF
1.29 petere 1790: #define DEF_MAXBACKENDS $with_maxbackends
1.179 petere 1791: _ACEOF
1.1 petere 1792:
1793:
1794:
1.29 petere 1795: #
1.67 petere 1796: # Option to disable shared libraries
1797: #
1.179 petere 1798:
1799:
1800: # Check whether --enable-shared or --disable-shared was given.
1801: if test "${enable_shared+set}" = set; then
1802: enableval="$enable_shared"
1803:
1804: case $enableval in
1.67 petere 1805: yes)
1806: :
1807: ;;
1808: no)
1809: :
1810: ;;
1811: *)
1.179 petere 1812: { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813: echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814: { (exit 1); exit 1; }; }
1.67 petere 1815: ;;
1.179 petere 1816: esac
1817:
1.67 petere 1818: else
1819: enable_shared=yes
1820:
1.179 petere 1821: fi;
1822:
1.67 petere 1823:
1824:
1.73 petere 1825: #
1826: # '-rpath'-like feature can be disabled
1827: #
1.179 petere 1828:
1829:
1830: # Check whether --enable-rpath or --disable-rpath was given.
1831: if test "${enable_rpath+set}" = set; then
1832: enableval="$enable_rpath"
1833:
1834: case $enableval in
1.73 petere 1835: yes)
1836: :
1837: ;;
1838: no)
1839: :
1840: ;;
1841: *)
1.179 petere 1842: { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843: echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844: { (exit 1); exit 1; }; }
1.73 petere 1845: ;;
1.179 petere 1846: esac
1847:
1.73 petere 1848: else
1849: enable_rpath=yes
1850:
1.179 petere 1851: fi;
1852:
1.73 petere 1853:
1854:
1.67 petere 1855:
1856: #
1.80 petere 1857: # --enable-debug adds -g to compiler flags
1858: #
1.179 petere 1859:
1860:
1861: # Check whether --enable-debug or --disable-debug was given.
1862: if test "${enable_debug+set}" = set; then
1863: enableval="$enable_debug"
1864:
1865: case $enableval in
1.80 petere 1866: yes)
1867: :
1868: ;;
1869: no)
1870: :
1871: ;;
1872: *)
1.179 petere 1873: { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874: echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875: { (exit 1); exit 1; }; }
1.80 petere 1876: ;;
1.179 petere 1877: esac
1878:
1.80 petere 1879: else
1880: enable_debug=no
1881:
1.179 petere 1882: fi;
1883:
1.80 petere 1884:
1885:
1886: #
1.30 petere 1887: # C compiler
1888: #
1889:
1.29 petere 1890: # For historical reasons you can also use --with-CC to specify the C compiler
1891: # to use, although the standard way to do this is to set the CC environment
1892: # variable.
1.179 petere 1893:
1894:
1895:
1896: # Check whether --with-CC or --without-CC was given.
1897: if test "${with_CC+set}" = set; then
1898: withval="$with_CC"
1899:
1900: case $withval in
1.43 petere 1901: yes)
1.179 petere 1902: { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903: echo "$as_me: error: argument required for --with-CC option" >&2;}
1904: { (exit 1); exit 1; }; }
1.43 petere 1905: ;;
1906: no)
1.179 petere 1907: { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908: echo "$as_me: error: argument required for --with-CC option" >&2;}
1909: { (exit 1); exit 1; }; }
1.43 petere 1910: ;;
1911: *)
1912: CC=$with_CC
1913: ;;
1.179 petere 1914: esac
1915:
1916: fi;
1917:
1.1 petere 1918:
1.179 petere 1919: case $template in
1920: aix) pgac_cc_list="gcc xlc";;
1921: irix) pgac_cc_list="cc";; # no gcc
1922: *) pgac_cc_list="gcc cc";;
1923: esac
1.1 petere 1924:
1.179 petere 1925: ac_ext=c
1926: ac_cpp='$CPP $CPPFLAGS'
1927: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930: if test -n "$ac_tool_prefix"; then
1931: for ac_prog in $pgac_cc_list
1932: do
1933: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1934: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1935: echo "$as_me:$LINENO: checking for $ac_word" >&5
1936: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937: if test "${ac_cv_prog_CC+set}" = set; then
1938: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 1939: else
1940: if test -n "$CC"; then
1941: ac_cv_prog_CC="$CC" # Let the user override the test.
1942: else
1.179 petere 1943: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944: for as_dir in $PATH
1945: do
1946: IFS=$as_save_IFS
1947: test -z "$as_dir" && as_dir=.
1948: for ac_exec_ext in '' $ac_executable_extensions; do
1949: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1951: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952: break 2
1953: fi
1954: done
1955: done
1956:
1.1 petere 1957: fi
1958: fi
1.179 petere 1959: CC=$ac_cv_prog_CC
1.1 petere 1960: if test -n "$CC"; then
1.179 petere 1961: echo "$as_me:$LINENO: result: $CC" >&5
1962: echo "${ECHO_T}$CC" >&6
1.1 petere 1963: else
1.179 petere 1964: echo "$as_me:$LINENO: result: no" >&5
1965: echo "${ECHO_T}no" >&6
1.1 petere 1966: fi
1967:
1.179 petere 1968: test -n "$CC" && break
1969: done
1970: fi
1.1 petere 1971: if test -z "$CC"; then
1.179 petere 1972: ac_ct_CC=$CC
1973: for ac_prog in $pgac_cc_list
1974: do
1975: # Extract the first word of "$ac_prog", so it can be a program name with args.
1976: set dummy $ac_prog; ac_word=$2
1977: echo "$as_me:$LINENO: checking for $ac_word" >&5
1978: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1980: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 1981: else
1.179 petere 1982: if test -n "$ac_ct_CC"; then
1983: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 petere 1984: else
1.179 petere 1985: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986: for as_dir in $PATH
1987: do
1988: IFS=$as_save_IFS
1989: test -z "$as_dir" && as_dir=.
1990: for ac_exec_ext in '' $ac_executable_extensions; do
1991: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992: ac_cv_prog_ac_ct_CC="$ac_prog"
1993: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994: break 2
1.1 petere 1995: fi
1.179 petere 1996: done
1997: done
1.1 petere 1998:
1999: fi
2000: fi
1.179 petere 2001: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002: if test -n "$ac_ct_CC"; then
2003: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2004: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 petere 2005: else
1.179 petere 2006: echo "$as_me:$LINENO: result: no" >&5
2007: echo "${ECHO_T}no" >&6
1.1 petere 2008: fi
2009:
1.179 petere 2010: test -n "$ac_ct_CC" && break
2011: done
1.1 petere 2012:
1.179 petere 2013: CC=$ac_ct_CC
2014: fi
1.1 petere 2015:
2016:
1.179 petere 2017: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2018: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2019: { (exit 1); exit 1; }; }
2020:
2021: # Provide some information about the compiler.
2022: echo "$as_me:$LINENO:" \
2023: "checking for C compiler version" >&5
2024: ac_compiler=`set X $ac_compile; echo $2`
2025: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2026: (eval $ac_compiler --version </dev/null >&5) 2>&5
2027: ac_status=$?
2028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029: (exit $ac_status); }
2030: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2031: (eval $ac_compiler -v </dev/null >&5) 2>&5
2032: ac_status=$?
2033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034: (exit $ac_status); }
2035: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2036: (eval $ac_compiler -V </dev/null >&5) 2>&5
2037: ac_status=$?
2038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039: (exit $ac_status); }
2040:
2041: cat >conftest.$ac_ext <<_ACEOF
2042: #line $LINENO "configure"
2043: #include "confdefs.h"
2044:
2045: #ifdef F77_DUMMY_MAIN
2046: # ifdef __cplusplus
2047: extern "C"
2048: # endif
2049: int F77_DUMMY_MAIN() { return 1; }
2050: #endif
2051: int
2052: main ()
2053: {
1.1 petere 2054:
1.179 petere 2055: ;
2056: return 0;
2057: }
2058: _ACEOF
2059: ac_clean_files_save=$ac_clean_files
2060: ac_clean_files="$ac_clean_files a.out a.exe"
2061: # Try to create an executable without -o first, disregard a.out.
2062: # It will help us diagnose broken compilers, and finding out an intuition
2063: # of exeext.
2064: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2065: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2066: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2067: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2068: (eval $ac_link_default) 2>&5
2069: ac_status=$?
2070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071: (exit $ac_status); }; then
2072: # Find the output, starting from the most likely. This scheme is
2073: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2074: # resort.
2075:
2076: # Be careful to initialize this variable, since it used to be cached.
2077: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2078: ac_cv_exeext=
2079: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2080: ls a.out conftest 2>/dev/null;
2081: ls a.* conftest.* 2>/dev/null`; do
2082: case $ac_file in
2083: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2084: a.out ) # We found the default executable, but exeext='' is most
2085: # certainly right.
2086: break;;
2087: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2089: export ac_cv_exeext
2090: break;;
2091: * ) break;;
2092: esac
2093: done
2094: else
2095: echo "$as_me: failed program was:" >&5
2096: cat conftest.$ac_ext >&5
2097: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2098: echo "$as_me: error: C compiler cannot create executables" >&2;}
2099: { (exit 77); exit 77; }; }
2100: fi
2101:
2102: ac_exeext=$ac_cv_exeext
2103: echo "$as_me:$LINENO: result: $ac_file" >&5
2104: echo "${ECHO_T}$ac_file" >&6
2105:
2106: # Check the compiler produces executables we can run. If not, either
2107: # the compiler is broken, or we cross compile.
2108: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111: # If not cross compiling, check that we can run a simple program.
2112: if test "$cross_compiling" != yes; then
2113: if { ac_try='./$ac_file'
2114: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115: (eval $ac_try) 2>&5
2116: ac_status=$?
2117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118: (exit $ac_status); }; }; then
2119: cross_compiling=no
1.1 petere 2120: else
1.179 petere 2121: if test "$cross_compiling" = maybe; then
2122: cross_compiling=yes
2123: else
2124: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125: If you meant to cross compile, use \`--host'." >&5
2126: echo "$as_me: error: cannot run C compiled programs.
2127: If you meant to cross compile, use \`--host'." >&2;}
2128: { (exit 1); exit 1; }; }
2129: fi
1.1 petere 2130: fi
2131: fi
1.179 petere 2132: echo "$as_me:$LINENO: result: yes" >&5
2133: echo "${ECHO_T}yes" >&6
2134:
2135: rm -f a.out a.exe conftest$ac_cv_exeext
2136: ac_clean_files=$ac_clean_files_save
2137: # Check the compiler produces executables we can run. If not, either
2138: # the compiler is broken, or we cross compile.
2139: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2141: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142: echo "${ECHO_T}$cross_compiling" >&6
2143:
2144: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2146: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2147: (eval $ac_link) 2>&5
2148: ac_status=$?
2149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150: (exit $ac_status); }; then
2151: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2152: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2153: # work properly (i.e., refer to `conftest.exe'), while it won't with
2154: # `rm'.
2155: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2156: case $ac_file in
2157: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2158: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2159: export ac_cv_exeext
2160: break;;
2161: * ) break;;
2162: esac
2163: done
1.1 petere 2164: else
1.179 petere 2165: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2166: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2167: { (exit 1); exit 1; }; }
1.1 petere 2168: fi
2169:
1.179 petere 2170: rm -f conftest$ac_cv_exeext
2171: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172: echo "${ECHO_T}$ac_cv_exeext" >&6
2173:
2174: rm -f conftest.$ac_ext
2175: EXEEXT=$ac_cv_exeext
2176: ac_exeext=$EXEEXT
2177: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2179: if test "${ac_cv_objext+set}" = set; then
2180: echo $ECHO_N "(cached) $ECHO_C" >&6
2181: else
2182: cat >conftest.$ac_ext <<_ACEOF
2183: #line $LINENO "configure"
2184: #include "confdefs.h"
2185:
2186: #ifdef F77_DUMMY_MAIN
2187: # ifdef __cplusplus
2188: extern "C"
2189: # endif
2190: int F77_DUMMY_MAIN() { return 1; }
2191: #endif
2192: int
2193: main ()
2194: {
1.1 petere 2195:
1.179 petere 2196: ;
2197: return 0;
2198: }
2199: _ACEOF
2200: rm -f conftest.o conftest.obj
2201: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202: (eval $ac_compile) 2>&5
2203: ac_status=$?
2204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205: (exit $ac_status); }; then
2206: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207: case $ac_file in
2208: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2209: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210: break;;
2211: esac
2212: done
1.1 petere 2213: else
1.179 petere 2214: echo "$as_me: failed program was:" >&5
2215: cat conftest.$ac_ext >&5
2216: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2217: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2218: { (exit 1); exit 1; }; }
2219: fi
2220:
2221: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222: fi
2223: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224: echo "${ECHO_T}$ac_cv_objext" >&6
2225: OBJEXT=$ac_cv_objext
2226: ac_objext=$OBJEXT
2227: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2228: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2229: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2230: echo $ECHO_N "(cached) $ECHO_C" >&6
2231: else
2232: cat >conftest.$ac_ext <<_ACEOF
2233: #line $LINENO "configure"
2234: #include "confdefs.h"
2235:
2236: #ifdef F77_DUMMY_MAIN
2237: # ifdef __cplusplus
2238: extern "C"
2239: # endif
2240: int F77_DUMMY_MAIN() { return 1; }
2241: #endif
2242: int
2243: main ()
2244: {
2245: #ifndef __GNUC__
2246: choke me
2247: #endif
2248:
2249: ;
2250: return 0;
2251: }
2252: _ACEOF
2253: rm -f conftest.$ac_objext
2254: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255: (eval $ac_compile) 2>&5
2256: ac_status=$?
2257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258: (exit $ac_status); } &&
2259: { ac_try='test -s conftest.$ac_objext'
2260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261: (eval $ac_try) 2>&5
2262: ac_status=$?
2263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264: (exit $ac_status); }; }; then
2265: ac_compiler_gnu=yes
2266: else
2267: echo "$as_me: failed program was:" >&5
2268: cat conftest.$ac_ext >&5
2269: ac_compiler_gnu=no
2270: fi
2271: rm -f conftest.$ac_objext conftest.$ac_ext
2272: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2273:
2274: fi
2275: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2276: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2277: GCC=`test $ac_compiler_gnu = yes && echo yes`
2278: ac_test_CFLAGS=${CFLAGS+set}
2279: ac_save_CFLAGS=$CFLAGS
2280: CFLAGS="-g"
2281: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2282: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2283: if test "${ac_cv_prog_cc_g+set}" = set; then
2284: echo $ECHO_N "(cached) $ECHO_C" >&6
2285: else
2286: cat >conftest.$ac_ext <<_ACEOF
2287: #line $LINENO "configure"
2288: #include "confdefs.h"
2289:
2290: #ifdef F77_DUMMY_MAIN
2291: # ifdef __cplusplus
2292: extern "C"
2293: # endif
2294: int F77_DUMMY_MAIN() { return 1; }
2295: #endif
2296: int
2297: main ()
2298: {
1.1 petere 2299:
1.179 petere 2300: ;
2301: return 0;
2302: }
2303: _ACEOF
2304: rm -f conftest.$ac_objext
2305: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306: (eval $ac_compile) 2>&5
2307: ac_status=$?
2308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309: (exit $ac_status); } &&
2310: { ac_try='test -s conftest.$ac_objext'
2311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312: (eval $ac_try) 2>&5
2313: ac_status=$?
2314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315: (exit $ac_status); }; }; then
1.1 petere 2316: ac_cv_prog_cc_g=yes
2317: else
1.179 petere 2318: echo "$as_me: failed program was:" >&5
2319: cat conftest.$ac_ext >&5
2320: ac_cv_prog_cc_g=no
1.1 petere 2321: fi
1.179 petere 2322: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 2323: fi
1.179 petere 2324: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2325: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 petere 2326: if test "$ac_test_CFLAGS" = set; then
1.179 petere 2327: CFLAGS=$ac_save_CFLAGS
1.1 petere 2328: elif test $ac_cv_prog_cc_g = yes; then
2329: if test "$GCC" = yes; then
2330: CFLAGS="-g -O2"
2331: else
2332: CFLAGS="-g"
2333: fi
2334: else
2335: if test "$GCC" = yes; then
2336: CFLAGS="-O2"
2337: else
2338: CFLAGS=
2339: fi
2340: fi
1.179 petere 2341: # Some people use a C++ compiler to compile C. Since we use `exit',
2342: # in C++ we need to declare it. In case someone uses the same compiler
2343: # for both compiling C and C++ we need to have the C++ compiler decide
2344: # the declaration of exit, since it's the most demanding environment.
2345: cat >conftest.$ac_ext <<_ACEOF
2346: #ifndef __cplusplus
2347: choke me
2348: #endif
2349: _ACEOF
2350: rm -f conftest.$ac_objext
2351: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352: (eval $ac_compile) 2>&5
2353: ac_status=$?
2354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355: (exit $ac_status); } &&
2356: { ac_try='test -s conftest.$ac_objext'
2357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358: (eval $ac_try) 2>&5
2359: ac_status=$?
2360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361: (exit $ac_status); }; }; then
2362: for ac_declaration in \
2363: ''\
2364: '#include <stdlib.h>' \
2365: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2366: 'extern "C" void std::exit (int); using std::exit;' \
2367: 'extern "C" void exit (int) throw ();' \
2368: 'extern "C" void exit (int);' \
2369: 'void exit (int);'
2370: do
2371: cat >conftest.$ac_ext <<_ACEOF
2372: #line $LINENO "configure"
2373: #include "confdefs.h"
2374: #include <stdlib.h>
2375: $ac_declaration
2376: #ifdef F77_DUMMY_MAIN
2377: # ifdef __cplusplus
2378: extern "C"
2379: # endif
2380: int F77_DUMMY_MAIN() { return 1; }
2381: #endif
2382: int
2383: main ()
2384: {
2385: exit (42);
2386: ;
2387: return 0;
2388: }
2389: _ACEOF
2390: rm -f conftest.$ac_objext
2391: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392: (eval $ac_compile) 2>&5
2393: ac_status=$?
2394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395: (exit $ac_status); } &&
2396: { ac_try='test -s conftest.$ac_objext'
2397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398: (eval $ac_try) 2>&5
2399: ac_status=$?
2400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401: (exit $ac_status); }; }; then
2402: :
2403: else
2404: echo "$as_me: failed program was:" >&5
2405: cat conftest.$ac_ext >&5
2406: continue
2407: fi
2408: rm -f conftest.$ac_objext conftest.$ac_ext
2409: cat >conftest.$ac_ext <<_ACEOF
2410: #line $LINENO "configure"
2411: #include "confdefs.h"
2412: $ac_declaration
2413: #ifdef F77_DUMMY_MAIN
2414: # ifdef __cplusplus
2415: extern "C"
2416: # endif
2417: int F77_DUMMY_MAIN() { return 1; }
2418: #endif
2419: int
2420: main ()
2421: {
2422: exit (42);
2423: ;
2424: return 0;
2425: }
2426: _ACEOF
2427: rm -f conftest.$ac_objext
2428: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429: (eval $ac_compile) 2>&5
2430: ac_status=$?
2431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432: (exit $ac_status); } &&
2433: { ac_try='test -s conftest.$ac_objext'
2434: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435: (eval $ac_try) 2>&5
2436: ac_status=$?
2437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438: (exit $ac_status); }; }; then
2439: break
2440: else
2441: echo "$as_me: failed program was:" >&5
2442: cat conftest.$ac_ext >&5
2443: fi
2444: rm -f conftest.$ac_objext conftest.$ac_ext
2445: done
2446: rm -f conftest*
2447: if test -n "$ac_declaration"; then
2448: echo '#ifdef __cplusplus' >>confdefs.h
2449: echo $ac_declaration >>confdefs.h
2450: echo '#endif' >>confdefs.h
2451: fi
2452:
2453: else
2454: echo "$as_me: failed program was:" >&5
2455: cat conftest.$ac_ext >&5
2456: fi
2457: rm -f conftest.$ac_objext conftest.$ac_ext
2458: ac_ext=c
2459: ac_cpp='$CPP $CPPFLAGS'
2460: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 2463:
1.30 petere 2464: # Read the template
2465: . "$srcdir/src/template/$template" || exit
1.80 petere 2466:
1.179 petere 2467: if test "$ac_env_CFLAGS_set" = set; then
2468: CFLAGS=$ac_env_CFLAGS_value
1.80 petere 2469: fi
2470: if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2471: CFLAGS="$CFLAGS -g"
2472: fi
1.179 petere 2473: { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2474: echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
1.30 petere 2475: # Check if the compiler still works with the template settings
1.179 petere 2476: echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2477: echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
1.30 petere 2478:
1.179 petere 2479: cat >conftest.$ac_ext <<_ACEOF
2480: #line $LINENO "configure"
1.30 petere 2481: #include "confdefs.h"
2482:
1.179 petere 2483: #ifdef F77_DUMMY_MAIN
2484: # ifdef __cplusplus
2485: extern "C"
2486: # endif
2487: int F77_DUMMY_MAIN() { return 1; }
2488: #endif
2489: int
2490: main ()
2491: {
2492: return 0;
2493: ;
2494: return 0;
2495: }
2496: _ACEOF
2497: rm -f conftest.$ac_objext conftest$ac_exeext
2498: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2499: (eval $ac_link) 2>&5
2500: ac_status=$?
2501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502: (exit $ac_status); } &&
2503: { ac_try='test -s conftest$ac_exeext'
2504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505: (eval $ac_try) 2>&5
2506: ac_status=$?
2507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508: (exit $ac_status); }; }; then
2509: echo "$as_me:$LINENO: result: yes" >&5
2510: echo "${ECHO_T}yes" >&6
2511: else
2512: echo "$as_me: failed program was:" >&5
2513: cat conftest.$ac_ext >&5
2514: echo "$as_me:$LINENO: result: no" >&5
2515: echo "${ECHO_T}no" >&6
2516: { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2517: echo "$as_me: error: cannot proceed" >&2;}
2518: { (exit 1); exit 1; }; }
1.30 petere 2519: fi
1.179 petere 2520: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.30 petere 2521: ac_ext=c
2522: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 2523: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2527: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2528: # On Suns, sometimes $CPP names a directory.
2529: if test -n "$CPP" && test -d "$CPP"; then
2530: CPP=
1.30 petere 2531: fi
1.179 petere 2532: if test -z "$CPP"; then
2533: if test "${ac_cv_prog_CPP+set}" = set; then
2534: echo $ECHO_N "(cached) $ECHO_C" >&6
1.45 petere 2535: else
1.179 petere 2536: # Double quotes because CPP needs to be expanded
2537: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2538: do
2539: ac_preproc_ok=false
2540: for ac_c_preproc_warn_flag in '' yes
2541: do
2542: # Use a header file that comes with gcc, so configuring glibc
2543: # with a fresh cross-compiler works.
2544: # On the NeXT, cc -E runs the code through the compiler's parser,
2545: # not just through cpp. "Syntax error" is here to catch this case.
2546: cat >conftest.$ac_ext <<_ACEOF
2547: #line $LINENO "configure"
1.45 petere 2548: #include "confdefs.h"
1.179 petere 2549: #include <assert.h>
2550: Syntax error
2551: _ACEOF
2552: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2553: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2554: ac_status=$?
2555: egrep -v '^ *\+' conftest.er1 >conftest.err
2556: rm -f conftest.er1
2557: cat conftest.err >&5
2558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559: (exit $ac_status); } >/dev/null; then
2560: if test -s conftest.err; then
2561: ac_cpp_err=$ac_c_preproc_warn_flag
2562: else
2563: ac_cpp_err=
2564: fi
1.45 petere 2565: else
1.179 petere 2566: ac_cpp_err=yes
1.45 petere 2567: fi
1.179 petere 2568: if test -z "$ac_cpp_err"; then
2569: :
1.45 petere 2570: else
1.179 petere 2571: echo "$as_me: failed program was:" >&5
1.45 petere 2572: cat conftest.$ac_ext >&5
1.179 petere 2573: # Broken: fails on valid input.
2574: continue
1.45 petere 2575: fi
1.179 petere 2576: rm -f conftest.err conftest.$ac_ext
1.45 petere 2577:
1.179 petere 2578: # OK, works on sane cases. Now check whether non-existent headers
2579: # can be detected and how.
2580: cat >conftest.$ac_ext <<_ACEOF
2581: #line $LINENO "configure"
2582: #include "confdefs.h"
2583: #include <ac_nonexistent.h>
2584: _ACEOF
2585: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2586: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2587: ac_status=$?
2588: egrep -v '^ *\+' conftest.er1 >conftest.err
2589: rm -f conftest.er1
2590: cat conftest.err >&5
2591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592: (exit $ac_status); } >/dev/null; then
2593: if test -s conftest.err; then
2594: ac_cpp_err=$ac_c_preproc_warn_flag
1.45 petere 2595: else
1.179 petere 2596: ac_cpp_err=
1.45 petere 2597: fi
1.179 petere 2598: else
2599: ac_cpp_err=yes
2600: fi
2601: if test -z "$ac_cpp_err"; then
2602: # Broken: success on invalid input.
2603: continue
2604: else
2605: echo "$as_me: failed program was:" >&5
2606: cat conftest.$ac_ext >&5
2607: # Passes both tests.
2608: ac_preproc_ok=:
2609: break
1.45 petere 2610: fi
1.179 petere 2611: rm -f conftest.err conftest.$ac_ext
2612:
2613: done
2614: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2615: rm -f conftest.err conftest.$ac_ext
2616: if $ac_preproc_ok; then
2617: break
1.45 petere 2618: fi
2619:
1.179 petere 2620: done
2621: ac_cv_prog_CPP=$CPP
1.45 petere 2622:
1.1 petere 2623: fi
1.179 petere 2624: CPP=$ac_cv_prog_CPP
1.1 petere 2625: else
1.179 petere 2626: ac_cv_prog_CPP=$CPP
2627: fi
2628: echo "$as_me:$LINENO: result: $CPP" >&5
2629: echo "${ECHO_T}$CPP" >&6
2630: ac_preproc_ok=false
2631: for ac_c_preproc_warn_flag in '' yes
2632: do
2633: # Use a header file that comes with gcc, so configuring glibc
2634: # with a fresh cross-compiler works.
1.1 petere 2635: # On the NeXT, cc -E runs the code through the compiler's parser,
1.179 petere 2636: # not just through cpp. "Syntax error" is here to catch this case.
2637: cat >conftest.$ac_ext <<_ACEOF
2638: #line $LINENO "configure"
1.1 petere 2639: #include "confdefs.h"
2640: #include <assert.h>
1.179 petere 2641: Syntax error
2642: _ACEOF
2643: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2644: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645: ac_status=$?
2646: egrep -v '^ *\+' conftest.er1 >conftest.err
2647: rm -f conftest.er1
2648: cat conftest.err >&5
2649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650: (exit $ac_status); } >/dev/null; then
2651: if test -s conftest.err; then
2652: ac_cpp_err=$ac_c_preproc_warn_flag
2653: else
2654: ac_cpp_err=
2655: fi
1.1 petere 2656: else
1.179 petere 2657: ac_cpp_err=yes
2658: fi
2659: if test -z "$ac_cpp_err"; then
1.1 petere 2660: :
2661: else
1.179 petere 2662: echo "$as_me: failed program was:" >&5
1.1 petere 2663: cat conftest.$ac_ext >&5
1.179 petere 2664: # Broken: fails on valid input.
2665: continue
2666: fi
2667: rm -f conftest.err conftest.$ac_ext
2668:
2669: # OK, works on sane cases. Now check whether non-existent headers
2670: # can be detected and how.
2671: cat >conftest.$ac_ext <<_ACEOF
2672: #line $LINENO "configure"
2673: #include "confdefs.h"
2674: #include <ac_nonexistent.h>
2675: _ACEOF
2676: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678: ac_status=$?
2679: egrep -v '^ *\+' conftest.er1 >conftest.err
2680: rm -f conftest.er1
2681: cat conftest.err >&5
2682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683: (exit $ac_status); } >/dev/null; then
2684: if test -s conftest.err; then
2685: ac_cpp_err=$ac_c_preproc_warn_flag
2686: else
2687: ac_cpp_err=
2688: fi
1.1 petere 2689: else
1.179 petere 2690: ac_cpp_err=yes
1.1 petere 2691: fi
1.179 petere 2692: if test -z "$ac_cpp_err"; then
2693: # Broken: success on invalid input.
2694: continue
1.1 petere 2695: else
1.179 petere 2696: echo "$as_me: failed program was:" >&5
2697: cat conftest.$ac_ext >&5
2698: # Passes both tests.
2699: ac_preproc_ok=:
2700: break
1.1 petere 2701: fi
1.179 petere 2702: rm -f conftest.err conftest.$ac_ext
1.1 petere 2703:
1.179 petere 2704: done
2705: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2706: rm -f conftest.err conftest.$ac_ext
2707: if $ac_preproc_ok; then
2708: :
1.1 petere 2709: else
1.179 petere 2710: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2711: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2712: { (exit 1); exit 1; }; }
1.1 petere 2713: fi
2714:
1.179 petere 2715: ac_ext=c
2716: ac_cpp='$CPP $CPPFLAGS'
2717: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 2720:
2721:
1.5 petere 2722:
1.29 petere 2723: # Create compiler version string
1.24 petere 2724: if test x"$GCC" = x"yes" ; then
1.177 momjian 2725: cc_string="GCC `${CC} --version | sed q`"
1.1 petere 2726: else
1.24 petere 2727: cc_string=$CC
1.1 petere 2728: fi
1.179 petere 2729:
2730: cat >>confdefs.h <<_ACEOF
1.183 tgl 2731: #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
1.179 petere 2732: _ACEOF
1.24 petere 2733:
1.1 petere 2734:
2735:
1.31 petere 2736: #
2737: # Automatic dependency tracking
2738: #
1.179 petere 2739:
2740:
2741: # Check whether --enable-depend or --disable-depend was given.
2742: if test "${enable_depend+set}" = set; then
2743: enableval="$enable_depend"
2744:
2745: case $enableval in
1.43 petere 2746: yes)
2747: autodepend=yes
2748: ;;
2749: no)
2750: :
2751: ;;
2752: *)
1.179 petere 2753: { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2754: echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2755: { (exit 1); exit 1; }; }
1.43 petere 2756: ;;
1.179 petere 2757: esac
2758:
1.43 petere 2759: else
2760: enable_depend=no
1.31 petere 2761:
1.179 petere 2762: fi;
2763:
1.31 petere 2764:
2765:
2766:
1.43 petere 2767: #
2768: # Enable assert checks
2769: #
1.179 petere 2770:
2771:
2772: # Check whether --enable-cassert or --disable-cassert was given.
2773: if test "${enable_cassert+set}" = set; then
2774: enableval="$enable_cassert"
2775:
2776: case $enableval in
1.43 petere 2777: yes)
1.179 petere 2778:
2779: cat >>confdefs.h <<\_ACEOF
1.43 petere 2780: #define USE_ASSERT_CHECKING 1
1.179 petere 2781: _ACEOF
1.30 petere 2782:
1.43 petere 2783: ;;
2784: no)
2785: :
2786: ;;
2787: *)
1.179 petere 2788: { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2789: echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2790: { (exit 1); exit 1; }; }
1.43 petere 2791: ;;
1.179 petere 2792: esac
2793:
1.30 petere 2794: else
1.43 petere 2795: enable_cassert=no
2796:
1.179 petere 2797: fi;
2798:
1.30 petere 2799:
2800:
2801: #
2802: # Include directories
2803: #
2804: ac_save_IFS=$IFS
1.86 petere 2805: IFS="${IFS}:"
1.30 petere 2806: # SRCH_INC comes from the template file
2807: for dir in $with_includes $SRCH_INC; do
2808: if test -d "$dir"; then
2809: INCLUDES="$INCLUDES -I$dir"
2810: else
1.179 petere 2811: { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2812: echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
1.30 petere 2813: fi
2814: done
2815: IFS=$ac_save_IFS
2816:
2817:
2818:
2819: #
2820: # Library directories
2821: #
2822: ac_save_IFS=$IFS
1.86 petere 2823: IFS="${IFS}:"
1.30 petere 2824: # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2825: for dir in $LIBRARY_DIRS $SRCH_LIB; do
2826: if test -d "$dir"; then
1.70 petere 2827: LIBDIRS="$LIBDIRS -L$dir"
1.30 petere 2828: else
1.179 petere 2829: { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2830: echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
1.30 petere 2831: fi
2832: done
2833: IFS=$ac_save_IFS
2834:
2835:
1.44 petere 2836: #
2837: # Tcl/Tk
2838: #
1.179 petere 2839: echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2840: echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2841:
2842:
2843:
2844: # Check whether --with-tcl or --without-tcl was given.
2845: if test "${with_tcl+set}" = set; then
2846: withval="$with_tcl"
2847:
2848: case $withval in
1.43 petere 2849: yes)
1.44 petere 2850: :
1.43 petere 2851: ;;
2852: no)
1.44 petere 2853: :
1.43 petere 2854: ;;
2855: *)
1.179 petere 2856: { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2857: echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2858: { (exit 1); exit 1; }; }
1.43 petere 2859: ;;
1.179 petere 2860: esac
2861:
1.3 tgl 2862: else
1.43 petere 2863: with_tcl=no
1.44 petere 2864:
1.179 petere 2865: fi;
2866:
2867: echo "$as_me:$LINENO: result: $with_tcl" >&5
2868: echo "${ECHO_T}$with_tcl" >&6
1.44 petere 2869:
2870:
2871: # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1.179 petere 2872: echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2873: echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
1.44 petere 2874: if test "$with_tcl" = yes; then
1.179 petere 2875:
2876:
2877:
2878: # Check whether --with-tk or --without-tk was given.
2879: if test "${with_tk+set}" = set; then
2880: withval="$with_tk"
2881:
2882: case $withval in
1.44 petere 2883: yes)
2884: :
2885: ;;
2886: no)
2887: :
2888: ;;
2889: *)
1.179 petere 2890: { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2891: echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2892: { (exit 1); exit 1; }; }
1.44 petere 2893: ;;
1.179 petere 2894: esac
2895:
1.44 petere 2896: else
2897: with_tk=yes
1.3 tgl 2898:
1.179 petere 2899: fi;
2900:
1.44 petere 2901: else
2902: with_tk=no
2903: fi
1.179 petere 2904: echo "$as_me:$LINENO: result: $with_tk" >&5
2905: echo "${ECHO_T}$with_tk" >&6
1.3 tgl 2906:
1.30 petere 2907:
2908:
1.179 petere 2909: # We see if the path to the Tcl/Tk configuration scripts is specified.
1.43 petere 2910: # This will override the use of tclsh to find the paths to search.
1.3 tgl 2911:
1.179 petere 2912:
2913:
2914:
2915: # Check whether --with-tclconfig or --without-tclconfig was given.
2916: if test "${with_tclconfig+set}" = set; then
2917: withval="$with_tclconfig"
2918:
2919: case $withval in
1.43 petere 2920: yes)
1.179 petere 2921: { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2922: echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2923: { (exit 1); exit 1; }; }
1.43 petere 2924: ;;
2925: no)
1.179 petere 2926: { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2927: echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2928: { (exit 1); exit 1; }; }
2929: ;;
2930: *)
2931:
1.43 petere 2932: ;;
1.179 petere 2933: esac
2934:
2935: fi;
2936:
1.3 tgl 2937:
1.179 petere 2938: # We see if the path to the Tk configuration scripts is specified.
1.43 petere 2939: # This will override the use of tclsh to find the paths to search.
1.3 tgl 2940:
1.179 petere 2941:
2942:
2943:
2944: # Check whether --with-tkconfig or --without-tkconfig was given.
2945: if test "${with_tkconfig+set}" = set; then
2946: withval="$with_tkconfig"
2947:
2948: case $withval in
1.43 petere 2949: yes)
1.179 petere 2950: { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2951: echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2952: { (exit 1); exit 1; }; }
1.43 petere 2953: ;;
2954: no)
1.179 petere 2955: { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2956: echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2957: { (exit 1); exit 1; }; }
2958: ;;
2959: *)
2960:
1.43 petere 2961: ;;
1.179 petere 2962: esac
2963:
2964: fi;
2965:
1.3 tgl 2966:
1.132 petere 2967: #
1.43 petere 2968: # Optionally build Perl modules (Pg.pm and PL/Perl)
2969: #
1.179 petere 2970: echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2971: echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2972:
2973:
2974:
2975: # Check whether --with-perl or --without-perl was given.
2976: if test "${with_perl+set}" = set; then
2977: withval="$with_perl"
2978:
2979: case $withval in
1.43 petere 2980: yes)
2981: :
2982: ;;
2983: no)
2984: :
2985: ;;
2986: *)
1.179 petere 2987: { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2988: echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2989: { (exit 1); exit 1; }; }
1.43 petere 2990: ;;
1.179 petere 2991: esac
2992:
1.4 petere 2993: else
1.43 petere 2994: with_perl=no
2995:
1.179 petere 2996: fi;
2997:
2998: echo "$as_me:$LINENO: result: $with_perl" >&5
2999: echo "${ECHO_T}$with_perl" >&6
1.4 petere 3000:
3001:
1.43 petere 3002: #
3003: # Optionally build Python interface module
3004: #
1.179 petere 3005: echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3006: echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3007:
3008:
3009:
3010: # Check whether --with-python or --without-python was given.
3011: if test "${with_python+set}" = set; then
3012: withval="$with_python"
3013:
3014: case $withval in
1.43 petere 3015: yes)
1.133 petere 3016: :
1.43 petere 3017: ;;
3018: no)
1.133 petere 3019: :
1.43 petere 3020: ;;
3021: *)
1.179 petere 3022: { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3023: echo "$as_me: error: no argument expected for --with-python option" >&2;}
3024: { (exit 1); exit 1; }; }
1.43 petere 3025: ;;
1.179 petere 3026: esac
3027:
1.4 petere 3028: else
1.43 petere 3029: with_python=no
1.133 petere 3030:
1.179 petere 3031: fi;
3032:
3033: echo "$as_me:$LINENO: result: $with_python" >&5
3034: echo "${ECHO_T}$with_python" >&6
1.3 tgl 3035:
3036:
1.112 peter 3037: #
3038: # Optionally build the Java/JDBC tools
3039: #
1.179 petere 3040: echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3041: echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3042:
3043:
3044:
3045: # Check whether --with-java or --without-java was given.
3046: if test "${with_java+set}" = set; then
3047: withval="$with_java"
3048:
3049: case $withval in
1.112 peter 3050: yes)
1.179 petere 3051: echo "$as_me:$LINENO: result: yes" >&5
3052: echo "${ECHO_T}yes" >&6
1.137 petere 3053:
3054: for ac_prog in jakarta-ant ant ant.sh ant.bat
1.112 peter 3055: do
1.179 petere 3056: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.112 peter 3057: set dummy $ac_prog; ac_word=$2
1.179 petere 3058: echo "$as_me:$LINENO: checking for $ac_word" >&5
3059: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060: if test "${ac_cv_path_ANT+set}" = set; then
3061: echo $ECHO_N "(cached) $ECHO_C" >&6
1.112 peter 3062: else
1.179 petere 3063: case $ANT in
3064: [\\/]* | ?:[\\/]*)
1.112 peter 3065: ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3066: ;;
3067: *)
1.179 petere 3068: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069: for as_dir in $PATH
3070: do
3071: IFS=$as_save_IFS
3072: test -z "$as_dir" && as_dir=.
3073: for ac_exec_ext in '' $ac_executable_extensions; do
3074: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075: ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3076: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077: break 2
3078: fi
3079: done
3080: done
3081:
1.112 peter 3082: ;;
3083: esac
3084: fi
1.179 petere 3085: ANT=$ac_cv_path_ANT
3086:
1.112 peter 3087: if test -n "$ANT"; then
1.179 petere 3088: echo "$as_me:$LINENO: result: $ANT" >&5
3089: echo "${ECHO_T}$ANT" >&6
1.112 peter 3090: else
1.179 petere 3091: echo "$as_me:$LINENO: result: no" >&5
3092: echo "${ECHO_T}no" >&6
1.112 peter 3093: fi
3094:
1.179 petere 3095: test -n "$ANT" && break
1.112 peter 3096: done
3097:
1.179 petere 3098:
3099: echo "$as_me:$LINENO: checking whether $ANT works" >&5
3100: echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3101: if test "${pgac_cv_prog_ant_works+set}" = set; then
3102: echo $ECHO_N "(cached) $ECHO_C" >&6
1.137 petere 3103: else
1.179 petere 3104:
1.137 petere 3105: cat > conftest.java << EOF
3106: public class conftest {
3107: int testmethod(int a, int b) {
3108: return a + b;
3109: }
3110: }
3111: EOF
3112:
3113: cat > conftest.xml << EOF
3114: <project name="conftest" default="conftest">
3115: <target name="conftest">
3116: <javac srcdir="." includes="conftest.java">
3117: </javac>
3118: </target>
3119: </project>
3120: EOF
3121:
3122: pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
1.179 petere 3123: { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3124: (eval $pgac_cmd) 2>&5
3125: ac_status=$?
3126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127: (exit $ac_status); }
1.137 petere 3128: pgac_save_status=$?
3129: if test $? = 0 && test -f ./conftest.class ; then
3130: pgac_cv_prog_ant_works=yes
3131: else
3132: echo "configure: failed java program was:" >&5
3133: cat conftest.java >&5
3134: echo "configure: failed build file was:" >&5
3135: cat conftest.xml >&5
3136: pgac_cv_prog_ant_works=no
3137: fi
3138:
3139: rm -f conftest* core core.* *.core
1.179 petere 3140:
1.137 petere 3141: fi
1.179 petere 3142: echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3143: echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
1.137 petere 3144:
3145: if test "$pgac_cv_prog_ant_works" != yes; then
1.179 petere 3146: { { echo "$as_me:$LINENO: error: ant does not work" >&5
3147: echo "$as_me: error: ant does not work" >&2;}
3148: { (exit 1); exit 1; }; }
1.137 petere 3149: fi
3150:
3151:
1.115 petere 3152: if test -z "$ANT"; then
1.179 petere 3153: { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3154: echo "$as_me: error: Ant is required to build Java components" >&2;}
3155: { (exit 1); exit 1; }; }
1.115 petere 3156: fi
1.112 peter 3157: ;;
3158: no)
1.179 petere 3159: echo "$as_me:$LINENO: result: no" >&5
3160: echo "${ECHO_T}no" >&6
1.112 peter 3161: ;;
3162: *)
1.179 petere 3163: { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3164: echo "$as_me: error: no argument expected for --with-java option" >&2;}
3165: { (exit 1); exit 1; }; }
1.112 peter 3166: ;;
1.179 petere 3167: esac
3168:
1.112 peter 3169: else
3170: with_java=no
1.179 petere 3171: echo "$as_me:$LINENO: result: no" >&5
3172: echo "${ECHO_T}no" >&6
3173: fi;
3174:
1.112 peter 3175:
1.3 tgl 3176:
1.12 petere 3177:
1.28 petere 3178: #
3179: # Kerberos 4
3180: #
1.179 petere 3181: echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3182: echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3183:
3184:
3185:
3186: # Check whether --with-krb4 or --without-krb4 was given.
3187: if test "${with_krb4+set}" = set; then
3188: withval="$with_krb4"
3189:
3190: case $withval in
1.43 petere 3191: yes)
3192: krb4_prefix=/usr/athena
3193: ;;
3194: no)
3195: :
3196: ;;
3197: *)
3198: with_krb4=yes
3199: krb4_prefix=$withval
3200: ;;
1.179 petere 3201: esac
3202:
1.12 petere 3203: else
1.28 petere 3204: with_krb4=no
1.179 petere 3205: fi;
3206:
1.12 petere 3207:
1.43 petere 3208: if test "$with_krb4" = yes; then
1.179 petere 3209:
3210: echo "$as_me:$LINENO: result: yes" >&5
3211: echo "${ECHO_T}yes" >&6
3212:
3213: cat >>confdefs.h <<\_ACEOF
1.43 petere 3214: #define KRB4 1
1.179 petere 3215: _ACEOF
1.12 petere 3216:
1.28 petere 3217:
1.70 petere 3218: if test -d "$krb4_prefix/include"; then
3219: INCLUDES="$INCLUDES -I$krb4_prefix/include"
3220: fi
3221: if test -d "$krb4_prefix/lib"; then
3222: LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1.28 petere 3223: fi
1.43 petere 3224:
3225: krb_srvtab="/etc/srvtab"
1.37 petere 3226:
1.179 petere 3227: else
3228: echo "$as_me:$LINENO: result: no" >&5
3229: echo "${ECHO_T}no" >&6
1.12 petere 3230: fi
3231:
3232:
1.43 petere 3233:
3234:
3235:
1.28 petere 3236: #
3237: # Kerberos 5
3238: #
1.179 petere 3239: echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3240: echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3241:
3242:
3243:
3244: # Check whether --with-krb5 or --without-krb5 was given.
3245: if test "${with_krb5+set}" = set; then
3246: withval="$with_krb5"
3247:
3248: case $withval in
1.43 petere 3249: yes)
3250: krb5_prefix=/usr/athena
3251: ;;
3252: no)
3253: :
3254: ;;
3255: *)
3256: with_krb5=yes
3257: krb5_prefix=$withval
3258: ;;
1.179 petere 3259: esac
3260:
1.12 petere 3261: else
1.28 petere 3262: with_krb5=no
1.179 petere 3263: fi;
3264:
1.12 petere 3265:
1.43 petere 3266: if test "$with_krb5" = yes; then
1.179 petere 3267:
3268: echo "$as_me:$LINENO: result: yes" >&5
3269: echo "${ECHO_T}yes" >&6
3270:
3271: cat >>confdefs.h <<\_ACEOF
1.43 petere 3272: #define KRB5 1
1.179 petere 3273: _ACEOF
1.12 petere 3274:
3275:
1.70 petere 3276: if test -d "$krb5_prefix/include"; then
3277: INCLUDES="$INCLUDES -I$krb5_prefix/include"
3278: fi
3279: if test -d "$krb5_prefix/lib"; then
3280: LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1.28 petere 3281: fi
1.12 petere 3282:
1.43 petere 3283: krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1.37 petere 3284:
1.179 petere 3285: else
3286: echo "$as_me:$LINENO: result: no" >&5
3287: echo "${ECHO_T}no" >&6
1.12 petere 3288: fi
3289:
3290:
1.43 petere 3291:
3292:
3293:
1.28 petere 3294: # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3295: if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1.179 petere 3296: { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3297: echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3298: { (exit 1); exit 1; }; }
1.12 petere 3299: fi
3300:
3301:
3302:
3303:
1.28 petere 3304: #
3305: # Kerberos configuration parameters
3306: #
1.179 petere 3307:
3308:
3309:
3310: # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3311: if test "${with_krb_srvnam+set}" = set; then
3312: withval="$with_krb_srvnam"
3313:
3314: case $withval in
1.43 petere 3315: yes)
1.179 petere 3316: { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3317: echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3318: { (exit 1); exit 1; }; }
1.43 petere 3319: ;;
3320: no)
1.179 petere 3321: { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3322: echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3323: { (exit 1); exit 1; }; }
3324: ;;
3325: *)
3326:
1.43 petere 3327: ;;
1.179 petere 3328: esac
3329:
1.12 petere 3330: else
1.43 petere 3331: with_krb_srvnam="postgres"
1.179 petere 3332: fi;
3333:
3334:
3335: cat >>confdefs.h <<_ACEOF
1.43 petere 3336: #define PG_KRB_SRVNAM "$with_krb_srvnam"
1.179 petere 3337: _ACEOF
1.12 petere 3338:
3339:
1.28 petere 3340:
1.146 momjian 3341: #
3342: # PAM
3343: #
1.179 petere 3344: echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3345: echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3346:
3347:
3348:
3349: # Check whether --with-pam or --without-pam was given.
3350: if test "${with_pam+set}" = set; then
3351: withval="$with_pam"
3352:
3353: case $withval in
1.146 momjian 3354: yes)
1.179 petere 3355:
3356: cat >>confdefs.h <<\_ACEOF
1.166 petere 3357: #define USE_PAM 1
1.179 petere 3358: _ACEOF
1.166 petere 3359:
1.146 momjian 3360: ;;
3361: no)
3362: :
3363: ;;
3364: *)
1.179 petere 3365: { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3366: echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3367: { (exit 1); exit 1; }; }
1.146 momjian 3368: ;;
1.179 petere 3369: esac
3370:
1.146 momjian 3371: else
3372: with_pam=no
3373:
1.179 petere 3374: fi;
3375:
3376: echo "$as_me:$LINENO: result: $with_pam" >&5
3377: echo "${ECHO_T}$with_pam" >&6
1.146 momjian 3378:
3379:
1.28 petere 3380:
3381: #
3382: # OpenSSL
3383: #
1.179 petere 3384:
3385:
3386:
3387: # Check whether --with-openssl or --without-openssl was given.
3388: if test "${with_openssl+set}" = set; then
3389: withval="$with_openssl"
3390:
3391: case $withval in
1.43 petere 3392: yes)
3393: openssl_prefix=/usr/local/ssl
3394: ;;
3395: no)
3396: :
3397: ;;
3398: *)
3399: with_openssl=yes
3400: openssl_prefix=$withval
3401: ;;
1.179 petere 3402: esac
3403:
1.28 petere 3404: else
3405: with_openssl=no
1.179 petere 3406: fi;
3407:
1.12 petere 3408:
1.43 petere 3409: if test "$with_openssl" = yes; then
1.179 petere 3410:
3411: echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3412: echo "${ECHO_T}building with OpenSSL support" >&6
3413:
3414: cat >>confdefs.h <<\_ACEOF
1.43 petere 3415: #define USE_SSL 1
1.179 petere 3416: _ACEOF
1.12 petere 3417:
3418:
1.28 petere 3419: if test -d "${openssl_prefix}/include" ; then
3420: INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3421: fi
3422: if test -d "${openssl_prefix}/lib" ; then
1.70 petere 3423: LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
1.28 petere 3424: fi
1.43 petere 3425:
1.28 petere 3426: fi
3427:
3428:
1.43 petere 3429:
3430:
3431:
1.186 petere 3432: #
3433: # Readline
3434: #
3435:
3436:
3437:
3438: # Check whether --with-readline or --without-readline was given.
3439: if test "${with_readline+set}" = set; then
3440: withval="$with_readline"
3441:
3442: case $withval in
3443: yes)
3444: :
3445: ;;
3446: no)
3447: :
3448: ;;
3449: *)
3450: { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3451: echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3452: { (exit 1); exit 1; }; }
3453: ;;
3454: esac
3455:
3456: else
3457: with_readline=yes
3458:
3459: fi;
3460:
3461:
3462: #
3463: # Zlib
3464: #
3465:
3466:
3467:
3468: # Check whether --with-zlib or --without-zlib was given.
3469: if test "${with_zlib+set}" = set; then
3470: withval="$with_zlib"
3471:
3472: case $withval in
3473: yes)
3474: :
3475: ;;
3476: no)
3477: :
3478: ;;
3479: *)
3480: { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3481: echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3482: { (exit 1); exit 1; }; }
3483: ;;
3484: esac
3485:
3486: else
3487: with_zlib=yes
3488:
3489: fi;
3490:
3491:
3492:
1.12 petere 3493:
1.43 petere 3494: #
3495: # Optionally enable the building of the ODBC driver
3496: #
1.179 petere 3497:
1.43 petere 3498: # Old option name
3499: if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
1.15 petere 3500: enable_odbc=$with_odbc
3501: fi
1.179 petere 3502:
3503: echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3504: echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3505:
3506:
3507: # Check whether --enable-odbc or --disable-odbc was given.
3508: if test "${enable_odbc+set}" = set; then
3509: enableval="$enable_odbc"
3510:
3511: case $enableval in
1.43 petere 3512: yes)
3513: :
3514: ;;
3515: no)
3516: :
3517: ;;
3518: *)
1.179 petere 3519: { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3520: echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3521: { (exit 1); exit 1; }; }
1.43 petere 3522: ;;
1.179 petere 3523: esac
3524:
1.3 tgl 3525: else
1.43 petere 3526: enable_odbc=no
3527:
1.179 petere 3528: fi;
3529:
3530:
3531:
3532:
3533: # Check whether --with-unixodbc or --without-unixodbc was given.
3534: if test "${with_unixodbc+set}" = set; then
3535: withval="$with_unixodbc"
3536:
3537: case $withval in
1.151 petere 3538: yes)
3539: :
3540: ;;
3541: no)
3542: :
3543: ;;
3544: *)
1.179 petere 3545: { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3546: echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3547: { (exit 1); exit 1; }; }
1.151 petere 3548: ;;
1.179 petere 3549: esac
3550:
1.151 petere 3551: else
3552: with_unixodbc=no
3553:
1.179 petere 3554: fi;
3555:
3556:
3557:
3558:
3559: # Check whether --with-iodbc or --without-iodbc was given.
3560: if test "${with_iodbc+set}" = set; then
3561: withval="$with_iodbc"
3562:
3563: case $withval in
1.151 petere 3564: yes)
3565: :
3566: ;;
3567: no)
3568: :
3569: ;;
3570: *)
1.179 petere 3571: { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3572: echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3573: { (exit 1); exit 1; }; }
1.151 petere 3574: ;;
1.179 petere 3575: esac
3576:
1.151 petere 3577: else
3578: with_iodbc=no
3579:
1.179 petere 3580: fi;
3581:
1.151 petere 3582: if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
1.179 petere 3583: { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3584: echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3585: { (exit 1); exit 1; }; }
1.151 petere 3586: fi
3587: if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3588: enable_odbc=yes
3589: fi
3590: case $enable_odbc:$with_unixodbc:$with_iodbc in
1.179 petere 3591: yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3592: echo "${ECHO_T}yes (stand-alone)" >&6;;
3593: yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3594: echo "${ECHO_T}yes (unixODBC)" >&6
3595:
3596: cat >>confdefs.h <<\_ACEOF
1.151 petere 3597: #define WITH_UNIXODBC 1
1.179 petere 3598: _ACEOF
3599:
3600: ;;
3601: yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3602: echo "${ECHO_T}yes (iODBC)" >&6
3603:
3604: cat >>confdefs.h <<\_ACEOF
1.151 petere 3605: #define WITH_IODBC 1
1.179 petere 3606: _ACEOF
3607:
3608: ;;
3609: no:*) echo "$as_me:$LINENO: result: no" >&5
3610: echo "${ECHO_T}no" >&6;;
1.151 petere 3611: esac
3612:
3613:
1.7 momjian 3614:
3615:
3616:
1.43 petere 3617: # Allow for overriding the default location of the odbcinst.ini
3618: # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
1.179 petere 3619:
3620:
3621:
3622: # Check whether --with-odbcinst or --without-odbcinst was given.
3623: if test "${with_odbcinst+set}" = set; then
3624: withval="$with_odbcinst"
3625:
3626: case $withval in
1.43 petere 3627: yes)
1.179 petere 3628: { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3629: echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3630: { (exit 1); exit 1; }; }
1.43 petere 3631: ;;
3632: no)
1.179 petere 3633: { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3634: echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3635: { (exit 1); exit 1; }; }
1.43 petere 3636: ;;
3637: *)
3638: odbcinst_ini_dir=$withval
3639: ;;
1.179 petere 3640: esac
3641:
1.7 momjian 3642: else
1.43 petere 3643: odbcinst_ini_dir="\${sysconfdir}"
1.179 petere 3644: fi;
3645:
1.7 momjian 3646:
1.3 tgl 3647:
3648:
1.1 petere 3649:
1.30 petere 3650: # Assume system is ELF if it predefines __ELF__ as 1,
3651: # otherwise believe host_os based default.
3652: case $host_os in
1.134 momjian 3653: freebsd1*|freebsd2*) elf=no;;
3654: freebsd3*|freebsd4*) elf=yes;;
1.30 petere 3655: esac
1.1 petere 3656:
1.179 petere 3657:
3658: cat >conftest.$ac_ext <<_ACEOF
3659: #line $LINENO "configure"
1.1 petere 3660: #include "confdefs.h"
3661: #if __ELF__
3662: yes
3663: #endif
3664:
1.179 petere 3665: _ACEOF
1.1 petere 3666: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667: egrep "yes" >/dev/null 2>&1; then
3668: ELF_SYS=true
3669: else
1.30 petere 3670: if test "X$elf" = "Xyes" ; then
3671: ELF_SYS=true
1.1 petere 3672: else
1.30 petere 3673: ELF_SYS=
1.1 petere 3674: fi
3675: fi
3676: rm -f conftest*
3677:
3678:
3679:
3680:
3681:
1.43 petere 3682: #
3683: # Optionally build C++ code (i.e., libpq++)
3684: #
1.179 petere 3685: echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3686: echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3687:
3688:
3689:
3690: # Check whether --with-CXX or --without-CXX was given.
3691: if test "${with_CXX+set}" = set; then
3692: withval="$with_CXX"
3693:
3694: case $withval in
1.43 petere 3695: yes)
3696: :
3697: ;;
3698: no)
3699: :
3700: ;;
3701: *)
3702: with_CXX=yes
3703: CXX=$withval
3704: ;;
1.179 petere 3705: esac
3706:
1.36 petere 3707: else
3708: with_CXX=no
1.179 petere 3709: fi;
3710:
1.36 petere 3711:
1.43 petere 3712: if test "$with_CXX" = yes; then
1.179 petere 3713:
3714: echo "$as_me:$LINENO: result: yes" >&5
3715: echo "${ECHO_T}yes" >&6
1.75 petere 3716:
3717: # If the user has specified CXXFLAGS in the environment, leave it
3718: # alone, else use a default.
3719:
1.179 petere 3720: ac_ext=cc
3721: ac_cpp='$CXXCPP $CPPFLAGS'
3722: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725: if test -n "$ac_tool_prefix"; then
3726: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3727: do
3728: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730: echo "$as_me:$LINENO: checking for $ac_word" >&5
3731: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732: if test "${ac_cv_prog_CXX+set}" = set; then
3733: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 3734: else
3735: if test -n "$CXX"; then
3736: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3737: else
1.179 petere 3738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739: for as_dir in $PATH
3740: do
3741: IFS=$as_save_IFS
3742: test -z "$as_dir" && as_dir=.
3743: for ac_exec_ext in '' $ac_executable_extensions; do
3744: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3746: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747: break 2
3748: fi
3749: done
3750: done
3751:
1.1 petere 3752: fi
3753: fi
1.179 petere 3754: CXX=$ac_cv_prog_CXX
1.1 petere 3755: if test -n "$CXX"; then
1.179 petere 3756: echo "$as_me:$LINENO: result: $CXX" >&5
3757: echo "${ECHO_T}$CXX" >&6
1.1 petere 3758: else
1.179 petere 3759: echo "$as_me:$LINENO: result: no" >&5
3760: echo "${ECHO_T}no" >&6
1.1 petere 3761: fi
3762:
1.179 petere 3763: test -n "$CXX" && break
3764: done
3765: fi
3766: if test -z "$CXX"; then
3767: ac_ct_CXX=$CXX
3768: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3769: do
3770: # Extract the first word of "$ac_prog", so it can be a program name with args.
3771: set dummy $ac_prog; ac_word=$2
3772: echo "$as_me:$LINENO: checking for $ac_word" >&5
3773: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3775: echo $ECHO_N "(cached) $ECHO_C" >&6
3776: else
3777: if test -n "$ac_ct_CXX"; then
3778: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3779: else
3780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781: for as_dir in $PATH
3782: do
3783: IFS=$as_save_IFS
3784: test -z "$as_dir" && as_dir=.
3785: for ac_exec_ext in '' $ac_executable_extensions; do
3786: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787: ac_cv_prog_ac_ct_CXX="$ac_prog"
3788: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789: break 2
3790: fi
3791: done
1.1 petere 3792: done
3793:
1.179 petere 3794: fi
3795: fi
3796: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3797: if test -n "$ac_ct_CXX"; then
3798: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3799: echo "${ECHO_T}$ac_ct_CXX" >&6
3800: else
3801: echo "$as_me:$LINENO: result: no" >&5
3802: echo "${ECHO_T}no" >&6
3803: fi
1.1 petere 3804:
1.179 petere 3805: test -n "$ac_ct_CXX" && break
3806: done
3807: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 petere 3808:
1.179 petere 3809: CXX=$ac_ct_CXX
3810: fi
1.1 petere 3811:
3812:
1.179 petere 3813: # Provide some information about the compiler.
3814: echo "$as_me:$LINENO:" \
3815: "checking for C++ compiler version" >&5
3816: ac_compiler=`set X $ac_compile; echo $2`
3817: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3818: (eval $ac_compiler --version </dev/null >&5) 2>&5
3819: ac_status=$?
3820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821: (exit $ac_status); }
3822: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3823: (eval $ac_compiler -v </dev/null >&5) 2>&5
3824: ac_status=$?
3825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826: (exit $ac_status); }
3827: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3828: (eval $ac_compiler -V </dev/null >&5) 2>&5
3829: ac_status=$?
3830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831: (exit $ac_status); }
3832:
3833: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3834: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3835: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3836: echo $ECHO_N "(cached) $ECHO_C" >&6
3837: else
3838: cat >conftest.$ac_ext <<_ACEOF
3839: #line $LINENO "configure"
3840: #include "confdefs.h"
3841:
3842: #ifdef F77_DUMMY_MAIN
3843: # ifdef __cplusplus
3844: extern "C"
3845: # endif
3846: int F77_DUMMY_MAIN() { return 1; }
3847: #endif
3848: int
3849: main ()
3850: {
3851: #ifndef __GNUC__
3852: choke me
3853: #endif
1.1 petere 3854:
1.179 petere 3855: ;
3856: return 0;
3857: }
3858: _ACEOF
3859: rm -f conftest.$ac_objext
3860: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861: (eval $ac_compile) 2>&5
3862: ac_status=$?
3863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864: (exit $ac_status); } &&
3865: { ac_try='test -s conftest.$ac_objext'
3866: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867: (eval $ac_try) 2>&5
3868: ac_status=$?
3869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870: (exit $ac_status); }; }; then
3871: ac_compiler_gnu=yes
3872: else
3873: echo "$as_me: failed program was:" >&5
3874: cat conftest.$ac_ext >&5
3875: ac_compiler_gnu=no
3876: fi
3877: rm -f conftest.$ac_objext conftest.$ac_ext
3878: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3879:
3880: fi
3881: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3882: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3883: GXX=`test $ac_compiler_gnu = yes && echo yes`
3884: ac_test_CXXFLAGS=${CXXFLAGS+set}
3885: ac_save_CXXFLAGS=$CXXFLAGS
3886: CXXFLAGS="-g"
3887: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3888: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3889: if test "${ac_cv_prog_cxx_g+set}" = set; then
3890: echo $ECHO_N "(cached) $ECHO_C" >&6
3891: else
3892: cat >conftest.$ac_ext <<_ACEOF
3893: #line $LINENO "configure"
3894: #include "confdefs.h"
3895:
3896: #ifdef F77_DUMMY_MAIN
3897: # ifdef __cplusplus
3898: extern "C"
3899: # endif
3900: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 3901: #endif
1.179 petere 3902: int
3903: main ()
3904: {
1.1 petere 3905:
1.179 petere 3906: ;
3907: return 0;
3908: }
3909: _ACEOF
3910: rm -f conftest.$ac_objext
3911: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912: (eval $ac_compile) 2>&5
3913: ac_status=$?
3914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915: (exit $ac_status); } &&
3916: { ac_try='test -s conftest.$ac_objext'
3917: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918: (eval $ac_try) 2>&5
3919: ac_status=$?
3920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921: (exit $ac_status); }; }; then
1.1 petere 3922: ac_cv_prog_cxx_g=yes
3923: else
1.179 petere 3924: echo "$as_me: failed program was:" >&5
3925: cat conftest.$ac_ext >&5
3926: ac_cv_prog_cxx_g=no
1.1 petere 3927: fi
1.179 petere 3928: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 3929: fi
1.179 petere 3930: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3931: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 petere 3932: if test "$ac_test_CXXFLAGS" = set; then
1.179 petere 3933: CXXFLAGS=$ac_save_CXXFLAGS
1.1 petere 3934: elif test $ac_cv_prog_cxx_g = yes; then
3935: if test "$GXX" = yes; then
3936: CXXFLAGS="-g -O2"
3937: else
3938: CXXFLAGS="-g"
3939: fi
3940: else
3941: if test "$GXX" = yes; then
3942: CXXFLAGS="-O2"
3943: else
3944: CXXFLAGS=
3945: fi
3946: fi
1.179 petere 3947: for ac_declaration in \
3948: ''\
3949: '#include <stdlib.h>' \
3950: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3951: 'extern "C" void std::exit (int); using std::exit;' \
3952: 'extern "C" void exit (int) throw ();' \
3953: 'extern "C" void exit (int);' \
3954: 'void exit (int);'
3955: do
3956: cat >conftest.$ac_ext <<_ACEOF
3957: #line $LINENO "configure"
3958: #include "confdefs.h"
3959: #include <stdlib.h>
3960: $ac_declaration
3961: #ifdef F77_DUMMY_MAIN
3962: # ifdef __cplusplus
3963: extern "C"
3964: # endif
3965: int F77_DUMMY_MAIN() { return 1; }
3966: #endif
3967: int
3968: main ()
3969: {
3970: exit (42);
3971: ;
3972: return 0;
3973: }
3974: _ACEOF
3975: rm -f conftest.$ac_objext
3976: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977: (eval $ac_compile) 2>&5
3978: ac_status=$?
3979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980: (exit $ac_status); } &&
3981: { ac_try='test -s conftest.$ac_objext'
3982: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983: (eval $ac_try) 2>&5
3984: ac_status=$?
3985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986: (exit $ac_status); }; }; then
3987: :
3988: else
3989: echo "$as_me: failed program was:" >&5
3990: cat conftest.$ac_ext >&5
3991: continue
3992: fi
3993: rm -f conftest.$ac_objext conftest.$ac_ext
3994: cat >conftest.$ac_ext <<_ACEOF
3995: #line $LINENO "configure"
3996: #include "confdefs.h"
3997: $ac_declaration
3998: #ifdef F77_DUMMY_MAIN
3999: # ifdef __cplusplus
4000: extern "C"
4001: # endif
4002: int F77_DUMMY_MAIN() { return 1; }
4003: #endif
4004: int
4005: main ()
4006: {
4007: exit (42);
4008: ;
4009: return 0;
4010: }
4011: _ACEOF
4012: rm -f conftest.$ac_objext
4013: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014: (eval $ac_compile) 2>&5
4015: ac_status=$?
4016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017: (exit $ac_status); } &&
4018: { ac_try='test -s conftest.$ac_objext'
4019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020: (eval $ac_try) 2>&5
4021: ac_status=$?
4022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023: (exit $ac_status); }; }; then
4024: break
4025: else
4026: echo "$as_me: failed program was:" >&5
4027: cat conftest.$ac_ext >&5
4028: fi
4029: rm -f conftest.$ac_objext conftest.$ac_ext
4030: done
4031: rm -f conftest*
4032: if test -n "$ac_declaration"; then
4033: echo '#ifdef __cplusplus' >>confdefs.h
4034: echo $ac_declaration >>confdefs.h
4035: echo '#endif' >>confdefs.h
4036: fi
4037:
4038: ac_ext=c
4039: ac_cpp='$CPP $CPPFLAGS'
4040: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 4043:
1.179 petere 4044: if test "$ac_env_CXXFLAGS" != set; then
1.75 petere 4045: if test "$GXX" = yes; then
4046: CXXFLAGS=-O2
4047: else
4048: case $template in
4049: osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4050: unixware) CXXFLAGS='-O' ;;
4051: *) CXXFLAGS= ;;
4052: esac
4053: fi
4054: fi
4055: if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056: CXXFLAGS="$CXXFLAGS -g"
4057: fi
1.179 petere 4058: { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059: echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
1.75 petere 4060:
1.179 petere 4061: ac_ext=cc
4062: ac_cpp='$CXXCPP $CPPFLAGS'
4063: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.5 petere 4068: if test -z "$CXXCPP"; then
1.179 petere 4069: if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 4071: else
1.179 petere 4072: # Double quotes because CXXCPP needs to be expanded
4073: for CXXCPP in "$CXX -E" "/lib/cpp"
4074: do
4075: ac_preproc_ok=false
4076: for ac_cxx_preproc_warn_flag in '' yes
4077: do
4078: # Use a header file that comes with gcc, so configuring glibc
4079: # with a fresh cross-compiler works.
4080: # On the NeXT, cc -E runs the code through the compiler's parser,
4081: # not just through cpp. "Syntax error" is here to catch this case.
4082: cat >conftest.$ac_ext <<_ACEOF
4083: #line $LINENO "configure"
1.5 petere 4084: #include "confdefs.h"
1.179 petere 4085: #include <assert.h>
4086: Syntax error
4087: _ACEOF
4088: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090: ac_status=$?
4091: egrep -v '^ *\+' conftest.er1 >conftest.err
4092: rm -f conftest.er1
4093: cat conftest.err >&5
4094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095: (exit $ac_status); } >/dev/null; then
4096: if test -s conftest.err; then
4097: ac_cpp_err=$ac_cxx_preproc_warn_flag
4098: else
4099: ac_cpp_err=
4100: fi
4101: else
4102: ac_cpp_err=yes
4103: fi
4104: if test -z "$ac_cpp_err"; then
1.5 petere 4105: :
4106: else
1.179 petere 4107: echo "$as_me: failed program was:" >&5
1.5 petere 4108: cat conftest.$ac_ext >&5
1.179 petere 4109: # Broken: fails on valid input.
4110: continue
1.5 petere 4111: fi
1.179 petere 4112: rm -f conftest.err conftest.$ac_ext
4113:
4114: # OK, works on sane cases. Now check whether non-existent headers
4115: # can be detected and how.
4116: cat >conftest.$ac_ext <<_ACEOF
4117: #line $LINENO "configure"
4118: #include "confdefs.h"
4119: #include <ac_nonexistent.h>
4120: _ACEOF
4121: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123: ac_status=$?
4124: egrep -v '^ *\+' conftest.er1 >conftest.err
4125: rm -f conftest.er1
4126: cat conftest.err >&5
4127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128: (exit $ac_status); } >/dev/null; then
4129: if test -s conftest.err; then
4130: ac_cpp_err=$ac_cxx_preproc_warn_flag
4131: else
4132: ac_cpp_err=
4133: fi
4134: else
4135: ac_cpp_err=yes
1.5 petere 4136: fi
1.179 petere 4137: if test -z "$ac_cpp_err"; then
4138: # Broken: success on invalid input.
4139: continue
1.5 petere 4140: else
1.179 petere 4141: echo "$as_me: failed program was:" >&5
1.5 petere 4142: cat conftest.$ac_ext >&5
1.179 petere 4143: # Passes both tests.
4144: ac_preproc_ok=:
4145: break
1.5 petere 4146: fi
1.179 petere 4147: rm -f conftest.err conftest.$ac_ext
1.5 petere 4148:
1.179 petere 4149: done
4150: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151: rm -f conftest.err conftest.$ac_ext
4152: if $ac_preproc_ok; then
4153: break
1.5 petere 4154: fi
1.1 petere 4155:
1.179 petere 4156: done
4157: ac_cv_prog_CXXCPP=$CXXCPP
1.5 petere 4158:
1.179 petere 4159: fi
4160: CXXCPP=$ac_cv_prog_CXXCPP
1.5 petere 4161: else
1.179 petere 4162: ac_cv_prog_CXXCPP=$CXXCPP
4163: fi
4164: echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165: echo "${ECHO_T}$CXXCPP" >&6
4166: ac_preproc_ok=false
4167: for ac_cxx_preproc_warn_flag in '' yes
4168: do
4169: # Use a header file that comes with gcc, so configuring glibc
4170: # with a fresh cross-compiler works.
4171: # On the NeXT, cc -E runs the code through the compiler's parser,
4172: # not just through cpp. "Syntax error" is here to catch this case.
4173: cat >conftest.$ac_ext <<_ACEOF
4174: #line $LINENO "configure"
1.1 petere 4175: #include "confdefs.h"
1.179 petere 4176: #include <assert.h>
4177: Syntax error
4178: _ACEOF
4179: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181: ac_status=$?
4182: egrep -v '^ *\+' conftest.er1 >conftest.err
4183: rm -f conftest.er1
4184: cat conftest.err >&5
4185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186: (exit $ac_status); } >/dev/null; then
4187: if test -s conftest.err; then
4188: ac_cpp_err=$ac_cxx_preproc_warn_flag
4189: else
4190: ac_cpp_err=
4191: fi
4192: else
4193: ac_cpp_err=yes
4194: fi
4195: if test -z "$ac_cpp_err"; then
4196: :
1.1 petere 4197: else
1.179 petere 4198: echo "$as_me: failed program was:" >&5
1.1 petere 4199: cat conftest.$ac_ext >&5
1.179 petere 4200: # Broken: fails on valid input.
4201: continue
1.5 petere 4202: fi
1.179 petere 4203: rm -f conftest.err conftest.$ac_ext
1.5 petere 4204:
1.179 petere 4205: # OK, works on sane cases. Now check whether non-existent headers
4206: # can be detected and how.
4207: cat >conftest.$ac_ext <<_ACEOF
4208: #line $LINENO "configure"
4209: #include "confdefs.h"
4210: #include <ac_nonexistent.h>
4211: _ACEOF
4212: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214: ac_status=$?
4215: egrep -v '^ *\+' conftest.er1 >conftest.err
4216: rm -f conftest.er1
4217: cat conftest.err >&5
4218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219: (exit $ac_status); } >/dev/null; then
4220: if test -s conftest.err; then
4221: ac_cpp_err=$ac_cxx_preproc_warn_flag
4222: else
4223: ac_cpp_err=
1.5 petere 4224: fi
1.179 petere 4225: else
4226: ac_cpp_err=yes
1.1 petere 4227: fi
1.179 petere 4228: if test -z "$ac_cpp_err"; then
4229: # Broken: success on invalid input.
4230: continue
1.5 petere 4231: else
1.179 petere 4232: echo "$as_me: failed program was:" >&5
4233: cat conftest.$ac_ext >&5
4234: # Passes both tests.
4235: ac_preproc_ok=:
4236: break
4237: fi
4238: rm -f conftest.err conftest.$ac_ext
1.5 petere 4239:
1.179 petere 4240: done
4241: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242: rm -f conftest.err conftest.$ac_ext
4243: if $ac_preproc_ok; then
4244: :
1.1 petere 4245: else
1.179 petere 4246: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248: { (exit 1); exit 1; }; }
1.1 petere 4249: fi
1.179 petere 4250:
1.1 petere 4251: ac_ext=c
4252: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 4253: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.5 petere 4256:
4257:
1.179 petere 4258: else
4259: echo "$as_me:$LINENO: result: no" >&5
4260: echo "${ECHO_T}no" >&6
1.5 petere 4261: fi
1.43 petere 4262:
1.5 petere 4263:
4264:
1.43 petere 4265:
1.30 petere 4266: CPPFLAGS="$CPPFLAGS $INCLUDES"
1.70 petere 4267: LDFLAGS="$LDFLAGS $LIBDIRS"
1.30 petere 4268:
1.179 petere 4269: { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270: echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271: { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272: echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
1.30 petere 4273:
4274:
1.179 petere 4275: for ac_prog in gawk mawk nawk awk
1.2 petere 4276: do
1.179 petere 4277: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2 petere 4278: set dummy $ac_prog; ac_word=$2
1.179 petere 4279: echo "$as_me:$LINENO: checking for $ac_word" >&5
4280: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281: if test "${ac_cv_prog_AWK+set}" = set; then
4282: echo $ECHO_N "(cached) $ECHO_C" >&6
1.2 petere 4283: else
4284: if test -n "$AWK"; then
4285: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286: else
1.179 petere 4287: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288: for as_dir in $PATH
4289: do
4290: IFS=$as_save_IFS
4291: test -z "$as_dir" && as_dir=.
4292: for ac_exec_ext in '' $ac_executable_extensions; do
4293: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294: ac_cv_prog_AWK="$ac_prog"
4295: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296: break 2
4297: fi
4298: done
4299: done
4300:
4301: fi
4302: fi
4303: AWK=$ac_cv_prog_AWK
4304: if test -n "$AWK"; then
4305: echo "$as_me:$LINENO: result: $AWK" >&5
4306: echo "${ECHO_T}$AWK" >&6
1.2 petere 4307: else
1.179 petere 4308: echo "$as_me:$LINENO: result: no" >&5
4309: echo "${ECHO_T}no" >&6
1.2 petere 4310: fi
4311:
1.179 petere 4312: test -n "$AWK" && break
1.2 petere 4313: done
4314:
1.179 petere 4315: echo "$as_me:$LINENO: checking for flex" >&5
4316: echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317: if test "${pgac_cv_path_flex+set}" = set; then
4318: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4319: else
1.40 petere 4320: # Let the user override the test
4321: if test -n "$FLEX"; then
4322: pgac_cv_path_flex=$FLEX
4323: else
4324: pgac_save_IFS=$IFS
4325: IFS=:
4326: for pgac_dir in $PATH; do
4327: if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4328: pgac_dir=`pwd`
1.1 petere 4329: fi
1.40 petere 4330: for pgac_prog in flex lex; do
4331: pgac_candidate="$pgac_dir/$pgac_prog"
4332: if test -f "$pgac_candidate" \
1.72 petere 4333: && $pgac_candidate --version </dev/null >/dev/null 2>&1
1.40 petere 4334: then
4335: echo '%%' > conftest.l
4336: if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337: if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338: pgac_broken_flex=$pgac_candidate
4339: continue
4340: fi
4341:
4342: pgac_cv_path_flex=$pgac_candidate
4343: break 2
4344: fi
4345: fi
4346: done
1.1 petere 4347: done
1.40 petere 4348: IFS=$pgac_save_IFS
4349: rm -f conftest.l
4350: : ${pgac_cv_path_flex=no}
1.1 petere 4351: fi
1.40 petere 4352:
1.1 petere 4353: fi
1.179 petere 4354: echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355: echo "${ECHO_T}$pgac_cv_path_flex" >&6
1.40 petere 4356: if test x"$pgac_cv_path_flex" = x"no"; then
4357: if test -n "$pgac_broken_flex"; then
1.179 petere 4358: { echo "$as_me:$LINENO: WARNING:
1.105 petere 4359: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
1.179 petere 4360: *** should get version 2.5.4 or later." >&5
4361: echo "$as_me: WARNING:
4362: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363: *** should get version 2.5.4 or later." >&2;}
1.40 petere 4364: fi
1.1 petere 4365:
1.179 petere 4366: { echo "$as_me:$LINENO: WARNING:
4367: *** Without Flex you will not be able to build PostgreSQL from CVS or
4368: *** change any of the scanner definition files. You can obtain Flex from
4369: *** a GNU mirror site. (If you are using the official distribution of
4370: *** PostgreSQL then you do not need to worry about this because the Flex
4371: *** output is pre-generated.)" >&5
4372: echo "$as_me: WARNING:
1.105 petere 4373: *** Without Flex you will not be able to build PostgreSQL from CVS or
4374: *** change any of the scanner definition files. You can obtain Flex from
4375: *** a GNU mirror site. (If you are using the official distribution of
4376: *** PostgreSQL then you do not need to worry about this because the Flex
1.179 petere 4377: *** output is pre-generated.)" >&2;}
1.1 petere 4378: fi
4379:
1.40 petere 4380: if test x"$pgac_cv_path_flex" = x"no"; then
4381: FLEX=
1.1 petere 4382: else
1.40 petere 4383: FLEX=$pgac_cv_path_flex
1.1 petere 4384: fi
4385:
4386:
1.40 petere 4387:
4388:
1.179 petere 4389: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4391: LN_S=$as_ln_s
4392: if test "$LN_S" = "ln -s"; then
4393: echo "$as_me:$LINENO: result: yes" >&5
4394: echo "${ECHO_T}yes" >&6
1.1 petere 4395: else
1.179 petere 4396: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397: echo "${ECHO_T}no, using $LN_S" >&6
1.1 petere 4398: fi
1.179 petere 4399:
1.1 petere 4400:
1.64 petere 4401: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402: if test "${with_gnu_ld+set}" = set; then
4403: withval="$with_gnu_ld"
4404: test "$withval" = no || with_gnu_ld=yes
4405: else
4406: with_gnu_ld=no
1.179 petere 4407: fi;
1.64 petere 4408: ac_prog=ld
1.179 petere 4409: if test "$GCC" = yes; then
1.64 petere 4410: # Check if gcc -print-prog-name=ld gives a path.
1.179 petere 4411: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1.64 petere 4413: case $host in
4414: *-*-mingw*)
4415: # gcc leaves a trailing carriage return which upsets mingw
4416: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417: *)
4418: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419: esac
4420: case "$ac_prog" in
4421: # Accept absolute paths.
4422: [\\/]* | [A-Za-z]:[\\/]*)
4423: re_direlt='/[^/][^/]*/\.\./'
4424: # Canonicalize the path of ld
4425: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4428: done
4429: test -z "$LD" && LD="$ac_prog"
4430: ;;
4431: "")
4432: # If it fails, then pretend we aren't using GCC.
4433: ac_prog=ld
4434: ;;
4435: *)
4436: # If it is relative, then search for the first ld in PATH.
4437: with_gnu_ld=unknown
4438: ;;
4439: esac
4440: elif test "$with_gnu_ld" = yes; then
1.179 petere 4441: echo "$as_me:$LINENO: checking for GNU ld" >&5
4442: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.64 petere 4443: else
1.179 petere 4444: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.64 petere 4446: fi
1.179 petere 4447: if test "${ac_cv_path_LD+set}" = set; then
4448: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 petere 4449: else
4450: if test -z "$LD"; then
4451: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452: for ac_dir in $PATH; do
4453: test -z "$ac_dir" && ac_dir=.
4454: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455: ac_cv_path_LD="$ac_dir/$ac_prog"
4456: # Check to see if the program is GNU ld. I'd rather use --version,
4457: # but apparently some GNU ld's only accept -v.
4458: # Break only if it was the GNU/non-GNU ld that we prefer.
4459: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460: test "$with_gnu_ld" != no && break
4461: else
4462: test "$with_gnu_ld" != yes && break
4463: fi
4464: fi
4465: done
4466: IFS="$ac_save_ifs"
4467: else
4468: ac_cv_path_LD="$LD" # Let the user override the test with a path.
4469: fi
4470: fi
4471:
4472: LD="$ac_cv_path_LD"
4473: if test -n "$LD"; then
1.179 petere 4474: echo "$as_me:$LINENO: result: $LD" >&5
4475: echo "${ECHO_T}$LD" >&6
1.64 petere 4476: else
1.179 petere 4477: echo "$as_me:$LINENO: result: no" >&5
4478: echo "${ECHO_T}no" >&6
1.64 petere 4479: fi
1.179 petere 4480: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482: { (exit 1); exit 1; }; }
4483: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485: if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 petere 4487: else
4488: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490: ac_cv_prog_gnu_ld=yes
4491: else
4492: ac_cv_prog_gnu_ld=no
4493: fi
4494: fi
1.179 petere 4495: echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496: echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
1.64 petere 4497: with_gnu_ld=$ac_cv_prog_gnu_ld
4498:
4499:
1.69 petere 4500:
4501:
1.139 momjian 4502: case $host_os in sysv5*)
1.179 petere 4503: echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504: echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505: if test "${pgac_cv_prog_ld_R+set}" = set; then
4506: echo $ECHO_N "(cached) $ECHO_C" >&6
1.83 petere 4507: else
1.179 petere 4508:
1.83 petere 4509: pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
1.179 petere 4510: cat >conftest.$ac_ext <<_ACEOF
4511: #line $LINENO "configure"
1.83 petere 4512: #include "confdefs.h"
4513:
1.179 petere 4514: #ifdef F77_DUMMY_MAIN
4515: # ifdef __cplusplus
4516: extern "C"
4517: # endif
4518: int F77_DUMMY_MAIN() { return 1; }
4519: #endif
4520: int
4521: main ()
4522: {
1.83 petere 4523:
1.179 petere 4524: ;
4525: return 0;
4526: }
4527: _ACEOF
4528: rm -f conftest.$ac_objext conftest$ac_exeext
4529: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530: (eval $ac_link) 2>&5
4531: ac_status=$?
4532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533: (exit $ac_status); } &&
4534: { ac_try='test -s conftest$ac_exeext'
4535: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536: (eval $ac_try) 2>&5
4537: ac_status=$?
4538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539: (exit $ac_status); }; }; then
1.83 petere 4540: pgac_cv_prog_ld_R=yes
4541: else
1.179 petere 4542: echo "$as_me: failed program was:" >&5
4543: cat conftest.$ac_ext >&5
4544: pgac_cv_prog_ld_R=no
1.83 petere 4545: fi
1.179 petere 4546: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.83 petere 4547: LDFLAGS=$pgac_save_LDFLAGS
1.179 petere 4548:
1.83 petere 4549: fi
1.179 petere 4550: echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551: echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552: ld_R_works=$pgac_cv_prog_ld_R
1.83 petere 4553:
4554: esac
1.179 petere 4555: if test -n "$ac_tool_prefix"; then
4556: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558: echo "$as_me:$LINENO: checking for $ac_word" >&5
4559: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560: if test "${ac_cv_prog_RANLIB+set}" = set; then
4561: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4562: else
4563: if test -n "$RANLIB"; then
4564: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565: else
1.179 petere 4566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567: for as_dir in $PATH
4568: do
4569: IFS=$as_save_IFS
4570: test -z "$as_dir" && as_dir=.
4571: for ac_exec_ext in '' $ac_executable_extensions; do
4572: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575: break 2
4576: fi
4577: done
4578: done
4579:
1.1 petere 4580: fi
4581: fi
1.179 petere 4582: RANLIB=$ac_cv_prog_RANLIB
1.1 petere 4583: if test -n "$RANLIB"; then
1.179 petere 4584: echo "$as_me:$LINENO: result: $RANLIB" >&5
4585: echo "${ECHO_T}$RANLIB" >&6
4586: else
4587: echo "$as_me:$LINENO: result: no" >&5
4588: echo "${ECHO_T}no" >&6
4589: fi
4590:
4591: fi
4592: if test -z "$ac_cv_prog_RANLIB"; then
4593: ac_ct_RANLIB=$RANLIB
4594: # Extract the first word of "ranlib", so it can be a program name with args.
4595: set dummy ranlib; ac_word=$2
4596: echo "$as_me:$LINENO: checking for $ac_word" >&5
4597: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4600: else
1.179 petere 4601: if test -n "$ac_ct_RANLIB"; then
4602: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603: else
4604: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605: for as_dir in $PATH
4606: do
4607: IFS=$as_save_IFS
4608: test -z "$as_dir" && as_dir=.
4609: for ac_exec_ext in '' $ac_executable_extensions; do
4610: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611: ac_cv_prog_ac_ct_RANLIB="ranlib"
4612: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613: break 2
4614: fi
4615: done
4616: done
4617:
4618: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619: fi
4620: fi
4621: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622: if test -n "$ac_ct_RANLIB"; then
4623: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624: echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625: else
4626: echo "$as_me:$LINENO: result: no" >&5
4627: echo "${ECHO_T}no" >&6
4628: fi
4629:
4630: RANLIB=$ac_ct_RANLIB
4631: else
4632: RANLIB="$ac_cv_prog_RANLIB"
1.1 petere 4633: fi
4634:
1.60 petere 4635: for ac_prog in lorder
4636: do
1.179 petere 4637: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.60 petere 4638: set dummy $ac_prog; ac_word=$2
1.179 petere 4639: echo "$as_me:$LINENO: checking for $ac_word" >&5
4640: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641: if test "${ac_cv_prog_LORDER+set}" = set; then
4642: echo $ECHO_N "(cached) $ECHO_C" >&6
1.60 petere 4643: else
4644: if test -n "$LORDER"; then
4645: ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4646: else
1.179 petere 4647: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648: for as_dir in $PATH
4649: do
4650: IFS=$as_save_IFS
4651: test -z "$as_dir" && as_dir=.
4652: for ac_exec_ext in '' $ac_executable_extensions; do
4653: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654: ac_cv_prog_LORDER="$ac_prog"
4655: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656: break 2
4657: fi
4658: done
4659: done
4660:
1.60 petere 4661: fi
4662: fi
1.179 petere 4663: LORDER=$ac_cv_prog_LORDER
1.60 petere 4664: if test -n "$LORDER"; then
1.179 petere 4665: echo "$as_me:$LINENO: result: $LORDER" >&5
4666: echo "${ECHO_T}$LORDER" >&6
1.60 petere 4667: else
1.179 petere 4668: echo "$as_me:$LINENO: result: no" >&5
4669: echo "${ECHO_T}no" >&6
1.60 petere 4670: fi
4671:
1.179 petere 4672: test -n "$LORDER" && break
1.60 petere 4673: done
4674:
1.1 petere 4675: # Extract the first word of "tar", so it can be a program name with args.
4676: set dummy tar; ac_word=$2
1.179 petere 4677: echo "$as_me:$LINENO: checking for $ac_word" >&5
4678: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679: if test "${ac_cv_path_TAR+set}" = set; then
4680: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4681: else
1.179 petere 4682: case $TAR in
4683: [\\/]* | ?:[\\/]*)
1.58 petere 4684: ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1.1 petere 4685: ;;
4686: *)
1.179 petere 4687: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688: for as_dir in $PATH
4689: do
4690: IFS=$as_save_IFS
4691: test -z "$as_dir" && as_dir=.
4692: for ac_exec_ext in '' $ac_executable_extensions; do
4693: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694: ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696: break 2
4697: fi
4698: done
4699: done
4700:
1.1 petere 4701: ;;
4702: esac
4703: fi
1.179 petere 4704: TAR=$ac_cv_path_TAR
4705:
1.58 petere 4706: if test -n "$TAR"; then
1.179 petere 4707: echo "$as_me:$LINENO: result: $TAR" >&5
4708: echo "${ECHO_T}$TAR" >&6
1.1 petere 4709: else
1.179 petere 4710: echo "$as_me:$LINENO: result: no" >&5
4711: echo "${ECHO_T}no" >&6
1.1 petere 4712: fi
4713:
1.105 petere 4714:
1.185 petere 4715: if test -n "$ac_tool_prefix"; then
4716: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717: set dummy ${ac_tool_prefix}strip; ac_word=$2
4718: echo "$as_me:$LINENO: checking for $ac_word" >&5
4719: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720: if test "${ac_cv_prog_STRIP+set}" = set; then
4721: echo $ECHO_N "(cached) $ECHO_C" >&6
4722: else
4723: if test -n "$STRIP"; then
4724: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725: else
4726: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727: for as_dir in $PATH
4728: do
4729: IFS=$as_save_IFS
4730: test -z "$as_dir" && as_dir=.
4731: for ac_exec_ext in '' $ac_executable_extensions; do
4732: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735: break 2
4736: fi
4737: done
4738: done
4739:
4740: fi
4741: fi
4742: STRIP=$ac_cv_prog_STRIP
4743: if test -n "$STRIP"; then
4744: echo "$as_me:$LINENO: result: $STRIP" >&5
4745: echo "${ECHO_T}$STRIP" >&6
4746: else
4747: echo "$as_me:$LINENO: result: no" >&5
4748: echo "${ECHO_T}no" >&6
4749: fi
4750:
4751: fi
4752: if test -z "$ac_cv_prog_STRIP"; then
4753: ac_ct_STRIP=$STRIP
4754: # Extract the first word of "strip", so it can be a program name with args.
4755: set dummy strip; ac_word=$2
4756: echo "$as_me:$LINENO: checking for $ac_word" >&5
4757: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759: echo $ECHO_N "(cached) $ECHO_C" >&6
4760: else
4761: if test -n "$ac_ct_STRIP"; then
4762: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763: else
4764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765: for as_dir in $PATH
4766: do
4767: IFS=$as_save_IFS
4768: test -z "$as_dir" && as_dir=.
4769: for ac_exec_ext in '' $ac_executable_extensions; do
4770: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771: ac_cv_prog_ac_ct_STRIP="strip"
4772: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773: break 2
4774: fi
4775: done
4776: done
4777:
4778: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4779: fi
4780: fi
4781: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782: if test -n "$ac_ct_STRIP"; then
4783: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784: echo "${ECHO_T}$ac_ct_STRIP" >&6
4785: else
4786: echo "$as_me:$LINENO: result: no" >&5
4787: echo "${ECHO_T}no" >&6
4788: fi
4789:
4790: STRIP=$ac_ct_STRIP
4791: else
4792: STRIP="$ac_cv_prog_STRIP"
4793: fi
4794:
4795:
4796: echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797: echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798: if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799: STRIP_STATIC_LIB="$STRIP -x"
4800: STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801: echo "$as_me:$LINENO: result: yes" >&5
4802: echo "${ECHO_T}yes" >&6
4803: else
4804: STRIP_STATIC_LIB=:
4805: STRIP_SHARED_LIB=:
4806: echo "$as_me:$LINENO: result: no" >&5
4807: echo "${ECHO_T}no" >&6
4808: fi
4809:
4810:
4811:
4812:
1.105 petere 4813: for ac_prog in 'bison -y'
1.2 petere 4814: do
1.179 petere 4815: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2 petere 4816: set dummy $ac_prog; ac_word=$2
1.179 petere 4817: echo "$as_me:$LINENO: checking for $ac_word" >&5
4818: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819: if test "${ac_cv_prog_YACC+set}" = set; then
4820: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4821: else
1.2 petere 4822: if test -n "$YACC"; then
4823: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4824: else
1.179 petere 4825: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826: for as_dir in $PATH
4827: do
4828: IFS=$as_save_IFS
4829: test -z "$as_dir" && as_dir=.
4830: for ac_exec_ext in '' $ac_executable_extensions; do
4831: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832: ac_cv_prog_YACC="$ac_prog"
4833: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834: break 2
4835: fi
4836: done
4837: done
4838:
1.1 petere 4839: fi
1.2 petere 4840: fi
1.179 petere 4841: YACC=$ac_cv_prog_YACC
1.2 petere 4842: if test -n "$YACC"; then
1.179 petere 4843: echo "$as_me:$LINENO: result: $YACC" >&5
4844: echo "${ECHO_T}$YACC" >&6
1.1 petere 4845: else
1.179 petere 4846: echo "$as_me:$LINENO: result: no" >&5
4847: echo "${ECHO_T}no" >&6
1.1 petere 4848: fi
4849:
1.179 petere 4850: test -n "$YACC" && break
1.2 petere 4851: done
1.105 petere 4852:
4853: if test -z "$YACC"; then
1.179 petere 4854: { echo "$as_me:$LINENO: WARNING:
4855: *** Without Bison you will not be able to build PostgreSQL from CVS or
4856: *** change any of the parser definition files. You can obtain Bison from
4857: *** a GNU mirror site. (If you are using the official distribution of
4858: *** PostgreSQL then you do not need to worry about this because the Bison
4859: *** output is pre-generated.) To use a different yacc program (possible,
4860: *** but not recommended), set the environment variable YACC before running
4861: *** 'configure'." >&5
4862: echo "$as_me: WARNING:
1.105 petere 4863: *** Without Bison you will not be able to build PostgreSQL from CVS or
4864: *** change any of the parser definition files. You can obtain Bison from
4865: *** a GNU mirror site. (If you are using the official distribution of
4866: *** PostgreSQL then you do not need to worry about this because the Bison
4867: *** output is pre-generated.) To use a different yacc program (possible,
4868: *** but not recommended), set the environment variable YACC before running
1.179 petere 4869: *** 'configure'." >&2;}
1.105 petere 4870: fi
1.1 petere 4871:
4872:
1.44 petere 4873: if test "$with_tk" = yes; then
4874: # Extract the first word of "wish", so it can be a program name with args.
4875: set dummy wish; ac_word=$2
1.179 petere 4876: echo "$as_me:$LINENO: checking for $ac_word" >&5
4877: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878: if test "${ac_cv_path_WISH+set}" = set; then
4879: echo $ECHO_N "(cached) $ECHO_C" >&6
1.44 petere 4880: else
1.179 petere 4881: case $WISH in
4882: [\\/]* | ?:[\\/]*)
1.44 petere 4883: ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4884: ;;
4885: *)
1.179 petere 4886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887: for as_dir in $PATH
4888: do
4889: IFS=$as_save_IFS
4890: test -z "$as_dir" && as_dir=.
4891: for ac_exec_ext in '' $ac_executable_extensions; do
4892: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893: ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895: break 2
4896: fi
4897: done
4898: done
4899:
1.44 petere 4900: ;;
4901: esac
4902: fi
1.179 petere 4903: WISH=$ac_cv_path_WISH
4904:
1.44 petere 4905: if test -n "$WISH"; then
1.179 petere 4906: echo "$as_me:$LINENO: result: $WISH" >&5
4907: echo "${ECHO_T}$WISH" >&6
1.44 petere 4908: else
1.179 petere 4909: echo "$as_me:$LINENO: result: no" >&5
4910: echo "${ECHO_T}no" >&6
1.44 petere 4911: fi
4912:
1.179 petere 4913: test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914: echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915: { (exit 1); exit 1; }; }
1.44 petere 4916: fi
1.1 petere 4917:
1.144 petere 4918: # Extract the first word of "perl", so it can be a program name with args.
4919: set dummy perl; ac_word=$2
1.179 petere 4920: echo "$as_me:$LINENO: checking for $ac_word" >&5
4921: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922: if test "${ac_cv_path_PERL+set}" = set; then
4923: echo $ECHO_N "(cached) $ECHO_C" >&6
1.144 petere 4924: else
1.179 petere 4925: case $PERL in
4926: [\\/]* | ?:[\\/]*)
1.144 petere 4927: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4928: ;;
4929: *)
1.179 petere 4930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931: for as_dir in $PATH
4932: do
4933: IFS=$as_save_IFS
4934: test -z "$as_dir" && as_dir=.
4935: for ac_exec_ext in '' $ac_executable_extensions; do
4936: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939: break 2
4940: fi
4941: done
4942: done
4943:
1.144 petere 4944: ;;
4945: esac
4946: fi
1.179 petere 4947: PERL=$ac_cv_path_PERL
4948:
1.144 petere 4949: if test -n "$PERL"; then
1.179 petere 4950: echo "$as_me:$LINENO: result: $PERL" >&5
4951: echo "${ECHO_T}$PERL" >&6
1.144 petere 4952: else
1.179 petere 4953: echo "$as_me:$LINENO: result: no" >&5
4954: echo "${ECHO_T}no" >&6
1.144 petere 4955: fi
4956:
4957: if test "$with_perl" = yes; then
4958:
1.179 petere 4959:
4960: echo "$as_me:$LINENO: checking Perl installation directories" >&5
4961: echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
1.144 petere 4962:
4963: # These are the ones we currently need. Others can be added easily.
4964: perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4965: perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4966: perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4967:
4968:
1.179 petere 4969: echo "$as_me:$LINENO: result: done" >&5
4970: echo "${ECHO_T}done" >&6
1.144 petere 4971:
4972: fi
4973:
1.133 petere 4974: if test "$with_python" = yes; then
4975: # Extract the first word of "python", so it can be a program name with args.
4976: set dummy python; ac_word=$2
1.179 petere 4977: echo "$as_me:$LINENO: checking for $ac_word" >&5
4978: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979: if test "${ac_cv_path_PYTHON+set}" = set; then
4980: echo $ECHO_N "(cached) $ECHO_C" >&6
1.133 petere 4981: else
1.179 petere 4982: case $PYTHON in
4983: [\\/]* | ?:[\\/]*)
1.133 petere 4984: ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4985: ;;
4986: *)
1.179 petere 4987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988: for as_dir in $PATH
4989: do
4990: IFS=$as_save_IFS
4991: test -z "$as_dir" && as_dir=.
4992: for ac_exec_ext in '' $ac_executable_extensions; do
4993: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994: ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4995: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996: break 2
4997: fi
4998: done
4999: done
5000:
1.133 petere 5001: ;;
5002: esac
5003: fi
1.179 petere 5004: PYTHON=$ac_cv_path_PYTHON
5005:
1.133 petere 5006: if test -n "$PYTHON"; then
1.179 petere 5007: echo "$as_me:$LINENO: result: $PYTHON" >&5
5008: echo "${ECHO_T}$PYTHON" >&6
1.133 petere 5009: else
1.179 petere 5010: echo "$as_me:$LINENO: result: no" >&5
5011: echo "${ECHO_T}no" >&6
1.133 petere 5012: fi
5013:
5014: if test x"$PYTHON" = x""; then
1.179 petere 5015: { { echo "$as_me:$LINENO: error: Python not found" >&5
5016: echo "$as_me: error: Python not found" >&2;}
5017: { (exit 1); exit 1; }; }
1.133 petere 5018: fi
5019:
1.179 petere 5020:
5021: echo "$as_me:$LINENO: checking Python installation directories" >&5
5022: echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
1.133 petere 5023: python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5024: python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5025: python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5026: python_configdir="${python_execprefix}/lib/python${python_version}/config"
1.138 petere 5027: python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5028: python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5029: python_includespec="-I${python_prefix}/include/python${python_version}"
5030: if test "$python_prefix" != "$python_execprefix"; then
5031: python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5032: fi
1.133 petere 5033:
1.138 petere 5034: # This should be enough of a message.
5035: if test "$python_prefix" != "$python_execprefix"; then
1.179 petere 5036: echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5037: echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
1.133 petere 5038: else
1.179 petere 5039: echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5040: echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
1.133 petere 5041: fi
5042:
5043:
1.138 petere 5044:
1.179 petere 5045:
5046:
5047: echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5048: echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
1.133 petere 5049:
5050: _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5051: _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5052: _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5053: _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5054: _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5055:
5056: pgac_tab=" " # tab character
5057: 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"`
5058:
1.179 petere 5059: echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5060: echo "${ECHO_T}${python_libspec}" >&6
1.133 petere 5061:
5062:
5063: fi
5064:
1.5 petere 5065:
1.191 ! ishii 5066: v##
1.29 petere 5067: ## Libraries
5068: ##
5069:
1.1 petere 5070: if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5071: then
1.179 petere 5072:
5073: echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5074: echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5075: if test "${ac_cv_lib_bsd_main+set}" = set; then
5076: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5077: else
1.179 petere 5078: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5079: LIBS="-lbsd $LIBS"
1.179 petere 5080: cat >conftest.$ac_ext <<_ACEOF
5081: #line $LINENO "configure"
1.1 petere 5082: #include "confdefs.h"
5083:
5084:
1.179 petere 5085: #ifdef F77_DUMMY_MAIN
5086: # ifdef __cplusplus
5087: extern "C"
5088: # endif
5089: int F77_DUMMY_MAIN() { return 1; }
5090: #endif
5091: int
5092: main ()
5093: {
5094: main ();
5095: ;
5096: return 0;
5097: }
5098: _ACEOF
5099: rm -f conftest.$ac_objext conftest$ac_exeext
5100: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101: (eval $ac_link) 2>&5
5102: ac_status=$?
5103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104: (exit $ac_status); } &&
5105: { ac_try='test -s conftest$ac_exeext'
5106: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107: (eval $ac_try) 2>&5
5108: ac_status=$?
5109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110: (exit $ac_status); }; }; then
5111: ac_cv_lib_bsd_main=yes
5112: else
5113: echo "$as_me: failed program was:" >&5
5114: cat conftest.$ac_ext >&5
5115: ac_cv_lib_bsd_main=no
5116: fi
5117: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5118: LIBS=$ac_check_lib_save_LIBS
5119: fi
5120: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5121: echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5122: if test $ac_cv_lib_bsd_main = yes; then
5123: cat >>confdefs.h <<_ACEOF
5124: #define HAVE_LIBBSD 1
5125: _ACEOF
1.1 petere 5126:
5127: LIBS="-lbsd $LIBS"
5128:
5129: fi
5130:
5131: fi
1.179 petere 5132:
5133: echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5134: echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5135: if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5136: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5137: else
1.179 petere 5138: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5139: LIBS="-lutil $LIBS"
1.179 petere 5140: cat >conftest.$ac_ext <<_ACEOF
5141: #line $LINENO "configure"
1.1 petere 5142: #include "confdefs.h"
1.179 petere 5143:
1.21 petere 5144: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5145: #ifdef __cplusplus
5146: extern "C"
5147: #endif
1.21 petere 5148: /* We use char because int might match the return type of a gcc2
1.179 petere 5149: builtin and then its argument prototype would still apply. */
5150: char setproctitle ();
5151: #ifdef F77_DUMMY_MAIN
5152: # ifdef __cplusplus
5153: extern "C"
5154: # endif
5155: int F77_DUMMY_MAIN() { return 1; }
5156: #endif
5157: int
5158: main ()
5159: {
5160: setproctitle ();
5161: ;
5162: return 0;
5163: }
5164: _ACEOF
5165: rm -f conftest.$ac_objext conftest$ac_exeext
5166: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167: (eval $ac_link) 2>&5
5168: ac_status=$?
5169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170: (exit $ac_status); } &&
5171: { ac_try='test -s conftest$ac_exeext'
5172: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173: (eval $ac_try) 2>&5
5174: ac_status=$?
5175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176: (exit $ac_status); }; }; then
5177: ac_cv_lib_util_setproctitle=yes
5178: else
5179: echo "$as_me: failed program was:" >&5
5180: cat conftest.$ac_ext >&5
5181: ac_cv_lib_util_setproctitle=no
5182: fi
5183: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184: LIBS=$ac_check_lib_save_LIBS
5185: fi
5186: echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5187: echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5188: if test $ac_cv_lib_util_setproctitle = yes; then
5189: cat >>confdefs.h <<_ACEOF
5190: #define HAVE_LIBUTIL 1
5191: _ACEOF
1.1 petere 5192:
1.179 petere 5193: LIBS="-lutil $LIBS"
1.1 petere 5194:
5195: fi
5196:
5197:
1.179 petere 5198: echo "$as_me:$LINENO: checking for main in -lm" >&5
5199: echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5200: if test "${ac_cv_lib_m_main+set}" = set; then
5201: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5202: else
1.179 petere 5203: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5204: LIBS="-lm $LIBS"
1.179 petere 5205: cat >conftest.$ac_ext <<_ACEOF
5206: #line $LINENO "configure"
1.1 petere 5207: #include "confdefs.h"
5208:
5209:
1.179 petere 5210: #ifdef F77_DUMMY_MAIN
5211: # ifdef __cplusplus
5212: extern "C"
5213: # endif
5214: int F77_DUMMY_MAIN() { return 1; }
5215: #endif
5216: int
5217: main ()
5218: {
5219: main ();
5220: ;
5221: return 0;
5222: }
5223: _ACEOF
5224: rm -f conftest.$ac_objext conftest$ac_exeext
5225: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226: (eval $ac_link) 2>&5
5227: ac_status=$?
5228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229: (exit $ac_status); } &&
5230: { ac_try='test -s conftest$ac_exeext'
5231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232: (eval $ac_try) 2>&5
5233: ac_status=$?
5234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235: (exit $ac_status); }; }; then
5236: ac_cv_lib_m_main=yes
5237: else
5238: echo "$as_me: failed program was:" >&5
5239: cat conftest.$ac_ext >&5
5240: ac_cv_lib_m_main=no
5241: fi
5242: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243: LIBS=$ac_check_lib_save_LIBS
5244: fi
5245: echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5246: echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5247: if test $ac_cv_lib_m_main = yes; then
5248: cat >>confdefs.h <<_ACEOF
5249: #define HAVE_LIBM 1
5250: _ACEOF
1.1 petere 5251:
5252: LIBS="-lm $LIBS"
5253:
5254: fi
5255:
1.179 petere 5256:
5257: echo "$as_me:$LINENO: checking for main in -ldl" >&5
5258: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5259: if test "${ac_cv_lib_dl_main+set}" = set; then
5260: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5261: else
1.179 petere 5262: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5263: LIBS="-ldl $LIBS"
1.179 petere 5264: cat >conftest.$ac_ext <<_ACEOF
5265: #line $LINENO "configure"
1.1 petere 5266: #include "confdefs.h"
5267:
5268:
1.179 petere 5269: #ifdef F77_DUMMY_MAIN
5270: # ifdef __cplusplus
5271: extern "C"
5272: # endif
5273: int F77_DUMMY_MAIN() { return 1; }
5274: #endif
5275: int
5276: main ()
5277: {
5278: main ();
5279: ;
5280: return 0;
5281: }
5282: _ACEOF
5283: rm -f conftest.$ac_objext conftest$ac_exeext
5284: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285: (eval $ac_link) 2>&5
5286: ac_status=$?
5287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288: (exit $ac_status); } &&
5289: { ac_try='test -s conftest$ac_exeext'
5290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291: (eval $ac_try) 2>&5
5292: ac_status=$?
5293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294: (exit $ac_status); }; }; then
5295: ac_cv_lib_dl_main=yes
5296: else
5297: echo "$as_me: failed program was:" >&5
5298: cat conftest.$ac_ext >&5
5299: ac_cv_lib_dl_main=no
5300: fi
5301: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302: LIBS=$ac_check_lib_save_LIBS
5303: fi
5304: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5305: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5306: if test $ac_cv_lib_dl_main = yes; then
5307: cat >>confdefs.h <<_ACEOF
5308: #define HAVE_LIBDL 1
5309: _ACEOF
1.1 petere 5310:
5311: LIBS="-ldl $LIBS"
5312:
5313: fi
5314:
1.179 petere 5315:
1.190 momjian 5316: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5317: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5318: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.179 petere 5319: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5320: else
1.179 petere 5321: ac_check_lib_save_LIBS=$LIBS
1.190 momjian 5322: LIBS="-lnsl $LIBS"
1.179 petere 5323: cat >conftest.$ac_ext <<_ACEOF
5324: #line $LINENO "configure"
1.1 petere 5325: #include "confdefs.h"
5326:
5327:
1.179 petere 5328: #ifdef F77_DUMMY_MAIN
5329: # ifdef __cplusplus
5330: extern "C"
5331: # endif
5332: int F77_DUMMY_MAIN() { return 1; }
5333: #endif
5334: int
5335: main ()
5336: {
5337: main ();
5338: ;
5339: return 0;
5340: }
5341: _ACEOF
5342: rm -f conftest.$ac_objext conftest$ac_exeext
5343: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5344: (eval $ac_link) 2>&5
5345: ac_status=$?
5346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347: (exit $ac_status); } &&
5348: { ac_try='test -s conftest$ac_exeext'
5349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350: (eval $ac_try) 2>&5
5351: ac_status=$?
5352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353: (exit $ac_status); }; }; then
1.190 momjian 5354: ac_cv_lib_nsl_main=yes
1.179 petere 5355: else
5356: echo "$as_me: failed program was:" >&5
5357: cat conftest.$ac_ext >&5
1.190 momjian 5358: ac_cv_lib_nsl_main=no
1.179 petere 5359: fi
5360: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5361: LIBS=$ac_check_lib_save_LIBS
5362: fi
1.190 momjian 5363: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5364: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5365: if test $ac_cv_lib_nsl_main = yes; then
1.179 petere 5366: cat >>confdefs.h <<_ACEOF
1.190 momjian 5367: #define HAVE_LIBNSL 1
1.179 petere 5368: _ACEOF
1.1 petere 5369:
1.190 momjian 5370: LIBS="-lnsl $LIBS"
1.1 petere 5371:
5372: fi
5373:
1.179 petere 5374:
1.190 momjian 5375: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5376: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5377: if test "${ac_cv_lib_socket_main+set}" = set; then
1.179 petere 5378: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5379: else
1.179 petere 5380: ac_check_lib_save_LIBS=$LIBS
1.190 momjian 5381: LIBS="-lsocket $LIBS"
1.179 petere 5382: cat >conftest.$ac_ext <<_ACEOF
5383: #line $LINENO "configure"
1.1 petere 5384: #include "confdefs.h"
5385:
5386:
1.179 petere 5387: #ifdef F77_DUMMY_MAIN
5388: # ifdef __cplusplus
5389: extern "C"
5390: # endif
5391: int F77_DUMMY_MAIN() { return 1; }
5392: #endif
5393: int
5394: main ()
5395: {
5396: main ();
5397: ;
5398: return 0;
5399: }
5400: _ACEOF
5401: rm -f conftest.$ac_objext conftest$ac_exeext
5402: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403: (eval $ac_link) 2>&5
5404: ac_status=$?
5405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406: (exit $ac_status); } &&
5407: { ac_try='test -s conftest$ac_exeext'
5408: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409: (eval $ac_try) 2>&5
5410: ac_status=$?
5411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412: (exit $ac_status); }; }; then
1.190 momjian 5413: ac_cv_lib_socket_main=yes
1.179 petere 5414: else
5415: echo "$as_me: failed program was:" >&5
5416: cat conftest.$ac_ext >&5
1.190 momjian 5417: ac_cv_lib_socket_main=no
1.179 petere 5418: fi
5419: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5420: LIBS=$ac_check_lib_save_LIBS
5421: fi
1.190 momjian 5422: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5423: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5424: if test $ac_cv_lib_socket_main = yes; then
1.179 petere 5425: cat >>confdefs.h <<_ACEOF
1.190 momjian 5426: #define HAVE_LIBSOCKET 1
1.179 petere 5427: _ACEOF
1.1 petere 5428:
1.190 momjian 5429: LIBS="-lsocket $LIBS"
1.1 petere 5430:
5431: fi
5432:
1.179 petere 5433:
5434: echo "$as_me:$LINENO: checking for main in -lipc" >&5
5435: echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5436: if test "${ac_cv_lib_ipc_main+set}" = set; then
5437: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5438: else
1.179 petere 5439: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5440: LIBS="-lipc $LIBS"
1.179 petere 5441: cat >conftest.$ac_ext <<_ACEOF
5442: #line $LINENO "configure"
1.1 petere 5443: #include "confdefs.h"
5444:
5445:
1.179 petere 5446: #ifdef F77_DUMMY_MAIN
5447: # ifdef __cplusplus
5448: extern "C"
5449: # endif
5450: int F77_DUMMY_MAIN() { return 1; }
5451: #endif
5452: int
5453: main ()
5454: {
5455: main ();
5456: ;
5457: return 0;
5458: }
5459: _ACEOF
5460: rm -f conftest.$ac_objext conftest$ac_exeext
5461: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462: (eval $ac_link) 2>&5
5463: ac_status=$?
5464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465: (exit $ac_status); } &&
5466: { ac_try='test -s conftest$ac_exeext'
5467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468: (eval $ac_try) 2>&5
5469: ac_status=$?
5470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471: (exit $ac_status); }; }; then
5472: ac_cv_lib_ipc_main=yes
5473: else
5474: echo "$as_me: failed program was:" >&5
5475: cat conftest.$ac_ext >&5
5476: ac_cv_lib_ipc_main=no
5477: fi
5478: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479: LIBS=$ac_check_lib_save_LIBS
5480: fi
5481: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5482: echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5483: if test $ac_cv_lib_ipc_main = yes; then
5484: cat >>confdefs.h <<_ACEOF
5485: #define HAVE_LIBIPC 1
5486: _ACEOF
1.1 petere 5487:
5488: LIBS="-lipc $LIBS"
5489:
5490: fi
5491:
1.179 petere 5492:
5493: echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5494: echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5495: if test "${ac_cv_lib_IPC_main+set}" = set; then
5496: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5497: else
1.179 petere 5498: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5499: LIBS="-lIPC $LIBS"
1.179 petere 5500: cat >conftest.$ac_ext <<_ACEOF
5501: #line $LINENO "configure"
1.1 petere 5502: #include "confdefs.h"
5503:
5504:
1.179 petere 5505: #ifdef F77_DUMMY_MAIN
5506: # ifdef __cplusplus
5507: extern "C"
5508: # endif
5509: int F77_DUMMY_MAIN() { return 1; }
5510: #endif
5511: int
5512: main ()
5513: {
5514: main ();
5515: ;
5516: return 0;
5517: }
5518: _ACEOF
5519: rm -f conftest.$ac_objext conftest$ac_exeext
5520: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521: (eval $ac_link) 2>&5
5522: ac_status=$?
5523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524: (exit $ac_status); } &&
5525: { ac_try='test -s conftest$ac_exeext'
5526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527: (eval $ac_try) 2>&5
5528: ac_status=$?
5529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530: (exit $ac_status); }; }; then
5531: ac_cv_lib_IPC_main=yes
5532: else
5533: echo "$as_me: failed program was:" >&5
5534: cat conftest.$ac_ext >&5
5535: ac_cv_lib_IPC_main=no
5536: fi
5537: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5538: LIBS=$ac_check_lib_save_LIBS
5539: fi
5540: echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5541: echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5542: if test $ac_cv_lib_IPC_main = yes; then
5543: cat >>confdefs.h <<_ACEOF
5544: #define HAVE_LIBIPC 1
5545: _ACEOF
1.1 petere 5546:
5547: LIBS="-lIPC $LIBS"
5548:
5549: fi
5550:
1.179 petere 5551:
5552: echo "$as_me:$LINENO: checking for main in -llc" >&5
5553: echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5554: if test "${ac_cv_lib_lc_main+set}" = set; then
5555: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5556: else
1.179 petere 5557: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5558: LIBS="-llc $LIBS"
1.179 petere 5559: cat >conftest.$ac_ext <<_ACEOF
5560: #line $LINENO "configure"
1.1 petere 5561: #include "confdefs.h"
5562:
5563:
1.179 petere 5564: #ifdef F77_DUMMY_MAIN
5565: # ifdef __cplusplus
5566: extern "C"
5567: # endif
5568: int F77_DUMMY_MAIN() { return 1; }
5569: #endif
5570: int
5571: main ()
5572: {
5573: main ();
5574: ;
5575: return 0;
5576: }
5577: _ACEOF
5578: rm -f conftest.$ac_objext conftest$ac_exeext
5579: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580: (eval $ac_link) 2>&5
5581: ac_status=$?
5582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583: (exit $ac_status); } &&
5584: { ac_try='test -s conftest$ac_exeext'
5585: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586: (eval $ac_try) 2>&5
5587: ac_status=$?
5588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589: (exit $ac_status); }; }; then
5590: ac_cv_lib_lc_main=yes
5591: else
5592: echo "$as_me: failed program was:" >&5
5593: cat conftest.$ac_ext >&5
5594: ac_cv_lib_lc_main=no
5595: fi
5596: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597: LIBS=$ac_check_lib_save_LIBS
5598: fi
5599: echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5600: echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5601: if test $ac_cv_lib_lc_main = yes; then
5602: cat >>confdefs.h <<_ACEOF
5603: #define HAVE_LIBLC 1
5604: _ACEOF
1.1 petere 5605:
5606: LIBS="-llc $LIBS"
5607:
5608: fi
5609:
1.179 petere 5610:
5611: echo "$as_me:$LINENO: checking for main in -ldld" >&5
5612: echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5613: if test "${ac_cv_lib_dld_main+set}" = set; then
5614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5615: else
1.179 petere 5616: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5617: LIBS="-ldld $LIBS"
1.179 petere 5618: cat >conftest.$ac_ext <<_ACEOF
5619: #line $LINENO "configure"
1.1 petere 5620: #include "confdefs.h"
5621:
5622:
1.179 petere 5623: #ifdef F77_DUMMY_MAIN
5624: # ifdef __cplusplus
5625: extern "C"
5626: # endif
5627: int F77_DUMMY_MAIN() { return 1; }
5628: #endif
5629: int
5630: main ()
5631: {
5632: main ();
5633: ;
5634: return 0;
5635: }
5636: _ACEOF
5637: rm -f conftest.$ac_objext conftest$ac_exeext
5638: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639: (eval $ac_link) 2>&5
5640: ac_status=$?
5641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642: (exit $ac_status); } &&
5643: { ac_try='test -s conftest$ac_exeext'
5644: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645: (eval $ac_try) 2>&5
5646: ac_status=$?
5647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648: (exit $ac_status); }; }; then
5649: ac_cv_lib_dld_main=yes
5650: else
5651: echo "$as_me: failed program was:" >&5
5652: cat conftest.$ac_ext >&5
5653: ac_cv_lib_dld_main=no
5654: fi
5655: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5656: LIBS=$ac_check_lib_save_LIBS
5657: fi
5658: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5659: echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5660: if test $ac_cv_lib_dld_main = yes; then
5661: cat >>confdefs.h <<_ACEOF
5662: #define HAVE_LIBDLD 1
5663: _ACEOF
1.1 petere 5664:
5665: LIBS="-ldld $LIBS"
5666:
5667: fi
5668:
1.179 petere 5669:
5670: echo "$as_me:$LINENO: checking for main in -lld" >&5
5671: echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5672: if test "${ac_cv_lib_ld_main+set}" = set; then
5673: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5674: else
1.179 petere 5675: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5676: LIBS="-lld $LIBS"
1.179 petere 5677: cat >conftest.$ac_ext <<_ACEOF
5678: #line $LINENO "configure"
1.1 petere 5679: #include "confdefs.h"
5680:
5681:
1.179 petere 5682: #ifdef F77_DUMMY_MAIN
5683: # ifdef __cplusplus
5684: extern "C"
5685: # endif
5686: int F77_DUMMY_MAIN() { return 1; }
5687: #endif
5688: int
5689: main ()
5690: {
5691: main ();
5692: ;
5693: return 0;
5694: }
5695: _ACEOF
5696: rm -f conftest.$ac_objext conftest$ac_exeext
5697: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698: (eval $ac_link) 2>&5
5699: ac_status=$?
5700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701: (exit $ac_status); } &&
5702: { ac_try='test -s conftest$ac_exeext'
5703: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704: (eval $ac_try) 2>&5
5705: ac_status=$?
5706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707: (exit $ac_status); }; }; then
5708: ac_cv_lib_ld_main=yes
5709: else
5710: echo "$as_me: failed program was:" >&5
5711: cat conftest.$ac_ext >&5
5712: ac_cv_lib_ld_main=no
5713: fi
5714: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715: LIBS=$ac_check_lib_save_LIBS
5716: fi
5717: echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5718: echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5719: if test $ac_cv_lib_ld_main = yes; then
5720: cat >>confdefs.h <<_ACEOF
5721: #define HAVE_LIBLD 1
5722: _ACEOF
1.1 petere 5723:
5724: LIBS="-lld $LIBS"
5725:
5726: fi
5727:
1.179 petere 5728:
5729: echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5730: echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5731: if test "${ac_cv_lib_compat_main+set}" = set; then
5732: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5733: else
1.179 petere 5734: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5735: LIBS="-lcompat $LIBS"
1.179 petere 5736: cat >conftest.$ac_ext <<_ACEOF
5737: #line $LINENO "configure"
1.28 petere 5738: #include "confdefs.h"
5739:
5740:
1.179 petere 5741: #ifdef F77_DUMMY_MAIN
5742: # ifdef __cplusplus
5743: extern "C"
5744: # endif
5745: int F77_DUMMY_MAIN() { return 1; }
5746: #endif
5747: int
5748: main ()
5749: {
5750: main ();
5751: ;
5752: return 0;
5753: }
5754: _ACEOF
5755: rm -f conftest.$ac_objext conftest$ac_exeext
5756: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757: (eval $ac_link) 2>&5
5758: ac_status=$?
5759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760: (exit $ac_status); } &&
5761: { ac_try='test -s conftest$ac_exeext'
5762: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763: (eval $ac_try) 2>&5
5764: ac_status=$?
5765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766: (exit $ac_status); }; }; then
5767: ac_cv_lib_compat_main=yes
5768: else
5769: echo "$as_me: failed program was:" >&5
5770: cat conftest.$ac_ext >&5
5771: ac_cv_lib_compat_main=no
5772: fi
5773: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5774: LIBS=$ac_check_lib_save_LIBS
5775: fi
5776: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5777: echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5778: if test $ac_cv_lib_compat_main = yes; then
5779: cat >>confdefs.h <<_ACEOF
5780: #define HAVE_LIBCOMPAT 1
5781: _ACEOF
1.28 petere 5782:
5783: LIBS="-lcompat $LIBS"
5784:
5785: fi
5786:
1.179 petere 5787:
5788: echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5789: echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5790: if test "${ac_cv_lib_BSD_main+set}" = set; then
5791: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5792: else
1.179 petere 5793: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5794: LIBS="-lBSD $LIBS"
1.179 petere 5795: cat >conftest.$ac_ext <<_ACEOF
5796: #line $LINENO "configure"
1.28 petere 5797: #include "confdefs.h"
5798:
5799:
1.179 petere 5800: #ifdef F77_DUMMY_MAIN
5801: # ifdef __cplusplus
5802: extern "C"
5803: # endif
5804: int F77_DUMMY_MAIN() { return 1; }
5805: #endif
5806: int
5807: main ()
5808: {
5809: main ();
5810: ;
5811: return 0;
5812: }
5813: _ACEOF
5814: rm -f conftest.$ac_objext conftest$ac_exeext
5815: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816: (eval $ac_link) 2>&5
5817: ac_status=$?
5818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819: (exit $ac_status); } &&
5820: { ac_try='test -s conftest$ac_exeext'
5821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822: (eval $ac_try) 2>&5
5823: ac_status=$?
5824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825: (exit $ac_status); }; }; then
5826: ac_cv_lib_BSD_main=yes
5827: else
5828: echo "$as_me: failed program was:" >&5
5829: cat conftest.$ac_ext >&5
5830: ac_cv_lib_BSD_main=no
5831: fi
5832: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5833: LIBS=$ac_check_lib_save_LIBS
5834: fi
5835: echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5836: echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5837: if test $ac_cv_lib_BSD_main = yes; then
5838: cat >>confdefs.h <<_ACEOF
5839: #define HAVE_LIBBSD 1
5840: _ACEOF
1.28 petere 5841:
5842: LIBS="-lBSD $LIBS"
5843:
5844: fi
5845:
1.179 petere 5846:
5847: echo "$as_me:$LINENO: checking for main in -lgen" >&5
5848: echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5849: if test "${ac_cv_lib_gen_main+set}" = set; then
5850: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5851: else
1.179 petere 5852: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5853: LIBS="-lgen $LIBS"
1.179 petere 5854: cat >conftest.$ac_ext <<_ACEOF
5855: #line $LINENO "configure"
1.28 petere 5856: #include "confdefs.h"
5857:
5858:
1.179 petere 5859: #ifdef F77_DUMMY_MAIN
5860: # ifdef __cplusplus
5861: extern "C"
5862: # endif
5863: int F77_DUMMY_MAIN() { return 1; }
5864: #endif
5865: int
5866: main ()
5867: {
5868: main ();
5869: ;
5870: return 0;
5871: }
5872: _ACEOF
5873: rm -f conftest.$ac_objext conftest$ac_exeext
5874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875: (eval $ac_link) 2>&5
5876: ac_status=$?
5877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878: (exit $ac_status); } &&
5879: { ac_try='test -s conftest$ac_exeext'
5880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881: (eval $ac_try) 2>&5
5882: ac_status=$?
5883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884: (exit $ac_status); }; }; then
5885: ac_cv_lib_gen_main=yes
5886: else
5887: echo "$as_me: failed program was:" >&5
5888: cat conftest.$ac_ext >&5
5889: ac_cv_lib_gen_main=no
5890: fi
5891: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5892: LIBS=$ac_check_lib_save_LIBS
5893: fi
5894: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5895: echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5896: if test $ac_cv_lib_gen_main = yes; then
5897: cat >>confdefs.h <<_ACEOF
5898: #define HAVE_LIBGEN 1
5899: _ACEOF
1.28 petere 5900:
5901: LIBS="-lgen $LIBS"
5902:
5903: fi
5904:
1.179 petere 5905:
5906: echo "$as_me:$LINENO: checking for main in -lPW" >&5
5907: echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5908: if test "${ac_cv_lib_PW_main+set}" = set; then
5909: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5910: else
1.179 petere 5911: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5912: LIBS="-lPW $LIBS"
1.179 petere 5913: cat >conftest.$ac_ext <<_ACEOF
5914: #line $LINENO "configure"
1.28 petere 5915: #include "confdefs.h"
5916:
5917:
1.179 petere 5918: #ifdef F77_DUMMY_MAIN
5919: # ifdef __cplusplus
5920: extern "C"
5921: # endif
5922: int F77_DUMMY_MAIN() { return 1; }
5923: #endif
5924: int
5925: main ()
5926: {
5927: main ();
5928: ;
5929: return 0;
5930: }
5931: _ACEOF
5932: rm -f conftest.$ac_objext conftest$ac_exeext
5933: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934: (eval $ac_link) 2>&5
5935: ac_status=$?
5936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937: (exit $ac_status); } &&
5938: { ac_try='test -s conftest$ac_exeext'
5939: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940: (eval $ac_try) 2>&5
5941: ac_status=$?
5942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943: (exit $ac_status); }; }; then
5944: ac_cv_lib_PW_main=yes
5945: else
5946: echo "$as_me: failed program was:" >&5
5947: cat conftest.$ac_ext >&5
5948: ac_cv_lib_PW_main=no
5949: fi
5950: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5951: LIBS=$ac_check_lib_save_LIBS
5952: fi
5953: echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5954: echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5955: if test $ac_cv_lib_PW_main = yes; then
5956: cat >>confdefs.h <<_ACEOF
5957: #define HAVE_LIBPW 1
5958: _ACEOF
1.28 petere 5959:
5960: LIBS="-lPW $LIBS"
5961:
5962: fi
5963:
1.179 petere 5964:
5965: echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5966: echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5967: if test "${ac_cv_lib_resolv_main+set}" = set; then
5968: echo $ECHO_N "(cached) $ECHO_C" >&6
1.102 petere 5969: else
1.179 petere 5970: ac_check_lib_save_LIBS=$LIBS
1.102 petere 5971: LIBS="-lresolv $LIBS"
1.179 petere 5972: cat >conftest.$ac_ext <<_ACEOF
5973: #line $LINENO "configure"
1.102 petere 5974: #include "confdefs.h"
5975:
5976:
1.179 petere 5977: #ifdef F77_DUMMY_MAIN
5978: # ifdef __cplusplus
5979: extern "C"
5980: # endif
5981: int F77_DUMMY_MAIN() { return 1; }
5982: #endif
5983: int
5984: main ()
5985: {
5986: main ();
5987: ;
5988: return 0;
5989: }
5990: _ACEOF
5991: rm -f conftest.$ac_objext conftest$ac_exeext
5992: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993: (eval $ac_link) 2>&5
5994: ac_status=$?
5995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996: (exit $ac_status); } &&
5997: { ac_try='test -s conftest$ac_exeext'
5998: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999: (eval $ac_try) 2>&5
6000: ac_status=$?
6001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002: (exit $ac_status); }; }; then
6003: ac_cv_lib_resolv_main=yes
6004: else
6005: echo "$as_me: failed program was:" >&5
6006: cat conftest.$ac_ext >&5
6007: ac_cv_lib_resolv_main=no
6008: fi
6009: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6010: LIBS=$ac_check_lib_save_LIBS
6011: fi
6012: echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6013: echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6014: if test $ac_cv_lib_resolv_main = yes; then
6015: cat >>confdefs.h <<_ACEOF
6016: #define HAVE_LIBRESOLV 1
6017: _ACEOF
1.102 petere 6018:
6019: LIBS="-lresolv $LIBS"
6020:
6021: fi
6022:
1.148 petere 6023: # QNX:
1.179 petere 6024:
6025: echo "$as_me:$LINENO: checking for main in -lunix" >&5
6026: echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6027: if test "${ac_cv_lib_unix_main+set}" = set; then
6028: echo $ECHO_N "(cached) $ECHO_C" >&6
1.111 petere 6029: else
1.179 petere 6030: ac_check_lib_save_LIBS=$LIBS
1.111 petere 6031: LIBS="-lunix $LIBS"
1.179 petere 6032: cat >conftest.$ac_ext <<_ACEOF
6033: #line $LINENO "configure"
1.111 petere 6034: #include "confdefs.h"
6035:
6036:
1.179 petere 6037: #ifdef F77_DUMMY_MAIN
6038: # ifdef __cplusplus
6039: extern "C"
6040: # endif
6041: int F77_DUMMY_MAIN() { return 1; }
6042: #endif
6043: int
6044: main ()
6045: {
6046: main ();
6047: ;
6048: return 0;
6049: }
6050: _ACEOF
6051: rm -f conftest.$ac_objext conftest$ac_exeext
6052: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053: (eval $ac_link) 2>&5
6054: ac_status=$?
6055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056: (exit $ac_status); } &&
6057: { ac_try='test -s conftest$ac_exeext'
6058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059: (eval $ac_try) 2>&5
6060: ac_status=$?
6061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062: (exit $ac_status); }; }; then
6063: ac_cv_lib_unix_main=yes
6064: else
6065: echo "$as_me: failed program was:" >&5
6066: cat conftest.$ac_ext >&5
6067: ac_cv_lib_unix_main=no
6068: fi
6069: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6070: LIBS=$ac_check_lib_save_LIBS
6071: fi
6072: echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6073: echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6074: if test $ac_cv_lib_unix_main = yes; then
6075: cat >>confdefs.h <<_ACEOF
6076: #define HAVE_LIBUNIX 1
6077: _ACEOF
1.111 petere 6078:
6079: LIBS="-lunix $LIBS"
6080:
6081: fi
6082:
1.179 petere 6083: echo "$as_me:$LINENO: checking for library containing crypt" >&5
6084: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6085: if test "${ac_cv_search_crypt+set}" = set; then
6086: echo $ECHO_N "(cached) $ECHO_C" >&6
6087: else
6088: ac_func_search_save_LIBS=$LIBS
6089: ac_cv_search_crypt=no
6090: cat >conftest.$ac_ext <<_ACEOF
6091: #line $LINENO "configure"
6092: #include "confdefs.h"
1.28 petere 6093:
6094: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6095: #ifdef __cplusplus
6096: extern "C"
6097: #endif
1.28 petere 6098: /* We use char because int might match the return type of a gcc2
1.179 petere 6099: builtin and then its argument prototype would still apply. */
6100: char crypt ();
6101: #ifdef F77_DUMMY_MAIN
6102: # ifdef __cplusplus
6103: extern "C"
6104: # endif
6105: int F77_DUMMY_MAIN() { return 1; }
6106: #endif
6107: int
6108: main ()
6109: {
6110: crypt ();
6111: ;
6112: return 0;
6113: }
6114: _ACEOF
6115: rm -f conftest.$ac_objext conftest$ac_exeext
6116: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117: (eval $ac_link) 2>&5
6118: ac_status=$?
6119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120: (exit $ac_status); } &&
6121: { ac_try='test -s conftest$ac_exeext'
6122: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123: (eval $ac_try) 2>&5
6124: ac_status=$?
6125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126: (exit $ac_status); }; }; then
1.28 petere 6127: ac_cv_search_crypt="none required"
6128: else
1.179 petere 6129: echo "$as_me: failed program was:" >&5
6130: cat conftest.$ac_ext >&5
1.28 petere 6131: fi
1.179 petere 6132: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6133: if test "$ac_cv_search_crypt" = no; then
6134: for ac_lib in crypt; do
6135: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6136: cat >conftest.$ac_ext <<_ACEOF
6137: #line $LINENO "configure"
1.28 petere 6138: #include "confdefs.h"
1.179 petere 6139:
1.28 petere 6140: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6141: #ifdef __cplusplus
6142: extern "C"
6143: #endif
1.28 petere 6144: /* We use char because int might match the return type of a gcc2
1.179 petere 6145: builtin and then its argument prototype would still apply. */
6146: char crypt ();
6147: #ifdef F77_DUMMY_MAIN
6148: # ifdef __cplusplus
6149: extern "C"
6150: # endif
6151: int F77_DUMMY_MAIN() { return 1; }
6152: #endif
6153: int
6154: main ()
6155: {
6156: crypt ();
6157: ;
6158: return 0;
6159: }
6160: _ACEOF
6161: rm -f conftest.$ac_objext conftest$ac_exeext
6162: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163: (eval $ac_link) 2>&5
6164: ac_status=$?
6165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166: (exit $ac_status); } &&
6167: { ac_try='test -s conftest$ac_exeext'
6168: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169: (eval $ac_try) 2>&5
6170: ac_status=$?
6171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172: (exit $ac_status); }; }; then
6173: ac_cv_search_crypt="-l$ac_lib"
1.28 petere 6174: break
6175: else
1.179 petere 6176: echo "$as_me: failed program was:" >&5
6177: cat conftest.$ac_ext >&5
6178: fi
6179: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180: done
1.28 petere 6181: fi
1.179 petere 6182: LIBS=$ac_func_search_save_LIBS
1.28 petere 6183: fi
1.179 petere 6184: echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6185: echo "${ECHO_T}$ac_cv_search_crypt" >&6
6186: if test "$ac_cv_search_crypt" != no; then
6187: test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1.28 petere 6188:
6189: fi
1.179 petere 6190:
1.148 petere 6191: # BeOS:
1.179 petere 6192:
6193: echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6194: echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6195: if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6196: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6197: else
1.179 petere 6198: ac_check_lib_save_LIBS=$LIBS
1.92 tgl 6199: LIBS="-lbind $LIBS"
1.179 petere 6200: cat >conftest.$ac_ext <<_ACEOF
6201: #line $LINENO "configure"
1.28 petere 6202: #include "confdefs.h"
1.179 petere 6203:
1.28 petere 6204: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6205: #ifdef __cplusplus
6206: extern "C"
6207: #endif
1.28 petere 6208: /* We use char because int might match the return type of a gcc2
1.179 petere 6209: builtin and then its argument prototype would still apply. */
6210: char __inet_ntoa ();
6211: #ifdef F77_DUMMY_MAIN
6212: # ifdef __cplusplus
6213: extern "C"
6214: # endif
6215: int F77_DUMMY_MAIN() { return 1; }
6216: #endif
6217: int
6218: main ()
6219: {
6220: __inet_ntoa ();
6221: ;
6222: return 0;
6223: }
6224: _ACEOF
6225: rm -f conftest.$ac_objext conftest$ac_exeext
6226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227: (eval $ac_link) 2>&5
6228: ac_status=$?
6229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230: (exit $ac_status); } &&
6231: { ac_try='test -s conftest$ac_exeext'
6232: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233: (eval $ac_try) 2>&5
6234: ac_status=$?
6235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236: (exit $ac_status); }; }; then
6237: ac_cv_lib_bind___inet_ntoa=yes
6238: else
6239: echo "$as_me: failed program was:" >&5
6240: cat conftest.$ac_ext >&5
6241: ac_cv_lib_bind___inet_ntoa=no
6242: fi
6243: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6244: LIBS=$ac_check_lib_save_LIBS
6245: fi
6246: echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6247: echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6248: if test $ac_cv_lib_bind___inet_ntoa = yes; then
6249: cat >>confdefs.h <<_ACEOF
6250: #define HAVE_LIBBIND 1
6251: _ACEOF
1.28 petere 6252:
1.92 tgl 6253: LIBS="-lbind $LIBS"
1.28 petere 6254:
6255: fi
6256:
1.186 petere 6257: # Solaris:
6258: echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6259: echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6260: if test "${ac_cv_search_fdatasync+set}" = set; then
1.179 petere 6261: echo $ECHO_N "(cached) $ECHO_C" >&6
1.57 momjian 6262: else
1.186 petere 6263: ac_func_search_save_LIBS=$LIBS
6264: ac_cv_search_fdatasync=no
1.179 petere 6265: cat >conftest.$ac_ext <<_ACEOF
6266: #line $LINENO "configure"
1.57 momjian 6267: #include "confdefs.h"
1.179 petere 6268:
1.59 petere 6269: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6270: #ifdef __cplusplus
6271: extern "C"
6272: #endif
1.59 petere 6273: /* We use char because int might match the return type of a gcc2
1.179 petere 6274: builtin and then its argument prototype would still apply. */
1.186 petere 6275: char fdatasync ();
1.179 petere 6276: #ifdef F77_DUMMY_MAIN
6277: # ifdef __cplusplus
6278: extern "C"
6279: # endif
6280: int F77_DUMMY_MAIN() { return 1; }
6281: #endif
6282: int
6283: main ()
6284: {
1.186 petere 6285: fdatasync ();
1.179 petere 6286: ;
6287: return 0;
6288: }
6289: _ACEOF
6290: rm -f conftest.$ac_objext conftest$ac_exeext
6291: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292: (eval $ac_link) 2>&5
6293: ac_status=$?
6294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295: (exit $ac_status); } &&
6296: { ac_try='test -s conftest$ac_exeext'
6297: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298: (eval $ac_try) 2>&5
6299: ac_status=$?
6300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301: (exit $ac_status); }; }; then
1.186 petere 6302: ac_cv_search_fdatasync="none required"
6303: else
6304: echo "$as_me: failed program was:" >&5
6305: cat conftest.$ac_ext >&5
6306: fi
6307: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6308: if test "$ac_cv_search_fdatasync" = no; then
6309: for ac_lib in rt posix4; do
6310: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6311: cat >conftest.$ac_ext <<_ACEOF
6312: #line $LINENO "configure"
6313: #include "confdefs.h"
6314:
6315: /* Override any gcc2 internal prototype to avoid an error. */
6316: #ifdef __cplusplus
6317: extern "C"
6318: #endif
6319: /* We use char because int might match the return type of a gcc2
6320: builtin and then its argument prototype would still apply. */
6321: char fdatasync ();
6322: #ifdef F77_DUMMY_MAIN
6323: # ifdef __cplusplus
6324: extern "C"
6325: # endif
6326: int F77_DUMMY_MAIN() { return 1; }
6327: #endif
6328: int
6329: main ()
6330: {
6331: fdatasync ();
6332: ;
6333: return 0;
6334: }
6335: _ACEOF
6336: rm -f conftest.$ac_objext conftest$ac_exeext
6337: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338: (eval $ac_link) 2>&5
6339: ac_status=$?
6340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341: (exit $ac_status); } &&
6342: { ac_try='test -s conftest$ac_exeext'
6343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344: (eval $ac_try) 2>&5
6345: ac_status=$?
6346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347: (exit $ac_status); }; }; then
6348: ac_cv_search_fdatasync="-l$ac_lib"
6349: break
1.179 petere 6350: else
6351: echo "$as_me: failed program was:" >&5
6352: cat conftest.$ac_ext >&5
6353: fi
6354: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.186 petere 6355: done
6356: fi
6357: LIBS=$ac_func_search_save_LIBS
1.179 petere 6358: fi
1.186 petere 6359: echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6360: echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6361: if test "$ac_cv_search_fdatasync" != no; then
6362: test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
1.70 petere 6363:
1.186 petere 6364: fi
1.92 tgl 6365:
6366:
1.186 petere 6367: if test "$with_readline" = yes; then
1.70 petere 6368:
1.186 petere 6369: echo "$as_me:$LINENO: checking for readline" >&5
6370: echo $ECHO_N "checking for readline... $ECHO_C" >&6
1.57 momjian 6371:
1.186 petere 6372: if test "${pgac_cv_check_readline+set}" = set; then
1.179 petere 6373: echo $ECHO_N "(cached) $ECHO_C" >&6
6374: else
1.186 petere 6375: pgac_cv_check_readline=no
6376: for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6377: for pgac_rllib in -lreadline -ledit ; do
6378: pgac_save_LIBS=$LIBS
6379: LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6380: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 6381: #line $LINENO "configure"
6382: #include "confdefs.h"
1.28 petere 6383:
1.148 petere 6384: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6385: #ifdef __cplusplus
6386: extern "C"
6387: #endif
1.148 petere 6388: /* We use char because int might match the return type of a gcc2
1.179 petere 6389: builtin and then its argument prototype would still apply. */
1.186 petere 6390: char readline ();
1.179 petere 6391: #ifdef F77_DUMMY_MAIN
6392: # ifdef __cplusplus
6393: extern "C"
6394: # endif
6395: int F77_DUMMY_MAIN() { return 1; }
6396: #endif
6397: int
6398: main ()
6399: {
1.186 petere 6400: readline ();
1.179 petere 6401: ;
6402: return 0;
6403: }
6404: _ACEOF
6405: rm -f conftest.$ac_objext conftest$ac_exeext
6406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407: (eval $ac_link) 2>&5
6408: ac_status=$?
6409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410: (exit $ac_status); } &&
6411: { ac_try='test -s conftest$ac_exeext'
6412: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413: (eval $ac_try) 2>&5
6414: ac_status=$?
6415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416: (exit $ac_status); }; }; then
1.186 petere 6417:
6418: # NetBSD and OpenBSD have a broken linker that does not
6419: # recognize dependent libraries
6420: case $host_os in netbsd* | openbsd* )
6421: case $pgac_lib in
6422: *curses*) ;;
6423: *) pgac_lib=" -lcurses" ;;
6424: esac
6425: esac
6426:
6427: pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6428: break 2
6429:
1.148 petere 6430: else
1.179 petere 6431: echo "$as_me: failed program was:" >&5
6432: cat conftest.$ac_ext >&5
1.148 petere 6433: fi
1.179 petere 6434: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.186 petere 6435: LIBS=$pgac_save_LIBS
6436: done
6437: done
6438: LIBS=$pgac_save_LIBS
6439:
6440: fi
6441:
6442: if test "$pgac_cv_check_readline" != no ; then
6443:
6444: cat >>confdefs.h <<\_ACEOF
6445: #define HAVE_LIBREADLINE 1
6446: _ACEOF
6447:
6448: LIBS="$pgac_cv_check_readline $LIBS"
6449: echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6450: echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6451: else
6452: echo "$as_me:$LINENO: result: no" >&5
6453: echo "${ECHO_T}no" >&6
6454: fi
6455: if test x"$pgac_cv_check_readline" = x"no"; then
6456: { { echo "$as_me:$LINENO: error: readline library not found
6457: Use --without-readline to disable readline support." >&5
6458: echo "$as_me: error: readline library not found
6459: Use --without-readline to disable readline support." >&2;}
6460: { (exit 1); exit 1; }; }
6461: fi
6462: fi
6463:
6464: if test "$with_zlib" = yes; then
6465:
6466: echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6467: echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6468: if test "${ac_cv_lib_z_inflate+set}" = set; then
6469: echo $ECHO_N "(cached) $ECHO_C" >&6
6470: else
6471: ac_check_lib_save_LIBS=$LIBS
6472: LIBS="-lz $LIBS"
6473: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 6474: #line $LINENO "configure"
1.148 petere 6475: #include "confdefs.h"
1.179 petere 6476:
1.148 petere 6477: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6478: #ifdef __cplusplus
6479: extern "C"
6480: #endif
1.148 petere 6481: /* We use char because int might match the return type of a gcc2
1.179 petere 6482: builtin and then its argument prototype would still apply. */
1.186 petere 6483: char inflate ();
1.179 petere 6484: #ifdef F77_DUMMY_MAIN
6485: # ifdef __cplusplus
6486: extern "C"
6487: # endif
6488: int F77_DUMMY_MAIN() { return 1; }
6489: #endif
6490: int
6491: main ()
6492: {
1.186 petere 6493: inflate ();
1.179 petere 6494: ;
6495: return 0;
6496: }
6497: _ACEOF
6498: rm -f conftest.$ac_objext conftest$ac_exeext
6499: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500: (eval $ac_link) 2>&5
6501: ac_status=$?
6502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503: (exit $ac_status); } &&
6504: { ac_try='test -s conftest$ac_exeext'
6505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506: (eval $ac_try) 2>&5
6507: ac_status=$?
6508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509: (exit $ac_status); }; }; then
1.186 petere 6510: ac_cv_lib_z_inflate=yes
1.148 petere 6511: else
1.179 petere 6512: echo "$as_me: failed program was:" >&5
6513: cat conftest.$ac_ext >&5
1.186 petere 6514: ac_cv_lib_z_inflate=no
1.179 petere 6515: fi
6516: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.186 petere 6517: LIBS=$ac_check_lib_save_LIBS
1.148 petere 6518: fi
1.186 petere 6519: echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6520: echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6521: if test $ac_cv_lib_z_inflate = yes; then
6522: cat >>confdefs.h <<_ACEOF
6523: #define HAVE_LIBZ 1
6524: _ACEOF
6525:
6526: LIBS="-lz $LIBS"
6527:
6528: else
6529: { { echo "$as_me:$LINENO: error: zlib library not found
6530: Use --without-zlib to disable zlib support." >&5
6531: echo "$as_me: error: zlib library not found
6532: Use --without-zlib to disable zlib support." >&2;}
6533: { (exit 1); exit 1; }; }
1.148 petere 6534: fi
6535:
6536: fi
1.62 momjian 6537:
1.28 petere 6538: if test "$with_krb4" = yes ; then
1.179 petere 6539:
6540: echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6541: echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6542: if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6543: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6544: else
1.179 petere 6545: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6546: LIBS="-ldes $LIBS"
1.179 petere 6547: cat >conftest.$ac_ext <<_ACEOF
6548: #line $LINENO "configure"
1.28 petere 6549: #include "confdefs.h"
1.179 petere 6550:
1.28 petere 6551: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6552: #ifdef __cplusplus
6553: extern "C"
6554: #endif
1.28 petere 6555: /* We use char because int might match the return type of a gcc2
1.179 petere 6556: builtin and then its argument prototype would still apply. */
6557: char des_encrypt ();
6558: #ifdef F77_DUMMY_MAIN
6559: # ifdef __cplusplus
6560: extern "C"
6561: # endif
6562: int F77_DUMMY_MAIN() { return 1; }
6563: #endif
6564: int
6565: main ()
6566: {
6567: des_encrypt ();
6568: ;
6569: return 0;
6570: }
6571: _ACEOF
6572: rm -f conftest.$ac_objext conftest$ac_exeext
6573: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574: (eval $ac_link) 2>&5
6575: ac_status=$?
6576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577: (exit $ac_status); } &&
6578: { ac_try='test -s conftest$ac_exeext'
6579: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580: (eval $ac_try) 2>&5
6581: ac_status=$?
6582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583: (exit $ac_status); }; }; then
6584: ac_cv_lib_des_des_encrypt=yes
6585: else
6586: echo "$as_me: failed program was:" >&5
6587: cat conftest.$ac_ext >&5
6588: ac_cv_lib_des_des_encrypt=no
6589: fi
6590: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6591: LIBS=$ac_check_lib_save_LIBS
6592: fi
6593: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6594: echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6595: if test $ac_cv_lib_des_des_encrypt = yes; then
6596: cat >>confdefs.h <<_ACEOF
6597: #define HAVE_LIBDES 1
6598: _ACEOF
1.28 petere 6599:
6600: LIBS="-ldes $LIBS"
6601:
6602: else
1.179 petere 6603: { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6604: echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6605: { (exit 1); exit 1; }; }
1.28 petere 6606: fi
6607:
1.179 petere 6608:
6609: echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6610: echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6611: if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6612: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6613: else
1.179 petere 6614: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6615: LIBS="-lkrb $LIBS"
1.179 petere 6616: cat >conftest.$ac_ext <<_ACEOF
6617: #line $LINENO "configure"
1.28 petere 6618: #include "confdefs.h"
1.179 petere 6619:
1.28 petere 6620: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6621: #ifdef __cplusplus
6622: extern "C"
6623: #endif
1.28 petere 6624: /* We use char because int might match the return type of a gcc2
1.179 petere 6625: builtin and then its argument prototype would still apply. */
6626: char krb_sendauth ();
6627: #ifdef F77_DUMMY_MAIN
6628: # ifdef __cplusplus
6629: extern "C"
6630: # endif
6631: int F77_DUMMY_MAIN() { return 1; }
6632: #endif
6633: int
6634: main ()
6635: {
6636: krb_sendauth ();
6637: ;
6638: return 0;
6639: }
6640: _ACEOF
6641: rm -f conftest.$ac_objext conftest$ac_exeext
6642: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643: (eval $ac_link) 2>&5
6644: ac_status=$?
6645: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646: (exit $ac_status); } &&
6647: { ac_try='test -s conftest$ac_exeext'
6648: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649: (eval $ac_try) 2>&5
6650: ac_status=$?
6651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652: (exit $ac_status); }; }; then
6653: ac_cv_lib_krb_krb_sendauth=yes
6654: else
6655: echo "$as_me: failed program was:" >&5
6656: cat conftest.$ac_ext >&5
6657: ac_cv_lib_krb_krb_sendauth=no
6658: fi
6659: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6660: LIBS=$ac_check_lib_save_LIBS
6661: fi
6662: echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6663: echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6664: if test $ac_cv_lib_krb_krb_sendauth = yes; then
6665: cat >>confdefs.h <<_ACEOF
6666: #define HAVE_LIBKRB 1
6667: _ACEOF
1.28 petere 6668:
6669: LIBS="-lkrb $LIBS"
6670:
6671: else
1.179 petere 6672: { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6673: echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6674: { (exit 1); exit 1; }; }
1.28 petere 6675: fi
6676:
6677: fi
6678:
6679: if test "$with_krb5" = yes ; then
1.179 petere 6680: echo "$as_me:$LINENO: checking for library containing com_err" >&5
6681: echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6682: if test "${ac_cv_search_com_err+set}" = set; then
6683: echo $ECHO_N "(cached) $ECHO_C" >&6
6684: else
6685: ac_func_search_save_LIBS=$LIBS
6686: ac_cv_search_com_err=no
6687: cat >conftest.$ac_ext <<_ACEOF
6688: #line $LINENO "configure"
1.1 petere 6689: #include "confdefs.h"
1.179 petere 6690:
1.70 petere 6691: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6692: #ifdef __cplusplus
6693: extern "C"
6694: #endif
1.70 petere 6695: /* We use char because int might match the return type of a gcc2
1.179 petere 6696: builtin and then its argument prototype would still apply. */
6697: char com_err ();
6698: #ifdef F77_DUMMY_MAIN
6699: # ifdef __cplusplus
6700: extern "C"
6701: # endif
6702: int F77_DUMMY_MAIN() { return 1; }
6703: #endif
6704: int
6705: main ()
6706: {
6707: com_err ();
6708: ;
6709: return 0;
6710: }
6711: _ACEOF
6712: rm -f conftest.$ac_objext conftest$ac_exeext
6713: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714: (eval $ac_link) 2>&5
6715: ac_status=$?
6716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717: (exit $ac_status); } &&
6718: { ac_try='test -s conftest$ac_exeext'
6719: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720: (eval $ac_try) 2>&5
6721: ac_status=$?
6722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723: (exit $ac_status); }; }; then
1.174 petere 6724: ac_cv_search_com_err="none required"
1.1 petere 6725: else
1.179 petere 6726: echo "$as_me: failed program was:" >&5
6727: cat conftest.$ac_ext >&5
1.1 petere 6728: fi
1.179 petere 6729: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6730: if test "$ac_cv_search_com_err" = no; then
6731: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6732: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6733: cat >conftest.$ac_ext <<_ACEOF
6734: #line $LINENO "configure"
1.174 petere 6735: #include "confdefs.h"
1.179 petere 6736:
1.174 petere 6737: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6738: #ifdef __cplusplus
6739: extern "C"
6740: #endif
1.174 petere 6741: /* We use char because int might match the return type of a gcc2
1.179 petere 6742: builtin and then its argument prototype would still apply. */
6743: char com_err ();
6744: #ifdef F77_DUMMY_MAIN
6745: # ifdef __cplusplus
6746: extern "C"
6747: # endif
6748: int F77_DUMMY_MAIN() { return 1; }
6749: #endif
6750: int
6751: main ()
6752: {
6753: com_err ();
6754: ;
6755: return 0;
6756: }
6757: _ACEOF
6758: rm -f conftest.$ac_objext conftest$ac_exeext
6759: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760: (eval $ac_link) 2>&5
6761: ac_status=$?
6762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763: (exit $ac_status); } &&
6764: { ac_try='test -s conftest$ac_exeext'
6765: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766: (eval $ac_try) 2>&5
6767: ac_status=$?
6768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769: (exit $ac_status); }; }; then
6770: ac_cv_search_com_err="-l$ac_lib"
1.174 petere 6771: break
1.1 petere 6772: else
1.179 petere 6773: echo "$as_me: failed program was:" >&5
6774: cat conftest.$ac_ext >&5
6775: fi
6776: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6777: done
1.174 petere 6778: fi
1.179 petere 6779: LIBS=$ac_func_search_save_LIBS
1.1 petere 6780: fi
1.179 petere 6781: echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6782: echo "${ECHO_T}$ac_cv_search_com_err" >&6
6783: if test "$ac_cv_search_com_err" != no; then
6784: test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
1.1 petere 6785:
1.179 petere 6786: else
6787: { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6788: echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6789: { (exit 1); exit 1; }; }
1.174 petere 6790: fi
1.179 petere 6791:
6792: echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6793: echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6794: if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6795: echo $ECHO_N "(cached) $ECHO_C" >&6
6796: else
6797: ac_func_search_save_LIBS=$LIBS
6798: ac_cv_search_krb5_encrypt=no
6799: cat >conftest.$ac_ext <<_ACEOF
6800: #line $LINENO "configure"
1.1 petere 6801: #include "confdefs.h"
1.179 petere 6802:
1.70 petere 6803: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6804: #ifdef __cplusplus
6805: extern "C"
6806: #endif
1.70 petere 6807: /* We use char because int might match the return type of a gcc2
1.179 petere 6808: builtin and then its argument prototype would still apply. */
6809: char krb5_encrypt ();
6810: #ifdef F77_DUMMY_MAIN
6811: # ifdef __cplusplus
6812: extern "C"
6813: # endif
6814: int F77_DUMMY_MAIN() { return 1; }
6815: #endif
6816: int
6817: main ()
6818: {
6819: krb5_encrypt ();
6820: ;
6821: return 0;
6822: }
6823: _ACEOF
6824: rm -f conftest.$ac_objext conftest$ac_exeext
6825: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826: (eval $ac_link) 2>&5
6827: ac_status=$?
6828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829: (exit $ac_status); } &&
6830: { ac_try='test -s conftest$ac_exeext'
6831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832: (eval $ac_try) 2>&5
6833: ac_status=$?
6834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835: (exit $ac_status); }; }; then
1.174 petere 6836: ac_cv_search_krb5_encrypt="none required"
1.1 petere 6837: else
1.179 petere 6838: echo "$as_me: failed program was:" >&5
6839: cat conftest.$ac_ext >&5
1.1 petere 6840: fi
1.179 petere 6841: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6842: if test "$ac_cv_search_krb5_encrypt" = no; then
6843: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6844: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6845: cat >conftest.$ac_ext <<_ACEOF
6846: #line $LINENO "configure"
1.70 petere 6847: #include "confdefs.h"
1.179 petere 6848:
1.70 petere 6849: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6850: #ifdef __cplusplus
6851: extern "C"
6852: #endif
1.70 petere 6853: /* We use char because int might match the return type of a gcc2
1.179 petere 6854: builtin and then its argument prototype would still apply. */
6855: char krb5_encrypt ();
6856: #ifdef F77_DUMMY_MAIN
6857: # ifdef __cplusplus
6858: extern "C"
6859: # endif
6860: int F77_DUMMY_MAIN() { return 1; }
6861: #endif
6862: int
6863: main ()
6864: {
6865: krb5_encrypt ();
6866: ;
6867: return 0;
6868: }
6869: _ACEOF
6870: rm -f conftest.$ac_objext conftest$ac_exeext
6871: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872: (eval $ac_link) 2>&5
6873: ac_status=$?
6874: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875: (exit $ac_status); } &&
6876: { ac_try='test -s conftest$ac_exeext'
6877: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878: (eval $ac_try) 2>&5
6879: ac_status=$?
6880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881: (exit $ac_status); }; }; then
6882: ac_cv_search_krb5_encrypt="-l$ac_lib"
1.174 petere 6883: break
1.70 petere 6884: else
1.179 petere 6885: echo "$as_me: failed program was:" >&5
6886: cat conftest.$ac_ext >&5
6887: fi
6888: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6889: done
1.70 petere 6890: fi
1.179 petere 6891: LIBS=$ac_func_search_save_LIBS
1.70 petere 6892: fi
1.179 petere 6893: echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6894: echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6895: if test "$ac_cv_search_krb5_encrypt" != no; then
6896: test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
1.70 petere 6897:
1.179 petere 6898: else
6899: { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6900: echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6901: { (exit 1); exit 1; }; }
1.1 petere 6902: fi
1.179 petere 6903:
6904: echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6905: echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6906: if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6907: echo $ECHO_N "(cached) $ECHO_C" >&6
6908: else
6909: ac_func_search_save_LIBS=$LIBS
6910: ac_cv_search_krb5_sendauth=no
6911: cat >conftest.$ac_ext <<_ACEOF
6912: #line $LINENO "configure"
1.1 petere 6913: #include "confdefs.h"
1.179 petere 6914:
1.70 petere 6915: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6916: #ifdef __cplusplus
6917: extern "C"
6918: #endif
1.70 petere 6919: /* We use char because int might match the return type of a gcc2
1.179 petere 6920: builtin and then its argument prototype would still apply. */
6921: char krb5_sendauth ();
6922: #ifdef F77_DUMMY_MAIN
6923: # ifdef __cplusplus
6924: extern "C"
6925: # endif
6926: int F77_DUMMY_MAIN() { return 1; }
6927: #endif
6928: int
6929: main ()
6930: {
6931: krb5_sendauth ();
6932: ;
6933: return 0;
6934: }
6935: _ACEOF
6936: rm -f conftest.$ac_objext conftest$ac_exeext
6937: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938: (eval $ac_link) 2>&5
6939: ac_status=$?
6940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941: (exit $ac_status); } &&
6942: { ac_try='test -s conftest$ac_exeext'
6943: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944: (eval $ac_try) 2>&5
6945: ac_status=$?
6946: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947: (exit $ac_status); }; }; then
1.174 petere 6948: ac_cv_search_krb5_sendauth="none required"
1.1 petere 6949: else
1.179 petere 6950: echo "$as_me: failed program was:" >&5
6951: cat conftest.$ac_ext >&5
1.1 petere 6952: fi
1.179 petere 6953: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954: if test "$ac_cv_search_krb5_sendauth" = no; then
6955: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6956: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6957: cat >conftest.$ac_ext <<_ACEOF
6958: #line $LINENO "configure"
1.174 petere 6959: #include "confdefs.h"
1.179 petere 6960:
1.174 petere 6961: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6962: #ifdef __cplusplus
6963: extern "C"
6964: #endif
1.174 petere 6965: /* We use char because int might match the return type of a gcc2
1.179 petere 6966: builtin and then its argument prototype would still apply. */
6967: char krb5_sendauth ();
6968: #ifdef F77_DUMMY_MAIN
6969: # ifdef __cplusplus
6970: extern "C"
6971: # endif
6972: int F77_DUMMY_MAIN() { return 1; }
6973: #endif
6974: int
6975: main ()
6976: {
6977: krb5_sendauth ();
6978: ;
6979: return 0;
6980: }
6981: _ACEOF
6982: rm -f conftest.$ac_objext conftest$ac_exeext
6983: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984: (eval $ac_link) 2>&5
6985: ac_status=$?
6986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987: (exit $ac_status); } &&
6988: { ac_try='test -s conftest$ac_exeext'
6989: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990: (eval $ac_try) 2>&5
6991: ac_status=$?
6992: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993: (exit $ac_status); }; }; then
6994: ac_cv_search_krb5_sendauth="-l$ac_lib"
1.174 petere 6995: break
1.1 petere 6996: else
1.179 petere 6997: echo "$as_me: failed program was:" >&5
6998: cat conftest.$ac_ext >&5
6999: fi
7000: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7001: done
1.174 petere 7002: fi
1.179 petere 7003: LIBS=$ac_func_search_save_LIBS
1.1 petere 7004: fi
1.179 petere 7005: echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7006: echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7007: if test "$ac_cv_search_krb5_sendauth" != no; then
7008: test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
1.1 petere 7009:
1.179 petere 7010: else
7011: { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7012: echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7013: { (exit 1); exit 1; }; }
1.174 petere 7014: fi
1.179 petere 7015:
1.28 petere 7016: fi
7017:
7018: if test "$with_openssl" = yes ; then
1.179 petere 7019:
7020: echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7021: echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7022: if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7023: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 7024: else
1.179 petere 7025: ac_check_lib_save_LIBS=$LIBS
1.28 petere 7026: LIBS="-lcrypto $LIBS"
1.179 petere 7027: cat >conftest.$ac_ext <<_ACEOF
7028: #line $LINENO "configure"
1.1 petere 7029: #include "confdefs.h"
1.179 petere 7030:
1.28 petere 7031: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 7032: #ifdef __cplusplus
7033: extern "C"
7034: #endif
1.28 petere 7035: /* We use char because int might match the return type of a gcc2
1.179 petere 7036: builtin and then its argument prototype would still apply. */
7037: char CRYPTO_new_ex_data ();
7038: #ifdef F77_DUMMY_MAIN
7039: # ifdef __cplusplus
7040: extern "C"
7041: # endif
7042: int F77_DUMMY_MAIN() { return 1; }
7043: #endif
7044: int
7045: main ()
7046: {
7047: CRYPTO_new_ex_data ();
7048: ;
7049: return 0;
7050: }
7051: _ACEOF
7052: rm -f conftest.$ac_objext conftest$ac_exeext
7053: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054: (eval $ac_link) 2>&5
7055: ac_status=$?
7056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057: (exit $ac_status); } &&
7058: { ac_try='test -s conftest$ac_exeext'
7059: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060: (eval $ac_try) 2>&5
7061: ac_status=$?
7062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063: (exit $ac_status); }; }; then
7064: ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7065: else
7066: echo "$as_me: failed program was:" >&5
7067: cat conftest.$ac_ext >&5
7068: ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7069: fi
7070: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7071: LIBS=$ac_check_lib_save_LIBS
7072: fi
7073: echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7074: echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7075: if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7076: cat >>confdefs.h <<_ACEOF
7077: #define HAVE_LIBCRYPTO 1
7078: _ACEOF
1.1 petere 7079:
1.28 petere 7080: LIBS="-lcrypto $LIBS"
1.1 petere 7081:
7082: else
1.179 petere 7083: { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7084: echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7085: { (exit 1); exit 1; }; }
1.1 petere 7086: fi
7087:
1.179 petere 7088:
7089: echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7090: echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7091: if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7092: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 7093: else
1.179 petere 7094: ac_check_lib_save_LIBS=$LIBS
1.28 petere 7095: LIBS="-lssl $LIBS"
1.179 petere 7096: cat >conftest.$ac_ext <<_ACEOF
7097: #line $LINENO "configure"
1.1 petere 7098: #include "confdefs.h"
1.179 petere 7099:
1.21 petere 7100: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 7101: #ifdef __cplusplus
7102: extern "C"
7103: #endif
1.21 petere 7104: /* We use char because int might match the return type of a gcc2
1.179 petere 7105: builtin and then its argument prototype would still apply. */
7106: char SSL_library_init ();
7107: #ifdef F77_DUMMY_MAIN
7108: # ifdef __cplusplus
7109: extern "C"
7110: # endif
7111: int F77_DUMMY_MAIN() { return 1; }
7112: #endif
7113: int
7114: main ()
7115: {
7116: SSL_library_init ();
7117: ;
7118: return 0;
7119: }
7120: _ACEOF
7121: rm -f conftest.$ac_objext conftest$ac_exeext
7122: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123: (eval $ac_link) 2>&5
7124: ac_status=$?
7125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126: (exit $ac_status); } &&
7127: { ac_try='test -s conftest$ac_exeext'
7128: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129: (eval $ac_try) 2>&5
7130: ac_status=$?
7131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132: (exit $ac_status); }; }; then
7133: ac_cv_lib_ssl_SSL_library_init=yes
7134: else
7135: echo "$as_me: failed program was:" >&5
7136: cat conftest.$ac_ext >&5
7137: ac_cv_lib_ssl_SSL_library_init=no
7138: fi
7139: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7140: LIBS=$ac_check_lib_save_LIBS
7141: fi
7142: echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7143: echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7144: if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7145: cat >>confdefs.h <<_ACEOF
7146: #define HAVE_LIBSSL 1
7147: _ACEOF
1.28 petere 7148:
7149: LIBS="-lssl $LIBS"
7150:
1.1 petere 7151: else
1.179 petere 7152: { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7153: echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7154: { (exit 1); exit 1; }; }
1.21 petere 7155: fi
1.28 petere 7156:
1.1 petere 7157: fi
7158:
1.146 momjian 7159: if test "$with_pam" = yes ; then
1.179 petere 7160:
7161: echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7162: echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7163: if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7164: echo $ECHO_N "(cached) $ECHO_C" >&6
1.146 momjian 7165: else
1.179 petere 7166: ac_check_lib_save_LIBS=$LIBS
1.146 momjian 7167: LIBS="-lpam $LIBS"
1.179 petere 7168: cat >conftest.$ac_ext <<_ACEOF
7169: #line $LINENO "configure"
1.146 momjian 7170: #include "confdefs.h"
1.179 petere 7171:
1.146 momjian 7172: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 7173: #ifdef __cplusplus
7174: extern "C"
7175: #endif
1.146 momjian 7176: /* We use char because int might match the return type of a gcc2
1.179 petere 7177: builtin and then its argument prototype would still apply. */
7178: char pam_start ();
7179: #ifdef F77_DUMMY_MAIN
7180: # ifdef __cplusplus
7181: extern "C"
7182: # endif
7183: int F77_DUMMY_MAIN() { return 1; }
7184: #endif
7185: int
7186: main ()
7187: {
7188: pam_start ();
7189: ;
7190: return 0;
7191: }
7192: _ACEOF
7193: rm -f conftest.$ac_objext conftest$ac_exeext
7194: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195: (eval $ac_link) 2>&5
7196: ac_status=$?
7197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198: (exit $ac_status); } &&
7199: { ac_try='test -s conftest$ac_exeext'
7200: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201: (eval $ac_try) 2>&5
7202: ac_status=$?
7203: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204: (exit $ac_status); }; }; then
7205: ac_cv_lib_pam_pam_start=yes
7206: else
7207: echo "$as_me: failed program was:" >&5
7208: cat conftest.$ac_ext >&5
7209: ac_cv_lib_pam_pam_start=no
7210: fi
7211: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212: LIBS=$ac_check_lib_save_LIBS
7213: fi
7214: echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7215: echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7216: if test $ac_cv_lib_pam_pam_start = yes; then
7217: cat >>confdefs.h <<_ACEOF
7218: #define HAVE_LIBPAM 1
7219: _ACEOF
1.146 momjian 7220:
7221: LIBS="-lpam $LIBS"
7222:
7223: else
1.179 petere 7224: { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7225: echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7226: { (exit 1); exit 1; }; }
1.146 momjian 7227: fi
7228:
7229: fi
7230:
1.181 petere 7231:
7232: ##
7233: ## Header files
7234: ##
7235: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.179 petere 7236: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7237: if test "${ac_cv_header_stdc+set}" = set; then
7238: echo $ECHO_N "(cached) $ECHO_C" >&6
7239: else
7240: cat >conftest.$ac_ext <<_ACEOF
7241: #line $LINENO "configure"
1.135 petere 7242: #include "confdefs.h"
1.179 petere 7243: #include <stdlib.h>
7244: #include <stdarg.h>
7245: #include <string.h>
7246: #include <float.h>
7247:
7248: _ACEOF
7249: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251: ac_status=$?
7252: egrep -v '^ *\+' conftest.er1 >conftest.err
7253: rm -f conftest.er1
7254: cat conftest.err >&5
7255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256: (exit $ac_status); } >/dev/null; then
7257: if test -s conftest.err; then
7258: ac_cpp_err=$ac_c_preproc_warn_flag
7259: else
7260: ac_cpp_err=
7261: fi
7262: else
7263: ac_cpp_err=yes
7264: fi
7265: if test -z "$ac_cpp_err"; then
7266: ac_cv_header_stdc=yes
1.135 petere 7267: else
1.179 petere 7268: echo "$as_me: failed program was:" >&5
1.135 petere 7269: cat conftest.$ac_ext >&5
1.179 petere 7270: ac_cv_header_stdc=no
1.135 petere 7271: fi
1.179 petere 7272: rm -f conftest.err conftest.$ac_ext
7273:
7274: if test $ac_cv_header_stdc = yes; then
7275: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276: cat >conftest.$ac_ext <<_ACEOF
7277: #line $LINENO "configure"
1.135 petere 7278: #include "confdefs.h"
1.179 petere 7279: #include <string.h>
1.135 petere 7280:
1.179 petere 7281: _ACEOF
7282: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283: egrep "memchr" >/dev/null 2>&1; then
7284: :
1.135 petere 7285: else
1.179 petere 7286: ac_cv_header_stdc=no
1.135 petere 7287: fi
7288: rm -f conftest*
1.179 petere 7289:
1.135 petere 7290: fi
7291:
1.179 petere 7292: if test $ac_cv_header_stdc = yes; then
7293: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7294: cat >conftest.$ac_ext <<_ACEOF
7295: #line $LINENO "configure"
1.135 petere 7296: #include "confdefs.h"
1.179 petere 7297: #include <stdlib.h>
7298:
7299: _ACEOF
7300: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301: egrep "free" >/dev/null 2>&1; then
7302: :
1.135 petere 7303: else
1.179 petere 7304: ac_cv_header_stdc=no
1.135 petere 7305: fi
7306: rm -f conftest*
1.179 petere 7307:
1.135 petere 7308: fi
1.179 petere 7309:
7310: if test $ac_cv_header_stdc = yes; then
7311: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7312: if test "$cross_compiling" = yes; then
1.135 petere 7313: :
7314: else
1.179 petere 7315: cat >conftest.$ac_ext <<_ACEOF
7316: #line $LINENO "configure"
7317: #include "confdefs.h"
7318: #include <ctype.h>
7319: #if ((' ' & 0x0FF) == 0x020)
7320: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7321: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7322: #else
7323: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7324: || ('j' <= (c) && (c) <= 'r') \
7325: || ('s' <= (c) && (c) <= 'z'))
7326: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7327: #endif
1.135 petere 7328:
1.179 petere 7329: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7330: int
7331: main ()
7332: {
7333: int i;
7334: for (i = 0; i < 256; i++)
7335: if (XOR (islower (i), ISLOWER (i))
7336: || toupper (i) != TOUPPER (i))
7337: exit(2);
7338: exit (0);
7339: }
7340: _ACEOF
7341: rm -f conftest$ac_exeext
7342: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343: (eval $ac_link) 2>&5
7344: ac_status=$?
7345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7347: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348: (eval $ac_try) 2>&5
7349: ac_status=$?
7350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351: (exit $ac_status); }; }; then
7352: :
1.135 petere 7353: else
1.179 petere 7354: echo "$as_me: program exited with status $ac_status" >&5
1.186 petere 7355: echo "$as_me: failed program was:" >&5
7356: cat conftest.$ac_ext >&5
7357: ( exit $ac_status )
7358: ac_cv_header_stdc=no
7359: fi
7360: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7361: fi
7362: fi
7363: fi
7364: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7365: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7366: if test $ac_cv_header_stdc = yes; then
7367:
7368: cat >>confdefs.h <<\_ACEOF
7369: #define STDC_HEADERS 1
7370: _ACEOF
7371:
7372: fi
7373:
7374: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7375:
7376:
7377:
7378:
7379:
7380:
7381:
7382:
7383:
7384: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385: inttypes.h stdint.h unistd.h
7386: do
7387: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388: echo "$as_me:$LINENO: checking for $ac_header" >&5
7389: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391: echo $ECHO_N "(cached) $ECHO_C" >&6
7392: else
7393: cat >conftest.$ac_ext <<_ACEOF
7394: #line $LINENO "configure"
7395: #include "confdefs.h"
7396: $ac_includes_default
7397:
7398: #include <$ac_header>
7399: _ACEOF
7400: rm -f conftest.$ac_objext
7401: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402: (eval $ac_compile) 2>&5
7403: ac_status=$?
7404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405: (exit $ac_status); } &&
7406: { ac_try='test -s conftest.$ac_objext'
7407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408: (eval $ac_try) 2>&5
7409: ac_status=$?
7410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411: (exit $ac_status); }; }; then
7412: eval "$as_ac_Header=yes"
7413: else
7414: echo "$as_me: failed program was:" >&5
7415: cat conftest.$ac_ext >&5
7416: eval "$as_ac_Header=no"
7417: fi
7418: rm -f conftest.$ac_objext conftest.$ac_ext
7419: fi
7420: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7422: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7423: cat >>confdefs.h <<_ACEOF
7424: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425: _ACEOF
7426:
7427: fi
7428:
7429: done
7430:
7431:
7432:
7433:
7434:
7435:
7436:
7437:
7438:
7439:
7440:
7441:
7442:
7443:
7444:
7445:
7446:
7447:
7448:
7449:
7450: for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
7451: do
7452: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7453: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454: echo "$as_me:$LINENO: checking for $ac_header" >&5
7455: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457: echo $ECHO_N "(cached) $ECHO_C" >&6
7458: fi
7459: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7460: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461: else
7462: # Is the header compilable?
7463: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7464: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7465: cat >conftest.$ac_ext <<_ACEOF
7466: #line $LINENO "configure"
7467: #include "confdefs.h"
7468: $ac_includes_default
7469: #include <$ac_header>
7470: _ACEOF
7471: rm -f conftest.$ac_objext
7472: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473: (eval $ac_compile) 2>&5
7474: ac_status=$?
7475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476: (exit $ac_status); } &&
7477: { ac_try='test -s conftest.$ac_objext'
7478: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479: (eval $ac_try) 2>&5
7480: ac_status=$?
7481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482: (exit $ac_status); }; }; then
7483: ac_header_compiler=yes
7484: else
7485: echo "$as_me: failed program was:" >&5
7486: cat conftest.$ac_ext >&5
7487: ac_header_compiler=no
7488: fi
7489: rm -f conftest.$ac_objext conftest.$ac_ext
7490: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491: echo "${ECHO_T}$ac_header_compiler" >&6
7492:
7493: # Is the header present?
7494: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7496: cat >conftest.$ac_ext <<_ACEOF
7497: #line $LINENO "configure"
7498: #include "confdefs.h"
7499: #include <$ac_header>
7500: _ACEOF
7501: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7502: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7503: ac_status=$?
7504: egrep -v '^ *\+' conftest.er1 >conftest.err
7505: rm -f conftest.er1
7506: cat conftest.err >&5
7507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508: (exit $ac_status); } >/dev/null; then
7509: if test -s conftest.err; then
7510: ac_cpp_err=$ac_c_preproc_warn_flag
7511: else
7512: ac_cpp_err=
7513: fi
7514: else
7515: ac_cpp_err=yes
7516: fi
7517: if test -z "$ac_cpp_err"; then
7518: ac_header_preproc=yes
7519: else
7520: echo "$as_me: failed program was:" >&5
7521: cat conftest.$ac_ext >&5
7522: ac_header_preproc=no
7523: fi
7524: rm -f conftest.err conftest.$ac_ext
7525: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7526: echo "${ECHO_T}$ac_header_preproc" >&6
7527:
7528: # So? What about this header?
7529: case $ac_header_compiler:$ac_header_preproc in
7530: yes:no )
7531: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7532: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7533: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7534: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7535: no:yes )
7536: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7537: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7538: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7539: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7540: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7541: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7542: esac
7543: echo "$as_me:$LINENO: checking for $ac_header" >&5
7544: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7545: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546: echo $ECHO_N "(cached) $ECHO_C" >&6
7547: else
7548: eval "$as_ac_Header=$ac_header_preproc"
7549: fi
7550: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552:
7553: fi
7554: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555: cat >>confdefs.h <<_ACEOF
7556: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557: _ACEOF
7558:
7559: fi
7560:
7561: done
7562:
7563:
7564: # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7565: # netinet/in.h is included first.
7566:
7567: for ac_header in netinet/in.h
7568: do
7569: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571: echo "$as_me:$LINENO: checking for $ac_header" >&5
7572: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7573: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574: echo $ECHO_N "(cached) $ECHO_C" >&6
7575: fi
7576: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578: else
7579: # Is the header compilable?
7580: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7581: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7582: cat >conftest.$ac_ext <<_ACEOF
7583: #line $LINENO "configure"
7584: #include "confdefs.h"
7585: $ac_includes_default
7586: #include <$ac_header>
7587: _ACEOF
7588: rm -f conftest.$ac_objext
7589: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590: (eval $ac_compile) 2>&5
7591: ac_status=$?
7592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593: (exit $ac_status); } &&
7594: { ac_try='test -s conftest.$ac_objext'
7595: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596: (eval $ac_try) 2>&5
7597: ac_status=$?
7598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599: (exit $ac_status); }; }; then
7600: ac_header_compiler=yes
7601: else
7602: echo "$as_me: failed program was:" >&5
7603: cat conftest.$ac_ext >&5
7604: ac_header_compiler=no
7605: fi
7606: rm -f conftest.$ac_objext conftest.$ac_ext
7607: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7608: echo "${ECHO_T}$ac_header_compiler" >&6
7609:
7610: # Is the header present?
7611: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7612: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7613: cat >conftest.$ac_ext <<_ACEOF
7614: #line $LINENO "configure"
7615: #include "confdefs.h"
7616: #include <$ac_header>
7617: _ACEOF
7618: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7619: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7620: ac_status=$?
7621: egrep -v '^ *\+' conftest.er1 >conftest.err
7622: rm -f conftest.er1
7623: cat conftest.err >&5
7624: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625: (exit $ac_status); } >/dev/null; then
7626: if test -s conftest.err; then
7627: ac_cpp_err=$ac_c_preproc_warn_flag
7628: else
7629: ac_cpp_err=
7630: fi
7631: else
7632: ac_cpp_err=yes
7633: fi
7634: if test -z "$ac_cpp_err"; then
7635: ac_header_preproc=yes
7636: else
7637: echo "$as_me: failed program was:" >&5
7638: cat conftest.$ac_ext >&5
7639: ac_header_preproc=no
7640: fi
7641: rm -f conftest.err conftest.$ac_ext
7642: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7643: echo "${ECHO_T}$ac_header_preproc" >&6
7644:
7645: # So? What about this header?
7646: case $ac_header_compiler:$ac_header_preproc in
7647: yes:no )
7648: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7649: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7650: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7652: no:yes )
7653: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7654: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7655: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7656: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7657: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7659: esac
7660: echo "$as_me:$LINENO: checking for $ac_header" >&5
7661: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7662: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7663: echo $ECHO_N "(cached) $ECHO_C" >&6
7664: else
7665: eval "$as_ac_Header=$ac_header_preproc"
1.179 petere 7666: fi
1.186 petere 7667: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7669:
1.135 petere 7670: fi
1.186 petere 7671: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672: cat >>confdefs.h <<_ACEOF
7673: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.179 petere 7674: _ACEOF
1.135 petere 7675:
7676: fi
7677:
1.186 petere 7678: done
1.179 petere 7679:
7680:
1.186 petere 7681: for ac_header in netinet/tcp.h
1.179 petere 7682: do
7683: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684: echo "$as_me:$LINENO: checking for $ac_header" >&5
7685: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7686: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7687: echo $ECHO_N "(cached) $ECHO_C" >&6
7688: else
7689: cat >conftest.$ac_ext <<_ACEOF
7690: #line $LINENO "configure"
7691: #include "confdefs.h"
7692: $ac_includes_default
1.186 petere 7693: #ifdef HAVE_NETINET_IN_H
7694: #include <netinet/in.h>
7695: #endif
7696:
1.179 petere 7697:
7698: #include <$ac_header>
7699: _ACEOF
7700: rm -f conftest.$ac_objext
7701: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702: (eval $ac_compile) 2>&5
7703: ac_status=$?
7704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705: (exit $ac_status); } &&
7706: { ac_try='test -s conftest.$ac_objext'
7707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708: (eval $ac_try) 2>&5
7709: ac_status=$?
7710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711: (exit $ac_status); }; }; then
7712: eval "$as_ac_Header=yes"
7713: else
7714: echo "$as_me: failed program was:" >&5
7715: cat conftest.$ac_ext >&5
7716: eval "$as_ac_Header=no"
7717: fi
7718: rm -f conftest.$ac_objext conftest.$ac_ext
7719: fi
7720: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7723: cat >>confdefs.h <<_ACEOF
7724: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725: _ACEOF
1.135 petere 7726:
7727: fi
7728:
1.1 petere 7729: done
7730:
1.29 petere 7731:
1.186 petere 7732: if test "$with_readline" = yes; then
1.179 petere 7733:
1.186 petere 7734: for ac_header in readline/readline.h
1.181 petere 7735: do
7736: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7737: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738: echo "$as_me:$LINENO: checking for $ac_header" >&5
7739: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7740: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7741: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 7742: fi
7743: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7744: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7745: else
1.181 petere 7746: # Is the header compilable?
7747: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7748: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7749: cat >conftest.$ac_ext <<_ACEOF
7750: #line $LINENO "configure"
1.1 petere 7751: #include "confdefs.h"
1.181 petere 7752: $ac_includes_default
7753: #include <$ac_header>
1.179 petere 7754: _ACEOF
1.181 petere 7755: rm -f conftest.$ac_objext
7756: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757: (eval $ac_compile) 2>&5
1.179 petere 7758: ac_status=$?
7759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760: (exit $ac_status); } &&
1.181 petere 7761: { ac_try='test -s conftest.$ac_objext'
1.179 petere 7762: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763: (eval $ac_try) 2>&5
7764: ac_status=$?
7765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766: (exit $ac_status); }; }; then
1.181 petere 7767: ac_header_compiler=yes
1.1 petere 7768: else
1.179 petere 7769: echo "$as_me: failed program was:" >&5
7770: cat conftest.$ac_ext >&5
1.181 petere 7771: ac_header_compiler=no
1.68 tgl 7772: fi
1.181 petere 7773: rm -f conftest.$ac_objext conftest.$ac_ext
7774: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7775: echo "${ECHO_T}$ac_header_compiler" >&6
7776:
7777: # Is the header present?
7778: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7779: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7780: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 7781: #line $LINENO "configure"
1.68 tgl 7782: #include "confdefs.h"
1.181 petere 7783: #include <$ac_header>
1.179 petere 7784: _ACEOF
1.181 petere 7785: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7786: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.179 petere 7787: ac_status=$?
1.181 petere 7788: egrep -v '^ *\+' conftest.er1 >conftest.err
7789: rm -f conftest.er1
7790: cat conftest.err >&5
1.179 petere 7791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.181 petere 7792: (exit $ac_status); } >/dev/null; then
7793: if test -s conftest.err; then
7794: ac_cpp_err=$ac_c_preproc_warn_flag
7795: else
7796: ac_cpp_err=
7797: fi
7798: else
7799: ac_cpp_err=yes
7800: fi
7801: if test -z "$ac_cpp_err"; then
7802: ac_header_preproc=yes
1.68 tgl 7803: else
1.179 petere 7804: echo "$as_me: failed program was:" >&5
1.181 petere 7805: cat conftest.$ac_ext >&5
7806: ac_header_preproc=no
1.179 petere 7807: fi
1.181 petere 7808: rm -f conftest.err conftest.$ac_ext
7809: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7810: echo "${ECHO_T}$ac_header_preproc" >&6
7811:
7812: # So? What about this header?
7813: case $ac_header_compiler:$ac_header_preproc in
7814: yes:no )
7815: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7816: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7817: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7818: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7819: no:yes )
7820: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7821: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7822: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7823: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7824: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7825: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7826: esac
7827: echo "$as_me:$LINENO: checking for $ac_header" >&5
7828: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7829: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830: echo $ECHO_N "(cached) $ECHO_C" >&6
7831: else
7832: eval "$as_ac_Header=$ac_header_preproc"
1.179 petere 7833: fi
1.181 petere 7834: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7835: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7836:
1.68 tgl 7837: fi
1.181 petere 7838: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7839: cat >>confdefs.h <<_ACEOF
7840: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7841: _ACEOF
1.68 tgl 7842:
1.186 petere 7843: else
1.181 petere 7844:
1.186 petere 7845: for ac_header in readline.h
1.181 petere 7846: do
7847: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849: echo "$as_me:$LINENO: checking for $ac_header" >&5
7850: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7851: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7852: echo $ECHO_N "(cached) $ECHO_C" >&6
7853: fi
1.181 petere 7854: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7856: else
7857: # Is the header compilable?
1.181 petere 7858: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7859: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7860: cat >conftest.$ac_ext <<_ACEOF
7861: #line $LINENO "configure"
1.78 petere 7862: #include "confdefs.h"
1.179 petere 7863: $ac_includes_default
1.181 petere 7864: #include <$ac_header>
1.179 petere 7865: _ACEOF
7866: rm -f conftest.$ac_objext
7867: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868: (eval $ac_compile) 2>&5
7869: ac_status=$?
7870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871: (exit $ac_status); } &&
7872: { ac_try='test -s conftest.$ac_objext'
7873: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874: (eval $ac_try) 2>&5
7875: ac_status=$?
7876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877: (exit $ac_status); }; }; then
7878: ac_header_compiler=yes
7879: else
7880: echo "$as_me: failed program was:" >&5
7881: cat conftest.$ac_ext >&5
7882: ac_header_compiler=no
7883: fi
7884: rm -f conftest.$ac_objext conftest.$ac_ext
7885: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7886: echo "${ECHO_T}$ac_header_compiler" >&6
7887:
7888: # Is the header present?
1.181 petere 7889: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7890: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.179 petere 7891: cat >conftest.$ac_ext <<_ACEOF
7892: #line $LINENO "configure"
1.78 petere 7893: #include "confdefs.h"
1.181 petere 7894: #include <$ac_header>
1.179 petere 7895: _ACEOF
7896: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7897: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7898: ac_status=$?
7899: egrep -v '^ *\+' conftest.er1 >conftest.err
7900: rm -f conftest.er1
7901: cat conftest.err >&5
7902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903: (exit $ac_status); } >/dev/null; then
7904: if test -s conftest.err; then
7905: ac_cpp_err=$ac_c_preproc_warn_flag
7906: else
7907: ac_cpp_err=
7908: fi
1.78 petere 7909: else
1.179 petere 7910: ac_cpp_err=yes
1.78 petere 7911: fi
1.179 petere 7912: if test -z "$ac_cpp_err"; then
7913: ac_header_preproc=yes
1.78 petere 7914: else
1.179 petere 7915: echo "$as_me: failed program was:" >&5
1.78 petere 7916: cat conftest.$ac_ext >&5
1.179 petere 7917: ac_header_preproc=no
1.78 petere 7918: fi
1.179 petere 7919: rm -f conftest.err conftest.$ac_ext
7920: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7921: echo "${ECHO_T}$ac_header_preproc" >&6
7922:
7923: # So? What about this header?
7924: case $ac_header_compiler:$ac_header_preproc in
7925: yes:no )
1.181 petere 7926: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7927: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7928: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7929: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7930: no:yes )
1.181 petere 7931: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7932: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7933: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7934: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7935: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7937: esac
1.181 petere 7938: echo "$as_me:$LINENO: checking for $ac_header" >&5
7939: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7940: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7941: echo $ECHO_N "(cached) $ECHO_C" >&6
7942: else
1.181 petere 7943: eval "$as_ac_Header=$ac_header_preproc"
7944: fi
7945: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7947:
1.78 petere 7948: fi
1.181 petere 7949: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7950: cat >>confdefs.h <<_ACEOF
7951: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952: _ACEOF
1.78 petere 7953:
1.186 petere 7954: else
7955: { { echo "$as_me:$LINENO: error: readline header not found
7956: Use --without-readline to disable readline support." >&5
7957: echo "$as_me: error: readline header not found
7958: Use --without-readline to disable readline support." >&2;}
7959: { (exit 1); exit 1; }; }
7960: fi
7961:
7962: done
7963:
1.179 petere 7964: fi
1.181 petere 7965:
7966: done
1.78 petere 7967:
7968:
1.186 petere 7969: for ac_header in readline/history.h
1.68 tgl 7970: do
1.181 petere 7971: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.186 petere 7972: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7973: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.181 petere 7974: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7975: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7976: echo $ECHO_N "(cached) $ECHO_C" >&6
1.186 petere 7977: fi
7978: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.68 tgl 7980: else
1.186 petere 7981: # Is the header compilable?
7982: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7983: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7984: cat >conftest.$ac_ext <<_ACEOF
1.181 petere 7985: #line $LINENO "configure"
7986: #include "confdefs.h"
1.182 petere 7987: $ac_includes_default
1.181 petere 7988: #include <$ac_header>
7989: _ACEOF
7990: rm -f conftest.$ac_objext
7991: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992: (eval $ac_compile) 2>&5
7993: ac_status=$?
7994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995: (exit $ac_status); } &&
7996: { ac_try='test -s conftest.$ac_objext'
7997: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998: (eval $ac_try) 2>&5
7999: ac_status=$?
8000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001: (exit $ac_status); }; }; then
1.186 petere 8002: ac_header_compiler=yes
1.1 petere 8003: else
1.181 petere 8004: echo "$as_me: failed program was:" >&5
8005: cat conftest.$ac_ext >&5
1.186 petere 8006: ac_header_compiler=no
1.1 petere 8007: fi
1.181 petere 8008: rm -f conftest.$ac_objext conftest.$ac_ext
1.186 petere 8009: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010: echo "${ECHO_T}$ac_header_compiler" >&6
8011:
8012: # Is the header present?
8013: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8014: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8015: cat >conftest.$ac_ext <<_ACEOF
8016: #line $LINENO "configure"
8017: #include "confdefs.h"
8018: #include <$ac_header>
8019: _ACEOF
8020: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8022: ac_status=$?
8023: egrep -v '^ *\+' conftest.er1 >conftest.err
8024: rm -f conftest.er1
8025: cat conftest.err >&5
8026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027: (exit $ac_status); } >/dev/null; then
8028: if test -s conftest.err; then
8029: ac_cpp_err=$ac_c_preproc_warn_flag
8030: else
8031: ac_cpp_err=
8032: fi
8033: else
8034: ac_cpp_err=yes
8035: fi
8036: if test -z "$ac_cpp_err"; then
8037: ac_header_preproc=yes
8038: else
8039: echo "$as_me: failed program was:" >&5
8040: cat conftest.$ac_ext >&5
8041: ac_header_preproc=no
8042: fi
8043: rm -f conftest.err conftest.$ac_ext
8044: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8045: echo "${ECHO_T}$ac_header_preproc" >&6
8046:
8047: # So? What about this header?
8048: case $ac_header_compiler:$ac_header_preproc in
8049: yes:no )
8050: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8051: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8054: no:yes )
8055: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8056: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8057: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8058: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8059: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8060: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8061: esac
8062: echo "$as_me:$LINENO: checking for $ac_header" >&5
8063: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8064: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8065: echo $ECHO_N "(cached) $ECHO_C" >&6
8066: else
8067: eval "$as_ac_Header=$ac_header_preproc"
1.1 petere 8068: fi
1.181 petere 8069: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8070: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.186 petere 8071:
8072: fi
1.181 petere 8073: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074: cat >>confdefs.h <<_ACEOF
8075: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076: _ACEOF
1.179 petere 8077:
1.186 petere 8078: else
1.29 petere 8079:
1.186 petere 8080: for ac_header in history.h
1.181 petere 8081: do
8082: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084: echo "$as_me:$LINENO: checking for $ac_header" >&5
8085: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 8087: echo $ECHO_N "(cached) $ECHO_C" >&6
8088: fi
1.181 petere 8089: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 8091: else
8092: # Is the header compilable?
1.181 petere 8093: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 8095: cat >conftest.$ac_ext <<_ACEOF
8096: #line $LINENO "configure"
8097: #include "confdefs.h"
8098: $ac_includes_default
1.181 petere 8099: #include <$ac_header>
1.179 petere 8100: _ACEOF
8101: rm -f conftest.$ac_objext
8102: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103: (eval $ac_compile) 2>&5
8104: ac_status=$?
8105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106: (exit $ac_status); } &&
8107: { ac_try='test -s conftest.$ac_objext'
8108: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109: (eval $ac_try) 2>&5
8110: ac_status=$?
8111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112: (exit $ac_status); }; }; then
8113: ac_header_compiler=yes
8114: else
8115: echo "$as_me: failed program was:" >&5
8116: cat conftest.$ac_ext >&5
8117: ac_header_compiler=no
8118: fi
8119: rm -f conftest.$ac_objext conftest.$ac_ext
8120: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121: echo "${ECHO_T}$ac_header_compiler" >&6
8122:
8123: # Is the header present?
1.181 petere 8124: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8125: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.179 petere 8126: cat >conftest.$ac_ext <<_ACEOF
8127: #line $LINENO "configure"
1.1 petere 8128: #include "confdefs.h"
1.181 petere 8129: #include <$ac_header>
1.179 petere 8130: _ACEOF
8131: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133: ac_status=$?
8134: egrep -v '^ *\+' conftest.er1 >conftest.err
8135: rm -f conftest.er1
8136: cat conftest.err >&5
8137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138: (exit $ac_status); } >/dev/null; then
8139: if test -s conftest.err; then
1.181 petere 8140: ac_cpp_err=$ac_c_preproc_warn_flag
1.179 petere 8141: else
8142: ac_cpp_err=
8143: fi
1.1 petere 8144: else
1.179 petere 8145: ac_cpp_err=yes
1.1 petere 8146: fi
1.179 petere 8147: if test -z "$ac_cpp_err"; then
8148: ac_header_preproc=yes
1.1 petere 8149: else
1.179 petere 8150: echo "$as_me: failed program was:" >&5
1.1 petere 8151: cat conftest.$ac_ext >&5
1.179 petere 8152: ac_header_preproc=no
1.1 petere 8153: fi
1.179 petere 8154: rm -f conftest.err conftest.$ac_ext
8155: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8156: echo "${ECHO_T}$ac_header_preproc" >&6
8157:
8158: # So? What about this header?
8159: case $ac_header_compiler:$ac_header_preproc in
8160: yes:no )
1.181 petere 8161: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8162: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8163: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8164: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8165: no:yes )
1.181 petere 8166: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8169: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8170: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8171: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8172: esac
1.181 petere 8173: echo "$as_me:$LINENO: checking for $ac_header" >&5
8174: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8175: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 8176: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 8177: else
1.181 petere 8178: eval "$as_ac_Header=$ac_header_preproc"
1.29 petere 8179: fi
1.181 petere 8180: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8181: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.29 petere 8182:
1.1 petere 8183: fi
1.181 petere 8184: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185: cat >>confdefs.h <<_ACEOF
8186: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8187: _ACEOF
1.186 petere 8188:
8189: else
8190: { { echo "$as_me:$LINENO: error: history header not found
8191: Use --without-readline to disable readline support." >&5
8192: echo "$as_me: error: history header not found
8193: Use --without-readline to disable readline support." >&2;}
8194: { (exit 1); exit 1; }; }
1.181 petere 8195: fi
8196:
8197: done
8198:
1.186 petere 8199: fi
8200:
8201: done
1.179 petere 8202:
1.186 petere 8203: fi
1.1 petere 8204:
1.186 petere 8205: if test "$with_zlib" = yes; then
8206: if test "${ac_cv_header_zlib_h+set}" = set; then
8207: echo "$as_me:$LINENO: checking for zlib.h" >&5
8208: echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8209: if test "${ac_cv_header_zlib_h+set}" = set; then
1.179 petere 8210: echo $ECHO_N "(cached) $ECHO_C" >&6
8211: fi
1.186 petere 8212: echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8213: echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
1.179 petere 8214: else
8215: # Is the header compilable?
1.186 petere 8216: echo "$as_me:$LINENO: checking zlib.h usability" >&5
8217: echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
1.179 petere 8218: cat >conftest.$ac_ext <<_ACEOF
8219: #line $LINENO "configure"
8220: #include "confdefs.h"
8221: $ac_includes_default
1.186 petere 8222: #include <zlib.h>
1.179 petere 8223: _ACEOF
8224: rm -f conftest.$ac_objext
8225: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226: (eval $ac_compile) 2>&5
8227: ac_status=$?
8228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229: (exit $ac_status); } &&
8230: { ac_try='test -s conftest.$ac_objext'
8231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232: (eval $ac_try) 2>&5
8233: ac_status=$?
8234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235: (exit $ac_status); }; }; then
8236: ac_header_compiler=yes
8237: else
8238: echo "$as_me: failed program was:" >&5
8239: cat conftest.$ac_ext >&5
8240: ac_header_compiler=no
8241: fi
8242: rm -f conftest.$ac_objext conftest.$ac_ext
8243: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8244: echo "${ECHO_T}$ac_header_compiler" >&6
8245:
8246: # Is the header present?
1.186 petere 8247: echo "$as_me:$LINENO: checking zlib.h presence" >&5
8248: echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
1.179 petere 8249: cat >conftest.$ac_ext <<_ACEOF
8250: #line $LINENO "configure"
8251: #include "confdefs.h"
1.186 petere 8252: #include <zlib.h>
1.179 petere 8253: _ACEOF
8254: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8255: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8256: ac_status=$?
8257: egrep -v '^ *\+' conftest.er1 >conftest.err
8258: rm -f conftest.er1
8259: cat conftest.err >&5
8260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261: (exit $ac_status); } >/dev/null; then
8262: if test -s conftest.err; then
8263: ac_cpp_err=$ac_c_preproc_warn_flag
8264: else
8265: ac_cpp_err=
8266: fi
8267: else
8268: ac_cpp_err=yes
8269: fi
8270: if test -z "$ac_cpp_err"; then
8271: ac_header_preproc=yes
1.1 petere 8272: else
1.179 petere 8273: echo "$as_me: failed program was:" >&5
1.1 petere 8274: cat conftest.$ac_ext >&5
1.179 petere 8275: ac_header_preproc=no
1.1 petere 8276: fi
1.179 petere 8277: rm -f conftest.err conftest.$ac_ext
8278: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8279: echo "${ECHO_T}$ac_header_preproc" >&6
8280:
8281: # So? What about this header?
8282: case $ac_header_compiler:$ac_header_preproc in
8283: yes:no )
1.186 petere 8284: { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8285: echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8286: { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8287: echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8288: no:yes )
1.186 petere 8289: { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8290: echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8291: { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8292: echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8293: { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8294: echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8295: esac
1.186 petere 8296: echo "$as_me:$LINENO: checking for zlib.h" >&5
8297: echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8298: if test "${ac_cv_header_zlib_h+set}" = set; then
1.179 petere 8299: echo $ECHO_N "(cached) $ECHO_C" >&6
8300: else
1.186 petere 8301: ac_cv_header_zlib_h=$ac_header_preproc
1.1 petere 8302: fi
1.186 petere 8303: echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8304: echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
1.1 petere 8305:
1.179 petere 8306: fi
1.186 petere 8307: if test $ac_cv_header_zlib_h = yes; then
8308: :
8309: else
8310: { { echo "$as_me:$LINENO: error: zlib header not found
8311: Use --without-zlib to disable zlib support." >&5
8312: echo "$as_me: error: zlib header not found
8313: Use --without-zlib to disable zlib support." >&2;}
8314: { (exit 1); exit 1; }; }
1.1 petere 8315: fi
8316:
1.179 petere 8317:
1.186 petere 8318: fi
1.179 petere 8319:
1.181 petere 8320: if test "$with_krb4" = yes ; then
8321: if test "${ac_cv_header_krb_h+set}" = set; then
8322: echo "$as_me:$LINENO: checking for krb.h" >&5
8323: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8324: if test "${ac_cv_header_krb_h+set}" = set; then
1.179 petere 8325: echo $ECHO_N "(cached) $ECHO_C" >&6
8326: fi
1.181 petere 8327: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8328: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.179 petere 8329: else
8330: # Is the header compilable?
1.181 petere 8331: echo "$as_me:$LINENO: checking krb.h usability" >&5
8332: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
1.179 petere 8333: cat >conftest.$ac_ext <<_ACEOF
8334: #line $LINENO "configure"
8335: #include "confdefs.h"
8336: $ac_includes_default
1.181 petere 8337: #include <krb.h>
1.179 petere 8338: _ACEOF
8339: rm -f conftest.$ac_objext
8340: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341: (eval $ac_compile) 2>&5
8342: ac_status=$?
8343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344: (exit $ac_status); } &&
8345: { ac_try='test -s conftest.$ac_objext'
8346: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347: (eval $ac_try) 2>&5
8348: ac_status=$?
8349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350: (exit $ac_status); }; }; then
8351: ac_header_compiler=yes
8352: else
8353: echo "$as_me: failed program was:" >&5
8354: cat conftest.$ac_ext >&5
8355: ac_header_compiler=no
8356: fi
8357: rm -f conftest.$ac_objext conftest.$ac_ext
8358: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8359: echo "${ECHO_T}$ac_header_compiler" >&6
8360:
8361: # Is the header present?
1.181 petere 8362: echo "$as_me:$LINENO: checking krb.h presence" >&5
8363: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
1.179 petere 8364: cat >conftest.$ac_ext <<_ACEOF
8365: #line $LINENO "configure"
8366: #include "confdefs.h"
1.181 petere 8367: #include <krb.h>
1.179 petere 8368: _ACEOF
8369: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8370: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8371: ac_status=$?
8372: egrep -v '^ *\+' conftest.er1 >conftest.err
8373: rm -f conftest.er1
8374: cat conftest.err >&5
8375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376: (exit $ac_status); } >/dev/null; then
8377: if test -s conftest.err; then
8378: ac_cpp_err=$ac_c_preproc_warn_flag
8379: else
8380: ac_cpp_err=
8381: fi
1.1 petere 8382: else
1.179 petere 8383: ac_cpp_err=yes
8384: fi
8385: if test -z "$ac_cpp_err"; then
8386: ac_header_preproc=yes
1.1 petere 8387: else
1.179 petere 8388: echo "$as_me: failed program was:" >&5
1.1 petere 8389: cat conftest.$ac_ext >&5
1.179 petere 8390: ac_header_preproc=no
8391: fi
8392: rm -f conftest.err conftest.$ac_ext
8393: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8394: echo "${ECHO_T}$ac_header_preproc" >&6
8395:
8396: # So? What about this header?
8397: case $ac_header_compiler:$ac_header_preproc in
8398: yes:no )
1.181 petere 8399: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8400: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8401: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8402: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8403: no:yes )
1.181 petere 8404: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8405: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8406: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8407: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8408: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8409: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8410: esac
1.181 petere 8411: echo "$as_me:$LINENO: checking for krb.h" >&5
8412: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8413: if test "${ac_cv_header_krb_h+set}" = set; then
1.179 petere 8414: echo $ECHO_N "(cached) $ECHO_C" >&6
8415: else
1.181 petere 8416: ac_cv_header_krb_h=$ac_header_preproc
1.1 petere 8417: fi
1.181 petere 8418: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8419: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.1 petere 8420:
8421: fi
1.181 petere 8422: if test $ac_cv_header_krb_h = yes; then
8423: :
8424: else
8425: { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8426: echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8427: { (exit 1); exit 1; }; }
1.179 petere 8428: fi
1.5 petere 8429:
8430:
1.181 petere 8431: fi
1.5 petere 8432:
1.181 petere 8433: if test "$with_krb5" = yes ; then
8434: if test "${ac_cv_header_krb5_h+set}" = set; then
8435: echo "$as_me:$LINENO: checking for krb5.h" >&5
8436: echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8437: if test "${ac_cv_header_krb5_h+set}" = set; then
1.179 petere 8438: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 8439: fi
8440: echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8441: echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
1.179 petere 8442: else
8443: # Is the header compilable?
1.181 petere 8444: echo "$as_me:$LINENO: checking krb5.h usability" >&5
8445: echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
1.179 petere 8446: cat >conftest.$ac_ext <<_ACEOF
8447: #line $LINENO "configure"
8448: #include "confdefs.h"
8449: $ac_includes_default
1.181 petere 8450: #include <krb5.h>
1.179 petere 8451: _ACEOF
8452: rm -f conftest.$ac_objext
8453: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454: (eval $ac_compile) 2>&5
8455: ac_status=$?
8456: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457: (exit $ac_status); } &&
8458: { ac_try='test -s conftest.$ac_objext'
8459: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460: (eval $ac_try) 2>&5
8461: ac_status=$?
8462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463: (exit $ac_status); }; }; then
8464: ac_header_compiler=yes
8465: else
8466: echo "$as_me: failed program was:" >&5
8467: cat conftest.$ac_ext >&5
8468: ac_header_compiler=no
8469: fi
8470: rm -f conftest.$ac_objext conftest.$ac_ext
8471: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472: echo "${ECHO_T}$ac_header_compiler" >&6
8473:
8474: # Is the header present?
1.181 petere 8475: echo "$as_me:$LINENO: checking krb5.h presence" >&5
8476: echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
1.179 petere 8477: cat >conftest.$ac_ext <<_ACEOF
8478: #line $LINENO "configure"
8479: #include "confdefs.h"
1.181 petere 8480: #include <krb5.h>
1.179 petere 8481: _ACEOF
8482: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8483: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8484: ac_status=$?
8485: egrep -v '^ *\+' conftest.er1 >conftest.err
8486: rm -f conftest.er1
8487: cat conftest.err >&5
8488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489: (exit $ac_status); } >/dev/null; then
8490: if test -s conftest.err; then
8491: ac_cpp_err=$ac_c_preproc_warn_flag
8492: else
8493: ac_cpp_err=
8494: fi
1.41 petere 8495: else
1.179 petere 8496: ac_cpp_err=yes
8497: fi
8498: if test -z "$ac_cpp_err"; then
8499: ac_header_preproc=yes
1.41 petere 8500: else
1.179 petere 8501: echo "$as_me: failed program was:" >&5
1.41 petere 8502: cat conftest.$ac_ext >&5
1.179 petere 8503: ac_header_preproc=no
8504: fi
8505: rm -f conftest.err conftest.$ac_ext
8506: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507: echo "${ECHO_T}$ac_header_preproc" >&6
8508:
8509: # So? What about this header?
8510: case $ac_header_compiler:$ac_header_preproc in
8511: yes:no )
1.181 petere 8512: { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8513: echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514: { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8515: echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8516: no:yes )
1.181 petere 8517: { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8518: echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8519: { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8520: echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8521: { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8522: echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8523: esac
1.181 petere 8524: echo "$as_me:$LINENO: checking for krb5.h" >&5
8525: echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8526: if test "${ac_cv_header_krb5_h+set}" = set; then
1.179 petere 8527: echo $ECHO_N "(cached) $ECHO_C" >&6
8528: else
1.181 petere 8529: ac_cv_header_krb5_h=$ac_header_preproc
1.41 petere 8530: fi
1.181 petere 8531: echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8532: echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
1.179 petere 8533:
8534: fi
1.181 petere 8535: if test $ac_cv_header_krb5_h = yes; then
8536: :
8537: else
8538: { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8539: echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8540: { (exit 1); exit 1; }; }
1.41 petere 8541: fi
8542:
1.179 petere 8543:
1.181 petere 8544: if test "${ac_cv_header_com_err_h+set}" = set; then
8545: echo "$as_me:$LINENO: checking for com_err.h" >&5
8546: echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8547: if test "${ac_cv_header_com_err_h+set}" = set; then
1.179 petere 8548: echo $ECHO_N "(cached) $ECHO_C" >&6
8549: fi
1.181 petere 8550: echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8551: echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
1.179 petere 8552: else
8553: # Is the header compilable?
1.181 petere 8554: echo "$as_me:$LINENO: checking com_err.h usability" >&5
8555: echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
1.179 petere 8556: cat >conftest.$ac_ext <<_ACEOF
8557: #line $LINENO "configure"
8558: #include "confdefs.h"
8559: $ac_includes_default
1.181 petere 8560: #include <com_err.h>
1.179 petere 8561: _ACEOF
8562: rm -f conftest.$ac_objext
8563: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564: (eval $ac_compile) 2>&5
8565: ac_status=$?
8566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567: (exit $ac_status); } &&
8568: { ac_try='test -s conftest.$ac_objext'
8569: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570: (eval $ac_try) 2>&5
8571: ac_status=$?
8572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573: (exit $ac_status); }; }; then
8574: ac_header_compiler=yes
8575: else
8576: echo "$as_me: failed program was:" >&5
8577: cat conftest.$ac_ext >&5
8578: ac_header_compiler=no
8579: fi
8580: rm -f conftest.$ac_objext conftest.$ac_ext
8581: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582: echo "${ECHO_T}$ac_header_compiler" >&6
8583:
8584: # Is the header present?
1.181 petere 8585: echo "$as_me:$LINENO: checking com_err.h presence" >&5
8586: echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
1.179 petere 8587: cat >conftest.$ac_ext <<_ACEOF
8588: #line $LINENO "configure"
8589: #include "confdefs.h"
1.181 petere 8590: #include <com_err.h>
1.179 petere 8591: _ACEOF
8592: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8593: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8594: ac_status=$?
8595: egrep -v '^ *\+' conftest.er1 >conftest.err
8596: rm -f conftest.er1
8597: cat conftest.err >&5
8598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599: (exit $ac_status); } >/dev/null; then
8600: if test -s conftest.err; then
8601: ac_cpp_err=$ac_c_preproc_warn_flag
8602: else
8603: ac_cpp_err=
8604: fi
8605: else
8606: ac_cpp_err=yes
1.41 petere 8607: fi
1.179 petere 8608: if test -z "$ac_cpp_err"; then
8609: ac_header_preproc=yes
1.41 petere 8610: else
1.179 petere 8611: echo "$as_me: failed program was:" >&5
1.41 petere 8612: cat conftest.$ac_ext >&5
1.179 petere 8613: ac_header_preproc=no
1.41 petere 8614: fi
1.179 petere 8615: rm -f conftest.err conftest.$ac_ext
8616: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8617: echo "${ECHO_T}$ac_header_preproc" >&6
8618:
8619: # So? What about this header?
8620: case $ac_header_compiler:$ac_header_preproc in
8621: yes:no )
1.181 petere 8622: { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8623: echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8624: { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8625: echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8626: no:yes )
1.181 petere 8627: { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8628: echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8629: { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8630: echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8631: { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8632: echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8633: esac
1.181 petere 8634: echo "$as_me:$LINENO: checking for com_err.h" >&5
8635: echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8636: if test "${ac_cv_header_com_err_h+set}" = set; then
1.179 petere 8637: echo $ECHO_N "(cached) $ECHO_C" >&6
8638: else
1.181 petere 8639: ac_cv_header_com_err_h=$ac_header_preproc
1.179 petere 8640: fi
1.181 petere 8641: echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8642: echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
1.179 petere 8643:
8644: fi
1.181 petere 8645: if test $ac_cv_header_com_err_h = yes; then
8646: :
8647: else
8648: { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8649: echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8650: { (exit 1); exit 1; }; }
1.41 petere 8651: fi
8652:
1.179 petere 8653:
1.181 petere 8654: fi
1.41 petere 8655:
1.181 petere 8656: if test "$with_openssl" = yes ; then
8657: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8658: echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8659: echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8660: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
1.179 petere 8661: echo $ECHO_N "(cached) $ECHO_C" >&6
8662: fi
1.181 petere 8663: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8664: echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
1.179 petere 8665: else
8666: # Is the header compilable?
1.181 petere 8667: echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8668: echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
1.179 petere 8669: cat >conftest.$ac_ext <<_ACEOF
8670: #line $LINENO "configure"
8671: #include "confdefs.h"
8672: $ac_includes_default
1.181 petere 8673: #include <openssl/ssl.h>
1.179 petere 8674: _ACEOF
8675: rm -f conftest.$ac_objext
8676: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677: (eval $ac_compile) 2>&5
8678: ac_status=$?
8679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680: (exit $ac_status); } &&
8681: { ac_try='test -s conftest.$ac_objext'
8682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683: (eval $ac_try) 2>&5
8684: ac_status=$?
8685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686: (exit $ac_status); }; }; then
8687: ac_header_compiler=yes
8688: else
8689: echo "$as_me: failed program was:" >&5
8690: cat conftest.$ac_ext >&5
8691: ac_header_compiler=no
8692: fi
8693: rm -f conftest.$ac_objext conftest.$ac_ext
8694: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695: echo "${ECHO_T}$ac_header_compiler" >&6
8696:
8697: # Is the header present?
1.181 petere 8698: echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8699: echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
1.179 petere 8700: cat >conftest.$ac_ext <<_ACEOF
8701: #line $LINENO "configure"
8702: #include "confdefs.h"
1.181 petere 8703: #include <openssl/ssl.h>
1.179 petere 8704: _ACEOF
8705: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8707: ac_status=$?
8708: egrep -v '^ *\+' conftest.er1 >conftest.err
8709: rm -f conftest.er1
8710: cat conftest.err >&5
8711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712: (exit $ac_status); } >/dev/null; then
8713: if test -s conftest.err; then
8714: ac_cpp_err=$ac_c_preproc_warn_flag
8715: else
8716: ac_cpp_err=
8717: fi
8718: else
8719: ac_cpp_err=yes
1.41 petere 8720: fi
1.179 petere 8721: if test -z "$ac_cpp_err"; then
8722: ac_header_preproc=yes
1.5 petere 8723: else
1.179 petere 8724: echo "$as_me: failed program was:" >&5
8725: cat conftest.$ac_ext >&5
8726: ac_header_preproc=no
8727: fi
8728: rm -f conftest.err conftest.$ac_ext
8729: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730: echo "${ECHO_T}$ac_header_preproc" >&6
8731:
8732: # So? What about this header?
8733: case $ac_header_compiler:$ac_header_preproc in
8734: yes:no )
1.181 petere 8735: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8736: echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8738: echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8739: no:yes )
1.181 petere 8740: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8741: echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8742: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8743: echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8744: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8745: echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8746: esac
1.181 petere 8747: echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8748: echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8749: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
1.179 petere 8750: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 8751: else
1.181 petere 8752: ac_cv_header_openssl_ssl_h=$ac_header_preproc
1.179 petere 8753: fi
1.181 petere 8754: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8755: echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
1.179 petere 8756:
1.1 petere 8757: fi
1.181 petere 8758: if test $ac_cv_header_openssl_ssl_h = yes; then
1.179 petere 8759: :
8760: else
1.181 petere 8761: { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8762: echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
1.179 petere 8763: { (exit 1); exit 1; }; }
1.5 petere 8764: fi
8765:
8766:
1.181 petere 8767: if test "${ac_cv_header_openssl_err_h+set}" = set; then
8768: echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8769: echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8770: if test "${ac_cv_header_openssl_err_h+set}" = set; then
8771: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 8772: fi
1.181 petere 8773: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8774: echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
1.179 petere 8775: else
8776: # Is the header compilable?
1.181 petere 8777: echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8778: echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
1.179 petere 8779: cat >conftest.$ac_ext <<_ACEOF
8780: #line $LINENO "configure"
8781: #include "confdefs.h"
8782: $ac_includes_default
1.181 petere 8783: #include <openssl/err.h>
1.179 petere 8784: _ACEOF
8785: rm -f conftest.$ac_objext
8786: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787: (eval $ac_compile) 2>&5
8788: ac_status=$?
8789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790: (exit $ac_status); } &&
8791: { ac_try='test -s conftest.$ac_objext'
8792: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793: (eval $ac_try) 2>&5
8794: ac_status=$?
8795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796: (exit $ac_status); }; }; then
8797: ac_header_compiler=yes
8798: else
8799: echo "$as_me: failed program was:" >&5
8800: cat conftest.$ac_ext >&5
8801: ac_header_compiler=no
8802: fi
8803: rm -f conftest.$ac_objext conftest.$ac_ext
8804: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8805: echo "${ECHO_T}$ac_header_compiler" >&6
8806:
8807: # Is the header present?
1.181 petere 8808: echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8809: echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
1.179 petere 8810: cat >conftest.$ac_ext <<_ACEOF
8811: #line $LINENO "configure"
8812: #include "confdefs.h"
1.181 petere 8813: #include <openssl/err.h>
1.179 petere 8814: _ACEOF
8815: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8816: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8817: ac_status=$?
8818: egrep -v '^ *\+' conftest.er1 >conftest.err
8819: rm -f conftest.er1
8820: cat conftest.err >&5
8821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822: (exit $ac_status); } >/dev/null; then
8823: if test -s conftest.err; then
8824: ac_cpp_err=$ac_c_preproc_warn_flag
8825: else
8826: ac_cpp_err=
8827: fi
1.29 petere 8828: else
1.179 petere 8829: ac_cpp_err=yes
8830: fi
8831: if test -z "$ac_cpp_err"; then
8832: ac_header_preproc=yes
1.1 petere 8833: else
1.179 petere 8834: echo "$as_me: failed program was:" >&5
1.1 petere 8835: cat conftest.$ac_ext >&5
1.179 petere 8836: ac_header_preproc=no
1.1 petere 8837: fi
1.179 petere 8838: rm -f conftest.err conftest.$ac_ext
8839: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8840: echo "${ECHO_T}$ac_header_preproc" >&6
8841:
8842: # So? What about this header?
8843: case $ac_header_compiler:$ac_header_preproc in
8844: yes:no )
1.181 petere 8845: { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8846: echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8847: { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8848: echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8849: no:yes )
1.181 petere 8850: { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8851: echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8852: { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8853: echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8854: { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8855: echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8856: esac
1.181 petere 8857: echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8858: echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8859: if test "${ac_cv_header_openssl_err_h+set}" = set; then
1.179 petere 8860: echo $ECHO_N "(cached) $ECHO_C" >&6
8861: else
1.181 petere 8862: ac_cv_header_openssl_err_h=$ac_header_preproc
1.179 petere 8863: fi
1.181 petere 8864: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8865: echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
1.179 petere 8866:
8867: fi
1.181 petere 8868: if test $ac_cv_header_openssl_err_h = yes; then
1.179 petere 8869: :
8870: else
1.181 petere 8871: { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8872: echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
1.179 petere 8873: { (exit 1); exit 1; }; }
1.28 petere 8874: fi
1.1 petere 8875:
1.29 petere 8876:
1.181 petere 8877: fi
8878:
8879: if test "$with_pam" = yes ; then
8880: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8881: echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8882: echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8883: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
1.179 petere 8884: echo $ECHO_N "(cached) $ECHO_C" >&6
8885: fi
1.181 petere 8886: echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8887: echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
1.29 petere 8888: else
1.179 petere 8889: # Is the header compilable?
1.181 petere 8890: echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8891: echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
1.179 petere 8892: cat >conftest.$ac_ext <<_ACEOF
8893: #line $LINENO "configure"
8894: #include "confdefs.h"
8895: $ac_includes_default
1.181 petere 8896: #include <security/pam_appl.h>
1.179 petere 8897: _ACEOF
8898: rm -f conftest.$ac_objext
8899: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900: (eval $ac_compile) 2>&5
8901: ac_status=$?
8902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903: (exit $ac_status); } &&
8904: { ac_try='test -s conftest.$ac_objext'
8905: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906: (eval $ac_try) 2>&5
8907: ac_status=$?
8908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909: (exit $ac_status); }; }; then
8910: ac_header_compiler=yes
8911: else
8912: echo "$as_me: failed program was:" >&5
8913: cat conftest.$ac_ext >&5
8914: ac_header_compiler=no
8915: fi
8916: rm -f conftest.$ac_objext conftest.$ac_ext
8917: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918: echo "${ECHO_T}$ac_header_compiler" >&6
8919:
8920: # Is the header present?
1.181 petere 8921: echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8922: echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
1.179 petere 8923: cat >conftest.$ac_ext <<_ACEOF
8924: #line $LINENO "configure"
8925: #include "confdefs.h"
1.181 petere 8926: #include <security/pam_appl.h>
1.179 petere 8927: _ACEOF
8928: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8930: ac_status=$?
8931: egrep -v '^ *\+' conftest.er1 >conftest.err
8932: rm -f conftest.er1
8933: cat conftest.err >&5
8934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935: (exit $ac_status); } >/dev/null; then
8936: if test -s conftest.err; then
8937: ac_cpp_err=$ac_c_preproc_warn_flag
8938: else
8939: ac_cpp_err=
8940: fi
1.1 petere 8941: else
1.179 petere 8942: ac_cpp_err=yes
8943: fi
8944: if test -z "$ac_cpp_err"; then
8945: ac_header_preproc=yes
1.1 petere 8946: else
1.179 petere 8947: echo "$as_me: failed program was:" >&5
1.1 petere 8948: cat conftest.$ac_ext >&5
1.179 petere 8949: ac_header_preproc=no
8950: fi
8951: rm -f conftest.err conftest.$ac_ext
8952: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953: echo "${ECHO_T}$ac_header_preproc" >&6
8954:
8955: # So? What about this header?
8956: case $ac_header_compiler:$ac_header_preproc in
8957: yes:no )
1.181 petere 8958: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959: echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8961: echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8962: no:yes )
1.181 petere 8963: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8964: echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8965: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8966: echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8967: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8968: echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8969: esac
1.181 petere 8970: echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8971: echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8972: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
1.179 petere 8973: echo $ECHO_N "(cached) $ECHO_C" >&6
8974: else
1.181 petere 8975: ac_cv_header_security_pam_appl_h=$ac_header_preproc
1.179 petere 8976: fi
1.181 petere 8977: echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8978: echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
1.179 petere 8979:
1.1 petere 8980: fi
1.181 petere 8981: if test $ac_cv_header_security_pam_appl_h = yes; then
1.179 petere 8982: :
8983: else
1.181 petere 8984: { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8985: echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
1.179 petere 8986: { (exit 1); exit 1; }; }
1.1 petere 8987: fi
8988:
1.29 petere 8989:
1.1 petere 8990: fi
8991:
1.181 petere 8992:
8993: ##
8994: ## Types, structures, compiler characteristics
8995: ##
8996:
8997: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8998: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8999: if test "${ac_cv_c_const+set}" = set; then
1.179 petere 9000: echo $ECHO_N "(cached) $ECHO_C" >&6
9001: else
1.181 petere 9002: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 9003: #line $LINENO "configure"
9004: #include "confdefs.h"
1.181 petere 9005:
9006: #ifdef F77_DUMMY_MAIN
9007: # ifdef __cplusplus
9008: extern "C"
9009: # endif
9010: int F77_DUMMY_MAIN() { return 1; }
9011: #endif
9012: int
9013: main ()
9014: {
9015: /* FIXME: Include the comments suggested by Paul. */
9016: #ifndef __cplusplus
9017: /* Ultrix mips cc rejects this. */
9018: typedef int charset[2];
9019: const charset x;
9020: /* SunOS 4.1.1 cc rejects this. */
9021: char const *const *ccp;
9022: char **p;
9023: /* NEC SVR4.0.2 mips cc rejects this. */
9024: struct point {int x, y;};
9025: static struct point const zero = {0,0};
9026: /* AIX XL C 1.02.0.0 rejects this.
9027: It does not let you subtract one const X* pointer from another in
9028: an arm of an if-expression whose if-part is not a constant
9029: expression */
9030: const char *g = "string";
9031: ccp = &g + (g ? g-g : 0);
9032: /* HPUX 7.0 cc rejects these. */
9033: ++ccp;
9034: p = (char**) ccp;
9035: ccp = (char const *const *) p;
9036: { /* SCO 3.2v4 cc rejects this. */
9037: char *t;
9038: char const *s = 0 ? (char *) 0 : (char const *) 0;
9039:
9040: *t++ = 0;
9041: }
9042: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9043: int x[] = {25, 17};
9044: const int *foo = &x[0];
9045: ++foo;
9046: }
9047: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9048: typedef const int *iptr;
9049: iptr p = 0;
9050: ++p;
9051: }
9052: { /* AIX XL C 1.02.0.0 rejects this saying
9053: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9054: struct s { int j; const int *ap[3]; };
9055: struct s *b; b->j = 5;
9056: }
9057: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9058: const int foo = 10;
9059: }
9060: #endif
9061:
9062: ;
9063: return 0;
9064: }
1.179 petere 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
1.181 petere 9078: ac_cv_c_const=yes
1.179 petere 9079: else
9080: echo "$as_me: failed program was:" >&5
9081: cat conftest.$ac_ext >&5
1.181 petere 9082: ac_cv_c_const=no
1.179 petere 9083: fi
9084: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 9085: fi
9086: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9087: echo "${ECHO_T}$ac_cv_c_const" >&6
9088: if test $ac_cv_c_const = no; then
9089:
9090: cat >>confdefs.h <<\_ACEOF
9091: #define const
9092: _ACEOF
9093:
9094: fi
1.179 petere 9095:
1.181 petere 9096: echo "$as_me:$LINENO: checking for inline" >&5
9097: echo $ECHO_N "checking for inline... $ECHO_C" >&6
9098: if test "${ac_cv_c_inline+set}" = set; then
9099: echo $ECHO_N "(cached) $ECHO_C" >&6
9100: else
9101: ac_cv_c_inline=no
9102: for ac_kw in inline __inline__ __inline; do
9103: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 9104: #line $LINENO "configure"
9105: #include "confdefs.h"
1.181 petere 9106: #ifndef __cplusplus
9107: static $ac_kw int static_foo () {return 0; }
9108: $ac_kw int foo () {return 0; }
9109: #endif
9110:
1.179 petere 9111: _ACEOF
1.181 petere 9112: rm -f conftest.$ac_objext
9113: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114: (eval $ac_compile) 2>&5
1.179 petere 9115: ac_status=$?
9116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.181 petere 9117: (exit $ac_status); } &&
9118: { ac_try='test -s conftest.$ac_objext'
9119: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120: (eval $ac_try) 2>&5
9121: ac_status=$?
9122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123: (exit $ac_status); }; }; then
9124: ac_cv_c_inline=$ac_kw; break
1.1 petere 9125: else
1.179 petere 9126: echo "$as_me: failed program was:" >&5
1.181 petere 9127: cat conftest.$ac_ext >&5
1.1 petere 9128: fi
1.181 petere 9129: rm -f conftest.$ac_objext conftest.$ac_ext
9130: done
1.179 petere 9131:
1.181 petere 9132: fi
9133: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9134: echo "${ECHO_T}$ac_cv_c_inline" >&6
9135: case $ac_cv_c_inline in
9136: inline | yes) ;;
9137: no)
9138: cat >>confdefs.h <<\_ACEOF
9139: #define inline
9140: _ACEOF
9141: ;;
9142: *) cat >>confdefs.h <<_ACEOF
9143: #define inline $ac_cv_c_inline
9144: _ACEOF
9145: ;;
1.179 petere 9146: esac
1.181 petere 9147:
9148: echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9149: echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9150: if test "${ac_cv_c_stringize+set}" = set; then
1.179 petere 9151: echo $ECHO_N "(cached) $ECHO_C" >&6
9152: else
1.181 petere 9153: cat >conftest.$ac_ext <<_ACEOF
9154: #line $LINENO "configure"
9155: #include "confdefs.h"
9156: #define x(y) #y
9157:
9158: char *s = x(teststring);
9159: _ACEOF
9160: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161: egrep "#teststring" >/dev/null 2>&1; then
9162: ac_cv_c_stringize=no
9163: else
9164: ac_cv_c_stringize=yes
1.1 petere 9165: fi
1.181 petere 9166: rm -f conftest*
1.1 petere 9167:
1.29 petere 9168: fi
1.181 petere 9169: echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9170: echo "${ECHO_T}$ac_cv_c_stringize" >&6
9171: if test $ac_cv_c_stringize = yes; then
9172:
9173: cat >>confdefs.h <<\_ACEOF
9174: #define HAVE_STRINGIZE 1
9175: _ACEOF
9176:
1.146 momjian 9177: fi
9178:
1.181 petere 9179: echo "$as_me:$LINENO: checking for signed types" >&5
9180: echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9181: if test "${pgac_cv_c_signed+set}" = set; then
1.179 petere 9182: echo $ECHO_N "(cached) $ECHO_C" >&6
1.146 momjian 9183: else
1.181 petere 9184: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 9185: #line $LINENO "configure"
1.146 momjian 9186: #include "confdefs.h"
1.181 petere 9187:
9188: #ifdef F77_DUMMY_MAIN
9189: # ifdef __cplusplus
9190: extern "C"
9191: # endif
9192: int F77_DUMMY_MAIN() { return 1; }
9193: #endif
9194: int
9195: main ()
9196: {
9197: signed char c; signed short s; signed int i;
9198: ;
9199: return 0;
9200: }
1.179 petere 9201: _ACEOF
9202: rm -f conftest.$ac_objext
9203: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204: (eval $ac_compile) 2>&5
9205: ac_status=$?
9206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207: (exit $ac_status); } &&
9208: { ac_try='test -s conftest.$ac_objext'
9209: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210: (eval $ac_try) 2>&5
9211: ac_status=$?
9212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213: (exit $ac_status); }; }; then
1.181 petere 9214: pgac_cv_c_signed=yes
1.179 petere 9215: else
9216: echo "$as_me: failed program was:" >&5
9217: cat conftest.$ac_ext >&5
1.181 petere 9218: pgac_cv_c_signed=no
1.179 petere 9219: fi
9220: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 9221: fi
9222: echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9223: echo "${ECHO_T}$pgac_cv_c_signed" >&6
9224: if test x"$pgac_cv_c_signed" = xno ; then
1.179 petere 9225:
1.181 petere 9226: cat >>confdefs.h <<\_ACEOF
9227: #define signed
1.179 petere 9228: _ACEOF
9229:
1.146 momjian 9230: fi
1.181 petere 9231: echo "$as_me:$LINENO: checking for working volatile" >&5
9232: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9233: if test "${ac_cv_c_volatile+set}" = set; then
1.179 petere 9234: echo $ECHO_N "(cached) $ECHO_C" >&6
9235: else
1.181 petere 9236: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 9237: #line $LINENO "configure"
9238: #include "confdefs.h"
1.181 petere 9239:
9240: #ifdef F77_DUMMY_MAIN
9241: # ifdef __cplusplus
9242: extern "C"
9243: # endif
9244: int F77_DUMMY_MAIN() { return 1; }
9245: #endif
9246: int
9247: main ()
9248: {
9249:
9250: volatile int x;
9251: int * volatile y;
9252: ;
9253: return 0;
9254: }
1.179 petere 9255: _ACEOF
9256: rm -f conftest.$ac_objext
9257: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258: (eval $ac_compile) 2>&5
9259: ac_status=$?
9260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261: (exit $ac_status); } &&
9262: { ac_try='test -s conftest.$ac_objext'
9263: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264: (eval $ac_try) 2>&5
9265: ac_status=$?
9266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267: (exit $ac_status); }; }; then
1.181 petere 9268: ac_cv_c_volatile=yes
1.179 petere 9269: else
9270: echo "$as_me: failed program was:" >&5
9271: cat conftest.$ac_ext >&5
1.181 petere 9272: ac_cv_c_volatile=no
1.179 petere 9273: fi
9274: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 9275: fi
9276: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9277: echo "${ECHO_T}$ac_cv_c_volatile" >&6
9278: if test $ac_cv_c_volatile = no; then
1.179 petere 9279:
1.181 petere 9280: cat >>confdefs.h <<\_ACEOF
9281: #define volatile
1.179 petere 9282: _ACEOF
9283:
1.181 petere 9284: fi
9285:
9286: echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9287: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9288: if test "${ac_cv_struct_tm+set}" = set; then
1.179 petere 9289: echo $ECHO_N "(cached) $ECHO_C" >&6
9290: else
9291: cat >conftest.$ac_ext <<_ACEOF
9292: #line $LINENO "configure"
1.174 petere 9293: #include "confdefs.h"
1.181 petere 9294: #include <sys/types.h>
9295: #include <time.h>
1.179 petere 9296:
9297: #ifdef F77_DUMMY_MAIN
9298: # ifdef __cplusplus
9299: extern "C"
9300: # endif
9301: int F77_DUMMY_MAIN() { return 1; }
9302: #endif
9303: int
9304: main ()
9305: {
1.181 petere 9306: struct tm *tp; tp->tm_sec;
1.179 petere 9307: ;
9308: return 0;
9309: }
9310: _ACEOF
9311: rm -f conftest.$ac_objext
9312: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313: (eval $ac_compile) 2>&5
9314: ac_status=$?
9315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316: (exit $ac_status); } &&
9317: { ac_try='test -s conftest.$ac_objext'
9318: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319: (eval $ac_try) 2>&5
9320: ac_status=$?
9321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322: (exit $ac_status); }; }; then
1.181 petere 9323: ac_cv_struct_tm=time.h
1.174 petere 9324: else
1.179 petere 9325: echo "$as_me: failed program was:" >&5
9326: cat conftest.$ac_ext >&5
1.181 petere 9327: ac_cv_struct_tm=sys/time.h
1.174 petere 9328: fi
1.179 petere 9329: rm -f conftest.$ac_objext conftest.$ac_ext
1.174 petere 9330: fi
1.181 petere 9331: echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9332: echo "${ECHO_T}$ac_cv_struct_tm" >&6
9333: if test $ac_cv_struct_tm = sys/time.h; then
1.174 petere 9334:
1.179 petere 9335: cat >>confdefs.h <<\_ACEOF
1.181 petere 9336: #define TM_IN_SYS_TIME 1
1.179 petere 9337: _ACEOF
9338:
9339: fi
1.174 petere 9340:
1.181 petere 9341: echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9342: echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9343: if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
1.179 petere 9344: echo $ECHO_N "(cached) $ECHO_C" >&6
9345: else
9346: cat >conftest.$ac_ext <<_ACEOF
9347: #line $LINENO "configure"
9348: #include "confdefs.h"
1.181 petere 9349: #include <sys/types.h>
9350: #include <$ac_cv_struct_tm>
9351:
9352:
9353: #ifdef F77_DUMMY_MAIN
9354: # ifdef __cplusplus
9355: extern "C"
9356: # endif
9357: int F77_DUMMY_MAIN() { return 1; }
1.179 petere 9358: #endif
1.181 petere 9359: int
9360: main ()
9361: {
9362: static struct tm ac_aggr;
9363: if (ac_aggr.tm_zone)
9364: return 0;
9365: ;
9366: return 0;
9367: }
1.179 petere 9368: _ACEOF
9369: rm -f conftest.$ac_objext
9370: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371: (eval $ac_compile) 2>&5
9372: ac_status=$?
9373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374: (exit $ac_status); } &&
9375: { ac_try='test -s conftest.$ac_objext'
9376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377: (eval $ac_try) 2>&5
9378: ac_status=$?
9379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380: (exit $ac_status); }; }; then
1.181 petere 9381: ac_cv_member_struct_tm_tm_zone=yes
1.174 petere 9382: else
1.179 petere 9383: echo "$as_me: failed program was:" >&5
9384: cat conftest.$ac_ext >&5
1.181 petere 9385: ac_cv_member_struct_tm_tm_zone=no
1.174 petere 9386: fi
1.179 petere 9387: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 9388: fi
9389: echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9390: echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9391: if test $ac_cv_member_struct_tm_tm_zone = yes; then
1.174 petere 9392:
1.181 petere 9393: cat >>confdefs.h <<_ACEOF
9394: #define HAVE_STRUCT_TM_TM_ZONE 1
1.179 petere 9395: _ACEOF
1.174 petere 9396:
1.179 petere 9397:
1.174 petere 9398: fi
1.179 petere 9399:
1.181 petere 9400: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1.174 petere 9401:
1.179 petere 9402: cat >>confdefs.h <<\_ACEOF
1.181 petere 9403: #define HAVE_TM_ZONE 1
1.179 petere 9404: _ACEOF
1.174 petere 9405:
1.181 petere 9406: else
9407: echo "$as_me:$LINENO: checking for tzname" >&5
9408: echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9409: if test "${ac_cv_var_tzname+set}" = set; then
1.179 petere 9410: echo $ECHO_N "(cached) $ECHO_C" >&6
1.174 petere 9411: else
1.179 petere 9412: cat >conftest.$ac_ext <<_ACEOF
9413: #line $LINENO "configure"
1.174 petere 9414: #include "confdefs.h"
1.181 petere 9415: #include <time.h>
9416: #ifndef tzname /* For SGI. */
9417: extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9418: #endif
1.179 petere 9419:
9420: #ifdef F77_DUMMY_MAIN
9421: # ifdef __cplusplus
9422: extern "C"
9423: # endif
9424: int F77_DUMMY_MAIN() { return 1; }
9425: #endif
9426: int
9427: main ()
9428: {
1.181 petere 9429: atoi(*tzname);
1.179 petere 9430: ;
9431: return 0;
9432: }
9433: _ACEOF
1.181 petere 9434: rm -f conftest.$ac_objext conftest$ac_exeext
9435: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436: (eval $ac_link) 2>&5
1.179 petere 9437: ac_status=$?
9438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439: (exit $ac_status); } &&
1.181 petere 9440: { ac_try='test -s conftest$ac_exeext'
1.179 petere 9441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442: (eval $ac_try) 2>&5
9443: ac_status=$?
9444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445: (exit $ac_status); }; }; then
1.181 petere 9446: ac_cv_var_tzname=yes
1.174 petere 9447: else
1.179 petere 9448: echo "$as_me: failed program was:" >&5
9449: cat conftest.$ac_ext >&5
1.181 petere 9450: ac_cv_var_tzname=no
1.174 petere 9451: fi
1.181 petere 9452: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.174 petere 9453: fi
1.181 petere 9454: echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9455: echo "${ECHO_T}$ac_cv_var_tzname" >&6
9456: if test $ac_cv_var_tzname = yes; then
1.174 petere 9457:
1.179 petere 9458: cat >>confdefs.h <<\_ACEOF
1.181 petere 9459: #define HAVE_TZNAME 1
1.179 petere 9460: _ACEOF
1.174 petere 9461:
1.181 petere 9462: fi
1.179 petere 9463: fi
1.181 petere 9464:
9465: echo "$as_me:$LINENO: checking for union semun" >&5
9466: echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9467: if test "${ac_cv_type_union_semun+set}" = set; then
1.179 petere 9468: echo $ECHO_N "(cached) $ECHO_C" >&6
1.167 momjian 9469: else
1.179 petere 9470: cat >conftest.$ac_ext <<_ACEOF
9471: #line $LINENO "configure"
9472: #include "confdefs.h"
9473: #include <sys/types.h>
9474: #include <sys/ipc.h>
9475: #include <sys/sem.h>
9476:
9477: #ifdef F77_DUMMY_MAIN
9478: # ifdef __cplusplus
9479: extern "C"
9480: # endif
9481: int F77_DUMMY_MAIN() { return 1; }
9482: #endif
9483: int
9484: main ()
9485: {
9486: if ((union semun *) 0)
9487: return 0;
9488: if (sizeof (union semun))
9489: return 0;
9490: ;
9491: return 0;
9492: }
9493: _ACEOF
9494: rm -f conftest.$ac_objext
9495: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496: (eval $ac_compile) 2>&5
9497: ac_status=$?
9498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499: (exit $ac_status); } &&
9500: { ac_try='test -s conftest.$ac_objext'
9501: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502: (eval $ac_try) 2>&5
9503: ac_status=$?
9504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505: (exit $ac_status); }; }; then
9506: ac_cv_type_union_semun=yes
9507: else
9508: echo "$as_me: failed program was:" >&5
9509: cat conftest.$ac_ext >&5
9510: ac_cv_type_union_semun=no
9511: fi
9512: rm -f conftest.$ac_objext conftest.$ac_ext
9513: fi
9514: echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9515: echo "${ECHO_T}$ac_cv_type_union_semun" >&6
1.182 petere 9516: if test $ac_cv_type_union_semun = yes; then
9517:
9518: cat >>confdefs.h <<_ACEOF
9519: #define HAVE_UNION_SEMUN 1
9520: _ACEOF
9521:
9522:
9523: fi
1.179 petere 9524:
9525: echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9526: echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9527: if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9528: echo $ECHO_N "(cached) $ECHO_C" >&6
1.167 momjian 9529: else
1.179 petere 9530: cat >conftest.$ac_ext <<_ACEOF
9531: #line $LINENO "configure"
1.167 momjian 9532: #include "confdefs.h"
1.179 petere 9533: #include <sys/types.h>
9534: #ifdef HAVE_SYS_UN_H
9535: #include <sys/un.h>
9536: #endif
9537:
1.167 momjian 9538:
1.179 petere 9539: #ifdef F77_DUMMY_MAIN
9540: # ifdef __cplusplus
9541: extern "C"
9542: # endif
9543: int F77_DUMMY_MAIN() { return 1; }
9544: #endif
9545: int
9546: main ()
1.167 momjian 9547: {
1.179 petere 9548: if ((struct sockaddr_un *) 0)
9549: return 0;
9550: if (sizeof (struct sockaddr_un))
9551: return 0;
9552: ;
9553: return 0;
1.167 momjian 9554: }
1.179 petere 9555: _ACEOF
9556: rm -f conftest.$ac_objext
9557: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558: (eval $ac_compile) 2>&5
9559: ac_status=$?
9560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561: (exit $ac_status); } &&
9562: { ac_try='test -s conftest.$ac_objext'
9563: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564: (eval $ac_try) 2>&5
9565: ac_status=$?
9566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567: (exit $ac_status); }; }; then
9568: ac_cv_type_struct_sockaddr_un=yes
9569: else
9570: echo "$as_me: failed program was:" >&5
9571: cat conftest.$ac_ext >&5
9572: ac_cv_type_struct_sockaddr_un=no
9573: fi
9574: rm -f conftest.$ac_objext conftest.$ac_ext
9575: fi
9576: echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9577: echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9578: if test $ac_cv_type_struct_sockaddr_un = yes; then
1.167 momjian 9579:
1.179 petere 9580: cat >>confdefs.h <<_ACEOF
9581: #define HAVE_STRUCT_SOCKADDR_UN 1
9582: _ACEOF
1.167 momjian 9583:
9584:
9585: fi
9586:
9587:
1.179 petere 9588: echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9589: echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9590: if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9591: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9592: else
1.179 petere 9593: cat >conftest.$ac_ext <<_ACEOF
9594: #line $LINENO "configure"
1.1 petere 9595: #include "confdefs.h"
1.179 petere 9596: #include <sys/param.h>
9597: #include <sys/socket.h>
9598: #include <sys/ucred.h>
1.1 petere 9599:
1.179 petere 9600: #ifdef F77_DUMMY_MAIN
9601: # ifdef __cplusplus
9602: extern "C"
9603: # endif
9604: int F77_DUMMY_MAIN() { return 1; }
9605: #endif
9606: int
9607: main ()
9608: {
9609: if ((struct cmsgcred *) 0)
9610: return 0;
9611: if (sizeof (struct cmsgcred))
9612: return 0;
9613: ;
9614: return 0;
9615: }
9616: _ACEOF
9617: rm -f conftest.$ac_objext
9618: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619: (eval $ac_compile) 2>&5
9620: ac_status=$?
9621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622: (exit $ac_status); } &&
9623: { ac_try='test -s conftest.$ac_objext'
9624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625: (eval $ac_try) 2>&5
9626: ac_status=$?
9627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628: (exit $ac_status); }; }; then
9629: ac_cv_type_struct_cmsgcred=yes
9630: else
9631: echo "$as_me: failed program was:" >&5
9632: cat conftest.$ac_ext >&5
9633: ac_cv_type_struct_cmsgcred=no
9634: fi
9635: rm -f conftest.$ac_objext conftest.$ac_ext
9636: fi
9637: echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9638: echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9639: if test $ac_cv_type_struct_cmsgcred = yes; then
9640:
9641: cat >>confdefs.h <<_ACEOF
9642: #define HAVE_STRUCT_CMSGCRED 1
9643: _ACEOF
9644:
9645:
9646: fi
9647: echo "$as_me:$LINENO: checking for struct fcred" >&5
9648: echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9649: if test "${ac_cv_type_struct_fcred+set}" = set; then
9650: echo $ECHO_N "(cached) $ECHO_C" >&6
9651: else
9652: cat >conftest.$ac_ext <<_ACEOF
9653: #line $LINENO "configure"
9654: #include "confdefs.h"
9655: #include <sys/param.h>
9656: #include <sys/socket.h>
9657: #include <sys/ucred.h>
1.1 petere 9658:
1.179 petere 9659: #ifdef F77_DUMMY_MAIN
9660: # ifdef __cplusplus
9661: extern "C"
9662: # endif
9663: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9664: #endif
1.179 petere 9665: int
9666: main ()
9667: {
9668: if ((struct fcred *) 0)
9669: return 0;
9670: if (sizeof (struct fcred))
9671: return 0;
9672: ;
9673: return 0;
9674: }
9675: _ACEOF
9676: rm -f conftest.$ac_objext
9677: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9678: (eval $ac_compile) 2>&5
9679: ac_status=$?
9680: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681: (exit $ac_status); } &&
9682: { ac_try='test -s conftest.$ac_objext'
9683: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684: (eval $ac_try) 2>&5
9685: ac_status=$?
9686: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687: (exit $ac_status); }; }; then
9688: ac_cv_type_struct_fcred=yes
9689: else
9690: echo "$as_me: failed program was:" >&5
9691: cat conftest.$ac_ext >&5
9692: ac_cv_type_struct_fcred=no
9693: fi
9694: rm -f conftest.$ac_objext conftest.$ac_ext
9695: fi
9696: echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9697: echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9698: if test $ac_cv_type_struct_fcred = yes; then
1.1 petere 9699:
1.179 petere 9700: cat >>confdefs.h <<_ACEOF
9701: #define HAVE_STRUCT_FCRED 1
9702: _ACEOF
9703:
9704:
9705: fi
9706: echo "$as_me:$LINENO: checking for struct sockcred" >&5
9707: echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9708: if test "${ac_cv_type_struct_sockcred+set}" = set; then
9709: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9710: else
1.179 petere 9711: cat >conftest.$ac_ext <<_ACEOF
9712: #line $LINENO "configure"
9713: #include "confdefs.h"
9714: #include <sys/param.h>
9715: #include <sys/socket.h>
9716: #include <sys/ucred.h>
1.1 petere 9717:
1.179 petere 9718: #ifdef F77_DUMMY_MAIN
9719: # ifdef __cplusplus
9720: extern "C"
9721: # endif
9722: int F77_DUMMY_MAIN() { return 1; }
9723: #endif
9724: int
9725: main ()
9726: {
9727: if ((struct sockcred *) 0)
9728: return 0;
9729: if (sizeof (struct sockcred))
9730: return 0;
9731: ;
9732: return 0;
9733: }
9734: _ACEOF
9735: rm -f conftest.$ac_objext
9736: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737: (eval $ac_compile) 2>&5
9738: ac_status=$?
9739: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740: (exit $ac_status); } &&
9741: { ac_try='test -s conftest.$ac_objext'
9742: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743: (eval $ac_try) 2>&5
9744: ac_status=$?
9745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746: (exit $ac_status); }; }; then
9747: ac_cv_type_struct_sockcred=yes
9748: else
9749: echo "$as_me: failed program was:" >&5
9750: cat conftest.$ac_ext >&5
9751: ac_cv_type_struct_sockcred=no
9752: fi
9753: rm -f conftest.$ac_objext conftest.$ac_ext
9754: fi
9755: echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9756: echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9757: if test $ac_cv_type_struct_sockcred = yes; then
1.1 petere 9758:
1.179 petere 9759: cat >>confdefs.h <<_ACEOF
9760: #define HAVE_STRUCT_SOCKCRED 1
9761: _ACEOF
1.1 petere 9762:
1.106 tgl 9763:
9764: fi
9765:
9766:
1.186 petere 9767: if test "$with_zlib" = yes; then
9768: # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9769: # did not). While we could work around the lack of z_streamp, it
9770: # seems unwise to encourage people to use such old zlib versions...
9771: echo "$as_me:$LINENO: checking for z_streamp" >&5
9772: echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9773: if test "${ac_cv_type_z_streamp+set}" = set; then
9774: echo $ECHO_N "(cached) $ECHO_C" >&6
9775: else
9776: cat >conftest.$ac_ext <<_ACEOF
9777: #line $LINENO "configure"
9778: #include "confdefs.h"
9779: #include <zlib.h>
9780:
9781: #ifdef F77_DUMMY_MAIN
9782: # ifdef __cplusplus
9783: extern "C"
9784: # endif
9785: int F77_DUMMY_MAIN() { return 1; }
9786: #endif
9787: int
9788: main ()
9789: {
9790: if ((z_streamp *) 0)
9791: return 0;
9792: if (sizeof (z_streamp))
9793: return 0;
9794: ;
9795: return 0;
9796: }
9797: _ACEOF
9798: rm -f conftest.$ac_objext
9799: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800: (eval $ac_compile) 2>&5
9801: ac_status=$?
9802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803: (exit $ac_status); } &&
9804: { ac_try='test -s conftest.$ac_objext'
9805: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806: (eval $ac_try) 2>&5
9807: ac_status=$?
9808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809: (exit $ac_status); }; }; then
9810: ac_cv_type_z_streamp=yes
9811: else
9812: echo "$as_me: failed program was:" >&5
9813: cat conftest.$ac_ext >&5
9814: ac_cv_type_z_streamp=no
9815: fi
9816: rm -f conftest.$ac_objext conftest.$ac_ext
9817: fi
9818: echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9819: echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9820: if test $ac_cv_type_z_streamp = yes; then
9821: :
9822: else
9823: { { echo "$as_me:$LINENO: error: zlib version is too old
9824: Use --without-zlib to disable zlib support." >&5
9825: echo "$as_me: error: zlib version is too old
9826: Use --without-zlib to disable zlib support." >&2;}
9827: { (exit 1); exit 1; }; }
9828: fi
9829:
9830: fi
9831:
1.179 petere 9832: if test "$with_krb5" = yes; then
9833: # Check for differences between MIT and Heimdal (KTH) releases
9834: echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9835: echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9836: if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9837: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 9838: else
1.179 petere 9839: cat >conftest.$ac_ext <<_ACEOF
9840: #line $LINENO "configure"
1.1 petere 9841: #include "confdefs.h"
1.179 petere 9842: #include <krb5.h>
1.28 petere 9843:
1.179 petere 9844: #ifdef F77_DUMMY_MAIN
9845: # ifdef __cplusplus
9846: extern "C"
9847: # endif
9848: int F77_DUMMY_MAIN() { return 1; }
9849: #endif
9850: int
9851: main ()
9852: {
9853: static krb5_ticket ac_aggr;
9854: if (ac_aggr.enc_part2)
9855: return 0;
9856: ;
9857: return 0;
9858: }
9859: _ACEOF
9860: rm -f conftest.$ac_objext
9861: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862: (eval $ac_compile) 2>&5
9863: ac_status=$?
9864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865: (exit $ac_status); } &&
9866: { ac_try='test -s conftest.$ac_objext'
9867: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868: (eval $ac_try) 2>&5
9869: ac_status=$?
9870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871: (exit $ac_status); }; }; then
9872: ac_cv_member_krb5_ticket_enc_part2=yes
9873: else
9874: echo "$as_me: failed program was:" >&5
9875: cat conftest.$ac_ext >&5
9876: ac_cv_member_krb5_ticket_enc_part2=no
9877: fi
9878: rm -f conftest.$ac_objext conftest.$ac_ext
9879: fi
9880: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9881: echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9882: if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
1.28 petere 9883:
1.179 petere 9884: cat >>confdefs.h <<_ACEOF
9885: #define HAVE_KRB5_TICKET_ENC_PART2 1
9886: _ACEOF
1.28 petere 9887:
1.1 petere 9888:
9889: else
1.179 petere 9890: echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9891: echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9892: if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9893: echo $ECHO_N "(cached) $ECHO_C" >&6
9894: else
9895: cat >conftest.$ac_ext <<_ACEOF
9896: #line $LINENO "configure"
1.1 petere 9897: #include "confdefs.h"
1.179 petere 9898: #include <krb5.h>
9899:
9900: #ifdef F77_DUMMY_MAIN
9901: # ifdef __cplusplus
9902: extern "C"
9903: # endif
9904: int F77_DUMMY_MAIN() { return 1; }
9905: #endif
9906: int
9907: main ()
9908: {
9909: static krb5_ticket ac_aggr;
9910: if (ac_aggr.client)
9911: return 0;
9912: ;
9913: return 0;
9914: }
9915: _ACEOF
9916: rm -f conftest.$ac_objext
9917: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918: (eval $ac_compile) 2>&5
9919: ac_status=$?
9920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921: (exit $ac_status); } &&
9922: { ac_try='test -s conftest.$ac_objext'
9923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924: (eval $ac_try) 2>&5
9925: ac_status=$?
9926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927: (exit $ac_status); }; }; then
9928: ac_cv_member_krb5_ticket_client=yes
9929: else
9930: echo "$as_me: failed program was:" >&5
9931: cat conftest.$ac_ext >&5
9932: ac_cv_member_krb5_ticket_client=no
9933: fi
9934: rm -f conftest.$ac_objext conftest.$ac_ext
9935: fi
9936: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9937: echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9938: if test $ac_cv_member_krb5_ticket_client = yes; then
1.1 petere 9939:
1.179 petere 9940: cat >>confdefs.h <<_ACEOF
9941: #define HAVE_KRB5_TICKET_CLIENT 1
9942: _ACEOF
1.1 petere 9943:
9944:
9945: else
1.179 petere 9946: { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9947: echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9948: { (exit 1); exit 1; }; }
1.1 petere 9949: fi
9950:
9951: fi
9952:
1.179 petere 9953: echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9954: echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9955: if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9956: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9957: else
1.179 petere 9958: cat >conftest.$ac_ext <<_ACEOF
9959: #line $LINENO "configure"
1.1 petere 9960: #include "confdefs.h"
1.179 petere 9961: #include <krb5.h>
1.1 petere 9962:
1.179 petere 9963: #ifdef F77_DUMMY_MAIN
9964: # ifdef __cplusplus
9965: extern "C"
9966: # endif
9967: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9968: #endif
1.179 petere 9969: int
9970: main ()
9971: {
9972: static krb5_error ac_aggr;
9973: if (ac_aggr.text.data)
9974: return 0;
9975: ;
9976: return 0;
9977: }
9978: _ACEOF
9979: rm -f conftest.$ac_objext
9980: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981: (eval $ac_compile) 2>&5
9982: ac_status=$?
9983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984: (exit $ac_status); } &&
9985: { ac_try='test -s conftest.$ac_objext'
9986: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987: (eval $ac_try) 2>&5
9988: ac_status=$?
9989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990: (exit $ac_status); }; }; then
9991: ac_cv_member_krb5_error_text_data=yes
9992: else
9993: echo "$as_me: failed program was:" >&5
9994: cat conftest.$ac_ext >&5
9995: ac_cv_member_krb5_error_text_data=no
9996: fi
9997: rm -f conftest.$ac_objext conftest.$ac_ext
9998: fi
9999: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10000: echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10001: if test $ac_cv_member_krb5_error_text_data = yes; then
1.1 petere 10002:
1.179 petere 10003: cat >>confdefs.h <<_ACEOF
10004: #define HAVE_KRB5_ERROR_TEXT_DATA 1
10005: _ACEOF
1.1 petere 10006:
10007:
10008: else
1.179 petere 10009: echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10010: echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10011: if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10012: echo $ECHO_N "(cached) $ECHO_C" >&6
10013: else
10014: cat >conftest.$ac_ext <<_ACEOF
10015: #line $LINENO "configure"
1.1 petere 10016: #include "confdefs.h"
1.179 petere 10017: #include <krb5.h>
1.1 petere 10018:
1.179 petere 10019: #ifdef F77_DUMMY_MAIN
10020: # ifdef __cplusplus
10021: extern "C"
10022: # endif
10023: int F77_DUMMY_MAIN() { return 1; }
10024: #endif
10025: int
10026: main ()
10027: {
10028: static krb5_error ac_aggr;
10029: if (ac_aggr.e_data)
10030: return 0;
10031: ;
10032: return 0;
10033: }
10034: _ACEOF
10035: rm -f conftest.$ac_objext
10036: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10037: (eval $ac_compile) 2>&5
10038: ac_status=$?
10039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040: (exit $ac_status); } &&
10041: { ac_try='test -s conftest.$ac_objext'
10042: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043: (eval $ac_try) 2>&5
10044: ac_status=$?
10045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046: (exit $ac_status); }; }; then
10047: ac_cv_member_krb5_error_e_data=yes
10048: else
10049: echo "$as_me: failed program was:" >&5
10050: cat conftest.$ac_ext >&5
10051: ac_cv_member_krb5_error_e_data=no
10052: fi
10053: rm -f conftest.$ac_objext conftest.$ac_ext
10054: fi
10055: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10056: echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10057: if test $ac_cv_member_krb5_error_e_data = yes; then
10058: :
10059: else
10060: { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10061: echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10062: { (exit 1); exit 1; }; }
1.1 petere 10063: fi
10064:
1.179 petere 10065: fi
1.1 petere 10066:
10067: fi
10068:
1.29 petere 10069:
1.179 petere 10070: ##
10071: ## Functions, global variables
10072: ##
10073: echo "$as_me:$LINENO: checking for int timezone" >&5
10074: echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10075: if test "${pgac_cv_var_int_timezone+set}" = set; then
10076: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10077: else
1.179 petere 10078: cat >conftest.$ac_ext <<_ACEOF
10079: #line $LINENO "configure"
1.1 petere 10080: #include "confdefs.h"
1.179 petere 10081: #include <time.h>
10082: int res;
10083: #ifdef F77_DUMMY_MAIN
10084: # ifdef __cplusplus
10085: extern "C"
10086: # endif
10087: int F77_DUMMY_MAIN() { return 1; }
10088: #endif
10089: int
10090: main ()
10091: {
10092: res = timezone / 60;
10093: ;
10094: return 0;
10095: }
10096: _ACEOF
10097: rm -f conftest.$ac_objext conftest$ac_exeext
10098: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099: (eval $ac_link) 2>&5
10100: ac_status=$?
10101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102: (exit $ac_status); } &&
10103: { ac_try='test -s conftest$ac_exeext'
10104: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105: (eval $ac_try) 2>&5
10106: ac_status=$?
10107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108: (exit $ac_status); }; }; then
10109: pgac_cv_var_int_timezone=yes
1.1 petere 10110: else
1.179 petere 10111: echo "$as_me: failed program was:" >&5
10112: cat conftest.$ac_ext >&5
10113: pgac_cv_var_int_timezone=no
1.1 petere 10114: fi
1.179 petere 10115: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10116: fi
1.179 petere 10117: echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10118: echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10119: if test x"$pgac_cv_var_int_timezone" = xyes ; then
1.1 petere 10120:
1.179 petere 10121: cat >>confdefs.h <<\_ACEOF
10122: #define HAVE_INT_TIMEZONE
10123: _ACEOF
1.29 petere 10124:
1.179 petere 10125: fi
10126: echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10127: echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10128: if test "${ac_cv_func_accept_arg1+set}" = set; then
10129: echo $ECHO_N "(cached) $ECHO_C" >&6
10130: else
10131: if test "${ac_cv_func_accept_arg2+set}" = set; then
10132: echo $ECHO_N "(cached) $ECHO_C" >&6
1.29 petere 10133: else
1.179 petere 10134: if test "${ac_cv_func_accept_arg3+set}" = set; then
10135: echo $ECHO_N "(cached) $ECHO_C" >&6
1.29 petere 10136: else
1.179 petere 10137: for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10138: for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10139: for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10140: cat >conftest.$ac_ext <<_ACEOF
10141: #line $LINENO "configure"
1.29 petere 10142: #include "confdefs.h"
1.179 petere 10143: #ifdef HAVE_SYS_TYPES_H
10144: #include <sys/types.h>
10145: #endif
10146: #ifdef HAVE_SYS_SOCKET_H
10147: #include <sys/socket.h>
10148: #endif
10149: extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10150: #ifdef F77_DUMMY_MAIN
10151: # ifdef __cplusplus
10152: extern "C"
10153: # endif
10154: int F77_DUMMY_MAIN() { return 1; }
1.29 petere 10155: #endif
1.179 petere 10156: int
10157: main ()
10158: {
1.29 petere 10159:
1.179 petere 10160: ;
10161: return 0;
10162: }
10163: _ACEOF
10164: rm -f conftest.$ac_objext
10165: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166: (eval $ac_compile) 2>&5
10167: ac_status=$?
10168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169: (exit $ac_status); } &&
10170: { ac_try='test -s conftest.$ac_objext'
10171: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172: (eval $ac_try) 2>&5
10173: ac_status=$?
10174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175: (exit $ac_status); }; }; then
10176: ac_not_found=no; break 3
1.29 petere 10177: else
1.179 petere 10178: echo "$as_me: failed program was:" >&5
10179: cat conftest.$ac_ext >&5
10180: ac_not_found=yes
1.29 petere 10181: fi
1.179 petere 10182: rm -f conftest.$ac_objext conftest.$ac_ext
10183: done
10184: done
10185: done
10186: if test "$ac_not_found" = yes; then
10187: { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10188: echo "$as_me: error: could not determine argument types" >&2;}
10189: { (exit 1); exit 1; }; }
10190: fi
10191: if test "$ac_cv_func_accept_arg3" = "void"; then
10192: ac_cv_func_accept_arg3=int
10193: fi
10194:
1.29 petere 10195: fi
10196:
10197: fi
10198:
1.1 petere 10199: fi
1.179 petere 10200: echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10201: echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10202:
10203: cat >>confdefs.h <<_ACEOF
10204: #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10205: _ACEOF
10206:
10207:
10208: cat >>confdefs.h <<_ACEOF
10209: #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10210: _ACEOF
1.1 petere 10211:
1.29 petere 10212:
1.179 petere 10213: cat >>confdefs.h <<_ACEOF
10214: #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10215: _ACEOF
10216:
10217:
10218: echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10219: echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10220: if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10221: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10222: else
1.179 petere 10223: cat >conftest.$ac_ext <<_ACEOF
10224: #line $LINENO "configure"
1.1 petere 10225: #include "confdefs.h"
1.179 petere 10226: #include <sys/time.h>
10227: #ifdef F77_DUMMY_MAIN
10228: # ifdef __cplusplus
10229: extern "C"
10230: # endif
10231: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10232: #endif
1.179 petere 10233: int
10234: main ()
10235: {
10236: struct timeval *tp;
10237: struct timezone *tzp;
10238: gettimeofday(tp,tzp);
10239: ;
10240: return 0;
10241: }
10242: _ACEOF
10243: rm -f conftest.$ac_objext
10244: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245: (eval $ac_compile) 2>&5
10246: ac_status=$?
10247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248: (exit $ac_status); } &&
10249: { ac_try='test -s conftest.$ac_objext'
10250: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251: (eval $ac_try) 2>&5
10252: ac_status=$?
10253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254: (exit $ac_status); }; }; then
10255: pgac_cv_func_gettimeofday_1arg=no
1.1 petere 10256: else
1.179 petere 10257: echo "$as_me: failed program was:" >&5
10258: cat conftest.$ac_ext >&5
10259: pgac_cv_func_gettimeofday_1arg=yes
1.1 petere 10260: fi
1.179 petere 10261: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 10262: fi
1.179 petere 10263: echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10264: echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10265: if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
1.1 petere 10266:
1.179 petere 10267: cat >>confdefs.h <<\_ACEOF
10268: #define GETTIMEOFDAY_1ARG
10269: _ACEOF
1.1 petere 10270:
1.179 petere 10271: fi
10272:
10273: # SunOS doesn't handle negative byte comparisons properly with +/- return
10274: echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10275: echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10276: if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10277: echo $ECHO_N "(cached) $ECHO_C" >&6
10278: else
10279: if test "$cross_compiling" = yes; then
10280: pgac_cv_func_memcmp_clean=no
10281: else
10282: cat >conftest.$ac_ext <<_ACEOF
10283: #line $LINENO "configure"
10284: #include "confdefs.h"
10285:
10286: main()
10287: {
10288: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10289: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10290: }
10291:
10292: _ACEOF
10293: rm -f conftest$ac_exeext
10294: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295: (eval $ac_link) 2>&5
10296: ac_status=$?
10297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300: (eval $ac_try) 2>&5
10301: ac_status=$?
10302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303: (exit $ac_status); }; }; then
10304: pgac_cv_func_memcmp_clean=yes
1.1 petere 10305: else
1.179 petere 10306: echo "$as_me: program exited with status $ac_status" >&5
10307: echo "$as_me: failed program was:" >&5
10308: cat conftest.$ac_ext >&5
10309: ( exit $ac_status )
10310: pgac_cv_func_memcmp_clean=no
1.1 petere 10311: fi
1.179 petere 10312: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10313: fi
10314: fi
10315: echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10316: echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10317: if test $pgac_cv_func_memcmp_clean = no ; then
10318: MEMCMP=memcmp.o
10319: else
10320: MEMCMP=
10321: fi
10322:
10323:
10324:
10325:
10326:
10327:
10328:
10329:
10330:
1.1 petere 10331:
10332:
1.179 petere 10333:
10334:
10335:
10336: for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10337: do
10338: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10339: echo "$as_me:$LINENO: checking for $ac_func" >&5
10340: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10341: if eval "test \"\${$as_ac_var+set}\" = set"; then
10342: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10343: else
1.179 petere 10344: cat >conftest.$ac_ext <<_ACEOF
10345: #line $LINENO "configure"
1.1 petere 10346: #include "confdefs.h"
10347: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10348: which can conflict with char $ac_func (); below. */
1.1 petere 10349: #include <assert.h>
10350: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10351: #ifdef __cplusplus
10352: extern "C"
10353: #endif
1.1 petere 10354: /* We use char because int might match the return type of a gcc2
1.179 petere 10355: builtin and then its argument prototype would still apply. */
10356: char $ac_func ();
10357: char (*f) ();
10358:
10359: #ifdef F77_DUMMY_MAIN
10360: # ifdef __cplusplus
10361: extern "C"
10362: # endif
10363: int F77_DUMMY_MAIN() { return 1; }
10364: #endif
10365: int
10366: main ()
10367: {
1.1 petere 10368: /* The GNU C library defines this for functions which it implements
10369: to always fail with ENOSYS. Some functions are actually named
10370: something starting with __ and the normal name is an alias. */
1.179 petere 10371: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10372: choke me
10373: #else
1.179 petere 10374: f = $ac_func;
10375: #endif
10376:
10377: ;
10378: return 0;
10379: }
10380: _ACEOF
10381: rm -f conftest.$ac_objext conftest$ac_exeext
10382: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383: (eval $ac_link) 2>&5
10384: ac_status=$?
10385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386: (exit $ac_status); } &&
10387: { ac_try='test -s conftest$ac_exeext'
10388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389: (eval $ac_try) 2>&5
10390: ac_status=$?
10391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392: (exit $ac_status); }; }; then
10393: eval "$as_ac_var=yes"
10394: else
10395: echo "$as_me: failed program was:" >&5
10396: cat conftest.$ac_ext >&5
10397: eval "$as_ac_var=no"
10398: fi
10399: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10400: fi
10401: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10402: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10403: if test `eval echo '${'$as_ac_var'}'` = yes; then
10404: cat >>confdefs.h <<_ACEOF
10405: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10406: _ACEOF
10407:
10408: fi
10409: done
10410:
10411:
10412: echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10413: echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10414: if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10415: echo $ECHO_N "(cached) $ECHO_C" >&6
10416: else
10417: cat >conftest.$ac_ext <<_ACEOF
10418: #line $LINENO "configure"
10419: #include "confdefs.h"
10420: #include <unistd.h>
10421:
10422: #ifdef F77_DUMMY_MAIN
10423: # ifdef __cplusplus
10424: extern "C"
10425: # endif
10426: int F77_DUMMY_MAIN() { return 1; }
10427: #endif
10428: int
10429: main ()
10430: {
10431: #ifndef fdatasync
10432: char *p = (char *) fdatasync;
1.1 petere 10433: #endif
10434:
1.179 petere 10435: ;
10436: return 0;
10437: }
10438: _ACEOF
10439: rm -f conftest.$ac_objext
10440: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441: (eval $ac_compile) 2>&5
10442: ac_status=$?
10443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444: (exit $ac_status); } &&
10445: { ac_try='test -s conftest.$ac_objext'
10446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447: (eval $ac_try) 2>&5
10448: ac_status=$?
10449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450: (exit $ac_status); }; }; then
10451: ac_cv_have_decl_fdatasync=yes
1.1 petere 10452: else
1.179 petere 10453: echo "$as_me: failed program was:" >&5
10454: cat conftest.$ac_ext >&5
10455: ac_cv_have_decl_fdatasync=no
1.1 petere 10456: fi
1.179 petere 10457: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 10458: fi
1.179 petere 10459: echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10460: echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10461: if test $ac_cv_have_decl_fdatasync = yes; then
10462:
10463: cat >>confdefs.h <<_ACEOF
10464: #define HAVE_DECL_FDATASYNC 1
10465: _ACEOF
1.1 petere 10466:
10467:
10468: else
1.179 petere 10469: cat >>confdefs.h <<_ACEOF
10470: #define HAVE_DECL_FDATASYNC 0
10471: _ACEOF
10472:
10473:
1.1 petere 10474: fi
10475:
10476:
1.179 petere 10477:
10478: echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10479: echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10480: if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10481: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10482: else
1.179 petere 10483: cat >conftest.$ac_ext <<_ACEOF
10484: #line $LINENO "configure"
1.1 petere 10485: #include "confdefs.h"
1.179 petere 10486: #include <machine/vmparam.h>
10487: #include <sys/exec.h>
1.1 petere 10488:
1.179 petere 10489: #ifdef F77_DUMMY_MAIN
10490: # ifdef __cplusplus
10491: extern "C"
10492: # endif
10493: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10494: #endif
1.179 petere 10495: int
10496: main ()
10497: {
10498: PS_STRINGS->ps_nargvstr = 1;
10499: PS_STRINGS->ps_argvstr = "foo";
10500: ;
10501: return 0;
10502: }
10503: _ACEOF
10504: rm -f conftest.$ac_objext conftest$ac_exeext
10505: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506: (eval $ac_link) 2>&5
10507: ac_status=$?
10508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509: (exit $ac_status); } &&
10510: { ac_try='test -s conftest$ac_exeext'
10511: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512: (eval $ac_try) 2>&5
10513: ac_status=$?
10514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515: (exit $ac_status); }; }; then
10516: pgac_cv_var_PS_STRINGS=yes
1.1 petere 10517: else
1.179 petere 10518: echo "$as_me: failed program was:" >&5
10519: cat conftest.$ac_ext >&5
10520: pgac_cv_var_PS_STRINGS=no
1.1 petere 10521: fi
1.179 petere 10522: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10523: fi
1.179 petere 10524: echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10525: echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10526: if test "$pgac_cv_var_PS_STRINGS" = yes ; then
1.1 petere 10527:
1.179 petere 10528: cat >>confdefs.h <<\_ACEOF
10529: #define HAVE_PS_STRINGS
10530: _ACEOF
1.1 petere 10531:
10532: fi
10533:
10534:
1.179 petere 10535: # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10536: # is missing. Yes, there are machines that have only one. We may
10537: # also decide to use snprintf.c if snprintf() is present but does not
10538: # have working "long long int" support -- see below.
10539:
10540: SNPRINTF=''
10541:
10542: for ac_func in snprintf
10543: do
10544: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10545: echo "$as_me:$LINENO: checking for $ac_func" >&5
10546: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10547: if eval "test \"\${$as_ac_var+set}\" = set"; then
10548: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10549: else
1.179 petere 10550: cat >conftest.$ac_ext <<_ACEOF
10551: #line $LINENO "configure"
1.1 petere 10552: #include "confdefs.h"
10553: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10554: which can conflict with char $ac_func (); below. */
1.1 petere 10555: #include <assert.h>
10556: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10557: #ifdef __cplusplus
10558: extern "C"
10559: #endif
1.1 petere 10560: /* We use char because int might match the return type of a gcc2
1.179 petere 10561: builtin and then its argument prototype would still apply. */
10562: char $ac_func ();
10563: char (*f) ();
10564:
10565: #ifdef F77_DUMMY_MAIN
10566: # ifdef __cplusplus
10567: extern "C"
10568: # endif
10569: int F77_DUMMY_MAIN() { return 1; }
10570: #endif
10571: int
10572: main ()
10573: {
1.1 petere 10574: /* The GNU C library defines this for functions which it implements
10575: to always fail with ENOSYS. Some functions are actually named
10576: something starting with __ and the normal name is an alias. */
1.179 petere 10577: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10578: choke me
10579: #else
1.179 petere 10580: f = $ac_func;
1.1 petere 10581: #endif
10582:
1.179 petere 10583: ;
10584: return 0;
10585: }
10586: _ACEOF
10587: rm -f conftest.$ac_objext conftest$ac_exeext
10588: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589: (eval $ac_link) 2>&5
10590: ac_status=$?
10591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592: (exit $ac_status); } &&
10593: { ac_try='test -s conftest$ac_exeext'
10594: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595: (eval $ac_try) 2>&5
10596: ac_status=$?
10597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598: (exit $ac_status); }; }; then
10599: eval "$as_ac_var=yes"
10600: else
10601: echo "$as_me: failed program was:" >&5
10602: cat conftest.$ac_ext >&5
10603: eval "$as_ac_var=no"
10604: fi
10605: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10606: fi
10607: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10608: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10609: if test `eval echo '${'$as_ac_var'}'` = yes; then
10610: cat >>confdefs.h <<_ACEOF
10611: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10612: _ACEOF
1.1 petere 10613:
10614: else
1.179 petere 10615: SNPRINTF='snprintf.o'
1.1 petere 10616: fi
1.179 petere 10617: done
1.1 petere 10618:
10619:
1.179 petere 10620: for ac_func in vsnprintf
10621: do
10622: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623: echo "$as_me:$LINENO: checking for $ac_func" >&5
10624: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10625: if eval "test \"\${$as_ac_var+set}\" = set"; then
10626: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10627: else
1.179 petere 10628: cat >conftest.$ac_ext <<_ACEOF
10629: #line $LINENO "configure"
1.1 petere 10630: #include "confdefs.h"
10631: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10632: which can conflict with char $ac_func (); below. */
1.1 petere 10633: #include <assert.h>
10634: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10635: #ifdef __cplusplus
10636: extern "C"
10637: #endif
1.1 petere 10638: /* We use char because int might match the return type of a gcc2
1.179 petere 10639: builtin and then its argument prototype would still apply. */
10640: char $ac_func ();
10641: char (*f) ();
10642:
10643: #ifdef F77_DUMMY_MAIN
10644: # ifdef __cplusplus
10645: extern "C"
10646: # endif
10647: int F77_DUMMY_MAIN() { return 1; }
10648: #endif
10649: int
10650: main ()
10651: {
1.1 petere 10652: /* The GNU C library defines this for functions which it implements
10653: to always fail with ENOSYS. Some functions are actually named
10654: something starting with __ and the normal name is an alias. */
1.179 petere 10655: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10656: choke me
10657: #else
1.179 petere 10658: f = $ac_func;
1.1 petere 10659: #endif
10660:
1.179 petere 10661: ;
10662: return 0;
10663: }
10664: _ACEOF
10665: rm -f conftest.$ac_objext conftest$ac_exeext
10666: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667: (eval $ac_link) 2>&5
10668: ac_status=$?
10669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670: (exit $ac_status); } &&
10671: { ac_try='test -s conftest$ac_exeext'
10672: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673: (eval $ac_try) 2>&5
10674: ac_status=$?
10675: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676: (exit $ac_status); }; }; then
10677: eval "$as_ac_var=yes"
10678: else
10679: echo "$as_me: failed program was:" >&5
10680: cat conftest.$ac_ext >&5
10681: eval "$as_ac_var=no"
10682: fi
10683: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10684: fi
10685: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10686: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10687: if test `eval echo '${'$as_ac_var'}'` = yes; then
10688: cat >>confdefs.h <<_ACEOF
10689: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10690: _ACEOF
10691:
1.1 petere 10692: else
1.179 petere 10693: SNPRINTF='snprintf.o'
1.1 petere 10694: fi
1.179 petere 10695: done
10696:
10697:
10698:
10699:
10700: # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10701: # include/c.h will provide declarations. Note this is a separate test
10702: # from whether the functions exist in the C library --- there are
10703: # systems that have the functions but don't bother to declare them :-(
10704:
10705: echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10706: echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10707: if test "${ac_cv_have_decl_snprintf+set}" = set; then
10708: echo $ECHO_N "(cached) $ECHO_C" >&6
10709: else
10710: cat >conftest.$ac_ext <<_ACEOF
10711: #line $LINENO "configure"
10712: #include "confdefs.h"
10713: $ac_includes_default
10714: #ifdef F77_DUMMY_MAIN
10715: # ifdef __cplusplus
10716: extern "C"
10717: # endif
10718: int F77_DUMMY_MAIN() { return 1; }
10719: #endif
10720: int
10721: main ()
10722: {
10723: #ifndef snprintf
10724: char *p = (char *) snprintf;
10725: #endif
10726:
10727: ;
10728: return 0;
10729: }
10730: _ACEOF
10731: rm -f conftest.$ac_objext
10732: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733: (eval $ac_compile) 2>&5
10734: ac_status=$?
10735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736: (exit $ac_status); } &&
10737: { ac_try='test -s conftest.$ac_objext'
10738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739: (eval $ac_try) 2>&5
10740: ac_status=$?
10741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742: (exit $ac_status); }; }; then
10743: ac_cv_have_decl_snprintf=yes
10744: else
10745: echo "$as_me: failed program was:" >&5
10746: cat conftest.$ac_ext >&5
10747: ac_cv_have_decl_snprintf=no
10748: fi
10749: rm -f conftest.$ac_objext conftest.$ac_ext
10750: fi
10751: echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10752: echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10753: if test $ac_cv_have_decl_snprintf = yes; then
10754:
10755: cat >>confdefs.h <<_ACEOF
10756: #define HAVE_DECL_SNPRINTF 1
10757: _ACEOF
10758:
10759:
10760: else
10761: cat >>confdefs.h <<_ACEOF
10762: #define HAVE_DECL_SNPRINTF 0
10763: _ACEOF
10764:
10765:
1.1 petere 10766: fi
1.179 petere 10767: echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10768: echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10769: if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10770: echo $ECHO_N "(cached) $ECHO_C" >&6
10771: else
10772: cat >conftest.$ac_ext <<_ACEOF
10773: #line $LINENO "configure"
10774: #include "confdefs.h"
10775: $ac_includes_default
10776: #ifdef F77_DUMMY_MAIN
10777: # ifdef __cplusplus
10778: extern "C"
10779: # endif
10780: int F77_DUMMY_MAIN() { return 1; }
10781: #endif
10782: int
10783: main ()
10784: {
10785: #ifndef vsnprintf
10786: char *p = (char *) vsnprintf;
10787: #endif
10788:
10789: ;
10790: return 0;
10791: }
10792: _ACEOF
10793: rm -f conftest.$ac_objext
10794: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795: (eval $ac_compile) 2>&5
10796: ac_status=$?
10797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798: (exit $ac_status); } &&
10799: { ac_try='test -s conftest.$ac_objext'
10800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801: (eval $ac_try) 2>&5
10802: ac_status=$?
10803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804: (exit $ac_status); }; }; then
10805: ac_cv_have_decl_vsnprintf=yes
10806: else
10807: echo "$as_me: failed program was:" >&5
10808: cat conftest.$ac_ext >&5
10809: ac_cv_have_decl_vsnprintf=no
10810: fi
10811: rm -f conftest.$ac_objext conftest.$ac_ext
10812: fi
10813: echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10814: echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10815: if test $ac_cv_have_decl_vsnprintf = yes; then
10816:
10817: cat >>confdefs.h <<_ACEOF
10818: #define HAVE_DECL_VSNPRINTF 1
10819: _ACEOF
1.1 petere 10820:
10821:
10822: else
1.179 petere 10823: cat >>confdefs.h <<_ACEOF
10824: #define HAVE_DECL_VSNPRINTF 0
10825: _ACEOF
10826:
10827:
1.1 petere 10828: fi
10829:
10830:
1.179 petere 10831:
10832:
10833: # do this one the hard way in case isinf() is a macro
10834: echo "$as_me:$LINENO: checking for isinf" >&5
10835: echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10836: if test "${ac_cv_func_isinf+set}" = set; then
10837: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10838: else
1.179 petere 10839: cat >conftest.$ac_ext <<_ACEOF
10840: #line $LINENO "configure"
1.1 petere 10841: #include "confdefs.h"
1.179 petere 10842: #include <math.h>
1.1 petere 10843:
1.179 petere 10844: #ifdef F77_DUMMY_MAIN
10845: # ifdef __cplusplus
10846: extern "C"
10847: # endif
10848: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10849: #endif
1.179 petere 10850: int
10851: main ()
10852: {
10853: double x = 0.0; int res = isinf(x);
10854: ;
10855: return 0;
10856: }
10857: _ACEOF
10858: rm -f conftest.$ac_objext conftest$ac_exeext
10859: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860: (eval $ac_link) 2>&5
10861: ac_status=$?
10862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863: (exit $ac_status); } &&
10864: { ac_try='test -s conftest$ac_exeext'
10865: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866: (eval $ac_try) 2>&5
10867: ac_status=$?
10868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869: (exit $ac_status); }; }; then
10870: ac_cv_func_isinf=yes
1.1 petere 10871: else
1.179 petere 10872: echo "$as_me: failed program was:" >&5
10873: cat conftest.$ac_ext >&5
10874: ac_cv_func_isinf=no
1.1 petere 10875: fi
1.179 petere 10876: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10877: fi
1.179 petere 10878: echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10879: echo "${ECHO_T}$ac_cv_func_isinf" >&6
10880:
10881: if test $ac_cv_func_isinf = yes ; then
1.1 petere 10882:
1.179 petere 10883: cat >>confdefs.h <<\_ACEOF
10884: #define HAVE_ISINF 1
10885: _ACEOF
1.1 petere 10886:
1.179 petere 10887: ISINF=
1.1 petere 10888: else
1.179 petere 10889: ISINF='isinf.o'
10890: # Look for a way to implement a substitute for isinf()
10891:
10892:
1.1 petere 10893:
10894:
1.179 petere 10895: for ac_func in fpclass fp_class fp_class_d class
10896: do
10897: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10898: echo "$as_me:$LINENO: checking for $ac_func" >&5
10899: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10900: if eval "test \"\${$as_ac_var+set}\" = set"; then
10901: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10902: else
1.179 petere 10903: cat >conftest.$ac_ext <<_ACEOF
10904: #line $LINENO "configure"
1.1 petere 10905: #include "confdefs.h"
10906: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10907: which can conflict with char $ac_func (); below. */
1.1 petere 10908: #include <assert.h>
10909: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10910: #ifdef __cplusplus
10911: extern "C"
10912: #endif
1.1 petere 10913: /* We use char because int might match the return type of a gcc2
1.179 petere 10914: builtin and then its argument prototype would still apply. */
10915: char $ac_func ();
10916: char (*f) ();
10917:
10918: #ifdef F77_DUMMY_MAIN
10919: # ifdef __cplusplus
10920: extern "C"
10921: # endif
10922: int F77_DUMMY_MAIN() { return 1; }
10923: #endif
10924: int
10925: main ()
10926: {
1.1 petere 10927: /* The GNU C library defines this for functions which it implements
10928: to always fail with ENOSYS. Some functions are actually named
10929: something starting with __ and the normal name is an alias. */
1.179 petere 10930: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10931: choke me
10932: #else
1.179 petere 10933: f = $ac_func;
1.1 petere 10934: #endif
10935:
1.179 petere 10936: ;
10937: return 0;
10938: }
10939: _ACEOF
10940: rm -f conftest.$ac_objext conftest$ac_exeext
10941: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942: (eval $ac_link) 2>&5
10943: ac_status=$?
10944: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945: (exit $ac_status); } &&
10946: { ac_try='test -s conftest$ac_exeext'
10947: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948: (eval $ac_try) 2>&5
10949: ac_status=$?
10950: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951: (exit $ac_status); }; }; then
10952: eval "$as_ac_var=yes"
10953: else
10954: echo "$as_me: failed program was:" >&5
10955: cat conftest.$ac_ext >&5
10956: eval "$as_ac_var=no"
10957: fi
10958: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10959: fi
10960: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10961: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10962: if test `eval echo '${'$as_ac_var'}'` = yes; then
10963: cat >>confdefs.h <<_ACEOF
10964: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10965: _ACEOF
10966: break
1.1 petere 10967: fi
1.179 petere 10968: done
10969:
1.1 petere 10970: fi
10971:
10972:
10973:
10974:
1.179 petere 10975: for ac_func in getrusage
10976: do
10977: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10978: echo "$as_me:$LINENO: checking for $ac_func" >&5
10979: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10980: if eval "test \"\${$as_ac_var+set}\" = set"; then
10981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10982: else
1.179 petere 10983: cat >conftest.$ac_ext <<_ACEOF
10984: #line $LINENO "configure"
1.1 petere 10985: #include "confdefs.h"
10986: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10987: which can conflict with char $ac_func (); below. */
1.1 petere 10988: #include <assert.h>
10989: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10990: #ifdef __cplusplus
10991: extern "C"
10992: #endif
1.1 petere 10993: /* We use char because int might match the return type of a gcc2
1.179 petere 10994: builtin and then its argument prototype would still apply. */
10995: char $ac_func ();
10996: char (*f) ();
10997:
10998: #ifdef F77_DUMMY_MAIN
10999: # ifdef __cplusplus
11000: extern "C"
11001: # endif
11002: int F77_DUMMY_MAIN() { return 1; }
11003: #endif
11004: int
11005: main ()
11006: {
1.1 petere 11007: /* The GNU C library defines this for functions which it implements
11008: to always fail with ENOSYS. Some functions are actually named
11009: something starting with __ and the normal name is an alias. */
1.179 petere 11010: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11011: choke me
11012: #else
1.179 petere 11013: f = $ac_func;
1.1 petere 11014: #endif
11015:
1.179 petere 11016: ;
11017: return 0;
11018: }
11019: _ACEOF
11020: rm -f conftest.$ac_objext conftest$ac_exeext
11021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022: (eval $ac_link) 2>&5
11023: ac_status=$?
11024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025: (exit $ac_status); } &&
11026: { ac_try='test -s conftest$ac_exeext'
11027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028: (eval $ac_try) 2>&5
11029: ac_status=$?
11030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031: (exit $ac_status); }; }; then
11032: eval "$as_ac_var=yes"
11033: else
11034: echo "$as_me: failed program was:" >&5
11035: cat conftest.$ac_ext >&5
11036: eval "$as_ac_var=no"
11037: fi
11038: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11039: fi
11040: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11041: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11042: if test `eval echo '${'$as_ac_var'}'` = yes; then
11043: cat >>confdefs.h <<_ACEOF
11044: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045: _ACEOF
11046:
1.1 petere 11047: else
1.179 petere 11048: GETRUSAGE='getrusage.o'
1.1 petere 11049: fi
1.179 petere 11050: done
1.1 petere 11051:
11052:
11053:
1.179 petere 11054: for ac_func in srandom
11055: do
11056: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057: echo "$as_me:$LINENO: checking for $ac_func" >&5
11058: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11059: if eval "test \"\${$as_ac_var+set}\" = set"; then
11060: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11061: else
1.179 petere 11062: cat >conftest.$ac_ext <<_ACEOF
11063: #line $LINENO "configure"
1.1 petere 11064: #include "confdefs.h"
11065: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11066: which can conflict with char $ac_func (); below. */
1.1 petere 11067: #include <assert.h>
11068: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11069: #ifdef __cplusplus
11070: extern "C"
11071: #endif
1.1 petere 11072: /* We use char because int might match the return type of a gcc2
1.179 petere 11073: builtin and then its argument prototype would still apply. */
11074: char $ac_func ();
11075: char (*f) ();
11076:
11077: #ifdef F77_DUMMY_MAIN
11078: # ifdef __cplusplus
11079: extern "C"
11080: # endif
11081: int F77_DUMMY_MAIN() { return 1; }
11082: #endif
11083: int
11084: main ()
11085: {
1.1 petere 11086: /* The GNU C library defines this for functions which it implements
11087: to always fail with ENOSYS. Some functions are actually named
11088: something starting with __ and the normal name is an alias. */
1.179 petere 11089: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11090: choke me
11091: #else
1.179 petere 11092: f = $ac_func;
1.1 petere 11093: #endif
11094:
1.179 petere 11095: ;
11096: return 0;
11097: }
11098: _ACEOF
11099: rm -f conftest.$ac_objext conftest$ac_exeext
11100: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101: (eval $ac_link) 2>&5
11102: ac_status=$?
11103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104: (exit $ac_status); } &&
11105: { ac_try='test -s conftest$ac_exeext'
11106: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107: (eval $ac_try) 2>&5
11108: ac_status=$?
11109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110: (exit $ac_status); }; }; then
11111: eval "$as_ac_var=yes"
11112: else
11113: echo "$as_me: failed program was:" >&5
11114: cat conftest.$ac_ext >&5
11115: eval "$as_ac_var=no"
11116: fi
11117: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118: fi
11119: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11120: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11121: if test `eval echo '${'$as_ac_var'}'` = yes; then
11122: cat >>confdefs.h <<_ACEOF
11123: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11124: _ACEOF
11125:
1.1 petere 11126: else
1.179 petere 11127: SRANDOM='srandom.o'
1.1 petere 11128: fi
1.179 petere 11129: done
1.1 petere 11130:
11131:
11132:
1.179 petere 11133: for ac_func in gethostname
11134: do
11135: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11136: echo "$as_me:$LINENO: checking for $ac_func" >&5
11137: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11138: if eval "test \"\${$as_ac_var+set}\" = set"; then
11139: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11140: else
1.179 petere 11141: cat >conftest.$ac_ext <<_ACEOF
11142: #line $LINENO "configure"
1.1 petere 11143: #include "confdefs.h"
11144: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11145: which can conflict with char $ac_func (); below. */
1.1 petere 11146: #include <assert.h>
11147: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11148: #ifdef __cplusplus
11149: extern "C"
11150: #endif
1.1 petere 11151: /* We use char because int might match the return type of a gcc2
1.179 petere 11152: builtin and then its argument prototype would still apply. */
11153: char $ac_func ();
11154: char (*f) ();
11155:
11156: #ifdef F77_DUMMY_MAIN
11157: # ifdef __cplusplus
11158: extern "C"
11159: # endif
11160: int F77_DUMMY_MAIN() { return 1; }
11161: #endif
11162: int
11163: main ()
11164: {
1.1 petere 11165: /* The GNU C library defines this for functions which it implements
11166: to always fail with ENOSYS. Some functions are actually named
11167: something starting with __ and the normal name is an alias. */
1.179 petere 11168: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11169: choke me
11170: #else
1.179 petere 11171: f = $ac_func;
1.1 petere 11172: #endif
11173:
1.179 petere 11174: ;
11175: return 0;
11176: }
11177: _ACEOF
11178: rm -f conftest.$ac_objext conftest$ac_exeext
11179: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180: (eval $ac_link) 2>&5
11181: ac_status=$?
11182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183: (exit $ac_status); } &&
11184: { ac_try='test -s conftest$ac_exeext'
11185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186: (eval $ac_try) 2>&5
11187: ac_status=$?
11188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189: (exit $ac_status); }; }; then
11190: eval "$as_ac_var=yes"
11191: else
11192: echo "$as_me: failed program was:" >&5
11193: cat conftest.$ac_ext >&5
11194: eval "$as_ac_var=no"
11195: fi
11196: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11197: fi
11198: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11199: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11200: if test `eval echo '${'$as_ac_var'}'` = yes; then
11201: cat >>confdefs.h <<_ACEOF
11202: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11203: _ACEOF
11204:
1.1 petere 11205: else
1.179 petere 11206: GETHOSTNAME='gethostname.o'
1.1 petere 11207: fi
1.179 petere 11208: done
1.1 petere 11209:
1.179 petere 11210:
11211:
11212: for ac_func in random
11213: do
11214: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215: echo "$as_me:$LINENO: checking for $ac_func" >&5
11216: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11217: if eval "test \"\${$as_ac_var+set}\" = set"; then
11218: echo $ECHO_N "(cached) $ECHO_C" >&6
11219: else
11220: cat >conftest.$ac_ext <<_ACEOF
11221: #line $LINENO "configure"
11222: #include "confdefs.h"
11223: /* System header to define __stub macros and hopefully few prototypes,
11224: which can conflict with char $ac_func (); below. */
11225: #include <assert.h>
11226: /* Override any gcc2 internal prototype to avoid an error. */
11227: #ifdef __cplusplus
11228: extern "C"
11229: #endif
11230: /* We use char because int might match the return type of a gcc2
11231: builtin and then its argument prototype would still apply. */
11232: char $ac_func ();
11233: char (*f) ();
11234:
11235: #ifdef F77_DUMMY_MAIN
11236: # ifdef __cplusplus
11237: extern "C"
11238: # endif
11239: int F77_DUMMY_MAIN() { return 1; }
11240: #endif
11241: int
11242: main ()
11243: {
11244: /* The GNU C library defines this for functions which it implements
11245: to always fail with ENOSYS. Some functions are actually named
11246: something starting with __ and the normal name is an alias. */
11247: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11248: choke me
11249: #else
11250: f = $ac_func;
11251: #endif
11252:
11253: ;
11254: return 0;
11255: }
11256: _ACEOF
11257: rm -f conftest.$ac_objext conftest$ac_exeext
11258: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259: (eval $ac_link) 2>&5
11260: ac_status=$?
11261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262: (exit $ac_status); } &&
11263: { ac_try='test -s conftest$ac_exeext'
11264: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265: (eval $ac_try) 2>&5
11266: ac_status=$?
11267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268: (exit $ac_status); }; }; then
11269: eval "$as_ac_var=yes"
11270: else
11271: echo "$as_me: failed program was:" >&5
11272: cat conftest.$ac_ext >&5
11273: eval "$as_ac_var=no"
11274: fi
11275: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11276: fi
11277: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11278: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11279: if test `eval echo '${'$as_ac_var'}'` = yes; then
11280: cat >>confdefs.h <<_ACEOF
11281: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11282: _ACEOF
1.1 petere 11283:
11284: else
1.179 petere 11285: MISSING_RANDOM='random.o'
1.1 petere 11286: fi
1.179 petere 11287: done
1.1 petere 11288:
11289:
1.179 petere 11290:
11291: for ac_func in inet_aton
11292: do
11293: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294: echo "$as_me:$LINENO: checking for $ac_func" >&5
11295: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11296: if eval "test \"\${$as_ac_var+set}\" = set"; then
11297: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11298: else
1.179 petere 11299: cat >conftest.$ac_ext <<_ACEOF
11300: #line $LINENO "configure"
1.1 petere 11301: #include "confdefs.h"
11302: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11303: which can conflict with char $ac_func (); below. */
1.1 petere 11304: #include <assert.h>
11305: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11306: #ifdef __cplusplus
11307: extern "C"
11308: #endif
1.1 petere 11309: /* We use char because int might match the return type of a gcc2
1.179 petere 11310: builtin and then its argument prototype would still apply. */
11311: char $ac_func ();
11312: char (*f) ();
11313:
11314: #ifdef F77_DUMMY_MAIN
11315: # ifdef __cplusplus
11316: extern "C"
11317: # endif
11318: int F77_DUMMY_MAIN() { return 1; }
11319: #endif
11320: int
11321: main ()
11322: {
11323: /* The GNU C library defines this for functions which it implements
11324: to always fail with ENOSYS. Some functions are actually named
11325: something starting with __ and the normal name is an alias. */
11326: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327: choke me
11328: #else
11329: f = $ac_func;
11330: #endif
11331:
11332: ;
11333: return 0;
11334: }
11335: _ACEOF
11336: rm -f conftest.$ac_objext conftest$ac_exeext
11337: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11338: (eval $ac_link) 2>&5
11339: ac_status=$?
11340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341: (exit $ac_status); } &&
11342: { ac_try='test -s conftest$ac_exeext'
11343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344: (eval $ac_try) 2>&5
11345: ac_status=$?
11346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347: (exit $ac_status); }; }; then
11348: eval "$as_ac_var=yes"
11349: else
11350: echo "$as_me: failed program was:" >&5
11351: cat conftest.$ac_ext >&5
11352: eval "$as_ac_var=no"
11353: fi
11354: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11355: fi
11356: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11357: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11358: if test `eval echo '${'$as_ac_var'}'` = yes; then
11359: cat >>confdefs.h <<_ACEOF
11360: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11361: _ACEOF
11362:
11363: else
11364: INET_ATON='inet_aton.o'
11365: fi
11366: done
11367:
1.1 petere 11368:
11369:
1.179 petere 11370: for ac_func in strerror
11371: do
11372: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373: echo "$as_me:$LINENO: checking for $ac_func" >&5
11374: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375: if eval "test \"\${$as_ac_var+set}\" = set"; then
11376: echo $ECHO_N "(cached) $ECHO_C" >&6
11377: else
11378: cat >conftest.$ac_ext <<_ACEOF
11379: #line $LINENO "configure"
11380: #include "confdefs.h"
11381: /* System header to define __stub macros and hopefully few prototypes,
11382: which can conflict with char $ac_func (); below. */
11383: #include <assert.h>
11384: /* Override any gcc2 internal prototype to avoid an error. */
11385: #ifdef __cplusplus
11386: extern "C"
11387: #endif
11388: /* We use char because int might match the return type of a gcc2
11389: builtin and then its argument prototype would still apply. */
11390: char $ac_func ();
11391: char (*f) ();
11392:
11393: #ifdef F77_DUMMY_MAIN
11394: # ifdef __cplusplus
11395: extern "C"
11396: # endif
11397: int F77_DUMMY_MAIN() { return 1; }
11398: #endif
11399: int
11400: main ()
11401: {
1.1 petere 11402: /* The GNU C library defines this for functions which it implements
11403: to always fail with ENOSYS. Some functions are actually named
11404: something starting with __ and the normal name is an alias. */
1.179 petere 11405: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11406: choke me
11407: #else
1.179 petere 11408: f = $ac_func;
1.1 petere 11409: #endif
11410:
1.179 petere 11411: ;
11412: return 0;
11413: }
11414: _ACEOF
11415: rm -f conftest.$ac_objext conftest$ac_exeext
11416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417: (eval $ac_link) 2>&5
11418: ac_status=$?
11419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420: (exit $ac_status); } &&
11421: { ac_try='test -s conftest$ac_exeext'
11422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423: (eval $ac_try) 2>&5
11424: ac_status=$?
11425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426: (exit $ac_status); }; }; then
11427: eval "$as_ac_var=yes"
11428: else
11429: echo "$as_me: failed program was:" >&5
11430: cat conftest.$ac_ext >&5
11431: eval "$as_ac_var=no"
11432: fi
11433: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11434: fi
11435: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11436: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11437: if test `eval echo '${'$as_ac_var'}'` = yes; then
11438: cat >>confdefs.h <<_ACEOF
11439: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11440: _ACEOF
11441:
1.1 petere 11442: else
1.179 petere 11443: STRERROR='strerror.o'
1.1 petere 11444: fi
1.179 petere 11445: done
11446:
11447:
11448:
11449: for ac_func in strdup
11450: do
11451: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11452: echo "$as_me:$LINENO: checking for $ac_func" >&5
11453: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11454: if eval "test \"\${$as_ac_var+set}\" = set"; then
11455: echo $ECHO_N "(cached) $ECHO_C" >&6
11456: else
11457: cat >conftest.$ac_ext <<_ACEOF
11458: #line $LINENO "configure"
11459: #include "confdefs.h"
11460: /* System header to define __stub macros and hopefully few prototypes,
11461: which can conflict with char $ac_func (); below. */
11462: #include <assert.h>
11463: /* Override any gcc2 internal prototype to avoid an error. */
11464: #ifdef __cplusplus
11465: extern "C"
11466: #endif
11467: /* We use char because int might match the return type of a gcc2
11468: builtin and then its argument prototype would still apply. */
11469: char $ac_func ();
11470: char (*f) ();
11471:
11472: #ifdef F77_DUMMY_MAIN
11473: # ifdef __cplusplus
11474: extern "C"
11475: # endif
11476: int F77_DUMMY_MAIN() { return 1; }
11477: #endif
11478: int
11479: main ()
11480: {
11481: /* The GNU C library defines this for functions which it implements
11482: to always fail with ENOSYS. Some functions are actually named
11483: something starting with __ and the normal name is an alias. */
11484: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11485: choke me
11486: #else
11487: f = $ac_func;
11488: #endif
11489:
11490: ;
11491: return 0;
11492: }
11493: _ACEOF
11494: rm -f conftest.$ac_objext conftest$ac_exeext
11495: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496: (eval $ac_link) 2>&5
11497: ac_status=$?
11498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499: (exit $ac_status); } &&
11500: { ac_try='test -s conftest$ac_exeext'
11501: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502: (eval $ac_try) 2>&5
11503: ac_status=$?
11504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505: (exit $ac_status); }; }; then
11506: eval "$as_ac_var=yes"
11507: else
11508: echo "$as_me: failed program was:" >&5
11509: cat conftest.$ac_ext >&5
11510: eval "$as_ac_var=no"
11511: fi
11512: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11513: fi
11514: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11515: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11516: if test `eval echo '${'$as_ac_var'}'` = yes; then
11517: cat >>confdefs.h <<_ACEOF
11518: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519: _ACEOF
11520:
11521: else
11522: STRDUP='../../utils/strdup.o'
1.1 petere 11523: fi
1.179 petere 11524: done
11525:
11526:
11527:
11528: for ac_func in strtol
11529: do
11530: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531: echo "$as_me:$LINENO: checking for $ac_func" >&5
11532: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11533: if eval "test \"\${$as_ac_var+set}\" = set"; then
11534: echo $ECHO_N "(cached) $ECHO_C" >&6
11535: else
11536: cat >conftest.$ac_ext <<_ACEOF
11537: #line $LINENO "configure"
11538: #include "confdefs.h"
11539: /* System header to define __stub macros and hopefully few prototypes,
11540: which can conflict with char $ac_func (); below. */
11541: #include <assert.h>
11542: /* Override any gcc2 internal prototype to avoid an error. */
11543: #ifdef __cplusplus
11544: extern "C"
11545: #endif
11546: /* We use char because int might match the return type of a gcc2
11547: builtin and then its argument prototype would still apply. */
11548: char $ac_func ();
11549: char (*f) ();
11550:
11551: #ifdef F77_DUMMY_MAIN
11552: # ifdef __cplusplus
11553: extern "C"
11554: # endif
11555: int F77_DUMMY_MAIN() { return 1; }
11556: #endif
11557: int
11558: main ()
11559: {
11560: /* The GNU C library defines this for functions which it implements
11561: to always fail with ENOSYS. Some functions are actually named
11562: something starting with __ and the normal name is an alias. */
11563: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11564: choke me
11565: #else
11566: f = $ac_func;
11567: #endif
1.1 petere 11568:
1.179 petere 11569: ;
11570: return 0;
11571: }
11572: _ACEOF
11573: rm -f conftest.$ac_objext conftest$ac_exeext
11574: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575: (eval $ac_link) 2>&5
11576: ac_status=$?
11577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578: (exit $ac_status); } &&
11579: { ac_try='test -s conftest$ac_exeext'
11580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581: (eval $ac_try) 2>&5
11582: ac_status=$?
11583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584: (exit $ac_status); }; }; then
11585: eval "$as_ac_var=yes"
11586: else
11587: echo "$as_me: failed program was:" >&5
11588: cat conftest.$ac_ext >&5
11589: eval "$as_ac_var=no"
11590: fi
11591: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11592: fi
11593: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11594: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11595: if test `eval echo '${'$as_ac_var'}'` = yes; then
11596: cat >>confdefs.h <<_ACEOF
11597: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11598: _ACEOF
1.1 petere 11599:
11600: else
1.179 petere 11601: STRTOL='strtol.o'
11602: fi
11603: done
11604:
11605:
11606:
11607: for ac_func in strtoul
11608: do
11609: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610: echo "$as_me:$LINENO: checking for $ac_func" >&5
11611: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11612: if eval "test \"\${$as_ac_var+set}\" = set"; then
11613: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11614: else
1.179 petere 11615: cat >conftest.$ac_ext <<_ACEOF
11616: #line $LINENO "configure"
1.1 petere 11617: #include "confdefs.h"
1.179 petere 11618: /* System header to define __stub macros and hopefully few prototypes,
11619: which can conflict with char $ac_func (); below. */
11620: #include <assert.h>
1.1 petere 11621: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11622: #ifdef __cplusplus
11623: extern "C"
11624: #endif
1.1 petere 11625: /* We use char because int might match the return type of a gcc2
1.179 petere 11626: builtin and then its argument prototype would still apply. */
11627: char $ac_func ();
11628: char (*f) ();
11629:
11630: #ifdef F77_DUMMY_MAIN
11631: # ifdef __cplusplus
11632: extern "C"
11633: # endif
11634: int F77_DUMMY_MAIN() { return 1; }
11635: #endif
11636: int
11637: main ()
11638: {
11639: /* The GNU C library defines this for functions which it implements
11640: to always fail with ENOSYS. Some functions are actually named
11641: something starting with __ and the normal name is an alias. */
11642: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11643: choke me
11644: #else
11645: f = $ac_func;
11646: #endif
11647:
11648: ;
11649: return 0;
11650: }
11651: _ACEOF
11652: rm -f conftest.$ac_objext conftest$ac_exeext
11653: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654: (eval $ac_link) 2>&5
11655: ac_status=$?
11656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657: (exit $ac_status); } &&
11658: { ac_try='test -s conftest$ac_exeext'
11659: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660: (eval $ac_try) 2>&5
11661: ac_status=$?
11662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663: (exit $ac_status); }; }; then
11664: eval "$as_ac_var=yes"
11665: else
11666: echo "$as_me: failed program was:" >&5
11667: cat conftest.$ac_ext >&5
11668: eval "$as_ac_var=no"
11669: fi
11670: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11671: fi
11672: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11673: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11674: if test `eval echo '${'$as_ac_var'}'` = yes; then
11675: cat >>confdefs.h <<_ACEOF
11676: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677: _ACEOF
1.1 petere 11678:
11679: else
1.179 petere 11680: STRTOUL='strtoul.o'
1.1 petere 11681: fi
1.179 petere 11682: done
11683:
11684:
11685:
11686: for ac_func in strcasecmp
11687: do
11688: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689: echo "$as_me:$LINENO: checking for $ac_func" >&5
11690: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11691: if eval "test \"\${$as_ac_var+set}\" = set"; then
11692: echo $ECHO_N "(cached) $ECHO_C" >&6
11693: else
11694: cat >conftest.$ac_ext <<_ACEOF
11695: #line $LINENO "configure"
11696: #include "confdefs.h"
11697: /* System header to define __stub macros and hopefully few prototypes,
11698: which can conflict with char $ac_func (); below. */
11699: #include <assert.h>
11700: /* Override any gcc2 internal prototype to avoid an error. */
11701: #ifdef __cplusplus
11702: extern "C"
11703: #endif
11704: /* We use char because int might match the return type of a gcc2
11705: builtin and then its argument prototype would still apply. */
11706: char $ac_func ();
11707: char (*f) ();
11708:
11709: #ifdef F77_DUMMY_MAIN
11710: # ifdef __cplusplus
11711: extern "C"
11712: # endif
11713: int F77_DUMMY_MAIN() { return 1; }
11714: #endif
11715: int
11716: main ()
11717: {
11718: /* The GNU C library defines this for functions which it implements
11719: to always fail with ENOSYS. Some functions are actually named
11720: something starting with __ and the normal name is an alias. */
11721: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11722: choke me
11723: #else
11724: f = $ac_func;
11725: #endif
1.1 petere 11726:
1.179 petere 11727: ;
11728: return 0;
11729: }
11730: _ACEOF
11731: rm -f conftest.$ac_objext conftest$ac_exeext
11732: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733: (eval $ac_link) 2>&5
11734: ac_status=$?
11735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736: (exit $ac_status); } &&
11737: { ac_try='test -s conftest$ac_exeext'
11738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739: (eval $ac_try) 2>&5
11740: ac_status=$?
11741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742: (exit $ac_status); }; }; then
11743: eval "$as_ac_var=yes"
11744: else
11745: echo "$as_me: failed program was:" >&5
11746: cat conftest.$ac_ext >&5
11747: eval "$as_ac_var=no"
11748: fi
11749: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11750: fi
11751: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11752: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753: if test `eval echo '${'$as_ac_var'}'` = yes; then
11754: cat >>confdefs.h <<_ACEOF
11755: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756: _ACEOF
1.1 petere 11757:
11758: else
1.179 petere 11759: STRCASECMP='strcasecmp.o'
1.1 petere 11760: fi
1.179 petere 11761: done
1.1 petere 11762:
11763:
11764:
11765: # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11766: # this hackery with HPUXMATHLIB allows us to cope.
11767: HPUXMATHLIB=""
1.30 petere 11768: case $host_cpu in
1.179 petere 11769: hppa1.1)
1.1 petere 11770: if [ -r /lib/pa1.1/libm.a ] ; then
11771: HPUXMATHLIB="-L /lib/pa1.1 -lm"
11772: fi ;;
11773: esac
11774:
11775:
1.179 petere 11776:
11777: for ac_func in rint
11778: do
11779: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780: echo "$as_me:$LINENO: checking for $ac_func" >&5
11781: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11782: if eval "test \"\${$as_ac_var+set}\" = set"; then
11783: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11784: else
1.179 petere 11785: cat >conftest.$ac_ext <<_ACEOF
11786: #line $LINENO "configure"
1.1 petere 11787: #include "confdefs.h"
11788: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11789: which can conflict with char $ac_func (); below. */
1.1 petere 11790: #include <assert.h>
11791: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11792: #ifdef __cplusplus
11793: extern "C"
11794: #endif
1.1 petere 11795: /* We use char because int might match the return type of a gcc2
1.179 petere 11796: builtin and then its argument prototype would still apply. */
11797: char $ac_func ();
11798: char (*f) ();
11799:
11800: #ifdef F77_DUMMY_MAIN
11801: # ifdef __cplusplus
11802: extern "C"
11803: # endif
11804: int F77_DUMMY_MAIN() { return 1; }
11805: #endif
11806: int
11807: main ()
11808: {
1.1 petere 11809: /* The GNU C library defines this for functions which it implements
11810: to always fail with ENOSYS. Some functions are actually named
11811: something starting with __ and the normal name is an alias. */
1.179 petere 11812: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11813: choke me
11814: #else
1.179 petere 11815: f = $ac_func;
1.1 petere 11816: #endif
11817:
1.179 petere 11818: ;
11819: return 0;
11820: }
11821: _ACEOF
11822: rm -f conftest.$ac_objext conftest$ac_exeext
11823: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824: (eval $ac_link) 2>&5
11825: ac_status=$?
11826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827: (exit $ac_status); } &&
11828: { ac_try='test -s conftest$ac_exeext'
11829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830: (eval $ac_try) 2>&5
11831: ac_status=$?
11832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833: (exit $ac_status); }; }; then
11834: eval "$as_ac_var=yes"
11835: else
11836: echo "$as_me: failed program was:" >&5
11837: cat conftest.$ac_ext >&5
11838: eval "$as_ac_var=no"
11839: fi
11840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11841: fi
11842: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11843: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11844: if test `eval echo '${'$as_ac_var'}'` = yes; then
11845: cat >>confdefs.h <<_ACEOF
11846: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11847: _ACEOF
11848:
11849: else
11850: echo "$as_me:$LINENO: checking for rint in -lm" >&5
11851: echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11852: if test "${ac_cv_lib_m_rint+set}" = set; then
11853: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11854: else
1.179 petere 11855: ac_check_lib_save_LIBS=$LIBS
1.1 petere 11856: LIBS="-lm $HPUXMATHLIB $LIBS"
1.179 petere 11857: cat >conftest.$ac_ext <<_ACEOF
11858: #line $LINENO "configure"
1.1 petere 11859: #include "confdefs.h"
1.179 petere 11860:
1.1 petere 11861: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11862: #ifdef __cplusplus
11863: extern "C"
11864: #endif
1.1 petere 11865: /* We use char because int might match the return type of a gcc2
1.179 petere 11866: builtin and then its argument prototype would still apply. */
11867: char rint ();
11868: #ifdef F77_DUMMY_MAIN
11869: # ifdef __cplusplus
11870: extern "C"
11871: # endif
11872: int F77_DUMMY_MAIN() { return 1; }
11873: #endif
11874: int
11875: main ()
11876: {
11877: rint ();
11878: ;
11879: return 0;
11880: }
11881: _ACEOF
11882: rm -f conftest.$ac_objext conftest$ac_exeext
11883: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884: (eval $ac_link) 2>&5
11885: ac_status=$?
11886: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887: (exit $ac_status); } &&
11888: { ac_try='test -s conftest$ac_exeext'
11889: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890: (eval $ac_try) 2>&5
11891: ac_status=$?
11892: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893: (exit $ac_status); }; }; then
11894: ac_cv_lib_m_rint=yes
11895: else
11896: echo "$as_me: failed program was:" >&5
11897: cat conftest.$ac_ext >&5
11898: ac_cv_lib_m_rint=no
11899: fi
11900: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11901: LIBS=$ac_check_lib_save_LIBS
11902: fi
11903: echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11904: echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11905: if test $ac_cv_lib_m_rint = yes; then
11906: cat >>confdefs.h <<\_ACEOF
1.1 petere 11907: #define HAVE_RINT 1
1.179 petere 11908: _ACEOF
1.1 petere 11909:
11910: fi
11911:
11912: fi
1.179 petere 11913: done
1.1 petere 11914:
11915:
1.54 petere 11916:
1.186 petere 11917: if test "$with_readline" = yes; then
11918: echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
1.179 petere 11919: echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11920: cat >conftest.$ac_ext <<_ACEOF
11921: #line $LINENO "configure"
1.1 petere 11922: #include "confdefs.h"
1.54 petere 11923: #include <stdio.h>
11924: #ifdef HAVE_READLINE_READLINE_H
11925: # include <readline/readline.h>
1.124 petere 11926: #elif defined(HAVE_READLINE_H)
11927: # include <readline.h>
1.54 petere 11928: #endif
1.124 petere 11929:
1.179 petere 11930: #ifdef F77_DUMMY_MAIN
11931: # ifdef __cplusplus
11932: extern "C"
11933: # endif
11934: int F77_DUMMY_MAIN() { return 1; }
11935: #endif
11936: int
11937: main ()
11938: {
1.54 petere 11939: rl_completion_append_character = 'x';
1.179 petere 11940: ;
11941: return 0;
11942: }
11943: _ACEOF
11944: rm -f conftest.$ac_objext conftest$ac_exeext
11945: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946: (eval $ac_link) 2>&5
11947: ac_status=$?
11948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949: (exit $ac_status); } &&
11950: { ac_try='test -s conftest$ac_exeext'
11951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952: (eval $ac_try) 2>&5
11953: ac_status=$?
11954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955: (exit $ac_status); }; }; then
11956: echo "$as_me:$LINENO: result: yes" >&5
11957: echo "${ECHO_T}yes" >&6
11958:
11959: cat >>confdefs.h <<\_ACEOF
1.1 petere 11960: #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
1.179 petere 11961: _ACEOF
1.1 petere 11962:
11963: else
1.179 petere 11964: echo "$as_me: failed program was:" >&5
11965: cat conftest.$ac_ext >&5
11966: echo "$as_me:$LINENO: result: no" >&5
11967: echo "${ECHO_T}no" >&6
1.1 petere 11968: fi
1.179 petere 11969: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11970:
11971:
1.136 momjian 11972: for ac_func in rl_completion_matches rl_filename_completion_function
1.124 petere 11973: do
1.179 petere 11974: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975: echo "$as_me:$LINENO: checking for $ac_func" >&5
11976: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977: if eval "test \"\${$as_ac_var+set}\" = set"; then
11978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11979: else
1.179 petere 11980: cat >conftest.$ac_ext <<_ACEOF
11981: #line $LINENO "configure"
1.1 petere 11982: #include "confdefs.h"
1.124 petere 11983: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11984: which can conflict with char $ac_func (); below. */
1.124 petere 11985: #include <assert.h>
11986: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11987: #ifdef __cplusplus
11988: extern "C"
11989: #endif
1.124 petere 11990: /* We use char because int might match the return type of a gcc2
1.179 petere 11991: builtin and then its argument prototype would still apply. */
11992: char $ac_func ();
11993: char (*f) ();
11994:
11995: #ifdef F77_DUMMY_MAIN
11996: # ifdef __cplusplus
11997: extern "C"
11998: # endif
11999: int F77_DUMMY_MAIN() { return 1; }
12000: #endif
12001: int
12002: main ()
12003: {
1.124 petere 12004: /* The GNU C library defines this for functions which it implements
12005: to always fail with ENOSYS. Some functions are actually named
12006: something starting with __ and the normal name is an alias. */
12007: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008: choke me
12009: #else
1.179 petere 12010: f = $ac_func;
1.124 petere 12011: #endif
12012:
1.179 petere 12013: ;
12014: return 0;
12015: }
12016: _ACEOF
12017: rm -f conftest.$ac_objext conftest$ac_exeext
12018: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019: (eval $ac_link) 2>&5
12020: ac_status=$?
12021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022: (exit $ac_status); } &&
12023: { ac_try='test -s conftest$ac_exeext'
12024: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025: (eval $ac_try) 2>&5
12026: ac_status=$?
12027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028: (exit $ac_status); }; }; then
12029: eval "$as_ac_var=yes"
12030: else
12031: echo "$as_me: failed program was:" >&5
12032: cat conftest.$ac_ext >&5
12033: eval "$as_ac_var=no"
12034: fi
12035: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12036: fi
12037: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12038: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12039: if test `eval echo '${'$as_ac_var'}'` = yes; then
12040: cat >>confdefs.h <<_ACEOF
12041: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042: _ACEOF
1.1 petere 12043:
1.124 petere 12044: fi
12045: done
1.1 petere 12046:
1.186 petere 12047: fi
1.1 petere 12048:
12049:
1.179 petere 12050: echo "$as_me:$LINENO: checking for finite" >&5
12051: echo $ECHO_N "checking for finite... $ECHO_C" >&6
12052: cat >conftest.$ac_ext <<_ACEOF
12053: #line $LINENO "configure"
1.1 petere 12054: #include "confdefs.h"
12055: #include <math.h>
1.179 petere 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: {
1.1 petere 12065: int dummy=finite(1.0);
1.179 petere 12066: ;
12067: return 0;
12068: }
12069: _ACEOF
12070: rm -f conftest.$ac_objext conftest$ac_exeext
12071: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072: (eval $ac_link) 2>&5
12073: ac_status=$?
12074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075: (exit $ac_status); } &&
12076: { ac_try='test -s conftest$ac_exeext'
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:
12083: cat >>confdefs.h <<\_ACEOF
1.1 petere 12084: #define HAVE_FINITE 1
1.179 petere 12085: _ACEOF
12086:
12087: echo "$as_me:$LINENO: result: yes" >&5
12088: echo "${ECHO_T}yes" >&6
1.1 petere 12089: else
1.179 petere 12090: echo "$as_me: failed program was:" >&5
12091: cat conftest.$ac_ext >&5
12092: echo "$as_me:$LINENO: result: no" >&5
12093: echo "${ECHO_T}no" >&6
12094: fi
12095: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12096:
12097: echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12098: echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12099: cat >conftest.$ac_ext <<_ACEOF
12100: #line $LINENO "configure"
1.1 petere 12101: #include "confdefs.h"
12102: #include <setjmp.h>
1.179 petere 12103: #ifdef F77_DUMMY_MAIN
12104: # ifdef __cplusplus
12105: extern "C"
12106: # endif
12107: int F77_DUMMY_MAIN() { return 1; }
12108: #endif
12109: int
12110: main ()
12111: {
1.1 petere 12112: sigjmp_buf x; sigsetjmp(x, 1);
1.179 petere 12113: ;
12114: return 0;
12115: }
12116: _ACEOF
12117: rm -f conftest.$ac_objext conftest$ac_exeext
12118: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119: (eval $ac_link) 2>&5
12120: ac_status=$?
12121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122: (exit $ac_status); } &&
12123: { ac_try='test -s conftest$ac_exeext'
12124: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125: (eval $ac_try) 2>&5
12126: ac_status=$?
12127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128: (exit $ac_status); }; }; then
12129:
12130: cat >>confdefs.h <<\_ACEOF
1.1 petere 12131: #define HAVE_SIGSETJMP 1
1.179 petere 12132: _ACEOF
12133:
12134: echo "$as_me:$LINENO: result: yes" >&5
12135: echo "${ECHO_T}yes" >&6
1.1 petere 12136: else
1.179 petere 12137: echo "$as_me: failed program was:" >&5
12138: cat conftest.$ac_ext >&5
12139: echo "$as_me:$LINENO: result: no" >&5
12140: echo "${ECHO_T}no" >&6
1.1 petere 12141: fi
1.179 petere 12142: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143:
1.191 ! ishii 12144: echo "$as_me:$LINENO: checking for syslog" >&5
! 12145: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
! 12146: if test "${ac_cv_func_syslog+set}" = set; then
1.179 petere 12147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 12148: else
1.179 petere 12149: cat >conftest.$ac_ext <<_ACEOF
12150: #line $LINENO "configure"
1.1 petere 12151: #include "confdefs.h"
12152: /* System header to define __stub macros and hopefully few prototypes,
1.191 ! ishii 12153: which can conflict with char syslog (); below. */
1.1 petere 12154: #include <assert.h>
12155: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12156: #ifdef __cplusplus
12157: extern "C"
12158: #endif
1.1 petere 12159: /* We use char because int might match the return type of a gcc2
1.179 petere 12160: builtin and then its argument prototype would still apply. */
1.191 ! ishii 12161: char syslog ();
1.179 petere 12162: char (*f) ();
12163:
12164: #ifdef F77_DUMMY_MAIN
12165: # ifdef __cplusplus
12166: extern "C"
12167: # endif
12168: int F77_DUMMY_MAIN() { return 1; }
12169: #endif
12170: int
12171: main ()
12172: {
1.1 petere 12173: /* The GNU C library defines this for functions which it implements
12174: to always fail with ENOSYS. Some functions are actually named
12175: something starting with __ and the normal name is an alias. */
1.191 ! ishii 12176: #if defined (__stub_syslog) || defined (__stub___syslog)
1.1 petere 12177: choke me
12178: #else
1.191 ! ishii 12179: f = syslog;
1.1 petere 12180: #endif
12181:
1.179 petere 12182: ;
12183: return 0;
12184: }
12185: _ACEOF
12186: rm -f conftest.$ac_objext conftest$ac_exeext
12187: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188: (eval $ac_link) 2>&5
12189: ac_status=$?
12190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191: (exit $ac_status); } &&
12192: { ac_try='test -s conftest$ac_exeext'
12193: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194: (eval $ac_try) 2>&5
12195: ac_status=$?
12196: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197: (exit $ac_status); }; }; then
1.191 ! ishii 12198: ac_cv_func_syslog=yes
1.179 petere 12199: else
12200: echo "$as_me: failed program was:" >&5
12201: cat conftest.$ac_ext >&5
1.191 ! ishii 12202: ac_cv_func_syslog=no
1.179 petere 12203: fi
12204: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12205: fi
1.191 ! ishii 12206: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
! 12207: echo "${ECHO_T}$ac_cv_func_syslog" >&6
! 12208: if test $ac_cv_func_syslog = yes; then
! 12209: if test "${ac_cv_header_syslog_h+set}" = set; then
! 12210: echo "$as_me:$LINENO: checking for syslog.h" >&5
! 12211: echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
! 12212: if test "${ac_cv_header_syslog_h+set}" = set; then
! 12213: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12214: fi
! 12215: echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
! 12216: echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
! 12217: else
! 12218: # Is the header compilable?
! 12219: echo "$as_me:$LINENO: checking syslog.h usability" >&5
! 12220: echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
! 12221: cat >conftest.$ac_ext <<_ACEOF
! 12222: #line $LINENO "configure"
! 12223: #include "confdefs.h"
! 12224: $ac_includes_default
! 12225: #include <syslog.h>
! 12226: _ACEOF
! 12227: rm -f conftest.$ac_objext
! 12228: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12229: (eval $ac_compile) 2>&5
! 12230: ac_status=$?
! 12231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12232: (exit $ac_status); } &&
! 12233: { ac_try='test -s conftest.$ac_objext'
! 12234: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12235: (eval $ac_try) 2>&5
! 12236: ac_status=$?
! 12237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12238: (exit $ac_status); }; }; then
! 12239: ac_header_compiler=yes
! 12240: else
! 12241: echo "$as_me: failed program was:" >&5
! 12242: cat conftest.$ac_ext >&5
! 12243: ac_header_compiler=no
! 12244: fi
! 12245: rm -f conftest.$ac_objext conftest.$ac_ext
! 12246: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 12247: echo "${ECHO_T}$ac_header_compiler" >&6
! 12248:
! 12249: # Is the header present?
! 12250: echo "$as_me:$LINENO: checking syslog.h presence" >&5
! 12251: echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
! 12252: cat >conftest.$ac_ext <<_ACEOF
! 12253: #line $LINENO "configure"
! 12254: #include "confdefs.h"
! 12255: #include <syslog.h>
! 12256: _ACEOF
! 12257: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 12258: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 12259: ac_status=$?
! 12260: egrep -v '^ *\+' conftest.er1 >conftest.err
! 12261: rm -f conftest.er1
! 12262: cat conftest.err >&5
! 12263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12264: (exit $ac_status); } >/dev/null; then
! 12265: if test -s conftest.err; then
! 12266: ac_cpp_err=$ac_c_preproc_warn_flag
! 12267: else
! 12268: ac_cpp_err=
! 12269: fi
! 12270: else
! 12271: ac_cpp_err=yes
! 12272: fi
! 12273: if test -z "$ac_cpp_err"; then
! 12274: ac_header_preproc=yes
! 12275: else
! 12276: echo "$as_me: failed program was:" >&5
! 12277: cat conftest.$ac_ext >&5
! 12278: ac_header_preproc=no
! 12279: fi
! 12280: rm -f conftest.err conftest.$ac_ext
! 12281: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 12282: echo "${ECHO_T}$ac_header_preproc" >&6
! 12283:
! 12284: # So? What about this header?
! 12285: case $ac_header_compiler:$ac_header_preproc in
! 12286: yes:no )
! 12287: { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 12288: echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 12289: { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
! 12290: echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
! 12291: no:yes )
! 12292: { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
! 12293: echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
! 12294: { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
! 12295: echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
! 12296: { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
! 12297: echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
! 12298: esac
! 12299: echo "$as_me:$LINENO: checking for syslog.h" >&5
! 12300: echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
! 12301: if test "${ac_cv_header_syslog_h+set}" = set; then
! 12302: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12303: else
! 12304: ac_cv_header_syslog_h=$ac_header_preproc
! 12305: fi
! 12306: echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
! 12307: echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
! 12308:
! 12309: fi
! 12310: if test $ac_cv_header_syslog_h = yes; then
! 12311: cat >>confdefs.h <<\_ACEOF
! 12312: #define HAVE_SYSLOG 1
1.179 petere 12313: _ACEOF
1.1 petere 12314:
12315: fi
1.191 ! ishii 12316:
! 12317:
! 12318: fi
1.1 petere 12319:
12320:
1.179 petere 12321: echo "$as_me:$LINENO: checking for optreset" >&5
12322: echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12323: if test "${pgac_cv_var_int_optreset+set}" = set; then
12324: echo $ECHO_N "(cached) $ECHO_C" >&6
1.82 petere 12325: else
1.179 petere 12326: cat >conftest.$ac_ext <<_ACEOF
12327: #line $LINENO "configure"
1.82 petere 12328: #include "confdefs.h"
12329: #include <unistd.h>
1.179 petere 12330: #ifdef F77_DUMMY_MAIN
12331: # ifdef __cplusplus
12332: extern "C"
12333: # endif
12334: int F77_DUMMY_MAIN() { return 1; }
12335: #endif
12336: int
12337: main ()
12338: {
1.82 petere 12339: extern int optreset; optreset = 1;
1.179 petere 12340: ;
12341: return 0;
12342: }
12343: _ACEOF
12344: rm -f conftest.$ac_objext conftest$ac_exeext
12345: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346: (eval $ac_link) 2>&5
12347: ac_status=$?
12348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349: (exit $ac_status); } &&
12350: { ac_try='test -s conftest$ac_exeext'
12351: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352: (eval $ac_try) 2>&5
12353: ac_status=$?
12354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355: (exit $ac_status); }; }; then
1.82 petere 12356: pgac_cv_var_int_optreset=yes
12357: else
1.179 petere 12358: echo "$as_me: failed program was:" >&5
12359: cat conftest.$ac_ext >&5
12360: pgac_cv_var_int_optreset=no
1.82 petere 12361: fi
1.179 petere 12362: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.82 petere 12363: fi
1.179 petere 12364: echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12365: echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12366: if test x"$pgac_cv_var_int_optreset" = x"yes"; then
1.82 petere 12367:
1.179 petere 12368: cat >>confdefs.h <<\_ACEOF
1.82 petere 12369: #define HAVE_INT_OPTRESET 1
1.179 petere 12370: _ACEOF
1.82 petere 12371:
12372: fi
12373:
1.1 petere 12374:
1.116 petere 12375: # This test makes sure that run tests work at all. Sometimes a shared
12376: # library is found by the linker, but the runtime linker can't find it.
12377: # This check should come after all modifications of compiler or linker
12378: # variables, and before any other run tests.
1.179 petere 12379: echo "$as_me:$LINENO: checking test program" >&5
12380: echo $ECHO_N "checking test program... $ECHO_C" >&6
1.116 petere 12381: if test "$cross_compiling" = yes; then
1.179 petere 12382: echo "$as_me:$LINENO: result: cross-compiling" >&5
12383: echo "${ECHO_T}cross-compiling" >&6
1.116 petere 12384: else
1.179 petere 12385: cat >conftest.$ac_ext <<_ACEOF
12386: #line $LINENO "configure"
1.116 petere 12387: #include "confdefs.h"
12388: int main() { return 0; }
1.179 petere 12389: _ACEOF
12390: rm -f conftest$ac_exeext
12391: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392: (eval $ac_link) 2>&5
12393: ac_status=$?
12394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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: echo "$as_me:$LINENO: result: ok" >&5
12402: echo "${ECHO_T}ok" >&6
12403: else
12404: echo "$as_me: program exited with status $ac_status" >&5
12405: echo "$as_me: failed program was:" >&5
12406: cat conftest.$ac_ext >&5
12407: ( exit $ac_status )
12408: echo "$as_me:$LINENO: result: failed" >&5
12409: echo "${ECHO_T}failed" >&6
12410: { { echo "$as_me:$LINENO: error:
12411: *** Could not execute a simple test program. This may be a problem
12412: *** related to locating shared libraries. Check the file 'config.log'
12413: *** for the exact reason." >&5
12414: echo "$as_me: error:
1.116 petere 12415: *** Could not execute a simple test program. This may be a problem
12416: *** related to locating shared libraries. Check the file 'config.log'
1.179 petere 12417: *** for the exact reason." >&2;}
12418: { (exit 1); exit 1; }; }
1.116 petere 12419: fi
1.179 petere 12420: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.116 petere 12421: fi
12422:
12423:
12424:
1.179 petere 12425: echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12426: echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12427: if test "${pgac_cv_type_long_int_64+set}" = set; then
12428: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 12429: else
12430: if test "$cross_compiling" = yes; then
12431: pgac_cv_type_long_int_64=no
1.179 petere 12432: { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12433: echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
1.1 petere 12434: else
1.179 petere 12435: cat >conftest.$ac_ext <<_ACEOF
12436: #line $LINENO "configure"
1.1 petere 12437: #include "confdefs.h"
12438: typedef long int int64;
12439:
1.5 petere 12440: /*
12441: * These are globals to discourage the compiler from folding all the
1.1 petere 12442: * arithmetic tests down to compile-time constants.
12443: */
12444: int64 a = 20000001;
12445: int64 b = 40000005;
12446:
12447: int does_int64_work()
12448: {
12449: int64 c,d;
12450:
12451: if (sizeof(int64) != 8)
1.5 petere 12452: return 0; /* definitely not the right size */
1.1 petere 12453:
12454: /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12455: c = a * b;
12456: d = (c + b) / b;
12457: if (d != a+1)
12458: return 0;
12459: return 1;
12460: }
12461: main() {
12462: exit(! does_int64_work());
12463: }
1.179 petere 12464: _ACEOF
12465: rm -f conftest$ac_exeext
12466: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467: (eval $ac_link) 2>&5
12468: ac_status=$?
12469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472: (eval $ac_try) 2>&5
12473: ac_status=$?
12474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475: (exit $ac_status); }; }; then
1.5 petere 12476: pgac_cv_type_long_int_64=yes
1.1 petere 12477: else
1.179 petere 12478: echo "$as_me: program exited with status $ac_status" >&5
12479: echo "$as_me: failed program was:" >&5
12480: cat conftest.$ac_ext >&5
12481: ( exit $ac_status )
12482: pgac_cv_type_long_int_64=no
1.1 petere 12483: fi
1.179 petere 12484: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12485: fi
1.5 petere 12486: fi
1.179 petere 12487: echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12488: echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
1.5 petere 12489:
12490: HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12491: if test x"$pgac_cv_type_long_int_64" = xyes ; then
1.179 petere 12492:
12493: cat >>confdefs.h <<\_ACEOF
12494: #define HAVE_LONG_INT_64
12495: _ACEOF
1.5 petere 12496:
12497: fi
12498:
1.1 petere 12499:
1.5 petere 12500: if test x"$HAVE_LONG_INT_64" = x"no" ; then
1.179 petere 12501: echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12502: echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12503: if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12504: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 12505: else
12506: if test "$cross_compiling" = yes; then
12507: pgac_cv_type_long_long_int_64=no
1.179 petere 12508: { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12509: echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
1.1 petere 12510: else
1.179 petere 12511: cat >conftest.$ac_ext <<_ACEOF
12512: #line $LINENO "configure"
1.1 petere 12513: #include "confdefs.h"
12514: typedef long long int int64;
12515:
1.5 petere 12516: /*
12517: * These are globals to discourage the compiler from folding all the
1.1 petere 12518: * arithmetic tests down to compile-time constants.
12519: */
12520: int64 a = 20000001;
12521: int64 b = 40000005;
12522:
12523: int does_int64_work()
12524: {
12525: int64 c,d;
12526:
12527: if (sizeof(int64) != 8)
1.5 petere 12528: return 0; /* definitely not the right size */
1.1 petere 12529:
12530: /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12531: c = a * b;
12532: d = (c + b) / b;
12533: if (d != a+1)
12534: return 0;
12535: return 1;
12536: }
12537: main() {
12538: exit(! does_int64_work());
12539: }
1.179 petere 12540: _ACEOF
12541: rm -f conftest$ac_exeext
12542: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543: (eval $ac_link) 2>&5
12544: ac_status=$?
12545: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548: (eval $ac_try) 2>&5
12549: ac_status=$?
12550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551: (exit $ac_status); }; }; then
1.5 petere 12552: pgac_cv_type_long_long_int_64=yes
1.1 petere 12553: else
1.179 petere 12554: echo "$as_me: program exited with status $ac_status" >&5
12555: echo "$as_me: failed program was:" >&5
12556: cat conftest.$ac_ext >&5
12557: ( exit $ac_status )
12558: pgac_cv_type_long_long_int_64=no
1.1 petere 12559: fi
1.179 petere 12560: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12561: fi
12562: fi
1.179 petere 12563: echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12564: echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
1.5 petere 12565:
12566: HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12567: if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
1.179 petere 12568:
12569: cat >>confdefs.h <<\_ACEOF
12570: #define HAVE_LONG_LONG_INT_64
12571: _ACEOF
1.5 petere 12572:
12573: fi
12574:
12575: fi
12576:
12577:
1.1 petere 12578:
1.6 petere 12579: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.179 petere 12580: cat >conftest.$ac_ext <<_ACEOF
12581: #line $LINENO "configure"
1.119 tgl 12582: #include "confdefs.h"
12583:
12584: #define INT64CONST(x) x##LL
12585: long long int foo = INT64CONST(0x1234567890123456);
12586:
1.179 petere 12587: #ifdef F77_DUMMY_MAIN
12588: # ifdef __cplusplus
12589: extern "C"
12590: # endif
12591: int F77_DUMMY_MAIN() { return 1; }
12592: #endif
12593: int
12594: main ()
12595: {
12596:
12597: ;
12598: return 0;
12599: }
12600: _ACEOF
12601: rm -f conftest.$ac_objext
12602: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603: (eval $ac_compile) 2>&5
12604: ac_status=$?
12605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606: (exit $ac_status); } &&
12607: { ac_try='test -s conftest.$ac_objext'
12608: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609: (eval $ac_try) 2>&5
12610: ac_status=$?
12611: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612: (exit $ac_status); }; }; then
1.119 tgl 12613:
1.179 petere 12614: cat >>confdefs.h <<\_ACEOF
1.119 tgl 12615: #define HAVE_LL_CONSTANTS 1
1.179 petere 12616: _ACEOF
1.119 tgl 12617:
12618: else
1.179 petere 12619: echo "$as_me: failed program was:" >&5
12620: cat conftest.$ac_ext >&5
1.119 tgl 12621: fi
1.179 petere 12622: rm -f conftest.$ac_objext conftest.$ac_ext
1.119 tgl 12623: fi
12624:
12625:
12626:
12627: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.1 petere 12628: if [ x$SNPRINTF = x ] ; then
1.179 petere 12629: echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12630: echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
1.1 petere 12631: if test "$cross_compiling" = yes; then
1.179 petere 12632: echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12633: echo "${ECHO_T}assuming not on target machine" >&6
1.1 petere 12634: # Force usage of our own snprintf, since we cannot test foreign snprintf
12635: SNPRINTF='snprintf.o'
12636: INT64_FORMAT='"%lld"'
1.179 petere 12637:
1.1 petere 12638: else
1.179 petere 12639: cat >conftest.$ac_ext <<_ACEOF
12640: #line $LINENO "configure"
1.1 petere 12641: #include "confdefs.h"
12642: #include <stdio.h>
12643: typedef long long int int64;
12644: #define INT64_FORMAT "%lld"
12645:
12646: int64 a = 20000001;
12647: int64 b = 40000005;
12648:
12649: int does_int64_snprintf_work()
12650: {
12651: int64 c;
12652: char buf[100];
12653:
12654: if (sizeof(int64) != 8)
12655: return 0; /* doesn't look like the right size */
12656:
12657: c = a * b;
12658: snprintf(buf, 100, INT64_FORMAT, c);
12659: if (strcmp(buf, "800000140000005") != 0)
12660: return 0; /* either multiply or snprintf is busted */
12661: return 1;
12662: }
12663: main() {
12664: exit(! does_int64_snprintf_work());
12665: }
1.179 petere 12666: _ACEOF
12667: rm -f conftest$ac_exeext
12668: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12669: (eval $ac_link) 2>&5
12670: ac_status=$?
12671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674: (eval $ac_try) 2>&5
12675: ac_status=$?
12676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677: (exit $ac_status); }; }; then
12678: echo "$as_me:$LINENO: result: yes" >&5
12679: echo "${ECHO_T}yes" >&6
1.1 petere 12680: INT64_FORMAT='"%lld"'
1.179 petere 12681:
1.1 petere 12682: else
1.179 petere 12683: echo "$as_me: program exited with status $ac_status" >&5
12684: echo "$as_me: failed program was:" >&5
12685: cat conftest.$ac_ext >&5
12686: ( exit $ac_status )
12687: echo "$as_me:$LINENO: result: no" >&5
12688: echo "${ECHO_T}no" >&6
12689: echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12690: echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
1.1 petere 12691: if test "$cross_compiling" = yes; then
1.179 petere 12692: echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12693: echo "${ECHO_T}assuming not on target machine" >&6
1.1 petere 12694: # Force usage of our own snprintf, since we cannot test foreign snprintf
12695: SNPRINTF='snprintf.o'
12696: INT64_FORMAT='"%lld"'
1.179 petere 12697:
1.1 petere 12698: else
1.179 petere 12699: cat >conftest.$ac_ext <<_ACEOF
12700: #line $LINENO "configure"
1.1 petere 12701: #include "confdefs.h"
12702: #include <stdio.h>
12703: typedef long long int int64;
12704: #define INT64_FORMAT "%qd"
1.179 petere 12705:
1.1 petere 12706: int64 a = 20000001;
12707: int64 b = 40000005;
1.179 petere 12708:
1.1 petere 12709: int does_int64_snprintf_work()
1.179 petere 12710: {
1.1 petere 12711: int64 c;
12712: char buf[100];
12713:
12714: if (sizeof(int64) != 8)
12715: return 0; /* doesn't look like the right size */
12716:
12717: c = a * b;
12718: snprintf(buf, 100, INT64_FORMAT, c);
12719: if (strcmp(buf, "800000140000005") != 0)
12720: return 0; /* either multiply or snprintf is busted */
12721: return 1;
12722: }
12723: main() {
12724: exit(! does_int64_snprintf_work());
12725: }
1.179 petere 12726: _ACEOF
12727: rm -f conftest$ac_exeext
12728: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729: (eval $ac_link) 2>&5
12730: ac_status=$?
12731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734: (eval $ac_try) 2>&5
12735: ac_status=$?
12736: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737: (exit $ac_status); }; }; then
12738: echo "$as_me:$LINENO: result: yes" >&5
12739: echo "${ECHO_T}yes" >&6
1.1 petere 12740: INT64_FORMAT='"%qd"'
1.179 petere 12741:
1.1 petere 12742: else
1.179 petere 12743: echo "$as_me: program exited with status $ac_status" >&5
12744: echo "$as_me: failed program was:" >&5
12745: cat conftest.$ac_ext >&5
12746: ( exit $ac_status )
12747: echo "$as_me:$LINENO: result: no" >&5
12748: echo "${ECHO_T}no" >&6
1.1 petere 12749: # Force usage of our own snprintf, since system snprintf is broken
12750: SNPRINTF='snprintf.o'
12751: INT64_FORMAT='"%lld"'
1.179 petere 12752:
1.1 petere 12753: fi
1.179 petere 12754: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12755: fi
12756: fi
1.179 petere 12757: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12758: fi
12759: else
12760: # here if we previously decided we needed to use our own snprintf
12761: INT64_FORMAT='"%lld"'
12762: fi
12763: else
12764: # Here if we are not using 'long long int' at all
12765: INT64_FORMAT='"%ld"'
12766: fi
12767:
1.179 petere 12768:
12769: cat >>confdefs.h <<_ACEOF
1.1 petere 12770: #define INT64_FORMAT $INT64_FORMAT
1.179 petere 12771: _ACEOF
12772:
12773:
1.1 petere 12774:
12775:
12776:
1.84 petere 12777: for ac_func in strtoll strtoq
12778: do
1.179 petere 12779: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12780: echo "$as_me:$LINENO: checking for $ac_func" >&5
12781: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12782: if eval "test \"\${$as_ac_var+set}\" = set"; then
12783: echo $ECHO_N "(cached) $ECHO_C" >&6
1.84 petere 12784: else
1.179 petere 12785: cat >conftest.$ac_ext <<_ACEOF
12786: #line $LINENO "configure"
1.84 petere 12787: #include "confdefs.h"
12788: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12789: which can conflict with char $ac_func (); below. */
1.84 petere 12790: #include <assert.h>
12791: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12792: #ifdef __cplusplus
12793: extern "C"
12794: #endif
1.84 petere 12795: /* We use char because int might match the return type of a gcc2
1.179 petere 12796: builtin and then its argument prototype would still apply. */
12797: char $ac_func ();
12798: char (*f) ();
12799:
12800: #ifdef F77_DUMMY_MAIN
12801: # ifdef __cplusplus
12802: extern "C"
12803: # endif
12804: int F77_DUMMY_MAIN() { return 1; }
12805: #endif
12806: int
12807: main ()
12808: {
1.84 petere 12809: /* The GNU C library defines this for functions which it implements
12810: to always fail with ENOSYS. Some functions are actually named
12811: something starting with __ and the normal name is an alias. */
12812: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12813: choke me
12814: #else
1.179 petere 12815: f = $ac_func;
1.84 petere 12816: #endif
12817:
1.179 petere 12818: ;
12819: return 0;
12820: }
12821: _ACEOF
12822: rm -f conftest.$ac_objext conftest$ac_exeext
12823: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824: (eval $ac_link) 2>&5
12825: ac_status=$?
12826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827: (exit $ac_status); } &&
12828: { ac_try='test -s conftest$ac_exeext'
12829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830: (eval $ac_try) 2>&5
12831: ac_status=$?
12832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833: (exit $ac_status); }; }; then
12834: eval "$as_ac_var=yes"
12835: else
12836: echo "$as_me: failed program was:" >&5
12837: cat conftest.$ac_ext >&5
12838: eval "$as_ac_var=no"
12839: fi
12840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12841: fi
12842: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12843: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12844: if test `eval echo '${'$as_ac_var'}'` = yes; then
12845: cat >>confdefs.h <<_ACEOF
12846: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847: _ACEOF
1.84 petere 12848: break
12849: fi
12850: done
12851:
1.179 petere 12852:
12853:
1.84 petere 12854: for ac_func in strtoull strtouq
12855: do
1.179 petere 12856: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12857: echo "$as_me:$LINENO: checking for $ac_func" >&5
12858: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12859: if eval "test \"\${$as_ac_var+set}\" = set"; then
12860: echo $ECHO_N "(cached) $ECHO_C" >&6
1.84 petere 12861: else
1.179 petere 12862: cat >conftest.$ac_ext <<_ACEOF
12863: #line $LINENO "configure"
1.84 petere 12864: #include "confdefs.h"
12865: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12866: which can conflict with char $ac_func (); below. */
1.84 petere 12867: #include <assert.h>
12868: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12869: #ifdef __cplusplus
12870: extern "C"
12871: #endif
1.84 petere 12872: /* We use char because int might match the return type of a gcc2
1.179 petere 12873: builtin and then its argument prototype would still apply. */
12874: char $ac_func ();
12875: char (*f) ();
12876:
12877: #ifdef F77_DUMMY_MAIN
12878: # ifdef __cplusplus
12879: extern "C"
12880: # endif
12881: int F77_DUMMY_MAIN() { return 1; }
12882: #endif
12883: int
12884: main ()
12885: {
1.84 petere 12886: /* The GNU C library defines this for functions which it implements
12887: to always fail with ENOSYS. Some functions are actually named
12888: something starting with __ and the normal name is an alias. */
12889: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12890: choke me
12891: #else
1.179 petere 12892: f = $ac_func;
1.84 petere 12893: #endif
12894:
1.179 petere 12895: ;
12896: return 0;
12897: }
12898: _ACEOF
12899: rm -f conftest.$ac_objext conftest$ac_exeext
12900: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901: (eval $ac_link) 2>&5
12902: ac_status=$?
12903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904: (exit $ac_status); } &&
12905: { ac_try='test -s conftest$ac_exeext'
12906: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907: (eval $ac_try) 2>&5
12908: ac_status=$?
12909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910: (exit $ac_status); }; }; then
12911: eval "$as_ac_var=yes"
12912: else
12913: echo "$as_me: failed program was:" >&5
12914: cat conftest.$ac_ext >&5
12915: eval "$as_ac_var=no"
12916: fi
12917: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12918: fi
12919: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12920: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12921: if test `eval echo '${'$as_ac_var'}'` = yes; then
12922: cat >>confdefs.h <<_ACEOF
12923: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12924: _ACEOF
1.84 petere 12925: break
12926: fi
12927: done
12928:
12929:
1.179 petere 12930: # Check for one of atexit() or on_exit()
12931:
12932: for ac_func in atexit
12933: do
12934: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935: echo "$as_me:$LINENO: checking for $ac_func" >&5
12936: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937: if eval "test \"\${$as_ac_var+set}\" = set"; then
12938: echo $ECHO_N "(cached) $ECHO_C" >&6
1.109 ishii 12939: else
1.179 petere 12940: cat >conftest.$ac_ext <<_ACEOF
12941: #line $LINENO "configure"
1.109 ishii 12942: #include "confdefs.h"
12943: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12944: which can conflict with char $ac_func (); below. */
1.109 ishii 12945: #include <assert.h>
12946: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12947: #ifdef __cplusplus
12948: extern "C"
12949: #endif
1.109 ishii 12950: /* We use char because int might match the return type of a gcc2
1.179 petere 12951: builtin and then its argument prototype would still apply. */
12952: char $ac_func ();
12953: char (*f) ();
12954:
12955: #ifdef F77_DUMMY_MAIN
12956: # ifdef __cplusplus
12957: extern "C"
12958: # endif
12959: int F77_DUMMY_MAIN() { return 1; }
12960: #endif
12961: int
12962: main ()
12963: {
1.109 ishii 12964: /* The GNU C library defines this for functions which it implements
12965: to always fail with ENOSYS. Some functions are actually named
12966: something starting with __ and the normal name is an alias. */
1.179 petere 12967: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.109 ishii 12968: choke me
12969: #else
1.179 petere 12970: f = $ac_func;
1.109 ishii 12971: #endif
12972:
1.179 petere 12973: ;
12974: return 0;
12975: }
12976: _ACEOF
12977: rm -f conftest.$ac_objext conftest$ac_exeext
12978: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979: (eval $ac_link) 2>&5
12980: ac_status=$?
12981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982: (exit $ac_status); } &&
12983: { ac_try='test -s conftest$ac_exeext'
12984: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985: (eval $ac_try) 2>&5
12986: ac_status=$?
12987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988: (exit $ac_status); }; }; then
12989: eval "$as_ac_var=yes"
12990: else
12991: echo "$as_me: failed program was:" >&5
12992: cat conftest.$ac_ext >&5
12993: eval "$as_ac_var=no"
12994: fi
12995: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12996: fi
12997: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12998: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12999: if test `eval echo '${'$as_ac_var'}'` = yes; then
13000: cat >>confdefs.h <<_ACEOF
13001: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13002: _ACEOF
13003:
1.109 ishii 13004: else
13005:
13006: for ac_func in on_exit
13007: do
1.179 petere 13008: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009: echo "$as_me:$LINENO: checking for $ac_func" >&5
13010: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13011: if eval "test \"\${$as_ac_var+set}\" = set"; then
13012: echo $ECHO_N "(cached) $ECHO_C" >&6
1.109 ishii 13013: else
1.179 petere 13014: cat >conftest.$ac_ext <<_ACEOF
13015: #line $LINENO "configure"
1.109 ishii 13016: #include "confdefs.h"
13017: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 13018: which can conflict with char $ac_func (); below. */
1.109 ishii 13019: #include <assert.h>
13020: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 13021: #ifdef __cplusplus
13022: extern "C"
13023: #endif
1.109 ishii 13024: /* We use char because int might match the return type of a gcc2
1.179 petere 13025: builtin and then its argument prototype would still apply. */
13026: char $ac_func ();
13027: char (*f) ();
13028:
13029: #ifdef F77_DUMMY_MAIN
13030: # ifdef __cplusplus
13031: extern "C"
13032: # endif
13033: int F77_DUMMY_MAIN() { return 1; }
13034: #endif
13035: int
13036: main ()
13037: {
1.109 ishii 13038: /* The GNU C library defines this for functions which it implements
13039: to always fail with ENOSYS. Some functions are actually named
13040: something starting with __ and the normal name is an alias. */
13041: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13042: choke me
13043: #else
1.179 petere 13044: f = $ac_func;
13045: #endif
13046:
13047: ;
13048: return 0;
13049: }
13050: _ACEOF
13051: rm -f conftest.$ac_objext conftest$ac_exeext
13052: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053: (eval $ac_link) 2>&5
13054: ac_status=$?
13055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056: (exit $ac_status); } &&
13057: { ac_try='test -s conftest$ac_exeext'
13058: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059: (eval $ac_try) 2>&5
13060: ac_status=$?
13061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062: (exit $ac_status); }; }; then
13063: eval "$as_ac_var=yes"
13064: else
13065: echo "$as_me: failed program was:" >&5
13066: cat conftest.$ac_ext >&5
13067: eval "$as_ac_var=no"
13068: fi
13069: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13070: fi
13071: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13072: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13073: if test `eval echo '${'$as_ac_var'}'` = yes; then
13074: cat >>confdefs.h <<_ACEOF
13075: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13076: _ACEOF
13077:
13078: else
13079: { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13080: echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13081: { (exit 1); exit 1; }; }
13082: fi
13083: done
13084:
13085: fi
13086: done
13087:
13088:
13089:
13090: echo "$as_me:$LINENO: checking for unsigned long" >&5
13091: echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13092: if test "${ac_cv_type_unsigned_long+set}" = set; then
13093: echo $ECHO_N "(cached) $ECHO_C" >&6
13094: else
13095: cat >conftest.$ac_ext <<_ACEOF
13096: #line $LINENO "configure"
13097: #include "confdefs.h"
13098: $ac_includes_default
13099: #ifdef F77_DUMMY_MAIN
13100: # ifdef __cplusplus
13101: extern "C"
13102: # endif
13103: int F77_DUMMY_MAIN() { return 1; }
1.109 ishii 13104: #endif
1.179 petere 13105: int
13106: main ()
13107: {
13108: if ((unsigned long *) 0)
13109: return 0;
13110: if (sizeof (unsigned long))
13111: return 0;
13112: ;
13113: return 0;
13114: }
13115: _ACEOF
13116: rm -f conftest.$ac_objext
13117: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118: (eval $ac_compile) 2>&5
13119: ac_status=$?
13120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121: (exit $ac_status); } &&
13122: { ac_try='test -s conftest.$ac_objext'
13123: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124: (eval $ac_try) 2>&5
13125: ac_status=$?
13126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127: (exit $ac_status); }; }; then
13128: ac_cv_type_unsigned_long=yes
13129: else
13130: echo "$as_me: failed program was:" >&5
13131: cat conftest.$ac_ext >&5
13132: ac_cv_type_unsigned_long=no
13133: fi
13134: rm -f conftest.$ac_objext conftest.$ac_ext
13135: fi
13136: echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13137: echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13138:
13139: echo "$as_me:$LINENO: checking size of unsigned long" >&5
13140: echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13141: if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13142: echo $ECHO_N "(cached) $ECHO_C" >&6
13143: else
13144: if test "$ac_cv_type_unsigned_long" = yes; then
13145: # The cast to unsigned long works around a bug in the HP C Compiler
13146: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13147: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13148: # This bug is HP SR number 8606223364.
13149: if test "$cross_compiling" = yes; then
13150: # Depending upon the size, compute the lo and hi bounds.
13151: cat >conftest.$ac_ext <<_ACEOF
13152: #line $LINENO "configure"
13153: #include "confdefs.h"
13154: $ac_includes_default
13155: #ifdef F77_DUMMY_MAIN
13156: # ifdef __cplusplus
13157: extern "C"
13158: # endif
13159: int F77_DUMMY_MAIN() { return 1; }
13160: #endif
13161: int
13162: main ()
13163: {
13164: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13165: test_array [0] = 0
1.109 ishii 13166:
1.179 petere 13167: ;
13168: return 0;
13169: }
13170: _ACEOF
13171: rm -f conftest.$ac_objext
13172: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173: (eval $ac_compile) 2>&5
13174: ac_status=$?
13175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176: (exit $ac_status); } &&
13177: { ac_try='test -s conftest.$ac_objext'
13178: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179: (eval $ac_try) 2>&5
13180: ac_status=$?
13181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182: (exit $ac_status); }; }; then
13183: ac_lo=0 ac_mid=0
13184: while :; do
13185: cat >conftest.$ac_ext <<_ACEOF
13186: #line $LINENO "configure"
13187: #include "confdefs.h"
13188: $ac_includes_default
13189: #ifdef F77_DUMMY_MAIN
13190: # ifdef __cplusplus
13191: extern "C"
13192: # endif
13193: int F77_DUMMY_MAIN() { return 1; }
13194: #endif
13195: int
13196: main ()
13197: {
13198: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13199: test_array [0] = 0
13200:
13201: ;
13202: return 0;
13203: }
13204: _ACEOF
13205: rm -f conftest.$ac_objext
13206: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207: (eval $ac_compile) 2>&5
13208: ac_status=$?
13209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210: (exit $ac_status); } &&
13211: { ac_try='test -s conftest.$ac_objext'
13212: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213: (eval $ac_try) 2>&5
13214: ac_status=$?
13215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216: (exit $ac_status); }; }; then
13217: ac_hi=$ac_mid; break
13218: else
13219: echo "$as_me: failed program was:" >&5
13220: cat conftest.$ac_ext >&5
13221: ac_lo=`expr $ac_mid + 1`
13222: if test $ac_lo -le $ac_mid; then
13223: ac_lo= ac_hi=
13224: break
13225: fi
13226: ac_mid=`expr 2 '*' $ac_mid + 1`
13227: fi
13228: rm -f conftest.$ac_objext conftest.$ac_ext
13229: done
13230: else
13231: echo "$as_me: failed program was:" >&5
13232: cat conftest.$ac_ext >&5
13233: cat >conftest.$ac_ext <<_ACEOF
13234: #line $LINENO "configure"
13235: #include "confdefs.h"
13236: $ac_includes_default
13237: #ifdef F77_DUMMY_MAIN
13238: # ifdef __cplusplus
13239: extern "C"
13240: # endif
13241: int F77_DUMMY_MAIN() { return 1; }
13242: #endif
13243: int
13244: main ()
13245: {
13246: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13247: test_array [0] = 0
13248:
13249: ;
13250: return 0;
13251: }
13252: _ACEOF
13253: rm -f conftest.$ac_objext
13254: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255: (eval $ac_compile) 2>&5
13256: ac_status=$?
13257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258: (exit $ac_status); } &&
13259: { ac_try='test -s conftest.$ac_objext'
13260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261: (eval $ac_try) 2>&5
13262: ac_status=$?
13263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264: (exit $ac_status); }; }; then
13265: ac_hi=-1 ac_mid=-1
13266: while :; do
13267: cat >conftest.$ac_ext <<_ACEOF
13268: #line $LINENO "configure"
13269: #include "confdefs.h"
13270: $ac_includes_default
13271: #ifdef F77_DUMMY_MAIN
13272: # ifdef __cplusplus
13273: extern "C"
13274: # endif
13275: int F77_DUMMY_MAIN() { return 1; }
13276: #endif
13277: int
13278: main ()
13279: {
13280: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13281: test_array [0] = 0
13282:
13283: ;
13284: return 0;
13285: }
13286: _ACEOF
13287: rm -f conftest.$ac_objext
13288: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289: (eval $ac_compile) 2>&5
13290: ac_status=$?
13291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292: (exit $ac_status); } &&
13293: { ac_try='test -s conftest.$ac_objext'
13294: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295: (eval $ac_try) 2>&5
13296: ac_status=$?
13297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298: (exit $ac_status); }; }; then
13299: ac_lo=$ac_mid; break
13300: else
13301: echo "$as_me: failed program was:" >&5
13302: cat conftest.$ac_ext >&5
13303: ac_hi=`expr '(' $ac_mid ')' - 1`
13304: if test $ac_mid -le $ac_hi; then
13305: ac_lo= ac_hi=
13306: break
13307: fi
13308: ac_mid=`expr 2 '*' $ac_mid`
13309: fi
13310: rm -f conftest.$ac_objext conftest.$ac_ext
13311: done
13312: else
13313: echo "$as_me: failed program was:" >&5
13314: cat conftest.$ac_ext >&5
13315: ac_lo= ac_hi=
13316: fi
13317: rm -f conftest.$ac_objext conftest.$ac_ext
13318: fi
13319: rm -f conftest.$ac_objext conftest.$ac_ext
13320: # Binary search between lo and hi bounds.
13321: while test "x$ac_lo" != "x$ac_hi"; do
13322: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13323: cat >conftest.$ac_ext <<_ACEOF
13324: #line $LINENO "configure"
13325: #include "confdefs.h"
13326: $ac_includes_default
13327: #ifdef F77_DUMMY_MAIN
13328: # ifdef __cplusplus
13329: extern "C"
13330: # endif
13331: int F77_DUMMY_MAIN() { return 1; }
13332: #endif
13333: int
13334: main ()
13335: {
13336: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13337: test_array [0] = 0
13338:
13339: ;
13340: return 0;
13341: }
13342: _ACEOF
13343: rm -f conftest.$ac_objext
13344: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345: (eval $ac_compile) 2>&5
13346: ac_status=$?
13347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348: (exit $ac_status); } &&
13349: { ac_try='test -s conftest.$ac_objext'
13350: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351: (eval $ac_try) 2>&5
13352: ac_status=$?
13353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354: (exit $ac_status); }; }; then
13355: ac_hi=$ac_mid
13356: else
13357: echo "$as_me: failed program was:" >&5
13358: cat conftest.$ac_ext >&5
13359: ac_lo=`expr '(' $ac_mid ')' + 1`
13360: fi
13361: rm -f conftest.$ac_objext conftest.$ac_ext
13362: done
13363: case $ac_lo in
13364: ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13365: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13366: echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13367: { (exit 1); exit 1; }; } ;;
13368: esac
13369: else
13370: if test "$cross_compiling" = yes; then
13371: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13372: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13373: { (exit 1); exit 1; }; }
13374: else
13375: cat >conftest.$ac_ext <<_ACEOF
13376: #line $LINENO "configure"
13377: #include "confdefs.h"
13378: $ac_includes_default
13379: long longval () { return (long) (sizeof (unsigned long)); }
13380: unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13381: #include <stdio.h>
13382: #include <stdlib.h>
13383: #ifdef F77_DUMMY_MAIN
13384: # ifdef __cplusplus
13385: extern "C"
13386: # endif
13387: int F77_DUMMY_MAIN() { return 1; }
13388: #endif
13389: int
13390: main ()
13391: {
13392:
13393: FILE *f = fopen ("conftest.val", "w");
13394: if (! f)
13395: exit (1);
13396: if (((long) (sizeof (unsigned long))) < 0)
13397: {
13398: long i = longval ();
13399: if (i != ((long) (sizeof (unsigned long))))
13400: exit (1);
13401: fprintf (f, "%ld\n", i);
13402: }
13403: else
13404: {
13405: unsigned long i = ulongval ();
13406: if (i != ((long) (sizeof (unsigned long))))
13407: exit (1);
13408: fprintf (f, "%lu\n", i);
13409: }
13410: exit (ferror (f) || fclose (f) != 0);
13411:
13412: ;
13413: return 0;
13414: }
13415: _ACEOF
13416: rm -f conftest$ac_exeext
13417: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418: (eval $ac_link) 2>&5
13419: ac_status=$?
13420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423: (eval $ac_try) 2>&5
13424: ac_status=$?
13425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426: (exit $ac_status); }; }; then
13427: ac_cv_sizeof_unsigned_long=`cat conftest.val`
13428: else
13429: echo "$as_me: program exited with status $ac_status" >&5
13430: echo "$as_me: failed program was:" >&5
13431: cat conftest.$ac_ext >&5
13432: ( exit $ac_status )
13433: { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13434: echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13435: { (exit 1); exit 1; }; }
13436: fi
13437: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13438: fi
13439: fi
13440: rm -f conftest.val
1.109 ishii 13441: else
1.179 petere 13442: ac_cv_sizeof_unsigned_long=0
13443: fi
1.109 ishii 13444: fi
1.179 petere 13445: echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13446: echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13447: cat >>confdefs.h <<_ACEOF
13448: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13449: _ACEOF
13450:
13451:
13452:
13453: cat >>confdefs.h <<_ACEOF
13454: #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13455: _ACEOF
13456:
13457:
13458: # Determine memory alignment requirements for the basic C data types.
13459:
13460: echo "$as_me:$LINENO: checking for short" >&5
13461: echo $ECHO_N "checking for short... $ECHO_C" >&6
13462: if test "${ac_cv_type_short+set}" = set; then
13463: echo $ECHO_N "(cached) $ECHO_C" >&6
13464: else
13465: cat >conftest.$ac_ext <<_ACEOF
13466: #line $LINENO "configure"
13467: #include "confdefs.h"
13468: $ac_includes_default
13469: #ifdef F77_DUMMY_MAIN
13470: # ifdef __cplusplus
13471: extern "C"
13472: # endif
13473: int F77_DUMMY_MAIN() { return 1; }
13474: #endif
13475: int
13476: main ()
13477: {
13478: if ((short *) 0)
13479: return 0;
13480: if (sizeof (short))
13481: return 0;
13482: ;
13483: return 0;
13484: }
13485: _ACEOF
13486: rm -f conftest.$ac_objext
13487: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488: (eval $ac_compile) 2>&5
13489: ac_status=$?
13490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491: (exit $ac_status); } &&
13492: { ac_try='test -s conftest.$ac_objext'
13493: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494: (eval $ac_try) 2>&5
13495: ac_status=$?
13496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497: (exit $ac_status); }; }; then
13498: ac_cv_type_short=yes
13499: else
13500: echo "$as_me: failed program was:" >&5
13501: cat conftest.$ac_ext >&5
13502: ac_cv_type_short=no
13503: fi
13504: rm -f conftest.$ac_objext conftest.$ac_ext
13505: fi
13506: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13507: echo "${ECHO_T}$ac_cv_type_short" >&6
13508:
13509: echo "$as_me:$LINENO: checking alignment of short" >&5
13510: echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13511: if test "${pgac_cv_alignof_short+set}" = set; then
13512: echo $ECHO_N "(cached) $ECHO_C" >&6
13513: else
13514: if test "$ac_cv_type_short" = yes; then
13515: if test "$cross_compiling" = yes; then
13516: # Depending upon the size, compute the lo and hi bounds.
13517: cat >conftest.$ac_ext <<_ACEOF
13518: #line $LINENO "configure"
13519: #include "confdefs.h"
13520: $ac_includes_default
13521: struct { char filler; short field; } pgac_struct;
13522: #ifdef F77_DUMMY_MAIN
13523: # ifdef __cplusplus
13524: extern "C"
13525: # endif
13526: int F77_DUMMY_MAIN() { return 1; }
13527: #endif
13528: int
13529: main ()
13530: {
13531: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13532: test_array [0] = 0
13533:
13534: ;
13535: return 0;
13536: }
13537: _ACEOF
13538: rm -f conftest.$ac_objext
13539: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540: (eval $ac_compile) 2>&5
13541: ac_status=$?
13542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543: (exit $ac_status); } &&
13544: { ac_try='test -s conftest.$ac_objext'
13545: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546: (eval $ac_try) 2>&5
13547: ac_status=$?
13548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549: (exit $ac_status); }; }; then
13550: ac_lo=0 ac_mid=0
13551: while :; do
13552: cat >conftest.$ac_ext <<_ACEOF
13553: #line $LINENO "configure"
13554: #include "confdefs.h"
13555: $ac_includes_default
13556: struct { char filler; short field; } pgac_struct;
13557: #ifdef F77_DUMMY_MAIN
13558: # ifdef __cplusplus
13559: extern "C"
13560: # endif
13561: int F77_DUMMY_MAIN() { return 1; }
13562: #endif
13563: int
13564: main ()
13565: {
13566: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13567: test_array [0] = 0
13568:
13569: ;
13570: return 0;
13571: }
13572: _ACEOF
13573: rm -f conftest.$ac_objext
13574: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575: (eval $ac_compile) 2>&5
13576: ac_status=$?
13577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578: (exit $ac_status); } &&
13579: { ac_try='test -s conftest.$ac_objext'
13580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581: (eval $ac_try) 2>&5
13582: ac_status=$?
13583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584: (exit $ac_status); }; }; then
13585: ac_hi=$ac_mid; break
13586: else
13587: echo "$as_me: failed program was:" >&5
13588: cat conftest.$ac_ext >&5
13589: ac_lo=`expr $ac_mid + 1`
13590: if test $ac_lo -le $ac_mid; then
13591: ac_lo= ac_hi=
13592: break
13593: fi
13594: ac_mid=`expr 2 '*' $ac_mid + 1`
1.109 ishii 13595: fi
1.179 petere 13596: rm -f conftest.$ac_objext conftest.$ac_ext
13597: done
13598: else
13599: echo "$as_me: failed program was:" >&5
13600: cat conftest.$ac_ext >&5
13601: cat >conftest.$ac_ext <<_ACEOF
13602: #line $LINENO "configure"
13603: #include "confdefs.h"
13604: $ac_includes_default
13605: struct { char filler; short field; } pgac_struct;
13606: #ifdef F77_DUMMY_MAIN
13607: # ifdef __cplusplus
13608: extern "C"
13609: # endif
13610: int F77_DUMMY_MAIN() { return 1; }
13611: #endif
13612: int
13613: main ()
13614: {
13615: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13616: test_array [0] = 0
1.109 ishii 13617:
1.179 petere 13618: ;
13619: return 0;
13620: }
13621: _ACEOF
13622: rm -f conftest.$ac_objext
13623: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624: (eval $ac_compile) 2>&5
13625: ac_status=$?
13626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627: (exit $ac_status); } &&
13628: { ac_try='test -s conftest.$ac_objext'
13629: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630: (eval $ac_try) 2>&5
13631: ac_status=$?
13632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633: (exit $ac_status); }; }; then
13634: ac_hi=-1 ac_mid=-1
13635: while :; do
13636: cat >conftest.$ac_ext <<_ACEOF
13637: #line $LINENO "configure"
13638: #include "confdefs.h"
13639: $ac_includes_default
13640: struct { char filler; short field; } pgac_struct;
13641: #ifdef F77_DUMMY_MAIN
13642: # ifdef __cplusplus
13643: extern "C"
13644: # endif
13645: int F77_DUMMY_MAIN() { return 1; }
13646: #endif
13647: int
13648: main ()
13649: {
13650: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13651: test_array [0] = 0
1.109 ishii 13652:
1.179 petere 13653: ;
13654: return 0;
13655: }
13656: _ACEOF
13657: rm -f conftest.$ac_objext
13658: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659: (eval $ac_compile) 2>&5
13660: ac_status=$?
13661: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662: (exit $ac_status); } &&
13663: { ac_try='test -s conftest.$ac_objext'
13664: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13665: (eval $ac_try) 2>&5
13666: ac_status=$?
13667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668: (exit $ac_status); }; }; then
13669: ac_lo=$ac_mid; break
13670: else
13671: echo "$as_me: failed program was:" >&5
13672: cat conftest.$ac_ext >&5
13673: ac_hi=`expr '(' $ac_mid ')' - 1`
13674: if test $ac_mid -le $ac_hi; then
13675: ac_lo= ac_hi=
13676: break
13677: fi
13678: ac_mid=`expr 2 '*' $ac_mid`
13679: fi
13680: rm -f conftest.$ac_objext conftest.$ac_ext
13681: done
1.109 ishii 13682: else
1.179 petere 13683: echo "$as_me: failed program was:" >&5
13684: cat conftest.$ac_ext >&5
13685: ac_lo= ac_hi=
13686: fi
13687: rm -f conftest.$ac_objext conftest.$ac_ext
13688: fi
13689: rm -f conftest.$ac_objext conftest.$ac_ext
13690: # Binary search between lo and hi bounds.
13691: while test "x$ac_lo" != "x$ac_hi"; do
13692: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13693: cat >conftest.$ac_ext <<_ACEOF
13694: #line $LINENO "configure"
13695: #include "confdefs.h"
13696: $ac_includes_default
13697: struct { char filler; short field; } pgac_struct;
13698: #ifdef F77_DUMMY_MAIN
13699: # ifdef __cplusplus
13700: extern "C"
13701: # endif
13702: int F77_DUMMY_MAIN() { return 1; }
13703: #endif
13704: int
13705: main ()
13706: {
13707: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13708: test_array [0] = 0
13709:
13710: ;
13711: return 0;
13712: }
13713: _ACEOF
13714: rm -f conftest.$ac_objext
13715: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716: (eval $ac_compile) 2>&5
13717: ac_status=$?
13718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719: (exit $ac_status); } &&
13720: { ac_try='test -s conftest.$ac_objext'
13721: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722: (eval $ac_try) 2>&5
13723: ac_status=$?
13724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725: (exit $ac_status); }; }; then
13726: ac_hi=$ac_mid
13727: else
13728: echo "$as_me: failed program was:" >&5
13729: cat conftest.$ac_ext >&5
13730: ac_lo=`expr '(' $ac_mid ')' + 1`
1.109 ishii 13731: fi
1.179 petere 13732: rm -f conftest.$ac_objext conftest.$ac_ext
1.109 ishii 13733: done
1.179 petere 13734: case $ac_lo in
13735: ?*) pgac_cv_alignof_short=$ac_lo;;
13736: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13737: echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13738: { (exit 1); exit 1; }; } ;;
13739: esac
13740: else
13741: if test "$cross_compiling" = yes; then
13742: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13743: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13744: { (exit 1); exit 1; }; }
13745: else
13746: cat >conftest.$ac_ext <<_ACEOF
13747: #line $LINENO "configure"
13748: #include "confdefs.h"
13749: $ac_includes_default
13750: struct { char filler; short field; } pgac_struct;
13751: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13752: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13753: #include <stdio.h>
13754: #include <stdlib.h>
13755: #ifdef F77_DUMMY_MAIN
13756: # ifdef __cplusplus
13757: extern "C"
13758: # endif
13759: int F77_DUMMY_MAIN() { return 1; }
13760: #endif
13761: int
13762: main ()
13763: {
13764:
13765: FILE *f = fopen ("conftest.val", "w");
13766: if (! f)
13767: exit (1);
13768: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13769: {
13770: long i = longval ();
13771: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13772: exit (1);
13773: fprintf (f, "%ld\n", i);
13774: }
13775: else
13776: {
13777: unsigned long i = ulongval ();
13778: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13779: exit (1);
13780: fprintf (f, "%lu\n", i);
13781: }
13782: exit (ferror (f) || fclose (f) != 0);
13783:
13784: ;
13785: return 0;
13786: }
13787: _ACEOF
13788: rm -f conftest$ac_exeext
13789: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790: (eval $ac_link) 2>&5
13791: ac_status=$?
13792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13794: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795: (eval $ac_try) 2>&5
13796: ac_status=$?
13797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798: (exit $ac_status); }; }; then
13799: pgac_cv_alignof_short=`cat conftest.val`
13800: else
13801: echo "$as_me: program exited with status $ac_status" >&5
13802: echo "$as_me: failed program was:" >&5
13803: cat conftest.$ac_ext >&5
13804: ( exit $ac_status )
13805: { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13806: echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13807: { (exit 1); exit 1; }; }
13808: fi
13809: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13810: fi
13811: fi
13812: rm -f conftest.val
13813: else
13814: pgac_cv_alignof_short=0
13815: fi
13816: fi
13817: echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13818: echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13819: cat >>confdefs.h <<_ACEOF
13820: #define ALIGNOF_SHORT $pgac_cv_alignof_short
13821: _ACEOF
13822:
13823:
13824: echo "$as_me:$LINENO: checking for int" >&5
13825: echo $ECHO_N "checking for int... $ECHO_C" >&6
13826: if test "${ac_cv_type_int+set}" = set; then
13827: echo $ECHO_N "(cached) $ECHO_C" >&6
13828: else
13829: cat >conftest.$ac_ext <<_ACEOF
13830: #line $LINENO "configure"
13831: #include "confdefs.h"
13832: $ac_includes_default
13833: #ifdef F77_DUMMY_MAIN
13834: # ifdef __cplusplus
13835: extern "C"
13836: # endif
13837: int F77_DUMMY_MAIN() { return 1; }
13838: #endif
13839: int
13840: main ()
13841: {
13842: if ((int *) 0)
13843: return 0;
13844: if (sizeof (int))
13845: return 0;
13846: ;
13847: return 0;
13848: }
13849: _ACEOF
13850: rm -f conftest.$ac_objext
13851: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852: (eval $ac_compile) 2>&5
13853: ac_status=$?
13854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855: (exit $ac_status); } &&
13856: { ac_try='test -s conftest.$ac_objext'
13857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858: (eval $ac_try) 2>&5
13859: ac_status=$?
13860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861: (exit $ac_status); }; }; then
13862: ac_cv_type_int=yes
13863: else
13864: echo "$as_me: failed program was:" >&5
13865: cat conftest.$ac_ext >&5
13866: ac_cv_type_int=no
13867: fi
13868: rm -f conftest.$ac_objext conftest.$ac_ext
13869: fi
13870: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13871: echo "${ECHO_T}$ac_cv_type_int" >&6
13872:
13873: echo "$as_me:$LINENO: checking alignment of int" >&5
13874: echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13875: if test "${pgac_cv_alignof_int+set}" = set; then
13876: echo $ECHO_N "(cached) $ECHO_C" >&6
13877: else
13878: if test "$ac_cv_type_int" = yes; then
13879: if test "$cross_compiling" = yes; then
13880: # Depending upon the size, compute the lo and hi bounds.
13881: cat >conftest.$ac_ext <<_ACEOF
13882: #line $LINENO "configure"
13883: #include "confdefs.h"
13884: $ac_includes_default
13885: struct { char filler; int field; } pgac_struct;
13886: #ifdef F77_DUMMY_MAIN
13887: # ifdef __cplusplus
13888: extern "C"
13889: # endif
13890: int F77_DUMMY_MAIN() { return 1; }
13891: #endif
13892: int
13893: main ()
13894: {
13895: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13896: test_array [0] = 0
13897:
13898: ;
13899: return 0;
13900: }
13901: _ACEOF
13902: rm -f conftest.$ac_objext
13903: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904: (eval $ac_compile) 2>&5
13905: ac_status=$?
13906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907: (exit $ac_status); } &&
13908: { ac_try='test -s conftest.$ac_objext'
13909: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910: (eval $ac_try) 2>&5
13911: ac_status=$?
13912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913: (exit $ac_status); }; }; then
13914: ac_lo=0 ac_mid=0
13915: while :; do
13916: cat >conftest.$ac_ext <<_ACEOF
13917: #line $LINENO "configure"
13918: #include "confdefs.h"
13919: $ac_includes_default
13920: struct { char filler; int field; } pgac_struct;
13921: #ifdef F77_DUMMY_MAIN
13922: # ifdef __cplusplus
13923: extern "C"
13924: # endif
13925: int F77_DUMMY_MAIN() { return 1; }
13926: #endif
13927: int
13928: main ()
13929: {
13930: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13931: test_array [0] = 0
1.109 ishii 13932:
1.179 petere 13933: ;
13934: return 0;
13935: }
13936: _ACEOF
13937: rm -f conftest.$ac_objext
13938: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939: (eval $ac_compile) 2>&5
13940: ac_status=$?
13941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942: (exit $ac_status); } &&
13943: { ac_try='test -s conftest.$ac_objext'
13944: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945: (eval $ac_try) 2>&5
13946: ac_status=$?
13947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948: (exit $ac_status); }; }; then
13949: ac_hi=$ac_mid; break
13950: else
13951: echo "$as_me: failed program was:" >&5
13952: cat conftest.$ac_ext >&5
13953: ac_lo=`expr $ac_mid + 1`
13954: if test $ac_lo -le $ac_mid; then
13955: ac_lo= ac_hi=
13956: break
13957: fi
13958: ac_mid=`expr 2 '*' $ac_mid + 1`
1.109 ishii 13959: fi
1.179 petere 13960: rm -f conftest.$ac_objext conftest.$ac_ext
13961: done
13962: else
13963: echo "$as_me: failed program was:" >&5
13964: cat conftest.$ac_ext >&5
13965: cat >conftest.$ac_ext <<_ACEOF
13966: #line $LINENO "configure"
13967: #include "confdefs.h"
13968: $ac_includes_default
13969: struct { char filler; int field; } pgac_struct;
13970: #ifdef F77_DUMMY_MAIN
13971: # ifdef __cplusplus
13972: extern "C"
13973: # endif
13974: int F77_DUMMY_MAIN() { return 1; }
13975: #endif
13976: int
13977: main ()
13978: {
13979: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13980: test_array [0] = 0
1.109 ishii 13981:
1.179 petere 13982: ;
13983: return 0;
13984: }
13985: _ACEOF
13986: rm -f conftest.$ac_objext
13987: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988: (eval $ac_compile) 2>&5
13989: ac_status=$?
13990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991: (exit $ac_status); } &&
13992: { ac_try='test -s conftest.$ac_objext'
13993: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994: (eval $ac_try) 2>&5
13995: ac_status=$?
13996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997: (exit $ac_status); }; }; then
13998: ac_hi=-1 ac_mid=-1
13999: while :; do
14000: cat >conftest.$ac_ext <<_ACEOF
14001: #line $LINENO "configure"
14002: #include "confdefs.h"
14003: $ac_includes_default
14004: struct { char filler; int field; } pgac_struct;
14005: #ifdef F77_DUMMY_MAIN
14006: # ifdef __cplusplus
14007: extern "C"
14008: # endif
14009: int F77_DUMMY_MAIN() { return 1; }
14010: #endif
14011: int
14012: main ()
14013: {
14014: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14015: test_array [0] = 0
1.84 petere 14016:
1.179 petere 14017: ;
14018: return 0;
14019: }
14020: _ACEOF
14021: rm -f conftest.$ac_objext
14022: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023: (eval $ac_compile) 2>&5
14024: ac_status=$?
14025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026: (exit $ac_status); } &&
14027: { ac_try='test -s conftest.$ac_objext'
14028: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029: (eval $ac_try) 2>&5
14030: ac_status=$?
14031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032: (exit $ac_status); }; }; then
14033: ac_lo=$ac_mid; break
14034: else
14035: echo "$as_me: failed program was:" >&5
14036: cat conftest.$ac_ext >&5
14037: ac_hi=`expr '(' $ac_mid ')' - 1`
14038: if test $ac_mid -le $ac_hi; then
14039: ac_lo= ac_hi=
14040: break
14041: fi
14042: ac_mid=`expr 2 '*' $ac_mid`
14043: fi
14044: rm -f conftest.$ac_objext conftest.$ac_ext
14045: done
14046: else
14047: echo "$as_me: failed program was:" >&5
14048: cat conftest.$ac_ext >&5
14049: ac_lo= ac_hi=
14050: fi
14051: rm -f conftest.$ac_objext conftest.$ac_ext
14052: fi
14053: rm -f conftest.$ac_objext conftest.$ac_ext
14054: # Binary search between lo and hi bounds.
14055: while test "x$ac_lo" != "x$ac_hi"; do
14056: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14057: cat >conftest.$ac_ext <<_ACEOF
14058: #line $LINENO "configure"
14059: #include "confdefs.h"
14060: $ac_includes_default
14061: struct { char filler; int field; } pgac_struct;
14062: #ifdef F77_DUMMY_MAIN
14063: # ifdef __cplusplus
14064: extern "C"
14065: # endif
14066: int F77_DUMMY_MAIN() { return 1; }
14067: #endif
14068: int
14069: main ()
14070: {
14071: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14072: test_array [0] = 0
1.1 petere 14073:
1.179 petere 14074: ;
14075: return 0;
14076: }
14077: _ACEOF
14078: rm -f conftest.$ac_objext
14079: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080: (eval $ac_compile) 2>&5
14081: ac_status=$?
14082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083: (exit $ac_status); } &&
14084: { ac_try='test -s conftest.$ac_objext'
14085: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086: (eval $ac_try) 2>&5
14087: ac_status=$?
14088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089: (exit $ac_status); }; }; then
14090: ac_hi=$ac_mid
14091: else
14092: echo "$as_me: failed program was:" >&5
14093: cat conftest.$ac_ext >&5
14094: ac_lo=`expr '(' $ac_mid ')' + 1`
14095: fi
14096: rm -f conftest.$ac_objext conftest.$ac_ext
14097: done
14098: case $ac_lo in
14099: ?*) pgac_cv_alignof_int=$ac_lo;;
14100: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14101: echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14102: { (exit 1); exit 1; }; } ;;
14103: esac
1.90 tgl 14104: else
14105: if test "$cross_compiling" = yes; then
1.179 petere 14106: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14107: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14108: { (exit 1); exit 1; }; }
14109: else
14110: cat >conftest.$ac_ext <<_ACEOF
14111: #line $LINENO "configure"
14112: #include "confdefs.h"
14113: $ac_includes_default
14114: struct { char filler; int field; } pgac_struct;
14115: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14116: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14117: #include <stdio.h>
14118: #include <stdlib.h>
14119: #ifdef F77_DUMMY_MAIN
14120: # ifdef __cplusplus
14121: extern "C"
14122: # endif
14123: int F77_DUMMY_MAIN() { return 1; }
14124: #endif
14125: int
14126: main ()
14127: {
14128:
14129: FILE *f = fopen ("conftest.val", "w");
14130: if (! f)
14131: exit (1);
14132: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14133: {
14134: long i = longval ();
14135: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14136: exit (1);
14137: fprintf (f, "%ld\n", i);
14138: }
14139: else
14140: {
14141: unsigned long i = ulongval ();
14142: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14143: exit (1);
14144: fprintf (f, "%lu\n", i);
14145: }
14146: exit (ferror (f) || fclose (f) != 0);
14147:
14148: ;
14149: return 0;
14150: }
14151: _ACEOF
14152: rm -f conftest$ac_exeext
14153: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154: (eval $ac_link) 2>&5
14155: ac_status=$?
14156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14158: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159: (eval $ac_try) 2>&5
14160: ac_status=$?
14161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162: (exit $ac_status); }; }; then
14163: pgac_cv_alignof_int=`cat conftest.val`
14164: else
14165: echo "$as_me: program exited with status $ac_status" >&5
14166: echo "$as_me: failed program was:" >&5
14167: cat conftest.$ac_ext >&5
14168: ( exit $ac_status )
14169: { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14170: echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14171: { (exit 1); exit 1; }; }
14172: fi
14173: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14174: fi
14175: fi
14176: rm -f conftest.val
14177: else
14178: pgac_cv_alignof_int=0
14179: fi
14180: fi
14181: echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14182: echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14183: cat >>confdefs.h <<_ACEOF
14184: #define ALIGNOF_INT $pgac_cv_alignof_int
14185: _ACEOF
14186:
14187:
14188: echo "$as_me:$LINENO: checking for long" >&5
14189: echo $ECHO_N "checking for long... $ECHO_C" >&6
14190: if test "${ac_cv_type_long+set}" = set; then
14191: echo $ECHO_N "(cached) $ECHO_C" >&6
14192: else
14193: cat >conftest.$ac_ext <<_ACEOF
14194: #line $LINENO "configure"
14195: #include "confdefs.h"
14196: $ac_includes_default
14197: #ifdef F77_DUMMY_MAIN
14198: # ifdef __cplusplus
14199: extern "C"
14200: # endif
14201: int F77_DUMMY_MAIN() { return 1; }
14202: #endif
14203: int
14204: main ()
14205: {
14206: if ((long *) 0)
14207: return 0;
14208: if (sizeof (long))
14209: return 0;
14210: ;
14211: return 0;
14212: }
14213: _ACEOF
14214: rm -f conftest.$ac_objext
14215: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216: (eval $ac_compile) 2>&5
14217: ac_status=$?
14218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219: (exit $ac_status); } &&
14220: { ac_try='test -s conftest.$ac_objext'
14221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222: (eval $ac_try) 2>&5
14223: ac_status=$?
14224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225: (exit $ac_status); }; }; then
14226: ac_cv_type_long=yes
14227: else
14228: echo "$as_me: failed program was:" >&5
14229: cat conftest.$ac_ext >&5
14230: ac_cv_type_long=no
14231: fi
14232: rm -f conftest.$ac_objext conftest.$ac_ext
14233: fi
14234: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14235: echo "${ECHO_T}$ac_cv_type_long" >&6
14236:
14237: echo "$as_me:$LINENO: checking alignment of long" >&5
14238: echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14239: if test "${pgac_cv_alignof_long+set}" = set; then
14240: echo $ECHO_N "(cached) $ECHO_C" >&6
14241: else
14242: if test "$ac_cv_type_long" = yes; then
14243: if test "$cross_compiling" = yes; then
14244: # Depending upon the size, compute the lo and hi bounds.
14245: cat >conftest.$ac_ext <<_ACEOF
14246: #line $LINENO "configure"
14247: #include "confdefs.h"
14248: $ac_includes_default
14249: struct { char filler; long field; } pgac_struct;
14250: #ifdef F77_DUMMY_MAIN
14251: # ifdef __cplusplus
14252: extern "C"
14253: # endif
14254: int F77_DUMMY_MAIN() { return 1; }
14255: #endif
14256: int
14257: main ()
14258: {
14259: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14260: test_array [0] = 0
14261:
14262: ;
14263: return 0;
14264: }
14265: _ACEOF
14266: rm -f conftest.$ac_objext
14267: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268: (eval $ac_compile) 2>&5
14269: ac_status=$?
14270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271: (exit $ac_status); } &&
14272: { ac_try='test -s conftest.$ac_objext'
14273: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274: (eval $ac_try) 2>&5
14275: ac_status=$?
14276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277: (exit $ac_status); }; }; then
14278: ac_lo=0 ac_mid=0
14279: while :; do
14280: cat >conftest.$ac_ext <<_ACEOF
14281: #line $LINENO "configure"
14282: #include "confdefs.h"
14283: $ac_includes_default
14284: struct { char filler; long field; } pgac_struct;
14285: #ifdef F77_DUMMY_MAIN
14286: # ifdef __cplusplus
14287: extern "C"
14288: # endif
14289: int F77_DUMMY_MAIN() { return 1; }
14290: #endif
14291: int
14292: main ()
14293: {
14294: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14295: test_array [0] = 0
14296:
14297: ;
14298: return 0;
14299: }
14300: _ACEOF
14301: rm -f conftest.$ac_objext
14302: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303: (eval $ac_compile) 2>&5
14304: ac_status=$?
14305: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306: (exit $ac_status); } &&
14307: { ac_try='test -s conftest.$ac_objext'
14308: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309: (eval $ac_try) 2>&5
14310: ac_status=$?
14311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312: (exit $ac_status); }; }; then
14313: ac_hi=$ac_mid; break
14314: else
14315: echo "$as_me: failed program was:" >&5
14316: cat conftest.$ac_ext >&5
14317: ac_lo=`expr $ac_mid + 1`
14318: if test $ac_lo -le $ac_mid; then
14319: ac_lo= ac_hi=
14320: break
14321: fi
14322: ac_mid=`expr 2 '*' $ac_mid + 1`
14323: fi
14324: rm -f conftest.$ac_objext conftest.$ac_ext
14325: done
14326: else
14327: echo "$as_me: failed program was:" >&5
14328: cat conftest.$ac_ext >&5
14329: cat >conftest.$ac_ext <<_ACEOF
14330: #line $LINENO "configure"
14331: #include "confdefs.h"
14332: $ac_includes_default
14333: struct { char filler; long field; } pgac_struct;
14334: #ifdef F77_DUMMY_MAIN
14335: # ifdef __cplusplus
14336: extern "C"
14337: # endif
14338: int F77_DUMMY_MAIN() { return 1; }
14339: #endif
14340: int
14341: main ()
14342: {
14343: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14344: test_array [0] = 0
14345:
14346: ;
14347: return 0;
14348: }
14349: _ACEOF
14350: rm -f conftest.$ac_objext
14351: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352: (eval $ac_compile) 2>&5
14353: ac_status=$?
14354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355: (exit $ac_status); } &&
14356: { ac_try='test -s conftest.$ac_objext'
14357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358: (eval $ac_try) 2>&5
14359: ac_status=$?
14360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361: (exit $ac_status); }; }; then
14362: ac_hi=-1 ac_mid=-1
14363: while :; do
14364: cat >conftest.$ac_ext <<_ACEOF
14365: #line $LINENO "configure"
14366: #include "confdefs.h"
14367: $ac_includes_default
14368: struct { char filler; long field; } pgac_struct;
14369: #ifdef F77_DUMMY_MAIN
14370: # ifdef __cplusplus
14371: extern "C"
14372: # endif
14373: int F77_DUMMY_MAIN() { return 1; }
14374: #endif
14375: int
14376: main ()
14377: {
14378: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14379: test_array [0] = 0
14380:
14381: ;
14382: return 0;
14383: }
14384: _ACEOF
14385: rm -f conftest.$ac_objext
14386: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387: (eval $ac_compile) 2>&5
14388: ac_status=$?
14389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390: (exit $ac_status); } &&
14391: { ac_try='test -s conftest.$ac_objext'
14392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393: (eval $ac_try) 2>&5
14394: ac_status=$?
14395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396: (exit $ac_status); }; }; then
14397: ac_lo=$ac_mid; break
14398: else
14399: echo "$as_me: failed program was:" >&5
14400: cat conftest.$ac_ext >&5
14401: ac_hi=`expr '(' $ac_mid ')' - 1`
14402: if test $ac_mid -le $ac_hi; then
14403: ac_lo= ac_hi=
14404: break
14405: fi
14406: ac_mid=`expr 2 '*' $ac_mid`
14407: fi
14408: rm -f conftest.$ac_objext conftest.$ac_ext
14409: done
14410: else
14411: echo "$as_me: failed program was:" >&5
14412: cat conftest.$ac_ext >&5
14413: ac_lo= ac_hi=
14414: fi
14415: rm -f conftest.$ac_objext conftest.$ac_ext
14416: fi
14417: rm -f conftest.$ac_objext conftest.$ac_ext
14418: # Binary search between lo and hi bounds.
14419: while test "x$ac_lo" != "x$ac_hi"; do
14420: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14421: cat >conftest.$ac_ext <<_ACEOF
14422: #line $LINENO "configure"
14423: #include "confdefs.h"
14424: $ac_includes_default
14425: struct { char filler; long field; } pgac_struct;
14426: #ifdef F77_DUMMY_MAIN
14427: # ifdef __cplusplus
14428: extern "C"
14429: # endif
14430: int F77_DUMMY_MAIN() { return 1; }
14431: #endif
14432: int
14433: main ()
14434: {
14435: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14436: test_array [0] = 0
14437:
14438: ;
14439: return 0;
14440: }
14441: _ACEOF
14442: rm -f conftest.$ac_objext
14443: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444: (eval $ac_compile) 2>&5
14445: ac_status=$?
14446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447: (exit $ac_status); } &&
14448: { ac_try='test -s conftest.$ac_objext'
14449: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450: (eval $ac_try) 2>&5
14451: ac_status=$?
14452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453: (exit $ac_status); }; }; then
14454: ac_hi=$ac_mid
14455: else
14456: echo "$as_me: failed program was:" >&5
14457: cat conftest.$ac_ext >&5
14458: ac_lo=`expr '(' $ac_mid ')' + 1`
14459: fi
14460: rm -f conftest.$ac_objext conftest.$ac_ext
14461: done
14462: case $ac_lo in
14463: ?*) pgac_cv_alignof_long=$ac_lo;;
14464: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14465: echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14466: { (exit 1); exit 1; }; } ;;
14467: esac
1.90 tgl 14468: else
1.179 petere 14469: if test "$cross_compiling" = yes; then
14470: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14471: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14472: { (exit 1); exit 1; }; }
14473: else
14474: cat >conftest.$ac_ext <<_ACEOF
14475: #line $LINENO "configure"
14476: #include "confdefs.h"
14477: $ac_includes_default
14478: struct { char filler; long field; } pgac_struct;
14479: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14480: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.90 tgl 14481: #include <stdio.h>
1.179 petere 14482: #include <stdlib.h>
14483: #ifdef F77_DUMMY_MAIN
14484: # ifdef __cplusplus
14485: extern "C"
14486: # endif
14487: int F77_DUMMY_MAIN() { return 1; }
14488: #endif
14489: int
14490: main ()
14491: {
14492:
14493: FILE *f = fopen ("conftest.val", "w");
14494: if (! f)
14495: exit (1);
14496: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14497: {
14498: long i = longval ();
14499: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14500: exit (1);
14501: fprintf (f, "%ld\n", i);
14502: }
14503: else
14504: {
14505: unsigned long i = ulongval ();
14506: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14507: exit (1);
14508: fprintf (f, "%lu\n", i);
14509: }
14510: exit (ferror (f) || fclose (f) != 0);
14511:
14512: ;
14513: return 0;
14514: }
14515: _ACEOF
14516: rm -f conftest$ac_exeext
14517: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518: (eval $ac_link) 2>&5
14519: ac_status=$?
14520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523: (eval $ac_try) 2>&5
14524: ac_status=$?
14525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526: (exit $ac_status); }; }; then
14527: pgac_cv_alignof_long=`cat conftest.val`
14528: else
14529: echo "$as_me: program exited with status $ac_status" >&5
14530: echo "$as_me: failed program was:" >&5
14531: cat conftest.$ac_ext >&5
14532: ( exit $ac_status )
14533: { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14534: echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14535: { (exit 1); exit 1; }; }
14536: fi
14537: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14538: fi
14539: fi
14540: rm -f conftest.val
14541: else
14542: pgac_cv_alignof_long=0
14543: fi
14544: fi
14545: echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14546: echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14547: cat >>confdefs.h <<_ACEOF
14548: #define ALIGNOF_LONG $pgac_cv_alignof_long
14549: _ACEOF
14550:
14551:
14552: if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14553: echo "$as_me:$LINENO: checking for long long int" >&5
14554: echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14555: if test "${ac_cv_type_long_long_int+set}" = set; then
14556: echo $ECHO_N "(cached) $ECHO_C" >&6
14557: else
14558: cat >conftest.$ac_ext <<_ACEOF
14559: #line $LINENO "configure"
14560: #include "confdefs.h"
14561: $ac_includes_default
14562: #ifdef F77_DUMMY_MAIN
14563: # ifdef __cplusplus
14564: extern "C"
14565: # endif
14566: int F77_DUMMY_MAIN() { return 1; }
14567: #endif
14568: int
14569: main ()
1.90 tgl 14570: {
1.179 petere 14571: if ((long long int *) 0)
14572: return 0;
14573: if (sizeof (long long int))
14574: return 0;
14575: ;
14576: return 0;
1.90 tgl 14577: }
1.179 petere 14578: _ACEOF
14579: rm -f conftest.$ac_objext
14580: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581: (eval $ac_compile) 2>&5
14582: ac_status=$?
14583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584: (exit $ac_status); } &&
14585: { ac_try='test -s conftest.$ac_objext'
14586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587: (eval $ac_try) 2>&5
14588: ac_status=$?
14589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590: (exit $ac_status); }; }; then
14591: ac_cv_type_long_long_int=yes
14592: else
14593: echo "$as_me: failed program was:" >&5
14594: cat conftest.$ac_ext >&5
14595: ac_cv_type_long_long_int=no
14596: fi
14597: rm -f conftest.$ac_objext conftest.$ac_ext
14598: fi
14599: echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14600: echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14601:
14602: echo "$as_me:$LINENO: checking alignment of long long int" >&5
14603: echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14604: if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14605: echo $ECHO_N "(cached) $ECHO_C" >&6
1.90 tgl 14606: else
1.179 petere 14607: if test "$ac_cv_type_long_long_int" = yes; then
14608: if test "$cross_compiling" = yes; then
14609: # Depending upon the size, compute the lo and hi bounds.
14610: cat >conftest.$ac_ext <<_ACEOF
14611: #line $LINENO "configure"
14612: #include "confdefs.h"
14613: $ac_includes_default
14614: struct { char filler; long long int field; } pgac_struct;
14615: #ifdef F77_DUMMY_MAIN
14616: # ifdef __cplusplus
14617: extern "C"
14618: # endif
14619: int F77_DUMMY_MAIN() { return 1; }
14620: #endif
14621: int
14622: main ()
14623: {
14624: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14625: test_array [0] = 0
14626:
14627: ;
14628: return 0;
14629: }
14630: _ACEOF
14631: rm -f conftest.$ac_objext
14632: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633: (eval $ac_compile) 2>&5
14634: ac_status=$?
14635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636: (exit $ac_status); } &&
14637: { ac_try='test -s conftest.$ac_objext'
14638: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639: (eval $ac_try) 2>&5
14640: ac_status=$?
14641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642: (exit $ac_status); }; }; then
14643: ac_lo=0 ac_mid=0
14644: while :; do
14645: cat >conftest.$ac_ext <<_ACEOF
14646: #line $LINENO "configure"
14647: #include "confdefs.h"
14648: $ac_includes_default
14649: struct { char filler; long long int field; } pgac_struct;
14650: #ifdef F77_DUMMY_MAIN
14651: # ifdef __cplusplus
14652: extern "C"
14653: # endif
14654: int F77_DUMMY_MAIN() { return 1; }
14655: #endif
14656: int
14657: main ()
14658: {
14659: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14660: test_array [0] = 0
14661:
14662: ;
14663: return 0;
14664: }
14665: _ACEOF
14666: rm -f conftest.$ac_objext
14667: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668: (eval $ac_compile) 2>&5
14669: ac_status=$?
14670: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671: (exit $ac_status); } &&
14672: { ac_try='test -s conftest.$ac_objext'
14673: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674: (eval $ac_try) 2>&5
14675: ac_status=$?
14676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677: (exit $ac_status); }; }; then
14678: ac_hi=$ac_mid; break
14679: else
14680: echo "$as_me: failed program was:" >&5
14681: cat conftest.$ac_ext >&5
14682: ac_lo=`expr $ac_mid + 1`
14683: if test $ac_lo -le $ac_mid; then
14684: ac_lo= ac_hi=
14685: break
14686: fi
14687: ac_mid=`expr 2 '*' $ac_mid + 1`
1.90 tgl 14688: fi
1.179 petere 14689: rm -f conftest.$ac_objext conftest.$ac_ext
14690: done
14691: else
14692: echo "$as_me: failed program was:" >&5
14693: cat conftest.$ac_ext >&5
14694: cat >conftest.$ac_ext <<_ACEOF
14695: #line $LINENO "configure"
14696: #include "confdefs.h"
14697: $ac_includes_default
14698: struct { char filler; long long int field; } pgac_struct;
14699: #ifdef F77_DUMMY_MAIN
14700: # ifdef __cplusplus
14701: extern "C"
14702: # endif
14703: int F77_DUMMY_MAIN() { return 1; }
14704: #endif
14705: int
14706: main ()
14707: {
14708: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14709: test_array [0] = 0
14710:
14711: ;
14712: return 0;
14713: }
14714: _ACEOF
14715: rm -f conftest.$ac_objext
14716: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717: (eval $ac_compile) 2>&5
14718: ac_status=$?
14719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720: (exit $ac_status); } &&
14721: { ac_try='test -s conftest.$ac_objext'
14722: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723: (eval $ac_try) 2>&5
14724: ac_status=$?
14725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726: (exit $ac_status); }; }; then
14727: ac_hi=-1 ac_mid=-1
14728: while :; do
14729: cat >conftest.$ac_ext <<_ACEOF
14730: #line $LINENO "configure"
14731: #include "confdefs.h"
14732: $ac_includes_default
14733: struct { char filler; long long int field; } pgac_struct;
14734: #ifdef F77_DUMMY_MAIN
14735: # ifdef __cplusplus
14736: extern "C"
14737: # endif
14738: int F77_DUMMY_MAIN() { return 1; }
14739: #endif
14740: int
14741: main ()
14742: {
14743: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14744: test_array [0] = 0
14745:
14746: ;
14747: return 0;
14748: }
14749: _ACEOF
14750: rm -f conftest.$ac_objext
14751: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752: (eval $ac_compile) 2>&5
14753: ac_status=$?
14754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755: (exit $ac_status); } &&
14756: { ac_try='test -s conftest.$ac_objext'
14757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758: (eval $ac_try) 2>&5
14759: ac_status=$?
14760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761: (exit $ac_status); }; }; then
14762: ac_lo=$ac_mid; break
14763: else
14764: echo "$as_me: failed program was:" >&5
14765: cat conftest.$ac_ext >&5
14766: ac_hi=`expr '(' $ac_mid ')' - 1`
14767: if test $ac_mid -le $ac_hi; then
14768: ac_lo= ac_hi=
14769: break
14770: fi
14771: ac_mid=`expr 2 '*' $ac_mid`
1.90 tgl 14772: fi
1.179 petere 14773: rm -f conftest.$ac_objext conftest.$ac_ext
14774: done
14775: else
14776: echo "$as_me: failed program was:" >&5
14777: cat conftest.$ac_ext >&5
14778: ac_lo= ac_hi=
14779: fi
14780: rm -f conftest.$ac_objext conftest.$ac_ext
14781: fi
14782: rm -f conftest.$ac_objext conftest.$ac_ext
14783: # Binary search between lo and hi bounds.
14784: while test "x$ac_lo" != "x$ac_hi"; do
14785: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14786: cat >conftest.$ac_ext <<_ACEOF
14787: #line $LINENO "configure"
14788: #include "confdefs.h"
14789: $ac_includes_default
14790: struct { char filler; long long int field; } pgac_struct;
14791: #ifdef F77_DUMMY_MAIN
14792: # ifdef __cplusplus
14793: extern "C"
14794: # endif
14795: int F77_DUMMY_MAIN() { return 1; }
14796: #endif
14797: int
14798: main ()
14799: {
14800: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14801: test_array [0] = 0
1.90 tgl 14802:
1.179 petere 14803: ;
14804: return 0;
14805: }
14806: _ACEOF
14807: rm -f conftest.$ac_objext
14808: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809: (eval $ac_compile) 2>&5
14810: ac_status=$?
14811: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812: (exit $ac_status); } &&
14813: { ac_try='test -s conftest.$ac_objext'
14814: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815: (eval $ac_try) 2>&5
14816: ac_status=$?
14817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818: (exit $ac_status); }; }; then
14819: ac_hi=$ac_mid
14820: else
14821: echo "$as_me: failed program was:" >&5
14822: cat conftest.$ac_ext >&5
14823: ac_lo=`expr '(' $ac_mid ')' + 1`
1.90 tgl 14824: fi
1.179 petere 14825: rm -f conftest.$ac_objext conftest.$ac_ext
14826: done
14827: case $ac_lo in
14828: ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14829: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14830: echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14831: { (exit 1); exit 1; }; } ;;
14832: esac
1.1 petere 14833: else
14834: if test "$cross_compiling" = yes; then
1.179 petere 14835: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14836: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14837: { (exit 1); exit 1; }; }
14838: else
14839: cat >conftest.$ac_ext <<_ACEOF
14840: #line $LINENO "configure"
14841: #include "confdefs.h"
14842: $ac_includes_default
14843: struct { char filler; long long int field; } pgac_struct;
14844: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14845: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.1 petere 14846: #include <stdio.h>
1.179 petere 14847: #include <stdlib.h>
14848: #ifdef F77_DUMMY_MAIN
14849: # ifdef __cplusplus
14850: extern "C"
14851: # endif
14852: int F77_DUMMY_MAIN() { return 1; }
14853: #endif
14854: int
14855: main ()
1.1 petere 14856: {
1.179 petere 14857:
14858: FILE *f = fopen ("conftest.val", "w");
14859: if (! f)
14860: exit (1);
14861: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14862: {
14863: long i = longval ();
14864: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14865: exit (1);
14866: fprintf (f, "%ld\n", i);
14867: }
14868: else
14869: {
14870: unsigned long i = ulongval ();
14871: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14872: exit (1);
14873: fprintf (f, "%lu\n", i);
14874: }
14875: exit (ferror (f) || fclose (f) != 0);
14876:
14877: ;
14878: return 0;
1.1 petere 14879: }
1.179 petere 14880: _ACEOF
14881: rm -f conftest$ac_exeext
14882: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14883: (eval $ac_link) 2>&5
14884: ac_status=$?
14885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14887: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888: (eval $ac_try) 2>&5
14889: ac_status=$?
14890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891: (exit $ac_status); }; }; then
14892: pgac_cv_alignof_long_long_int=`cat conftest.val`
14893: else
14894: echo "$as_me: program exited with status $ac_status" >&5
14895: echo "$as_me: failed program was:" >&5
14896: cat conftest.$ac_ext >&5
14897: ( exit $ac_status )
14898: { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14899: echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14900: { (exit 1); exit 1; }; }
14901: fi
14902: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14903: fi
14904: fi
14905: rm -f conftest.val
14906: else
14907: pgac_cv_alignof_long_long_int=0
14908: fi
14909: fi
14910: echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14911: echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14912: cat >>confdefs.h <<_ACEOF
14913: #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14914: _ACEOF
14915:
1.1 petere 14916:
14917: fi
1.179 petere 14918: echo "$as_me:$LINENO: checking for double" >&5
14919: echo $ECHO_N "checking for double... $ECHO_C" >&6
14920: if test "${ac_cv_type_double+set}" = set; then
14921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 14922: else
1.179 petere 14923: cat >conftest.$ac_ext <<_ACEOF
14924: #line $LINENO "configure"
1.1 petere 14925: #include "confdefs.h"
1.179 petere 14926: $ac_includes_default
14927: #ifdef F77_DUMMY_MAIN
14928: # ifdef __cplusplus
14929: extern "C"
14930: # endif
14931: int F77_DUMMY_MAIN() { return 1; }
14932: #endif
14933: int
14934: main ()
1.1 petere 14935: {
1.179 petere 14936: if ((double *) 0)
14937: return 0;
14938: if (sizeof (double))
14939: return 0;
14940: ;
14941: return 0;
1.1 petere 14942: }
1.179 petere 14943: _ACEOF
14944: rm -f conftest.$ac_objext
14945: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946: (eval $ac_compile) 2>&5
14947: ac_status=$?
14948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949: (exit $ac_status); } &&
14950: { ac_try='test -s conftest.$ac_objext'
14951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952: (eval $ac_try) 2>&5
14953: ac_status=$?
14954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955: (exit $ac_status); }; }; then
14956: ac_cv_type_double=yes
14957: else
14958: echo "$as_me: failed program was:" >&5
14959: cat conftest.$ac_ext >&5
14960: ac_cv_type_double=no
14961: fi
14962: rm -f conftest.$ac_objext conftest.$ac_ext
14963: fi
14964: echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14965: echo "${ECHO_T}$ac_cv_type_double" >&6
14966:
14967: echo "$as_me:$LINENO: checking alignment of double" >&5
14968: echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14969: if test "${pgac_cv_alignof_double+set}" = set; then
14970: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 14971: else
1.179 petere 14972: if test "$ac_cv_type_double" = yes; then
1.1 petere 14973: if test "$cross_compiling" = yes; then
1.179 petere 14974: # Depending upon the size, compute the lo and hi bounds.
14975: cat >conftest.$ac_ext <<_ACEOF
14976: #line $LINENO "configure"
14977: #include "confdefs.h"
14978: $ac_includes_default
14979: struct { char filler; double field; } pgac_struct;
14980: #ifdef F77_DUMMY_MAIN
14981: # ifdef __cplusplus
14982: extern "C"
14983: # endif
14984: int F77_DUMMY_MAIN() { return 1; }
14985: #endif
14986: int
14987: main ()
1.1 petere 14988: {
1.179 petere 14989: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14990: test_array [0] = 0
14991:
14992: ;
14993: return 0;
1.1 petere 14994: }
1.179 petere 14995: _ACEOF
14996: rm -f conftest.$ac_objext
14997: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998: (eval $ac_compile) 2>&5
14999: ac_status=$?
15000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001: (exit $ac_status); } &&
15002: { ac_try='test -s conftest.$ac_objext'
15003: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004: (eval $ac_try) 2>&5
15005: ac_status=$?
15006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007: (exit $ac_status); }; }; then
15008: ac_lo=0 ac_mid=0
15009: while :; do
15010: cat >conftest.$ac_ext <<_ACEOF
15011: #line $LINENO "configure"
15012: #include "confdefs.h"
15013: $ac_includes_default
15014: struct { char filler; double field; } pgac_struct;
15015: #ifdef F77_DUMMY_MAIN
15016: # ifdef __cplusplus
15017: extern "C"
15018: # endif
15019: int F77_DUMMY_MAIN() { return 1; }
15020: #endif
15021: int
15022: main ()
15023: {
15024: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15025: test_array [0] = 0
1.1 petere 15026:
1.179 petere 15027: ;
15028: return 0;
15029: }
15030: _ACEOF
15031: rm -f conftest.$ac_objext
15032: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15033: (eval $ac_compile) 2>&5
15034: ac_status=$?
15035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036: (exit $ac_status); } &&
15037: { ac_try='test -s conftest.$ac_objext'
15038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039: (eval $ac_try) 2>&5
15040: ac_status=$?
15041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042: (exit $ac_status); }; }; then
15043: ac_hi=$ac_mid; break
15044: else
15045: echo "$as_me: failed program was:" >&5
15046: cat conftest.$ac_ext >&5
15047: ac_lo=`expr $ac_mid + 1`
15048: if test $ac_lo -le $ac_mid; then
15049: ac_lo= ac_hi=
15050: break
15051: fi
15052: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 petere 15053: fi
1.179 petere 15054: rm -f conftest.$ac_objext conftest.$ac_ext
15055: done
1.1 petere 15056: else
1.179 petere 15057: echo "$as_me: failed program was:" >&5
15058: cat conftest.$ac_ext >&5
15059: cat >conftest.$ac_ext <<_ACEOF
15060: #line $LINENO "configure"
15061: #include "confdefs.h"
15062: $ac_includes_default
15063: struct { char filler; double field; } pgac_struct;
15064: #ifdef F77_DUMMY_MAIN
15065: # ifdef __cplusplus
15066: extern "C"
15067: # endif
15068: int F77_DUMMY_MAIN() { return 1; }
15069: #endif
15070: int
15071: main ()
1.1 petere 15072: {
1.179 petere 15073: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15074: test_array [0] = 0
15075:
15076: ;
15077: return 0;
1.1 petere 15078: }
1.179 petere 15079: _ACEOF
15080: rm -f conftest.$ac_objext
15081: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082: (eval $ac_compile) 2>&5
15083: ac_status=$?
15084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085: (exit $ac_status); } &&
15086: { ac_try='test -s conftest.$ac_objext'
15087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088: (eval $ac_try) 2>&5
15089: ac_status=$?
15090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091: (exit $ac_status); }; }; then
15092: ac_hi=-1 ac_mid=-1
15093: while :; do
15094: cat >conftest.$ac_ext <<_ACEOF
15095: #line $LINENO "configure"
15096: #include "confdefs.h"
15097: $ac_includes_default
15098: struct { char filler; double field; } pgac_struct;
15099: #ifdef F77_DUMMY_MAIN
15100: # ifdef __cplusplus
15101: extern "C"
15102: # endif
15103: int F77_DUMMY_MAIN() { return 1; }
15104: #endif
15105: int
15106: main ()
15107: {
15108: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15109: test_array [0] = 0
1.1 petere 15110:
1.179 petere 15111: ;
15112: return 0;
15113: }
15114: _ACEOF
15115: rm -f conftest.$ac_objext
15116: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15117: (eval $ac_compile) 2>&5
15118: ac_status=$?
15119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120: (exit $ac_status); } &&
15121: { ac_try='test -s conftest.$ac_objext'
15122: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123: (eval $ac_try) 2>&5
15124: ac_status=$?
15125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126: (exit $ac_status); }; }; then
15127: ac_lo=$ac_mid; break
15128: else
15129: echo "$as_me: failed program was:" >&5
15130: cat conftest.$ac_ext >&5
15131: ac_hi=`expr '(' $ac_mid ')' - 1`
15132: if test $ac_mid -le $ac_hi; then
15133: ac_lo= ac_hi=
15134: break
15135: fi
15136: ac_mid=`expr 2 '*' $ac_mid`
1.1 petere 15137: fi
1.179 petere 15138: rm -f conftest.$ac_objext conftest.$ac_ext
15139: done
15140: else
15141: echo "$as_me: failed program was:" >&5
15142: cat conftest.$ac_ext >&5
15143: ac_lo= ac_hi=
15144: fi
15145: rm -f conftest.$ac_objext conftest.$ac_ext
15146: fi
15147: rm -f conftest.$ac_objext conftest.$ac_ext
15148: # Binary search between lo and hi bounds.
15149: while test "x$ac_lo" != "x$ac_hi"; do
15150: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15151: cat >conftest.$ac_ext <<_ACEOF
15152: #line $LINENO "configure"
15153: #include "confdefs.h"
15154: $ac_includes_default
15155: struct { char filler; double field; } pgac_struct;
15156: #ifdef F77_DUMMY_MAIN
15157: # ifdef __cplusplus
15158: extern "C"
15159: # endif
15160: int F77_DUMMY_MAIN() { return 1; }
15161: #endif
15162: int
15163: main ()
15164: {
15165: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15166: test_array [0] = 0
1.1 petere 15167:
1.179 petere 15168: ;
15169: return 0;
15170: }
15171: _ACEOF
15172: rm -f conftest.$ac_objext
15173: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174: (eval $ac_compile) 2>&5
15175: ac_status=$?
15176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177: (exit $ac_status); } &&
15178: { ac_try='test -s conftest.$ac_objext'
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: ac_hi=$ac_mid
15185: else
15186: echo "$as_me: failed program was:" >&5
15187: cat conftest.$ac_ext >&5
15188: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 petere 15189: fi
1.179 petere 15190: rm -f conftest.$ac_objext conftest.$ac_ext
15191: done
15192: case $ac_lo in
15193: ?*) pgac_cv_alignof_double=$ac_lo;;
15194: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15195: echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15196: { (exit 1); exit 1; }; } ;;
15197: esac
1.1 petere 15198: else
15199: if test "$cross_compiling" = yes; then
1.179 petere 15200: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15201: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15202: { (exit 1); exit 1; }; }
15203: else
15204: cat >conftest.$ac_ext <<_ACEOF
15205: #line $LINENO "configure"
15206: #include "confdefs.h"
15207: $ac_includes_default
15208: struct { char filler; double field; } pgac_struct;
15209: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15210: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.1 petere 15211: #include <stdio.h>
1.179 petere 15212: #include <stdlib.h>
15213: #ifdef F77_DUMMY_MAIN
15214: # ifdef __cplusplus
15215: extern "C"
15216: # endif
15217: int F77_DUMMY_MAIN() { return 1; }
15218: #endif
15219: int
15220: main ()
1.1 petere 15221: {
1.179 petere 15222:
15223: FILE *f = fopen ("conftest.val", "w");
15224: if (! f)
15225: exit (1);
15226: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15227: {
15228: long i = longval ();
15229: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15230: exit (1);
15231: fprintf (f, "%ld\n", i);
15232: }
15233: else
15234: {
15235: unsigned long i = ulongval ();
15236: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15237: exit (1);
15238: fprintf (f, "%lu\n", i);
15239: }
15240: exit (ferror (f) || fclose (f) != 0);
15241:
15242: ;
15243: return 0;
1.1 petere 15244: }
1.179 petere 15245: _ACEOF
15246: rm -f conftest$ac_exeext
15247: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248: (eval $ac_link) 2>&5
15249: ac_status=$?
15250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253: (eval $ac_try) 2>&5
15254: ac_status=$?
15255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256: (exit $ac_status); }; }; then
15257: pgac_cv_alignof_double=`cat conftest.val`
15258: else
15259: echo "$as_me: program exited with status $ac_status" >&5
15260: echo "$as_me: failed program was:" >&5
15261: cat conftest.$ac_ext >&5
15262: ( exit $ac_status )
15263: { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15264: echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15265: { (exit 1); exit 1; }; }
15266: fi
15267: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15268: fi
15269: fi
15270: rm -f conftest.val
15271: else
15272: pgac_cv_alignof_double=0
15273: fi
15274: fi
15275: echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15276: echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15277: cat >>confdefs.h <<_ACEOF
1.5 petere 15278: #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
1.179 petere 15279: _ACEOF
1.1 petere 15280:
15281:
15282:
1.179 petere 15283: # Compute maximum alignment of any basic type.
15284: # We assume long's alignment is at least as strong as char, short, or int;
15285: # but we must check long long (if it exists) and double.
1.1 petere 15286:
1.179 petere 15287: MAX_ALIGNOF=$pgac_cv_alignof_long
15288: if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15289: MAX_ALIGNOF=$pgac_cv_alignof_double
15290: fi
15291: if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15292: MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
1.1 petere 15293: fi
1.179 petere 15294:
15295: cat >>confdefs.h <<_ACEOF
1.1 petere 15296: #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
1.179 petere 15297: _ACEOF
1.1 petere 15298:
15299:
1.163 petere 15300:
1.161 tgl 15301: # Some platforms predefine the types int8, int16, etc. Only check
1.179 petere 15302: # a (hopefully) representative subset.
15303: echo "$as_me:$LINENO: checking for int8" >&5
15304: echo $ECHO_N "checking for int8... $ECHO_C" >&6
15305: if test "${ac_cv_type_int8+set}" = set; then
15306: echo $ECHO_N "(cached) $ECHO_C" >&6
15307: else
15308: cat >conftest.$ac_ext <<_ACEOF
15309: #line $LINENO "configure"
15310: #include "confdefs.h"
1.163 petere 15311: #include <stdio.h>
15312: #ifdef HAVE_SUPPORTDEFS_H
15313: #include <SupportDefs.h>
1.179 petere 15314: #endif
1.163 petere 15315:
1.179 petere 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: {
1.163 petere 15325: if ((int8 *) 0)
15326: return 0;
15327: if (sizeof (int8))
15328: return 0;
1.179 petere 15329: ;
15330: return 0;
15331: }
15332: _ACEOF
15333: rm -f conftest.$ac_objext
15334: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335: (eval $ac_compile) 2>&5
15336: ac_status=$?
15337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338: (exit $ac_status); } &&
15339: { ac_try='test -s conftest.$ac_objext'
15340: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341: (eval $ac_try) 2>&5
15342: ac_status=$?
15343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344: (exit $ac_status); }; }; then
15345: ac_cv_type_int8=yes
15346: else
15347: echo "$as_me: failed program was:" >&5
15348: cat conftest.$ac_ext >&5
15349: ac_cv_type_int8=no
15350: fi
15351: rm -f conftest.$ac_objext conftest.$ac_ext
15352: fi
15353: echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15354: echo "${ECHO_T}$ac_cv_type_int8" >&6
15355: if test $ac_cv_type_int8 = yes; then
1.161 tgl 15356:
1.179 petere 15357: cat >>confdefs.h <<_ACEOF
1.163 petere 15358: #define HAVE_INT8 1
1.179 petere 15359: _ACEOF
1.161 tgl 15360:
15361:
1.179 petere 15362: fi
15363: echo "$as_me:$LINENO: checking for uint8" >&5
15364: echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15365: if test "${ac_cv_type_uint8+set}" = set; then
15366: echo $ECHO_N "(cached) $ECHO_C" >&6
1.161 tgl 15367: else
1.179 petere 15368: cat >conftest.$ac_ext <<_ACEOF
15369: #line $LINENO "configure"
1.161 tgl 15370: #include "confdefs.h"
1.179 petere 15371: #include <stdio.h>
15372: #ifdef HAVE_SUPPORTDEFS_H
15373: #include <SupportDefs.h>
15374: #endif
15375:
15376: #ifdef F77_DUMMY_MAIN
15377: # ifdef __cplusplus
15378: extern "C"
15379: # endif
15380: int F77_DUMMY_MAIN() { return 1; }
15381: #endif
15382: int
15383: main ()
15384: {
1.163 petere 15385: if ((uint8 *) 0)
15386: return 0;
15387: if (sizeof (uint8))
15388: return 0;
1.179 petere 15389: ;
15390: return 0;
15391: }
15392: _ACEOF
15393: rm -f conftest.$ac_objext
15394: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15395: (eval $ac_compile) 2>&5
15396: ac_status=$?
15397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398: (exit $ac_status); } &&
15399: { ac_try='test -s conftest.$ac_objext'
15400: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401: (eval $ac_try) 2>&5
15402: ac_status=$?
15403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404: (exit $ac_status); }; }; then
15405: ac_cv_type_uint8=yes
15406: else
15407: echo "$as_me: failed program was:" >&5
15408: cat conftest.$ac_ext >&5
15409: ac_cv_type_uint8=no
15410: fi
15411: rm -f conftest.$ac_objext conftest.$ac_ext
15412: fi
15413: echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15414: echo "${ECHO_T}$ac_cv_type_uint8" >&6
15415: if test $ac_cv_type_uint8 = yes; then
1.161 tgl 15416:
1.179 petere 15417: cat >>confdefs.h <<_ACEOF
1.163 petere 15418: #define HAVE_UINT8 1
1.179 petere 15419: _ACEOF
1.161 tgl 15420:
15421:
1.179 petere 15422: fi
15423: echo "$as_me:$LINENO: checking for int64" >&5
15424: echo $ECHO_N "checking for int64... $ECHO_C" >&6
15425: if test "${ac_cv_type_int64+set}" = set; then
15426: echo $ECHO_N "(cached) $ECHO_C" >&6
1.161 tgl 15427: else
1.179 petere 15428: cat >conftest.$ac_ext <<_ACEOF
15429: #line $LINENO "configure"
1.161 tgl 15430: #include "confdefs.h"
1.179 petere 15431: #include <stdio.h>
15432: #ifdef HAVE_SUPPORTDEFS_H
15433: #include <SupportDefs.h>
15434: #endif
15435:
15436: #ifdef F77_DUMMY_MAIN
15437: # ifdef __cplusplus
15438: extern "C"
15439: # endif
15440: int F77_DUMMY_MAIN() { return 1; }
15441: #endif
15442: int
15443: main ()
15444: {
1.163 petere 15445: if ((int64 *) 0)
15446: return 0;
15447: if (sizeof (int64))
15448: return 0;
1.179 petere 15449: ;
15450: return 0;
15451: }
15452: _ACEOF
15453: rm -f conftest.$ac_objext
15454: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455: (eval $ac_compile) 2>&5
15456: ac_status=$?
15457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458: (exit $ac_status); } &&
15459: { ac_try='test -s conftest.$ac_objext'
15460: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461: (eval $ac_try) 2>&5
15462: ac_status=$?
15463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464: (exit $ac_status); }; }; then
15465: ac_cv_type_int64=yes
15466: else
1.181 petere 15467: echo "$as_me: failed program was:" >&5
15468: cat conftest.$ac_ext >&5
15469: ac_cv_type_int64=no
15470: fi
15471: rm -f conftest.$ac_objext conftest.$ac_ext
15472: fi
15473: echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15474: echo "${ECHO_T}$ac_cv_type_int64" >&6
15475: if test $ac_cv_type_int64 = yes; then
15476:
15477: cat >>confdefs.h <<_ACEOF
15478: #define HAVE_INT64 1
15479: _ACEOF
15480:
15481:
15482: fi
15483: echo "$as_me:$LINENO: checking for uint64" >&5
15484: echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15485: if test "${ac_cv_type_uint64+set}" = set; then
15486: echo $ECHO_N "(cached) $ECHO_C" >&6
15487: else
15488: cat >conftest.$ac_ext <<_ACEOF
15489: #line $LINENO "configure"
15490: #include "confdefs.h"
15491: #include <stdio.h>
15492: #ifdef HAVE_SUPPORTDEFS_H
15493: #include <SupportDefs.h>
15494: #endif
15495:
15496: #ifdef F77_DUMMY_MAIN
15497: # ifdef __cplusplus
15498: extern "C"
15499: # endif
15500: int F77_DUMMY_MAIN() { return 1; }
15501: #endif
15502: int
15503: main ()
15504: {
15505: if ((uint64 *) 0)
15506: return 0;
15507: if (sizeof (uint64))
15508: return 0;
15509: ;
15510: return 0;
15511: }
15512: _ACEOF
15513: rm -f conftest.$ac_objext
15514: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15515: (eval $ac_compile) 2>&5
15516: ac_status=$?
15517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518: (exit $ac_status); } &&
15519: { ac_try='test -s conftest.$ac_objext'
15520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521: (eval $ac_try) 2>&5
15522: ac_status=$?
15523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524: (exit $ac_status); }; }; then
15525: ac_cv_type_uint64=yes
15526: else
15527: echo "$as_me: failed program was:" >&5
15528: cat conftest.$ac_ext >&5
15529: ac_cv_type_uint64=no
15530: fi
15531: rm -f conftest.$ac_objext conftest.$ac_ext
15532: fi
15533: echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15534: echo "${ECHO_T}$ac_cv_type_uint64" >&6
15535: if test $ac_cv_type_uint64 = yes; then
15536:
15537: cat >>confdefs.h <<_ACEOF
15538: #define HAVE_UINT64 1
15539: _ACEOF
15540:
15541:
15542: fi
15543:
15544:
15545: # We also check for sig_atomic_t, which *should* be defined per ANSI
15546: # C, but is missing on some old platforms.
15547: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15548: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15549: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15550: echo $ECHO_N "(cached) $ECHO_C" >&6
15551: else
15552: cat >conftest.$ac_ext <<_ACEOF
15553: #line $LINENO "configure"
15554: #include "confdefs.h"
15555: #include <signal.h>
15556:
15557: #ifdef F77_DUMMY_MAIN
15558: # ifdef __cplusplus
15559: extern "C"
15560: # endif
15561: int F77_DUMMY_MAIN() { return 1; }
15562: #endif
15563: int
15564: main ()
15565: {
15566: if ((sig_atomic_t *) 0)
15567: return 0;
15568: if (sizeof (sig_atomic_t))
15569: return 0;
15570: ;
15571: return 0;
15572: }
15573: _ACEOF
15574: rm -f conftest.$ac_objext
15575: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576: (eval $ac_compile) 2>&5
15577: ac_status=$?
15578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579: (exit $ac_status); } &&
15580: { ac_try='test -s conftest.$ac_objext'
15581: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582: (eval $ac_try) 2>&5
15583: ac_status=$?
15584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585: (exit $ac_status); }; }; then
15586: ac_cv_type_sig_atomic_t=yes
15587: else
15588: echo "$as_me: failed program was:" >&5
15589: cat conftest.$ac_ext >&5
15590: ac_cv_type_sig_atomic_t=no
15591: fi
15592: rm -f conftest.$ac_objext conftest.$ac_ext
15593: fi
15594: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15595: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15596: if test $ac_cv_type_sig_atomic_t = yes; then
15597:
15598: cat >>confdefs.h <<_ACEOF
15599: #define HAVE_SIG_ATOMIC_T 1
15600: _ACEOF
15601:
15602:
15603: fi
15604:
15605:
15606:
15607: echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15608: echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15609: if test "${pgac_cv_func_posix_signals+set}" = set; then
15610: echo $ECHO_N "(cached) $ECHO_C" >&6
15611: else
15612: cat >conftest.$ac_ext <<_ACEOF
15613: #line $LINENO "configure"
15614: #include "confdefs.h"
15615: #include <signal.h>
15616:
15617: #ifdef F77_DUMMY_MAIN
15618: # ifdef __cplusplus
15619: extern "C"
15620: # endif
15621: int F77_DUMMY_MAIN() { return 1; }
15622: #endif
15623: int
15624: main ()
15625: {
15626: struct sigaction act, oact;
15627: sigemptyset(&act.sa_mask);
15628: act.sa_flags = SA_RESTART;
15629: sigaction(0, &act, &oact);
15630: ;
15631: return 0;
15632: }
15633: _ACEOF
15634: rm -f conftest.$ac_objext conftest$ac_exeext
15635: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636: (eval $ac_link) 2>&5
15637: ac_status=$?
15638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639: (exit $ac_status); } &&
15640: { ac_try='test -s conftest$ac_exeext'
15641: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642: (eval $ac_try) 2>&5
15643: ac_status=$?
15644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645: (exit $ac_status); }; }; then
15646: pgac_cv_func_posix_signals=yes
15647: else
15648: echo "$as_me: failed program was:" >&5
15649: cat conftest.$ac_ext >&5
15650: pgac_cv_func_posix_signals=no
15651: fi
15652: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15653: fi
15654: echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15655: echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15656: if test x"$pgac_cv_func_posix_signals" = xyes ; then
15657:
15658: cat >>confdefs.h <<\_ACEOF
15659: #define HAVE_POSIX_SIGNALS
15660: _ACEOF
15661:
15662: fi
15663: HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15664:
15665:
15666:
15667: if test "$enable_nls" = yes ; then
15668:
15669: echo "$as_me:$LINENO: checking for library containing gettext" >&5
15670: echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15671: if test "${ac_cv_search_gettext+set}" = set; then
15672: echo $ECHO_N "(cached) $ECHO_C" >&6
15673: else
15674: ac_func_search_save_LIBS=$LIBS
15675: ac_cv_search_gettext=no
15676: cat >conftest.$ac_ext <<_ACEOF
15677: #line $LINENO "configure"
15678: #include "confdefs.h"
15679:
15680: /* Override any gcc2 internal prototype to avoid an error. */
15681: #ifdef __cplusplus
15682: extern "C"
15683: #endif
15684: /* We use char because int might match the return type of a gcc2
15685: builtin and then its argument prototype would still apply. */
15686: char gettext ();
15687: #ifdef F77_DUMMY_MAIN
15688: # ifdef __cplusplus
15689: extern "C"
15690: # endif
15691: int F77_DUMMY_MAIN() { return 1; }
15692: #endif
15693: int
15694: main ()
15695: {
15696: gettext ();
15697: ;
15698: return 0;
15699: }
15700: _ACEOF
15701: rm -f conftest.$ac_objext conftest$ac_exeext
15702: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15703: (eval $ac_link) 2>&5
15704: ac_status=$?
15705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706: (exit $ac_status); } &&
15707: { ac_try='test -s conftest$ac_exeext'
15708: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709: (eval $ac_try) 2>&5
15710: ac_status=$?
15711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712: (exit $ac_status); }; }; then
15713: ac_cv_search_gettext="none required"
15714: else
15715: echo "$as_me: failed program was:" >&5
15716: cat conftest.$ac_ext >&5
15717: fi
15718: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15719: if test "$ac_cv_search_gettext" = no; then
15720: for ac_lib in intl; do
15721: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15722: cat >conftest.$ac_ext <<_ACEOF
15723: #line $LINENO "configure"
15724: #include "confdefs.h"
15725:
15726: /* Override any gcc2 internal prototype to avoid an error. */
15727: #ifdef __cplusplus
15728: extern "C"
15729: #endif
15730: /* We use char because int might match the return type of a gcc2
15731: builtin and then its argument prototype would still apply. */
15732: char gettext ();
15733: #ifdef F77_DUMMY_MAIN
15734: # ifdef __cplusplus
15735: extern "C"
15736: # endif
15737: int F77_DUMMY_MAIN() { return 1; }
15738: #endif
15739: int
15740: main ()
15741: {
15742: gettext ();
15743: ;
15744: return 0;
15745: }
15746: _ACEOF
15747: rm -f conftest.$ac_objext conftest$ac_exeext
15748: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749: (eval $ac_link) 2>&5
15750: ac_status=$?
15751: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752: (exit $ac_status); } &&
15753: { ac_try='test -s conftest$ac_exeext'
15754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755: (eval $ac_try) 2>&5
15756: ac_status=$?
15757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758: (exit $ac_status); }; }; then
15759: ac_cv_search_gettext="-l$ac_lib"
15760: break
15761: else
15762: echo "$as_me: failed program was:" >&5
15763: cat conftest.$ac_ext >&5
15764: fi
15765: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15766: done
15767: fi
15768: LIBS=$ac_func_search_save_LIBS
15769: fi
15770: echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15771: echo "${ECHO_T}$ac_cv_search_gettext" >&6
15772: if test "$ac_cv_search_gettext" != no; then
15773: test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15774:
15775: else
15776: { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15777: echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15778: { (exit 1); exit 1; }; }
15779: fi
15780:
15781: if test "${ac_cv_header_libintl_h+set}" = set; then
15782: echo "$as_me:$LINENO: checking for libintl.h" >&5
15783: echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15784: if test "${ac_cv_header_libintl_h+set}" = set; then
15785: echo $ECHO_N "(cached) $ECHO_C" >&6
15786: fi
15787: echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15788: echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15789: else
15790: # Is the header compilable?
15791: echo "$as_me:$LINENO: checking libintl.h usability" >&5
15792: echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15793: cat >conftest.$ac_ext <<_ACEOF
15794: #line $LINENO "configure"
15795: #include "confdefs.h"
15796: $ac_includes_default
15797: #include <libintl.h>
15798: _ACEOF
15799: rm -f conftest.$ac_objext
15800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801: (eval $ac_compile) 2>&5
15802: ac_status=$?
15803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804: (exit $ac_status); } &&
15805: { ac_try='test -s conftest.$ac_objext'
15806: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807: (eval $ac_try) 2>&5
15808: ac_status=$?
15809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810: (exit $ac_status); }; }; then
15811: ac_header_compiler=yes
15812: else
15813: echo "$as_me: failed program was:" >&5
15814: cat conftest.$ac_ext >&5
15815: ac_header_compiler=no
15816: fi
15817: rm -f conftest.$ac_objext conftest.$ac_ext
15818: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15819: echo "${ECHO_T}$ac_header_compiler" >&6
15820:
15821: # Is the header present?
15822: echo "$as_me:$LINENO: checking libintl.h presence" >&5
15823: echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15824: cat >conftest.$ac_ext <<_ACEOF
15825: #line $LINENO "configure"
15826: #include "confdefs.h"
15827: #include <libintl.h>
15828: _ACEOF
15829: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15830: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15831: ac_status=$?
15832: egrep -v '^ *\+' conftest.er1 >conftest.err
15833: rm -f conftest.er1
15834: cat conftest.err >&5
15835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836: (exit $ac_status); } >/dev/null; then
15837: if test -s conftest.err; then
15838: ac_cpp_err=$ac_c_preproc_warn_flag
15839: else
15840: ac_cpp_err=
15841: fi
15842: else
15843: ac_cpp_err=yes
15844: fi
15845: if test -z "$ac_cpp_err"; then
15846: ac_header_preproc=yes
15847: else
15848: echo "$as_me: failed program was:" >&5
15849: cat conftest.$ac_ext >&5
15850: ac_header_preproc=no
15851: fi
15852: rm -f conftest.err conftest.$ac_ext
15853: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15854: echo "${ECHO_T}$ac_header_preproc" >&6
15855:
15856: # So? What about this header?
15857: case $ac_header_compiler:$ac_header_preproc in
15858: yes:no )
15859: { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15860: echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15861: { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15862: echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15863: no:yes )
15864: { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15865: echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15866: { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15867: echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15868: { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15869: echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15870: esac
15871: echo "$as_me:$LINENO: checking for libintl.h" >&5
15872: echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15873: if test "${ac_cv_header_libintl_h+set}" = set; then
15874: echo $ECHO_N "(cached) $ECHO_C" >&6
15875: else
15876: ac_cv_header_libintl_h=$ac_header_preproc
15877: fi
15878: echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15879: echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15880:
15881: fi
15882: if test $ac_cv_header_libintl_h = yes; then
15883: :
15884: else
15885: { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15886: echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15887: { (exit 1); exit 1; }; }
15888: fi
15889:
15890:
15891: for ac_prog in msgfmt
15892: do
15893: # Extract the first word of "$ac_prog", so it can be a program name with args.
15894: set dummy $ac_prog; ac_word=$2
15895: echo "$as_me:$LINENO: checking for $ac_word" >&5
15896: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15897: if test "${ac_cv_prog_MSGFMT+set}" = set; then
15898: echo $ECHO_N "(cached) $ECHO_C" >&6
15899: else
15900: if test -n "$MSGFMT"; then
15901: ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15902: else
15903: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15904: for as_dir in $PATH
15905: do
15906: IFS=$as_save_IFS
15907: test -z "$as_dir" && as_dir=.
15908: for ac_exec_ext in '' $ac_executable_extensions; do
15909: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910: ac_cv_prog_MSGFMT="$ac_prog"
15911: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15912: break 2
15913: fi
15914: done
15915: done
15916:
15917: fi
15918: fi
15919: MSGFMT=$ac_cv_prog_MSGFMT
15920: if test -n "$MSGFMT"; then
15921: echo "$as_me:$LINENO: result: $MSGFMT" >&5
15922: echo "${ECHO_T}$MSGFMT" >&6
15923: else
15924: echo "$as_me:$LINENO: result: no" >&5
15925: echo "${ECHO_T}no" >&6
15926: fi
15927:
15928: test -n "$MSGFMT" && break
15929: done
15930:
15931: if test -z "$MSGFMT"; then
15932: { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15933: echo "$as_me: error: msgfmt is required for NLS" >&2;}
15934: { (exit 1); exit 1; }; }
15935: fi
15936: for ac_prog in msgmerge
15937: do
15938: # Extract the first word of "$ac_prog", so it can be a program name with args.
15939: set dummy $ac_prog; ac_word=$2
15940: echo "$as_me:$LINENO: checking for $ac_word" >&5
15941: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15942: if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15943: echo $ECHO_N "(cached) $ECHO_C" >&6
15944: else
15945: if test -n "$MSGMERGE"; then
15946: ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15947: else
15948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949: for as_dir in $PATH
15950: do
15951: IFS=$as_save_IFS
15952: test -z "$as_dir" && as_dir=.
15953: for ac_exec_ext in '' $ac_executable_extensions; do
15954: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15955: ac_cv_prog_MSGMERGE="$ac_prog"
15956: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15957: break 2
15958: fi
15959: done
15960: done
15961:
15962: fi
15963: fi
15964: MSGMERGE=$ac_cv_prog_MSGMERGE
15965: if test -n "$MSGMERGE"; then
15966: echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15967: echo "${ECHO_T}$MSGMERGE" >&6
15968: else
15969: echo "$as_me:$LINENO: result: no" >&5
15970: echo "${ECHO_T}no" >&6
15971: fi
15972:
15973: test -n "$MSGMERGE" && break
15974: done
15975:
15976: for ac_prog in xgettext
15977: do
15978: # Extract the first word of "$ac_prog", so it can be a program name with args.
15979: set dummy $ac_prog; ac_word=$2
15980: echo "$as_me:$LINENO: checking for $ac_word" >&5
15981: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15982: if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15983: echo $ECHO_N "(cached) $ECHO_C" >&6
15984: else
15985: if test -n "$XGETTEXT"; then
15986: ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15987: else
15988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989: for as_dir in $PATH
15990: do
15991: IFS=$as_save_IFS
15992: test -z "$as_dir" && as_dir=.
15993: for ac_exec_ext in '' $ac_executable_extensions; do
15994: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15995: ac_cv_prog_XGETTEXT="$ac_prog"
15996: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15997: break 2
15998: fi
15999: done
16000: done
16001:
16002: fi
16003: fi
16004: XGETTEXT=$ac_cv_prog_XGETTEXT
16005: if test -n "$XGETTEXT"; then
16006: echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16007: echo "${ECHO_T}$XGETTEXT" >&6
16008: else
16009: echo "$as_me:$LINENO: result: no" >&5
16010: echo "${ECHO_T}no" >&6
1.179 petere 16011: fi
1.181 petere 16012:
16013: test -n "$XGETTEXT" && break
16014: done
16015:
16016:
16017: # Note: share/locale is always the default, independent of $datadir
16018: localedir='${prefix}/share/locale'
16019: if test x"$prefix" = x"NONE"; then
16020: exp_localedir="$ac_default_prefix/share/locale"
16021: else
16022: exp_localedir="$prefix/share/locale"
16023: fi
16024:
16025:
1.161 tgl 16026:
1.179 petere 16027: cat >>confdefs.h <<_ACEOF
1.181 petere 16028: #define LOCALEDIR "$exp_localedir"
1.179 petere 16029: _ACEOF
1.161 tgl 16030:
16031:
1.179 petere 16032: fi
1.181 petere 16033:
16034: if test "$with_CXX" = yes; then
16035:
16036:
16037: ac_ext=cc
16038: ac_cpp='$CXXCPP $CPPFLAGS'
16039: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16040: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16041: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16042:
16043: if test "${ac_cv_header_string+set}" = set; then
16044: echo "$as_me:$LINENO: checking for string" >&5
16045: echo $ECHO_N "checking for string... $ECHO_C" >&6
16046: if test "${ac_cv_header_string+set}" = set; then
1.179 petere 16047: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 16048: fi
16049: echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16050: echo "${ECHO_T}$ac_cv_header_string" >&6
1.161 tgl 16051: else
1.181 petere 16052: # Is the header compilable?
16053: echo "$as_me:$LINENO: checking string usability" >&5
16054: echo $ECHO_N "checking string usability... $ECHO_C" >&6
16055: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 16056: #line $LINENO "configure"
1.161 tgl 16057: #include "confdefs.h"
1.181 petere 16058: $ac_includes_default
16059: #include <string>
1.179 petere 16060: _ACEOF
16061: rm -f conftest.$ac_objext
16062: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16063: (eval $ac_compile) 2>&5
16064: ac_status=$?
16065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066: (exit $ac_status); } &&
16067: { ac_try='test -s conftest.$ac_objext'
16068: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069: (eval $ac_try) 2>&5
16070: ac_status=$?
16071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072: (exit $ac_status); }; }; then
1.181 petere 16073: ac_header_compiler=yes
1.179 petere 16074: else
16075: echo "$as_me: failed program was:" >&5
16076: cat conftest.$ac_ext >&5
1.181 petere 16077: ac_header_compiler=no
1.179 petere 16078: fi
16079: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 16080: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081: echo "${ECHO_T}$ac_header_compiler" >&6
1.161 tgl 16082:
1.181 petere 16083: # Is the header present?
16084: echo "$as_me:$LINENO: checking string presence" >&5
16085: echo $ECHO_N "checking string presence... $ECHO_C" >&6
16086: cat >conftest.$ac_ext <<_ACEOF
16087: #line $LINENO "configure"
16088: #include "confdefs.h"
16089: #include <string>
1.179 petere 16090: _ACEOF
1.181 petere 16091: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16092: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16093: ac_status=$?
16094: egrep -v '^ *\+' conftest.er1 >conftest.err
16095: rm -f conftest.er1
16096: cat conftest.err >&5
16097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098: (exit $ac_status); } >/dev/null; then
16099: if test -s conftest.err; then
16100: ac_cpp_err=$ac_cxx_preproc_warn_flag
16101: else
16102: ac_cpp_err=
16103: fi
16104: else
16105: ac_cpp_err=yes
16106: fi
16107: if test -z "$ac_cpp_err"; then
16108: ac_header_preproc=yes
16109: else
16110: echo "$as_me: failed program was:" >&5
16111: cat conftest.$ac_ext >&5
16112: ac_header_preproc=no
16113: fi
16114: rm -f conftest.err conftest.$ac_ext
16115: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116: echo "${ECHO_T}$ac_header_preproc" >&6
1.179 petere 16117:
1.181 petere 16118: # So? What about this header?
16119: case $ac_header_compiler:$ac_header_preproc in
16120: yes:no )
16121: { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16122: echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123: { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16124: echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16125: no:yes )
16126: { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16127: echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16128: { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16129: echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16130: { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16131: echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16132: esac
16133: echo "$as_me:$LINENO: checking for string" >&5
16134: echo $ECHO_N "checking for string... $ECHO_C" >&6
16135: if test "${ac_cv_header_string+set}" = set; then
16136: echo $ECHO_N "(cached) $ECHO_C" >&6
16137: else
16138: ac_cv_header_string=$ac_header_preproc
16139: fi
16140: echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16141: echo "${ECHO_T}$ac_cv_header_string" >&6
1.179 petere 16142:
16143: fi
1.181 petere 16144: if test $ac_cv_header_string = yes; then
1.161 tgl 16145:
1.181 petere 16146: cat >>confdefs.h <<\_ACEOF
16147: #define HAVE_CXX_STRING_HEADER 1
16148: _ACEOF
1.163 petere 16149:
1.181 petere 16150: else
16151: echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16152: echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16153: if test "${pgac_cv_class_string_in_string_h+set}" = set; then
1.179 petere 16154: echo $ECHO_N "(cached) $ECHO_C" >&6
1.164 tgl 16155: else
1.179 petere 16156: cat >conftest.$ac_ext <<_ACEOF
16157: #line $LINENO "configure"
1.164 tgl 16158: #include "confdefs.h"
1.181 petere 16159: #include <stdio.h>
16160: #include <stdlib.h>
16161: #include <string.h>
1.179 petere 16162:
16163: #ifdef F77_DUMMY_MAIN
16164: # ifdef __cplusplus
16165: extern "C"
16166: # endif
16167: int F77_DUMMY_MAIN() { return 1; }
16168: #endif
16169: int
16170: main ()
16171: {
1.181 petere 16172: string foo = "test"
1.179 petere 16173: ;
16174: return 0;
16175: }
16176: _ACEOF
16177: rm -f conftest.$ac_objext
16178: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16179: (eval $ac_compile) 2>&5
16180: ac_status=$?
16181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182: (exit $ac_status); } &&
16183: { ac_try='test -s conftest.$ac_objext'
16184: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185: (eval $ac_try) 2>&5
16186: ac_status=$?
16187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188: (exit $ac_status); }; }; then
1.181 petere 16189: pgac_cv_class_string_in_string_h=yes
1.179 petere 16190: else
16191: echo "$as_me: failed program was:" >&5
16192: cat conftest.$ac_ext >&5
1.181 petere 16193: pgac_cv_class_string_in_string_h=no
1.179 petere 16194: fi
16195: rm -f conftest.$ac_objext conftest.$ac_ext
16196: fi
1.181 petere 16197: echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16198: echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
1.164 tgl 16199:
1.181 petere 16200: if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16201: { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16202: echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16203: { (exit 1); exit 1; }; }
16204: fi
1.179 petere 16205:
1.181 petere 16206: fi
1.164 tgl 16207:
16208:
1.181 petere 16209: ac_ext=c
16210: ac_cpp='$CPP $CPPFLAGS'
16211: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16212: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16213: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.161 tgl 16214:
16215:
1.181 petere 16216: echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16217: echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16218: if test "${pgac_cv_cxx_namespace_std+set}" = set; then
1.179 petere 16219: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 16220: else
1.181 petere 16221:
16222: ac_ext=cc
16223: ac_cpp='$CXXCPP $CPPFLAGS'
16224: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16227:
16228: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 16229: #line $LINENO "configure"
1.1 petere 16230: #include "confdefs.h"
1.181 petere 16231: #include <stdio.h>
16232: #include <stdlib.h>
16233: #ifdef HAVE_CXX_STRING_HEADER
16234: #include <string>
16235: #endif
16236: using namespace std;
1.5 petere 16237:
1.179 petere 16238: #ifdef F77_DUMMY_MAIN
16239: # ifdef __cplusplus
16240: extern "C"
16241: # endif
16242: int F77_DUMMY_MAIN() { return 1; }
16243: #endif
16244: int
16245: main ()
16246: {
1.181 petere 16247:
1.179 petere 16248: ;
16249: return 0;
16250: }
16251: _ACEOF
1.181 petere 16252: rm -f conftest.$ac_objext
16253: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254: (eval $ac_compile) 2>&5
1.179 petere 16255: ac_status=$?
16256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257: (exit $ac_status); } &&
1.181 petere 16258: { ac_try='test -s conftest.$ac_objext'
1.179 petere 16259: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260: (eval $ac_try) 2>&5
16261: ac_status=$?
16262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263: (exit $ac_status); }; }; then
1.181 petere 16264: pgac_cv_cxx_namespace_std=yes
1.1 petere 16265: else
1.179 petere 16266: echo "$as_me: failed program was:" >&5
16267: cat conftest.$ac_ext >&5
1.181 petere 16268: pgac_cv_cxx_namespace_std=no
1.1 petere 16269: fi
1.181 petere 16270: rm -f conftest.$ac_objext conftest.$ac_ext
16271: ac_ext=c
16272: ac_cpp='$CPP $CPPFLAGS'
16273: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16274: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16275: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16276:
1.5 petere 16277: fi
1.181 petere 16278: echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16279: echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16280:
16281: if test $pgac_cv_cxx_namespace_std = yes ; then
1.5 petere 16282:
1.179 petere 16283: cat >>confdefs.h <<\_ACEOF
1.181 petere 16284: #define HAVE_NAMESPACE_STD 1
1.179 petere 16285: _ACEOF
1.5 petere 16286:
16287: fi
1.181 petere 16288: fi
1.1 petere 16289:
16290:
1.44 petere 16291: # Check for Tcl configuration script tclConfig.sh
16292: if test "$with_tcl" = yes; then
16293: for ac_prog in tclsh tcl
16294: do
1.179 petere 16295: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.44 petere 16296: set dummy $ac_prog; ac_word=$2
1.179 petere 16297: echo "$as_me:$LINENO: checking for $ac_word" >&5
16298: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16299: if test "${ac_cv_path_TCLSH+set}" = set; then
16300: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 16301: else
1.179 petere 16302: case $TCLSH in
16303: [\\/]* | ?:[\\/]*)
1.1 petere 16304: ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16305: ;;
16306: *)
1.179 petere 16307: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16308: for as_dir in $PATH
16309: do
16310: IFS=$as_save_IFS
16311: test -z "$as_dir" && as_dir=.
16312: for ac_exec_ext in '' $ac_executable_extensions; do
16313: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16314: ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16315: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16316: break 2
16317: fi
16318: done
16319: done
16320:
1.1 petere 16321: ;;
16322: esac
16323: fi
1.179 petere 16324: TCLSH=$ac_cv_path_TCLSH
16325:
1.1 petere 16326: if test -n "$TCLSH"; then
1.179 petere 16327: echo "$as_me:$LINENO: result: $TCLSH" >&5
16328: echo "${ECHO_T}$TCLSH" >&6
1.1 petere 16329: else
1.179 petere 16330: echo "$as_me:$LINENO: result: no" >&5
16331: echo "${ECHO_T}no" >&6
1.1 petere 16332: fi
16333:
1.179 petere 16334: test -n "$TCLSH" && break
1.44 petere 16335: done
16336:
1.179 petere 16337: echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16338: echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
1.44 petere 16339: # Let user override test
16340: if test -z "$TCL_CONFIG_SH"; then
16341: pgac_test_dirs="$with_tclconfig"
16342:
16343: set X $pgac_test_dirs; shift
16344: if test $# -eq 0; then
1.179 petere 16345: test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16346: echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16347: { (exit 1); exit 1; }; }
1.44 petere 16348: set X `echo 'puts $auto_path' | $TCLSH`; shift
1.1 petere 16349: fi
16350:
1.48 petere 16351: for pgac_dir do
1.44 petere 16352: if test -r "$pgac_dir/tclConfig.sh"; then
16353: TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16354: break
16355: fi
16356: done
1.1 petere 16357: fi
16358:
1.44 petere 16359: if test -z "$TCL_CONFIG_SH"; then
1.179 petere 16360: echo "$as_me:$LINENO: result: no" >&5
16361: echo "${ECHO_T}no" >&6
16362: { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16363: echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16364: { (exit 1); exit 1; }; }
1.1 petere 16365: else
1.179 petere 16366: echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16367: echo "${ECHO_T}$TCL_CONFIG_SH" >&6
1.1 petere 16368: fi
16369:
16370:
1.30 petere 16371:
1.44 petere 16372: fi
1.1 petere 16373:
1.44 petere 16374: # Check for Tk configuration script tkConfig.sh
16375: if test "$with_tk" = yes; then
1.179 petere 16376: echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16377: echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
1.44 petere 16378: # Let user override test
16379: if test -z "$TK_CONFIG_SH"; then
16380: pgac_test_dirs="$with_tkconfig $with_tclconfig"
1.1 petere 16381:
1.44 petere 16382: set X $pgac_test_dirs; shift
16383: if test $# -eq 0; then
1.179 petere 16384: test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16385: echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16386: { (exit 1); exit 1; }; }
1.44 petere 16387: set X `echo 'puts $auto_path' | $TCLSH`; shift
16388: fi
1.1 petere 16389:
1.48 petere 16390: for pgac_dir do
1.44 petere 16391: if test -r "$pgac_dir/tkConfig.sh"; then
16392: TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16393: break
16394: fi
16395: done
1.1 petere 16396: fi
16397:
1.44 petere 16398: if test -z "$TK_CONFIG_SH"; then
1.179 petere 16399: echo "$as_me:$LINENO: result: no" >&5
16400: echo "${ECHO_T}no" >&6
16401: { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16402: echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16403: { (exit 1); exit 1; }; }
1.1 petere 16404: else
1.179 petere 16405: echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16406: echo "${ECHO_T}$TK_CONFIG_SH" >&6
1.1 petere 16407: fi
16408:
16409:
1.44 petere 16410:
1.1 petere 16411: fi
16412:
16413:
1.81 petere 16414: #
16415: # Check for DocBook and tools
16416: #
16417: for ac_prog in onsgmls nsgmls
16418: do
1.179 petere 16419: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 16420: set dummy $ac_prog; ac_word=$2
1.179 petere 16421: echo "$as_me:$LINENO: checking for $ac_word" >&5
16422: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16423: if test "${ac_cv_prog_NSGMLS+set}" = set; then
16424: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16425: else
1.179 petere 16426: if test -n "$NSGMLS"; then
16427: ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16428: else
16429: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16430: for as_dir in $PATH
16431: do
16432: IFS=$as_save_IFS
16433: test -z "$as_dir" && as_dir=.
16434: for ac_exec_ext in '' $ac_executable_extensions; do
16435: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16436: ac_cv_prog_NSGMLS="$ac_prog"
16437: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16438: break 2
16439: fi
16440: done
16441: done
16442:
1.81 petere 16443: fi
16444: fi
1.179 petere 16445: NSGMLS=$ac_cv_prog_NSGMLS
1.81 petere 16446: if test -n "$NSGMLS"; then
1.179 petere 16447: echo "$as_me:$LINENO: result: $NSGMLS" >&5
16448: echo "${ECHO_T}$NSGMLS" >&6
1.81 petere 16449: else
1.179 petere 16450: echo "$as_me:$LINENO: result: no" >&5
16451: echo "${ECHO_T}no" >&6
1.81 petere 16452: fi
16453:
1.179 petere 16454: test -n "$NSGMLS" && break
1.81 petere 16455: done
16456:
1.187 petere 16457: for ac_prog in openjade jade
1.81 petere 16458: do
1.179 petere 16459: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 16460: set dummy $ac_prog; ac_word=$2
1.179 petere 16461: echo "$as_me:$LINENO: checking for $ac_word" >&5
16462: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16463: if test "${ac_cv_prog_JADE+set}" = set; then
16464: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16465: else
16466: if test -n "$JADE"; then
16467: ac_cv_prog_JADE="$JADE" # Let the user override the test.
16468: else
1.179 petere 16469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16470: for as_dir in $PATH
16471: do
16472: IFS=$as_save_IFS
16473: test -z "$as_dir" && as_dir=.
16474: for ac_exec_ext in '' $ac_executable_extensions; do
16475: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16476: ac_cv_prog_JADE="$ac_prog"
16477: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16478: break 2
16479: fi
16480: done
16481: done
16482:
1.81 petere 16483: fi
16484: fi
1.179 petere 16485: JADE=$ac_cv_prog_JADE
1.81 petere 16486: if test -n "$JADE"; then
1.179 petere 16487: echo "$as_me:$LINENO: result: $JADE" >&5
16488: echo "${ECHO_T}$JADE" >&6
1.81 petere 16489: else
1.179 petere 16490: echo "$as_me:$LINENO: result: no" >&5
16491: echo "${ECHO_T}no" >&6
1.81 petere 16492: fi
16493:
1.179 petere 16494: test -n "$JADE" && break
1.81 petere 16495: done
16496:
1.179 petere 16497:
16498: echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16499: echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16500: if test "${pgac_cv_check_docbook+set}" = set; then
16501: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16502: else
16503: cat >conftest.sgml <<EOF
16504: <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16505: <book>
16506: <title>test</title>
16507: <chapter>
16508: <title>random</title>
16509: <sect1>
16510: <title>testsect</title>
16511: <para>text</para>
16512: </sect1>
16513: </chapter>
16514: </book>
16515: EOF
16516:
16517: ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16518: if test $? -eq 0; then
16519: pgac_cv_check_docbook=yes
16520: else
16521: pgac_cv_check_docbook=no
16522: fi
16523: rm -f conftest.sgml
16524: fi
1.179 petere 16525: echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16526: echo "${ECHO_T}$pgac_cv_check_docbook" >&6
1.81 petere 16527:
16528: have_docbook=$pgac_cv_check_docbook
16529:
16530:
1.187 petere 16531: echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
1.179 petere 16532: echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16533: if test "${pgac_cv_path_stylesheets+set}" = set; then
16534: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16535: else
16536: if test -n "$DOCBOOKSTYLE"; then
16537: pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16538: else
16539: for pgac_prefix in /usr /usr/local /opt; do
16540: for pgac_infix in share lib; do
16541: for pgac_postfix in \
16542: sgml/stylesheets/nwalsh-modular \
16543: sgml/stylesheets/docbook \
1.187 petere 16544: sgml/docbook/dsssl/modular \
16545: sgml/docbook/dsssl-stylesheets
1.81 petere 16546: do
16547: pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16548: if test -r "$pgac_candidate/html/docbook.dsl" \
16549: && test -r "$pgac_candidate/print/docbook.dsl"
16550: then
16551: pgac_cv_path_stylesheets=$pgac_candidate
16552: break 3
16553: fi
16554: done
16555: done
16556: done
16557: fi
16558: fi
16559:
16560: DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16561:
16562: if test -n "$DOCBOOKSTYLE"; then
1.179 petere 16563: echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16564: echo "${ECHO_T}$DOCBOOKSTYLE" >&6
1.81 petere 16565: else
1.179 petere 16566: echo "$as_me:$LINENO: result: no" >&5
16567: echo "${ECHO_T}no" >&6
1.81 petere 16568: fi
1.187 petere 16569: if test -n "$DOCBOOKSTYLE"; then
16570: for ac_prog in collateindex.pl
16571: do
16572: # Extract the first word of "$ac_prog", so it can be a program name with args.
16573: set dummy $ac_prog; ac_word=$2
16574: echo "$as_me:$LINENO: checking for $ac_word" >&5
16575: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16576: if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16577: echo $ECHO_N "(cached) $ECHO_C" >&6
16578: else
16579: case $COLLATEINDEX in
16580: [\\/]* | ?:[\\/]*)
16581: ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16582: ;;
16583: *)
16584: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16585: for as_dir in $DOCBOOKSTYLE/bin $PATH
16586: do
16587: IFS=$as_save_IFS
16588: test -z "$as_dir" && as_dir=.
16589: for ac_exec_ext in '' $ac_executable_extensions; do
16590: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16591: ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16592: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16593: break 2
16594: fi
16595: done
16596: done
16597:
16598: ;;
16599: esac
16600: fi
16601: COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16602:
16603: if test -n "$COLLATEINDEX"; then
16604: echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16605: echo "${ECHO_T}$COLLATEINDEX" >&6
16606: else
16607: echo "$as_me:$LINENO: result: no" >&5
16608: echo "${ECHO_T}no" >&6
16609: fi
16610:
16611: test -n "$COLLATEINDEX" && break
16612: done
16613:
16614: else
16615: for ac_prog in collateindex.pl
16616: do
16617: # Extract the first word of "$ac_prog", so it can be a program name with args.
16618: set dummy $ac_prog; ac_word=$2
16619: echo "$as_me:$LINENO: checking for $ac_word" >&5
16620: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16621: if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16622: echo $ECHO_N "(cached) $ECHO_C" >&6
16623: else
16624: case $COLLATEINDEX in
16625: [\\/]* | ?:[\\/]*)
16626: ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16627: ;;
16628: *)
16629: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16630: for as_dir in $PATH
16631: do
16632: IFS=$as_save_IFS
16633: test -z "$as_dir" && as_dir=.
16634: for ac_exec_ext in '' $ac_executable_extensions; do
16635: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16636: ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16637: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16638: break 2
16639: fi
16640: done
16641: done
16642:
16643: ;;
16644: esac
16645: fi
16646: COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16647:
16648: if test -n "$COLLATEINDEX"; then
16649: echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16650: echo "${ECHO_T}$COLLATEINDEX" >&6
16651: else
16652: echo "$as_me:$LINENO: result: no" >&5
16653: echo "${ECHO_T}no" >&6
16654: fi
16655:
16656: test -n "$COLLATEINDEX" && break
16657: done
16658:
16659: fi
16660: for ac_prog in sgmlspl
1.81 petere 16661: do
1.179 petere 16662: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 16663: set dummy $ac_prog; ac_word=$2
1.179 petere 16664: echo "$as_me:$LINENO: checking for $ac_word" >&5
16665: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16666: if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16667: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16668: else
16669: if test -n "$SGMLSPL"; then
16670: ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16671: else
1.179 petere 16672: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16673: for as_dir in $PATH
16674: do
16675: IFS=$as_save_IFS
16676: test -z "$as_dir" && as_dir=.
16677: for ac_exec_ext in '' $ac_executable_extensions; do
16678: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16679: ac_cv_prog_SGMLSPL="$ac_prog"
16680: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16681: break 2
16682: fi
16683: done
16684: done
16685:
1.81 petere 16686: fi
16687: fi
1.179 petere 16688: SGMLSPL=$ac_cv_prog_SGMLSPL
1.81 petere 16689: if test -n "$SGMLSPL"; then
1.179 petere 16690: echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16691: echo "${ECHO_T}$SGMLSPL" >&6
1.81 petere 16692: else
1.179 petere 16693: echo "$as_me:$LINENO: result: no" >&5
16694: echo "${ECHO_T}no" >&6
1.81 petere 16695: fi
16696:
1.179 petere 16697: test -n "$SGMLSPL" && break
1.81 petere 16698: done
16699:
16700:
1.1 petere 16701:
1.111 petere 16702: # prepare build tree if outside source tree
1.147 petere 16703: # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16704: # Note 2: /bin/pwd might be better than shell's built-in at getting
16705: # a symlink-free name.
1.179 petere 16706: if test "$no_create" != yes; then
16707: if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
1.147 petere 16708: :
1.179 petere 16709: else
16710: vpath_build=yes
16711:
16712: echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16713: pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16714: $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16715: || { { echo "$as_me:$LINENO: error: failed" >&5
16716: echo "$as_me: error: failed" >&2;}
16717: { (exit 1); exit 1; }; }
16718: echo "$as_me:$LINENO: result: done" >&5
16719: echo "${ECHO_T}done" >&6
16720: fi
1.63 petere 16721: fi
16722:
1.179 petere 16723:
16724: ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16725:
16726:
16727: ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c 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}"
16728:
16729:
16730: ac_config_headers="$ac_config_headers src/include/pg_config.h"
16731:
16732:
16733: cat >confcache <<\_ACEOF
1.44 petere 16734: # This file is a shell script that caches the results of configure
16735: # tests run on this system so they can be shared between configure
1.179 petere 16736: # scripts and configure runs, see configure's option --config-cache.
16737: # It is not useful on other systems. If it contains results you don't
16738: # want to keep, you may remove or edit it.
1.44 petere 16739: #
1.179 petere 16740: # config.status only pays attention to the cache file if you give it
16741: # the --recheck option to rerun configure.
1.44 petere 16742: #
1.179 petere 16743: # `ac_cv_env_foo' variables (set or unset) will be overriden when
16744: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16745: # following values.
16746:
16747: _ACEOF
16748:
1.44 petere 16749: # The following way of writing the cache mishandles newlines in values,
16750: # but we know of no workaround that is simple, portable, and efficient.
16751: # So, don't put newlines in cache variables' values.
16752: # Ultrix sh set writes to stderr and can't be redirected directly,
16753: # and sets the high bit in the cache file unless we assign to the vars.
1.179 petere 16754: {
16755: (set) 2>&1 |
16756: case `(ac_space=' '; set | grep ac_space) 2>&1` in
16757: *ac_space=\ *)
16758: # `set' does not quote correctly, so add quotes (double-quote
16759: # substitution turns \\\\ into \\, and sed turns \\ into \).
16760: sed -n \
16761: "s/'/'\\\\''/g;
16762: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16763: ;;
16764: *)
16765: # `set' quotes correctly as required by POSIX, so do not add quotes.
16766: sed -n \
16767: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16768: ;;
16769: esac;
16770: } |
16771: sed '
16772: t clear
16773: : clear
16774: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16775: t end
16776: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16777: : end' >>confcache
16778: if cmp -s $cache_file confcache; then :; else
1.44 petere 16779: if test -w $cache_file; then
1.179 petere 16780: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16781: cat confcache >$cache_file
1.44 petere 16782: else
16783: echo "not updating unwritable cache $cache_file"
16784: fi
1.1 petere 16785: fi
1.44 petere 16786: rm -f confcache
16787:
16788: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16789: # Let make expand exec_prefix.
16790: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1 petere 16791:
1.179 petere 16792: # VPATH may cause trouble with some makes, so we remove $(srcdir),
16793: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16794: # trailing colons and then remove the whole line if VPATH becomes empty
16795: # (actually we leave an empty line to preserve line numbers).
1.44 petere 16796: if test "x$srcdir" = x.; then
1.179 petere 16797: ac_vpsub='/^[ ]*VPATH[ ]*=/{
16798: s/:*\$(srcdir):*/:/;
16799: s/:*\${srcdir}:*/:/;
16800: s/:*@srcdir@:*/:/;
16801: s/^\([^=]*=[ ]*\):*/\1/;
16802: s/:*$//;
16803: s/^[^=]*=[ ]*$//;
16804: }'
1.1 petere 16805: fi
16806:
1.179 petere 16807: DEFS=-DHAVE_CONFIG_H
1.1 petere 16808:
16809:
1.44 petere 16810: : ${CONFIG_STATUS=./config.status}
1.179 petere 16811: ac_clean_files_save=$ac_clean_files
16812: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16813: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16814: echo "$as_me: creating $CONFIG_STATUS" >&6;}
16815: cat >$CONFIG_STATUS <<_ACEOF
16816: #! $SHELL
16817: # Generated by $as_me.
1.1 petere 16818: # Run this file to recreate the current configuration.
16819: # Compiler output produced by configure, useful for debugging
1.179 petere 16820: # configure, is in config.log if it exists.
16821:
16822: debug=false
16823: SHELL=\${CONFIG_SHELL-$SHELL}
16824: _ACEOF
16825:
16826: cat >>$CONFIG_STATUS <<\_ACEOF
16827:
16828: ## --------------------- ##
16829: ## M4sh Initialization. ##
16830: ## --------------------- ##
16831:
16832: # Be Bourne compatible
16833: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16834: emulate sh
16835: NULLCMD=:
16836: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16837: set -o posix
16838: fi
16839:
16840: # NLS nuisances.
16841: # Support unset when possible.
16842: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16843: as_unset=unset
16844: else
16845: as_unset=false
16846: fi
16847:
16848: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16849: { $as_unset LANG || test "${LANG+set}" != set; } ||
16850: { LANG=C; export LANG; }
16851: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16852: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16853: { LC_ALL=C; export LC_ALL; }
16854: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16855: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16856: { LC_TIME=C; export LC_TIME; }
16857: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16858: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16859: { LC_CTYPE=C; export LC_CTYPE; }
16860: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16861: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16862: { LANGUAGE=C; export LANGUAGE; }
16863: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16864: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16865: { LC_COLLATE=C; export LC_COLLATE; }
16866: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16867: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16868: { LC_NUMERIC=C; export LC_NUMERIC; }
16869: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16870: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16871: { LC_MESSAGES=C; export LC_MESSAGES; }
16872:
16873:
16874: # Name of the executable.
16875: as_me=`(basename "$0") 2>/dev/null ||
16876: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16877: X"$0" : 'X\(//\)$' \| \
16878: X"$0" : 'X\(/\)$' \| \
16879: . : '\(.\)' 2>/dev/null ||
16880: echo X/"$0" |
16881: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16882: /^X\/\(\/\/\)$/{ s//\1/; q; }
16883: /^X\/\(\/\).*/{ s//\1/; q; }
16884: s/.*/./; q'`
16885:
16886: # PATH needs CR, and LINENO needs CR and PATH.
16887: # Avoid depending upon Character Ranges.
16888: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16889: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16890: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16891: as_cr_digits='0123456789'
16892: as_cr_alnum=$as_cr_Letters$as_cr_digits
16893:
16894: # The user is always right.
16895: if test "${PATH_SEPARATOR+set}" != set; then
16896: echo "#! /bin/sh" >conftest.sh
16897: echo "exit 0" >>conftest.sh
16898: chmod +x conftest.sh
16899: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16900: PATH_SEPARATOR=';'
16901: else
16902: PATH_SEPARATOR=:
16903: fi
16904: rm -f conftest.sh
16905: fi
16906:
1.1 petere 16907:
1.179 petere 16908: as_lineno_1=$LINENO
16909: as_lineno_2=$LINENO
16910: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16911: test "x$as_lineno_1" != "x$as_lineno_2" &&
16912: test "x$as_lineno_3" = "x$as_lineno_2" || {
16913: # Find who we are. Look in the path if we contain no path at all
16914: # relative or not.
16915: case $0 in
16916: *[\\/]* ) as_myself=$0 ;;
16917: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918: for as_dir in $PATH
16919: do
16920: IFS=$as_save_IFS
16921: test -z "$as_dir" && as_dir=.
16922: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16923: done
16924:
16925: ;;
16926: esac
16927: # We did not find ourselves, most probably we were run as `sh COMMAND'
16928: # in which case we are not to be found in the path.
16929: if test "x$as_myself" = x; then
16930: as_myself=$0
16931: fi
16932: if test ! -f "$as_myself"; then
16933: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16934: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16935: { (exit 1); exit 1; }; }
16936: fi
16937: case $CONFIG_SHELL in
16938: '')
16939: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16941: do
16942: IFS=$as_save_IFS
16943: test -z "$as_dir" && as_dir=.
16944: for as_base in sh bash ksh sh5; do
16945: case $as_dir in
16946: /*)
16947: if ("$as_dir/$as_base" -c '
16948: as_lineno_1=$LINENO
16949: as_lineno_2=$LINENO
16950: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16951: test "x$as_lineno_1" != "x$as_lineno_2" &&
16952: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16953: CONFIG_SHELL=$as_dir/$as_base
16954: export CONFIG_SHELL
16955: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16956: fi;;
16957: esac
16958: done
16959: done
16960: ;;
16961: esac
16962:
16963: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16964: # uniformly replaced by the line number. The first 'sed' inserts a
16965: # line-number line before each line; the second 'sed' does the real
16966: # work. The second script uses 'N' to pair each line-number line
16967: # with the numbered line, and appends trailing '-' during
16968: # substitution so that $LINENO is not a special case at line end.
16969: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16970: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16971: sed '=' <$as_myself |
16972: sed '
16973: N
16974: s,$,-,
16975: : loop
16976: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16977: t loop
16978: s,-$,,
16979: s,^['$as_cr_digits']*\n,,
16980: ' >$as_me.lineno &&
16981: chmod +x $as_me.lineno ||
16982: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16983: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16984: { (exit 1); exit 1; }; }
16985:
16986: # Don't try to exec as it changes $[0], causing all sort of problems
16987: # (the dirname of $[0] is not the place where we might find the
16988: # original and so on. Autoconf is especially sensible to this).
16989: . ./$as_me.lineno
16990: # Exit status is that of the last command.
16991: exit
16992: }
16993:
16994:
16995: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16996: *c*,-n*) ECHO_N= ECHO_C='
16997: ' ECHO_T=' ' ;;
16998: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16999: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17000: esac
17001:
17002: if expr a : '\(a\)' >/dev/null 2>&1; then
17003: as_expr=expr
17004: else
17005: as_expr=false
17006: fi
17007:
17008: rm -f conf$$ conf$$.exe conf$$.file
17009: echo >conf$$.file
17010: if ln -s conf$$.file conf$$ 2>/dev/null; then
17011: # We could just check for DJGPP; but this test a) works b) is more generic
17012: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17013: if test -f conf$$.exe; then
17014: # Don't use ln at all; we don't have any links
17015: as_ln_s='cp -p'
17016: else
17017: as_ln_s='ln -s'
17018: fi
17019: elif ln conf$$.file conf$$ 2>/dev/null; then
17020: as_ln_s=ln
17021: else
17022: as_ln_s='cp -p'
17023: fi
17024: rm -f conf$$ conf$$.exe conf$$.file
17025:
17026: as_executable_p="test -f"
17027:
17028: # Sed expression to map a string onto a valid CPP name.
17029: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17030:
17031: # Sed expression to map a string onto a valid variable name.
17032: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17033:
17034:
17035: # IFS
17036: # We need space, tab and new line, in precisely that order.
17037: as_nl='
17038: '
17039: IFS=" $as_nl"
17040:
17041: # CDPATH.
17042: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17043:
17044: exec 6>&1
17045:
17046: # Open the log real soon, to keep \$[0] and so on meaningful, and to
17047: # report actual input values of CONFIG_FILES etc. instead of their
17048: # values after options handling. Logging --version etc. is OK.
17049: exec 5>>config.log
17050: {
17051: echo
17052: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17053: ## Running $as_me. ##
17054: _ASBOX
17055: } >&5
17056: cat >&5 <<_CSEOF
17057:
17058: This file was extended by PostgreSQL $as_me 7.3devel, which was
17059: generated by GNU Autoconf 2.53. Invocation command line was
17060:
17061: CONFIG_FILES = $CONFIG_FILES
17062: CONFIG_HEADERS = $CONFIG_HEADERS
17063: CONFIG_LINKS = $CONFIG_LINKS
17064: CONFIG_COMMANDS = $CONFIG_COMMANDS
17065: $ $0 $@
17066:
17067: _CSEOF
17068: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17069: echo >&5
17070: _ACEOF
17071:
17072: # Files that config.status was made for.
17073: if test -n "$ac_config_files"; then
17074: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17075: fi
17076:
17077: if test -n "$ac_config_headers"; then
17078: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17079: fi
17080:
17081: if test -n "$ac_config_links"; then
17082: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17083: fi
17084:
17085: if test -n "$ac_config_commands"; then
17086: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17087: fi
17088:
17089: cat >>$CONFIG_STATUS <<\_ACEOF
17090:
17091: ac_cs_usage="\
17092: \`$as_me' instantiates files from templates according to the
17093: current configuration.
17094:
17095: Usage: $0 [OPTIONS] [FILE]...
17096:
17097: -h, --help print this help, then exit
17098: -V, --version print version number, then exit
17099: -d, --debug don't remove temporary files
17100: --recheck update $as_me by reconfiguring in the same conditions
17101: --file=FILE[:TEMPLATE]
17102: instantiate the configuration file FILE
17103: --header=FILE[:TEMPLATE]
17104: instantiate the configuration header FILE
17105:
17106: Configuration files:
17107: $config_files
17108:
17109: Configuration headers:
17110: $config_headers
17111:
17112: Configuration links:
17113: $config_links
17114:
17115: Report bugs to <[email protected]>."
17116: _ACEOF
17117:
17118: cat >>$CONFIG_STATUS <<_ACEOF
17119: ac_cs_version="\\
17120: PostgreSQL config.status 7.3devel
17121: configured by $0, generated by GNU Autoconf 2.53,
17122: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17123:
17124: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17125: Free Software Foundation, Inc.
17126: This config.status script is free software; the Free Software Foundation
17127: gives unlimited permission to copy, distribute and modify it."
17128: srcdir=$srcdir
17129: _ACEOF
17130:
17131: cat >>$CONFIG_STATUS <<\_ACEOF
17132: # If no file are specified by the user, then we need to provide default
17133: # value. By we need to know if files were specified by the user.
17134: ac_need_defaults=:
17135: while test $# != 0
1.1 petere 17136: do
1.179 petere 17137: case $1 in
17138: --*=*)
17139: ac_option=`expr "x$1" : 'x\([^=]*\)='`
17140: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17141: shift
17142: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17143: shift
17144: ;;
17145: -*);;
17146: *) # This is not an option, so the user has probably given explicit
17147: # arguments.
17148: ac_need_defaults=false;;
17149: esac
17150:
17151: case $1 in
17152: # Handling of the options.
17153: _ACEOF
17154: cat >>$CONFIG_STATUS <<_ACEOF
1.1 petere 17155: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.179 petere 17156: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17157: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17158: _ACEOF
17159: cat >>$CONFIG_STATUS <<\_ACEOF
17160: --version | --vers* | -V )
17161: echo "$ac_cs_version"; exit 0 ;;
17162: --he | --h)
17163: # Conflict between --help and --header
17164: { { echo "$as_me:$LINENO: error: ambiguous option: $1
17165: Try \`$0 --help' for more information." >&5
17166: echo "$as_me: error: ambiguous option: $1
17167: Try \`$0 --help' for more information." >&2;}
17168: { (exit 1); exit 1; }; };;
17169: --help | --hel | -h )
17170: echo "$ac_cs_usage"; exit 0 ;;
17171: --debug | --d* | -d )
17172: debug=: ;;
17173: --file | --fil | --fi | --f )
17174: shift
17175: CONFIG_FILES="$CONFIG_FILES $1"
17176: ac_need_defaults=false;;
17177: --header | --heade | --head | --hea )
17178: shift
17179: CONFIG_HEADERS="$CONFIG_HEADERS $1"
17180: ac_need_defaults=false;;
17181:
17182: # This is an error.
17183: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17184: Try \`$0 --help' for more information." >&5
17185: echo "$as_me: error: unrecognized option: $1
17186: Try \`$0 --help' for more information." >&2;}
17187: { (exit 1); exit 1; }; } ;;
17188:
17189: *) ac_config_targets="$ac_config_targets $1" ;;
17190:
17191: esac
17192: shift
17193: done
17194:
17195: _ACEOF
17196:
17197:
17198:
17199:
17200:
17201: cat >>$CONFIG_STATUS <<\_ACEOF
17202: for ac_config_target in $ac_config_targets
17203: do
17204: case "$ac_config_target" in
17205: # Handling of arguments.
17206: "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17207: "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17208: "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17209: "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17210: "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17211: "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17212: "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17213: "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17214: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17215: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17216: { (exit 1); exit 1; }; };;
1.1 petere 17217: esac
17218: done
17219:
1.179 petere 17220: # If the user did not use the arguments to specify the items to instantiate,
17221: # then the envvar interface is used. Set only those that are not.
17222: # We use the long form for the default assignment because of an extremely
17223: # bizarre bug on SunOS 4.1.3.
17224: if $ac_need_defaults; then
17225: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17226: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17227: test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17228: fi
17229:
17230: # Create a temporary directory, and hook for its removal unless debugging.
17231: $debug ||
17232: {
17233: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17234: trap '{ (exit 1); exit 1; }' 1 2 13 15
17235: }
17236:
17237: # Create a (secure) tmp directory for tmp files.
17238: : ${TMPDIR=/tmp}
17239: {
17240: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17241: test -n "$tmp" && test -d "$tmp"
17242: } ||
17243: {
17244: tmp=$TMPDIR/cs$$-$RANDOM
17245: (umask 077 && mkdir $tmp)
17246: } ||
17247: {
17248: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17249: { (exit 1); exit 1; }
17250: }
17251:
17252: _ACEOF
17253:
17254: cat >>$CONFIG_STATUS <<_ACEOF
1.1 petere 17255:
1.179 petere 17256: #
17257: # CONFIG_FILES section.
17258: #
1.1 petere 17259:
1.179 petere 17260: # No need to generate the scripts if there are no CONFIG_FILES.
17261: # This happens for instance when ./config.status config.h
17262: if test -n "\$CONFIG_FILES"; then
17263: # Protect against being on the right side of a sed subst in config.status.
17264: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17265: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17266: s,@SHELL@,$SHELL,;t t
17267: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17268: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17269: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17270: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17271: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17272: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17273: s,@exec_prefix@,$exec_prefix,;t t
17274: s,@prefix@,$prefix,;t t
17275: s,@program_transform_name@,$program_transform_name,;t t
17276: s,@bindir@,$bindir,;t t
17277: s,@sbindir@,$sbindir,;t t
17278: s,@libexecdir@,$libexecdir,;t t
17279: s,@datadir@,$datadir,;t t
17280: s,@sysconfdir@,$sysconfdir,;t t
17281: s,@sharedstatedir@,$sharedstatedir,;t t
17282: s,@localstatedir@,$localstatedir,;t t
17283: s,@libdir@,$libdir,;t t
17284: s,@includedir@,$includedir,;t t
17285: s,@oldincludedir@,$oldincludedir,;t t
17286: s,@infodir@,$infodir,;t t
17287: s,@mandir@,$mandir,;t t
17288: s,@build_alias@,$build_alias,;t t
17289: s,@host_alias@,$host_alias,;t t
17290: s,@target_alias@,$target_alias,;t t
17291: s,@DEFS@,$DEFS,;t t
17292: s,@ECHO_C@,$ECHO_C,;t t
17293: s,@ECHO_N@,$ECHO_N,;t t
17294: s,@ECHO_T@,$ECHO_T,;t t
17295: s,@LIBS@,$LIBS,;t t
17296: s,@docdir@,$docdir,;t t
17297: s,@configure_args@,$configure_args,;t t
17298: s,@build@,$build,;t t
17299: s,@build_cpu@,$build_cpu,;t t
17300: s,@build_vendor@,$build_vendor,;t t
17301: s,@build_os@,$build_os,;t t
17302: s,@host@,$host,;t t
17303: s,@host_cpu@,$host_cpu,;t t
17304: s,@host_vendor@,$host_vendor,;t t
17305: s,@host_os@,$host_os,;t t
17306: s,@PORTNAME@,$PORTNAME,;t t
17307: s,@TAS@,$TAS,;t t
17308: s,@MULTIBYTE@,$MULTIBYTE,;t t
17309: s,@enable_nls@,$enable_nls,;t t
17310: s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17311: s,@default_port@,$default_port,;t t
17312: s,@enable_shared@,$enable_shared,;t t
17313: s,@enable_rpath@,$enable_rpath,;t t
17314: s,@enable_debug@,$enable_debug,;t t
17315: s,@CC@,$CC,;t t
17316: s,@CFLAGS@,$CFLAGS,;t t
17317: s,@LDFLAGS@,$LDFLAGS,;t t
17318: s,@CPPFLAGS@,$CPPFLAGS,;t t
17319: s,@ac_ct_CC@,$ac_ct_CC,;t t
17320: s,@EXEEXT@,$EXEEXT,;t t
17321: s,@OBJEXT@,$OBJEXT,;t t
17322: s,@CPP@,$CPP,;t t
17323: s,@GCC@,$GCC,;t t
17324: s,@autodepend@,$autodepend,;t t
17325: s,@INCLUDES@,$INCLUDES,;t t
17326: s,@with_tcl@,$with_tcl,;t t
17327: s,@with_tk@,$with_tk,;t t
17328: s,@with_perl@,$with_perl,;t t
17329: s,@with_python@,$with_python,;t t
17330: s,@ANT@,$ANT,;t t
17331: s,@with_java@,$with_java,;t t
17332: s,@with_krb4@,$with_krb4,;t t
17333: s,@with_krb5@,$with_krb5,;t t
17334: s,@krb_srvtab@,$krb_srvtab,;t t
17335: s,@with_pam@,$with_pam,;t t
17336: s,@with_openssl@,$with_openssl,;t t
17337: s,@enable_odbc@,$enable_odbc,;t t
17338: s,@with_unixodbc@,$with_unixodbc,;t t
17339: s,@with_iodbc@,$with_iodbc,;t t
17340: s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17341: s,@ELF_SYS@,$ELF_SYS,;t t
17342: s,@CXX@,$CXX,;t t
17343: s,@CXXFLAGS@,$CXXFLAGS,;t t
17344: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17345: s,@CXXCPP@,$CXXCPP,;t t
17346: s,@with_CXX@,$with_CXX,;t t
17347: s,@GXX@,$GXX,;t t
17348: s,@AWK@,$AWK,;t t
17349: s,@FLEX@,$FLEX,;t t
17350: s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17351: s,@LN_S@,$LN_S,;t t
17352: s,@LD@,$LD,;t t
17353: s,@with_gnu_ld@,$with_gnu_ld,;t t
17354: s,@ld_R_works@,$ld_R_works,;t t
17355: s,@RANLIB@,$RANLIB,;t t
17356: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17357: s,@LORDER@,$LORDER,;t t
17358: s,@TAR@,$TAR,;t t
1.185 petere 17359: s,@STRIP@,$STRIP,;t t
17360: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17361: s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17362: s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
1.179 petere 17363: s,@YACC@,$YACC,;t t
17364: s,@YFLAGS@,$YFLAGS,;t t
17365: s,@WISH@,$WISH,;t t
17366: s,@PERL@,$PERL,;t t
17367: s,@perl_installsitearch@,$perl_installsitearch,;t t
17368: s,@perl_installsitelib@,$perl_installsitelib,;t t
17369: s,@perl_installman3dir@,$perl_installman3dir,;t t
17370: s,@PYTHON@,$PYTHON,;t t
17371: s,@python_version@,$python_version,;t t
17372: s,@python_prefix@,$python_prefix,;t t
17373: s,@python_execprefix@,$python_execprefix,;t t
17374: s,@python_configdir@,$python_configdir,;t t
17375: s,@python_moduledir@,$python_moduledir,;t t
17376: s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17377: s,@python_includespec@,$python_includespec,;t t
17378: s,@python_libspec@,$python_libspec,;t t
17379: s,@MEMCMP@,$MEMCMP,;t t
17380: s,@SNPRINTF@,$SNPRINTF,;t t
17381: s,@ISINF@,$ISINF,;t t
17382: s,@GETRUSAGE@,$GETRUSAGE,;t t
17383: s,@SRANDOM@,$SRANDOM,;t t
17384: s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17385: s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17386: s,@INET_ATON@,$INET_ATON,;t t
17387: s,@STRERROR@,$STRERROR,;t t
17388: s,@STRDUP@,$STRDUP,;t t
17389: s,@STRTOL@,$STRTOL,;t t
17390: s,@STRTOUL@,$STRTOUL,;t t
17391: s,@STRCASECMP@,$STRCASECMP,;t t
17392: s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17393: s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
1.181 petere 17394: s,@MSGFMT@,$MSGFMT,;t t
17395: s,@MSGMERGE@,$MSGMERGE,;t t
17396: s,@XGETTEXT@,$XGETTEXT,;t t
17397: s,@localedir@,$localedir,;t t
1.179 petere 17398: s,@TCLSH@,$TCLSH,;t t
17399: s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17400: s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17401: s,@NSGMLS@,$NSGMLS,;t t
17402: s,@JADE@,$JADE,;t t
17403: s,@have_docbook@,$have_docbook,;t t
17404: s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
1.187 petere 17405: s,@COLLATEINDEX@,$COLLATEINDEX,;t t
1.179 petere 17406: s,@SGMLSPL@,$SGMLSPL,;t t
17407: s,@vpath_build@,$vpath_build,;t t
1.1 petere 17408: CEOF
17409:
1.179 petere 17410: _ACEOF
1.1 petere 17411:
1.179 petere 17412: cat >>$CONFIG_STATUS <<\_ACEOF
17413: # Split the substitutions into bite-sized pieces for seds with
17414: # small command number limits, like on Digital OSF/1 and HP-UX.
17415: ac_max_sed_lines=48
17416: ac_sed_frag=1 # Number of current file.
17417: ac_beg=1 # First line for current file.
17418: ac_end=$ac_max_sed_lines # Line after last line for current file.
17419: ac_more_lines=:
17420: ac_sed_cmds=
17421: while $ac_more_lines; do
17422: if test $ac_beg -gt 1; then
17423: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17424: else
17425: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17426: fi
17427: if test ! -s $tmp/subs.frag; then
17428: ac_more_lines=false
1.1 petere 17429: else
1.179 petere 17430: # The purpose of the label and of the branching condition is to
17431: # speed up the sed processing (if there are no `@' at all, there
17432: # is no need to browse any of the substitutions).
17433: # These are the two extra sed commands mentioned above.
17434: (echo ':t
17435: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17436: if test -z "$ac_sed_cmds"; then
17437: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17438: else
17439: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17440: fi
17441: ac_sed_frag=`expr $ac_sed_frag + 1`
17442: ac_beg=$ac_end
17443: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 petere 17444: fi
1.179 petere 17445: done
17446: if test -z "$ac_sed_cmds"; then
17447: ac_sed_cmds=cat
1.1 petere 17448: fi
1.179 petere 17449: fi # test -n "$CONFIG_FILES"
17450:
17451: _ACEOF
17452: cat >>$CONFIG_STATUS <<\_ACEOF
17453: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17454: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17455: case $ac_file in
17456: - | *:- | *:-:* ) # input from stdin
17457: cat >$tmp/stdin
17458: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17459: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17460: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17461: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17462: * ) ac_file_in=$ac_file.in ;;
17463: esac
17464:
17465: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17466: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17467: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17468: X"$ac_file" : 'X\(//\)[^/]' \| \
17469: X"$ac_file" : 'X\(//\)$' \| \
17470: X"$ac_file" : 'X\(/\)' \| \
17471: . : '\(.\)' 2>/dev/null ||
17472: echo X"$ac_file" |
17473: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17474: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17475: /^X\(\/\/\)$/{ s//\1/; q; }
17476: /^X\(\/\).*/{ s//\1/; q; }
17477: s/.*/./; q'`
17478: { case "$ac_dir" in
17479: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17480: *) as_incr_dir=.;;
17481: esac
17482: as_dummy="$ac_dir"
17483: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17484: case $as_mkdir_dir in
17485: # Skip DOS drivespec
17486: ?:) as_incr_dir=$as_mkdir_dir ;;
17487: *)
17488: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17489: test -d "$as_incr_dir" ||
17490: mkdir "$as_incr_dir" ||
17491: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17492: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17493: { (exit 1); exit 1; }; }
17494: ;;
17495: esac
17496: done; }
17497:
17498: ac_builddir=.
17499:
17500: if test "$ac_dir" != .; then
17501: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17502: # A "../" for each directory in $ac_dir_suffix.
17503: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17504: else
17505: ac_dir_suffix= ac_top_builddir=
1.1 petere 17506: fi
17507:
1.179 petere 17508: case $srcdir in
17509: .) # No --srcdir option. We are building in place.
17510: ac_srcdir=.
17511: if test -z "$ac_top_builddir"; then
17512: ac_top_srcdir=.
17513: else
17514: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17515: fi ;;
17516: [\\/]* | ?:[\\/]* ) # Absolute path.
17517: ac_srcdir=$srcdir$ac_dir_suffix;
17518: ac_top_srcdir=$srcdir ;;
17519: *) # Relative path.
17520: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17521: ac_top_srcdir=$ac_top_builddir$srcdir ;;
17522: esac
17523: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17524: # absolute.
17525: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17526: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17527: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17528: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17529:
17530:
17531:
17532: if test x"$ac_file" != x-; then
17533: { echo "$as_me:$LINENO: creating $ac_file" >&5
17534: echo "$as_me: creating $ac_file" >&6;}
17535: rm -f "$ac_file"
17536: fi
17537: # Let's still pretend it is `configure' which instantiates (i.e., don't
17538: # use $as_me), people would be surprised to read:
17539: # /* config.h. Generated by config.status. */
17540: if test x"$ac_file" = x-; then
17541: configure_input=
17542: else
17543: configure_input="$ac_file. "
17544: fi
17545: configure_input=$configure_input"Generated from `echo $ac_file_in |
17546: sed 's,.*/,,'` by configure."
1.1 petere 17547:
1.179 petere 17548: # First look for the input files in the build tree, otherwise in the
17549: # src tree.
17550: ac_file_inputs=`IFS=:
17551: for f in $ac_file_in; do
17552: case $f in
17553: -) echo $tmp/stdin ;;
17554: [\\/$]*)
17555: # Absolute (can't be DOS-style, as IFS=:)
17556: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17557: echo "$as_me: error: cannot find input file: $f" >&2;}
17558: { (exit 1); exit 1; }; }
17559: echo $f;;
17560: *) # Relative
17561: if test -f "$f"; then
17562: # Build tree
17563: echo $f
17564: elif test -f "$srcdir/$f"; then
17565: # Source tree
17566: echo $srcdir/$f
17567: else
17568: # /dev/null tree
17569: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17570: echo "$as_me: error: cannot find input file: $f" >&2;}
17571: { (exit 1); exit 1; }; }
17572: fi;;
17573: esac
17574: done` || { (exit 1); exit 1; }
17575: _ACEOF
17576: cat >>$CONFIG_STATUS <<_ACEOF
17577: sed "$ac_vpsub
17578: $extrasub
17579: _ACEOF
17580: cat >>$CONFIG_STATUS <<\_ACEOF
17581: :t
17582: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17583: s,@configure_input@,$configure_input,;t t
17584: s,@srcdir@,$ac_srcdir,;t t
17585: s,@abs_srcdir@,$ac_abs_srcdir,;t t
17586: s,@top_srcdir@,$ac_top_srcdir,;t t
17587: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17588: s,@builddir@,$ac_builddir,;t t
17589: s,@abs_builddir@,$ac_abs_builddir,;t t
17590: s,@top_builddir@,$ac_top_builddir,;t t
17591: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17592: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17593: rm -f $tmp/stdin
17594: if test x"$ac_file" != x-; then
17595: mv $tmp/out $ac_file
17596: else
17597: cat $tmp/out
17598: rm -f $tmp/out
17599: fi
1.1 petere 17600:
1.179 petere 17601: done
17602: _ACEOF
17603: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17604:
1.179 petere 17605: #
17606: # CONFIG_HEADER section.
17607: #
1.1 petere 17608:
17609: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17610: # NAME is the cpp macro being defined and VALUE is the value it is being given.
17611: #
17612: # ac_d sets the value in "#define NAME VALUE" lines.
1.179 petere 17613: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17614: ac_dB='[ ].*$,\1#\2'
17615: ac_dC=' '
17616: ac_dD=',;t'
17617: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17618: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17619: ac_uB='$,\1#\2define\3'
1.1 petere 17620: ac_uC=' '
1.179 petere 17621: ac_uD=',;t'
1.1 petere 17622:
1.179 petere 17623: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 petere 17624: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.179 petere 17625: case $ac_file in
17626: - | *:- | *:-:* ) # input from stdin
17627: cat >$tmp/stdin
17628: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17629: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17630: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17631: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17632: * ) ac_file_in=$ac_file.in ;;
1.1 petere 17633: esac
17634:
1.179 petere 17635: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17636: echo "$as_me: creating $ac_file" >&6;}
1.1 petere 17637:
1.179 petere 17638: # First look for the input files in the build tree, otherwise in the
17639: # src tree.
17640: ac_file_inputs=`IFS=:
17641: for f in $ac_file_in; do
17642: case $f in
17643: -) echo $tmp/stdin ;;
17644: [\\/$]*)
17645: # Absolute (can't be DOS-style, as IFS=:)
17646: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17647: echo "$as_me: error: cannot find input file: $f" >&2;}
17648: { (exit 1); exit 1; }; }
17649: echo $f;;
17650: *) # Relative
17651: if test -f "$f"; then
17652: # Build tree
17653: echo $f
17654: elif test -f "$srcdir/$f"; then
17655: # Source tree
17656: echo $srcdir/$f
17657: else
17658: # /dev/null tree
17659: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17660: echo "$as_me: error: cannot find input file: $f" >&2;}
17661: { (exit 1); exit 1; }; }
17662: fi;;
17663: esac
17664: done` || { (exit 1); exit 1; }
17665: # Remove the trailing spaces.
17666: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17667:
17668: _ACEOF
17669:
17670: # Transform confdefs.h into two sed scripts, `conftest.defines' and
17671: # `conftest.undefs', that substitutes the proper values into
17672: # config.h.in to produce config.h. The first handles `#define'
17673: # templates, and the second `#undef' templates.
17674: # And first: Protect against being on the right side of a sed subst in
17675: # config.status. Protect against being in an unquoted here document
17676: # in config.status.
17677: rm -f conftest.defines conftest.undefs
17678: # Using a here document instead of a string reduces the quoting nightmare.
17679: # Putting comments in sed scripts is not portable.
17680: #
17681: # `end' is used to avoid that the second main sed command (meant for
17682: # 0-ary CPP macros) applies to n-ary macro definitions.
17683: # See the Autoconf documentation for `clear'.
17684: cat >confdef2sed.sed <<\_ACEOF
17685: s/[\\&,]/\\&/g
17686: s,[\\$`],\\&,g
17687: t clear
17688: : clear
17689: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17690: t end
17691: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17692: : end
17693: _ACEOF
17694: # If some macros were called several times there might be several times
17695: # the same #defines, which is useless. Nevertheless, we may not want to
17696: # sort them, since we want the *last* AC-DEFINE to be honored.
17697: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17698: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17699: rm -f confdef2sed.sed
1.1 petere 17700:
17701: # This sed command replaces #undef with comments. This is necessary, for
17702: # example, in the case of _POSIX_SOURCE, which is predefined and required
17703: # on some systems where configure will not decide to define it.
1.179 petere 17704: cat >>conftest.undefs <<\_ACEOF
17705: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17706: _ACEOF
17707:
17708: # Break up conftest.defines because some shells have a limit on the size
17709: # of here documents, and old seds have small limits too (100 cmds).
17710: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17711: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17712: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17713: echo ' :' >>$CONFIG_STATUS
17714: rm -f conftest.tail
17715: while grep . conftest.defines >/dev/null
17716: do
17717: # Write a limited-size here document to $tmp/defines.sed.
17718: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17719: # Speed up: don't consider the non `#define' lines.
17720: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17721: # Work around the forget-to-reset-the-flag bug.
17722: echo 't clr' >>$CONFIG_STATUS
17723: echo ': clr' >>$CONFIG_STATUS
17724: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17725: echo 'CEOF
17726: sed -f $tmp/defines.sed $tmp/in >$tmp/out
17727: rm -f $tmp/in
17728: mv $tmp/out $tmp/in
17729: ' >>$CONFIG_STATUS
17730: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17731: rm -f conftest.defines
17732: mv conftest.tail conftest.defines
17733: done
17734: rm -f conftest.defines
17735: echo ' fi # egrep' >>$CONFIG_STATUS
17736: echo >>$CONFIG_STATUS
17737:
17738: # Break up conftest.undefs because some shells have a limit on the size
17739: # of here documents, and old seds have small limits too (100 cmds).
17740: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 petere 17741: rm -f conftest.tail
1.179 petere 17742: while grep . conftest.undefs >/dev/null
1.1 petere 17743: do
1.179 petere 17744: # Write a limited-size here document to $tmp/undefs.sed.
17745: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17746: # Speed up: don't consider the non `#undef'
17747: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17748: # Work around the forget-to-reset-the-flag bug.
17749: echo 't clr' >>$CONFIG_STATUS
17750: echo ': clr' >>$CONFIG_STATUS
17751: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 petere 17752: echo 'CEOF
1.179 petere 17753: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17754: rm -f $tmp/in
17755: mv $tmp/out $tmp/in
17756: ' >>$CONFIG_STATUS
17757: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17758: rm -f conftest.undefs
17759: mv conftest.tail conftest.undefs
17760: done
17761: rm -f conftest.undefs
17762:
17763: cat >>$CONFIG_STATUS <<\_ACEOF
17764: # Let's still pretend it is `configure' which instantiates (i.e., don't
17765: # use $as_me), people would be surprised to read:
17766: # /* config.h. Generated by config.status. */
17767: if test x"$ac_file" = x-; then
17768: echo "/* Generated by configure. */" >$tmp/config.h
17769: else
17770: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17771: fi
17772: cat $tmp/in >>$tmp/config.h
17773: rm -f $tmp/in
17774: if test x"$ac_file" != x-; then
17775: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17776: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17777: echo "$as_me: $ac_file is unchanged" >&6;}
17778: else
17779: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17780: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17781: X"$ac_file" : 'X\(//\)[^/]' \| \
17782: X"$ac_file" : 'X\(//\)$' \| \
17783: X"$ac_file" : 'X\(/\)' \| \
17784: . : '\(.\)' 2>/dev/null ||
17785: echo X"$ac_file" |
17786: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17787: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17788: /^X\(\/\/\)$/{ s//\1/; q; }
17789: /^X\(\/\).*/{ s//\1/; q; }
17790: s/.*/./; q'`
17791: { case "$ac_dir" in
17792: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17793: *) as_incr_dir=.;;
17794: esac
17795: as_dummy="$ac_dir"
17796: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17797: case $as_mkdir_dir in
17798: # Skip DOS drivespec
17799: ?:) as_incr_dir=$as_mkdir_dir ;;
17800: *)
17801: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17802: test -d "$as_incr_dir" ||
17803: mkdir "$as_incr_dir" ||
17804: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17805: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17806: { (exit 1); exit 1; }; }
17807: ;;
17808: esac
17809: done; }
17810:
17811: rm -f $ac_file
17812: mv $tmp/config.h $ac_file
1.1 petere 17813: fi
1.179 petere 17814: else
17815: cat $tmp/config.h
17816: rm -f $tmp/config.h
1.1 petere 17817: fi
1.179 petere 17818: # Run the commands associated with the file.
17819: case $ac_file in
17820: src/include/pg_config.h )
17821: # Update timestamp for pg_config.h (see Makefile.global)
17822: echo >src/include/stamp-h
17823: ;;
17824: esac
17825: done
17826: _ACEOF
17827: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17828:
1.179 petere 17829: #
17830: # CONFIG_LINKS section.
17831: #
1.1 petere 17832:
1.179 petere 17833: for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17834: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17835: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.1 petere 17836:
1.179 petere 17837: { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17838: echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1.1 petere 17839:
17840: if test ! -r $srcdir/$ac_source; then
1.179 petere 17841: { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17842: echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17843: { (exit 1); exit 1; }; }
1.1 petere 17844: fi
17845: rm -f $ac_dest
17846:
17847: # Make relative symlinks.
1.179 petere 17848: ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17849: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17850: X"$ac_dest" : 'X\(//\)[^/]' \| \
17851: X"$ac_dest" : 'X\(//\)$' \| \
17852: X"$ac_dest" : 'X\(/\)' \| \
17853: . : '\(.\)' 2>/dev/null ||
17854: echo X"$ac_dest" |
17855: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17856: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17857: /^X\(\/\/\)$/{ s//\1/; q; }
17858: /^X\(\/\).*/{ s//\1/; q; }
17859: s/.*/./; q'`
17860: { case "$ac_dest_dir" in
17861: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17862: *) as_incr_dir=.;;
17863: esac
17864: as_dummy="$ac_dest_dir"
17865: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17866: case $as_mkdir_dir in
17867: # Skip DOS drivespec
17868: ?:) as_incr_dir=$as_mkdir_dir ;;
17869: *)
17870: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17871: test -d "$as_incr_dir" ||
17872: mkdir "$as_incr_dir" ||
17873: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17874: echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17875: { (exit 1); exit 1; }; }
17876: ;;
17877: esac
17878: done; }
17879:
17880: ac_builddir=.
17881:
17882: if test "$ac_dest_dir" != .; then
17883: ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17884: # A "../" for each directory in $ac_dir_suffix.
17885: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17886: else
17887: ac_dir_suffix= ac_top_builddir=
17888: fi
17889:
17890: case $srcdir in
17891: .) # No --srcdir option. We are building in place.
17892: ac_srcdir=.
17893: if test -z "$ac_top_builddir"; then
17894: ac_top_srcdir=.
17895: else
17896: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17897: fi ;;
17898: [\\/]* | ?:[\\/]* ) # Absolute path.
17899: ac_srcdir=$srcdir$ac_dir_suffix;
17900: ac_top_srcdir=$srcdir ;;
17901: *) # Relative path.
17902: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17903: ac_top_srcdir=$ac_top_builddir$srcdir ;;
17904: esac
17905: # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17906: # absolute.
17907: ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17908: ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17909: ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17910: ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17911:
1.1 petere 17912:
1.179 petere 17913: case $srcdir in
17914: [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17915: *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1.1 petere 17916: esac
17917:
17918: # Make a symlink if possible; otherwise try a hard link.
1.179 petere 17919: ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17920: ln $srcdir/$ac_source $ac_dest ||
17921: { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17922: echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17923: { (exit 1); exit 1; }; }
1.1 petere 17924: done
1.179 petere 17925: _ACEOF
17926:
17927: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17928:
1.179 petere 17929: { (exit 0); exit 0; }
17930: _ACEOF
17931: chmod +x $CONFIG_STATUS
17932: ac_clean_files=$ac_clean_files_save
1.91 tgl 17933:
1.1 petere 17934:
1.179 petere 17935: # configure is writing to config.log, and then calls config.status.
17936: # config.status does its own redirection, appending to config.log.
17937: # Unfortunately, on DOS this fails, as config.log is still kept open
17938: # by configure, so config.status won't be able to write to it; its
17939: # output is simply discarded. So we exec the FD to /dev/null,
17940: # effectively closing config.log, so it can be properly (re)opened and
17941: # appended to by config.status. When coming back to configure, we
17942: # need to make the FD available again.
17943: if test "$no_create" != yes; then
17944: ac_cs_success=:
17945: exec 5>/dev/null
17946: $SHELL $CONFIG_STATUS || ac_cs_success=false
17947: exec 5>>config.log
17948: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17949: # would make configure fail if this is the last instruction.
17950: $ac_cs_success || { (exit 1); exit 1; }
17951: fi
1.1 petere 17952:
PostgreSQL CVSweb <[email protected]>