Annotation of pgsql/configure, revision 1.183
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
772:
773: #
774: # Report the --help message.
775: #
776: if test "$ac_init_help" = "long"; then
777: # Omit some internal or obsolete options to make the list less imposing.
778: # This message is too long to be a string in the A/UX 3.1 sh.
779: cat <<_ACEOF
780: \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
781:
782: Usage: $0 [OPTION]... [VAR=VALUE]...
783:
784: To assign environment variables (e.g., CC, CFLAGS...), specify them as
785: VAR=VALUE. See below for descriptions of some of the useful variables.
786:
787: Defaults for the options are specified in brackets.
788:
789: Configuration:
790: -h, --help display this help and exit
791: --help=short display options specific to this package
792: --help=recursive display the short help of all the included packages
793: -V, --version display version information and exit
794: -q, --quiet, --silent do not print \`checking...' messages
795: --cache-file=FILE cache test results in FILE [disabled]
796: -C, --config-cache alias for \`--cache-file=config.cache'
797: -n, --no-create do not create output files
798: --srcdir=DIR find the sources in DIR [configure dir or \`..']
799:
800: _ACEOF
801:
802: cat <<_ACEOF
803: Installation directories:
804: --prefix=PREFIX install architecture-independent files in PREFIX
805: [$ac_default_prefix]
806: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807: [PREFIX]
808:
809: By default, \`make install' will install all the files in
810: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812: for instance \`--prefix=\$HOME'.
813:
814: For better control, use the options below.
815:
816: Fine tuning of the installation directories:
817: --bindir=DIR user executables [EPREFIX/bin]
818: --sbindir=DIR system admin executables [EPREFIX/sbin]
819: --libexecdir=DIR program executables [EPREFIX/libexec]
820: --datadir=DIR read-only architecture-independent data [PREFIX/share]
821: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824: --libdir=DIR object code libraries [EPREFIX/lib]
825: --includedir=DIR C header files [PREFIX/include]
826: --oldincludedir=DIR C header files for non-gcc [/usr/include]
827: --infodir=DIR info documentation [PREFIX/info]
828: --mandir=DIR man documentation [PREFIX/man]
829: _ACEOF
830:
831: cat <<\_ACEOF
832:
833: System types:
834: --build=BUILD configure for building on BUILD [guessed]
835: --host=HOST cross-compile to build programs to run on HOST [BUILD]
836: _ACEOF
837: fi
838:
839: if test -n "$ac_init_help"; then
840: case $ac_init_help in
841: short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
842: esac
843: cat <<\_ACEOF
844:
845: Optional Features:
846: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848: --enable-locale enable locale support
849: --enable-recode enable character set recode support
850: --enable-multibyte enable multibyte character support
851: --enable-nls[=LANGUAGES] enable Native Language Support
852: --disable-shared do not build shared libraries
853: --disable-rpath do not embed shared library search path in executables
854: --enable-debug build with debugging symbols (-g)
855: --enable-depend turn on automatic dependency tracking
856: --enable-cassert enable assertion checks (for debugging)
857: --enable-odbc build the ODBC driver package
858: --enable-syslog enable logging to syslog
859:
860: Optional Packages:
861: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863:
864: --with-includes=DIRS look for additional header files in DIRS
865: --with-libraries=DIRS look for additional libraries in DIRS
866: --with-libs=DIRS alternative spelling of --with-libraries
867: --with-pgport=PORTNUM change default port number 5432
868: --with-maxbackends=N set default maximum number of connections 32
869: --with-tcl build Tcl and Tk interfaces
870: --without-tk do not build Tk interfaces if Tcl is enabled
871: --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
872: --with-tkconfig=DIR tkConfig.sh is in DIR
873: --with-perl build Perl interface and PL/Perl
874: --with-python build Python interface module
875: --with-java build JDBC interface and Java tools
876: --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
877: --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
878: --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
879: --with-pam build with PAM support
880: --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
881: --with-unixodbc build ODBC driver for unixODBC
882: --with-iodbc build ODBC driver for iODBC
883: --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
884: --with-CXX build C++ modules (libpq++)
885: --with-gnu-ld assume the C compiler uses GNU ld default=no
886:
887: Some influential environment variables:
888: CC C compiler command
889: CFLAGS C compiler flags
890: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891: nonstandard directory <lib dir>
892: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893: headers in a nonstandard directory <include dir>
894: CPP C preprocessor
895: CXX C++ compiler command
896: CXXFLAGS C++ compiler flags
897: CXXCPP C++ preprocessor
898:
899: Use these variables to override the choices made by `configure' or to help
900: it to find libraries and programs with nonstandard names/locations.
901:
902: Report bugs to <[email protected]>.
903: _ACEOF
904: fi
905:
906: if test "$ac_init_help" = "recursive"; then
907: # If there are subdirs, report their specific --help.
908: ac_popdir=`pwd`
909: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910: test -d $ac_dir || continue
911: ac_builddir=.
912:
913: if test "$ac_dir" != .; then
914: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915: # A "../" for each directory in $ac_dir_suffix.
916: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917: else
918: ac_dir_suffix= ac_top_builddir=
919: fi
920:
921: case $srcdir in
922: .) # No --srcdir option. We are building in place.
923: ac_srcdir=.
924: if test -z "$ac_top_builddir"; then
925: ac_top_srcdir=.
926: else
927: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928: fi ;;
929: [\\/]* | ?:[\\/]* ) # Absolute path.
930: ac_srcdir=$srcdir$ac_dir_suffix;
931: ac_top_srcdir=$srcdir ;;
932: *) # Relative path.
933: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934: ac_top_srcdir=$ac_top_builddir$srcdir ;;
935: esac
936: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
937: # absolute.
938: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
939: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
940: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
941: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
942:
943: cd $ac_dir
944: # Check for guested configure; otherwise get Cygnus style configure.
945: if test -f $ac_srcdir/configure.gnu; then
946: echo
947: $SHELL $ac_srcdir/configure.gnu --help=recursive
948: elif test -f $ac_srcdir/configure; then
949: echo
950: $SHELL $ac_srcdir/configure --help=recursive
951: elif test -f $ac_srcdir/configure.ac ||
952: test -f $ac_srcdir/configure.in; then
953: echo
954: $ac_configure --help
955: else
956: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957: fi
958: cd $ac_popdir
959: done
960: fi
961:
962: test -n "$ac_init_help" && exit 0
963: if $ac_init_version; then
964: cat <<\_ACEOF
965: PostgreSQL configure 7.3devel
966: generated by GNU Autoconf 2.53
967:
968: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
969: Free Software Foundation, Inc.
970: This configure script is free software; the Free Software Foundation
971: gives unlimited permission to copy, distribute and modify it.
972:
973: Copyright 2002 PostgreSQL Global Development Group
974: _ACEOF
975: exit 0
976: fi
977: exec 5>config.log
978: cat >&5 <<_ACEOF
979: This file contains any messages produced by compilers while
980: running configure, to aid debugging if configure makes a mistake.
981:
982: It was created by PostgreSQL $as_me 7.3devel, which was
983: generated by GNU Autoconf 2.53. Invocation command line was
984:
985: $ $0 $@
986:
987: _ACEOF
988: {
989: cat <<_ASUNAME
990: ## --------- ##
991: ## Platform. ##
992: ## --------- ##
993:
994: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995: uname -m = `(uname -m) 2>/dev/null || echo unknown`
996: uname -r = `(uname -r) 2>/dev/null || echo unknown`
997: uname -s = `(uname -s) 2>/dev/null || echo unknown`
998: uname -v = `(uname -v) 2>/dev/null || echo unknown`
999:
1000: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002:
1003: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010:
1011: _ASUNAME
1012:
1013: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014: for as_dir in $PATH
1015: do
1016: IFS=$as_save_IFS
1017: test -z "$as_dir" && as_dir=.
1018: echo "PATH: $as_dir"
1019: done
1020:
1021: } >&5
1022:
1023: cat >&5 <<_ACEOF
1024:
1025:
1026: ## ----------- ##
1027: ## Core tests. ##
1028: ## ----------- ##
1029:
1030: _ACEOF
1031:
1032:
1033: # Keep a trace of the command line.
1034: # Strip out --no-create and --no-recursion so they do not pile up.
1035: # Also quote any args containing shell meta-characters.
1036: ac_configure_args=
1037: ac_sep=
1038: for ac_arg
1039: do
1040: case $ac_arg in
1041: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042: | --no-cr | --no-c | -n ) continue ;;
1043: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045: continue ;;
1046: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048: esac
1049: case " $ac_configure_args " in
1050: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1051: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052: ac_sep=" " ;;
1053: esac
1054: # Get rid of the leading space.
1055: done
1056:
1057: # When interrupted or exit'd, cleanup temporary files, and complete
1058: # config.log. We remove comments because anyway the quotes in there
1059: # would cause problems or look ugly.
1060: # WARNING: Be sure not to use single quotes in there, as some shells,
1061: # such as our DU 5.0 friend, will then `close' the trap.
1062: trap 'exit_status=$?
1063: # Save into config.log some information that might help in debugging.
1064: {
1065: echo
1066: cat <<\_ASBOX
1067: ## ---------------- ##
1068: ## Cache variables. ##
1069: ## ---------------- ##
1070: _ASBOX
1071: echo
1072: # The following way of writing the cache mishandles newlines in values,
1073: {
1074: (set) 2>&1 |
1075: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076: *ac_space=\ *)
1077: sed -n \
1078: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080: ;;
1081: *)
1082: sed -n \
1083: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084: ;;
1085: esac;
1086: }
1087: echo
1088: if test -s confdefs.h; then
1089: cat <<\_ASBOX
1090: ## ----------- ##
1091: ## confdefs.h. ##
1092: ## ----------- ##
1093: _ASBOX
1094: echo
1095: sed "/^$/d" confdefs.h
1096: echo
1097: fi
1098: test "$ac_signal" != 0 &&
1099: echo "$as_me: caught signal $ac_signal"
1100: echo "$as_me: exit $exit_status"
1101: } >&5
1102: rm -f core core.* *.core &&
1103: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1104: exit $exit_status
1105: ' 0
1106: for ac_signal in 1 2 13 15; do
1107: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1108: done
1109: ac_signal=0
1110:
1111: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1112: rm -rf conftest* confdefs.h
1113: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1114: echo >confdefs.h
1115:
1116: # Predefined preprocessor variables.
1117:
1118: cat >>confdefs.h <<_ACEOF
1119: #define PACKAGE_NAME "$PACKAGE_NAME"
1120: _ACEOF
1121:
1122:
1123: cat >>confdefs.h <<_ACEOF
1124: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1125: _ACEOF
1126:
1127:
1128: cat >>confdefs.h <<_ACEOF
1129: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1130: _ACEOF
1.1 petere 1131:
1.179 petere 1132:
1133: cat >>confdefs.h <<_ACEOF
1134: #define PACKAGE_STRING "$PACKAGE_STRING"
1135: _ACEOF
1136:
1137:
1138: cat >>confdefs.h <<_ACEOF
1139: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1140: _ACEOF
1141:
1142:
1143: # Let the site file select an alternate cache file if it wants to.
1.1 petere 1144: # Prefer explicitly selected file to automatically selected ones.
1145: if test -z "$CONFIG_SITE"; then
1146: if test "x$prefix" != xNONE; then
1147: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1148: else
1149: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1150: fi
1151: fi
1152: for ac_site_file in $CONFIG_SITE; do
1153: if test -r "$ac_site_file"; then
1.179 petere 1154: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1155: echo "$as_me: loading site script $ac_site_file" >&6;}
1156: sed 's/^/| /' "$ac_site_file" >&5
1.1 petere 1157: . "$ac_site_file"
1158: fi
1159: done
1160:
1161: if test -r "$cache_file"; then
1.179 petere 1162: # Some versions of bash will fail to source /dev/null (special
1163: # files actually), so we avoid doing that.
1164: if test -f "$cache_file"; then
1165: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1166: echo "$as_me: loading cache $cache_file" >&6;}
1167: case $cache_file in
1168: [\\/]* | ?:[\\/]* ) . $cache_file;;
1169: *) . ./$cache_file;;
1170: esac
1171: fi
1.1 petere 1172: else
1.179 petere 1173: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1174: echo "$as_me: creating cache $cache_file" >&6;}
1175: >$cache_file
1176: fi
1177:
1178: # Check that the precious variables saved in the cache have kept the same
1179: # value.
1180: ac_cache_corrupted=false
1181: for ac_var in `(set) 2>&1 |
1182: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1183: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1184: eval ac_new_set=\$ac_env_${ac_var}_set
1185: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1186: eval ac_new_val="\$ac_env_${ac_var}_value"
1187: case $ac_old_set,$ac_new_set in
1188: set,)
1189: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1190: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1191: ac_cache_corrupted=: ;;
1192: ,set)
1193: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1194: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1195: ac_cache_corrupted=: ;;
1196: ,);;
1197: *)
1198: if test "x$ac_old_val" != "x$ac_new_val"; then
1199: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1200: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1201: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1202: echo "$as_me: former value: $ac_old_val" >&2;}
1203: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1204: echo "$as_me: current value: $ac_new_val" >&2;}
1205: ac_cache_corrupted=:
1206: fi;;
1207: esac
1208: # Pass precious variables to config.status.
1209: if test "$ac_new_set" = set; then
1210: case $ac_new_val in
1211: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1213: *) ac_arg=$ac_var=$ac_new_val ;;
1214: esac
1215: case " $ac_configure_args " in
1216: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1217: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1218: esac
1219: fi
1220: done
1221: if $ac_cache_corrupted; then
1222: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1223: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1224: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1225: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1226: { (exit 1); exit 1; }; }
1.1 petere 1227: fi
1228:
1229: ac_ext=c
1230: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 1231: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1232: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1233: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1234:
1235:
1236:
1237:
1238:
1239:
1240:
1241:
1242:
1243:
1244:
1245:
1246:
1247:
1248:
1249:
1250:
1251:
1252:
1253:
1254:
1255:
1256:
1257:
1.1 petere 1258:
1259:
1260:
1261:
1262:
1263:
1.32 petere 1264:
1265:
1266:
1.1 petere 1267: ac_aux_dir=
1.28 petere 1268: for ac_dir in config $srcdir/config; do
1.1 petere 1269: if test -f $ac_dir/install-sh; then
1270: ac_aux_dir=$ac_dir
1271: ac_install_sh="$ac_aux_dir/install-sh -c"
1272: break
1273: elif test -f $ac_dir/install.sh; then
1274: ac_aux_dir=$ac_dir
1275: ac_install_sh="$ac_aux_dir/install.sh -c"
1276: break
1.179 petere 1277: elif test -f $ac_dir/shtool; then
1278: ac_aux_dir=$ac_dir
1279: ac_install_sh="$ac_aux_dir/shtool install -c"
1280: break
1.1 petere 1281: fi
1282: done
1283: if test -z "$ac_aux_dir"; then
1.179 petere 1284: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1285: echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1286: { (exit 1); exit 1; }; }
1.1 petere 1287: fi
1.179 petere 1288: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1289: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1290: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 petere 1291:
1292:
1.179 petere 1293: configure_args=$ac_configure_args
1.24 petere 1294:
1295:
1296:
1.179 petere 1297: cat >>confdefs.h <<_ACEOF
1298: #define PG_VERSION "$PACKAGE_VERSION"
1299: _ACEOF
1.63 petere 1300:
1.1 petere 1301:
1302: # Make sure we can run config.sub.
1.179 petere 1303: $ac_config_sub sun4 >/dev/null 2>&1 ||
1304: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1305: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1306: { (exit 1); exit 1; }; }
1307:
1308: echo "$as_me:$LINENO: checking build system type" >&5
1309: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1310: if test "${ac_cv_build+set}" = set; then
1311: echo $ECHO_N "(cached) $ECHO_C" >&6
1312: else
1313: ac_cv_build_alias=$build_alias
1314: test -z "$ac_cv_build_alias" &&
1315: ac_cv_build_alias=`$ac_config_guess`
1316: test -z "$ac_cv_build_alias" &&
1317: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1318: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1319: { (exit 1); exit 1; }; }
1320: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1321: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1322: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1323: { (exit 1); exit 1; }; }
1324:
1325: fi
1326: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1327: echo "${ECHO_T}$ac_cv_build" >&6
1328: build=$ac_cv_build
1329: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1330: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1331: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1332:
1333:
1334: echo "$as_me:$LINENO: checking host system type" >&5
1335: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1336: if test "${ac_cv_host+set}" = set; then
1337: echo $ECHO_N "(cached) $ECHO_C" >&6
1338: else
1339: ac_cv_host_alias=$host_alias
1340: test -z "$ac_cv_host_alias" &&
1341: ac_cv_host_alias=$ac_cv_build_alias
1342: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1343: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1344: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1345: { (exit 1); exit 1; }; }
1346:
1347: fi
1348: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1349: echo "${ECHO_T}$ac_cv_host" >&6
1350: host=$ac_cv_host
1351: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 petere 1354:
1355:
1356:
1.179 petere 1357: template=
1358: echo "$as_me:$LINENO: checking which template to use" >&5
1359: echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1.1 petere 1360:
1361:
1.46 petere 1362:
1363:
1.179 petere 1364: # Check whether --with-template or --without-template was given.
1365: if test "${with_template+set}" = set; then
1366: withval="$with_template"
1.46 petere 1367:
1.179 petere 1368: case $withval in
1.43 petere 1369: yes)
1.179 petere 1370: { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1371: echo "$as_me: error: argument required for --with-template option" >&2;}
1372: { (exit 1); exit 1; }; }
1.43 petere 1373: ;;
1374: no)
1.179 petere 1375: { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1376: echo "$as_me: error: argument required for --with-template option" >&2;}
1377: { (exit 1); exit 1; }; }
1.43 petere 1378: ;;
1379: *)
1.179 petere 1380:
1.43 petere 1381: case $withval in
1.30 petere 1382: list) echo; ls "$srcdir/src/template"; exit;;
1383: *) if test -f "$srcdir/src/template/$with_template" ; then
1.43 petere 1384: template=$withval
1.30 petere 1385: else
1.179 petere 1386: { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1387: echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1388: { (exit 1); exit 1; }; }
1.30 petere 1389: fi;;
1390: esac
1391:
1.43 petere 1392: ;;
1.179 petere 1393: esac
1394:
1.43 petere 1395: else
1.179 petere 1396:
1.43 petere 1397: # --with-template not given
1.30 petere 1398:
1399: case $host_os in
1400: aix*) template=aix ;;
1.56 momjian 1401: beos*) template=beos ;;
1.30 petere 1402: bsdi*) template=bsdi ;;
1403: cygwin*) template=win ;;
1.76 petere 1404: darwin*) template=darwin ;;
1.30 petere 1405: dgux*) template=dgux ;;
1406: freebsd*) template=freebsd ;;
1407: hpux*) template=hpux ;;
1408: irix*) template=irix5 ;;
1409: linux*) template=linux ;;
1410: netbsd*) template=netbsd ;;
1411: nextstep*) template=nextstep ;;
1412: openbsd*) template=openbsd ;;
1413: osf*) template=osf ;;
1414: qnx*) template=qnx4 ;;
1415: sco*) template=sco ;;
1.60 petere 1416: solaris*) template=solaris ;;
1.30 petere 1417: sunos*) template=sunos4 ;;
1.1 petere 1418: sysv4.2*)
1.30 petere 1419: case $host_vendor in
1420: univel) template=univel ;;
1421: esac ;;
1422: sysv4*) template=svr4 ;;
1.143 petere 1423: sysv5*) template=unixware ;;
1.30 petere 1424: ultrix*) template=ultrix4 ;;
1.1 petere 1425: esac
1426:
1.30 petere 1427: if test x"$template" = x"" ; then
1.179 petere 1428: { { echo "$as_me:$LINENO: error:
1429: *******************************************************************
1430: PostgreSQL has apparently not been ported to your platform yet.
1431: To try a manual configuration, look into the src/template directory
1432: for a similar platform and use the '--with-template=' option.
1433:
1434: Please also contact <[email protected]> to see about
1435: rectifying this. Include the above 'checking host system type...'
1436: line.
1437: *******************************************************************
1438: " >&5
1439: echo "$as_me: error:
1.30 petere 1440: *******************************************************************
1441: PostgreSQL has apparently not been ported to your platform yet.
1.32 petere 1442: To try a manual configuration, look into the src/template directory
1.86 petere 1443: for a similar platform and use the '--with-template=' option.
1.1 petere 1444:
1.30 petere 1445: Please also contact <[email protected]> to see about
1.86 petere 1446: rectifying this. Include the above 'checking host system type...'
1.30 petere 1447: line.
1448: *******************************************************************
1.179 petere 1449: " >&2;}
1450: { (exit 1); exit 1; }; }
1.30 petere 1451: fi
1452:
1.43 petere 1453:
1.179 petere 1454: fi;
1455:
1.1 petere 1456:
1.179 petere 1457: echo "$as_me:$LINENO: result: $template" >&5
1458: echo "${ECHO_T}$template" >&6
1.30 petere 1459:
1460: PORTNAME=$template
1.1 petere 1461:
1462:
1.60 petere 1463: # Pick right test-and-set (TAS) code. Most platforms have inline
1464: # assembler code in src/include/storage/s_lock.h, so we just use
1465: # a dummy file here.
1466: case $host in
1467: *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1468: sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1.156 momjian 1469: i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1.65 petere 1470: *) need_tas=no; tas_file=dummy.s ;;
1.30 petere 1471: esac
1.179 petere 1472: ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1.1 petere 1473:
1.65 petere 1474:
1.30 petere 1475: if test "$need_tas" = yes ; then
1476: TAS=tas.o
1.1 petere 1477: fi
1478:
1479:
1480:
1.30 petere 1481:
1482: ##
1483: ## Command line options
1484: ##
1.1 petere 1485:
1486:
1.30 petere 1487: #
1488: # Add non-standard directories to the include path
1489: #
1.179 petere 1490:
1491:
1492:
1493: # Check whether --with-includes or --without-includes was given.
1494: if test "${with_includes+set}" = set; then
1495: withval="$with_includes"
1496:
1497: case $withval in
1.43 petere 1498: yes)
1.179 petere 1499: { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1500: echo "$as_me: error: argument required for --with-includes option" >&2;}
1501: { (exit 1); exit 1; }; }
1.43 petere 1502: ;;
1503: no)
1.179 petere 1504: { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1505: echo "$as_me: error: argument required for --with-includes option" >&2;}
1506: { (exit 1); exit 1; }; }
1.43 petere 1507: ;;
1.179 petere 1508: *)
1509:
1510: ;;
1511: esac
1512:
1513: fi;
1514:
1.1 petere 1515:
1516:
1.30 petere 1517: #
1518: # Add non-standard directories to the library search path
1519: #
1.179 petere 1520:
1521:
1522:
1523: # Check whether --with-libraries or --without-libraries was given.
1524: if test "${with_libraries+set}" = set; then
1525: withval="$with_libraries"
1526:
1527: case $withval in
1.43 petere 1528: yes)
1.179 petere 1529: { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1530: echo "$as_me: error: argument required for --with-libraries option" >&2;}
1531: { (exit 1); exit 1; }; }
1.43 petere 1532: ;;
1533: no)
1.179 petere 1534: { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1535: echo "$as_me: error: argument required for --with-libraries option" >&2;}
1536: { (exit 1); exit 1; }; }
1.43 petere 1537: ;;
1538: *)
1539: LIBRARY_DIRS=$withval
1540: ;;
1.179 petere 1541: esac
1542:
1543: fi;
1544:
1545:
1546:
1547:
1548:
1549: # Check whether --with-libs or --without-libs was given.
1550: if test "${with_libs+set}" = set; then
1551: withval="$with_libs"
1.1 petere 1552:
1.179 petere 1553: case $withval in
1.43 petere 1554: yes)
1.179 petere 1555: { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1556: echo "$as_me: error: argument required for --with-libs option" >&2;}
1557: { (exit 1); exit 1; }; }
1.43 petere 1558: ;;
1559: no)
1.179 petere 1560: { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1561: echo "$as_me: error: argument required for --with-libs option" >&2;}
1562: { (exit 1); exit 1; }; }
1.43 petere 1563: ;;
1564: *)
1565: LIBRARY_DIRS=$withval
1566: ;;
1.179 petere 1567: esac
1568:
1569: fi;
1570:
1.1 petere 1571:
1.29 petere 1572:
1573: #
1574: # Locale (--enable-locale)
1575: #
1.179 petere 1576: echo "$as_me:$LINENO: checking whether to build with locale support" >&5
1577: echo $ECHO_N "checking whether to build with locale support... $ECHO_C" >&6
1578:
1579:
1580: # Check whether --enable-locale or --disable-locale was given.
1581: if test "${enable_locale+set}" = set; then
1582: enableval="$enable_locale"
1583:
1584: case $enableval in
1.43 petere 1585: yes)
1.179 petere 1586:
1587: cat >>confdefs.h <<\_ACEOF
1.30 petere 1588: #define USE_LOCALE 1
1.179 petere 1589: _ACEOF
1.29 petere 1590:
1.43 petere 1591: ;;
1592: no)
1593: :
1594: ;;
1595: *)
1.179 petere 1596: { { echo "$as_me:$LINENO: error: no argument expected for --enable-locale option" >&5
1597: echo "$as_me: error: no argument expected for --enable-locale option" >&2;}
1598: { (exit 1); exit 1; }; }
1.43 petere 1599: ;;
1.179 petere 1600: esac
1601:
1.1 petere 1602: else
1.29 petere 1603: enable_locale=no
1.43 petere 1604:
1.179 petere 1605: fi;
1606:
1607: echo "$as_me:$LINENO: result: $enable_locale" >&5
1608: echo "${ECHO_T}$enable_locale" >&6
1.1 petere 1609:
1610:
1.29 petere 1611: #
1.43 petere 1612: # Character set recode (--enable-recode)
1.29 petere 1613: #
1.179 petere 1614: echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1615: echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1616:
1617:
1618: # Check whether --enable-recode or --disable-recode was given.
1619: if test "${enable_recode+set}" = set; then
1620: enableval="$enable_recode"
1621:
1622: case $enableval in
1.43 petere 1623: yes)
1.179 petere 1624:
1625: cat >>confdefs.h <<\_ACEOF
1.30 petere 1626: #define CYR_RECODE 1
1.179 petere 1627: _ACEOF
1.29 petere 1628:
1.43 petere 1629: ;;
1630: no)
1631: :
1632: ;;
1633: *)
1.179 petere 1634: { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1635: echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1636: { (exit 1); exit 1; }; }
1.43 petere 1637: ;;
1.179 petere 1638: esac
1639:
1.1 petere 1640: else
1.29 petere 1641: enable_recode=no
1.43 petere 1642:
1.179 petere 1643: fi;
1644:
1645: echo "$as_me:$LINENO: result: $enable_recode" >&5
1646: echo "${ECHO_T}$enable_recode" >&6
1.1 petere 1647:
1648:
1.29 petere 1649: #
1650: # Multibyte support
1651: #
1652: MULTIBYTE=
1.179 petere 1653: echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1654: echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1655:
1656:
1657:
1658: # Check whether --enable-multibyte or --disable-multibyte was given.
1659: if test "${enable_multibyte+set}" = set; then
1660: enableval="$enable_multibyte"
1.43 petere 1661:
1.179 petere 1662: case $enableval in
1.43 petere 1663: yes)
1664: MULTIBYTE=SQL_ASCII
1665: ;;
1666: no)
1667: :
1668: ;;
1669: *)
1670: enable_multibyte=yes
1671:
1.29 petere 1672: case $enableval in
1.175 momjian 1673: SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|JOHAB|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|WIN1256|TCVN|WIN874|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
1.43 petere 1674: MULTIBYTE=$enableval;;
1675: *)
1.179 petere 1676: { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1677: SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1678: UNICODE, MULE_INTERNAL,
1679: LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1680: LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1681: WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1682: ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1683: Or do not specify an argument to the option to use the default." >&5
1684: echo "$as_me: error: argument to --enable-multibyte must be one of:
1.175 momjian 1685: SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1.1 petere 1686: UNICODE, MULE_INTERNAL,
1687: LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1.155 ishii 1688: LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1.176 momjian 1689: WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1.155 ishii 1690: ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1.179 petere 1691: Or do not specify an argument to the option to use the default." >&2;}
1692: { (exit 1); exit 1; }; };;
1.29 petere 1693: esac
1.1 petere 1694:
1.43 petere 1695: ;;
1.179 petere 1696: esac
1697:
1.1 petere 1698: else
1.29 petere 1699: enable_multibyte=no
1.179 petere 1700: fi;
1701:
1.29 petere 1702:
1.43 petere 1703: if test "$enable_multibyte" = yes; then
1.179 petere 1704:
1705:
1706: cat >>confdefs.h <<\_ACEOF
1.30 petere 1707: #define MULTIBYTE 1
1.179 petere 1708: _ACEOF
1.1 petere 1709:
1.179 petere 1710: echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1711: echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1.43 petere 1712:
1.29 petere 1713: else
1.179 petere 1714: echo "$as_me:$LINENO: result: no" >&5
1715: echo "${ECHO_T}no" >&6
1.3 tgl 1716: fi
1.1 petere 1717:
1718:
1.43 petere 1719:
1720:
1.74 ishii 1721: #
1.135 petere 1722: # NLS
1723: #
1.179 petere 1724: echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1725: echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1726:
1727:
1728: # Check whether --enable-nls or --disable-nls was given.
1729: if test "${enable_nls+set}" = set; then
1730: enableval="$enable_nls"
1731:
1732: case $enableval in
1.135 petere 1733: yes)
1734: :
1735: ;;
1736: no)
1737: :
1738: ;;
1739: *)
1740: enable_nls=yes
1741: WANTED_LANGUAGES=$enableval
1742: ;;
1.179 petere 1743: esac
1744:
1.135 petere 1745: else
1746: enable_nls=no
1.179 petere 1747: fi;
1748:
1.135 petere 1749:
1750: if test "$enable_nls" = yes; then
1.179 petere 1751:
1752: cat >>confdefs.h <<\_ACEOF
1.135 petere 1753: #define ENABLE_NLS 1
1.179 petere 1754: _ACEOF
1.135 petere 1755:
1756: fi
1757:
1.179 petere 1758: echo "$as_me:$LINENO: result: $enable_nls" >&5
1759: echo "${ECHO_T}$enable_nls" >&6
1.135 petere 1760:
1761:
1762:
1763: #
1.29 petere 1764: # Default port number (--with-pgport), default 5432
1765: #
1.179 petere 1766: echo "$as_me:$LINENO: checking for default port number" >&5
1767: echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1768:
1769:
1770:
1771: # Check whether --with-pgport or --without-pgport was given.
1772: if test "${with_pgport+set}" = set; then
1773: withval="$with_pgport"
1774:
1775: case $withval in
1.43 petere 1776: yes)
1.179 petere 1777: { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1778: echo "$as_me: error: argument required for --with-pgport option" >&2;}
1779: { (exit 1); exit 1; }; }
1.43 petere 1780: ;;
1781: no)
1.179 petere 1782: { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1783: echo "$as_me: error: argument required for --with-pgport option" >&2;}
1784: { (exit 1); exit 1; }; }
1.43 petere 1785: ;;
1786: *)
1787: default_port=$withval
1788: ;;
1.179 petere 1789: esac
1790:
1.1 petere 1791: else
1792: default_port=5432
1.179 petere 1793: fi;
1794:
1795: echo "$as_me:$LINENO: result: $default_port" >&5
1796: echo "${ECHO_T}$default_port" >&6
1.104 tgl 1797: # Need both of these because some places want an integer and some a string
1.179 petere 1798:
1799: cat >>confdefs.h <<_ACEOF
1.1 petere 1800: #define DEF_PGPORT ${default_port}
1.179 petere 1801: _ACEOF
1802:
1.1 petere 1803:
1.179 petere 1804: cat >>confdefs.h <<_ACEOF
1.1 petere 1805: #define DEF_PGPORT_STR "${default_port}"
1.179 petere 1806: _ACEOF
1.1 petere 1807:
1808:
1809:
1.29 petere 1810: #
1811: # Maximum number of allowed connections (--with-maxbackends), default 32
1812: #
1.179 petere 1813: echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1814: echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1815:
1816:
1817:
1818: # Check whether --with-maxbackends or --without-maxbackends was given.
1819: if test "${with_maxbackends+set}" = set; then
1820: withval="$with_maxbackends"
1821:
1822: case $withval in
1.43 petere 1823: yes)
1.179 petere 1824: { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1825: echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1826: { (exit 1); exit 1; }; }
1.43 petere 1827: ;;
1828: no)
1.179 petere 1829: { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1830: echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1831: { (exit 1); exit 1; }; }
1832: ;;
1833: *)
1834:
1.43 petere 1835: ;;
1.179 petere 1836: esac
1837:
1.1 petere 1838: else
1.29 petere 1839: with_maxbackends=32
1.179 petere 1840: fi;
1841:
1842: echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1843: echo "${ECHO_T}$with_maxbackends" >&6
1844:
1845: cat >>confdefs.h <<_ACEOF
1.29 petere 1846: #define DEF_MAXBACKENDS $with_maxbackends
1.179 petere 1847: _ACEOF
1.1 petere 1848:
1849:
1850:
1.29 petere 1851: #
1.67 petere 1852: # Option to disable shared libraries
1853: #
1.179 petere 1854:
1855:
1856: # Check whether --enable-shared or --disable-shared was given.
1857: if test "${enable_shared+set}" = set; then
1858: enableval="$enable_shared"
1859:
1860: case $enableval in
1.67 petere 1861: yes)
1862: :
1863: ;;
1864: no)
1865: :
1866: ;;
1867: *)
1.179 petere 1868: { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1869: echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1870: { (exit 1); exit 1; }; }
1.67 petere 1871: ;;
1.179 petere 1872: esac
1873:
1.67 petere 1874: else
1875: enable_shared=yes
1876:
1.179 petere 1877: fi;
1878:
1.67 petere 1879:
1880:
1.73 petere 1881: #
1882: # '-rpath'-like feature can be disabled
1883: #
1.179 petere 1884:
1885:
1886: # Check whether --enable-rpath or --disable-rpath was given.
1887: if test "${enable_rpath+set}" = set; then
1888: enableval="$enable_rpath"
1889:
1890: case $enableval in
1.73 petere 1891: yes)
1892: :
1893: ;;
1894: no)
1895: :
1896: ;;
1897: *)
1.179 petere 1898: { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1899: echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1900: { (exit 1); exit 1; }; }
1.73 petere 1901: ;;
1.179 petere 1902: esac
1903:
1.73 petere 1904: else
1905: enable_rpath=yes
1906:
1.179 petere 1907: fi;
1908:
1.73 petere 1909:
1910:
1.67 petere 1911:
1912: #
1.80 petere 1913: # --enable-debug adds -g to compiler flags
1914: #
1.179 petere 1915:
1916:
1917: # Check whether --enable-debug or --disable-debug was given.
1918: if test "${enable_debug+set}" = set; then
1919: enableval="$enable_debug"
1920:
1921: case $enableval in
1.80 petere 1922: yes)
1923: :
1924: ;;
1925: no)
1926: :
1927: ;;
1928: *)
1.179 petere 1929: { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1930: echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1931: { (exit 1); exit 1; }; }
1.80 petere 1932: ;;
1.179 petere 1933: esac
1934:
1.80 petere 1935: else
1936: enable_debug=no
1937:
1.179 petere 1938: fi;
1939:
1.80 petere 1940:
1941:
1942: #
1.30 petere 1943: # C compiler
1944: #
1945:
1.29 petere 1946: # For historical reasons you can also use --with-CC to specify the C compiler
1947: # to use, although the standard way to do this is to set the CC environment
1948: # variable.
1.179 petere 1949:
1950:
1951:
1952: # Check whether --with-CC or --without-CC was given.
1953: if test "${with_CC+set}" = set; then
1954: withval="$with_CC"
1955:
1956: case $withval in
1.43 petere 1957: yes)
1.179 petere 1958: { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1959: echo "$as_me: error: argument required for --with-CC option" >&2;}
1960: { (exit 1); exit 1; }; }
1.43 petere 1961: ;;
1962: no)
1.179 petere 1963: { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1964: echo "$as_me: error: argument required for --with-CC option" >&2;}
1965: { (exit 1); exit 1; }; }
1.43 petere 1966: ;;
1967: *)
1968: CC=$with_CC
1969: ;;
1.179 petere 1970: esac
1971:
1972: fi;
1973:
1.1 petere 1974:
1.179 petere 1975: case $template in
1976: aix) pgac_cc_list="gcc xlc";;
1977: irix) pgac_cc_list="cc";; # no gcc
1978: *) pgac_cc_list="gcc cc";;
1979: esac
1.1 petere 1980:
1.179 petere 1981: ac_ext=c
1982: ac_cpp='$CPP $CPPFLAGS'
1983: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1986: if test -n "$ac_tool_prefix"; then
1987: for ac_prog in $pgac_cc_list
1988: do
1989: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1990: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1991: echo "$as_me:$LINENO: checking for $ac_word" >&5
1992: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993: if test "${ac_cv_prog_CC+set}" = set; then
1994: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 1995: else
1996: if test -n "$CC"; then
1997: ac_cv_prog_CC="$CC" # Let the user override the test.
1998: else
1.179 petere 1999: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000: for as_dir in $PATH
2001: do
2002: IFS=$as_save_IFS
2003: test -z "$as_dir" && as_dir=.
2004: for ac_exec_ext in '' $ac_executable_extensions; do
2005: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2007: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008: break 2
2009: fi
2010: done
2011: done
2012:
1.1 petere 2013: fi
2014: fi
1.179 petere 2015: CC=$ac_cv_prog_CC
1.1 petere 2016: if test -n "$CC"; then
1.179 petere 2017: echo "$as_me:$LINENO: result: $CC" >&5
2018: echo "${ECHO_T}$CC" >&6
1.1 petere 2019: else
1.179 petere 2020: echo "$as_me:$LINENO: result: no" >&5
2021: echo "${ECHO_T}no" >&6
1.1 petere 2022: fi
2023:
1.179 petere 2024: test -n "$CC" && break
2025: done
2026: fi
1.1 petere 2027: if test -z "$CC"; then
1.179 petere 2028: ac_ct_CC=$CC
2029: for ac_prog in $pgac_cc_list
2030: do
2031: # Extract the first word of "$ac_prog", so it can be a program name with args.
2032: set dummy $ac_prog; ac_word=$2
2033: echo "$as_me:$LINENO: checking for $ac_word" >&5
2034: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 2037: else
1.179 petere 2038: if test -n "$ac_ct_CC"; then
2039: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 petere 2040: else
1.179 petere 2041: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042: for as_dir in $PATH
2043: do
2044: IFS=$as_save_IFS
2045: test -z "$as_dir" && as_dir=.
2046: for ac_exec_ext in '' $ac_executable_extensions; do
2047: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048: ac_cv_prog_ac_ct_CC="$ac_prog"
2049: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050: break 2
1.1 petere 2051: fi
1.179 petere 2052: done
2053: done
1.1 petere 2054:
2055: fi
2056: fi
1.179 petere 2057: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058: if test -n "$ac_ct_CC"; then
2059: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 petere 2061: else
1.179 petere 2062: echo "$as_me:$LINENO: result: no" >&5
2063: echo "${ECHO_T}no" >&6
1.1 petere 2064: fi
2065:
1.179 petere 2066: test -n "$ac_ct_CC" && break
2067: done
1.1 petere 2068:
1.179 petere 2069: CC=$ac_ct_CC
2070: fi
1.1 petere 2071:
2072:
1.179 petere 2073: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2074: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2075: { (exit 1); exit 1; }; }
2076:
2077: # Provide some information about the compiler.
2078: echo "$as_me:$LINENO:" \
2079: "checking for C compiler version" >&5
2080: ac_compiler=`set X $ac_compile; echo $2`
2081: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082: (eval $ac_compiler --version </dev/null >&5) 2>&5
2083: ac_status=$?
2084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085: (exit $ac_status); }
2086: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087: (eval $ac_compiler -v </dev/null >&5) 2>&5
2088: ac_status=$?
2089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090: (exit $ac_status); }
2091: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092: (eval $ac_compiler -V </dev/null >&5) 2>&5
2093: ac_status=$?
2094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095: (exit $ac_status); }
2096:
2097: cat >conftest.$ac_ext <<_ACEOF
2098: #line $LINENO "configure"
2099: #include "confdefs.h"
2100:
2101: #ifdef F77_DUMMY_MAIN
2102: # ifdef __cplusplus
2103: extern "C"
2104: # endif
2105: int F77_DUMMY_MAIN() { return 1; }
2106: #endif
2107: int
2108: main ()
2109: {
1.1 petere 2110:
1.179 petere 2111: ;
2112: return 0;
2113: }
2114: _ACEOF
2115: ac_clean_files_save=$ac_clean_files
2116: ac_clean_files="$ac_clean_files a.out a.exe"
2117: # Try to create an executable without -o first, disregard a.out.
2118: # It will help us diagnose broken compilers, and finding out an intuition
2119: # of exeext.
2120: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2121: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2122: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2124: (eval $ac_link_default) 2>&5
2125: ac_status=$?
2126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127: (exit $ac_status); }; then
2128: # Find the output, starting from the most likely. This scheme is
2129: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130: # resort.
2131:
2132: # Be careful to initialize this variable, since it used to be cached.
2133: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134: ac_cv_exeext=
2135: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2136: ls a.out conftest 2>/dev/null;
2137: ls a.* conftest.* 2>/dev/null`; do
2138: case $ac_file in
2139: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2140: a.out ) # We found the default executable, but exeext='' is most
2141: # certainly right.
2142: break;;
2143: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2145: export ac_cv_exeext
2146: break;;
2147: * ) break;;
2148: esac
2149: done
2150: else
2151: echo "$as_me: failed program was:" >&5
2152: cat conftest.$ac_ext >&5
2153: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2154: echo "$as_me: error: C compiler cannot create executables" >&2;}
2155: { (exit 77); exit 77; }; }
2156: fi
2157:
2158: ac_exeext=$ac_cv_exeext
2159: echo "$as_me:$LINENO: result: $ac_file" >&5
2160: echo "${ECHO_T}$ac_file" >&6
2161:
2162: # Check the compiler produces executables we can run. If not, either
2163: # the compiler is broken, or we cross compile.
2164: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2165: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2166: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167: # If not cross compiling, check that we can run a simple program.
2168: if test "$cross_compiling" != yes; then
2169: if { ac_try='./$ac_file'
2170: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171: (eval $ac_try) 2>&5
2172: ac_status=$?
2173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174: (exit $ac_status); }; }; then
2175: cross_compiling=no
1.1 petere 2176: else
1.179 petere 2177: if test "$cross_compiling" = maybe; then
2178: cross_compiling=yes
2179: else
2180: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2181: If you meant to cross compile, use \`--host'." >&5
2182: echo "$as_me: error: cannot run C compiled programs.
2183: If you meant to cross compile, use \`--host'." >&2;}
2184: { (exit 1); exit 1; }; }
2185: fi
1.1 petere 2186: fi
2187: fi
1.179 petere 2188: echo "$as_me:$LINENO: result: yes" >&5
2189: echo "${ECHO_T}yes" >&6
2190:
2191: rm -f a.out a.exe conftest$ac_cv_exeext
2192: ac_clean_files=$ac_clean_files_save
2193: # Check the compiler produces executables we can run. If not, either
2194: # the compiler is broken, or we cross compile.
2195: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2196: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2197: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2198: echo "${ECHO_T}$cross_compiling" >&6
2199:
2200: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2201: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2202: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2203: (eval $ac_link) 2>&5
2204: ac_status=$?
2205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206: (exit $ac_status); }; then
2207: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2208: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2209: # work properly (i.e., refer to `conftest.exe'), while it won't with
2210: # `rm'.
2211: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2212: case $ac_file in
2213: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2214: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215: export ac_cv_exeext
2216: break;;
2217: * ) break;;
2218: esac
2219: done
1.1 petere 2220: else
1.179 petere 2221: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2222: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2223: { (exit 1); exit 1; }; }
1.1 petere 2224: fi
2225:
1.179 petere 2226: rm -f conftest$ac_cv_exeext
2227: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2228: echo "${ECHO_T}$ac_cv_exeext" >&6
2229:
2230: rm -f conftest.$ac_ext
2231: EXEEXT=$ac_cv_exeext
2232: ac_exeext=$EXEEXT
2233: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2234: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2235: if test "${ac_cv_objext+set}" = set; then
2236: echo $ECHO_N "(cached) $ECHO_C" >&6
2237: else
2238: cat >conftest.$ac_ext <<_ACEOF
2239: #line $LINENO "configure"
2240: #include "confdefs.h"
2241:
2242: #ifdef F77_DUMMY_MAIN
2243: # ifdef __cplusplus
2244: extern "C"
2245: # endif
2246: int F77_DUMMY_MAIN() { return 1; }
2247: #endif
2248: int
2249: main ()
2250: {
1.1 petere 2251:
1.179 petere 2252: ;
2253: return 0;
2254: }
2255: _ACEOF
2256: rm -f conftest.o conftest.obj
2257: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258: (eval $ac_compile) 2>&5
2259: ac_status=$?
2260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261: (exit $ac_status); }; then
2262: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2263: case $ac_file in
2264: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2265: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2266: break;;
2267: esac
2268: done
1.1 petere 2269: else
1.179 petere 2270: echo "$as_me: failed program was:" >&5
2271: cat conftest.$ac_ext >&5
2272: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2273: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2274: { (exit 1); exit 1; }; }
2275: fi
2276:
2277: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2278: fi
2279: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2280: echo "${ECHO_T}$ac_cv_objext" >&6
2281: OBJEXT=$ac_cv_objext
2282: ac_objext=$OBJEXT
2283: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2284: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2285: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2286: echo $ECHO_N "(cached) $ECHO_C" >&6
2287: else
2288: cat >conftest.$ac_ext <<_ACEOF
2289: #line $LINENO "configure"
2290: #include "confdefs.h"
2291:
2292: #ifdef F77_DUMMY_MAIN
2293: # ifdef __cplusplus
2294: extern "C"
2295: # endif
2296: int F77_DUMMY_MAIN() { return 1; }
2297: #endif
2298: int
2299: main ()
2300: {
2301: #ifndef __GNUC__
2302: choke me
2303: #endif
2304:
2305: ;
2306: return 0;
2307: }
2308: _ACEOF
2309: rm -f conftest.$ac_objext
2310: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311: (eval $ac_compile) 2>&5
2312: ac_status=$?
2313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314: (exit $ac_status); } &&
2315: { ac_try='test -s conftest.$ac_objext'
2316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317: (eval $ac_try) 2>&5
2318: ac_status=$?
2319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320: (exit $ac_status); }; }; then
2321: ac_compiler_gnu=yes
2322: else
2323: echo "$as_me: failed program was:" >&5
2324: cat conftest.$ac_ext >&5
2325: ac_compiler_gnu=no
2326: fi
2327: rm -f conftest.$ac_objext conftest.$ac_ext
2328: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2329:
2330: fi
2331: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2332: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2333: GCC=`test $ac_compiler_gnu = yes && echo yes`
2334: ac_test_CFLAGS=${CFLAGS+set}
2335: ac_save_CFLAGS=$CFLAGS
2336: CFLAGS="-g"
2337: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2339: if test "${ac_cv_prog_cc_g+set}" = set; then
2340: echo $ECHO_N "(cached) $ECHO_C" >&6
2341: else
2342: cat >conftest.$ac_ext <<_ACEOF
2343: #line $LINENO "configure"
2344: #include "confdefs.h"
2345:
2346: #ifdef F77_DUMMY_MAIN
2347: # ifdef __cplusplus
2348: extern "C"
2349: # endif
2350: int F77_DUMMY_MAIN() { return 1; }
2351: #endif
2352: int
2353: main ()
2354: {
1.1 petere 2355:
1.179 petere 2356: ;
2357: return 0;
2358: }
2359: _ACEOF
2360: rm -f conftest.$ac_objext
2361: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362: (eval $ac_compile) 2>&5
2363: ac_status=$?
2364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365: (exit $ac_status); } &&
2366: { ac_try='test -s conftest.$ac_objext'
2367: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368: (eval $ac_try) 2>&5
2369: ac_status=$?
2370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371: (exit $ac_status); }; }; then
1.1 petere 2372: ac_cv_prog_cc_g=yes
2373: else
1.179 petere 2374: echo "$as_me: failed program was:" >&5
2375: cat conftest.$ac_ext >&5
2376: ac_cv_prog_cc_g=no
1.1 petere 2377: fi
1.179 petere 2378: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 2379: fi
1.179 petere 2380: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2381: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 petere 2382: if test "$ac_test_CFLAGS" = set; then
1.179 petere 2383: CFLAGS=$ac_save_CFLAGS
1.1 petere 2384: elif test $ac_cv_prog_cc_g = yes; then
2385: if test "$GCC" = yes; then
2386: CFLAGS="-g -O2"
2387: else
2388: CFLAGS="-g"
2389: fi
2390: else
2391: if test "$GCC" = yes; then
2392: CFLAGS="-O2"
2393: else
2394: CFLAGS=
2395: fi
2396: fi
1.179 petere 2397: # Some people use a C++ compiler to compile C. Since we use `exit',
2398: # in C++ we need to declare it. In case someone uses the same compiler
2399: # for both compiling C and C++ we need to have the C++ compiler decide
2400: # the declaration of exit, since it's the most demanding environment.
2401: cat >conftest.$ac_ext <<_ACEOF
2402: #ifndef __cplusplus
2403: choke me
2404: #endif
2405: _ACEOF
2406: rm -f conftest.$ac_objext
2407: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408: (eval $ac_compile) 2>&5
2409: ac_status=$?
2410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411: (exit $ac_status); } &&
2412: { ac_try='test -s conftest.$ac_objext'
2413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414: (eval $ac_try) 2>&5
2415: ac_status=$?
2416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417: (exit $ac_status); }; }; then
2418: for ac_declaration in \
2419: ''\
2420: '#include <stdlib.h>' \
2421: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422: 'extern "C" void std::exit (int); using std::exit;' \
2423: 'extern "C" void exit (int) throw ();' \
2424: 'extern "C" void exit (int);' \
2425: 'void exit (int);'
2426: do
2427: cat >conftest.$ac_ext <<_ACEOF
2428: #line $LINENO "configure"
2429: #include "confdefs.h"
2430: #include <stdlib.h>
2431: $ac_declaration
2432: #ifdef F77_DUMMY_MAIN
2433: # ifdef __cplusplus
2434: extern "C"
2435: # endif
2436: int F77_DUMMY_MAIN() { return 1; }
2437: #endif
2438: int
2439: main ()
2440: {
2441: exit (42);
2442: ;
2443: return 0;
2444: }
2445: _ACEOF
2446: rm -f conftest.$ac_objext
2447: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448: (eval $ac_compile) 2>&5
2449: ac_status=$?
2450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451: (exit $ac_status); } &&
2452: { ac_try='test -s conftest.$ac_objext'
2453: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454: (eval $ac_try) 2>&5
2455: ac_status=$?
2456: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457: (exit $ac_status); }; }; then
2458: :
2459: else
2460: echo "$as_me: failed program was:" >&5
2461: cat conftest.$ac_ext >&5
2462: continue
2463: fi
2464: rm -f conftest.$ac_objext conftest.$ac_ext
2465: cat >conftest.$ac_ext <<_ACEOF
2466: #line $LINENO "configure"
2467: #include "confdefs.h"
2468: $ac_declaration
2469: #ifdef F77_DUMMY_MAIN
2470: # ifdef __cplusplus
2471: extern "C"
2472: # endif
2473: int F77_DUMMY_MAIN() { return 1; }
2474: #endif
2475: int
2476: main ()
2477: {
2478: exit (42);
2479: ;
2480: return 0;
2481: }
2482: _ACEOF
2483: rm -f conftest.$ac_objext
2484: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485: (eval $ac_compile) 2>&5
2486: ac_status=$?
2487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488: (exit $ac_status); } &&
2489: { ac_try='test -s conftest.$ac_objext'
2490: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491: (eval $ac_try) 2>&5
2492: ac_status=$?
2493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494: (exit $ac_status); }; }; then
2495: break
2496: else
2497: echo "$as_me: failed program was:" >&5
2498: cat conftest.$ac_ext >&5
2499: fi
2500: rm -f conftest.$ac_objext conftest.$ac_ext
2501: done
2502: rm -f conftest*
2503: if test -n "$ac_declaration"; then
2504: echo '#ifdef __cplusplus' >>confdefs.h
2505: echo $ac_declaration >>confdefs.h
2506: echo '#endif' >>confdefs.h
2507: fi
2508:
2509: else
2510: echo "$as_me: failed program was:" >&5
2511: cat conftest.$ac_ext >&5
2512: fi
2513: rm -f conftest.$ac_objext conftest.$ac_ext
2514: ac_ext=c
2515: ac_cpp='$CPP $CPPFLAGS'
2516: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 2519:
1.30 petere 2520: # Read the template
2521: . "$srcdir/src/template/$template" || exit
1.80 petere 2522:
1.179 petere 2523: if test "$ac_env_CFLAGS_set" = set; then
2524: CFLAGS=$ac_env_CFLAGS_value
1.80 petere 2525: fi
2526: if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2527: CFLAGS="$CFLAGS -g"
2528: fi
1.179 petere 2529: { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2530: echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
1.30 petere 2531: # Check if the compiler still works with the template settings
1.179 petere 2532: echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2533: echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
1.30 petere 2534:
1.179 petere 2535: cat >conftest.$ac_ext <<_ACEOF
2536: #line $LINENO "configure"
1.30 petere 2537: #include "confdefs.h"
2538:
1.179 petere 2539: #ifdef F77_DUMMY_MAIN
2540: # ifdef __cplusplus
2541: extern "C"
2542: # endif
2543: int F77_DUMMY_MAIN() { return 1; }
2544: #endif
2545: int
2546: main ()
2547: {
2548: return 0;
2549: ;
2550: return 0;
2551: }
2552: _ACEOF
2553: rm -f conftest.$ac_objext conftest$ac_exeext
2554: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555: (eval $ac_link) 2>&5
2556: ac_status=$?
2557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558: (exit $ac_status); } &&
2559: { ac_try='test -s conftest$ac_exeext'
2560: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561: (eval $ac_try) 2>&5
2562: ac_status=$?
2563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564: (exit $ac_status); }; }; then
2565: echo "$as_me:$LINENO: result: yes" >&5
2566: echo "${ECHO_T}yes" >&6
2567: else
2568: echo "$as_me: failed program was:" >&5
2569: cat conftest.$ac_ext >&5
2570: echo "$as_me:$LINENO: result: no" >&5
2571: echo "${ECHO_T}no" >&6
2572: { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2573: echo "$as_me: error: cannot proceed" >&2;}
2574: { (exit 1); exit 1; }; }
1.30 petere 2575: fi
1.179 petere 2576: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.30 petere 2577: ac_ext=c
2578: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 2579: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2583: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2584: # On Suns, sometimes $CPP names a directory.
2585: if test -n "$CPP" && test -d "$CPP"; then
2586: CPP=
1.30 petere 2587: fi
1.179 petere 2588: if test -z "$CPP"; then
2589: if test "${ac_cv_prog_CPP+set}" = set; then
2590: echo $ECHO_N "(cached) $ECHO_C" >&6
1.45 petere 2591: else
1.179 petere 2592: # Double quotes because CPP needs to be expanded
2593: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2594: do
2595: ac_preproc_ok=false
2596: for ac_c_preproc_warn_flag in '' yes
2597: do
2598: # Use a header file that comes with gcc, so configuring glibc
2599: # with a fresh cross-compiler works.
2600: # On the NeXT, cc -E runs the code through the compiler's parser,
2601: # not just through cpp. "Syntax error" is here to catch this case.
2602: cat >conftest.$ac_ext <<_ACEOF
2603: #line $LINENO "configure"
1.45 petere 2604: #include "confdefs.h"
1.179 petere 2605: #include <assert.h>
2606: Syntax error
2607: _ACEOF
2608: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2609: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2610: ac_status=$?
2611: egrep -v '^ *\+' conftest.er1 >conftest.err
2612: rm -f conftest.er1
2613: cat conftest.err >&5
2614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615: (exit $ac_status); } >/dev/null; then
2616: if test -s conftest.err; then
2617: ac_cpp_err=$ac_c_preproc_warn_flag
2618: else
2619: ac_cpp_err=
2620: fi
1.45 petere 2621: else
1.179 petere 2622: ac_cpp_err=yes
1.45 petere 2623: fi
1.179 petere 2624: if test -z "$ac_cpp_err"; then
2625: :
1.45 petere 2626: else
1.179 petere 2627: echo "$as_me: failed program was:" >&5
1.45 petere 2628: cat conftest.$ac_ext >&5
1.179 petere 2629: # Broken: fails on valid input.
2630: continue
1.45 petere 2631: fi
1.179 petere 2632: rm -f conftest.err conftest.$ac_ext
1.45 petere 2633:
1.179 petere 2634: # OK, works on sane cases. Now check whether non-existent headers
2635: # can be detected and how.
2636: cat >conftest.$ac_ext <<_ACEOF
2637: #line $LINENO "configure"
2638: #include "confdefs.h"
2639: #include <ac_nonexistent.h>
2640: _ACEOF
2641: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2642: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643: ac_status=$?
2644: egrep -v '^ *\+' conftest.er1 >conftest.err
2645: rm -f conftest.er1
2646: cat conftest.err >&5
2647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648: (exit $ac_status); } >/dev/null; then
2649: if test -s conftest.err; then
2650: ac_cpp_err=$ac_c_preproc_warn_flag
1.45 petere 2651: else
1.179 petere 2652: ac_cpp_err=
1.45 petere 2653: fi
1.179 petere 2654: else
2655: ac_cpp_err=yes
2656: fi
2657: if test -z "$ac_cpp_err"; then
2658: # Broken: success on invalid input.
2659: continue
2660: else
2661: echo "$as_me: failed program was:" >&5
2662: cat conftest.$ac_ext >&5
2663: # Passes both tests.
2664: ac_preproc_ok=:
2665: break
1.45 petere 2666: fi
1.179 petere 2667: rm -f conftest.err conftest.$ac_ext
2668:
2669: done
2670: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2671: rm -f conftest.err conftest.$ac_ext
2672: if $ac_preproc_ok; then
2673: break
1.45 petere 2674: fi
2675:
1.179 petere 2676: done
2677: ac_cv_prog_CPP=$CPP
1.45 petere 2678:
1.1 petere 2679: fi
1.179 petere 2680: CPP=$ac_cv_prog_CPP
1.1 petere 2681: else
1.179 petere 2682: ac_cv_prog_CPP=$CPP
2683: fi
2684: echo "$as_me:$LINENO: result: $CPP" >&5
2685: echo "${ECHO_T}$CPP" >&6
2686: ac_preproc_ok=false
2687: for ac_c_preproc_warn_flag in '' yes
2688: do
2689: # Use a header file that comes with gcc, so configuring glibc
2690: # with a fresh cross-compiler works.
1.1 petere 2691: # On the NeXT, cc -E runs the code through the compiler's parser,
1.179 petere 2692: # not just through cpp. "Syntax error" is here to catch this case.
2693: cat >conftest.$ac_ext <<_ACEOF
2694: #line $LINENO "configure"
1.1 petere 2695: #include "confdefs.h"
2696: #include <assert.h>
1.179 petere 2697: Syntax error
2698: _ACEOF
2699: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2700: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701: ac_status=$?
2702: egrep -v '^ *\+' conftest.er1 >conftest.err
2703: rm -f conftest.er1
2704: cat conftest.err >&5
2705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706: (exit $ac_status); } >/dev/null; then
2707: if test -s conftest.err; then
2708: ac_cpp_err=$ac_c_preproc_warn_flag
2709: else
2710: ac_cpp_err=
2711: fi
1.1 petere 2712: else
1.179 petere 2713: ac_cpp_err=yes
2714: fi
2715: if test -z "$ac_cpp_err"; then
1.1 petere 2716: :
2717: else
1.179 petere 2718: echo "$as_me: failed program was:" >&5
1.1 petere 2719: cat conftest.$ac_ext >&5
1.179 petere 2720: # Broken: fails on valid input.
2721: continue
2722: fi
2723: rm -f conftest.err conftest.$ac_ext
2724:
2725: # OK, works on sane cases. Now check whether non-existent headers
2726: # can be detected and how.
2727: cat >conftest.$ac_ext <<_ACEOF
2728: #line $LINENO "configure"
2729: #include "confdefs.h"
2730: #include <ac_nonexistent.h>
2731: _ACEOF
2732: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2733: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734: ac_status=$?
2735: egrep -v '^ *\+' conftest.er1 >conftest.err
2736: rm -f conftest.er1
2737: cat conftest.err >&5
2738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739: (exit $ac_status); } >/dev/null; then
2740: if test -s conftest.err; then
2741: ac_cpp_err=$ac_c_preproc_warn_flag
2742: else
2743: ac_cpp_err=
2744: fi
1.1 petere 2745: else
1.179 petere 2746: ac_cpp_err=yes
1.1 petere 2747: fi
1.179 petere 2748: if test -z "$ac_cpp_err"; then
2749: # Broken: success on invalid input.
2750: continue
1.1 petere 2751: else
1.179 petere 2752: echo "$as_me: failed program was:" >&5
2753: cat conftest.$ac_ext >&5
2754: # Passes both tests.
2755: ac_preproc_ok=:
2756: break
1.1 petere 2757: fi
1.179 petere 2758: rm -f conftest.err conftest.$ac_ext
1.1 petere 2759:
1.179 petere 2760: done
2761: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2762: rm -f conftest.err conftest.$ac_ext
2763: if $ac_preproc_ok; then
2764: :
1.1 petere 2765: else
1.179 petere 2766: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2767: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2768: { (exit 1); exit 1; }; }
1.1 petere 2769: fi
2770:
1.179 petere 2771: ac_ext=c
2772: ac_cpp='$CPP $CPPFLAGS'
2773: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 2776:
2777:
1.5 petere 2778:
1.29 petere 2779: # Create compiler version string
1.24 petere 2780: if test x"$GCC" = x"yes" ; then
1.177 momjian 2781: cc_string="GCC `${CC} --version | sed q`"
1.1 petere 2782: else
1.24 petere 2783: cc_string=$CC
1.1 petere 2784: fi
1.179 petere 2785:
2786: cat >>confdefs.h <<_ACEOF
1.183 ! tgl 2787: #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
1.179 petere 2788: _ACEOF
1.24 petere 2789:
1.1 petere 2790:
2791:
1.31 petere 2792: #
2793: # Automatic dependency tracking
2794: #
1.179 petere 2795:
2796:
2797: # Check whether --enable-depend or --disable-depend was given.
2798: if test "${enable_depend+set}" = set; then
2799: enableval="$enable_depend"
2800:
2801: case $enableval in
1.43 petere 2802: yes)
2803: autodepend=yes
2804: ;;
2805: no)
2806: :
2807: ;;
2808: *)
1.179 petere 2809: { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2810: echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2811: { (exit 1); exit 1; }; }
1.43 petere 2812: ;;
1.179 petere 2813: esac
2814:
1.43 petere 2815: else
2816: enable_depend=no
1.31 petere 2817:
1.179 petere 2818: fi;
2819:
1.31 petere 2820:
2821:
2822:
1.43 petere 2823: #
2824: # Enable assert checks
2825: #
1.179 petere 2826:
2827:
2828: # Check whether --enable-cassert or --disable-cassert was given.
2829: if test "${enable_cassert+set}" = set; then
2830: enableval="$enable_cassert"
2831:
2832: case $enableval in
1.43 petere 2833: yes)
1.179 petere 2834:
2835: cat >>confdefs.h <<\_ACEOF
1.43 petere 2836: #define USE_ASSERT_CHECKING 1
1.179 petere 2837: _ACEOF
1.30 petere 2838:
1.43 petere 2839: ;;
2840: no)
2841: :
2842: ;;
2843: *)
1.179 petere 2844: { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2845: echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2846: { (exit 1); exit 1; }; }
1.43 petere 2847: ;;
1.179 petere 2848: esac
2849:
1.30 petere 2850: else
1.43 petere 2851: enable_cassert=no
2852:
1.179 petere 2853: fi;
2854:
1.30 petere 2855:
2856:
2857: #
2858: # Include directories
2859: #
2860: ac_save_IFS=$IFS
1.86 petere 2861: IFS="${IFS}:"
1.30 petere 2862: # SRCH_INC comes from the template file
2863: for dir in $with_includes $SRCH_INC; do
2864: if test -d "$dir"; then
2865: INCLUDES="$INCLUDES -I$dir"
2866: else
1.179 petere 2867: { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2868: echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
1.30 petere 2869: fi
2870: done
2871: IFS=$ac_save_IFS
2872:
2873:
2874:
2875: #
2876: # Library directories
2877: #
2878: ac_save_IFS=$IFS
1.86 petere 2879: IFS="${IFS}:"
1.30 petere 2880: # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2881: for dir in $LIBRARY_DIRS $SRCH_LIB; do
2882: if test -d "$dir"; then
1.70 petere 2883: LIBDIRS="$LIBDIRS -L$dir"
1.30 petere 2884: else
1.179 petere 2885: { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2886: echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
1.30 petere 2887: fi
2888: done
2889: IFS=$ac_save_IFS
2890:
2891:
1.44 petere 2892: #
2893: # Tcl/Tk
2894: #
1.179 petere 2895: echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2896: echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2897:
2898:
2899:
2900: # Check whether --with-tcl or --without-tcl was given.
2901: if test "${with_tcl+set}" = set; then
2902: withval="$with_tcl"
2903:
2904: case $withval in
1.43 petere 2905: yes)
1.44 petere 2906: :
1.43 petere 2907: ;;
2908: no)
1.44 petere 2909: :
1.43 petere 2910: ;;
2911: *)
1.179 petere 2912: { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2913: echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2914: { (exit 1); exit 1; }; }
1.43 petere 2915: ;;
1.179 petere 2916: esac
2917:
1.3 tgl 2918: else
1.43 petere 2919: with_tcl=no
1.44 petere 2920:
1.179 petere 2921: fi;
2922:
2923: echo "$as_me:$LINENO: result: $with_tcl" >&5
2924: echo "${ECHO_T}$with_tcl" >&6
1.44 petere 2925:
2926:
2927: # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1.179 petere 2928: echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2929: echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
1.44 petere 2930: if test "$with_tcl" = yes; then
1.179 petere 2931:
2932:
2933:
2934: # Check whether --with-tk or --without-tk was given.
2935: if test "${with_tk+set}" = set; then
2936: withval="$with_tk"
2937:
2938: case $withval in
1.44 petere 2939: yes)
2940: :
2941: ;;
2942: no)
2943: :
2944: ;;
2945: *)
1.179 petere 2946: { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2947: echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2948: { (exit 1); exit 1; }; }
1.44 petere 2949: ;;
1.179 petere 2950: esac
2951:
1.44 petere 2952: else
2953: with_tk=yes
1.3 tgl 2954:
1.179 petere 2955: fi;
2956:
1.44 petere 2957: else
2958: with_tk=no
2959: fi
1.179 petere 2960: echo "$as_me:$LINENO: result: $with_tk" >&5
2961: echo "${ECHO_T}$with_tk" >&6
1.3 tgl 2962:
1.30 petere 2963:
2964:
1.179 petere 2965: # We see if the path to the Tcl/Tk configuration scripts is specified.
1.43 petere 2966: # This will override the use of tclsh to find the paths to search.
1.3 tgl 2967:
1.179 petere 2968:
2969:
2970:
2971: # Check whether --with-tclconfig or --without-tclconfig was given.
2972: if test "${with_tclconfig+set}" = set; then
2973: withval="$with_tclconfig"
2974:
2975: case $withval in
1.43 petere 2976: yes)
1.179 petere 2977: { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2978: echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2979: { (exit 1); exit 1; }; }
1.43 petere 2980: ;;
2981: no)
1.179 petere 2982: { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2983: echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2984: { (exit 1); exit 1; }; }
2985: ;;
2986: *)
2987:
1.43 petere 2988: ;;
1.179 petere 2989: esac
2990:
2991: fi;
2992:
1.3 tgl 2993:
1.179 petere 2994: # We see if the path to the Tk configuration scripts is specified.
1.43 petere 2995: # This will override the use of tclsh to find the paths to search.
1.3 tgl 2996:
1.179 petere 2997:
2998:
2999:
3000: # Check whether --with-tkconfig or --without-tkconfig was given.
3001: if test "${with_tkconfig+set}" = set; then
3002: withval="$with_tkconfig"
3003:
3004: case $withval in
1.43 petere 3005: yes)
1.179 petere 3006: { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3007: echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3008: { (exit 1); exit 1; }; }
1.43 petere 3009: ;;
3010: no)
1.179 petere 3011: { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3012: echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3013: { (exit 1); exit 1; }; }
3014: ;;
3015: *)
3016:
1.43 petere 3017: ;;
1.179 petere 3018: esac
3019:
3020: fi;
3021:
1.3 tgl 3022:
1.132 petere 3023: #
1.43 petere 3024: # Optionally build Perl modules (Pg.pm and PL/Perl)
3025: #
1.179 petere 3026: echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3027: echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3028:
3029:
3030:
3031: # Check whether --with-perl or --without-perl was given.
3032: if test "${with_perl+set}" = set; then
3033: withval="$with_perl"
3034:
3035: case $withval in
1.43 petere 3036: yes)
3037: :
3038: ;;
3039: no)
3040: :
3041: ;;
3042: *)
1.179 petere 3043: { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3044: echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3045: { (exit 1); exit 1; }; }
1.43 petere 3046: ;;
1.179 petere 3047: esac
3048:
1.4 petere 3049: else
1.43 petere 3050: with_perl=no
3051:
1.179 petere 3052: fi;
3053:
3054: echo "$as_me:$LINENO: result: $with_perl" >&5
3055: echo "${ECHO_T}$with_perl" >&6
1.4 petere 3056:
3057:
1.43 petere 3058: #
3059: # Optionally build Python interface module
3060: #
1.179 petere 3061: echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3062: echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3063:
3064:
3065:
3066: # Check whether --with-python or --without-python was given.
3067: if test "${with_python+set}" = set; then
3068: withval="$with_python"
3069:
3070: case $withval in
1.43 petere 3071: yes)
1.133 petere 3072: :
1.43 petere 3073: ;;
3074: no)
1.133 petere 3075: :
1.43 petere 3076: ;;
3077: *)
1.179 petere 3078: { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3079: echo "$as_me: error: no argument expected for --with-python option" >&2;}
3080: { (exit 1); exit 1; }; }
1.43 petere 3081: ;;
1.179 petere 3082: esac
3083:
1.4 petere 3084: else
1.43 petere 3085: with_python=no
1.133 petere 3086:
1.179 petere 3087: fi;
3088:
3089: echo "$as_me:$LINENO: result: $with_python" >&5
3090: echo "${ECHO_T}$with_python" >&6
1.3 tgl 3091:
3092:
1.112 peter 3093: #
3094: # Optionally build the Java/JDBC tools
3095: #
1.179 petere 3096: echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3097: echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3098:
3099:
3100:
3101: # Check whether --with-java or --without-java was given.
3102: if test "${with_java+set}" = set; then
3103: withval="$with_java"
3104:
3105: case $withval in
1.112 peter 3106: yes)
1.179 petere 3107: echo "$as_me:$LINENO: result: yes" >&5
3108: echo "${ECHO_T}yes" >&6
1.137 petere 3109:
3110: for ac_prog in jakarta-ant ant ant.sh ant.bat
1.112 peter 3111: do
1.179 petere 3112: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.112 peter 3113: set dummy $ac_prog; ac_word=$2
1.179 petere 3114: echo "$as_me:$LINENO: checking for $ac_word" >&5
3115: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116: if test "${ac_cv_path_ANT+set}" = set; then
3117: echo $ECHO_N "(cached) $ECHO_C" >&6
1.112 peter 3118: else
1.179 petere 3119: case $ANT in
3120: [\\/]* | ?:[\\/]*)
1.112 peter 3121: ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3122: ;;
3123: *)
1.179 petere 3124: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125: for as_dir in $PATH
3126: do
3127: IFS=$as_save_IFS
3128: test -z "$as_dir" && as_dir=.
3129: for ac_exec_ext in '' $ac_executable_extensions; do
3130: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131: ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3132: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133: break 2
3134: fi
3135: done
3136: done
3137:
1.112 peter 3138: ;;
3139: esac
3140: fi
1.179 petere 3141: ANT=$ac_cv_path_ANT
3142:
1.112 peter 3143: if test -n "$ANT"; then
1.179 petere 3144: echo "$as_me:$LINENO: result: $ANT" >&5
3145: echo "${ECHO_T}$ANT" >&6
1.112 peter 3146: else
1.179 petere 3147: echo "$as_me:$LINENO: result: no" >&5
3148: echo "${ECHO_T}no" >&6
1.112 peter 3149: fi
3150:
1.179 petere 3151: test -n "$ANT" && break
1.112 peter 3152: done
3153:
1.179 petere 3154:
3155: echo "$as_me:$LINENO: checking whether $ANT works" >&5
3156: echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3157: if test "${pgac_cv_prog_ant_works+set}" = set; then
3158: echo $ECHO_N "(cached) $ECHO_C" >&6
1.137 petere 3159: else
1.179 petere 3160:
1.137 petere 3161: cat > conftest.java << EOF
3162: public class conftest {
3163: int testmethod(int a, int b) {
3164: return a + b;
3165: }
3166: }
3167: EOF
3168:
3169: cat > conftest.xml << EOF
3170: <project name="conftest" default="conftest">
3171: <target name="conftest">
3172: <javac srcdir="." includes="conftest.java">
3173: </javac>
3174: </target>
3175: </project>
3176: EOF
3177:
3178: pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
1.179 petere 3179: { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3180: (eval $pgac_cmd) 2>&5
3181: ac_status=$?
3182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183: (exit $ac_status); }
1.137 petere 3184: pgac_save_status=$?
3185: if test $? = 0 && test -f ./conftest.class ; then
3186: pgac_cv_prog_ant_works=yes
3187: else
3188: echo "configure: failed java program was:" >&5
3189: cat conftest.java >&5
3190: echo "configure: failed build file was:" >&5
3191: cat conftest.xml >&5
3192: pgac_cv_prog_ant_works=no
3193: fi
3194:
3195: rm -f conftest* core core.* *.core
1.179 petere 3196:
1.137 petere 3197: fi
1.179 petere 3198: echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3199: echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
1.137 petere 3200:
3201: if test "$pgac_cv_prog_ant_works" != yes; then
1.179 petere 3202: { { echo "$as_me:$LINENO: error: ant does not work" >&5
3203: echo "$as_me: error: ant does not work" >&2;}
3204: { (exit 1); exit 1; }; }
1.137 petere 3205: fi
3206:
3207:
1.115 petere 3208: if test -z "$ANT"; then
1.179 petere 3209: { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3210: echo "$as_me: error: Ant is required to build Java components" >&2;}
3211: { (exit 1); exit 1; }; }
1.115 petere 3212: fi
1.112 peter 3213: ;;
3214: no)
1.179 petere 3215: echo "$as_me:$LINENO: result: no" >&5
3216: echo "${ECHO_T}no" >&6
1.112 peter 3217: ;;
3218: *)
1.179 petere 3219: { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3220: echo "$as_me: error: no argument expected for --with-java option" >&2;}
3221: { (exit 1); exit 1; }; }
1.112 peter 3222: ;;
1.179 petere 3223: esac
3224:
1.112 peter 3225: else
3226: with_java=no
1.179 petere 3227: echo "$as_me:$LINENO: result: no" >&5
3228: echo "${ECHO_T}no" >&6
3229: fi;
3230:
1.112 peter 3231:
1.3 tgl 3232:
1.12 petere 3233:
1.28 petere 3234: #
3235: # Kerberos 4
3236: #
1.179 petere 3237: echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3238: echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3239:
3240:
3241:
3242: # Check whether --with-krb4 or --without-krb4 was given.
3243: if test "${with_krb4+set}" = set; then
3244: withval="$with_krb4"
3245:
3246: case $withval in
1.43 petere 3247: yes)
3248: krb4_prefix=/usr/athena
3249: ;;
3250: no)
3251: :
3252: ;;
3253: *)
3254: with_krb4=yes
3255: krb4_prefix=$withval
3256: ;;
1.179 petere 3257: esac
3258:
1.12 petere 3259: else
1.28 petere 3260: with_krb4=no
1.179 petere 3261: fi;
3262:
1.12 petere 3263:
1.43 petere 3264: if test "$with_krb4" = yes; then
1.179 petere 3265:
3266: echo "$as_me:$LINENO: result: yes" >&5
3267: echo "${ECHO_T}yes" >&6
3268:
3269: cat >>confdefs.h <<\_ACEOF
1.43 petere 3270: #define KRB4 1
1.179 petere 3271: _ACEOF
1.12 petere 3272:
1.28 petere 3273:
1.70 petere 3274: if test -d "$krb4_prefix/include"; then
3275: INCLUDES="$INCLUDES -I$krb4_prefix/include"
3276: fi
3277: if test -d "$krb4_prefix/lib"; then
3278: LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1.28 petere 3279: fi
1.43 petere 3280:
3281: krb_srvtab="/etc/srvtab"
1.37 petere 3282:
1.179 petere 3283: else
3284: echo "$as_me:$LINENO: result: no" >&5
3285: echo "${ECHO_T}no" >&6
1.12 petere 3286: fi
3287:
3288:
1.43 petere 3289:
3290:
3291:
1.28 petere 3292: #
3293: # Kerberos 5
3294: #
1.179 petere 3295: echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3296: echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3297:
3298:
3299:
3300: # Check whether --with-krb5 or --without-krb5 was given.
3301: if test "${with_krb5+set}" = set; then
3302: withval="$with_krb5"
3303:
3304: case $withval in
1.43 petere 3305: yes)
3306: krb5_prefix=/usr/athena
3307: ;;
3308: no)
3309: :
3310: ;;
3311: *)
3312: with_krb5=yes
3313: krb5_prefix=$withval
3314: ;;
1.179 petere 3315: esac
3316:
1.12 petere 3317: else
1.28 petere 3318: with_krb5=no
1.179 petere 3319: fi;
3320:
1.12 petere 3321:
1.43 petere 3322: if test "$with_krb5" = yes; then
1.179 petere 3323:
3324: echo "$as_me:$LINENO: result: yes" >&5
3325: echo "${ECHO_T}yes" >&6
3326:
3327: cat >>confdefs.h <<\_ACEOF
1.43 petere 3328: #define KRB5 1
1.179 petere 3329: _ACEOF
1.12 petere 3330:
3331:
1.70 petere 3332: if test -d "$krb5_prefix/include"; then
3333: INCLUDES="$INCLUDES -I$krb5_prefix/include"
3334: fi
3335: if test -d "$krb5_prefix/lib"; then
3336: LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1.28 petere 3337: fi
1.12 petere 3338:
1.43 petere 3339: krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1.37 petere 3340:
1.179 petere 3341: else
3342: echo "$as_me:$LINENO: result: no" >&5
3343: echo "${ECHO_T}no" >&6
1.12 petere 3344: fi
3345:
3346:
1.43 petere 3347:
3348:
3349:
1.28 petere 3350: # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3351: if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1.179 petere 3352: { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3353: echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3354: { (exit 1); exit 1; }; }
1.12 petere 3355: fi
3356:
3357:
3358:
3359:
1.28 petere 3360: #
3361: # Kerberos configuration parameters
3362: #
1.179 petere 3363:
3364:
3365:
3366: # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3367: if test "${with_krb_srvnam+set}" = set; then
3368: withval="$with_krb_srvnam"
3369:
3370: case $withval in
1.43 petere 3371: yes)
1.179 petere 3372: { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3373: echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3374: { (exit 1); exit 1; }; }
1.43 petere 3375: ;;
3376: no)
1.179 petere 3377: { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3378: echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3379: { (exit 1); exit 1; }; }
3380: ;;
3381: *)
3382:
1.43 petere 3383: ;;
1.179 petere 3384: esac
3385:
1.12 petere 3386: else
1.43 petere 3387: with_krb_srvnam="postgres"
1.179 petere 3388: fi;
3389:
3390:
3391: cat >>confdefs.h <<_ACEOF
1.43 petere 3392: #define PG_KRB_SRVNAM "$with_krb_srvnam"
1.179 petere 3393: _ACEOF
1.12 petere 3394:
3395:
1.28 petere 3396:
1.146 momjian 3397: #
3398: # PAM
3399: #
1.179 petere 3400: echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3401: echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3402:
3403:
3404:
3405: # Check whether --with-pam or --without-pam was given.
3406: if test "${with_pam+set}" = set; then
3407: withval="$with_pam"
3408:
3409: case $withval in
1.146 momjian 3410: yes)
1.179 petere 3411:
3412: cat >>confdefs.h <<\_ACEOF
1.166 petere 3413: #define USE_PAM 1
1.179 petere 3414: _ACEOF
1.166 petere 3415:
1.146 momjian 3416: ;;
3417: no)
3418: :
3419: ;;
3420: *)
1.179 petere 3421: { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3422: echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3423: { (exit 1); exit 1; }; }
1.146 momjian 3424: ;;
1.179 petere 3425: esac
3426:
1.146 momjian 3427: else
3428: with_pam=no
3429:
1.179 petere 3430: fi;
3431:
3432: echo "$as_me:$LINENO: result: $with_pam" >&5
3433: echo "${ECHO_T}$with_pam" >&6
1.146 momjian 3434:
3435:
1.28 petere 3436:
3437: #
3438: # OpenSSL
3439: #
1.179 petere 3440:
3441:
3442:
3443: # Check whether --with-openssl or --without-openssl was given.
3444: if test "${with_openssl+set}" = set; then
3445: withval="$with_openssl"
3446:
3447: case $withval in
1.43 petere 3448: yes)
3449: openssl_prefix=/usr/local/ssl
3450: ;;
3451: no)
3452: :
3453: ;;
3454: *)
3455: with_openssl=yes
3456: openssl_prefix=$withval
3457: ;;
1.179 petere 3458: esac
3459:
1.28 petere 3460: else
3461: with_openssl=no
1.179 petere 3462: fi;
3463:
1.12 petere 3464:
1.43 petere 3465: if test "$with_openssl" = yes; then
1.179 petere 3466:
3467: echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3468: echo "${ECHO_T}building with OpenSSL support" >&6
3469:
3470: cat >>confdefs.h <<\_ACEOF
1.43 petere 3471: #define USE_SSL 1
1.179 petere 3472: _ACEOF
1.12 petere 3473:
3474:
1.28 petere 3475: if test -d "${openssl_prefix}/include" ; then
3476: INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3477: fi
3478: if test -d "${openssl_prefix}/lib" ; then
1.70 petere 3479: LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
1.28 petere 3480: fi
1.43 petere 3481:
1.28 petere 3482: fi
3483:
3484:
1.43 petere 3485:
3486:
3487:
1.12 petere 3488:
1.43 petere 3489: #
3490: # Optionally enable the building of the ODBC driver
3491: #
1.179 petere 3492:
1.43 petere 3493: # Old option name
3494: if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
1.15 petere 3495: enable_odbc=$with_odbc
3496: fi
1.179 petere 3497:
3498: echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3499: echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3500:
3501:
3502: # Check whether --enable-odbc or --disable-odbc was given.
3503: if test "${enable_odbc+set}" = set; then
3504: enableval="$enable_odbc"
3505:
3506: case $enableval in
1.43 petere 3507: yes)
3508: :
3509: ;;
3510: no)
3511: :
3512: ;;
3513: *)
1.179 petere 3514: { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3515: echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3516: { (exit 1); exit 1; }; }
1.43 petere 3517: ;;
1.179 petere 3518: esac
3519:
1.3 tgl 3520: else
1.43 petere 3521: enable_odbc=no
3522:
1.179 petere 3523: fi;
3524:
3525:
3526:
3527:
3528: # Check whether --with-unixodbc or --without-unixodbc was given.
3529: if test "${with_unixodbc+set}" = set; then
3530: withval="$with_unixodbc"
3531:
3532: case $withval in
1.151 petere 3533: yes)
3534: :
3535: ;;
3536: no)
3537: :
3538: ;;
3539: *)
1.179 petere 3540: { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3541: echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3542: { (exit 1); exit 1; }; }
1.151 petere 3543: ;;
1.179 petere 3544: esac
3545:
1.151 petere 3546: else
3547: with_unixodbc=no
3548:
1.179 petere 3549: fi;
3550:
3551:
3552:
3553:
3554: # Check whether --with-iodbc or --without-iodbc was given.
3555: if test "${with_iodbc+set}" = set; then
3556: withval="$with_iodbc"
3557:
3558: case $withval in
1.151 petere 3559: yes)
3560: :
3561: ;;
3562: no)
3563: :
3564: ;;
3565: *)
1.179 petere 3566: { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3567: echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3568: { (exit 1); exit 1; }; }
1.151 petere 3569: ;;
1.179 petere 3570: esac
3571:
1.151 petere 3572: else
3573: with_iodbc=no
3574:
1.179 petere 3575: fi;
3576:
1.151 petere 3577: if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
1.179 petere 3578: { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3579: echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3580: { (exit 1); exit 1; }; }
1.151 petere 3581: fi
3582: if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3583: enable_odbc=yes
3584: fi
3585: case $enable_odbc:$with_unixodbc:$with_iodbc in
1.179 petere 3586: yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3587: echo "${ECHO_T}yes (stand-alone)" >&6;;
3588: yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3589: echo "${ECHO_T}yes (unixODBC)" >&6
3590:
3591: cat >>confdefs.h <<\_ACEOF
1.151 petere 3592: #define WITH_UNIXODBC 1
1.179 petere 3593: _ACEOF
3594:
3595: ;;
3596: yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3597: echo "${ECHO_T}yes (iODBC)" >&6
3598:
3599: cat >>confdefs.h <<\_ACEOF
1.151 petere 3600: #define WITH_IODBC 1
1.179 petere 3601: _ACEOF
3602:
3603: ;;
3604: no:*) echo "$as_me:$LINENO: result: no" >&5
3605: echo "${ECHO_T}no" >&6;;
1.151 petere 3606: esac
3607:
3608:
1.7 momjian 3609:
3610:
3611:
1.43 petere 3612: # Allow for overriding the default location of the odbcinst.ini
3613: # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
1.179 petere 3614:
3615:
3616:
3617: # Check whether --with-odbcinst or --without-odbcinst was given.
3618: if test "${with_odbcinst+set}" = set; then
3619: withval="$with_odbcinst"
3620:
3621: case $withval in
1.43 petere 3622: yes)
1.179 petere 3623: { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3624: echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3625: { (exit 1); exit 1; }; }
1.43 petere 3626: ;;
3627: no)
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: *)
3633: odbcinst_ini_dir=$withval
3634: ;;
1.179 petere 3635: esac
3636:
1.7 momjian 3637: else
1.43 petere 3638: odbcinst_ini_dir="\${sysconfdir}"
1.179 petere 3639: fi;
3640:
1.7 momjian 3641:
1.3 tgl 3642:
3643:
1.1 petere 3644:
1.30 petere 3645: # Assume system is ELF if it predefines __ELF__ as 1,
3646: # otherwise believe host_os based default.
3647: case $host_os in
1.134 momjian 3648: freebsd1*|freebsd2*) elf=no;;
3649: freebsd3*|freebsd4*) elf=yes;;
1.30 petere 3650: esac
1.1 petere 3651:
1.179 petere 3652:
3653: cat >conftest.$ac_ext <<_ACEOF
3654: #line $LINENO "configure"
1.1 petere 3655: #include "confdefs.h"
3656: #if __ELF__
3657: yes
3658: #endif
3659:
1.179 petere 3660: _ACEOF
1.1 petere 3661: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662: egrep "yes" >/dev/null 2>&1; then
3663: ELF_SYS=true
3664: else
1.30 petere 3665: if test "X$elf" = "Xyes" ; then
3666: ELF_SYS=true
1.1 petere 3667: else
1.30 petere 3668: ELF_SYS=
1.1 petere 3669: fi
3670: fi
3671: rm -f conftest*
3672:
3673:
3674:
3675:
3676:
1.43 petere 3677: #
3678: # Optionally build C++ code (i.e., libpq++)
3679: #
1.179 petere 3680: echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3681: echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3682:
3683:
3684:
3685: # Check whether --with-CXX or --without-CXX was given.
3686: if test "${with_CXX+set}" = set; then
3687: withval="$with_CXX"
3688:
3689: case $withval in
1.43 petere 3690: yes)
3691: :
3692: ;;
3693: no)
3694: :
3695: ;;
3696: *)
3697: with_CXX=yes
3698: CXX=$withval
3699: ;;
1.179 petere 3700: esac
3701:
1.36 petere 3702: else
3703: with_CXX=no
1.179 petere 3704: fi;
3705:
1.36 petere 3706:
1.43 petere 3707: if test "$with_CXX" = yes; then
1.179 petere 3708:
3709: echo "$as_me:$LINENO: result: yes" >&5
3710: echo "${ECHO_T}yes" >&6
1.75 petere 3711:
3712: # If the user has specified CXXFLAGS in the environment, leave it
3713: # alone, else use a default.
3714:
1.179 petere 3715: ac_ext=cc
3716: ac_cpp='$CXXCPP $CPPFLAGS'
3717: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3720: if test -n "$ac_tool_prefix"; then
3721: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3722: do
3723: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3724: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3725: echo "$as_me:$LINENO: checking for $ac_word" >&5
3726: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727: if test "${ac_cv_prog_CXX+set}" = set; then
3728: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 3729: else
3730: if test -n "$CXX"; then
3731: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3732: else
1.179 petere 3733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734: for as_dir in $PATH
3735: do
3736: IFS=$as_save_IFS
3737: test -z "$as_dir" && as_dir=.
3738: for ac_exec_ext in '' $ac_executable_extensions; do
3739: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3741: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742: break 2
3743: fi
3744: done
3745: done
3746:
1.1 petere 3747: fi
3748: fi
1.179 petere 3749: CXX=$ac_cv_prog_CXX
1.1 petere 3750: if test -n "$CXX"; then
1.179 petere 3751: echo "$as_me:$LINENO: result: $CXX" >&5
3752: echo "${ECHO_T}$CXX" >&6
1.1 petere 3753: else
1.179 petere 3754: echo "$as_me:$LINENO: result: no" >&5
3755: echo "${ECHO_T}no" >&6
1.1 petere 3756: fi
3757:
1.179 petere 3758: test -n "$CXX" && break
3759: done
3760: fi
3761: if test -z "$CXX"; then
3762: ac_ct_CXX=$CXX
3763: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3764: do
3765: # Extract the first word of "$ac_prog", so it can be a program name with args.
3766: set dummy $ac_prog; ac_word=$2
3767: echo "$as_me:$LINENO: checking for $ac_word" >&5
3768: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3770: echo $ECHO_N "(cached) $ECHO_C" >&6
3771: else
3772: if test -n "$ac_ct_CXX"; then
3773: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3774: else
3775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776: for as_dir in $PATH
3777: do
3778: IFS=$as_save_IFS
3779: test -z "$as_dir" && as_dir=.
3780: for ac_exec_ext in '' $ac_executable_extensions; do
3781: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782: ac_cv_prog_ac_ct_CXX="$ac_prog"
3783: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784: break 2
3785: fi
3786: done
1.1 petere 3787: done
3788:
1.179 petere 3789: fi
3790: fi
3791: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3792: if test -n "$ac_ct_CXX"; then
3793: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3794: echo "${ECHO_T}$ac_ct_CXX" >&6
3795: else
3796: echo "$as_me:$LINENO: result: no" >&5
3797: echo "${ECHO_T}no" >&6
3798: fi
1.1 petere 3799:
1.179 petere 3800: test -n "$ac_ct_CXX" && break
3801: done
3802: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 petere 3803:
1.179 petere 3804: CXX=$ac_ct_CXX
3805: fi
1.1 petere 3806:
3807:
1.179 petere 3808: # Provide some information about the compiler.
3809: echo "$as_me:$LINENO:" \
3810: "checking for C++ compiler version" >&5
3811: ac_compiler=`set X $ac_compile; echo $2`
3812: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3813: (eval $ac_compiler --version </dev/null >&5) 2>&5
3814: ac_status=$?
3815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816: (exit $ac_status); }
3817: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3818: (eval $ac_compiler -v </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:
3828: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3829: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3830: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3831: echo $ECHO_N "(cached) $ECHO_C" >&6
3832: else
3833: cat >conftest.$ac_ext <<_ACEOF
3834: #line $LINENO "configure"
3835: #include "confdefs.h"
3836:
3837: #ifdef F77_DUMMY_MAIN
3838: # ifdef __cplusplus
3839: extern "C"
3840: # endif
3841: int F77_DUMMY_MAIN() { return 1; }
3842: #endif
3843: int
3844: main ()
3845: {
3846: #ifndef __GNUC__
3847: choke me
3848: #endif
1.1 petere 3849:
1.179 petere 3850: ;
3851: return 0;
3852: }
3853: _ACEOF
3854: rm -f conftest.$ac_objext
3855: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856: (eval $ac_compile) 2>&5
3857: ac_status=$?
3858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859: (exit $ac_status); } &&
3860: { ac_try='test -s conftest.$ac_objext'
3861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862: (eval $ac_try) 2>&5
3863: ac_status=$?
3864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865: (exit $ac_status); }; }; then
3866: ac_compiler_gnu=yes
3867: else
3868: echo "$as_me: failed program was:" >&5
3869: cat conftest.$ac_ext >&5
3870: ac_compiler_gnu=no
3871: fi
3872: rm -f conftest.$ac_objext conftest.$ac_ext
3873: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3874:
3875: fi
3876: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3877: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3878: GXX=`test $ac_compiler_gnu = yes && echo yes`
3879: ac_test_CXXFLAGS=${CXXFLAGS+set}
3880: ac_save_CXXFLAGS=$CXXFLAGS
3881: CXXFLAGS="-g"
3882: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3883: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3884: if test "${ac_cv_prog_cxx_g+set}" = set; then
3885: echo $ECHO_N "(cached) $ECHO_C" >&6
3886: else
3887: cat >conftest.$ac_ext <<_ACEOF
3888: #line $LINENO "configure"
3889: #include "confdefs.h"
3890:
3891: #ifdef F77_DUMMY_MAIN
3892: # ifdef __cplusplus
3893: extern "C"
3894: # endif
3895: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 3896: #endif
1.179 petere 3897: int
3898: main ()
3899: {
1.1 petere 3900:
1.179 petere 3901: ;
3902: return 0;
3903: }
3904: _ACEOF
3905: rm -f conftest.$ac_objext
3906: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907: (eval $ac_compile) 2>&5
3908: ac_status=$?
3909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910: (exit $ac_status); } &&
3911: { ac_try='test -s conftest.$ac_objext'
3912: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913: (eval $ac_try) 2>&5
3914: ac_status=$?
3915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916: (exit $ac_status); }; }; then
1.1 petere 3917: ac_cv_prog_cxx_g=yes
3918: else
1.179 petere 3919: echo "$as_me: failed program was:" >&5
3920: cat conftest.$ac_ext >&5
3921: ac_cv_prog_cxx_g=no
1.1 petere 3922: fi
1.179 petere 3923: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 3924: fi
1.179 petere 3925: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3926: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 petere 3927: if test "$ac_test_CXXFLAGS" = set; then
1.179 petere 3928: CXXFLAGS=$ac_save_CXXFLAGS
1.1 petere 3929: elif test $ac_cv_prog_cxx_g = yes; then
3930: if test "$GXX" = yes; then
3931: CXXFLAGS="-g -O2"
3932: else
3933: CXXFLAGS="-g"
3934: fi
3935: else
3936: if test "$GXX" = yes; then
3937: CXXFLAGS="-O2"
3938: else
3939: CXXFLAGS=
3940: fi
3941: fi
1.179 petere 3942: for ac_declaration in \
3943: ''\
3944: '#include <stdlib.h>' \
3945: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3946: 'extern "C" void std::exit (int); using std::exit;' \
3947: 'extern "C" void exit (int) throw ();' \
3948: 'extern "C" void exit (int);' \
3949: 'void exit (int);'
3950: do
3951: cat >conftest.$ac_ext <<_ACEOF
3952: #line $LINENO "configure"
3953: #include "confdefs.h"
3954: #include <stdlib.h>
3955: $ac_declaration
3956: #ifdef F77_DUMMY_MAIN
3957: # ifdef __cplusplus
3958: extern "C"
3959: # endif
3960: int F77_DUMMY_MAIN() { return 1; }
3961: #endif
3962: int
3963: main ()
3964: {
3965: exit (42);
3966: ;
3967: return 0;
3968: }
3969: _ACEOF
3970: rm -f conftest.$ac_objext
3971: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972: (eval $ac_compile) 2>&5
3973: ac_status=$?
3974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975: (exit $ac_status); } &&
3976: { ac_try='test -s conftest.$ac_objext'
3977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978: (eval $ac_try) 2>&5
3979: ac_status=$?
3980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981: (exit $ac_status); }; }; then
3982: :
3983: else
3984: echo "$as_me: failed program was:" >&5
3985: cat conftest.$ac_ext >&5
3986: continue
3987: fi
3988: rm -f conftest.$ac_objext conftest.$ac_ext
3989: cat >conftest.$ac_ext <<_ACEOF
3990: #line $LINENO "configure"
3991: #include "confdefs.h"
3992: $ac_declaration
3993: #ifdef F77_DUMMY_MAIN
3994: # ifdef __cplusplus
3995: extern "C"
3996: # endif
3997: int F77_DUMMY_MAIN() { return 1; }
3998: #endif
3999: int
4000: main ()
4001: {
4002: exit (42);
4003: ;
4004: return 0;
4005: }
4006: _ACEOF
4007: rm -f conftest.$ac_objext
4008: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009: (eval $ac_compile) 2>&5
4010: ac_status=$?
4011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012: (exit $ac_status); } &&
4013: { ac_try='test -s conftest.$ac_objext'
4014: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015: (eval $ac_try) 2>&5
4016: ac_status=$?
4017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018: (exit $ac_status); }; }; then
4019: break
4020: else
4021: echo "$as_me: failed program was:" >&5
4022: cat conftest.$ac_ext >&5
4023: fi
4024: rm -f conftest.$ac_objext conftest.$ac_ext
4025: done
4026: rm -f conftest*
4027: if test -n "$ac_declaration"; then
4028: echo '#ifdef __cplusplus' >>confdefs.h
4029: echo $ac_declaration >>confdefs.h
4030: echo '#endif' >>confdefs.h
4031: fi
4032:
4033: ac_ext=c
4034: ac_cpp='$CPP $CPPFLAGS'
4035: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 4038:
1.179 petere 4039: if test "$ac_env_CXXFLAGS" != set; then
1.75 petere 4040: if test "$GXX" = yes; then
4041: CXXFLAGS=-O2
4042: else
4043: case $template in
4044: osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4045: unixware) CXXFLAGS='-O' ;;
4046: *) CXXFLAGS= ;;
4047: esac
4048: fi
4049: fi
4050: if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4051: CXXFLAGS="$CXXFLAGS -g"
4052: fi
1.179 petere 4053: { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4054: echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
1.75 petere 4055:
1.179 petere 4056: ac_ext=cc
4057: ac_cpp='$CXXCPP $CPPFLAGS'
4058: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4061: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4062: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.5 petere 4063: if test -z "$CXXCPP"; then
1.179 petere 4064: if test "${ac_cv_prog_CXXCPP+set}" = set; then
4065: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 4066: else
1.179 petere 4067: # Double quotes because CXXCPP needs to be expanded
4068: for CXXCPP in "$CXX -E" "/lib/cpp"
4069: do
4070: ac_preproc_ok=false
4071: for ac_cxx_preproc_warn_flag in '' yes
4072: do
4073: # Use a header file that comes with gcc, so configuring glibc
4074: # with a fresh cross-compiler works.
4075: # On the NeXT, cc -E runs the code through the compiler's parser,
4076: # not just through cpp. "Syntax error" is here to catch this case.
4077: cat >conftest.$ac_ext <<_ACEOF
4078: #line $LINENO "configure"
1.5 petere 4079: #include "confdefs.h"
1.179 petere 4080: #include <assert.h>
4081: Syntax error
4082: _ACEOF
4083: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085: ac_status=$?
4086: egrep -v '^ *\+' conftest.er1 >conftest.err
4087: rm -f conftest.er1
4088: cat conftest.err >&5
4089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090: (exit $ac_status); } >/dev/null; then
4091: if test -s conftest.err; then
4092: ac_cpp_err=$ac_cxx_preproc_warn_flag
4093: else
4094: ac_cpp_err=
4095: fi
4096: else
4097: ac_cpp_err=yes
4098: fi
4099: if test -z "$ac_cpp_err"; then
1.5 petere 4100: :
4101: else
1.179 petere 4102: echo "$as_me: failed program was:" >&5
1.5 petere 4103: cat conftest.$ac_ext >&5
1.179 petere 4104: # Broken: fails on valid input.
4105: continue
1.5 petere 4106: fi
1.179 petere 4107: rm -f conftest.err conftest.$ac_ext
4108:
4109: # OK, works on sane cases. Now check whether non-existent headers
4110: # can be detected and how.
4111: cat >conftest.$ac_ext <<_ACEOF
4112: #line $LINENO "configure"
4113: #include "confdefs.h"
4114: #include <ac_nonexistent.h>
4115: _ACEOF
4116: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4117: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118: ac_status=$?
4119: egrep -v '^ *\+' conftest.er1 >conftest.err
4120: rm -f conftest.er1
4121: cat conftest.err >&5
4122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123: (exit $ac_status); } >/dev/null; then
4124: if test -s conftest.err; then
4125: ac_cpp_err=$ac_cxx_preproc_warn_flag
4126: else
4127: ac_cpp_err=
4128: fi
4129: else
4130: ac_cpp_err=yes
1.5 petere 4131: fi
1.179 petere 4132: if test -z "$ac_cpp_err"; then
4133: # Broken: success on invalid input.
4134: continue
1.5 petere 4135: else
1.179 petere 4136: echo "$as_me: failed program was:" >&5
1.5 petere 4137: cat conftest.$ac_ext >&5
1.179 petere 4138: # Passes both tests.
4139: ac_preproc_ok=:
4140: break
1.5 petere 4141: fi
1.179 petere 4142: rm -f conftest.err conftest.$ac_ext
1.5 petere 4143:
1.179 petere 4144: done
4145: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146: rm -f conftest.err conftest.$ac_ext
4147: if $ac_preproc_ok; then
4148: break
1.5 petere 4149: fi
1.1 petere 4150:
1.179 petere 4151: done
4152: ac_cv_prog_CXXCPP=$CXXCPP
1.5 petere 4153:
1.179 petere 4154: fi
4155: CXXCPP=$ac_cv_prog_CXXCPP
1.5 petere 4156: else
1.179 petere 4157: ac_cv_prog_CXXCPP=$CXXCPP
4158: fi
4159: echo "$as_me:$LINENO: result: $CXXCPP" >&5
4160: echo "${ECHO_T}$CXXCPP" >&6
4161: ac_preproc_ok=false
4162: for ac_cxx_preproc_warn_flag in '' yes
4163: do
4164: # Use a header file that comes with gcc, so configuring glibc
4165: # with a fresh cross-compiler works.
4166: # On the NeXT, cc -E runs the code through the compiler's parser,
4167: # not just through cpp. "Syntax error" is here to catch this case.
4168: cat >conftest.$ac_ext <<_ACEOF
4169: #line $LINENO "configure"
1.1 petere 4170: #include "confdefs.h"
1.179 petere 4171: #include <assert.h>
4172: Syntax error
4173: _ACEOF
4174: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4176: ac_status=$?
4177: egrep -v '^ *\+' conftest.er1 >conftest.err
4178: rm -f conftest.er1
4179: cat conftest.err >&5
4180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181: (exit $ac_status); } >/dev/null; then
4182: if test -s conftest.err; then
4183: ac_cpp_err=$ac_cxx_preproc_warn_flag
4184: else
4185: ac_cpp_err=
4186: fi
4187: else
4188: ac_cpp_err=yes
4189: fi
4190: if test -z "$ac_cpp_err"; then
4191: :
1.1 petere 4192: else
1.179 petere 4193: echo "$as_me: failed program was:" >&5
1.1 petere 4194: cat conftest.$ac_ext >&5
1.179 petere 4195: # Broken: fails on valid input.
4196: continue
1.5 petere 4197: fi
1.179 petere 4198: rm -f conftest.err conftest.$ac_ext
1.5 petere 4199:
1.179 petere 4200: # OK, works on sane cases. Now check whether non-existent headers
4201: # can be detected and how.
4202: cat >conftest.$ac_ext <<_ACEOF
4203: #line $LINENO "configure"
4204: #include "confdefs.h"
4205: #include <ac_nonexistent.h>
4206: _ACEOF
4207: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4208: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4209: ac_status=$?
4210: egrep -v '^ *\+' conftest.er1 >conftest.err
4211: rm -f conftest.er1
4212: cat conftest.err >&5
4213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214: (exit $ac_status); } >/dev/null; then
4215: if test -s conftest.err; then
4216: ac_cpp_err=$ac_cxx_preproc_warn_flag
4217: else
4218: ac_cpp_err=
1.5 petere 4219: fi
1.179 petere 4220: else
4221: ac_cpp_err=yes
1.1 petere 4222: fi
1.179 petere 4223: if test -z "$ac_cpp_err"; then
4224: # Broken: success on invalid input.
4225: continue
1.5 petere 4226: else
1.179 petere 4227: echo "$as_me: failed program was:" >&5
4228: cat conftest.$ac_ext >&5
4229: # Passes both tests.
4230: ac_preproc_ok=:
4231: break
4232: fi
4233: rm -f conftest.err conftest.$ac_ext
1.5 petere 4234:
1.179 petere 4235: done
4236: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237: rm -f conftest.err conftest.$ac_ext
4238: if $ac_preproc_ok; then
4239: :
1.1 petere 4240: else
1.179 petere 4241: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4242: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4243: { (exit 1); exit 1; }; }
1.1 petere 4244: fi
1.179 petere 4245:
1.1 petere 4246: ac_ext=c
4247: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 4248: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.5 petere 4251:
4252:
1.179 petere 4253: else
4254: echo "$as_me:$LINENO: result: no" >&5
4255: echo "${ECHO_T}no" >&6
1.5 petere 4256: fi
1.43 petere 4257:
1.5 petere 4258:
4259:
1.43 petere 4260:
1.30 petere 4261: CPPFLAGS="$CPPFLAGS $INCLUDES"
1.70 petere 4262: LDFLAGS="$LDFLAGS $LIBDIRS"
1.30 petere 4263:
1.179 petere 4264: { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4265: echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4266: { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4267: echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
1.30 petere 4268:
4269:
1.179 petere 4270: for ac_prog in gawk mawk nawk awk
1.2 petere 4271: do
1.179 petere 4272: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2 petere 4273: set dummy $ac_prog; ac_word=$2
1.179 petere 4274: echo "$as_me:$LINENO: checking for $ac_word" >&5
4275: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276: if test "${ac_cv_prog_AWK+set}" = set; then
4277: echo $ECHO_N "(cached) $ECHO_C" >&6
1.2 petere 4278: else
4279: if test -n "$AWK"; then
4280: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4281: else
1.179 petere 4282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283: for as_dir in $PATH
4284: do
4285: IFS=$as_save_IFS
4286: test -z "$as_dir" && as_dir=.
4287: for ac_exec_ext in '' $ac_executable_extensions; do
4288: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289: ac_cv_prog_AWK="$ac_prog"
4290: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291: break 2
4292: fi
4293: done
4294: done
4295:
4296: fi
4297: fi
4298: AWK=$ac_cv_prog_AWK
4299: if test -n "$AWK"; then
4300: echo "$as_me:$LINENO: result: $AWK" >&5
4301: echo "${ECHO_T}$AWK" >&6
1.2 petere 4302: else
1.179 petere 4303: echo "$as_me:$LINENO: result: no" >&5
4304: echo "${ECHO_T}no" >&6
1.2 petere 4305: fi
4306:
1.179 petere 4307: test -n "$AWK" && break
1.2 petere 4308: done
4309:
1.179 petere 4310: echo "$as_me:$LINENO: checking for flex" >&5
4311: echo $ECHO_N "checking for flex... $ECHO_C" >&6
4312: if test "${pgac_cv_path_flex+set}" = set; then
4313: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4314: else
1.40 petere 4315: # Let the user override the test
4316: if test -n "$FLEX"; then
4317: pgac_cv_path_flex=$FLEX
4318: else
4319: pgac_save_IFS=$IFS
4320: IFS=:
4321: for pgac_dir in $PATH; do
4322: if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4323: pgac_dir=`pwd`
1.1 petere 4324: fi
1.40 petere 4325: for pgac_prog in flex lex; do
4326: pgac_candidate="$pgac_dir/$pgac_prog"
4327: if test -f "$pgac_candidate" \
1.72 petere 4328: && $pgac_candidate --version </dev/null >/dev/null 2>&1
1.40 petere 4329: then
4330: echo '%%' > conftest.l
4331: if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4332: if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4333: pgac_broken_flex=$pgac_candidate
4334: continue
4335: fi
4336:
4337: pgac_cv_path_flex=$pgac_candidate
4338: break 2
4339: fi
4340: fi
4341: done
1.1 petere 4342: done
1.40 petere 4343: IFS=$pgac_save_IFS
4344: rm -f conftest.l
4345: : ${pgac_cv_path_flex=no}
1.1 petere 4346: fi
1.40 petere 4347:
1.1 petere 4348: fi
1.179 petere 4349: echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4350: echo "${ECHO_T}$pgac_cv_path_flex" >&6
1.40 petere 4351: if test x"$pgac_cv_path_flex" = x"no"; then
4352: if test -n "$pgac_broken_flex"; then
1.179 petere 4353: { echo "$as_me:$LINENO: WARNING:
1.105 petere 4354: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
1.179 petere 4355: *** should get version 2.5.4 or later." >&5
4356: echo "$as_me: WARNING:
4357: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4358: *** should get version 2.5.4 or later." >&2;}
1.40 petere 4359: fi
1.1 petere 4360:
1.179 petere 4361: { echo "$as_me:$LINENO: WARNING:
4362: *** Without Flex you will not be able to build PostgreSQL from CVS or
4363: *** change any of the scanner definition files. You can obtain Flex from
4364: *** a GNU mirror site. (If you are using the official distribution of
4365: *** PostgreSQL then you do not need to worry about this because the Flex
4366: *** output is pre-generated.)" >&5
4367: echo "$as_me: WARNING:
1.105 petere 4368: *** Without Flex you will not be able to build PostgreSQL from CVS or
4369: *** change any of the scanner definition files. You can obtain Flex from
4370: *** a GNU mirror site. (If you are using the official distribution of
4371: *** PostgreSQL then you do not need to worry about this because the Flex
1.179 petere 4372: *** output is pre-generated.)" >&2;}
1.1 petere 4373: fi
4374:
1.40 petere 4375: if test x"$pgac_cv_path_flex" = x"no"; then
4376: FLEX=
1.1 petere 4377: else
1.40 petere 4378: FLEX=$pgac_cv_path_flex
1.1 petere 4379: fi
4380:
4381:
1.40 petere 4382:
4383:
1.179 petere 4384: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4385: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4386: LN_S=$as_ln_s
4387: if test "$LN_S" = "ln -s"; then
4388: echo "$as_me:$LINENO: result: yes" >&5
4389: echo "${ECHO_T}yes" >&6
1.1 petere 4390: else
1.179 petere 4391: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4392: echo "${ECHO_T}no, using $LN_S" >&6
1.1 petere 4393: fi
1.179 petere 4394:
1.1 petere 4395:
1.64 petere 4396: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4397: if test "${with_gnu_ld+set}" = set; then
4398: withval="$with_gnu_ld"
4399: test "$withval" = no || with_gnu_ld=yes
4400: else
4401: with_gnu_ld=no
1.179 petere 4402: fi;
1.64 petere 4403: ac_prog=ld
1.179 petere 4404: if test "$GCC" = yes; then
1.64 petere 4405: # Check if gcc -print-prog-name=ld gives a path.
1.179 petere 4406: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4407: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1.64 petere 4408: case $host in
4409: *-*-mingw*)
4410: # gcc leaves a trailing carriage return which upsets mingw
4411: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4412: *)
4413: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4414: esac
4415: case "$ac_prog" in
4416: # Accept absolute paths.
4417: [\\/]* | [A-Za-z]:[\\/]*)
4418: re_direlt='/[^/][^/]*/\.\./'
4419: # Canonicalize the path of ld
4420: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4421: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4422: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4423: done
4424: test -z "$LD" && LD="$ac_prog"
4425: ;;
4426: "")
4427: # If it fails, then pretend we aren't using GCC.
4428: ac_prog=ld
4429: ;;
4430: *)
4431: # If it is relative, then search for the first ld in PATH.
4432: with_gnu_ld=unknown
4433: ;;
4434: esac
4435: elif test "$with_gnu_ld" = yes; then
1.179 petere 4436: echo "$as_me:$LINENO: checking for GNU ld" >&5
4437: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.64 petere 4438: else
1.179 petere 4439: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4440: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.64 petere 4441: fi
1.179 petere 4442: if test "${ac_cv_path_LD+set}" = set; then
4443: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 petere 4444: else
4445: if test -z "$LD"; then
4446: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4447: for ac_dir in $PATH; do
4448: test -z "$ac_dir" && ac_dir=.
4449: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4450: ac_cv_path_LD="$ac_dir/$ac_prog"
4451: # Check to see if the program is GNU ld. I'd rather use --version,
4452: # but apparently some GNU ld's only accept -v.
4453: # Break only if it was the GNU/non-GNU ld that we prefer.
4454: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4455: test "$with_gnu_ld" != no && break
4456: else
4457: test "$with_gnu_ld" != yes && break
4458: fi
4459: fi
4460: done
4461: IFS="$ac_save_ifs"
4462: else
4463: ac_cv_path_LD="$LD" # Let the user override the test with a path.
4464: fi
4465: fi
4466:
4467: LD="$ac_cv_path_LD"
4468: if test -n "$LD"; then
1.179 petere 4469: echo "$as_me:$LINENO: result: $LD" >&5
4470: echo "${ECHO_T}$LD" >&6
1.64 petere 4471: else
1.179 petere 4472: echo "$as_me:$LINENO: result: no" >&5
4473: echo "${ECHO_T}no" >&6
1.64 petere 4474: fi
1.179 petere 4475: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4476: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4477: { (exit 1); exit 1; }; }
4478: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4479: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4480: if test "${ac_cv_prog_gnu_ld+set}" = set; then
4481: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 petere 4482: else
4483: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4484: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4485: ac_cv_prog_gnu_ld=yes
4486: else
4487: ac_cv_prog_gnu_ld=no
4488: fi
4489: fi
1.179 petere 4490: echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4491: echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
1.64 petere 4492: with_gnu_ld=$ac_cv_prog_gnu_ld
4493:
4494:
1.69 petere 4495:
4496:
1.139 momjian 4497: case $host_os in sysv5*)
1.179 petere 4498: echo "$as_me:$LINENO: checking whether ld -R works" >&5
4499: echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4500: if test "${pgac_cv_prog_ld_R+set}" = set; then
4501: echo $ECHO_N "(cached) $ECHO_C" >&6
1.83 petere 4502: else
1.179 petere 4503:
1.83 petere 4504: pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
1.179 petere 4505: cat >conftest.$ac_ext <<_ACEOF
4506: #line $LINENO "configure"
1.83 petere 4507: #include "confdefs.h"
4508:
1.179 petere 4509: #ifdef F77_DUMMY_MAIN
4510: # ifdef __cplusplus
4511: extern "C"
4512: # endif
4513: int F77_DUMMY_MAIN() { return 1; }
4514: #endif
4515: int
4516: main ()
4517: {
1.83 petere 4518:
1.179 petere 4519: ;
4520: return 0;
4521: }
4522: _ACEOF
4523: rm -f conftest.$ac_objext conftest$ac_exeext
4524: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525: (eval $ac_link) 2>&5
4526: ac_status=$?
4527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528: (exit $ac_status); } &&
4529: { ac_try='test -s conftest$ac_exeext'
4530: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531: (eval $ac_try) 2>&5
4532: ac_status=$?
4533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534: (exit $ac_status); }; }; then
1.83 petere 4535: pgac_cv_prog_ld_R=yes
4536: else
1.179 petere 4537: echo "$as_me: failed program was:" >&5
4538: cat conftest.$ac_ext >&5
4539: pgac_cv_prog_ld_R=no
1.83 petere 4540: fi
1.179 petere 4541: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.83 petere 4542: LDFLAGS=$pgac_save_LDFLAGS
1.179 petere 4543:
1.83 petere 4544: fi
1.179 petere 4545: echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4546: echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4547: ld_R_works=$pgac_cv_prog_ld_R
1.83 petere 4548:
4549: esac
1.179 petere 4550: if test -n "$ac_tool_prefix"; then
4551: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4552: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4553: echo "$as_me:$LINENO: checking for $ac_word" >&5
4554: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555: if test "${ac_cv_prog_RANLIB+set}" = set; then
4556: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4557: else
4558: if test -n "$RANLIB"; then
4559: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4560: else
1.179 petere 4561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562: for as_dir in $PATH
4563: do
4564: IFS=$as_save_IFS
4565: test -z "$as_dir" && as_dir=.
4566: for ac_exec_ext in '' $ac_executable_extensions; do
4567: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4569: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570: break 2
4571: fi
4572: done
4573: done
4574:
1.1 petere 4575: fi
4576: fi
1.179 petere 4577: RANLIB=$ac_cv_prog_RANLIB
1.1 petere 4578: if test -n "$RANLIB"; then
1.179 petere 4579: echo "$as_me:$LINENO: result: $RANLIB" >&5
4580: echo "${ECHO_T}$RANLIB" >&6
4581: else
4582: echo "$as_me:$LINENO: result: no" >&5
4583: echo "${ECHO_T}no" >&6
4584: fi
4585:
4586: fi
4587: if test -z "$ac_cv_prog_RANLIB"; then
4588: ac_ct_RANLIB=$RANLIB
4589: # Extract the first word of "ranlib", so it can be a program name with args.
4590: set dummy ranlib; ac_word=$2
4591: echo "$as_me:$LINENO: checking for $ac_word" >&5
4592: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4594: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4595: else
1.179 petere 4596: if test -n "$ac_ct_RANLIB"; then
4597: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4598: else
4599: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600: for as_dir in $PATH
4601: do
4602: IFS=$as_save_IFS
4603: test -z "$as_dir" && as_dir=.
4604: for ac_exec_ext in '' $ac_executable_extensions; do
4605: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606: ac_cv_prog_ac_ct_RANLIB="ranlib"
4607: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608: break 2
4609: fi
4610: done
4611: done
4612:
4613: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4614: fi
4615: fi
4616: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4617: if test -n "$ac_ct_RANLIB"; then
4618: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4619: echo "${ECHO_T}$ac_ct_RANLIB" >&6
4620: else
4621: echo "$as_me:$LINENO: result: no" >&5
4622: echo "${ECHO_T}no" >&6
4623: fi
4624:
4625: RANLIB=$ac_ct_RANLIB
4626: else
4627: RANLIB="$ac_cv_prog_RANLIB"
1.1 petere 4628: fi
4629:
1.60 petere 4630: for ac_prog in lorder
4631: do
1.179 petere 4632: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.60 petere 4633: set dummy $ac_prog; ac_word=$2
1.179 petere 4634: echo "$as_me:$LINENO: checking for $ac_word" >&5
4635: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4636: if test "${ac_cv_prog_LORDER+set}" = set; then
4637: echo $ECHO_N "(cached) $ECHO_C" >&6
1.60 petere 4638: else
4639: if test -n "$LORDER"; then
4640: ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4641: else
1.179 petere 4642: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643: for as_dir in $PATH
4644: do
4645: IFS=$as_save_IFS
4646: test -z "$as_dir" && as_dir=.
4647: for ac_exec_ext in '' $ac_executable_extensions; do
4648: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649: ac_cv_prog_LORDER="$ac_prog"
4650: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651: break 2
4652: fi
4653: done
4654: done
4655:
1.60 petere 4656: fi
4657: fi
1.179 petere 4658: LORDER=$ac_cv_prog_LORDER
1.60 petere 4659: if test -n "$LORDER"; then
1.179 petere 4660: echo "$as_me:$LINENO: result: $LORDER" >&5
4661: echo "${ECHO_T}$LORDER" >&6
1.60 petere 4662: else
1.179 petere 4663: echo "$as_me:$LINENO: result: no" >&5
4664: echo "${ECHO_T}no" >&6
1.60 petere 4665: fi
4666:
1.179 petere 4667: test -n "$LORDER" && break
1.60 petere 4668: done
4669:
1.1 petere 4670: # Extract the first word of "tar", so it can be a program name with args.
4671: set dummy tar; ac_word=$2
1.179 petere 4672: echo "$as_me:$LINENO: checking for $ac_word" >&5
4673: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674: if test "${ac_cv_path_TAR+set}" = set; then
4675: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4676: else
1.179 petere 4677: case $TAR in
4678: [\\/]* | ?:[\\/]*)
1.58 petere 4679: ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1.1 petere 4680: ;;
4681: *)
1.179 petere 4682: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683: for as_dir in $PATH
4684: do
4685: IFS=$as_save_IFS
4686: test -z "$as_dir" && as_dir=.
4687: for ac_exec_ext in '' $ac_executable_extensions; do
4688: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689: ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4690: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691: break 2
4692: fi
4693: done
4694: done
4695:
1.1 petere 4696: ;;
4697: esac
4698: fi
1.179 petere 4699: TAR=$ac_cv_path_TAR
4700:
1.58 petere 4701: if test -n "$TAR"; then
1.179 petere 4702: echo "$as_me:$LINENO: result: $TAR" >&5
4703: echo "${ECHO_T}$TAR" >&6
1.1 petere 4704: else
1.179 petere 4705: echo "$as_me:$LINENO: result: no" >&5
4706: echo "${ECHO_T}no" >&6
1.1 petere 4707: fi
4708:
1.105 petere 4709:
4710: for ac_prog in 'bison -y'
1.2 petere 4711: do
1.179 petere 4712: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2 petere 4713: set dummy $ac_prog; ac_word=$2
1.179 petere 4714: echo "$as_me:$LINENO: checking for $ac_word" >&5
4715: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716: if test "${ac_cv_prog_YACC+set}" = set; then
4717: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4718: else
1.2 petere 4719: if test -n "$YACC"; then
4720: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4721: else
1.179 petere 4722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723: for as_dir in $PATH
4724: do
4725: IFS=$as_save_IFS
4726: test -z "$as_dir" && as_dir=.
4727: for ac_exec_ext in '' $ac_executable_extensions; do
4728: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729: ac_cv_prog_YACC="$ac_prog"
4730: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731: break 2
4732: fi
4733: done
4734: done
4735:
1.1 petere 4736: fi
1.2 petere 4737: fi
1.179 petere 4738: YACC=$ac_cv_prog_YACC
1.2 petere 4739: if test -n "$YACC"; then
1.179 petere 4740: echo "$as_me:$LINENO: result: $YACC" >&5
4741: echo "${ECHO_T}$YACC" >&6
1.1 petere 4742: else
1.179 petere 4743: echo "$as_me:$LINENO: result: no" >&5
4744: echo "${ECHO_T}no" >&6
1.1 petere 4745: fi
4746:
1.179 petere 4747: test -n "$YACC" && break
1.2 petere 4748: done
1.105 petere 4749:
4750: if test -z "$YACC"; then
1.179 petere 4751: { echo "$as_me:$LINENO: WARNING:
4752: *** Without Bison you will not be able to build PostgreSQL from CVS or
4753: *** change any of the parser definition files. You can obtain Bison from
4754: *** a GNU mirror site. (If you are using the official distribution of
4755: *** PostgreSQL then you do not need to worry about this because the Bison
4756: *** output is pre-generated.) To use a different yacc program (possible,
4757: *** but not recommended), set the environment variable YACC before running
4758: *** 'configure'." >&5
4759: echo "$as_me: WARNING:
1.105 petere 4760: *** Without Bison you will not be able to build PostgreSQL from CVS or
4761: *** change any of the parser definition files. You can obtain Bison from
4762: *** a GNU mirror site. (If you are using the official distribution of
4763: *** PostgreSQL then you do not need to worry about this because the Bison
4764: *** output is pre-generated.) To use a different yacc program (possible,
4765: *** but not recommended), set the environment variable YACC before running
1.179 petere 4766: *** 'configure'." >&2;}
1.105 petere 4767: fi
1.1 petere 4768:
4769:
1.44 petere 4770: if test "$with_tk" = yes; then
4771: # Extract the first word of "wish", so it can be a program name with args.
4772: set dummy wish; ac_word=$2
1.179 petere 4773: echo "$as_me:$LINENO: checking for $ac_word" >&5
4774: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775: if test "${ac_cv_path_WISH+set}" = set; then
4776: echo $ECHO_N "(cached) $ECHO_C" >&6
1.44 petere 4777: else
1.179 petere 4778: case $WISH in
4779: [\\/]* | ?:[\\/]*)
1.44 petere 4780: ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4781: ;;
4782: *)
1.179 petere 4783: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784: for as_dir in $PATH
4785: do
4786: IFS=$as_save_IFS
4787: test -z "$as_dir" && as_dir=.
4788: for ac_exec_ext in '' $ac_executable_extensions; do
4789: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790: ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4791: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792: break 2
4793: fi
4794: done
4795: done
4796:
1.44 petere 4797: ;;
4798: esac
4799: fi
1.179 petere 4800: WISH=$ac_cv_path_WISH
4801:
1.44 petere 4802: if test -n "$WISH"; then
1.179 petere 4803: echo "$as_me:$LINENO: result: $WISH" >&5
4804: echo "${ECHO_T}$WISH" >&6
1.44 petere 4805: else
1.179 petere 4806: echo "$as_me:$LINENO: result: no" >&5
4807: echo "${ECHO_T}no" >&6
1.44 petere 4808: fi
4809:
1.179 petere 4810: test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4811: echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4812: { (exit 1); exit 1; }; }
1.44 petere 4813: fi
1.1 petere 4814:
1.144 petere 4815: # Extract the first word of "perl", so it can be a program name with args.
4816: set dummy perl; 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_path_PERL+set}" = set; then
4820: echo $ECHO_N "(cached) $ECHO_C" >&6
1.144 petere 4821: else
1.179 petere 4822: case $PERL in
4823: [\\/]* | ?:[\\/]*)
1.144 petere 4824: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4825: ;;
4826: *)
1.179 petere 4827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828: for as_dir in $PATH
4829: do
4830: IFS=$as_save_IFS
4831: test -z "$as_dir" && as_dir=.
4832: for ac_exec_ext in '' $ac_executable_extensions; do
4833: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4835: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836: break 2
4837: fi
4838: done
4839: done
4840:
1.144 petere 4841: ;;
4842: esac
4843: fi
1.179 petere 4844: PERL=$ac_cv_path_PERL
4845:
1.144 petere 4846: if test -n "$PERL"; then
1.179 petere 4847: echo "$as_me:$LINENO: result: $PERL" >&5
4848: echo "${ECHO_T}$PERL" >&6
1.144 petere 4849: else
1.179 petere 4850: echo "$as_me:$LINENO: result: no" >&5
4851: echo "${ECHO_T}no" >&6
1.144 petere 4852: fi
4853:
4854: if test "$with_perl" = yes; then
4855:
1.179 petere 4856:
4857: echo "$as_me:$LINENO: checking Perl installation directories" >&5
4858: echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
1.144 petere 4859:
4860: # These are the ones we currently need. Others can be added easily.
4861: perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4862: perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4863: perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4864:
4865:
1.179 petere 4866: echo "$as_me:$LINENO: result: done" >&5
4867: echo "${ECHO_T}done" >&6
1.144 petere 4868:
4869: fi
4870:
1.133 petere 4871: if test "$with_python" = yes; then
4872: # Extract the first word of "python", so it can be a program name with args.
4873: set dummy python; ac_word=$2
1.179 petere 4874: echo "$as_me:$LINENO: checking for $ac_word" >&5
4875: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4876: if test "${ac_cv_path_PYTHON+set}" = set; then
4877: echo $ECHO_N "(cached) $ECHO_C" >&6
1.133 petere 4878: else
1.179 petere 4879: case $PYTHON in
4880: [\\/]* | ?:[\\/]*)
1.133 petere 4881: ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4882: ;;
4883: *)
1.179 petere 4884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885: for as_dir in $PATH
4886: do
4887: IFS=$as_save_IFS
4888: test -z "$as_dir" && as_dir=.
4889: for ac_exec_ext in '' $ac_executable_extensions; do
4890: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891: ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4892: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893: break 2
4894: fi
4895: done
4896: done
4897:
1.133 petere 4898: ;;
4899: esac
4900: fi
1.179 petere 4901: PYTHON=$ac_cv_path_PYTHON
4902:
1.133 petere 4903: if test -n "$PYTHON"; then
1.179 petere 4904: echo "$as_me:$LINENO: result: $PYTHON" >&5
4905: echo "${ECHO_T}$PYTHON" >&6
1.133 petere 4906: else
1.179 petere 4907: echo "$as_me:$LINENO: result: no" >&5
4908: echo "${ECHO_T}no" >&6
1.133 petere 4909: fi
4910:
4911: if test x"$PYTHON" = x""; then
1.179 petere 4912: { { echo "$as_me:$LINENO: error: Python not found" >&5
4913: echo "$as_me: error: Python not found" >&2;}
4914: { (exit 1); exit 1; }; }
1.133 petere 4915: fi
4916:
1.179 petere 4917:
4918: echo "$as_me:$LINENO: checking Python installation directories" >&5
4919: echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
1.133 petere 4920: python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4921: python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4922: python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4923: python_configdir="${python_execprefix}/lib/python${python_version}/config"
1.138 petere 4924: python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4925: python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4926: python_includespec="-I${python_prefix}/include/python${python_version}"
4927: if test "$python_prefix" != "$python_execprefix"; then
4928: python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4929: fi
1.133 petere 4930:
1.138 petere 4931: # This should be enough of a message.
4932: if test "$python_prefix" != "$python_execprefix"; then
1.179 petere 4933: echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4934: echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
1.133 petere 4935: else
1.179 petere 4936: echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4937: echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
1.133 petere 4938: fi
4939:
4940:
1.138 petere 4941:
1.179 petere 4942:
4943:
4944: echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4945: echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
1.133 petere 4946:
4947: _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4948: _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4949: _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4950: _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4951: _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4952:
4953: pgac_tab=" " # tab character
4954: 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"`
4955:
1.179 petere 4956: echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4957: echo "${ECHO_T}${python_libspec}" >&6
1.133 petere 4958:
4959:
4960: fi
4961:
1.5 petere 4962:
1.29 petere 4963: ##
4964: ## Libraries
4965: ##
4966:
1.145 petere 4967:
1.179 petere 4968: echo "$as_me:$LINENO: checking for readline" >&5
4969: echo $ECHO_N "checking for readline... $ECHO_C" >&6
1.12 petere 4970:
1.179 petere 4971: if test "${pgac_cv_check_readline+set}" = set; then
4972: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4973: else
1.103 petere 4974: pgac_cv_check_readline=no
4975: for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
4976: for pgac_rllib in -lreadline -ledit ; do
4977: pgac_save_LIBS=$LIBS
4978: LIBS="${pgac_rllib}${pgac_lib} $LIBS"
1.179 petere 4979: cat >conftest.$ac_ext <<_ACEOF
4980: #line $LINENO "configure"
1.1 petere 4981: #include "confdefs.h"
1.179 petere 4982:
1.54 petere 4983: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 4984: #ifdef __cplusplus
4985: extern "C"
4986: #endif
1.54 petere 4987: /* We use char because int might match the return type of a gcc2
1.179 petere 4988: builtin and then its argument prototype would still apply. */
4989: char readline ();
4990: #ifdef F77_DUMMY_MAIN
4991: # ifdef __cplusplus
4992: extern "C"
4993: # endif
4994: int F77_DUMMY_MAIN() { return 1; }
4995: #endif
4996: int
4997: main ()
4998: {
4999: readline ();
5000: ;
5001: return 0;
5002: }
5003: _ACEOF
5004: rm -f conftest.$ac_objext conftest$ac_exeext
5005: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006: (eval $ac_link) 2>&5
5007: ac_status=$?
5008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009: (exit $ac_status); } &&
5010: { ac_try='test -s conftest$ac_exeext'
5011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012: (eval $ac_try) 2>&5
5013: ac_status=$?
5014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015: (exit $ac_status); }; }; then
1.1 petere 5016:
1.145 petere 5017: # NetBSD and OpenBSD have a broken linker that does not
5018: # recognize dependent libraries
5019: case $host_os in netbsd* | openbsd* )
5020: case $pgac_lib in
5021: *curses*) ;;
5022: *) pgac_lib=" -lcurses" ;;
5023: esac
5024: esac
5025:
5026: pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5027: break 2
1.179 petere 5028:
1.1 petere 5029: else
1.179 petere 5030: echo "$as_me: failed program was:" >&5
5031: cat conftest.$ac_ext >&5
1.94 petere 5032: fi
1.179 petere 5033: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.103 petere 5034: LIBS=$pgac_save_LIBS
5035: done
5036: done
5037: LIBS=$pgac_save_LIBS
1.94 petere 5038:
5039: fi
1.1 petere 5040:
1.103 petere 5041: if test "$pgac_cv_check_readline" != no ; then
1.179 petere 5042:
5043: cat >>confdefs.h <<\_ACEOF
1.94 petere 5044: #define HAVE_LIBREADLINE 1
1.179 petere 5045: _ACEOF
1.1 petere 5046:
1.103 petere 5047: LIBS="$pgac_cv_check_readline $LIBS"
1.179 petere 5048: echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5049: echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
1.103 petere 5050: else
1.179 petere 5051: echo "$as_me:$LINENO: result: no" >&5
5052: echo "${ECHO_T}no" >&6
1.1 petere 5053: fi
1.179 petere 5054: echo "$as_me:$LINENO: checking for library containing using_history" >&5
5055: echo $ECHO_N "checking for library containing using_history... $ECHO_C" >&6
5056: if test "${ac_cv_search_using_history+set}" = set; then
5057: echo $ECHO_N "(cached) $ECHO_C" >&6
5058: else
5059: ac_func_search_save_LIBS=$LIBS
5060: ac_cv_search_using_history=no
5061: cat >conftest.$ac_ext <<_ACEOF
5062: #line $LINENO "configure"
5063: #include "confdefs.h"
1.1 petere 5064:
5065: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5066: #ifdef __cplusplus
5067: extern "C"
5068: #endif
1.1 petere 5069: /* We use char because int might match the return type of a gcc2
1.179 petere 5070: builtin and then its argument prototype would still apply. */
5071: char using_history ();
5072: #ifdef F77_DUMMY_MAIN
5073: # ifdef __cplusplus
5074: extern "C"
5075: # endif
5076: int F77_DUMMY_MAIN() { return 1; }
5077: #endif
5078: int
5079: main ()
5080: {
5081: using_history ();
5082: ;
5083: return 0;
5084: }
5085: _ACEOF
5086: rm -f conftest.$ac_objext conftest$ac_exeext
5087: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088: (eval $ac_link) 2>&5
5089: ac_status=$?
5090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091: (exit $ac_status); } &&
5092: { ac_try='test -s conftest$ac_exeext'
5093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094: (eval $ac_try) 2>&5
5095: ac_status=$?
5096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097: (exit $ac_status); }; }; then
1.54 petere 5098: ac_cv_search_using_history="none required"
1.1 petere 5099: else
1.179 petere 5100: echo "$as_me: failed program was:" >&5
5101: cat conftest.$ac_ext >&5
1.1 petere 5102: fi
1.179 petere 5103: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5104: if test "$ac_cv_search_using_history" = no; then
5105: for ac_lib in history; do
5106: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5107: cat >conftest.$ac_ext <<_ACEOF
5108: #line $LINENO "configure"
1.1 petere 5109: #include "confdefs.h"
1.179 petere 5110:
1.54 petere 5111: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5112: #ifdef __cplusplus
5113: extern "C"
5114: #endif
1.54 petere 5115: /* We use char because int might match the return type of a gcc2
1.179 petere 5116: builtin and then its argument prototype would still apply. */
5117: char using_history ();
5118: #ifdef F77_DUMMY_MAIN
5119: # ifdef __cplusplus
5120: extern "C"
5121: # endif
5122: int F77_DUMMY_MAIN() { return 1; }
5123: #endif
5124: int
5125: main ()
5126: {
5127: using_history ();
5128: ;
5129: return 0;
5130: }
5131: _ACEOF
5132: rm -f conftest.$ac_objext conftest$ac_exeext
5133: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134: (eval $ac_link) 2>&5
5135: ac_status=$?
5136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137: (exit $ac_status); } &&
5138: { ac_try='test -s conftest$ac_exeext'
5139: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140: (eval $ac_try) 2>&5
5141: ac_status=$?
5142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143: (exit $ac_status); }; }; then
5144: ac_cv_search_using_history="-l$ac_lib"
1.54 petere 5145: break
1.1 petere 5146: else
1.179 petere 5147: echo "$as_me: failed program was:" >&5
5148: cat conftest.$ac_ext >&5
5149: fi
5150: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5151: done
1.1 petere 5152: fi
1.179 petere 5153: LIBS=$ac_func_search_save_LIBS
1.54 petere 5154: fi
1.179 petere 5155: echo "$as_me:$LINENO: result: $ac_cv_search_using_history" >&5
5156: echo "${ECHO_T}$ac_cv_search_using_history" >&6
5157: if test "$ac_cv_search_using_history" != no; then
5158: test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
1.1 petere 5159:
1.179 petere 5160: cat >>confdefs.h <<\_ACEOF
1.54 petere 5161: #define HAVE_HISTORY_FUNCTIONS 1
1.179 petere 5162: _ACEOF
1.1 petere 5163:
5164: fi
5165:
1.179 petere 5166:
1.1 petere 5167: if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5168: then
1.179 petere 5169:
5170: echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5171: echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5172: if test "${ac_cv_lib_bsd_main+set}" = set; then
5173: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5174: else
1.179 petere 5175: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5176: LIBS="-lbsd $LIBS"
1.179 petere 5177: cat >conftest.$ac_ext <<_ACEOF
5178: #line $LINENO "configure"
1.1 petere 5179: #include "confdefs.h"
5180:
5181:
1.179 petere 5182: #ifdef F77_DUMMY_MAIN
5183: # ifdef __cplusplus
5184: extern "C"
5185: # endif
5186: int F77_DUMMY_MAIN() { return 1; }
5187: #endif
5188: int
5189: main ()
5190: {
5191: main ();
5192: ;
5193: return 0;
5194: }
5195: _ACEOF
5196: rm -f conftest.$ac_objext conftest$ac_exeext
5197: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5198: (eval $ac_link) 2>&5
5199: ac_status=$?
5200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201: (exit $ac_status); } &&
5202: { ac_try='test -s conftest$ac_exeext'
5203: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204: (eval $ac_try) 2>&5
5205: ac_status=$?
5206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207: (exit $ac_status); }; }; then
5208: ac_cv_lib_bsd_main=yes
5209: else
5210: echo "$as_me: failed program was:" >&5
5211: cat conftest.$ac_ext >&5
5212: ac_cv_lib_bsd_main=no
5213: fi
5214: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5215: LIBS=$ac_check_lib_save_LIBS
5216: fi
5217: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5218: echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5219: if test $ac_cv_lib_bsd_main = yes; then
5220: cat >>confdefs.h <<_ACEOF
5221: #define HAVE_LIBBSD 1
5222: _ACEOF
1.1 petere 5223:
5224: LIBS="-lbsd $LIBS"
5225:
5226: fi
5227:
5228: fi
1.179 petere 5229:
5230: echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5231: echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5232: if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5233: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5234: else
1.179 petere 5235: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5236: LIBS="-lutil $LIBS"
1.179 petere 5237: cat >conftest.$ac_ext <<_ACEOF
5238: #line $LINENO "configure"
1.1 petere 5239: #include "confdefs.h"
1.179 petere 5240:
1.21 petere 5241: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5242: #ifdef __cplusplus
5243: extern "C"
5244: #endif
1.21 petere 5245: /* We use char because int might match the return type of a gcc2
1.179 petere 5246: builtin and then its argument prototype would still apply. */
5247: char setproctitle ();
5248: #ifdef F77_DUMMY_MAIN
5249: # ifdef __cplusplus
5250: extern "C"
5251: # endif
5252: int F77_DUMMY_MAIN() { return 1; }
5253: #endif
5254: int
5255: main ()
5256: {
5257: setproctitle ();
5258: ;
5259: return 0;
5260: }
5261: _ACEOF
5262: rm -f conftest.$ac_objext conftest$ac_exeext
5263: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264: (eval $ac_link) 2>&5
5265: ac_status=$?
5266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267: (exit $ac_status); } &&
5268: { ac_try='test -s conftest$ac_exeext'
5269: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270: (eval $ac_try) 2>&5
5271: ac_status=$?
5272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273: (exit $ac_status); }; }; then
5274: ac_cv_lib_util_setproctitle=yes
5275: else
5276: echo "$as_me: failed program was:" >&5
5277: cat conftest.$ac_ext >&5
5278: ac_cv_lib_util_setproctitle=no
5279: fi
5280: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5281: LIBS=$ac_check_lib_save_LIBS
5282: fi
5283: echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5284: echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5285: if test $ac_cv_lib_util_setproctitle = yes; then
5286: cat >>confdefs.h <<_ACEOF
5287: #define HAVE_LIBUTIL 1
5288: _ACEOF
1.1 petere 5289:
1.179 petere 5290: LIBS="-lutil $LIBS"
1.1 petere 5291:
5292: fi
5293:
5294:
1.179 petere 5295: echo "$as_me:$LINENO: checking for main in -lm" >&5
5296: echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5297: if test "${ac_cv_lib_m_main+set}" = set; then
5298: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5299: else
1.179 petere 5300: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5301: LIBS="-lm $LIBS"
1.179 petere 5302: cat >conftest.$ac_ext <<_ACEOF
5303: #line $LINENO "configure"
1.1 petere 5304: #include "confdefs.h"
5305:
5306:
1.179 petere 5307: #ifdef F77_DUMMY_MAIN
5308: # ifdef __cplusplus
5309: extern "C"
5310: # endif
5311: int F77_DUMMY_MAIN() { return 1; }
5312: #endif
5313: int
5314: main ()
5315: {
5316: main ();
5317: ;
5318: return 0;
5319: }
5320: _ACEOF
5321: rm -f conftest.$ac_objext conftest$ac_exeext
5322: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323: (eval $ac_link) 2>&5
5324: ac_status=$?
5325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326: (exit $ac_status); } &&
5327: { ac_try='test -s conftest$ac_exeext'
5328: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329: (eval $ac_try) 2>&5
5330: ac_status=$?
5331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332: (exit $ac_status); }; }; then
5333: ac_cv_lib_m_main=yes
5334: else
5335: echo "$as_me: failed program was:" >&5
5336: cat conftest.$ac_ext >&5
5337: ac_cv_lib_m_main=no
5338: fi
5339: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5340: LIBS=$ac_check_lib_save_LIBS
5341: fi
5342: echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5343: echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5344: if test $ac_cv_lib_m_main = yes; then
5345: cat >>confdefs.h <<_ACEOF
5346: #define HAVE_LIBM 1
5347: _ACEOF
1.1 petere 5348:
5349: LIBS="-lm $LIBS"
5350:
5351: fi
5352:
1.179 petere 5353:
5354: echo "$as_me:$LINENO: checking for main in -ldl" >&5
5355: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5356: if test "${ac_cv_lib_dl_main+set}" = set; then
5357: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5358: else
1.179 petere 5359: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5360: LIBS="-ldl $LIBS"
1.179 petere 5361: cat >conftest.$ac_ext <<_ACEOF
5362: #line $LINENO "configure"
1.1 petere 5363: #include "confdefs.h"
5364:
5365:
1.179 petere 5366: #ifdef F77_DUMMY_MAIN
5367: # ifdef __cplusplus
5368: extern "C"
5369: # endif
5370: int F77_DUMMY_MAIN() { return 1; }
5371: #endif
5372: int
5373: main ()
5374: {
5375: main ();
5376: ;
5377: return 0;
5378: }
5379: _ACEOF
5380: rm -f conftest.$ac_objext conftest$ac_exeext
5381: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5382: (eval $ac_link) 2>&5
5383: ac_status=$?
5384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385: (exit $ac_status); } &&
5386: { ac_try='test -s conftest$ac_exeext'
5387: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388: (eval $ac_try) 2>&5
5389: ac_status=$?
5390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391: (exit $ac_status); }; }; then
5392: ac_cv_lib_dl_main=yes
5393: else
5394: echo "$as_me: failed program was:" >&5
5395: cat conftest.$ac_ext >&5
5396: ac_cv_lib_dl_main=no
5397: fi
5398: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5399: LIBS=$ac_check_lib_save_LIBS
5400: fi
5401: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5402: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5403: if test $ac_cv_lib_dl_main = yes; then
5404: cat >>confdefs.h <<_ACEOF
5405: #define HAVE_LIBDL 1
5406: _ACEOF
1.1 petere 5407:
5408: LIBS="-ldl $LIBS"
5409:
5410: fi
5411:
1.179 petere 5412:
5413: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5414: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5415: if test "${ac_cv_lib_socket_main+set}" = set; then
5416: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5417: else
1.179 petere 5418: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5419: LIBS="-lsocket $LIBS"
1.179 petere 5420: cat >conftest.$ac_ext <<_ACEOF
5421: #line $LINENO "configure"
1.1 petere 5422: #include "confdefs.h"
5423:
5424:
1.179 petere 5425: #ifdef F77_DUMMY_MAIN
5426: # ifdef __cplusplus
5427: extern "C"
5428: # endif
5429: int F77_DUMMY_MAIN() { return 1; }
5430: #endif
5431: int
5432: main ()
5433: {
5434: main ();
5435: ;
5436: return 0;
5437: }
5438: _ACEOF
5439: rm -f conftest.$ac_objext conftest$ac_exeext
5440: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5441: (eval $ac_link) 2>&5
5442: ac_status=$?
5443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444: (exit $ac_status); } &&
5445: { ac_try='test -s conftest$ac_exeext'
5446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447: (eval $ac_try) 2>&5
5448: ac_status=$?
5449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450: (exit $ac_status); }; }; then
5451: ac_cv_lib_socket_main=yes
5452: else
5453: echo "$as_me: failed program was:" >&5
5454: cat conftest.$ac_ext >&5
5455: ac_cv_lib_socket_main=no
5456: fi
5457: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5458: LIBS=$ac_check_lib_save_LIBS
5459: fi
5460: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5461: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5462: if test $ac_cv_lib_socket_main = yes; then
5463: cat >>confdefs.h <<_ACEOF
5464: #define HAVE_LIBSOCKET 1
5465: _ACEOF
1.1 petere 5466:
5467: LIBS="-lsocket $LIBS"
5468:
5469: fi
5470:
1.179 petere 5471:
5472: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5473: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5474: if test "${ac_cv_lib_nsl_main+set}" = set; then
5475: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5476: else
1.179 petere 5477: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5478: LIBS="-lnsl $LIBS"
1.179 petere 5479: cat >conftest.$ac_ext <<_ACEOF
5480: #line $LINENO "configure"
1.1 petere 5481: #include "confdefs.h"
5482:
5483:
1.179 petere 5484: #ifdef F77_DUMMY_MAIN
5485: # ifdef __cplusplus
5486: extern "C"
5487: # endif
5488: int F77_DUMMY_MAIN() { return 1; }
5489: #endif
5490: int
5491: main ()
5492: {
5493: main ();
5494: ;
5495: return 0;
5496: }
5497: _ACEOF
5498: rm -f conftest.$ac_objext conftest$ac_exeext
5499: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500: (eval $ac_link) 2>&5
5501: ac_status=$?
5502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503: (exit $ac_status); } &&
5504: { ac_try='test -s conftest$ac_exeext'
5505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506: (eval $ac_try) 2>&5
5507: ac_status=$?
5508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509: (exit $ac_status); }; }; then
5510: ac_cv_lib_nsl_main=yes
5511: else
5512: echo "$as_me: failed program was:" >&5
5513: cat conftest.$ac_ext >&5
5514: ac_cv_lib_nsl_main=no
5515: fi
5516: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5517: LIBS=$ac_check_lib_save_LIBS
5518: fi
5519: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5520: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5521: if test $ac_cv_lib_nsl_main = yes; then
5522: cat >>confdefs.h <<_ACEOF
5523: #define HAVE_LIBNSL 1
5524: _ACEOF
1.1 petere 5525:
5526: LIBS="-lnsl $LIBS"
5527:
5528: fi
5529:
1.179 petere 5530:
5531: echo "$as_me:$LINENO: checking for main in -lipc" >&5
5532: echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5533: if test "${ac_cv_lib_ipc_main+set}" = set; then
5534: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5535: else
1.179 petere 5536: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5537: LIBS="-lipc $LIBS"
1.179 petere 5538: cat >conftest.$ac_ext <<_ACEOF
5539: #line $LINENO "configure"
1.1 petere 5540: #include "confdefs.h"
5541:
5542:
1.179 petere 5543: #ifdef F77_DUMMY_MAIN
5544: # ifdef __cplusplus
5545: extern "C"
5546: # endif
5547: int F77_DUMMY_MAIN() { return 1; }
5548: #endif
5549: int
5550: main ()
5551: {
5552: main ();
5553: ;
5554: return 0;
5555: }
5556: _ACEOF
5557: rm -f conftest.$ac_objext conftest$ac_exeext
5558: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5559: (eval $ac_link) 2>&5
5560: ac_status=$?
5561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562: (exit $ac_status); } &&
5563: { ac_try='test -s conftest$ac_exeext'
5564: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565: (eval $ac_try) 2>&5
5566: ac_status=$?
5567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568: (exit $ac_status); }; }; then
5569: ac_cv_lib_ipc_main=yes
5570: else
5571: echo "$as_me: failed program was:" >&5
5572: cat conftest.$ac_ext >&5
5573: ac_cv_lib_ipc_main=no
5574: fi
5575: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576: LIBS=$ac_check_lib_save_LIBS
5577: fi
5578: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5579: echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5580: if test $ac_cv_lib_ipc_main = yes; then
5581: cat >>confdefs.h <<_ACEOF
5582: #define HAVE_LIBIPC 1
5583: _ACEOF
1.1 petere 5584:
5585: LIBS="-lipc $LIBS"
5586:
5587: fi
5588:
1.179 petere 5589:
5590: echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5591: echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5592: if test "${ac_cv_lib_IPC_main+set}" = set; then
5593: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5594: else
1.179 petere 5595: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5596: LIBS="-lIPC $LIBS"
1.179 petere 5597: cat >conftest.$ac_ext <<_ACEOF
5598: #line $LINENO "configure"
1.1 petere 5599: #include "confdefs.h"
5600:
5601:
1.179 petere 5602: #ifdef F77_DUMMY_MAIN
5603: # ifdef __cplusplus
5604: extern "C"
5605: # endif
5606: int F77_DUMMY_MAIN() { return 1; }
5607: #endif
5608: int
5609: main ()
5610: {
5611: main ();
5612: ;
5613: return 0;
5614: }
5615: _ACEOF
5616: rm -f conftest.$ac_objext conftest$ac_exeext
5617: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618: (eval $ac_link) 2>&5
5619: ac_status=$?
5620: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621: (exit $ac_status); } &&
5622: { ac_try='test -s conftest$ac_exeext'
5623: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624: (eval $ac_try) 2>&5
5625: ac_status=$?
5626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627: (exit $ac_status); }; }; then
5628: ac_cv_lib_IPC_main=yes
5629: else
5630: echo "$as_me: failed program was:" >&5
5631: cat conftest.$ac_ext >&5
5632: ac_cv_lib_IPC_main=no
5633: fi
5634: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5635: LIBS=$ac_check_lib_save_LIBS
5636: fi
5637: echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5638: echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5639: if test $ac_cv_lib_IPC_main = yes; then
5640: cat >>confdefs.h <<_ACEOF
5641: #define HAVE_LIBIPC 1
5642: _ACEOF
1.1 petere 5643:
5644: LIBS="-lIPC $LIBS"
5645:
5646: fi
5647:
1.179 petere 5648:
5649: echo "$as_me:$LINENO: checking for main in -llc" >&5
5650: echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5651: if test "${ac_cv_lib_lc_main+set}" = set; then
5652: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5653: else
1.179 petere 5654: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5655: LIBS="-llc $LIBS"
1.179 petere 5656: cat >conftest.$ac_ext <<_ACEOF
5657: #line $LINENO "configure"
1.1 petere 5658: #include "confdefs.h"
5659:
5660:
1.179 petere 5661: #ifdef F77_DUMMY_MAIN
5662: # ifdef __cplusplus
5663: extern "C"
5664: # endif
5665: int F77_DUMMY_MAIN() { return 1; }
5666: #endif
5667: int
5668: main ()
5669: {
5670: main ();
5671: ;
5672: return 0;
5673: }
5674: _ACEOF
5675: rm -f conftest.$ac_objext conftest$ac_exeext
5676: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677: (eval $ac_link) 2>&5
5678: ac_status=$?
5679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680: (exit $ac_status); } &&
5681: { ac_try='test -s conftest$ac_exeext'
5682: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683: (eval $ac_try) 2>&5
5684: ac_status=$?
5685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686: (exit $ac_status); }; }; then
5687: ac_cv_lib_lc_main=yes
5688: else
5689: echo "$as_me: failed program was:" >&5
5690: cat conftest.$ac_ext >&5
5691: ac_cv_lib_lc_main=no
5692: fi
5693: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694: LIBS=$ac_check_lib_save_LIBS
5695: fi
5696: echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5697: echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5698: if test $ac_cv_lib_lc_main = yes; then
5699: cat >>confdefs.h <<_ACEOF
5700: #define HAVE_LIBLC 1
5701: _ACEOF
1.1 petere 5702:
5703: LIBS="-llc $LIBS"
5704:
5705: fi
5706:
1.179 petere 5707:
5708: echo "$as_me:$LINENO: checking for main in -ldld" >&5
5709: echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5710: if test "${ac_cv_lib_dld_main+set}" = set; then
5711: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5712: else
1.179 petere 5713: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5714: LIBS="-ldld $LIBS"
1.179 petere 5715: cat >conftest.$ac_ext <<_ACEOF
5716: #line $LINENO "configure"
1.1 petere 5717: #include "confdefs.h"
5718:
5719:
1.179 petere 5720: #ifdef F77_DUMMY_MAIN
5721: # ifdef __cplusplus
5722: extern "C"
5723: # endif
5724: int F77_DUMMY_MAIN() { return 1; }
5725: #endif
5726: int
5727: main ()
5728: {
5729: main ();
5730: ;
5731: return 0;
5732: }
5733: _ACEOF
5734: rm -f conftest.$ac_objext conftest$ac_exeext
5735: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5736: (eval $ac_link) 2>&5
5737: ac_status=$?
5738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739: (exit $ac_status); } &&
5740: { ac_try='test -s conftest$ac_exeext'
5741: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742: (eval $ac_try) 2>&5
5743: ac_status=$?
5744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745: (exit $ac_status); }; }; then
5746: ac_cv_lib_dld_main=yes
5747: else
5748: echo "$as_me: failed program was:" >&5
5749: cat conftest.$ac_ext >&5
5750: ac_cv_lib_dld_main=no
5751: fi
5752: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5753: LIBS=$ac_check_lib_save_LIBS
5754: fi
5755: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5756: echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5757: if test $ac_cv_lib_dld_main = yes; then
5758: cat >>confdefs.h <<_ACEOF
5759: #define HAVE_LIBDLD 1
5760: _ACEOF
1.1 petere 5761:
5762: LIBS="-ldld $LIBS"
5763:
5764: fi
5765:
1.179 petere 5766:
5767: echo "$as_me:$LINENO: checking for main in -lld" >&5
5768: echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5769: if test "${ac_cv_lib_ld_main+set}" = set; then
5770: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 5771: else
1.179 petere 5772: ac_check_lib_save_LIBS=$LIBS
1.1 petere 5773: LIBS="-lld $LIBS"
1.179 petere 5774: cat >conftest.$ac_ext <<_ACEOF
5775: #line $LINENO "configure"
1.1 petere 5776: #include "confdefs.h"
5777:
5778:
1.179 petere 5779: #ifdef F77_DUMMY_MAIN
5780: # ifdef __cplusplus
5781: extern "C"
5782: # endif
5783: int F77_DUMMY_MAIN() { return 1; }
5784: #endif
5785: int
5786: main ()
5787: {
5788: main ();
5789: ;
5790: return 0;
5791: }
5792: _ACEOF
5793: rm -f conftest.$ac_objext conftest$ac_exeext
5794: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5795: (eval $ac_link) 2>&5
5796: ac_status=$?
5797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798: (exit $ac_status); } &&
5799: { ac_try='test -s conftest$ac_exeext'
5800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801: (eval $ac_try) 2>&5
5802: ac_status=$?
5803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804: (exit $ac_status); }; }; then
5805: ac_cv_lib_ld_main=yes
5806: else
5807: echo "$as_me: failed program was:" >&5
5808: cat conftest.$ac_ext >&5
5809: ac_cv_lib_ld_main=no
5810: fi
5811: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5812: LIBS=$ac_check_lib_save_LIBS
5813: fi
5814: echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5815: echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5816: if test $ac_cv_lib_ld_main = yes; then
5817: cat >>confdefs.h <<_ACEOF
5818: #define HAVE_LIBLD 1
5819: _ACEOF
1.1 petere 5820:
5821: LIBS="-lld $LIBS"
5822:
5823: fi
5824:
1.179 petere 5825:
5826: echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5827: echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5828: if test "${ac_cv_lib_compat_main+set}" = set; then
5829: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5830: else
1.179 petere 5831: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5832: LIBS="-lcompat $LIBS"
1.179 petere 5833: cat >conftest.$ac_ext <<_ACEOF
5834: #line $LINENO "configure"
1.28 petere 5835: #include "confdefs.h"
5836:
5837:
1.179 petere 5838: #ifdef F77_DUMMY_MAIN
5839: # ifdef __cplusplus
5840: extern "C"
5841: # endif
5842: int F77_DUMMY_MAIN() { return 1; }
5843: #endif
5844: int
5845: main ()
5846: {
5847: main ();
5848: ;
5849: return 0;
5850: }
5851: _ACEOF
5852: rm -f conftest.$ac_objext conftest$ac_exeext
5853: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854: (eval $ac_link) 2>&5
5855: ac_status=$?
5856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857: (exit $ac_status); } &&
5858: { ac_try='test -s conftest$ac_exeext'
5859: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860: (eval $ac_try) 2>&5
5861: ac_status=$?
5862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863: (exit $ac_status); }; }; then
5864: ac_cv_lib_compat_main=yes
5865: else
5866: echo "$as_me: failed program was:" >&5
5867: cat conftest.$ac_ext >&5
5868: ac_cv_lib_compat_main=no
5869: fi
5870: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871: LIBS=$ac_check_lib_save_LIBS
5872: fi
5873: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5874: echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5875: if test $ac_cv_lib_compat_main = yes; then
5876: cat >>confdefs.h <<_ACEOF
5877: #define HAVE_LIBCOMPAT 1
5878: _ACEOF
1.28 petere 5879:
5880: LIBS="-lcompat $LIBS"
5881:
5882: fi
5883:
1.179 petere 5884:
5885: echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5886: echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5887: if test "${ac_cv_lib_BSD_main+set}" = set; then
5888: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5889: else
1.179 petere 5890: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5891: LIBS="-lBSD $LIBS"
1.179 petere 5892: cat >conftest.$ac_ext <<_ACEOF
5893: #line $LINENO "configure"
1.28 petere 5894: #include "confdefs.h"
5895:
5896:
1.179 petere 5897: #ifdef F77_DUMMY_MAIN
5898: # ifdef __cplusplus
5899: extern "C"
5900: # endif
5901: int F77_DUMMY_MAIN() { return 1; }
5902: #endif
5903: int
5904: main ()
5905: {
5906: main ();
5907: ;
5908: return 0;
5909: }
5910: _ACEOF
5911: rm -f conftest.$ac_objext conftest$ac_exeext
5912: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913: (eval $ac_link) 2>&5
5914: ac_status=$?
5915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916: (exit $ac_status); } &&
5917: { ac_try='test -s conftest$ac_exeext'
5918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919: (eval $ac_try) 2>&5
5920: ac_status=$?
5921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922: (exit $ac_status); }; }; then
5923: ac_cv_lib_BSD_main=yes
5924: else
5925: echo "$as_me: failed program was:" >&5
5926: cat conftest.$ac_ext >&5
5927: ac_cv_lib_BSD_main=no
5928: fi
5929: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5930: LIBS=$ac_check_lib_save_LIBS
5931: fi
5932: echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5933: echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5934: if test $ac_cv_lib_BSD_main = yes; then
5935: cat >>confdefs.h <<_ACEOF
5936: #define HAVE_LIBBSD 1
5937: _ACEOF
1.28 petere 5938:
5939: LIBS="-lBSD $LIBS"
5940:
5941: fi
5942:
1.179 petere 5943:
5944: echo "$as_me:$LINENO: checking for main in -lgen" >&5
5945: echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5946: if test "${ac_cv_lib_gen_main+set}" = set; then
5947: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5948: else
1.179 petere 5949: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5950: LIBS="-lgen $LIBS"
1.179 petere 5951: cat >conftest.$ac_ext <<_ACEOF
5952: #line $LINENO "configure"
1.28 petere 5953: #include "confdefs.h"
5954:
5955:
1.179 petere 5956: #ifdef F77_DUMMY_MAIN
5957: # ifdef __cplusplus
5958: extern "C"
5959: # endif
5960: int F77_DUMMY_MAIN() { return 1; }
5961: #endif
5962: int
5963: main ()
5964: {
5965: main ();
5966: ;
5967: return 0;
5968: }
5969: _ACEOF
5970: rm -f conftest.$ac_objext conftest$ac_exeext
5971: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972: (eval $ac_link) 2>&5
5973: ac_status=$?
5974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975: (exit $ac_status); } &&
5976: { ac_try='test -s conftest$ac_exeext'
5977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978: (eval $ac_try) 2>&5
5979: ac_status=$?
5980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981: (exit $ac_status); }; }; then
5982: ac_cv_lib_gen_main=yes
5983: else
5984: echo "$as_me: failed program was:" >&5
5985: cat conftest.$ac_ext >&5
5986: ac_cv_lib_gen_main=no
5987: fi
5988: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989: LIBS=$ac_check_lib_save_LIBS
5990: fi
5991: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5992: echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5993: if test $ac_cv_lib_gen_main = yes; then
5994: cat >>confdefs.h <<_ACEOF
5995: #define HAVE_LIBGEN 1
5996: _ACEOF
1.28 petere 5997:
5998: LIBS="-lgen $LIBS"
5999:
6000: fi
6001:
1.179 petere 6002:
6003: echo "$as_me:$LINENO: checking for main in -lPW" >&5
6004: echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
6005: if test "${ac_cv_lib_PW_main+set}" = set; then
6006: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6007: else
1.179 petere 6008: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6009: LIBS="-lPW $LIBS"
1.179 petere 6010: cat >conftest.$ac_ext <<_ACEOF
6011: #line $LINENO "configure"
1.28 petere 6012: #include "confdefs.h"
6013:
6014:
1.179 petere 6015: #ifdef F77_DUMMY_MAIN
6016: # ifdef __cplusplus
6017: extern "C"
6018: # endif
6019: int F77_DUMMY_MAIN() { return 1; }
6020: #endif
6021: int
6022: main ()
6023: {
6024: main ();
6025: ;
6026: return 0;
6027: }
6028: _ACEOF
6029: rm -f conftest.$ac_objext conftest$ac_exeext
6030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031: (eval $ac_link) 2>&5
6032: ac_status=$?
6033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034: (exit $ac_status); } &&
6035: { ac_try='test -s conftest$ac_exeext'
6036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037: (eval $ac_try) 2>&5
6038: ac_status=$?
6039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040: (exit $ac_status); }; }; then
6041: ac_cv_lib_PW_main=yes
6042: else
6043: echo "$as_me: failed program was:" >&5
6044: cat conftest.$ac_ext >&5
6045: ac_cv_lib_PW_main=no
6046: fi
6047: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6048: LIBS=$ac_check_lib_save_LIBS
6049: fi
6050: echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
6051: echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
6052: if test $ac_cv_lib_PW_main = yes; then
6053: cat >>confdefs.h <<_ACEOF
6054: #define HAVE_LIBPW 1
6055: _ACEOF
1.28 petere 6056:
6057: LIBS="-lPW $LIBS"
6058:
6059: fi
6060:
1.179 petere 6061:
6062: echo "$as_me:$LINENO: checking for main in -lresolv" >&5
6063: echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6064: if test "${ac_cv_lib_resolv_main+set}" = set; then
6065: echo $ECHO_N "(cached) $ECHO_C" >&6
1.102 petere 6066: else
1.179 petere 6067: ac_check_lib_save_LIBS=$LIBS
1.102 petere 6068: LIBS="-lresolv $LIBS"
1.179 petere 6069: cat >conftest.$ac_ext <<_ACEOF
6070: #line $LINENO "configure"
1.102 petere 6071: #include "confdefs.h"
6072:
6073:
1.179 petere 6074: #ifdef F77_DUMMY_MAIN
6075: # ifdef __cplusplus
6076: extern "C"
6077: # endif
6078: int F77_DUMMY_MAIN() { return 1; }
6079: #endif
6080: int
6081: main ()
6082: {
6083: main ();
6084: ;
6085: return 0;
6086: }
6087: _ACEOF
6088: rm -f conftest.$ac_objext conftest$ac_exeext
6089: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090: (eval $ac_link) 2>&5
6091: ac_status=$?
6092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093: (exit $ac_status); } &&
6094: { ac_try='test -s conftest$ac_exeext'
6095: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096: (eval $ac_try) 2>&5
6097: ac_status=$?
6098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099: (exit $ac_status); }; }; then
6100: ac_cv_lib_resolv_main=yes
6101: else
6102: echo "$as_me: failed program was:" >&5
6103: cat conftest.$ac_ext >&5
6104: ac_cv_lib_resolv_main=no
6105: fi
6106: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107: LIBS=$ac_check_lib_save_LIBS
6108: fi
6109: echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6110: echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6111: if test $ac_cv_lib_resolv_main = yes; then
6112: cat >>confdefs.h <<_ACEOF
6113: #define HAVE_LIBRESOLV 1
6114: _ACEOF
1.102 petere 6115:
6116: LIBS="-lresolv $LIBS"
6117:
6118: fi
6119:
1.148 petere 6120: # QNX:
1.179 petere 6121:
6122: echo "$as_me:$LINENO: checking for main in -lunix" >&5
6123: echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6124: if test "${ac_cv_lib_unix_main+set}" = set; then
6125: echo $ECHO_N "(cached) $ECHO_C" >&6
1.111 petere 6126: else
1.179 petere 6127: ac_check_lib_save_LIBS=$LIBS
1.111 petere 6128: LIBS="-lunix $LIBS"
1.179 petere 6129: cat >conftest.$ac_ext <<_ACEOF
6130: #line $LINENO "configure"
1.111 petere 6131: #include "confdefs.h"
6132:
6133:
1.179 petere 6134: #ifdef F77_DUMMY_MAIN
6135: # ifdef __cplusplus
6136: extern "C"
6137: # endif
6138: int F77_DUMMY_MAIN() { return 1; }
6139: #endif
6140: int
6141: main ()
6142: {
6143: main ();
6144: ;
6145: return 0;
6146: }
6147: _ACEOF
6148: rm -f conftest.$ac_objext conftest$ac_exeext
6149: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150: (eval $ac_link) 2>&5
6151: ac_status=$?
6152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153: (exit $ac_status); } &&
6154: { ac_try='test -s conftest$ac_exeext'
6155: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156: (eval $ac_try) 2>&5
6157: ac_status=$?
6158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159: (exit $ac_status); }; }; then
6160: ac_cv_lib_unix_main=yes
6161: else
6162: echo "$as_me: failed program was:" >&5
6163: cat conftest.$ac_ext >&5
6164: ac_cv_lib_unix_main=no
6165: fi
6166: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6167: LIBS=$ac_check_lib_save_LIBS
6168: fi
6169: echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6170: echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6171: if test $ac_cv_lib_unix_main = yes; then
6172: cat >>confdefs.h <<_ACEOF
6173: #define HAVE_LIBUNIX 1
6174: _ACEOF
1.111 petere 6175:
6176: LIBS="-lunix $LIBS"
6177:
6178: fi
6179:
1.179 petere 6180: echo "$as_me:$LINENO: checking for library containing crypt" >&5
6181: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6182: if test "${ac_cv_search_crypt+set}" = set; then
6183: echo $ECHO_N "(cached) $ECHO_C" >&6
6184: else
6185: ac_func_search_save_LIBS=$LIBS
6186: ac_cv_search_crypt=no
6187: cat >conftest.$ac_ext <<_ACEOF
6188: #line $LINENO "configure"
6189: #include "confdefs.h"
1.28 petere 6190:
6191: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6192: #ifdef __cplusplus
6193: extern "C"
6194: #endif
1.28 petere 6195: /* We use char because int might match the return type of a gcc2
1.179 petere 6196: builtin and then its argument prototype would still apply. */
6197: char crypt ();
6198: #ifdef F77_DUMMY_MAIN
6199: # ifdef __cplusplus
6200: extern "C"
6201: # endif
6202: int F77_DUMMY_MAIN() { return 1; }
6203: #endif
6204: int
6205: main ()
6206: {
6207: crypt ();
6208: ;
6209: return 0;
6210: }
6211: _ACEOF
6212: rm -f conftest.$ac_objext conftest$ac_exeext
6213: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6214: (eval $ac_link) 2>&5
6215: ac_status=$?
6216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217: (exit $ac_status); } &&
6218: { ac_try='test -s conftest$ac_exeext'
6219: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220: (eval $ac_try) 2>&5
6221: ac_status=$?
6222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223: (exit $ac_status); }; }; then
1.28 petere 6224: ac_cv_search_crypt="none required"
6225: else
1.179 petere 6226: echo "$as_me: failed program was:" >&5
6227: cat conftest.$ac_ext >&5
1.28 petere 6228: fi
1.179 petere 6229: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230: if test "$ac_cv_search_crypt" = no; then
6231: for ac_lib in crypt; do
6232: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6233: cat >conftest.$ac_ext <<_ACEOF
6234: #line $LINENO "configure"
1.28 petere 6235: #include "confdefs.h"
1.179 petere 6236:
1.28 petere 6237: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6238: #ifdef __cplusplus
6239: extern "C"
6240: #endif
1.28 petere 6241: /* We use char because int might match the return type of a gcc2
1.179 petere 6242: builtin and then its argument prototype would still apply. */
6243: char crypt ();
6244: #ifdef F77_DUMMY_MAIN
6245: # ifdef __cplusplus
6246: extern "C"
6247: # endif
6248: int F77_DUMMY_MAIN() { return 1; }
6249: #endif
6250: int
6251: main ()
6252: {
6253: crypt ();
6254: ;
6255: return 0;
6256: }
6257: _ACEOF
6258: rm -f conftest.$ac_objext conftest$ac_exeext
6259: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260: (eval $ac_link) 2>&5
6261: ac_status=$?
6262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263: (exit $ac_status); } &&
6264: { ac_try='test -s conftest$ac_exeext'
6265: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266: (eval $ac_try) 2>&5
6267: ac_status=$?
6268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269: (exit $ac_status); }; }; then
6270: ac_cv_search_crypt="-l$ac_lib"
1.28 petere 6271: break
6272: else
1.179 petere 6273: echo "$as_me: failed program was:" >&5
6274: cat conftest.$ac_ext >&5
6275: fi
6276: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6277: done
1.28 petere 6278: fi
1.179 petere 6279: LIBS=$ac_func_search_save_LIBS
1.28 petere 6280: fi
1.179 petere 6281: echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6282: echo "${ECHO_T}$ac_cv_search_crypt" >&6
6283: if test "$ac_cv_search_crypt" != no; then
6284: test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1.28 petere 6285:
6286: fi
1.179 petere 6287:
1.148 petere 6288: # BeOS:
1.179 petere 6289:
6290: echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6291: echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6292: if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6294: else
1.179 petere 6295: ac_check_lib_save_LIBS=$LIBS
1.92 tgl 6296: LIBS="-lbind $LIBS"
1.179 petere 6297: cat >conftest.$ac_ext <<_ACEOF
6298: #line $LINENO "configure"
1.28 petere 6299: #include "confdefs.h"
1.179 petere 6300:
1.28 petere 6301: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6302: #ifdef __cplusplus
6303: extern "C"
6304: #endif
1.28 petere 6305: /* We use char because int might match the return type of a gcc2
1.179 petere 6306: builtin and then its argument prototype would still apply. */
6307: char __inet_ntoa ();
6308: #ifdef F77_DUMMY_MAIN
6309: # ifdef __cplusplus
6310: extern "C"
6311: # endif
6312: int F77_DUMMY_MAIN() { return 1; }
6313: #endif
6314: int
6315: main ()
6316: {
6317: __inet_ntoa ();
6318: ;
6319: return 0;
6320: }
6321: _ACEOF
6322: rm -f conftest.$ac_objext conftest$ac_exeext
6323: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6324: (eval $ac_link) 2>&5
6325: ac_status=$?
6326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327: (exit $ac_status); } &&
6328: { ac_try='test -s conftest$ac_exeext'
6329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330: (eval $ac_try) 2>&5
6331: ac_status=$?
6332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333: (exit $ac_status); }; }; then
6334: ac_cv_lib_bind___inet_ntoa=yes
6335: else
6336: echo "$as_me: failed program was:" >&5
6337: cat conftest.$ac_ext >&5
6338: ac_cv_lib_bind___inet_ntoa=no
6339: fi
6340: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6341: LIBS=$ac_check_lib_save_LIBS
6342: fi
6343: echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6344: echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6345: if test $ac_cv_lib_bind___inet_ntoa = yes; then
6346: cat >>confdefs.h <<_ACEOF
6347: #define HAVE_LIBBIND 1
6348: _ACEOF
1.28 petere 6349:
1.92 tgl 6350: LIBS="-lbind $LIBS"
1.28 petere 6351:
6352: fi
6353:
1.148 petere 6354: # Only consider libz to be present if we find <zlib.h> as well;
6355: # furthermore, check that <zlib.h> defines z_streamp (versions before
6356: # about 1.0.4 did not). While we could work around the lack of z_streamp,
6357: # it seems unwise to encourage people to use such old zlib versions...
1.179 petere 6358: cat >conftest.$ac_ext <<_ACEOF
6359: #line $LINENO "configure"
1.92 tgl 6360: #include "confdefs.h"
6361: #include <zlib.h>
1.179 petere 6362:
6363: _ACEOF
1.126 tgl 6364: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6365: egrep "z_streamp" >/dev/null 2>&1; then
1.179 petere 6366:
6367:
6368: echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6369: echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6370: if test "${ac_cv_lib_z_inflate+set}" = set; then
6371: echo $ECHO_N "(cached) $ECHO_C" >&6
1.57 momjian 6372: else
1.179 petere 6373: ac_check_lib_save_LIBS=$LIBS
1.92 tgl 6374: LIBS="-lz $LIBS"
1.179 petere 6375: cat >conftest.$ac_ext <<_ACEOF
6376: #line $LINENO "configure"
1.57 momjian 6377: #include "confdefs.h"
1.179 petere 6378:
1.59 petere 6379: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6380: #ifdef __cplusplus
6381: extern "C"
6382: #endif
1.59 petere 6383: /* We use char because int might match the return type of a gcc2
1.179 petere 6384: builtin and then its argument prototype would still apply. */
6385: char inflate ();
6386: #ifdef F77_DUMMY_MAIN
6387: # ifdef __cplusplus
6388: extern "C"
6389: # endif
6390: int F77_DUMMY_MAIN() { return 1; }
6391: #endif
6392: int
6393: main ()
6394: {
6395: inflate ();
6396: ;
6397: return 0;
6398: }
6399: _ACEOF
6400: rm -f conftest.$ac_objext conftest$ac_exeext
6401: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6402: (eval $ac_link) 2>&5
6403: ac_status=$?
6404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405: (exit $ac_status); } &&
6406: { ac_try='test -s conftest$ac_exeext'
6407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408: (eval $ac_try) 2>&5
6409: ac_status=$?
6410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411: (exit $ac_status); }; }; then
6412: ac_cv_lib_z_inflate=yes
6413: else
6414: echo "$as_me: failed program was:" >&5
6415: cat conftest.$ac_ext >&5
6416: ac_cv_lib_z_inflate=no
6417: fi
6418: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6419: LIBS=$ac_check_lib_save_LIBS
6420: fi
6421: echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6422: echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6423: if test $ac_cv_lib_z_inflate = yes; then
6424: cat >>confdefs.h <<_ACEOF
6425: #define HAVE_LIBZ 1
6426: _ACEOF
1.70 petere 6427:
1.92 tgl 6428: LIBS="-lz $LIBS"
6429:
6430: fi
6431:
1.70 petere 6432:
1.57 momjian 6433: fi
1.126 tgl 6434: rm -f conftest*
1.57 momjian 6435:
1.148 petere 6436: # Solaris:
1.179 petere 6437: echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6438: echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6439: if test "${ac_cv_search_fdatasync+set}" = set; then
6440: echo $ECHO_N "(cached) $ECHO_C" >&6
6441: else
6442: ac_func_search_save_LIBS=$LIBS
6443: ac_cv_search_fdatasync=no
6444: cat >conftest.$ac_ext <<_ACEOF
6445: #line $LINENO "configure"
6446: #include "confdefs.h"
1.28 petere 6447:
1.148 petere 6448: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6449: #ifdef __cplusplus
6450: extern "C"
6451: #endif
1.148 petere 6452: /* We use char because int might match the return type of a gcc2
1.179 petere 6453: builtin and then its argument prototype would still apply. */
6454: char fdatasync ();
6455: #ifdef F77_DUMMY_MAIN
6456: # ifdef __cplusplus
6457: extern "C"
6458: # endif
6459: int F77_DUMMY_MAIN() { return 1; }
6460: #endif
6461: int
6462: main ()
6463: {
6464: fdatasync ();
6465: ;
6466: return 0;
6467: }
6468: _ACEOF
6469: rm -f conftest.$ac_objext conftest$ac_exeext
6470: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471: (eval $ac_link) 2>&5
6472: ac_status=$?
6473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474: (exit $ac_status); } &&
6475: { ac_try='test -s conftest$ac_exeext'
6476: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477: (eval $ac_try) 2>&5
6478: ac_status=$?
6479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480: (exit $ac_status); }; }; then
1.148 petere 6481: ac_cv_search_fdatasync="none required"
6482: else
1.179 petere 6483: echo "$as_me: failed program was:" >&5
6484: cat conftest.$ac_ext >&5
1.148 petere 6485: fi
1.179 petere 6486: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6487: if test "$ac_cv_search_fdatasync" = no; then
6488: for ac_lib in rt posix4; do
6489: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6490: cat >conftest.$ac_ext <<_ACEOF
6491: #line $LINENO "configure"
1.148 petere 6492: #include "confdefs.h"
1.179 petere 6493:
1.148 petere 6494: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6495: #ifdef __cplusplus
6496: extern "C"
6497: #endif
1.148 petere 6498: /* We use char because int might match the return type of a gcc2
1.179 petere 6499: builtin and then its argument prototype would still apply. */
6500: char fdatasync ();
6501: #ifdef F77_DUMMY_MAIN
6502: # ifdef __cplusplus
6503: extern "C"
6504: # endif
6505: int F77_DUMMY_MAIN() { return 1; }
6506: #endif
6507: int
6508: main ()
6509: {
6510: fdatasync ();
6511: ;
6512: return 0;
6513: }
6514: _ACEOF
6515: rm -f conftest.$ac_objext conftest$ac_exeext
6516: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517: (eval $ac_link) 2>&5
6518: ac_status=$?
6519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520: (exit $ac_status); } &&
6521: { ac_try='test -s conftest$ac_exeext'
6522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523: (eval $ac_try) 2>&5
6524: ac_status=$?
6525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526: (exit $ac_status); }; }; then
6527: ac_cv_search_fdatasync="-l$ac_lib"
1.148 petere 6528: break
6529: else
1.179 petere 6530: echo "$as_me: failed program was:" >&5
6531: cat conftest.$ac_ext >&5
6532: fi
6533: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6534: done
1.148 petere 6535: fi
1.179 petere 6536: LIBS=$ac_func_search_save_LIBS
1.148 petere 6537: fi
1.179 petere 6538: echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6539: echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6540: if test "$ac_cv_search_fdatasync" != no; then
6541: test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
1.148 petere 6542:
6543: fi
1.62 momjian 6544:
1.179 petere 6545:
1.28 petere 6546: if test "$with_krb4" = yes ; then
1.179 petere 6547:
6548: echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6549: echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6550: if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6551: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6552: else
1.179 petere 6553: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6554: LIBS="-ldes $LIBS"
1.179 petere 6555: cat >conftest.$ac_ext <<_ACEOF
6556: #line $LINENO "configure"
1.28 petere 6557: #include "confdefs.h"
1.179 petere 6558:
1.28 petere 6559: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6560: #ifdef __cplusplus
6561: extern "C"
6562: #endif
1.28 petere 6563: /* We use char because int might match the return type of a gcc2
1.179 petere 6564: builtin and then its argument prototype would still apply. */
6565: char des_encrypt ();
6566: #ifdef F77_DUMMY_MAIN
6567: # ifdef __cplusplus
6568: extern "C"
6569: # endif
6570: int F77_DUMMY_MAIN() { return 1; }
6571: #endif
6572: int
6573: main ()
6574: {
6575: des_encrypt ();
6576: ;
6577: return 0;
6578: }
6579: _ACEOF
6580: rm -f conftest.$ac_objext conftest$ac_exeext
6581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582: (eval $ac_link) 2>&5
6583: ac_status=$?
6584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585: (exit $ac_status); } &&
6586: { ac_try='test -s conftest$ac_exeext'
6587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588: (eval $ac_try) 2>&5
6589: ac_status=$?
6590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591: (exit $ac_status); }; }; then
6592: ac_cv_lib_des_des_encrypt=yes
6593: else
6594: echo "$as_me: failed program was:" >&5
6595: cat conftest.$ac_ext >&5
6596: ac_cv_lib_des_des_encrypt=no
6597: fi
6598: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599: LIBS=$ac_check_lib_save_LIBS
6600: fi
6601: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6602: echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6603: if test $ac_cv_lib_des_des_encrypt = yes; then
6604: cat >>confdefs.h <<_ACEOF
6605: #define HAVE_LIBDES 1
6606: _ACEOF
1.28 petere 6607:
6608: LIBS="-ldes $LIBS"
6609:
6610: else
1.179 petere 6611: { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6612: echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6613: { (exit 1); exit 1; }; }
1.28 petere 6614: fi
6615:
1.179 petere 6616:
6617: echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6618: echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6619: if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6620: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6621: else
1.179 petere 6622: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6623: LIBS="-lkrb $LIBS"
1.179 petere 6624: cat >conftest.$ac_ext <<_ACEOF
6625: #line $LINENO "configure"
1.28 petere 6626: #include "confdefs.h"
1.179 petere 6627:
1.28 petere 6628: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6629: #ifdef __cplusplus
6630: extern "C"
6631: #endif
1.28 petere 6632: /* We use char because int might match the return type of a gcc2
1.179 petere 6633: builtin and then its argument prototype would still apply. */
6634: char krb_sendauth ();
6635: #ifdef F77_DUMMY_MAIN
6636: # ifdef __cplusplus
6637: extern "C"
6638: # endif
6639: int F77_DUMMY_MAIN() { return 1; }
6640: #endif
6641: int
6642: main ()
6643: {
6644: krb_sendauth ();
6645: ;
6646: return 0;
6647: }
6648: _ACEOF
6649: rm -f conftest.$ac_objext conftest$ac_exeext
6650: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651: (eval $ac_link) 2>&5
6652: ac_status=$?
6653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654: (exit $ac_status); } &&
6655: { ac_try='test -s conftest$ac_exeext'
6656: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657: (eval $ac_try) 2>&5
6658: ac_status=$?
6659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660: (exit $ac_status); }; }; then
6661: ac_cv_lib_krb_krb_sendauth=yes
6662: else
6663: echo "$as_me: failed program was:" >&5
6664: cat conftest.$ac_ext >&5
6665: ac_cv_lib_krb_krb_sendauth=no
6666: fi
6667: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6668: LIBS=$ac_check_lib_save_LIBS
6669: fi
6670: echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6671: echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6672: if test $ac_cv_lib_krb_krb_sendauth = yes; then
6673: cat >>confdefs.h <<_ACEOF
6674: #define HAVE_LIBKRB 1
6675: _ACEOF
1.28 petere 6676:
6677: LIBS="-lkrb $LIBS"
6678:
6679: else
1.179 petere 6680: { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6681: echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6682: { (exit 1); exit 1; }; }
1.28 petere 6683: fi
6684:
6685: fi
6686:
6687: if test "$with_krb5" = yes ; then
1.179 petere 6688: echo "$as_me:$LINENO: checking for library containing com_err" >&5
6689: echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6690: if test "${ac_cv_search_com_err+set}" = set; then
6691: echo $ECHO_N "(cached) $ECHO_C" >&6
6692: else
6693: ac_func_search_save_LIBS=$LIBS
6694: ac_cv_search_com_err=no
6695: cat >conftest.$ac_ext <<_ACEOF
6696: #line $LINENO "configure"
1.1 petere 6697: #include "confdefs.h"
1.179 petere 6698:
1.70 petere 6699: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6700: #ifdef __cplusplus
6701: extern "C"
6702: #endif
1.70 petere 6703: /* We use char because int might match the return type of a gcc2
1.179 petere 6704: builtin and then its argument prototype would still apply. */
6705: char com_err ();
6706: #ifdef F77_DUMMY_MAIN
6707: # ifdef __cplusplus
6708: extern "C"
6709: # endif
6710: int F77_DUMMY_MAIN() { return 1; }
6711: #endif
6712: int
6713: main ()
6714: {
6715: com_err ();
6716: ;
6717: return 0;
6718: }
6719: _ACEOF
6720: rm -f conftest.$ac_objext conftest$ac_exeext
6721: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722: (eval $ac_link) 2>&5
6723: ac_status=$?
6724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725: (exit $ac_status); } &&
6726: { ac_try='test -s conftest$ac_exeext'
6727: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728: (eval $ac_try) 2>&5
6729: ac_status=$?
6730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731: (exit $ac_status); }; }; then
1.174 petere 6732: ac_cv_search_com_err="none required"
1.1 petere 6733: else
1.179 petere 6734: echo "$as_me: failed program was:" >&5
6735: cat conftest.$ac_ext >&5
1.1 petere 6736: fi
1.179 petere 6737: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6738: if test "$ac_cv_search_com_err" = no; then
6739: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6740: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6741: cat >conftest.$ac_ext <<_ACEOF
6742: #line $LINENO "configure"
1.174 petere 6743: #include "confdefs.h"
1.179 petere 6744:
1.174 petere 6745: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6746: #ifdef __cplusplus
6747: extern "C"
6748: #endif
1.174 petere 6749: /* We use char because int might match the return type of a gcc2
1.179 petere 6750: builtin and then its argument prototype would still apply. */
6751: char com_err ();
6752: #ifdef F77_DUMMY_MAIN
6753: # ifdef __cplusplus
6754: extern "C"
6755: # endif
6756: int F77_DUMMY_MAIN() { return 1; }
6757: #endif
6758: int
6759: main ()
6760: {
6761: com_err ();
6762: ;
6763: return 0;
6764: }
6765: _ACEOF
6766: rm -f conftest.$ac_objext conftest$ac_exeext
6767: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6768: (eval $ac_link) 2>&5
6769: ac_status=$?
6770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771: (exit $ac_status); } &&
6772: { ac_try='test -s conftest$ac_exeext'
6773: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774: (eval $ac_try) 2>&5
6775: ac_status=$?
6776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777: (exit $ac_status); }; }; then
6778: ac_cv_search_com_err="-l$ac_lib"
1.174 petere 6779: break
1.1 petere 6780: else
1.179 petere 6781: echo "$as_me: failed program was:" >&5
6782: cat conftest.$ac_ext >&5
6783: fi
6784: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785: done
1.174 petere 6786: fi
1.179 petere 6787: LIBS=$ac_func_search_save_LIBS
1.1 petere 6788: fi
1.179 petere 6789: echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6790: echo "${ECHO_T}$ac_cv_search_com_err" >&6
6791: if test "$ac_cv_search_com_err" != no; then
6792: test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
1.1 petere 6793:
1.179 petere 6794: else
6795: { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6796: echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6797: { (exit 1); exit 1; }; }
1.174 petere 6798: fi
1.179 petere 6799:
6800: echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6801: echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6802: if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6803: echo $ECHO_N "(cached) $ECHO_C" >&6
6804: else
6805: ac_func_search_save_LIBS=$LIBS
6806: ac_cv_search_krb5_encrypt=no
6807: cat >conftest.$ac_ext <<_ACEOF
6808: #line $LINENO "configure"
1.1 petere 6809: #include "confdefs.h"
1.179 petere 6810:
1.70 petere 6811: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6812: #ifdef __cplusplus
6813: extern "C"
6814: #endif
1.70 petere 6815: /* We use char because int might match the return type of a gcc2
1.179 petere 6816: builtin and then its argument prototype would still apply. */
6817: char krb5_encrypt ();
6818: #ifdef F77_DUMMY_MAIN
6819: # ifdef __cplusplus
6820: extern "C"
6821: # endif
6822: int F77_DUMMY_MAIN() { return 1; }
6823: #endif
6824: int
6825: main ()
6826: {
6827: krb5_encrypt ();
6828: ;
6829: return 0;
6830: }
6831: _ACEOF
6832: rm -f conftest.$ac_objext conftest$ac_exeext
6833: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834: (eval $ac_link) 2>&5
6835: ac_status=$?
6836: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837: (exit $ac_status); } &&
6838: { ac_try='test -s conftest$ac_exeext'
6839: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840: (eval $ac_try) 2>&5
6841: ac_status=$?
6842: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843: (exit $ac_status); }; }; then
1.174 petere 6844: ac_cv_search_krb5_encrypt="none required"
1.1 petere 6845: else
1.179 petere 6846: echo "$as_me: failed program was:" >&5
6847: cat conftest.$ac_ext >&5
1.1 petere 6848: fi
1.179 petere 6849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6850: if test "$ac_cv_search_krb5_encrypt" = no; then
6851: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6852: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6853: cat >conftest.$ac_ext <<_ACEOF
6854: #line $LINENO "configure"
1.70 petere 6855: #include "confdefs.h"
1.179 petere 6856:
1.70 petere 6857: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6858: #ifdef __cplusplus
6859: extern "C"
6860: #endif
1.70 petere 6861: /* We use char because int might match the return type of a gcc2
1.179 petere 6862: builtin and then its argument prototype would still apply. */
6863: char krb5_encrypt ();
6864: #ifdef F77_DUMMY_MAIN
6865: # ifdef __cplusplus
6866: extern "C"
6867: # endif
6868: int F77_DUMMY_MAIN() { return 1; }
6869: #endif
6870: int
6871: main ()
6872: {
6873: krb5_encrypt ();
6874: ;
6875: return 0;
6876: }
6877: _ACEOF
6878: rm -f conftest.$ac_objext conftest$ac_exeext
6879: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880: (eval $ac_link) 2>&5
6881: ac_status=$?
6882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883: (exit $ac_status); } &&
6884: { ac_try='test -s conftest$ac_exeext'
6885: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886: (eval $ac_try) 2>&5
6887: ac_status=$?
6888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889: (exit $ac_status); }; }; then
6890: ac_cv_search_krb5_encrypt="-l$ac_lib"
1.174 petere 6891: break
1.70 petere 6892: else
1.179 petere 6893: echo "$as_me: failed program was:" >&5
6894: cat conftest.$ac_ext >&5
6895: fi
6896: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6897: done
1.70 petere 6898: fi
1.179 petere 6899: LIBS=$ac_func_search_save_LIBS
1.70 petere 6900: fi
1.179 petere 6901: echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6902: echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6903: if test "$ac_cv_search_krb5_encrypt" != no; then
6904: test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
1.70 petere 6905:
1.179 petere 6906: else
6907: { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6908: echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6909: { (exit 1); exit 1; }; }
1.1 petere 6910: fi
1.179 petere 6911:
6912: echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6913: echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6914: if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6915: echo $ECHO_N "(cached) $ECHO_C" >&6
6916: else
6917: ac_func_search_save_LIBS=$LIBS
6918: ac_cv_search_krb5_sendauth=no
6919: cat >conftest.$ac_ext <<_ACEOF
6920: #line $LINENO "configure"
1.1 petere 6921: #include "confdefs.h"
1.179 petere 6922:
1.70 petere 6923: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6924: #ifdef __cplusplus
6925: extern "C"
6926: #endif
1.70 petere 6927: /* We use char because int might match the return type of a gcc2
1.179 petere 6928: builtin and then its argument prototype would still apply. */
6929: char krb5_sendauth ();
6930: #ifdef F77_DUMMY_MAIN
6931: # ifdef __cplusplus
6932: extern "C"
6933: # endif
6934: int F77_DUMMY_MAIN() { return 1; }
6935: #endif
6936: int
6937: main ()
6938: {
6939: krb5_sendauth ();
6940: ;
6941: return 0;
6942: }
6943: _ACEOF
6944: rm -f conftest.$ac_objext conftest$ac_exeext
6945: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946: (eval $ac_link) 2>&5
6947: ac_status=$?
6948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949: (exit $ac_status); } &&
6950: { ac_try='test -s conftest$ac_exeext'
6951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952: (eval $ac_try) 2>&5
6953: ac_status=$?
6954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955: (exit $ac_status); }; }; then
1.174 petere 6956: ac_cv_search_krb5_sendauth="none required"
1.1 petere 6957: else
1.179 petere 6958: echo "$as_me: failed program was:" >&5
6959: cat conftest.$ac_ext >&5
1.1 petere 6960: fi
1.179 petere 6961: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6962: if test "$ac_cv_search_krb5_sendauth" = no; then
6963: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6964: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6965: cat >conftest.$ac_ext <<_ACEOF
6966: #line $LINENO "configure"
1.174 petere 6967: #include "confdefs.h"
1.179 petere 6968:
1.174 petere 6969: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6970: #ifdef __cplusplus
6971: extern "C"
6972: #endif
1.174 petere 6973: /* We use char because int might match the return type of a gcc2
1.179 petere 6974: builtin and then its argument prototype would still apply. */
6975: char krb5_sendauth ();
6976: #ifdef F77_DUMMY_MAIN
6977: # ifdef __cplusplus
6978: extern "C"
6979: # endif
6980: int F77_DUMMY_MAIN() { return 1; }
6981: #endif
6982: int
6983: main ()
6984: {
6985: krb5_sendauth ();
6986: ;
6987: return 0;
6988: }
6989: _ACEOF
6990: rm -f conftest.$ac_objext conftest$ac_exeext
6991: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992: (eval $ac_link) 2>&5
6993: ac_status=$?
6994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995: (exit $ac_status); } &&
6996: { ac_try='test -s conftest$ac_exeext'
6997: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998: (eval $ac_try) 2>&5
6999: ac_status=$?
7000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001: (exit $ac_status); }; }; then
7002: ac_cv_search_krb5_sendauth="-l$ac_lib"
1.174 petere 7003: break
1.1 petere 7004: else
1.179 petere 7005: echo "$as_me: failed program was:" >&5
7006: cat conftest.$ac_ext >&5
7007: fi
7008: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7009: done
1.174 petere 7010: fi
1.179 petere 7011: LIBS=$ac_func_search_save_LIBS
1.1 petere 7012: fi
1.179 petere 7013: echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7014: echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7015: if test "$ac_cv_search_krb5_sendauth" != no; then
7016: test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
1.1 petere 7017:
1.179 petere 7018: else
7019: { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7020: echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7021: { (exit 1); exit 1; }; }
1.174 petere 7022: fi
1.179 petere 7023:
1.28 petere 7024: fi
7025:
7026: if test "$with_openssl" = yes ; then
1.179 petere 7027:
7028: echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7029: echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7030: if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7031: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 7032: else
1.179 petere 7033: ac_check_lib_save_LIBS=$LIBS
1.28 petere 7034: LIBS="-lcrypto $LIBS"
1.179 petere 7035: cat >conftest.$ac_ext <<_ACEOF
7036: #line $LINENO "configure"
1.1 petere 7037: #include "confdefs.h"
1.179 petere 7038:
1.28 petere 7039: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 7040: #ifdef __cplusplus
7041: extern "C"
7042: #endif
1.28 petere 7043: /* We use char because int might match the return type of a gcc2
1.179 petere 7044: builtin and then its argument prototype would still apply. */
7045: char CRYPTO_new_ex_data ();
7046: #ifdef F77_DUMMY_MAIN
7047: # ifdef __cplusplus
7048: extern "C"
7049: # endif
7050: int F77_DUMMY_MAIN() { return 1; }
7051: #endif
7052: int
7053: main ()
7054: {
7055: CRYPTO_new_ex_data ();
7056: ;
7057: return 0;
7058: }
7059: _ACEOF
7060: rm -f conftest.$ac_objext conftest$ac_exeext
7061: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062: (eval $ac_link) 2>&5
7063: ac_status=$?
7064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065: (exit $ac_status); } &&
7066: { ac_try='test -s conftest$ac_exeext'
7067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068: (eval $ac_try) 2>&5
7069: ac_status=$?
7070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071: (exit $ac_status); }; }; then
7072: ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7073: else
7074: echo "$as_me: failed program was:" >&5
7075: cat conftest.$ac_ext >&5
7076: ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7077: fi
7078: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7079: LIBS=$ac_check_lib_save_LIBS
7080: fi
7081: echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7082: echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7083: if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7084: cat >>confdefs.h <<_ACEOF
7085: #define HAVE_LIBCRYPTO 1
7086: _ACEOF
1.1 petere 7087:
1.28 petere 7088: LIBS="-lcrypto $LIBS"
1.1 petere 7089:
7090: else
1.179 petere 7091: { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7092: echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7093: { (exit 1); exit 1; }; }
1.1 petere 7094: fi
7095:
1.179 petere 7096:
7097: echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7098: echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7099: if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7100: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 7101: else
1.179 petere 7102: ac_check_lib_save_LIBS=$LIBS
1.28 petere 7103: LIBS="-lssl $LIBS"
1.179 petere 7104: cat >conftest.$ac_ext <<_ACEOF
7105: #line $LINENO "configure"
1.1 petere 7106: #include "confdefs.h"
1.179 petere 7107:
1.21 petere 7108: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 7109: #ifdef __cplusplus
7110: extern "C"
7111: #endif
1.21 petere 7112: /* We use char because int might match the return type of a gcc2
1.179 petere 7113: builtin and then its argument prototype would still apply. */
7114: char SSL_library_init ();
7115: #ifdef F77_DUMMY_MAIN
7116: # ifdef __cplusplus
7117: extern "C"
7118: # endif
7119: int F77_DUMMY_MAIN() { return 1; }
7120: #endif
7121: int
7122: main ()
7123: {
7124: SSL_library_init ();
7125: ;
7126: return 0;
7127: }
7128: _ACEOF
7129: rm -f conftest.$ac_objext conftest$ac_exeext
7130: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131: (eval $ac_link) 2>&5
7132: ac_status=$?
7133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134: (exit $ac_status); } &&
7135: { ac_try='test -s conftest$ac_exeext'
7136: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137: (eval $ac_try) 2>&5
7138: ac_status=$?
7139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140: (exit $ac_status); }; }; then
7141: ac_cv_lib_ssl_SSL_library_init=yes
7142: else
7143: echo "$as_me: failed program was:" >&5
7144: cat conftest.$ac_ext >&5
7145: ac_cv_lib_ssl_SSL_library_init=no
7146: fi
7147: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7148: LIBS=$ac_check_lib_save_LIBS
7149: fi
7150: echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7151: echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7152: if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7153: cat >>confdefs.h <<_ACEOF
7154: #define HAVE_LIBSSL 1
7155: _ACEOF
1.28 petere 7156:
7157: LIBS="-lssl $LIBS"
7158:
1.1 petere 7159: else
1.179 petere 7160: { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7161: echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7162: { (exit 1); exit 1; }; }
1.21 petere 7163: fi
1.28 petere 7164:
1.1 petere 7165: fi
7166:
1.146 momjian 7167: if test "$with_pam" = yes ; then
1.179 petere 7168:
7169: echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7170: echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7171: if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7172: echo $ECHO_N "(cached) $ECHO_C" >&6
1.146 momjian 7173: else
1.179 petere 7174: ac_check_lib_save_LIBS=$LIBS
1.146 momjian 7175: LIBS="-lpam $LIBS"
1.179 petere 7176: cat >conftest.$ac_ext <<_ACEOF
7177: #line $LINENO "configure"
1.146 momjian 7178: #include "confdefs.h"
1.179 petere 7179:
1.146 momjian 7180: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 7181: #ifdef __cplusplus
7182: extern "C"
7183: #endif
1.146 momjian 7184: /* We use char because int might match the return type of a gcc2
1.179 petere 7185: builtin and then its argument prototype would still apply. */
7186: char pam_start ();
7187: #ifdef F77_DUMMY_MAIN
7188: # ifdef __cplusplus
7189: extern "C"
7190: # endif
7191: int F77_DUMMY_MAIN() { return 1; }
7192: #endif
7193: int
7194: main ()
7195: {
7196: pam_start ();
7197: ;
7198: return 0;
7199: }
7200: _ACEOF
7201: rm -f conftest.$ac_objext conftest$ac_exeext
7202: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203: (eval $ac_link) 2>&5
7204: ac_status=$?
7205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206: (exit $ac_status); } &&
7207: { ac_try='test -s conftest$ac_exeext'
7208: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209: (eval $ac_try) 2>&5
7210: ac_status=$?
7211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212: (exit $ac_status); }; }; then
7213: ac_cv_lib_pam_pam_start=yes
7214: else
7215: echo "$as_me: failed program was:" >&5
7216: cat conftest.$ac_ext >&5
7217: ac_cv_lib_pam_pam_start=no
7218: fi
7219: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7220: LIBS=$ac_check_lib_save_LIBS
7221: fi
7222: echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7223: echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7224: if test $ac_cv_lib_pam_pam_start = yes; then
7225: cat >>confdefs.h <<_ACEOF
7226: #define HAVE_LIBPAM 1
7227: _ACEOF
1.146 momjian 7228:
7229: LIBS="-lpam $LIBS"
7230:
7231: else
1.179 petere 7232: { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7233: echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7234: { (exit 1); exit 1; }; }
1.146 momjian 7235: fi
7236:
7237: fi
7238:
1.181 petere 7239:
7240: ##
7241: ## Header files
7242: ##
7243: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.179 petere 7244: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7245: if test "${ac_cv_header_stdc+set}" = set; then
7246: echo $ECHO_N "(cached) $ECHO_C" >&6
7247: else
7248: cat >conftest.$ac_ext <<_ACEOF
7249: #line $LINENO "configure"
1.135 petere 7250: #include "confdefs.h"
1.179 petere 7251: #include <stdlib.h>
7252: #include <stdarg.h>
7253: #include <string.h>
7254: #include <float.h>
7255:
7256: _ACEOF
7257: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7258: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7259: ac_status=$?
7260: egrep -v '^ *\+' conftest.er1 >conftest.err
7261: rm -f conftest.er1
7262: cat conftest.err >&5
7263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264: (exit $ac_status); } >/dev/null; then
7265: if test -s conftest.err; then
7266: ac_cpp_err=$ac_c_preproc_warn_flag
7267: else
7268: ac_cpp_err=
7269: fi
7270: else
7271: ac_cpp_err=yes
7272: fi
7273: if test -z "$ac_cpp_err"; then
7274: ac_cv_header_stdc=yes
1.135 petere 7275: else
1.179 petere 7276: echo "$as_me: failed program was:" >&5
1.135 petere 7277: cat conftest.$ac_ext >&5
1.179 petere 7278: ac_cv_header_stdc=no
1.135 petere 7279: fi
1.179 petere 7280: rm -f conftest.err conftest.$ac_ext
7281:
7282: if test $ac_cv_header_stdc = yes; then
7283: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7284: cat >conftest.$ac_ext <<_ACEOF
7285: #line $LINENO "configure"
1.135 petere 7286: #include "confdefs.h"
1.179 petere 7287: #include <string.h>
1.135 petere 7288:
1.179 petere 7289: _ACEOF
7290: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291: egrep "memchr" >/dev/null 2>&1; then
7292: :
1.135 petere 7293: else
1.179 petere 7294: ac_cv_header_stdc=no
1.135 petere 7295: fi
7296: rm -f conftest*
1.179 petere 7297:
1.135 petere 7298: fi
7299:
1.179 petere 7300: if test $ac_cv_header_stdc = yes; then
7301: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7302: cat >conftest.$ac_ext <<_ACEOF
7303: #line $LINENO "configure"
1.135 petere 7304: #include "confdefs.h"
1.179 petere 7305: #include <stdlib.h>
7306:
7307: _ACEOF
7308: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309: egrep "free" >/dev/null 2>&1; then
7310: :
1.135 petere 7311: else
1.179 petere 7312: ac_cv_header_stdc=no
1.135 petere 7313: fi
7314: rm -f conftest*
1.179 petere 7315:
1.135 petere 7316: fi
1.179 petere 7317:
7318: if test $ac_cv_header_stdc = yes; then
7319: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7320: if test "$cross_compiling" = yes; then
1.135 petere 7321: :
7322: else
1.179 petere 7323: cat >conftest.$ac_ext <<_ACEOF
7324: #line $LINENO "configure"
7325: #include "confdefs.h"
7326: #include <ctype.h>
7327: #if ((' ' & 0x0FF) == 0x020)
7328: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7329: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7330: #else
7331: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7332: || ('j' <= (c) && (c) <= 'r') \
7333: || ('s' <= (c) && (c) <= 'z'))
7334: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7335: #endif
1.135 petere 7336:
1.179 petere 7337: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7338: int
7339: main ()
7340: {
7341: int i;
7342: for (i = 0; i < 256; i++)
7343: if (XOR (islower (i), ISLOWER (i))
7344: || toupper (i) != TOUPPER (i))
7345: exit(2);
7346: exit (0);
7347: }
7348: _ACEOF
7349: rm -f conftest$ac_exeext
7350: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351: (eval $ac_link) 2>&5
7352: ac_status=$?
7353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356: (eval $ac_try) 2>&5
7357: ac_status=$?
7358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359: (exit $ac_status); }; }; then
7360: :
1.135 petere 7361: else
1.179 petere 7362: echo "$as_me: program exited with status $ac_status" >&5
7363: echo "$as_me: failed program was:" >&5
7364: cat conftest.$ac_ext >&5
7365: ( exit $ac_status )
7366: ac_cv_header_stdc=no
7367: fi
7368: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.135 petere 7369: fi
7370: fi
7371: fi
1.179 petere 7372: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7373: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7374: if test $ac_cv_header_stdc = yes; then
1.135 petere 7375:
1.179 petere 7376: cat >>confdefs.h <<\_ACEOF
7377: #define STDC_HEADERS 1
7378: _ACEOF
1.135 petere 7379:
7380: fi
7381:
1.179 petere 7382: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7383:
7384:
7385:
7386:
7387:
1.135 petere 7388:
7389:
7390:
7391:
1.179 petere 7392: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7393: inttypes.h stdint.h unistd.h
7394: do
7395: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396: echo "$as_me:$LINENO: checking for $ac_header" >&5
7397: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7398: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399: echo $ECHO_N "(cached) $ECHO_C" >&6
7400: else
7401: cat >conftest.$ac_ext <<_ACEOF
7402: #line $LINENO "configure"
7403: #include "confdefs.h"
7404: $ac_includes_default
7405:
7406: #include <$ac_header>
7407: _ACEOF
7408: rm -f conftest.$ac_objext
7409: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410: (eval $ac_compile) 2>&5
7411: ac_status=$?
7412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413: (exit $ac_status); } &&
7414: { ac_try='test -s conftest.$ac_objext'
7415: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416: (eval $ac_try) 2>&5
7417: ac_status=$?
7418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419: (exit $ac_status); }; }; then
7420: eval "$as_ac_Header=yes"
7421: else
7422: echo "$as_me: failed program was:" >&5
7423: cat conftest.$ac_ext >&5
7424: eval "$as_ac_Header=no"
7425: fi
7426: rm -f conftest.$ac_objext conftest.$ac_ext
7427: fi
7428: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7429: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7430: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7431: cat >>confdefs.h <<_ACEOF
7432: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7433: _ACEOF
1.135 petere 7434:
7435: fi
7436:
1.1 petere 7437: done
7438:
1.29 petere 7439:
1.179 petere 7440:
1.181 petere 7441:
7442:
7443:
7444:
7445:
7446:
7447:
7448:
7449:
7450:
7451:
7452:
7453:
7454:
7455:
7456:
7457:
1.182 petere 7458: 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
1.181 petere 7459: do
7460: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7461: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462: echo "$as_me:$LINENO: checking for $ac_header" >&5
7463: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7464: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7465: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 7466: fi
7467: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7468: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7469: else
1.181 petere 7470: # Is the header compilable?
7471: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7472: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7473: cat >conftest.$ac_ext <<_ACEOF
7474: #line $LINENO "configure"
1.1 petere 7475: #include "confdefs.h"
1.181 petere 7476: $ac_includes_default
7477: #include <$ac_header>
1.179 petere 7478: _ACEOF
1.181 petere 7479: rm -f conftest.$ac_objext
7480: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481: (eval $ac_compile) 2>&5
1.179 petere 7482: ac_status=$?
7483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484: (exit $ac_status); } &&
1.181 petere 7485: { ac_try='test -s conftest.$ac_objext'
1.179 petere 7486: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487: (eval $ac_try) 2>&5
7488: ac_status=$?
7489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490: (exit $ac_status); }; }; then
1.181 petere 7491: ac_header_compiler=yes
1.1 petere 7492: else
1.179 petere 7493: echo "$as_me: failed program was:" >&5
7494: cat conftest.$ac_ext >&5
1.181 petere 7495: ac_header_compiler=no
1.68 tgl 7496: fi
1.181 petere 7497: rm -f conftest.$ac_objext conftest.$ac_ext
7498: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7499: echo "${ECHO_T}$ac_header_compiler" >&6
7500:
7501: # Is the header present?
7502: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7503: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7504: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 7505: #line $LINENO "configure"
1.68 tgl 7506: #include "confdefs.h"
1.181 petere 7507: #include <$ac_header>
1.179 petere 7508: _ACEOF
1.181 petere 7509: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.179 petere 7511: ac_status=$?
1.181 petere 7512: egrep -v '^ *\+' conftest.er1 >conftest.err
7513: rm -f conftest.er1
7514: cat conftest.err >&5
1.179 petere 7515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.181 petere 7516: (exit $ac_status); } >/dev/null; then
7517: if test -s conftest.err; then
7518: ac_cpp_err=$ac_c_preproc_warn_flag
7519: else
7520: ac_cpp_err=
7521: fi
7522: else
7523: ac_cpp_err=yes
7524: fi
7525: if test -z "$ac_cpp_err"; then
7526: ac_header_preproc=yes
1.68 tgl 7527: else
1.179 petere 7528: echo "$as_me: failed program was:" >&5
1.181 petere 7529: cat conftest.$ac_ext >&5
7530: ac_header_preproc=no
1.179 petere 7531: fi
1.181 petere 7532: rm -f conftest.err conftest.$ac_ext
7533: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534: echo "${ECHO_T}$ac_header_preproc" >&6
7535:
7536: # So? What about this header?
7537: case $ac_header_compiler:$ac_header_preproc in
7538: yes:no )
7539: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7543: no:yes )
7544: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7545: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7546: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7547: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7548: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7549: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7550: esac
7551: echo "$as_me:$LINENO: checking for $ac_header" >&5
7552: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7553: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7554: echo $ECHO_N "(cached) $ECHO_C" >&6
7555: else
7556: eval "$as_ac_Header=$ac_header_preproc"
1.179 petere 7557: fi
1.181 petere 7558: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7559: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7560:
1.68 tgl 7561: fi
1.181 petere 7562: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7563: cat >>confdefs.h <<_ACEOF
7564: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7565: _ACEOF
1.68 tgl 7566:
1.179 petere 7567: fi
7568:
1.181 petere 7569: done
7570:
7571:
7572: # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7573: # netinet/in.h is included first.
7574:
7575: for ac_header in netinet/in.h
7576: do
7577: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7578: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7579: echo "$as_me:$LINENO: checking for $ac_header" >&5
7580: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7581: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7582: echo $ECHO_N "(cached) $ECHO_C" >&6
7583: fi
1.181 petere 7584: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7585: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7586: else
7587: # Is the header compilable?
1.181 petere 7588: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7589: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7590: cat >conftest.$ac_ext <<_ACEOF
7591: #line $LINENO "configure"
1.78 petere 7592: #include "confdefs.h"
1.179 petere 7593: $ac_includes_default
1.181 petere 7594: #include <$ac_header>
1.179 petere 7595: _ACEOF
7596: rm -f conftest.$ac_objext
7597: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598: (eval $ac_compile) 2>&5
7599: ac_status=$?
7600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601: (exit $ac_status); } &&
7602: { ac_try='test -s conftest.$ac_objext'
7603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604: (eval $ac_try) 2>&5
7605: ac_status=$?
7606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607: (exit $ac_status); }; }; then
7608: ac_header_compiler=yes
7609: else
7610: echo "$as_me: failed program was:" >&5
7611: cat conftest.$ac_ext >&5
7612: ac_header_compiler=no
7613: fi
7614: rm -f conftest.$ac_objext conftest.$ac_ext
7615: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7616: echo "${ECHO_T}$ac_header_compiler" >&6
7617:
7618: # Is the header present?
1.181 petere 7619: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7620: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.179 petere 7621: cat >conftest.$ac_ext <<_ACEOF
7622: #line $LINENO "configure"
1.78 petere 7623: #include "confdefs.h"
1.181 petere 7624: #include <$ac_header>
1.179 petere 7625: _ACEOF
7626: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7627: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7628: ac_status=$?
7629: egrep -v '^ *\+' conftest.er1 >conftest.err
7630: rm -f conftest.er1
7631: cat conftest.err >&5
7632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633: (exit $ac_status); } >/dev/null; then
7634: if test -s conftest.err; then
7635: ac_cpp_err=$ac_c_preproc_warn_flag
7636: else
7637: ac_cpp_err=
7638: fi
1.78 petere 7639: else
1.179 petere 7640: ac_cpp_err=yes
1.78 petere 7641: fi
1.179 petere 7642: if test -z "$ac_cpp_err"; then
7643: ac_header_preproc=yes
1.78 petere 7644: else
1.179 petere 7645: echo "$as_me: failed program was:" >&5
1.78 petere 7646: cat conftest.$ac_ext >&5
1.179 petere 7647: ac_header_preproc=no
1.78 petere 7648: fi
1.179 petere 7649: rm -f conftest.err conftest.$ac_ext
7650: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7651: echo "${ECHO_T}$ac_header_preproc" >&6
7652:
7653: # So? What about this header?
7654: case $ac_header_compiler:$ac_header_preproc in
7655: yes:no )
1.181 petere 7656: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7657: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7658: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7659: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7660: no:yes )
1.181 petere 7661: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7666: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7667: esac
1.181 petere 7668: echo "$as_me:$LINENO: checking for $ac_header" >&5
7669: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7670: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7671: echo $ECHO_N "(cached) $ECHO_C" >&6
7672: else
1.181 petere 7673: eval "$as_ac_Header=$ac_header_preproc"
7674: fi
7675: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7676: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7677:
1.78 petere 7678: fi
1.181 petere 7679: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680: cat >>confdefs.h <<_ACEOF
7681: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682: _ACEOF
1.78 petere 7683:
1.179 petere 7684: fi
1.181 petere 7685:
7686: done
1.78 petere 7687:
7688:
1.181 petere 7689: for ac_header in netinet/tcp.h
1.68 tgl 7690: do
1.181 petere 7691: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692: echo "$as_me:$LINENO: checking for $ac_header" >&5
7693: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7694: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7695: echo $ECHO_N "(cached) $ECHO_C" >&6
1.68 tgl 7696: else
1.181 petere 7697: cat >conftest.$ac_ext <<_ACEOF
7698: #line $LINENO "configure"
7699: #include "confdefs.h"
1.182 petere 7700: $ac_includes_default
1.181 petere 7701: #ifdef HAVE_NETINET_IN_H
7702: #include <netinet/in.h>
7703: #endif
1.179 petere 7704:
7705:
1.181 petere 7706: #include <$ac_header>
7707: _ACEOF
7708: rm -f conftest.$ac_objext
7709: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710: (eval $ac_compile) 2>&5
7711: ac_status=$?
7712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713: (exit $ac_status); } &&
7714: { ac_try='test -s conftest.$ac_objext'
7715: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716: (eval $ac_try) 2>&5
7717: ac_status=$?
7718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719: (exit $ac_status); }; }; then
7720: eval "$as_ac_Header=yes"
1.1 petere 7721: else
1.181 petere 7722: echo "$as_me: failed program was:" >&5
7723: cat conftest.$ac_ext >&5
7724: eval "$as_ac_Header=no"
1.1 petere 7725: fi
1.181 petere 7726: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 7727: fi
1.181 petere 7728: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7729: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7730: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731: cat >>confdefs.h <<_ACEOF
7732: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7733: _ACEOF
1.179 petere 7734:
1.1 petere 7735: fi
1.29 petere 7736:
1.179 petere 7737: done
7738:
7739:
7740:
7741:
1.181 petere 7742: for ac_header in readline/readline.h readline.h
7743: do
7744: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7746: echo "$as_me:$LINENO: checking for $ac_header" >&5
7747: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7749: echo $ECHO_N "(cached) $ECHO_C" >&6
7750: fi
1.181 petere 7751: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7752: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7753: else
7754: # Is the header compilable?
1.181 petere 7755: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7756: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7757: cat >conftest.$ac_ext <<_ACEOF
7758: #line $LINENO "configure"
7759: #include "confdefs.h"
7760: $ac_includes_default
1.181 petere 7761: #include <$ac_header>
1.179 petere 7762: _ACEOF
7763: rm -f conftest.$ac_objext
7764: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765: (eval $ac_compile) 2>&5
7766: ac_status=$?
7767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768: (exit $ac_status); } &&
7769: { ac_try='test -s conftest.$ac_objext'
7770: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771: (eval $ac_try) 2>&5
7772: ac_status=$?
7773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774: (exit $ac_status); }; }; then
7775: ac_header_compiler=yes
7776: else
7777: echo "$as_me: failed program was:" >&5
7778: cat conftest.$ac_ext >&5
7779: ac_header_compiler=no
7780: fi
7781: rm -f conftest.$ac_objext conftest.$ac_ext
7782: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783: echo "${ECHO_T}$ac_header_compiler" >&6
7784:
7785: # Is the header present?
1.181 petere 7786: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.179 petere 7788: cat >conftest.$ac_ext <<_ACEOF
7789: #line $LINENO "configure"
1.1 petere 7790: #include "confdefs.h"
1.181 petere 7791: #include <$ac_header>
1.179 petere 7792: _ACEOF
7793: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7795: ac_status=$?
7796: egrep -v '^ *\+' conftest.er1 >conftest.err
7797: rm -f conftest.er1
7798: cat conftest.err >&5
7799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800: (exit $ac_status); } >/dev/null; then
7801: if test -s conftest.err; then
1.181 petere 7802: ac_cpp_err=$ac_c_preproc_warn_flag
1.179 petere 7803: else
7804: ac_cpp_err=
7805: fi
1.1 petere 7806: else
1.179 petere 7807: ac_cpp_err=yes
1.1 petere 7808: fi
1.179 petere 7809: if test -z "$ac_cpp_err"; then
7810: ac_header_preproc=yes
1.1 petere 7811: else
1.179 petere 7812: echo "$as_me: failed program was:" >&5
1.1 petere 7813: cat conftest.$ac_ext >&5
1.179 petere 7814: ac_header_preproc=no
1.1 petere 7815: fi
1.179 petere 7816: rm -f conftest.err conftest.$ac_ext
7817: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7818: echo "${ECHO_T}$ac_header_preproc" >&6
7819:
7820: # So? What about this header?
7821: case $ac_header_compiler:$ac_header_preproc in
7822: yes:no )
1.181 petere 7823: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7824: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7825: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7826: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7827: no:yes )
1.181 petere 7828: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7829: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7830: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7831: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7832: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7833: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7834: esac
1.181 petere 7835: echo "$as_me:$LINENO: checking for $ac_header" >&5
7836: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7837: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7838: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 7839: else
1.181 petere 7840: eval "$as_ac_Header=$ac_header_preproc"
1.29 petere 7841: fi
1.181 petere 7842: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7843: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.29 petere 7844:
1.1 petere 7845: fi
1.181 petere 7846: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7847: cat >>confdefs.h <<_ACEOF
7848: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7849: _ACEOF
7850: break
7851: fi
7852:
7853: done
7854:
1.179 petere 7855:
1.1 petere 7856:
1.181 petere 7857: for ac_header in readline/history.h history.h
7858: do
1.179 petere 7859: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861: echo "$as_me:$LINENO: checking for $ac_header" >&5
7862: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7863: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7864: echo $ECHO_N "(cached) $ECHO_C" >&6
7865: fi
7866: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868: else
7869: # Is the header compilable?
7870: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7871: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7872: cat >conftest.$ac_ext <<_ACEOF
7873: #line $LINENO "configure"
7874: #include "confdefs.h"
7875: $ac_includes_default
7876: #include <$ac_header>
7877: _ACEOF
7878: rm -f conftest.$ac_objext
7879: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880: (eval $ac_compile) 2>&5
7881: ac_status=$?
7882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883: (exit $ac_status); } &&
7884: { ac_try='test -s conftest.$ac_objext'
7885: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886: (eval $ac_try) 2>&5
7887: ac_status=$?
7888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889: (exit $ac_status); }; }; then
7890: ac_header_compiler=yes
7891: else
7892: echo "$as_me: failed program was:" >&5
7893: cat conftest.$ac_ext >&5
7894: ac_header_compiler=no
7895: fi
7896: rm -f conftest.$ac_objext conftest.$ac_ext
7897: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7898: echo "${ECHO_T}$ac_header_compiler" >&6
7899:
7900: # Is the header present?
7901: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7902: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7903: cat >conftest.$ac_ext <<_ACEOF
7904: #line $LINENO "configure"
7905: #include "confdefs.h"
7906: #include <$ac_header>
7907: _ACEOF
7908: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7909: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7910: ac_status=$?
7911: egrep -v '^ *\+' conftest.er1 >conftest.err
7912: rm -f conftest.er1
7913: cat conftest.err >&5
7914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915: (exit $ac_status); } >/dev/null; then
7916: if test -s conftest.err; then
7917: ac_cpp_err=$ac_c_preproc_warn_flag
7918: else
7919: ac_cpp_err=
7920: fi
7921: else
7922: ac_cpp_err=yes
7923: fi
7924: if test -z "$ac_cpp_err"; then
7925: ac_header_preproc=yes
1.1 petere 7926: else
1.179 petere 7927: echo "$as_me: failed program was:" >&5
1.1 petere 7928: cat conftest.$ac_ext >&5
1.179 petere 7929: ac_header_preproc=no
1.1 petere 7930: fi
1.179 petere 7931: rm -f conftest.err conftest.$ac_ext
7932: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7933: echo "${ECHO_T}$ac_header_preproc" >&6
7934:
7935: # So? What about this header?
7936: case $ac_header_compiler:$ac_header_preproc in
7937: yes:no )
7938: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7939: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7940: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7941: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7942: no:yes )
7943: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7944: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7945: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7946: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7947: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7949: esac
7950: echo "$as_me:$LINENO: checking for $ac_header" >&5
7951: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7952: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953: echo $ECHO_N "(cached) $ECHO_C" >&6
7954: else
7955: eval "$as_ac_Header=$ac_header_preproc"
1.1 petere 7956: fi
1.179 petere 7957: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7958: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 petere 7959:
1.179 petere 7960: fi
7961: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7962: cat >>confdefs.h <<_ACEOF
7963: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964: _ACEOF
1.181 petere 7965: break
1.1 petere 7966: fi
7967:
1.179 petere 7968: done
7969:
7970:
1.181 petere 7971: if test "$with_krb4" = yes ; then
7972: if test "${ac_cv_header_krb_h+set}" = set; then
7973: echo "$as_me:$LINENO: checking for krb.h" >&5
7974: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7975: if test "${ac_cv_header_krb_h+set}" = set; then
1.179 petere 7976: echo $ECHO_N "(cached) $ECHO_C" >&6
7977: fi
1.181 petere 7978: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7979: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.179 petere 7980: else
7981: # Is the header compilable?
1.181 petere 7982: echo "$as_me:$LINENO: checking krb.h usability" >&5
7983: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
1.179 petere 7984: cat >conftest.$ac_ext <<_ACEOF
7985: #line $LINENO "configure"
7986: #include "confdefs.h"
7987: $ac_includes_default
1.181 petere 7988: #include <krb.h>
1.179 petere 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
8002: ac_header_compiler=yes
8003: else
8004: echo "$as_me: failed program was:" >&5
8005: cat conftest.$ac_ext >&5
8006: ac_header_compiler=no
8007: fi
8008: rm -f conftest.$ac_objext conftest.$ac_ext
8009: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8010: echo "${ECHO_T}$ac_header_compiler" >&6
8011:
8012: # Is the header present?
1.181 petere 8013: echo "$as_me:$LINENO: checking krb.h presence" >&5
8014: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
1.179 petere 8015: cat >conftest.$ac_ext <<_ACEOF
8016: #line $LINENO "configure"
8017: #include "confdefs.h"
1.181 petere 8018: #include <krb.h>
1.179 petere 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
1.1 petere 8033: else
1.179 petere 8034: ac_cpp_err=yes
8035: fi
8036: if test -z "$ac_cpp_err"; then
8037: ac_header_preproc=yes
1.1 petere 8038: else
1.179 petere 8039: echo "$as_me: failed program was:" >&5
1.1 petere 8040: cat conftest.$ac_ext >&5
1.179 petere 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 )
1.181 petere 8050: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8051: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8053: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8054: no:yes )
1.181 petere 8055: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8056: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8057: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8058: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8059: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8060: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8061: esac
1.181 petere 8062: echo "$as_me:$LINENO: checking for krb.h" >&5
8063: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8064: if test "${ac_cv_header_krb_h+set}" = set; then
1.179 petere 8065: echo $ECHO_N "(cached) $ECHO_C" >&6
8066: else
1.181 petere 8067: ac_cv_header_krb_h=$ac_header_preproc
1.1 petere 8068: fi
1.181 petere 8069: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8070: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.1 petere 8071:
8072: fi
1.181 petere 8073: if test $ac_cv_header_krb_h = yes; then
8074: :
8075: else
8076: { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8077: echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8078: { (exit 1); exit 1; }; }
1.179 petere 8079: fi
1.5 petere 8080:
8081:
1.181 petere 8082: fi
1.5 petere 8083:
1.181 petere 8084: if test "$with_krb5" = yes ; then
8085: if test "${ac_cv_header_krb5_h+set}" = set; then
8086: echo "$as_me:$LINENO: checking for krb5.h" >&5
8087: echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8088: if test "${ac_cv_header_krb5_h+set}" = set; then
1.179 petere 8089: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 8090: fi
8091: echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8092: echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
1.179 petere 8093: else
8094: # Is the header compilable?
1.181 petere 8095: echo "$as_me:$LINENO: checking krb5.h usability" >&5
8096: echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
1.179 petere 8097: cat >conftest.$ac_ext <<_ACEOF
8098: #line $LINENO "configure"
8099: #include "confdefs.h"
8100: $ac_includes_default
1.181 petere 8101: #include <krb5.h>
1.179 petere 8102: _ACEOF
8103: rm -f conftest.$ac_objext
8104: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105: (eval $ac_compile) 2>&5
8106: ac_status=$?
8107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108: (exit $ac_status); } &&
8109: { ac_try='test -s conftest.$ac_objext'
8110: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111: (eval $ac_try) 2>&5
8112: ac_status=$?
8113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114: (exit $ac_status); }; }; then
8115: ac_header_compiler=yes
8116: else
8117: echo "$as_me: failed program was:" >&5
8118: cat conftest.$ac_ext >&5
8119: ac_header_compiler=no
8120: fi
8121: rm -f conftest.$ac_objext conftest.$ac_ext
8122: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8123: echo "${ECHO_T}$ac_header_compiler" >&6
8124:
8125: # Is the header present?
1.181 petere 8126: echo "$as_me:$LINENO: checking krb5.h presence" >&5
8127: echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
1.179 petere 8128: cat >conftest.$ac_ext <<_ACEOF
8129: #line $LINENO "configure"
8130: #include "confdefs.h"
1.181 petere 8131: #include <krb5.h>
1.179 petere 8132: _ACEOF
8133: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8135: ac_status=$?
8136: egrep -v '^ *\+' conftest.er1 >conftest.err
8137: rm -f conftest.er1
8138: cat conftest.err >&5
8139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140: (exit $ac_status); } >/dev/null; then
8141: if test -s conftest.err; then
8142: ac_cpp_err=$ac_c_preproc_warn_flag
8143: else
8144: ac_cpp_err=
8145: fi
1.41 petere 8146: else
1.179 petere 8147: ac_cpp_err=yes
8148: fi
8149: if test -z "$ac_cpp_err"; then
8150: ac_header_preproc=yes
1.41 petere 8151: else
1.179 petere 8152: echo "$as_me: failed program was:" >&5
1.41 petere 8153: cat conftest.$ac_ext >&5
1.179 petere 8154: ac_header_preproc=no
8155: fi
8156: rm -f conftest.err conftest.$ac_ext
8157: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8158: echo "${ECHO_T}$ac_header_preproc" >&6
8159:
8160: # So? What about this header?
8161: case $ac_header_compiler:$ac_header_preproc in
8162: yes:no )
1.181 petere 8163: { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8164: echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8165: { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8166: echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8167: no:yes )
1.181 petere 8168: { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8169: echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8170: { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8171: echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8172: { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8173: echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8174: esac
1.181 petere 8175: echo "$as_me:$LINENO: checking for krb5.h" >&5
8176: echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8177: if test "${ac_cv_header_krb5_h+set}" = set; then
1.179 petere 8178: echo $ECHO_N "(cached) $ECHO_C" >&6
8179: else
1.181 petere 8180: ac_cv_header_krb5_h=$ac_header_preproc
1.41 petere 8181: fi
1.181 petere 8182: echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8183: echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
1.179 petere 8184:
8185: fi
1.181 petere 8186: if test $ac_cv_header_krb5_h = yes; then
8187: :
8188: else
8189: { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8190: echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8191: { (exit 1); exit 1; }; }
1.41 petere 8192: fi
8193:
1.179 petere 8194:
1.181 petere 8195: if test "${ac_cv_header_com_err_h+set}" = set; then
8196: echo "$as_me:$LINENO: checking for com_err.h" >&5
8197: echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8198: if test "${ac_cv_header_com_err_h+set}" = set; then
1.179 petere 8199: echo $ECHO_N "(cached) $ECHO_C" >&6
8200: fi
1.181 petere 8201: echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8202: echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
1.179 petere 8203: else
8204: # Is the header compilable?
1.181 petere 8205: echo "$as_me:$LINENO: checking com_err.h usability" >&5
8206: echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
1.179 petere 8207: cat >conftest.$ac_ext <<_ACEOF
8208: #line $LINENO "configure"
8209: #include "confdefs.h"
8210: $ac_includes_default
1.181 petere 8211: #include <com_err.h>
1.179 petere 8212: _ACEOF
8213: rm -f conftest.$ac_objext
8214: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8215: (eval $ac_compile) 2>&5
8216: ac_status=$?
8217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218: (exit $ac_status); } &&
8219: { ac_try='test -s conftest.$ac_objext'
8220: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221: (eval $ac_try) 2>&5
8222: ac_status=$?
8223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224: (exit $ac_status); }; }; then
8225: ac_header_compiler=yes
8226: else
8227: echo "$as_me: failed program was:" >&5
8228: cat conftest.$ac_ext >&5
8229: ac_header_compiler=no
8230: fi
8231: rm -f conftest.$ac_objext conftest.$ac_ext
8232: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8233: echo "${ECHO_T}$ac_header_compiler" >&6
8234:
8235: # Is the header present?
1.181 petere 8236: echo "$as_me:$LINENO: checking com_err.h presence" >&5
8237: echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
1.179 petere 8238: cat >conftest.$ac_ext <<_ACEOF
8239: #line $LINENO "configure"
8240: #include "confdefs.h"
1.181 petere 8241: #include <com_err.h>
1.179 petere 8242: _ACEOF
8243: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8244: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8245: ac_status=$?
8246: egrep -v '^ *\+' conftest.er1 >conftest.err
8247: rm -f conftest.er1
8248: cat conftest.err >&5
8249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250: (exit $ac_status); } >/dev/null; then
8251: if test -s conftest.err; then
8252: ac_cpp_err=$ac_c_preproc_warn_flag
8253: else
8254: ac_cpp_err=
8255: fi
8256: else
8257: ac_cpp_err=yes
1.41 petere 8258: fi
1.179 petere 8259: if test -z "$ac_cpp_err"; then
8260: ac_header_preproc=yes
1.41 petere 8261: else
1.179 petere 8262: echo "$as_me: failed program was:" >&5
1.41 petere 8263: cat conftest.$ac_ext >&5
1.179 petere 8264: ac_header_preproc=no
1.41 petere 8265: fi
1.179 petere 8266: rm -f conftest.err conftest.$ac_ext
8267: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8268: echo "${ECHO_T}$ac_header_preproc" >&6
8269:
8270: # So? What about this header?
8271: case $ac_header_compiler:$ac_header_preproc in
8272: yes:no )
1.181 petere 8273: { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8274: echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8275: { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8276: echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8277: no:yes )
1.181 petere 8278: { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8279: echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8280: { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8281: echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8282: { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8283: echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8284: esac
1.181 petere 8285: echo "$as_me:$LINENO: checking for com_err.h" >&5
8286: echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8287: if test "${ac_cv_header_com_err_h+set}" = set; then
1.179 petere 8288: echo $ECHO_N "(cached) $ECHO_C" >&6
8289: else
1.181 petere 8290: ac_cv_header_com_err_h=$ac_header_preproc
1.179 petere 8291: fi
1.181 petere 8292: echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8293: echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
1.179 petere 8294:
8295: fi
1.181 petere 8296: if test $ac_cv_header_com_err_h = yes; then
8297: :
8298: else
8299: { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8300: echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8301: { (exit 1); exit 1; }; }
1.41 petere 8302: fi
8303:
1.179 petere 8304:
1.181 petere 8305: fi
1.41 petere 8306:
1.181 petere 8307: if test "$with_openssl" = yes ; then
8308: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8309: echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8310: echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8311: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
1.179 petere 8312: echo $ECHO_N "(cached) $ECHO_C" >&6
8313: fi
1.181 petere 8314: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8315: echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
1.179 petere 8316: else
8317: # Is the header compilable?
1.181 petere 8318: echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8319: echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
1.179 petere 8320: cat >conftest.$ac_ext <<_ACEOF
8321: #line $LINENO "configure"
8322: #include "confdefs.h"
8323: $ac_includes_default
1.181 petere 8324: #include <openssl/ssl.h>
1.179 petere 8325: _ACEOF
8326: rm -f conftest.$ac_objext
8327: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328: (eval $ac_compile) 2>&5
8329: ac_status=$?
8330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331: (exit $ac_status); } &&
8332: { ac_try='test -s conftest.$ac_objext'
8333: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334: (eval $ac_try) 2>&5
8335: ac_status=$?
8336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337: (exit $ac_status); }; }; then
8338: ac_header_compiler=yes
8339: else
8340: echo "$as_me: failed program was:" >&5
8341: cat conftest.$ac_ext >&5
8342: ac_header_compiler=no
8343: fi
8344: rm -f conftest.$ac_objext conftest.$ac_ext
8345: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8346: echo "${ECHO_T}$ac_header_compiler" >&6
8347:
8348: # Is the header present?
1.181 petere 8349: echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8350: echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
1.179 petere 8351: cat >conftest.$ac_ext <<_ACEOF
8352: #line $LINENO "configure"
8353: #include "confdefs.h"
1.181 petere 8354: #include <openssl/ssl.h>
1.179 petere 8355: _ACEOF
8356: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8357: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8358: ac_status=$?
8359: egrep -v '^ *\+' conftest.er1 >conftest.err
8360: rm -f conftest.er1
8361: cat conftest.err >&5
8362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363: (exit $ac_status); } >/dev/null; then
8364: if test -s conftest.err; then
8365: ac_cpp_err=$ac_c_preproc_warn_flag
8366: else
8367: ac_cpp_err=
8368: fi
8369: else
8370: ac_cpp_err=yes
1.41 petere 8371: fi
1.179 petere 8372: if test -z "$ac_cpp_err"; then
8373: ac_header_preproc=yes
1.5 petere 8374: else
1.179 petere 8375: echo "$as_me: failed program was:" >&5
8376: cat conftest.$ac_ext >&5
8377: ac_header_preproc=no
8378: fi
8379: rm -f conftest.err conftest.$ac_ext
8380: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8381: echo "${ECHO_T}$ac_header_preproc" >&6
8382:
8383: # So? What about this header?
8384: case $ac_header_compiler:$ac_header_preproc in
8385: yes:no )
1.181 petere 8386: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8387: echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8388: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8389: echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8390: no:yes )
1.181 petere 8391: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8392: echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8393: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8394: echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8395: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8396: echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8397: esac
1.181 petere 8398: echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8399: echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8400: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
1.179 petere 8401: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 8402: else
1.181 petere 8403: ac_cv_header_openssl_ssl_h=$ac_header_preproc
1.179 petere 8404: fi
1.181 petere 8405: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8406: echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
1.179 petere 8407:
1.1 petere 8408: fi
1.181 petere 8409: if test $ac_cv_header_openssl_ssl_h = yes; then
1.179 petere 8410: :
8411: else
1.181 petere 8412: { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8413: echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
1.179 petere 8414: { (exit 1); exit 1; }; }
1.5 petere 8415: fi
8416:
8417:
1.181 petere 8418: if test "${ac_cv_header_openssl_err_h+set}" = set; then
8419: echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8420: echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8421: if test "${ac_cv_header_openssl_err_h+set}" = set; then
8422: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 8423: fi
1.181 petere 8424: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8425: echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
1.179 petere 8426: else
8427: # Is the header compilable?
1.181 petere 8428: echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8429: echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
1.179 petere 8430: cat >conftest.$ac_ext <<_ACEOF
8431: #line $LINENO "configure"
8432: #include "confdefs.h"
8433: $ac_includes_default
1.181 petere 8434: #include <openssl/err.h>
1.179 petere 8435: _ACEOF
8436: rm -f conftest.$ac_objext
8437: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438: (eval $ac_compile) 2>&5
8439: ac_status=$?
8440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441: (exit $ac_status); } &&
8442: { ac_try='test -s conftest.$ac_objext'
8443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444: (eval $ac_try) 2>&5
8445: ac_status=$?
8446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447: (exit $ac_status); }; }; then
8448: ac_header_compiler=yes
8449: else
8450: echo "$as_me: failed program was:" >&5
8451: cat conftest.$ac_ext >&5
8452: ac_header_compiler=no
8453: fi
8454: rm -f conftest.$ac_objext conftest.$ac_ext
8455: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8456: echo "${ECHO_T}$ac_header_compiler" >&6
8457:
8458: # Is the header present?
1.181 petere 8459: echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8460: echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
1.179 petere 8461: cat >conftest.$ac_ext <<_ACEOF
8462: #line $LINENO "configure"
8463: #include "confdefs.h"
1.181 petere 8464: #include <openssl/err.h>
1.179 petere 8465: _ACEOF
8466: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8467: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8468: ac_status=$?
8469: egrep -v '^ *\+' conftest.er1 >conftest.err
8470: rm -f conftest.er1
8471: cat conftest.err >&5
8472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473: (exit $ac_status); } >/dev/null; then
8474: if test -s conftest.err; then
8475: ac_cpp_err=$ac_c_preproc_warn_flag
8476: else
8477: ac_cpp_err=
8478: fi
1.29 petere 8479: else
1.179 petere 8480: ac_cpp_err=yes
8481: fi
8482: if test -z "$ac_cpp_err"; then
8483: ac_header_preproc=yes
1.1 petere 8484: else
1.179 petere 8485: echo "$as_me: failed program was:" >&5
1.1 petere 8486: cat conftest.$ac_ext >&5
1.179 petere 8487: ac_header_preproc=no
1.1 petere 8488: fi
1.179 petere 8489: rm -f conftest.err conftest.$ac_ext
8490: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491: echo "${ECHO_T}$ac_header_preproc" >&6
8492:
8493: # So? What about this header?
8494: case $ac_header_compiler:$ac_header_preproc in
8495: yes:no )
1.181 petere 8496: { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8497: echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8498: { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8499: echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8500: no:yes )
1.181 petere 8501: { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8502: echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8503: { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8504: echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8505: { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8506: echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8507: esac
1.181 petere 8508: echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8509: echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8510: if test "${ac_cv_header_openssl_err_h+set}" = set; then
1.179 petere 8511: echo $ECHO_N "(cached) $ECHO_C" >&6
8512: else
1.181 petere 8513: ac_cv_header_openssl_err_h=$ac_header_preproc
1.179 petere 8514: fi
1.181 petere 8515: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8516: echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
1.179 petere 8517:
8518: fi
1.181 petere 8519: if test $ac_cv_header_openssl_err_h = yes; then
1.179 petere 8520: :
8521: else
1.181 petere 8522: { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8523: echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
1.179 petere 8524: { (exit 1); exit 1; }; }
1.28 petere 8525: fi
1.1 petere 8526:
1.29 petere 8527:
1.181 petere 8528: fi
8529:
8530: if test "$with_pam" = yes ; then
8531: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8532: echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8533: echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8534: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
1.179 petere 8535: echo $ECHO_N "(cached) $ECHO_C" >&6
8536: fi
1.181 petere 8537: echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8538: echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
1.29 petere 8539: else
1.179 petere 8540: # Is the header compilable?
1.181 petere 8541: echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8542: echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
1.179 petere 8543: cat >conftest.$ac_ext <<_ACEOF
8544: #line $LINENO "configure"
8545: #include "confdefs.h"
8546: $ac_includes_default
1.181 petere 8547: #include <security/pam_appl.h>
1.179 petere 8548: _ACEOF
8549: rm -f conftest.$ac_objext
8550: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551: (eval $ac_compile) 2>&5
8552: ac_status=$?
8553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554: (exit $ac_status); } &&
8555: { ac_try='test -s conftest.$ac_objext'
8556: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557: (eval $ac_try) 2>&5
8558: ac_status=$?
8559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560: (exit $ac_status); }; }; then
8561: ac_header_compiler=yes
8562: else
8563: echo "$as_me: failed program was:" >&5
8564: cat conftest.$ac_ext >&5
8565: ac_header_compiler=no
8566: fi
8567: rm -f conftest.$ac_objext conftest.$ac_ext
8568: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8569: echo "${ECHO_T}$ac_header_compiler" >&6
8570:
8571: # Is the header present?
1.181 petere 8572: echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8573: echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
1.179 petere 8574: cat >conftest.$ac_ext <<_ACEOF
8575: #line $LINENO "configure"
8576: #include "confdefs.h"
1.181 petere 8577: #include <security/pam_appl.h>
1.179 petere 8578: _ACEOF
8579: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8580: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581: ac_status=$?
8582: egrep -v '^ *\+' conftest.er1 >conftest.err
8583: rm -f conftest.er1
8584: cat conftest.err >&5
8585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586: (exit $ac_status); } >/dev/null; then
8587: if test -s conftest.err; then
8588: ac_cpp_err=$ac_c_preproc_warn_flag
8589: else
8590: ac_cpp_err=
8591: fi
1.1 petere 8592: else
1.179 petere 8593: ac_cpp_err=yes
8594: fi
8595: if test -z "$ac_cpp_err"; then
8596: ac_header_preproc=yes
1.1 petere 8597: else
1.179 petere 8598: echo "$as_me: failed program was:" >&5
1.1 petere 8599: cat conftest.$ac_ext >&5
1.179 petere 8600: ac_header_preproc=no
8601: fi
8602: rm -f conftest.err conftest.$ac_ext
8603: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8604: echo "${ECHO_T}$ac_header_preproc" >&6
8605:
8606: # So? What about this header?
8607: case $ac_header_compiler:$ac_header_preproc in
8608: yes:no )
1.181 petere 8609: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8610: echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8611: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8612: echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8613: no:yes )
1.181 petere 8614: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8615: echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8616: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8617: echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8618: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8619: echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8620: esac
1.181 petere 8621: echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8622: echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8623: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
1.179 petere 8624: echo $ECHO_N "(cached) $ECHO_C" >&6
8625: else
1.181 petere 8626: ac_cv_header_security_pam_appl_h=$ac_header_preproc
1.179 petere 8627: fi
1.181 petere 8628: echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8629: echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
1.179 petere 8630:
1.1 petere 8631: fi
1.181 petere 8632: if test $ac_cv_header_security_pam_appl_h = yes; then
1.179 petere 8633: :
8634: else
1.181 petere 8635: { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8636: echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
1.179 petere 8637: { (exit 1); exit 1; }; }
1.1 petere 8638: fi
8639:
1.29 petere 8640:
1.1 petere 8641: fi
8642:
1.181 petere 8643:
8644: ##
8645: ## Types, structures, compiler characteristics
8646: ##
8647:
8648: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8649: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8650: if test "${ac_cv_c_const+set}" = set; then
1.179 petere 8651: echo $ECHO_N "(cached) $ECHO_C" >&6
8652: else
1.181 petere 8653: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8654: #line $LINENO "configure"
8655: #include "confdefs.h"
1.181 petere 8656:
8657: #ifdef F77_DUMMY_MAIN
8658: # ifdef __cplusplus
8659: extern "C"
8660: # endif
8661: int F77_DUMMY_MAIN() { return 1; }
8662: #endif
8663: int
8664: main ()
8665: {
8666: /* FIXME: Include the comments suggested by Paul. */
8667: #ifndef __cplusplus
8668: /* Ultrix mips cc rejects this. */
8669: typedef int charset[2];
8670: const charset x;
8671: /* SunOS 4.1.1 cc rejects this. */
8672: char const *const *ccp;
8673: char **p;
8674: /* NEC SVR4.0.2 mips cc rejects this. */
8675: struct point {int x, y;};
8676: static struct point const zero = {0,0};
8677: /* AIX XL C 1.02.0.0 rejects this.
8678: It does not let you subtract one const X* pointer from another in
8679: an arm of an if-expression whose if-part is not a constant
8680: expression */
8681: const char *g = "string";
8682: ccp = &g + (g ? g-g : 0);
8683: /* HPUX 7.0 cc rejects these. */
8684: ++ccp;
8685: p = (char**) ccp;
8686: ccp = (char const *const *) p;
8687: { /* SCO 3.2v4 cc rejects this. */
8688: char *t;
8689: char const *s = 0 ? (char *) 0 : (char const *) 0;
8690:
8691: *t++ = 0;
8692: }
8693: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8694: int x[] = {25, 17};
8695: const int *foo = &x[0];
8696: ++foo;
8697: }
8698: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8699: typedef const int *iptr;
8700: iptr p = 0;
8701: ++p;
8702: }
8703: { /* AIX XL C 1.02.0.0 rejects this saying
8704: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8705: struct s { int j; const int *ap[3]; };
8706: struct s *b; b->j = 5;
8707: }
8708: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8709: const int foo = 10;
8710: }
8711: #endif
8712:
8713: ;
8714: return 0;
8715: }
1.179 petere 8716: _ACEOF
8717: rm -f conftest.$ac_objext
8718: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719: (eval $ac_compile) 2>&5
8720: ac_status=$?
8721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722: (exit $ac_status); } &&
8723: { ac_try='test -s conftest.$ac_objext'
8724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725: (eval $ac_try) 2>&5
8726: ac_status=$?
8727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728: (exit $ac_status); }; }; then
1.181 petere 8729: ac_cv_c_const=yes
1.179 petere 8730: else
8731: echo "$as_me: failed program was:" >&5
8732: cat conftest.$ac_ext >&5
1.181 petere 8733: ac_cv_c_const=no
1.179 petere 8734: fi
8735: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8736: fi
8737: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8738: echo "${ECHO_T}$ac_cv_c_const" >&6
8739: if test $ac_cv_c_const = no; then
8740:
8741: cat >>confdefs.h <<\_ACEOF
8742: #define const
8743: _ACEOF
8744:
8745: fi
1.179 petere 8746:
1.181 petere 8747: echo "$as_me:$LINENO: checking for inline" >&5
8748: echo $ECHO_N "checking for inline... $ECHO_C" >&6
8749: if test "${ac_cv_c_inline+set}" = set; then
8750: echo $ECHO_N "(cached) $ECHO_C" >&6
8751: else
8752: ac_cv_c_inline=no
8753: for ac_kw in inline __inline__ __inline; do
8754: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8755: #line $LINENO "configure"
8756: #include "confdefs.h"
1.181 petere 8757: #ifndef __cplusplus
8758: static $ac_kw int static_foo () {return 0; }
8759: $ac_kw int foo () {return 0; }
8760: #endif
8761:
1.179 petere 8762: _ACEOF
1.181 petere 8763: rm -f conftest.$ac_objext
8764: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765: (eval $ac_compile) 2>&5
1.179 petere 8766: ac_status=$?
8767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.181 petere 8768: (exit $ac_status); } &&
8769: { ac_try='test -s conftest.$ac_objext'
8770: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771: (eval $ac_try) 2>&5
8772: ac_status=$?
8773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774: (exit $ac_status); }; }; then
8775: ac_cv_c_inline=$ac_kw; break
1.1 petere 8776: else
1.179 petere 8777: echo "$as_me: failed program was:" >&5
1.181 petere 8778: cat conftest.$ac_ext >&5
1.1 petere 8779: fi
1.181 petere 8780: rm -f conftest.$ac_objext conftest.$ac_ext
8781: done
1.179 petere 8782:
1.181 petere 8783: fi
8784: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8785: echo "${ECHO_T}$ac_cv_c_inline" >&6
8786: case $ac_cv_c_inline in
8787: inline | yes) ;;
8788: no)
8789: cat >>confdefs.h <<\_ACEOF
8790: #define inline
8791: _ACEOF
8792: ;;
8793: *) cat >>confdefs.h <<_ACEOF
8794: #define inline $ac_cv_c_inline
8795: _ACEOF
8796: ;;
1.179 petere 8797: esac
1.181 petere 8798:
8799: echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8800: echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8801: if test "${ac_cv_c_stringize+set}" = set; then
1.179 petere 8802: echo $ECHO_N "(cached) $ECHO_C" >&6
8803: else
1.181 petere 8804: cat >conftest.$ac_ext <<_ACEOF
8805: #line $LINENO "configure"
8806: #include "confdefs.h"
8807: #define x(y) #y
8808:
8809: char *s = x(teststring);
8810: _ACEOF
8811: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812: egrep "#teststring" >/dev/null 2>&1; then
8813: ac_cv_c_stringize=no
8814: else
8815: ac_cv_c_stringize=yes
1.1 petere 8816: fi
1.181 petere 8817: rm -f conftest*
1.1 petere 8818:
1.29 petere 8819: fi
1.181 petere 8820: echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8821: echo "${ECHO_T}$ac_cv_c_stringize" >&6
8822: if test $ac_cv_c_stringize = yes; then
8823:
8824: cat >>confdefs.h <<\_ACEOF
8825: #define HAVE_STRINGIZE 1
8826: _ACEOF
8827:
1.146 momjian 8828: fi
8829:
1.181 petere 8830: echo "$as_me:$LINENO: checking for signed types" >&5
8831: echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8832: if test "${pgac_cv_c_signed+set}" = set; then
1.179 petere 8833: echo $ECHO_N "(cached) $ECHO_C" >&6
1.146 momjian 8834: else
1.181 petere 8835: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8836: #line $LINENO "configure"
1.146 momjian 8837: #include "confdefs.h"
1.181 petere 8838:
8839: #ifdef F77_DUMMY_MAIN
8840: # ifdef __cplusplus
8841: extern "C"
8842: # endif
8843: int F77_DUMMY_MAIN() { return 1; }
8844: #endif
8845: int
8846: main ()
8847: {
8848: signed char c; signed short s; signed int i;
8849: ;
8850: return 0;
8851: }
1.179 petere 8852: _ACEOF
8853: rm -f conftest.$ac_objext
8854: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8855: (eval $ac_compile) 2>&5
8856: ac_status=$?
8857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858: (exit $ac_status); } &&
8859: { ac_try='test -s conftest.$ac_objext'
8860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861: (eval $ac_try) 2>&5
8862: ac_status=$?
8863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864: (exit $ac_status); }; }; then
1.181 petere 8865: pgac_cv_c_signed=yes
1.179 petere 8866: else
8867: echo "$as_me: failed program was:" >&5
8868: cat conftest.$ac_ext >&5
1.181 petere 8869: pgac_cv_c_signed=no
1.179 petere 8870: fi
8871: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8872: fi
8873: echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8874: echo "${ECHO_T}$pgac_cv_c_signed" >&6
8875: if test x"$pgac_cv_c_signed" = xno ; then
1.179 petere 8876:
1.181 petere 8877: cat >>confdefs.h <<\_ACEOF
8878: #define signed
1.179 petere 8879: _ACEOF
8880:
1.146 momjian 8881: fi
1.181 petere 8882: echo "$as_me:$LINENO: checking for working volatile" >&5
8883: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8884: if test "${ac_cv_c_volatile+set}" = set; then
1.179 petere 8885: echo $ECHO_N "(cached) $ECHO_C" >&6
8886: else
1.181 petere 8887: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8888: #line $LINENO "configure"
8889: #include "confdefs.h"
1.181 petere 8890:
8891: #ifdef F77_DUMMY_MAIN
8892: # ifdef __cplusplus
8893: extern "C"
8894: # endif
8895: int F77_DUMMY_MAIN() { return 1; }
8896: #endif
8897: int
8898: main ()
8899: {
8900:
8901: volatile int x;
8902: int * volatile y;
8903: ;
8904: return 0;
8905: }
1.179 petere 8906: _ACEOF
8907: rm -f conftest.$ac_objext
8908: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909: (eval $ac_compile) 2>&5
8910: ac_status=$?
8911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912: (exit $ac_status); } &&
8913: { ac_try='test -s conftest.$ac_objext'
8914: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915: (eval $ac_try) 2>&5
8916: ac_status=$?
8917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918: (exit $ac_status); }; }; then
1.181 petere 8919: ac_cv_c_volatile=yes
1.179 petere 8920: else
8921: echo "$as_me: failed program was:" >&5
8922: cat conftest.$ac_ext >&5
1.181 petere 8923: ac_cv_c_volatile=no
1.179 petere 8924: fi
8925: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8926: fi
8927: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8928: echo "${ECHO_T}$ac_cv_c_volatile" >&6
8929: if test $ac_cv_c_volatile = no; then
1.179 petere 8930:
1.181 petere 8931: cat >>confdefs.h <<\_ACEOF
8932: #define volatile
1.179 petere 8933: _ACEOF
8934:
1.181 petere 8935: fi
8936:
8937: echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8938: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8939: if test "${ac_cv_struct_tm+set}" = set; then
1.179 petere 8940: echo $ECHO_N "(cached) $ECHO_C" >&6
8941: else
8942: cat >conftest.$ac_ext <<_ACEOF
8943: #line $LINENO "configure"
1.174 petere 8944: #include "confdefs.h"
1.181 petere 8945: #include <sys/types.h>
8946: #include <time.h>
1.179 petere 8947:
8948: #ifdef F77_DUMMY_MAIN
8949: # ifdef __cplusplus
8950: extern "C"
8951: # endif
8952: int F77_DUMMY_MAIN() { return 1; }
8953: #endif
8954: int
8955: main ()
8956: {
1.181 petere 8957: struct tm *tp; tp->tm_sec;
1.179 petere 8958: ;
8959: return 0;
8960: }
8961: _ACEOF
8962: rm -f conftest.$ac_objext
8963: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964: (eval $ac_compile) 2>&5
8965: ac_status=$?
8966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967: (exit $ac_status); } &&
8968: { ac_try='test -s conftest.$ac_objext'
8969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970: (eval $ac_try) 2>&5
8971: ac_status=$?
8972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973: (exit $ac_status); }; }; then
1.181 petere 8974: ac_cv_struct_tm=time.h
1.174 petere 8975: else
1.179 petere 8976: echo "$as_me: failed program was:" >&5
8977: cat conftest.$ac_ext >&5
1.181 petere 8978: ac_cv_struct_tm=sys/time.h
1.174 petere 8979: fi
1.179 petere 8980: rm -f conftest.$ac_objext conftest.$ac_ext
1.174 petere 8981: fi
1.181 petere 8982: echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8983: echo "${ECHO_T}$ac_cv_struct_tm" >&6
8984: if test $ac_cv_struct_tm = sys/time.h; then
1.174 petere 8985:
1.179 petere 8986: cat >>confdefs.h <<\_ACEOF
1.181 petere 8987: #define TM_IN_SYS_TIME 1
1.179 petere 8988: _ACEOF
8989:
8990: fi
1.174 petere 8991:
1.181 petere 8992: echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8993: echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8994: if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
1.179 petere 8995: echo $ECHO_N "(cached) $ECHO_C" >&6
8996: else
8997: cat >conftest.$ac_ext <<_ACEOF
8998: #line $LINENO "configure"
8999: #include "confdefs.h"
1.181 petere 9000: #include <sys/types.h>
9001: #include <$ac_cv_struct_tm>
9002:
9003:
9004: #ifdef F77_DUMMY_MAIN
9005: # ifdef __cplusplus
9006: extern "C"
9007: # endif
9008: int F77_DUMMY_MAIN() { return 1; }
1.179 petere 9009: #endif
1.181 petere 9010: int
9011: main ()
9012: {
9013: static struct tm ac_aggr;
9014: if (ac_aggr.tm_zone)
9015: return 0;
9016: ;
9017: return 0;
9018: }
1.179 petere 9019: _ACEOF
9020: rm -f conftest.$ac_objext
9021: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022: (eval $ac_compile) 2>&5
9023: ac_status=$?
9024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025: (exit $ac_status); } &&
9026: { ac_try='test -s conftest.$ac_objext'
9027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028: (eval $ac_try) 2>&5
9029: ac_status=$?
9030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031: (exit $ac_status); }; }; then
1.181 petere 9032: ac_cv_member_struct_tm_tm_zone=yes
1.174 petere 9033: else
1.179 petere 9034: echo "$as_me: failed program was:" >&5
9035: cat conftest.$ac_ext >&5
1.181 petere 9036: ac_cv_member_struct_tm_tm_zone=no
1.174 petere 9037: fi
1.179 petere 9038: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 9039: fi
9040: echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9041: echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9042: if test $ac_cv_member_struct_tm_tm_zone = yes; then
1.174 petere 9043:
1.181 petere 9044: cat >>confdefs.h <<_ACEOF
9045: #define HAVE_STRUCT_TM_TM_ZONE 1
1.179 petere 9046: _ACEOF
1.174 petere 9047:
1.179 petere 9048:
1.174 petere 9049: fi
1.179 petere 9050:
1.181 petere 9051: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1.174 petere 9052:
1.179 petere 9053: cat >>confdefs.h <<\_ACEOF
1.181 petere 9054: #define HAVE_TM_ZONE 1
1.179 petere 9055: _ACEOF
1.174 petere 9056:
1.181 petere 9057: else
9058: echo "$as_me:$LINENO: checking for tzname" >&5
9059: echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9060: if test "${ac_cv_var_tzname+set}" = set; then
1.179 petere 9061: echo $ECHO_N "(cached) $ECHO_C" >&6
1.174 petere 9062: else
1.179 petere 9063: cat >conftest.$ac_ext <<_ACEOF
9064: #line $LINENO "configure"
1.174 petere 9065: #include "confdefs.h"
1.181 petere 9066: #include <time.h>
9067: #ifndef tzname /* For SGI. */
9068: extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9069: #endif
1.179 petere 9070:
9071: #ifdef F77_DUMMY_MAIN
9072: # ifdef __cplusplus
9073: extern "C"
9074: # endif
9075: int F77_DUMMY_MAIN() { return 1; }
9076: #endif
9077: int
9078: main ()
9079: {
1.181 petere 9080: atoi(*tzname);
1.179 petere 9081: ;
9082: return 0;
9083: }
9084: _ACEOF
1.181 petere 9085: rm -f conftest.$ac_objext conftest$ac_exeext
9086: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087: (eval $ac_link) 2>&5
1.179 petere 9088: ac_status=$?
9089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090: (exit $ac_status); } &&
1.181 petere 9091: { ac_try='test -s conftest$ac_exeext'
1.179 petere 9092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093: (eval $ac_try) 2>&5
9094: ac_status=$?
9095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096: (exit $ac_status); }; }; then
1.181 petere 9097: ac_cv_var_tzname=yes
1.174 petere 9098: else
1.179 petere 9099: echo "$as_me: failed program was:" >&5
9100: cat conftest.$ac_ext >&5
1.181 petere 9101: ac_cv_var_tzname=no
1.174 petere 9102: fi
1.181 petere 9103: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.174 petere 9104: fi
1.181 petere 9105: echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9106: echo "${ECHO_T}$ac_cv_var_tzname" >&6
9107: if test $ac_cv_var_tzname = yes; then
1.174 petere 9108:
1.179 petere 9109: cat >>confdefs.h <<\_ACEOF
1.181 petere 9110: #define HAVE_TZNAME 1
1.179 petere 9111: _ACEOF
1.174 petere 9112:
1.181 petere 9113: fi
1.179 petere 9114: fi
1.181 petere 9115:
9116: echo "$as_me:$LINENO: checking for union semun" >&5
9117: echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9118: if test "${ac_cv_type_union_semun+set}" = set; then
1.179 petere 9119: echo $ECHO_N "(cached) $ECHO_C" >&6
1.167 momjian 9120: else
1.179 petere 9121: cat >conftest.$ac_ext <<_ACEOF
9122: #line $LINENO "configure"
9123: #include "confdefs.h"
9124: #include <sys/types.h>
9125: #include <sys/ipc.h>
9126: #include <sys/sem.h>
9127:
9128: #ifdef F77_DUMMY_MAIN
9129: # ifdef __cplusplus
9130: extern "C"
9131: # endif
9132: int F77_DUMMY_MAIN() { return 1; }
9133: #endif
9134: int
9135: main ()
9136: {
9137: if ((union semun *) 0)
9138: return 0;
9139: if (sizeof (union semun))
9140: return 0;
9141: ;
9142: return 0;
9143: }
9144: _ACEOF
9145: rm -f conftest.$ac_objext
9146: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9147: (eval $ac_compile) 2>&5
9148: ac_status=$?
9149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150: (exit $ac_status); } &&
9151: { ac_try='test -s conftest.$ac_objext'
9152: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153: (eval $ac_try) 2>&5
9154: ac_status=$?
9155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156: (exit $ac_status); }; }; then
9157: ac_cv_type_union_semun=yes
9158: else
9159: echo "$as_me: failed program was:" >&5
9160: cat conftest.$ac_ext >&5
9161: ac_cv_type_union_semun=no
9162: fi
9163: rm -f conftest.$ac_objext conftest.$ac_ext
9164: fi
9165: echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9166: echo "${ECHO_T}$ac_cv_type_union_semun" >&6
1.182 petere 9167: if test $ac_cv_type_union_semun = yes; then
9168:
9169: cat >>confdefs.h <<_ACEOF
9170: #define HAVE_UNION_SEMUN 1
9171: _ACEOF
9172:
9173:
9174: fi
1.179 petere 9175:
9176: echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9177: echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9178: if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9179: echo $ECHO_N "(cached) $ECHO_C" >&6
1.167 momjian 9180: else
1.179 petere 9181: cat >conftest.$ac_ext <<_ACEOF
9182: #line $LINENO "configure"
1.167 momjian 9183: #include "confdefs.h"
1.179 petere 9184: #include <sys/types.h>
9185: #ifdef HAVE_SYS_UN_H
9186: #include <sys/un.h>
9187: #endif
9188:
1.167 momjian 9189:
1.179 petere 9190: #ifdef F77_DUMMY_MAIN
9191: # ifdef __cplusplus
9192: extern "C"
9193: # endif
9194: int F77_DUMMY_MAIN() { return 1; }
9195: #endif
9196: int
9197: main ()
1.167 momjian 9198: {
1.179 petere 9199: if ((struct sockaddr_un *) 0)
9200: return 0;
9201: if (sizeof (struct sockaddr_un))
9202: return 0;
9203: ;
9204: return 0;
1.167 momjian 9205: }
1.179 petere 9206: _ACEOF
9207: rm -f conftest.$ac_objext
9208: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209: (eval $ac_compile) 2>&5
9210: ac_status=$?
9211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212: (exit $ac_status); } &&
9213: { ac_try='test -s conftest.$ac_objext'
9214: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215: (eval $ac_try) 2>&5
9216: ac_status=$?
9217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218: (exit $ac_status); }; }; then
9219: ac_cv_type_struct_sockaddr_un=yes
9220: else
9221: echo "$as_me: failed program was:" >&5
9222: cat conftest.$ac_ext >&5
9223: ac_cv_type_struct_sockaddr_un=no
9224: fi
9225: rm -f conftest.$ac_objext conftest.$ac_ext
9226: fi
9227: echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9228: echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9229: if test $ac_cv_type_struct_sockaddr_un = yes; then
1.167 momjian 9230:
1.179 petere 9231: cat >>confdefs.h <<_ACEOF
9232: #define HAVE_STRUCT_SOCKADDR_UN 1
9233: _ACEOF
1.167 momjian 9234:
9235:
9236: fi
9237:
9238:
1.179 petere 9239: echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9240: echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9241: if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9242: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9243: else
1.179 petere 9244: cat >conftest.$ac_ext <<_ACEOF
9245: #line $LINENO "configure"
1.1 petere 9246: #include "confdefs.h"
1.179 petere 9247: #include <sys/param.h>
9248: #include <sys/socket.h>
9249: #include <sys/ucred.h>
1.1 petere 9250:
1.179 petere 9251: #ifdef F77_DUMMY_MAIN
9252: # ifdef __cplusplus
9253: extern "C"
9254: # endif
9255: int F77_DUMMY_MAIN() { return 1; }
9256: #endif
9257: int
9258: main ()
9259: {
9260: if ((struct cmsgcred *) 0)
9261: return 0;
9262: if (sizeof (struct cmsgcred))
9263: return 0;
9264: ;
9265: return 0;
9266: }
9267: _ACEOF
9268: rm -f conftest.$ac_objext
9269: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270: (eval $ac_compile) 2>&5
9271: ac_status=$?
9272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273: (exit $ac_status); } &&
9274: { ac_try='test -s conftest.$ac_objext'
9275: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276: (eval $ac_try) 2>&5
9277: ac_status=$?
9278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279: (exit $ac_status); }; }; then
9280: ac_cv_type_struct_cmsgcred=yes
9281: else
9282: echo "$as_me: failed program was:" >&5
9283: cat conftest.$ac_ext >&5
9284: ac_cv_type_struct_cmsgcred=no
9285: fi
9286: rm -f conftest.$ac_objext conftest.$ac_ext
9287: fi
9288: echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9289: echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9290: if test $ac_cv_type_struct_cmsgcred = yes; then
9291:
9292: cat >>confdefs.h <<_ACEOF
9293: #define HAVE_STRUCT_CMSGCRED 1
9294: _ACEOF
9295:
9296:
9297: fi
9298: echo "$as_me:$LINENO: checking for struct fcred" >&5
9299: echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9300: if test "${ac_cv_type_struct_fcred+set}" = set; then
9301: echo $ECHO_N "(cached) $ECHO_C" >&6
9302: else
9303: cat >conftest.$ac_ext <<_ACEOF
9304: #line $LINENO "configure"
9305: #include "confdefs.h"
9306: #include <sys/param.h>
9307: #include <sys/socket.h>
9308: #include <sys/ucred.h>
1.1 petere 9309:
1.179 petere 9310: #ifdef F77_DUMMY_MAIN
9311: # ifdef __cplusplus
9312: extern "C"
9313: # endif
9314: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9315: #endif
1.179 petere 9316: int
9317: main ()
9318: {
9319: if ((struct fcred *) 0)
9320: return 0;
9321: if (sizeof (struct fcred))
9322: return 0;
9323: ;
9324: return 0;
9325: }
9326: _ACEOF
9327: rm -f conftest.$ac_objext
9328: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329: (eval $ac_compile) 2>&5
9330: ac_status=$?
9331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332: (exit $ac_status); } &&
9333: { ac_try='test -s conftest.$ac_objext'
9334: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335: (eval $ac_try) 2>&5
9336: ac_status=$?
9337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338: (exit $ac_status); }; }; then
9339: ac_cv_type_struct_fcred=yes
9340: else
9341: echo "$as_me: failed program was:" >&5
9342: cat conftest.$ac_ext >&5
9343: ac_cv_type_struct_fcred=no
9344: fi
9345: rm -f conftest.$ac_objext conftest.$ac_ext
9346: fi
9347: echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9348: echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9349: if test $ac_cv_type_struct_fcred = yes; then
1.1 petere 9350:
1.179 petere 9351: cat >>confdefs.h <<_ACEOF
9352: #define HAVE_STRUCT_FCRED 1
9353: _ACEOF
9354:
9355:
9356: fi
9357: echo "$as_me:$LINENO: checking for struct sockcred" >&5
9358: echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9359: if test "${ac_cv_type_struct_sockcred+set}" = set; then
9360: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9361: else
1.179 petere 9362: cat >conftest.$ac_ext <<_ACEOF
9363: #line $LINENO "configure"
9364: #include "confdefs.h"
9365: #include <sys/param.h>
9366: #include <sys/socket.h>
9367: #include <sys/ucred.h>
1.1 petere 9368:
1.179 petere 9369: #ifdef F77_DUMMY_MAIN
9370: # ifdef __cplusplus
9371: extern "C"
9372: # endif
9373: int F77_DUMMY_MAIN() { return 1; }
9374: #endif
9375: int
9376: main ()
9377: {
9378: if ((struct sockcred *) 0)
9379: return 0;
9380: if (sizeof (struct sockcred))
9381: return 0;
9382: ;
9383: return 0;
9384: }
9385: _ACEOF
9386: rm -f conftest.$ac_objext
9387: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388: (eval $ac_compile) 2>&5
9389: ac_status=$?
9390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391: (exit $ac_status); } &&
9392: { ac_try='test -s conftest.$ac_objext'
9393: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394: (eval $ac_try) 2>&5
9395: ac_status=$?
9396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397: (exit $ac_status); }; }; then
9398: ac_cv_type_struct_sockcred=yes
9399: else
9400: echo "$as_me: failed program was:" >&5
9401: cat conftest.$ac_ext >&5
9402: ac_cv_type_struct_sockcred=no
9403: fi
9404: rm -f conftest.$ac_objext conftest.$ac_ext
9405: fi
9406: echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9407: echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9408: if test $ac_cv_type_struct_sockcred = yes; then
1.1 petere 9409:
1.179 petere 9410: cat >>confdefs.h <<_ACEOF
9411: #define HAVE_STRUCT_SOCKCRED 1
9412: _ACEOF
1.1 petere 9413:
1.106 tgl 9414:
9415: fi
9416:
9417:
1.179 petere 9418: if test "$with_krb5" = yes; then
9419: # Check for differences between MIT and Heimdal (KTH) releases
9420: echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9421: echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9422: if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9423: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 9424: else
1.179 petere 9425: cat >conftest.$ac_ext <<_ACEOF
9426: #line $LINENO "configure"
1.1 petere 9427: #include "confdefs.h"
1.179 petere 9428: #include <krb5.h>
1.28 petere 9429:
1.179 petere 9430: #ifdef F77_DUMMY_MAIN
9431: # ifdef __cplusplus
9432: extern "C"
9433: # endif
9434: int F77_DUMMY_MAIN() { return 1; }
9435: #endif
9436: int
9437: main ()
9438: {
9439: static krb5_ticket ac_aggr;
9440: if (ac_aggr.enc_part2)
9441: return 0;
9442: ;
9443: return 0;
9444: }
9445: _ACEOF
9446: rm -f conftest.$ac_objext
9447: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448: (eval $ac_compile) 2>&5
9449: ac_status=$?
9450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451: (exit $ac_status); } &&
9452: { ac_try='test -s conftest.$ac_objext'
9453: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454: (eval $ac_try) 2>&5
9455: ac_status=$?
9456: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457: (exit $ac_status); }; }; then
9458: ac_cv_member_krb5_ticket_enc_part2=yes
9459: else
9460: echo "$as_me: failed program was:" >&5
9461: cat conftest.$ac_ext >&5
9462: ac_cv_member_krb5_ticket_enc_part2=no
9463: fi
9464: rm -f conftest.$ac_objext conftest.$ac_ext
9465: fi
9466: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9467: echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9468: if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
1.28 petere 9469:
1.179 petere 9470: cat >>confdefs.h <<_ACEOF
9471: #define HAVE_KRB5_TICKET_ENC_PART2 1
9472: _ACEOF
1.28 petere 9473:
1.1 petere 9474:
9475: else
1.179 petere 9476: echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9477: echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9478: if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9479: echo $ECHO_N "(cached) $ECHO_C" >&6
9480: else
9481: cat >conftest.$ac_ext <<_ACEOF
9482: #line $LINENO "configure"
1.1 petere 9483: #include "confdefs.h"
1.179 petere 9484: #include <krb5.h>
9485:
9486: #ifdef F77_DUMMY_MAIN
9487: # ifdef __cplusplus
9488: extern "C"
9489: # endif
9490: int F77_DUMMY_MAIN() { return 1; }
9491: #endif
9492: int
9493: main ()
9494: {
9495: static krb5_ticket ac_aggr;
9496: if (ac_aggr.client)
9497: return 0;
9498: ;
9499: return 0;
9500: }
9501: _ACEOF
9502: rm -f conftest.$ac_objext
9503: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504: (eval $ac_compile) 2>&5
9505: ac_status=$?
9506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507: (exit $ac_status); } &&
9508: { ac_try='test -s conftest.$ac_objext'
9509: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510: (eval $ac_try) 2>&5
9511: ac_status=$?
9512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513: (exit $ac_status); }; }; then
9514: ac_cv_member_krb5_ticket_client=yes
9515: else
9516: echo "$as_me: failed program was:" >&5
9517: cat conftest.$ac_ext >&5
9518: ac_cv_member_krb5_ticket_client=no
9519: fi
9520: rm -f conftest.$ac_objext conftest.$ac_ext
9521: fi
9522: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9523: echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9524: if test $ac_cv_member_krb5_ticket_client = yes; then
1.1 petere 9525:
1.179 petere 9526: cat >>confdefs.h <<_ACEOF
9527: #define HAVE_KRB5_TICKET_CLIENT 1
9528: _ACEOF
1.1 petere 9529:
9530:
9531: else
1.179 petere 9532: { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9533: echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9534: { (exit 1); exit 1; }; }
1.1 petere 9535: fi
9536:
9537: fi
9538:
1.179 petere 9539: echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9540: echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9541: if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9542: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9543: else
1.179 petere 9544: cat >conftest.$ac_ext <<_ACEOF
9545: #line $LINENO "configure"
1.1 petere 9546: #include "confdefs.h"
1.179 petere 9547: #include <krb5.h>
1.1 petere 9548:
1.179 petere 9549: #ifdef F77_DUMMY_MAIN
9550: # ifdef __cplusplus
9551: extern "C"
9552: # endif
9553: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9554: #endif
1.179 petere 9555: int
9556: main ()
9557: {
9558: static krb5_error ac_aggr;
9559: if (ac_aggr.text.data)
9560: return 0;
9561: ;
9562: return 0;
9563: }
9564: _ACEOF
9565: rm -f conftest.$ac_objext
9566: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567: (eval $ac_compile) 2>&5
9568: ac_status=$?
9569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570: (exit $ac_status); } &&
9571: { ac_try='test -s conftest.$ac_objext'
9572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573: (eval $ac_try) 2>&5
9574: ac_status=$?
9575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576: (exit $ac_status); }; }; then
9577: ac_cv_member_krb5_error_text_data=yes
9578: else
9579: echo "$as_me: failed program was:" >&5
9580: cat conftest.$ac_ext >&5
9581: ac_cv_member_krb5_error_text_data=no
9582: fi
9583: rm -f conftest.$ac_objext conftest.$ac_ext
9584: fi
9585: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9586: echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9587: if test $ac_cv_member_krb5_error_text_data = yes; then
1.1 petere 9588:
1.179 petere 9589: cat >>confdefs.h <<_ACEOF
9590: #define HAVE_KRB5_ERROR_TEXT_DATA 1
9591: _ACEOF
1.1 petere 9592:
9593:
9594: else
1.179 petere 9595: echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9596: echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9597: if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9598: echo $ECHO_N "(cached) $ECHO_C" >&6
9599: else
9600: cat >conftest.$ac_ext <<_ACEOF
9601: #line $LINENO "configure"
1.1 petere 9602: #include "confdefs.h"
1.179 petere 9603: #include <krb5.h>
1.1 petere 9604:
1.179 petere 9605: #ifdef F77_DUMMY_MAIN
9606: # ifdef __cplusplus
9607: extern "C"
9608: # endif
9609: int F77_DUMMY_MAIN() { return 1; }
9610: #endif
9611: int
9612: main ()
9613: {
9614: static krb5_error ac_aggr;
9615: if (ac_aggr.e_data)
9616: return 0;
9617: ;
9618: return 0;
9619: }
9620: _ACEOF
9621: rm -f conftest.$ac_objext
9622: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623: (eval $ac_compile) 2>&5
9624: ac_status=$?
9625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626: (exit $ac_status); } &&
9627: { ac_try='test -s conftest.$ac_objext'
9628: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629: (eval $ac_try) 2>&5
9630: ac_status=$?
9631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632: (exit $ac_status); }; }; then
9633: ac_cv_member_krb5_error_e_data=yes
9634: else
9635: echo "$as_me: failed program was:" >&5
9636: cat conftest.$ac_ext >&5
9637: ac_cv_member_krb5_error_e_data=no
9638: fi
9639: rm -f conftest.$ac_objext conftest.$ac_ext
9640: fi
9641: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9642: echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9643: if test $ac_cv_member_krb5_error_e_data = yes; then
9644: :
9645: else
9646: { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9647: echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9648: { (exit 1); exit 1; }; }
1.1 petere 9649: fi
9650:
1.179 petere 9651: fi
1.1 petere 9652:
9653: fi
9654:
1.29 petere 9655:
1.179 petere 9656: ##
9657: ## Functions, global variables
9658: ##
9659: echo "$as_me:$LINENO: checking for int timezone" >&5
9660: echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9661: if test "${pgac_cv_var_int_timezone+set}" = set; then
9662: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9663: else
1.179 petere 9664: cat >conftest.$ac_ext <<_ACEOF
9665: #line $LINENO "configure"
1.1 petere 9666: #include "confdefs.h"
1.179 petere 9667: #include <time.h>
9668: int res;
9669: #ifdef F77_DUMMY_MAIN
9670: # ifdef __cplusplus
9671: extern "C"
9672: # endif
9673: int F77_DUMMY_MAIN() { return 1; }
9674: #endif
9675: int
9676: main ()
9677: {
9678: res = timezone / 60;
9679: ;
9680: return 0;
9681: }
9682: _ACEOF
9683: rm -f conftest.$ac_objext conftest$ac_exeext
9684: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685: (eval $ac_link) 2>&5
9686: ac_status=$?
9687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688: (exit $ac_status); } &&
9689: { ac_try='test -s conftest$ac_exeext'
9690: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691: (eval $ac_try) 2>&5
9692: ac_status=$?
9693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694: (exit $ac_status); }; }; then
9695: pgac_cv_var_int_timezone=yes
1.1 petere 9696: else
1.179 petere 9697: echo "$as_me: failed program was:" >&5
9698: cat conftest.$ac_ext >&5
9699: pgac_cv_var_int_timezone=no
1.1 petere 9700: fi
1.179 petere 9701: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 9702: fi
1.179 petere 9703: echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9704: echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9705: if test x"$pgac_cv_var_int_timezone" = xyes ; then
1.1 petere 9706:
1.179 petere 9707: cat >>confdefs.h <<\_ACEOF
9708: #define HAVE_INT_TIMEZONE
9709: _ACEOF
1.29 petere 9710:
1.179 petere 9711: fi
9712: echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9713: echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9714: if test "${ac_cv_func_accept_arg1+set}" = set; then
9715: echo $ECHO_N "(cached) $ECHO_C" >&6
9716: else
9717: if test "${ac_cv_func_accept_arg2+set}" = set; then
9718: echo $ECHO_N "(cached) $ECHO_C" >&6
1.29 petere 9719: else
1.179 petere 9720: if test "${ac_cv_func_accept_arg3+set}" = set; then
9721: echo $ECHO_N "(cached) $ECHO_C" >&6
1.29 petere 9722: else
1.179 petere 9723: for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9724: for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9725: for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9726: cat >conftest.$ac_ext <<_ACEOF
9727: #line $LINENO "configure"
1.29 petere 9728: #include "confdefs.h"
1.179 petere 9729: #ifdef HAVE_SYS_TYPES_H
9730: #include <sys/types.h>
9731: #endif
9732: #ifdef HAVE_SYS_SOCKET_H
9733: #include <sys/socket.h>
9734: #endif
9735: extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9736: #ifdef F77_DUMMY_MAIN
9737: # ifdef __cplusplus
9738: extern "C"
9739: # endif
9740: int F77_DUMMY_MAIN() { return 1; }
1.29 petere 9741: #endif
1.179 petere 9742: int
9743: main ()
9744: {
1.29 petere 9745:
1.179 petere 9746: ;
9747: return 0;
9748: }
9749: _ACEOF
9750: rm -f conftest.$ac_objext
9751: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752: (eval $ac_compile) 2>&5
9753: ac_status=$?
9754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755: (exit $ac_status); } &&
9756: { ac_try='test -s conftest.$ac_objext'
9757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758: (eval $ac_try) 2>&5
9759: ac_status=$?
9760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761: (exit $ac_status); }; }; then
9762: ac_not_found=no; break 3
1.29 petere 9763: else
1.179 petere 9764: echo "$as_me: failed program was:" >&5
9765: cat conftest.$ac_ext >&5
9766: ac_not_found=yes
1.29 petere 9767: fi
1.179 petere 9768: rm -f conftest.$ac_objext conftest.$ac_ext
9769: done
9770: done
9771: done
9772: if test "$ac_not_found" = yes; then
9773: { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9774: echo "$as_me: error: could not determine argument types" >&2;}
9775: { (exit 1); exit 1; }; }
9776: fi
9777: if test "$ac_cv_func_accept_arg3" = "void"; then
9778: ac_cv_func_accept_arg3=int
9779: fi
9780:
1.29 petere 9781: fi
9782:
9783: fi
9784:
1.1 petere 9785: fi
1.179 petere 9786: echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9787: echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9788:
9789: cat >>confdefs.h <<_ACEOF
9790: #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9791: _ACEOF
9792:
9793:
9794: cat >>confdefs.h <<_ACEOF
9795: #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9796: _ACEOF
1.1 petere 9797:
1.29 petere 9798:
1.179 petere 9799: cat >>confdefs.h <<_ACEOF
9800: #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9801: _ACEOF
9802:
9803:
9804: echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9805: echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9806: if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9807: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9808: else
1.179 petere 9809: cat >conftest.$ac_ext <<_ACEOF
9810: #line $LINENO "configure"
1.1 petere 9811: #include "confdefs.h"
1.179 petere 9812: #include <sys/time.h>
9813: #ifdef F77_DUMMY_MAIN
9814: # ifdef __cplusplus
9815: extern "C"
9816: # endif
9817: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9818: #endif
1.179 petere 9819: int
9820: main ()
9821: {
9822: struct timeval *tp;
9823: struct timezone *tzp;
9824: gettimeofday(tp,tzp);
9825: ;
9826: return 0;
9827: }
9828: _ACEOF
9829: rm -f conftest.$ac_objext
9830: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831: (eval $ac_compile) 2>&5
9832: ac_status=$?
9833: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834: (exit $ac_status); } &&
9835: { ac_try='test -s conftest.$ac_objext'
9836: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837: (eval $ac_try) 2>&5
9838: ac_status=$?
9839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840: (exit $ac_status); }; }; then
9841: pgac_cv_func_gettimeofday_1arg=no
1.1 petere 9842: else
1.179 petere 9843: echo "$as_me: failed program was:" >&5
9844: cat conftest.$ac_ext >&5
9845: pgac_cv_func_gettimeofday_1arg=yes
1.1 petere 9846: fi
1.179 petere 9847: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 9848: fi
1.179 petere 9849: echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9850: echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9851: if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
1.1 petere 9852:
1.179 petere 9853: cat >>confdefs.h <<\_ACEOF
9854: #define GETTIMEOFDAY_1ARG
9855: _ACEOF
1.1 petere 9856:
1.179 petere 9857: fi
9858:
9859: # SunOS doesn't handle negative byte comparisons properly with +/- return
9860: echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
9861: echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
9862: if test "${pgac_cv_func_memcmp_clean+set}" = set; then
9863: echo $ECHO_N "(cached) $ECHO_C" >&6
9864: else
9865: if test "$cross_compiling" = yes; then
9866: pgac_cv_func_memcmp_clean=no
9867: else
9868: cat >conftest.$ac_ext <<_ACEOF
9869: #line $LINENO "configure"
9870: #include "confdefs.h"
9871:
9872: main()
9873: {
9874: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9875: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9876: }
9877:
9878: _ACEOF
9879: rm -f conftest$ac_exeext
9880: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9881: (eval $ac_link) 2>&5
9882: ac_status=$?
9883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9885: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886: (eval $ac_try) 2>&5
9887: ac_status=$?
9888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889: (exit $ac_status); }; }; then
9890: pgac_cv_func_memcmp_clean=yes
1.1 petere 9891: else
1.179 petere 9892: echo "$as_me: program exited with status $ac_status" >&5
9893: echo "$as_me: failed program was:" >&5
9894: cat conftest.$ac_ext >&5
9895: ( exit $ac_status )
9896: pgac_cv_func_memcmp_clean=no
1.1 petere 9897: fi
1.179 petere 9898: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9899: fi
9900: fi
9901: echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
9902: echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
9903: if test $pgac_cv_func_memcmp_clean = no ; then
9904: MEMCMP=memcmp.o
9905: else
9906: MEMCMP=
9907: fi
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
1.1 petere 9917:
9918:
1.179 petere 9919:
9920:
9921:
9922: for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9923: do
9924: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9925: echo "$as_me:$LINENO: checking for $ac_func" >&5
9926: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9927: if eval "test \"\${$as_ac_var+set}\" = set"; then
9928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9929: else
1.179 petere 9930: cat >conftest.$ac_ext <<_ACEOF
9931: #line $LINENO "configure"
1.1 petere 9932: #include "confdefs.h"
9933: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 9934: which can conflict with char $ac_func (); below. */
1.1 petere 9935: #include <assert.h>
9936: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 9937: #ifdef __cplusplus
9938: extern "C"
9939: #endif
1.1 petere 9940: /* We use char because int might match the return type of a gcc2
1.179 petere 9941: builtin and then its argument prototype would still apply. */
9942: char $ac_func ();
9943: char (*f) ();
9944:
9945: #ifdef F77_DUMMY_MAIN
9946: # ifdef __cplusplus
9947: extern "C"
9948: # endif
9949: int F77_DUMMY_MAIN() { return 1; }
9950: #endif
9951: int
9952: main ()
9953: {
1.1 petere 9954: /* The GNU C library defines this for functions which it implements
9955: to always fail with ENOSYS. Some functions are actually named
9956: something starting with __ and the normal name is an alias. */
1.179 petere 9957: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 9958: choke me
9959: #else
1.179 petere 9960: f = $ac_func;
9961: #endif
9962:
9963: ;
9964: return 0;
9965: }
9966: _ACEOF
9967: rm -f conftest.$ac_objext conftest$ac_exeext
9968: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969: (eval $ac_link) 2>&5
9970: ac_status=$?
9971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972: (exit $ac_status); } &&
9973: { ac_try='test -s conftest$ac_exeext'
9974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975: (eval $ac_try) 2>&5
9976: ac_status=$?
9977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978: (exit $ac_status); }; }; then
9979: eval "$as_ac_var=yes"
9980: else
9981: echo "$as_me: failed program was:" >&5
9982: cat conftest.$ac_ext >&5
9983: eval "$as_ac_var=no"
9984: fi
9985: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9986: fi
9987: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9988: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9989: if test `eval echo '${'$as_ac_var'}'` = yes; then
9990: cat >>confdefs.h <<_ACEOF
9991: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9992: _ACEOF
9993:
9994: fi
9995: done
9996:
9997:
9998: echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9999: echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10000: if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10001: echo $ECHO_N "(cached) $ECHO_C" >&6
10002: else
10003: cat >conftest.$ac_ext <<_ACEOF
10004: #line $LINENO "configure"
10005: #include "confdefs.h"
10006: #include <unistd.h>
10007:
10008: #ifdef F77_DUMMY_MAIN
10009: # ifdef __cplusplus
10010: extern "C"
10011: # endif
10012: int F77_DUMMY_MAIN() { return 1; }
10013: #endif
10014: int
10015: main ()
10016: {
10017: #ifndef fdatasync
10018: char *p = (char *) fdatasync;
1.1 petere 10019: #endif
10020:
1.179 petere 10021: ;
10022: return 0;
10023: }
10024: _ACEOF
10025: rm -f conftest.$ac_objext
10026: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027: (eval $ac_compile) 2>&5
10028: ac_status=$?
10029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030: (exit $ac_status); } &&
10031: { ac_try='test -s conftest.$ac_objext'
10032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033: (eval $ac_try) 2>&5
10034: ac_status=$?
10035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036: (exit $ac_status); }; }; then
10037: ac_cv_have_decl_fdatasync=yes
1.1 petere 10038: else
1.179 petere 10039: echo "$as_me: failed program was:" >&5
10040: cat conftest.$ac_ext >&5
10041: ac_cv_have_decl_fdatasync=no
1.1 petere 10042: fi
1.179 petere 10043: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 10044: fi
1.179 petere 10045: echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10046: echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10047: if test $ac_cv_have_decl_fdatasync = yes; then
10048:
10049: cat >>confdefs.h <<_ACEOF
10050: #define HAVE_DECL_FDATASYNC 1
10051: _ACEOF
1.1 petere 10052:
10053:
10054: else
1.179 petere 10055: cat >>confdefs.h <<_ACEOF
10056: #define HAVE_DECL_FDATASYNC 0
10057: _ACEOF
10058:
10059:
1.1 petere 10060: fi
10061:
10062:
1.179 petere 10063:
10064: echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10065: echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10066: if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10067: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10068: else
1.179 petere 10069: cat >conftest.$ac_ext <<_ACEOF
10070: #line $LINENO "configure"
1.1 petere 10071: #include "confdefs.h"
1.179 petere 10072: #include <machine/vmparam.h>
10073: #include <sys/exec.h>
1.1 petere 10074:
1.179 petere 10075: #ifdef F77_DUMMY_MAIN
10076: # ifdef __cplusplus
10077: extern "C"
10078: # endif
10079: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10080: #endif
1.179 petere 10081: int
10082: main ()
10083: {
10084: PS_STRINGS->ps_nargvstr = 1;
10085: PS_STRINGS->ps_argvstr = "foo";
10086: ;
10087: return 0;
10088: }
10089: _ACEOF
10090: rm -f conftest.$ac_objext conftest$ac_exeext
10091: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092: (eval $ac_link) 2>&5
10093: ac_status=$?
10094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095: (exit $ac_status); } &&
10096: { ac_try='test -s conftest$ac_exeext'
10097: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098: (eval $ac_try) 2>&5
10099: ac_status=$?
10100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101: (exit $ac_status); }; }; then
10102: pgac_cv_var_PS_STRINGS=yes
1.1 petere 10103: else
1.179 petere 10104: echo "$as_me: failed program was:" >&5
10105: cat conftest.$ac_ext >&5
10106: pgac_cv_var_PS_STRINGS=no
1.1 petere 10107: fi
1.179 petere 10108: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10109: fi
1.179 petere 10110: echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10111: echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10112: if test "$pgac_cv_var_PS_STRINGS" = yes ; then
1.1 petere 10113:
1.179 petere 10114: cat >>confdefs.h <<\_ACEOF
10115: #define HAVE_PS_STRINGS
10116: _ACEOF
1.1 petere 10117:
10118: fi
10119:
10120:
1.179 petere 10121: # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10122: # is missing. Yes, there are machines that have only one. We may
10123: # also decide to use snprintf.c if snprintf() is present but does not
10124: # have working "long long int" support -- see below.
10125:
10126: SNPRINTF=''
10127:
10128: for ac_func in snprintf
10129: do
10130: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10131: echo "$as_me:$LINENO: checking for $ac_func" >&5
10132: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10133: if eval "test \"\${$as_ac_var+set}\" = set"; then
10134: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10135: else
1.179 petere 10136: cat >conftest.$ac_ext <<_ACEOF
10137: #line $LINENO "configure"
1.1 petere 10138: #include "confdefs.h"
10139: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10140: which can conflict with char $ac_func (); below. */
1.1 petere 10141: #include <assert.h>
10142: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10143: #ifdef __cplusplus
10144: extern "C"
10145: #endif
1.1 petere 10146: /* We use char because int might match the return type of a gcc2
1.179 petere 10147: builtin and then its argument prototype would still apply. */
10148: char $ac_func ();
10149: char (*f) ();
10150:
10151: #ifdef F77_DUMMY_MAIN
10152: # ifdef __cplusplus
10153: extern "C"
10154: # endif
10155: int F77_DUMMY_MAIN() { return 1; }
10156: #endif
10157: int
10158: main ()
10159: {
1.1 petere 10160: /* The GNU C library defines this for functions which it implements
10161: to always fail with ENOSYS. Some functions are actually named
10162: something starting with __ and the normal name is an alias. */
1.179 petere 10163: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10164: choke me
10165: #else
1.179 petere 10166: f = $ac_func;
1.1 petere 10167: #endif
10168:
1.179 petere 10169: ;
10170: return 0;
10171: }
10172: _ACEOF
10173: rm -f conftest.$ac_objext conftest$ac_exeext
10174: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175: (eval $ac_link) 2>&5
10176: ac_status=$?
10177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178: (exit $ac_status); } &&
10179: { ac_try='test -s conftest$ac_exeext'
10180: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181: (eval $ac_try) 2>&5
10182: ac_status=$?
10183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184: (exit $ac_status); }; }; then
10185: eval "$as_ac_var=yes"
10186: else
10187: echo "$as_me: failed program was:" >&5
10188: cat conftest.$ac_ext >&5
10189: eval "$as_ac_var=no"
10190: fi
10191: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10192: fi
10193: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195: if test `eval echo '${'$as_ac_var'}'` = yes; then
10196: cat >>confdefs.h <<_ACEOF
10197: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198: _ACEOF
1.1 petere 10199:
10200: else
1.179 petere 10201: SNPRINTF='snprintf.o'
1.1 petere 10202: fi
1.179 petere 10203: done
1.1 petere 10204:
10205:
1.179 petere 10206: for ac_func in vsnprintf
10207: do
10208: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10209: echo "$as_me:$LINENO: checking for $ac_func" >&5
10210: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10211: if eval "test \"\${$as_ac_var+set}\" = set"; then
10212: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10213: else
1.179 petere 10214: cat >conftest.$ac_ext <<_ACEOF
10215: #line $LINENO "configure"
1.1 petere 10216: #include "confdefs.h"
10217: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10218: which can conflict with char $ac_func (); below. */
1.1 petere 10219: #include <assert.h>
10220: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10221: #ifdef __cplusplus
10222: extern "C"
10223: #endif
1.1 petere 10224: /* We use char because int might match the return type of a gcc2
1.179 petere 10225: builtin and then its argument prototype would still apply. */
10226: char $ac_func ();
10227: char (*f) ();
10228:
10229: #ifdef F77_DUMMY_MAIN
10230: # ifdef __cplusplus
10231: extern "C"
10232: # endif
10233: int F77_DUMMY_MAIN() { return 1; }
10234: #endif
10235: int
10236: main ()
10237: {
1.1 petere 10238: /* The GNU C library defines this for functions which it implements
10239: to always fail with ENOSYS. Some functions are actually named
10240: something starting with __ and the normal name is an alias. */
1.179 petere 10241: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10242: choke me
10243: #else
1.179 petere 10244: f = $ac_func;
1.1 petere 10245: #endif
10246:
1.179 petere 10247: ;
10248: return 0;
10249: }
10250: _ACEOF
10251: rm -f conftest.$ac_objext conftest$ac_exeext
10252: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10253: (eval $ac_link) 2>&5
10254: ac_status=$?
10255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256: (exit $ac_status); } &&
10257: { ac_try='test -s conftest$ac_exeext'
10258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259: (eval $ac_try) 2>&5
10260: ac_status=$?
10261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262: (exit $ac_status); }; }; then
10263: eval "$as_ac_var=yes"
10264: else
10265: echo "$as_me: failed program was:" >&5
10266: cat conftest.$ac_ext >&5
10267: eval "$as_ac_var=no"
10268: fi
10269: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10270: fi
10271: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10272: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10273: if test `eval echo '${'$as_ac_var'}'` = yes; then
10274: cat >>confdefs.h <<_ACEOF
10275: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10276: _ACEOF
10277:
1.1 petere 10278: else
1.179 petere 10279: SNPRINTF='snprintf.o'
1.1 petere 10280: fi
1.179 petere 10281: done
10282:
10283:
10284:
10285:
10286: # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10287: # include/c.h will provide declarations. Note this is a separate test
10288: # from whether the functions exist in the C library --- there are
10289: # systems that have the functions but don't bother to declare them :-(
10290:
10291: echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10292: echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10293: if test "${ac_cv_have_decl_snprintf+set}" = set; then
10294: echo $ECHO_N "(cached) $ECHO_C" >&6
10295: else
10296: cat >conftest.$ac_ext <<_ACEOF
10297: #line $LINENO "configure"
10298: #include "confdefs.h"
10299: $ac_includes_default
10300: #ifdef F77_DUMMY_MAIN
10301: # ifdef __cplusplus
10302: extern "C"
10303: # endif
10304: int F77_DUMMY_MAIN() { return 1; }
10305: #endif
10306: int
10307: main ()
10308: {
10309: #ifndef snprintf
10310: char *p = (char *) snprintf;
10311: #endif
10312:
10313: ;
10314: return 0;
10315: }
10316: _ACEOF
10317: rm -f conftest.$ac_objext
10318: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319: (eval $ac_compile) 2>&5
10320: ac_status=$?
10321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322: (exit $ac_status); } &&
10323: { ac_try='test -s conftest.$ac_objext'
10324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325: (eval $ac_try) 2>&5
10326: ac_status=$?
10327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328: (exit $ac_status); }; }; then
10329: ac_cv_have_decl_snprintf=yes
10330: else
10331: echo "$as_me: failed program was:" >&5
10332: cat conftest.$ac_ext >&5
10333: ac_cv_have_decl_snprintf=no
10334: fi
10335: rm -f conftest.$ac_objext conftest.$ac_ext
10336: fi
10337: echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10338: echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10339: if test $ac_cv_have_decl_snprintf = yes; then
10340:
10341: cat >>confdefs.h <<_ACEOF
10342: #define HAVE_DECL_SNPRINTF 1
10343: _ACEOF
10344:
10345:
10346: else
10347: cat >>confdefs.h <<_ACEOF
10348: #define HAVE_DECL_SNPRINTF 0
10349: _ACEOF
10350:
10351:
1.1 petere 10352: fi
1.179 petere 10353: echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10354: echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10355: if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10356: echo $ECHO_N "(cached) $ECHO_C" >&6
10357: else
10358: cat >conftest.$ac_ext <<_ACEOF
10359: #line $LINENO "configure"
10360: #include "confdefs.h"
10361: $ac_includes_default
10362: #ifdef F77_DUMMY_MAIN
10363: # ifdef __cplusplus
10364: extern "C"
10365: # endif
10366: int F77_DUMMY_MAIN() { return 1; }
10367: #endif
10368: int
10369: main ()
10370: {
10371: #ifndef vsnprintf
10372: char *p = (char *) vsnprintf;
10373: #endif
10374:
10375: ;
10376: return 0;
10377: }
10378: _ACEOF
10379: rm -f conftest.$ac_objext
10380: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10381: (eval $ac_compile) 2>&5
10382: ac_status=$?
10383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384: (exit $ac_status); } &&
10385: { ac_try='test -s conftest.$ac_objext'
10386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387: (eval $ac_try) 2>&5
10388: ac_status=$?
10389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390: (exit $ac_status); }; }; then
10391: ac_cv_have_decl_vsnprintf=yes
10392: else
10393: echo "$as_me: failed program was:" >&5
10394: cat conftest.$ac_ext >&5
10395: ac_cv_have_decl_vsnprintf=no
10396: fi
10397: rm -f conftest.$ac_objext conftest.$ac_ext
10398: fi
10399: echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10400: echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10401: if test $ac_cv_have_decl_vsnprintf = yes; then
10402:
10403: cat >>confdefs.h <<_ACEOF
10404: #define HAVE_DECL_VSNPRINTF 1
10405: _ACEOF
1.1 petere 10406:
10407:
10408: else
1.179 petere 10409: cat >>confdefs.h <<_ACEOF
10410: #define HAVE_DECL_VSNPRINTF 0
10411: _ACEOF
10412:
10413:
1.1 petere 10414: fi
10415:
10416:
1.179 petere 10417:
10418:
10419: # do this one the hard way in case isinf() is a macro
10420: echo "$as_me:$LINENO: checking for isinf" >&5
10421: echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10422: if test "${ac_cv_func_isinf+set}" = set; then
10423: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10424: else
1.179 petere 10425: cat >conftest.$ac_ext <<_ACEOF
10426: #line $LINENO "configure"
1.1 petere 10427: #include "confdefs.h"
1.179 petere 10428: #include <math.h>
1.1 petere 10429:
1.179 petere 10430: #ifdef F77_DUMMY_MAIN
10431: # ifdef __cplusplus
10432: extern "C"
10433: # endif
10434: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10435: #endif
1.179 petere 10436: int
10437: main ()
10438: {
10439: double x = 0.0; int res = isinf(x);
10440: ;
10441: return 0;
10442: }
10443: _ACEOF
10444: rm -f conftest.$ac_objext conftest$ac_exeext
10445: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446: (eval $ac_link) 2>&5
10447: ac_status=$?
10448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449: (exit $ac_status); } &&
10450: { ac_try='test -s conftest$ac_exeext'
10451: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452: (eval $ac_try) 2>&5
10453: ac_status=$?
10454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455: (exit $ac_status); }; }; then
10456: ac_cv_func_isinf=yes
1.1 petere 10457: else
1.179 petere 10458: echo "$as_me: failed program was:" >&5
10459: cat conftest.$ac_ext >&5
10460: ac_cv_func_isinf=no
1.1 petere 10461: fi
1.179 petere 10462: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10463: fi
1.179 petere 10464: echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10465: echo "${ECHO_T}$ac_cv_func_isinf" >&6
10466:
10467: if test $ac_cv_func_isinf = yes ; then
1.1 petere 10468:
1.179 petere 10469: cat >>confdefs.h <<\_ACEOF
10470: #define HAVE_ISINF 1
10471: _ACEOF
1.1 petere 10472:
1.179 petere 10473: ISINF=
1.1 petere 10474: else
1.179 petere 10475: ISINF='isinf.o'
10476: # Look for a way to implement a substitute for isinf()
10477:
10478:
1.1 petere 10479:
10480:
1.179 petere 10481: for ac_func in fpclass fp_class fp_class_d class
10482: do
10483: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10484: echo "$as_me:$LINENO: checking for $ac_func" >&5
10485: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10486: if eval "test \"\${$as_ac_var+set}\" = set"; then
10487: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10488: else
1.179 petere 10489: cat >conftest.$ac_ext <<_ACEOF
10490: #line $LINENO "configure"
1.1 petere 10491: #include "confdefs.h"
10492: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10493: which can conflict with char $ac_func (); below. */
1.1 petere 10494: #include <assert.h>
10495: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10496: #ifdef __cplusplus
10497: extern "C"
10498: #endif
1.1 petere 10499: /* We use char because int might match the return type of a gcc2
1.179 petere 10500: builtin and then its argument prototype would still apply. */
10501: char $ac_func ();
10502: char (*f) ();
10503:
10504: #ifdef F77_DUMMY_MAIN
10505: # ifdef __cplusplus
10506: extern "C"
10507: # endif
10508: int F77_DUMMY_MAIN() { return 1; }
10509: #endif
10510: int
10511: main ()
10512: {
1.1 petere 10513: /* The GNU C library defines this for functions which it implements
10514: to always fail with ENOSYS. Some functions are actually named
10515: something starting with __ and the normal name is an alias. */
1.179 petere 10516: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10517: choke me
10518: #else
1.179 petere 10519: f = $ac_func;
1.1 petere 10520: #endif
10521:
1.179 petere 10522: ;
10523: return 0;
10524: }
10525: _ACEOF
10526: rm -f conftest.$ac_objext conftest$ac_exeext
10527: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528: (eval $ac_link) 2>&5
10529: ac_status=$?
10530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531: (exit $ac_status); } &&
10532: { ac_try='test -s conftest$ac_exeext'
10533: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534: (eval $ac_try) 2>&5
10535: ac_status=$?
10536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537: (exit $ac_status); }; }; then
10538: eval "$as_ac_var=yes"
10539: else
10540: echo "$as_me: failed program was:" >&5
10541: cat conftest.$ac_ext >&5
10542: eval "$as_ac_var=no"
10543: fi
10544: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10545: fi
10546: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10547: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10548: if test `eval echo '${'$as_ac_var'}'` = yes; then
10549: cat >>confdefs.h <<_ACEOF
10550: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10551: _ACEOF
10552: break
1.1 petere 10553: fi
1.179 petere 10554: done
10555:
1.1 petere 10556: fi
10557:
10558:
10559:
10560:
1.179 petere 10561: for ac_func in getrusage
10562: do
10563: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10564: echo "$as_me:$LINENO: checking for $ac_func" >&5
10565: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10566: if eval "test \"\${$as_ac_var+set}\" = set"; then
10567: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10568: else
1.179 petere 10569: cat >conftest.$ac_ext <<_ACEOF
10570: #line $LINENO "configure"
1.1 petere 10571: #include "confdefs.h"
10572: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10573: which can conflict with char $ac_func (); below. */
1.1 petere 10574: #include <assert.h>
10575: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10576: #ifdef __cplusplus
10577: extern "C"
10578: #endif
1.1 petere 10579: /* We use char because int might match the return type of a gcc2
1.179 petere 10580: builtin and then its argument prototype would still apply. */
10581: char $ac_func ();
10582: char (*f) ();
10583:
10584: #ifdef F77_DUMMY_MAIN
10585: # ifdef __cplusplus
10586: extern "C"
10587: # endif
10588: int F77_DUMMY_MAIN() { return 1; }
10589: #endif
10590: int
10591: main ()
10592: {
1.1 petere 10593: /* The GNU C library defines this for functions which it implements
10594: to always fail with ENOSYS. Some functions are actually named
10595: something starting with __ and the normal name is an alias. */
1.179 petere 10596: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10597: choke me
10598: #else
1.179 petere 10599: f = $ac_func;
1.1 petere 10600: #endif
10601:
1.179 petere 10602: ;
10603: return 0;
10604: }
10605: _ACEOF
10606: rm -f conftest.$ac_objext conftest$ac_exeext
10607: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608: (eval $ac_link) 2>&5
10609: ac_status=$?
10610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611: (exit $ac_status); } &&
10612: { ac_try='test -s conftest$ac_exeext'
10613: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614: (eval $ac_try) 2>&5
10615: ac_status=$?
10616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617: (exit $ac_status); }; }; then
10618: eval "$as_ac_var=yes"
10619: else
10620: echo "$as_me: failed program was:" >&5
10621: cat conftest.$ac_ext >&5
10622: eval "$as_ac_var=no"
10623: fi
10624: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10625: fi
10626: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10627: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10628: if test `eval echo '${'$as_ac_var'}'` = yes; then
10629: cat >>confdefs.h <<_ACEOF
10630: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10631: _ACEOF
10632:
1.1 petere 10633: else
1.179 petere 10634: GETRUSAGE='getrusage.o'
1.1 petere 10635: fi
1.179 petere 10636: done
1.1 petere 10637:
10638:
10639:
1.179 petere 10640: for ac_func in srandom
10641: do
10642: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643: echo "$as_me:$LINENO: checking for $ac_func" >&5
10644: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645: if eval "test \"\${$as_ac_var+set}\" = set"; then
10646: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10647: else
1.179 petere 10648: cat >conftest.$ac_ext <<_ACEOF
10649: #line $LINENO "configure"
1.1 petere 10650: #include "confdefs.h"
10651: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10652: which can conflict with char $ac_func (); below. */
1.1 petere 10653: #include <assert.h>
10654: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10655: #ifdef __cplusplus
10656: extern "C"
10657: #endif
1.1 petere 10658: /* We use char because int might match the return type of a gcc2
1.179 petere 10659: builtin and then its argument prototype would still apply. */
10660: char $ac_func ();
10661: char (*f) ();
10662:
10663: #ifdef F77_DUMMY_MAIN
10664: # ifdef __cplusplus
10665: extern "C"
10666: # endif
10667: int F77_DUMMY_MAIN() { return 1; }
10668: #endif
10669: int
10670: main ()
10671: {
1.1 petere 10672: /* The GNU C library defines this for functions which it implements
10673: to always fail with ENOSYS. Some functions are actually named
10674: something starting with __ and the normal name is an alias. */
1.179 petere 10675: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10676: choke me
10677: #else
1.179 petere 10678: f = $ac_func;
1.1 petere 10679: #endif
10680:
1.179 petere 10681: ;
10682: return 0;
10683: }
10684: _ACEOF
10685: rm -f conftest.$ac_objext conftest$ac_exeext
10686: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687: (eval $ac_link) 2>&5
10688: ac_status=$?
10689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690: (exit $ac_status); } &&
10691: { ac_try='test -s conftest$ac_exeext'
10692: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693: (eval $ac_try) 2>&5
10694: ac_status=$?
10695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696: (exit $ac_status); }; }; then
10697: eval "$as_ac_var=yes"
10698: else
10699: echo "$as_me: failed program was:" >&5
10700: cat conftest.$ac_ext >&5
10701: eval "$as_ac_var=no"
10702: fi
10703: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10704: fi
10705: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707: if test `eval echo '${'$as_ac_var'}'` = yes; then
10708: cat >>confdefs.h <<_ACEOF
10709: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710: _ACEOF
10711:
1.1 petere 10712: else
1.179 petere 10713: SRANDOM='srandom.o'
1.1 petere 10714: fi
1.179 petere 10715: done
1.1 petere 10716:
10717:
10718:
1.179 petere 10719: for ac_func in gethostname
10720: do
10721: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10722: echo "$as_me:$LINENO: checking for $ac_func" >&5
10723: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10724: if eval "test \"\${$as_ac_var+set}\" = set"; then
10725: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10726: else
1.179 petere 10727: cat >conftest.$ac_ext <<_ACEOF
10728: #line $LINENO "configure"
1.1 petere 10729: #include "confdefs.h"
10730: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10731: which can conflict with char $ac_func (); below. */
1.1 petere 10732: #include <assert.h>
10733: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10734: #ifdef __cplusplus
10735: extern "C"
10736: #endif
1.1 petere 10737: /* We use char because int might match the return type of a gcc2
1.179 petere 10738: builtin and then its argument prototype would still apply. */
10739: char $ac_func ();
10740: char (*f) ();
10741:
10742: #ifdef F77_DUMMY_MAIN
10743: # ifdef __cplusplus
10744: extern "C"
10745: # endif
10746: int F77_DUMMY_MAIN() { return 1; }
10747: #endif
10748: int
10749: main ()
10750: {
1.1 petere 10751: /* The GNU C library defines this for functions which it implements
10752: to always fail with ENOSYS. Some functions are actually named
10753: something starting with __ and the normal name is an alias. */
1.179 petere 10754: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10755: choke me
10756: #else
1.179 petere 10757: f = $ac_func;
1.1 petere 10758: #endif
10759:
1.179 petere 10760: ;
10761: return 0;
10762: }
10763: _ACEOF
10764: rm -f conftest.$ac_objext conftest$ac_exeext
10765: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766: (eval $ac_link) 2>&5
10767: ac_status=$?
10768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769: (exit $ac_status); } &&
10770: { ac_try='test -s conftest$ac_exeext'
10771: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772: (eval $ac_try) 2>&5
10773: ac_status=$?
10774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775: (exit $ac_status); }; }; then
10776: eval "$as_ac_var=yes"
10777: else
10778: echo "$as_me: failed program was:" >&5
10779: cat conftest.$ac_ext >&5
10780: eval "$as_ac_var=no"
10781: fi
10782: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10783: fi
10784: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10785: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10786: if test `eval echo '${'$as_ac_var'}'` = yes; then
10787: cat >>confdefs.h <<_ACEOF
10788: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10789: _ACEOF
10790:
1.1 petere 10791: else
1.179 petere 10792: GETHOSTNAME='gethostname.o'
1.1 petere 10793: fi
1.179 petere 10794: done
1.1 petere 10795:
1.179 petere 10796:
10797:
10798: for ac_func in random
10799: do
10800: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10801: echo "$as_me:$LINENO: checking for $ac_func" >&5
10802: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10803: if eval "test \"\${$as_ac_var+set}\" = set"; then
10804: echo $ECHO_N "(cached) $ECHO_C" >&6
10805: else
10806: cat >conftest.$ac_ext <<_ACEOF
10807: #line $LINENO "configure"
10808: #include "confdefs.h"
10809: /* System header to define __stub macros and hopefully few prototypes,
10810: which can conflict with char $ac_func (); below. */
10811: #include <assert.h>
10812: /* Override any gcc2 internal prototype to avoid an error. */
10813: #ifdef __cplusplus
10814: extern "C"
10815: #endif
10816: /* We use char because int might match the return type of a gcc2
10817: builtin and then its argument prototype would still apply. */
10818: char $ac_func ();
10819: char (*f) ();
10820:
10821: #ifdef F77_DUMMY_MAIN
10822: # ifdef __cplusplus
10823: extern "C"
10824: # endif
10825: int F77_DUMMY_MAIN() { return 1; }
10826: #endif
10827: int
10828: main ()
10829: {
10830: /* The GNU C library defines this for functions which it implements
10831: to always fail with ENOSYS. Some functions are actually named
10832: something starting with __ and the normal name is an alias. */
10833: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10834: choke me
10835: #else
10836: f = $ac_func;
10837: #endif
10838:
10839: ;
10840: return 0;
10841: }
10842: _ACEOF
10843: rm -f conftest.$ac_objext conftest$ac_exeext
10844: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845: (eval $ac_link) 2>&5
10846: ac_status=$?
10847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848: (exit $ac_status); } &&
10849: { ac_try='test -s conftest$ac_exeext'
10850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851: (eval $ac_try) 2>&5
10852: ac_status=$?
10853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854: (exit $ac_status); }; }; then
10855: eval "$as_ac_var=yes"
10856: else
10857: echo "$as_me: failed program was:" >&5
10858: cat conftest.$ac_ext >&5
10859: eval "$as_ac_var=no"
10860: fi
10861: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10862: fi
10863: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10864: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10865: if test `eval echo '${'$as_ac_var'}'` = yes; then
10866: cat >>confdefs.h <<_ACEOF
10867: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10868: _ACEOF
1.1 petere 10869:
10870: else
1.179 petere 10871: MISSING_RANDOM='random.o'
1.1 petere 10872: fi
1.179 petere 10873: done
1.1 petere 10874:
10875:
1.179 petere 10876:
10877: for ac_func in inet_aton
10878: do
10879: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880: echo "$as_me:$LINENO: checking for $ac_func" >&5
10881: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10882: if eval "test \"\${$as_ac_var+set}\" = set"; then
10883: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10884: else
1.179 petere 10885: cat >conftest.$ac_ext <<_ACEOF
10886: #line $LINENO "configure"
1.1 petere 10887: #include "confdefs.h"
10888: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10889: which can conflict with char $ac_func (); below. */
1.1 petere 10890: #include <assert.h>
10891: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10892: #ifdef __cplusplus
10893: extern "C"
10894: #endif
1.1 petere 10895: /* We use char because int might match the return type of a gcc2
1.179 petere 10896: builtin and then its argument prototype would still apply. */
10897: char $ac_func ();
10898: char (*f) ();
10899:
10900: #ifdef F77_DUMMY_MAIN
10901: # ifdef __cplusplus
10902: extern "C"
10903: # endif
10904: int F77_DUMMY_MAIN() { return 1; }
10905: #endif
10906: int
10907: main ()
10908: {
10909: /* The GNU C library defines this for functions which it implements
10910: to always fail with ENOSYS. Some functions are actually named
10911: something starting with __ and the normal name is an alias. */
10912: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10913: choke me
10914: #else
10915: f = $ac_func;
10916: #endif
10917:
10918: ;
10919: return 0;
10920: }
10921: _ACEOF
10922: rm -f conftest.$ac_objext conftest$ac_exeext
10923: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924: (eval $ac_link) 2>&5
10925: ac_status=$?
10926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927: (exit $ac_status); } &&
10928: { ac_try='test -s conftest$ac_exeext'
10929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930: (eval $ac_try) 2>&5
10931: ac_status=$?
10932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933: (exit $ac_status); }; }; then
10934: eval "$as_ac_var=yes"
10935: else
10936: echo "$as_me: failed program was:" >&5
10937: cat conftest.$ac_ext >&5
10938: eval "$as_ac_var=no"
10939: fi
10940: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10941: fi
10942: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10943: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10944: if test `eval echo '${'$as_ac_var'}'` = yes; then
10945: cat >>confdefs.h <<_ACEOF
10946: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10947: _ACEOF
10948:
10949: else
10950: INET_ATON='inet_aton.o'
10951: fi
10952: done
10953:
1.1 petere 10954:
10955:
1.179 petere 10956: for ac_func in strerror
10957: do
10958: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10959: echo "$as_me:$LINENO: checking for $ac_func" >&5
10960: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10961: if eval "test \"\${$as_ac_var+set}\" = set"; then
10962: echo $ECHO_N "(cached) $ECHO_C" >&6
10963: else
10964: cat >conftest.$ac_ext <<_ACEOF
10965: #line $LINENO "configure"
10966: #include "confdefs.h"
10967: /* System header to define __stub macros and hopefully few prototypes,
10968: which can conflict with char $ac_func (); below. */
10969: #include <assert.h>
10970: /* Override any gcc2 internal prototype to avoid an error. */
10971: #ifdef __cplusplus
10972: extern "C"
10973: #endif
10974: /* We use char because int might match the return type of a gcc2
10975: builtin and then its argument prototype would still apply. */
10976: char $ac_func ();
10977: char (*f) ();
10978:
10979: #ifdef F77_DUMMY_MAIN
10980: # ifdef __cplusplus
10981: extern "C"
10982: # endif
10983: int F77_DUMMY_MAIN() { return 1; }
10984: #endif
10985: int
10986: main ()
10987: {
1.1 petere 10988: /* The GNU C library defines this for functions which it implements
10989: to always fail with ENOSYS. Some functions are actually named
10990: something starting with __ and the normal name is an alias. */
1.179 petere 10991: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10992: choke me
10993: #else
1.179 petere 10994: f = $ac_func;
1.1 petere 10995: #endif
10996:
1.179 petere 10997: ;
10998: return 0;
10999: }
11000: _ACEOF
11001: rm -f conftest.$ac_objext conftest$ac_exeext
11002: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003: (eval $ac_link) 2>&5
11004: ac_status=$?
11005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006: (exit $ac_status); } &&
11007: { ac_try='test -s conftest$ac_exeext'
11008: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009: (eval $ac_try) 2>&5
11010: ac_status=$?
11011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012: (exit $ac_status); }; }; then
11013: eval "$as_ac_var=yes"
11014: else
11015: echo "$as_me: failed program was:" >&5
11016: cat conftest.$ac_ext >&5
11017: eval "$as_ac_var=no"
11018: fi
11019: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11020: fi
11021: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11022: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11023: if test `eval echo '${'$as_ac_var'}'` = yes; then
11024: cat >>confdefs.h <<_ACEOF
11025: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11026: _ACEOF
11027:
1.1 petere 11028: else
1.179 petere 11029: STRERROR='strerror.o'
1.1 petere 11030: fi
1.179 petere 11031: done
11032:
11033:
11034:
11035: for ac_func in strdup
11036: do
11037: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038: echo "$as_me:$LINENO: checking for $ac_func" >&5
11039: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11040: if eval "test \"\${$as_ac_var+set}\" = set"; then
11041: echo $ECHO_N "(cached) $ECHO_C" >&6
11042: else
11043: cat >conftest.$ac_ext <<_ACEOF
11044: #line $LINENO "configure"
11045: #include "confdefs.h"
11046: /* System header to define __stub macros and hopefully few prototypes,
11047: which can conflict with char $ac_func (); below. */
11048: #include <assert.h>
11049: /* Override any gcc2 internal prototype to avoid an error. */
11050: #ifdef __cplusplus
11051: extern "C"
11052: #endif
11053: /* We use char because int might match the return type of a gcc2
11054: builtin and then its argument prototype would still apply. */
11055: char $ac_func ();
11056: char (*f) ();
11057:
11058: #ifdef F77_DUMMY_MAIN
11059: # ifdef __cplusplus
11060: extern "C"
11061: # endif
11062: int F77_DUMMY_MAIN() { return 1; }
11063: #endif
11064: int
11065: main ()
11066: {
11067: /* The GNU C library defines this for functions which it implements
11068: to always fail with ENOSYS. Some functions are actually named
11069: something starting with __ and the normal name is an alias. */
11070: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11071: choke me
11072: #else
11073: f = $ac_func;
11074: #endif
11075:
11076: ;
11077: return 0;
11078: }
11079: _ACEOF
11080: rm -f conftest.$ac_objext conftest$ac_exeext
11081: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082: (eval $ac_link) 2>&5
11083: ac_status=$?
11084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085: (exit $ac_status); } &&
11086: { ac_try='test -s conftest$ac_exeext'
11087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088: (eval $ac_try) 2>&5
11089: ac_status=$?
11090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091: (exit $ac_status); }; }; then
11092: eval "$as_ac_var=yes"
11093: else
11094: echo "$as_me: failed program was:" >&5
11095: cat conftest.$ac_ext >&5
11096: eval "$as_ac_var=no"
11097: fi
11098: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11099: fi
11100: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11101: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11102: if test `eval echo '${'$as_ac_var'}'` = yes; then
11103: cat >>confdefs.h <<_ACEOF
11104: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11105: _ACEOF
11106:
11107: else
11108: STRDUP='../../utils/strdup.o'
1.1 petere 11109: fi
1.179 petere 11110: done
11111:
11112:
11113:
11114: for ac_func in strtol
11115: do
11116: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11117: echo "$as_me:$LINENO: checking for $ac_func" >&5
11118: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11119: if eval "test \"\${$as_ac_var+set}\" = set"; then
11120: echo $ECHO_N "(cached) $ECHO_C" >&6
11121: else
11122: cat >conftest.$ac_ext <<_ACEOF
11123: #line $LINENO "configure"
11124: #include "confdefs.h"
11125: /* System header to define __stub macros and hopefully few prototypes,
11126: which can conflict with char $ac_func (); below. */
11127: #include <assert.h>
11128: /* Override any gcc2 internal prototype to avoid an error. */
11129: #ifdef __cplusplus
11130: extern "C"
11131: #endif
11132: /* We use char because int might match the return type of a gcc2
11133: builtin and then its argument prototype would still apply. */
11134: char $ac_func ();
11135: char (*f) ();
11136:
11137: #ifdef F77_DUMMY_MAIN
11138: # ifdef __cplusplus
11139: extern "C"
11140: # endif
11141: int F77_DUMMY_MAIN() { return 1; }
11142: #endif
11143: int
11144: main ()
11145: {
11146: /* The GNU C library defines this for functions which it implements
11147: to always fail with ENOSYS. Some functions are actually named
11148: something starting with __ and the normal name is an alias. */
11149: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11150: choke me
11151: #else
11152: f = $ac_func;
11153: #endif
1.1 petere 11154:
1.179 petere 11155: ;
11156: return 0;
11157: }
11158: _ACEOF
11159: rm -f conftest.$ac_objext conftest$ac_exeext
11160: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161: (eval $ac_link) 2>&5
11162: ac_status=$?
11163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164: (exit $ac_status); } &&
11165: { ac_try='test -s conftest$ac_exeext'
11166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167: (eval $ac_try) 2>&5
11168: ac_status=$?
11169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170: (exit $ac_status); }; }; then
11171: eval "$as_ac_var=yes"
11172: else
11173: echo "$as_me: failed program was:" >&5
11174: cat conftest.$ac_ext >&5
11175: eval "$as_ac_var=no"
11176: fi
11177: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11178: fi
11179: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181: if test `eval echo '${'$as_ac_var'}'` = yes; then
11182: cat >>confdefs.h <<_ACEOF
11183: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11184: _ACEOF
1.1 petere 11185:
11186: else
1.179 petere 11187: STRTOL='strtol.o'
11188: fi
11189: done
11190:
11191:
11192:
11193: for ac_func in strtoul
11194: do
11195: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11196: echo "$as_me:$LINENO: checking for $ac_func" >&5
11197: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11198: if eval "test \"\${$as_ac_var+set}\" = set"; then
11199: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11200: else
1.179 petere 11201: cat >conftest.$ac_ext <<_ACEOF
11202: #line $LINENO "configure"
1.1 petere 11203: #include "confdefs.h"
1.179 petere 11204: /* System header to define __stub macros and hopefully few prototypes,
11205: which can conflict with char $ac_func (); below. */
11206: #include <assert.h>
1.1 petere 11207: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11208: #ifdef __cplusplus
11209: extern "C"
11210: #endif
1.1 petere 11211: /* We use char because int might match the return type of a gcc2
1.179 petere 11212: builtin and then its argument prototype would still apply. */
11213: char $ac_func ();
11214: char (*f) ();
11215:
11216: #ifdef F77_DUMMY_MAIN
11217: # ifdef __cplusplus
11218: extern "C"
11219: # endif
11220: int F77_DUMMY_MAIN() { return 1; }
11221: #endif
11222: int
11223: main ()
11224: {
11225: /* The GNU C library defines this for functions which it implements
11226: to always fail with ENOSYS. Some functions are actually named
11227: something starting with __ and the normal name is an alias. */
11228: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11229: choke me
11230: #else
11231: f = $ac_func;
11232: #endif
11233:
11234: ;
11235: return 0;
11236: }
11237: _ACEOF
11238: rm -f conftest.$ac_objext conftest$ac_exeext
11239: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240: (eval $ac_link) 2>&5
11241: ac_status=$?
11242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243: (exit $ac_status); } &&
11244: { ac_try='test -s conftest$ac_exeext'
11245: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246: (eval $ac_try) 2>&5
11247: ac_status=$?
11248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249: (exit $ac_status); }; }; then
11250: eval "$as_ac_var=yes"
11251: else
11252: echo "$as_me: failed program was:" >&5
11253: cat conftest.$ac_ext >&5
11254: eval "$as_ac_var=no"
11255: fi
11256: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11257: fi
11258: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11259: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11260: if test `eval echo '${'$as_ac_var'}'` = yes; then
11261: cat >>confdefs.h <<_ACEOF
11262: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263: _ACEOF
1.1 petere 11264:
11265: else
1.179 petere 11266: STRTOUL='strtoul.o'
1.1 petere 11267: fi
1.179 petere 11268: done
11269:
11270:
11271:
11272: for ac_func in strcasecmp
11273: do
11274: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275: echo "$as_me:$LINENO: checking for $ac_func" >&5
11276: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11277: if eval "test \"\${$as_ac_var+set}\" = set"; then
11278: echo $ECHO_N "(cached) $ECHO_C" >&6
11279: else
11280: cat >conftest.$ac_ext <<_ACEOF
11281: #line $LINENO "configure"
11282: #include "confdefs.h"
11283: /* System header to define __stub macros and hopefully few prototypes,
11284: which can conflict with char $ac_func (); below. */
11285: #include <assert.h>
11286: /* Override any gcc2 internal prototype to avoid an error. */
11287: #ifdef __cplusplus
11288: extern "C"
11289: #endif
11290: /* We use char because int might match the return type of a gcc2
11291: builtin and then its argument prototype would still apply. */
11292: char $ac_func ();
11293: char (*f) ();
11294:
11295: #ifdef F77_DUMMY_MAIN
11296: # ifdef __cplusplus
11297: extern "C"
11298: # endif
11299: int F77_DUMMY_MAIN() { return 1; }
11300: #endif
11301: int
11302: main ()
11303: {
11304: /* The GNU C library defines this for functions which it implements
11305: to always fail with ENOSYS. Some functions are actually named
11306: something starting with __ and the normal name is an alias. */
11307: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11308: choke me
11309: #else
11310: f = $ac_func;
11311: #endif
1.1 petere 11312:
1.179 petere 11313: ;
11314: return 0;
11315: }
11316: _ACEOF
11317: rm -f conftest.$ac_objext conftest$ac_exeext
11318: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319: (eval $ac_link) 2>&5
11320: ac_status=$?
11321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322: (exit $ac_status); } &&
11323: { ac_try='test -s conftest$ac_exeext'
11324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325: (eval $ac_try) 2>&5
11326: ac_status=$?
11327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328: (exit $ac_status); }; }; then
11329: eval "$as_ac_var=yes"
11330: else
11331: echo "$as_me: failed program was:" >&5
11332: cat conftest.$ac_ext >&5
11333: eval "$as_ac_var=no"
11334: fi
11335: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336: fi
11337: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11338: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11339: if test `eval echo '${'$as_ac_var'}'` = yes; then
11340: cat >>confdefs.h <<_ACEOF
11341: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11342: _ACEOF
1.1 petere 11343:
11344: else
1.179 petere 11345: STRCASECMP='strcasecmp.o'
1.1 petere 11346: fi
1.179 petere 11347: done
1.1 petere 11348:
11349:
11350:
11351: # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11352: # this hackery with HPUXMATHLIB allows us to cope.
11353: HPUXMATHLIB=""
1.30 petere 11354: case $host_cpu in
1.179 petere 11355: hppa1.1)
1.1 petere 11356: if [ -r /lib/pa1.1/libm.a ] ; then
11357: HPUXMATHLIB="-L /lib/pa1.1 -lm"
11358: fi ;;
11359: esac
11360:
11361:
1.179 petere 11362:
11363: for ac_func in rint
11364: do
11365: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11366: echo "$as_me:$LINENO: checking for $ac_func" >&5
11367: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11368: if eval "test \"\${$as_ac_var+set}\" = set"; then
11369: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11370: else
1.179 petere 11371: cat >conftest.$ac_ext <<_ACEOF
11372: #line $LINENO "configure"
1.1 petere 11373: #include "confdefs.h"
11374: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11375: which can conflict with char $ac_func (); below. */
1.1 petere 11376: #include <assert.h>
11377: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11378: #ifdef __cplusplus
11379: extern "C"
11380: #endif
1.1 petere 11381: /* We use char because int might match the return type of a gcc2
1.179 petere 11382: builtin and then its argument prototype would still apply. */
11383: char $ac_func ();
11384: char (*f) ();
11385:
11386: #ifdef F77_DUMMY_MAIN
11387: # ifdef __cplusplus
11388: extern "C"
11389: # endif
11390: int F77_DUMMY_MAIN() { return 1; }
11391: #endif
11392: int
11393: main ()
11394: {
1.1 petere 11395: /* The GNU C library defines this for functions which it implements
11396: to always fail with ENOSYS. Some functions are actually named
11397: something starting with __ and the normal name is an alias. */
1.179 petere 11398: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11399: choke me
11400: #else
1.179 petere 11401: f = $ac_func;
1.1 petere 11402: #endif
11403:
1.179 petere 11404: ;
11405: return 0;
11406: }
11407: _ACEOF
11408: rm -f conftest.$ac_objext conftest$ac_exeext
11409: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410: (eval $ac_link) 2>&5
11411: ac_status=$?
11412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413: (exit $ac_status); } &&
11414: { ac_try='test -s conftest$ac_exeext'
11415: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416: (eval $ac_try) 2>&5
11417: ac_status=$?
11418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419: (exit $ac_status); }; }; then
11420: eval "$as_ac_var=yes"
11421: else
11422: echo "$as_me: failed program was:" >&5
11423: cat conftest.$ac_ext >&5
11424: eval "$as_ac_var=no"
11425: fi
11426: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427: fi
11428: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11429: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11430: if test `eval echo '${'$as_ac_var'}'` = yes; then
11431: cat >>confdefs.h <<_ACEOF
11432: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11433: _ACEOF
11434:
11435: else
11436: echo "$as_me:$LINENO: checking for rint in -lm" >&5
11437: echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11438: if test "${ac_cv_lib_m_rint+set}" = set; then
11439: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11440: else
1.179 petere 11441: ac_check_lib_save_LIBS=$LIBS
1.1 petere 11442: LIBS="-lm $HPUXMATHLIB $LIBS"
1.179 petere 11443: cat >conftest.$ac_ext <<_ACEOF
11444: #line $LINENO "configure"
1.1 petere 11445: #include "confdefs.h"
1.179 petere 11446:
1.1 petere 11447: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11448: #ifdef __cplusplus
11449: extern "C"
11450: #endif
1.1 petere 11451: /* We use char because int might match the return type of a gcc2
1.179 petere 11452: builtin and then its argument prototype would still apply. */
11453: char rint ();
11454: #ifdef F77_DUMMY_MAIN
11455: # ifdef __cplusplus
11456: extern "C"
11457: # endif
11458: int F77_DUMMY_MAIN() { return 1; }
11459: #endif
11460: int
11461: main ()
11462: {
11463: rint ();
11464: ;
11465: return 0;
11466: }
11467: _ACEOF
11468: rm -f conftest.$ac_objext conftest$ac_exeext
11469: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11470: (eval $ac_link) 2>&5
11471: ac_status=$?
11472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473: (exit $ac_status); } &&
11474: { ac_try='test -s conftest$ac_exeext'
11475: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476: (eval $ac_try) 2>&5
11477: ac_status=$?
11478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479: (exit $ac_status); }; }; then
11480: ac_cv_lib_m_rint=yes
11481: else
11482: echo "$as_me: failed program was:" >&5
11483: cat conftest.$ac_ext >&5
11484: ac_cv_lib_m_rint=no
11485: fi
11486: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11487: LIBS=$ac_check_lib_save_LIBS
11488: fi
11489: echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11490: echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11491: if test $ac_cv_lib_m_rint = yes; then
11492: cat >>confdefs.h <<\_ACEOF
1.1 petere 11493: #define HAVE_RINT 1
1.179 petere 11494: _ACEOF
1.1 petere 11495:
11496: fi
11497:
11498: fi
1.179 petere 11499: done
1.1 petere 11500:
11501:
1.54 petere 11502:
11503: # Readline versions < 2.1 don't have rl_completion_append_character
1.179 petere 11504: echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11505: echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11506: cat >conftest.$ac_ext <<_ACEOF
11507: #line $LINENO "configure"
1.1 petere 11508: #include "confdefs.h"
1.54 petere 11509: #include <stdio.h>
11510: #ifdef HAVE_READLINE_READLINE_H
11511: # include <readline/readline.h>
1.124 petere 11512: #elif defined(HAVE_READLINE_H)
11513: # include <readline.h>
1.54 petere 11514: #endif
1.124 petere 11515:
1.179 petere 11516: #ifdef F77_DUMMY_MAIN
11517: # ifdef __cplusplus
11518: extern "C"
11519: # endif
11520: int F77_DUMMY_MAIN() { return 1; }
11521: #endif
11522: int
11523: main ()
11524: {
1.54 petere 11525: rl_completion_append_character = 'x';
1.179 petere 11526: ;
11527: return 0;
11528: }
11529: _ACEOF
11530: rm -f conftest.$ac_objext conftest$ac_exeext
11531: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532: (eval $ac_link) 2>&5
11533: ac_status=$?
11534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535: (exit $ac_status); } &&
11536: { ac_try='test -s conftest$ac_exeext'
11537: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538: (eval $ac_try) 2>&5
11539: ac_status=$?
11540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541: (exit $ac_status); }; }; then
11542: echo "$as_me:$LINENO: result: yes" >&5
11543: echo "${ECHO_T}yes" >&6
11544:
11545: cat >>confdefs.h <<\_ACEOF
1.1 petere 11546: #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
1.179 petere 11547: _ACEOF
1.1 petere 11548:
11549: else
1.179 petere 11550: echo "$as_me: failed program was:" >&5
11551: cat conftest.$ac_ext >&5
11552: echo "$as_me:$LINENO: result: no" >&5
11553: echo "${ECHO_T}no" >&6
1.1 petere 11554: fi
1.179 petere 11555: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11556:
11557:
1.1 petere 11558:
1.136 momjian 11559: for ac_func in rl_completion_matches rl_filename_completion_function
1.124 petere 11560: do
1.179 petere 11561: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11562: echo "$as_me:$LINENO: checking for $ac_func" >&5
11563: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11564: if eval "test \"\${$as_ac_var+set}\" = set"; then
11565: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11566: else
1.179 petere 11567: cat >conftest.$ac_ext <<_ACEOF
11568: #line $LINENO "configure"
1.1 petere 11569: #include "confdefs.h"
1.124 petere 11570: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11571: which can conflict with char $ac_func (); below. */
1.124 petere 11572: #include <assert.h>
11573: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11574: #ifdef __cplusplus
11575: extern "C"
11576: #endif
1.124 petere 11577: /* We use char because int might match the return type of a gcc2
1.179 petere 11578: builtin and then its argument prototype would still apply. */
11579: char $ac_func ();
11580: char (*f) ();
11581:
11582: #ifdef F77_DUMMY_MAIN
11583: # ifdef __cplusplus
11584: extern "C"
11585: # endif
11586: int F77_DUMMY_MAIN() { return 1; }
11587: #endif
11588: int
11589: main ()
11590: {
1.124 petere 11591: /* The GNU C library defines this for functions which it implements
11592: to always fail with ENOSYS. Some functions are actually named
11593: something starting with __ and the normal name is an alias. */
11594: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11595: choke me
11596: #else
1.179 petere 11597: f = $ac_func;
1.124 petere 11598: #endif
11599:
1.179 petere 11600: ;
11601: return 0;
11602: }
11603: _ACEOF
11604: rm -f conftest.$ac_objext conftest$ac_exeext
11605: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606: (eval $ac_link) 2>&5
11607: ac_status=$?
11608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609: (exit $ac_status); } &&
11610: { ac_try='test -s conftest$ac_exeext'
11611: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612: (eval $ac_try) 2>&5
11613: ac_status=$?
11614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615: (exit $ac_status); }; }; then
11616: eval "$as_ac_var=yes"
11617: else
11618: echo "$as_me: failed program was:" >&5
11619: cat conftest.$ac_ext >&5
11620: eval "$as_ac_var=no"
11621: fi
11622: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11623: fi
11624: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11625: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11626: if test `eval echo '${'$as_ac_var'}'` = yes; then
11627: cat >>confdefs.h <<_ACEOF
11628: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629: _ACEOF
1.1 petere 11630:
1.124 petere 11631: fi
11632: done
1.1 petere 11633:
11634:
11635:
1.179 petere 11636: echo "$as_me:$LINENO: checking for finite" >&5
11637: echo $ECHO_N "checking for finite... $ECHO_C" >&6
11638: cat >conftest.$ac_ext <<_ACEOF
11639: #line $LINENO "configure"
1.1 petere 11640: #include "confdefs.h"
11641: #include <math.h>
1.179 petere 11642: #ifdef F77_DUMMY_MAIN
11643: # ifdef __cplusplus
11644: extern "C"
11645: # endif
11646: int F77_DUMMY_MAIN() { return 1; }
11647: #endif
11648: int
11649: main ()
11650: {
1.1 petere 11651: int dummy=finite(1.0);
1.179 petere 11652: ;
11653: return 0;
11654: }
11655: _ACEOF
11656: rm -f conftest.$ac_objext conftest$ac_exeext
11657: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658: (eval $ac_link) 2>&5
11659: ac_status=$?
11660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661: (exit $ac_status); } &&
11662: { ac_try='test -s conftest$ac_exeext'
11663: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664: (eval $ac_try) 2>&5
11665: ac_status=$?
11666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667: (exit $ac_status); }; }; then
11668:
11669: cat >>confdefs.h <<\_ACEOF
1.1 petere 11670: #define HAVE_FINITE 1
1.179 petere 11671: _ACEOF
11672:
11673: echo "$as_me:$LINENO: result: yes" >&5
11674: echo "${ECHO_T}yes" >&6
1.1 petere 11675: else
1.179 petere 11676: echo "$as_me: failed program was:" >&5
11677: cat conftest.$ac_ext >&5
11678: echo "$as_me:$LINENO: result: no" >&5
11679: echo "${ECHO_T}no" >&6
11680: fi
11681: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11682:
11683: echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11684: echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11685: cat >conftest.$ac_ext <<_ACEOF
11686: #line $LINENO "configure"
1.1 petere 11687: #include "confdefs.h"
11688: #include <setjmp.h>
1.179 petere 11689: #ifdef F77_DUMMY_MAIN
11690: # ifdef __cplusplus
11691: extern "C"
11692: # endif
11693: int F77_DUMMY_MAIN() { return 1; }
11694: #endif
11695: int
11696: main ()
11697: {
1.1 petere 11698: sigjmp_buf x; sigsetjmp(x, 1);
1.179 petere 11699: ;
11700: return 0;
11701: }
11702: _ACEOF
11703: rm -f conftest.$ac_objext conftest$ac_exeext
11704: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705: (eval $ac_link) 2>&5
11706: ac_status=$?
11707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708: (exit $ac_status); } &&
11709: { ac_try='test -s conftest$ac_exeext'
11710: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711: (eval $ac_try) 2>&5
11712: ac_status=$?
11713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714: (exit $ac_status); }; }; then
11715:
11716: cat >>confdefs.h <<\_ACEOF
1.1 petere 11717: #define HAVE_SIGSETJMP 1
1.179 petere 11718: _ACEOF
11719:
11720: echo "$as_me:$LINENO: result: yes" >&5
11721: echo "${ECHO_T}yes" >&6
1.1 petere 11722: else
1.179 petere 11723: echo "$as_me: failed program was:" >&5
11724: cat conftest.$ac_ext >&5
11725: echo "$as_me:$LINENO: result: no" >&5
11726: echo "${ECHO_T}no" >&6
1.1 petere 11727: fi
1.179 petere 11728: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11729:
11730:
11731:
1.1 petere 11732:
1.179 petere 11733: # Check whether --enable-syslog or --disable-syslog was given.
11734: if test "${enable_syslog+set}" = set; then
11735: enableval="$enable_syslog"
1.43 petere 11736:
1.179 petere 11737: case $enableval in
1.43 petere 11738: yes)
1.179 petere 11739: echo "$as_me:$LINENO: checking for syslog" >&5
11740: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11741: if test "${ac_cv_func_syslog+set}" = set; then
11742: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11743: else
1.179 petere 11744: cat >conftest.$ac_ext <<_ACEOF
11745: #line $LINENO "configure"
1.1 petere 11746: #include "confdefs.h"
11747: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11748: which can conflict with char syslog (); below. */
1.1 petere 11749: #include <assert.h>
11750: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11751: #ifdef __cplusplus
11752: extern "C"
11753: #endif
1.1 petere 11754: /* We use char because int might match the return type of a gcc2
1.179 petere 11755: builtin and then its argument prototype would still apply. */
11756: char syslog ();
11757: char (*f) ();
11758:
11759: #ifdef F77_DUMMY_MAIN
11760: # ifdef __cplusplus
11761: extern "C"
11762: # endif
11763: int F77_DUMMY_MAIN() { return 1; }
11764: #endif
11765: int
11766: main ()
11767: {
1.1 petere 11768: /* The GNU C library defines this for functions which it implements
11769: to always fail with ENOSYS. Some functions are actually named
11770: something starting with __ and the normal name is an alias. */
11771: #if defined (__stub_syslog) || defined (__stub___syslog)
11772: choke me
11773: #else
1.179 petere 11774: f = syslog;
1.1 petere 11775: #endif
11776:
1.179 petere 11777: ;
11778: return 0;
11779: }
11780: _ACEOF
11781: rm -f conftest.$ac_objext conftest$ac_exeext
11782: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783: (eval $ac_link) 2>&5
11784: ac_status=$?
11785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786: (exit $ac_status); } &&
11787: { ac_try='test -s conftest$ac_exeext'
11788: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789: (eval $ac_try) 2>&5
11790: ac_status=$?
11791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792: (exit $ac_status); }; }; then
11793: ac_cv_func_syslog=yes
11794: else
11795: echo "$as_me: failed program was:" >&5
11796: cat conftest.$ac_ext >&5
11797: ac_cv_func_syslog=no
11798: fi
11799: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11800: fi
11801: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11802: echo "${ECHO_T}$ac_cv_func_syslog" >&6
11803: if test $ac_cv_func_syslog = yes; then
1.1 petere 11804:
1.179 petere 11805: cat >>confdefs.h <<\_ACEOF
1.1 petere 11806: #define ENABLE_SYSLOG 1
1.179 petere 11807: _ACEOF
1.1 petere 11808:
11809: else
1.179 petere 11810: { { echo "$as_me:$LINENO: error: no syslog interface found" >&5
11811: echo "$as_me: error: no syslog interface found" >&2;}
11812: { (exit 1); exit 1; }; }
1.1 petere 11813: fi
11814:
1.43 petere 11815: ;;
11816: no)
11817: :
11818: ;;
11819: *)
1.179 petere 11820: { { echo "$as_me:$LINENO: error: no argument expected for --enable-syslog option" >&5
11821: echo "$as_me: error: no argument expected for --enable-syslog option" >&2;}
11822: { (exit 1); exit 1; }; }
1.43 petere 11823: ;;
1.179 petere 11824: esac
11825:
1.43 petere 11826: else
11827: enable_syslog=no
1.1 petere 11828:
1.179 petere 11829: fi;
11830:
1.1 petere 11831:
11832:
1.179 petere 11833: echo "$as_me:$LINENO: checking for optreset" >&5
11834: echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11835: if test "${pgac_cv_var_int_optreset+set}" = set; then
11836: echo $ECHO_N "(cached) $ECHO_C" >&6
1.82 petere 11837: else
1.179 petere 11838: cat >conftest.$ac_ext <<_ACEOF
11839: #line $LINENO "configure"
1.82 petere 11840: #include "confdefs.h"
11841: #include <unistd.h>
1.179 petere 11842: #ifdef F77_DUMMY_MAIN
11843: # ifdef __cplusplus
11844: extern "C"
11845: # endif
11846: int F77_DUMMY_MAIN() { return 1; }
11847: #endif
11848: int
11849: main ()
11850: {
1.82 petere 11851: extern int optreset; optreset = 1;
1.179 petere 11852: ;
11853: return 0;
11854: }
11855: _ACEOF
11856: rm -f conftest.$ac_objext conftest$ac_exeext
11857: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11858: (eval $ac_link) 2>&5
11859: ac_status=$?
11860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861: (exit $ac_status); } &&
11862: { ac_try='test -s conftest$ac_exeext'
11863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864: (eval $ac_try) 2>&5
11865: ac_status=$?
11866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867: (exit $ac_status); }; }; then
1.82 petere 11868: pgac_cv_var_int_optreset=yes
11869: else
1.179 petere 11870: echo "$as_me: failed program was:" >&5
11871: cat conftest.$ac_ext >&5
11872: pgac_cv_var_int_optreset=no
1.82 petere 11873: fi
1.179 petere 11874: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.82 petere 11875: fi
1.179 petere 11876: echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11877: echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11878: if test x"$pgac_cv_var_int_optreset" = x"yes"; then
1.82 petere 11879:
1.179 petere 11880: cat >>confdefs.h <<\_ACEOF
1.82 petere 11881: #define HAVE_INT_OPTRESET 1
1.179 petere 11882: _ACEOF
1.82 petere 11883:
11884: fi
11885:
1.1 petere 11886:
1.116 petere 11887: # This test makes sure that run tests work at all. Sometimes a shared
11888: # library is found by the linker, but the runtime linker can't find it.
11889: # This check should come after all modifications of compiler or linker
11890: # variables, and before any other run tests.
1.179 petere 11891: echo "$as_me:$LINENO: checking test program" >&5
11892: echo $ECHO_N "checking test program... $ECHO_C" >&6
1.116 petere 11893: if test "$cross_compiling" = yes; then
1.179 petere 11894: echo "$as_me:$LINENO: result: cross-compiling" >&5
11895: echo "${ECHO_T}cross-compiling" >&6
1.116 petere 11896: else
1.179 petere 11897: cat >conftest.$ac_ext <<_ACEOF
11898: #line $LINENO "configure"
1.116 petere 11899: #include "confdefs.h"
11900: int main() { return 0; }
1.179 petere 11901: _ACEOF
11902: rm -f conftest$ac_exeext
11903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904: (eval $ac_link) 2>&5
11905: ac_status=$?
11906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11908: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909: (eval $ac_try) 2>&5
11910: ac_status=$?
11911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912: (exit $ac_status); }; }; then
11913: echo "$as_me:$LINENO: result: ok" >&5
11914: echo "${ECHO_T}ok" >&6
11915: else
11916: echo "$as_me: program exited with status $ac_status" >&5
11917: echo "$as_me: failed program was:" >&5
11918: cat conftest.$ac_ext >&5
11919: ( exit $ac_status )
11920: echo "$as_me:$LINENO: result: failed" >&5
11921: echo "${ECHO_T}failed" >&6
11922: { { echo "$as_me:$LINENO: error:
11923: *** Could not execute a simple test program. This may be a problem
11924: *** related to locating shared libraries. Check the file 'config.log'
11925: *** for the exact reason." >&5
11926: echo "$as_me: error:
1.116 petere 11927: *** Could not execute a simple test program. This may be a problem
11928: *** related to locating shared libraries. Check the file 'config.log'
1.179 petere 11929: *** for the exact reason." >&2;}
11930: { (exit 1); exit 1; }; }
1.116 petere 11931: fi
1.179 petere 11932: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.116 petere 11933: fi
11934:
11935:
11936:
1.179 petere 11937: echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11938: echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11939: if test "${pgac_cv_type_long_int_64+set}" = set; then
11940: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 11941: else
11942: if test "$cross_compiling" = yes; then
11943: pgac_cv_type_long_int_64=no
1.179 petere 11944: { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11945: echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
1.1 petere 11946: else
1.179 petere 11947: cat >conftest.$ac_ext <<_ACEOF
11948: #line $LINENO "configure"
1.1 petere 11949: #include "confdefs.h"
11950: typedef long int int64;
11951:
1.5 petere 11952: /*
11953: * These are globals to discourage the compiler from folding all the
1.1 petere 11954: * arithmetic tests down to compile-time constants.
11955: */
11956: int64 a = 20000001;
11957: int64 b = 40000005;
11958:
11959: int does_int64_work()
11960: {
11961: int64 c,d;
11962:
11963: if (sizeof(int64) != 8)
1.5 petere 11964: return 0; /* definitely not the right size */
1.1 petere 11965:
11966: /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11967: c = a * b;
11968: d = (c + b) / b;
11969: if (d != a+1)
11970: return 0;
11971: return 1;
11972: }
11973: main() {
11974: exit(! does_int64_work());
11975: }
1.179 petere 11976: _ACEOF
11977: rm -f conftest$ac_exeext
11978: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979: (eval $ac_link) 2>&5
11980: ac_status=$?
11981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11983: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984: (eval $ac_try) 2>&5
11985: ac_status=$?
11986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987: (exit $ac_status); }; }; then
1.5 petere 11988: pgac_cv_type_long_int_64=yes
1.1 petere 11989: else
1.179 petere 11990: echo "$as_me: program exited with status $ac_status" >&5
11991: echo "$as_me: failed program was:" >&5
11992: cat conftest.$ac_ext >&5
11993: ( exit $ac_status )
11994: pgac_cv_type_long_int_64=no
1.1 petere 11995: fi
1.179 petere 11996: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 11997: fi
1.5 petere 11998: fi
1.179 petere 11999: echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12000: echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
1.5 petere 12001:
12002: HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12003: if test x"$pgac_cv_type_long_int_64" = xyes ; then
1.179 petere 12004:
12005: cat >>confdefs.h <<\_ACEOF
12006: #define HAVE_LONG_INT_64
12007: _ACEOF
1.5 petere 12008:
12009: fi
12010:
1.1 petere 12011:
1.5 petere 12012: if test x"$HAVE_LONG_INT_64" = x"no" ; then
1.179 petere 12013: echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12014: echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12015: if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12016: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 12017: else
12018: if test "$cross_compiling" = yes; then
12019: pgac_cv_type_long_long_int_64=no
1.179 petere 12020: { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12021: echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
1.1 petere 12022: else
1.179 petere 12023: cat >conftest.$ac_ext <<_ACEOF
12024: #line $LINENO "configure"
1.1 petere 12025: #include "confdefs.h"
12026: typedef long long int int64;
12027:
1.5 petere 12028: /*
12029: * These are globals to discourage the compiler from folding all the
1.1 petere 12030: * arithmetic tests down to compile-time constants.
12031: */
12032: int64 a = 20000001;
12033: int64 b = 40000005;
12034:
12035: int does_int64_work()
12036: {
12037: int64 c,d;
12038:
12039: if (sizeof(int64) != 8)
1.5 petere 12040: return 0; /* definitely not the right size */
1.1 petere 12041:
12042: /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12043: c = a * b;
12044: d = (c + b) / b;
12045: if (d != a+1)
12046: return 0;
12047: return 1;
12048: }
12049: main() {
12050: exit(! does_int64_work());
12051: }
1.179 petere 12052: _ACEOF
12053: rm -f conftest$ac_exeext
12054: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055: (eval $ac_link) 2>&5
12056: ac_status=$?
12057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12059: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060: (eval $ac_try) 2>&5
12061: ac_status=$?
12062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063: (exit $ac_status); }; }; then
1.5 petere 12064: pgac_cv_type_long_long_int_64=yes
1.1 petere 12065: else
1.179 petere 12066: echo "$as_me: program exited with status $ac_status" >&5
12067: echo "$as_me: failed program was:" >&5
12068: cat conftest.$ac_ext >&5
12069: ( exit $ac_status )
12070: pgac_cv_type_long_long_int_64=no
1.1 petere 12071: fi
1.179 petere 12072: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12073: fi
12074: fi
1.179 petere 12075: echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12076: echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
1.5 petere 12077:
12078: HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12079: if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
1.179 petere 12080:
12081: cat >>confdefs.h <<\_ACEOF
12082: #define HAVE_LONG_LONG_INT_64
12083: _ACEOF
1.5 petere 12084:
12085: fi
12086:
12087: fi
12088:
12089:
1.1 petere 12090:
1.6 petere 12091: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.179 petere 12092: cat >conftest.$ac_ext <<_ACEOF
12093: #line $LINENO "configure"
1.119 tgl 12094: #include "confdefs.h"
12095:
12096: #define INT64CONST(x) x##LL
12097: long long int foo = INT64CONST(0x1234567890123456);
12098:
1.179 petere 12099: #ifdef F77_DUMMY_MAIN
12100: # ifdef __cplusplus
12101: extern "C"
12102: # endif
12103: int F77_DUMMY_MAIN() { return 1; }
12104: #endif
12105: int
12106: main ()
12107: {
12108:
12109: ;
12110: return 0;
12111: }
12112: _ACEOF
12113: rm -f conftest.$ac_objext
12114: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115: (eval $ac_compile) 2>&5
12116: ac_status=$?
12117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118: (exit $ac_status); } &&
12119: { ac_try='test -s conftest.$ac_objext'
12120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121: (eval $ac_try) 2>&5
12122: ac_status=$?
12123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124: (exit $ac_status); }; }; then
1.119 tgl 12125:
1.179 petere 12126: cat >>confdefs.h <<\_ACEOF
1.119 tgl 12127: #define HAVE_LL_CONSTANTS 1
1.179 petere 12128: _ACEOF
1.119 tgl 12129:
12130: else
1.179 petere 12131: echo "$as_me: failed program was:" >&5
12132: cat conftest.$ac_ext >&5
1.119 tgl 12133: fi
1.179 petere 12134: rm -f conftest.$ac_objext conftest.$ac_ext
1.119 tgl 12135: fi
12136:
12137:
12138:
12139: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.1 petere 12140: if [ x$SNPRINTF = x ] ; then
1.179 petere 12141: echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12142: echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
1.1 petere 12143: if test "$cross_compiling" = yes; then
1.179 petere 12144: echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12145: echo "${ECHO_T}assuming not on target machine" >&6
1.1 petere 12146: # Force usage of our own snprintf, since we cannot test foreign snprintf
12147: SNPRINTF='snprintf.o'
12148: INT64_FORMAT='"%lld"'
1.179 petere 12149:
1.1 petere 12150: else
1.179 petere 12151: cat >conftest.$ac_ext <<_ACEOF
12152: #line $LINENO "configure"
1.1 petere 12153: #include "confdefs.h"
12154: #include <stdio.h>
12155: typedef long long int int64;
12156: #define INT64_FORMAT "%lld"
12157:
12158: int64 a = 20000001;
12159: int64 b = 40000005;
12160:
12161: int does_int64_snprintf_work()
12162: {
12163: int64 c;
12164: char buf[100];
12165:
12166: if (sizeof(int64) != 8)
12167: return 0; /* doesn't look like the right size */
12168:
12169: c = a * b;
12170: snprintf(buf, 100, INT64_FORMAT, c);
12171: if (strcmp(buf, "800000140000005") != 0)
12172: return 0; /* either multiply or snprintf is busted */
12173: return 1;
12174: }
12175: main() {
12176: exit(! does_int64_snprintf_work());
12177: }
1.179 petere 12178: _ACEOF
12179: rm -f conftest$ac_exeext
12180: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181: (eval $ac_link) 2>&5
12182: ac_status=$?
12183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186: (eval $ac_try) 2>&5
12187: ac_status=$?
12188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189: (exit $ac_status); }; }; then
12190: echo "$as_me:$LINENO: result: yes" >&5
12191: echo "${ECHO_T}yes" >&6
1.1 petere 12192: INT64_FORMAT='"%lld"'
1.179 petere 12193:
1.1 petere 12194: else
1.179 petere 12195: echo "$as_me: program exited with status $ac_status" >&5
12196: echo "$as_me: failed program was:" >&5
12197: cat conftest.$ac_ext >&5
12198: ( exit $ac_status )
12199: echo "$as_me:$LINENO: result: no" >&5
12200: echo "${ECHO_T}no" >&6
12201: echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12202: echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
1.1 petere 12203: if test "$cross_compiling" = yes; then
1.179 petere 12204: echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12205: echo "${ECHO_T}assuming not on target machine" >&6
1.1 petere 12206: # Force usage of our own snprintf, since we cannot test foreign snprintf
12207: SNPRINTF='snprintf.o'
12208: INT64_FORMAT='"%lld"'
1.179 petere 12209:
1.1 petere 12210: else
1.179 petere 12211: cat >conftest.$ac_ext <<_ACEOF
12212: #line $LINENO "configure"
1.1 petere 12213: #include "confdefs.h"
12214: #include <stdio.h>
12215: typedef long long int int64;
12216: #define INT64_FORMAT "%qd"
1.179 petere 12217:
1.1 petere 12218: int64 a = 20000001;
12219: int64 b = 40000005;
1.179 petere 12220:
1.1 petere 12221: int does_int64_snprintf_work()
1.179 petere 12222: {
1.1 petere 12223: int64 c;
12224: char buf[100];
12225:
12226: if (sizeof(int64) != 8)
12227: return 0; /* doesn't look like the right size */
12228:
12229: c = a * b;
12230: snprintf(buf, 100, INT64_FORMAT, c);
12231: if (strcmp(buf, "800000140000005") != 0)
12232: return 0; /* either multiply or snprintf is busted */
12233: return 1;
12234: }
12235: main() {
12236: exit(! does_int64_snprintf_work());
12237: }
1.179 petere 12238: _ACEOF
12239: rm -f conftest$ac_exeext
12240: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241: (eval $ac_link) 2>&5
12242: ac_status=$?
12243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12245: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246: (eval $ac_try) 2>&5
12247: ac_status=$?
12248: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249: (exit $ac_status); }; }; then
12250: echo "$as_me:$LINENO: result: yes" >&5
12251: echo "${ECHO_T}yes" >&6
1.1 petere 12252: INT64_FORMAT='"%qd"'
1.179 petere 12253:
1.1 petere 12254: else
1.179 petere 12255: echo "$as_me: program exited with status $ac_status" >&5
12256: echo "$as_me: failed program was:" >&5
12257: cat conftest.$ac_ext >&5
12258: ( exit $ac_status )
12259: echo "$as_me:$LINENO: result: no" >&5
12260: echo "${ECHO_T}no" >&6
1.1 petere 12261: # Force usage of our own snprintf, since system snprintf is broken
12262: SNPRINTF='snprintf.o'
12263: INT64_FORMAT='"%lld"'
1.179 petere 12264:
1.1 petere 12265: fi
1.179 petere 12266: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12267: fi
12268: fi
1.179 petere 12269: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 12270: fi
12271: else
12272: # here if we previously decided we needed to use our own snprintf
12273: INT64_FORMAT='"%lld"'
12274: fi
12275: else
12276: # Here if we are not using 'long long int' at all
12277: INT64_FORMAT='"%ld"'
12278: fi
12279:
1.179 petere 12280:
12281: cat >>confdefs.h <<_ACEOF
1.1 petere 12282: #define INT64_FORMAT $INT64_FORMAT
1.179 petere 12283: _ACEOF
12284:
12285:
1.1 petere 12286:
12287:
12288:
1.84 petere 12289: for ac_func in strtoll strtoq
12290: do
1.179 petere 12291: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12292: echo "$as_me:$LINENO: checking for $ac_func" >&5
12293: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12294: if eval "test \"\${$as_ac_var+set}\" = set"; then
12295: echo $ECHO_N "(cached) $ECHO_C" >&6
1.84 petere 12296: else
1.179 petere 12297: cat >conftest.$ac_ext <<_ACEOF
12298: #line $LINENO "configure"
1.84 petere 12299: #include "confdefs.h"
12300: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12301: which can conflict with char $ac_func (); below. */
1.84 petere 12302: #include <assert.h>
12303: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12304: #ifdef __cplusplus
12305: extern "C"
12306: #endif
1.84 petere 12307: /* We use char because int might match the return type of a gcc2
1.179 petere 12308: builtin and then its argument prototype would still apply. */
12309: char $ac_func ();
12310: char (*f) ();
12311:
12312: #ifdef F77_DUMMY_MAIN
12313: # ifdef __cplusplus
12314: extern "C"
12315: # endif
12316: int F77_DUMMY_MAIN() { return 1; }
12317: #endif
12318: int
12319: main ()
12320: {
1.84 petere 12321: /* The GNU C library defines this for functions which it implements
12322: to always fail with ENOSYS. Some functions are actually named
12323: something starting with __ and the normal name is an alias. */
12324: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12325: choke me
12326: #else
1.179 petere 12327: f = $ac_func;
1.84 petere 12328: #endif
12329:
1.179 petere 12330: ;
12331: return 0;
12332: }
12333: _ACEOF
12334: rm -f conftest.$ac_objext conftest$ac_exeext
12335: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336: (eval $ac_link) 2>&5
12337: ac_status=$?
12338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339: (exit $ac_status); } &&
12340: { ac_try='test -s conftest$ac_exeext'
12341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342: (eval $ac_try) 2>&5
12343: ac_status=$?
12344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345: (exit $ac_status); }; }; then
12346: eval "$as_ac_var=yes"
12347: else
12348: echo "$as_me: failed program was:" >&5
12349: cat conftest.$ac_ext >&5
12350: eval "$as_ac_var=no"
12351: fi
12352: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12353: fi
12354: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12355: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12356: if test `eval echo '${'$as_ac_var'}'` = yes; then
12357: cat >>confdefs.h <<_ACEOF
12358: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12359: _ACEOF
1.84 petere 12360: break
12361: fi
12362: done
12363:
1.179 petere 12364:
12365:
1.84 petere 12366: for ac_func in strtoull strtouq
12367: do
1.179 petere 12368: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12369: echo "$as_me:$LINENO: checking for $ac_func" >&5
12370: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12371: if eval "test \"\${$as_ac_var+set}\" = set"; then
12372: echo $ECHO_N "(cached) $ECHO_C" >&6
1.84 petere 12373: else
1.179 petere 12374: cat >conftest.$ac_ext <<_ACEOF
12375: #line $LINENO "configure"
1.84 petere 12376: #include "confdefs.h"
12377: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12378: which can conflict with char $ac_func (); below. */
1.84 petere 12379: #include <assert.h>
12380: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12381: #ifdef __cplusplus
12382: extern "C"
12383: #endif
1.84 petere 12384: /* We use char because int might match the return type of a gcc2
1.179 petere 12385: builtin and then its argument prototype would still apply. */
12386: char $ac_func ();
12387: char (*f) ();
12388:
12389: #ifdef F77_DUMMY_MAIN
12390: # ifdef __cplusplus
12391: extern "C"
12392: # endif
12393: int F77_DUMMY_MAIN() { return 1; }
12394: #endif
12395: int
12396: main ()
12397: {
1.84 petere 12398: /* The GNU C library defines this for functions which it implements
12399: to always fail with ENOSYS. Some functions are actually named
12400: something starting with __ and the normal name is an alias. */
12401: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12402: choke me
12403: #else
1.179 petere 12404: f = $ac_func;
1.84 petere 12405: #endif
12406:
1.179 petere 12407: ;
12408: return 0;
12409: }
12410: _ACEOF
12411: rm -f conftest.$ac_objext conftest$ac_exeext
12412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413: (eval $ac_link) 2>&5
12414: ac_status=$?
12415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416: (exit $ac_status); } &&
12417: { ac_try='test -s conftest$ac_exeext'
12418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419: (eval $ac_try) 2>&5
12420: ac_status=$?
12421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422: (exit $ac_status); }; }; then
12423: eval "$as_ac_var=yes"
12424: else
12425: echo "$as_me: failed program was:" >&5
12426: cat conftest.$ac_ext >&5
12427: eval "$as_ac_var=no"
12428: fi
12429: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12430: fi
12431: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12432: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12433: if test `eval echo '${'$as_ac_var'}'` = yes; then
12434: cat >>confdefs.h <<_ACEOF
12435: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436: _ACEOF
1.84 petere 12437: break
12438: fi
12439: done
12440:
12441:
1.179 petere 12442: # Check for one of atexit() or on_exit()
12443:
12444: for ac_func in atexit
12445: do
12446: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12447: echo "$as_me:$LINENO: checking for $ac_func" >&5
12448: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12449: if eval "test \"\${$as_ac_var+set}\" = set"; then
12450: echo $ECHO_N "(cached) $ECHO_C" >&6
1.109 ishii 12451: else
1.179 petere 12452: cat >conftest.$ac_ext <<_ACEOF
12453: #line $LINENO "configure"
1.109 ishii 12454: #include "confdefs.h"
12455: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12456: which can conflict with char $ac_func (); below. */
1.109 ishii 12457: #include <assert.h>
12458: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12459: #ifdef __cplusplus
12460: extern "C"
12461: #endif
1.109 ishii 12462: /* We use char because int might match the return type of a gcc2
1.179 petere 12463: builtin and then its argument prototype would still apply. */
12464: char $ac_func ();
12465: char (*f) ();
12466:
12467: #ifdef F77_DUMMY_MAIN
12468: # ifdef __cplusplus
12469: extern "C"
12470: # endif
12471: int F77_DUMMY_MAIN() { return 1; }
12472: #endif
12473: int
12474: main ()
12475: {
1.109 ishii 12476: /* The GNU C library defines this for functions which it implements
12477: to always fail with ENOSYS. Some functions are actually named
12478: something starting with __ and the normal name is an alias. */
1.179 petere 12479: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.109 ishii 12480: choke me
12481: #else
1.179 petere 12482: f = $ac_func;
1.109 ishii 12483: #endif
12484:
1.179 petere 12485: ;
12486: return 0;
12487: }
12488: _ACEOF
12489: rm -f conftest.$ac_objext conftest$ac_exeext
12490: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491: (eval $ac_link) 2>&5
12492: ac_status=$?
12493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494: (exit $ac_status); } &&
12495: { ac_try='test -s conftest$ac_exeext'
12496: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497: (eval $ac_try) 2>&5
12498: ac_status=$?
12499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500: (exit $ac_status); }; }; then
12501: eval "$as_ac_var=yes"
12502: else
12503: echo "$as_me: failed program was:" >&5
12504: cat conftest.$ac_ext >&5
12505: eval "$as_ac_var=no"
12506: fi
12507: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12508: fi
12509: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12510: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12511: if test `eval echo '${'$as_ac_var'}'` = yes; then
12512: cat >>confdefs.h <<_ACEOF
12513: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12514: _ACEOF
12515:
1.109 ishii 12516: else
12517:
12518: for ac_func in on_exit
12519: do
1.179 petere 12520: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12521: echo "$as_me:$LINENO: checking for $ac_func" >&5
12522: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12523: if eval "test \"\${$as_ac_var+set}\" = set"; then
12524: echo $ECHO_N "(cached) $ECHO_C" >&6
1.109 ishii 12525: else
1.179 petere 12526: cat >conftest.$ac_ext <<_ACEOF
12527: #line $LINENO "configure"
1.109 ishii 12528: #include "confdefs.h"
12529: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 12530: which can conflict with char $ac_func (); below. */
1.109 ishii 12531: #include <assert.h>
12532: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 12533: #ifdef __cplusplus
12534: extern "C"
12535: #endif
1.109 ishii 12536: /* We use char because int might match the return type of a gcc2
1.179 petere 12537: builtin and then its argument prototype would still apply. */
12538: char $ac_func ();
12539: char (*f) ();
12540:
12541: #ifdef F77_DUMMY_MAIN
12542: # ifdef __cplusplus
12543: extern "C"
12544: # endif
12545: int F77_DUMMY_MAIN() { return 1; }
12546: #endif
12547: int
12548: main ()
12549: {
1.109 ishii 12550: /* The GNU C library defines this for functions which it implements
12551: to always fail with ENOSYS. Some functions are actually named
12552: something starting with __ and the normal name is an alias. */
12553: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12554: choke me
12555: #else
1.179 petere 12556: f = $ac_func;
12557: #endif
12558:
12559: ;
12560: return 0;
12561: }
12562: _ACEOF
12563: rm -f conftest.$ac_objext conftest$ac_exeext
12564: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565: (eval $ac_link) 2>&5
12566: ac_status=$?
12567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568: (exit $ac_status); } &&
12569: { ac_try='test -s conftest$ac_exeext'
12570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571: (eval $ac_try) 2>&5
12572: ac_status=$?
12573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574: (exit $ac_status); }; }; then
12575: eval "$as_ac_var=yes"
12576: else
12577: echo "$as_me: failed program was:" >&5
12578: cat conftest.$ac_ext >&5
12579: eval "$as_ac_var=no"
12580: fi
12581: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12582: fi
12583: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12584: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12585: if test `eval echo '${'$as_ac_var'}'` = yes; then
12586: cat >>confdefs.h <<_ACEOF
12587: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588: _ACEOF
12589:
12590: else
12591: { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12592: echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12593: { (exit 1); exit 1; }; }
12594: fi
12595: done
12596:
12597: fi
12598: done
12599:
12600:
12601:
12602: echo "$as_me:$LINENO: checking for unsigned long" >&5
12603: echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12604: if test "${ac_cv_type_unsigned_long+set}" = set; then
12605: echo $ECHO_N "(cached) $ECHO_C" >&6
12606: else
12607: cat >conftest.$ac_ext <<_ACEOF
12608: #line $LINENO "configure"
12609: #include "confdefs.h"
12610: $ac_includes_default
12611: #ifdef F77_DUMMY_MAIN
12612: # ifdef __cplusplus
12613: extern "C"
12614: # endif
12615: int F77_DUMMY_MAIN() { return 1; }
1.109 ishii 12616: #endif
1.179 petere 12617: int
12618: main ()
12619: {
12620: if ((unsigned long *) 0)
12621: return 0;
12622: if (sizeof (unsigned long))
12623: return 0;
12624: ;
12625: return 0;
12626: }
12627: _ACEOF
12628: rm -f conftest.$ac_objext
12629: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630: (eval $ac_compile) 2>&5
12631: ac_status=$?
12632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633: (exit $ac_status); } &&
12634: { ac_try='test -s conftest.$ac_objext'
12635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636: (eval $ac_try) 2>&5
12637: ac_status=$?
12638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639: (exit $ac_status); }; }; then
12640: ac_cv_type_unsigned_long=yes
12641: else
12642: echo "$as_me: failed program was:" >&5
12643: cat conftest.$ac_ext >&5
12644: ac_cv_type_unsigned_long=no
12645: fi
12646: rm -f conftest.$ac_objext conftest.$ac_ext
12647: fi
12648: echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12649: echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12650:
12651: echo "$as_me:$LINENO: checking size of unsigned long" >&5
12652: echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12653: if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12654: echo $ECHO_N "(cached) $ECHO_C" >&6
12655: else
12656: if test "$ac_cv_type_unsigned_long" = yes; then
12657: # The cast to unsigned long works around a bug in the HP C Compiler
12658: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12659: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12660: # This bug is HP SR number 8606223364.
12661: if test "$cross_compiling" = yes; then
12662: # Depending upon the size, compute the lo and hi bounds.
12663: cat >conftest.$ac_ext <<_ACEOF
12664: #line $LINENO "configure"
12665: #include "confdefs.h"
12666: $ac_includes_default
12667: #ifdef F77_DUMMY_MAIN
12668: # ifdef __cplusplus
12669: extern "C"
12670: # endif
12671: int F77_DUMMY_MAIN() { return 1; }
12672: #endif
12673: int
12674: main ()
12675: {
12676: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12677: test_array [0] = 0
1.109 ishii 12678:
1.179 petere 12679: ;
12680: return 0;
12681: }
12682: _ACEOF
12683: rm -f conftest.$ac_objext
12684: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685: (eval $ac_compile) 2>&5
12686: ac_status=$?
12687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688: (exit $ac_status); } &&
12689: { ac_try='test -s conftest.$ac_objext'
12690: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691: (eval $ac_try) 2>&5
12692: ac_status=$?
12693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694: (exit $ac_status); }; }; then
12695: ac_lo=0 ac_mid=0
12696: while :; do
12697: cat >conftest.$ac_ext <<_ACEOF
12698: #line $LINENO "configure"
12699: #include "confdefs.h"
12700: $ac_includes_default
12701: #ifdef F77_DUMMY_MAIN
12702: # ifdef __cplusplus
12703: extern "C"
12704: # endif
12705: int F77_DUMMY_MAIN() { return 1; }
12706: #endif
12707: int
12708: main ()
12709: {
12710: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12711: test_array [0] = 0
12712:
12713: ;
12714: return 0;
12715: }
12716: _ACEOF
12717: rm -f conftest.$ac_objext
12718: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719: (eval $ac_compile) 2>&5
12720: ac_status=$?
12721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722: (exit $ac_status); } &&
12723: { ac_try='test -s conftest.$ac_objext'
12724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725: (eval $ac_try) 2>&5
12726: ac_status=$?
12727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728: (exit $ac_status); }; }; then
12729: ac_hi=$ac_mid; break
12730: else
12731: echo "$as_me: failed program was:" >&5
12732: cat conftest.$ac_ext >&5
12733: ac_lo=`expr $ac_mid + 1`
12734: if test $ac_lo -le $ac_mid; then
12735: ac_lo= ac_hi=
12736: break
12737: fi
12738: ac_mid=`expr 2 '*' $ac_mid + 1`
12739: fi
12740: rm -f conftest.$ac_objext conftest.$ac_ext
12741: done
12742: else
12743: echo "$as_me: failed program was:" >&5
12744: cat conftest.$ac_ext >&5
12745: cat >conftest.$ac_ext <<_ACEOF
12746: #line $LINENO "configure"
12747: #include "confdefs.h"
12748: $ac_includes_default
12749: #ifdef F77_DUMMY_MAIN
12750: # ifdef __cplusplus
12751: extern "C"
12752: # endif
12753: int F77_DUMMY_MAIN() { return 1; }
12754: #endif
12755: int
12756: main ()
12757: {
12758: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12759: test_array [0] = 0
12760:
12761: ;
12762: return 0;
12763: }
12764: _ACEOF
12765: rm -f conftest.$ac_objext
12766: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767: (eval $ac_compile) 2>&5
12768: ac_status=$?
12769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770: (exit $ac_status); } &&
12771: { ac_try='test -s conftest.$ac_objext'
12772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773: (eval $ac_try) 2>&5
12774: ac_status=$?
12775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776: (exit $ac_status); }; }; then
12777: ac_hi=-1 ac_mid=-1
12778: while :; do
12779: cat >conftest.$ac_ext <<_ACEOF
12780: #line $LINENO "configure"
12781: #include "confdefs.h"
12782: $ac_includes_default
12783: #ifdef F77_DUMMY_MAIN
12784: # ifdef __cplusplus
12785: extern "C"
12786: # endif
12787: int F77_DUMMY_MAIN() { return 1; }
12788: #endif
12789: int
12790: main ()
12791: {
12792: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12793: test_array [0] = 0
12794:
12795: ;
12796: return 0;
12797: }
12798: _ACEOF
12799: rm -f conftest.$ac_objext
12800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801: (eval $ac_compile) 2>&5
12802: ac_status=$?
12803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804: (exit $ac_status); } &&
12805: { ac_try='test -s conftest.$ac_objext'
12806: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807: (eval $ac_try) 2>&5
12808: ac_status=$?
12809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810: (exit $ac_status); }; }; then
12811: ac_lo=$ac_mid; break
12812: else
12813: echo "$as_me: failed program was:" >&5
12814: cat conftest.$ac_ext >&5
12815: ac_hi=`expr '(' $ac_mid ')' - 1`
12816: if test $ac_mid -le $ac_hi; then
12817: ac_lo= ac_hi=
12818: break
12819: fi
12820: ac_mid=`expr 2 '*' $ac_mid`
12821: fi
12822: rm -f conftest.$ac_objext conftest.$ac_ext
12823: done
12824: else
12825: echo "$as_me: failed program was:" >&5
12826: cat conftest.$ac_ext >&5
12827: ac_lo= ac_hi=
12828: fi
12829: rm -f conftest.$ac_objext conftest.$ac_ext
12830: fi
12831: rm -f conftest.$ac_objext conftest.$ac_ext
12832: # Binary search between lo and hi bounds.
12833: while test "x$ac_lo" != "x$ac_hi"; do
12834: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12835: cat >conftest.$ac_ext <<_ACEOF
12836: #line $LINENO "configure"
12837: #include "confdefs.h"
12838: $ac_includes_default
12839: #ifdef F77_DUMMY_MAIN
12840: # ifdef __cplusplus
12841: extern "C"
12842: # endif
12843: int F77_DUMMY_MAIN() { return 1; }
12844: #endif
12845: int
12846: main ()
12847: {
12848: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12849: test_array [0] = 0
12850:
12851: ;
12852: return 0;
12853: }
12854: _ACEOF
12855: rm -f conftest.$ac_objext
12856: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12857: (eval $ac_compile) 2>&5
12858: ac_status=$?
12859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860: (exit $ac_status); } &&
12861: { ac_try='test -s conftest.$ac_objext'
12862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863: (eval $ac_try) 2>&5
12864: ac_status=$?
12865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866: (exit $ac_status); }; }; then
12867: ac_hi=$ac_mid
12868: else
12869: echo "$as_me: failed program was:" >&5
12870: cat conftest.$ac_ext >&5
12871: ac_lo=`expr '(' $ac_mid ')' + 1`
12872: fi
12873: rm -f conftest.$ac_objext conftest.$ac_ext
12874: done
12875: case $ac_lo in
12876: ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12877: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12878: echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12879: { (exit 1); exit 1; }; } ;;
12880: esac
12881: else
12882: if test "$cross_compiling" = yes; then
12883: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12884: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12885: { (exit 1); exit 1; }; }
12886: else
12887: cat >conftest.$ac_ext <<_ACEOF
12888: #line $LINENO "configure"
12889: #include "confdefs.h"
12890: $ac_includes_default
12891: long longval () { return (long) (sizeof (unsigned long)); }
12892: unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12893: #include <stdio.h>
12894: #include <stdlib.h>
12895: #ifdef F77_DUMMY_MAIN
12896: # ifdef __cplusplus
12897: extern "C"
12898: # endif
12899: int F77_DUMMY_MAIN() { return 1; }
12900: #endif
12901: int
12902: main ()
12903: {
12904:
12905: FILE *f = fopen ("conftest.val", "w");
12906: if (! f)
12907: exit (1);
12908: if (((long) (sizeof (unsigned long))) < 0)
12909: {
12910: long i = longval ();
12911: if (i != ((long) (sizeof (unsigned long))))
12912: exit (1);
12913: fprintf (f, "%ld\n", i);
12914: }
12915: else
12916: {
12917: unsigned long i = ulongval ();
12918: if (i != ((long) (sizeof (unsigned long))))
12919: exit (1);
12920: fprintf (f, "%lu\n", i);
12921: }
12922: exit (ferror (f) || fclose (f) != 0);
12923:
12924: ;
12925: return 0;
12926: }
12927: _ACEOF
12928: rm -f conftest$ac_exeext
12929: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930: (eval $ac_link) 2>&5
12931: ac_status=$?
12932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12934: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935: (eval $ac_try) 2>&5
12936: ac_status=$?
12937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938: (exit $ac_status); }; }; then
12939: ac_cv_sizeof_unsigned_long=`cat conftest.val`
12940: else
12941: echo "$as_me: program exited with status $ac_status" >&5
12942: echo "$as_me: failed program was:" >&5
12943: cat conftest.$ac_ext >&5
12944: ( exit $ac_status )
12945: { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12946: echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12947: { (exit 1); exit 1; }; }
12948: fi
12949: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12950: fi
12951: fi
12952: rm -f conftest.val
1.109 ishii 12953: else
1.179 petere 12954: ac_cv_sizeof_unsigned_long=0
12955: fi
1.109 ishii 12956: fi
1.179 petere 12957: echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12958: echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12959: cat >>confdefs.h <<_ACEOF
12960: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12961: _ACEOF
12962:
12963:
12964:
12965: cat >>confdefs.h <<_ACEOF
12966: #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12967: _ACEOF
12968:
12969:
12970: # Determine memory alignment requirements for the basic C data types.
12971:
12972: echo "$as_me:$LINENO: checking for short" >&5
12973: echo $ECHO_N "checking for short... $ECHO_C" >&6
12974: if test "${ac_cv_type_short+set}" = set; then
12975: echo $ECHO_N "(cached) $ECHO_C" >&6
12976: else
12977: cat >conftest.$ac_ext <<_ACEOF
12978: #line $LINENO "configure"
12979: #include "confdefs.h"
12980: $ac_includes_default
12981: #ifdef F77_DUMMY_MAIN
12982: # ifdef __cplusplus
12983: extern "C"
12984: # endif
12985: int F77_DUMMY_MAIN() { return 1; }
12986: #endif
12987: int
12988: main ()
12989: {
12990: if ((short *) 0)
12991: return 0;
12992: if (sizeof (short))
12993: return 0;
12994: ;
12995: return 0;
12996: }
12997: _ACEOF
12998: rm -f conftest.$ac_objext
12999: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000: (eval $ac_compile) 2>&5
13001: ac_status=$?
13002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003: (exit $ac_status); } &&
13004: { ac_try='test -s conftest.$ac_objext'
13005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006: (eval $ac_try) 2>&5
13007: ac_status=$?
13008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009: (exit $ac_status); }; }; then
13010: ac_cv_type_short=yes
13011: else
13012: echo "$as_me: failed program was:" >&5
13013: cat conftest.$ac_ext >&5
13014: ac_cv_type_short=no
13015: fi
13016: rm -f conftest.$ac_objext conftest.$ac_ext
13017: fi
13018: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13019: echo "${ECHO_T}$ac_cv_type_short" >&6
13020:
13021: echo "$as_me:$LINENO: checking alignment of short" >&5
13022: echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13023: if test "${pgac_cv_alignof_short+set}" = set; then
13024: echo $ECHO_N "(cached) $ECHO_C" >&6
13025: else
13026: if test "$ac_cv_type_short" = yes; then
13027: if test "$cross_compiling" = yes; then
13028: # Depending upon the size, compute the lo and hi bounds.
13029: cat >conftest.$ac_ext <<_ACEOF
13030: #line $LINENO "configure"
13031: #include "confdefs.h"
13032: $ac_includes_default
13033: struct { char filler; short field; } pgac_struct;
13034: #ifdef F77_DUMMY_MAIN
13035: # ifdef __cplusplus
13036: extern "C"
13037: # endif
13038: int F77_DUMMY_MAIN() { return 1; }
13039: #endif
13040: int
13041: main ()
13042: {
13043: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13044: test_array [0] = 0
13045:
13046: ;
13047: return 0;
13048: }
13049: _ACEOF
13050: rm -f conftest.$ac_objext
13051: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052: (eval $ac_compile) 2>&5
13053: ac_status=$?
13054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055: (exit $ac_status); } &&
13056: { ac_try='test -s conftest.$ac_objext'
13057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058: (eval $ac_try) 2>&5
13059: ac_status=$?
13060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061: (exit $ac_status); }; }; then
13062: ac_lo=0 ac_mid=0
13063: while :; do
13064: cat >conftest.$ac_ext <<_ACEOF
13065: #line $LINENO "configure"
13066: #include "confdefs.h"
13067: $ac_includes_default
13068: struct { char filler; short field; } pgac_struct;
13069: #ifdef F77_DUMMY_MAIN
13070: # ifdef __cplusplus
13071: extern "C"
13072: # endif
13073: int F77_DUMMY_MAIN() { return 1; }
13074: #endif
13075: int
13076: main ()
13077: {
13078: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13079: test_array [0] = 0
13080:
13081: ;
13082: return 0;
13083: }
13084: _ACEOF
13085: rm -f conftest.$ac_objext
13086: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087: (eval $ac_compile) 2>&5
13088: ac_status=$?
13089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090: (exit $ac_status); } &&
13091: { ac_try='test -s conftest.$ac_objext'
13092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093: (eval $ac_try) 2>&5
13094: ac_status=$?
13095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096: (exit $ac_status); }; }; then
13097: ac_hi=$ac_mid; break
13098: else
13099: echo "$as_me: failed program was:" >&5
13100: cat conftest.$ac_ext >&5
13101: ac_lo=`expr $ac_mid + 1`
13102: if test $ac_lo -le $ac_mid; then
13103: ac_lo= ac_hi=
13104: break
13105: fi
13106: ac_mid=`expr 2 '*' $ac_mid + 1`
1.109 ishii 13107: fi
1.179 petere 13108: rm -f conftest.$ac_objext conftest.$ac_ext
13109: done
13110: else
13111: echo "$as_me: failed program was:" >&5
13112: cat conftest.$ac_ext >&5
13113: cat >conftest.$ac_ext <<_ACEOF
13114: #line $LINENO "configure"
13115: #include "confdefs.h"
13116: $ac_includes_default
13117: struct { char filler; short field; } pgac_struct;
13118: #ifdef F77_DUMMY_MAIN
13119: # ifdef __cplusplus
13120: extern "C"
13121: # endif
13122: int F77_DUMMY_MAIN() { return 1; }
13123: #endif
13124: int
13125: main ()
13126: {
13127: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13128: test_array [0] = 0
1.109 ishii 13129:
1.179 petere 13130: ;
13131: return 0;
13132: }
13133: _ACEOF
13134: rm -f conftest.$ac_objext
13135: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13136: (eval $ac_compile) 2>&5
13137: ac_status=$?
13138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139: (exit $ac_status); } &&
13140: { ac_try='test -s conftest.$ac_objext'
13141: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142: (eval $ac_try) 2>&5
13143: ac_status=$?
13144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145: (exit $ac_status); }; }; then
13146: ac_hi=-1 ac_mid=-1
13147: while :; do
13148: cat >conftest.$ac_ext <<_ACEOF
13149: #line $LINENO "configure"
13150: #include "confdefs.h"
13151: $ac_includes_default
13152: struct { char filler; short field; } pgac_struct;
13153: #ifdef F77_DUMMY_MAIN
13154: # ifdef __cplusplus
13155: extern "C"
13156: # endif
13157: int F77_DUMMY_MAIN() { return 1; }
13158: #endif
13159: int
13160: main ()
13161: {
13162: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13163: test_array [0] = 0
1.109 ishii 13164:
1.179 petere 13165: ;
13166: return 0;
13167: }
13168: _ACEOF
13169: rm -f conftest.$ac_objext
13170: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171: (eval $ac_compile) 2>&5
13172: ac_status=$?
13173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174: (exit $ac_status); } &&
13175: { ac_try='test -s conftest.$ac_objext'
13176: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177: (eval $ac_try) 2>&5
13178: ac_status=$?
13179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180: (exit $ac_status); }; }; then
13181: ac_lo=$ac_mid; break
13182: else
13183: echo "$as_me: failed program was:" >&5
13184: cat conftest.$ac_ext >&5
13185: ac_hi=`expr '(' $ac_mid ')' - 1`
13186: if test $ac_mid -le $ac_hi; then
13187: ac_lo= ac_hi=
13188: break
13189: fi
13190: ac_mid=`expr 2 '*' $ac_mid`
13191: fi
13192: rm -f conftest.$ac_objext conftest.$ac_ext
13193: done
1.109 ishii 13194: else
1.179 petere 13195: echo "$as_me: failed program was:" >&5
13196: cat conftest.$ac_ext >&5
13197: ac_lo= ac_hi=
13198: fi
13199: rm -f conftest.$ac_objext conftest.$ac_ext
13200: fi
13201: rm -f conftest.$ac_objext conftest.$ac_ext
13202: # Binary search between lo and hi bounds.
13203: while test "x$ac_lo" != "x$ac_hi"; do
13204: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13205: cat >conftest.$ac_ext <<_ACEOF
13206: #line $LINENO "configure"
13207: #include "confdefs.h"
13208: $ac_includes_default
13209: struct { char filler; short field; } pgac_struct;
13210: #ifdef F77_DUMMY_MAIN
13211: # ifdef __cplusplus
13212: extern "C"
13213: # endif
13214: int F77_DUMMY_MAIN() { return 1; }
13215: #endif
13216: int
13217: main ()
13218: {
13219: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13220: test_array [0] = 0
13221:
13222: ;
13223: return 0;
13224: }
13225: _ACEOF
13226: rm -f conftest.$ac_objext
13227: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228: (eval $ac_compile) 2>&5
13229: ac_status=$?
13230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231: (exit $ac_status); } &&
13232: { ac_try='test -s conftest.$ac_objext'
13233: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234: (eval $ac_try) 2>&5
13235: ac_status=$?
13236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237: (exit $ac_status); }; }; then
13238: ac_hi=$ac_mid
13239: else
13240: echo "$as_me: failed program was:" >&5
13241: cat conftest.$ac_ext >&5
13242: ac_lo=`expr '(' $ac_mid ')' + 1`
1.109 ishii 13243: fi
1.179 petere 13244: rm -f conftest.$ac_objext conftest.$ac_ext
1.109 ishii 13245: done
1.179 petere 13246: case $ac_lo in
13247: ?*) pgac_cv_alignof_short=$ac_lo;;
13248: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13249: echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13250: { (exit 1); exit 1; }; } ;;
13251: esac
13252: else
13253: if test "$cross_compiling" = yes; then
13254: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13255: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13256: { (exit 1); exit 1; }; }
13257: else
13258: cat >conftest.$ac_ext <<_ACEOF
13259: #line $LINENO "configure"
13260: #include "confdefs.h"
13261: $ac_includes_default
13262: struct { char filler; short field; } pgac_struct;
13263: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13264: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13265: #include <stdio.h>
13266: #include <stdlib.h>
13267: #ifdef F77_DUMMY_MAIN
13268: # ifdef __cplusplus
13269: extern "C"
13270: # endif
13271: int F77_DUMMY_MAIN() { return 1; }
13272: #endif
13273: int
13274: main ()
13275: {
13276:
13277: FILE *f = fopen ("conftest.val", "w");
13278: if (! f)
13279: exit (1);
13280: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13281: {
13282: long i = longval ();
13283: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13284: exit (1);
13285: fprintf (f, "%ld\n", i);
13286: }
13287: else
13288: {
13289: unsigned long i = ulongval ();
13290: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13291: exit (1);
13292: fprintf (f, "%lu\n", i);
13293: }
13294: exit (ferror (f) || fclose (f) != 0);
13295:
13296: ;
13297: return 0;
13298: }
13299: _ACEOF
13300: rm -f conftest$ac_exeext
13301: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302: (eval $ac_link) 2>&5
13303: ac_status=$?
13304: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307: (eval $ac_try) 2>&5
13308: ac_status=$?
13309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310: (exit $ac_status); }; }; then
13311: pgac_cv_alignof_short=`cat conftest.val`
13312: else
13313: echo "$as_me: program exited with status $ac_status" >&5
13314: echo "$as_me: failed program was:" >&5
13315: cat conftest.$ac_ext >&5
13316: ( exit $ac_status )
13317: { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13318: echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13319: { (exit 1); exit 1; }; }
13320: fi
13321: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13322: fi
13323: fi
13324: rm -f conftest.val
13325: else
13326: pgac_cv_alignof_short=0
13327: fi
13328: fi
13329: echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13330: echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13331: cat >>confdefs.h <<_ACEOF
13332: #define ALIGNOF_SHORT $pgac_cv_alignof_short
13333: _ACEOF
13334:
13335:
13336: echo "$as_me:$LINENO: checking for int" >&5
13337: echo $ECHO_N "checking for int... $ECHO_C" >&6
13338: if test "${ac_cv_type_int+set}" = set; then
13339: echo $ECHO_N "(cached) $ECHO_C" >&6
13340: else
13341: cat >conftest.$ac_ext <<_ACEOF
13342: #line $LINENO "configure"
13343: #include "confdefs.h"
13344: $ac_includes_default
13345: #ifdef F77_DUMMY_MAIN
13346: # ifdef __cplusplus
13347: extern "C"
13348: # endif
13349: int F77_DUMMY_MAIN() { return 1; }
13350: #endif
13351: int
13352: main ()
13353: {
13354: if ((int *) 0)
13355: return 0;
13356: if (sizeof (int))
13357: return 0;
13358: ;
13359: return 0;
13360: }
13361: _ACEOF
13362: rm -f conftest.$ac_objext
13363: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364: (eval $ac_compile) 2>&5
13365: ac_status=$?
13366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367: (exit $ac_status); } &&
13368: { ac_try='test -s conftest.$ac_objext'
13369: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370: (eval $ac_try) 2>&5
13371: ac_status=$?
13372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373: (exit $ac_status); }; }; then
13374: ac_cv_type_int=yes
13375: else
13376: echo "$as_me: failed program was:" >&5
13377: cat conftest.$ac_ext >&5
13378: ac_cv_type_int=no
13379: fi
13380: rm -f conftest.$ac_objext conftest.$ac_ext
13381: fi
13382: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13383: echo "${ECHO_T}$ac_cv_type_int" >&6
13384:
13385: echo "$as_me:$LINENO: checking alignment of int" >&5
13386: echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13387: if test "${pgac_cv_alignof_int+set}" = set; then
13388: echo $ECHO_N "(cached) $ECHO_C" >&6
13389: else
13390: if test "$ac_cv_type_int" = yes; then
13391: if test "$cross_compiling" = yes; then
13392: # Depending upon the size, compute the lo and hi bounds.
13393: cat >conftest.$ac_ext <<_ACEOF
13394: #line $LINENO "configure"
13395: #include "confdefs.h"
13396: $ac_includes_default
13397: struct { char filler; int field; } pgac_struct;
13398: #ifdef F77_DUMMY_MAIN
13399: # ifdef __cplusplus
13400: extern "C"
13401: # endif
13402: int F77_DUMMY_MAIN() { return 1; }
13403: #endif
13404: int
13405: main ()
13406: {
13407: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13408: test_array [0] = 0
13409:
13410: ;
13411: return 0;
13412: }
13413: _ACEOF
13414: rm -f conftest.$ac_objext
13415: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416: (eval $ac_compile) 2>&5
13417: ac_status=$?
13418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419: (exit $ac_status); } &&
13420: { ac_try='test -s conftest.$ac_objext'
13421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422: (eval $ac_try) 2>&5
13423: ac_status=$?
13424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425: (exit $ac_status); }; }; then
13426: ac_lo=0 ac_mid=0
13427: while :; do
13428: cat >conftest.$ac_ext <<_ACEOF
13429: #line $LINENO "configure"
13430: #include "confdefs.h"
13431: $ac_includes_default
13432: struct { char filler; int field; } pgac_struct;
13433: #ifdef F77_DUMMY_MAIN
13434: # ifdef __cplusplus
13435: extern "C"
13436: # endif
13437: int F77_DUMMY_MAIN() { return 1; }
13438: #endif
13439: int
13440: main ()
13441: {
13442: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13443: test_array [0] = 0
1.109 ishii 13444:
1.179 petere 13445: ;
13446: return 0;
13447: }
13448: _ACEOF
13449: rm -f conftest.$ac_objext
13450: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13451: (eval $ac_compile) 2>&5
13452: ac_status=$?
13453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454: (exit $ac_status); } &&
13455: { ac_try='test -s conftest.$ac_objext'
13456: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457: (eval $ac_try) 2>&5
13458: ac_status=$?
13459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460: (exit $ac_status); }; }; then
13461: ac_hi=$ac_mid; break
13462: else
13463: echo "$as_me: failed program was:" >&5
13464: cat conftest.$ac_ext >&5
13465: ac_lo=`expr $ac_mid + 1`
13466: if test $ac_lo -le $ac_mid; then
13467: ac_lo= ac_hi=
13468: break
13469: fi
13470: ac_mid=`expr 2 '*' $ac_mid + 1`
1.109 ishii 13471: fi
1.179 petere 13472: rm -f conftest.$ac_objext conftest.$ac_ext
13473: done
13474: else
13475: echo "$as_me: failed program was:" >&5
13476: cat conftest.$ac_ext >&5
13477: cat >conftest.$ac_ext <<_ACEOF
13478: #line $LINENO "configure"
13479: #include "confdefs.h"
13480: $ac_includes_default
13481: struct { char filler; int field; } pgac_struct;
13482: #ifdef F77_DUMMY_MAIN
13483: # ifdef __cplusplus
13484: extern "C"
13485: # endif
13486: int F77_DUMMY_MAIN() { return 1; }
13487: #endif
13488: int
13489: main ()
13490: {
13491: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13492: test_array [0] = 0
1.109 ishii 13493:
1.179 petere 13494: ;
13495: return 0;
13496: }
13497: _ACEOF
13498: rm -f conftest.$ac_objext
13499: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500: (eval $ac_compile) 2>&5
13501: ac_status=$?
13502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503: (exit $ac_status); } &&
13504: { ac_try='test -s conftest.$ac_objext'
13505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506: (eval $ac_try) 2>&5
13507: ac_status=$?
13508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509: (exit $ac_status); }; }; then
13510: ac_hi=-1 ac_mid=-1
13511: while :; do
13512: cat >conftest.$ac_ext <<_ACEOF
13513: #line $LINENO "configure"
13514: #include "confdefs.h"
13515: $ac_includes_default
13516: struct { char filler; int field; } pgac_struct;
13517: #ifdef F77_DUMMY_MAIN
13518: # ifdef __cplusplus
13519: extern "C"
13520: # endif
13521: int F77_DUMMY_MAIN() { return 1; }
13522: #endif
13523: int
13524: main ()
13525: {
13526: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13527: test_array [0] = 0
1.84 petere 13528:
1.179 petere 13529: ;
13530: return 0;
13531: }
13532: _ACEOF
13533: rm -f conftest.$ac_objext
13534: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535: (eval $ac_compile) 2>&5
13536: ac_status=$?
13537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538: (exit $ac_status); } &&
13539: { ac_try='test -s conftest.$ac_objext'
13540: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541: (eval $ac_try) 2>&5
13542: ac_status=$?
13543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544: (exit $ac_status); }; }; then
13545: ac_lo=$ac_mid; break
13546: else
13547: echo "$as_me: failed program was:" >&5
13548: cat conftest.$ac_ext >&5
13549: ac_hi=`expr '(' $ac_mid ')' - 1`
13550: if test $ac_mid -le $ac_hi; then
13551: ac_lo= ac_hi=
13552: break
13553: fi
13554: ac_mid=`expr 2 '*' $ac_mid`
13555: fi
13556: rm -f conftest.$ac_objext conftest.$ac_ext
13557: done
13558: else
13559: echo "$as_me: failed program was:" >&5
13560: cat conftest.$ac_ext >&5
13561: ac_lo= ac_hi=
13562: fi
13563: rm -f conftest.$ac_objext conftest.$ac_ext
13564: fi
13565: rm -f conftest.$ac_objext conftest.$ac_ext
13566: # Binary search between lo and hi bounds.
13567: while test "x$ac_lo" != "x$ac_hi"; do
13568: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13569: cat >conftest.$ac_ext <<_ACEOF
13570: #line $LINENO "configure"
13571: #include "confdefs.h"
13572: $ac_includes_default
13573: struct { char filler; int field; } pgac_struct;
13574: #ifdef F77_DUMMY_MAIN
13575: # ifdef __cplusplus
13576: extern "C"
13577: # endif
13578: int F77_DUMMY_MAIN() { return 1; }
13579: #endif
13580: int
13581: main ()
13582: {
13583: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13584: test_array [0] = 0
1.1 petere 13585:
1.179 petere 13586: ;
13587: return 0;
13588: }
13589: _ACEOF
13590: rm -f conftest.$ac_objext
13591: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13592: (eval $ac_compile) 2>&5
13593: ac_status=$?
13594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595: (exit $ac_status); } &&
13596: { ac_try='test -s conftest.$ac_objext'
13597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598: (eval $ac_try) 2>&5
13599: ac_status=$?
13600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601: (exit $ac_status); }; }; then
13602: ac_hi=$ac_mid
13603: else
13604: echo "$as_me: failed program was:" >&5
13605: cat conftest.$ac_ext >&5
13606: ac_lo=`expr '(' $ac_mid ')' + 1`
13607: fi
13608: rm -f conftest.$ac_objext conftest.$ac_ext
13609: done
13610: case $ac_lo in
13611: ?*) pgac_cv_alignof_int=$ac_lo;;
13612: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13613: echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13614: { (exit 1); exit 1; }; } ;;
13615: esac
1.90 tgl 13616: else
13617: if test "$cross_compiling" = yes; then
1.179 petere 13618: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13619: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13620: { (exit 1); exit 1; }; }
13621: else
13622: cat >conftest.$ac_ext <<_ACEOF
13623: #line $LINENO "configure"
13624: #include "confdefs.h"
13625: $ac_includes_default
13626: struct { char filler; int field; } pgac_struct;
13627: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13628: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13629: #include <stdio.h>
13630: #include <stdlib.h>
13631: #ifdef F77_DUMMY_MAIN
13632: # ifdef __cplusplus
13633: extern "C"
13634: # endif
13635: int F77_DUMMY_MAIN() { return 1; }
13636: #endif
13637: int
13638: main ()
13639: {
13640:
13641: FILE *f = fopen ("conftest.val", "w");
13642: if (! f)
13643: exit (1);
13644: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13645: {
13646: long i = longval ();
13647: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13648: exit (1);
13649: fprintf (f, "%ld\n", i);
13650: }
13651: else
13652: {
13653: unsigned long i = ulongval ();
13654: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13655: exit (1);
13656: fprintf (f, "%lu\n", i);
13657: }
13658: exit (ferror (f) || fclose (f) != 0);
13659:
13660: ;
13661: return 0;
13662: }
13663: _ACEOF
13664: rm -f conftest$ac_exeext
13665: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666: (eval $ac_link) 2>&5
13667: ac_status=$?
13668: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13670: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671: (eval $ac_try) 2>&5
13672: ac_status=$?
13673: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674: (exit $ac_status); }; }; then
13675: pgac_cv_alignof_int=`cat conftest.val`
13676: else
13677: echo "$as_me: program exited with status $ac_status" >&5
13678: echo "$as_me: failed program was:" >&5
13679: cat conftest.$ac_ext >&5
13680: ( exit $ac_status )
13681: { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13682: echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13683: { (exit 1); exit 1; }; }
13684: fi
13685: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13686: fi
13687: fi
13688: rm -f conftest.val
13689: else
13690: pgac_cv_alignof_int=0
13691: fi
13692: fi
13693: echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13694: echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13695: cat >>confdefs.h <<_ACEOF
13696: #define ALIGNOF_INT $pgac_cv_alignof_int
13697: _ACEOF
13698:
13699:
13700: echo "$as_me:$LINENO: checking for long" >&5
13701: echo $ECHO_N "checking for long... $ECHO_C" >&6
13702: if test "${ac_cv_type_long+set}" = set; then
13703: echo $ECHO_N "(cached) $ECHO_C" >&6
13704: else
13705: cat >conftest.$ac_ext <<_ACEOF
13706: #line $LINENO "configure"
13707: #include "confdefs.h"
13708: $ac_includes_default
13709: #ifdef F77_DUMMY_MAIN
13710: # ifdef __cplusplus
13711: extern "C"
13712: # endif
13713: int F77_DUMMY_MAIN() { return 1; }
13714: #endif
13715: int
13716: main ()
13717: {
13718: if ((long *) 0)
13719: return 0;
13720: if (sizeof (long))
13721: return 0;
13722: ;
13723: return 0;
13724: }
13725: _ACEOF
13726: rm -f conftest.$ac_objext
13727: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728: (eval $ac_compile) 2>&5
13729: ac_status=$?
13730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731: (exit $ac_status); } &&
13732: { ac_try='test -s conftest.$ac_objext'
13733: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734: (eval $ac_try) 2>&5
13735: ac_status=$?
13736: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737: (exit $ac_status); }; }; then
13738: ac_cv_type_long=yes
13739: else
13740: echo "$as_me: failed program was:" >&5
13741: cat conftest.$ac_ext >&5
13742: ac_cv_type_long=no
13743: fi
13744: rm -f conftest.$ac_objext conftest.$ac_ext
13745: fi
13746: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13747: echo "${ECHO_T}$ac_cv_type_long" >&6
13748:
13749: echo "$as_me:$LINENO: checking alignment of long" >&5
13750: echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13751: if test "${pgac_cv_alignof_long+set}" = set; then
13752: echo $ECHO_N "(cached) $ECHO_C" >&6
13753: else
13754: if test "$ac_cv_type_long" = yes; then
13755: if test "$cross_compiling" = yes; then
13756: # Depending upon the size, compute the lo and hi bounds.
13757: cat >conftest.$ac_ext <<_ACEOF
13758: #line $LINENO "configure"
13759: #include "confdefs.h"
13760: $ac_includes_default
13761: struct { char filler; long field; } pgac_struct;
13762: #ifdef F77_DUMMY_MAIN
13763: # ifdef __cplusplus
13764: extern "C"
13765: # endif
13766: int F77_DUMMY_MAIN() { return 1; }
13767: #endif
13768: int
13769: main ()
13770: {
13771: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13772: test_array [0] = 0
13773:
13774: ;
13775: return 0;
13776: }
13777: _ACEOF
13778: rm -f conftest.$ac_objext
13779: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780: (eval $ac_compile) 2>&5
13781: ac_status=$?
13782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783: (exit $ac_status); } &&
13784: { ac_try='test -s conftest.$ac_objext'
13785: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786: (eval $ac_try) 2>&5
13787: ac_status=$?
13788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789: (exit $ac_status); }; }; then
13790: ac_lo=0 ac_mid=0
13791: while :; do
13792: cat >conftest.$ac_ext <<_ACEOF
13793: #line $LINENO "configure"
13794: #include "confdefs.h"
13795: $ac_includes_default
13796: struct { char filler; long field; } pgac_struct;
13797: #ifdef F77_DUMMY_MAIN
13798: # ifdef __cplusplus
13799: extern "C"
13800: # endif
13801: int F77_DUMMY_MAIN() { return 1; }
13802: #endif
13803: int
13804: main ()
13805: {
13806: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13807: test_array [0] = 0
13808:
13809: ;
13810: return 0;
13811: }
13812: _ACEOF
13813: rm -f conftest.$ac_objext
13814: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815: (eval $ac_compile) 2>&5
13816: ac_status=$?
13817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818: (exit $ac_status); } &&
13819: { ac_try='test -s conftest.$ac_objext'
13820: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821: (eval $ac_try) 2>&5
13822: ac_status=$?
13823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824: (exit $ac_status); }; }; then
13825: ac_hi=$ac_mid; break
13826: else
13827: echo "$as_me: failed program was:" >&5
13828: cat conftest.$ac_ext >&5
13829: ac_lo=`expr $ac_mid + 1`
13830: if test $ac_lo -le $ac_mid; then
13831: ac_lo= ac_hi=
13832: break
13833: fi
13834: ac_mid=`expr 2 '*' $ac_mid + 1`
13835: fi
13836: rm -f conftest.$ac_objext conftest.$ac_ext
13837: done
13838: else
13839: echo "$as_me: failed program was:" >&5
13840: cat conftest.$ac_ext >&5
13841: cat >conftest.$ac_ext <<_ACEOF
13842: #line $LINENO "configure"
13843: #include "confdefs.h"
13844: $ac_includes_default
13845: struct { char filler; long field; } pgac_struct;
13846: #ifdef F77_DUMMY_MAIN
13847: # ifdef __cplusplus
13848: extern "C"
13849: # endif
13850: int F77_DUMMY_MAIN() { return 1; }
13851: #endif
13852: int
13853: main ()
13854: {
13855: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13856: test_array [0] = 0
13857:
13858: ;
13859: return 0;
13860: }
13861: _ACEOF
13862: rm -f conftest.$ac_objext
13863: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13864: (eval $ac_compile) 2>&5
13865: ac_status=$?
13866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867: (exit $ac_status); } &&
13868: { ac_try='test -s conftest.$ac_objext'
13869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870: (eval $ac_try) 2>&5
13871: ac_status=$?
13872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873: (exit $ac_status); }; }; then
13874: ac_hi=-1 ac_mid=-1
13875: while :; do
13876: cat >conftest.$ac_ext <<_ACEOF
13877: #line $LINENO "configure"
13878: #include "confdefs.h"
13879: $ac_includes_default
13880: struct { char filler; long field; } pgac_struct;
13881: #ifdef F77_DUMMY_MAIN
13882: # ifdef __cplusplus
13883: extern "C"
13884: # endif
13885: int F77_DUMMY_MAIN() { return 1; }
13886: #endif
13887: int
13888: main ()
13889: {
13890: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13891: test_array [0] = 0
13892:
13893: ;
13894: return 0;
13895: }
13896: _ACEOF
13897: rm -f conftest.$ac_objext
13898: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899: (eval $ac_compile) 2>&5
13900: ac_status=$?
13901: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902: (exit $ac_status); } &&
13903: { ac_try='test -s conftest.$ac_objext'
13904: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905: (eval $ac_try) 2>&5
13906: ac_status=$?
13907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908: (exit $ac_status); }; }; then
13909: ac_lo=$ac_mid; break
13910: else
13911: echo "$as_me: failed program was:" >&5
13912: cat conftest.$ac_ext >&5
13913: ac_hi=`expr '(' $ac_mid ')' - 1`
13914: if test $ac_mid -le $ac_hi; then
13915: ac_lo= ac_hi=
13916: break
13917: fi
13918: ac_mid=`expr 2 '*' $ac_mid`
13919: fi
13920: rm -f conftest.$ac_objext conftest.$ac_ext
13921: done
13922: else
13923: echo "$as_me: failed program was:" >&5
13924: cat conftest.$ac_ext >&5
13925: ac_lo= ac_hi=
13926: fi
13927: rm -f conftest.$ac_objext conftest.$ac_ext
13928: fi
13929: rm -f conftest.$ac_objext conftest.$ac_ext
13930: # Binary search between lo and hi bounds.
13931: while test "x$ac_lo" != "x$ac_hi"; do
13932: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13933: cat >conftest.$ac_ext <<_ACEOF
13934: #line $LINENO "configure"
13935: #include "confdefs.h"
13936: $ac_includes_default
13937: struct { char filler; long field; } pgac_struct;
13938: #ifdef F77_DUMMY_MAIN
13939: # ifdef __cplusplus
13940: extern "C"
13941: # endif
13942: int F77_DUMMY_MAIN() { return 1; }
13943: #endif
13944: int
13945: main ()
13946: {
13947: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13948: test_array [0] = 0
13949:
13950: ;
13951: return 0;
13952: }
13953: _ACEOF
13954: rm -f conftest.$ac_objext
13955: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956: (eval $ac_compile) 2>&5
13957: ac_status=$?
13958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959: (exit $ac_status); } &&
13960: { ac_try='test -s conftest.$ac_objext'
13961: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962: (eval $ac_try) 2>&5
13963: ac_status=$?
13964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965: (exit $ac_status); }; }; then
13966: ac_hi=$ac_mid
13967: else
13968: echo "$as_me: failed program was:" >&5
13969: cat conftest.$ac_ext >&5
13970: ac_lo=`expr '(' $ac_mid ')' + 1`
13971: fi
13972: rm -f conftest.$ac_objext conftest.$ac_ext
13973: done
13974: case $ac_lo in
13975: ?*) pgac_cv_alignof_long=$ac_lo;;
13976: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13977: echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13978: { (exit 1); exit 1; }; } ;;
13979: esac
1.90 tgl 13980: else
1.179 petere 13981: if test "$cross_compiling" = yes; then
13982: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13983: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13984: { (exit 1); exit 1; }; }
13985: else
13986: cat >conftest.$ac_ext <<_ACEOF
13987: #line $LINENO "configure"
13988: #include "confdefs.h"
13989: $ac_includes_default
13990: struct { char filler; long field; } pgac_struct;
13991: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13992: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.90 tgl 13993: #include <stdio.h>
1.179 petere 13994: #include <stdlib.h>
13995: #ifdef F77_DUMMY_MAIN
13996: # ifdef __cplusplus
13997: extern "C"
13998: # endif
13999: int F77_DUMMY_MAIN() { return 1; }
14000: #endif
14001: int
14002: main ()
14003: {
14004:
14005: FILE *f = fopen ("conftest.val", "w");
14006: if (! f)
14007: exit (1);
14008: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14009: {
14010: long i = longval ();
14011: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14012: exit (1);
14013: fprintf (f, "%ld\n", i);
14014: }
14015: else
14016: {
14017: unsigned long i = ulongval ();
14018: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14019: exit (1);
14020: fprintf (f, "%lu\n", i);
14021: }
14022: exit (ferror (f) || fclose (f) != 0);
14023:
14024: ;
14025: return 0;
14026: }
14027: _ACEOF
14028: rm -f conftest$ac_exeext
14029: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030: (eval $ac_link) 2>&5
14031: ac_status=$?
14032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14034: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035: (eval $ac_try) 2>&5
14036: ac_status=$?
14037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038: (exit $ac_status); }; }; then
14039: pgac_cv_alignof_long=`cat conftest.val`
14040: else
14041: echo "$as_me: program exited with status $ac_status" >&5
14042: echo "$as_me: failed program was:" >&5
14043: cat conftest.$ac_ext >&5
14044: ( exit $ac_status )
14045: { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14046: echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14047: { (exit 1); exit 1; }; }
14048: fi
14049: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14050: fi
14051: fi
14052: rm -f conftest.val
14053: else
14054: pgac_cv_alignof_long=0
14055: fi
14056: fi
14057: echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14058: echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14059: cat >>confdefs.h <<_ACEOF
14060: #define ALIGNOF_LONG $pgac_cv_alignof_long
14061: _ACEOF
14062:
14063:
14064: if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14065: echo "$as_me:$LINENO: checking for long long int" >&5
14066: echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14067: if test "${ac_cv_type_long_long_int+set}" = set; then
14068: echo $ECHO_N "(cached) $ECHO_C" >&6
14069: else
14070: cat >conftest.$ac_ext <<_ACEOF
14071: #line $LINENO "configure"
14072: #include "confdefs.h"
14073: $ac_includes_default
14074: #ifdef F77_DUMMY_MAIN
14075: # ifdef __cplusplus
14076: extern "C"
14077: # endif
14078: int F77_DUMMY_MAIN() { return 1; }
14079: #endif
14080: int
14081: main ()
1.90 tgl 14082: {
1.179 petere 14083: if ((long long int *) 0)
14084: return 0;
14085: if (sizeof (long long int))
14086: return 0;
14087: ;
14088: return 0;
1.90 tgl 14089: }
1.179 petere 14090: _ACEOF
14091: rm -f conftest.$ac_objext
14092: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093: (eval $ac_compile) 2>&5
14094: ac_status=$?
14095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096: (exit $ac_status); } &&
14097: { ac_try='test -s conftest.$ac_objext'
14098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099: (eval $ac_try) 2>&5
14100: ac_status=$?
14101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102: (exit $ac_status); }; }; then
14103: ac_cv_type_long_long_int=yes
14104: else
14105: echo "$as_me: failed program was:" >&5
14106: cat conftest.$ac_ext >&5
14107: ac_cv_type_long_long_int=no
14108: fi
14109: rm -f conftest.$ac_objext conftest.$ac_ext
14110: fi
14111: echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14112: echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14113:
14114: echo "$as_me:$LINENO: checking alignment of long long int" >&5
14115: echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14116: if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14117: echo $ECHO_N "(cached) $ECHO_C" >&6
1.90 tgl 14118: else
1.179 petere 14119: if test "$ac_cv_type_long_long_int" = yes; then
14120: if test "$cross_compiling" = yes; then
14121: # Depending upon the size, compute the lo and hi bounds.
14122: cat >conftest.$ac_ext <<_ACEOF
14123: #line $LINENO "configure"
14124: #include "confdefs.h"
14125: $ac_includes_default
14126: struct { char filler; long long int field; } pgac_struct;
14127: #ifdef F77_DUMMY_MAIN
14128: # ifdef __cplusplus
14129: extern "C"
14130: # endif
14131: int F77_DUMMY_MAIN() { return 1; }
14132: #endif
14133: int
14134: main ()
14135: {
14136: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14137: test_array [0] = 0
14138:
14139: ;
14140: return 0;
14141: }
14142: _ACEOF
14143: rm -f conftest.$ac_objext
14144: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145: (eval $ac_compile) 2>&5
14146: ac_status=$?
14147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148: (exit $ac_status); } &&
14149: { ac_try='test -s conftest.$ac_objext'
14150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151: (eval $ac_try) 2>&5
14152: ac_status=$?
14153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154: (exit $ac_status); }; }; then
14155: ac_lo=0 ac_mid=0
14156: while :; do
14157: cat >conftest.$ac_ext <<_ACEOF
14158: #line $LINENO "configure"
14159: #include "confdefs.h"
14160: $ac_includes_default
14161: struct { char filler; long long int field; } pgac_struct;
14162: #ifdef F77_DUMMY_MAIN
14163: # ifdef __cplusplus
14164: extern "C"
14165: # endif
14166: int F77_DUMMY_MAIN() { return 1; }
14167: #endif
14168: int
14169: main ()
14170: {
14171: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14172: test_array [0] = 0
14173:
14174: ;
14175: return 0;
14176: }
14177: _ACEOF
14178: rm -f conftest.$ac_objext
14179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180: (eval $ac_compile) 2>&5
14181: ac_status=$?
14182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183: (exit $ac_status); } &&
14184: { ac_try='test -s conftest.$ac_objext'
14185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186: (eval $ac_try) 2>&5
14187: ac_status=$?
14188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189: (exit $ac_status); }; }; then
14190: ac_hi=$ac_mid; break
14191: else
14192: echo "$as_me: failed program was:" >&5
14193: cat conftest.$ac_ext >&5
14194: ac_lo=`expr $ac_mid + 1`
14195: if test $ac_lo -le $ac_mid; then
14196: ac_lo= ac_hi=
14197: break
14198: fi
14199: ac_mid=`expr 2 '*' $ac_mid + 1`
1.90 tgl 14200: fi
1.179 petere 14201: rm -f conftest.$ac_objext conftest.$ac_ext
14202: done
14203: else
14204: echo "$as_me: failed program was:" >&5
14205: cat conftest.$ac_ext >&5
14206: cat >conftest.$ac_ext <<_ACEOF
14207: #line $LINENO "configure"
14208: #include "confdefs.h"
14209: $ac_includes_default
14210: struct { char filler; long long int field; } pgac_struct;
14211: #ifdef F77_DUMMY_MAIN
14212: # ifdef __cplusplus
14213: extern "C"
14214: # endif
14215: int F77_DUMMY_MAIN() { return 1; }
14216: #endif
14217: int
14218: main ()
14219: {
14220: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14221: test_array [0] = 0
14222:
14223: ;
14224: return 0;
14225: }
14226: _ACEOF
14227: rm -f conftest.$ac_objext
14228: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229: (eval $ac_compile) 2>&5
14230: ac_status=$?
14231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232: (exit $ac_status); } &&
14233: { ac_try='test -s conftest.$ac_objext'
14234: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235: (eval $ac_try) 2>&5
14236: ac_status=$?
14237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238: (exit $ac_status); }; }; then
14239: ac_hi=-1 ac_mid=-1
14240: while :; do
14241: cat >conftest.$ac_ext <<_ACEOF
14242: #line $LINENO "configure"
14243: #include "confdefs.h"
14244: $ac_includes_default
14245: struct { char filler; long long int field; } pgac_struct;
14246: #ifdef F77_DUMMY_MAIN
14247: # ifdef __cplusplus
14248: extern "C"
14249: # endif
14250: int F77_DUMMY_MAIN() { return 1; }
14251: #endif
14252: int
14253: main ()
14254: {
14255: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14256: test_array [0] = 0
14257:
14258: ;
14259: return 0;
14260: }
14261: _ACEOF
14262: rm -f conftest.$ac_objext
14263: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264: (eval $ac_compile) 2>&5
14265: ac_status=$?
14266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267: (exit $ac_status); } &&
14268: { ac_try='test -s conftest.$ac_objext'
14269: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270: (eval $ac_try) 2>&5
14271: ac_status=$?
14272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273: (exit $ac_status); }; }; then
14274: ac_lo=$ac_mid; break
14275: else
14276: echo "$as_me: failed program was:" >&5
14277: cat conftest.$ac_ext >&5
14278: ac_hi=`expr '(' $ac_mid ')' - 1`
14279: if test $ac_mid -le $ac_hi; then
14280: ac_lo= ac_hi=
14281: break
14282: fi
14283: ac_mid=`expr 2 '*' $ac_mid`
1.90 tgl 14284: fi
1.179 petere 14285: rm -f conftest.$ac_objext conftest.$ac_ext
14286: done
14287: else
14288: echo "$as_me: failed program was:" >&5
14289: cat conftest.$ac_ext >&5
14290: ac_lo= ac_hi=
14291: fi
14292: rm -f conftest.$ac_objext conftest.$ac_ext
14293: fi
14294: rm -f conftest.$ac_objext conftest.$ac_ext
14295: # Binary search between lo and hi bounds.
14296: while test "x$ac_lo" != "x$ac_hi"; do
14297: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14298: cat >conftest.$ac_ext <<_ACEOF
14299: #line $LINENO "configure"
14300: #include "confdefs.h"
14301: $ac_includes_default
14302: struct { char filler; long long int field; } pgac_struct;
14303: #ifdef F77_DUMMY_MAIN
14304: # ifdef __cplusplus
14305: extern "C"
14306: # endif
14307: int F77_DUMMY_MAIN() { return 1; }
14308: #endif
14309: int
14310: main ()
14311: {
14312: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14313: test_array [0] = 0
1.90 tgl 14314:
1.179 petere 14315: ;
14316: return 0;
14317: }
14318: _ACEOF
14319: rm -f conftest.$ac_objext
14320: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321: (eval $ac_compile) 2>&5
14322: ac_status=$?
14323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324: (exit $ac_status); } &&
14325: { ac_try='test -s conftest.$ac_objext'
14326: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327: (eval $ac_try) 2>&5
14328: ac_status=$?
14329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330: (exit $ac_status); }; }; then
14331: ac_hi=$ac_mid
14332: else
14333: echo "$as_me: failed program was:" >&5
14334: cat conftest.$ac_ext >&5
14335: ac_lo=`expr '(' $ac_mid ')' + 1`
1.90 tgl 14336: fi
1.179 petere 14337: rm -f conftest.$ac_objext conftest.$ac_ext
14338: done
14339: case $ac_lo in
14340: ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14341: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14342: echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14343: { (exit 1); exit 1; }; } ;;
14344: esac
1.1 petere 14345: else
14346: if test "$cross_compiling" = yes; then
1.179 petere 14347: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14348: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14349: { (exit 1); exit 1; }; }
14350: else
14351: cat >conftest.$ac_ext <<_ACEOF
14352: #line $LINENO "configure"
14353: #include "confdefs.h"
14354: $ac_includes_default
14355: struct { char filler; long long int field; } pgac_struct;
14356: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14357: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.1 petere 14358: #include <stdio.h>
1.179 petere 14359: #include <stdlib.h>
14360: #ifdef F77_DUMMY_MAIN
14361: # ifdef __cplusplus
14362: extern "C"
14363: # endif
14364: int F77_DUMMY_MAIN() { return 1; }
14365: #endif
14366: int
14367: main ()
1.1 petere 14368: {
1.179 petere 14369:
14370: FILE *f = fopen ("conftest.val", "w");
14371: if (! f)
14372: exit (1);
14373: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14374: {
14375: long i = longval ();
14376: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14377: exit (1);
14378: fprintf (f, "%ld\n", i);
14379: }
14380: else
14381: {
14382: unsigned long i = ulongval ();
14383: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14384: exit (1);
14385: fprintf (f, "%lu\n", i);
14386: }
14387: exit (ferror (f) || fclose (f) != 0);
14388:
14389: ;
14390: return 0;
1.1 petere 14391: }
1.179 petere 14392: _ACEOF
14393: rm -f conftest$ac_exeext
14394: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14395: (eval $ac_link) 2>&5
14396: ac_status=$?
14397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14399: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400: (eval $ac_try) 2>&5
14401: ac_status=$?
14402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403: (exit $ac_status); }; }; then
14404: pgac_cv_alignof_long_long_int=`cat conftest.val`
14405: else
14406: echo "$as_me: program exited with status $ac_status" >&5
14407: echo "$as_me: failed program was:" >&5
14408: cat conftest.$ac_ext >&5
14409: ( exit $ac_status )
14410: { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14411: echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14412: { (exit 1); exit 1; }; }
14413: fi
14414: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14415: fi
14416: fi
14417: rm -f conftest.val
14418: else
14419: pgac_cv_alignof_long_long_int=0
14420: fi
14421: fi
14422: echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14423: echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14424: cat >>confdefs.h <<_ACEOF
14425: #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14426: _ACEOF
14427:
1.1 petere 14428:
14429: fi
1.179 petere 14430: echo "$as_me:$LINENO: checking for double" >&5
14431: echo $ECHO_N "checking for double... $ECHO_C" >&6
14432: if test "${ac_cv_type_double+set}" = set; then
14433: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 14434: else
1.179 petere 14435: cat >conftest.$ac_ext <<_ACEOF
14436: #line $LINENO "configure"
1.1 petere 14437: #include "confdefs.h"
1.179 petere 14438: $ac_includes_default
14439: #ifdef F77_DUMMY_MAIN
14440: # ifdef __cplusplus
14441: extern "C"
14442: # endif
14443: int F77_DUMMY_MAIN() { return 1; }
14444: #endif
14445: int
14446: main ()
1.1 petere 14447: {
1.179 petere 14448: if ((double *) 0)
14449: return 0;
14450: if (sizeof (double))
14451: return 0;
14452: ;
14453: return 0;
1.1 petere 14454: }
1.179 petere 14455: _ACEOF
14456: rm -f conftest.$ac_objext
14457: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458: (eval $ac_compile) 2>&5
14459: ac_status=$?
14460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461: (exit $ac_status); } &&
14462: { ac_try='test -s conftest.$ac_objext'
14463: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464: (eval $ac_try) 2>&5
14465: ac_status=$?
14466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467: (exit $ac_status); }; }; then
14468: ac_cv_type_double=yes
14469: else
14470: echo "$as_me: failed program was:" >&5
14471: cat conftest.$ac_ext >&5
14472: ac_cv_type_double=no
14473: fi
14474: rm -f conftest.$ac_objext conftest.$ac_ext
14475: fi
14476: echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14477: echo "${ECHO_T}$ac_cv_type_double" >&6
14478:
14479: echo "$as_me:$LINENO: checking alignment of double" >&5
14480: echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14481: if test "${pgac_cv_alignof_double+set}" = set; then
14482: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 14483: else
1.179 petere 14484: if test "$ac_cv_type_double" = yes; then
1.1 petere 14485: if test "$cross_compiling" = yes; then
1.179 petere 14486: # Depending upon the size, compute the lo and hi bounds.
14487: cat >conftest.$ac_ext <<_ACEOF
14488: #line $LINENO "configure"
14489: #include "confdefs.h"
14490: $ac_includes_default
14491: struct { char filler; double field; } pgac_struct;
14492: #ifdef F77_DUMMY_MAIN
14493: # ifdef __cplusplus
14494: extern "C"
14495: # endif
14496: int F77_DUMMY_MAIN() { return 1; }
14497: #endif
14498: int
14499: main ()
1.1 petere 14500: {
1.179 petere 14501: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14502: test_array [0] = 0
14503:
14504: ;
14505: return 0;
1.1 petere 14506: }
1.179 petere 14507: _ACEOF
14508: rm -f conftest.$ac_objext
14509: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510: (eval $ac_compile) 2>&5
14511: ac_status=$?
14512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513: (exit $ac_status); } &&
14514: { ac_try='test -s conftest.$ac_objext'
14515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516: (eval $ac_try) 2>&5
14517: ac_status=$?
14518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519: (exit $ac_status); }; }; then
14520: ac_lo=0 ac_mid=0
14521: while :; do
14522: cat >conftest.$ac_ext <<_ACEOF
14523: #line $LINENO "configure"
14524: #include "confdefs.h"
14525: $ac_includes_default
14526: struct { char filler; double field; } pgac_struct;
14527: #ifdef F77_DUMMY_MAIN
14528: # ifdef __cplusplus
14529: extern "C"
14530: # endif
14531: int F77_DUMMY_MAIN() { return 1; }
14532: #endif
14533: int
14534: main ()
14535: {
14536: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14537: test_array [0] = 0
1.1 petere 14538:
1.179 petere 14539: ;
14540: return 0;
14541: }
14542: _ACEOF
14543: rm -f conftest.$ac_objext
14544: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545: (eval $ac_compile) 2>&5
14546: ac_status=$?
14547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548: (exit $ac_status); } &&
14549: { ac_try='test -s conftest.$ac_objext'
14550: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551: (eval $ac_try) 2>&5
14552: ac_status=$?
14553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554: (exit $ac_status); }; }; then
14555: ac_hi=$ac_mid; break
14556: else
14557: echo "$as_me: failed program was:" >&5
14558: cat conftest.$ac_ext >&5
14559: ac_lo=`expr $ac_mid + 1`
14560: if test $ac_lo -le $ac_mid; then
14561: ac_lo= ac_hi=
14562: break
14563: fi
14564: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 petere 14565: fi
1.179 petere 14566: rm -f conftest.$ac_objext conftest.$ac_ext
14567: done
1.1 petere 14568: else
1.179 petere 14569: echo "$as_me: failed program was:" >&5
14570: cat conftest.$ac_ext >&5
14571: cat >conftest.$ac_ext <<_ACEOF
14572: #line $LINENO "configure"
14573: #include "confdefs.h"
14574: $ac_includes_default
14575: struct { char filler; double field; } pgac_struct;
14576: #ifdef F77_DUMMY_MAIN
14577: # ifdef __cplusplus
14578: extern "C"
14579: # endif
14580: int F77_DUMMY_MAIN() { return 1; }
14581: #endif
14582: int
14583: main ()
1.1 petere 14584: {
1.179 petere 14585: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14586: test_array [0] = 0
14587:
14588: ;
14589: return 0;
1.1 petere 14590: }
1.179 petere 14591: _ACEOF
14592: rm -f conftest.$ac_objext
14593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594: (eval $ac_compile) 2>&5
14595: ac_status=$?
14596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597: (exit $ac_status); } &&
14598: { ac_try='test -s conftest.$ac_objext'
14599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600: (eval $ac_try) 2>&5
14601: ac_status=$?
14602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603: (exit $ac_status); }; }; then
14604: ac_hi=-1 ac_mid=-1
14605: while :; do
14606: cat >conftest.$ac_ext <<_ACEOF
14607: #line $LINENO "configure"
14608: #include "confdefs.h"
14609: $ac_includes_default
14610: struct { char filler; double field; } pgac_struct;
14611: #ifdef F77_DUMMY_MAIN
14612: # ifdef __cplusplus
14613: extern "C"
14614: # endif
14615: int F77_DUMMY_MAIN() { return 1; }
14616: #endif
14617: int
14618: main ()
14619: {
14620: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14621: test_array [0] = 0
1.1 petere 14622:
1.179 petere 14623: ;
14624: return 0;
14625: }
14626: _ACEOF
14627: rm -f conftest.$ac_objext
14628: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629: (eval $ac_compile) 2>&5
14630: ac_status=$?
14631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632: (exit $ac_status); } &&
14633: { ac_try='test -s conftest.$ac_objext'
14634: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635: (eval $ac_try) 2>&5
14636: ac_status=$?
14637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638: (exit $ac_status); }; }; then
14639: ac_lo=$ac_mid; break
14640: else
14641: echo "$as_me: failed program was:" >&5
14642: cat conftest.$ac_ext >&5
14643: ac_hi=`expr '(' $ac_mid ')' - 1`
14644: if test $ac_mid -le $ac_hi; then
14645: ac_lo= ac_hi=
14646: break
14647: fi
14648: ac_mid=`expr 2 '*' $ac_mid`
1.1 petere 14649: fi
1.179 petere 14650: rm -f conftest.$ac_objext conftest.$ac_ext
14651: done
14652: else
14653: echo "$as_me: failed program was:" >&5
14654: cat conftest.$ac_ext >&5
14655: ac_lo= ac_hi=
14656: fi
14657: rm -f conftest.$ac_objext conftest.$ac_ext
14658: fi
14659: rm -f conftest.$ac_objext conftest.$ac_ext
14660: # Binary search between lo and hi bounds.
14661: while test "x$ac_lo" != "x$ac_hi"; do
14662: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14663: cat >conftest.$ac_ext <<_ACEOF
14664: #line $LINENO "configure"
14665: #include "confdefs.h"
14666: $ac_includes_default
14667: struct { char filler; double field; } pgac_struct;
14668: #ifdef F77_DUMMY_MAIN
14669: # ifdef __cplusplus
14670: extern "C"
14671: # endif
14672: int F77_DUMMY_MAIN() { return 1; }
14673: #endif
14674: int
14675: main ()
14676: {
14677: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14678: test_array [0] = 0
1.1 petere 14679:
1.179 petere 14680: ;
14681: return 0;
14682: }
14683: _ACEOF
14684: rm -f conftest.$ac_objext
14685: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686: (eval $ac_compile) 2>&5
14687: ac_status=$?
14688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689: (exit $ac_status); } &&
14690: { ac_try='test -s conftest.$ac_objext'
14691: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692: (eval $ac_try) 2>&5
14693: ac_status=$?
14694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695: (exit $ac_status); }; }; then
14696: ac_hi=$ac_mid
14697: else
14698: echo "$as_me: failed program was:" >&5
14699: cat conftest.$ac_ext >&5
14700: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 petere 14701: fi
1.179 petere 14702: rm -f conftest.$ac_objext conftest.$ac_ext
14703: done
14704: case $ac_lo in
14705: ?*) pgac_cv_alignof_double=$ac_lo;;
14706: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14707: echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14708: { (exit 1); exit 1; }; } ;;
14709: esac
1.1 petere 14710: else
14711: if test "$cross_compiling" = yes; then
1.179 petere 14712: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14713: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14714: { (exit 1); exit 1; }; }
14715: else
14716: cat >conftest.$ac_ext <<_ACEOF
14717: #line $LINENO "configure"
14718: #include "confdefs.h"
14719: $ac_includes_default
14720: struct { char filler; double field; } pgac_struct;
14721: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14722: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.1 petere 14723: #include <stdio.h>
1.179 petere 14724: #include <stdlib.h>
14725: #ifdef F77_DUMMY_MAIN
14726: # ifdef __cplusplus
14727: extern "C"
14728: # endif
14729: int F77_DUMMY_MAIN() { return 1; }
14730: #endif
14731: int
14732: main ()
1.1 petere 14733: {
1.179 petere 14734:
14735: FILE *f = fopen ("conftest.val", "w");
14736: if (! f)
14737: exit (1);
14738: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14739: {
14740: long i = longval ();
14741: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14742: exit (1);
14743: fprintf (f, "%ld\n", i);
14744: }
14745: else
14746: {
14747: unsigned long i = ulongval ();
14748: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14749: exit (1);
14750: fprintf (f, "%lu\n", i);
14751: }
14752: exit (ferror (f) || fclose (f) != 0);
14753:
14754: ;
14755: return 0;
1.1 petere 14756: }
1.179 petere 14757: _ACEOF
14758: rm -f conftest$ac_exeext
14759: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760: (eval $ac_link) 2>&5
14761: ac_status=$?
14762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14764: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765: (eval $ac_try) 2>&5
14766: ac_status=$?
14767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768: (exit $ac_status); }; }; then
14769: pgac_cv_alignof_double=`cat conftest.val`
14770: else
14771: echo "$as_me: program exited with status $ac_status" >&5
14772: echo "$as_me: failed program was:" >&5
14773: cat conftest.$ac_ext >&5
14774: ( exit $ac_status )
14775: { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14776: echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14777: { (exit 1); exit 1; }; }
14778: fi
14779: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14780: fi
14781: fi
14782: rm -f conftest.val
14783: else
14784: pgac_cv_alignof_double=0
14785: fi
14786: fi
14787: echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14788: echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14789: cat >>confdefs.h <<_ACEOF
1.5 petere 14790: #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
1.179 petere 14791: _ACEOF
1.1 petere 14792:
14793:
14794:
1.179 petere 14795: # Compute maximum alignment of any basic type.
14796: # We assume long's alignment is at least as strong as char, short, or int;
14797: # but we must check long long (if it exists) and double.
1.1 petere 14798:
1.179 petere 14799: MAX_ALIGNOF=$pgac_cv_alignof_long
14800: if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14801: MAX_ALIGNOF=$pgac_cv_alignof_double
14802: fi
14803: if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14804: MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
1.1 petere 14805: fi
1.179 petere 14806:
14807: cat >>confdefs.h <<_ACEOF
1.1 petere 14808: #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
1.179 petere 14809: _ACEOF
1.1 petere 14810:
14811:
1.163 petere 14812:
1.161 tgl 14813: # Some platforms predefine the types int8, int16, etc. Only check
1.179 petere 14814: # a (hopefully) representative subset.
14815: echo "$as_me:$LINENO: checking for int8" >&5
14816: echo $ECHO_N "checking for int8... $ECHO_C" >&6
14817: if test "${ac_cv_type_int8+set}" = set; then
14818: echo $ECHO_N "(cached) $ECHO_C" >&6
14819: else
14820: cat >conftest.$ac_ext <<_ACEOF
14821: #line $LINENO "configure"
14822: #include "confdefs.h"
1.163 petere 14823: #include <stdio.h>
14824: #ifdef HAVE_SUPPORTDEFS_H
14825: #include <SupportDefs.h>
1.179 petere 14826: #endif
1.163 petere 14827:
1.179 petere 14828: #ifdef F77_DUMMY_MAIN
14829: # ifdef __cplusplus
14830: extern "C"
14831: # endif
14832: int F77_DUMMY_MAIN() { return 1; }
14833: #endif
14834: int
14835: main ()
14836: {
1.163 petere 14837: if ((int8 *) 0)
14838: return 0;
14839: if (sizeof (int8))
14840: return 0;
1.179 petere 14841: ;
14842: return 0;
14843: }
14844: _ACEOF
14845: rm -f conftest.$ac_objext
14846: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847: (eval $ac_compile) 2>&5
14848: ac_status=$?
14849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850: (exit $ac_status); } &&
14851: { ac_try='test -s conftest.$ac_objext'
14852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853: (eval $ac_try) 2>&5
14854: ac_status=$?
14855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856: (exit $ac_status); }; }; then
14857: ac_cv_type_int8=yes
14858: else
14859: echo "$as_me: failed program was:" >&5
14860: cat conftest.$ac_ext >&5
14861: ac_cv_type_int8=no
14862: fi
14863: rm -f conftest.$ac_objext conftest.$ac_ext
14864: fi
14865: echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14866: echo "${ECHO_T}$ac_cv_type_int8" >&6
14867: if test $ac_cv_type_int8 = yes; then
1.161 tgl 14868:
1.179 petere 14869: cat >>confdefs.h <<_ACEOF
1.163 petere 14870: #define HAVE_INT8 1
1.179 petere 14871: _ACEOF
1.161 tgl 14872:
14873:
1.179 petere 14874: fi
14875: echo "$as_me:$LINENO: checking for uint8" >&5
14876: echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14877: if test "${ac_cv_type_uint8+set}" = set; then
14878: echo $ECHO_N "(cached) $ECHO_C" >&6
1.161 tgl 14879: else
1.179 petere 14880: cat >conftest.$ac_ext <<_ACEOF
14881: #line $LINENO "configure"
1.161 tgl 14882: #include "confdefs.h"
1.179 petere 14883: #include <stdio.h>
14884: #ifdef HAVE_SUPPORTDEFS_H
14885: #include <SupportDefs.h>
14886: #endif
14887:
14888: #ifdef F77_DUMMY_MAIN
14889: # ifdef __cplusplus
14890: extern "C"
14891: # endif
14892: int F77_DUMMY_MAIN() { return 1; }
14893: #endif
14894: int
14895: main ()
14896: {
1.163 petere 14897: if ((uint8 *) 0)
14898: return 0;
14899: if (sizeof (uint8))
14900: return 0;
1.179 petere 14901: ;
14902: return 0;
14903: }
14904: _ACEOF
14905: rm -f conftest.$ac_objext
14906: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14907: (eval $ac_compile) 2>&5
14908: ac_status=$?
14909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910: (exit $ac_status); } &&
14911: { ac_try='test -s conftest.$ac_objext'
14912: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913: (eval $ac_try) 2>&5
14914: ac_status=$?
14915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916: (exit $ac_status); }; }; then
14917: ac_cv_type_uint8=yes
14918: else
14919: echo "$as_me: failed program was:" >&5
14920: cat conftest.$ac_ext >&5
14921: ac_cv_type_uint8=no
14922: fi
14923: rm -f conftest.$ac_objext conftest.$ac_ext
14924: fi
14925: echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14926: echo "${ECHO_T}$ac_cv_type_uint8" >&6
14927: if test $ac_cv_type_uint8 = yes; then
1.161 tgl 14928:
1.179 petere 14929: cat >>confdefs.h <<_ACEOF
1.163 petere 14930: #define HAVE_UINT8 1
1.179 petere 14931: _ACEOF
1.161 tgl 14932:
14933:
1.179 petere 14934: fi
14935: echo "$as_me:$LINENO: checking for int64" >&5
14936: echo $ECHO_N "checking for int64... $ECHO_C" >&6
14937: if test "${ac_cv_type_int64+set}" = set; then
14938: echo $ECHO_N "(cached) $ECHO_C" >&6
1.161 tgl 14939: else
1.179 petere 14940: cat >conftest.$ac_ext <<_ACEOF
14941: #line $LINENO "configure"
1.161 tgl 14942: #include "confdefs.h"
1.179 petere 14943: #include <stdio.h>
14944: #ifdef HAVE_SUPPORTDEFS_H
14945: #include <SupportDefs.h>
14946: #endif
14947:
14948: #ifdef F77_DUMMY_MAIN
14949: # ifdef __cplusplus
14950: extern "C"
14951: # endif
14952: int F77_DUMMY_MAIN() { return 1; }
14953: #endif
14954: int
14955: main ()
14956: {
1.163 petere 14957: if ((int64 *) 0)
14958: return 0;
14959: if (sizeof (int64))
14960: return 0;
1.179 petere 14961: ;
14962: return 0;
14963: }
14964: _ACEOF
14965: rm -f conftest.$ac_objext
14966: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967: (eval $ac_compile) 2>&5
14968: ac_status=$?
14969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970: (exit $ac_status); } &&
14971: { ac_try='test -s conftest.$ac_objext'
14972: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973: (eval $ac_try) 2>&5
14974: ac_status=$?
14975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976: (exit $ac_status); }; }; then
14977: ac_cv_type_int64=yes
14978: else
1.181 petere 14979: echo "$as_me: failed program was:" >&5
14980: cat conftest.$ac_ext >&5
14981: ac_cv_type_int64=no
14982: fi
14983: rm -f conftest.$ac_objext conftest.$ac_ext
14984: fi
14985: echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14986: echo "${ECHO_T}$ac_cv_type_int64" >&6
14987: if test $ac_cv_type_int64 = yes; then
14988:
14989: cat >>confdefs.h <<_ACEOF
14990: #define HAVE_INT64 1
14991: _ACEOF
14992:
14993:
14994: fi
14995: echo "$as_me:$LINENO: checking for uint64" >&5
14996: echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14997: if test "${ac_cv_type_uint64+set}" = set; then
14998: echo $ECHO_N "(cached) $ECHO_C" >&6
14999: else
15000: cat >conftest.$ac_ext <<_ACEOF
15001: #line $LINENO "configure"
15002: #include "confdefs.h"
15003: #include <stdio.h>
15004: #ifdef HAVE_SUPPORTDEFS_H
15005: #include <SupportDefs.h>
15006: #endif
15007:
15008: #ifdef F77_DUMMY_MAIN
15009: # ifdef __cplusplus
15010: extern "C"
15011: # endif
15012: int F77_DUMMY_MAIN() { return 1; }
15013: #endif
15014: int
15015: main ()
15016: {
15017: if ((uint64 *) 0)
15018: return 0;
15019: if (sizeof (uint64))
15020: return 0;
15021: ;
15022: return 0;
15023: }
15024: _ACEOF
15025: rm -f conftest.$ac_objext
15026: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027: (eval $ac_compile) 2>&5
15028: ac_status=$?
15029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030: (exit $ac_status); } &&
15031: { ac_try='test -s conftest.$ac_objext'
15032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033: (eval $ac_try) 2>&5
15034: ac_status=$?
15035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036: (exit $ac_status); }; }; then
15037: ac_cv_type_uint64=yes
15038: else
15039: echo "$as_me: failed program was:" >&5
15040: cat conftest.$ac_ext >&5
15041: ac_cv_type_uint64=no
15042: fi
15043: rm -f conftest.$ac_objext conftest.$ac_ext
15044: fi
15045: echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15046: echo "${ECHO_T}$ac_cv_type_uint64" >&6
15047: if test $ac_cv_type_uint64 = yes; then
15048:
15049: cat >>confdefs.h <<_ACEOF
15050: #define HAVE_UINT64 1
15051: _ACEOF
15052:
15053:
15054: fi
15055:
15056:
15057: # We also check for sig_atomic_t, which *should* be defined per ANSI
15058: # C, but is missing on some old platforms.
15059: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15060: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15061: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15062: echo $ECHO_N "(cached) $ECHO_C" >&6
15063: else
15064: cat >conftest.$ac_ext <<_ACEOF
15065: #line $LINENO "configure"
15066: #include "confdefs.h"
15067: #include <signal.h>
15068:
15069: #ifdef F77_DUMMY_MAIN
15070: # ifdef __cplusplus
15071: extern "C"
15072: # endif
15073: int F77_DUMMY_MAIN() { return 1; }
15074: #endif
15075: int
15076: main ()
15077: {
15078: if ((sig_atomic_t *) 0)
15079: return 0;
15080: if (sizeof (sig_atomic_t))
15081: return 0;
15082: ;
15083: return 0;
15084: }
15085: _ACEOF
15086: rm -f conftest.$ac_objext
15087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15088: (eval $ac_compile) 2>&5
15089: ac_status=$?
15090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091: (exit $ac_status); } &&
15092: { ac_try='test -s conftest.$ac_objext'
15093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094: (eval $ac_try) 2>&5
15095: ac_status=$?
15096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097: (exit $ac_status); }; }; then
15098: ac_cv_type_sig_atomic_t=yes
15099: else
15100: echo "$as_me: failed program was:" >&5
15101: cat conftest.$ac_ext >&5
15102: ac_cv_type_sig_atomic_t=no
15103: fi
15104: rm -f conftest.$ac_objext conftest.$ac_ext
15105: fi
15106: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15107: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15108: if test $ac_cv_type_sig_atomic_t = yes; then
15109:
15110: cat >>confdefs.h <<_ACEOF
15111: #define HAVE_SIG_ATOMIC_T 1
15112: _ACEOF
15113:
15114:
15115: fi
15116:
15117:
15118:
15119: echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15120: echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15121: if test "${pgac_cv_func_posix_signals+set}" = set; then
15122: echo $ECHO_N "(cached) $ECHO_C" >&6
15123: else
15124: cat >conftest.$ac_ext <<_ACEOF
15125: #line $LINENO "configure"
15126: #include "confdefs.h"
15127: #include <signal.h>
15128:
15129: #ifdef F77_DUMMY_MAIN
15130: # ifdef __cplusplus
15131: extern "C"
15132: # endif
15133: int F77_DUMMY_MAIN() { return 1; }
15134: #endif
15135: int
15136: main ()
15137: {
15138: struct sigaction act, oact;
15139: sigemptyset(&act.sa_mask);
15140: act.sa_flags = SA_RESTART;
15141: sigaction(0, &act, &oact);
15142: ;
15143: return 0;
15144: }
15145: _ACEOF
15146: rm -f conftest.$ac_objext conftest$ac_exeext
15147: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148: (eval $ac_link) 2>&5
15149: ac_status=$?
15150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151: (exit $ac_status); } &&
15152: { ac_try='test -s conftest$ac_exeext'
15153: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154: (eval $ac_try) 2>&5
15155: ac_status=$?
15156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157: (exit $ac_status); }; }; then
15158: pgac_cv_func_posix_signals=yes
15159: else
15160: echo "$as_me: failed program was:" >&5
15161: cat conftest.$ac_ext >&5
15162: pgac_cv_func_posix_signals=no
15163: fi
15164: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15165: fi
15166: echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15167: echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15168: if test x"$pgac_cv_func_posix_signals" = xyes ; then
15169:
15170: cat >>confdefs.h <<\_ACEOF
15171: #define HAVE_POSIX_SIGNALS
15172: _ACEOF
15173:
15174: fi
15175: HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15176:
15177:
15178:
15179: if test "$enable_nls" = yes ; then
15180:
15181: echo "$as_me:$LINENO: checking for library containing gettext" >&5
15182: echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15183: if test "${ac_cv_search_gettext+set}" = set; then
15184: echo $ECHO_N "(cached) $ECHO_C" >&6
15185: else
15186: ac_func_search_save_LIBS=$LIBS
15187: ac_cv_search_gettext=no
15188: cat >conftest.$ac_ext <<_ACEOF
15189: #line $LINENO "configure"
15190: #include "confdefs.h"
15191:
15192: /* Override any gcc2 internal prototype to avoid an error. */
15193: #ifdef __cplusplus
15194: extern "C"
15195: #endif
15196: /* We use char because int might match the return type of a gcc2
15197: builtin and then its argument prototype would still apply. */
15198: char gettext ();
15199: #ifdef F77_DUMMY_MAIN
15200: # ifdef __cplusplus
15201: extern "C"
15202: # endif
15203: int F77_DUMMY_MAIN() { return 1; }
15204: #endif
15205: int
15206: main ()
15207: {
15208: gettext ();
15209: ;
15210: return 0;
15211: }
15212: _ACEOF
15213: rm -f conftest.$ac_objext conftest$ac_exeext
15214: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215: (eval $ac_link) 2>&5
15216: ac_status=$?
15217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218: (exit $ac_status); } &&
15219: { ac_try='test -s conftest$ac_exeext'
15220: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221: (eval $ac_try) 2>&5
15222: ac_status=$?
15223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224: (exit $ac_status); }; }; then
15225: ac_cv_search_gettext="none required"
15226: else
15227: echo "$as_me: failed program was:" >&5
15228: cat conftest.$ac_ext >&5
15229: fi
15230: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15231: if test "$ac_cv_search_gettext" = no; then
15232: for ac_lib in intl; do
15233: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15234: cat >conftest.$ac_ext <<_ACEOF
15235: #line $LINENO "configure"
15236: #include "confdefs.h"
15237:
15238: /* Override any gcc2 internal prototype to avoid an error. */
15239: #ifdef __cplusplus
15240: extern "C"
15241: #endif
15242: /* We use char because int might match the return type of a gcc2
15243: builtin and then its argument prototype would still apply. */
15244: char gettext ();
15245: #ifdef F77_DUMMY_MAIN
15246: # ifdef __cplusplus
15247: extern "C"
15248: # endif
15249: int F77_DUMMY_MAIN() { return 1; }
15250: #endif
15251: int
15252: main ()
15253: {
15254: gettext ();
15255: ;
15256: return 0;
15257: }
15258: _ACEOF
15259: rm -f conftest.$ac_objext conftest$ac_exeext
15260: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261: (eval $ac_link) 2>&5
15262: ac_status=$?
15263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264: (exit $ac_status); } &&
15265: { ac_try='test -s conftest$ac_exeext'
15266: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267: (eval $ac_try) 2>&5
15268: ac_status=$?
15269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270: (exit $ac_status); }; }; then
15271: ac_cv_search_gettext="-l$ac_lib"
15272: break
15273: else
15274: echo "$as_me: failed program was:" >&5
15275: cat conftest.$ac_ext >&5
15276: fi
15277: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15278: done
15279: fi
15280: LIBS=$ac_func_search_save_LIBS
15281: fi
15282: echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15283: echo "${ECHO_T}$ac_cv_search_gettext" >&6
15284: if test "$ac_cv_search_gettext" != no; then
15285: test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15286:
15287: else
15288: { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15289: echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15290: { (exit 1); exit 1; }; }
15291: fi
15292:
15293: if test "${ac_cv_header_libintl_h+set}" = set; then
15294: echo "$as_me:$LINENO: checking for libintl.h" >&5
15295: echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15296: if test "${ac_cv_header_libintl_h+set}" = set; then
15297: echo $ECHO_N "(cached) $ECHO_C" >&6
15298: fi
15299: echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15300: echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15301: else
15302: # Is the header compilable?
15303: echo "$as_me:$LINENO: checking libintl.h usability" >&5
15304: echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15305: cat >conftest.$ac_ext <<_ACEOF
15306: #line $LINENO "configure"
15307: #include "confdefs.h"
15308: $ac_includes_default
15309: #include <libintl.h>
15310: _ACEOF
15311: rm -f conftest.$ac_objext
15312: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15313: (eval $ac_compile) 2>&5
15314: ac_status=$?
15315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316: (exit $ac_status); } &&
15317: { ac_try='test -s conftest.$ac_objext'
15318: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319: (eval $ac_try) 2>&5
15320: ac_status=$?
15321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322: (exit $ac_status); }; }; then
15323: ac_header_compiler=yes
15324: else
15325: echo "$as_me: failed program was:" >&5
15326: cat conftest.$ac_ext >&5
15327: ac_header_compiler=no
15328: fi
15329: rm -f conftest.$ac_objext conftest.$ac_ext
15330: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15331: echo "${ECHO_T}$ac_header_compiler" >&6
15332:
15333: # Is the header present?
15334: echo "$as_me:$LINENO: checking libintl.h presence" >&5
15335: echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15336: cat >conftest.$ac_ext <<_ACEOF
15337: #line $LINENO "configure"
15338: #include "confdefs.h"
15339: #include <libintl.h>
15340: _ACEOF
15341: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15342: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15343: ac_status=$?
15344: egrep -v '^ *\+' conftest.er1 >conftest.err
15345: rm -f conftest.er1
15346: cat conftest.err >&5
15347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348: (exit $ac_status); } >/dev/null; then
15349: if test -s conftest.err; then
15350: ac_cpp_err=$ac_c_preproc_warn_flag
15351: else
15352: ac_cpp_err=
15353: fi
15354: else
15355: ac_cpp_err=yes
15356: fi
15357: if test -z "$ac_cpp_err"; then
15358: ac_header_preproc=yes
15359: else
15360: echo "$as_me: failed program was:" >&5
15361: cat conftest.$ac_ext >&5
15362: ac_header_preproc=no
15363: fi
15364: rm -f conftest.err conftest.$ac_ext
15365: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15366: echo "${ECHO_T}$ac_header_preproc" >&6
15367:
15368: # So? What about this header?
15369: case $ac_header_compiler:$ac_header_preproc in
15370: yes:no )
15371: { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15372: echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15373: { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15374: echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15375: no:yes )
15376: { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15377: echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15378: { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15379: echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15380: { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15381: echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15382: esac
15383: echo "$as_me:$LINENO: checking for libintl.h" >&5
15384: echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15385: if test "${ac_cv_header_libintl_h+set}" = set; then
15386: echo $ECHO_N "(cached) $ECHO_C" >&6
15387: else
15388: ac_cv_header_libintl_h=$ac_header_preproc
15389: fi
15390: echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15391: echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15392:
15393: fi
15394: if test $ac_cv_header_libintl_h = yes; then
15395: :
15396: else
15397: { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15398: echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15399: { (exit 1); exit 1; }; }
15400: fi
15401:
15402:
15403: for ac_prog in msgfmt
15404: do
15405: # Extract the first word of "$ac_prog", so it can be a program name with args.
15406: set dummy $ac_prog; ac_word=$2
15407: echo "$as_me:$LINENO: checking for $ac_word" >&5
15408: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15409: if test "${ac_cv_prog_MSGFMT+set}" = set; then
15410: echo $ECHO_N "(cached) $ECHO_C" >&6
15411: else
15412: if test -n "$MSGFMT"; then
15413: ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15414: else
15415: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15416: for as_dir in $PATH
15417: do
15418: IFS=$as_save_IFS
15419: test -z "$as_dir" && as_dir=.
15420: for ac_exec_ext in '' $ac_executable_extensions; do
15421: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15422: ac_cv_prog_MSGFMT="$ac_prog"
15423: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15424: break 2
15425: fi
15426: done
15427: done
15428:
15429: fi
15430: fi
15431: MSGFMT=$ac_cv_prog_MSGFMT
15432: if test -n "$MSGFMT"; then
15433: echo "$as_me:$LINENO: result: $MSGFMT" >&5
15434: echo "${ECHO_T}$MSGFMT" >&6
15435: else
15436: echo "$as_me:$LINENO: result: no" >&5
15437: echo "${ECHO_T}no" >&6
15438: fi
15439:
15440: test -n "$MSGFMT" && break
15441: done
15442:
15443: if test -z "$MSGFMT"; then
15444: { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15445: echo "$as_me: error: msgfmt is required for NLS" >&2;}
15446: { (exit 1); exit 1; }; }
15447: fi
15448: for ac_prog in msgmerge
15449: do
15450: # Extract the first word of "$ac_prog", so it can be a program name with args.
15451: set dummy $ac_prog; ac_word=$2
15452: echo "$as_me:$LINENO: checking for $ac_word" >&5
15453: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15454: if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15455: echo $ECHO_N "(cached) $ECHO_C" >&6
15456: else
15457: if test -n "$MSGMERGE"; then
15458: ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15459: else
15460: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15461: for as_dir in $PATH
15462: do
15463: IFS=$as_save_IFS
15464: test -z "$as_dir" && as_dir=.
15465: for ac_exec_ext in '' $ac_executable_extensions; do
15466: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15467: ac_cv_prog_MSGMERGE="$ac_prog"
15468: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15469: break 2
15470: fi
15471: done
15472: done
15473:
15474: fi
15475: fi
15476: MSGMERGE=$ac_cv_prog_MSGMERGE
15477: if test -n "$MSGMERGE"; then
15478: echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15479: echo "${ECHO_T}$MSGMERGE" >&6
15480: else
15481: echo "$as_me:$LINENO: result: no" >&5
15482: echo "${ECHO_T}no" >&6
15483: fi
15484:
15485: test -n "$MSGMERGE" && break
15486: done
15487:
15488: for ac_prog in xgettext
15489: do
15490: # Extract the first word of "$ac_prog", so it can be a program name with args.
15491: set dummy $ac_prog; ac_word=$2
15492: echo "$as_me:$LINENO: checking for $ac_word" >&5
15493: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15494: if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15495: echo $ECHO_N "(cached) $ECHO_C" >&6
15496: else
15497: if test -n "$XGETTEXT"; then
15498: ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15499: else
15500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15501: for as_dir in $PATH
15502: do
15503: IFS=$as_save_IFS
15504: test -z "$as_dir" && as_dir=.
15505: for ac_exec_ext in '' $ac_executable_extensions; do
15506: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15507: ac_cv_prog_XGETTEXT="$ac_prog"
15508: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15509: break 2
15510: fi
15511: done
15512: done
15513:
15514: fi
15515: fi
15516: XGETTEXT=$ac_cv_prog_XGETTEXT
15517: if test -n "$XGETTEXT"; then
15518: echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15519: echo "${ECHO_T}$XGETTEXT" >&6
15520: else
15521: echo "$as_me:$LINENO: result: no" >&5
15522: echo "${ECHO_T}no" >&6
1.179 petere 15523: fi
1.181 petere 15524:
15525: test -n "$XGETTEXT" && break
15526: done
15527:
15528:
15529: # Note: share/locale is always the default, independent of $datadir
15530: localedir='${prefix}/share/locale'
15531: if test x"$prefix" = x"NONE"; then
15532: exp_localedir="$ac_default_prefix/share/locale"
15533: else
15534: exp_localedir="$prefix/share/locale"
15535: fi
15536:
15537:
1.161 tgl 15538:
1.179 petere 15539: cat >>confdefs.h <<_ACEOF
1.181 petere 15540: #define LOCALEDIR "$exp_localedir"
1.179 petere 15541: _ACEOF
1.161 tgl 15542:
15543:
1.179 petere 15544: fi
1.181 petere 15545:
15546: if test "$with_CXX" = yes; then
15547:
15548:
15549: ac_ext=cc
15550: ac_cpp='$CXXCPP $CPPFLAGS'
15551: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15554:
15555: if test "${ac_cv_header_string+set}" = set; then
15556: echo "$as_me:$LINENO: checking for string" >&5
15557: echo $ECHO_N "checking for string... $ECHO_C" >&6
15558: if test "${ac_cv_header_string+set}" = set; then
1.179 petere 15559: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 15560: fi
15561: echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15562: echo "${ECHO_T}$ac_cv_header_string" >&6
1.161 tgl 15563: else
1.181 petere 15564: # Is the header compilable?
15565: echo "$as_me:$LINENO: checking string usability" >&5
15566: echo $ECHO_N "checking string usability... $ECHO_C" >&6
15567: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 15568: #line $LINENO "configure"
1.161 tgl 15569: #include "confdefs.h"
1.181 petere 15570: $ac_includes_default
15571: #include <string>
1.179 petere 15572: _ACEOF
15573: rm -f conftest.$ac_objext
15574: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15575: (eval $ac_compile) 2>&5
15576: ac_status=$?
15577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578: (exit $ac_status); } &&
15579: { ac_try='test -s conftest.$ac_objext'
15580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581: (eval $ac_try) 2>&5
15582: ac_status=$?
15583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584: (exit $ac_status); }; }; then
1.181 petere 15585: ac_header_compiler=yes
1.179 petere 15586: else
15587: echo "$as_me: failed program was:" >&5
15588: cat conftest.$ac_ext >&5
1.181 petere 15589: ac_header_compiler=no
1.179 petere 15590: fi
15591: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 15592: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15593: echo "${ECHO_T}$ac_header_compiler" >&6
1.161 tgl 15594:
1.181 petere 15595: # Is the header present?
15596: echo "$as_me:$LINENO: checking string presence" >&5
15597: echo $ECHO_N "checking string presence... $ECHO_C" >&6
15598: cat >conftest.$ac_ext <<_ACEOF
15599: #line $LINENO "configure"
15600: #include "confdefs.h"
15601: #include <string>
1.179 petere 15602: _ACEOF
1.181 petere 15603: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15604: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15605: ac_status=$?
15606: egrep -v '^ *\+' conftest.er1 >conftest.err
15607: rm -f conftest.er1
15608: cat conftest.err >&5
15609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610: (exit $ac_status); } >/dev/null; then
15611: if test -s conftest.err; then
15612: ac_cpp_err=$ac_cxx_preproc_warn_flag
15613: else
15614: ac_cpp_err=
15615: fi
15616: else
15617: ac_cpp_err=yes
15618: fi
15619: if test -z "$ac_cpp_err"; then
15620: ac_header_preproc=yes
15621: else
15622: echo "$as_me: failed program was:" >&5
15623: cat conftest.$ac_ext >&5
15624: ac_header_preproc=no
15625: fi
15626: rm -f conftest.err conftest.$ac_ext
15627: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15628: echo "${ECHO_T}$ac_header_preproc" >&6
1.179 petere 15629:
1.181 petere 15630: # So? What about this header?
15631: case $ac_header_compiler:$ac_header_preproc in
15632: yes:no )
15633: { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
15634: echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
15635: { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
15636: echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
15637: no:yes )
15638: { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
15639: echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
15640: { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
15641: echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
15642: { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
15643: echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
15644: esac
15645: echo "$as_me:$LINENO: checking for string" >&5
15646: echo $ECHO_N "checking for string... $ECHO_C" >&6
15647: if test "${ac_cv_header_string+set}" = set; then
15648: echo $ECHO_N "(cached) $ECHO_C" >&6
15649: else
15650: ac_cv_header_string=$ac_header_preproc
15651: fi
15652: echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15653: echo "${ECHO_T}$ac_cv_header_string" >&6
1.179 petere 15654:
15655: fi
1.181 petere 15656: if test $ac_cv_header_string = yes; then
1.161 tgl 15657:
1.181 petere 15658: cat >>confdefs.h <<\_ACEOF
15659: #define HAVE_CXX_STRING_HEADER 1
15660: _ACEOF
1.163 petere 15661:
1.181 petere 15662: else
15663: echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
15664: echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
15665: if test "${pgac_cv_class_string_in_string_h+set}" = set; then
1.179 petere 15666: echo $ECHO_N "(cached) $ECHO_C" >&6
1.164 tgl 15667: else
1.179 petere 15668: cat >conftest.$ac_ext <<_ACEOF
15669: #line $LINENO "configure"
1.164 tgl 15670: #include "confdefs.h"
1.181 petere 15671: #include <stdio.h>
15672: #include <stdlib.h>
15673: #include <string.h>
1.179 petere 15674:
15675: #ifdef F77_DUMMY_MAIN
15676: # ifdef __cplusplus
15677: extern "C"
15678: # endif
15679: int F77_DUMMY_MAIN() { return 1; }
15680: #endif
15681: int
15682: main ()
15683: {
1.181 petere 15684: string foo = "test"
1.179 petere 15685: ;
15686: return 0;
15687: }
15688: _ACEOF
15689: rm -f conftest.$ac_objext
15690: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691: (eval $ac_compile) 2>&5
15692: ac_status=$?
15693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694: (exit $ac_status); } &&
15695: { ac_try='test -s conftest.$ac_objext'
15696: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697: (eval $ac_try) 2>&5
15698: ac_status=$?
15699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700: (exit $ac_status); }; }; then
1.181 petere 15701: pgac_cv_class_string_in_string_h=yes
1.179 petere 15702: else
15703: echo "$as_me: failed program was:" >&5
15704: cat conftest.$ac_ext >&5
1.181 petere 15705: pgac_cv_class_string_in_string_h=no
1.179 petere 15706: fi
15707: rm -f conftest.$ac_objext conftest.$ac_ext
15708: fi
1.181 petere 15709: echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
15710: echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
1.164 tgl 15711:
1.181 petere 15712: if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
15713: { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
15714: echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
15715: { (exit 1); exit 1; }; }
15716: fi
1.179 petere 15717:
1.181 petere 15718: fi
1.164 tgl 15719:
15720:
1.181 petere 15721: ac_ext=c
15722: ac_cpp='$CPP $CPPFLAGS'
15723: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15724: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15725: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.161 tgl 15726:
15727:
1.181 petere 15728: echo "$as_me:$LINENO: checking for namespace std in C++" >&5
15729: echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
15730: if test "${pgac_cv_cxx_namespace_std+set}" = set; then
1.179 petere 15731: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 15732: else
1.181 petere 15733:
15734: ac_ext=cc
15735: ac_cpp='$CXXCPP $CPPFLAGS'
15736: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15737: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15738: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15739:
15740: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 15741: #line $LINENO "configure"
1.1 petere 15742: #include "confdefs.h"
1.181 petere 15743: #include <stdio.h>
15744: #include <stdlib.h>
15745: #ifdef HAVE_CXX_STRING_HEADER
15746: #include <string>
15747: #endif
15748: using namespace std;
1.5 petere 15749:
1.179 petere 15750: #ifdef F77_DUMMY_MAIN
15751: # ifdef __cplusplus
15752: extern "C"
15753: # endif
15754: int F77_DUMMY_MAIN() { return 1; }
15755: #endif
15756: int
15757: main ()
15758: {
1.181 petere 15759:
1.179 petere 15760: ;
15761: return 0;
15762: }
15763: _ACEOF
1.181 petere 15764: rm -f conftest.$ac_objext
15765: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15766: (eval $ac_compile) 2>&5
1.179 petere 15767: ac_status=$?
15768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769: (exit $ac_status); } &&
1.181 petere 15770: { ac_try='test -s conftest.$ac_objext'
1.179 petere 15771: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772: (eval $ac_try) 2>&5
15773: ac_status=$?
15774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775: (exit $ac_status); }; }; then
1.181 petere 15776: pgac_cv_cxx_namespace_std=yes
1.1 petere 15777: else
1.179 petere 15778: echo "$as_me: failed program was:" >&5
15779: cat conftest.$ac_ext >&5
1.181 petere 15780: pgac_cv_cxx_namespace_std=no
1.1 petere 15781: fi
1.181 petere 15782: rm -f conftest.$ac_objext conftest.$ac_ext
15783: ac_ext=c
15784: ac_cpp='$CPP $CPPFLAGS'
15785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15788:
1.5 petere 15789: fi
1.181 petere 15790: echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
15791: echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
15792:
15793: if test $pgac_cv_cxx_namespace_std = yes ; then
1.5 petere 15794:
1.179 petere 15795: cat >>confdefs.h <<\_ACEOF
1.181 petere 15796: #define HAVE_NAMESPACE_STD 1
1.179 petere 15797: _ACEOF
1.5 petere 15798:
15799: fi
1.181 petere 15800: fi
1.1 petere 15801:
15802:
1.44 petere 15803: # Check for Tcl configuration script tclConfig.sh
15804: if test "$with_tcl" = yes; then
15805: for ac_prog in tclsh tcl
15806: do
1.179 petere 15807: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.44 petere 15808: set dummy $ac_prog; ac_word=$2
1.179 petere 15809: echo "$as_me:$LINENO: checking for $ac_word" >&5
15810: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15811: if test "${ac_cv_path_TCLSH+set}" = set; then
15812: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 15813: else
1.179 petere 15814: case $TCLSH in
15815: [\\/]* | ?:[\\/]*)
1.1 petere 15816: ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15817: ;;
15818: *)
1.179 petere 15819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820: for as_dir in $PATH
15821: do
15822: IFS=$as_save_IFS
15823: test -z "$as_dir" && as_dir=.
15824: for ac_exec_ext in '' $ac_executable_extensions; do
15825: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15826: ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15827: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15828: break 2
15829: fi
15830: done
15831: done
15832:
1.1 petere 15833: ;;
15834: esac
15835: fi
1.179 petere 15836: TCLSH=$ac_cv_path_TCLSH
15837:
1.1 petere 15838: if test -n "$TCLSH"; then
1.179 petere 15839: echo "$as_me:$LINENO: result: $TCLSH" >&5
15840: echo "${ECHO_T}$TCLSH" >&6
1.1 petere 15841: else
1.179 petere 15842: echo "$as_me:$LINENO: result: no" >&5
15843: echo "${ECHO_T}no" >&6
1.1 petere 15844: fi
15845:
1.179 petere 15846: test -n "$TCLSH" && break
1.44 petere 15847: done
15848:
1.179 petere 15849: echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15850: echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
1.44 petere 15851: # Let user override test
15852: if test -z "$TCL_CONFIG_SH"; then
15853: pgac_test_dirs="$with_tclconfig"
15854:
15855: set X $pgac_test_dirs; shift
15856: if test $# -eq 0; then
1.179 petere 15857: test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15858: echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15859: { (exit 1); exit 1; }; }
1.44 petere 15860: set X `echo 'puts $auto_path' | $TCLSH`; shift
1.1 petere 15861: fi
15862:
1.48 petere 15863: for pgac_dir do
1.44 petere 15864: if test -r "$pgac_dir/tclConfig.sh"; then
15865: TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15866: break
15867: fi
15868: done
1.1 petere 15869: fi
15870:
1.44 petere 15871: if test -z "$TCL_CONFIG_SH"; then
1.179 petere 15872: echo "$as_me:$LINENO: result: no" >&5
15873: echo "${ECHO_T}no" >&6
15874: { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15875: echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15876: { (exit 1); exit 1; }; }
1.1 petere 15877: else
1.179 petere 15878: echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15879: echo "${ECHO_T}$TCL_CONFIG_SH" >&6
1.1 petere 15880: fi
15881:
15882:
1.30 petere 15883:
1.44 petere 15884: fi
1.1 petere 15885:
1.44 petere 15886: # Check for Tk configuration script tkConfig.sh
15887: if test "$with_tk" = yes; then
1.179 petere 15888: echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15889: echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
1.44 petere 15890: # Let user override test
15891: if test -z "$TK_CONFIG_SH"; then
15892: pgac_test_dirs="$with_tkconfig $with_tclconfig"
1.1 petere 15893:
1.44 petere 15894: set X $pgac_test_dirs; shift
15895: if test $# -eq 0; then
1.179 petere 15896: test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15897: echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15898: { (exit 1); exit 1; }; }
1.44 petere 15899: set X `echo 'puts $auto_path' | $TCLSH`; shift
15900: fi
1.1 petere 15901:
1.48 petere 15902: for pgac_dir do
1.44 petere 15903: if test -r "$pgac_dir/tkConfig.sh"; then
15904: TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15905: break
15906: fi
15907: done
1.1 petere 15908: fi
15909:
1.44 petere 15910: if test -z "$TK_CONFIG_SH"; then
1.179 petere 15911: echo "$as_me:$LINENO: result: no" >&5
15912: echo "${ECHO_T}no" >&6
15913: { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15914: echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15915: { (exit 1); exit 1; }; }
1.1 petere 15916: else
1.179 petere 15917: echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15918: echo "${ECHO_T}$TK_CONFIG_SH" >&6
1.1 petere 15919: fi
15920:
15921:
1.44 petere 15922:
1.1 petere 15923: fi
15924:
15925:
1.81 petere 15926: #
15927: # Check for DocBook and tools
15928: #
15929: for ac_prog in onsgmls nsgmls
15930: do
1.179 petere 15931: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 15932: set dummy $ac_prog; ac_word=$2
1.179 petere 15933: echo "$as_me:$LINENO: checking for $ac_word" >&5
15934: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15935: if test "${ac_cv_prog_NSGMLS+set}" = set; then
15936: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15937: else
1.179 petere 15938: if test -n "$NSGMLS"; then
15939: ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15940: else
15941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15942: for as_dir in $PATH
15943: do
15944: IFS=$as_save_IFS
15945: test -z "$as_dir" && as_dir=.
15946: for ac_exec_ext in '' $ac_executable_extensions; do
15947: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15948: ac_cv_prog_NSGMLS="$ac_prog"
15949: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15950: break 2
15951: fi
15952: done
15953: done
15954:
1.81 petere 15955: fi
15956: fi
1.179 petere 15957: NSGMLS=$ac_cv_prog_NSGMLS
1.81 petere 15958: if test -n "$NSGMLS"; then
1.179 petere 15959: echo "$as_me:$LINENO: result: $NSGMLS" >&5
15960: echo "${ECHO_T}$NSGMLS" >&6
1.81 petere 15961: else
1.179 petere 15962: echo "$as_me:$LINENO: result: no" >&5
15963: echo "${ECHO_T}no" >&6
1.81 petere 15964: fi
15965:
1.179 petere 15966: test -n "$NSGMLS" && break
1.81 petere 15967: done
15968:
15969: # If you don't have nsgmls you won't get very far, so save the cycles.
15970: if test -n "$NSGMLS"; then
15971: for ac_prog in openjade jade
15972: do
1.179 petere 15973: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 15974: set dummy $ac_prog; ac_word=$2
1.179 petere 15975: echo "$as_me:$LINENO: checking for $ac_word" >&5
15976: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15977: if test "${ac_cv_prog_JADE+set}" = set; then
15978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15979: else
15980: if test -n "$JADE"; then
15981: ac_cv_prog_JADE="$JADE" # Let the user override the test.
15982: else
1.179 petere 15983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15984: for as_dir in $PATH
15985: do
15986: IFS=$as_save_IFS
15987: test -z "$as_dir" && as_dir=.
15988: for ac_exec_ext in '' $ac_executable_extensions; do
15989: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15990: ac_cv_prog_JADE="$ac_prog"
15991: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15992: break 2
15993: fi
15994: done
15995: done
15996:
1.81 petere 15997: fi
15998: fi
1.179 petere 15999: JADE=$ac_cv_prog_JADE
1.81 petere 16000: if test -n "$JADE"; then
1.179 petere 16001: echo "$as_me:$LINENO: result: $JADE" >&5
16002: echo "${ECHO_T}$JADE" >&6
1.81 petere 16003: else
1.179 petere 16004: echo "$as_me:$LINENO: result: no" >&5
16005: echo "${ECHO_T}no" >&6
1.81 petere 16006: fi
16007:
1.179 petere 16008: test -n "$JADE" && break
1.81 petere 16009: done
16010:
1.179 petere 16011:
16012: echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16013: echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16014: if test "${pgac_cv_check_docbook+set}" = set; then
16015: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16016: else
16017: cat >conftest.sgml <<EOF
16018: <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16019: <book>
16020: <title>test</title>
16021: <chapter>
16022: <title>random</title>
16023: <sect1>
16024: <title>testsect</title>
16025: <para>text</para>
16026: </sect1>
16027: </chapter>
16028: </book>
16029: EOF
16030:
16031: ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16032: if test $? -eq 0; then
16033: pgac_cv_check_docbook=yes
16034: else
16035: pgac_cv_check_docbook=no
16036: fi
16037: rm -f conftest.sgml
16038: fi
1.179 petere 16039: echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16040: echo "${ECHO_T}$pgac_cv_check_docbook" >&6
1.81 petere 16041:
16042: have_docbook=$pgac_cv_check_docbook
16043:
16044:
1.179 petere 16045: echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16046: echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16047: if test "${pgac_cv_path_stylesheets+set}" = set; then
16048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16049: else
16050: if test -n "$DOCBOOKSTYLE"; then
16051: pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16052: else
16053: for pgac_prefix in /usr /usr/local /opt; do
16054: for pgac_infix in share lib; do
16055: for pgac_postfix in \
16056: sgml/stylesheets/nwalsh-modular \
16057: sgml/stylesheets/docbook \
16058: sgml/docbook/dsssl/modular
16059: do
16060: pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16061: if test -r "$pgac_candidate/html/docbook.dsl" \
16062: && test -r "$pgac_candidate/print/docbook.dsl"
16063: then
16064: pgac_cv_path_stylesheets=$pgac_candidate
16065: break 3
16066: fi
16067: done
16068: done
16069: done
16070: fi
16071: fi
16072:
16073: DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16074:
16075: if test -n "$DOCBOOKSTYLE"; then
1.179 petere 16076: echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16077: echo "${ECHO_T}$DOCBOOKSTYLE" >&6
1.81 petere 16078: else
1.179 petere 16079: echo "$as_me:$LINENO: result: no" >&5
16080: echo "${ECHO_T}no" >&6
1.81 petere 16081: fi
16082: for ac_prog in sgmlspl
16083: do
1.179 petere 16084: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 16085: set dummy $ac_prog; ac_word=$2
1.179 petere 16086: echo "$as_me:$LINENO: checking for $ac_word" >&5
16087: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16088: if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16089: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 16090: else
16091: if test -n "$SGMLSPL"; then
16092: ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16093: else
1.179 petere 16094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16095: for as_dir in $PATH
16096: do
16097: IFS=$as_save_IFS
16098: test -z "$as_dir" && as_dir=.
16099: for ac_exec_ext in '' $ac_executable_extensions; do
16100: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16101: ac_cv_prog_SGMLSPL="$ac_prog"
16102: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16103: break 2
16104: fi
16105: done
16106: done
16107:
1.81 petere 16108: fi
16109: fi
1.179 petere 16110: SGMLSPL=$ac_cv_prog_SGMLSPL
1.81 petere 16111: if test -n "$SGMLSPL"; then
1.179 petere 16112: echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16113: echo "${ECHO_T}$SGMLSPL" >&6
1.81 petere 16114: else
1.179 petere 16115: echo "$as_me:$LINENO: result: no" >&5
16116: echo "${ECHO_T}no" >&6
1.81 petere 16117: fi
16118:
1.179 petere 16119: test -n "$SGMLSPL" && break
1.81 petere 16120: done
16121:
16122: fi
16123:
1.1 petere 16124:
1.111 petere 16125: # prepare build tree if outside source tree
1.147 petere 16126: # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16127: # Note 2: /bin/pwd might be better than shell's built-in at getting
16128: # a symlink-free name.
1.179 petere 16129: if test "$no_create" != yes; then
16130: if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
1.147 petere 16131: :
1.179 petere 16132: else
16133: vpath_build=yes
16134:
16135: echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16136: pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16137: $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16138: || { { echo "$as_me:$LINENO: error: failed" >&5
16139: echo "$as_me: error: failed" >&2;}
16140: { (exit 1); exit 1; }; }
16141: echo "$as_me:$LINENO: result: done" >&5
16142: echo "${ECHO_T}done" >&6
16143: fi
1.63 petere 16144: fi
16145:
1.179 petere 16146:
16147: ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16148:
16149:
16150: 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}"
16151:
16152:
16153: ac_config_headers="$ac_config_headers src/include/pg_config.h"
16154:
16155:
16156: cat >confcache <<\_ACEOF
1.44 petere 16157: # This file is a shell script that caches the results of configure
16158: # tests run on this system so they can be shared between configure
1.179 petere 16159: # scripts and configure runs, see configure's option --config-cache.
16160: # It is not useful on other systems. If it contains results you don't
16161: # want to keep, you may remove or edit it.
1.44 petere 16162: #
1.179 petere 16163: # config.status only pays attention to the cache file if you give it
16164: # the --recheck option to rerun configure.
1.44 petere 16165: #
1.179 petere 16166: # `ac_cv_env_foo' variables (set or unset) will be overriden when
16167: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16168: # following values.
16169:
16170: _ACEOF
16171:
1.44 petere 16172: # The following way of writing the cache mishandles newlines in values,
16173: # but we know of no workaround that is simple, portable, and efficient.
16174: # So, don't put newlines in cache variables' values.
16175: # Ultrix sh set writes to stderr and can't be redirected directly,
16176: # and sets the high bit in the cache file unless we assign to the vars.
1.179 petere 16177: {
16178: (set) 2>&1 |
16179: case `(ac_space=' '; set | grep ac_space) 2>&1` in
16180: *ac_space=\ *)
16181: # `set' does not quote correctly, so add quotes (double-quote
16182: # substitution turns \\\\ into \\, and sed turns \\ into \).
16183: sed -n \
16184: "s/'/'\\\\''/g;
16185: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16186: ;;
16187: *)
16188: # `set' quotes correctly as required by POSIX, so do not add quotes.
16189: sed -n \
16190: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16191: ;;
16192: esac;
16193: } |
16194: sed '
16195: t clear
16196: : clear
16197: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16198: t end
16199: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16200: : end' >>confcache
16201: if cmp -s $cache_file confcache; then :; else
1.44 petere 16202: if test -w $cache_file; then
1.179 petere 16203: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16204: cat confcache >$cache_file
1.44 petere 16205: else
16206: echo "not updating unwritable cache $cache_file"
16207: fi
1.1 petere 16208: fi
1.44 petere 16209: rm -f confcache
16210:
16211: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16212: # Let make expand exec_prefix.
16213: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1 petere 16214:
1.179 petere 16215: # VPATH may cause trouble with some makes, so we remove $(srcdir),
16216: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16217: # trailing colons and then remove the whole line if VPATH becomes empty
16218: # (actually we leave an empty line to preserve line numbers).
1.44 petere 16219: if test "x$srcdir" = x.; then
1.179 petere 16220: ac_vpsub='/^[ ]*VPATH[ ]*=/{
16221: s/:*\$(srcdir):*/:/;
16222: s/:*\${srcdir}:*/:/;
16223: s/:*@srcdir@:*/:/;
16224: s/^\([^=]*=[ ]*\):*/\1/;
16225: s/:*$//;
16226: s/^[^=]*=[ ]*$//;
16227: }'
1.1 petere 16228: fi
16229:
1.179 petere 16230: DEFS=-DHAVE_CONFIG_H
1.1 petere 16231:
16232:
1.44 petere 16233: : ${CONFIG_STATUS=./config.status}
1.179 petere 16234: ac_clean_files_save=$ac_clean_files
16235: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16236: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16237: echo "$as_me: creating $CONFIG_STATUS" >&6;}
16238: cat >$CONFIG_STATUS <<_ACEOF
16239: #! $SHELL
16240: # Generated by $as_me.
1.1 petere 16241: # Run this file to recreate the current configuration.
16242: # Compiler output produced by configure, useful for debugging
1.179 petere 16243: # configure, is in config.log if it exists.
16244:
16245: debug=false
16246: SHELL=\${CONFIG_SHELL-$SHELL}
16247: _ACEOF
16248:
16249: cat >>$CONFIG_STATUS <<\_ACEOF
16250:
16251: ## --------------------- ##
16252: ## M4sh Initialization. ##
16253: ## --------------------- ##
16254:
16255: # Be Bourne compatible
16256: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16257: emulate sh
16258: NULLCMD=:
16259: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16260: set -o posix
16261: fi
16262:
16263: # NLS nuisances.
16264: # Support unset when possible.
16265: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16266: as_unset=unset
16267: else
16268: as_unset=false
16269: fi
16270:
16271: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16272: { $as_unset LANG || test "${LANG+set}" != set; } ||
16273: { LANG=C; export LANG; }
16274: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16275: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16276: { LC_ALL=C; export LC_ALL; }
16277: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16278: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16279: { LC_TIME=C; export LC_TIME; }
16280: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16281: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16282: { LC_CTYPE=C; export LC_CTYPE; }
16283: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16284: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16285: { LANGUAGE=C; export LANGUAGE; }
16286: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16287: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16288: { LC_COLLATE=C; export LC_COLLATE; }
16289: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16290: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16291: { LC_NUMERIC=C; export LC_NUMERIC; }
16292: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16293: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16294: { LC_MESSAGES=C; export LC_MESSAGES; }
16295:
16296:
16297: # Name of the executable.
16298: as_me=`(basename "$0") 2>/dev/null ||
16299: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16300: X"$0" : 'X\(//\)$' \| \
16301: X"$0" : 'X\(/\)$' \| \
16302: . : '\(.\)' 2>/dev/null ||
16303: echo X/"$0" |
16304: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16305: /^X\/\(\/\/\)$/{ s//\1/; q; }
16306: /^X\/\(\/\).*/{ s//\1/; q; }
16307: s/.*/./; q'`
16308:
16309: # PATH needs CR, and LINENO needs CR and PATH.
16310: # Avoid depending upon Character Ranges.
16311: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16312: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16313: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16314: as_cr_digits='0123456789'
16315: as_cr_alnum=$as_cr_Letters$as_cr_digits
16316:
16317: # The user is always right.
16318: if test "${PATH_SEPARATOR+set}" != set; then
16319: echo "#! /bin/sh" >conftest.sh
16320: echo "exit 0" >>conftest.sh
16321: chmod +x conftest.sh
16322: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16323: PATH_SEPARATOR=';'
16324: else
16325: PATH_SEPARATOR=:
16326: fi
16327: rm -f conftest.sh
16328: fi
16329:
1.1 petere 16330:
1.179 petere 16331: as_lineno_1=$LINENO
16332: as_lineno_2=$LINENO
16333: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16334: test "x$as_lineno_1" != "x$as_lineno_2" &&
16335: test "x$as_lineno_3" = "x$as_lineno_2" || {
16336: # Find who we are. Look in the path if we contain no path at all
16337: # relative or not.
16338: case $0 in
16339: *[\\/]* ) as_myself=$0 ;;
16340: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341: for as_dir in $PATH
16342: do
16343: IFS=$as_save_IFS
16344: test -z "$as_dir" && as_dir=.
16345: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16346: done
16347:
16348: ;;
16349: esac
16350: # We did not find ourselves, most probably we were run as `sh COMMAND'
16351: # in which case we are not to be found in the path.
16352: if test "x$as_myself" = x; then
16353: as_myself=$0
16354: fi
16355: if test ! -f "$as_myself"; then
16356: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16357: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16358: { (exit 1); exit 1; }; }
16359: fi
16360: case $CONFIG_SHELL in
16361: '')
16362: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16363: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16364: do
16365: IFS=$as_save_IFS
16366: test -z "$as_dir" && as_dir=.
16367: for as_base in sh bash ksh sh5; do
16368: case $as_dir in
16369: /*)
16370: if ("$as_dir/$as_base" -c '
16371: as_lineno_1=$LINENO
16372: as_lineno_2=$LINENO
16373: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16374: test "x$as_lineno_1" != "x$as_lineno_2" &&
16375: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16376: CONFIG_SHELL=$as_dir/$as_base
16377: export CONFIG_SHELL
16378: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16379: fi;;
16380: esac
16381: done
16382: done
16383: ;;
16384: esac
16385:
16386: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16387: # uniformly replaced by the line number. The first 'sed' inserts a
16388: # line-number line before each line; the second 'sed' does the real
16389: # work. The second script uses 'N' to pair each line-number line
16390: # with the numbered line, and appends trailing '-' during
16391: # substitution so that $LINENO is not a special case at line end.
16392: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16393: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16394: sed '=' <$as_myself |
16395: sed '
16396: N
16397: s,$,-,
16398: : loop
16399: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16400: t loop
16401: s,-$,,
16402: s,^['$as_cr_digits']*\n,,
16403: ' >$as_me.lineno &&
16404: chmod +x $as_me.lineno ||
16405: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16406: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16407: { (exit 1); exit 1; }; }
16408:
16409: # Don't try to exec as it changes $[0], causing all sort of problems
16410: # (the dirname of $[0] is not the place where we might find the
16411: # original and so on. Autoconf is especially sensible to this).
16412: . ./$as_me.lineno
16413: # Exit status is that of the last command.
16414: exit
16415: }
16416:
16417:
16418: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16419: *c*,-n*) ECHO_N= ECHO_C='
16420: ' ECHO_T=' ' ;;
16421: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16422: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16423: esac
16424:
16425: if expr a : '\(a\)' >/dev/null 2>&1; then
16426: as_expr=expr
16427: else
16428: as_expr=false
16429: fi
16430:
16431: rm -f conf$$ conf$$.exe conf$$.file
16432: echo >conf$$.file
16433: if ln -s conf$$.file conf$$ 2>/dev/null; then
16434: # We could just check for DJGPP; but this test a) works b) is more generic
16435: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16436: if test -f conf$$.exe; then
16437: # Don't use ln at all; we don't have any links
16438: as_ln_s='cp -p'
16439: else
16440: as_ln_s='ln -s'
16441: fi
16442: elif ln conf$$.file conf$$ 2>/dev/null; then
16443: as_ln_s=ln
16444: else
16445: as_ln_s='cp -p'
16446: fi
16447: rm -f conf$$ conf$$.exe conf$$.file
16448:
16449: as_executable_p="test -f"
16450:
16451: # Sed expression to map a string onto a valid CPP name.
16452: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16453:
16454: # Sed expression to map a string onto a valid variable name.
16455: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16456:
16457:
16458: # IFS
16459: # We need space, tab and new line, in precisely that order.
16460: as_nl='
16461: '
16462: IFS=" $as_nl"
16463:
16464: # CDPATH.
16465: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16466:
16467: exec 6>&1
16468:
16469: # Open the log real soon, to keep \$[0] and so on meaningful, and to
16470: # report actual input values of CONFIG_FILES etc. instead of their
16471: # values after options handling. Logging --version etc. is OK.
16472: exec 5>>config.log
16473: {
16474: echo
16475: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16476: ## Running $as_me. ##
16477: _ASBOX
16478: } >&5
16479: cat >&5 <<_CSEOF
16480:
16481: This file was extended by PostgreSQL $as_me 7.3devel, which was
16482: generated by GNU Autoconf 2.53. Invocation command line was
16483:
16484: CONFIG_FILES = $CONFIG_FILES
16485: CONFIG_HEADERS = $CONFIG_HEADERS
16486: CONFIG_LINKS = $CONFIG_LINKS
16487: CONFIG_COMMANDS = $CONFIG_COMMANDS
16488: $ $0 $@
16489:
16490: _CSEOF
16491: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16492: echo >&5
16493: _ACEOF
16494:
16495: # Files that config.status was made for.
16496: if test -n "$ac_config_files"; then
16497: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16498: fi
16499:
16500: if test -n "$ac_config_headers"; then
16501: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16502: fi
16503:
16504: if test -n "$ac_config_links"; then
16505: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16506: fi
16507:
16508: if test -n "$ac_config_commands"; then
16509: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16510: fi
16511:
16512: cat >>$CONFIG_STATUS <<\_ACEOF
16513:
16514: ac_cs_usage="\
16515: \`$as_me' instantiates files from templates according to the
16516: current configuration.
16517:
16518: Usage: $0 [OPTIONS] [FILE]...
16519:
16520: -h, --help print this help, then exit
16521: -V, --version print version number, then exit
16522: -d, --debug don't remove temporary files
16523: --recheck update $as_me by reconfiguring in the same conditions
16524: --file=FILE[:TEMPLATE]
16525: instantiate the configuration file FILE
16526: --header=FILE[:TEMPLATE]
16527: instantiate the configuration header FILE
16528:
16529: Configuration files:
16530: $config_files
16531:
16532: Configuration headers:
16533: $config_headers
16534:
16535: Configuration links:
16536: $config_links
16537:
16538: Report bugs to <[email protected]>."
16539: _ACEOF
16540:
16541: cat >>$CONFIG_STATUS <<_ACEOF
16542: ac_cs_version="\\
16543: PostgreSQL config.status 7.3devel
16544: configured by $0, generated by GNU Autoconf 2.53,
16545: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16546:
16547: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16548: Free Software Foundation, Inc.
16549: This config.status script is free software; the Free Software Foundation
16550: gives unlimited permission to copy, distribute and modify it."
16551: srcdir=$srcdir
16552: _ACEOF
16553:
16554: cat >>$CONFIG_STATUS <<\_ACEOF
16555: # If no file are specified by the user, then we need to provide default
16556: # value. By we need to know if files were specified by the user.
16557: ac_need_defaults=:
16558: while test $# != 0
1.1 petere 16559: do
1.179 petere 16560: case $1 in
16561: --*=*)
16562: ac_option=`expr "x$1" : 'x\([^=]*\)='`
16563: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16564: shift
16565: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16566: shift
16567: ;;
16568: -*);;
16569: *) # This is not an option, so the user has probably given explicit
16570: # arguments.
16571: ac_need_defaults=false;;
16572: esac
16573:
16574: case $1 in
16575: # Handling of the options.
16576: _ACEOF
16577: cat >>$CONFIG_STATUS <<_ACEOF
1.1 petere 16578: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.179 petere 16579: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16580: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16581: _ACEOF
16582: cat >>$CONFIG_STATUS <<\_ACEOF
16583: --version | --vers* | -V )
16584: echo "$ac_cs_version"; exit 0 ;;
16585: --he | --h)
16586: # Conflict between --help and --header
16587: { { echo "$as_me:$LINENO: error: ambiguous option: $1
16588: Try \`$0 --help' for more information." >&5
16589: echo "$as_me: error: ambiguous option: $1
16590: Try \`$0 --help' for more information." >&2;}
16591: { (exit 1); exit 1; }; };;
16592: --help | --hel | -h )
16593: echo "$ac_cs_usage"; exit 0 ;;
16594: --debug | --d* | -d )
16595: debug=: ;;
16596: --file | --fil | --fi | --f )
16597: shift
16598: CONFIG_FILES="$CONFIG_FILES $1"
16599: ac_need_defaults=false;;
16600: --header | --heade | --head | --hea )
16601: shift
16602: CONFIG_HEADERS="$CONFIG_HEADERS $1"
16603: ac_need_defaults=false;;
16604:
16605: # This is an error.
16606: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16607: Try \`$0 --help' for more information." >&5
16608: echo "$as_me: error: unrecognized option: $1
16609: Try \`$0 --help' for more information." >&2;}
16610: { (exit 1); exit 1; }; } ;;
16611:
16612: *) ac_config_targets="$ac_config_targets $1" ;;
16613:
16614: esac
16615: shift
16616: done
16617:
16618: _ACEOF
16619:
16620:
16621:
16622:
16623:
16624: cat >>$CONFIG_STATUS <<\_ACEOF
16625: for ac_config_target in $ac_config_targets
16626: do
16627: case "$ac_config_target" in
16628: # Handling of arguments.
16629: "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16630: "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16631: "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16632: "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16633: "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16634: "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16635: "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16636: "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16637: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16638: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16639: { (exit 1); exit 1; }; };;
1.1 petere 16640: esac
16641: done
16642:
1.179 petere 16643: # If the user did not use the arguments to specify the items to instantiate,
16644: # then the envvar interface is used. Set only those that are not.
16645: # We use the long form for the default assignment because of an extremely
16646: # bizarre bug on SunOS 4.1.3.
16647: if $ac_need_defaults; then
16648: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16649: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16650: test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16651: fi
16652:
16653: # Create a temporary directory, and hook for its removal unless debugging.
16654: $debug ||
16655: {
16656: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16657: trap '{ (exit 1); exit 1; }' 1 2 13 15
16658: }
16659:
16660: # Create a (secure) tmp directory for tmp files.
16661: : ${TMPDIR=/tmp}
16662: {
16663: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16664: test -n "$tmp" && test -d "$tmp"
16665: } ||
16666: {
16667: tmp=$TMPDIR/cs$$-$RANDOM
16668: (umask 077 && mkdir $tmp)
16669: } ||
16670: {
16671: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16672: { (exit 1); exit 1; }
16673: }
16674:
16675: _ACEOF
16676:
16677: cat >>$CONFIG_STATUS <<_ACEOF
1.1 petere 16678:
1.179 petere 16679: #
16680: # CONFIG_FILES section.
16681: #
1.1 petere 16682:
1.179 petere 16683: # No need to generate the scripts if there are no CONFIG_FILES.
16684: # This happens for instance when ./config.status config.h
16685: if test -n "\$CONFIG_FILES"; then
16686: # Protect against being on the right side of a sed subst in config.status.
16687: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16688: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16689: s,@SHELL@,$SHELL,;t t
16690: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16691: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16692: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16693: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16694: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16695: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16696: s,@exec_prefix@,$exec_prefix,;t t
16697: s,@prefix@,$prefix,;t t
16698: s,@program_transform_name@,$program_transform_name,;t t
16699: s,@bindir@,$bindir,;t t
16700: s,@sbindir@,$sbindir,;t t
16701: s,@libexecdir@,$libexecdir,;t t
16702: s,@datadir@,$datadir,;t t
16703: s,@sysconfdir@,$sysconfdir,;t t
16704: s,@sharedstatedir@,$sharedstatedir,;t t
16705: s,@localstatedir@,$localstatedir,;t t
16706: s,@libdir@,$libdir,;t t
16707: s,@includedir@,$includedir,;t t
16708: s,@oldincludedir@,$oldincludedir,;t t
16709: s,@infodir@,$infodir,;t t
16710: s,@mandir@,$mandir,;t t
16711: s,@build_alias@,$build_alias,;t t
16712: s,@host_alias@,$host_alias,;t t
16713: s,@target_alias@,$target_alias,;t t
16714: s,@DEFS@,$DEFS,;t t
16715: s,@ECHO_C@,$ECHO_C,;t t
16716: s,@ECHO_N@,$ECHO_N,;t t
16717: s,@ECHO_T@,$ECHO_T,;t t
16718: s,@LIBS@,$LIBS,;t t
16719: s,@docdir@,$docdir,;t t
16720: s,@configure_args@,$configure_args,;t t
16721: s,@build@,$build,;t t
16722: s,@build_cpu@,$build_cpu,;t t
16723: s,@build_vendor@,$build_vendor,;t t
16724: s,@build_os@,$build_os,;t t
16725: s,@host@,$host,;t t
16726: s,@host_cpu@,$host_cpu,;t t
16727: s,@host_vendor@,$host_vendor,;t t
16728: s,@host_os@,$host_os,;t t
16729: s,@PORTNAME@,$PORTNAME,;t t
16730: s,@TAS@,$TAS,;t t
16731: s,@MULTIBYTE@,$MULTIBYTE,;t t
16732: s,@enable_nls@,$enable_nls,;t t
16733: s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16734: s,@default_port@,$default_port,;t t
16735: s,@enable_shared@,$enable_shared,;t t
16736: s,@enable_rpath@,$enable_rpath,;t t
16737: s,@enable_debug@,$enable_debug,;t t
16738: s,@CC@,$CC,;t t
16739: s,@CFLAGS@,$CFLAGS,;t t
16740: s,@LDFLAGS@,$LDFLAGS,;t t
16741: s,@CPPFLAGS@,$CPPFLAGS,;t t
16742: s,@ac_ct_CC@,$ac_ct_CC,;t t
16743: s,@EXEEXT@,$EXEEXT,;t t
16744: s,@OBJEXT@,$OBJEXT,;t t
16745: s,@CPP@,$CPP,;t t
16746: s,@GCC@,$GCC,;t t
16747: s,@autodepend@,$autodepend,;t t
16748: s,@INCLUDES@,$INCLUDES,;t t
16749: s,@with_tcl@,$with_tcl,;t t
16750: s,@with_tk@,$with_tk,;t t
16751: s,@with_perl@,$with_perl,;t t
16752: s,@with_python@,$with_python,;t t
16753: s,@ANT@,$ANT,;t t
16754: s,@with_java@,$with_java,;t t
16755: s,@with_krb4@,$with_krb4,;t t
16756: s,@with_krb5@,$with_krb5,;t t
16757: s,@krb_srvtab@,$krb_srvtab,;t t
16758: s,@with_pam@,$with_pam,;t t
16759: s,@with_openssl@,$with_openssl,;t t
16760: s,@enable_odbc@,$enable_odbc,;t t
16761: s,@with_unixodbc@,$with_unixodbc,;t t
16762: s,@with_iodbc@,$with_iodbc,;t t
16763: s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
16764: s,@ELF_SYS@,$ELF_SYS,;t t
16765: s,@CXX@,$CXX,;t t
16766: s,@CXXFLAGS@,$CXXFLAGS,;t t
16767: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16768: s,@CXXCPP@,$CXXCPP,;t t
16769: s,@with_CXX@,$with_CXX,;t t
16770: s,@GXX@,$GXX,;t t
16771: s,@AWK@,$AWK,;t t
16772: s,@FLEX@,$FLEX,;t t
16773: s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16774: s,@LN_S@,$LN_S,;t t
16775: s,@LD@,$LD,;t t
16776: s,@with_gnu_ld@,$with_gnu_ld,;t t
16777: s,@ld_R_works@,$ld_R_works,;t t
16778: s,@RANLIB@,$RANLIB,;t t
16779: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16780: s,@LORDER@,$LORDER,;t t
16781: s,@TAR@,$TAR,;t t
16782: s,@YACC@,$YACC,;t t
16783: s,@YFLAGS@,$YFLAGS,;t t
16784: s,@WISH@,$WISH,;t t
16785: s,@PERL@,$PERL,;t t
16786: s,@perl_installsitearch@,$perl_installsitearch,;t t
16787: s,@perl_installsitelib@,$perl_installsitelib,;t t
16788: s,@perl_installman3dir@,$perl_installman3dir,;t t
16789: s,@PYTHON@,$PYTHON,;t t
16790: s,@python_version@,$python_version,;t t
16791: s,@python_prefix@,$python_prefix,;t t
16792: s,@python_execprefix@,$python_execprefix,;t t
16793: s,@python_configdir@,$python_configdir,;t t
16794: s,@python_moduledir@,$python_moduledir,;t t
16795: s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16796: s,@python_includespec@,$python_includespec,;t t
16797: s,@python_libspec@,$python_libspec,;t t
16798: s,@MEMCMP@,$MEMCMP,;t t
16799: s,@SNPRINTF@,$SNPRINTF,;t t
16800: s,@ISINF@,$ISINF,;t t
16801: s,@GETRUSAGE@,$GETRUSAGE,;t t
16802: s,@SRANDOM@,$SRANDOM,;t t
16803: s,@GETHOSTNAME@,$GETHOSTNAME,;t t
16804: s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
16805: s,@INET_ATON@,$INET_ATON,;t t
16806: s,@STRERROR@,$STRERROR,;t t
16807: s,@STRDUP@,$STRDUP,;t t
16808: s,@STRTOL@,$STRTOL,;t t
16809: s,@STRTOUL@,$STRTOUL,;t t
16810: s,@STRCASECMP@,$STRCASECMP,;t t
16811: s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16812: s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
1.181 petere 16813: s,@MSGFMT@,$MSGFMT,;t t
16814: s,@MSGMERGE@,$MSGMERGE,;t t
16815: s,@XGETTEXT@,$XGETTEXT,;t t
16816: s,@localedir@,$localedir,;t t
1.179 petere 16817: s,@TCLSH@,$TCLSH,;t t
16818: s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16819: s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16820: s,@NSGMLS@,$NSGMLS,;t t
16821: s,@JADE@,$JADE,;t t
16822: s,@have_docbook@,$have_docbook,;t t
16823: s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16824: s,@SGMLSPL@,$SGMLSPL,;t t
16825: s,@vpath_build@,$vpath_build,;t t
1.1 petere 16826: CEOF
16827:
1.179 petere 16828: _ACEOF
1.1 petere 16829:
1.179 petere 16830: cat >>$CONFIG_STATUS <<\_ACEOF
16831: # Split the substitutions into bite-sized pieces for seds with
16832: # small command number limits, like on Digital OSF/1 and HP-UX.
16833: ac_max_sed_lines=48
16834: ac_sed_frag=1 # Number of current file.
16835: ac_beg=1 # First line for current file.
16836: ac_end=$ac_max_sed_lines # Line after last line for current file.
16837: ac_more_lines=:
16838: ac_sed_cmds=
16839: while $ac_more_lines; do
16840: if test $ac_beg -gt 1; then
16841: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16842: else
16843: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16844: fi
16845: if test ! -s $tmp/subs.frag; then
16846: ac_more_lines=false
1.1 petere 16847: else
1.179 petere 16848: # The purpose of the label and of the branching condition is to
16849: # speed up the sed processing (if there are no `@' at all, there
16850: # is no need to browse any of the substitutions).
16851: # These are the two extra sed commands mentioned above.
16852: (echo ':t
16853: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16854: if test -z "$ac_sed_cmds"; then
16855: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16856: else
16857: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16858: fi
16859: ac_sed_frag=`expr $ac_sed_frag + 1`
16860: ac_beg=$ac_end
16861: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 petere 16862: fi
1.179 petere 16863: done
16864: if test -z "$ac_sed_cmds"; then
16865: ac_sed_cmds=cat
1.1 petere 16866: fi
1.179 petere 16867: fi # test -n "$CONFIG_FILES"
16868:
16869: _ACEOF
16870: cat >>$CONFIG_STATUS <<\_ACEOF
16871: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16872: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16873: case $ac_file in
16874: - | *:- | *:-:* ) # input from stdin
16875: cat >$tmp/stdin
16876: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16877: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16878: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16879: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16880: * ) ac_file_in=$ac_file.in ;;
16881: esac
16882:
16883: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16884: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16885: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16886: X"$ac_file" : 'X\(//\)[^/]' \| \
16887: X"$ac_file" : 'X\(//\)$' \| \
16888: X"$ac_file" : 'X\(/\)' \| \
16889: . : '\(.\)' 2>/dev/null ||
16890: echo X"$ac_file" |
16891: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16892: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16893: /^X\(\/\/\)$/{ s//\1/; q; }
16894: /^X\(\/\).*/{ s//\1/; q; }
16895: s/.*/./; q'`
16896: { case "$ac_dir" in
16897: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16898: *) as_incr_dir=.;;
16899: esac
16900: as_dummy="$ac_dir"
16901: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16902: case $as_mkdir_dir in
16903: # Skip DOS drivespec
16904: ?:) as_incr_dir=$as_mkdir_dir ;;
16905: *)
16906: as_incr_dir=$as_incr_dir/$as_mkdir_dir
16907: test -d "$as_incr_dir" ||
16908: mkdir "$as_incr_dir" ||
16909: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16910: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16911: { (exit 1); exit 1; }; }
16912: ;;
16913: esac
16914: done; }
16915:
16916: ac_builddir=.
16917:
16918: if test "$ac_dir" != .; then
16919: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16920: # A "../" for each directory in $ac_dir_suffix.
16921: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16922: else
16923: ac_dir_suffix= ac_top_builddir=
1.1 petere 16924: fi
16925:
1.179 petere 16926: case $srcdir in
16927: .) # No --srcdir option. We are building in place.
16928: ac_srcdir=.
16929: if test -z "$ac_top_builddir"; then
16930: ac_top_srcdir=.
16931: else
16932: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16933: fi ;;
16934: [\\/]* | ?:[\\/]* ) # Absolute path.
16935: ac_srcdir=$srcdir$ac_dir_suffix;
16936: ac_top_srcdir=$srcdir ;;
16937: *) # Relative path.
16938: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16939: ac_top_srcdir=$ac_top_builddir$srcdir ;;
16940: esac
16941: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16942: # absolute.
16943: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16944: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16945: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16946: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16947:
16948:
16949:
16950: if test x"$ac_file" != x-; then
16951: { echo "$as_me:$LINENO: creating $ac_file" >&5
16952: echo "$as_me: creating $ac_file" >&6;}
16953: rm -f "$ac_file"
16954: fi
16955: # Let's still pretend it is `configure' which instantiates (i.e., don't
16956: # use $as_me), people would be surprised to read:
16957: # /* config.h. Generated by config.status. */
16958: if test x"$ac_file" = x-; then
16959: configure_input=
16960: else
16961: configure_input="$ac_file. "
16962: fi
16963: configure_input=$configure_input"Generated from `echo $ac_file_in |
16964: sed 's,.*/,,'` by configure."
1.1 petere 16965:
1.179 petere 16966: # First look for the input files in the build tree, otherwise in the
16967: # src tree.
16968: ac_file_inputs=`IFS=:
16969: for f in $ac_file_in; do
16970: case $f in
16971: -) echo $tmp/stdin ;;
16972: [\\/$]*)
16973: # Absolute (can't be DOS-style, as IFS=:)
16974: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16975: echo "$as_me: error: cannot find input file: $f" >&2;}
16976: { (exit 1); exit 1; }; }
16977: echo $f;;
16978: *) # Relative
16979: if test -f "$f"; then
16980: # Build tree
16981: echo $f
16982: elif test -f "$srcdir/$f"; then
16983: # Source tree
16984: echo $srcdir/$f
16985: else
16986: # /dev/null tree
16987: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16988: echo "$as_me: error: cannot find input file: $f" >&2;}
16989: { (exit 1); exit 1; }; }
16990: fi;;
16991: esac
16992: done` || { (exit 1); exit 1; }
16993: _ACEOF
16994: cat >>$CONFIG_STATUS <<_ACEOF
16995: sed "$ac_vpsub
16996: $extrasub
16997: _ACEOF
16998: cat >>$CONFIG_STATUS <<\_ACEOF
16999: :t
17000: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17001: s,@configure_input@,$configure_input,;t t
17002: s,@srcdir@,$ac_srcdir,;t t
17003: s,@abs_srcdir@,$ac_abs_srcdir,;t t
17004: s,@top_srcdir@,$ac_top_srcdir,;t t
17005: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17006: s,@builddir@,$ac_builddir,;t t
17007: s,@abs_builddir@,$ac_abs_builddir,;t t
17008: s,@top_builddir@,$ac_top_builddir,;t t
17009: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17010: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17011: rm -f $tmp/stdin
17012: if test x"$ac_file" != x-; then
17013: mv $tmp/out $ac_file
17014: else
17015: cat $tmp/out
17016: rm -f $tmp/out
17017: fi
1.1 petere 17018:
1.179 petere 17019: done
17020: _ACEOF
17021: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17022:
1.179 petere 17023: #
17024: # CONFIG_HEADER section.
17025: #
1.1 petere 17026:
17027: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17028: # NAME is the cpp macro being defined and VALUE is the value it is being given.
17029: #
17030: # ac_d sets the value in "#define NAME VALUE" lines.
1.179 petere 17031: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17032: ac_dB='[ ].*$,\1#\2'
17033: ac_dC=' '
17034: ac_dD=',;t'
17035: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17036: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17037: ac_uB='$,\1#\2define\3'
1.1 petere 17038: ac_uC=' '
1.179 petere 17039: ac_uD=',;t'
1.1 petere 17040:
1.179 petere 17041: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 petere 17042: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.179 petere 17043: case $ac_file in
17044: - | *:- | *:-:* ) # input from stdin
17045: cat >$tmp/stdin
17046: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17047: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17048: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17049: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17050: * ) ac_file_in=$ac_file.in ;;
1.1 petere 17051: esac
17052:
1.179 petere 17053: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17054: echo "$as_me: creating $ac_file" >&6;}
1.1 petere 17055:
1.179 petere 17056: # First look for the input files in the build tree, otherwise in the
17057: # src tree.
17058: ac_file_inputs=`IFS=:
17059: for f in $ac_file_in; do
17060: case $f in
17061: -) echo $tmp/stdin ;;
17062: [\\/$]*)
17063: # Absolute (can't be DOS-style, as IFS=:)
17064: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17065: echo "$as_me: error: cannot find input file: $f" >&2;}
17066: { (exit 1); exit 1; }; }
17067: echo $f;;
17068: *) # Relative
17069: if test -f "$f"; then
17070: # Build tree
17071: echo $f
17072: elif test -f "$srcdir/$f"; then
17073: # Source tree
17074: echo $srcdir/$f
17075: else
17076: # /dev/null tree
17077: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17078: echo "$as_me: error: cannot find input file: $f" >&2;}
17079: { (exit 1); exit 1; }; }
17080: fi;;
17081: esac
17082: done` || { (exit 1); exit 1; }
17083: # Remove the trailing spaces.
17084: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17085:
17086: _ACEOF
17087:
17088: # Transform confdefs.h into two sed scripts, `conftest.defines' and
17089: # `conftest.undefs', that substitutes the proper values into
17090: # config.h.in to produce config.h. The first handles `#define'
17091: # templates, and the second `#undef' templates.
17092: # And first: Protect against being on the right side of a sed subst in
17093: # config.status. Protect against being in an unquoted here document
17094: # in config.status.
17095: rm -f conftest.defines conftest.undefs
17096: # Using a here document instead of a string reduces the quoting nightmare.
17097: # Putting comments in sed scripts is not portable.
17098: #
17099: # `end' is used to avoid that the second main sed command (meant for
17100: # 0-ary CPP macros) applies to n-ary macro definitions.
17101: # See the Autoconf documentation for `clear'.
17102: cat >confdef2sed.sed <<\_ACEOF
17103: s/[\\&,]/\\&/g
17104: s,[\\$`],\\&,g
17105: t clear
17106: : clear
17107: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17108: t end
17109: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17110: : end
17111: _ACEOF
17112: # If some macros were called several times there might be several times
17113: # the same #defines, which is useless. Nevertheless, we may not want to
17114: # sort them, since we want the *last* AC-DEFINE to be honored.
17115: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17116: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17117: rm -f confdef2sed.sed
1.1 petere 17118:
17119: # This sed command replaces #undef with comments. This is necessary, for
17120: # example, in the case of _POSIX_SOURCE, which is predefined and required
17121: # on some systems where configure will not decide to define it.
1.179 petere 17122: cat >>conftest.undefs <<\_ACEOF
17123: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17124: _ACEOF
17125:
17126: # Break up conftest.defines because some shells have a limit on the size
17127: # of here documents, and old seds have small limits too (100 cmds).
17128: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17129: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17130: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17131: echo ' :' >>$CONFIG_STATUS
17132: rm -f conftest.tail
17133: while grep . conftest.defines >/dev/null
17134: do
17135: # Write a limited-size here document to $tmp/defines.sed.
17136: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17137: # Speed up: don't consider the non `#define' lines.
17138: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17139: # Work around the forget-to-reset-the-flag bug.
17140: echo 't clr' >>$CONFIG_STATUS
17141: echo ': clr' >>$CONFIG_STATUS
17142: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17143: echo 'CEOF
17144: sed -f $tmp/defines.sed $tmp/in >$tmp/out
17145: rm -f $tmp/in
17146: mv $tmp/out $tmp/in
17147: ' >>$CONFIG_STATUS
17148: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17149: rm -f conftest.defines
17150: mv conftest.tail conftest.defines
17151: done
17152: rm -f conftest.defines
17153: echo ' fi # egrep' >>$CONFIG_STATUS
17154: echo >>$CONFIG_STATUS
17155:
17156: # Break up conftest.undefs because some shells have a limit on the size
17157: # of here documents, and old seds have small limits too (100 cmds).
17158: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 petere 17159: rm -f conftest.tail
1.179 petere 17160: while grep . conftest.undefs >/dev/null
1.1 petere 17161: do
1.179 petere 17162: # Write a limited-size here document to $tmp/undefs.sed.
17163: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17164: # Speed up: don't consider the non `#undef'
17165: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17166: # Work around the forget-to-reset-the-flag bug.
17167: echo 't clr' >>$CONFIG_STATUS
17168: echo ': clr' >>$CONFIG_STATUS
17169: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 petere 17170: echo 'CEOF
1.179 petere 17171: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17172: rm -f $tmp/in
17173: mv $tmp/out $tmp/in
17174: ' >>$CONFIG_STATUS
17175: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17176: rm -f conftest.undefs
17177: mv conftest.tail conftest.undefs
17178: done
17179: rm -f conftest.undefs
17180:
17181: cat >>$CONFIG_STATUS <<\_ACEOF
17182: # Let's still pretend it is `configure' which instantiates (i.e., don't
17183: # use $as_me), people would be surprised to read:
17184: # /* config.h. Generated by config.status. */
17185: if test x"$ac_file" = x-; then
17186: echo "/* Generated by configure. */" >$tmp/config.h
17187: else
17188: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17189: fi
17190: cat $tmp/in >>$tmp/config.h
17191: rm -f $tmp/in
17192: if test x"$ac_file" != x-; then
17193: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17194: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17195: echo "$as_me: $ac_file is unchanged" >&6;}
17196: else
17197: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17198: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17199: X"$ac_file" : 'X\(//\)[^/]' \| \
17200: X"$ac_file" : 'X\(//\)$' \| \
17201: X"$ac_file" : 'X\(/\)' \| \
17202: . : '\(.\)' 2>/dev/null ||
17203: echo X"$ac_file" |
17204: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17205: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17206: /^X\(\/\/\)$/{ s//\1/; q; }
17207: /^X\(\/\).*/{ s//\1/; q; }
17208: s/.*/./; q'`
17209: { case "$ac_dir" in
17210: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17211: *) as_incr_dir=.;;
17212: esac
17213: as_dummy="$ac_dir"
17214: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17215: case $as_mkdir_dir in
17216: # Skip DOS drivespec
17217: ?:) as_incr_dir=$as_mkdir_dir ;;
17218: *)
17219: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17220: test -d "$as_incr_dir" ||
17221: mkdir "$as_incr_dir" ||
17222: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17223: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17224: { (exit 1); exit 1; }; }
17225: ;;
17226: esac
17227: done; }
17228:
17229: rm -f $ac_file
17230: mv $tmp/config.h $ac_file
1.1 petere 17231: fi
1.179 petere 17232: else
17233: cat $tmp/config.h
17234: rm -f $tmp/config.h
1.1 petere 17235: fi
1.179 petere 17236: # Run the commands associated with the file.
17237: case $ac_file in
17238: src/include/pg_config.h )
17239: # Update timestamp for pg_config.h (see Makefile.global)
17240: echo >src/include/stamp-h
17241: ;;
17242: esac
17243: done
17244: _ACEOF
17245: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17246:
1.179 petere 17247: #
17248: # CONFIG_LINKS section.
17249: #
1.1 petere 17250:
1.179 petere 17251: for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17252: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17253: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.1 petere 17254:
1.179 petere 17255: { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17256: echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1.1 petere 17257:
17258: if test ! -r $srcdir/$ac_source; then
1.179 petere 17259: { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17260: echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17261: { (exit 1); exit 1; }; }
1.1 petere 17262: fi
17263: rm -f $ac_dest
17264:
17265: # Make relative symlinks.
1.179 petere 17266: ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17267: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17268: X"$ac_dest" : 'X\(//\)[^/]' \| \
17269: X"$ac_dest" : 'X\(//\)$' \| \
17270: X"$ac_dest" : 'X\(/\)' \| \
17271: . : '\(.\)' 2>/dev/null ||
17272: echo X"$ac_dest" |
17273: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17274: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17275: /^X\(\/\/\)$/{ s//\1/; q; }
17276: /^X\(\/\).*/{ s//\1/; q; }
17277: s/.*/./; q'`
17278: { case "$ac_dest_dir" in
17279: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17280: *) as_incr_dir=.;;
17281: esac
17282: as_dummy="$ac_dest_dir"
17283: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17284: case $as_mkdir_dir in
17285: # Skip DOS drivespec
17286: ?:) as_incr_dir=$as_mkdir_dir ;;
17287: *)
17288: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17289: test -d "$as_incr_dir" ||
17290: mkdir "$as_incr_dir" ||
17291: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17292: echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17293: { (exit 1); exit 1; }; }
17294: ;;
17295: esac
17296: done; }
17297:
17298: ac_builddir=.
17299:
17300: if test "$ac_dest_dir" != .; then
17301: ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17302: # A "../" for each directory in $ac_dir_suffix.
17303: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17304: else
17305: ac_dir_suffix= ac_top_builddir=
17306: fi
17307:
17308: case $srcdir in
17309: .) # No --srcdir option. We are building in place.
17310: ac_srcdir=.
17311: if test -z "$ac_top_builddir"; then
17312: ac_top_srcdir=.
17313: else
17314: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17315: fi ;;
17316: [\\/]* | ?:[\\/]* ) # Absolute path.
17317: ac_srcdir=$srcdir$ac_dir_suffix;
17318: ac_top_srcdir=$srcdir ;;
17319: *) # Relative path.
17320: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17321: ac_top_srcdir=$ac_top_builddir$srcdir ;;
17322: esac
17323: # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17324: # absolute.
17325: ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17326: ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17327: ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17328: ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17329:
1.1 petere 17330:
1.179 petere 17331: case $srcdir in
17332: [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17333: *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1.1 petere 17334: esac
17335:
17336: # Make a symlink if possible; otherwise try a hard link.
1.179 petere 17337: ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17338: ln $srcdir/$ac_source $ac_dest ||
17339: { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17340: echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17341: { (exit 1); exit 1; }; }
1.1 petere 17342: done
1.179 petere 17343: _ACEOF
17344:
17345: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17346:
1.179 petere 17347: { (exit 0); exit 0; }
17348: _ACEOF
17349: chmod +x $CONFIG_STATUS
17350: ac_clean_files=$ac_clean_files_save
1.91 tgl 17351:
1.1 petere 17352:
1.179 petere 17353: # configure is writing to config.log, and then calls config.status.
17354: # config.status does its own redirection, appending to config.log.
17355: # Unfortunately, on DOS this fails, as config.log is still kept open
17356: # by configure, so config.status won't be able to write to it; its
17357: # output is simply discarded. So we exec the FD to /dev/null,
17358: # effectively closing config.log, so it can be properly (re)opened and
17359: # appended to by config.status. When coming back to configure, we
17360: # need to make the FD available again.
17361: if test "$no_create" != yes; then
17362: ac_cs_success=:
17363: exec 5>/dev/null
17364: $SHELL $CONFIG_STATUS || ac_cs_success=false
17365: exec 5>>config.log
17366: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17367: # would make configure fail if this is the last instruction.
17368: $ac_cs_success || { (exit 1); exit 1; }
17369: fi
1.1 petere 17370:
PostgreSQL CVSweb <[email protected]>