]>
Commit | Line | Data |
---|---|---|
700318f3 | 1 | @%:@! /bin/sh |
2 | @%:@ Guess values for system-dependent variables and create Makefiles. | |
3 | @%:@ Generated by GNU Autoconf 2.53. | |
4 | @%:@ | |
5 | @%:@ Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
6 | @%:@ Free Software Foundation, Inc. | |
7 | @%:@ This configure script is free software; the Free Software Foundation | |
8 | @%:@ gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11 | as_expr=expr | |
12 | else | |
13 | as_expr=false | |
14 | fi | |
15 | ||
16 | ||
17 | ## --------------------- ## | |
18 | ## M4sh Initialization. ## | |
19 | ## --------------------- ## | |
20 | ||
21 | # Be Bourne compatible | |
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23 | emulate sh | |
24 | NULLCMD=: | |
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
26 | set -o posix | |
27 | fi | |
28 | ||
29 | # NLS nuisances. | |
30 | # Support unset when possible. | |
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
32 | as_unset=unset | |
33 | else | |
34 | as_unset=false | |
35 | fi | |
36 | ||
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
38 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
39 | { LANG=C; export LANG; } | |
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
42 | { LC_ALL=C; export LC_ALL; } | |
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
45 | { LC_TIME=C; export LC_TIME; } | |
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
48 | { LC_CTYPE=C; export LC_CTYPE; } | |
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
51 | { LANGUAGE=C; export LANGUAGE; } | |
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
54 | { LC_COLLATE=C; export LC_COLLATE; } | |
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
57 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
60 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
61 | ||
62 | ||
63 | # Name of the executable. | |
64 | as_me=`(basename "$0") 2>/dev/null || | |
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
66 | X"$0" : 'X\(//\)$' \| \ | |
67 | X"$0" : 'X\(/\)$' \| \ | |
68 | . : '\(.\)' 2>/dev/null || | |
69 | echo X/"$0" | | |
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
72 | /^X\/\(\/\).*/{ s//\1/; q; } | |
73 | s/.*/./; q'` | |
74 | ||
75 | # PATH needs CR, and LINENO needs CR and PATH. | |
76 | # Avoid depending upon Character Ranges. | |
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
80 | as_cr_digits='0123456789' | |
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
82 | ||
83 | # The user is always right. | |
84 | if test "${PATH_SEPARATOR+set}" != set; then | |
85 | echo "#! /bin/sh" >conftest.sh | |
86 | echo "exit 0" >>conftest.sh | |
87 | chmod +x conftest.sh | |
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
89 | PATH_SEPARATOR=';' | |
90 | else | |
91 | PATH_SEPARATOR=: | |
92 | fi | |
93 | rm -f conftest.sh | |
94 | fi | |
95 | ||
96 | ||
97 | as_lineno_1=$LINENO | |
98 | as_lineno_2=$LINENO | |
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
100 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
102 | # Find who we are. Look in the path if we contain no path at all | |
103 | # relative or not. | |
104 | case $0 in | |
105 | *[\\/]* ) as_myself=$0 ;; | |
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
107 | for as_dir in $PATH | |
108 | do | |
109 | IFS=$as_save_IFS | |
110 | test -z "$as_dir" && as_dir=. | |
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
112 | done | |
113 | ||
114 | ;; | |
115 | esac | |
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
117 | # in which case we are not to be found in the path. | |
118 | if test "x$as_myself" = x; then | |
119 | as_myself=$0 | |
120 | fi | |
121 | if test ! -f "$as_myself"; then | |
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
123 | { (exit 1); exit 1; }; } | |
124 | fi | |
125 | case $CONFIG_SHELL in | |
126 | '') | |
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
129 | do | |
130 | IFS=$as_save_IFS | |
131 | test -z "$as_dir" && as_dir=. | |
132 | for as_base in sh bash ksh sh5; do | |
133 | case $as_dir in | |
134 | /*) | |
135 | if ("$as_dir/$as_base" -c ' | |
136 | as_lineno_1=$LINENO | |
137 | as_lineno_2=$LINENO | |
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
139 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
141 | CONFIG_SHELL=$as_dir/$as_base | |
142 | export CONFIG_SHELL | |
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
144 | fi;; | |
145 | esac | |
146 | done | |
147 | done | |
148 | ;; | |
149 | esac | |
150 | ||
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
152 | # uniformly replaced by the line number. The first 'sed' inserts a | |
153 | # line-number line before each line; the second 'sed' does the real | |
154 | # work. The second script uses 'N' to pair each line-number line | |
155 | # with the numbered line, and appends trailing '-' during | |
156 | # substitution so that $LINENO is not a special case at line end. | |
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
159 | sed '=' <$as_myself | | |
160 | sed ' | |
161 | N | |
162 | s,$,-, | |
163 | : loop | |
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
165 | t loop | |
166 | s,-$,, | |
167 | s,^['$as_cr_digits']*\n,, | |
168 | ' >$as_me.lineno && | |
169 | chmod +x $as_me.lineno || | |
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
171 | { (exit 1); exit 1; }; } | |
172 | ||
173 | # Don't try to exec as it changes $[0], causing all sort of problems | |
174 | # (the dirname of $[0] is not the place where we might find the | |
175 | # original and so on. Autoconf is especially sensible to this). | |
176 | . ./$as_me.lineno | |
177 | # Exit status is that of the last command. | |
178 | exit | |
179 | } | |
180 | ||
181 | ||
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
183 | *c*,-n*) ECHO_N= ECHO_C=' | |
184 | ' ECHO_T=' ' ;; | |
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
187 | esac | |
188 | ||
189 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
190 | as_expr=expr | |
191 | else | |
192 | as_expr=false | |
193 | fi | |
194 | ||
195 | rm -f conf$$ conf$$.exe conf$$.file | |
196 | echo >conf$$.file | |
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
198 | # We could just check for DJGPP; but this test a) works b) is more generic | |
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
200 | if test -f conf$$.exe; then | |
201 | # Don't use ln at all; we don't have any links | |
202 | as_ln_s='cp -p' | |
203 | else | |
204 | as_ln_s='ln -s' | |
205 | fi | |
206 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
207 | as_ln_s=ln | |
208 | else | |
209 | as_ln_s='cp -p' | |
210 | fi | |
211 | rm -f conf$$ conf$$.exe conf$$.file | |
212 | ||
213 | as_executable_p="test -f" | |
214 | ||
215 | # Sed expression to map a string onto a valid CPP name. | |
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
217 | ||
218 | # Sed expression to map a string onto a valid variable name. | |
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
220 | ||
221 | ||
222 | # IFS | |
223 | # We need space, tab and new line, in precisely that order. | |
224 | as_nl=' | |
225 | ' | |
226 | IFS=" $as_nl" | |
227 | ||
228 | # CDPATH. | |
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
230 | ||
231 | ||
232 | # Name of the host. | |
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
234 | # so uname gets run too. | |
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
236 | ||
237 | exec 6>&1 | |
238 | ||
239 | # | |
240 | # Initializations. | |
241 | # | |
242 | ac_default_prefix=/usr/local | |
243 | cross_compiling=no | |
244 | subdirs= | |
245 | MFLAGS= | |
246 | MAKEFLAGS= | |
247 | SHELL=${CONFIG_SHELL-/bin/sh} | |
248 | ||
249 | # Maximum number of lines to put in a shell here document. | |
250 | # This variable seems obsolete. It should probably be removed, and | |
251 | # only ac_max_sed_lines should be used. | |
252 | : ${ac_max_here_lines=38} | |
253 | ||
254 | # Identity of this package. | |
255 | PACKAGE_NAME= | |
256 | PACKAGE_TARNAME= | |
257 | PACKAGE_VERSION= | |
258 | PACKAGE_STRING= | |
259 | PACKAGE_BUGREPORT= | |
260 | ||
261 | ac_unique_file="ssh.c" | |
262 | # Factoring default headers for most tests. | |
263 | ac_includes_default="\ | |
264 | #include <stdio.h> | |
265 | #if HAVE_SYS_TYPES_H | |
266 | # include <sys/types.h> | |
267 | #endif | |
268 | #if HAVE_SYS_STAT_H | |
269 | # include <sys/stat.h> | |
270 | #endif | |
271 | #if STDC_HEADERS | |
272 | # include <stdlib.h> | |
273 | # include <stddef.h> | |
274 | #else | |
275 | # if HAVE_STDLIB_H | |
276 | # include <stdlib.h> | |
277 | # endif | |
278 | #endif | |
279 | #if HAVE_STRING_H | |
280 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
281 | # include <memory.h> | |
282 | # endif | |
283 | # include <string.h> | |
284 | #endif | |
285 | #if HAVE_STRINGS_H | |
286 | # include <strings.h> | |
287 | #endif | |
288 | #if HAVE_INTTYPES_H | |
289 | # include <inttypes.h> | |
290 | #else | |
291 | # if HAVE_STDINT_H | |
292 | # include <stdint.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_UNISTD_H | |
296 | # include <unistd.h> | |
297 | #endif" | |
298 | ||
299 | ||
300 | # Initialize some variables set by options. | |
301 | ac_init_help= | |
302 | ac_init_version=false | |
303 | # The variables have the same names as the options, with | |
304 | # dashes changed to underlines. | |
305 | cache_file=/dev/null | |
306 | exec_prefix=NONE | |
307 | no_create= | |
308 | no_recursion= | |
309 | prefix=NONE | |
310 | program_prefix=NONE | |
311 | program_suffix=NONE | |
312 | program_transform_name=s,x,x, | |
313 | silent= | |
314 | site= | |
315 | srcdir= | |
316 | verbose= | |
317 | x_includes=NONE | |
318 | x_libraries=NONE | |
319 | ||
320 | # Installation directory options. | |
321 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
322 | # and all the variables that are supposed to be based on exec_prefix | |
323 | # by default will actually change. | |
324 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
325 | bindir='${exec_prefix}/bin' | |
326 | sbindir='${exec_prefix}/sbin' | |
327 | libexecdir='${exec_prefix}/libexec' | |
328 | datadir='${prefix}/share' | |
329 | sysconfdir='${prefix}/etc' | |
330 | sharedstatedir='${prefix}/com' | |
331 | localstatedir='${prefix}/var' | |
332 | libdir='${exec_prefix}/lib' | |
333 | includedir='${prefix}/include' | |
334 | oldincludedir='/usr/include' | |
335 | infodir='${prefix}/info' | |
336 | mandir='${prefix}/man' | |
337 | ||
338 | ac_prev= | |
339 | for ac_option | |
340 | do | |
341 | # If the previous option needs an argument, assign it. | |
342 | if test -n "$ac_prev"; then | |
343 | eval "$ac_prev=\$ac_option" | |
344 | ac_prev= | |
345 | continue | |
346 | fi | |
347 | ||
348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
349 | ||
350 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
351 | ||
352 | case $ac_option in | |
353 | ||
354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
355 | ac_prev=bindir ;; | |
356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
357 | bindir=$ac_optarg ;; | |
358 | ||
359 | -build | --build | --buil | --bui | --bu) | |
360 | ac_prev=build_alias ;; | |
361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
362 | build_alias=$ac_optarg ;; | |
363 | ||
364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
366 | ac_prev=cache_file ;; | |
367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
369 | cache_file=$ac_optarg ;; | |
370 | ||
371 | --config-cache | -C) | |
372 | cache_file=config.cache ;; | |
373 | ||
374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
375 | ac_prev=datadir ;; | |
376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
377 | | --da=*) | |
378 | datadir=$ac_optarg ;; | |
379 | ||
380 | -disable-* | --disable-*) | |
381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
382 | # Reject names that are not valid shell variable names. | |
383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
385 | { (exit 1); exit 1; }; } | |
386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
387 | eval "enable_$ac_feature=no" ;; | |
388 | ||
389 | -enable-* | --enable-*) | |
390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
391 | # Reject names that are not valid shell variable names. | |
392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
394 | { (exit 1); exit 1; }; } | |
395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
396 | case $ac_option in | |
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
398 | *) ac_optarg=yes ;; | |
399 | esac | |
400 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
401 | ||
402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
404 | | --exec | --exe | --ex) | |
405 | ac_prev=exec_prefix ;; | |
406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
408 | | --exec=* | --exe=* | --ex=*) | |
409 | exec_prefix=$ac_optarg ;; | |
410 | ||
411 | -gas | --gas | --ga | --g) | |
412 | # Obsolete; use --with-gas. | |
413 | with_gas=yes ;; | |
414 | ||
415 | -help | --help | --hel | --he | -h) | |
416 | ac_init_help=long ;; | |
417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
418 | ac_init_help=recursive ;; | |
419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
420 | ac_init_help=short ;; | |
421 | ||
422 | -host | --host | --hos | --ho) | |
423 | ac_prev=host_alias ;; | |
424 | -host=* | --host=* | --hos=* | --ho=*) | |
425 | host_alias=$ac_optarg ;; | |
426 | ||
427 | -includedir | --includedir | --includedi | --included | --include \ | |
428 | | --includ | --inclu | --incl | --inc) | |
429 | ac_prev=includedir ;; | |
430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
431 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
432 | includedir=$ac_optarg ;; | |
433 | ||
434 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
435 | ac_prev=infodir ;; | |
436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
437 | infodir=$ac_optarg ;; | |
438 | ||
439 | -libdir | --libdir | --libdi | --libd) | |
440 | ac_prev=libdir ;; | |
441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
442 | libdir=$ac_optarg ;; | |
443 | ||
444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
445 | | --libexe | --libex | --libe) | |
446 | ac_prev=libexecdir ;; | |
447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
448 | | --libexe=* | --libex=* | --libe=*) | |
449 | libexecdir=$ac_optarg ;; | |
450 | ||
451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
452 | | --localstate | --localstat | --localsta | --localst \ | |
453 | | --locals | --local | --loca | --loc | --lo) | |
454 | ac_prev=localstatedir ;; | |
455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
458 | localstatedir=$ac_optarg ;; | |
459 | ||
460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
461 | ac_prev=mandir ;; | |
462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
463 | mandir=$ac_optarg ;; | |
464 | ||
465 | -nfp | --nfp | --nf) | |
466 | # Obsolete; use --without-fp. | |
467 | with_fp=no ;; | |
468 | ||
469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
470 | | --no-cr | --no-c | -n) | |
471 | no_create=yes ;; | |
472 | ||
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
475 | no_recursion=yes ;; | |
476 | ||
477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
479 | | --oldin | --oldi | --old | --ol | --o) | |
480 | ac_prev=oldincludedir ;; | |
481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
484 | oldincludedir=$ac_optarg ;; | |
485 | ||
486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
487 | ac_prev=prefix ;; | |
488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
489 | prefix=$ac_optarg ;; | |
490 | ||
491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
492 | | --program-pre | --program-pr | --program-p) | |
493 | ac_prev=program_prefix ;; | |
494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
496 | program_prefix=$ac_optarg ;; | |
497 | ||
498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
499 | | --program-suf | --program-su | --program-s) | |
500 | ac_prev=program_suffix ;; | |
501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503 | program_suffix=$ac_optarg ;; | |
504 | ||
505 | -program-transform-name | --program-transform-name \ | |
506 | | --program-transform-nam | --program-transform-na \ | |
507 | | --program-transform-n | --program-transform- \ | |
508 | | --program-transform | --program-transfor \ | |
509 | | --program-transfo | --program-transf \ | |
510 | | --program-trans | --program-tran \ | |
511 | | --progr-tra | --program-tr | --program-t) | |
512 | ac_prev=program_transform_name ;; | |
513 | -program-transform-name=* | --program-transform-name=* \ | |
514 | | --program-transform-nam=* | --program-transform-na=* \ | |
515 | | --program-transform-n=* | --program-transform-=* \ | |
516 | | --program-transform=* | --program-transfor=* \ | |
517 | | --program-transfo=* | --program-transf=* \ | |
518 | | --program-trans=* | --program-tran=* \ | |
519 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
520 | program_transform_name=$ac_optarg ;; | |
521 | ||
522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
523 | | -silent | --silent | --silen | --sile | --sil) | |
524 | silent=yes ;; | |
525 | ||
526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
527 | ac_prev=sbindir ;; | |
528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
529 | | --sbi=* | --sb=*) | |
530 | sbindir=$ac_optarg ;; | |
531 | ||
532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
534 | | --sharedst | --shareds | --shared | --share | --shar \ | |
535 | | --sha | --sh) | |
536 | ac_prev=sharedstatedir ;; | |
537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
540 | | --sha=* | --sh=*) | |
541 | sharedstatedir=$ac_optarg ;; | |
542 | ||
543 | -site | --site | --sit) | |
544 | ac_prev=site ;; | |
545 | -site=* | --site=* | --sit=*) | |
546 | site=$ac_optarg ;; | |
547 | ||
548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
549 | ac_prev=srcdir ;; | |
550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
551 | srcdir=$ac_optarg ;; | |
552 | ||
553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
554 | | --syscon | --sysco | --sysc | --sys | --sy) | |
555 | ac_prev=sysconfdir ;; | |
556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
558 | sysconfdir=$ac_optarg ;; | |
559 | ||
560 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
561 | ac_prev=target_alias ;; | |
562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
563 | target_alias=$ac_optarg ;; | |
564 | ||
565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
566 | verbose=yes ;; | |
567 | ||
568 | -version | --version | --versio | --versi | --vers | -V) | |
569 | ac_init_version=: ;; | |
570 | ||
571 | -with-* | --with-*) | |
572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
573 | # Reject names that are not valid shell variable names. | |
574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
576 | { (exit 1); exit 1; }; } | |
577 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
578 | case $ac_option in | |
579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
580 | *) ac_optarg=yes ;; | |
581 | esac | |
582 | eval "with_$ac_package='$ac_optarg'" ;; | |
583 | ||
584 | -without-* | --without-*) | |
585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
586 | # Reject names that are not valid shell variable names. | |
587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
589 | { (exit 1); exit 1; }; } | |
590 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
591 | eval "with_$ac_package=no" ;; | |
592 | ||
593 | --x) | |
594 | # Obsolete; use --with-x. | |
595 | with_x=yes ;; | |
596 | ||
597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
598 | | --x-incl | --x-inc | --x-in | --x-i) | |
599 | ac_prev=x_includes ;; | |
600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
602 | x_includes=$ac_optarg ;; | |
603 | ||
604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
606 | ac_prev=x_libraries ;; | |
607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
609 | x_libraries=$ac_optarg ;; | |
610 | ||
611 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
612 | Try \`$0 --help' for more information." >&2 | |
613 | { (exit 1); exit 1; }; } | |
614 | ;; | |
615 | ||
616 | *=*) | |
617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
618 | # Reject names that are not valid shell variable names. | |
619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
621 | { (exit 1); exit 1; }; } | |
622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
623 | eval "$ac_envvar='$ac_optarg'" | |
624 | export $ac_envvar ;; | |
625 | ||
626 | *) | |
627 | # FIXME: should be removed in autoconf 3.0. | |
628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
632 | ;; | |
633 | ||
634 | esac | |
635 | done | |
636 | ||
637 | if test -n "$ac_prev"; then | |
638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
639 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | fi | |
642 | ||
643 | # Be sure to have absolute paths. | |
644 | for ac_var in exec_prefix prefix | |
645 | do | |
646 | eval ac_val=$`echo $ac_var` | |
647 | case $ac_val in | |
648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
650 | { (exit 1); exit 1; }; };; | |
651 | esac | |
652 | done | |
653 | ||
654 | # Be sure to have absolute paths. | |
655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
656 | localstatedir libdir includedir oldincludedir infodir mandir | |
657 | do | |
658 | eval ac_val=$`echo $ac_var` | |
659 | case $ac_val in | |
660 | [\\/$]* | ?:[\\/]* ) ;; | |
661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
662 | { (exit 1); exit 1; }; };; | |
663 | esac | |
664 | done | |
665 | ||
666 | # There might be people who depend on the old broken behavior: `$host' | |
667 | # used to hold the argument of --host etc. | |
668 | # FIXME: To remove some day. | |
669 | build=$build_alias | |
670 | host=$host_alias | |
671 | target=$target_alias | |
672 | ||
673 | # FIXME: To remove some day. | |
674 | if test "x$host_alias" != x; then | |
675 | if test "x$build_alias" = x; then | |
676 | cross_compiling=maybe | |
677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
678 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
679 | elif test "x$build_alias" != "x$host_alias"; then | |
680 | cross_compiling=yes | |
681 | fi | |
682 | fi | |
683 | ||
684 | ac_tool_prefix= | |
685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
686 | ||
687 | test "$silent" = yes && exec 6>/dev/null | |
688 | ||
689 | ||
690 | # Find the source files, if location was not specified. | |
691 | if test -z "$srcdir"; then | |
692 | ac_srcdir_defaulted=yes | |
693 | # Try the directory containing this script, then its parent. | |
694 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
696 | X"$0" : 'X\(//\)[^/]' \| \ | |
697 | X"$0" : 'X\(//\)$' \| \ | |
698 | X"$0" : 'X\(/\)' \| \ | |
699 | . : '\(.\)' 2>/dev/null || | |
700 | echo X"$0" | | |
701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
703 | /^X\(\/\/\)$/{ s//\1/; q; } | |
704 | /^X\(\/\).*/{ s//\1/; q; } | |
705 | s/.*/./; q'` | |
706 | srcdir=$ac_confdir | |
707 | if test ! -r $srcdir/$ac_unique_file; then | |
708 | srcdir=.. | |
709 | fi | |
710 | else | |
711 | ac_srcdir_defaulted=no | |
712 | fi | |
713 | if test ! -r $srcdir/$ac_unique_file; then | |
714 | if test "$ac_srcdir_defaulted" = yes; then | |
715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
716 | { (exit 1); exit 1; }; } | |
717 | else | |
718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
719 | { (exit 1); exit 1; }; } | |
720 | fi | |
721 | fi | |
722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
723 | ac_env_build_alias_set=${build_alias+set} | |
724 | ac_env_build_alias_value=$build_alias | |
725 | ac_cv_env_build_alias_set=${build_alias+set} | |
726 | ac_cv_env_build_alias_value=$build_alias | |
727 | ac_env_host_alias_set=${host_alias+set} | |
728 | ac_env_host_alias_value=$host_alias | |
729 | ac_cv_env_host_alias_set=${host_alias+set} | |
730 | ac_cv_env_host_alias_value=$host_alias | |
731 | ac_env_target_alias_set=${target_alias+set} | |
732 | ac_env_target_alias_value=$target_alias | |
733 | ac_cv_env_target_alias_set=${target_alias+set} | |
734 | ac_cv_env_target_alias_value=$target_alias | |
735 | ac_env_CC_set=${CC+set} | |
736 | ac_env_CC_value=$CC | |
737 | ac_cv_env_CC_set=${CC+set} | |
738 | ac_cv_env_CC_value=$CC | |
739 | ac_env_CFLAGS_set=${CFLAGS+set} | |
740 | ac_env_CFLAGS_value=$CFLAGS | |
741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
742 | ac_cv_env_CFLAGS_value=$CFLAGS | |
743 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
744 | ac_env_LDFLAGS_value=$LDFLAGS | |
745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
746 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
748 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
751 | ac_env_CPP_set=${CPP+set} | |
752 | ac_env_CPP_value=$CPP | |
753 | ac_cv_env_CPP_set=${CPP+set} | |
754 | ac_cv_env_CPP_value=$CPP | |
755 | ||
756 | # | |
757 | # Report the --help message. | |
758 | # | |
759 | if test "$ac_init_help" = "long"; then | |
760 | # Omit some internal or obsolete options to make the list less imposing. | |
761 | # This message is too long to be a string in the A/UX 3.1 sh. | |
762 | cat <<_ACEOF | |
763 | \`configure' configures this package to adapt to many kinds of systems. | |
764 | ||
765 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
766 | ||
767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
768 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
769 | ||
770 | Defaults for the options are specified in brackets. | |
771 | ||
772 | Configuration: | |
773 | -h, --help display this help and exit | |
774 | --help=short display options specific to this package | |
775 | --help=recursive display the short help of all the included packages | |
776 | -V, --version display version information and exit | |
777 | -q, --quiet, --silent do not print \`checking...' messages | |
778 | --cache-file=FILE cache test results in FILE [disabled] | |
779 | -C, --config-cache alias for \`--cache-file=config.cache' | |
780 | -n, --no-create do not create output files | |
781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
782 | ||
783 | _ACEOF | |
784 | ||
785 | cat <<_ACEOF | |
786 | Installation directories: | |
787 | --prefix=PREFIX install architecture-independent files in PREFIX | |
788 | [$ac_default_prefix] | |
789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
790 | [PREFIX] | |
791 | ||
792 | By default, \`make install' will install all the files in | |
793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
795 | for instance \`--prefix=\$HOME'. | |
796 | ||
797 | For better control, use the options below. | |
798 | ||
799 | Fine tuning of the installation directories: | |
800 | --bindir=DIR user executables [EPREFIX/bin] | |
801 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
802 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
807 | --libdir=DIR object code libraries [EPREFIX/lib] | |
808 | --includedir=DIR C header files [PREFIX/include] | |
809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
810 | --infodir=DIR info documentation [PREFIX/info] | |
811 | --mandir=DIR man documentation [PREFIX/man] | |
812 | _ACEOF | |
813 | ||
814 | cat <<\_ACEOF | |
815 | ||
816 | System types: | |
817 | --build=BUILD configure for building on BUILD [guessed] | |
818 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
819 | _ACEOF | |
820 | fi | |
821 | ||
822 | if test -n "$ac_init_help"; then | |
823 | ||
824 | cat <<\_ACEOF | |
825 | ||
826 | Optional Features: | |
827 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
828 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
829 | --disable-largefile omit support for large files | |
700318f3 | 830 | --disable-lastlog disable use of lastlog even if detected no |
831 | --disable-utmp disable use of utmp even if detected no | |
832 | --disable-utmpx disable use of utmpx even if detected no | |
833 | --disable-wtmp disable use of wtmp even if detected no | |
834 | --disable-wtmpx disable use of wtmpx even if detected no | |
835 | --disable-libutil disable use of libutil (login() etc.) no | |
836 | --disable-pututline disable use of pututline() etc. (uwtmp) no | |
837 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | |
838 | ||
839 | Optional Packages: | |
840 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
841 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
842 | --with-osfsia Enable Digital Unix SIA | |
843 | --with-cflags Specify additional flags to pass to compiler | |
844 | --with-cppflags Specify additional flags to pass to preprocessor | |
845 | --with-ldflags Specify additional flags to pass to linker | |
846 | --with-libs Specify additional libraries to link with | |
847 | --without-rpath Disable auto-added -R linker paths | |
848 | --with-zlib=PATH Use zlib in PATH | |
849 | --with-skey[=PATH] Enable S/Key support | |
850 | (optionally in PATH) | |
851 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support | |
852 | (optionally in PATH) | |
853 | --with-pam Enable PAM support | |
854 | --with-ssl-dir=PATH Specify path to OpenSSL installation | |
855 | --with-rand-helper Use subprocess to gather strong randomness | |
856 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | |
857 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | |
858 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | |
859 | --with-privsep-user=user Specify non-privileged user for privilege separation | |
860 | --with-sectok Enable smartcard support using libsectok | |
861 | --with-opensc=PFX Enable smartcard support using OpenSC | |
862 | --with-kerberos5=PATH Enable Kerberos 5 support | |
863 | --with-kerberos4=PATH Enable Kerberos 4 support | |
864 | --with-afs=PATH Enable AFS support | |
865 | --with-rsh=PATH Specify path to remote shell program | |
7435de97 | 866 | --with-privsep-path=xxx Path for privilege separation chroot |
700318f3 | 867 | --with-xauth=PATH Specify path to xauth program |
868 | --with-mantype=man|cat|doc Set man page type | |
869 | --with-md5-passwords Enable use of MD5 passwords | |
870 | --without-shadow Disable shadow password support | |
871 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | |
872 | --with-default-path= Specify default \$PATH environment for server | |
873 | --with-superuser-path= Specify different path for super-user | |
874 | --with-ipv4-default Use IPv4 by connections unless '-6' specified | |
875 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | |
876 | --with-bsd-auth Enable BSD auth support | |
877 | --with-pid-dir=PATH Specify location of ssh.pid file | |
878 | --with-lastlog=FILE|DIR specify lastlog location common locations | |
879 | ||
880 | Some influential environment variables: | |
881 | CC C compiler command | |
882 | CFLAGS C compiler flags | |
883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
884 | nonstandard directory <lib dir> | |
885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
886 | headers in a nonstandard directory <include dir> | |
887 | CPP C preprocessor | |
888 | ||
889 | Use these variables to override the choices made by `configure' or to help | |
890 | it to find libraries and programs with nonstandard names/locations. | |
891 | ||
892 | _ACEOF | |
893 | fi | |
894 | ||
895 | if test "$ac_init_help" = "recursive"; then | |
896 | # If there are subdirs, report their specific --help. | |
897 | ac_popdir=`pwd` | |
898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
899 | test -d $ac_dir || continue | |
900 | ac_builddir=. | |
901 | ||
902 | if test "$ac_dir" != .; then | |
903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
904 | # A "../" for each directory in $ac_dir_suffix. | |
905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
906 | else | |
907 | ac_dir_suffix= ac_top_builddir= | |
908 | fi | |
909 | ||
910 | case $srcdir in | |
911 | .) # No --srcdir option. We are building in place. | |
912 | ac_srcdir=. | |
913 | if test -z "$ac_top_builddir"; then | |
914 | ac_top_srcdir=. | |
915 | else | |
916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
917 | fi ;; | |
918 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
919 | ac_srcdir=$srcdir$ac_dir_suffix; | |
920 | ac_top_srcdir=$srcdir ;; | |
921 | *) # Relative path. | |
922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
924 | esac | |
925 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
926 | # absolute. | |
927 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
928 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
929 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
930 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
931 | ||
932 | cd $ac_dir | |
933 | # Check for guested configure; otherwise get Cygnus style configure. | |
934 | if test -f $ac_srcdir/configure.gnu; then | |
935 | echo | |
936 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
937 | elif test -f $ac_srcdir/configure; then | |
938 | echo | |
939 | $SHELL $ac_srcdir/configure --help=recursive | |
940 | elif test -f $ac_srcdir/configure.ac || | |
941 | test -f $ac_srcdir/configure.in; then | |
942 | echo | |
943 | $ac_configure --help | |
944 | else | |
945 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
946 | fi | |
947 | cd $ac_popdir | |
948 | done | |
949 | fi | |
950 | ||
951 | test -n "$ac_init_help" && exit 0 | |
952 | if $ac_init_version; then | |
953 | cat <<\_ACEOF | |
954 | ||
955 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
956 | Free Software Foundation, Inc. | |
957 | This configure script is free software; the Free Software Foundation | |
958 | gives unlimited permission to copy, distribute and modify it. | |
959 | _ACEOF | |
960 | exit 0 | |
961 | fi | |
962 | exec 5>config.log | |
963 | cat >&5 <<_ACEOF | |
964 | This file contains any messages produced by compilers while | |
965 | running configure, to aid debugging if configure makes a mistake. | |
966 | ||
967 | It was created by $as_me, which was | |
968 | generated by GNU Autoconf 2.53. Invocation command line was | |
969 | ||
970 | $ $0 $@ | |
971 | ||
972 | _ACEOF | |
973 | { | |
974 | cat <<_ASUNAME | |
975 | @%:@@%:@ --------- @%:@@%:@ | |
976 | @%:@@%:@ Platform. @%:@@%:@ | |
977 | @%:@@%:@ --------- @%:@@%:@ | |
978 | ||
979 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
980 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
981 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
982 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
983 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
984 | ||
985 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
986 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
987 | ||
988 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
989 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
990 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
991 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
992 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
993 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
994 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
995 | ||
996 | _ASUNAME | |
997 | ||
998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
999 | for as_dir in $PATH | |
1000 | do | |
1001 | IFS=$as_save_IFS | |
1002 | test -z "$as_dir" && as_dir=. | |
1003 | echo "PATH: $as_dir" | |
1004 | done | |
1005 | ||
1006 | } >&5 | |
1007 | ||
1008 | cat >&5 <<_ACEOF | |
1009 | ||
1010 | ||
1011 | @%:@@%:@ ----------- @%:@@%:@ | |
1012 | @%:@@%:@ Core tests. @%:@@%:@ | |
1013 | @%:@@%:@ ----------- @%:@@%:@ | |
1014 | ||
1015 | _ACEOF | |
1016 | ||
1017 | ||
1018 | # Keep a trace of the command line. | |
1019 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1020 | # Also quote any args containing shell meta-characters. | |
1021 | ac_configure_args= | |
1022 | ac_sep= | |
1023 | for ac_arg | |
1024 | do | |
1025 | case $ac_arg in | |
1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1027 | | --no-cr | --no-c | -n ) continue ;; | |
1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1030 | continue ;; | |
1031 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1032 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1033 | esac | |
1034 | case " $ac_configure_args " in | |
1035 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1036 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1037 | ac_sep=" " ;; | |
1038 | esac | |
1039 | # Get rid of the leading space. | |
1040 | done | |
1041 | ||
1042 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1043 | # config.log. We remove comments because anyway the quotes in there | |
1044 | # would cause problems or look ugly. | |
1045 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1046 | # such as our DU 5.0 friend, will then `close' the trap. | |
1047 | trap 'exit_status=$? | |
1048 | # Save into config.log some information that might help in debugging. | |
1049 | { | |
1050 | echo | |
1051 | cat <<\_ASBOX | |
1052 | @%:@@%:@ ---------------- @%:@@%:@ | |
1053 | @%:@@%:@ Cache variables. @%:@@%:@ | |
1054 | @%:@@%:@ ---------------- @%:@@%:@ | |
1055 | _ASBOX | |
1056 | echo | |
1057 | # The following way of writing the cache mishandles newlines in values, | |
1058 | { | |
1059 | (set) 2>&1 | | |
1060 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1061 | *ac_space=\ *) | |
1062 | sed -n \ | |
1063 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1064 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1065 | ;; | |
1066 | *) | |
1067 | sed -n \ | |
1068 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1069 | ;; | |
1070 | esac; | |
1071 | } | |
1072 | echo | |
1073 | if test -s confdefs.h; then | |
1074 | cat <<\_ASBOX | |
1075 | @%:@@%:@ ----------- @%:@@%:@ | |
1076 | @%:@@%:@ confdefs.h. @%:@@%:@ | |
1077 | @%:@@%:@ ----------- @%:@@%:@ | |
1078 | _ASBOX | |
1079 | echo | |
1080 | sed "/^$/d" confdefs.h | |
1081 | echo | |
1082 | fi | |
1083 | test "$ac_signal" != 0 && | |
1084 | echo "$as_me: caught signal $ac_signal" | |
1085 | echo "$as_me: exit $exit_status" | |
1086 | } >&5 | |
1087 | rm -f core core.* *.core && | |
1088 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1089 | exit $exit_status | |
1090 | ' 0 | |
1091 | for ac_signal in 1 2 13 15; do | |
1092 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1093 | done | |
1094 | ac_signal=0 | |
1095 | ||
1096 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1097 | rm -rf conftest* confdefs.h | |
1098 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1099 | echo >confdefs.h | |
1100 | ||
1101 | # Predefined preprocessor variables. | |
1102 | ||
1103 | cat >>confdefs.h <<_ACEOF | |
1104 | @%:@define PACKAGE_NAME "$PACKAGE_NAME" | |
1105 | _ACEOF | |
1106 | ||
1107 | ||
1108 | cat >>confdefs.h <<_ACEOF | |
1109 | @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1110 | _ACEOF | |
1111 | ||
1112 | ||
1113 | cat >>confdefs.h <<_ACEOF | |
1114 | @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1115 | _ACEOF | |
1116 | ||
1117 | ||
1118 | cat >>confdefs.h <<_ACEOF | |
1119 | @%:@define PACKAGE_STRING "$PACKAGE_STRING" | |
1120 | _ACEOF | |
1121 | ||
1122 | ||
1123 | cat >>confdefs.h <<_ACEOF | |
1124 | @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1125 | _ACEOF | |
1126 | ||
1127 | ||
1128 | # Let the site file select an alternate cache file if it wants to. | |
1129 | # Prefer explicitly selected file to automatically selected ones. | |
1130 | if test -z "$CONFIG_SITE"; then | |
1131 | if test "x$prefix" != xNONE; then | |
1132 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1133 | else | |
1134 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1135 | fi | |
1136 | fi | |
1137 | for ac_site_file in $CONFIG_SITE; do | |
1138 | if test -r "$ac_site_file"; then | |
1139 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1140 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1141 | sed 's/^/| /' "$ac_site_file" >&5 | |
1142 | . "$ac_site_file" | |
1143 | fi | |
1144 | done | |
1145 | ||
1146 | if test -r "$cache_file"; then | |
1147 | # Some versions of bash will fail to source /dev/null (special | |
1148 | # files actually), so we avoid doing that. | |
1149 | if test -f "$cache_file"; then | |
1150 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1151 | echo "$as_me: loading cache $cache_file" >&6;} | |
1152 | case $cache_file in | |
1153 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1154 | *) . ./$cache_file;; | |
1155 | esac | |
1156 | fi | |
1157 | else | |
1158 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1159 | echo "$as_me: creating cache $cache_file" >&6;} | |
1160 | >$cache_file | |
1161 | fi | |
1162 | ||
1163 | # Check that the precious variables saved in the cache have kept the same | |
1164 | # value. | |
1165 | ac_cache_corrupted=false | |
1166 | for ac_var in `(set) 2>&1 | | |
1167 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1168 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1169 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1170 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1171 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1172 | case $ac_old_set,$ac_new_set in | |
1173 | set,) | |
1174 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1175 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1176 | ac_cache_corrupted=: ;; | |
1177 | ,set) | |
1178 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1179 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1180 | ac_cache_corrupted=: ;; | |
1181 | ,);; | |
1182 | *) | |
1183 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1184 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1185 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1186 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1187 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1188 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1189 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1190 | ac_cache_corrupted=: | |
1191 | fi;; | |
1192 | esac | |
1193 | # Pass precious variables to config.status. | |
1194 | if test "$ac_new_set" = set; then | |
1195 | case $ac_new_val in | |
1196 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1197 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1198 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1199 | esac | |
1200 | case " $ac_configure_args " in | |
1201 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1202 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1203 | esac | |
1204 | fi | |
1205 | done | |
1206 | if $ac_cache_corrupted; then | |
1207 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1208 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1209 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1210 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1211 | { (exit 1); exit 1; }; } | |
1212 | fi | |
1213 | ||
1214 | ac_ext=c | |
1215 | ac_cpp='$CPP $CPPFLAGS' | |
1216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1219 | ||
1220 | ||
1221 | ||
1222 | ||
1223 | ||
1224 | ||
1225 | ||
1226 | ||
1227 | ||
1228 | ||
1229 | ||
1230 | ||
1231 | ||
1232 | ||
1233 | ||
1234 | ||
1235 | ||
1236 | ||
1237 | ||
1238 | ||
1239 | ac_config_headers="$ac_config_headers config.h" | |
1240 | ||
1241 | ac_ext=c | |
1242 | ac_cpp='$CPP $CPPFLAGS' | |
1243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1246 | if test -n "$ac_tool_prefix"; then | |
1247 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1248 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1251 | if test "${ac_cv_prog_CC+set}" = set; then | |
1252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1253 | else | |
1254 | if test -n "$CC"; then | |
1255 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1256 | else | |
1257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1258 | for as_dir in $PATH | |
1259 | do | |
1260 | IFS=$as_save_IFS | |
1261 | test -z "$as_dir" && as_dir=. | |
1262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1264 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1266 | break 2 | |
1267 | fi | |
1268 | done | |
1269 | done | |
1270 | ||
1271 | fi | |
1272 | fi | |
1273 | CC=$ac_cv_prog_CC | |
1274 | if test -n "$CC"; then | |
1275 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1276 | echo "${ECHO_T}$CC" >&6 | |
1277 | else | |
1278 | echo "$as_me:$LINENO: result: no" >&5 | |
1279 | echo "${ECHO_T}no" >&6 | |
1280 | fi | |
1281 | ||
1282 | fi | |
1283 | if test -z "$ac_cv_prog_CC"; then | |
1284 | ac_ct_CC=$CC | |
1285 | # Extract the first word of "gcc", so it can be a program name with args. | |
1286 | set dummy gcc; ac_word=$2 | |
1287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1289 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1291 | else | |
1292 | if test -n "$ac_ct_CC"; then | |
1293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1294 | else | |
1295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1296 | for as_dir in $PATH | |
1297 | do | |
1298 | IFS=$as_save_IFS | |
1299 | test -z "$as_dir" && as_dir=. | |
1300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1302 | ac_cv_prog_ac_ct_CC="gcc" | |
1303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1304 | break 2 | |
1305 | fi | |
1306 | done | |
1307 | done | |
1308 | ||
1309 | fi | |
1310 | fi | |
1311 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1312 | if test -n "$ac_ct_CC"; then | |
1313 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1314 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1315 | else | |
1316 | echo "$as_me:$LINENO: result: no" >&5 | |
1317 | echo "${ECHO_T}no" >&6 | |
1318 | fi | |
1319 | ||
1320 | CC=$ac_ct_CC | |
1321 | else | |
1322 | CC="$ac_cv_prog_CC" | |
1323 | fi | |
1324 | ||
1325 | if test -z "$CC"; then | |
1326 | if test -n "$ac_tool_prefix"; then | |
1327 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1328 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1331 | if test "${ac_cv_prog_CC+set}" = set; then | |
1332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1333 | else | |
1334 | if test -n "$CC"; then | |
1335 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1336 | else | |
1337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1338 | for as_dir in $PATH | |
1339 | do | |
1340 | IFS=$as_save_IFS | |
1341 | test -z "$as_dir" && as_dir=. | |
1342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1344 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1346 | break 2 | |
1347 | fi | |
1348 | done | |
1349 | done | |
1350 | ||
1351 | fi | |
1352 | fi | |
1353 | CC=$ac_cv_prog_CC | |
1354 | if test -n "$CC"; then | |
1355 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1356 | echo "${ECHO_T}$CC" >&6 | |
1357 | else | |
1358 | echo "$as_me:$LINENO: result: no" >&5 | |
1359 | echo "${ECHO_T}no" >&6 | |
1360 | fi | |
1361 | ||
1362 | fi | |
1363 | if test -z "$ac_cv_prog_CC"; then | |
1364 | ac_ct_CC=$CC | |
1365 | # Extract the first word of "cc", so it can be a program name with args. | |
1366 | set dummy cc; ac_word=$2 | |
1367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1369 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1371 | else | |
1372 | if test -n "$ac_ct_CC"; then | |
1373 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1374 | else | |
1375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1376 | for as_dir in $PATH | |
1377 | do | |
1378 | IFS=$as_save_IFS | |
1379 | test -z "$as_dir" && as_dir=. | |
1380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1382 | ac_cv_prog_ac_ct_CC="cc" | |
1383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1384 | break 2 | |
1385 | fi | |
1386 | done | |
1387 | done | |
1388 | ||
1389 | fi | |
1390 | fi | |
1391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1392 | if test -n "$ac_ct_CC"; then | |
1393 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1394 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1395 | else | |
1396 | echo "$as_me:$LINENO: result: no" >&5 | |
1397 | echo "${ECHO_T}no" >&6 | |
1398 | fi | |
1399 | ||
1400 | CC=$ac_ct_CC | |
1401 | else | |
1402 | CC="$ac_cv_prog_CC" | |
1403 | fi | |
1404 | ||
1405 | fi | |
1406 | if test -z "$CC"; then | |
1407 | # Extract the first word of "cc", so it can be a program name with args. | |
1408 | set dummy cc; ac_word=$2 | |
1409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1411 | if test "${ac_cv_prog_CC+set}" = set; then | |
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1413 | else | |
1414 | if test -n "$CC"; then | |
1415 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1416 | else | |
1417 | ac_prog_rejected=no | |
1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1419 | for as_dir in $PATH | |
1420 | do | |
1421 | IFS=$as_save_IFS | |
1422 | test -z "$as_dir" && as_dir=. | |
1423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1425 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1426 | ac_prog_rejected=yes | |
1427 | continue | |
1428 | fi | |
1429 | ac_cv_prog_CC="cc" | |
1430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1431 | break 2 | |
1432 | fi | |
1433 | done | |
1434 | done | |
1435 | ||
1436 | if test $ac_prog_rejected = yes; then | |
1437 | # We found a bogon in the path, so make sure we never use it. | |
1438 | set dummy $ac_cv_prog_CC | |
1439 | shift | |
1440 | if test $@%:@ != 0; then | |
1441 | # We chose a different compiler from the bogus one. | |
1442 | # However, it has the same basename, so the bogon will be chosen | |
1443 | # first if we set CC to just the basename; use the full file name. | |
1444 | shift | |
1445 | set dummy "$as_dir/$ac_word" ${1+"$@"} | |
1446 | shift | |
1447 | ac_cv_prog_CC="$@" | |
1448 | fi | |
1449 | fi | |
1450 | fi | |
1451 | fi | |
1452 | CC=$ac_cv_prog_CC | |
1453 | if test -n "$CC"; then | |
1454 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1455 | echo "${ECHO_T}$CC" >&6 | |
1456 | else | |
1457 | echo "$as_me:$LINENO: result: no" >&5 | |
1458 | echo "${ECHO_T}no" >&6 | |
1459 | fi | |
1460 | ||
1461 | fi | |
1462 | if test -z "$CC"; then | |
1463 | if test -n "$ac_tool_prefix"; then | |
1464 | for ac_prog in cl | |
1465 | do | |
1466 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1467 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1470 | if test "${ac_cv_prog_CC+set}" = set; then | |
1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1472 | else | |
1473 | if test -n "$CC"; then | |
1474 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1475 | else | |
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1477 | for as_dir in $PATH | |
1478 | do | |
1479 | IFS=$as_save_IFS | |
1480 | test -z "$as_dir" && as_dir=. | |
1481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1483 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1485 | break 2 | |
1486 | fi | |
1487 | done | |
1488 | done | |
1489 | ||
1490 | fi | |
1491 | fi | |
1492 | CC=$ac_cv_prog_CC | |
1493 | if test -n "$CC"; then | |
1494 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1495 | echo "${ECHO_T}$CC" >&6 | |
1496 | else | |
1497 | echo "$as_me:$LINENO: result: no" >&5 | |
1498 | echo "${ECHO_T}no" >&6 | |
1499 | fi | |
1500 | ||
1501 | test -n "$CC" && break | |
1502 | done | |
1503 | fi | |
1504 | if test -z "$CC"; then | |
1505 | ac_ct_CC=$CC | |
1506 | for ac_prog in cl | |
1507 | do | |
1508 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1509 | set dummy $ac_prog; ac_word=$2 | |
1510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1512 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1514 | else | |
1515 | if test -n "$ac_ct_CC"; then | |
1516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1517 | else | |
1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1519 | for as_dir in $PATH | |
1520 | do | |
1521 | IFS=$as_save_IFS | |
1522 | test -z "$as_dir" && as_dir=. | |
1523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1525 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1527 | break 2 | |
1528 | fi | |
1529 | done | |
1530 | done | |
1531 | ||
1532 | fi | |
1533 | fi | |
1534 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1535 | if test -n "$ac_ct_CC"; then | |
1536 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1537 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1538 | else | |
1539 | echo "$as_me:$LINENO: result: no" >&5 | |
1540 | echo "${ECHO_T}no" >&6 | |
1541 | fi | |
1542 | ||
1543 | test -n "$ac_ct_CC" && break | |
1544 | done | |
1545 | ||
1546 | CC=$ac_ct_CC | |
1547 | fi | |
1548 | ||
1549 | fi | |
1550 | ||
1551 | ||
1552 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
1553 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
1554 | { (exit 1); exit 1; }; } | |
1555 | ||
1556 | # Provide some information about the compiler. | |
1557 | echo "$as_me:$LINENO:" \ | |
1558 | "checking for C compiler version" >&5 | |
1559 | ac_compiler=`set X $ac_compile; echo $2` | |
1560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1561 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1562 | ac_status=$? | |
1563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1564 | (exit $ac_status); } | |
1565 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1566 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1567 | ac_status=$? | |
1568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1569 | (exit $ac_status); } | |
1570 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1571 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1572 | ac_status=$? | |
1573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1574 | (exit $ac_status); } | |
1575 | ||
1576 | cat >conftest.$ac_ext <<_ACEOF | |
1577 | #line $LINENO "configure" | |
1578 | #include "confdefs.h" | |
1579 | ||
1580 | #ifdef F77_DUMMY_MAIN | |
1581 | # ifdef __cplusplus | |
1582 | extern "C" | |
1583 | # endif | |
1584 | int F77_DUMMY_MAIN() { return 1; } | |
1585 | #endif | |
1586 | int | |
1587 | main () | |
1588 | { | |
1589 | ||
1590 | ; | |
1591 | return 0; | |
1592 | } | |
1593 | _ACEOF | |
1594 | ac_clean_files_save=$ac_clean_files | |
1595 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1596 | # Try to create an executable without -o first, disregard a.out. | |
1597 | # It will help us diagnose broken compilers, and finding out an intuition | |
1598 | # of exeext. | |
1599 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
1600 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1601 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1602 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1603 | (eval $ac_link_default) 2>&5 | |
1604 | ac_status=$? | |
1605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1606 | (exit $ac_status); }; then | |
1607 | # Find the output, starting from the most likely. This scheme is | |
1608 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1609 | # resort. | |
1610 | ||
1611 | # Be careful to initialize this variable, since it used to be cached. | |
1612 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1613 | ac_cv_exeext= | |
1614 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
1615 | ls a.out conftest 2>/dev/null; | |
1616 | ls a.* conftest.* 2>/dev/null`; do | |
1617 | case $ac_file in | |
1618 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
1619 | a.out ) # We found the default executable, but exeext='' is most | |
1620 | # certainly right. | |
1621 | break;; | |
1622 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1623 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
1624 | export ac_cv_exeext | |
1625 | break;; | |
1626 | * ) break;; | |
1627 | esac | |
1628 | done | |
1629 | else | |
1630 | echo "$as_me: failed program was:" >&5 | |
1631 | cat conftest.$ac_ext >&5 | |
1632 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | |
1633 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
1634 | { (exit 77); exit 77; }; } | |
1635 | fi | |
1636 | ||
1637 | ac_exeext=$ac_cv_exeext | |
1638 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1639 | echo "${ECHO_T}$ac_file" >&6 | |
1640 | ||
1641 | # Check the compiler produces executables we can run. If not, either | |
1642 | # the compiler is broken, or we cross compile. | |
1643 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1644 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1645 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1646 | # If not cross compiling, check that we can run a simple program. | |
1647 | if test "$cross_compiling" != yes; then | |
1648 | if { ac_try='./$ac_file' | |
1649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1650 | (eval $ac_try) 2>&5 | |
1651 | ac_status=$? | |
1652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1653 | (exit $ac_status); }; }; then | |
1654 | cross_compiling=no | |
1655 | else | |
1656 | if test "$cross_compiling" = maybe; then | |
1657 | cross_compiling=yes | |
1658 | else | |
1659 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1660 | If you meant to cross compile, use \`--host'." >&5 | |
1661 | echo "$as_me: error: cannot run C compiled programs. | |
1662 | If you meant to cross compile, use \`--host'." >&2;} | |
1663 | { (exit 1); exit 1; }; } | |
1664 | fi | |
1665 | fi | |
1666 | fi | |
1667 | echo "$as_me:$LINENO: result: yes" >&5 | |
1668 | echo "${ECHO_T}yes" >&6 | |
1669 | ||
1670 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1671 | ac_clean_files=$ac_clean_files_save | |
1672 | # Check the compiler produces executables we can run. If not, either | |
1673 | # the compiler is broken, or we cross compile. | |
1674 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1675 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1676 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1677 | echo "${ECHO_T}$cross_compiling" >&6 | |
1678 | ||
1679 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1680 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1682 | (eval $ac_link) 2>&5 | |
1683 | ac_status=$? | |
1684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1685 | (exit $ac_status); }; then | |
1686 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1687 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1688 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1689 | # `rm'. | |
1690 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1691 | case $ac_file in | |
1692 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1693 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1694 | export ac_cv_exeext | |
1695 | break;; | |
1696 | * ) break;; | |
1697 | esac | |
1698 | done | |
1699 | else | |
1700 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 | |
1701 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
1702 | { (exit 1); exit 1; }; } | |
1703 | fi | |
1704 | ||
1705 | rm -f conftest$ac_cv_exeext | |
1706 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1707 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1708 | ||
1709 | rm -f conftest.$ac_ext | |
1710 | EXEEXT=$ac_cv_exeext | |
1711 | ac_exeext=$EXEEXT | |
1712 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1713 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1714 | if test "${ac_cv_objext+set}" = set; then | |
1715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1716 | else | |
1717 | cat >conftest.$ac_ext <<_ACEOF | |
1718 | #line $LINENO "configure" | |
1719 | #include "confdefs.h" | |
1720 | ||
1721 | #ifdef F77_DUMMY_MAIN | |
1722 | # ifdef __cplusplus | |
1723 | extern "C" | |
1724 | # endif | |
1725 | int F77_DUMMY_MAIN() { return 1; } | |
1726 | #endif | |
1727 | int | |
1728 | main () | |
1729 | { | |
1730 | ||
1731 | ; | |
1732 | return 0; | |
1733 | } | |
1734 | _ACEOF | |
1735 | rm -f conftest.o conftest.obj | |
1736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1737 | (eval $ac_compile) 2>&5 | |
1738 | ac_status=$? | |
1739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1740 | (exit $ac_status); }; then | |
1741 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1742 | case $ac_file in | |
1743 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1744 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1745 | break;; | |
1746 | esac | |
1747 | done | |
1748 | else | |
1749 | echo "$as_me: failed program was:" >&5 | |
1750 | cat conftest.$ac_ext >&5 | |
1751 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
1752 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
1753 | { (exit 1); exit 1; }; } | |
1754 | fi | |
1755 | ||
1756 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1757 | fi | |
1758 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1759 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1760 | OBJEXT=$ac_cv_objext | |
1761 | ac_objext=$OBJEXT | |
1762 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1763 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1764 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1766 | else | |
1767 | cat >conftest.$ac_ext <<_ACEOF | |
1768 | #line $LINENO "configure" | |
1769 | #include "confdefs.h" | |
1770 | ||
1771 | #ifdef F77_DUMMY_MAIN | |
1772 | # ifdef __cplusplus | |
1773 | extern "C" | |
1774 | # endif | |
1775 | int F77_DUMMY_MAIN() { return 1; } | |
1776 | #endif | |
1777 | int | |
1778 | main () | |
1779 | { | |
1780 | #ifndef __GNUC__ | |
1781 | choke me | |
1782 | #endif | |
1783 | ||
1784 | ; | |
1785 | return 0; | |
1786 | } | |
1787 | _ACEOF | |
1788 | rm -f conftest.$ac_objext | |
1789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1790 | (eval $ac_compile) 2>&5 | |
1791 | ac_status=$? | |
1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1793 | (exit $ac_status); } && | |
1794 | { ac_try='test -s conftest.$ac_objext' | |
1795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1796 | (eval $ac_try) 2>&5 | |
1797 | ac_status=$? | |
1798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1799 | (exit $ac_status); }; }; then | |
1800 | ac_compiler_gnu=yes | |
1801 | else | |
1802 | echo "$as_me: failed program was:" >&5 | |
1803 | cat conftest.$ac_ext >&5 | |
1804 | ac_compiler_gnu=no | |
1805 | fi | |
1806 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1807 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1808 | ||
1809 | fi | |
1810 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1811 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1812 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1813 | ac_test_CFLAGS=${CFLAGS+set} | |
1814 | ac_save_CFLAGS=$CFLAGS | |
1815 | CFLAGS="-g" | |
1816 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1817 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1818 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1820 | else | |
1821 | cat >conftest.$ac_ext <<_ACEOF | |
1822 | #line $LINENO "configure" | |
1823 | #include "confdefs.h" | |
1824 | ||
1825 | #ifdef F77_DUMMY_MAIN | |
1826 | # ifdef __cplusplus | |
1827 | extern "C" | |
1828 | # endif | |
1829 | int F77_DUMMY_MAIN() { return 1; } | |
1830 | #endif | |
1831 | int | |
1832 | main () | |
1833 | { | |
1834 | ||
1835 | ; | |
1836 | return 0; | |
1837 | } | |
1838 | _ACEOF | |
1839 | rm -f conftest.$ac_objext | |
1840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1841 | (eval $ac_compile) 2>&5 | |
1842 | ac_status=$? | |
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1844 | (exit $ac_status); } && | |
1845 | { ac_try='test -s conftest.$ac_objext' | |
1846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1847 | (eval $ac_try) 2>&5 | |
1848 | ac_status=$? | |
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1850 | (exit $ac_status); }; }; then | |
1851 | ac_cv_prog_cc_g=yes | |
1852 | else | |
1853 | echo "$as_me: failed program was:" >&5 | |
1854 | cat conftest.$ac_ext >&5 | |
1855 | ac_cv_prog_cc_g=no | |
1856 | fi | |
1857 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1858 | fi | |
1859 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
1860 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
1861 | if test "$ac_test_CFLAGS" = set; then | |
1862 | CFLAGS=$ac_save_CFLAGS | |
1863 | elif test $ac_cv_prog_cc_g = yes; then | |
1864 | if test "$GCC" = yes; then | |
1865 | CFLAGS="-g -O2" | |
1866 | else | |
1867 | CFLAGS="-g" | |
1868 | fi | |
1869 | else | |
1870 | if test "$GCC" = yes; then | |
1871 | CFLAGS="-O2" | |
1872 | else | |
1873 | CFLAGS= | |
1874 | fi | |
1875 | fi | |
1876 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
1877 | # in C++ we need to declare it. In case someone uses the same compiler | |
1878 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1879 | # the declaration of exit, since it's the most demanding environment. | |
1880 | cat >conftest.$ac_ext <<_ACEOF | |
1881 | @%:@ifndef __cplusplus | |
1882 | choke me | |
1883 | @%:@endif | |
1884 | _ACEOF | |
1885 | rm -f conftest.$ac_objext | |
1886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1887 | (eval $ac_compile) 2>&5 | |
1888 | ac_status=$? | |
1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1890 | (exit $ac_status); } && | |
1891 | { ac_try='test -s conftest.$ac_objext' | |
1892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1893 | (eval $ac_try) 2>&5 | |
1894 | ac_status=$? | |
1895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1896 | (exit $ac_status); }; }; then | |
1897 | for ac_declaration in \ | |
1898 | ''\ | |
1899 | '#include <stdlib.h>' \ | |
1900 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1901 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1902 | 'extern "C" void exit (int) throw ();' \ | |
1903 | 'extern "C" void exit (int);' \ | |
1904 | 'void exit (int);' | |
1905 | do | |
1906 | cat >conftest.$ac_ext <<_ACEOF | |
1907 | #line $LINENO "configure" | |
1908 | #include "confdefs.h" | |
1909 | @%:@include <stdlib.h> | |
1910 | $ac_declaration | |
1911 | #ifdef F77_DUMMY_MAIN | |
1912 | # ifdef __cplusplus | |
1913 | extern "C" | |
1914 | # endif | |
1915 | int F77_DUMMY_MAIN() { return 1; } | |
1916 | #endif | |
1917 | int | |
1918 | main () | |
1919 | { | |
1920 | exit (42); | |
1921 | ; | |
1922 | return 0; | |
1923 | } | |
1924 | _ACEOF | |
1925 | rm -f conftest.$ac_objext | |
1926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1927 | (eval $ac_compile) 2>&5 | |
1928 | ac_status=$? | |
1929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1930 | (exit $ac_status); } && | |
1931 | { ac_try='test -s conftest.$ac_objext' | |
1932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1933 | (eval $ac_try) 2>&5 | |
1934 | ac_status=$? | |
1935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1936 | (exit $ac_status); }; }; then | |
1937 | : | |
1938 | else | |
1939 | echo "$as_me: failed program was:" >&5 | |
1940 | cat conftest.$ac_ext >&5 | |
1941 | continue | |
1942 | fi | |
1943 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1944 | cat >conftest.$ac_ext <<_ACEOF | |
1945 | #line $LINENO "configure" | |
1946 | #include "confdefs.h" | |
1947 | $ac_declaration | |
1948 | #ifdef F77_DUMMY_MAIN | |
1949 | # ifdef __cplusplus | |
1950 | extern "C" | |
1951 | # endif | |
1952 | int F77_DUMMY_MAIN() { return 1; } | |
1953 | #endif | |
1954 | int | |
1955 | main () | |
1956 | { | |
1957 | exit (42); | |
1958 | ; | |
1959 | return 0; | |
1960 | } | |
1961 | _ACEOF | |
1962 | rm -f conftest.$ac_objext | |
1963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1964 | (eval $ac_compile) 2>&5 | |
1965 | ac_status=$? | |
1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1967 | (exit $ac_status); } && | |
1968 | { ac_try='test -s conftest.$ac_objext' | |
1969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1970 | (eval $ac_try) 2>&5 | |
1971 | ac_status=$? | |
1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1973 | (exit $ac_status); }; }; then | |
1974 | break | |
1975 | else | |
1976 | echo "$as_me: failed program was:" >&5 | |
1977 | cat conftest.$ac_ext >&5 | |
1978 | fi | |
1979 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1980 | done | |
1981 | rm -f conftest* | |
1982 | if test -n "$ac_declaration"; then | |
1983 | echo '#ifdef __cplusplus' >>confdefs.h | |
1984 | echo $ac_declaration >>confdefs.h | |
1985 | echo '#endif' >>confdefs.h | |
1986 | fi | |
1987 | ||
1988 | else | |
1989 | echo "$as_me: failed program was:" >&5 | |
1990 | cat conftest.$ac_ext >&5 | |
1991 | fi | |
1992 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1993 | ac_ext=c | |
1994 | ac_cpp='$CPP $CPPFLAGS' | |
1995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1998 | ||
1999 | ac_aux_dir= | |
2000 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
2001 | if test -f $ac_dir/install-sh; then | |
2002 | ac_aux_dir=$ac_dir | |
2003 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2004 | break | |
2005 | elif test -f $ac_dir/install.sh; then | |
2006 | ac_aux_dir=$ac_dir | |
2007 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2008 | break | |
2009 | elif test -f $ac_dir/shtool; then | |
2010 | ac_aux_dir=$ac_dir | |
2011 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2012 | break | |
2013 | fi | |
2014 | done | |
2015 | if test -z "$ac_aux_dir"; then | |
2016 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
2017 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
2018 | { (exit 1); exit 1; }; } | |
2019 | fi | |
2020 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
2021 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2022 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
2023 | ||
2024 | # Make sure we can run config.sub. | |
2025 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2026 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2027 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2028 | { (exit 1); exit 1; }; } | |
2029 | ||
2030 | echo "$as_me:$LINENO: checking build system type" >&5 | |
2031 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
2032 | if test "${ac_cv_build+set}" = set; then | |
2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2034 | else | |
2035 | ac_cv_build_alias=$build_alias | |
2036 | test -z "$ac_cv_build_alias" && | |
2037 | ac_cv_build_alias=`$ac_config_guess` | |
2038 | test -z "$ac_cv_build_alias" && | |
2039 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2040 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2041 | { (exit 1); exit 1; }; } | |
2042 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2043 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2044 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
2045 | { (exit 1); exit 1; }; } | |
2046 | ||
2047 | fi | |
2048 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2049 | echo "${ECHO_T}$ac_cv_build" >&6 | |
2050 | build=$ac_cv_build | |
2051 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2052 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2053 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2054 | ||
2055 | ||
2056 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2057 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2058 | if test "${ac_cv_host+set}" = set; then | |
2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2060 | else | |
2061 | ac_cv_host_alias=$host_alias | |
2062 | test -z "$ac_cv_host_alias" && | |
2063 | ac_cv_host_alias=$ac_cv_build_alias | |
2064 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2065 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2066 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2067 | { (exit 1); exit 1; }; } | |
2068 | ||
2069 | fi | |
2070 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2071 | echo "${ECHO_T}$ac_cv_host" >&6 | |
2072 | host=$ac_cv_host | |
2073 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2074 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2075 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2076 | ||
2077 | ||
2078 | ||
2079 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
2080 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
2081 | if test "${ac_cv_c_bigendian+set}" = set; then | |
2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2083 | else | |
2084 | # See if sys/param.h defines the BYTE_ORDER macro. | |
2085 | cat >conftest.$ac_ext <<_ACEOF | |
2086 | #line $LINENO "configure" | |
2087 | #include "confdefs.h" | |
2088 | #include <sys/types.h> | |
2089 | #include <sys/param.h> | |
2090 | ||
2091 | #ifdef F77_DUMMY_MAIN | |
2092 | # ifdef __cplusplus | |
2093 | extern "C" | |
2094 | # endif | |
2095 | int F77_DUMMY_MAIN() { return 1; } | |
2096 | #endif | |
2097 | int | |
2098 | main () | |
2099 | { | |
2100 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
2101 | bogus endian macros | |
2102 | #endif | |
2103 | ||
2104 | ; | |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
2108 | rm -f conftest.$ac_objext | |
2109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2110 | (eval $ac_compile) 2>&5 | |
2111 | ac_status=$? | |
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2113 | (exit $ac_status); } && | |
2114 | { ac_try='test -s conftest.$ac_objext' | |
2115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2116 | (eval $ac_try) 2>&5 | |
2117 | ac_status=$? | |
2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2119 | (exit $ac_status); }; }; then | |
2120 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
2121 | cat >conftest.$ac_ext <<_ACEOF | |
2122 | #line $LINENO "configure" | |
2123 | #include "confdefs.h" | |
2124 | #include <sys/types.h> | |
2125 | #include <sys/param.h> | |
2126 | ||
2127 | #ifdef F77_DUMMY_MAIN | |
2128 | # ifdef __cplusplus | |
2129 | extern "C" | |
2130 | # endif | |
2131 | int F77_DUMMY_MAIN() { return 1; } | |
2132 | #endif | |
2133 | int | |
2134 | main () | |
2135 | { | |
2136 | #if BYTE_ORDER != BIG_ENDIAN | |
2137 | not big endian | |
2138 | #endif | |
2139 | ||
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | rm -f conftest.$ac_objext | |
2145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2146 | (eval $ac_compile) 2>&5 | |
2147 | ac_status=$? | |
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2149 | (exit $ac_status); } && | |
2150 | { ac_try='test -s conftest.$ac_objext' | |
2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2152 | (eval $ac_try) 2>&5 | |
2153 | ac_status=$? | |
2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2155 | (exit $ac_status); }; }; then | |
2156 | ac_cv_c_bigendian=yes | |
2157 | else | |
2158 | echo "$as_me: failed program was:" >&5 | |
2159 | cat conftest.$ac_ext >&5 | |
2160 | ac_cv_c_bigendian=no | |
2161 | fi | |
2162 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2163 | else | |
2164 | echo "$as_me: failed program was:" >&5 | |
2165 | cat conftest.$ac_ext >&5 | |
2166 | # It does not; compile a test program. | |
2167 | if test "$cross_compiling" = yes; then | |
2168 | # try to guess the endianess by grep'ing values into an object file | |
2169 | ac_cv_c_bigendian=unknown | |
2170 | cat >conftest.$ac_ext <<_ACEOF | |
2171 | #line $LINENO "configure" | |
2172 | #include "confdefs.h" | |
2173 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
2174 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
2175 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
2176 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
2177 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
2178 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
2179 | #ifdef F77_DUMMY_MAIN | |
2180 | # ifdef __cplusplus | |
2181 | extern "C" | |
2182 | # endif | |
2183 | int F77_DUMMY_MAIN() { return 1; } | |
2184 | #endif | |
2185 | int | |
2186 | main () | |
2187 | { | |
2188 | _ascii (); _ebcdic (); | |
2189 | ; | |
2190 | return 0; | |
2191 | } | |
2192 | _ACEOF | |
2193 | rm -f conftest.$ac_objext | |
2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2195 | (eval $ac_compile) 2>&5 | |
2196 | ac_status=$? | |
2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2198 | (exit $ac_status); } && | |
2199 | { ac_try='test -s conftest.$ac_objext' | |
2200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2201 | (eval $ac_try) 2>&5 | |
2202 | ac_status=$? | |
2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2204 | (exit $ac_status); }; }; then | |
2205 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
2206 | ac_cv_c_bigendian=yes | |
2207 | fi | |
2208 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
2209 | if test "$ac_cv_c_bigendian" = unknown; then | |
2210 | ac_cv_c_bigendian=no | |
2211 | else | |
2212 | # finding both strings is unlikely to happen, but who knows? | |
2213 | ac_cv_c_bigendian=unknown | |
2214 | fi | |
2215 | fi | |
2216 | else | |
2217 | echo "$as_me: failed program was:" >&5 | |
2218 | cat conftest.$ac_ext >&5 | |
2219 | fi | |
2220 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2221 | else | |
2222 | cat >conftest.$ac_ext <<_ACEOF | |
2223 | #line $LINENO "configure" | |
2224 | #include "confdefs.h" | |
2225 | int | |
2226 | main () | |
2227 | { | |
2228 | /* Are we little or big endian? From Harbison&Steele. */ | |
2229 | union | |
2230 | { | |
2231 | long l; | |
2232 | char c[sizeof (long)]; | |
2233 | } u; | |
2234 | u.l = 1; | |
2235 | exit (u.c[sizeof (long) - 1] == 1); | |
2236 | } | |
2237 | _ACEOF | |
2238 | rm -f conftest$ac_exeext | |
2239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2240 | (eval $ac_link) 2>&5 | |
2241 | ac_status=$? | |
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2245 | (eval $ac_try) 2>&5 | |
2246 | ac_status=$? | |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; }; then | |
2249 | ac_cv_c_bigendian=no | |
2250 | else | |
2251 | echo "$as_me: program exited with status $ac_status" >&5 | |
2252 | echo "$as_me: failed program was:" >&5 | |
2253 | cat conftest.$ac_ext >&5 | |
2254 | ( exit $ac_status ) | |
2255 | ac_cv_c_bigendian=yes | |
2256 | fi | |
2257 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2258 | fi | |
2259 | fi | |
2260 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2261 | fi | |
2262 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
2263 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
2264 | case $ac_cv_c_bigendian in | |
2265 | yes) | |
2266 | ||
2267 | cat >>confdefs.h <<\_ACEOF | |
2268 | @%:@define WORDS_BIGENDIAN 1 | |
2269 | _ACEOF | |
2270 | ;; | |
2271 | no) | |
2272 | ;; | |
2273 | *) | |
2274 | { { echo "$as_me:$LINENO: error: unknown endianess | |
2275 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
2276 | echo "$as_me: error: unknown endianess | |
2277 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
2278 | { (exit 1); exit 1; }; } ;; | |
2279 | esac | |
2280 | ||
2281 | ||
2282 | # Checks for programs. | |
2283 | ac_ext=c | |
2284 | ac_cpp='$CPP $CPPFLAGS' | |
2285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2288 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2289 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2290 | # On Suns, sometimes $CPP names a directory. | |
2291 | if test -n "$CPP" && test -d "$CPP"; then | |
2292 | CPP= | |
2293 | fi | |
2294 | if test -z "$CPP"; then | |
2295 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2297 | else | |
2298 | # Double quotes because CPP needs to be expanded | |
2299 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2300 | do | |
2301 | ac_preproc_ok=false | |
2302 | for ac_c_preproc_warn_flag in '' yes | |
2303 | do | |
2304 | # Use a header file that comes with gcc, so configuring glibc | |
2305 | # with a fresh cross-compiler works. | |
2306 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2307 | # not just through cpp. "Syntax error" is here to catch this case. | |
2308 | cat >conftest.$ac_ext <<_ACEOF | |
2309 | #line $LINENO "configure" | |
2310 | #include "confdefs.h" | |
2311 | @%:@include <assert.h> | |
2312 | Syntax error | |
2313 | _ACEOF | |
2314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2316 | ac_status=$? | |
2317 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2318 | rm -f conftest.er1 | |
2319 | cat conftest.err >&5 | |
2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2321 | (exit $ac_status); } >/dev/null; then | |
2322 | if test -s conftest.err; then | |
2323 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2324 | else | |
2325 | ac_cpp_err= | |
2326 | fi | |
2327 | else | |
2328 | ac_cpp_err=yes | |
2329 | fi | |
2330 | if test -z "$ac_cpp_err"; then | |
2331 | : | |
2332 | else | |
2333 | echo "$as_me: failed program was:" >&5 | |
2334 | cat conftest.$ac_ext >&5 | |
2335 | # Broken: fails on valid input. | |
2336 | continue | |
2337 | fi | |
2338 | rm -f conftest.err conftest.$ac_ext | |
2339 | ||
2340 | # OK, works on sane cases. Now check whether non-existent headers | |
2341 | # can be detected and how. | |
2342 | cat >conftest.$ac_ext <<_ACEOF | |
2343 | #line $LINENO "configure" | |
2344 | #include "confdefs.h" | |
2345 | @%:@include <ac_nonexistent.h> | |
2346 | _ACEOF | |
2347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2349 | ac_status=$? | |
2350 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2351 | rm -f conftest.er1 | |
2352 | cat conftest.err >&5 | |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2354 | (exit $ac_status); } >/dev/null; then | |
2355 | if test -s conftest.err; then | |
2356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2357 | else | |
2358 | ac_cpp_err= | |
2359 | fi | |
2360 | else | |
2361 | ac_cpp_err=yes | |
2362 | fi | |
2363 | if test -z "$ac_cpp_err"; then | |
2364 | # Broken: success on invalid input. | |
2365 | continue | |
2366 | else | |
2367 | echo "$as_me: failed program was:" >&5 | |
2368 | cat conftest.$ac_ext >&5 | |
2369 | # Passes both tests. | |
2370 | ac_preproc_ok=: | |
2371 | break | |
2372 | fi | |
2373 | rm -f conftest.err conftest.$ac_ext | |
2374 | ||
2375 | done | |
2376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2377 | rm -f conftest.err conftest.$ac_ext | |
2378 | if $ac_preproc_ok; then | |
2379 | break | |
2380 | fi | |
2381 | ||
2382 | done | |
2383 | ac_cv_prog_CPP=$CPP | |
2384 | ||
2385 | fi | |
2386 | CPP=$ac_cv_prog_CPP | |
2387 | else | |
2388 | ac_cv_prog_CPP=$CPP | |
2389 | fi | |
2390 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2391 | echo "${ECHO_T}$CPP" >&6 | |
2392 | ac_preproc_ok=false | |
2393 | for ac_c_preproc_warn_flag in '' yes | |
2394 | do | |
2395 | # Use a header file that comes with gcc, so configuring glibc | |
2396 | # with a fresh cross-compiler works. | |
2397 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2398 | # not just through cpp. "Syntax error" is here to catch this case. | |
2399 | cat >conftest.$ac_ext <<_ACEOF | |
2400 | #line $LINENO "configure" | |
2401 | #include "confdefs.h" | |
2402 | @%:@include <assert.h> | |
2403 | Syntax error | |
2404 | _ACEOF | |
2405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2407 | ac_status=$? | |
2408 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2409 | rm -f conftest.er1 | |
2410 | cat conftest.err >&5 | |
2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2412 | (exit $ac_status); } >/dev/null; then | |
2413 | if test -s conftest.err; then | |
2414 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2415 | else | |
2416 | ac_cpp_err= | |
2417 | fi | |
2418 | else | |
2419 | ac_cpp_err=yes | |
2420 | fi | |
2421 | if test -z "$ac_cpp_err"; then | |
2422 | : | |
2423 | else | |
2424 | echo "$as_me: failed program was:" >&5 | |
2425 | cat conftest.$ac_ext >&5 | |
2426 | # Broken: fails on valid input. | |
2427 | continue | |
2428 | fi | |
2429 | rm -f conftest.err conftest.$ac_ext | |
2430 | ||
2431 | # OK, works on sane cases. Now check whether non-existent headers | |
2432 | # can be detected and how. | |
2433 | cat >conftest.$ac_ext <<_ACEOF | |
2434 | #line $LINENO "configure" | |
2435 | #include "confdefs.h" | |
2436 | @%:@include <ac_nonexistent.h> | |
2437 | _ACEOF | |
2438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2440 | ac_status=$? | |
2441 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2442 | rm -f conftest.er1 | |
2443 | cat conftest.err >&5 | |
2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2445 | (exit $ac_status); } >/dev/null; then | |
2446 | if test -s conftest.err; then | |
2447 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2448 | else | |
2449 | ac_cpp_err= | |
2450 | fi | |
2451 | else | |
2452 | ac_cpp_err=yes | |
2453 | fi | |
2454 | if test -z "$ac_cpp_err"; then | |
2455 | # Broken: success on invalid input. | |
2456 | continue | |
2457 | else | |
2458 | echo "$as_me: failed program was:" >&5 | |
2459 | cat conftest.$ac_ext >&5 | |
2460 | # Passes both tests. | |
2461 | ac_preproc_ok=: | |
2462 | break | |
2463 | fi | |
2464 | rm -f conftest.err conftest.$ac_ext | |
2465 | ||
2466 | done | |
2467 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2468 | rm -f conftest.err conftest.$ac_ext | |
2469 | if $ac_preproc_ok; then | |
2470 | : | |
2471 | else | |
2472 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
2473 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
2474 | { (exit 1); exit 1; }; } | |
2475 | fi | |
2476 | ||
2477 | ac_ext=c | |
2478 | ac_cpp='$CPP $CPPFLAGS' | |
2479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2482 | ||
2483 | if test -n "$ac_tool_prefix"; then | |
2484 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2485 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2488 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2490 | else | |
2491 | if test -n "$RANLIB"; then | |
2492 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2493 | else | |
2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2495 | for as_dir in $PATH | |
2496 | do | |
2497 | IFS=$as_save_IFS | |
2498 | test -z "$as_dir" && as_dir=. | |
2499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2501 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2503 | break 2 | |
2504 | fi | |
2505 | done | |
2506 | done | |
2507 | ||
2508 | fi | |
2509 | fi | |
2510 | RANLIB=$ac_cv_prog_RANLIB | |
2511 | if test -n "$RANLIB"; then | |
2512 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2513 | echo "${ECHO_T}$RANLIB" >&6 | |
2514 | else | |
2515 | echo "$as_me:$LINENO: result: no" >&5 | |
2516 | echo "${ECHO_T}no" >&6 | |
2517 | fi | |
2518 | ||
2519 | fi | |
2520 | if test -z "$ac_cv_prog_RANLIB"; then | |
2521 | ac_ct_RANLIB=$RANLIB | |
2522 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2523 | set dummy ranlib; ac_word=$2 | |
2524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2526 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2528 | else | |
2529 | if test -n "$ac_ct_RANLIB"; then | |
2530 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2531 | else | |
2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2533 | for as_dir in $PATH | |
2534 | do | |
2535 | IFS=$as_save_IFS | |
2536 | test -z "$as_dir" && as_dir=. | |
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2539 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2541 | break 2 | |
2542 | fi | |
2543 | done | |
2544 | done | |
2545 | ||
2546 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2547 | fi | |
2548 | fi | |
2549 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2550 | if test -n "$ac_ct_RANLIB"; then | |
2551 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2552 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2553 | else | |
2554 | echo "$as_me:$LINENO: result: no" >&5 | |
2555 | echo "${ECHO_T}no" >&6 | |
2556 | fi | |
2557 | ||
2558 | RANLIB=$ac_ct_RANLIB | |
2559 | else | |
2560 | RANLIB="$ac_cv_prog_RANLIB" | |
2561 | fi | |
2562 | ||
2563 | # Find a good install program. We prefer a C program (faster), | |
2564 | # so one script is as good as another. But avoid the broken or | |
2565 | # incompatible versions: | |
2566 | # SysV /etc/install, /usr/sbin/install | |
2567 | # SunOS /usr/etc/install | |
2568 | # IRIX /sbin/install | |
2569 | # AIX /bin/install | |
2570 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2574 | # ./install, which can be erroneously created by make from ./install.sh. | |
2575 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2576 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2577 | if test -z "$INSTALL"; then | |
2578 | if test "${ac_cv_path_install+set}" = set; then | |
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2580 | else | |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2582 | for as_dir in $PATH | |
2583 | do | |
2584 | IFS=$as_save_IFS | |
2585 | test -z "$as_dir" && as_dir=. | |
2586 | # Account for people who put trailing slashes in PATH elements. | |
2587 | case $as_dir/ in | |
2588 | ./ | .// | /cC/* | \ | |
2589 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2590 | /usr/ucb/* ) ;; | |
2591 | *) | |
2592 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2593 | # Don't use installbsd from OSF since it installs stuff as root | |
2594 | # by default. | |
2595 | for ac_prog in ginstall scoinst install; do | |
2596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2597 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2598 | if test $ac_prog = install && | |
2599 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2600 | # AIX install. It has an incompatible calling convention. | |
2601 | : | |
2602 | elif test $ac_prog = install && | |
2603 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2604 | # program-specific install script used by HP pwplus--don't use. | |
2605 | : | |
2606 | else | |
2607 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2608 | break 3 | |
2609 | fi | |
2610 | fi | |
2611 | done | |
2612 | done | |
2613 | ;; | |
2614 | esac | |
2615 | done | |
2616 | ||
2617 | ||
2618 | fi | |
2619 | if test "${ac_cv_path_install+set}" = set; then | |
2620 | INSTALL=$ac_cv_path_install | |
2621 | else | |
2622 | # As a last resort, use the slow shell script. We don't cache a | |
2623 | # path for INSTALL within a source directory, because that will | |
2624 | # break other packages using the cache if that directory is | |
2625 | # removed, or if the path is relative. | |
2626 | INSTALL=$ac_install_sh | |
2627 | fi | |
2628 | fi | |
2629 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2630 | echo "${ECHO_T}$INSTALL" >&6 | |
2631 | ||
2632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2633 | # It thinks the first close brace ends the variable substitution. | |
2634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2635 | ||
2636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2637 | ||
2638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2639 | ||
2640 | # Extract the first word of "ar", so it can be a program name with args. | |
2641 | set dummy ar; ac_word=$2 | |
2642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2644 | if test "${ac_cv_path_AR+set}" = set; then | |
2645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2646 | else | |
2647 | case $AR in | |
2648 | [\\/]* | ?:[\\/]*) | |
2649 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
2650 | ;; | |
2651 | *) | |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2653 | for as_dir in $PATH | |
2654 | do | |
2655 | IFS=$as_save_IFS | |
2656 | test -z "$as_dir" && as_dir=. | |
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2659 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
2660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2661 | break 2 | |
2662 | fi | |
2663 | done | |
2664 | done | |
2665 | ||
2666 | ;; | |
2667 | esac | |
2668 | fi | |
2669 | AR=$ac_cv_path_AR | |
2670 | ||
2671 | if test -n "$AR"; then | |
2672 | echo "$as_me:$LINENO: result: $AR" >&5 | |
2673 | echo "${ECHO_T}$AR" >&6 | |
2674 | else | |
2675 | echo "$as_me:$LINENO: result: no" >&5 | |
2676 | echo "${ECHO_T}no" >&6 | |
2677 | fi | |
2678 | ||
2679 | for ac_prog in perl5 perl | |
2680 | do | |
2681 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2682 | set dummy $ac_prog; ac_word=$2 | |
2683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2685 | if test "${ac_cv_path_PERL+set}" = set; then | |
2686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2687 | else | |
2688 | case $PERL in | |
2689 | [\\/]* | ?:[\\/]*) | |
2690 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
2691 | ;; | |
2692 | *) | |
2693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2694 | for as_dir in $PATH | |
2695 | do | |
2696 | IFS=$as_save_IFS | |
2697 | test -z "$as_dir" && as_dir=. | |
2698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2700 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
2701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2702 | break 2 | |
2703 | fi | |
2704 | done | |
2705 | done | |
2706 | ||
2707 | ;; | |
2708 | esac | |
2709 | fi | |
2710 | PERL=$ac_cv_path_PERL | |
2711 | ||
2712 | if test -n "$PERL"; then | |
2713 | echo "$as_me:$LINENO: result: $PERL" >&5 | |
2714 | echo "${ECHO_T}$PERL" >&6 | |
2715 | else | |
2716 | echo "$as_me:$LINENO: result: no" >&5 | |
2717 | echo "${ECHO_T}no" >&6 | |
2718 | fi | |
2719 | ||
2720 | test -n "$PERL" && break | |
2721 | done | |
2722 | ||
2723 | ||
2724 | # Extract the first word of "ent", so it can be a program name with args. | |
2725 | set dummy ent; ac_word=$2 | |
2726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2728 | if test "${ac_cv_path_ENT+set}" = set; then | |
2729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2730 | else | |
2731 | case $ENT in | |
2732 | [\\/]* | ?:[\\/]*) | |
2733 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | |
2734 | ;; | |
2735 | *) | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
2738 | do | |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2743 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | |
2744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2745 | break 2 | |
2746 | fi | |
2747 | done | |
2748 | done | |
2749 | ||
2750 | ;; | |
2751 | esac | |
2752 | fi | |
2753 | ENT=$ac_cv_path_ENT | |
2754 | ||
2755 | if test -n "$ENT"; then | |
2756 | echo "$as_me:$LINENO: result: $ENT" >&5 | |
2757 | echo "${ECHO_T}$ENT" >&6 | |
2758 | else | |
2759 | echo "$as_me:$LINENO: result: no" >&5 | |
2760 | echo "${ECHO_T}no" >&6 | |
2761 | fi | |
2762 | ||
2763 | ||
2764 | for ac_prog in filepriv | |
2765 | do | |
2766 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2767 | set dummy $ac_prog; ac_word=$2 | |
2768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2770 | if test "${ac_cv_path_FILEPRIV+set}" = set; then | |
2771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2772 | else | |
2773 | case $FILEPRIV in | |
2774 | [\\/]* | ?:[\\/]*) | |
2775 | ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path. | |
2776 | ;; | |
2777 | *) | |
2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2779 | as_dummy="/sbin:/usr/sbin" | |
2780 | for as_dir in $as_dummy | |
2781 | do | |
2782 | IFS=$as_save_IFS | |
2783 | test -z "$as_dir" && as_dir=. | |
2784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2785 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2786 | ac_cv_path_FILEPRIV="$as_dir/$ac_word$ac_exec_ext" | |
2787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2788 | break 2 | |
2789 | fi | |
2790 | done | |
2791 | done | |
2792 | ||
2793 | ;; | |
2794 | esac | |
2795 | fi | |
2796 | FILEPRIV=$ac_cv_path_FILEPRIV | |
2797 | ||
2798 | if test -n "$FILEPRIV"; then | |
2799 | echo "$as_me:$LINENO: result: $FILEPRIV" >&5 | |
2800 | echo "${ECHO_T}$FILEPRIV" >&6 | |
2801 | else | |
2802 | echo "$as_me:$LINENO: result: no" >&5 | |
2803 | echo "${ECHO_T}no" >&6 | |
2804 | fi | |
2805 | ||
2806 | test -n "$FILEPRIV" && break | |
2807 | done | |
2808 | test -n "$FILEPRIV" || FILEPRIV="true" | |
2809 | ||
2810 | # Extract the first word of "bash", so it can be a program name with args. | |
2811 | set dummy bash; ac_word=$2 | |
2812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2814 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | |
2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2816 | else | |
2817 | case $TEST_MINUS_S_SH in | |
2818 | [\\/]* | ?:[\\/]*) | |
2819 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | |
2820 | ;; | |
2821 | *) | |
2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2823 | for as_dir in $PATH | |
2824 | do | |
2825 | IFS=$as_save_IFS | |
2826 | test -z "$as_dir" && as_dir=. | |
2827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2829 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | |
2830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2831 | break 2 | |
2832 | fi | |
2833 | done | |
2834 | done | |
2835 | ||
2836 | ;; | |
2837 | esac | |
2838 | fi | |
2839 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | |
2840 | ||
2841 | if test -n "$TEST_MINUS_S_SH"; then | |
2842 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | |
2843 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | |
2844 | else | |
2845 | echo "$as_me:$LINENO: result: no" >&5 | |
2846 | echo "${ECHO_T}no" >&6 | |
2847 | fi | |
2848 | ||
2849 | # Extract the first word of "ksh", so it can be a program name with args. | |
2850 | set dummy ksh; ac_word=$2 | |
2851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2853 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | |
2854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2855 | else | |
2856 | case $TEST_MINUS_S_SH in | |
2857 | [\\/]* | ?:[\\/]*) | |
2858 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | |
2859 | ;; | |
2860 | *) | |
2861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2862 | for as_dir in $PATH | |
2863 | do | |
2864 | IFS=$as_save_IFS | |
2865 | test -z "$as_dir" && as_dir=. | |
2866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2868 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | |
2869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2870 | break 2 | |
2871 | fi | |
2872 | done | |
2873 | done | |
2874 | ||
2875 | ;; | |
2876 | esac | |
2877 | fi | |
2878 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | |
2879 | ||
2880 | if test -n "$TEST_MINUS_S_SH"; then | |
2881 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | |
2882 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | |
2883 | else | |
2884 | echo "$as_me:$LINENO: result: no" >&5 | |
2885 | echo "${ECHO_T}no" >&6 | |
2886 | fi | |
2887 | ||
2888 | # Extract the first word of "sh", so it can be a program name with args. | |
2889 | set dummy sh; ac_word=$2 | |
2890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2892 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | |
2893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2894 | else | |
2895 | case $TEST_MINUS_S_SH in | |
2896 | [\\/]* | ?:[\\/]*) | |
2897 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | |
2898 | ;; | |
2899 | *) | |
2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2901 | for as_dir in $PATH | |
2902 | do | |
2903 | IFS=$as_save_IFS | |
2904 | test -z "$as_dir" && as_dir=. | |
2905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2907 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | |
2908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2909 | break 2 | |
2910 | fi | |
2911 | done | |
2912 | done | |
2913 | ||
2914 | ;; | |
2915 | esac | |
2916 | fi | |
2917 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | |
2918 | ||
2919 | if test -n "$TEST_MINUS_S_SH"; then | |
2920 | echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | |
2921 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6 | |
2922 | else | |
2923 | echo "$as_me:$LINENO: result: no" >&5 | |
2924 | echo "${ECHO_T}no" >&6 | |
2925 | fi | |
2926 | ||
2927 | # Extract the first word of "sh", so it can be a program name with args. | |
2928 | set dummy sh; ac_word=$2 | |
2929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2931 | if test "${ac_cv_path_SH+set}" = set; then | |
2932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2933 | else | |
2934 | case $SH in | |
2935 | [\\/]* | ?:[\\/]*) | |
2936 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | |
2937 | ;; | |
2938 | *) | |
2939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2940 | for as_dir in $PATH | |
2941 | do | |
2942 | IFS=$as_save_IFS | |
2943 | test -z "$as_dir" && as_dir=. | |
2944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2946 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | |
2947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2948 | break 2 | |
2949 | fi | |
2950 | done | |
2951 | done | |
2952 | ||
2953 | ;; | |
2954 | esac | |
2955 | fi | |
2956 | SH=$ac_cv_path_SH | |
2957 | ||
2958 | if test -n "$SH"; then | |
2959 | echo "$as_me:$LINENO: result: $SH" >&5 | |
2960 | echo "${ECHO_T}$SH" >&6 | |
2961 | else | |
2962 | echo "$as_me:$LINENO: result: no" >&5 | |
2963 | echo "${ECHO_T}no" >&6 | |
2964 | fi | |
2965 | ||
2966 | ||
2967 | # System features | |
2968 | # Check whether --enable-largefile or --disable-largefile was given. | |
2969 | if test "${enable_largefile+set}" = set; then | |
2970 | enableval="$enable_largefile" | |
2971 | ||
2972 | fi; | |
2973 | if test "$enable_largefile" != no; then | |
2974 | ||
2975 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
2976 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
2977 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2979 | else | |
2980 | ac_cv_sys_largefile_CC=no | |
2981 | if test "$GCC" != yes; then | |
2982 | ac_save_CC=$CC | |
2983 | while :; do | |
2984 | # IRIX 6.2 and later do not support large files by default, | |
2985 | # so use the C compiler's -n32 option if that helps. | |
2986 | cat >conftest.$ac_ext <<_ACEOF | |
2987 | #line $LINENO "configure" | |
2988 | #include "confdefs.h" | |
2989 | @%:@include <sys/types.h> | |
2990 | /* Check that off_t can represent 2**63 - 1 correctly. | |
2991 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
2992 | since some C++ compilers masquerading as C compilers | |
2993 | incorrectly reject 9223372036854775807. */ | |
2994 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
2995 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
2996 | && LARGE_OFF_T % 2147483647 == 1) | |
2997 | ? 1 : -1]; | |
2998 | #ifdef F77_DUMMY_MAIN | |
2999 | # ifdef __cplusplus | |
3000 | extern "C" | |
3001 | # endif | |
3002 | int F77_DUMMY_MAIN() { return 1; } | |
3003 | #endif | |
3004 | int | |
3005 | main () | |
3006 | { | |
3007 | ||
3008 | ; | |
3009 | return 0; | |
3010 | } | |
3011 | _ACEOF | |
3012 | rm -f conftest.$ac_objext | |
3013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3014 | (eval $ac_compile) 2>&5 | |
3015 | ac_status=$? | |
3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3017 | (exit $ac_status); } && | |
3018 | { ac_try='test -s conftest.$ac_objext' | |
3019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3020 | (eval $ac_try) 2>&5 | |
3021 | ac_status=$? | |
3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3023 | (exit $ac_status); }; }; then | |
3024 | break | |
3025 | else | |
3026 | echo "$as_me: failed program was:" >&5 | |
3027 | cat conftest.$ac_ext >&5 | |
3028 | fi | |
3029 | rm -f conftest.$ac_objext | |
3030 | CC="$CC -n32" | |
3031 | rm -f conftest.$ac_objext | |
3032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3033 | (eval $ac_compile) 2>&5 | |
3034 | ac_status=$? | |
3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3036 | (exit $ac_status); } && | |
3037 | { ac_try='test -s conftest.$ac_objext' | |
3038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3039 | (eval $ac_try) 2>&5 | |
3040 | ac_status=$? | |
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3042 | (exit $ac_status); }; }; then | |
3043 | ac_cv_sys_largefile_CC=' -n32'; break | |
3044 | else | |
3045 | echo "$as_me: failed program was:" >&5 | |
3046 | cat conftest.$ac_ext >&5 | |
3047 | fi | |
3048 | rm -f conftest.$ac_objext | |
3049 | break | |
3050 | done | |
3051 | CC=$ac_save_CC | |
3052 | rm -f conftest.$ac_ext | |
3053 | fi | |
3054 | fi | |
3055 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
3056 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
3057 | if test "$ac_cv_sys_largefile_CC" != no; then | |
3058 | CC=$CC$ac_cv_sys_largefile_CC | |
3059 | fi | |
3060 | ||
3061 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
3062 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
3063 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3065 | else | |
3066 | while :; do | |
3067 | ac_cv_sys_file_offset_bits=no | |
3068 | cat >conftest.$ac_ext <<_ACEOF | |
3069 | #line $LINENO "configure" | |
3070 | #include "confdefs.h" | |
3071 | @%:@include <sys/types.h> | |
3072 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3073 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3074 | since some C++ compilers masquerading as C compilers | |
3075 | incorrectly reject 9223372036854775807. */ | |
3076 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3077 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3078 | && LARGE_OFF_T % 2147483647 == 1) | |
3079 | ? 1 : -1]; | |
3080 | #ifdef F77_DUMMY_MAIN | |
3081 | # ifdef __cplusplus | |
3082 | extern "C" | |
3083 | # endif | |
3084 | int F77_DUMMY_MAIN() { return 1; } | |
3085 | #endif | |
3086 | int | |
3087 | main () | |
3088 | { | |
3089 | ||
3090 | ; | |
3091 | return 0; | |
3092 | } | |
3093 | _ACEOF | |
3094 | rm -f conftest.$ac_objext | |
3095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3096 | (eval $ac_compile) 2>&5 | |
3097 | ac_status=$? | |
3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3099 | (exit $ac_status); } && | |
3100 | { ac_try='test -s conftest.$ac_objext' | |
3101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3102 | (eval $ac_try) 2>&5 | |
3103 | ac_status=$? | |
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3105 | (exit $ac_status); }; }; then | |
3106 | break | |
3107 | else | |
3108 | echo "$as_me: failed program was:" >&5 | |
3109 | cat conftest.$ac_ext >&5 | |
3110 | fi | |
3111 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | #line $LINENO "configure" | |
3114 | #include "confdefs.h" | |
3115 | @%:@define _FILE_OFFSET_BITS 64 | |
3116 | @%:@include <sys/types.h> | |
3117 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3118 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3119 | since some C++ compilers masquerading as C compilers | |
3120 | incorrectly reject 9223372036854775807. */ | |
3121 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3122 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3123 | && LARGE_OFF_T % 2147483647 == 1) | |
3124 | ? 1 : -1]; | |
3125 | #ifdef F77_DUMMY_MAIN | |
3126 | # ifdef __cplusplus | |
3127 | extern "C" | |
3128 | # endif | |
3129 | int F77_DUMMY_MAIN() { return 1; } | |
3130 | #endif | |
3131 | int | |
3132 | main () | |
3133 | { | |
3134 | ||
3135 | ; | |
3136 | return 0; | |
3137 | } | |
3138 | _ACEOF | |
3139 | rm -f conftest.$ac_objext | |
3140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3141 | (eval $ac_compile) 2>&5 | |
3142 | ac_status=$? | |
3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3144 | (exit $ac_status); } && | |
3145 | { ac_try='test -s conftest.$ac_objext' | |
3146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3147 | (eval $ac_try) 2>&5 | |
3148 | ac_status=$? | |
3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3150 | (exit $ac_status); }; }; then | |
3151 | ac_cv_sys_file_offset_bits=64; break | |
3152 | else | |
3153 | echo "$as_me: failed program was:" >&5 | |
3154 | cat conftest.$ac_ext >&5 | |
3155 | fi | |
3156 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3157 | break | |
3158 | done | |
3159 | fi | |
3160 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
3161 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
3162 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
3163 | ||
3164 | cat >>confdefs.h <<_ACEOF | |
3165 | @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3166 | _ACEOF | |
3167 | ||
3168 | fi | |
3169 | rm -f conftest* | |
3170 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
3171 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
3172 | if test "${ac_cv_sys_large_files+set}" = set; then | |
3173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3174 | else | |
3175 | while :; do | |
3176 | ac_cv_sys_large_files=no | |
3177 | cat >conftest.$ac_ext <<_ACEOF | |
3178 | #line $LINENO "configure" | |
3179 | #include "confdefs.h" | |
3180 | @%:@include <sys/types.h> | |
3181 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3182 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3183 | since some C++ compilers masquerading as C compilers | |
3184 | incorrectly reject 9223372036854775807. */ | |
3185 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3186 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3187 | && LARGE_OFF_T % 2147483647 == 1) | |
3188 | ? 1 : -1]; | |
3189 | #ifdef F77_DUMMY_MAIN | |
3190 | # ifdef __cplusplus | |
3191 | extern "C" | |
3192 | # endif | |
3193 | int F77_DUMMY_MAIN() { return 1; } | |
3194 | #endif | |
3195 | int | |
3196 | main () | |
3197 | { | |
3198 | ||
3199 | ; | |
3200 | return 0; | |
3201 | } | |
3202 | _ACEOF | |
3203 | rm -f conftest.$ac_objext | |
3204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3205 | (eval $ac_compile) 2>&5 | |
3206 | ac_status=$? | |
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3208 | (exit $ac_status); } && | |
3209 | { ac_try='test -s conftest.$ac_objext' | |
3210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3211 | (eval $ac_try) 2>&5 | |
3212 | ac_status=$? | |
3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3214 | (exit $ac_status); }; }; then | |
3215 | break | |
3216 | else | |
3217 | echo "$as_me: failed program was:" >&5 | |
3218 | cat conftest.$ac_ext >&5 | |
3219 | fi | |
3220 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3221 | cat >conftest.$ac_ext <<_ACEOF | |
3222 | #line $LINENO "configure" | |
3223 | #include "confdefs.h" | |
3224 | @%:@define _LARGE_FILES 1 | |
3225 | @%:@include <sys/types.h> | |
3226 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3227 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3228 | since some C++ compilers masquerading as C compilers | |
3229 | incorrectly reject 9223372036854775807. */ | |
3230 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3231 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3232 | && LARGE_OFF_T % 2147483647 == 1) | |
3233 | ? 1 : -1]; | |
3234 | #ifdef F77_DUMMY_MAIN | |
3235 | # ifdef __cplusplus | |
3236 | extern "C" | |
3237 | # endif | |
3238 | int F77_DUMMY_MAIN() { return 1; } | |
3239 | #endif | |
3240 | int | |
3241 | main () | |
3242 | { | |
3243 | ||
3244 | ; | |
3245 | return 0; | |
3246 | } | |
3247 | _ACEOF | |
3248 | rm -f conftest.$ac_objext | |
3249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3250 | (eval $ac_compile) 2>&5 | |
3251 | ac_status=$? | |
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3253 | (exit $ac_status); } && | |
3254 | { ac_try='test -s conftest.$ac_objext' | |
3255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3256 | (eval $ac_try) 2>&5 | |
3257 | ac_status=$? | |
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3259 | (exit $ac_status); }; }; then | |
3260 | ac_cv_sys_large_files=1; break | |
3261 | else | |
3262 | echo "$as_me: failed program was:" >&5 | |
3263 | cat conftest.$ac_ext >&5 | |
3264 | fi | |
3265 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3266 | break | |
3267 | done | |
3268 | fi | |
3269 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
3270 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3271 | if test "$ac_cv_sys_large_files" != no; then | |
3272 | ||
3273 | cat >>confdefs.h <<_ACEOF | |
3274 | @%:@define _LARGE_FILES $ac_cv_sys_large_files | |
3275 | _ACEOF | |
3276 | ||
3277 | fi | |
3278 | rm -f conftest* | |
3279 | fi | |
3280 | ||
3281 | ||
3282 | if test -z "$AR" ; then | |
3283 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | |
3284 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | |
3285 | { (exit 1); exit 1; }; } | |
3286 | fi | |
3287 | ||
3288 | # Use LOGIN_PROGRAM from environment if possible | |
3289 | if test ! -z "$LOGIN_PROGRAM" ; then | |
3290 | cat >>confdefs.h <<_ACEOF | |
3291 | @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | |
3292 | _ACEOF | |
3293 | ||
3294 | else | |
3295 | # Search for login | |
3296 | # Extract the first word of "login", so it can be a program name with args. | |
3297 | set dummy login; ac_word=$2 | |
3298 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3300 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | |
3301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3302 | else | |
3303 | case $LOGIN_PROGRAM_FALLBACK in | |
3304 | [\\/]* | ?:[\\/]*) | |
3305 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | |
3306 | ;; | |
3307 | *) | |
3308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3309 | for as_dir in $PATH | |
3310 | do | |
3311 | IFS=$as_save_IFS | |
3312 | test -z "$as_dir" && as_dir=. | |
3313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3315 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | |
3316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3317 | break 2 | |
3318 | fi | |
3319 | done | |
3320 | done | |
3321 | ||
3322 | ;; | |
3323 | esac | |
3324 | fi | |
3325 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | |
3326 | ||
3327 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | |
3328 | echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | |
3329 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6 | |
3330 | else | |
3331 | echo "$as_me:$LINENO: result: no" >&5 | |
3332 | echo "${ECHO_T}no" >&6 | |
3333 | fi | |
3334 | ||
3335 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | |
3336 | cat >>confdefs.h <<_ACEOF | |
3337 | @%:@define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | |
3338 | _ACEOF | |
3339 | ||
3340 | fi | |
3341 | fi | |
3342 | ||
3343 | if test -z "$LD" ; then | |
3344 | LD=$CC | |
3345 | fi | |
3346 | ||
3347 | ||
3348 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
3349 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3350 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3352 | else | |
3353 | ac_cv_prog_cc_stdc=no | |
3354 | ac_save_CC=$CC | |
3355 | cat >conftest.$ac_ext <<_ACEOF | |
3356 | #line $LINENO "configure" | |
3357 | #include "confdefs.h" | |
3358 | #include <stdarg.h> | |
3359 | #include <stdio.h> | |
3360 | #include <sys/types.h> | |
3361 | #include <sys/stat.h> | |
3362 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3363 | struct buf { int x; }; | |
3364 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3365 | static char *e (p, i) | |
3366 | char **p; | |
3367 | int i; | |
3368 | { | |
3369 | return p[i]; | |
3370 | } | |
3371 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3372 | { | |
3373 | char *s; | |
3374 | va_list v; | |
3375 | va_start (v,p); | |
3376 | s = g (p, va_arg (v,int)); | |
3377 | va_end (v); | |
3378 | return s; | |
3379 | } | |
3380 | int test (int i, double x); | |
3381 | struct s1 {int (*f) (int a);}; | |
3382 | struct s2 {int (*f) (double a);}; | |
3383 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3384 | int argc; | |
3385 | char **argv; | |
3386 | #ifdef F77_DUMMY_MAIN | |
3387 | # ifdef __cplusplus | |
3388 | extern "C" | |
3389 | # endif | |
3390 | int F77_DUMMY_MAIN() { return 1; } | |
3391 | #endif | |
3392 | int | |
3393 | main () | |
3394 | { | |
3395 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3396 | ; | |
3397 | return 0; | |
3398 | } | |
3399 | _ACEOF | |
3400 | # Don't try gcc -ansi; that turns off useful extensions and | |
3401 | # breaks some systems' header files. | |
3402 | # AIX -qlanglvl=ansi | |
3403 | # Ultrix and OSF/1 -std1 | |
3404 | # HP-UX 10.20 and later -Ae | |
3405 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3406 | # SVR4 -Xc -D__EXTENSIONS__ | |
3407 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3408 | do | |
3409 | CC="$ac_save_CC $ac_arg" | |
3410 | rm -f conftest.$ac_objext | |
3411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3412 | (eval $ac_compile) 2>&5 | |
3413 | ac_status=$? | |
3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3415 | (exit $ac_status); } && | |
3416 | { ac_try='test -s conftest.$ac_objext' | |
3417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3418 | (eval $ac_try) 2>&5 | |
3419 | ac_status=$? | |
3420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3421 | (exit $ac_status); }; }; then | |
3422 | ac_cv_prog_cc_stdc=$ac_arg | |
3423 | break | |
3424 | else | |
3425 | echo "$as_me: failed program was:" >&5 | |
3426 | cat conftest.$ac_ext >&5 | |
3427 | fi | |
3428 | rm -f conftest.$ac_objext | |
3429 | done | |
3430 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3431 | CC=$ac_save_CC | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | case "x$ac_cv_prog_cc_stdc" in | |
3436 | x|xno) | |
3437 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3438 | echo "${ECHO_T}none needed" >&6 ;; | |
3439 | *) | |
3440 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3441 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3442 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3443 | esac | |
3444 | ||
3445 | echo "$as_me:$LINENO: checking for inline" >&5 | |
3446 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3447 | if test "${ac_cv_c_inline+set}" = set; then | |
3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3449 | else | |
3450 | ac_cv_c_inline=no | |
3451 | for ac_kw in inline __inline__ __inline; do | |
3452 | cat >conftest.$ac_ext <<_ACEOF | |
3453 | #line $LINENO "configure" | |
3454 | #include "confdefs.h" | |
3455 | #ifndef __cplusplus | |
3456 | static $ac_kw int static_foo () {return 0; } | |
3457 | $ac_kw int foo () {return 0; } | |
3458 | #endif | |
3459 | ||
3460 | _ACEOF | |
3461 | rm -f conftest.$ac_objext | |
3462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3463 | (eval $ac_compile) 2>&5 | |
3464 | ac_status=$? | |
3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3466 | (exit $ac_status); } && | |
3467 | { ac_try='test -s conftest.$ac_objext' | |
3468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3469 | (eval $ac_try) 2>&5 | |
3470 | ac_status=$? | |
3471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3472 | (exit $ac_status); }; }; then | |
3473 | ac_cv_c_inline=$ac_kw; break | |
3474 | else | |
3475 | echo "$as_me: failed program was:" >&5 | |
3476 | cat conftest.$ac_ext >&5 | |
3477 | fi | |
3478 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3479 | done | |
3480 | ||
3481 | fi | |
3482 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3483 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3484 | case $ac_cv_c_inline in | |
3485 | inline | yes) ;; | |
3486 | no) | |
3487 | cat >>confdefs.h <<\_ACEOF | |
3488 | @%:@define inline | |
3489 | _ACEOF | |
3490 | ;; | |
3491 | *) cat >>confdefs.h <<_ACEOF | |
3492 | @%:@define inline $ac_cv_c_inline | |
3493 | _ACEOF | |
3494 | ;; | |
3495 | esac | |
3496 | ||
3497 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | |
3498 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized" | |
3499 | fi | |
3500 | ||
3501 | # Check for some target-specific stuff | |
3502 | case "$host" in | |
3503 | *-*-aix*) | |
3504 | AFS_LIBS="-lld" | |
3505 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
3506 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
3507 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | |
3508 | echo "$as_me:$LINENO: checking if linkage editor ($LD) accepts -blibpath" >&5 | |
3509 | echo $ECHO_N "checking if linkage editor ($LD) accepts -blibpath... $ECHO_C" >&6 | |
3510 | saved_LDFLAGS="$LDFLAGS" | |
3511 | LDFLAGS="$LDFLAGS -blibpath:/usr/lib:/lib:/usr/local/lib" | |
3512 | cat >conftest.$ac_ext <<_ACEOF | |
3513 | #line $LINENO "configure" | |
3514 | #include "confdefs.h" | |
3515 | ||
3516 | #ifdef F77_DUMMY_MAIN | |
3517 | # ifdef __cplusplus | |
3518 | extern "C" | |
3519 | # endif | |
3520 | int F77_DUMMY_MAIN() { return 1; } | |
3521 | #endif | |
3522 | int | |
3523 | main () | |
3524 | { | |
3525 | ||
3526 | ; | |
3527 | return 0; | |
3528 | } | |
3529 | _ACEOF | |
3530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3532 | (eval $ac_link) 2>&5 | |
3533 | ac_status=$? | |
3534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3535 | (exit $ac_status); } && | |
3536 | { ac_try='test -s conftest$ac_exeext' | |
3537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3538 | (eval $ac_try) 2>&5 | |
3539 | ac_status=$? | |
3540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3541 | (exit $ac_status); }; }; then | |
3542 | ||
3543 | echo "$as_me:$LINENO: result: yes" >&5 | |
3544 | echo "${ECHO_T}yes" >&6 | |
3545 | blibpath="/usr/lib:/lib:/usr/local/lib" | |
3546 | ||
3547 | else | |
3548 | echo "$as_me: failed program was:" >&5 | |
3549 | cat conftest.$ac_ext >&5 | |
3550 | echo "$as_me:$LINENO: result: no" >&5 | |
3551 | echo "${ECHO_T}no" >&6 | |
3552 | ||
3553 | fi | |
3554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3555 | LDFLAGS="$saved_LDFLAGS" | |
3556 | fi | |
3557 | echo "$as_me:$LINENO: checking for authenticate" >&5 | |
3558 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6 | |
3559 | if test "${ac_cv_func_authenticate+set}" = set; then | |
3560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3561 | else | |
3562 | cat >conftest.$ac_ext <<_ACEOF | |
3563 | #line $LINENO "configure" | |
3564 | #include "confdefs.h" | |
3565 | /* System header to define __stub macros and hopefully few prototypes, | |
3566 | which can conflict with char authenticate (); below. */ | |
3567 | #include <assert.h> | |
3568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3569 | #ifdef __cplusplus | |
3570 | extern "C" | |
3571 | #endif | |
3572 | /* We use char because int might match the return type of a gcc2 | |
3573 | builtin and then its argument prototype would still apply. */ | |
3574 | char authenticate (); | |
3575 | char (*f) (); | |
3576 | ||
3577 | #ifdef F77_DUMMY_MAIN | |
3578 | # ifdef __cplusplus | |
3579 | extern "C" | |
3580 | # endif | |
3581 | int F77_DUMMY_MAIN() { return 1; } | |
3582 | #endif | |
3583 | int | |
3584 | main () | |
3585 | { | |
3586 | /* The GNU C library defines this for functions which it implements | |
3587 | to always fail with ENOSYS. Some functions are actually named | |
3588 | something starting with __ and the normal name is an alias. */ | |
3589 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | |
3590 | choke me | |
3591 | #else | |
3592 | f = authenticate; | |
3593 | #endif | |
3594 | ||
3595 | ; | |
3596 | return 0; | |
3597 | } | |
3598 | _ACEOF | |
3599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3601 | (eval $ac_link) 2>&5 | |
3602 | ac_status=$? | |
3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3604 | (exit $ac_status); } && | |
3605 | { ac_try='test -s conftest$ac_exeext' | |
3606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3607 | (eval $ac_try) 2>&5 | |
3608 | ac_status=$? | |
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3610 | (exit $ac_status); }; }; then | |
3611 | ac_cv_func_authenticate=yes | |
3612 | else | |
3613 | echo "$as_me: failed program was:" >&5 | |
3614 | cat conftest.$ac_ext >&5 | |
3615 | ac_cv_func_authenticate=no | |
3616 | fi | |
3617 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3618 | fi | |
3619 | echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | |
3620 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6 | |
3621 | if test $ac_cv_func_authenticate = yes; then | |
3622 | cat >>confdefs.h <<\_ACEOF | |
3623 | @%:@define WITH_AIXAUTHENTICATE 1 | |
3624 | _ACEOF | |
3625 | ||
3626 | fi | |
3627 | ||
3628 | cat >>confdefs.h <<\_ACEOF | |
3629 | @%:@define BROKEN_GETADDRINFO 1 | |
3630 | _ACEOF | |
3631 | ||
3632 | cat >>confdefs.h <<\_ACEOF | |
3633 | @%:@define BROKEN_REALPATH 1 | |
3634 | _ACEOF | |
3635 | ||
3636 | cat >>confdefs.h <<\_ACEOF | |
3637 | @%:@define DISABLE_LASTLOG 1 | |
3638 | _ACEOF | |
3639 | ||
3640 | ;; | |
3641 | *-*-cygwin*) | |
3642 | LIBS="$LIBS /usr/lib/textmode.o" | |
3643 | cat >>confdefs.h <<\_ACEOF | |
3644 | @%:@define HAVE_CYGWIN 1 | |
3645 | _ACEOF | |
3646 | ||
3647 | cat >>confdefs.h <<\_ACEOF | |
3648 | @%:@define USE_PIPES 1 | |
3649 | _ACEOF | |
3650 | ||
3651 | cat >>confdefs.h <<\_ACEOF | |
3652 | @%:@define DISABLE_SHADOW 1 | |
3653 | _ACEOF | |
3654 | ||
3655 | cat >>confdefs.h <<\_ACEOF | |
3656 | @%:@define IPV4_DEFAULT 1 | |
3657 | _ACEOF | |
3658 | ||
3659 | cat >>confdefs.h <<\_ACEOF | |
3660 | @%:@define IP_TOS_IS_BROKEN 1 | |
3661 | _ACEOF | |
3662 | ||
3663 | cat >>confdefs.h <<\_ACEOF | |
3664 | @%:@define NO_X11_UNIX_SOCKETS 1 | |
f5799ae1 | 3665 | _ACEOF |
3666 | ||
3667 | cat >>confdefs.h <<\_ACEOF | |
3668 | @%:@define SETGROUPS_NOOP 1 | |
700318f3 | 3669 | _ACEOF |
3670 | ||
3671 | ;; | |
3672 | *-*-dgux*) | |
3673 | cat >>confdefs.h <<\_ACEOF | |
3674 | @%:@define IP_TOS_IS_BROKEN 1 | |
3675 | _ACEOF | |
3676 | ||
3677 | ;; | |
3678 | *-*-darwin*) | |
3679 | cat >>confdefs.h <<\_ACEOF | |
3680 | @%:@define BROKEN_GETADDRINFO 1 | |
3681 | _ACEOF | |
3682 | ||
3683 | ;; | |
3684 | *-*-hpux10.26) | |
3685 | if test -z "$GCC"; then | |
3686 | CFLAGS="$CFLAGS -Ae" | |
3687 | fi | |
3688 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | |
3689 | IPADDR_IN_DISPLAY=yes | |
3690 | cat >>confdefs.h <<\_ACEOF | |
3691 | @%:@define HAVE_SECUREWARE 1 | |
3692 | _ACEOF | |
3693 | ||
3694 | cat >>confdefs.h <<\_ACEOF | |
3695 | @%:@define USE_PIPES 1 | |
3696 | _ACEOF | |
3697 | ||
3698 | cat >>confdefs.h <<\_ACEOF | |
3699 | @%:@define LOGIN_NO_ENDOPT 1 | |
3700 | _ACEOF | |
3701 | ||
3702 | cat >>confdefs.h <<\_ACEOF | |
3703 | @%:@define LOGIN_NEEDS_UTMPX 1 | |
3704 | _ACEOF | |
3705 | ||
3706 | cat >>confdefs.h <<\_ACEOF | |
3707 | @%:@define DISABLE_SHADOW 1 | |
3708 | _ACEOF | |
3709 | ||
3710 | cat >>confdefs.h <<\_ACEOF | |
3711 | @%:@define DISABLE_UTMP 1 | |
3712 | _ACEOF | |
3713 | ||
3714 | cat >>confdefs.h <<\_ACEOF | |
3715 | @%:@define SPT_TYPE SPT_PSTAT | |
3716 | _ACEOF | |
3717 | ||
3718 | LIBS="$LIBS -lxnet -lsec -lsecpw" | |
3719 | disable_ptmx_check=yes | |
3720 | ;; | |
3721 | *-*-hpux10*) | |
3722 | if test -z "$GCC"; then | |
3723 | CFLAGS="$CFLAGS -Ae" | |
3724 | fi | |
3725 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | |
3726 | IPADDR_IN_DISPLAY=yes | |
3727 | cat >>confdefs.h <<\_ACEOF | |
3728 | @%:@define USE_PIPES 1 | |
3729 | _ACEOF | |
3730 | ||
3731 | cat >>confdefs.h <<\_ACEOF | |
3732 | @%:@define LOGIN_NO_ENDOPT 1 | |
3733 | _ACEOF | |
3734 | ||
3735 | cat >>confdefs.h <<\_ACEOF | |
3736 | @%:@define LOGIN_NEEDS_UTMPX 1 | |
3737 | _ACEOF | |
3738 | ||
3739 | cat >>confdefs.h <<\_ACEOF | |
3740 | @%:@define DISABLE_SHADOW 1 | |
3741 | _ACEOF | |
3742 | ||
3743 | cat >>confdefs.h <<\_ACEOF | |
3744 | @%:@define DISABLE_UTMP 1 | |
3745 | _ACEOF | |
3746 | ||
3747 | cat >>confdefs.h <<\_ACEOF | |
3748 | @%:@define SPT_TYPE SPT_PSTAT | |
3749 | _ACEOF | |
3750 | ||
3751 | LIBS="$LIBS -lxnet -lsec" | |
3752 | ;; | |
3753 | *-*-hpux11*) | |
3754 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | |
3755 | IPADDR_IN_DISPLAY=yes | |
3756 | cat >>confdefs.h <<\_ACEOF | |
3757 | @%:@define PAM_SUN_CODEBASE 1 | |
3758 | _ACEOF | |
3759 | ||
3760 | cat >>confdefs.h <<\_ACEOF | |
3761 | @%:@define USE_PIPES 1 | |
3762 | _ACEOF | |
3763 | ||
3764 | cat >>confdefs.h <<\_ACEOF | |
3765 | @%:@define LOGIN_NO_ENDOPT 1 | |
3766 | _ACEOF | |
3767 | ||
3768 | cat >>confdefs.h <<\_ACEOF | |
3769 | @%:@define LOGIN_NEEDS_UTMPX 1 | |
3770 | _ACEOF | |
3771 | ||
3772 | cat >>confdefs.h <<\_ACEOF | |
3773 | @%:@define DISABLE_SHADOW 1 | |
3774 | _ACEOF | |
3775 | ||
3776 | cat >>confdefs.h <<\_ACEOF | |
3777 | @%:@define DISABLE_UTMP 1 | |
3778 | _ACEOF | |
3779 | ||
3780 | cat >>confdefs.h <<\_ACEOF | |
3781 | @%:@define SPT_TYPE SPT_PSTAT | |
3782 | _ACEOF | |
3783 | ||
3784 | LIBS="$LIBS -lxnet -lsec" | |
3785 | ;; | |
3786 | *-*-irix5*) | |
3787 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
3788 | LDFLAGS="$LDFLAGS" | |
3789 | PATH="$PATH:/usr/etc" | |
3790 | cat >>confdefs.h <<\_ACEOF | |
3791 | @%:@define BROKEN_INET_NTOA 1 | |
3792 | _ACEOF | |
3793 | ||
3794 | cat >>confdefs.h <<\_ACEOF | |
3795 | @%:@define WITH_ABBREV_NO_TTY 1 | |
3796 | _ACEOF | |
3797 | ||
3798 | ;; | |
3799 | *-*-irix6*) | |
3800 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
3801 | LDFLAGS="$LDFLAGS" | |
3802 | PATH="$PATH:/usr/etc" | |
3803 | cat >>confdefs.h <<\_ACEOF | |
3804 | @%:@define WITH_IRIX_ARRAY 1 | |
3805 | _ACEOF | |
3806 | ||
3807 | cat >>confdefs.h <<\_ACEOF | |
3808 | @%:@define WITH_IRIX_PROJECT 1 | |
3809 | _ACEOF | |
3810 | ||
3811 | cat >>confdefs.h <<\_ACEOF | |
3812 | @%:@define WITH_IRIX_AUDIT 1 | |
3813 | _ACEOF | |
3814 | ||
3815 | echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | |
3816 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6 | |
3817 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | |
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3819 | else | |
3820 | cat >conftest.$ac_ext <<_ACEOF | |
3821 | #line $LINENO "configure" | |
3822 | #include "confdefs.h" | |
3823 | /* System header to define __stub macros and hopefully few prototypes, | |
3824 | which can conflict with char jlimit_startjob (); below. */ | |
3825 | #include <assert.h> | |
3826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3827 | #ifdef __cplusplus | |
3828 | extern "C" | |
3829 | #endif | |
3830 | /* We use char because int might match the return type of a gcc2 | |
3831 | builtin and then its argument prototype would still apply. */ | |
3832 | char jlimit_startjob (); | |
3833 | char (*f) (); | |
3834 | ||
3835 | #ifdef F77_DUMMY_MAIN | |
3836 | # ifdef __cplusplus | |
3837 | extern "C" | |
3838 | # endif | |
3839 | int F77_DUMMY_MAIN() { return 1; } | |
3840 | #endif | |
3841 | int | |
3842 | main () | |
3843 | { | |
3844 | /* The GNU C library defines this for functions which it implements | |
3845 | to always fail with ENOSYS. Some functions are actually named | |
3846 | something starting with __ and the normal name is an alias. */ | |
3847 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | |
3848 | choke me | |
3849 | #else | |
3850 | f = jlimit_startjob; | |
3851 | #endif | |
3852 | ||
3853 | ; | |
3854 | return 0; | |
3855 | } | |
3856 | _ACEOF | |
3857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3859 | (eval $ac_link) 2>&5 | |
3860 | ac_status=$? | |
3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3862 | (exit $ac_status); } && | |
3863 | { ac_try='test -s conftest$ac_exeext' | |
3864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3865 | (eval $ac_try) 2>&5 | |
3866 | ac_status=$? | |
3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3868 | (exit $ac_status); }; }; then | |
3869 | ac_cv_func_jlimit_startjob=yes | |
3870 | else | |
3871 | echo "$as_me: failed program was:" >&5 | |
3872 | cat conftest.$ac_ext >&5 | |
3873 | ac_cv_func_jlimit_startjob=no | |
3874 | fi | |
3875 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3876 | fi | |
3877 | echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | |
3878 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6 | |
3879 | if test $ac_cv_func_jlimit_startjob = yes; then | |
3880 | cat >>confdefs.h <<\_ACEOF | |
3881 | @%:@define WITH_IRIX_JOBS 1 | |
3882 | _ACEOF | |
3883 | ||
3884 | fi | |
3885 | ||
3886 | cat >>confdefs.h <<\_ACEOF | |
3887 | @%:@define BROKEN_INET_NTOA 1 | |
3888 | _ACEOF | |
3889 | ||
3890 | cat >>confdefs.h <<\_ACEOF | |
3891 | @%:@define WITH_ABBREV_NO_TTY 1 | |
3892 | _ACEOF | |
3893 | ||
3894 | ;; | |
3895 | *-*-linux*) | |
3896 | no_dev_ptmx=1 | |
3897 | check_for_libcrypt_later=1 | |
3898 | cat >>confdefs.h <<\_ACEOF | |
3899 | @%:@define DONT_TRY_OTHER_AF 1 | |
3900 | _ACEOF | |
3901 | ||
3902 | cat >>confdefs.h <<\_ACEOF | |
3903 | @%:@define PAM_TTY_KLUDGE 1 | |
3904 | _ACEOF | |
3905 | ||
3906 | inet6_default_4in6=yes | |
3907 | ;; | |
3908 | mips-sony-bsd|mips-sony-newsos4) | |
3909 | cat >>confdefs.h <<\_ACEOF | |
3910 | @%:@define HAVE_NEWS4 1 | |
3911 | _ACEOF | |
3912 | ||
3913 | SONY=1 | |
3914 | ;; | |
3915 | *-*-netbsd*) | |
3916 | need_dash_r=1 | |
3917 | ;; | |
3918 | *-*-freebsd*) | |
3919 | check_for_libcrypt_later=1 | |
3920 | ;; | |
3921 | *-next-*) | |
3922 | conf_lastlog_location="/usr/adm/lastlog" | |
3923 | conf_utmp_location=/etc/utmp | |
3924 | conf_wtmp_location=/usr/adm/wtmp | |
3925 | MAIL=/usr/spool/mail | |
3926 | cat >>confdefs.h <<\_ACEOF | |
3927 | @%:@define HAVE_NEXT 1 | |
3928 | _ACEOF | |
3929 | ||
3930 | cat >>confdefs.h <<\_ACEOF | |
3931 | @%:@define BROKEN_REALPATH 1 | |
3932 | _ACEOF | |
3933 | ||
3934 | cat >>confdefs.h <<\_ACEOF | |
3935 | @%:@define USE_PIPES 1 | |
3936 | _ACEOF | |
3937 | ||
3938 | cat >>confdefs.h <<\_ACEOF | |
3939 | @%:@define BROKEN_SAVED_UIDS 1 | |
3940 | _ACEOF | |
3941 | ||
3942 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
3943 | CFLAGS="$CFLAGS" | |
3944 | ;; | |
3945 | *-*-solaris*) | |
3946 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
3947 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | |
3948 | need_dash_r=1 | |
3949 | cat >>confdefs.h <<\_ACEOF | |
3950 | @%:@define PAM_SUN_CODEBASE 1 | |
3951 | _ACEOF | |
3952 | ||
3953 | cat >>confdefs.h <<\_ACEOF | |
3954 | @%:@define LOGIN_NEEDS_UTMPX 1 | |
3955 | _ACEOF | |
3956 | ||
3957 | cat >>confdefs.h <<\_ACEOF | |
3958 | @%:@define LOGIN_NEEDS_TERM 1 | |
3959 | _ACEOF | |
3960 | ||
3961 | cat >>confdefs.h <<\_ACEOF | |
3962 | @%:@define PAM_TTY_KLUDGE 1 | |
3963 | _ACEOF | |
3964 | ||
3965 | # hardwire lastlog location (can't detect it on some versions) | |
3966 | conf_lastlog_location="/var/adm/lastlog" | |
3967 | echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | |
3968 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 | |
3969 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | |
3970 | if test "$sol2ver" -ge 8; then | |
3971 | echo "$as_me:$LINENO: result: yes" >&5 | |
3972 | echo "${ECHO_T}yes" >&6 | |
3973 | cat >>confdefs.h <<\_ACEOF | |
3974 | @%:@define DISABLE_UTMP 1 | |
3975 | _ACEOF | |
3976 | ||
3977 | cat >>confdefs.h <<\_ACEOF | |
3978 | @%:@define DISABLE_WTMP 1 | |
3979 | _ACEOF | |
3980 | ||
3981 | else | |
3982 | echo "$as_me:$LINENO: result: no" >&5 | |
3983 | echo "${ECHO_T}no" >&6 | |
3984 | fi | |
3985 | ;; | |
3986 | *-*-sunos4*) | |
3987 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | |
3988 | ||
3989 | for ac_func in getpwanam | |
3990 | do | |
3991 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3992 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3993 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3994 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3996 | else | |
3997 | cat >conftest.$ac_ext <<_ACEOF | |
3998 | #line $LINENO "configure" | |
3999 | #include "confdefs.h" | |
4000 | /* System header to define __stub macros and hopefully few prototypes, | |
4001 | which can conflict with char $ac_func (); below. */ | |
4002 | #include <assert.h> | |
4003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4004 | #ifdef __cplusplus | |
4005 | extern "C" | |
4006 | #endif | |
4007 | /* We use char because int might match the return type of a gcc2 | |
4008 | builtin and then its argument prototype would still apply. */ | |
4009 | char $ac_func (); | |
4010 | char (*f) (); | |
4011 | ||
4012 | #ifdef F77_DUMMY_MAIN | |
4013 | # ifdef __cplusplus | |
4014 | extern "C" | |
4015 | # endif | |
4016 | int F77_DUMMY_MAIN() { return 1; } | |
4017 | #endif | |
4018 | int | |
4019 | main () | |
4020 | { | |
4021 | /* The GNU C library defines this for functions which it implements | |
4022 | to always fail with ENOSYS. Some functions are actually named | |
4023 | something starting with __ and the normal name is an alias. */ | |
4024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4025 | choke me | |
4026 | #else | |
4027 | f = $ac_func; | |
4028 | #endif | |
4029 | ||
4030 | ; | |
4031 | return 0; | |
4032 | } | |
4033 | _ACEOF | |
4034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4036 | (eval $ac_link) 2>&5 | |
4037 | ac_status=$? | |
4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4039 | (exit $ac_status); } && | |
4040 | { ac_try='test -s conftest$ac_exeext' | |
4041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4042 | (eval $ac_try) 2>&5 | |
4043 | ac_status=$? | |
4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4045 | (exit $ac_status); }; }; then | |
4046 | eval "$as_ac_var=yes" | |
4047 | else | |
4048 | echo "$as_me: failed program was:" >&5 | |
4049 | cat conftest.$ac_ext >&5 | |
4050 | eval "$as_ac_var=no" | |
4051 | fi | |
4052 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4053 | fi | |
4054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4055 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4056 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4057 | cat >>confdefs.h <<_ACEOF | |
4058 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4059 | _ACEOF | |
4060 | ||
4061 | fi | |
4062 | done | |
4063 | ||
4064 | cat >>confdefs.h <<\_ACEOF | |
4065 | @%:@define PAM_SUN_CODEBASE 1 | |
4066 | _ACEOF | |
4067 | ||
4068 | conf_utmp_location=/etc/utmp | |
4069 | conf_wtmp_location=/var/adm/wtmp | |
4070 | conf_lastlog_location=/var/adm/lastlog | |
4071 | cat >>confdefs.h <<\_ACEOF | |
4072 | @%:@define USE_PIPES 1 | |
4073 | _ACEOF | |
4074 | ||
4075 | ;; | |
4076 | *-ncr-sysv*) | |
4077 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
4078 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
4079 | LIBS="$LIBS -lc89" | |
4080 | cat >>confdefs.h <<\_ACEOF | |
4081 | @%:@define USE_PIPES 1 | |
4082 | _ACEOF | |
4083 | ||
4084 | ;; | |
4085 | *-sni-sysv*) | |
4086 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
4087 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | |
4088 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
4089 | IPADDR_IN_DISPLAY=yes | |
4090 | cat >>confdefs.h <<\_ACEOF | |
4091 | @%:@define USE_PIPES 1 | |
4092 | _ACEOF | |
4093 | ||
4094 | cat >>confdefs.h <<\_ACEOF | |
4095 | @%:@define IP_TOS_IS_BROKEN 1 | |
4096 | _ACEOF | |
4097 | ||
4098 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | |
4099 | # Attention: always take care to bind libsocket and libnsl before libc, | |
4100 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | |
4101 | ;; | |
4102 | *-*-sysv4.2*) | |
4103 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
4104 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
700318f3 | 4105 | cat >>confdefs.h <<\_ACEOF |
4106 | @%:@define USE_PIPES 1 | |
4107 | _ACEOF | |
4108 | ||
4109 | ;; | |
4110 | *-*-sysv5*) | |
4111 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
4112 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
700318f3 | 4113 | cat >>confdefs.h <<\_ACEOF |
4114 | @%:@define USE_PIPES 1 | |
4115 | _ACEOF | |
4116 | ||
4117 | ;; | |
4118 | *-*-sysv*) | |
4119 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
4120 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
4121 | ;; | |
4122 | *-*-sco3.2v4*) | |
4123 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | |
4124 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
4125 | LIBS="$LIBS -los -lprot -lx -ltinfo -lm" | |
4126 | rsh_path="/usr/bin/rcmd" | |
4127 | RANLIB=true | |
4128 | no_dev_ptmx=1 | |
4129 | cat >>confdefs.h <<\_ACEOF | |
4130 | @%:@define BROKEN_SYS_TERMIO_H 1 | |
4131 | _ACEOF | |
4132 | ||
4133 | cat >>confdefs.h <<\_ACEOF | |
4134 | @%:@define USE_PIPES 1 | |
4135 | _ACEOF | |
4136 | ||
4137 | cat >>confdefs.h <<\_ACEOF | |
4138 | @%:@define HAVE_SECUREWARE 1 | |
4139 | _ACEOF | |
4140 | ||
4141 | cat >>confdefs.h <<\_ACEOF | |
4142 | @%:@define DISABLE_SHADOW 1 | |
4143 | _ACEOF | |
4144 | ||
4145 | cat >>confdefs.h <<\_ACEOF | |
4146 | @%:@define BROKEN_SAVED_UIDS 1 | |
4147 | _ACEOF | |
4148 | ||
4149 | ||
4150 | ||
4151 | for ac_func in getluid setluid | |
4152 | do | |
4153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4158 | else | |
4159 | cat >conftest.$ac_ext <<_ACEOF | |
4160 | #line $LINENO "configure" | |
4161 | #include "confdefs.h" | |
4162 | /* System header to define __stub macros and hopefully few prototypes, | |
4163 | which can conflict with char $ac_func (); below. */ | |
4164 | #include <assert.h> | |
4165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4166 | #ifdef __cplusplus | |
4167 | extern "C" | |
4168 | #endif | |
4169 | /* We use char because int might match the return type of a gcc2 | |
4170 | builtin and then its argument prototype would still apply. */ | |
4171 | char $ac_func (); | |
4172 | char (*f) (); | |
4173 | ||
4174 | #ifdef F77_DUMMY_MAIN | |
4175 | # ifdef __cplusplus | |
4176 | extern "C" | |
4177 | # endif | |
4178 | int F77_DUMMY_MAIN() { return 1; } | |
4179 | #endif | |
4180 | int | |
4181 | main () | |
4182 | { | |
4183 | /* The GNU C library defines this for functions which it implements | |
4184 | to always fail with ENOSYS. Some functions are actually named | |
4185 | something starting with __ and the normal name is an alias. */ | |
4186 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4187 | choke me | |
4188 | #else | |
4189 | f = $ac_func; | |
4190 | #endif | |
4191 | ||
4192 | ; | |
4193 | return 0; | |
4194 | } | |
4195 | _ACEOF | |
4196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4198 | (eval $ac_link) 2>&5 | |
4199 | ac_status=$? | |
4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4201 | (exit $ac_status); } && | |
4202 | { ac_try='test -s conftest$ac_exeext' | |
4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4204 | (eval $ac_try) 2>&5 | |
4205 | ac_status=$? | |
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4207 | (exit $ac_status); }; }; then | |
4208 | eval "$as_ac_var=yes" | |
4209 | else | |
4210 | echo "$as_me: failed program was:" >&5 | |
4211 | cat conftest.$ac_ext >&5 | |
4212 | eval "$as_ac_var=no" | |
4213 | fi | |
4214 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4215 | fi | |
4216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4217 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4218 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4219 | cat >>confdefs.h <<_ACEOF | |
4220 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4221 | _ACEOF | |
4222 | ||
4223 | fi | |
4224 | done | |
4225 | ||
4226 | MANTYPE=man | |
4227 | do_sco3_extra_lib_check=yes | |
4228 | ;; | |
4229 | *-*-sco3.2v5*) | |
4230 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | |
4231 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
4232 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | |
4233 | no_dev_ptmx=1 | |
4234 | rsh_path="/usr/bin/rcmd" | |
4235 | cat >>confdefs.h <<\_ACEOF | |
4236 | @%:@define USE_PIPES 1 | |
4237 | _ACEOF | |
4238 | ||
4239 | cat >>confdefs.h <<\_ACEOF | |
4240 | @%:@define HAVE_SECUREWARE 1 | |
4241 | _ACEOF | |
4242 | ||
4243 | cat >>confdefs.h <<\_ACEOF | |
4244 | @%:@define DISABLE_SHADOW 1 | |
4245 | _ACEOF | |
4246 | ||
4247 | ||
4248 | ||
4249 | for ac_func in getluid setluid | |
4250 | do | |
4251 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4252 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4253 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4254 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4256 | else | |
4257 | cat >conftest.$ac_ext <<_ACEOF | |
4258 | #line $LINENO "configure" | |
4259 | #include "confdefs.h" | |
4260 | /* System header to define __stub macros and hopefully few prototypes, | |
4261 | which can conflict with char $ac_func (); below. */ | |
4262 | #include <assert.h> | |
4263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4264 | #ifdef __cplusplus | |
4265 | extern "C" | |
4266 | #endif | |
4267 | /* We use char because int might match the return type of a gcc2 | |
4268 | builtin and then its argument prototype would still apply. */ | |
4269 | char $ac_func (); | |
4270 | char (*f) (); | |
4271 | ||
4272 | #ifdef F77_DUMMY_MAIN | |
4273 | # ifdef __cplusplus | |
4274 | extern "C" | |
4275 | # endif | |
4276 | int F77_DUMMY_MAIN() { return 1; } | |
4277 | #endif | |
4278 | int | |
4279 | main () | |
4280 | { | |
4281 | /* The GNU C library defines this for functions which it implements | |
4282 | to always fail with ENOSYS. Some functions are actually named | |
4283 | something starting with __ and the normal name is an alias. */ | |
4284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4285 | choke me | |
4286 | #else | |
4287 | f = $ac_func; | |
4288 | #endif | |
4289 | ||
4290 | ; | |
4291 | return 0; | |
4292 | } | |
4293 | _ACEOF | |
4294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4296 | (eval $ac_link) 2>&5 | |
4297 | ac_status=$? | |
4298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4299 | (exit $ac_status); } && | |
4300 | { ac_try='test -s conftest$ac_exeext' | |
4301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4302 | (eval $ac_try) 2>&5 | |
4303 | ac_status=$? | |
4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4305 | (exit $ac_status); }; }; then | |
4306 | eval "$as_ac_var=yes" | |
4307 | else | |
4308 | echo "$as_me: failed program was:" >&5 | |
4309 | cat conftest.$ac_ext >&5 | |
4310 | eval "$as_ac_var=no" | |
4311 | fi | |
4312 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4313 | fi | |
4314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4315 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4316 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4317 | cat >>confdefs.h <<_ACEOF | |
4318 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4319 | _ACEOF | |
4320 | ||
4321 | fi | |
4322 | done | |
4323 | ||
4324 | MANTYPE=man | |
4325 | ;; | |
4326 | *-*-unicos*) | |
4327 | no_libsocket=1 | |
4328 | no_libnsl=1 | |
4329 | cat >>confdefs.h <<\_ACEOF | |
4330 | @%:@define USE_PIPES 1 | |
4331 | _ACEOF | |
4332 | ||
4333 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal,-L/usr/local/lib" | |
4334 | LIBS="$LIBS -lgen -lrsc" | |
4335 | ;; | |
4336 | *-dec-osf*) | |
4337 | echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | |
4338 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6 | |
4339 | no_osfsia="" | |
4340 | ||
4341 | # Check whether --with-osfsia or --without-osfsia was given. | |
4342 | if test "${with_osfsia+set}" = set; then | |
4343 | withval="$with_osfsia" | |
4344 | ||
4345 | if test "x$withval" = "xno" ; then | |
4346 | echo "$as_me:$LINENO: result: disabled" >&5 | |
4347 | echo "${ECHO_T}disabled" >&6 | |
4348 | no_osfsia=1 | |
4349 | fi | |
4350 | ||
4351 | fi; | |
4352 | if test -z "$no_osfsia" ; then | |
4353 | if test -f /etc/sia/matrix.conf; then | |
4354 | echo "$as_me:$LINENO: result: yes" >&5 | |
4355 | echo "${ECHO_T}yes" >&6 | |
4356 | cat >>confdefs.h <<\_ACEOF | |
4357 | @%:@define HAVE_OSF_SIA 1 | |
4358 | _ACEOF | |
4359 | ||
4360 | cat >>confdefs.h <<\_ACEOF | |
4361 | @%:@define DISABLE_LOGIN 1 | |
4362 | _ACEOF | |
4363 | ||
4364 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | |
4365 | else | |
4366 | echo "$as_me:$LINENO: result: no" >&5 | |
4367 | echo "${ECHO_T}no" >&6 | |
4368 | fi | |
4369 | fi | |
4370 | ;; | |
4371 | ||
4372 | *-*-nto-qnx) | |
4373 | cat >>confdefs.h <<\_ACEOF | |
4374 | @%:@define USE_PIPES 1 | |
4375 | _ACEOF | |
4376 | ||
4377 | cat >>confdefs.h <<\_ACEOF | |
4378 | @%:@define NO_X11_UNIX_SOCKETS 1 | |
4379 | _ACEOF | |
4380 | ||
4381 | cat >>confdefs.h <<\_ACEOF | |
4382 | @%:@define MISSING_NFDBITS 1 | |
4383 | _ACEOF | |
4384 | ||
4385 | cat >>confdefs.h <<\_ACEOF | |
4386 | @%:@define MISSING_HOWMANY 1 | |
4387 | _ACEOF | |
4388 | ||
4389 | cat >>confdefs.h <<\_ACEOF | |
4390 | @%:@define MISSING_FD_MASK 1 | |
4391 | _ACEOF | |
4392 | ||
4393 | ;; | |
4394 | esac | |
4395 | ||
4396 | # Allow user to specify flags | |
4397 | ||
4398 | # Check whether --with-cflags or --without-cflags was given. | |
4399 | if test "${with_cflags+set}" = set; then | |
4400 | withval="$with_cflags" | |
4401 | ||
4402 | if test "x$withval" != "xno" ; then | |
4403 | CFLAGS="$CFLAGS $withval" | |
4404 | fi | |
4405 | ||
4406 | ||
4407 | fi; | |
4408 | ||
4409 | # Check whether --with-cppflags or --without-cppflags was given. | |
4410 | if test "${with_cppflags+set}" = set; then | |
4411 | withval="$with_cppflags" | |
4412 | ||
4413 | if test "x$withval" != "xno"; then | |
4414 | CPPFLAGS="$CPPFLAGS $withval" | |
4415 | fi | |
4416 | ||
4417 | ||
4418 | fi; | |
4419 | ||
4420 | # Check whether --with-ldflags or --without-ldflags was given. | |
4421 | if test "${with_ldflags+set}" = set; then | |
4422 | withval="$with_ldflags" | |
4423 | ||
4424 | if test "x$withval" != "xno" ; then | |
4425 | LDFLAGS="$LDFLAGS $withval" | |
4426 | fi | |
4427 | ||
4428 | ||
4429 | fi; | |
4430 | ||
4431 | # Check whether --with-libs or --without-libs was given. | |
4432 | if test "${with_libs+set}" = set; then | |
4433 | withval="$with_libs" | |
4434 | ||
4435 | if test "x$withval" != "xno" ; then | |
4436 | LIBS="$LIBS $withval" | |
4437 | fi | |
4438 | ||
4439 | ||
4440 | fi; | |
4441 | ||
4442 | # Checks for header files. | |
4443 | ||
4444 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4445 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4446 | if test "${ac_cv_header_stdc+set}" = set; then | |
4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4448 | else | |
4449 | cat >conftest.$ac_ext <<_ACEOF | |
4450 | #line $LINENO "configure" | |
4451 | #include "confdefs.h" | |
4452 | #include <stdlib.h> | |
4453 | #include <stdarg.h> | |
4454 | #include <string.h> | |
4455 | #include <float.h> | |
4456 | ||
4457 | _ACEOF | |
4458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4460 | ac_status=$? | |
4461 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4462 | rm -f conftest.er1 | |
4463 | cat conftest.err >&5 | |
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4465 | (exit $ac_status); } >/dev/null; then | |
4466 | if test -s conftest.err; then | |
4467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4468 | else | |
4469 | ac_cpp_err= | |
4470 | fi | |
4471 | else | |
4472 | ac_cpp_err=yes | |
4473 | fi | |
4474 | if test -z "$ac_cpp_err"; then | |
4475 | ac_cv_header_stdc=yes | |
4476 | else | |
4477 | echo "$as_me: failed program was:" >&5 | |
4478 | cat conftest.$ac_ext >&5 | |
4479 | ac_cv_header_stdc=no | |
4480 | fi | |
4481 | rm -f conftest.err conftest.$ac_ext | |
4482 | ||
4483 | if test $ac_cv_header_stdc = yes; then | |
4484 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4485 | cat >conftest.$ac_ext <<_ACEOF | |
4486 | #line $LINENO "configure" | |
4487 | #include "confdefs.h" | |
4488 | #include <string.h> | |
4489 | ||
4490 | _ACEOF | |
4491 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4492 | egrep "memchr" >/dev/null 2>&1; then | |
4493 | : | |
4494 | else | |
4495 | ac_cv_header_stdc=no | |
4496 | fi | |
4497 | rm -f conftest* | |
4498 | ||
4499 | fi | |
4500 | ||
4501 | if test $ac_cv_header_stdc = yes; then | |
4502 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4503 | cat >conftest.$ac_ext <<_ACEOF | |
4504 | #line $LINENO "configure" | |
4505 | #include "confdefs.h" | |
4506 | #include <stdlib.h> | |
4507 | ||
4508 | _ACEOF | |
4509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4510 | egrep "free" >/dev/null 2>&1; then | |
4511 | : | |
4512 | else | |
4513 | ac_cv_header_stdc=no | |
4514 | fi | |
4515 | rm -f conftest* | |
4516 | ||
4517 | fi | |
4518 | ||
4519 | if test $ac_cv_header_stdc = yes; then | |
4520 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4521 | if test "$cross_compiling" = yes; then | |
4522 | : | |
4523 | else | |
4524 | cat >conftest.$ac_ext <<_ACEOF | |
4525 | #line $LINENO "configure" | |
4526 | #include "confdefs.h" | |
4527 | #include <ctype.h> | |
4528 | #if ((' ' & 0x0FF) == 0x020) | |
4529 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4530 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4531 | #else | |
4532 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4533 | || ('j' <= (c) && (c) <= 'r') \ | |
4534 | || ('s' <= (c) && (c) <= 'z')) | |
4535 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4536 | #endif | |
4537 | ||
4538 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4539 | int | |
4540 | main () | |
4541 | { | |
4542 | int i; | |
4543 | for (i = 0; i < 256; i++) | |
4544 | if (XOR (islower (i), ISLOWER (i)) | |
4545 | || toupper (i) != TOUPPER (i)) | |
4546 | exit(2); | |
4547 | exit (0); | |
4548 | } | |
4549 | _ACEOF | |
4550 | rm -f conftest$ac_exeext | |
4551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4552 | (eval $ac_link) 2>&5 | |
4553 | ac_status=$? | |
4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4557 | (eval $ac_try) 2>&5 | |
4558 | ac_status=$? | |
4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4560 | (exit $ac_status); }; }; then | |
4561 | : | |
4562 | else | |
4563 | echo "$as_me: program exited with status $ac_status" >&5 | |
4564 | echo "$as_me: failed program was:" >&5 | |
4565 | cat conftest.$ac_ext >&5 | |
4566 | ( exit $ac_status ) | |
4567 | ac_cv_header_stdc=no | |
4568 | fi | |
4569 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4570 | fi | |
4571 | fi | |
4572 | fi | |
4573 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4574 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4575 | if test $ac_cv_header_stdc = yes; then | |
4576 | ||
4577 | cat >>confdefs.h <<\_ACEOF | |
4578 | @%:@define STDC_HEADERS 1 | |
4579 | _ACEOF | |
4580 | ||
4581 | fi | |
4582 | ||
4583 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4584 | ||
4585 | ||
4586 | ||
4587 | ||
4588 | ||
4589 | ||
4590 | ||
4591 | ||
4592 | ||
4593 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4594 | inttypes.h stdint.h unistd.h | |
4595 | do | |
4596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4601 | else | |
4602 | cat >conftest.$ac_ext <<_ACEOF | |
4603 | #line $LINENO "configure" | |
4604 | #include "confdefs.h" | |
4605 | $ac_includes_default | |
4606 | ||
4607 | @%:@include <$ac_header> | |
4608 | _ACEOF | |
4609 | rm -f conftest.$ac_objext | |
4610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4611 | (eval $ac_compile) 2>&5 | |
4612 | ac_status=$? | |
4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4614 | (exit $ac_status); } && | |
4615 | { ac_try='test -s conftest.$ac_objext' | |
4616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4617 | (eval $ac_try) 2>&5 | |
4618 | ac_status=$? | |
4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4620 | (exit $ac_status); }; }; then | |
4621 | eval "$as_ac_Header=yes" | |
4622 | else | |
4623 | echo "$as_me: failed program was:" >&5 | |
4624 | cat conftest.$ac_ext >&5 | |
4625 | eval "$as_ac_Header=no" | |
4626 | fi | |
4627 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4628 | fi | |
4629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4632 | cat >>confdefs.h <<_ACEOF | |
4633 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4634 | _ACEOF | |
4635 | ||
4636 | fi | |
4637 | ||
4638 | done | |
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
4658 | ||
4659 | ||
4660 | ||
4661 | ||
4662 | ||
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | ||
4669 | ||
4670 | ||
4671 | ||
4672 | ||
4673 | ||
4674 | ||
4675 | ||
4676 | ||
4677 | ||
4678 | ||
4679 | ||
4680 | ||
4681 | for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ | |
4682 | getopt.h glob.h lastlog.h limits.h login.h \ | |
4683 | login_cap.h maillock.h netdb.h netgroup.h \ | |
4684 | netinet/in_systm.h paths.h pty.h readpassphrase.h \ | |
4685 | rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ | |
4686 | strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ | |
4687 | sys/mman.h sys/select.h sys/stat.h \ | |
4688 | sys/stropts.h sys/sysmacros.h sys/time.h \ | |
4689 | sys/un.h time.h ttyent.h usersec.h \ | |
4690 | util.h utime.h utmp.h utmpx.h | |
4691 | do | |
4692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4698 | fi | |
4699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4701 | else | |
4702 | # Is the header compilable? | |
4703 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4704 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4705 | cat >conftest.$ac_ext <<_ACEOF | |
4706 | #line $LINENO "configure" | |
4707 | #include "confdefs.h" | |
4708 | $ac_includes_default | |
4709 | @%:@include <$ac_header> | |
4710 | _ACEOF | |
4711 | rm -f conftest.$ac_objext | |
4712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4713 | (eval $ac_compile) 2>&5 | |
4714 | ac_status=$? | |
4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4716 | (exit $ac_status); } && | |
4717 | { ac_try='test -s conftest.$ac_objext' | |
4718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4719 | (eval $ac_try) 2>&5 | |
4720 | ac_status=$? | |
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4722 | (exit $ac_status); }; }; then | |
4723 | ac_header_compiler=yes | |
4724 | else | |
4725 | echo "$as_me: failed program was:" >&5 | |
4726 | cat conftest.$ac_ext >&5 | |
4727 | ac_header_compiler=no | |
4728 | fi | |
4729 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4730 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4731 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4732 | ||
4733 | # Is the header present? | |
4734 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4735 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4736 | cat >conftest.$ac_ext <<_ACEOF | |
4737 | #line $LINENO "configure" | |
4738 | #include "confdefs.h" | |
4739 | @%:@include <$ac_header> | |
4740 | _ACEOF | |
4741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4743 | ac_status=$? | |
4744 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4745 | rm -f conftest.er1 | |
4746 | cat conftest.err >&5 | |
4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4748 | (exit $ac_status); } >/dev/null; then | |
4749 | if test -s conftest.err; then | |
4750 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4751 | else | |
4752 | ac_cpp_err= | |
4753 | fi | |
4754 | else | |
4755 | ac_cpp_err=yes | |
4756 | fi | |
4757 | if test -z "$ac_cpp_err"; then | |
4758 | ac_header_preproc=yes | |
4759 | else | |
4760 | echo "$as_me: failed program was:" >&5 | |
4761 | cat conftest.$ac_ext >&5 | |
4762 | ac_header_preproc=no | |
4763 | fi | |
4764 | rm -f conftest.err conftest.$ac_ext | |
4765 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4766 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4767 | ||
4768 | # So? What about this header? | |
4769 | case $ac_header_compiler:$ac_header_preproc in | |
4770 | yes:no ) | |
4771 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4772 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4774 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4775 | no:yes ) | |
4776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4780 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4781 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4782 | esac | |
4783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4787 | else | |
4788 | eval "$as_ac_Header=$ac_header_preproc" | |
4789 | fi | |
4790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4792 | ||
4793 | fi | |
4794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4795 | cat >>confdefs.h <<_ACEOF | |
4796 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4797 | _ACEOF | |
4798 | ||
4799 | fi | |
4800 | ||
4801 | done | |
4802 | ||
4803 | ||
4804 | # Checks for libraries. | |
4805 | echo "$as_me:$LINENO: checking for yp_match" >&5 | |
4806 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6 | |
4807 | if test "${ac_cv_func_yp_match+set}" = set; then | |
4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4809 | else | |
4810 | cat >conftest.$ac_ext <<_ACEOF | |
4811 | #line $LINENO "configure" | |
4812 | #include "confdefs.h" | |
4813 | /* System header to define __stub macros and hopefully few prototypes, | |
4814 | which can conflict with char yp_match (); below. */ | |
4815 | #include <assert.h> | |
4816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4817 | #ifdef __cplusplus | |
4818 | extern "C" | |
4819 | #endif | |
4820 | /* We use char because int might match the return type of a gcc2 | |
4821 | builtin and then its argument prototype would still apply. */ | |
4822 | char yp_match (); | |
4823 | char (*f) (); | |
4824 | ||
4825 | #ifdef F77_DUMMY_MAIN | |
4826 | # ifdef __cplusplus | |
4827 | extern "C" | |
4828 | # endif | |
4829 | int F77_DUMMY_MAIN() { return 1; } | |
4830 | #endif | |
4831 | int | |
4832 | main () | |
4833 | { | |
4834 | /* The GNU C library defines this for functions which it implements | |
4835 | to always fail with ENOSYS. Some functions are actually named | |
4836 | something starting with __ and the normal name is an alias. */ | |
4837 | #if defined (__stub_yp_match) || defined (__stub___yp_match) | |
4838 | choke me | |
4839 | #else | |
4840 | f = yp_match; | |
4841 | #endif | |
4842 | ||
4843 | ; | |
4844 | return 0; | |
4845 | } | |
4846 | _ACEOF | |
4847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4849 | (eval $ac_link) 2>&5 | |
4850 | ac_status=$? | |
4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4852 | (exit $ac_status); } && | |
4853 | { ac_try='test -s conftest$ac_exeext' | |
4854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4855 | (eval $ac_try) 2>&5 | |
4856 | ac_status=$? | |
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4858 | (exit $ac_status); }; }; then | |
4859 | ac_cv_func_yp_match=yes | |
4860 | else | |
4861 | echo "$as_me: failed program was:" >&5 | |
4862 | cat conftest.$ac_ext >&5 | |
4863 | ac_cv_func_yp_match=no | |
4864 | fi | |
4865 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4866 | fi | |
4867 | echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | |
4868 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6 | |
4869 | if test $ac_cv_func_yp_match = yes; then | |
4870 | : | |
4871 | else | |
4872 | ||
4873 | echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | |
4874 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 | |
4875 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | |
4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4877 | else | |
4878 | ac_check_lib_save_LIBS=$LIBS | |
4879 | LIBS="-lnsl $LIBS" | |
4880 | cat >conftest.$ac_ext <<_ACEOF | |
4881 | #line $LINENO "configure" | |
4882 | #include "confdefs.h" | |
4883 | ||
4884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4885 | #ifdef __cplusplus | |
4886 | extern "C" | |
4887 | #endif | |
4888 | /* We use char because int might match the return type of a gcc2 | |
4889 | builtin and then its argument prototype would still apply. */ | |
4890 | char yp_match (); | |
4891 | #ifdef F77_DUMMY_MAIN | |
4892 | # ifdef __cplusplus | |
4893 | extern "C" | |
4894 | # endif | |
4895 | int F77_DUMMY_MAIN() { return 1; } | |
4896 | #endif | |
4897 | int | |
4898 | main () | |
4899 | { | |
4900 | yp_match (); | |
4901 | ; | |
4902 | return 0; | |
4903 | } | |
4904 | _ACEOF | |
4905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4907 | (eval $ac_link) 2>&5 | |
4908 | ac_status=$? | |
4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4910 | (exit $ac_status); } && | |
4911 | { ac_try='test -s conftest$ac_exeext' | |
4912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4913 | (eval $ac_try) 2>&5 | |
4914 | ac_status=$? | |
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4916 | (exit $ac_status); }; }; then | |
4917 | ac_cv_lib_nsl_yp_match=yes | |
4918 | else | |
4919 | echo "$as_me: failed program was:" >&5 | |
4920 | cat conftest.$ac_ext >&5 | |
4921 | ac_cv_lib_nsl_yp_match=no | |
4922 | fi | |
4923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4924 | LIBS=$ac_check_lib_save_LIBS | |
4925 | fi | |
4926 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | |
4927 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 | |
4928 | if test $ac_cv_lib_nsl_yp_match = yes; then | |
4929 | cat >>confdefs.h <<_ACEOF | |
4930 | @%:@define HAVE_LIBNSL 1 | |
4931 | _ACEOF | |
4932 | ||
4933 | LIBS="-lnsl $LIBS" | |
4934 | ||
4935 | fi | |
4936 | ||
4937 | fi | |
4938 | ||
4939 | echo "$as_me:$LINENO: checking for setsockopt" >&5 | |
4940 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 | |
4941 | if test "${ac_cv_func_setsockopt+set}" = set; then | |
4942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4943 | else | |
4944 | cat >conftest.$ac_ext <<_ACEOF | |
4945 | #line $LINENO "configure" | |
4946 | #include "confdefs.h" | |
4947 | /* System header to define __stub macros and hopefully few prototypes, | |
4948 | which can conflict with char setsockopt (); below. */ | |
4949 | #include <assert.h> | |
4950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4951 | #ifdef __cplusplus | |
4952 | extern "C" | |
4953 | #endif | |
4954 | /* We use char because int might match the return type of a gcc2 | |
4955 | builtin and then its argument prototype would still apply. */ | |
4956 | char setsockopt (); | |
4957 | char (*f) (); | |
4958 | ||
4959 | #ifdef F77_DUMMY_MAIN | |
4960 | # ifdef __cplusplus | |
4961 | extern "C" | |
4962 | # endif | |
4963 | int F77_DUMMY_MAIN() { return 1; } | |
4964 | #endif | |
4965 | int | |
4966 | main () | |
4967 | { | |
4968 | /* The GNU C library defines this for functions which it implements | |
4969 | to always fail with ENOSYS. Some functions are actually named | |
4970 | something starting with __ and the normal name is an alias. */ | |
4971 | #if defined (__stub_setsockopt) || defined (__stub___setsockopt) | |
4972 | choke me | |
4973 | #else | |
4974 | f = setsockopt; | |
4975 | #endif | |
4976 | ||
4977 | ; | |
4978 | return 0; | |
4979 | } | |
4980 | _ACEOF | |
4981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4983 | (eval $ac_link) 2>&5 | |
4984 | ac_status=$? | |
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4986 | (exit $ac_status); } && | |
4987 | { ac_try='test -s conftest$ac_exeext' | |
4988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4989 | (eval $ac_try) 2>&5 | |
4990 | ac_status=$? | |
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4992 | (exit $ac_status); }; }; then | |
4993 | ac_cv_func_setsockopt=yes | |
4994 | else | |
4995 | echo "$as_me: failed program was:" >&5 | |
4996 | cat conftest.$ac_ext >&5 | |
4997 | ac_cv_func_setsockopt=no | |
4998 | fi | |
4999 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5000 | fi | |
5001 | echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | |
5002 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 | |
5003 | if test $ac_cv_func_setsockopt = yes; then | |
5004 | : | |
5005 | else | |
5006 | ||
5007 | echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | |
5008 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 | |
5009 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | |
5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5011 | else | |
5012 | ac_check_lib_save_LIBS=$LIBS | |
5013 | LIBS="-lsocket $LIBS" | |
5014 | cat >conftest.$ac_ext <<_ACEOF | |
5015 | #line $LINENO "configure" | |
5016 | #include "confdefs.h" | |
5017 | ||
5018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5019 | #ifdef __cplusplus | |
5020 | extern "C" | |
5021 | #endif | |
5022 | /* We use char because int might match the return type of a gcc2 | |
5023 | builtin and then its argument prototype would still apply. */ | |
5024 | char setsockopt (); | |
5025 | #ifdef F77_DUMMY_MAIN | |
5026 | # ifdef __cplusplus | |
5027 | extern "C" | |
5028 | # endif | |
5029 | int F77_DUMMY_MAIN() { return 1; } | |
5030 | #endif | |
5031 | int | |
5032 | main () | |
5033 | { | |
5034 | setsockopt (); | |
5035 | ; | |
5036 | return 0; | |
5037 | } | |
5038 | _ACEOF | |
5039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5041 | (eval $ac_link) 2>&5 | |
5042 | ac_status=$? | |
5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5044 | (exit $ac_status); } && | |
5045 | { ac_try='test -s conftest$ac_exeext' | |
5046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5047 | (eval $ac_try) 2>&5 | |
5048 | ac_status=$? | |
5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5050 | (exit $ac_status); }; }; then | |
5051 | ac_cv_lib_socket_setsockopt=yes | |
5052 | else | |
5053 | echo "$as_me: failed program was:" >&5 | |
5054 | cat conftest.$ac_ext >&5 | |
5055 | ac_cv_lib_socket_setsockopt=no | |
5056 | fi | |
5057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5058 | LIBS=$ac_check_lib_save_LIBS | |
5059 | fi | |
5060 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | |
5061 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 | |
5062 | if test $ac_cv_lib_socket_setsockopt = yes; then | |
5063 | cat >>confdefs.h <<_ACEOF | |
5064 | @%:@define HAVE_LIBSOCKET 1 | |
5065 | _ACEOF | |
5066 | ||
5067 | LIBS="-lsocket $LIBS" | |
5068 | ||
5069 | fi | |
5070 | ||
5071 | fi | |
5072 | ||
5073 | ||
5074 | if test "x$with_tcp_wrappers" != "xno" ; then | |
5075 | if test "x$do_sco3_extra_lib_check" = "xyes" ; then | |
5076 | echo "$as_me:$LINENO: checking for innetgr in -lrpc" >&5 | |
5077 | echo $ECHO_N "checking for innetgr in -lrpc... $ECHO_C" >&6 | |
5078 | if test "${ac_cv_lib_rpc_innetgr+set}" = set; then | |
5079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5080 | else | |
5081 | ac_check_lib_save_LIBS=$LIBS | |
5082 | LIBS="-lrpc -lyp -lrpc $LIBS" | |
5083 | cat >conftest.$ac_ext <<_ACEOF | |
5084 | #line $LINENO "configure" | |
5085 | #include "confdefs.h" | |
5086 | ||
5087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5088 | #ifdef __cplusplus | |
5089 | extern "C" | |
5090 | #endif | |
5091 | /* We use char because int might match the return type of a gcc2 | |
5092 | builtin and then its argument prototype would still apply. */ | |
5093 | char innetgr (); | |
5094 | #ifdef F77_DUMMY_MAIN | |
5095 | # ifdef __cplusplus | |
5096 | extern "C" | |
5097 | # endif | |
5098 | int F77_DUMMY_MAIN() { return 1; } | |
5099 | #endif | |
5100 | int | |
5101 | main () | |
5102 | { | |
5103 | innetgr (); | |
5104 | ; | |
5105 | return 0; | |
5106 | } | |
5107 | _ACEOF | |
5108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5110 | (eval $ac_link) 2>&5 | |
5111 | ac_status=$? | |
5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5113 | (exit $ac_status); } && | |
5114 | { ac_try='test -s conftest$ac_exeext' | |
5115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5116 | (eval $ac_try) 2>&5 | |
5117 | ac_status=$? | |
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5119 | (exit $ac_status); }; }; then | |
5120 | ac_cv_lib_rpc_innetgr=yes | |
5121 | else | |
5122 | echo "$as_me: failed program was:" >&5 | |
5123 | cat conftest.$ac_ext >&5 | |
5124 | ac_cv_lib_rpc_innetgr=no | |
5125 | fi | |
5126 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5127 | LIBS=$ac_check_lib_save_LIBS | |
5128 | fi | |
5129 | echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_innetgr" >&5 | |
5130 | echo "${ECHO_T}$ac_cv_lib_rpc_innetgr" >&6 | |
5131 | if test $ac_cv_lib_rpc_innetgr = yes; then | |
5132 | LIBS="-lrpc -lyp -lrpc $LIBS" | |
5133 | fi | |
5134 | ||
5135 | fi | |
5136 | fi | |
5137 | ||
5138 | echo "$as_me:$LINENO: checking for getspnam" >&5 | |
5139 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 | |
5140 | if test "${ac_cv_func_getspnam+set}" = set; then | |
5141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5142 | else | |
5143 | cat >conftest.$ac_ext <<_ACEOF | |
5144 | #line $LINENO "configure" | |
5145 | #include "confdefs.h" | |
5146 | /* System header to define __stub macros and hopefully few prototypes, | |
5147 | which can conflict with char getspnam (); below. */ | |
5148 | #include <assert.h> | |
5149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5150 | #ifdef __cplusplus | |
5151 | extern "C" | |
5152 | #endif | |
5153 | /* We use char because int might match the return type of a gcc2 | |
5154 | builtin and then its argument prototype would still apply. */ | |
5155 | char getspnam (); | |
5156 | char (*f) (); | |
5157 | ||
5158 | #ifdef F77_DUMMY_MAIN | |
5159 | # ifdef __cplusplus | |
5160 | extern "C" | |
5161 | # endif | |
5162 | int F77_DUMMY_MAIN() { return 1; } | |
5163 | #endif | |
5164 | int | |
5165 | main () | |
5166 | { | |
5167 | /* The GNU C library defines this for functions which it implements | |
5168 | to always fail with ENOSYS. Some functions are actually named | |
5169 | something starting with __ and the normal name is an alias. */ | |
5170 | #if defined (__stub_getspnam) || defined (__stub___getspnam) | |
5171 | choke me | |
5172 | #else | |
5173 | f = getspnam; | |
5174 | #endif | |
5175 | ||
5176 | ; | |
5177 | return 0; | |
5178 | } | |
5179 | _ACEOF | |
5180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5182 | (eval $ac_link) 2>&5 | |
5183 | ac_status=$? | |
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5185 | (exit $ac_status); } && | |
5186 | { ac_try='test -s conftest$ac_exeext' | |
5187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5188 | (eval $ac_try) 2>&5 | |
5189 | ac_status=$? | |
5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5191 | (exit $ac_status); }; }; then | |
5192 | ac_cv_func_getspnam=yes | |
5193 | else | |
5194 | echo "$as_me: failed program was:" >&5 | |
5195 | cat conftest.$ac_ext >&5 | |
5196 | ac_cv_func_getspnam=no | |
5197 | fi | |
5198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5199 | fi | |
5200 | echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | |
5201 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6 | |
5202 | if test $ac_cv_func_getspnam = yes; then | |
5203 | : | |
5204 | else | |
5205 | echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | |
5206 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6 | |
5207 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | |
5208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5209 | else | |
5210 | ac_check_lib_save_LIBS=$LIBS | |
5211 | LIBS="-lgen $LIBS" | |
5212 | cat >conftest.$ac_ext <<_ACEOF | |
5213 | #line $LINENO "configure" | |
5214 | #include "confdefs.h" | |
5215 | ||
5216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5217 | #ifdef __cplusplus | |
5218 | extern "C" | |
5219 | #endif | |
5220 | /* We use char because int might match the return type of a gcc2 | |
5221 | builtin and then its argument prototype would still apply. */ | |
5222 | char getspnam (); | |
5223 | #ifdef F77_DUMMY_MAIN | |
5224 | # ifdef __cplusplus | |
5225 | extern "C" | |
5226 | # endif | |
5227 | int F77_DUMMY_MAIN() { return 1; } | |
5228 | #endif | |
5229 | int | |
5230 | main () | |
5231 | { | |
5232 | getspnam (); | |
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5239 | (eval $ac_link) 2>&5 | |
5240 | ac_status=$? | |
5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5242 | (exit $ac_status); } && | |
5243 | { ac_try='test -s conftest$ac_exeext' | |
5244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5245 | (eval $ac_try) 2>&5 | |
5246 | ac_status=$? | |
5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5248 | (exit $ac_status); }; }; then | |
5249 | ac_cv_lib_gen_getspnam=yes | |
5250 | else | |
5251 | echo "$as_me: failed program was:" >&5 | |
5252 | cat conftest.$ac_ext >&5 | |
5253 | ac_cv_lib_gen_getspnam=no | |
5254 | fi | |
5255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5256 | LIBS=$ac_check_lib_save_LIBS | |
5257 | fi | |
5258 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | |
5259 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6 | |
5260 | if test $ac_cv_lib_gen_getspnam = yes; then | |
5261 | LIBS="$LIBS -lgen" | |
5262 | fi | |
5263 | ||
5264 | fi | |
5265 | ||
5266 | ||
5267 | ||
5268 | # Check whether --with-rpath or --without-rpath was given. | |
5269 | if test "${with_rpath+set}" = set; then | |
5270 | withval="$with_rpath" | |
5271 | ||
5272 | if test "x$withval" = "xno" ; then | |
5273 | need_dash_r="" | |
5274 | fi | |
5275 | if test "x$withval" = "xyes" ; then | |
5276 | need_dash_r=1 | |
5277 | fi | |
5278 | ||
5279 | ||
5280 | fi; | |
5281 | ||
5282 | ||
5283 | # Check whether --with-zlib or --without-zlib was given. | |
5284 | if test "${with_zlib+set}" = set; then | |
5285 | withval="$with_zlib" | |
5286 | ||
5287 | if test "x$withval" = "xno" ; then | |
5288 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | |
5289 | echo "$as_me: error: *** zlib is required ***" >&2;} | |
5290 | { (exit 1); exit 1; }; } | |
5291 | fi | |
5292 | if test -d "$withval/lib"; then | |
5293 | if test -n "${need_dash_r}"; then | |
5294 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | |
5295 | else | |
5296 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | |
5297 | fi | |
5298 | else | |
5299 | if test -n "${need_dash_r}"; then | |
5300 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | |
5301 | else | |
5302 | LDFLAGS="-L${withval} ${LDFLAGS}" | |
5303 | fi | |
5304 | fi | |
5305 | if test -d "$withval/include"; then | |
5306 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | |
5307 | else | |
5308 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | |
5309 | fi | |
5310 | ||
5311 | ||
5312 | fi; | |
5313 | ||
5314 | ||
5315 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
5316 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
5317 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
5318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5319 | else | |
5320 | ac_check_lib_save_LIBS=$LIBS | |
5321 | LIBS="-lz $LIBS" | |
5322 | cat >conftest.$ac_ext <<_ACEOF | |
5323 | #line $LINENO "configure" | |
5324 | #include "confdefs.h" | |
5325 | ||
5326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5327 | #ifdef __cplusplus | |
5328 | extern "C" | |
5329 | #endif | |
5330 | /* We use char because int might match the return type of a gcc2 | |
5331 | builtin and then its argument prototype would still apply. */ | |
5332 | char deflate (); | |
5333 | #ifdef F77_DUMMY_MAIN | |
5334 | # ifdef __cplusplus | |
5335 | extern "C" | |
5336 | # endif | |
5337 | int F77_DUMMY_MAIN() { return 1; } | |
5338 | #endif | |
5339 | int | |
5340 | main () | |
5341 | { | |
5342 | deflate (); | |
5343 | ; | |
5344 | return 0; | |
5345 | } | |
5346 | _ACEOF | |
5347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5349 | (eval $ac_link) 2>&5 | |
5350 | ac_status=$? | |
5351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5352 | (exit $ac_status); } && | |
5353 | { ac_try='test -s conftest$ac_exeext' | |
5354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5355 | (eval $ac_try) 2>&5 | |
5356 | ac_status=$? | |
5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5358 | (exit $ac_status); }; }; then | |
5359 | ac_cv_lib_z_deflate=yes | |
5360 | else | |
5361 | echo "$as_me: failed program was:" >&5 | |
5362 | cat conftest.$ac_ext >&5 | |
5363 | ac_cv_lib_z_deflate=no | |
5364 | fi | |
5365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5366 | LIBS=$ac_check_lib_save_LIBS | |
5367 | fi | |
5368 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
5369 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
5370 | if test $ac_cv_lib_z_deflate = yes; then | |
5371 | cat >>confdefs.h <<_ACEOF | |
5372 | @%:@define HAVE_LIBZ 1 | |
5373 | _ACEOF | |
5374 | ||
5375 | LIBS="-lz $LIBS" | |
5376 | ||
5377 | else | |
5378 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | |
5379 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | |
5380 | { (exit 1); exit 1; }; } | |
5381 | fi | |
5382 | ||
5383 | ||
5384 | echo "$as_me:$LINENO: checking for strcasecmp" >&5 | |
5385 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 | |
5386 | if test "${ac_cv_func_strcasecmp+set}" = set; then | |
5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5388 | else | |
5389 | cat >conftest.$ac_ext <<_ACEOF | |
5390 | #line $LINENO "configure" | |
5391 | #include "confdefs.h" | |
5392 | /* System header to define __stub macros and hopefully few prototypes, | |
5393 | which can conflict with char strcasecmp (); below. */ | |
5394 | #include <assert.h> | |
5395 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5396 | #ifdef __cplusplus | |
5397 | extern "C" | |
5398 | #endif | |
5399 | /* We use char because int might match the return type of a gcc2 | |
5400 | builtin and then its argument prototype would still apply. */ | |
5401 | char strcasecmp (); | |
5402 | char (*f) (); | |
5403 | ||
5404 | #ifdef F77_DUMMY_MAIN | |
5405 | # ifdef __cplusplus | |
5406 | extern "C" | |
5407 | # endif | |
5408 | int F77_DUMMY_MAIN() { return 1; } | |
5409 | #endif | |
5410 | int | |
5411 | main () | |
5412 | { | |
5413 | /* The GNU C library defines this for functions which it implements | |
5414 | to always fail with ENOSYS. Some functions are actually named | |
5415 | something starting with __ and the normal name is an alias. */ | |
5416 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | |
5417 | choke me | |
5418 | #else | |
5419 | f = strcasecmp; | |
5420 | #endif | |
5421 | ||
5422 | ; | |
5423 | return 0; | |
5424 | } | |
5425 | _ACEOF | |
5426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5428 | (eval $ac_link) 2>&5 | |
5429 | ac_status=$? | |
5430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5431 | (exit $ac_status); } && | |
5432 | { ac_try='test -s conftest$ac_exeext' | |
5433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5434 | (eval $ac_try) 2>&5 | |
5435 | ac_status=$? | |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5437 | (exit $ac_status); }; }; then | |
5438 | ac_cv_func_strcasecmp=yes | |
5439 | else | |
5440 | echo "$as_me: failed program was:" >&5 | |
5441 | cat conftest.$ac_ext >&5 | |
5442 | ac_cv_func_strcasecmp=no | |
5443 | fi | |
5444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5445 | fi | |
5446 | echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | |
5447 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 | |
5448 | if test $ac_cv_func_strcasecmp = yes; then | |
5449 | : | |
5450 | else | |
5451 | echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | |
5452 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 | |
5453 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | |
5454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5455 | else | |
5456 | ac_check_lib_save_LIBS=$LIBS | |
5457 | LIBS="-lresolv $LIBS" | |
5458 | cat >conftest.$ac_ext <<_ACEOF | |
5459 | #line $LINENO "configure" | |
5460 | #include "confdefs.h" | |
5461 | ||
5462 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5463 | #ifdef __cplusplus | |
5464 | extern "C" | |
5465 | #endif | |
5466 | /* We use char because int might match the return type of a gcc2 | |
5467 | builtin and then its argument prototype would still apply. */ | |
5468 | char strcasecmp (); | |
5469 | #ifdef F77_DUMMY_MAIN | |
5470 | # ifdef __cplusplus | |
5471 | extern "C" | |
5472 | # endif | |
5473 | int F77_DUMMY_MAIN() { return 1; } | |
5474 | #endif | |
5475 | int | |
5476 | main () | |
5477 | { | |
5478 | strcasecmp (); | |
5479 | ; | |
5480 | return 0; | |
5481 | } | |
5482 | _ACEOF | |
5483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5485 | (eval $ac_link) 2>&5 | |
5486 | ac_status=$? | |
5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5488 | (exit $ac_status); } && | |
5489 | { ac_try='test -s conftest$ac_exeext' | |
5490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5491 | (eval $ac_try) 2>&5 | |
5492 | ac_status=$? | |
5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5494 | (exit $ac_status); }; }; then | |
5495 | ac_cv_lib_resolv_strcasecmp=yes | |
5496 | else | |
5497 | echo "$as_me: failed program was:" >&5 | |
5498 | cat conftest.$ac_ext >&5 | |
5499 | ac_cv_lib_resolv_strcasecmp=no | |
5500 | fi | |
5501 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5502 | LIBS=$ac_check_lib_save_LIBS | |
5503 | fi | |
5504 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | |
5505 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 | |
5506 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | |
5507 | LIBS="$LIBS -lresolv" | |
5508 | fi | |
5509 | ||
5510 | ||
5511 | fi | |
5512 | ||
5513 | echo "$as_me:$LINENO: checking for utimes" >&5 | |
5514 | echo $ECHO_N "checking for utimes... $ECHO_C" >&6 | |
5515 | if test "${ac_cv_func_utimes+set}" = set; then | |
5516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5517 | else | |
5518 | cat >conftest.$ac_ext <<_ACEOF | |
5519 | #line $LINENO "configure" | |
5520 | #include "confdefs.h" | |
5521 | /* System header to define __stub macros and hopefully few prototypes, | |
5522 | which can conflict with char utimes (); below. */ | |
5523 | #include <assert.h> | |
5524 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5525 | #ifdef __cplusplus | |
5526 | extern "C" | |
5527 | #endif | |
5528 | /* We use char because int might match the return type of a gcc2 | |
5529 | builtin and then its argument prototype would still apply. */ | |
5530 | char utimes (); | |
5531 | char (*f) (); | |
5532 | ||
5533 | #ifdef F77_DUMMY_MAIN | |
5534 | # ifdef __cplusplus | |
5535 | extern "C" | |
5536 | # endif | |
5537 | int F77_DUMMY_MAIN() { return 1; } | |
5538 | #endif | |
5539 | int | |
5540 | main () | |
5541 | { | |
5542 | /* The GNU C library defines this for functions which it implements | |
5543 | to always fail with ENOSYS. Some functions are actually named | |
5544 | something starting with __ and the normal name is an alias. */ | |
5545 | #if defined (__stub_utimes) || defined (__stub___utimes) | |
5546 | choke me | |
5547 | #else | |
5548 | f = utimes; | |
5549 | #endif | |
5550 | ||
5551 | ; | |
5552 | return 0; | |
5553 | } | |
5554 | _ACEOF | |
5555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5557 | (eval $ac_link) 2>&5 | |
5558 | ac_status=$? | |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5560 | (exit $ac_status); } && | |
5561 | { ac_try='test -s conftest$ac_exeext' | |
5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5563 | (eval $ac_try) 2>&5 | |
5564 | ac_status=$? | |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); }; }; then | |
5567 | ac_cv_func_utimes=yes | |
5568 | else | |
5569 | echo "$as_me: failed program was:" >&5 | |
5570 | cat conftest.$ac_ext >&5 | |
5571 | ac_cv_func_utimes=no | |
5572 | fi | |
5573 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5574 | fi | |
5575 | echo "$as_me:$LINENO: result: $ac_cv_func_utimes" >&5 | |
5576 | echo "${ECHO_T}$ac_cv_func_utimes" >&6 | |
5577 | if test $ac_cv_func_utimes = yes; then | |
5578 | : | |
5579 | else | |
5580 | echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | |
5581 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6 | |
5582 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | |
5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5584 | else | |
5585 | ac_check_lib_save_LIBS=$LIBS | |
5586 | LIBS="-lc89 $LIBS" | |
5587 | cat >conftest.$ac_ext <<_ACEOF | |
5588 | #line $LINENO "configure" | |
5589 | #include "confdefs.h" | |
5590 | ||
5591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5592 | #ifdef __cplusplus | |
5593 | extern "C" | |
5594 | #endif | |
5595 | /* We use char because int might match the return type of a gcc2 | |
5596 | builtin and then its argument prototype would still apply. */ | |
5597 | char utimes (); | |
5598 | #ifdef F77_DUMMY_MAIN | |
5599 | # ifdef __cplusplus | |
5600 | extern "C" | |
5601 | # endif | |
5602 | int F77_DUMMY_MAIN() { return 1; } | |
5603 | #endif | |
5604 | int | |
5605 | main () | |
5606 | { | |
5607 | utimes (); | |
5608 | ; | |
5609 | return 0; | |
5610 | } | |
5611 | _ACEOF | |
5612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5614 | (eval $ac_link) 2>&5 | |
5615 | ac_status=$? | |
5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5617 | (exit $ac_status); } && | |
5618 | { ac_try='test -s conftest$ac_exeext' | |
5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5620 | (eval $ac_try) 2>&5 | |
5621 | ac_status=$? | |
5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5623 | (exit $ac_status); }; }; then | |
5624 | ac_cv_lib_c89_utimes=yes | |
5625 | else | |
5626 | echo "$as_me: failed program was:" >&5 | |
5627 | cat conftest.$ac_ext >&5 | |
5628 | ac_cv_lib_c89_utimes=no | |
5629 | fi | |
5630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5631 | LIBS=$ac_check_lib_save_LIBS | |
5632 | fi | |
5633 | echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | |
5634 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6 | |
5635 | if test $ac_cv_lib_c89_utimes = yes; then | |
5636 | LIBS="$LIBS -lc89" | |
5637 | fi | |
5638 | ||
5639 | ||
5640 | fi | |
5641 | ||
5642 | ||
5643 | ||
5644 | for ac_header in libutil.h | |
5645 | do | |
5646 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5648 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5652 | fi | |
5653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5655 | else | |
5656 | # Is the header compilable? | |
5657 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5658 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5659 | cat >conftest.$ac_ext <<_ACEOF | |
5660 | #line $LINENO "configure" | |
5661 | #include "confdefs.h" | |
5662 | $ac_includes_default | |
5663 | @%:@include <$ac_header> | |
5664 | _ACEOF | |
5665 | rm -f conftest.$ac_objext | |
5666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5667 | (eval $ac_compile) 2>&5 | |
5668 | ac_status=$? | |
5669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5670 | (exit $ac_status); } && | |
5671 | { ac_try='test -s conftest.$ac_objext' | |
5672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5673 | (eval $ac_try) 2>&5 | |
5674 | ac_status=$? | |
5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5676 | (exit $ac_status); }; }; then | |
5677 | ac_header_compiler=yes | |
5678 | else | |
5679 | echo "$as_me: failed program was:" >&5 | |
5680 | cat conftest.$ac_ext >&5 | |
5681 | ac_header_compiler=no | |
5682 | fi | |
5683 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5685 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5686 | ||
5687 | # Is the header present? | |
5688 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5689 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5690 | cat >conftest.$ac_ext <<_ACEOF | |
5691 | #line $LINENO "configure" | |
5692 | #include "confdefs.h" | |
5693 | @%:@include <$ac_header> | |
5694 | _ACEOF | |
5695 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5697 | ac_status=$? | |
5698 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5699 | rm -f conftest.er1 | |
5700 | cat conftest.err >&5 | |
5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5702 | (exit $ac_status); } >/dev/null; then | |
5703 | if test -s conftest.err; then | |
5704 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5705 | else | |
5706 | ac_cpp_err= | |
5707 | fi | |
5708 | else | |
5709 | ac_cpp_err=yes | |
5710 | fi | |
5711 | if test -z "$ac_cpp_err"; then | |
5712 | ac_header_preproc=yes | |
5713 | else | |
5714 | echo "$as_me: failed program was:" >&5 | |
5715 | cat conftest.$ac_ext >&5 | |
5716 | ac_header_preproc=no | |
5717 | fi | |
5718 | rm -f conftest.err conftest.$ac_ext | |
5719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5721 | ||
5722 | # So? What about this header? | |
5723 | case $ac_header_compiler:$ac_header_preproc in | |
5724 | yes:no ) | |
5725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5729 | no:yes ) | |
5730 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5731 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5732 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5733 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5735 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5736 | esac | |
5737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5741 | else | |
5742 | eval "$as_ac_Header=$ac_header_preproc" | |
5743 | fi | |
5744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5746 | ||
5747 | fi | |
5748 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5749 | cat >>confdefs.h <<_ACEOF | |
5750 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5751 | _ACEOF | |
5752 | ||
5753 | fi | |
5754 | ||
5755 | done | |
5756 | ||
5757 | echo "$as_me:$LINENO: checking for library containing login" >&5 | |
5758 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6 | |
5759 | if test "${ac_cv_search_login+set}" = set; then | |
5760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5761 | else | |
5762 | ac_func_search_save_LIBS=$LIBS | |
5763 | ac_cv_search_login=no | |
5764 | cat >conftest.$ac_ext <<_ACEOF | |
5765 | #line $LINENO "configure" | |
5766 | #include "confdefs.h" | |
5767 | ||
5768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5769 | #ifdef __cplusplus | |
5770 | extern "C" | |
5771 | #endif | |
5772 | /* We use char because int might match the return type of a gcc2 | |
5773 | builtin and then its argument prototype would still apply. */ | |
5774 | char login (); | |
5775 | #ifdef F77_DUMMY_MAIN | |
5776 | # ifdef __cplusplus | |
5777 | extern "C" | |
5778 | # endif | |
5779 | int F77_DUMMY_MAIN() { return 1; } | |
5780 | #endif | |
5781 | int | |
5782 | main () | |
5783 | { | |
5784 | login (); | |
5785 | ; | |
5786 | return 0; | |
5787 | } | |
5788 | _ACEOF | |
5789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5791 | (eval $ac_link) 2>&5 | |
5792 | ac_status=$? | |
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5794 | (exit $ac_status); } && | |
5795 | { ac_try='test -s conftest$ac_exeext' | |
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5797 | (eval $ac_try) 2>&5 | |
5798 | ac_status=$? | |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); }; }; then | |
5801 | ac_cv_search_login="none required" | |
5802 | else | |
5803 | echo "$as_me: failed program was:" >&5 | |
5804 | cat conftest.$ac_ext >&5 | |
5805 | fi | |
5806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5807 | if test "$ac_cv_search_login" = no; then | |
5808 | for ac_lib in util bsd; do | |
5809 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5810 | cat >conftest.$ac_ext <<_ACEOF | |
5811 | #line $LINENO "configure" | |
5812 | #include "confdefs.h" | |
5813 | ||
5814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5815 | #ifdef __cplusplus | |
5816 | extern "C" | |
5817 | #endif | |
5818 | /* We use char because int might match the return type of a gcc2 | |
5819 | builtin and then its argument prototype would still apply. */ | |
5820 | char login (); | |
5821 | #ifdef F77_DUMMY_MAIN | |
5822 | # ifdef __cplusplus | |
5823 | extern "C" | |
5824 | # endif | |
5825 | int F77_DUMMY_MAIN() { return 1; } | |
5826 | #endif | |
5827 | int | |
5828 | main () | |
5829 | { | |
5830 | login (); | |
5831 | ; | |
5832 | return 0; | |
5833 | } | |
5834 | _ACEOF | |
5835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5837 | (eval $ac_link) 2>&5 | |
5838 | ac_status=$? | |
5839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5840 | (exit $ac_status); } && | |
5841 | { ac_try='test -s conftest$ac_exeext' | |
5842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5843 | (eval $ac_try) 2>&5 | |
5844 | ac_status=$? | |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); }; }; then | |
5847 | ac_cv_search_login="-l$ac_lib" | |
5848 | break | |
5849 | else | |
5850 | echo "$as_me: failed program was:" >&5 | |
5851 | cat conftest.$ac_ext >&5 | |
5852 | fi | |
5853 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5854 | done | |
5855 | fi | |
5856 | LIBS=$ac_func_search_save_LIBS | |
5857 | fi | |
5858 | echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | |
5859 | echo "${ECHO_T}$ac_cv_search_login" >&6 | |
5860 | if test "$ac_cv_search_login" != no; then | |
5861 | test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS" | |
5862 | cat >>confdefs.h <<\_ACEOF | |
5863 | @%:@define HAVE_LOGIN 1 | |
5864 | _ACEOF | |
5865 | ||
5866 | fi | |
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | for ac_func in logout updwtmp logwtmp | |
5872 | do | |
5873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5874 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5876 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5878 | else | |
5879 | cat >conftest.$ac_ext <<_ACEOF | |
5880 | #line $LINENO "configure" | |
5881 | #include "confdefs.h" | |
5882 | /* System header to define __stub macros and hopefully few prototypes, | |
5883 | which can conflict with char $ac_func (); below. */ | |
5884 | #include <assert.h> | |
5885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5886 | #ifdef __cplusplus | |
5887 | extern "C" | |
5888 | #endif | |
5889 | /* We use char because int might match the return type of a gcc2 | |
5890 | builtin and then its argument prototype would still apply. */ | |
5891 | char $ac_func (); | |
5892 | char (*f) (); | |
5893 | ||
5894 | #ifdef F77_DUMMY_MAIN | |
5895 | # ifdef __cplusplus | |
5896 | extern "C" | |
5897 | # endif | |
5898 | int F77_DUMMY_MAIN() { return 1; } | |
5899 | #endif | |
5900 | int | |
5901 | main () | |
5902 | { | |
5903 | /* The GNU C library defines this for functions which it implements | |
5904 | to always fail with ENOSYS. Some functions are actually named | |
5905 | something starting with __ and the normal name is an alias. */ | |
5906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5907 | choke me | |
5908 | #else | |
5909 | f = $ac_func; | |
5910 | #endif | |
5911 | ||
5912 | ; | |
5913 | return 0; | |
5914 | } | |
5915 | _ACEOF | |
5916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5918 | (eval $ac_link) 2>&5 | |
5919 | ac_status=$? | |
5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5921 | (exit $ac_status); } && | |
5922 | { ac_try='test -s conftest$ac_exeext' | |
5923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5924 | (eval $ac_try) 2>&5 | |
5925 | ac_status=$? | |
5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5927 | (exit $ac_status); }; }; then | |
5928 | eval "$as_ac_var=yes" | |
5929 | else | |
5930 | echo "$as_me: failed program was:" >&5 | |
5931 | cat conftest.$ac_ext >&5 | |
5932 | eval "$as_ac_var=no" | |
5933 | fi | |
5934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5935 | fi | |
5936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5937 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5938 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5939 | cat >>confdefs.h <<_ACEOF | |
5940 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5941 | _ACEOF | |
5942 | ||
5943 | fi | |
5944 | done | |
5945 | ||
5946 | ||
5947 | ||
5948 | for ac_func in strftime | |
5949 | do | |
5950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5951 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5953 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5955 | else | |
5956 | cat >conftest.$ac_ext <<_ACEOF | |
5957 | #line $LINENO "configure" | |
5958 | #include "confdefs.h" | |
5959 | /* System header to define __stub macros and hopefully few prototypes, | |
5960 | which can conflict with char $ac_func (); below. */ | |
5961 | #include <assert.h> | |
5962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5963 | #ifdef __cplusplus | |
5964 | extern "C" | |
5965 | #endif | |
5966 | /* We use char because int might match the return type of a gcc2 | |
5967 | builtin and then its argument prototype would still apply. */ | |
5968 | char $ac_func (); | |
5969 | char (*f) (); | |
5970 | ||
5971 | #ifdef F77_DUMMY_MAIN | |
5972 | # ifdef __cplusplus | |
5973 | extern "C" | |
5974 | # endif | |
5975 | int F77_DUMMY_MAIN() { return 1; } | |
5976 | #endif | |
5977 | int | |
5978 | main () | |
5979 | { | |
5980 | /* The GNU C library defines this for functions which it implements | |
5981 | to always fail with ENOSYS. Some functions are actually named | |
5982 | something starting with __ and the normal name is an alias. */ | |
5983 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5984 | choke me | |
5985 | #else | |
5986 | f = $ac_func; | |
5987 | #endif | |
5988 | ||
5989 | ; | |
5990 | return 0; | |
5991 | } | |
5992 | _ACEOF | |
5993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5995 | (eval $ac_link) 2>&5 | |
5996 | ac_status=$? | |
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5998 | (exit $ac_status); } && | |
5999 | { ac_try='test -s conftest$ac_exeext' | |
6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6001 | (eval $ac_try) 2>&5 | |
6002 | ac_status=$? | |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; }; then | |
6005 | eval "$as_ac_var=yes" | |
6006 | else | |
6007 | echo "$as_me: failed program was:" >&5 | |
6008 | cat conftest.$ac_ext >&5 | |
6009 | eval "$as_ac_var=no" | |
6010 | fi | |
6011 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6012 | fi | |
6013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6014 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6015 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6016 | cat >>confdefs.h <<_ACEOF | |
6017 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6018 | _ACEOF | |
6019 | ||
6020 | else | |
6021 | # strftime is in -lintl on SCO UNIX. | |
6022 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
6023 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
6024 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
6025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6026 | else | |
6027 | ac_check_lib_save_LIBS=$LIBS | |
6028 | LIBS="-lintl $LIBS" | |
6029 | cat >conftest.$ac_ext <<_ACEOF | |
6030 | #line $LINENO "configure" | |
6031 | #include "confdefs.h" | |
6032 | ||
6033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6034 | #ifdef __cplusplus | |
6035 | extern "C" | |
6036 | #endif | |
6037 | /* We use char because int might match the return type of a gcc2 | |
6038 | builtin and then its argument prototype would still apply. */ | |
6039 | char strftime (); | |
6040 | #ifdef F77_DUMMY_MAIN | |
6041 | # ifdef __cplusplus | |
6042 | extern "C" | |
6043 | # endif | |
6044 | int F77_DUMMY_MAIN() { return 1; } | |
6045 | #endif | |
6046 | int | |
6047 | main () | |
6048 | { | |
6049 | strftime (); | |
6050 | ; | |
6051 | return 0; | |
6052 | } | |
6053 | _ACEOF | |
6054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6056 | (eval $ac_link) 2>&5 | |
6057 | ac_status=$? | |
6058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6059 | (exit $ac_status); } && | |
6060 | { ac_try='test -s conftest$ac_exeext' | |
6061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6062 | (eval $ac_try) 2>&5 | |
6063 | ac_status=$? | |
6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6065 | (exit $ac_status); }; }; then | |
6066 | ac_cv_lib_intl_strftime=yes | |
6067 | else | |
6068 | echo "$as_me: failed program was:" >&5 | |
6069 | cat conftest.$ac_ext >&5 | |
6070 | ac_cv_lib_intl_strftime=no | |
6071 | fi | |
6072 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6073 | LIBS=$ac_check_lib_save_LIBS | |
6074 | fi | |
6075 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
6076 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
6077 | if test $ac_cv_lib_intl_strftime = yes; then | |
6078 | cat >>confdefs.h <<\_ACEOF | |
6079 | @%:@define HAVE_STRFTIME 1 | |
6080 | _ACEOF | |
6081 | ||
6082 | LIBS="-lintl $LIBS" | |
6083 | fi | |
6084 | ||
6085 | fi | |
6086 | done | |
6087 | ||
6088 | ||
6089 | # Check for ALTDIRFUNC glob() extension | |
6090 | echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | |
6091 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6 | |
6092 | cat >conftest.$ac_ext <<_ACEOF | |
6093 | #line $LINENO "configure" | |
6094 | #include "confdefs.h" | |
6095 | ||
6096 | #include <glob.h> | |
6097 | #ifdef GLOB_ALTDIRFUNC | |
6098 | FOUNDIT | |
6099 | #endif | |
6100 | ||
6101 | _ACEOF | |
6102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6103 | egrep "FOUNDIT" >/dev/null 2>&1; then | |
6104 | ||
6105 | cat >>confdefs.h <<\_ACEOF | |
6106 | @%:@define GLOB_HAS_ALTDIRFUNC 1 | |
6107 | _ACEOF | |
6108 | ||
6109 | echo "$as_me:$LINENO: result: yes" >&5 | |
6110 | echo "${ECHO_T}yes" >&6 | |
6111 | ||
6112 | else | |
6113 | ||
6114 | echo "$as_me:$LINENO: result: no" >&5 | |
6115 | echo "${ECHO_T}no" >&6 | |
6116 | ||
6117 | ||
6118 | fi | |
6119 | rm -f conftest* | |
6120 | ||
6121 | ||
6122 | # Check for g.gl_matchc glob() extension | |
6123 | echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | |
6124 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6 | |
6125 | cat >conftest.$ac_ext <<_ACEOF | |
6126 | #line $LINENO "configure" | |
6127 | #include "confdefs.h" | |
6128 | ||
6129 | #include <glob.h> | |
6130 | int main(void){glob_t g; g.gl_matchc = 1;} | |
6131 | ||
6132 | _ACEOF | |
6133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6134 | egrep "FOUNDIT" >/dev/null 2>&1; then | |
6135 | ||
6136 | cat >>confdefs.h <<\_ACEOF | |
6137 | @%:@define GLOB_HAS_GL_MATCHC 1 | |
6138 | _ACEOF | |
6139 | ||
6140 | echo "$as_me:$LINENO: result: yes" >&5 | |
6141 | echo "${ECHO_T}yes" >&6 | |
6142 | ||
6143 | else | |
6144 | ||
6145 | echo "$as_me:$LINENO: result: no" >&5 | |
6146 | echo "${ECHO_T}no" >&6 | |
6147 | ||
6148 | ||
6149 | fi | |
6150 | rm -f conftest* | |
6151 | ||
6152 | ||
6153 | echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | |
6154 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6 | |
6155 | if test "$cross_compiling" = yes; then | |
6156 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
6157 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
6158 | { (exit 1); exit 1; }; } | |
6159 | else | |
6160 | cat >conftest.$ac_ext <<_ACEOF | |
6161 | #line $LINENO "configure" | |
6162 | #include "confdefs.h" | |
6163 | ||
6164 | #include <sys/types.h> | |
6165 | #include <dirent.h> | |
6166 | int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));} | |
6167 | ||
6168 | _ACEOF | |
6169 | rm -f conftest$ac_exeext | |
6170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6171 | (eval $ac_link) 2>&5 | |
6172 | ac_status=$? | |
6173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6176 | (eval $ac_try) 2>&5 | |
6177 | ac_status=$? | |
6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6179 | (exit $ac_status); }; }; then | |
6180 | echo "$as_me:$LINENO: result: yes" >&5 | |
6181 | echo "${ECHO_T}yes" >&6 | |
6182 | else | |
6183 | echo "$as_me: program exited with status $ac_status" >&5 | |
6184 | echo "$as_me: failed program was:" >&5 | |
6185 | cat conftest.$ac_ext >&5 | |
6186 | ( exit $ac_status ) | |
6187 | ||
6188 | echo "$as_me:$LINENO: result: no" >&5 | |
6189 | echo "${ECHO_T}no" >&6 | |
6190 | cat >>confdefs.h <<\_ACEOF | |
6191 | @%:@define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | |
6192 | _ACEOF | |
6193 | ||
6194 | ||
6195 | ||
6196 | fi | |
6197 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6198 | fi | |
6199 | ||
6200 | # Check whether user wants S/Key support | |
6201 | SKEY_MSG="no" | |
6202 | ||
6203 | # Check whether --with-skey or --without-skey was given. | |
6204 | if test "${with_skey+set}" = set; then | |
6205 | withval="$with_skey" | |
6206 | ||
6207 | if test "x$withval" != "xno" ; then | |
6208 | ||
6209 | if test "x$withval" != "xyes" ; then | |
6210 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | |
6211 | LDFLAGS="$LDFLAGS -L${withval}/lib" | |
6212 | fi | |
6213 | ||
6214 | cat >>confdefs.h <<\_ACEOF | |
6215 | @%:@define SKEY 1 | |
6216 | _ACEOF | |
6217 | ||
6218 | LIBS="-lskey $LIBS" | |
6219 | SKEY_MSG="yes" | |
6220 | ||
6221 | echo "$as_me:$LINENO: checking for s/key support" >&5 | |
6222 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6 | |
6223 | if test "$cross_compiling" = yes; then | |
6224 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
6225 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
6226 | { (exit 1); exit 1; }; } | |
6227 | else | |
6228 | cat >conftest.$ac_ext <<_ACEOF | |
6229 | #line $LINENO "configure" | |
6230 | #include "confdefs.h" | |
6231 | ||
6232 | #include <stdio.h> | |
6233 | #include <skey.h> | |
6234 | int main() { char *ff = skey_keyinfo(""); ff=""; return 0; } | |
6235 | ||
6236 | _ACEOF | |
6237 | rm -f conftest$ac_exeext | |
6238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6239 | (eval $ac_link) 2>&5 | |
6240 | ac_status=$? | |
6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6244 | (eval $ac_try) 2>&5 | |
6245 | ac_status=$? | |
6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6247 | (exit $ac_status); }; }; then | |
6248 | echo "$as_me:$LINENO: result: yes" >&5 | |
6249 | echo "${ECHO_T}yes" >&6 | |
6250 | else | |
6251 | echo "$as_me: program exited with status $ac_status" >&5 | |
6252 | echo "$as_me: failed program was:" >&5 | |
6253 | cat conftest.$ac_ext >&5 | |
6254 | ( exit $ac_status ) | |
6255 | ||
6256 | echo "$as_me:$LINENO: result: no" >&5 | |
6257 | echo "${ECHO_T}no" >&6 | |
6258 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | |
6259 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | |
6260 | { (exit 1); exit 1; }; } | |
6261 | ||
6262 | fi | |
6263 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6264 | fi | |
6265 | fi | |
6266 | ||
6267 | ||
6268 | fi; | |
6269 | ||
6270 | # Check whether user wants TCP wrappers support | |
6271 | TCPW_MSG="no" | |
6272 | ||
6273 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | |
6274 | if test "${with_tcp_wrappers+set}" = set; then | |
6275 | withval="$with_tcp_wrappers" | |
6276 | ||
6277 | if test "x$withval" != "xno" ; then | |
6278 | saved_LIBS="$LIBS" | |
6279 | saved_LDFLAGS="$LDFLAGS" | |
6280 | saved_CPPFLAGS="$CPPFLAGS" | |
6281 | if test -n "${withval}" -a "${withval}" != "yes"; then | |
6282 | if test -d "${withval}/lib"; then | |
6283 | if test -n "${need_dash_r}"; then | |
6284 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | |
6285 | else | |
6286 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | |
6287 | fi | |
6288 | else | |
6289 | if test -n "${need_dash_r}"; then | |
6290 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | |
6291 | else | |
6292 | LDFLAGS="-L${withval} ${LDFLAGS}" | |
6293 | fi | |
6294 | fi | |
6295 | if test -d "${withval}/include"; then | |
6296 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | |
6297 | else | |
6298 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | |
6299 | fi | |
6300 | fi | |
6301 | LIBWRAP="-lwrap" | |
6302 | LIBS="$LIBWRAP $LIBS" | |
6303 | echo "$as_me:$LINENO: checking for libwrap" >&5 | |
6304 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 | |
6305 | cat >conftest.$ac_ext <<_ACEOF | |
6306 | #line $LINENO "configure" | |
6307 | #include "confdefs.h" | |
6308 | ||
6309 | #include <tcpd.h> | |
6310 | int deny_severity = 0, allow_severity = 0; | |
6311 | ||
6312 | #ifdef F77_DUMMY_MAIN | |
6313 | # ifdef __cplusplus | |
6314 | extern "C" | |
6315 | # endif | |
6316 | int F77_DUMMY_MAIN() { return 1; } | |
6317 | #endif | |
6318 | int | |
6319 | main () | |
6320 | { | |
6321 | hosts_access(0); | |
6322 | ; | |
6323 | return 0; | |
6324 | } | |
6325 | _ACEOF | |
6326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6328 | (eval $ac_link) 2>&5 | |
6329 | ac_status=$? | |
6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6331 | (exit $ac_status); } && | |
6332 | { ac_try='test -s conftest$ac_exeext' | |
6333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6334 | (eval $ac_try) 2>&5 | |
6335 | ac_status=$? | |
6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6337 | (exit $ac_status); }; }; then | |
6338 | ||
6339 | echo "$as_me:$LINENO: result: yes" >&5 | |
6340 | echo "${ECHO_T}yes" >&6 | |
6341 | cat >>confdefs.h <<\_ACEOF | |
6342 | @%:@define LIBWRAP 1 | |
6343 | _ACEOF | |
6344 | ||
6345 | ||
6346 | TCPW_MSG="yes" | |
6347 | ||
6348 | else | |
6349 | echo "$as_me: failed program was:" >&5 | |
6350 | cat conftest.$ac_ext >&5 | |
6351 | ||
6352 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | |
6353 | echo "$as_me: error: *** libwrap missing" >&2;} | |
6354 | { (exit 1); exit 1; }; } | |
6355 | ||
6356 | ||
6357 | fi | |
6358 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6359 | LIBS="$saved_LIBS" | |
6360 | fi | |
6361 | ||
6362 | ||
6363 | fi; | |
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
f5799ae1 | 6427 | |
6428 | ||
700318f3 | 6429 | |
6430 | ||
6431 | ||
6432 | for ac_func in arc4random b64_ntop bcopy bindresvport_sa \ | |
6433 | clock fchmod fchown freeaddrinfo futimes gai_strerror \ | |
6434 | getaddrinfo getcwd getgrouplist getnameinfo getopt \ | |
6435 | getrlimit getrusage getttyent glob inet_aton inet_ntoa \ | |
6436 | inet_ntop innetgr login_getcapbool md5_crypt memmove \ | |
6437 | mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \ | |
6438 | realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ | |
f5799ae1 | 6439 | setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ |
6440 | setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ | |
6441 | socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ | |
6442 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty | |
700318f3 | 6443 | do |
6444 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6445 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6446 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6447 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6449 | else | |
6450 | cat >conftest.$ac_ext <<_ACEOF | |
6451 | #line $LINENO "configure" | |
6452 | #include "confdefs.h" | |
6453 | /* System header to define __stub macros and hopefully few prototypes, | |
6454 | which can conflict with char $ac_func (); below. */ | |
6455 | #include <assert.h> | |
6456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6457 | #ifdef __cplusplus | |
6458 | extern "C" | |
6459 | #endif | |
6460 | /* We use char because int might match the return type of a gcc2 | |
6461 | builtin and then its argument prototype would still apply. */ | |
6462 | char $ac_func (); | |
6463 | char (*f) (); | |
6464 | ||
6465 | #ifdef F77_DUMMY_MAIN | |
6466 | # ifdef __cplusplus | |
6467 | extern "C" | |
6468 | # endif | |
6469 | int F77_DUMMY_MAIN() { return 1; } | |
6470 | #endif | |
6471 | int | |
6472 | main () | |
6473 | { | |
6474 | /* The GNU C library defines this for functions which it implements | |
6475 | to always fail with ENOSYS. Some functions are actually named | |
6476 | something starting with __ and the normal name is an alias. */ | |
6477 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6478 | choke me | |
6479 | #else | |
6480 | f = $ac_func; | |
6481 | #endif | |
6482 | ||
6483 | ; | |
6484 | return 0; | |
6485 | } | |
6486 | _ACEOF | |
6487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6489 | (eval $ac_link) 2>&5 | |
6490 | ac_status=$? | |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6492 | (exit $ac_status); } && | |
6493 | { ac_try='test -s conftest$ac_exeext' | |
6494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6495 | (eval $ac_try) 2>&5 | |
6496 | ac_status=$? | |
6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6498 | (exit $ac_status); }; }; then | |
6499 | eval "$as_ac_var=yes" | |
6500 | else | |
6501 | echo "$as_me: failed program was:" >&5 | |
6502 | cat conftest.$ac_ext >&5 | |
6503 | eval "$as_ac_var=no" | |
6504 | fi | |
6505 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6506 | fi | |
6507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6509 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6510 | cat >>confdefs.h <<_ACEOF | |
6511 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6512 | _ACEOF | |
6513 | ||
6514 | fi | |
6515 | done | |
6516 | ||
6517 | ||
6518 | ||
6519 | for ac_func in dirname | |
6520 | do | |
6521 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6522 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6523 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6524 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6526 | else | |
6527 | cat >conftest.$ac_ext <<_ACEOF | |
6528 | #line $LINENO "configure" | |
6529 | #include "confdefs.h" | |
6530 | /* System header to define __stub macros and hopefully few prototypes, | |
6531 | which can conflict with char $ac_func (); below. */ | |
6532 | #include <assert.h> | |
6533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6534 | #ifdef __cplusplus | |
6535 | extern "C" | |
6536 | #endif | |
6537 | /* We use char because int might match the return type of a gcc2 | |
6538 | builtin and then its argument prototype would still apply. */ | |
6539 | char $ac_func (); | |
6540 | char (*f) (); | |
6541 | ||
6542 | #ifdef F77_DUMMY_MAIN | |
6543 | # ifdef __cplusplus | |
6544 | extern "C" | |
6545 | # endif | |
6546 | int F77_DUMMY_MAIN() { return 1; } | |
6547 | #endif | |
6548 | int | |
6549 | main () | |
6550 | { | |
6551 | /* The GNU C library defines this for functions which it implements | |
6552 | to always fail with ENOSYS. Some functions are actually named | |
6553 | something starting with __ and the normal name is an alias. */ | |
6554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6555 | choke me | |
6556 | #else | |
6557 | f = $ac_func; | |
6558 | #endif | |
6559 | ||
6560 | ; | |
6561 | return 0; | |
6562 | } | |
6563 | _ACEOF | |
6564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6566 | (eval $ac_link) 2>&5 | |
6567 | ac_status=$? | |
6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6569 | (exit $ac_status); } && | |
6570 | { ac_try='test -s conftest$ac_exeext' | |
6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6572 | (eval $ac_try) 2>&5 | |
6573 | ac_status=$? | |
6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6575 | (exit $ac_status); }; }; then | |
6576 | eval "$as_ac_var=yes" | |
6577 | else | |
6578 | echo "$as_me: failed program was:" >&5 | |
6579 | cat conftest.$ac_ext >&5 | |
6580 | eval "$as_ac_var=no" | |
6581 | fi | |
6582 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6583 | fi | |
6584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6585 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6586 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6587 | cat >>confdefs.h <<_ACEOF | |
6588 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6589 | _ACEOF | |
6590 | ||
6591 | for ac_header in libgen.h | |
6592 | do | |
6593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6599 | fi | |
6600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6602 | else | |
6603 | # Is the header compilable? | |
6604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6606 | cat >conftest.$ac_ext <<_ACEOF | |
6607 | #line $LINENO "configure" | |
6608 | #include "confdefs.h" | |
6609 | $ac_includes_default | |
6610 | @%:@include <$ac_header> | |
6611 | _ACEOF | |
6612 | rm -f conftest.$ac_objext | |
6613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6614 | (eval $ac_compile) 2>&5 | |
6615 | ac_status=$? | |
6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6617 | (exit $ac_status); } && | |
6618 | { ac_try='test -s conftest.$ac_objext' | |
6619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6620 | (eval $ac_try) 2>&5 | |
6621 | ac_status=$? | |
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6623 | (exit $ac_status); }; }; then | |
6624 | ac_header_compiler=yes | |
6625 | else | |
6626 | echo "$as_me: failed program was:" >&5 | |
6627 | cat conftest.$ac_ext >&5 | |
6628 | ac_header_compiler=no | |
6629 | fi | |
6630 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6631 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6632 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6633 | ||
6634 | # Is the header present? | |
6635 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6636 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6637 | cat >conftest.$ac_ext <<_ACEOF | |
6638 | #line $LINENO "configure" | |
6639 | #include "confdefs.h" | |
6640 | @%:@include <$ac_header> | |
6641 | _ACEOF | |
6642 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6643 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6644 | ac_status=$? | |
6645 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6646 | rm -f conftest.er1 | |
6647 | cat conftest.err >&5 | |
6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6649 | (exit $ac_status); } >/dev/null; then | |
6650 | if test -s conftest.err; then | |
6651 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6652 | else | |
6653 | ac_cpp_err= | |
6654 | fi | |
6655 | else | |
6656 | ac_cpp_err=yes | |
6657 | fi | |
6658 | if test -z "$ac_cpp_err"; then | |
6659 | ac_header_preproc=yes | |
6660 | else | |
6661 | echo "$as_me: failed program was:" >&5 | |
6662 | cat conftest.$ac_ext >&5 | |
6663 | ac_header_preproc=no | |
6664 | fi | |
6665 | rm -f conftest.err conftest.$ac_ext | |
6666 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6667 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6668 | ||
6669 | # So? What about this header? | |
6670 | case $ac_header_compiler:$ac_header_preproc in | |
6671 | yes:no ) | |
6672 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6673 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6675 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6676 | no:yes ) | |
6677 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6678 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6679 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6680 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6682 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6683 | esac | |
6684 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6686 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6688 | else | |
6689 | eval "$as_ac_Header=$ac_header_preproc" | |
6690 | fi | |
6691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6692 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6693 | ||
6694 | fi | |
6695 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6696 | cat >>confdefs.h <<_ACEOF | |
6697 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6698 | _ACEOF | |
6699 | ||
6700 | fi | |
6701 | ||
6702 | done | |
6703 | ||
6704 | else | |
6705 | ||
6706 | echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | |
6707 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6 | |
6708 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | |
6709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6710 | else | |
6711 | ac_check_lib_save_LIBS=$LIBS | |
6712 | LIBS="-lgen $LIBS" | |
6713 | cat >conftest.$ac_ext <<_ACEOF | |
6714 | #line $LINENO "configure" | |
6715 | #include "confdefs.h" | |
6716 | ||
6717 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6718 | #ifdef __cplusplus | |
6719 | extern "C" | |
6720 | #endif | |
6721 | /* We use char because int might match the return type of a gcc2 | |
6722 | builtin and then its argument prototype would still apply. */ | |
6723 | char dirname (); | |
6724 | #ifdef F77_DUMMY_MAIN | |
6725 | # ifdef __cplusplus | |
6726 | extern "C" | |
6727 | # endif | |
6728 | int F77_DUMMY_MAIN() { return 1; } | |
6729 | #endif | |
6730 | int | |
6731 | main () | |
6732 | { | |
6733 | dirname (); | |
6734 | ; | |
6735 | return 0; | |
6736 | } | |
6737 | _ACEOF | |
6738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6740 | (eval $ac_link) 2>&5 | |
6741 | ac_status=$? | |
6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6743 | (exit $ac_status); } && | |
6744 | { ac_try='test -s conftest$ac_exeext' | |
6745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6746 | (eval $ac_try) 2>&5 | |
6747 | ac_status=$? | |
6748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6749 | (exit $ac_status); }; }; then | |
6750 | ac_cv_lib_gen_dirname=yes | |
6751 | else | |
6752 | echo "$as_me: failed program was:" >&5 | |
6753 | cat conftest.$ac_ext >&5 | |
6754 | ac_cv_lib_gen_dirname=no | |
6755 | fi | |
6756 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6757 | LIBS=$ac_check_lib_save_LIBS | |
6758 | fi | |
6759 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | |
6760 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6 | |
6761 | if test $ac_cv_lib_gen_dirname = yes; then | |
6762 | ||
6763 | echo "$as_me:$LINENO: checking for broken dirname" >&5 | |
6764 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6 | |
6765 | if test "${ac_cv_have_broken_dirname+set}" = set; then | |
6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6767 | else | |
6768 | ||
6769 | save_LIBS="$LIBS" | |
6770 | LIBS="$LIBS -lgen" | |
6771 | if test "$cross_compiling" = yes; then | |
6772 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
6773 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
6774 | { (exit 1); exit 1; }; } | |
6775 | else | |
6776 | cat >conftest.$ac_ext <<_ACEOF | |
6777 | #line $LINENO "configure" | |
6778 | #include "confdefs.h" | |
6779 | ||
6780 | #include <libgen.h> | |
6781 | #include <string.h> | |
6782 | ||
6783 | int main(int argc, char **argv) { | |
6784 | char *s, buf[32]; | |
6785 | ||
6786 | strncpy(buf,"/etc", 32); | |
6787 | s = dirname(buf); | |
6788 | if (!s || strncmp(s, "/", 32) != 0) { | |
6789 | exit(1); | |
6790 | } else { | |
6791 | exit(0); | |
6792 | } | |
6793 | } | |
6794 | ||
6795 | _ACEOF | |
6796 | rm -f conftest$ac_exeext | |
6797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6798 | (eval $ac_link) 2>&5 | |
6799 | ac_status=$? | |
6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6803 | (eval $ac_try) 2>&5 | |
6804 | ac_status=$? | |
6805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6806 | (exit $ac_status); }; }; then | |
6807 | ac_cv_have_broken_dirname="no" | |
6808 | else | |
6809 | echo "$as_me: program exited with status $ac_status" >&5 | |
6810 | echo "$as_me: failed program was:" >&5 | |
6811 | cat conftest.$ac_ext >&5 | |
6812 | ( exit $ac_status ) | |
6813 | ac_cv_have_broken_dirname="yes" | |
6814 | ||
6815 | fi | |
6816 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6817 | fi | |
6818 | LIBS="$save_LIBS" | |
6819 | ||
6820 | fi | |
6821 | echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | |
6822 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6 | |
6823 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | |
6824 | LIBS="$LIBS -lgen" | |
6825 | cat >>confdefs.h <<\_ACEOF | |
6826 | @%:@define HAVE_DIRNAME 1 | |
6827 | _ACEOF | |
6828 | ||
6829 | ||
6830 | for ac_header in libgen.h | |
6831 | do | |
6832 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6838 | fi | |
6839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6840 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6841 | else | |
6842 | # Is the header compilable? | |
6843 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6844 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6845 | cat >conftest.$ac_ext <<_ACEOF | |
6846 | #line $LINENO "configure" | |
6847 | #include "confdefs.h" | |
6848 | $ac_includes_default | |
6849 | @%:@include <$ac_header> | |
6850 | _ACEOF | |
6851 | rm -f conftest.$ac_objext | |
6852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6853 | (eval $ac_compile) 2>&5 | |
6854 | ac_status=$? | |
6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6856 | (exit $ac_status); } && | |
6857 | { ac_try='test -s conftest.$ac_objext' | |
6858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6859 | (eval $ac_try) 2>&5 | |
6860 | ac_status=$? | |
6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6862 | (exit $ac_status); }; }; then | |
6863 | ac_header_compiler=yes | |
6864 | else | |
6865 | echo "$as_me: failed program was:" >&5 | |
6866 | cat conftest.$ac_ext >&5 | |
6867 | ac_header_compiler=no | |
6868 | fi | |
6869 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6871 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6872 | ||
6873 | # Is the header present? | |
6874 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6875 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6876 | cat >conftest.$ac_ext <<_ACEOF | |
6877 | #line $LINENO "configure" | |
6878 | #include "confdefs.h" | |
6879 | @%:@include <$ac_header> | |
6880 | _ACEOF | |
6881 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6882 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6883 | ac_status=$? | |
6884 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6885 | rm -f conftest.er1 | |
6886 | cat conftest.err >&5 | |
6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6888 | (exit $ac_status); } >/dev/null; then | |
6889 | if test -s conftest.err; then | |
6890 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6891 | else | |
6892 | ac_cpp_err= | |
6893 | fi | |
6894 | else | |
6895 | ac_cpp_err=yes | |
6896 | fi | |
6897 | if test -z "$ac_cpp_err"; then | |
6898 | ac_header_preproc=yes | |
6899 | else | |
6900 | echo "$as_me: failed program was:" >&5 | |
6901 | cat conftest.$ac_ext >&5 | |
6902 | ac_header_preproc=no | |
6903 | fi | |
6904 | rm -f conftest.err conftest.$ac_ext | |
6905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6906 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6907 | ||
6908 | # So? What about this header? | |
6909 | case $ac_header_compiler:$ac_header_preproc in | |
6910 | yes:no ) | |
6911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6915 | no:yes ) | |
6916 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6917 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6918 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6919 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6921 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6922 | esac | |
6923 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6925 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6927 | else | |
6928 | eval "$as_ac_Header=$ac_header_preproc" | |
6929 | fi | |
6930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6932 | ||
6933 | fi | |
6934 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6935 | cat >>confdefs.h <<_ACEOF | |
6936 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6937 | _ACEOF | |
6938 | ||
6939 | fi | |
6940 | ||
6941 | done | |
6942 | ||
6943 | fi | |
6944 | ||
6945 | fi | |
6946 | ||
6947 | ||
6948 | fi | |
6949 | done | |
6950 | ||
6951 | ||
6952 | ||
6953 | ||
6954 | for ac_func in gettimeofday time | |
6955 | do | |
6956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6961 | else | |
6962 | cat >conftest.$ac_ext <<_ACEOF | |
6963 | #line $LINENO "configure" | |
6964 | #include "confdefs.h" | |
6965 | /* System header to define __stub macros and hopefully few prototypes, | |
6966 | which can conflict with char $ac_func (); below. */ | |
6967 | #include <assert.h> | |
6968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6969 | #ifdef __cplusplus | |
6970 | extern "C" | |
6971 | #endif | |
6972 | /* We use char because int might match the return type of a gcc2 | |
6973 | builtin and then its argument prototype would still apply. */ | |
6974 | char $ac_func (); | |
6975 | char (*f) (); | |
6976 | ||
6977 | #ifdef F77_DUMMY_MAIN | |
6978 | # ifdef __cplusplus | |
6979 | extern "C" | |
6980 | # endif | |
6981 | int F77_DUMMY_MAIN() { return 1; } | |
6982 | #endif | |
6983 | int | |
6984 | main () | |
6985 | { | |
6986 | /* The GNU C library defines this for functions which it implements | |
6987 | to always fail with ENOSYS. Some functions are actually named | |
6988 | something starting with __ and the normal name is an alias. */ | |
6989 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6990 | choke me | |
6991 | #else | |
6992 | f = $ac_func; | |
6993 | #endif | |
6994 | ||
6995 | ; | |
6996 | return 0; | |
6997 | } | |
6998 | _ACEOF | |
6999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7001 | (eval $ac_link) 2>&5 | |
7002 | ac_status=$? | |
7003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7004 | (exit $ac_status); } && | |
7005 | { ac_try='test -s conftest$ac_exeext' | |
7006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7007 | (eval $ac_try) 2>&5 | |
7008 | ac_status=$? | |
7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7010 | (exit $ac_status); }; }; then | |
7011 | eval "$as_ac_var=yes" | |
7012 | else | |
7013 | echo "$as_me: failed program was:" >&5 | |
7014 | cat conftest.$ac_ext >&5 | |
7015 | eval "$as_ac_var=no" | |
7016 | fi | |
7017 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7018 | fi | |
7019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7020 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7021 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7022 | cat >>confdefs.h <<_ACEOF | |
7023 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7024 | _ACEOF | |
7025 | ||
7026 | fi | |
7027 | done | |
7028 | ||
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | for ac_func in endutent getutent getutid getutline pututline setutent | |
7036 | do | |
7037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7038 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7040 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7042 | else | |
7043 | cat >conftest.$ac_ext <<_ACEOF | |
7044 | #line $LINENO "configure" | |
7045 | #include "confdefs.h" | |
7046 | /* System header to define __stub macros and hopefully few prototypes, | |
7047 | which can conflict with char $ac_func (); below. */ | |
7048 | #include <assert.h> | |
7049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7050 | #ifdef __cplusplus | |
7051 | extern "C" | |
7052 | #endif | |
7053 | /* We use char because int might match the return type of a gcc2 | |
7054 | builtin and then its argument prototype would still apply. */ | |
7055 | char $ac_func (); | |
7056 | char (*f) (); | |
7057 | ||
7058 | #ifdef F77_DUMMY_MAIN | |
7059 | # ifdef __cplusplus | |
7060 | extern "C" | |
7061 | # endif | |
7062 | int F77_DUMMY_MAIN() { return 1; } | |
7063 | #endif | |
7064 | int | |
7065 | main () | |
7066 | { | |
7067 | /* The GNU C library defines this for functions which it implements | |
7068 | to always fail with ENOSYS. Some functions are actually named | |
7069 | something starting with __ and the normal name is an alias. */ | |
7070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7071 | choke me | |
7072 | #else | |
7073 | f = $ac_func; | |
7074 | #endif | |
7075 | ||
7076 | ; | |
7077 | return 0; | |
7078 | } | |
7079 | _ACEOF | |
7080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7082 | (eval $ac_link) 2>&5 | |
7083 | ac_status=$? | |
7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7085 | (exit $ac_status); } && | |
7086 | { ac_try='test -s conftest$ac_exeext' | |
7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7088 | (eval $ac_try) 2>&5 | |
7089 | ac_status=$? | |
7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7091 | (exit $ac_status); }; }; then | |
7092 | eval "$as_ac_var=yes" | |
7093 | else | |
7094 | echo "$as_me: failed program was:" >&5 | |
7095 | cat conftest.$ac_ext >&5 | |
7096 | eval "$as_ac_var=no" | |
7097 | fi | |
7098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7099 | fi | |
7100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7101 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7102 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7103 | cat >>confdefs.h <<_ACEOF | |
7104 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7105 | _ACEOF | |
7106 | ||
7107 | fi | |
7108 | done | |
7109 | ||
7110 | ||
7111 | for ac_func in utmpname | |
7112 | do | |
7113 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7114 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7115 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7116 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7118 | else | |
7119 | cat >conftest.$ac_ext <<_ACEOF | |
7120 | #line $LINENO "configure" | |
7121 | #include "confdefs.h" | |
7122 | /* System header to define __stub macros and hopefully few prototypes, | |
7123 | which can conflict with char $ac_func (); below. */ | |
7124 | #include <assert.h> | |
7125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7126 | #ifdef __cplusplus | |
7127 | extern "C" | |
7128 | #endif | |
7129 | /* We use char because int might match the return type of a gcc2 | |
7130 | builtin and then its argument prototype would still apply. */ | |
7131 | char $ac_func (); | |
7132 | char (*f) (); | |
7133 | ||
7134 | #ifdef F77_DUMMY_MAIN | |
7135 | # ifdef __cplusplus | |
7136 | extern "C" | |
7137 | # endif | |
7138 | int F77_DUMMY_MAIN() { return 1; } | |
7139 | #endif | |
7140 | int | |
7141 | main () | |
7142 | { | |
7143 | /* The GNU C library defines this for functions which it implements | |
7144 | to always fail with ENOSYS. Some functions are actually named | |
7145 | something starting with __ and the normal name is an alias. */ | |
7146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7147 | choke me | |
7148 | #else | |
7149 | f = $ac_func; | |
7150 | #endif | |
7151 | ||
7152 | ; | |
7153 | return 0; | |
7154 | } | |
7155 | _ACEOF | |
7156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7158 | (eval $ac_link) 2>&5 | |
7159 | ac_status=$? | |
7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7161 | (exit $ac_status); } && | |
7162 | { ac_try='test -s conftest$ac_exeext' | |
7163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7164 | (eval $ac_try) 2>&5 | |
7165 | ac_status=$? | |
7166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7167 | (exit $ac_status); }; }; then | |
7168 | eval "$as_ac_var=yes" | |
7169 | else | |
7170 | echo "$as_me: failed program was:" >&5 | |
7171 | cat conftest.$ac_ext >&5 | |
7172 | eval "$as_ac_var=no" | |
7173 | fi | |
7174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7175 | fi | |
7176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7177 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7178 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7179 | cat >>confdefs.h <<_ACEOF | |
7180 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7181 | _ACEOF | |
7182 | ||
7183 | fi | |
7184 | done | |
7185 | ||
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | for ac_func in endutxent getutxent getutxid getutxline pututxline | |
7192 | do | |
7193 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7194 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7195 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7196 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7198 | else | |
7199 | cat >conftest.$ac_ext <<_ACEOF | |
7200 | #line $LINENO "configure" | |
7201 | #include "confdefs.h" | |
7202 | /* System header to define __stub macros and hopefully few prototypes, | |
7203 | which can conflict with char $ac_func (); below. */ | |
7204 | #include <assert.h> | |
7205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7206 | #ifdef __cplusplus | |
7207 | extern "C" | |
7208 | #endif | |
7209 | /* We use char because int might match the return type of a gcc2 | |
7210 | builtin and then its argument prototype would still apply. */ | |
7211 | char $ac_func (); | |
7212 | char (*f) (); | |
7213 | ||
7214 | #ifdef F77_DUMMY_MAIN | |
7215 | # ifdef __cplusplus | |
7216 | extern "C" | |
7217 | # endif | |
7218 | int F77_DUMMY_MAIN() { return 1; } | |
7219 | #endif | |
7220 | int | |
7221 | main () | |
7222 | { | |
7223 | /* The GNU C library defines this for functions which it implements | |
7224 | to always fail with ENOSYS. Some functions are actually named | |
7225 | something starting with __ and the normal name is an alias. */ | |
7226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7227 | choke me | |
7228 | #else | |
7229 | f = $ac_func; | |
7230 | #endif | |
7231 | ||
7232 | ; | |
7233 | return 0; | |
7234 | } | |
7235 | _ACEOF | |
7236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7238 | (eval $ac_link) 2>&5 | |
7239 | ac_status=$? | |
7240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7241 | (exit $ac_status); } && | |
7242 | { ac_try='test -s conftest$ac_exeext' | |
7243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7244 | (eval $ac_try) 2>&5 | |
7245 | ac_status=$? | |
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7247 | (exit $ac_status); }; }; then | |
7248 | eval "$as_ac_var=yes" | |
7249 | else | |
7250 | echo "$as_me: failed program was:" >&5 | |
7251 | cat conftest.$ac_ext >&5 | |
7252 | eval "$as_ac_var=no" | |
7253 | fi | |
7254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7255 | fi | |
7256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7257 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7258 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7259 | cat >>confdefs.h <<_ACEOF | |
7260 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7261 | _ACEOF | |
7262 | ||
7263 | fi | |
7264 | done | |
7265 | ||
7266 | ||
7267 | ||
7268 | for ac_func in setutxent utmpxname | |
7269 | do | |
7270 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7271 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7272 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7273 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7275 | else | |
7276 | cat >conftest.$ac_ext <<_ACEOF | |
7277 | #line $LINENO "configure" | |
7278 | #include "confdefs.h" | |
7279 | /* System header to define __stub macros and hopefully few prototypes, | |
7280 | which can conflict with char $ac_func (); below. */ | |
7281 | #include <assert.h> | |
7282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7283 | #ifdef __cplusplus | |
7284 | extern "C" | |
7285 | #endif | |
7286 | /* We use char because int might match the return type of a gcc2 | |
7287 | builtin and then its argument prototype would still apply. */ | |
7288 | char $ac_func (); | |
7289 | char (*f) (); | |
7290 | ||
7291 | #ifdef F77_DUMMY_MAIN | |
7292 | # ifdef __cplusplus | |
7293 | extern "C" | |
7294 | # endif | |
7295 | int F77_DUMMY_MAIN() { return 1; } | |
7296 | #endif | |
7297 | int | |
7298 | main () | |
7299 | { | |
7300 | /* The GNU C library defines this for functions which it implements | |
7301 | to always fail with ENOSYS. Some functions are actually named | |
7302 | something starting with __ and the normal name is an alias. */ | |
7303 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7304 | choke me | |
7305 | #else | |
7306 | f = $ac_func; | |
7307 | #endif | |
7308 | ||
7309 | ; | |
7310 | return 0; | |
7311 | } | |
7312 | _ACEOF | |
7313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7315 | (eval $ac_link) 2>&5 | |
7316 | ac_status=$? | |
7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7318 | (exit $ac_status); } && | |
7319 | { ac_try='test -s conftest$ac_exeext' | |
7320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7321 | (eval $ac_try) 2>&5 | |
7322 | ac_status=$? | |
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7324 | (exit $ac_status); }; }; then | |
7325 | eval "$as_ac_var=yes" | |
7326 | else | |
7327 | echo "$as_me: failed program was:" >&5 | |
7328 | cat conftest.$ac_ext >&5 | |
7329 | eval "$as_ac_var=no" | |
7330 | fi | |
7331 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7332 | fi | |
7333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7334 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7335 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7336 | cat >>confdefs.h <<_ACEOF | |
7337 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7338 | _ACEOF | |
7339 | ||
7340 | fi | |
7341 | done | |
7342 | ||
7343 | ||
700318f3 | 7344 | echo "$as_me:$LINENO: checking for daemon" >&5 |
7345 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6 | |
7346 | if test "${ac_cv_func_daemon+set}" = set; then | |
7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7348 | else | |
7349 | cat >conftest.$ac_ext <<_ACEOF | |
7350 | #line $LINENO "configure" | |
7351 | #include "confdefs.h" | |
7352 | /* System header to define __stub macros and hopefully few prototypes, | |
7353 | which can conflict with char daemon (); below. */ | |
7354 | #include <assert.h> | |
7355 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7356 | #ifdef __cplusplus | |
7357 | extern "C" | |
7358 | #endif | |
7359 | /* We use char because int might match the return type of a gcc2 | |
7360 | builtin and then its argument prototype would still apply. */ | |
7361 | char daemon (); | |
7362 | char (*f) (); | |
7363 | ||
7364 | #ifdef F77_DUMMY_MAIN | |
7365 | # ifdef __cplusplus | |
7366 | extern "C" | |
7367 | # endif | |
7368 | int F77_DUMMY_MAIN() { return 1; } | |
7369 | #endif | |
7370 | int | |
7371 | main () | |
7372 | { | |
7373 | /* The GNU C library defines this for functions which it implements | |
7374 | to always fail with ENOSYS. Some functions are actually named | |
7375 | something starting with __ and the normal name is an alias. */ | |
7376 | #if defined (__stub_daemon) || defined (__stub___daemon) | |
7377 | choke me | |
7378 | #else | |
7379 | f = daemon; | |
7380 | #endif | |
7381 | ||
7382 | ; | |
7383 | return 0; | |
7384 | } | |
7385 | _ACEOF | |
7386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7388 | (eval $ac_link) 2>&5 | |
7389 | ac_status=$? | |
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7391 | (exit $ac_status); } && | |
7392 | { ac_try='test -s conftest$ac_exeext' | |
7393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7394 | (eval $ac_try) 2>&5 | |
7395 | ac_status=$? | |
7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7397 | (exit $ac_status); }; }; then | |
7398 | ac_cv_func_daemon=yes | |
7399 | else | |
7400 | echo "$as_me: failed program was:" >&5 | |
7401 | cat conftest.$ac_ext >&5 | |
7402 | ac_cv_func_daemon=no | |
7403 | fi | |
7404 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7405 | fi | |
7406 | echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | |
7407 | echo "${ECHO_T}$ac_cv_func_daemon" >&6 | |
7408 | if test $ac_cv_func_daemon = yes; then | |
7409 | cat >>confdefs.h <<\_ACEOF | |
7410 | @%:@define HAVE_DAEMON 1 | |
7411 | _ACEOF | |
7412 | ||
7413 | else | |
7414 | echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | |
7415 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6 | |
7416 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | |
7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7418 | else | |
7419 | ac_check_lib_save_LIBS=$LIBS | |
7420 | LIBS="-lbsd $LIBS" | |
7421 | cat >conftest.$ac_ext <<_ACEOF | |
7422 | #line $LINENO "configure" | |
7423 | #include "confdefs.h" | |
7424 | ||
7425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7426 | #ifdef __cplusplus | |
7427 | extern "C" | |
7428 | #endif | |
7429 | /* We use char because int might match the return type of a gcc2 | |
7430 | builtin and then its argument prototype would still apply. */ | |
7431 | char daemon (); | |
7432 | #ifdef F77_DUMMY_MAIN | |
7433 | # ifdef __cplusplus | |
7434 | extern "C" | |
7435 | # endif | |
7436 | int F77_DUMMY_MAIN() { return 1; } | |
7437 | #endif | |
7438 | int | |
7439 | main () | |
7440 | { | |
7441 | daemon (); | |
7442 | ; | |
7443 | return 0; | |
7444 | } | |
7445 | _ACEOF | |
7446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7448 | (eval $ac_link) 2>&5 | |
7449 | ac_status=$? | |
7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7451 | (exit $ac_status); } && | |
7452 | { ac_try='test -s conftest$ac_exeext' | |
7453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7454 | (eval $ac_try) 2>&5 | |
7455 | ac_status=$? | |
7456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7457 | (exit $ac_status); }; }; then | |
7458 | ac_cv_lib_bsd_daemon=yes | |
7459 | else | |
7460 | echo "$as_me: failed program was:" >&5 | |
7461 | cat conftest.$ac_ext >&5 | |
7462 | ac_cv_lib_bsd_daemon=no | |
7463 | fi | |
7464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7465 | LIBS=$ac_check_lib_save_LIBS | |
7466 | fi | |
7467 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | |
7468 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6 | |
7469 | if test $ac_cv_lib_bsd_daemon = yes; then | |
7470 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | |
7471 | @%:@define HAVE_DAEMON 1 | |
7472 | _ACEOF | |
7473 | ||
7474 | fi | |
7475 | ||
7476 | ||
7477 | fi | |
7478 | ||
7479 | ||
7480 | echo "$as_me:$LINENO: checking for getpagesize" >&5 | |
7481 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 | |
7482 | if test "${ac_cv_func_getpagesize+set}" = set; then | |
7483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7484 | else | |
7485 | cat >conftest.$ac_ext <<_ACEOF | |
7486 | #line $LINENO "configure" | |
7487 | #include "confdefs.h" | |
7488 | /* System header to define __stub macros and hopefully few prototypes, | |
7489 | which can conflict with char getpagesize (); below. */ | |
7490 | #include <assert.h> | |
7491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7492 | #ifdef __cplusplus | |
7493 | extern "C" | |
7494 | #endif | |
7495 | /* We use char because int might match the return type of a gcc2 | |
7496 | builtin and then its argument prototype would still apply. */ | |
7497 | char getpagesize (); | |
7498 | char (*f) (); | |
7499 | ||
7500 | #ifdef F77_DUMMY_MAIN | |
7501 | # ifdef __cplusplus | |
7502 | extern "C" | |
7503 | # endif | |
7504 | int F77_DUMMY_MAIN() { return 1; } | |
7505 | #endif | |
7506 | int | |
7507 | main () | |
7508 | { | |
7509 | /* The GNU C library defines this for functions which it implements | |
7510 | to always fail with ENOSYS. Some functions are actually named | |
7511 | something starting with __ and the normal name is an alias. */ | |
7512 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | |
7513 | choke me | |
7514 | #else | |
7515 | f = getpagesize; | |
7516 | #endif | |
7517 | ||
7518 | ; | |
7519 | return 0; | |
7520 | } | |
7521 | _ACEOF | |
7522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7524 | (eval $ac_link) 2>&5 | |
7525 | ac_status=$? | |
7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7527 | (exit $ac_status); } && | |
7528 | { ac_try='test -s conftest$ac_exeext' | |
7529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7530 | (eval $ac_try) 2>&5 | |
7531 | ac_status=$? | |
7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7533 | (exit $ac_status); }; }; then | |
7534 | ac_cv_func_getpagesize=yes | |
7535 | else | |
7536 | echo "$as_me: failed program was:" >&5 | |
7537 | cat conftest.$ac_ext >&5 | |
7538 | ac_cv_func_getpagesize=no | |
7539 | fi | |
7540 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7541 | fi | |
7542 | echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | |
7543 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6 | |
7544 | if test $ac_cv_func_getpagesize = yes; then | |
7545 | cat >>confdefs.h <<\_ACEOF | |
7546 | @%:@define HAVE_GETPAGESIZE 1 | |
7547 | _ACEOF | |
7548 | ||
7549 | else | |
7550 | echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | |
7551 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6 | |
7552 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | |
7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7554 | else | |
7555 | ac_check_lib_save_LIBS=$LIBS | |
7556 | LIBS="-lucb $LIBS" | |
7557 | cat >conftest.$ac_ext <<_ACEOF | |
7558 | #line $LINENO "configure" | |
7559 | #include "confdefs.h" | |
7560 | ||
7561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7562 | #ifdef __cplusplus | |
7563 | extern "C" | |
7564 | #endif | |
7565 | /* We use char because int might match the return type of a gcc2 | |
7566 | builtin and then its argument prototype would still apply. */ | |
7567 | char getpagesize (); | |
7568 | #ifdef F77_DUMMY_MAIN | |
7569 | # ifdef __cplusplus | |
7570 | extern "C" | |
7571 | # endif | |
7572 | int F77_DUMMY_MAIN() { return 1; } | |
7573 | #endif | |
7574 | int | |
7575 | main () | |
7576 | { | |
7577 | getpagesize (); | |
7578 | ; | |
7579 | return 0; | |
7580 | } | |
7581 | _ACEOF | |
7582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7584 | (eval $ac_link) 2>&5 | |
7585 | ac_status=$? | |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7587 | (exit $ac_status); } && | |
7588 | { ac_try='test -s conftest$ac_exeext' | |
7589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7590 | (eval $ac_try) 2>&5 | |
7591 | ac_status=$? | |
7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7593 | (exit $ac_status); }; }; then | |
7594 | ac_cv_lib_ucb_getpagesize=yes | |
7595 | else | |
7596 | echo "$as_me: failed program was:" >&5 | |
7597 | cat conftest.$ac_ext >&5 | |
7598 | ac_cv_lib_ucb_getpagesize=no | |
7599 | fi | |
7600 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7601 | LIBS=$ac_check_lib_save_LIBS | |
7602 | fi | |
7603 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | |
7604 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6 | |
7605 | if test $ac_cv_lib_ucb_getpagesize = yes; then | |
7606 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | |
7607 | @%:@define HAVE_GETPAGESIZE 1 | |
7608 | _ACEOF | |
7609 | ||
7610 | fi | |
7611 | ||
7612 | ||
7613 | fi | |
7614 | ||
7615 | ||
7616 | # Check for broken snprintf | |
7617 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | |
7618 | echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | |
7619 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6 | |
7620 | if test "$cross_compiling" = yes; then | |
7621 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
7622 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
7623 | { (exit 1); exit 1; }; } | |
7624 | else | |
7625 | cat >conftest.$ac_ext <<_ACEOF | |
7626 | #line $LINENO "configure" | |
7627 | #include "confdefs.h" | |
7628 | ||
7629 | #include <stdio.h> | |
7630 | int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} | |
7631 | ||
7632 | _ACEOF | |
7633 | rm -f conftest$ac_exeext | |
7634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7635 | (eval $ac_link) 2>&5 | |
7636 | ac_status=$? | |
7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7640 | (eval $ac_try) 2>&5 | |
7641 | ac_status=$? | |
7642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7643 | (exit $ac_status); }; }; then | |
7644 | echo "$as_me:$LINENO: result: yes" >&5 | |
7645 | echo "${ECHO_T}yes" >&6 | |
7646 | else | |
7647 | echo "$as_me: program exited with status $ac_status" >&5 | |
7648 | echo "$as_me: failed program was:" >&5 | |
7649 | cat conftest.$ac_ext >&5 | |
7650 | ( exit $ac_status ) | |
7651 | ||
7652 | echo "$as_me:$LINENO: result: no" >&5 | |
7653 | echo "${ECHO_T}no" >&6 | |
7654 | cat >>confdefs.h <<\_ACEOF | |
7655 | @%:@define BROKEN_SNPRINTF 1 | |
7656 | _ACEOF | |
7657 | ||
7658 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | |
7659 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | |
7660 | ||
7661 | ||
7662 | fi | |
7663 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7664 | fi | |
7665 | fi | |
7666 | ||
7667 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | |
7668 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
7669 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
7670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7671 | else | |
7672 | # Use it with a single arg. | |
7673 | cat >conftest.$ac_ext <<_ACEOF | |
7674 | #line $LINENO "configure" | |
7675 | #include "confdefs.h" | |
7676 | $ac_includes_default | |
7677 | #ifdef F77_DUMMY_MAIN | |
7678 | # ifdef __cplusplus | |
7679 | extern "C" | |
7680 | # endif | |
7681 | int F77_DUMMY_MAIN() { return 1; } | |
7682 | #endif | |
7683 | int | |
7684 | main () | |
7685 | { | |
7686 | getpgrp (0); | |
7687 | ; | |
7688 | return 0; | |
7689 | } | |
7690 | _ACEOF | |
7691 | rm -f conftest.$ac_objext | |
7692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7693 | (eval $ac_compile) 2>&5 | |
7694 | ac_status=$? | |
7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7696 | (exit $ac_status); } && | |
7697 | { ac_try='test -s conftest.$ac_objext' | |
7698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7699 | (eval $ac_try) 2>&5 | |
7700 | ac_status=$? | |
7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7702 | (exit $ac_status); }; }; then | |
7703 | ac_cv_func_getpgrp_void=no | |
7704 | else | |
7705 | echo "$as_me: failed program was:" >&5 | |
7706 | cat conftest.$ac_ext >&5 | |
7707 | ac_cv_func_getpgrp_void=yes | |
7708 | fi | |
7709 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7710 | ||
7711 | fi | |
7712 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
7713 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
7714 | if test $ac_cv_func_getpgrp_void = yes; then | |
7715 | ||
7716 | cat >>confdefs.h <<\_ACEOF | |
7717 | @%:@define GETPGRP_VOID 1 | |
7718 | _ACEOF | |
7719 | ||
7720 | fi | |
7721 | ||
7722 | ||
7723 | # Check for PAM libs | |
7724 | PAM_MSG="no" | |
7725 | ||
7726 | # Check whether --with-pam or --without-pam was given. | |
7727 | if test "${with_pam+set}" = set; then | |
7728 | withval="$with_pam" | |
7729 | ||
7730 | if test "x$withval" != "xno" ; then | |
7731 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | |
7732 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | |
7733 | echo "$as_me: error: PAM headers not found" >&2;} | |
7734 | { (exit 1); exit 1; }; } | |
7735 | fi | |
7736 | ||
7737 | ||
7738 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
7739 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
7740 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7742 | else | |
7743 | ac_check_lib_save_LIBS=$LIBS | |
7744 | LIBS="-ldl $LIBS" | |
7745 | cat >conftest.$ac_ext <<_ACEOF | |
7746 | #line $LINENO "configure" | |
7747 | #include "confdefs.h" | |
7748 | ||
7749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7750 | #ifdef __cplusplus | |
7751 | extern "C" | |
7752 | #endif | |
7753 | /* We use char because int might match the return type of a gcc2 | |
7754 | builtin and then its argument prototype would still apply. */ | |
7755 | char dlopen (); | |
7756 | #ifdef F77_DUMMY_MAIN | |
7757 | # ifdef __cplusplus | |
7758 | extern "C" | |
7759 | # endif | |
7760 | int F77_DUMMY_MAIN() { return 1; } | |
7761 | #endif | |
7762 | int | |
7763 | main () | |
7764 | { | |
7765 | dlopen (); | |
7766 | ; | |
7767 | return 0; | |
7768 | } | |
7769 | _ACEOF | |
7770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7772 | (eval $ac_link) 2>&5 | |
7773 | ac_status=$? | |
7774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7775 | (exit $ac_status); } && | |
7776 | { ac_try='test -s conftest$ac_exeext' | |
7777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7778 | (eval $ac_try) 2>&5 | |
7779 | ac_status=$? | |
7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7781 | (exit $ac_status); }; }; then | |
7782 | ac_cv_lib_dl_dlopen=yes | |
7783 | else | |
7784 | echo "$as_me: failed program was:" >&5 | |
7785 | cat conftest.$ac_ext >&5 | |
7786 | ac_cv_lib_dl_dlopen=no | |
7787 | fi | |
7788 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7789 | LIBS=$ac_check_lib_save_LIBS | |
7790 | fi | |
7791 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
7792 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
7793 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7794 | cat >>confdefs.h <<_ACEOF | |
7795 | @%:@define HAVE_LIBDL 1 | |
7796 | _ACEOF | |
7797 | ||
7798 | LIBS="-ldl $LIBS" | |
7799 | ||
7800 | fi | |
7801 | ||
7802 | ||
7803 | echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | |
7804 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6 | |
7805 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | |
7806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7807 | else | |
7808 | ac_check_lib_save_LIBS=$LIBS | |
7809 | LIBS="-lpam $LIBS" | |
7810 | cat >conftest.$ac_ext <<_ACEOF | |
7811 | #line $LINENO "configure" | |
7812 | #include "confdefs.h" | |
7813 | ||
7814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7815 | #ifdef __cplusplus | |
7816 | extern "C" | |
7817 | #endif | |
7818 | /* We use char because int might match the return type of a gcc2 | |
7819 | builtin and then its argument prototype would still apply. */ | |
7820 | char pam_set_item (); | |
7821 | #ifdef F77_DUMMY_MAIN | |
7822 | # ifdef __cplusplus | |
7823 | extern "C" | |
7824 | # endif | |
7825 | int F77_DUMMY_MAIN() { return 1; } | |
7826 | #endif | |
7827 | int | |
7828 | main () | |
7829 | { | |
7830 | pam_set_item (); | |
7831 | ; | |
7832 | return 0; | |
7833 | } | |
7834 | _ACEOF | |
7835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7837 | (eval $ac_link) 2>&5 | |
7838 | ac_status=$? | |
7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7840 | (exit $ac_status); } && | |
7841 | { ac_try='test -s conftest$ac_exeext' | |
7842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7843 | (eval $ac_try) 2>&5 | |
7844 | ac_status=$? | |
7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7846 | (exit $ac_status); }; }; then | |
7847 | ac_cv_lib_pam_pam_set_item=yes | |
7848 | else | |
7849 | echo "$as_me: failed program was:" >&5 | |
7850 | cat conftest.$ac_ext >&5 | |
7851 | ac_cv_lib_pam_pam_set_item=no | |
7852 | fi | |
7853 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7854 | LIBS=$ac_check_lib_save_LIBS | |
7855 | fi | |
7856 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | |
7857 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6 | |
7858 | if test $ac_cv_lib_pam_pam_set_item = yes; then | |
7859 | cat >>confdefs.h <<_ACEOF | |
7860 | @%:@define HAVE_LIBPAM 1 | |
7861 | _ACEOF | |
7862 | ||
7863 | LIBS="-lpam $LIBS" | |
7864 | ||
7865 | else | |
7866 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | |
7867 | echo "$as_me: error: *** libpam missing" >&2;} | |
7868 | { (exit 1); exit 1; }; } | |
7869 | fi | |
7870 | ||
7871 | ||
7872 | for ac_func in pam_getenvlist | |
7873 | do | |
7874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7875 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7879 | else | |
7880 | cat >conftest.$ac_ext <<_ACEOF | |
7881 | #line $LINENO "configure" | |
7882 | #include "confdefs.h" | |
7883 | /* System header to define __stub macros and hopefully few prototypes, | |
7884 | which can conflict with char $ac_func (); below. */ | |
7885 | #include <assert.h> | |
7886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7887 | #ifdef __cplusplus | |
7888 | extern "C" | |
7889 | #endif | |
7890 | /* We use char because int might match the return type of a gcc2 | |
7891 | builtin and then its argument prototype would still apply. */ | |
7892 | char $ac_func (); | |
7893 | char (*f) (); | |
7894 | ||
7895 | #ifdef F77_DUMMY_MAIN | |
7896 | # ifdef __cplusplus | |
7897 | extern "C" | |
7898 | # endif | |
7899 | int F77_DUMMY_MAIN() { return 1; } | |
7900 | #endif | |
7901 | int | |
7902 | main () | |
7903 | { | |
7904 | /* The GNU C library defines this for functions which it implements | |
7905 | to always fail with ENOSYS. Some functions are actually named | |
7906 | something starting with __ and the normal name is an alias. */ | |
7907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7908 | choke me | |
7909 | #else | |
7910 | f = $ac_func; | |
7911 | #endif | |
7912 | ||
7913 | ; | |
7914 | return 0; | |
7915 | } | |
7916 | _ACEOF | |
7917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7919 | (eval $ac_link) 2>&5 | |
7920 | ac_status=$? | |
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7922 | (exit $ac_status); } && | |
7923 | { ac_try='test -s conftest$ac_exeext' | |
7924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7925 | (eval $ac_try) 2>&5 | |
7926 | ac_status=$? | |
7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7928 | (exit $ac_status); }; }; then | |
7929 | eval "$as_ac_var=yes" | |
7930 | else | |
7931 | echo "$as_me: failed program was:" >&5 | |
7932 | cat conftest.$ac_ext >&5 | |
7933 | eval "$as_ac_var=no" | |
7934 | fi | |
7935 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7936 | fi | |
7937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7938 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7939 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7940 | cat >>confdefs.h <<_ACEOF | |
7941 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7942 | _ACEOF | |
7943 | ||
7944 | fi | |
7945 | done | |
7946 | ||
7947 | ||
7948 | disable_shadow=yes | |
7949 | PAM_MSG="yes" | |
7950 | ||
7951 | cat >>confdefs.h <<\_ACEOF | |
7952 | @%:@define USE_PAM 1 | |
7953 | _ACEOF | |
7954 | ||
7955 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7956 | LIBPAM="-lpam -ldl" | |
7957 | else | |
7958 | LIBPAM="-lpam" | |
7959 | fi | |
7960 | ||
7961 | fi | |
7962 | ||
7963 | ||
7964 | fi; | |
7965 | ||
7966 | # Check for older PAM | |
7967 | if test "x$PAM_MSG" = "xyes" ; then | |
7968 | # Check PAM strerror arguments (old PAM) | |
7969 | echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | |
7970 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6 | |
7971 | cat >conftest.$ac_ext <<_ACEOF | |
7972 | #line $LINENO "configure" | |
7973 | #include "confdefs.h" | |
7974 | ||
7975 | #include <stdlib.h> | |
7976 | #include <security/pam_appl.h> | |
7977 | ||
7978 | #ifdef F77_DUMMY_MAIN | |
7979 | # ifdef __cplusplus | |
7980 | extern "C" | |
7981 | # endif | |
7982 | int F77_DUMMY_MAIN() { return 1; } | |
7983 | #endif | |
7984 | int | |
7985 | main () | |
7986 | { | |
7987 | (void)pam_strerror((pam_handle_t *)NULL, -1); | |
7988 | ; | |
7989 | return 0; | |
7990 | } | |
7991 | _ACEOF | |
7992 | rm -f conftest.$ac_objext | |
7993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7994 | (eval $ac_compile) 2>&5 | |
7995 | ac_status=$? | |
7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7997 | (exit $ac_status); } && | |
7998 | { ac_try='test -s conftest.$ac_objext' | |
7999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8000 | (eval $ac_try) 2>&5 | |
8001 | ac_status=$? | |
8002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8003 | (exit $ac_status); }; }; then | |
8004 | echo "$as_me:$LINENO: result: no" >&5 | |
8005 | echo "${ECHO_T}no" >&6 | |
8006 | else | |
8007 | echo "$as_me: failed program was:" >&5 | |
8008 | cat conftest.$ac_ext >&5 | |
8009 | ||
8010 | cat >>confdefs.h <<\_ACEOF | |
8011 | @%:@define HAVE_OLD_PAM 1 | |
8012 | _ACEOF | |
8013 | ||
8014 | echo "$as_me:$LINENO: result: yes" >&5 | |
8015 | echo "${ECHO_T}yes" >&6 | |
8016 | PAM_MSG="yes (old library)" | |
8017 | ||
8018 | ||
8019 | fi | |
8020 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8021 | fi | |
8022 | ||
8023 | # Search for OpenSSL | |
8024 | saved_CPPFLAGS="$CPPFLAGS" | |
8025 | saved_LDFLAGS="$LDFLAGS" | |
8026 | ||
8027 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | |
8028 | if test "${with_ssl_dir+set}" = set; then | |
8029 | withval="$with_ssl_dir" | |
8030 | ||
8031 | if test "x$withval" != "xno" ; then | |
8032 | if test -d "$withval/lib"; then | |
8033 | if test -n "${need_dash_r}"; then | |
8034 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | |
8035 | else | |
8036 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | |
8037 | fi | |
8038 | else | |
8039 | if test -n "${need_dash_r}"; then | |
8040 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | |
8041 | else | |
8042 | LDFLAGS="-L${withval} ${LDFLAGS}" | |
8043 | fi | |
8044 | fi | |
8045 | if test -d "$withval/include"; then | |
8046 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | |
8047 | else | |
8048 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | |
8049 | fi | |
8050 | fi | |
8051 | ||
8052 | ||
8053 | fi; | |
8054 | LIBS="$LIBS -lcrypto" | |
8055 | cat >conftest.$ac_ext <<_ACEOF | |
8056 | #line $LINENO "configure" | |
8057 | #include "confdefs.h" | |
8058 | ||
8059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8060 | #ifdef __cplusplus | |
8061 | extern "C" | |
8062 | #endif | |
8063 | /* We use char because int might match the return type of a gcc2 | |
8064 | builtin and then its argument prototype would still apply. */ | |
8065 | char RAND_add (); | |
8066 | #ifdef F77_DUMMY_MAIN | |
8067 | # ifdef __cplusplus | |
8068 | extern "C" | |
8069 | # endif | |
8070 | int F77_DUMMY_MAIN() { return 1; } | |
8071 | #endif | |
8072 | int | |
8073 | main () | |
8074 | { | |
8075 | RAND_add (); | |
8076 | ; | |
8077 | return 0; | |
8078 | } | |
8079 | _ACEOF | |
8080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8082 | (eval $ac_link) 2>&5 | |
8083 | ac_status=$? | |
8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8085 | (exit $ac_status); } && | |
8086 | { ac_try='test -s conftest$ac_exeext' | |
8087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8088 | (eval $ac_try) 2>&5 | |
8089 | ac_status=$? | |
8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8091 | (exit $ac_status); }; }; then | |
8092 | cat >>confdefs.h <<\_ACEOF | |
8093 | @%:@define HAVE_OPENSSL 1 | |
8094 | _ACEOF | |
8095 | ||
8096 | else | |
8097 | echo "$as_me: failed program was:" >&5 | |
8098 | cat conftest.$ac_ext >&5 | |
8099 | ||
8100 | if test -n "${need_dash_r}"; then | |
8101 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | |
8102 | else | |
8103 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | |
8104 | fi | |
8105 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | |
8106 | cat >conftest.$ac_ext <<_ACEOF | |
8107 | #line $LINENO "configure" | |
8108 | #include "confdefs.h" | |
8109 | ||
8110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8111 | #ifdef __cplusplus | |
8112 | extern "C" | |
8113 | #endif | |
8114 | /* We use char because int might match the return type of a gcc2 | |
8115 | builtin and then its argument prototype would still apply. */ | |
8116 | char RAND_add (); | |
8117 | #ifdef F77_DUMMY_MAIN | |
8118 | # ifdef __cplusplus | |
8119 | extern "C" | |
8120 | # endif | |
8121 | int F77_DUMMY_MAIN() { return 1; } | |
8122 | #endif | |
8123 | int | |
8124 | main () | |
8125 | { | |
8126 | RAND_add (); | |
8127 | ; | |
8128 | return 0; | |
8129 | } | |
8130 | _ACEOF | |
8131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8133 | (eval $ac_link) 2>&5 | |
8134 | ac_status=$? | |
8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8136 | (exit $ac_status); } && | |
8137 | { ac_try='test -s conftest$ac_exeext' | |
8138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8139 | (eval $ac_try) 2>&5 | |
8140 | ac_status=$? | |
8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8142 | (exit $ac_status); }; }; then | |
8143 | cat >>confdefs.h <<\_ACEOF | |
8144 | @%:@define HAVE_OPENSSL 1 | |
8145 | _ACEOF | |
8146 | ||
8147 | else | |
8148 | echo "$as_me: failed program was:" >&5 | |
8149 | cat conftest.$ac_ext >&5 | |
8150 | ||
8151 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | |
8152 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | |
8153 | { (exit 1); exit 1; }; } | |
8154 | ||
8155 | ||
8156 | fi | |
8157 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8158 | ||
8159 | ||
8160 | fi | |
8161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8162 | ||
8163 | ||
8164 | # Sanity check OpenSSL headers | |
8165 | echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | |
8166 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6 | |
8167 | if test "$cross_compiling" = yes; then | |
8168 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
8169 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
8170 | { (exit 1); exit 1; }; } | |
8171 | else | |
8172 | cat >conftest.$ac_ext <<_ACEOF | |
8173 | #line $LINENO "configure" | |
8174 | #include "confdefs.h" | |
8175 | ||
8176 | #include <string.h> | |
8177 | #include <openssl/opensslv.h> | |
8178 | int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | |
8179 | ||
8180 | _ACEOF | |
8181 | rm -f conftest$ac_exeext | |
8182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8183 | (eval $ac_link) 2>&5 | |
8184 | ac_status=$? | |
8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8188 | (eval $ac_try) 2>&5 | |
8189 | ac_status=$? | |
8190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8191 | (exit $ac_status); }; }; then | |
8192 | ||
8193 | echo "$as_me:$LINENO: result: yes" >&5 | |
8194 | echo "${ECHO_T}yes" >&6 | |
8195 | ||
8196 | else | |
8197 | echo "$as_me: program exited with status $ac_status" >&5 | |
8198 | echo "$as_me: failed program was:" >&5 | |
8199 | cat conftest.$ac_ext >&5 | |
8200 | ( exit $ac_status ) | |
8201 | ||
8202 | echo "$as_me:$LINENO: result: no" >&5 | |
8203 | echo "${ECHO_T}no" >&6 | |
8204 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library" >&5 | |
8205 | echo "$as_me: error: Your OpenSSL headers do not match your library" >&2;} | |
8206 | { (exit 1); exit 1; }; } | |
8207 | ||
8208 | ||
8209 | fi | |
8210 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8211 | fi | |
8212 | ||
8213 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | |
8214 | # version in OpenSSL. Skip this for PAM | |
8215 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | |
8216 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | |
8217 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | |
8218 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | |
8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8220 | else | |
8221 | ac_check_lib_save_LIBS=$LIBS | |
8222 | LIBS="-lcrypt $LIBS" | |
8223 | cat >conftest.$ac_ext <<_ACEOF | |
8224 | #line $LINENO "configure" | |
8225 | #include "confdefs.h" | |
8226 | ||
8227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8228 | #ifdef __cplusplus | |
8229 | extern "C" | |
8230 | #endif | |
8231 | /* We use char because int might match the return type of a gcc2 | |
8232 | builtin and then its argument prototype would still apply. */ | |
8233 | char crypt (); | |
8234 | #ifdef F77_DUMMY_MAIN | |
8235 | # ifdef __cplusplus | |
8236 | extern "C" | |
8237 | # endif | |
8238 | int F77_DUMMY_MAIN() { return 1; } | |
8239 | #endif | |
8240 | int | |
8241 | main () | |
8242 | { | |
8243 | crypt (); | |
8244 | ; | |
8245 | return 0; | |
8246 | } | |
8247 | _ACEOF | |
8248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8250 | (eval $ac_link) 2>&5 | |
8251 | ac_status=$? | |
8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8253 | (exit $ac_status); } && | |
8254 | { ac_try='test -s conftest$ac_exeext' | |
8255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8256 | (eval $ac_try) 2>&5 | |
8257 | ac_status=$? | |
8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8259 | (exit $ac_status); }; }; then | |
8260 | ac_cv_lib_crypt_crypt=yes | |
8261 | else | |
8262 | echo "$as_me: failed program was:" >&5 | |
8263 | cat conftest.$ac_ext >&5 | |
8264 | ac_cv_lib_crypt_crypt=no | |
8265 | fi | |
8266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8267 | LIBS=$ac_check_lib_save_LIBS | |
8268 | fi | |
8269 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | |
8270 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | |
8271 | if test $ac_cv_lib_crypt_crypt = yes; then | |
8272 | LIBS="$LIBS -lcrypt" | |
8273 | fi | |
8274 | ||
8275 | fi | |
8276 | ||
8277 | ||
8278 | ### Configure cryptographic random number support | |
8279 | ||
8280 | # Check wheter OpenSSL seeds itself | |
8281 | echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | |
8282 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6 | |
8283 | if test "$cross_compiling" = yes; then | |
8284 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
8285 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
8286 | { (exit 1); exit 1; }; } | |
8287 | else | |
8288 | cat >conftest.$ac_ext <<_ACEOF | |
8289 | #line $LINENO "configure" | |
8290 | #include "confdefs.h" | |
8291 | ||
8292 | #include <string.h> | |
8293 | #include <openssl/rand.h> | |
8294 | int main(void) { return(RAND_status() == 1 ? 0 : 1); } | |
8295 | ||
8296 | _ACEOF | |
8297 | rm -f conftest$ac_exeext | |
8298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8299 | (eval $ac_link) 2>&5 | |
8300 | ac_status=$? | |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8304 | (eval $ac_try) 2>&5 | |
8305 | ac_status=$? | |
8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8307 | (exit $ac_status); }; }; then | |
8308 | ||
8309 | OPENSSL_SEEDS_ITSELF=yes | |
8310 | echo "$as_me:$LINENO: result: yes" >&5 | |
8311 | echo "${ECHO_T}yes" >&6 | |
8312 | ||
8313 | else | |
8314 | echo "$as_me: program exited with status $ac_status" >&5 | |
8315 | echo "$as_me: failed program was:" >&5 | |
8316 | cat conftest.$ac_ext >&5 | |
8317 | ( exit $ac_status ) | |
8318 | ||
8319 | echo "$as_me:$LINENO: result: no" >&5 | |
8320 | echo "${ECHO_T}no" >&6 | |
8321 | # Default to use of the rand helper if OpenSSL doesn't | |
8322 | # seed itself | |
8323 | USE_RAND_HELPER=yes | |
8324 | ||
8325 | ||
8326 | fi | |
8327 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8328 | fi | |
8329 | ||
8330 | ||
8331 | # Do we want to force the use of the rand helper? | |
8332 | ||
8333 | # Check whether --with-rand-helper or --without-rand-helper was given. | |
8334 | if test "${with_rand_helper+set}" = set; then | |
8335 | withval="$with_rand_helper" | |
8336 | ||
8337 | if test "x$withval" = "xno" ; then | |
8338 | # Force use of OpenSSL's internal RNG, even if | |
8339 | # the previous test showed it to be unseeded. | |
8340 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | |
8341 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | |
8342 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | |
8343 | OPENSSL_SEEDS_ITSELF=yes | |
8344 | USE_RAND_HELPER="" | |
8345 | fi | |
8346 | else | |
8347 | USE_RAND_HELPER=yes | |
8348 | fi | |
8349 | ||
8350 | fi; | |
8351 | ||
8352 | # Which randomness source do we use? | |
8353 | if test ! -z "$OPENSSL_SEEDS_ITSELF" -a -z "$USE_RAND_HELPER" ; then | |
8354 | # OpenSSL only | |
8355 | cat >>confdefs.h <<\_ACEOF | |
8356 | @%:@define OPENSSL_PRNG_ONLY 1 | |
8357 | _ACEOF | |
8358 | ||
8359 | RAND_MSG="OpenSSL internal ONLY" | |
8360 | INSTALL_SSH_RAND_HELPER="" | |
8361 | elif test ! -z "$USE_RAND_HELPER" ; then | |
8362 | # install rand helper | |
8363 | RAND_MSG="ssh-rand-helper" | |
8364 | INSTALL_SSH_RAND_HELPER="yes" | |
8365 | fi | |
8366 | ||
8367 | ||
8368 | ### Configuration of ssh-rand-helper | |
8369 | ||
8370 | # PRNGD TCP socket | |
8371 | ||
8372 | # Check whether --with-prngd-port or --without-prngd-port was given. | |
8373 | if test "${with_prngd_port+set}" = set; then | |
8374 | withval="$with_prngd_port" | |
8375 | ||
8376 | case "$withval" in | |
8377 | no) | |
8378 | withval="" | |
8379 | ;; | |
8380 | [0-9]*) | |
8381 | ;; | |
8382 | *) | |
8383 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | |
8384 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | |
8385 | { (exit 1); exit 1; }; } | |
8386 | ;; | |
8387 | esac | |
8388 | if test ! -z "$withval" ; then | |
8389 | PRNGD_PORT="$withval" | |
8390 | cat >>confdefs.h <<_ACEOF | |
8391 | @%:@define PRNGD_PORT $PRNGD_PORT | |
8392 | _ACEOF | |
8393 | ||
8394 | fi | |
8395 | ||
8396 | ||
8397 | fi; | |
8398 | ||
8399 | # PRNGD Unix domain socket | |
8400 | ||
8401 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | |
8402 | if test "${with_prngd_socket+set}" = set; then | |
8403 | withval="$with_prngd_socket" | |
8404 | ||
8405 | case "$withval" in | |
8406 | yes) | |
8407 | withval="/var/run/egd-pool" | |
8408 | ;; | |
8409 | no) | |
8410 | withval="" | |
8411 | ;; | |
8412 | /*) | |
8413 | ;; | |
8414 | *) | |
8415 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | |
8416 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | |
8417 | { (exit 1); exit 1; }; } | |
8418 | ;; | |
8419 | esac | |
8420 | ||
8421 | if test ! -z "$withval" ; then | |
8422 | if test ! -z "$PRNGD_PORT" ; then | |
8423 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | |
8424 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | |
8425 | { (exit 1); exit 1; }; } | |
8426 | fi | |
8427 | if test ! -r "$withval" ; then | |
8428 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | |
8429 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | |
8430 | fi | |
8431 | PRNGD_SOCKET="$withval" | |
8432 | cat >>confdefs.h <<_ACEOF | |
8433 | @%:@define PRNGD_SOCKET "$PRNGD_SOCKET" | |
8434 | _ACEOF | |
8435 | ||
8436 | fi | |
8437 | ||
8438 | else | |
8439 | ||
8440 | # Check for existing socket only if we don't have a random device already | |
8441 | if test "$USE_RAND_HELPER" = yes ; then | |
8442 | echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | |
8443 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6 | |
8444 | # Insert other locations here | |
8445 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | |
8446 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | |
8447 | PRNGD_SOCKET="$sock" | |
8448 | cat >>confdefs.h <<_ACEOF | |
8449 | @%:@define PRNGD_SOCKET "$PRNGD_SOCKET" | |
8450 | _ACEOF | |
8451 | ||
8452 | break; | |
8453 | fi | |
8454 | done | |
8455 | if test ! -z "$PRNGD_SOCKET" ; then | |
8456 | echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | |
8457 | echo "${ECHO_T}$PRNGD_SOCKET" >&6 | |
8458 | else | |
8459 | echo "$as_me:$LINENO: result: not found" >&5 | |
8460 | echo "${ECHO_T}not found" >&6 | |
8461 | fi | |
8462 | fi | |
8463 | ||
8464 | ||
8465 | fi; | |
8466 | ||
8467 | # Change default command timeout for hashing entropy source | |
8468 | entropy_timeout=200 | |
8469 | ||
8470 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | |
8471 | if test "${with_entropy_timeout+set}" = set; then | |
8472 | withval="$with_entropy_timeout" | |
8473 | ||
8474 | if test "x$withval" != "xno" ; then | |
8475 | entropy_timeout=$withval | |
8476 | fi | |
8477 | ||
8478 | ||
8479 | fi; | |
8480 | cat >>confdefs.h <<_ACEOF | |
8481 | @%:@define ENTROPY_TIMEOUT_MSEC $entropy_timeout | |
8482 | _ACEOF | |
8483 | ||
8484 | ||
8485 | ssh_privsep_user=sshd | |
8486 | ||
8487 | # Check whether --with-privsep-user or --without-privsep-user was given. | |
8488 | if test "${with_privsep_user+set}" = set; then | |
8489 | withval="$with_privsep_user" | |
8490 | ||
8491 | if test -n "$withval"; then | |
8492 | ssh_privsep_user=$withval | |
8493 | fi | |
8494 | ||
8495 | ||
8496 | fi; | |
8497 | cat >>confdefs.h <<_ACEOF | |
8498 | @%:@define SSH_PRIVSEP_USER "$ssh_privsep_user" | |
8499 | _ACEOF | |
8500 | ||
8501 | ||
8502 | # We do this little dance with the search path to insure | |
8503 | # that programs that we select for use by installed programs | |
8504 | # (which may be run by the super-user) come from trusted | |
8505 | # locations before they come from the user's private area. | |
8506 | # This should help avoid accidentally configuring some | |
8507 | # random version of a program in someone's personal bin. | |
8508 | ||
8509 | OPATH=$PATH | |
8510 | PATH=/bin:/usr/bin | |
8511 | test -h /bin 2> /dev/null && PATH=/usr/bin | |
8512 | test -d /sbin && PATH=$PATH:/sbin | |
8513 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | |
8514 | PATH=$PATH:/etc:$OPATH | |
8515 | ||
8516 | # These programs are used by the command hashing source to gather entropy | |
8517 | ||
8518 | # Extract the first word of "ls", so it can be a program name with args. | |
8519 | set dummy ls; ac_word=$2 | |
8520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8522 | if test "${ac_cv_path_PROG_LS+set}" = set; then | |
8523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8524 | else | |
8525 | case $PROG_LS in | |
8526 | [\\/]* | ?:[\\/]*) | |
8527 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | |
8528 | ;; | |
8529 | *) | |
8530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8531 | for as_dir in $PATH | |
8532 | do | |
8533 | IFS=$as_save_IFS | |
8534 | test -z "$as_dir" && as_dir=. | |
8535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8537 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | |
8538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8539 | break 2 | |
8540 | fi | |
8541 | done | |
8542 | done | |
8543 | ||
8544 | ;; | |
8545 | esac | |
8546 | fi | |
8547 | PROG_LS=$ac_cv_path_PROG_LS | |
8548 | ||
8549 | if test -n "$PROG_LS"; then | |
8550 | echo "$as_me:$LINENO: result: $PROG_LS" >&5 | |
8551 | echo "${ECHO_T}$PROG_LS" >&6 | |
8552 | else | |
8553 | echo "$as_me:$LINENO: result: no" >&5 | |
8554 | echo "${ECHO_T}no" >&6 | |
8555 | fi | |
8556 | ||
8557 | if test -z "$PROG_LS" ; then | |
8558 | PROG_LS="undef" | |
8559 | fi | |
8560 | ||
8561 | ||
8562 | ||
8563 | # Extract the first word of "netstat", so it can be a program name with args. | |
8564 | set dummy netstat; ac_word=$2 | |
8565 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8567 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | |
8568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8569 | else | |
8570 | case $PROG_NETSTAT in | |
8571 | [\\/]* | ?:[\\/]*) | |
8572 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | |
8573 | ;; | |
8574 | *) | |
8575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8576 | for as_dir in $PATH | |
8577 | do | |
8578 | IFS=$as_save_IFS | |
8579 | test -z "$as_dir" && as_dir=. | |
8580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8582 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | |
8583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8584 | break 2 | |
8585 | fi | |
8586 | done | |
8587 | done | |
8588 | ||
8589 | ;; | |
8590 | esac | |
8591 | fi | |
8592 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | |
8593 | ||
8594 | if test -n "$PROG_NETSTAT"; then | |
8595 | echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | |
8596 | echo "${ECHO_T}$PROG_NETSTAT" >&6 | |
8597 | else | |
8598 | echo "$as_me:$LINENO: result: no" >&5 | |
8599 | echo "${ECHO_T}no" >&6 | |
8600 | fi | |
8601 | ||
8602 | if test -z "$PROG_NETSTAT" ; then | |
8603 | PROG_NETSTAT="undef" | |
8604 | fi | |
8605 | ||
8606 | ||
8607 | ||
8608 | # Extract the first word of "arp", so it can be a program name with args. | |
8609 | set dummy arp; ac_word=$2 | |
8610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8612 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | |
8613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8614 | else | |
8615 | case $PROG_ARP in | |
8616 | [\\/]* | ?:[\\/]*) | |
8617 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | |
8618 | ;; | |
8619 | *) | |
8620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8621 | for as_dir in $PATH | |
8622 | do | |
8623 | IFS=$as_save_IFS | |
8624 | test -z "$as_dir" && as_dir=. | |
8625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8627 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | |
8628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8629 | break 2 | |
8630 | fi | |
8631 | done | |
8632 | done | |
8633 | ||
8634 | ;; | |
8635 | esac | |
8636 | fi | |
8637 | PROG_ARP=$ac_cv_path_PROG_ARP | |
8638 | ||
8639 | if test -n "$PROG_ARP"; then | |
8640 | echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | |
8641 | echo "${ECHO_T}$PROG_ARP" >&6 | |
8642 | else | |
8643 | echo "$as_me:$LINENO: result: no" >&5 | |
8644 | echo "${ECHO_T}no" >&6 | |
8645 | fi | |
8646 | ||
8647 | if test -z "$PROG_ARP" ; then | |
8648 | PROG_ARP="undef" | |
8649 | fi | |
8650 | ||
8651 | ||
8652 | ||
8653 | # Extract the first word of "ifconfig", so it can be a program name with args. | |
8654 | set dummy ifconfig; ac_word=$2 | |
8655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8657 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | |
8658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8659 | else | |
8660 | case $PROG_IFCONFIG in | |
8661 | [\\/]* | ?:[\\/]*) | |
8662 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | |
8663 | ;; | |
8664 | *) | |
8665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8666 | for as_dir in $PATH | |
8667 | do | |
8668 | IFS=$as_save_IFS | |
8669 | test -z "$as_dir" && as_dir=. | |
8670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8672 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8674 | break 2 | |
8675 | fi | |
8676 | done | |
8677 | done | |
8678 | ||
8679 | ;; | |
8680 | esac | |
8681 | fi | |
8682 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | |
8683 | ||
8684 | if test -n "$PROG_IFCONFIG"; then | |
8685 | echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | |
8686 | echo "${ECHO_T}$PROG_IFCONFIG" >&6 | |
8687 | else | |
8688 | echo "$as_me:$LINENO: result: no" >&5 | |
8689 | echo "${ECHO_T}no" >&6 | |
8690 | fi | |
8691 | ||
8692 | if test -z "$PROG_IFCONFIG" ; then | |
8693 | PROG_IFCONFIG="undef" | |
8694 | fi | |
8695 | ||
8696 | ||
8697 | ||
8698 | # Extract the first word of "jstat", so it can be a program name with args. | |
8699 | set dummy jstat; ac_word=$2 | |
8700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8702 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | |
8703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8704 | else | |
8705 | case $PROG_JSTAT in | |
8706 | [\\/]* | ?:[\\/]*) | |
8707 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | |
8708 | ;; | |
8709 | *) | |
8710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8711 | for as_dir in $PATH | |
8712 | do | |
8713 | IFS=$as_save_IFS | |
8714 | test -z "$as_dir" && as_dir=. | |
8715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8717 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | |
8718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8719 | break 2 | |
8720 | fi | |
8721 | done | |
8722 | done | |
8723 | ||
8724 | ;; | |
8725 | esac | |
8726 | fi | |
8727 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | |
8728 | ||
8729 | if test -n "$PROG_JSTAT"; then | |
8730 | echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | |
8731 | echo "${ECHO_T}$PROG_JSTAT" >&6 | |
8732 | else | |
8733 | echo "$as_me:$LINENO: result: no" >&5 | |
8734 | echo "${ECHO_T}no" >&6 | |
8735 | fi | |
8736 | ||
8737 | if test -z "$PROG_JSTAT" ; then | |
8738 | PROG_JSTAT="undef" | |
8739 | fi | |
8740 | ||
8741 | ||
8742 | ||
8743 | # Extract the first word of "ps", so it can be a program name with args. | |
8744 | set dummy ps; ac_word=$2 | |
8745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8747 | if test "${ac_cv_path_PROG_PS+set}" = set; then | |
8748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8749 | else | |
8750 | case $PROG_PS in | |
8751 | [\\/]* | ?:[\\/]*) | |
8752 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | |
8753 | ;; | |
8754 | *) | |
8755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8756 | for as_dir in $PATH | |
8757 | do | |
8758 | IFS=$as_save_IFS | |
8759 | test -z "$as_dir" && as_dir=. | |
8760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8762 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | |
8763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8764 | break 2 | |
8765 | fi | |
8766 | done | |
8767 | done | |
8768 | ||
8769 | ;; | |
8770 | esac | |
8771 | fi | |
8772 | PROG_PS=$ac_cv_path_PROG_PS | |
8773 | ||
8774 | if test -n "$PROG_PS"; then | |
8775 | echo "$as_me:$LINENO: result: $PROG_PS" >&5 | |
8776 | echo "${ECHO_T}$PROG_PS" >&6 | |
8777 | else | |
8778 | echo "$as_me:$LINENO: result: no" >&5 | |
8779 | echo "${ECHO_T}no" >&6 | |
8780 | fi | |
8781 | ||
8782 | if test -z "$PROG_PS" ; then | |
8783 | PROG_PS="undef" | |
8784 | fi | |
8785 | ||
8786 | ||
8787 | ||
8788 | # Extract the first word of "sar", so it can be a program name with args. | |
8789 | set dummy sar; ac_word=$2 | |
8790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8792 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | |
8793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8794 | else | |
8795 | case $PROG_SAR in | |
8796 | [\\/]* | ?:[\\/]*) | |
8797 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | |
8798 | ;; | |
8799 | *) | |
8800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8801 | for as_dir in $PATH | |
8802 | do | |
8803 | IFS=$as_save_IFS | |
8804 | test -z "$as_dir" && as_dir=. | |
8805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8807 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | |
8808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8809 | break 2 | |
8810 | fi | |
8811 | done | |
8812 | done | |
8813 | ||
8814 | ;; | |
8815 | esac | |
8816 | fi | |
8817 | PROG_SAR=$ac_cv_path_PROG_SAR | |
8818 | ||
8819 | if test -n "$PROG_SAR"; then | |
8820 | echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | |
8821 | echo "${ECHO_T}$PROG_SAR" >&6 | |
8822 | else | |
8823 | echo "$as_me:$LINENO: result: no" >&5 | |
8824 | echo "${ECHO_T}no" >&6 | |
8825 | fi | |
8826 | ||
8827 | if test -z "$PROG_SAR" ; then | |
8828 | PROG_SAR="undef" | |
8829 | fi | |
8830 | ||
8831 | ||
8832 | ||
8833 | # Extract the first word of "w", so it can be a program name with args. | |
8834 | set dummy w; ac_word=$2 | |
8835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8837 | if test "${ac_cv_path_PROG_W+set}" = set; then | |
8838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8839 | else | |
8840 | case $PROG_W in | |
8841 | [\\/]* | ?:[\\/]*) | |
8842 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | |
8843 | ;; | |
8844 | *) | |
8845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8846 | for as_dir in $PATH | |
8847 | do | |
8848 | IFS=$as_save_IFS | |
8849 | test -z "$as_dir" && as_dir=. | |
8850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8852 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | |
8853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8854 | break 2 | |
8855 | fi | |
8856 | done | |
8857 | done | |
8858 | ||
8859 | ;; | |
8860 | esac | |
8861 | fi | |
8862 | PROG_W=$ac_cv_path_PROG_W | |
8863 | ||
8864 | if test -n "$PROG_W"; then | |
8865 | echo "$as_me:$LINENO: result: $PROG_W" >&5 | |
8866 | echo "${ECHO_T}$PROG_W" >&6 | |
8867 | else | |
8868 | echo "$as_me:$LINENO: result: no" >&5 | |
8869 | echo "${ECHO_T}no" >&6 | |
8870 | fi | |
8871 | ||
8872 | if test -z "$PROG_W" ; then | |
8873 | PROG_W="undef" | |
8874 | fi | |
8875 | ||
8876 | ||
8877 | ||
8878 | # Extract the first word of "who", so it can be a program name with args. | |
8879 | set dummy who; ac_word=$2 | |
8880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8882 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | |
8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8884 | else | |
8885 | case $PROG_WHO in | |
8886 | [\\/]* | ?:[\\/]*) | |
8887 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | |
8888 | ;; | |
8889 | *) | |
8890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8891 | for as_dir in $PATH | |
8892 | do | |
8893 | IFS=$as_save_IFS | |
8894 | test -z "$as_dir" && as_dir=. | |
8895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8896 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8897 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | |
8898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8899 | break 2 | |
8900 | fi | |
8901 | done | |
8902 | done | |
8903 | ||
8904 | ;; | |
8905 | esac | |
8906 | fi | |
8907 | PROG_WHO=$ac_cv_path_PROG_WHO | |
8908 | ||
8909 | if test -n "$PROG_WHO"; then | |
8910 | echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | |
8911 | echo "${ECHO_T}$PROG_WHO" >&6 | |
8912 | else | |
8913 | echo "$as_me:$LINENO: result: no" >&5 | |
8914 | echo "${ECHO_T}no" >&6 | |
8915 | fi | |
8916 | ||
8917 | if test -z "$PROG_WHO" ; then | |
8918 | PROG_WHO="undef" | |
8919 | fi | |
8920 | ||
8921 | ||
8922 | ||
8923 | # Extract the first word of "last", so it can be a program name with args. | |
8924 | set dummy last; ac_word=$2 | |
8925 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8927 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | |
8928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8929 | else | |
8930 | case $PROG_LAST in | |
8931 | [\\/]* | ?:[\\/]*) | |
8932 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | |
8933 | ;; | |
8934 | *) | |
8935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8936 | for as_dir in $PATH | |
8937 | do | |
8938 | IFS=$as_save_IFS | |
8939 | test -z "$as_dir" && as_dir=. | |
8940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8942 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | |
8943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8944 | break 2 | |
8945 | fi | |
8946 | done | |
8947 | done | |
8948 | ||
8949 | ;; | |
8950 | esac | |
8951 | fi | |
8952 | PROG_LAST=$ac_cv_path_PROG_LAST | |
8953 | ||
8954 | if test -n "$PROG_LAST"; then | |
8955 | echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | |
8956 | echo "${ECHO_T}$PROG_LAST" >&6 | |
8957 | else | |
8958 | echo "$as_me:$LINENO: result: no" >&5 | |
8959 | echo "${ECHO_T}no" >&6 | |
8960 | fi | |
8961 | ||
8962 | if test -z "$PROG_LAST" ; then | |
8963 | PROG_LAST="undef" | |
8964 | fi | |
8965 | ||
8966 | ||
8967 | ||
8968 | # Extract the first word of "lastlog", so it can be a program name with args. | |
8969 | set dummy lastlog; ac_word=$2 | |
8970 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8972 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | |
8973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8974 | else | |
8975 | case $PROG_LASTLOG in | |
8976 | [\\/]* | ?:[\\/]*) | |
8977 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | |
8978 | ;; | |
8979 | *) | |
8980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8981 | for as_dir in $PATH | |
8982 | do | |
8983 | IFS=$as_save_IFS | |
8984 | test -z "$as_dir" && as_dir=. | |
8985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8987 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | |
8988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8989 | break 2 | |
8990 | fi | |
8991 | done | |
8992 | done | |
8993 | ||
8994 | ;; | |
8995 | esac | |
8996 | fi | |
8997 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | |
8998 | ||
8999 | if test -n "$PROG_LASTLOG"; then | |
9000 | echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | |
9001 | echo "${ECHO_T}$PROG_LASTLOG" >&6 | |
9002 | else | |
9003 | echo "$as_me:$LINENO: result: no" >&5 | |
9004 | echo "${ECHO_T}no" >&6 | |
9005 | fi | |
9006 | ||
9007 | if test -z "$PROG_LASTLOG" ; then | |
9008 | PROG_LASTLOG="undef" | |
9009 | fi | |
9010 | ||
9011 | ||
9012 | ||
9013 | # Extract the first word of "df", so it can be a program name with args. | |
9014 | set dummy df; ac_word=$2 | |
9015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9017 | if test "${ac_cv_path_PROG_DF+set}" = set; then | |
9018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9019 | else | |
9020 | case $PROG_DF in | |
9021 | [\\/]* | ?:[\\/]*) | |
9022 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | |
9023 | ;; | |
9024 | *) | |
9025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9026 | for as_dir in $PATH | |
9027 | do | |
9028 | IFS=$as_save_IFS | |
9029 | test -z "$as_dir" && as_dir=. | |
9030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9032 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | |
9033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9034 | break 2 | |
9035 | fi | |
9036 | done | |
9037 | done | |
9038 | ||
9039 | ;; | |
9040 | esac | |
9041 | fi | |
9042 | PROG_DF=$ac_cv_path_PROG_DF | |
9043 | ||
9044 | if test -n "$PROG_DF"; then | |
9045 | echo "$as_me:$LINENO: result: $PROG_DF" >&5 | |
9046 | echo "${ECHO_T}$PROG_DF" >&6 | |
9047 | else | |
9048 | echo "$as_me:$LINENO: result: no" >&5 | |
9049 | echo "${ECHO_T}no" >&6 | |
9050 | fi | |
9051 | ||
9052 | if test -z "$PROG_DF" ; then | |
9053 | PROG_DF="undef" | |
9054 | fi | |
9055 | ||
9056 | ||
9057 | ||
9058 | # Extract the first word of "vmstat", so it can be a program name with args. | |
9059 | set dummy vmstat; ac_word=$2 | |
9060 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9062 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | |
9063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9064 | else | |
9065 | case $PROG_VMSTAT in | |
9066 | [\\/]* | ?:[\\/]*) | |
9067 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | |
9068 | ;; | |
9069 | *) | |
9070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9071 | for as_dir in $PATH | |
9072 | do | |
9073 | IFS=$as_save_IFS | |
9074 | test -z "$as_dir" && as_dir=. | |
9075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9076 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9077 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | |
9078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9079 | break 2 | |
9080 | fi | |
9081 | done | |
9082 | done | |
9083 | ||
9084 | ;; | |
9085 | esac | |
9086 | fi | |
9087 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | |
9088 | ||
9089 | if test -n "$PROG_VMSTAT"; then | |
9090 | echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | |
9091 | echo "${ECHO_T}$PROG_VMSTAT" >&6 | |
9092 | else | |
9093 | echo "$as_me:$LINENO: result: no" >&5 | |
9094 | echo "${ECHO_T}no" >&6 | |
9095 | fi | |
9096 | ||
9097 | if test -z "$PROG_VMSTAT" ; then | |
9098 | PROG_VMSTAT="undef" | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | ||
9103 | # Extract the first word of "uptime", so it can be a program name with args. | |
9104 | set dummy uptime; ac_word=$2 | |
9105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9107 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | |
9108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9109 | else | |
9110 | case $PROG_UPTIME in | |
9111 | [\\/]* | ?:[\\/]*) | |
9112 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | |
9113 | ;; | |
9114 | *) | |
9115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9116 | for as_dir in $PATH | |
9117 | do | |
9118 | IFS=$as_save_IFS | |
9119 | test -z "$as_dir" && as_dir=. | |
9120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9122 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | |
9123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9124 | break 2 | |
9125 | fi | |
9126 | done | |
9127 | done | |
9128 | ||
9129 | ;; | |
9130 | esac | |
9131 | fi | |
9132 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | |
9133 | ||
9134 | if test -n "$PROG_UPTIME"; then | |
9135 | echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | |
9136 | echo "${ECHO_T}$PROG_UPTIME" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | if test -z "$PROG_UPTIME" ; then | |
9143 | PROG_UPTIME="undef" | |
9144 | fi | |
9145 | ||
9146 | ||
9147 | ||
9148 | # Extract the first word of "ipcs", so it can be a program name with args. | |
9149 | set dummy ipcs; ac_word=$2 | |
9150 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9151 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9152 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | |
9153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9154 | else | |
9155 | case $PROG_IPCS in | |
9156 | [\\/]* | ?:[\\/]*) | |
9157 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | |
9158 | ;; | |
9159 | *) | |
9160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9161 | for as_dir in $PATH | |
9162 | do | |
9163 | IFS=$as_save_IFS | |
9164 | test -z "$as_dir" && as_dir=. | |
9165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9167 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | |
9168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9169 | break 2 | |
9170 | fi | |
9171 | done | |
9172 | done | |
9173 | ||
9174 | ;; | |
9175 | esac | |
9176 | fi | |
9177 | PROG_IPCS=$ac_cv_path_PROG_IPCS | |
9178 | ||
9179 | if test -n "$PROG_IPCS"; then | |
9180 | echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | |
9181 | echo "${ECHO_T}$PROG_IPCS" >&6 | |
9182 | else | |
9183 | echo "$as_me:$LINENO: result: no" >&5 | |
9184 | echo "${ECHO_T}no" >&6 | |
9185 | fi | |
9186 | ||
9187 | if test -z "$PROG_IPCS" ; then | |
9188 | PROG_IPCS="undef" | |
9189 | fi | |
9190 | ||
9191 | ||
9192 | ||
9193 | # Extract the first word of "tail", so it can be a program name with args. | |
9194 | set dummy tail; ac_word=$2 | |
9195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9197 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | |
9198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9199 | else | |
9200 | case $PROG_TAIL in | |
9201 | [\\/]* | ?:[\\/]*) | |
9202 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | |
9203 | ;; | |
9204 | *) | |
9205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9206 | for as_dir in $PATH | |
9207 | do | |
9208 | IFS=$as_save_IFS | |
9209 | test -z "$as_dir" && as_dir=. | |
9210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9212 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | |
9213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9214 | break 2 | |
9215 | fi | |
9216 | done | |
9217 | done | |
9218 | ||
9219 | ;; | |
9220 | esac | |
9221 | fi | |
9222 | PROG_TAIL=$ac_cv_path_PROG_TAIL | |
9223 | ||
9224 | if test -n "$PROG_TAIL"; then | |
9225 | echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | |
9226 | echo "${ECHO_T}$PROG_TAIL" >&6 | |
9227 | else | |
9228 | echo "$as_me:$LINENO: result: no" >&5 | |
9229 | echo "${ECHO_T}no" >&6 | |
9230 | fi | |
9231 | ||
9232 | if test -z "$PROG_TAIL" ; then | |
9233 | PROG_TAIL="undef" | |
9234 | fi | |
9235 | ||
9236 | ||
9237 | # restore PATH | |
9238 | PATH=$OPATH | |
9239 | ||
9240 | # Where does ssh-rand-helper get its randomness from? | |
9241 | INSTALL_SSH_PRNG_CMDS="" | |
9242 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | |
9243 | if test ! -z "$PRNGD_PORT" ; then | |
9244 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | |
9245 | elif test ! -z "$PRNGD_SOCKET" ; then | |
9246 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | |
9247 | else | |
9248 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | |
9249 | RAND_HELPER_CMDHASH=yes | |
9250 | INSTALL_SSH_PRNG_CMDS="yes" | |
9251 | fi | |
9252 | fi | |
9253 | ||
9254 | ||
9255 | ||
9256 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | |
9257 | if test ! -z "$SONY" ; then | |
9258 | LIBS="$LIBS -liberty"; | |
9259 | fi | |
9260 | ||
9261 | # Checks for data types | |
9262 | echo "$as_me:$LINENO: checking for char" >&5 | |
9263 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
9264 | if test "${ac_cv_type_char+set}" = set; then | |
9265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9266 | else | |
9267 | cat >conftest.$ac_ext <<_ACEOF | |
9268 | #line $LINENO "configure" | |
9269 | #include "confdefs.h" | |
9270 | $ac_includes_default | |
9271 | #ifdef F77_DUMMY_MAIN | |
9272 | # ifdef __cplusplus | |
9273 | extern "C" | |
9274 | # endif | |
9275 | int F77_DUMMY_MAIN() { return 1; } | |
9276 | #endif | |
9277 | int | |
9278 | main () | |
9279 | { | |
9280 | if ((char *) 0) | |
9281 | return 0; | |
9282 | if (sizeof (char)) | |
9283 | return 0; | |
9284 | ; | |
9285 | return 0; | |
9286 | } | |
9287 | _ACEOF | |
9288 | rm -f conftest.$ac_objext | |
9289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9290 | (eval $ac_compile) 2>&5 | |
9291 | ac_status=$? | |
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9293 | (exit $ac_status); } && | |
9294 | { ac_try='test -s conftest.$ac_objext' | |
9295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9296 | (eval $ac_try) 2>&5 | |
9297 | ac_status=$? | |
9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9299 | (exit $ac_status); }; }; then | |
9300 | ac_cv_type_char=yes | |
9301 | else | |
9302 | echo "$as_me: failed program was:" >&5 | |
9303 | cat conftest.$ac_ext >&5 | |
9304 | ac_cv_type_char=no | |
9305 | fi | |
9306 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9307 | fi | |
9308 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
9309 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
9310 | ||
9311 | echo "$as_me:$LINENO: checking size of char" >&5 | |
9312 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
9313 | if test "${ac_cv_sizeof_char+set}" = set; then | |
9314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9315 | else | |
9316 | if test "$ac_cv_type_char" = yes; then | |
9317 | # The cast to unsigned long works around a bug in the HP C Compiler | |
9318 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9319 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9320 | # This bug is HP SR number 8606223364. | |
9321 | if test "$cross_compiling" = yes; then | |
9322 | # Depending upon the size, compute the lo and hi bounds. | |
9323 | cat >conftest.$ac_ext <<_ACEOF | |
9324 | #line $LINENO "configure" | |
9325 | #include "confdefs.h" | |
9326 | $ac_includes_default | |
9327 | #ifdef F77_DUMMY_MAIN | |
9328 | # ifdef __cplusplus | |
9329 | extern "C" | |
9330 | # endif | |
9331 | int F77_DUMMY_MAIN() { return 1; } | |
9332 | #endif | |
9333 | int | |
9334 | main () | |
9335 | { | |
9336 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@; | |
9337 | test_array @<:@0@:>@ = 0 | |
9338 | ||
9339 | ; | |
9340 | return 0; | |
9341 | } | |
9342 | _ACEOF | |
9343 | rm -f conftest.$ac_objext | |
9344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9345 | (eval $ac_compile) 2>&5 | |
9346 | ac_status=$? | |
9347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9348 | (exit $ac_status); } && | |
9349 | { ac_try='test -s conftest.$ac_objext' | |
9350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9351 | (eval $ac_try) 2>&5 | |
9352 | ac_status=$? | |
9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9354 | (exit $ac_status); }; }; then | |
9355 | ac_lo=0 ac_mid=0 | |
9356 | while :; do | |
9357 | cat >conftest.$ac_ext <<_ACEOF | |
9358 | #line $LINENO "configure" | |
9359 | #include "confdefs.h" | |
9360 | $ac_includes_default | |
9361 | #ifdef F77_DUMMY_MAIN | |
9362 | # ifdef __cplusplus | |
9363 | extern "C" | |
9364 | # endif | |
9365 | int F77_DUMMY_MAIN() { return 1; } | |
9366 | #endif | |
9367 | int | |
9368 | main () | |
9369 | { | |
9370 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@; | |
9371 | test_array @<:@0@:>@ = 0 | |
9372 | ||
9373 | ; | |
9374 | return 0; | |
9375 | } | |
9376 | _ACEOF | |
9377 | rm -f conftest.$ac_objext | |
9378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9379 | (eval $ac_compile) 2>&5 | |
9380 | ac_status=$? | |
9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9382 | (exit $ac_status); } && | |
9383 | { ac_try='test -s conftest.$ac_objext' | |
9384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9385 | (eval $ac_try) 2>&5 | |
9386 | ac_status=$? | |
9387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9388 | (exit $ac_status); }; }; then | |
9389 | ac_hi=$ac_mid; break | |
9390 | else | |
9391 | echo "$as_me: failed program was:" >&5 | |
9392 | cat conftest.$ac_ext >&5 | |
9393 | ac_lo=`expr $ac_mid + 1` | |
9394 | if test $ac_lo -le $ac_mid; then | |
9395 | ac_lo= ac_hi= | |
9396 | break | |
9397 | fi | |
9398 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
9399 | fi | |
9400 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9401 | done | |
9402 | else | |
9403 | echo "$as_me: failed program was:" >&5 | |
9404 | cat conftest.$ac_ext >&5 | |
9405 | cat >conftest.$ac_ext <<_ACEOF | |
9406 | #line $LINENO "configure" | |
9407 | #include "confdefs.h" | |
9408 | $ac_includes_default | |
9409 | #ifdef F77_DUMMY_MAIN | |
9410 | # ifdef __cplusplus | |
9411 | extern "C" | |
9412 | # endif | |
9413 | int F77_DUMMY_MAIN() { return 1; } | |
9414 | #endif | |
9415 | int | |
9416 | main () | |
9417 | { | |
9418 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@; | |
9419 | test_array @<:@0@:>@ = 0 | |
9420 | ||
9421 | ; | |
9422 | return 0; | |
9423 | } | |
9424 | _ACEOF | |
9425 | rm -f conftest.$ac_objext | |
9426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9427 | (eval $ac_compile) 2>&5 | |
9428 | ac_status=$? | |
9429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9430 | (exit $ac_status); } && | |
9431 | { ac_try='test -s conftest.$ac_objext' | |
9432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9433 | (eval $ac_try) 2>&5 | |
9434 | ac_status=$? | |
9435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9436 | (exit $ac_status); }; }; then | |
9437 | ac_hi=-1 ac_mid=-1 | |
9438 | while :; do | |
9439 | cat >conftest.$ac_ext <<_ACEOF | |
9440 | #line $LINENO "configure" | |
9441 | #include "confdefs.h" | |
9442 | $ac_includes_default | |
9443 | #ifdef F77_DUMMY_MAIN | |
9444 | # ifdef __cplusplus | |
9445 | extern "C" | |
9446 | # endif | |
9447 | int F77_DUMMY_MAIN() { return 1; } | |
9448 | #endif | |
9449 | int | |
9450 | main () | |
9451 | { | |
9452 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@; | |
9453 | test_array @<:@0@:>@ = 0 | |
9454 | ||
9455 | ; | |
9456 | return 0; | |
9457 | } | |
9458 | _ACEOF | |
9459 | rm -f conftest.$ac_objext | |
9460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9461 | (eval $ac_compile) 2>&5 | |
9462 | ac_status=$? | |
9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9464 | (exit $ac_status); } && | |
9465 | { ac_try='test -s conftest.$ac_objext' | |
9466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9467 | (eval $ac_try) 2>&5 | |
9468 | ac_status=$? | |
9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9470 | (exit $ac_status); }; }; then | |
9471 | ac_lo=$ac_mid; break | |
9472 | else | |
9473 | echo "$as_me: failed program was:" >&5 | |
9474 | cat conftest.$ac_ext >&5 | |
9475 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
9476 | if test $ac_mid -le $ac_hi; then | |
9477 | ac_lo= ac_hi= | |
9478 | break | |
9479 | fi | |
9480 | ac_mid=`expr 2 '*' $ac_mid` | |
9481 | fi | |
9482 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9483 | done | |
9484 | else | |
9485 | echo "$as_me: failed program was:" >&5 | |
9486 | cat conftest.$ac_ext >&5 | |
9487 | ac_lo= ac_hi= | |
9488 | fi | |
9489 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9490 | fi | |
9491 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9492 | # Binary search between lo and hi bounds. | |
9493 | while test "x$ac_lo" != "x$ac_hi"; do | |
9494 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9495 | cat >conftest.$ac_ext <<_ACEOF | |
9496 | #line $LINENO "configure" | |
9497 | #include "confdefs.h" | |
9498 | $ac_includes_default | |
9499 | #ifdef F77_DUMMY_MAIN | |
9500 | # ifdef __cplusplus | |
9501 | extern "C" | |
9502 | # endif | |
9503 | int F77_DUMMY_MAIN() { return 1; } | |
9504 | #endif | |
9505 | int | |
9506 | main () | |
9507 | { | |
9508 | static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@; | |
9509 | test_array @<:@0@:>@ = 0 | |
9510 | ||
9511 | ; | |
9512 | return 0; | |
9513 | } | |
9514 | _ACEOF | |
9515 | rm -f conftest.$ac_objext | |
9516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9517 | (eval $ac_compile) 2>&5 | |
9518 | ac_status=$? | |
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9520 | (exit $ac_status); } && | |
9521 | { ac_try='test -s conftest.$ac_objext' | |
9522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9523 | (eval $ac_try) 2>&5 | |
9524 | ac_status=$? | |
9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9526 | (exit $ac_status); }; }; then | |
9527 | ac_hi=$ac_mid | |
9528 | else | |
9529 | echo "$as_me: failed program was:" >&5 | |
9530 | cat conftest.$ac_ext >&5 | |
9531 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
9532 | fi | |
9533 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9534 | done | |
9535 | case $ac_lo in | |
9536 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
9537 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | |
9538 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | |
9539 | { (exit 1); exit 1; }; } ;; | |
9540 | esac | |
9541 | else | |
9542 | if test "$cross_compiling" = yes; then | |
9543 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
9544 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
9545 | { (exit 1); exit 1; }; } | |
9546 | else | |
9547 | cat >conftest.$ac_ext <<_ACEOF | |
9548 | #line $LINENO "configure" | |
9549 | #include "confdefs.h" | |
9550 | $ac_includes_default | |
9551 | long longval () { return (long) (sizeof (char)); } | |
9552 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
9553 | @%:@include <stdio.h> | |
9554 | @%:@include <stdlib.h> | |
9555 | #ifdef F77_DUMMY_MAIN | |
9556 | # ifdef __cplusplus | |
9557 | extern "C" | |
9558 | # endif | |
9559 | int F77_DUMMY_MAIN() { return 1; } | |
9560 | #endif | |
9561 | int | |
9562 | main () | |
9563 | { | |
9564 | ||
9565 | FILE *f = fopen ("conftest.val", "w"); | |
9566 | if (! f) | |
9567 | exit (1); | |
9568 | if (((long) (sizeof (char))) < 0) | |
9569 | { | |
9570 | long i = longval (); | |
9571 | if (i != ((long) (sizeof (char)))) | |
9572 | exit (1); | |
9573 | fprintf (f, "%ld\n", i); | |
9574 | } | |
9575 | else | |
9576 | { | |
9577 | unsigned long i = ulongval (); | |
9578 | if (i != ((long) (sizeof (char)))) | |
9579 | exit (1); | |
9580 | fprintf (f, "%lu\n", i); | |
9581 | } | |
9582 | exit (ferror (f) || fclose (f) != 0); | |
9583 | ||
9584 | ; | |
9585 | return 0; | |
9586 | } | |
9587 | _ACEOF | |
9588 | rm -f conftest$ac_exeext | |
9589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9590 | (eval $ac_link) 2>&5 | |
9591 | ac_status=$? | |
9592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9595 | (eval $ac_try) 2>&5 | |
9596 | ac_status=$? | |
9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9598 | (exit $ac_status); }; }; then | |
9599 | ac_cv_sizeof_char=`cat conftest.val` | |
9600 | else | |
9601 | echo "$as_me: program exited with status $ac_status" >&5 | |
9602 | echo "$as_me: failed program was:" >&5 | |
9603 | cat conftest.$ac_ext >&5 | |
9604 | ( exit $ac_status ) | |
9605 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | |
9606 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | |
9607 | { (exit 1); exit 1; }; } | |
9608 | fi | |
9609 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9610 | fi | |
9611 | fi | |
9612 | rm -f conftest.val | |
9613 | else | |
9614 | ac_cv_sizeof_char=0 | |
9615 | fi | |
9616 | fi | |
9617 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
9618 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
9619 | cat >>confdefs.h <<_ACEOF | |
9620 | @%:@define SIZEOF_CHAR $ac_cv_sizeof_char | |
9621 | _ACEOF | |
9622 | ||
9623 | ||
9624 | echo "$as_me:$LINENO: checking for short int" >&5 | |
9625 | echo $ECHO_N "checking for short int... $ECHO_C" >&6 | |
9626 | if test "${ac_cv_type_short_int+set}" = set; then | |
9627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9628 | else | |
9629 | cat >conftest.$ac_ext <<_ACEOF | |
9630 | #line $LINENO "configure" | |
9631 | #include "confdefs.h" | |
9632 | $ac_includes_default | |
9633 | #ifdef F77_DUMMY_MAIN | |
9634 | # ifdef __cplusplus | |
9635 | extern "C" | |
9636 | # endif | |
9637 | int F77_DUMMY_MAIN() { return 1; } | |
9638 | #endif | |
9639 | int | |
9640 | main () | |
9641 | { | |
9642 | if ((short int *) 0) | |
9643 | return 0; | |
9644 | if (sizeof (short int)) | |
9645 | return 0; | |
9646 | ; | |
9647 | return 0; | |
9648 | } | |
9649 | _ACEOF | |
9650 | rm -f conftest.$ac_objext | |
9651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9652 | (eval $ac_compile) 2>&5 | |
9653 | ac_status=$? | |
9654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9655 | (exit $ac_status); } && | |
9656 | { ac_try='test -s conftest.$ac_objext' | |
9657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9658 | (eval $ac_try) 2>&5 | |
9659 | ac_status=$? | |
9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9661 | (exit $ac_status); }; }; then | |
9662 | ac_cv_type_short_int=yes | |
9663 | else | |
9664 | echo "$as_me: failed program was:" >&5 | |
9665 | cat conftest.$ac_ext >&5 | |
9666 | ac_cv_type_short_int=no | |
9667 | fi | |
9668 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9669 | fi | |
9670 | echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | |
9671 | echo "${ECHO_T}$ac_cv_type_short_int" >&6 | |
9672 | ||
9673 | echo "$as_me:$LINENO: checking size of short int" >&5 | |
9674 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6 | |
9675 | if test "${ac_cv_sizeof_short_int+set}" = set; then | |
9676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9677 | else | |
9678 | if test "$ac_cv_type_short_int" = yes; then | |
9679 | # The cast to unsigned long works around a bug in the HP C Compiler | |
9680 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
9681 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
9682 | # This bug is HP SR number 8606223364. | |
9683 | if test "$cross_compiling" = yes; then | |
9684 | # Depending upon the size, compute the lo and hi bounds. | |
9685 | cat >conftest.$ac_ext <<_ACEOF | |
9686 | #line $LINENO "configure" | |
9687 | #include "confdefs.h" | |
9688 | $ac_includes_default | |
9689 | #ifdef F77_DUMMY_MAIN | |
9690 | # ifdef __cplusplus | |
9691 | extern "C" | |
9692 | # endif | |
9693 | int F77_DUMMY_MAIN() { return 1; } | |
9694 | #endif | |
9695 | int | |
9696 | main () | |
9697 | { | |
9698 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= 0)@:>@; | |
9699 | test_array @<:@0@:>@ = 0 | |
9700 | ||
9701 | ; | |
9702 | return 0; | |
9703 | } | |
9704 | _ACEOF | |
9705 | rm -f conftest.$ac_objext | |
9706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9707 | (eval $ac_compile) 2>&5 | |
9708 | ac_status=$? | |
9709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9710 | (exit $ac_status); } && | |
9711 | { ac_try='test -s conftest.$ac_objext' | |
9712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9713 | (eval $ac_try) 2>&5 | |
9714 | ac_status=$? | |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9716 | (exit $ac_status); }; }; then | |
9717 | ac_lo=0 ac_mid=0 | |
9718 | while :; do | |
9719 | cat >conftest.$ac_ext <<_ACEOF | |
9720 | #line $LINENO "configure" | |
9721 | #include "confdefs.h" | |
9722 | $ac_includes_default | |
9723 | #ifdef F77_DUMMY_MAIN | |
9724 | # ifdef __cplusplus | |
9725 | extern "C" | |
9726 | # endif | |
9727 | int F77_DUMMY_MAIN() { return 1; } | |
9728 | #endif | |
9729 | int | |
9730 | main () | |
9731 | { | |
9732 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@; | |
9733 | test_array @<:@0@:>@ = 0 | |
9734 | ||
9735 | ; | |
9736 | return 0; | |
9737 | } | |
9738 | _ACEOF | |
9739 | rm -f conftest.$ac_objext | |
9740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9741 | (eval $ac_compile) 2>&5 | |
9742 | ac_status=$? | |
9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9744 | (exit $ac_status); } && | |
9745 | { ac_try='test -s conftest.$ac_objext' | |
9746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9747 | (eval $ac_try) 2>&5 | |
9748 | ac_status=$? | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); }; }; then | |
9751 | ac_hi=$ac_mid; break | |
9752 | else | |
9753 | echo "$as_me: failed program was:" >&5 | |
9754 | cat conftest.$ac_ext >&5 | |
9755 | ac_lo=`expr $ac_mid + 1` | |
9756 | if test $ac_lo -le $ac_mid; then | |
9757 | ac_lo= ac_hi= | |
9758 | break | |
9759 | fi | |
9760 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
9761 | fi | |
9762 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9763 | done | |
9764 | else | |
9765 | echo "$as_me: failed program was:" >&5 | |
9766 | cat conftest.$ac_ext >&5 | |
9767 | cat >conftest.$ac_ext <<_ACEOF | |
9768 | #line $LINENO "configure" | |
9769 | #include "confdefs.h" | |
9770 | $ac_includes_default | |
9771 | #ifdef F77_DUMMY_MAIN | |
9772 | # ifdef __cplusplus | |
9773 | extern "C" | |
9774 | # endif | |
9775 | int F77_DUMMY_MAIN() { return 1; } | |
9776 | #endif | |
9777 | int | |
9778 | main () | |
9779 | { | |
9780 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) < 0)@:>@; | |
9781 | test_array @<:@0@:>@ = 0 | |
9782 | ||
9783 | ; | |
9784 | return 0; | |
9785 | } | |
9786 | _ACEOF | |
9787 | rm -f conftest.$ac_objext | |
9788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9789 | (eval $ac_compile) 2>&5 | |
9790 | ac_status=$? | |
9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9792 | (exit $ac_status); } && | |
9793 | { ac_try='test -s conftest.$ac_objext' | |
9794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9795 | (eval $ac_try) 2>&5 | |
9796 | ac_status=$? | |
9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9798 | (exit $ac_status); }; }; then | |
9799 | ac_hi=-1 ac_mid=-1 | |
9800 | while :; do | |
9801 | cat >conftest.$ac_ext <<_ACEOF | |
9802 | #line $LINENO "configure" | |
9803 | #include "confdefs.h" | |
9804 | $ac_includes_default | |
9805 | #ifdef F77_DUMMY_MAIN | |
9806 | # ifdef __cplusplus | |
9807 | extern "C" | |
9808 | # endif | |
9809 | int F77_DUMMY_MAIN() { return 1; } | |
9810 | #endif | |
9811 | int | |
9812 | main () | |
9813 | { | |
9814 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)@:>@; | |
9815 | test_array @<:@0@:>@ = 0 | |
9816 | ||
9817 | ; | |
9818 | return 0; | |
9819 | } | |
9820 | _ACEOF | |
9821 | rm -f conftest.$ac_objext | |
9822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9823 | (eval $ac_compile) 2>&5 | |
9824 | ac_status=$? | |
9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9826 | (exit $ac_status); } && | |
9827 | { ac_try='test -s conftest.$ac_objext' | |
9828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9829 | (eval $ac_try) 2>&5 | |
9830 | ac_status=$? | |
9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9832 | (exit $ac_status); }; }; then | |
9833 | ac_lo=$ac_mid; break | |
9834 | else | |
9835 | echo "$as_me: failed program was:" >&5 | |
9836 | cat conftest.$ac_ext >&5 | |
9837 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
9838 | if test $ac_mid -le $ac_hi; then | |
9839 | ac_lo= ac_hi= | |
9840 | break | |
9841 | fi | |
9842 | ac_mid=`expr 2 '*' $ac_mid` | |
9843 | fi | |
9844 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9845 | done | |
9846 | else | |
9847 | echo "$as_me: failed program was:" >&5 | |
9848 | cat conftest.$ac_ext >&5 | |
9849 | ac_lo= ac_hi= | |
9850 | fi | |
9851 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9852 | fi | |
9853 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9854 | # Binary search between lo and hi bounds. | |
9855 | while test "x$ac_lo" != "x$ac_hi"; do | |
9856 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9857 | cat >conftest.$ac_ext <<_ACEOF | |
9858 | #line $LINENO "configure" | |
9859 | #include "confdefs.h" | |
9860 | $ac_includes_default | |
9861 | #ifdef F77_DUMMY_MAIN | |
9862 | # ifdef __cplusplus | |
9863 | extern "C" | |
9864 | # endif | |
9865 | int F77_DUMMY_MAIN() { return 1; } | |
9866 | #endif | |
9867 | int | |
9868 | main () | |
9869 | { | |
9870 | static int test_array @<:@1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)@:>@; | |
9871 | test_array @<:@0@:>@ = 0 | |
9872 | ||
9873 | ; | |
9874 | return 0; | |
9875 | } | |
9876 | _ACEOF | |
9877 | rm -f conftest.$ac_objext | |
9878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9879 | (eval $ac_compile) 2>&5 | |
9880 | ac_status=$? | |
9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9882 | (exit $ac_status); } && | |
9883 | { ac_try='test -s conftest.$ac_objext' | |
9884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9885 | (eval $ac_try) 2>&5 | |
9886 | ac_status=$? | |
9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9888 | (exit $ac_status); }; }; then | |
9889 | ac_hi=$ac_mid | |
9890 | else | |
9891 | echo "$as_me: failed program was:" >&5 | |
9892 | cat conftest.$ac_ext >&5 | |
9893 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
9894 | fi | |
9895 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9896 | done | |
9897 | case $ac_lo in | |
9898 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | |
9899 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | |
9900 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | |
9901 | { (exit 1); exit 1; }; } ;; | |
9902 | esac | |
9903 | else | |
9904 | if test "$cross_compiling" = yes; then | |
9905 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
9906 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
9907 | { (exit 1); exit 1; }; } | |
9908 | else | |
9909 | cat >conftest.$ac_ext <<_ACEOF | |
9910 | #line $LINENO "configure" | |
9911 | #include "confdefs.h" | |
9912 | $ac_includes_default | |
9913 | long longval () { return (long) (sizeof (short int)); } | |
9914 | unsigned long ulongval () { return (long) (sizeof (short int)); } | |
9915 | @%:@include <stdio.h> | |
9916 | @%:@include <stdlib.h> | |
9917 | #ifdef F77_DUMMY_MAIN | |
9918 | # ifdef __cplusplus | |
9919 | extern "C" | |
9920 | # endif | |
9921 | int F77_DUMMY_MAIN() { return 1; } | |
9922 | #endif | |
9923 | int | |
9924 | main () | |
9925 | { | |
9926 | ||
9927 | FILE *f = fopen ("conftest.val", "w"); | |
9928 | if (! f) | |
9929 | exit (1); | |
9930 | if (((long) (sizeof (short int))) < 0) | |
9931 | { | |
9932 | long i = longval (); | |
9933 | if (i != ((long) (sizeof (short int)))) | |
9934 | exit (1); | |
9935 | fprintf (f, "%ld\n", i); | |
9936 | } | |
9937 | else | |
9938 | { | |
9939 | unsigned long i = ulongval (); | |
9940 | if (i != ((long) (sizeof (short int)))) | |
9941 | exit (1); | |
9942 | fprintf (f, "%lu\n", i); | |
9943 | } | |
9944 | exit (ferror (f) || fclose (f) != 0); | |
9945 | ||
9946 | ; | |
9947 | return 0; | |
9948 | } | |
9949 | _ACEOF | |
9950 | rm -f conftest$ac_exeext | |
9951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9952 | (eval $ac_link) 2>&5 | |
9953 | ac_status=$? | |
9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9955 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9957 | (eval $ac_try) 2>&5 | |
9958 | ac_status=$? | |
9959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9960 | (exit $ac_status); }; }; then | |
9961 | ac_cv_sizeof_short_int=`cat conftest.val` | |
9962 | else | |
9963 | echo "$as_me: program exited with status $ac_status" >&5 | |
9964 | echo "$as_me: failed program was:" >&5 | |
9965 | cat conftest.$ac_ext >&5 | |
9966 | ( exit $ac_status ) | |
9967 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77" >&5 | |
9968 | echo "$as_me: error: cannot compute sizeof (short int), 77" >&2;} | |
9969 | { (exit 1); exit 1; }; } | |
9970 | fi | |
9971 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9972 | fi | |
9973 | fi | |
9974 | rm -f conftest.val | |
9975 | else | |
9976 | ac_cv_sizeof_short_int=0 | |
9977 | fi | |
9978 | fi | |
9979 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | |
9980 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6 | |
9981 | cat >>confdefs.h <<_ACEOF | |
9982 | @%:@define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | |
9983 | _ACEOF | |
9984 | ||
9985 | ||
9986 | echo "$as_me:$LINENO: checking for int" >&5 | |
9987 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
9988 | if test "${ac_cv_type_int+set}" = set; then | |
9989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9990 | else | |
9991 | cat >conftest.$ac_ext <<_ACEOF | |
9992 | #line $LINENO "configure" | |
9993 | #include "confdefs.h" | |
9994 | $ac_includes_default | |
9995 | #ifdef F77_DUMMY_MAIN | |
9996 | # ifdef __cplusplus | |
9997 | extern "C" | |
9998 | # endif | |
9999 | int F77_DUMMY_MAIN() { return 1; } | |
10000 | #endif | |
10001 | int | |
10002 | main () | |
10003 | { | |
10004 | if ((int *) 0) | |
10005 | return 0; | |
10006 | if (sizeof (int)) | |
10007 | return 0; | |
10008 | ; | |
10009 | return 0; | |
10010 | } | |
10011 | _ACEOF | |
10012 | rm -f conftest.$ac_objext | |
10013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10014 | (eval $ac_compile) 2>&5 | |
10015 | ac_status=$? | |
10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10017 | (exit $ac_status); } && | |
10018 | { ac_try='test -s conftest.$ac_objext' | |
10019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10020 | (eval $ac_try) 2>&5 | |
10021 | ac_status=$? | |
10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10023 | (exit $ac_status); }; }; then | |
10024 | ac_cv_type_int=yes | |
10025 | else | |
10026 | echo "$as_me: failed program was:" >&5 | |
10027 | cat conftest.$ac_ext >&5 | |
10028 | ac_cv_type_int=no | |
10029 | fi | |
10030 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10031 | fi | |
10032 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
10033 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
10034 | ||
10035 | echo "$as_me:$LINENO: checking size of int" >&5 | |
10036 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
10037 | if test "${ac_cv_sizeof_int+set}" = set; then | |
10038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10039 | else | |
10040 | if test "$ac_cv_type_int" = yes; then | |
10041 | # The cast to unsigned long works around a bug in the HP C Compiler | |
10042 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
10043 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
10044 | # This bug is HP SR number 8606223364. | |
10045 | if test "$cross_compiling" = yes; then | |
10046 | # Depending upon the size, compute the lo and hi bounds. | |
10047 | cat >conftest.$ac_ext <<_ACEOF | |
10048 | #line $LINENO "configure" | |
10049 | #include "confdefs.h" | |
10050 | $ac_includes_default | |
10051 | #ifdef F77_DUMMY_MAIN | |
10052 | # ifdef __cplusplus | |
10053 | extern "C" | |
10054 | # endif | |
10055 | int F77_DUMMY_MAIN() { return 1; } | |
10056 | #endif | |
10057 | int | |
10058 | main () | |
10059 | { | |
10060 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@; | |
10061 | test_array @<:@0@:>@ = 0 | |
10062 | ||
10063 | ; | |
10064 | return 0; | |
10065 | } | |
10066 | _ACEOF | |
10067 | rm -f conftest.$ac_objext | |
10068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10069 | (eval $ac_compile) 2>&5 | |
10070 | ac_status=$? | |
10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10072 | (exit $ac_status); } && | |
10073 | { ac_try='test -s conftest.$ac_objext' | |
10074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10075 | (eval $ac_try) 2>&5 | |
10076 | ac_status=$? | |
10077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10078 | (exit $ac_status); }; }; then | |
10079 | ac_lo=0 ac_mid=0 | |
10080 | while :; do | |
10081 | cat >conftest.$ac_ext <<_ACEOF | |
10082 | #line $LINENO "configure" | |
10083 | #include "confdefs.h" | |
10084 | $ac_includes_default | |
10085 | #ifdef F77_DUMMY_MAIN | |
10086 | # ifdef __cplusplus | |
10087 | extern "C" | |
10088 | # endif | |
10089 | int F77_DUMMY_MAIN() { return 1; } | |
10090 | #endif | |
10091 | int | |
10092 | main () | |
10093 | { | |
10094 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@; | |
10095 | test_array @<:@0@:>@ = 0 | |
10096 | ||
10097 | ; | |
10098 | return 0; | |
10099 | } | |
10100 | _ACEOF | |
10101 | rm -f conftest.$ac_objext | |
10102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10103 | (eval $ac_compile) 2>&5 | |
10104 | ac_status=$? | |
10105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10106 | (exit $ac_status); } && | |
10107 | { ac_try='test -s conftest.$ac_objext' | |
10108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10109 | (eval $ac_try) 2>&5 | |
10110 | ac_status=$? | |
10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10112 | (exit $ac_status); }; }; then | |
10113 | ac_hi=$ac_mid; break | |
10114 | else | |
10115 | echo "$as_me: failed program was:" >&5 | |
10116 | cat conftest.$ac_ext >&5 | |
10117 | ac_lo=`expr $ac_mid + 1` | |
10118 | if test $ac_lo -le $ac_mid; then | |
10119 | ac_lo= ac_hi= | |
10120 | break | |
10121 | fi | |
10122 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10123 | fi | |
10124 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10125 | done | |
10126 | else | |
10127 | echo "$as_me: failed program was:" >&5 | |
10128 | cat conftest.$ac_ext >&5 | |
10129 | cat >conftest.$ac_ext <<_ACEOF | |
10130 | #line $LINENO "configure" | |
10131 | #include "confdefs.h" | |
10132 | $ac_includes_default | |
10133 | #ifdef F77_DUMMY_MAIN | |
10134 | # ifdef __cplusplus | |
10135 | extern "C" | |
10136 | # endif | |
10137 | int F77_DUMMY_MAIN() { return 1; } | |
10138 | #endif | |
10139 | int | |
10140 | main () | |
10141 | { | |
10142 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@; | |
10143 | test_array @<:@0@:>@ = 0 | |
10144 | ||
10145 | ; | |
10146 | return 0; | |
10147 | } | |
10148 | _ACEOF | |
10149 | rm -f conftest.$ac_objext | |
10150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10151 | (eval $ac_compile) 2>&5 | |
10152 | ac_status=$? | |
10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10154 | (exit $ac_status); } && | |
10155 | { ac_try='test -s conftest.$ac_objext' | |
10156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10157 | (eval $ac_try) 2>&5 | |
10158 | ac_status=$? | |
10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10160 | (exit $ac_status); }; }; then | |
10161 | ac_hi=-1 ac_mid=-1 | |
10162 | while :; do | |
10163 | cat >conftest.$ac_ext <<_ACEOF | |
10164 | #line $LINENO "configure" | |
10165 | #include "confdefs.h" | |
10166 | $ac_includes_default | |
10167 | #ifdef F77_DUMMY_MAIN | |
10168 | # ifdef __cplusplus | |
10169 | extern "C" | |
10170 | # endif | |
10171 | int F77_DUMMY_MAIN() { return 1; } | |
10172 | #endif | |
10173 | int | |
10174 | main () | |
10175 | { | |
10176 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@; | |
10177 | test_array @<:@0@:>@ = 0 | |
10178 | ||
10179 | ; | |
10180 | return 0; | |
10181 | } | |
10182 | _ACEOF | |
10183 | rm -f conftest.$ac_objext | |
10184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10185 | (eval $ac_compile) 2>&5 | |
10186 | ac_status=$? | |
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10188 | (exit $ac_status); } && | |
10189 | { ac_try='test -s conftest.$ac_objext' | |
10190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10191 | (eval $ac_try) 2>&5 | |
10192 | ac_status=$? | |
10193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10194 | (exit $ac_status); }; }; then | |
10195 | ac_lo=$ac_mid; break | |
10196 | else | |
10197 | echo "$as_me: failed program was:" >&5 | |
10198 | cat conftest.$ac_ext >&5 | |
10199 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10200 | if test $ac_mid -le $ac_hi; then | |
10201 | ac_lo= ac_hi= | |
10202 | break | |
10203 | fi | |
10204 | ac_mid=`expr 2 '*' $ac_mid` | |
10205 | fi | |
10206 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10207 | done | |
10208 | else | |
10209 | echo "$as_me: failed program was:" >&5 | |
10210 | cat conftest.$ac_ext >&5 | |
10211 | ac_lo= ac_hi= | |
10212 | fi | |
10213 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10214 | fi | |
10215 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10216 | # Binary search between lo and hi bounds. | |
10217 | while test "x$ac_lo" != "x$ac_hi"; do | |
10218 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10219 | cat >conftest.$ac_ext <<_ACEOF | |
10220 | #line $LINENO "configure" | |
10221 | #include "confdefs.h" | |
10222 | $ac_includes_default | |
10223 | #ifdef F77_DUMMY_MAIN | |
10224 | # ifdef __cplusplus | |
10225 | extern "C" | |
10226 | # endif | |
10227 | int F77_DUMMY_MAIN() { return 1; } | |
10228 | #endif | |
10229 | int | |
10230 | main () | |
10231 | { | |
10232 | static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@; | |
10233 | test_array @<:@0@:>@ = 0 | |
10234 | ||
10235 | ; | |
10236 | return 0; | |
10237 | } | |
10238 | _ACEOF | |
10239 | rm -f conftest.$ac_objext | |
10240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10241 | (eval $ac_compile) 2>&5 | |
10242 | ac_status=$? | |
10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10244 | (exit $ac_status); } && | |
10245 | { ac_try='test -s conftest.$ac_objext' | |
10246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10247 | (eval $ac_try) 2>&5 | |
10248 | ac_status=$? | |
10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10250 | (exit $ac_status); }; }; then | |
10251 | ac_hi=$ac_mid | |
10252 | else | |
10253 | echo "$as_me: failed program was:" >&5 | |
10254 | cat conftest.$ac_ext >&5 | |
10255 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10256 | fi | |
10257 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10258 | done | |
10259 | case $ac_lo in | |
10260 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
10261 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | |
10262 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | |
10263 | { (exit 1); exit 1; }; } ;; | |
10264 | esac | |
10265 | else | |
10266 | if test "$cross_compiling" = yes; then | |
10267 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
10268 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
10269 | { (exit 1); exit 1; }; } | |
10270 | else | |
10271 | cat >conftest.$ac_ext <<_ACEOF | |
10272 | #line $LINENO "configure" | |
10273 | #include "confdefs.h" | |
10274 | $ac_includes_default | |
10275 | long longval () { return (long) (sizeof (int)); } | |
10276 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
10277 | @%:@include <stdio.h> | |
10278 | @%:@include <stdlib.h> | |
10279 | #ifdef F77_DUMMY_MAIN | |
10280 | # ifdef __cplusplus | |
10281 | extern "C" | |
10282 | # endif | |
10283 | int F77_DUMMY_MAIN() { return 1; } | |
10284 | #endif | |
10285 | int | |
10286 | main () | |
10287 | { | |
10288 | ||
10289 | FILE *f = fopen ("conftest.val", "w"); | |
10290 | if (! f) | |
10291 | exit (1); | |
10292 | if (((long) (sizeof (int))) < 0) | |
10293 | { | |
10294 | long i = longval (); | |
10295 | if (i != ((long) (sizeof (int)))) | |
10296 | exit (1); | |
10297 | fprintf (f, "%ld\n", i); | |
10298 | } | |
10299 | else | |
10300 | { | |
10301 | unsigned long i = ulongval (); | |
10302 | if (i != ((long) (sizeof (int)))) | |
10303 | exit (1); | |
10304 | fprintf (f, "%lu\n", i); | |
10305 | } | |
10306 | exit (ferror (f) || fclose (f) != 0); | |
10307 | ||
10308 | ; | |
10309 | return 0; | |
10310 | } | |
10311 | _ACEOF | |
10312 | rm -f conftest$ac_exeext | |
10313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10314 | (eval $ac_link) 2>&5 | |
10315 | ac_status=$? | |
10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10317 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10319 | (eval $ac_try) 2>&5 | |
10320 | ac_status=$? | |
10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10322 | (exit $ac_status); }; }; then | |
10323 | ac_cv_sizeof_int=`cat conftest.val` | |
10324 | else | |
10325 | echo "$as_me: program exited with status $ac_status" >&5 | |
10326 | echo "$as_me: failed program was:" >&5 | |
10327 | cat conftest.$ac_ext >&5 | |
10328 | ( exit $ac_status ) | |
10329 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | |
10330 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | |
10331 | { (exit 1); exit 1; }; } | |
10332 | fi | |
10333 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10334 | fi | |
10335 | fi | |
10336 | rm -f conftest.val | |
10337 | else | |
10338 | ac_cv_sizeof_int=0 | |
10339 | fi | |
10340 | fi | |
10341 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
10342 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
10343 | cat >>confdefs.h <<_ACEOF | |
10344 | @%:@define SIZEOF_INT $ac_cv_sizeof_int | |
10345 | _ACEOF | |
10346 | ||
10347 | ||
10348 | echo "$as_me:$LINENO: checking for long int" >&5 | |
10349 | echo $ECHO_N "checking for long int... $ECHO_C" >&6 | |
10350 | if test "${ac_cv_type_long_int+set}" = set; then | |
10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10352 | else | |
10353 | cat >conftest.$ac_ext <<_ACEOF | |
10354 | #line $LINENO "configure" | |
10355 | #include "confdefs.h" | |
10356 | $ac_includes_default | |
10357 | #ifdef F77_DUMMY_MAIN | |
10358 | # ifdef __cplusplus | |
10359 | extern "C" | |
10360 | # endif | |
10361 | int F77_DUMMY_MAIN() { return 1; } | |
10362 | #endif | |
10363 | int | |
10364 | main () | |
10365 | { | |
10366 | if ((long int *) 0) | |
10367 | return 0; | |
10368 | if (sizeof (long int)) | |
10369 | return 0; | |
10370 | ; | |
10371 | return 0; | |
10372 | } | |
10373 | _ACEOF | |
10374 | rm -f conftest.$ac_objext | |
10375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10376 | (eval $ac_compile) 2>&5 | |
10377 | ac_status=$? | |
10378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10379 | (exit $ac_status); } && | |
10380 | { ac_try='test -s conftest.$ac_objext' | |
10381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10382 | (eval $ac_try) 2>&5 | |
10383 | ac_status=$? | |
10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10385 | (exit $ac_status); }; }; then | |
10386 | ac_cv_type_long_int=yes | |
10387 | else | |
10388 | echo "$as_me: failed program was:" >&5 | |
10389 | cat conftest.$ac_ext >&5 | |
10390 | ac_cv_type_long_int=no | |
10391 | fi | |
10392 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10393 | fi | |
10394 | echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | |
10395 | echo "${ECHO_T}$ac_cv_type_long_int" >&6 | |
10396 | ||
10397 | echo "$as_me:$LINENO: checking size of long int" >&5 | |
10398 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6 | |
10399 | if test "${ac_cv_sizeof_long_int+set}" = set; then | |
10400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10401 | else | |
10402 | if test "$ac_cv_type_long_int" = yes; then | |
10403 | # The cast to unsigned long works around a bug in the HP C Compiler | |
10404 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
10405 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
10406 | # This bug is HP SR number 8606223364. | |
10407 | if test "$cross_compiling" = yes; then | |
10408 | # Depending upon the size, compute the lo and hi bounds. | |
10409 | cat >conftest.$ac_ext <<_ACEOF | |
10410 | #line $LINENO "configure" | |
10411 | #include "confdefs.h" | |
10412 | $ac_includes_default | |
10413 | #ifdef F77_DUMMY_MAIN | |
10414 | # ifdef __cplusplus | |
10415 | extern "C" | |
10416 | # endif | |
10417 | int F77_DUMMY_MAIN() { return 1; } | |
10418 | #endif | |
10419 | int | |
10420 | main () | |
10421 | { | |
10422 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= 0)@:>@; | |
10423 | test_array @<:@0@:>@ = 0 | |
10424 | ||
10425 | ; | |
10426 | return 0; | |
10427 | } | |
10428 | _ACEOF | |
10429 | rm -f conftest.$ac_objext | |
10430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10431 | (eval $ac_compile) 2>&5 | |
10432 | ac_status=$? | |
10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10434 | (exit $ac_status); } && | |
10435 | { ac_try='test -s conftest.$ac_objext' | |
10436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10437 | (eval $ac_try) 2>&5 | |
10438 | ac_status=$? | |
10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10440 | (exit $ac_status); }; }; then | |
10441 | ac_lo=0 ac_mid=0 | |
10442 | while :; do | |
10443 | cat >conftest.$ac_ext <<_ACEOF | |
10444 | #line $LINENO "configure" | |
10445 | #include "confdefs.h" | |
10446 | $ac_includes_default | |
10447 | #ifdef F77_DUMMY_MAIN | |
10448 | # ifdef __cplusplus | |
10449 | extern "C" | |
10450 | # endif | |
10451 | int F77_DUMMY_MAIN() { return 1; } | |
10452 | #endif | |
10453 | int | |
10454 | main () | |
10455 | { | |
10456 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@; | |
10457 | test_array @<:@0@:>@ = 0 | |
10458 | ||
10459 | ; | |
10460 | return 0; | |
10461 | } | |
10462 | _ACEOF | |
10463 | rm -f conftest.$ac_objext | |
10464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10465 | (eval $ac_compile) 2>&5 | |
10466 | ac_status=$? | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); } && | |
10469 | { ac_try='test -s conftest.$ac_objext' | |
10470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10471 | (eval $ac_try) 2>&5 | |
10472 | ac_status=$? | |
10473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10474 | (exit $ac_status); }; }; then | |
10475 | ac_hi=$ac_mid; break | |
10476 | else | |
10477 | echo "$as_me: failed program was:" >&5 | |
10478 | cat conftest.$ac_ext >&5 | |
10479 | ac_lo=`expr $ac_mid + 1` | |
10480 | if test $ac_lo -le $ac_mid; then | |
10481 | ac_lo= ac_hi= | |
10482 | break | |
10483 | fi | |
10484 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10485 | fi | |
10486 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10487 | done | |
10488 | else | |
10489 | echo "$as_me: failed program was:" >&5 | |
10490 | cat conftest.$ac_ext >&5 | |
10491 | cat >conftest.$ac_ext <<_ACEOF | |
10492 | #line $LINENO "configure" | |
10493 | #include "confdefs.h" | |
10494 | $ac_includes_default | |
10495 | #ifdef F77_DUMMY_MAIN | |
10496 | # ifdef __cplusplus | |
10497 | extern "C" | |
10498 | # endif | |
10499 | int F77_DUMMY_MAIN() { return 1; } | |
10500 | #endif | |
10501 | int | |
10502 | main () | |
10503 | { | |
10504 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) < 0)@:>@; | |
10505 | test_array @<:@0@:>@ = 0 | |
10506 | ||
10507 | ; | |
10508 | return 0; | |
10509 | } | |
10510 | _ACEOF | |
10511 | rm -f conftest.$ac_objext | |
10512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10513 | (eval $ac_compile) 2>&5 | |
10514 | ac_status=$? | |
10515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10516 | (exit $ac_status); } && | |
10517 | { ac_try='test -s conftest.$ac_objext' | |
10518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10519 | (eval $ac_try) 2>&5 | |
10520 | ac_status=$? | |
10521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10522 | (exit $ac_status); }; }; then | |
10523 | ac_hi=-1 ac_mid=-1 | |
10524 | while :; do | |
10525 | cat >conftest.$ac_ext <<_ACEOF | |
10526 | #line $LINENO "configure" | |
10527 | #include "confdefs.h" | |
10528 | $ac_includes_default | |
10529 | #ifdef F77_DUMMY_MAIN | |
10530 | # ifdef __cplusplus | |
10531 | extern "C" | |
10532 | # endif | |
10533 | int F77_DUMMY_MAIN() { return 1; } | |
10534 | #endif | |
10535 | int | |
10536 | main () | |
10537 | { | |
10538 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)@:>@; | |
10539 | test_array @<:@0@:>@ = 0 | |
10540 | ||
10541 | ; | |
10542 | return 0; | |
10543 | } | |
10544 | _ACEOF | |
10545 | rm -f conftest.$ac_objext | |
10546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10547 | (eval $ac_compile) 2>&5 | |
10548 | ac_status=$? | |
10549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10550 | (exit $ac_status); } && | |
10551 | { ac_try='test -s conftest.$ac_objext' | |
10552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10553 | (eval $ac_try) 2>&5 | |
10554 | ac_status=$? | |
10555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10556 | (exit $ac_status); }; }; then | |
10557 | ac_lo=$ac_mid; break | |
10558 | else | |
10559 | echo "$as_me: failed program was:" >&5 | |
10560 | cat conftest.$ac_ext >&5 | |
10561 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10562 | if test $ac_mid -le $ac_hi; then | |
10563 | ac_lo= ac_hi= | |
10564 | break | |
10565 | fi | |
10566 | ac_mid=`expr 2 '*' $ac_mid` | |
10567 | fi | |
10568 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10569 | done | |
10570 | else | |
10571 | echo "$as_me: failed program was:" >&5 | |
10572 | cat conftest.$ac_ext >&5 | |
10573 | ac_lo= ac_hi= | |
10574 | fi | |
10575 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10576 | fi | |
10577 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10578 | # Binary search between lo and hi bounds. | |
10579 | while test "x$ac_lo" != "x$ac_hi"; do | |
10580 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10581 | cat >conftest.$ac_ext <<_ACEOF | |
10582 | #line $LINENO "configure" | |
10583 | #include "confdefs.h" | |
10584 | $ac_includes_default | |
10585 | #ifdef F77_DUMMY_MAIN | |
10586 | # ifdef __cplusplus | |
10587 | extern "C" | |
10588 | # endif | |
10589 | int F77_DUMMY_MAIN() { return 1; } | |
10590 | #endif | |
10591 | int | |
10592 | main () | |
10593 | { | |
10594 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)@:>@; | |
10595 | test_array @<:@0@:>@ = 0 | |
10596 | ||
10597 | ; | |
10598 | return 0; | |
10599 | } | |
10600 | _ACEOF | |
10601 | rm -f conftest.$ac_objext | |
10602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10603 | (eval $ac_compile) 2>&5 | |
10604 | ac_status=$? | |
10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10606 | (exit $ac_status); } && | |
10607 | { ac_try='test -s conftest.$ac_objext' | |
10608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10609 | (eval $ac_try) 2>&5 | |
10610 | ac_status=$? | |
10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10612 | (exit $ac_status); }; }; then | |
10613 | ac_hi=$ac_mid | |
10614 | else | |
10615 | echo "$as_me: failed program was:" >&5 | |
10616 | cat conftest.$ac_ext >&5 | |
10617 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10618 | fi | |
10619 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10620 | done | |
10621 | case $ac_lo in | |
10622 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | |
10623 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | |
10624 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | |
10625 | { (exit 1); exit 1; }; } ;; | |
10626 | esac | |
10627 | else | |
10628 | if test "$cross_compiling" = yes; then | |
10629 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
10630 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
10631 | { (exit 1); exit 1; }; } | |
10632 | else | |
10633 | cat >conftest.$ac_ext <<_ACEOF | |
10634 | #line $LINENO "configure" | |
10635 | #include "confdefs.h" | |
10636 | $ac_includes_default | |
10637 | long longval () { return (long) (sizeof (long int)); } | |
10638 | unsigned long ulongval () { return (long) (sizeof (long int)); } | |
10639 | @%:@include <stdio.h> | |
10640 | @%:@include <stdlib.h> | |
10641 | #ifdef F77_DUMMY_MAIN | |
10642 | # ifdef __cplusplus | |
10643 | extern "C" | |
10644 | # endif | |
10645 | int F77_DUMMY_MAIN() { return 1; } | |
10646 | #endif | |
10647 | int | |
10648 | main () | |
10649 | { | |
10650 | ||
10651 | FILE *f = fopen ("conftest.val", "w"); | |
10652 | if (! f) | |
10653 | exit (1); | |
10654 | if (((long) (sizeof (long int))) < 0) | |
10655 | { | |
10656 | long i = longval (); | |
10657 | if (i != ((long) (sizeof (long int)))) | |
10658 | exit (1); | |
10659 | fprintf (f, "%ld\n", i); | |
10660 | } | |
10661 | else | |
10662 | { | |
10663 | unsigned long i = ulongval (); | |
10664 | if (i != ((long) (sizeof (long int)))) | |
10665 | exit (1); | |
10666 | fprintf (f, "%lu\n", i); | |
10667 | } | |
10668 | exit (ferror (f) || fclose (f) != 0); | |
10669 | ||
10670 | ; | |
10671 | return 0; | |
10672 | } | |
10673 | _ACEOF | |
10674 | rm -f conftest$ac_exeext | |
10675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10676 | (eval $ac_link) 2>&5 | |
10677 | ac_status=$? | |
10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10681 | (eval $ac_try) 2>&5 | |
10682 | ac_status=$? | |
10683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10684 | (exit $ac_status); }; }; then | |
10685 | ac_cv_sizeof_long_int=`cat conftest.val` | |
10686 | else | |
10687 | echo "$as_me: program exited with status $ac_status" >&5 | |
10688 | echo "$as_me: failed program was:" >&5 | |
10689 | cat conftest.$ac_ext >&5 | |
10690 | ( exit $ac_status ) | |
10691 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77" >&5 | |
10692 | echo "$as_me: error: cannot compute sizeof (long int), 77" >&2;} | |
10693 | { (exit 1); exit 1; }; } | |
10694 | fi | |
10695 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10696 | fi | |
10697 | fi | |
10698 | rm -f conftest.val | |
10699 | else | |
10700 | ac_cv_sizeof_long_int=0 | |
10701 | fi | |
10702 | fi | |
10703 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | |
10704 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6 | |
10705 | cat >>confdefs.h <<_ACEOF | |
10706 | @%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | |
10707 | _ACEOF | |
10708 | ||
10709 | ||
10710 | echo "$as_me:$LINENO: checking for long long int" >&5 | |
10711 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 | |
10712 | if test "${ac_cv_type_long_long_int+set}" = set; then | |
10713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10714 | else | |
10715 | cat >conftest.$ac_ext <<_ACEOF | |
10716 | #line $LINENO "configure" | |
10717 | #include "confdefs.h" | |
10718 | $ac_includes_default | |
10719 | #ifdef F77_DUMMY_MAIN | |
10720 | # ifdef __cplusplus | |
10721 | extern "C" | |
10722 | # endif | |
10723 | int F77_DUMMY_MAIN() { return 1; } | |
10724 | #endif | |
10725 | int | |
10726 | main () | |
10727 | { | |
10728 | if ((long long int *) 0) | |
10729 | return 0; | |
10730 | if (sizeof (long long int)) | |
10731 | return 0; | |
10732 | ; | |
10733 | return 0; | |
10734 | } | |
10735 | _ACEOF | |
10736 | rm -f conftest.$ac_objext | |
10737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10738 | (eval $ac_compile) 2>&5 | |
10739 | ac_status=$? | |
10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10741 | (exit $ac_status); } && | |
10742 | { ac_try='test -s conftest.$ac_objext' | |
10743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10744 | (eval $ac_try) 2>&5 | |
10745 | ac_status=$? | |
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10747 | (exit $ac_status); }; }; then | |
10748 | ac_cv_type_long_long_int=yes | |
10749 | else | |
10750 | echo "$as_me: failed program was:" >&5 | |
10751 | cat conftest.$ac_ext >&5 | |
10752 | ac_cv_type_long_long_int=no | |
10753 | fi | |
10754 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10755 | fi | |
10756 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | |
10757 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 | |
10758 | ||
10759 | echo "$as_me:$LINENO: checking size of long long int" >&5 | |
10760 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6 | |
10761 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | |
10762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10763 | else | |
10764 | if test "$ac_cv_type_long_long_int" = yes; then | |
10765 | # The cast to unsigned long works around a bug in the HP C Compiler | |
10766 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
10767 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
10768 | # This bug is HP SR number 8606223364. | |
10769 | if test "$cross_compiling" = yes; then | |
10770 | # Depending upon the size, compute the lo and hi bounds. | |
10771 | cat >conftest.$ac_ext <<_ACEOF | |
10772 | #line $LINENO "configure" | |
10773 | #include "confdefs.h" | |
10774 | $ac_includes_default | |
10775 | #ifdef F77_DUMMY_MAIN | |
10776 | # ifdef __cplusplus | |
10777 | extern "C" | |
10778 | # endif | |
10779 | int F77_DUMMY_MAIN() { return 1; } | |
10780 | #endif | |
10781 | int | |
10782 | main () | |
10783 | { | |
10784 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= 0)@:>@; | |
10785 | test_array @<:@0@:>@ = 0 | |
10786 | ||
10787 | ; | |
10788 | return 0; | |
10789 | } | |
10790 | _ACEOF | |
10791 | rm -f conftest.$ac_objext | |
10792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10793 | (eval $ac_compile) 2>&5 | |
10794 | ac_status=$? | |
10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10796 | (exit $ac_status); } && | |
10797 | { ac_try='test -s conftest.$ac_objext' | |
10798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10799 | (eval $ac_try) 2>&5 | |
10800 | ac_status=$? | |
10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10802 | (exit $ac_status); }; }; then | |
10803 | ac_lo=0 ac_mid=0 | |
10804 | while :; do | |
10805 | cat >conftest.$ac_ext <<_ACEOF | |
10806 | #line $LINENO "configure" | |
10807 | #include "confdefs.h" | |
10808 | $ac_includes_default | |
10809 | #ifdef F77_DUMMY_MAIN | |
10810 | # ifdef __cplusplus | |
10811 | extern "C" | |
10812 | # endif | |
10813 | int F77_DUMMY_MAIN() { return 1; } | |
10814 | #endif | |
10815 | int | |
10816 | main () | |
10817 | { | |
10818 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@; | |
10819 | test_array @<:@0@:>@ = 0 | |
10820 | ||
10821 | ; | |
10822 | return 0; | |
10823 | } | |
10824 | _ACEOF | |
10825 | rm -f conftest.$ac_objext | |
10826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10827 | (eval $ac_compile) 2>&5 | |
10828 | ac_status=$? | |
10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10830 | (exit $ac_status); } && | |
10831 | { ac_try='test -s conftest.$ac_objext' | |
10832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10833 | (eval $ac_try) 2>&5 | |
10834 | ac_status=$? | |
10835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10836 | (exit $ac_status); }; }; then | |
10837 | ac_hi=$ac_mid; break | |
10838 | else | |
10839 | echo "$as_me: failed program was:" >&5 | |
10840 | cat conftest.$ac_ext >&5 | |
10841 | ac_lo=`expr $ac_mid + 1` | |
10842 | if test $ac_lo -le $ac_mid; then | |
10843 | ac_lo= ac_hi= | |
10844 | break | |
10845 | fi | |
10846 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10847 | fi | |
10848 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10849 | done | |
10850 | else | |
10851 | echo "$as_me: failed program was:" >&5 | |
10852 | cat conftest.$ac_ext >&5 | |
10853 | cat >conftest.$ac_ext <<_ACEOF | |
10854 | #line $LINENO "configure" | |
10855 | #include "confdefs.h" | |
10856 | $ac_includes_default | |
10857 | #ifdef F77_DUMMY_MAIN | |
10858 | # ifdef __cplusplus | |
10859 | extern "C" | |
10860 | # endif | |
10861 | int F77_DUMMY_MAIN() { return 1; } | |
10862 | #endif | |
10863 | int | |
10864 | main () | |
10865 | { | |
10866 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) < 0)@:>@; | |
10867 | test_array @<:@0@:>@ = 0 | |
10868 | ||
10869 | ; | |
10870 | return 0; | |
10871 | } | |
10872 | _ACEOF | |
10873 | rm -f conftest.$ac_objext | |
10874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10875 | (eval $ac_compile) 2>&5 | |
10876 | ac_status=$? | |
10877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10878 | (exit $ac_status); } && | |
10879 | { ac_try='test -s conftest.$ac_objext' | |
10880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10881 | (eval $ac_try) 2>&5 | |
10882 | ac_status=$? | |
10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10884 | (exit $ac_status); }; }; then | |
10885 | ac_hi=-1 ac_mid=-1 | |
10886 | while :; do | |
10887 | cat >conftest.$ac_ext <<_ACEOF | |
10888 | #line $LINENO "configure" | |
10889 | #include "confdefs.h" | |
10890 | $ac_includes_default | |
10891 | #ifdef F77_DUMMY_MAIN | |
10892 | # ifdef __cplusplus | |
10893 | extern "C" | |
10894 | # endif | |
10895 | int F77_DUMMY_MAIN() { return 1; } | |
10896 | #endif | |
10897 | int | |
10898 | main () | |
10899 | { | |
10900 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)@:>@; | |
10901 | test_array @<:@0@:>@ = 0 | |
10902 | ||
10903 | ; | |
10904 | return 0; | |
10905 | } | |
10906 | _ACEOF | |
10907 | rm -f conftest.$ac_objext | |
10908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10909 | (eval $ac_compile) 2>&5 | |
10910 | ac_status=$? | |
10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10912 | (exit $ac_status); } && | |
10913 | { ac_try='test -s conftest.$ac_objext' | |
10914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10915 | (eval $ac_try) 2>&5 | |
10916 | ac_status=$? | |
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10918 | (exit $ac_status); }; }; then | |
10919 | ac_lo=$ac_mid; break | |
10920 | else | |
10921 | echo "$as_me: failed program was:" >&5 | |
10922 | cat conftest.$ac_ext >&5 | |
10923 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10924 | if test $ac_mid -le $ac_hi; then | |
10925 | ac_lo= ac_hi= | |
10926 | break | |
10927 | fi | |
10928 | ac_mid=`expr 2 '*' $ac_mid` | |
10929 | fi | |
10930 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10931 | done | |
10932 | else | |
10933 | echo "$as_me: failed program was:" >&5 | |
10934 | cat conftest.$ac_ext >&5 | |
10935 | ac_lo= ac_hi= | |
10936 | fi | |
10937 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10938 | fi | |
10939 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10940 | # Binary search between lo and hi bounds. | |
10941 | while test "x$ac_lo" != "x$ac_hi"; do | |
10942 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10943 | cat >conftest.$ac_ext <<_ACEOF | |
10944 | #line $LINENO "configure" | |
10945 | #include "confdefs.h" | |
10946 | $ac_includes_default | |
10947 | #ifdef F77_DUMMY_MAIN | |
10948 | # ifdef __cplusplus | |
10949 | extern "C" | |
10950 | # endif | |
10951 | int F77_DUMMY_MAIN() { return 1; } | |
10952 | #endif | |
10953 | int | |
10954 | main () | |
10955 | { | |
10956 | static int test_array @<:@1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)@:>@; | |
10957 | test_array @<:@0@:>@ = 0 | |
10958 | ||
10959 | ; | |
10960 | return 0; | |
10961 | } | |
10962 | _ACEOF | |
10963 | rm -f conftest.$ac_objext | |
10964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10965 | (eval $ac_compile) 2>&5 | |
10966 | ac_status=$? | |
10967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10968 | (exit $ac_status); } && | |
10969 | { ac_try='test -s conftest.$ac_objext' | |
10970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10971 | (eval $ac_try) 2>&5 | |
10972 | ac_status=$? | |
10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10974 | (exit $ac_status); }; }; then | |
10975 | ac_hi=$ac_mid | |
10976 | else | |
10977 | echo "$as_me: failed program was:" >&5 | |
10978 | cat conftest.$ac_ext >&5 | |
10979 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10980 | fi | |
10981 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10982 | done | |
10983 | case $ac_lo in | |
10984 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | |
10985 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | |
10986 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | |
10987 | { (exit 1); exit 1; }; } ;; | |
10988 | esac | |
10989 | else | |
10990 | if test "$cross_compiling" = yes; then | |
10991 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
10992 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
10993 | { (exit 1); exit 1; }; } | |
10994 | else | |
10995 | cat >conftest.$ac_ext <<_ACEOF | |
10996 | #line $LINENO "configure" | |
10997 | #include "confdefs.h" | |
10998 | $ac_includes_default | |
10999 | long longval () { return (long) (sizeof (long long int)); } | |
11000 | unsigned long ulongval () { return (long) (sizeof (long long int)); } | |
11001 | @%:@include <stdio.h> | |
11002 | @%:@include <stdlib.h> | |
11003 | #ifdef F77_DUMMY_MAIN | |
11004 | # ifdef __cplusplus | |
11005 | extern "C" | |
11006 | # endif | |
11007 | int F77_DUMMY_MAIN() { return 1; } | |
11008 | #endif | |
11009 | int | |
11010 | main () | |
11011 | { | |
11012 | ||
11013 | FILE *f = fopen ("conftest.val", "w"); | |
11014 | if (! f) | |
11015 | exit (1); | |
11016 | if (((long) (sizeof (long long int))) < 0) | |
11017 | { | |
11018 | long i = longval (); | |
11019 | if (i != ((long) (sizeof (long long int)))) | |
11020 | exit (1); | |
11021 | fprintf (f, "%ld\n", i); | |
11022 | } | |
11023 | else | |
11024 | { | |
11025 | unsigned long i = ulongval (); | |
11026 | if (i != ((long) (sizeof (long long int)))) | |
11027 | exit (1); | |
11028 | fprintf (f, "%lu\n", i); | |
11029 | } | |
11030 | exit (ferror (f) || fclose (f) != 0); | |
11031 | ||
11032 | ; | |
11033 | return 0; | |
11034 | } | |
11035 | _ACEOF | |
11036 | rm -f conftest$ac_exeext | |
11037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11038 | (eval $ac_link) 2>&5 | |
11039 | ac_status=$? | |
11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11041 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11043 | (eval $ac_try) 2>&5 | |
11044 | ac_status=$? | |
11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11046 | (exit $ac_status); }; }; then | |
11047 | ac_cv_sizeof_long_long_int=`cat conftest.val` | |
11048 | else | |
11049 | echo "$as_me: program exited with status $ac_status" >&5 | |
11050 | echo "$as_me: failed program was:" >&5 | |
11051 | cat conftest.$ac_ext >&5 | |
11052 | ( exit $ac_status ) | |
11053 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77" >&5 | |
11054 | echo "$as_me: error: cannot compute sizeof (long long int), 77" >&2;} | |
11055 | { (exit 1); exit 1; }; } | |
11056 | fi | |
11057 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11058 | fi | |
11059 | fi | |
11060 | rm -f conftest.val | |
11061 | else | |
11062 | ac_cv_sizeof_long_long_int=0 | |
11063 | fi | |
11064 | fi | |
11065 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | |
11066 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6 | |
11067 | cat >>confdefs.h <<_ACEOF | |
11068 | @%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | |
11069 | _ACEOF | |
11070 | ||
11071 | ||
11072 | ||
11073 | # Sanity check long long for some platforms (AIX) | |
11074 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | |
11075 | ac_cv_sizeof_long_long_int=0 | |
11076 | fi | |
11077 | ||
11078 | # More checks for data types | |
11079 | echo "$as_me:$LINENO: checking for u_int type" >&5 | |
11080 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6 | |
11081 | if test "${ac_cv_have_u_int+set}" = set; then | |
11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11083 | else | |
11084 | ||
11085 | cat >conftest.$ac_ext <<_ACEOF | |
11086 | #line $LINENO "configure" | |
11087 | #include "confdefs.h" | |
11088 | #include <sys/types.h> | |
11089 | #ifdef F77_DUMMY_MAIN | |
11090 | # ifdef __cplusplus | |
11091 | extern "C" | |
11092 | # endif | |
11093 | int F77_DUMMY_MAIN() { return 1; } | |
11094 | #endif | |
11095 | int | |
11096 | main () | |
11097 | { | |
11098 | u_int a; a = 1; | |
11099 | ; | |
11100 | return 0; | |
11101 | } | |
11102 | _ACEOF | |
11103 | rm -f conftest.$ac_objext | |
11104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11105 | (eval $ac_compile) 2>&5 | |
11106 | ac_status=$? | |
11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11108 | (exit $ac_status); } && | |
11109 | { ac_try='test -s conftest.$ac_objext' | |
11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11111 | (eval $ac_try) 2>&5 | |
11112 | ac_status=$? | |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11114 | (exit $ac_status); }; }; then | |
11115 | ac_cv_have_u_int="yes" | |
11116 | else | |
11117 | echo "$as_me: failed program was:" >&5 | |
11118 | cat conftest.$ac_ext >&5 | |
11119 | ac_cv_have_u_int="no" | |
11120 | ||
11121 | fi | |
11122 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11123 | ||
11124 | fi | |
11125 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | |
11126 | echo "${ECHO_T}$ac_cv_have_u_int" >&6 | |
11127 | if test "x$ac_cv_have_u_int" = "xyes" ; then | |
11128 | cat >>confdefs.h <<\_ACEOF | |
11129 | @%:@define HAVE_U_INT 1 | |
11130 | _ACEOF | |
11131 | ||
11132 | have_u_int=1 | |
11133 | fi | |
11134 | ||
11135 | echo "$as_me:$LINENO: checking for intXX_t types" >&5 | |
11136 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6 | |
11137 | if test "${ac_cv_have_intxx_t+set}" = set; then | |
11138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11139 | else | |
11140 | ||
11141 | cat >conftest.$ac_ext <<_ACEOF | |
11142 | #line $LINENO "configure" | |
11143 | #include "confdefs.h" | |
11144 | #include <sys/types.h> | |
11145 | #ifdef F77_DUMMY_MAIN | |
11146 | # ifdef __cplusplus | |
11147 | extern "C" | |
11148 | # endif | |
11149 | int F77_DUMMY_MAIN() { return 1; } | |
11150 | #endif | |
11151 | int | |
11152 | main () | |
11153 | { | |
11154 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | |
11155 | ; | |
11156 | return 0; | |
11157 | } | |
11158 | _ACEOF | |
11159 | rm -f conftest.$ac_objext | |
11160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11161 | (eval $ac_compile) 2>&5 | |
11162 | ac_status=$? | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); } && | |
11165 | { ac_try='test -s conftest.$ac_objext' | |
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 | ac_cv_have_intxx_t="yes" | |
11172 | else | |
11173 | echo "$as_me: failed program was:" >&5 | |
11174 | cat conftest.$ac_ext >&5 | |
11175 | ac_cv_have_intxx_t="no" | |
11176 | ||
11177 | fi | |
11178 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11179 | ||
11180 | fi | |
11181 | echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | |
11182 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6 | |
11183 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | |
11184 | cat >>confdefs.h <<\_ACEOF | |
11185 | @%:@define HAVE_INTXX_T 1 | |
11186 | _ACEOF | |
11187 | ||
11188 | have_intxx_t=1 | |
11189 | fi | |
11190 | ||
11191 | if (test -z "$have_intxx_t" && \ | |
11192 | test "x$ac_cv_header_stdint_h" = "xyes") | |
11193 | then | |
11194 | echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | |
11195 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6 | |
11196 | cat >conftest.$ac_ext <<_ACEOF | |
11197 | #line $LINENO "configure" | |
11198 | #include "confdefs.h" | |
11199 | #include <stdint.h> | |
11200 | #ifdef F77_DUMMY_MAIN | |
11201 | # ifdef __cplusplus | |
11202 | extern "C" | |
11203 | # endif | |
11204 | int F77_DUMMY_MAIN() { return 1; } | |
11205 | #endif | |
11206 | int | |
11207 | main () | |
11208 | { | |
11209 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | |
11210 | ; | |
11211 | return 0; | |
11212 | } | |
11213 | _ACEOF | |
11214 | rm -f conftest.$ac_objext | |
11215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11216 | (eval $ac_compile) 2>&5 | |
11217 | ac_status=$? | |
11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11219 | (exit $ac_status); } && | |
11220 | { ac_try='test -s conftest.$ac_objext' | |
11221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11222 | (eval $ac_try) 2>&5 | |
11223 | ac_status=$? | |
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11225 | (exit $ac_status); }; }; then | |
11226 | ||
11227 | cat >>confdefs.h <<\_ACEOF | |
11228 | @%:@define HAVE_INTXX_T 1 | |
11229 | _ACEOF | |
11230 | ||
11231 | echo "$as_me:$LINENO: result: yes" >&5 | |
11232 | echo "${ECHO_T}yes" >&6 | |
11233 | ||
11234 | else | |
11235 | echo "$as_me: failed program was:" >&5 | |
11236 | cat conftest.$ac_ext >&5 | |
11237 | echo "$as_me:$LINENO: result: no" >&5 | |
11238 | echo "${ECHO_T}no" >&6 | |
11239 | ||
11240 | fi | |
11241 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11242 | fi | |
11243 | ||
11244 | echo "$as_me:$LINENO: checking for int64_t type" >&5 | |
11245 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6 | |
11246 | if test "${ac_cv_have_int64_t+set}" = set; then | |
11247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11248 | else | |
11249 | ||
11250 | cat >conftest.$ac_ext <<_ACEOF | |
11251 | #line $LINENO "configure" | |
11252 | #include "confdefs.h" | |
11253 | #include <sys/types.h> | |
11254 | #ifdef F77_DUMMY_MAIN | |
11255 | # ifdef __cplusplus | |
11256 | extern "C" | |
11257 | # endif | |
11258 | int F77_DUMMY_MAIN() { return 1; } | |
11259 | #endif | |
11260 | int | |
11261 | main () | |
11262 | { | |
11263 | int64_t a; a = 1; | |
11264 | ; | |
11265 | return 0; | |
11266 | } | |
11267 | _ACEOF | |
11268 | rm -f conftest.$ac_objext | |
11269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11270 | (eval $ac_compile) 2>&5 | |
11271 | ac_status=$? | |
11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11273 | (exit $ac_status); } && | |
11274 | { ac_try='test -s conftest.$ac_objext' | |
11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11276 | (eval $ac_try) 2>&5 | |
11277 | ac_status=$? | |
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 | (exit $ac_status); }; }; then | |
11280 | ac_cv_have_int64_t="yes" | |
11281 | else | |
11282 | echo "$as_me: failed program was:" >&5 | |
11283 | cat conftest.$ac_ext >&5 | |
11284 | ac_cv_have_int64_t="no" | |
11285 | ||
11286 | fi | |
11287 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11288 | ||
11289 | fi | |
11290 | echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | |
11291 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6 | |
11292 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | |
11293 | cat >>confdefs.h <<\_ACEOF | |
11294 | @%:@define HAVE_INT64_T 1 | |
11295 | _ACEOF | |
11296 | ||
11297 | have_int64_t=1 | |
11298 | fi | |
11299 | ||
11300 | if test -z "$have_int64_t" ; then | |
11301 | echo "$as_me:$LINENO: checking for int64_t type in sys/socket.h" >&5 | |
11302 | echo $ECHO_N "checking for int64_t type in sys/socket.h... $ECHO_C" >&6 | |
11303 | cat >conftest.$ac_ext <<_ACEOF | |
11304 | #line $LINENO "configure" | |
11305 | #include "confdefs.h" | |
11306 | #include <sys/socket.h> | |
11307 | #ifdef F77_DUMMY_MAIN | |
11308 | # ifdef __cplusplus | |
11309 | extern "C" | |
11310 | # endif | |
11311 | int F77_DUMMY_MAIN() { return 1; } | |
11312 | #endif | |
11313 | int | |
11314 | main () | |
11315 | { | |
11316 | int64_t a; a = 1 | |
11317 | ; | |
11318 | return 0; | |
11319 | } | |
11320 | _ACEOF | |
11321 | rm -f conftest.$ac_objext | |
11322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11323 | (eval $ac_compile) 2>&5 | |
11324 | ac_status=$? | |
11325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11326 | (exit $ac_status); } && | |
11327 | { ac_try='test -s conftest.$ac_objext' | |
11328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11329 | (eval $ac_try) 2>&5 | |
11330 | ac_status=$? | |
11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11332 | (exit $ac_status); }; }; then | |
11333 | ||
11334 | cat >>confdefs.h <<\_ACEOF | |
11335 | @%:@define HAVE_INT64_T 1 | |
11336 | _ACEOF | |
11337 | ||
11338 | echo "$as_me:$LINENO: result: yes" >&5 | |
11339 | echo "${ECHO_T}yes" >&6 | |
11340 | ||
11341 | else | |
11342 | echo "$as_me: failed program was:" >&5 | |
11343 | cat conftest.$ac_ext >&5 | |
11344 | echo "$as_me:$LINENO: result: no" >&5 | |
11345 | echo "${ECHO_T}no" >&6 | |
11346 | ||
11347 | fi | |
11348 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11349 | fi | |
11350 | ||
11351 | if test -z "$have_int64_t" ; then | |
11352 | echo "$as_me:$LINENO: checking for int64_t type in sys/bitypes.h" >&5 | |
11353 | echo $ECHO_N "checking for int64_t type in sys/bitypes.h... $ECHO_C" >&6 | |
11354 | cat >conftest.$ac_ext <<_ACEOF | |
11355 | #line $LINENO "configure" | |
11356 | #include "confdefs.h" | |
11357 | #include <sys/bitypes.h> | |
11358 | #ifdef F77_DUMMY_MAIN | |
11359 | # ifdef __cplusplus | |
11360 | extern "C" | |
11361 | # endif | |
11362 | int F77_DUMMY_MAIN() { return 1; } | |
11363 | #endif | |
11364 | int | |
11365 | main () | |
11366 | { | |
11367 | int64_t a; a = 1 | |
11368 | ; | |
11369 | return 0; | |
11370 | } | |
11371 | _ACEOF | |
11372 | rm -f conftest.$ac_objext | |
11373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11374 | (eval $ac_compile) 2>&5 | |
11375 | ac_status=$? | |
11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11377 | (exit $ac_status); } && | |
11378 | { ac_try='test -s conftest.$ac_objext' | |
11379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11380 | (eval $ac_try) 2>&5 | |
11381 | ac_status=$? | |
11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11383 | (exit $ac_status); }; }; then | |
11384 | ||
11385 | cat >>confdefs.h <<\_ACEOF | |
11386 | @%:@define HAVE_INT64_T 1 | |
11387 | _ACEOF | |
11388 | ||
11389 | echo "$as_me:$LINENO: result: yes" >&5 | |
11390 | echo "${ECHO_T}yes" >&6 | |
11391 | ||
11392 | else | |
11393 | echo "$as_me: failed program was:" >&5 | |
11394 | cat conftest.$ac_ext >&5 | |
11395 | echo "$as_me:$LINENO: result: no" >&5 | |
11396 | echo "${ECHO_T}no" >&6 | |
11397 | ||
11398 | fi | |
11399 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11400 | fi | |
11401 | ||
11402 | echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | |
11403 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6 | |
11404 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | |
11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11406 | else | |
11407 | ||
11408 | cat >conftest.$ac_ext <<_ACEOF | |
11409 | #line $LINENO "configure" | |
11410 | #include "confdefs.h" | |
11411 | #include <sys/types.h> | |
11412 | #ifdef F77_DUMMY_MAIN | |
11413 | # ifdef __cplusplus | |
11414 | extern "C" | |
11415 | # endif | |
11416 | int F77_DUMMY_MAIN() { return 1; } | |
11417 | #endif | |
11418 | int | |
11419 | main () | |
11420 | { | |
11421 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | |
11422 | ; | |
11423 | return 0; | |
11424 | } | |
11425 | _ACEOF | |
11426 | rm -f conftest.$ac_objext | |
11427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11428 | (eval $ac_compile) 2>&5 | |
11429 | ac_status=$? | |
11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11431 | (exit $ac_status); } && | |
11432 | { ac_try='test -s conftest.$ac_objext' | |
11433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11434 | (eval $ac_try) 2>&5 | |
11435 | ac_status=$? | |
11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11437 | (exit $ac_status); }; }; then | |
11438 | ac_cv_have_u_intxx_t="yes" | |
11439 | else | |
11440 | echo "$as_me: failed program was:" >&5 | |
11441 | cat conftest.$ac_ext >&5 | |
11442 | ac_cv_have_u_intxx_t="no" | |
11443 | ||
11444 | fi | |
11445 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11446 | ||
11447 | fi | |
11448 | echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | |
11449 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6 | |
11450 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | |
11451 | cat >>confdefs.h <<\_ACEOF | |
11452 | @%:@define HAVE_U_INTXX_T 1 | |
11453 | _ACEOF | |
11454 | ||
11455 | have_u_intxx_t=1 | |
11456 | fi | |
11457 | ||
11458 | if test -z "$have_u_intxx_t" ; then | |
11459 | echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | |
11460 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6 | |
11461 | cat >conftest.$ac_ext <<_ACEOF | |
11462 | #line $LINENO "configure" | |
11463 | #include "confdefs.h" | |
11464 | #include <sys/socket.h> | |
11465 | #ifdef F77_DUMMY_MAIN | |
11466 | # ifdef __cplusplus | |
11467 | extern "C" | |
11468 | # endif | |
11469 | int F77_DUMMY_MAIN() { return 1; } | |
11470 | #endif | |
11471 | int | |
11472 | main () | |
11473 | { | |
11474 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | |
11475 | ; | |
11476 | return 0; | |
11477 | } | |
11478 | _ACEOF | |
11479 | rm -f conftest.$ac_objext | |
11480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11481 | (eval $ac_compile) 2>&5 | |
11482 | ac_status=$? | |
11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11484 | (exit $ac_status); } && | |
11485 | { ac_try='test -s conftest.$ac_objext' | |
11486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11487 | (eval $ac_try) 2>&5 | |
11488 | ac_status=$? | |
11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11490 | (exit $ac_status); }; }; then | |
11491 | ||
11492 | cat >>confdefs.h <<\_ACEOF | |
11493 | @%:@define HAVE_U_INTXX_T 1 | |
11494 | _ACEOF | |
11495 | ||
11496 | echo "$as_me:$LINENO: result: yes" >&5 | |
11497 | echo "${ECHO_T}yes" >&6 | |
11498 | ||
11499 | else | |
11500 | echo "$as_me: failed program was:" >&5 | |
11501 | cat conftest.$ac_ext >&5 | |
11502 | echo "$as_me:$LINENO: result: no" >&5 | |
11503 | echo "${ECHO_T}no" >&6 | |
11504 | ||
11505 | fi | |
11506 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11507 | fi | |
11508 | ||
11509 | echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | |
11510 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6 | |
11511 | if test "${ac_cv_have_u_int64_t+set}" = set; then | |
11512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11513 | else | |
11514 | ||
11515 | cat >conftest.$ac_ext <<_ACEOF | |
11516 | #line $LINENO "configure" | |
11517 | #include "confdefs.h" | |
11518 | #include <sys/types.h> | |
11519 | #ifdef F77_DUMMY_MAIN | |
11520 | # ifdef __cplusplus | |
11521 | extern "C" | |
11522 | # endif | |
11523 | int F77_DUMMY_MAIN() { return 1; } | |
11524 | #endif | |
11525 | int | |
11526 | main () | |
11527 | { | |
11528 | u_int64_t a; a = 1; | |
11529 | ; | |
11530 | return 0; | |
11531 | } | |
11532 | _ACEOF | |
11533 | rm -f conftest.$ac_objext | |
11534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11535 | (eval $ac_compile) 2>&5 | |
11536 | ac_status=$? | |
11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11538 | (exit $ac_status); } && | |
11539 | { ac_try='test -s conftest.$ac_objext' | |
11540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11541 | (eval $ac_try) 2>&5 | |
11542 | ac_status=$? | |
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11544 | (exit $ac_status); }; }; then | |
11545 | ac_cv_have_u_int64_t="yes" | |
11546 | else | |
11547 | echo "$as_me: failed program was:" >&5 | |
11548 | cat conftest.$ac_ext >&5 | |
11549 | ac_cv_have_u_int64_t="no" | |
11550 | ||
11551 | fi | |
11552 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11553 | ||
11554 | fi | |
11555 | echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | |
11556 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6 | |
11557 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | |
11558 | cat >>confdefs.h <<\_ACEOF | |
11559 | @%:@define HAVE_U_INT64_T 1 | |
11560 | _ACEOF | |
11561 | ||
11562 | have_u_int64_t=1 | |
11563 | fi | |
11564 | ||
11565 | if test -z "$have_u_int64_t" ; then | |
11566 | echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | |
11567 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6 | |
11568 | cat >conftest.$ac_ext <<_ACEOF | |
11569 | #line $LINENO "configure" | |
11570 | #include "confdefs.h" | |
11571 | #include <sys/bitypes.h> | |
11572 | #ifdef F77_DUMMY_MAIN | |
11573 | # ifdef __cplusplus | |
11574 | extern "C" | |
11575 | # endif | |
11576 | int F77_DUMMY_MAIN() { return 1; } | |
11577 | #endif | |
11578 | int | |
11579 | main () | |
11580 | { | |
11581 | u_int64_t a; a = 1 | |
11582 | ; | |
11583 | return 0; | |
11584 | } | |
11585 | _ACEOF | |
11586 | rm -f conftest.$ac_objext | |
11587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11588 | (eval $ac_compile) 2>&5 | |
11589 | ac_status=$? | |
11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11591 | (exit $ac_status); } && | |
11592 | { ac_try='test -s conftest.$ac_objext' | |
11593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11594 | (eval $ac_try) 2>&5 | |
11595 | ac_status=$? | |
11596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11597 | (exit $ac_status); }; }; then | |
11598 | ||
11599 | cat >>confdefs.h <<\_ACEOF | |
11600 | @%:@define HAVE_U_INT64_T 1 | |
11601 | _ACEOF | |
11602 | ||
11603 | echo "$as_me:$LINENO: result: yes" >&5 | |
11604 | echo "${ECHO_T}yes" >&6 | |
11605 | ||
11606 | else | |
11607 | echo "$as_me: failed program was:" >&5 | |
11608 | cat conftest.$ac_ext >&5 | |
11609 | echo "$as_me:$LINENO: result: no" >&5 | |
11610 | echo "${ECHO_T}no" >&6 | |
11611 | ||
11612 | fi | |
11613 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11614 | fi | |
11615 | ||
11616 | if test -z "$have_u_intxx_t" ; then | |
11617 | echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | |
11618 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6 | |
11619 | if test "${ac_cv_have_uintxx_t+set}" = set; then | |
11620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11621 | else | |
11622 | ||
11623 | cat >conftest.$ac_ext <<_ACEOF | |
11624 | #line $LINENO "configure" | |
11625 | #include "confdefs.h" | |
11626 | ||
11627 | #include <sys/types.h> | |
11628 | ||
11629 | #ifdef F77_DUMMY_MAIN | |
11630 | # ifdef __cplusplus | |
11631 | extern "C" | |
11632 | # endif | |
11633 | int F77_DUMMY_MAIN() { return 1; } | |
11634 | #endif | |
11635 | int | |
11636 | main () | |
11637 | { | |
11638 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | |
11639 | ; | |
11640 | return 0; | |
11641 | } | |
11642 | _ACEOF | |
11643 | rm -f conftest.$ac_objext | |
11644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11645 | (eval $ac_compile) 2>&5 | |
11646 | ac_status=$? | |
11647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11648 | (exit $ac_status); } && | |
11649 | { ac_try='test -s conftest.$ac_objext' | |
11650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11651 | (eval $ac_try) 2>&5 | |
11652 | ac_status=$? | |
11653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11654 | (exit $ac_status); }; }; then | |
11655 | ac_cv_have_uintxx_t="yes" | |
11656 | else | |
11657 | echo "$as_me: failed program was:" >&5 | |
11658 | cat conftest.$ac_ext >&5 | |
11659 | ac_cv_have_uintxx_t="no" | |
11660 | ||
11661 | fi | |
11662 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11663 | ||
11664 | fi | |
11665 | echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | |
11666 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6 | |
11667 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | |
11668 | cat >>confdefs.h <<\_ACEOF | |
11669 | @%:@define HAVE_UINTXX_T 1 | |
11670 | _ACEOF | |
11671 | ||
11672 | fi | |
11673 | fi | |
11674 | ||
11675 | if test -z "$have_uintxx_t" ; then | |
11676 | echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | |
11677 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6 | |
11678 | cat >conftest.$ac_ext <<_ACEOF | |
11679 | #line $LINENO "configure" | |
11680 | #include "confdefs.h" | |
11681 | #include <stdint.h> | |
11682 | #ifdef F77_DUMMY_MAIN | |
11683 | # ifdef __cplusplus | |
11684 | extern "C" | |
11685 | # endif | |
11686 | int F77_DUMMY_MAIN() { return 1; } | |
11687 | #endif | |
11688 | int | |
11689 | main () | |
11690 | { | |
11691 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | |
11692 | ; | |
11693 | return 0; | |
11694 | } | |
11695 | _ACEOF | |
11696 | rm -f conftest.$ac_objext | |
11697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11698 | (eval $ac_compile) 2>&5 | |
11699 | ac_status=$? | |
11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11701 | (exit $ac_status); } && | |
11702 | { ac_try='test -s conftest.$ac_objext' | |
11703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11704 | (eval $ac_try) 2>&5 | |
11705 | ac_status=$? | |
11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11707 | (exit $ac_status); }; }; then | |
11708 | ||
11709 | cat >>confdefs.h <<\_ACEOF | |
11710 | @%:@define HAVE_UINTXX_T 1 | |
11711 | _ACEOF | |
11712 | ||
11713 | echo "$as_me:$LINENO: result: yes" >&5 | |
11714 | echo "${ECHO_T}yes" >&6 | |
11715 | ||
11716 | else | |
11717 | echo "$as_me: failed program was:" >&5 | |
11718 | cat conftest.$ac_ext >&5 | |
11719 | echo "$as_me:$LINENO: result: no" >&5 | |
11720 | echo "${ECHO_T}no" >&6 | |
11721 | ||
11722 | fi | |
11723 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11724 | fi | |
11725 | ||
11726 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | |
11727 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | |
11728 | then | |
11729 | echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | |
11730 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6 | |
11731 | cat >conftest.$ac_ext <<_ACEOF | |
11732 | #line $LINENO "configure" | |
11733 | #include "confdefs.h" | |
11734 | ||
11735 | #include <sys/bitypes.h> | |
11736 | ||
11737 | #ifdef F77_DUMMY_MAIN | |
11738 | # ifdef __cplusplus | |
11739 | extern "C" | |
11740 | # endif | |
11741 | int F77_DUMMY_MAIN() { return 1; } | |
11742 | #endif | |
11743 | int | |
11744 | main () | |
11745 | { | |
11746 | ||
11747 | int8_t a; int16_t b; int32_t c; | |
11748 | u_int8_t e; u_int16_t f; u_int32_t g; | |
11749 | a = b = c = e = f = g = 1; | |
11750 | ||
11751 | ; | |
11752 | return 0; | |
11753 | } | |
11754 | _ACEOF | |
11755 | rm -f conftest.$ac_objext | |
11756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11757 | (eval $ac_compile) 2>&5 | |
11758 | ac_status=$? | |
11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11760 | (exit $ac_status); } && | |
11761 | { ac_try='test -s conftest.$ac_objext' | |
11762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11763 | (eval $ac_try) 2>&5 | |
11764 | ac_status=$? | |
11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11766 | (exit $ac_status); }; }; then | |
11767 | ||
11768 | cat >>confdefs.h <<\_ACEOF | |
11769 | @%:@define HAVE_U_INTXX_T 1 | |
11770 | _ACEOF | |
11771 | ||
11772 | cat >>confdefs.h <<\_ACEOF | |
11773 | @%:@define HAVE_INTXX_T 1 | |
11774 | _ACEOF | |
11775 | ||
11776 | echo "$as_me:$LINENO: result: yes" >&5 | |
11777 | echo "${ECHO_T}yes" >&6 | |
11778 | ||
11779 | else | |
11780 | echo "$as_me: failed program was:" >&5 | |
11781 | cat conftest.$ac_ext >&5 | |
11782 | echo "$as_me:$LINENO: result: no" >&5 | |
11783 | echo "${ECHO_T}no" >&6 | |
11784 | ||
11785 | fi | |
11786 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11787 | fi | |
11788 | ||
11789 | ||
11790 | echo "$as_me:$LINENO: checking for u_char" >&5 | |
11791 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6 | |
11792 | if test "${ac_cv_have_u_char+set}" = set; then | |
11793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11794 | else | |
11795 | ||
11796 | cat >conftest.$ac_ext <<_ACEOF | |
11797 | #line $LINENO "configure" | |
11798 | #include "confdefs.h" | |
11799 | ||
11800 | #include <sys/types.h> | |
11801 | ||
11802 | #ifdef F77_DUMMY_MAIN | |
11803 | # ifdef __cplusplus | |
11804 | extern "C" | |
11805 | # endif | |
11806 | int F77_DUMMY_MAIN() { return 1; } | |
11807 | #endif | |
11808 | int | |
11809 | main () | |
11810 | { | |
11811 | u_char foo; foo = 125; | |
11812 | ; | |
11813 | return 0; | |
11814 | } | |
11815 | _ACEOF | |
11816 | rm -f conftest.$ac_objext | |
11817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11818 | (eval $ac_compile) 2>&5 | |
11819 | ac_status=$? | |
11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11821 | (exit $ac_status); } && | |
11822 | { ac_try='test -s conftest.$ac_objext' | |
11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11824 | (eval $ac_try) 2>&5 | |
11825 | ac_status=$? | |
11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11827 | (exit $ac_status); }; }; then | |
11828 | ac_cv_have_u_char="yes" | |
11829 | else | |
11830 | echo "$as_me: failed program was:" >&5 | |
11831 | cat conftest.$ac_ext >&5 | |
11832 | ac_cv_have_u_char="no" | |
11833 | ||
11834 | fi | |
11835 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11836 | ||
11837 | fi | |
11838 | echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | |
11839 | echo "${ECHO_T}$ac_cv_have_u_char" >&6 | |
11840 | if test "x$ac_cv_have_u_char" = "xyes" ; then | |
11841 | cat >>confdefs.h <<\_ACEOF | |
11842 | @%:@define HAVE_U_CHAR 1 | |
11843 | _ACEOF | |
11844 | ||
11845 | fi | |
11846 | ||
11847 | ||
11848 | echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
11849 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
11850 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11852 | else | |
11853 | cat >conftest.$ac_ext <<_ACEOF | |
11854 | #line $LINENO "configure" | |
11855 | #include "confdefs.h" | |
11856 | #include <sys/types.h> | |
11857 | #include <sys/socket.h> | |
11858 | ||
11859 | #ifdef F77_DUMMY_MAIN | |
11860 | # ifdef __cplusplus | |
11861 | extern "C" | |
11862 | # endif | |
11863 | int F77_DUMMY_MAIN() { return 1; } | |
11864 | #endif | |
11865 | int | |
11866 | main () | |
11867 | { | |
11868 | if ((socklen_t *) 0) | |
11869 | return 0; | |
11870 | if (sizeof (socklen_t)) | |
11871 | return 0; | |
11872 | ; | |
11873 | return 0; | |
11874 | } | |
11875 | _ACEOF | |
11876 | rm -f conftest.$ac_objext | |
11877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11878 | (eval $ac_compile) 2>&5 | |
11879 | ac_status=$? | |
11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11881 | (exit $ac_status); } && | |
11882 | { ac_try='test -s conftest.$ac_objext' | |
11883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11884 | (eval $ac_try) 2>&5 | |
11885 | ac_status=$? | |
11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11887 | (exit $ac_status); }; }; then | |
11888 | ac_cv_type_socklen_t=yes | |
11889 | else | |
11890 | echo "$as_me: failed program was:" >&5 | |
11891 | cat conftest.$ac_ext >&5 | |
11892 | ac_cv_type_socklen_t=no | |
11893 | fi | |
11894 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11895 | fi | |
11896 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
11897 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
11898 | if test $ac_cv_type_socklen_t = yes; then | |
11899 | : | |
11900 | else | |
11901 | ||
11902 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | |
11903 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 | |
11904 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | |
11905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11906 | else | |
11907 | ||
11908 | # Systems have either "struct sockaddr *" or | |
11909 | # "void *" as the second argument to getpeername | |
11910 | curl_cv_socklen_t_equiv= | |
11911 | for arg2 in "struct sockaddr" void; do | |
11912 | for t in int size_t unsigned long "unsigned long"; do | |
11913 | cat >conftest.$ac_ext <<_ACEOF | |
11914 | #line $LINENO "configure" | |
11915 | #include "confdefs.h" | |
11916 | ||
11917 | #include <sys/types.h> | |
11918 | #include <sys/socket.h> | |
11919 | ||
11920 | int getpeername (int, $arg2 *, $t *); | |
11921 | ||
11922 | #ifdef F77_DUMMY_MAIN | |
11923 | # ifdef __cplusplus | |
11924 | extern "C" | |
11925 | # endif | |
11926 | int F77_DUMMY_MAIN() { return 1; } | |
11927 | #endif | |
11928 | int | |
11929 | main () | |
11930 | { | |
11931 | ||
11932 | $t len; | |
11933 | getpeername(0,0,&len); | |
11934 | ||
11935 | ; | |
11936 | return 0; | |
11937 | } | |
11938 | _ACEOF | |
11939 | rm -f conftest.$ac_objext | |
11940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11941 | (eval $ac_compile) 2>&5 | |
11942 | ac_status=$? | |
11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); } && | |
11945 | { ac_try='test -s conftest.$ac_objext' | |
11946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11947 | (eval $ac_try) 2>&5 | |
11948 | ac_status=$? | |
11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11950 | (exit $ac_status); }; }; then | |
11951 | ||
11952 | curl_cv_socklen_t_equiv="$t" | |
11953 | break | |
11954 | ||
11955 | else | |
11956 | echo "$as_me: failed program was:" >&5 | |
11957 | cat conftest.$ac_ext >&5 | |
11958 | fi | |
11959 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11960 | done | |
11961 | done | |
11962 | ||
11963 | if test "x$curl_cv_socklen_t_equiv" = x; then | |
11964 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | |
11965 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | |
11966 | { (exit 1); exit 1; }; } | |
11967 | fi | |
11968 | ||
11969 | fi | |
11970 | ||
11971 | echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | |
11972 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 | |
11973 | ||
11974 | cat >>confdefs.h <<_ACEOF | |
11975 | @%:@define socklen_t $curl_cv_socklen_t_equiv | |
11976 | _ACEOF | |
11977 | ||
11978 | fi | |
11979 | ||
11980 | ||
11981 | ||
11982 | echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | |
11983 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 | |
11984 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | |
11985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11986 | else | |
11987 | cat >conftest.$ac_ext <<_ACEOF | |
11988 | #line $LINENO "configure" | |
11989 | #include "confdefs.h" | |
11990 | #include <signal.h> | |
11991 | ||
11992 | #ifdef F77_DUMMY_MAIN | |
11993 | # ifdef __cplusplus | |
11994 | extern "C" | |
11995 | # endif | |
11996 | int F77_DUMMY_MAIN() { return 1; } | |
11997 | #endif | |
11998 | int | |
11999 | main () | |
12000 | { | |
12001 | if ((sig_atomic_t *) 0) | |
12002 | return 0; | |
12003 | if (sizeof (sig_atomic_t)) | |
12004 | return 0; | |
12005 | ; | |
12006 | return 0; | |
12007 | } | |
12008 | _ACEOF | |
12009 | rm -f conftest.$ac_objext | |
12010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12011 | (eval $ac_compile) 2>&5 | |
12012 | ac_status=$? | |
12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12014 | (exit $ac_status); } && | |
12015 | { ac_try='test -s conftest.$ac_objext' | |
12016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12017 | (eval $ac_try) 2>&5 | |
12018 | ac_status=$? | |
12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12020 | (exit $ac_status); }; }; then | |
12021 | ac_cv_type_sig_atomic_t=yes | |
12022 | else | |
12023 | echo "$as_me: failed program was:" >&5 | |
12024 | cat conftest.$ac_ext >&5 | |
12025 | ac_cv_type_sig_atomic_t=no | |
12026 | fi | |
12027 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12028 | fi | |
12029 | echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | |
12030 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 | |
12031 | if test $ac_cv_type_sig_atomic_t = yes; then | |
12032 | ||
12033 | cat >>confdefs.h <<_ACEOF | |
12034 | @%:@define HAVE_SIG_ATOMIC_T 1 | |
12035 | _ACEOF | |
12036 | ||
12037 | ||
12038 | fi | |
12039 | ||
12040 | ||
12041 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
12042 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
12043 | if test "${ac_cv_have_size_t+set}" = set; then | |
12044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12045 | else | |
12046 | ||
12047 | cat >conftest.$ac_ext <<_ACEOF | |
12048 | #line $LINENO "configure" | |
12049 | #include "confdefs.h" | |
12050 | ||
12051 | #include <sys/types.h> | |
12052 | ||
12053 | #ifdef F77_DUMMY_MAIN | |
12054 | # ifdef __cplusplus | |
12055 | extern "C" | |
12056 | # endif | |
12057 | int F77_DUMMY_MAIN() { return 1; } | |
12058 | #endif | |
12059 | int | |
12060 | main () | |
12061 | { | |
12062 | size_t foo; foo = 1235; | |
12063 | ; | |
12064 | return 0; | |
12065 | } | |
12066 | _ACEOF | |
12067 | rm -f conftest.$ac_objext | |
12068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12069 | (eval $ac_compile) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); } && | |
12073 | { ac_try='test -s conftest.$ac_objext' | |
12074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12075 | (eval $ac_try) 2>&5 | |
12076 | ac_status=$? | |
12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12078 | (exit $ac_status); }; }; then | |
12079 | ac_cv_have_size_t="yes" | |
12080 | else | |
12081 | echo "$as_me: failed program was:" >&5 | |
12082 | cat conftest.$ac_ext >&5 | |
12083 | ac_cv_have_size_t="no" | |
12084 | ||
12085 | fi | |
12086 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12087 | ||
12088 | fi | |
12089 | echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | |
12090 | echo "${ECHO_T}$ac_cv_have_size_t" >&6 | |
12091 | if test "x$ac_cv_have_size_t" = "xyes" ; then | |
12092 | cat >>confdefs.h <<\_ACEOF | |
12093 | @%:@define HAVE_SIZE_T 1 | |
12094 | _ACEOF | |
12095 | ||
12096 | fi | |
12097 | ||
12098 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | |
12099 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
12100 | if test "${ac_cv_have_ssize_t+set}" = set; then | |
12101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12102 | else | |
12103 | ||
12104 | cat >conftest.$ac_ext <<_ACEOF | |
12105 | #line $LINENO "configure" | |
12106 | #include "confdefs.h" | |
12107 | ||
12108 | #include <sys/types.h> | |
12109 | ||
12110 | #ifdef F77_DUMMY_MAIN | |
12111 | # ifdef __cplusplus | |
12112 | extern "C" | |
12113 | # endif | |
12114 | int F77_DUMMY_MAIN() { return 1; } | |
12115 | #endif | |
12116 | int | |
12117 | main () | |
12118 | { | |
12119 | ssize_t foo; foo = 1235; | |
12120 | ; | |
12121 | return 0; | |
12122 | } | |
12123 | _ACEOF | |
12124 | rm -f conftest.$ac_objext | |
12125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12126 | (eval $ac_compile) 2>&5 | |
12127 | ac_status=$? | |
12128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12129 | (exit $ac_status); } && | |
12130 | { ac_try='test -s conftest.$ac_objext' | |
12131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12132 | (eval $ac_try) 2>&5 | |
12133 | ac_status=$? | |
12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12135 | (exit $ac_status); }; }; then | |
12136 | ac_cv_have_ssize_t="yes" | |
12137 | else | |
12138 | echo "$as_me: failed program was:" >&5 | |
12139 | cat conftest.$ac_ext >&5 | |
12140 | ac_cv_have_ssize_t="no" | |
12141 | ||
12142 | fi | |
12143 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12144 | ||
12145 | fi | |
12146 | echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | |
12147 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6 | |
12148 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | |
12149 | cat >>confdefs.h <<\_ACEOF | |
12150 | @%:@define HAVE_SSIZE_T 1 | |
12151 | _ACEOF | |
12152 | ||
12153 | fi | |
12154 | ||
12155 | echo "$as_me:$LINENO: checking for clock_t" >&5 | |
12156 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 | |
12157 | if test "${ac_cv_have_clock_t+set}" = set; then | |
12158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12159 | else | |
12160 | ||
12161 | cat >conftest.$ac_ext <<_ACEOF | |
12162 | #line $LINENO "configure" | |
12163 | #include "confdefs.h" | |
12164 | ||
12165 | #include <time.h> | |
12166 | ||
12167 | #ifdef F77_DUMMY_MAIN | |
12168 | # ifdef __cplusplus | |
12169 | extern "C" | |
12170 | # endif | |
12171 | int F77_DUMMY_MAIN() { return 1; } | |
12172 | #endif | |
12173 | int | |
12174 | main () | |
12175 | { | |
12176 | clock_t foo; foo = 1235; | |
12177 | ; | |
12178 | return 0; | |
12179 | } | |
12180 | _ACEOF | |
12181 | rm -f conftest.$ac_objext | |
12182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12183 | (eval $ac_compile) 2>&5 | |
12184 | ac_status=$? | |
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12186 | (exit $ac_status); } && | |
12187 | { ac_try='test -s conftest.$ac_objext' | |
12188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12189 | (eval $ac_try) 2>&5 | |
12190 | ac_status=$? | |
12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12192 | (exit $ac_status); }; }; then | |
12193 | ac_cv_have_clock_t="yes" | |
12194 | else | |
12195 | echo "$as_me: failed program was:" >&5 | |
12196 | cat conftest.$ac_ext >&5 | |
12197 | ac_cv_have_clock_t="no" | |
12198 | ||
12199 | fi | |
12200 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12201 | ||
12202 | fi | |
12203 | echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | |
12204 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6 | |
12205 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | |
12206 | cat >>confdefs.h <<\_ACEOF | |
12207 | @%:@define HAVE_CLOCK_T 1 | |
12208 | _ACEOF | |
12209 | ||
12210 | fi | |
12211 | ||
12212 | echo "$as_me:$LINENO: checking for sa_family_t" >&5 | |
12213 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 | |
12214 | if test "${ac_cv_have_sa_family_t+set}" = set; then | |
12215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12216 | else | |
12217 | ||
12218 | cat >conftest.$ac_ext <<_ACEOF | |
12219 | #line $LINENO "configure" | |
12220 | #include "confdefs.h" | |
12221 | ||
12222 | #include <sys/types.h> | |
12223 | #include <sys/socket.h> | |
12224 | ||
12225 | #ifdef F77_DUMMY_MAIN | |
12226 | # ifdef __cplusplus | |
12227 | extern "C" | |
12228 | # endif | |
12229 | int F77_DUMMY_MAIN() { return 1; } | |
12230 | #endif | |
12231 | int | |
12232 | main () | |
12233 | { | |
12234 | sa_family_t foo; foo = 1235; | |
12235 | ; | |
12236 | return 0; | |
12237 | } | |
12238 | _ACEOF | |
12239 | rm -f conftest.$ac_objext | |
12240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12241 | (eval $ac_compile) 2>&5 | |
12242 | ac_status=$? | |
12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12244 | (exit $ac_status); } && | |
12245 | { ac_try='test -s conftest.$ac_objext' | |
12246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12247 | (eval $ac_try) 2>&5 | |
12248 | ac_status=$? | |
12249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12250 | (exit $ac_status); }; }; then | |
12251 | ac_cv_have_sa_family_t="yes" | |
12252 | else | |
12253 | echo "$as_me: failed program was:" >&5 | |
12254 | cat conftest.$ac_ext >&5 | |
12255 | cat >conftest.$ac_ext <<_ACEOF | |
12256 | #line $LINENO "configure" | |
12257 | #include "confdefs.h" | |
12258 | ||
12259 | #include <sys/types.h> | |
12260 | #include <sys/socket.h> | |
12261 | #include <netinet/in.h> | |
12262 | ||
12263 | #ifdef F77_DUMMY_MAIN | |
12264 | # ifdef __cplusplus | |
12265 | extern "C" | |
12266 | # endif | |
12267 | int F77_DUMMY_MAIN() { return 1; } | |
12268 | #endif | |
12269 | int | |
12270 | main () | |
12271 | { | |
12272 | sa_family_t foo; foo = 1235; | |
12273 | ; | |
12274 | return 0; | |
12275 | } | |
12276 | _ACEOF | |
12277 | rm -f conftest.$ac_objext | |
12278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12279 | (eval $ac_compile) 2>&5 | |
12280 | ac_status=$? | |
12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12282 | (exit $ac_status); } && | |
12283 | { ac_try='test -s conftest.$ac_objext' | |
12284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12285 | (eval $ac_try) 2>&5 | |
12286 | ac_status=$? | |
12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12288 | (exit $ac_status); }; }; then | |
12289 | ac_cv_have_sa_family_t="yes" | |
12290 | else | |
12291 | echo "$as_me: failed program was:" >&5 | |
12292 | cat conftest.$ac_ext >&5 | |
12293 | ac_cv_have_sa_family_t="no" | |
12294 | ||
12295 | fi | |
12296 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12297 | ||
12298 | fi | |
12299 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12300 | ||
12301 | fi | |
12302 | echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | |
12303 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6 | |
12304 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | |
12305 | cat >>confdefs.h <<\_ACEOF | |
12306 | @%:@define HAVE_SA_FAMILY_T 1 | |
12307 | _ACEOF | |
12308 | ||
12309 | fi | |
12310 | ||
12311 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
12312 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
12313 | if test "${ac_cv_have_pid_t+set}" = set; then | |
12314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12315 | else | |
12316 | ||
12317 | cat >conftest.$ac_ext <<_ACEOF | |
12318 | #line $LINENO "configure" | |
12319 | #include "confdefs.h" | |
12320 | ||
12321 | #include <sys/types.h> | |
12322 | ||
12323 | #ifdef F77_DUMMY_MAIN | |
12324 | # ifdef __cplusplus | |
12325 | extern "C" | |
12326 | # endif | |
12327 | int F77_DUMMY_MAIN() { return 1; } | |
12328 | #endif | |
12329 | int | |
12330 | main () | |
12331 | { | |
12332 | pid_t foo; foo = 1235; | |
12333 | ; | |
12334 | return 0; | |
12335 | } | |
12336 | _ACEOF | |
12337 | rm -f conftest.$ac_objext | |
12338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12339 | (eval $ac_compile) 2>&5 | |
12340 | ac_status=$? | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); } && | |
12343 | { ac_try='test -s conftest.$ac_objext' | |
12344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12345 | (eval $ac_try) 2>&5 | |
12346 | ac_status=$? | |
12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12348 | (exit $ac_status); }; }; then | |
12349 | ac_cv_have_pid_t="yes" | |
12350 | else | |
12351 | echo "$as_me: failed program was:" >&5 | |
12352 | cat conftest.$ac_ext >&5 | |
12353 | ac_cv_have_pid_t="no" | |
12354 | ||
12355 | fi | |
12356 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12357 | ||
12358 | fi | |
12359 | echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | |
12360 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6 | |
12361 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | |
12362 | cat >>confdefs.h <<\_ACEOF | |
12363 | @%:@define HAVE_PID_T 1 | |
12364 | _ACEOF | |
12365 | ||
12366 | fi | |
12367 | ||
12368 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
12369 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
12370 | if test "${ac_cv_have_mode_t+set}" = set; then | |
12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12372 | else | |
12373 | ||
12374 | cat >conftest.$ac_ext <<_ACEOF | |
12375 | #line $LINENO "configure" | |
12376 | #include "confdefs.h" | |
12377 | ||
12378 | #include <sys/types.h> | |
12379 | ||
12380 | #ifdef F77_DUMMY_MAIN | |
12381 | # ifdef __cplusplus | |
12382 | extern "C" | |
12383 | # endif | |
12384 | int F77_DUMMY_MAIN() { return 1; } | |
12385 | #endif | |
12386 | int | |
12387 | main () | |
12388 | { | |
12389 | mode_t foo; foo = 1235; | |
12390 | ; | |
12391 | return 0; | |
12392 | } | |
12393 | _ACEOF | |
12394 | rm -f conftest.$ac_objext | |
12395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12396 | (eval $ac_compile) 2>&5 | |
12397 | ac_status=$? | |
12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12399 | (exit $ac_status); } && | |
12400 | { ac_try='test -s conftest.$ac_objext' | |
12401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12402 | (eval $ac_try) 2>&5 | |
12403 | ac_status=$? | |
12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12405 | (exit $ac_status); }; }; then | |
12406 | ac_cv_have_mode_t="yes" | |
12407 | else | |
12408 | echo "$as_me: failed program was:" >&5 | |
12409 | cat conftest.$ac_ext >&5 | |
12410 | ac_cv_have_mode_t="no" | |
12411 | ||
12412 | fi | |
12413 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12414 | ||
12415 | fi | |
12416 | echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | |
12417 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6 | |
12418 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | |
12419 | cat >>confdefs.h <<\_ACEOF | |
12420 | @%:@define HAVE_MODE_T 1 | |
12421 | _ACEOF | |
12422 | ||
12423 | fi | |
12424 | ||
12425 | ||
12426 | echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | |
12427 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 | |
12428 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | |
12429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12430 | else | |
12431 | ||
12432 | cat >conftest.$ac_ext <<_ACEOF | |
12433 | #line $LINENO "configure" | |
12434 | #include "confdefs.h" | |
12435 | ||
12436 | #include <sys/types.h> | |
12437 | #include <sys/socket.h> | |
12438 | ||
12439 | #ifdef F77_DUMMY_MAIN | |
12440 | # ifdef __cplusplus | |
12441 | extern "C" | |
12442 | # endif | |
12443 | int F77_DUMMY_MAIN() { return 1; } | |
12444 | #endif | |
12445 | int | |
12446 | main () | |
12447 | { | |
12448 | struct sockaddr_storage s; | |
12449 | ; | |
12450 | return 0; | |
12451 | } | |
12452 | _ACEOF | |
12453 | rm -f conftest.$ac_objext | |
12454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12455 | (eval $ac_compile) 2>&5 | |
12456 | ac_status=$? | |
12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12458 | (exit $ac_status); } && | |
12459 | { ac_try='test -s conftest.$ac_objext' | |
12460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12461 | (eval $ac_try) 2>&5 | |
12462 | ac_status=$? | |
12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12464 | (exit $ac_status); }; }; then | |
12465 | ac_cv_have_struct_sockaddr_storage="yes" | |
12466 | else | |
12467 | echo "$as_me: failed program was:" >&5 | |
12468 | cat conftest.$ac_ext >&5 | |
12469 | ac_cv_have_struct_sockaddr_storage="no" | |
12470 | ||
12471 | fi | |
12472 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12473 | ||
12474 | fi | |
12475 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | |
12476 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 | |
12477 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | |
12478 | cat >>confdefs.h <<\_ACEOF | |
12479 | @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
12480 | _ACEOF | |
12481 | ||
12482 | fi | |
12483 | ||
12484 | echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | |
12485 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 | |
12486 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | |
12487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12488 | else | |
12489 | ||
12490 | cat >conftest.$ac_ext <<_ACEOF | |
12491 | #line $LINENO "configure" | |
12492 | #include "confdefs.h" | |
12493 | ||
12494 | #include <sys/types.h> | |
12495 | #include <netinet/in.h> | |
12496 | ||
12497 | #ifdef F77_DUMMY_MAIN | |
12498 | # ifdef __cplusplus | |
12499 | extern "C" | |
12500 | # endif | |
12501 | int F77_DUMMY_MAIN() { return 1; } | |
12502 | #endif | |
12503 | int | |
12504 | main () | |
12505 | { | |
12506 | struct sockaddr_in6 s; s.sin6_family = 0; | |
12507 | ; | |
12508 | return 0; | |
12509 | } | |
12510 | _ACEOF | |
12511 | rm -f conftest.$ac_objext | |
12512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12513 | (eval $ac_compile) 2>&5 | |
12514 | ac_status=$? | |
12515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12516 | (exit $ac_status); } && | |
12517 | { ac_try='test -s conftest.$ac_objext' | |
12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12519 | (eval $ac_try) 2>&5 | |
12520 | ac_status=$? | |
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12522 | (exit $ac_status); }; }; then | |
12523 | ac_cv_have_struct_sockaddr_in6="yes" | |
12524 | else | |
12525 | echo "$as_me: failed program was:" >&5 | |
12526 | cat conftest.$ac_ext >&5 | |
12527 | ac_cv_have_struct_sockaddr_in6="no" | |
12528 | ||
12529 | fi | |
12530 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12531 | ||
12532 | fi | |
12533 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | |
12534 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 | |
12535 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | |
12536 | cat >>confdefs.h <<\_ACEOF | |
12537 | @%:@define HAVE_STRUCT_SOCKADDR_IN6 1 | |
12538 | _ACEOF | |
12539 | ||
12540 | fi | |
12541 | ||
12542 | echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | |
12543 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 | |
12544 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | |
12545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12546 | else | |
12547 | ||
12548 | cat >conftest.$ac_ext <<_ACEOF | |
12549 | #line $LINENO "configure" | |
12550 | #include "confdefs.h" | |
12551 | ||
12552 | #include <sys/types.h> | |
12553 | #include <netinet/in.h> | |
12554 | ||
12555 | #ifdef F77_DUMMY_MAIN | |
12556 | # ifdef __cplusplus | |
12557 | extern "C" | |
12558 | # endif | |
12559 | int F77_DUMMY_MAIN() { return 1; } | |
12560 | #endif | |
12561 | int | |
12562 | main () | |
12563 | { | |
12564 | struct in6_addr s; s.s6_addr[0] = 0; | |
12565 | ; | |
12566 | return 0; | |
12567 | } | |
12568 | _ACEOF | |
12569 | rm -f conftest.$ac_objext | |
12570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12571 | (eval $ac_compile) 2>&5 | |
12572 | ac_status=$? | |
12573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12574 | (exit $ac_status); } && | |
12575 | { ac_try='test -s conftest.$ac_objext' | |
12576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12577 | (eval $ac_try) 2>&5 | |
12578 | ac_status=$? | |
12579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12580 | (exit $ac_status); }; }; then | |
12581 | ac_cv_have_struct_in6_addr="yes" | |
12582 | else | |
12583 | echo "$as_me: failed program was:" >&5 | |
12584 | cat conftest.$ac_ext >&5 | |
12585 | ac_cv_have_struct_in6_addr="no" | |
12586 | ||
12587 | fi | |
12588 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12589 | ||
12590 | fi | |
12591 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | |
12592 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 | |
12593 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | |
12594 | cat >>confdefs.h <<\_ACEOF | |
12595 | @%:@define HAVE_STRUCT_IN6_ADDR 1 | |
12596 | _ACEOF | |
12597 | ||
12598 | fi | |
12599 | ||
12600 | echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | |
12601 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 | |
12602 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | |
12603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12604 | else | |
12605 | ||
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | #line $LINENO "configure" | |
12608 | #include "confdefs.h" | |
12609 | ||
12610 | #include <sys/types.h> | |
12611 | #include <sys/socket.h> | |
12612 | #include <netdb.h> | |
12613 | ||
12614 | #ifdef F77_DUMMY_MAIN | |
12615 | # ifdef __cplusplus | |
12616 | extern "C" | |
12617 | # endif | |
12618 | int F77_DUMMY_MAIN() { return 1; } | |
12619 | #endif | |
12620 | int | |
12621 | main () | |
12622 | { | |
12623 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | |
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_have_struct_addrinfo="yes" | |
12641 | else | |
12642 | echo "$as_me: failed program was:" >&5 | |
12643 | cat conftest.$ac_ext >&5 | |
12644 | ac_cv_have_struct_addrinfo="no" | |
12645 | ||
12646 | fi | |
12647 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12648 | ||
12649 | fi | |
12650 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | |
12651 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 | |
12652 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | |
12653 | cat >>confdefs.h <<\_ACEOF | |
12654 | @%:@define HAVE_STRUCT_ADDRINFO 1 | |
12655 | _ACEOF | |
12656 | ||
12657 | fi | |
12658 | ||
12659 | echo "$as_me:$LINENO: checking for struct timeval" >&5 | |
12660 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | |
12661 | if test "${ac_cv_have_struct_timeval+set}" = set; then | |
12662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12663 | else | |
12664 | ||
12665 | cat >conftest.$ac_ext <<_ACEOF | |
12666 | #line $LINENO "configure" | |
12667 | #include "confdefs.h" | |
12668 | #include <sys/time.h> | |
12669 | #ifdef F77_DUMMY_MAIN | |
12670 | # ifdef __cplusplus | |
12671 | extern "C" | |
12672 | # endif | |
12673 | int F77_DUMMY_MAIN() { return 1; } | |
12674 | #endif | |
12675 | int | |
12676 | main () | |
12677 | { | |
12678 | struct timeval tv; tv.tv_sec = 1; | |
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_cv_have_struct_timeval="yes" | |
12696 | else | |
12697 | echo "$as_me: failed program was:" >&5 | |
12698 | cat conftest.$ac_ext >&5 | |
12699 | ac_cv_have_struct_timeval="no" | |
12700 | ||
12701 | fi | |
12702 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12703 | ||
12704 | fi | |
12705 | echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | |
12706 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6 | |
12707 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | |
12708 | cat >>confdefs.h <<\_ACEOF | |
12709 | @%:@define HAVE_STRUCT_TIMEVAL 1 | |
12710 | _ACEOF | |
12711 | ||
12712 | have_struct_timeval=1 | |
12713 | fi | |
12714 | ||
12715 | # If we don't have int64_t then we can't compile sftp-server. So don't | |
12716 | # even attempt to do it. | |
12717 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | |
12718 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | |
12719 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | |
12720 | NO_SFTP='#' | |
12721 | else | |
12722 | if test "$cross_compiling" = yes; then | |
12723 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
12724 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
12725 | { (exit 1); exit 1; }; } | |
12726 | else | |
12727 | cat >conftest.$ac_ext <<_ACEOF | |
12728 | #line $LINENO "configure" | |
12729 | #include "confdefs.h" | |
12730 | ||
12731 | #include <stdio.h> | |
12732 | #include <string.h> | |
12733 | #ifdef HAVE_SNPRINTF | |
12734 | main() | |
12735 | { | |
12736 | char buf[50]; | |
12737 | char expected_out[50]; | |
12738 | int mazsize = 50 ; | |
12739 | #if (SIZEOF_LONG_INT == 8) | |
12740 | long int num = 0x7fffffffffffffff; | |
12741 | #else | |
12742 | long long num = 0x7fffffffffffffffll; | |
12743 | #endif | |
12744 | strcpy(expected_out, "9223372036854775807"); | |
12745 | snprintf(buf, mazsize, "%lld", num); | |
12746 | if(strcmp(buf, expected_out) != 0) | |
12747 | exit(1); | |
12748 | exit(0); | |
12749 | } | |
12750 | #else | |
12751 | main() { exit(0); } | |
12752 | #endif | |
12753 | ||
12754 | _ACEOF | |
12755 | rm -f conftest$ac_exeext | |
12756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12757 | (eval $ac_link) 2>&5 | |
12758 | ac_status=$? | |
12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12762 | (eval $ac_try) 2>&5 | |
12763 | ac_status=$? | |
12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12765 | (exit $ac_status); }; }; then | |
12766 | true | |
12767 | else | |
12768 | echo "$as_me: program exited with status $ac_status" >&5 | |
12769 | echo "$as_me: failed program was:" >&5 | |
12770 | cat conftest.$ac_ext >&5 | |
12771 | ( exit $ac_status ) | |
12772 | cat >>confdefs.h <<\_ACEOF | |
12773 | @%:@define BROKEN_SNPRINTF 1 | |
12774 | _ACEOF | |
12775 | ||
12776 | ||
12777 | fi | |
12778 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12779 | fi | |
12780 | fi | |
12781 | ||
12782 | ||
12783 | ||
12784 | # look for field 'ut_host' in header 'utmp.h' | |
12785 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
12786 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | |
12787 | echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | |
12788 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6 | |
12789 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
12790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12791 | else | |
12792 | ||
12793 | cat >conftest.$ac_ext <<_ACEOF | |
12794 | #line $LINENO "configure" | |
12795 | #include "confdefs.h" | |
12796 | #include <utmp.h> | |
12797 | ||
12798 | _ACEOF | |
12799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12800 | egrep "ut_host" >/dev/null 2>&1; then | |
12801 | eval "$ossh_varname=yes" | |
12802 | else | |
12803 | eval "$ossh_varname=no" | |
12804 | fi | |
12805 | rm -f conftest* | |
12806 | ||
12807 | fi | |
12808 | ||
12809 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
12810 | if test -n "`echo $ossh_varname`"; then | |
12811 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
12812 | echo "${ECHO_T}$ossh_result" >&6 | |
12813 | if test "x$ossh_result" = "xyes"; then | |
12814 | cat >>confdefs.h <<\_ACEOF | |
12815 | @%:@define HAVE_HOST_IN_UTMP 1 | |
12816 | _ACEOF | |
12817 | ||
12818 | fi | |
12819 | else | |
12820 | echo "$as_me:$LINENO: result: no" >&5 | |
12821 | echo "${ECHO_T}no" >&6 | |
12822 | fi | |
12823 | ||
12824 | ||
12825 | # look for field 'ut_host' in header 'utmpx.h' | |
12826 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
12827 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | |
12828 | echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | |
12829 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6 | |
12830 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
12831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12832 | else | |
12833 | ||
12834 | cat >conftest.$ac_ext <<_ACEOF | |
12835 | #line $LINENO "configure" | |
12836 | #include "confdefs.h" | |
12837 | #include <utmpx.h> | |
12838 | ||
12839 | _ACEOF | |
12840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12841 | egrep "ut_host" >/dev/null 2>&1; then | |
12842 | eval "$ossh_varname=yes" | |
12843 | else | |
12844 | eval "$ossh_varname=no" | |
12845 | fi | |
12846 | rm -f conftest* | |
12847 | ||
12848 | fi | |
12849 | ||
12850 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
12851 | if test -n "`echo $ossh_varname`"; then | |
12852 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
12853 | echo "${ECHO_T}$ossh_result" >&6 | |
12854 | if test "x$ossh_result" = "xyes"; then | |
12855 | cat >>confdefs.h <<\_ACEOF | |
12856 | @%:@define HAVE_HOST_IN_UTMPX 1 | |
12857 | _ACEOF | |
12858 | ||
12859 | fi | |
12860 | else | |
12861 | echo "$as_me:$LINENO: result: no" >&5 | |
12862 | echo "${ECHO_T}no" >&6 | |
12863 | fi | |
12864 | ||
12865 | ||
12866 | # look for field 'syslen' in header 'utmpx.h' | |
12867 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
12868 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | |
12869 | echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | |
12870 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6 | |
12871 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
12872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12873 | else | |
12874 | ||
12875 | cat >conftest.$ac_ext <<_ACEOF | |
12876 | #line $LINENO "configure" | |
12877 | #include "confdefs.h" | |
12878 | #include <utmpx.h> | |
12879 | ||
12880 | _ACEOF | |
12881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12882 | egrep "syslen" >/dev/null 2>&1; then | |
12883 | eval "$ossh_varname=yes" | |
12884 | else | |
12885 | eval "$ossh_varname=no" | |
12886 | fi | |
12887 | rm -f conftest* | |
12888 | ||
12889 | fi | |
12890 | ||
12891 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
12892 | if test -n "`echo $ossh_varname`"; then | |
12893 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
12894 | echo "${ECHO_T}$ossh_result" >&6 | |
12895 | if test "x$ossh_result" = "xyes"; then | |
12896 | cat >>confdefs.h <<\_ACEOF | |
12897 | @%:@define HAVE_SYSLEN_IN_UTMPX 1 | |
12898 | _ACEOF | |
12899 | ||
12900 | fi | |
12901 | else | |
12902 | echo "$as_me:$LINENO: result: no" >&5 | |
12903 | echo "${ECHO_T}no" >&6 | |
12904 | fi | |
12905 | ||
12906 | ||
12907 | # look for field 'ut_pid' in header 'utmp.h' | |
12908 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
12909 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | |
12910 | echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | |
12911 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6 | |
12912 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
12913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12914 | else | |
12915 | ||
12916 | cat >conftest.$ac_ext <<_ACEOF | |
12917 | #line $LINENO "configure" | |
12918 | #include "confdefs.h" | |
12919 | #include <utmp.h> | |
12920 | ||
12921 | _ACEOF | |
12922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12923 | egrep "ut_pid" >/dev/null 2>&1; then | |
12924 | eval "$ossh_varname=yes" | |
12925 | else | |
12926 | eval "$ossh_varname=no" | |
12927 | fi | |
12928 | rm -f conftest* | |
12929 | ||
12930 | fi | |
12931 | ||
12932 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
12933 | if test -n "`echo $ossh_varname`"; then | |
12934 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
12935 | echo "${ECHO_T}$ossh_result" >&6 | |
12936 | if test "x$ossh_result" = "xyes"; then | |
12937 | cat >>confdefs.h <<\_ACEOF | |
12938 | @%:@define HAVE_PID_IN_UTMP 1 | |
12939 | _ACEOF | |
12940 | ||
12941 | fi | |
12942 | else | |
12943 | echo "$as_me:$LINENO: result: no" >&5 | |
12944 | echo "${ECHO_T}no" >&6 | |
12945 | fi | |
12946 | ||
12947 | ||
12948 | # look for field 'ut_type' in header 'utmp.h' | |
12949 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
12950 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | |
12951 | echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | |
12952 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6 | |
12953 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12955 | else | |
12956 | ||
12957 | cat >conftest.$ac_ext <<_ACEOF | |
12958 | #line $LINENO "configure" | |
12959 | #include "confdefs.h" | |
12960 | #include <utmp.h> | |
12961 | ||
12962 | _ACEOF | |
12963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12964 | egrep "ut_type" >/dev/null 2>&1; then | |
12965 | eval "$ossh_varname=yes" | |
12966 | else | |
12967 | eval "$ossh_varname=no" | |
12968 | fi | |
12969 | rm -f conftest* | |
12970 | ||
12971 | fi | |
12972 | ||
12973 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
12974 | if test -n "`echo $ossh_varname`"; then | |
12975 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
12976 | echo "${ECHO_T}$ossh_result" >&6 | |
12977 | if test "x$ossh_result" = "xyes"; then | |
12978 | cat >>confdefs.h <<\_ACEOF | |
12979 | @%:@define HAVE_TYPE_IN_UTMP 1 | |
12980 | _ACEOF | |
12981 | ||
12982 | fi | |
12983 | else | |
12984 | echo "$as_me:$LINENO: result: no" >&5 | |
12985 | echo "${ECHO_T}no" >&6 | |
12986 | fi | |
12987 | ||
12988 | ||
12989 | # look for field 'ut_type' in header 'utmpx.h' | |
12990 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
12991 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | |
12992 | echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | |
12993 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6 | |
12994 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
12995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12996 | else | |
12997 | ||
12998 | cat >conftest.$ac_ext <<_ACEOF | |
12999 | #line $LINENO "configure" | |
13000 | #include "confdefs.h" | |
13001 | #include <utmpx.h> | |
13002 | ||
13003 | _ACEOF | |
13004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13005 | egrep "ut_type" >/dev/null 2>&1; then | |
13006 | eval "$ossh_varname=yes" | |
13007 | else | |
13008 | eval "$ossh_varname=no" | |
13009 | fi | |
13010 | rm -f conftest* | |
13011 | ||
13012 | fi | |
13013 | ||
13014 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13015 | if test -n "`echo $ossh_varname`"; then | |
13016 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13017 | echo "${ECHO_T}$ossh_result" >&6 | |
13018 | if test "x$ossh_result" = "xyes"; then | |
13019 | cat >>confdefs.h <<\_ACEOF | |
13020 | @%:@define HAVE_TYPE_IN_UTMPX 1 | |
13021 | _ACEOF | |
13022 | ||
13023 | fi | |
13024 | else | |
13025 | echo "$as_me:$LINENO: result: no" >&5 | |
13026 | echo "${ECHO_T}no" >&6 | |
13027 | fi | |
13028 | ||
13029 | ||
13030 | # look for field 'ut_tv' in header 'utmp.h' | |
13031 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
13032 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | |
13033 | echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | |
13034 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6 | |
13035 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13037 | else | |
13038 | ||
13039 | cat >conftest.$ac_ext <<_ACEOF | |
13040 | #line $LINENO "configure" | |
13041 | #include "confdefs.h" | |
13042 | #include <utmp.h> | |
13043 | ||
13044 | _ACEOF | |
13045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13046 | egrep "ut_tv" >/dev/null 2>&1; then | |
13047 | eval "$ossh_varname=yes" | |
13048 | else | |
13049 | eval "$ossh_varname=no" | |
13050 | fi | |
13051 | rm -f conftest* | |
13052 | ||
13053 | fi | |
13054 | ||
13055 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13056 | if test -n "`echo $ossh_varname`"; then | |
13057 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13058 | echo "${ECHO_T}$ossh_result" >&6 | |
13059 | if test "x$ossh_result" = "xyes"; then | |
13060 | cat >>confdefs.h <<\_ACEOF | |
13061 | @%:@define HAVE_TV_IN_UTMP 1 | |
13062 | _ACEOF | |
13063 | ||
13064 | fi | |
13065 | else | |
13066 | echo "$as_me:$LINENO: result: no" >&5 | |
13067 | echo "${ECHO_T}no" >&6 | |
13068 | fi | |
13069 | ||
13070 | ||
13071 | # look for field 'ut_id' in header 'utmp.h' | |
13072 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
13073 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | |
13074 | echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | |
13075 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6 | |
13076 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13078 | else | |
13079 | ||
13080 | cat >conftest.$ac_ext <<_ACEOF | |
13081 | #line $LINENO "configure" | |
13082 | #include "confdefs.h" | |
13083 | #include <utmp.h> | |
13084 | ||
13085 | _ACEOF | |
13086 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13087 | egrep "ut_id" >/dev/null 2>&1; then | |
13088 | eval "$ossh_varname=yes" | |
13089 | else | |
13090 | eval "$ossh_varname=no" | |
13091 | fi | |
13092 | rm -f conftest* | |
13093 | ||
13094 | fi | |
13095 | ||
13096 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13097 | if test -n "`echo $ossh_varname`"; then | |
13098 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13099 | echo "${ECHO_T}$ossh_result" >&6 | |
13100 | if test "x$ossh_result" = "xyes"; then | |
13101 | cat >>confdefs.h <<\_ACEOF | |
13102 | @%:@define HAVE_ID_IN_UTMP 1 | |
13103 | _ACEOF | |
13104 | ||
13105 | fi | |
13106 | else | |
13107 | echo "$as_me:$LINENO: result: no" >&5 | |
13108 | echo "${ECHO_T}no" >&6 | |
13109 | fi | |
13110 | ||
13111 | ||
13112 | # look for field 'ut_id' in header 'utmpx.h' | |
13113 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
13114 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | |
13115 | echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | |
13116 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6 | |
13117 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13119 | else | |
13120 | ||
13121 | cat >conftest.$ac_ext <<_ACEOF | |
13122 | #line $LINENO "configure" | |
13123 | #include "confdefs.h" | |
13124 | #include <utmpx.h> | |
13125 | ||
13126 | _ACEOF | |
13127 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13128 | egrep "ut_id" >/dev/null 2>&1; then | |
13129 | eval "$ossh_varname=yes" | |
13130 | else | |
13131 | eval "$ossh_varname=no" | |
13132 | fi | |
13133 | rm -f conftest* | |
13134 | ||
13135 | fi | |
13136 | ||
13137 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13138 | if test -n "`echo $ossh_varname`"; then | |
13139 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13140 | echo "${ECHO_T}$ossh_result" >&6 | |
13141 | if test "x$ossh_result" = "xyes"; then | |
13142 | cat >>confdefs.h <<\_ACEOF | |
13143 | @%:@define HAVE_ID_IN_UTMPX 1 | |
13144 | _ACEOF | |
13145 | ||
13146 | fi | |
13147 | else | |
13148 | echo "$as_me:$LINENO: result: no" >&5 | |
13149 | echo "${ECHO_T}no" >&6 | |
13150 | fi | |
13151 | ||
13152 | ||
13153 | # look for field 'ut_addr' in header 'utmp.h' | |
13154 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
13155 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | |
13156 | echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | |
13157 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6 | |
13158 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13160 | else | |
13161 | ||
13162 | cat >conftest.$ac_ext <<_ACEOF | |
13163 | #line $LINENO "configure" | |
13164 | #include "confdefs.h" | |
13165 | #include <utmp.h> | |
13166 | ||
13167 | _ACEOF | |
13168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13169 | egrep "ut_addr" >/dev/null 2>&1; then | |
13170 | eval "$ossh_varname=yes" | |
13171 | else | |
13172 | eval "$ossh_varname=no" | |
13173 | fi | |
13174 | rm -f conftest* | |
13175 | ||
13176 | fi | |
13177 | ||
13178 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13179 | if test -n "`echo $ossh_varname`"; then | |
13180 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13181 | echo "${ECHO_T}$ossh_result" >&6 | |
13182 | if test "x$ossh_result" = "xyes"; then | |
13183 | cat >>confdefs.h <<\_ACEOF | |
13184 | @%:@define HAVE_ADDR_IN_UTMP 1 | |
13185 | _ACEOF | |
13186 | ||
13187 | fi | |
13188 | else | |
13189 | echo "$as_me:$LINENO: result: no" >&5 | |
13190 | echo "${ECHO_T}no" >&6 | |
13191 | fi | |
13192 | ||
13193 | ||
13194 | # look for field 'ut_addr' in header 'utmpx.h' | |
13195 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
13196 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | |
13197 | echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | |
13198 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6 | |
13199 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13201 | else | |
13202 | ||
13203 | cat >conftest.$ac_ext <<_ACEOF | |
13204 | #line $LINENO "configure" | |
13205 | #include "confdefs.h" | |
13206 | #include <utmpx.h> | |
13207 | ||
13208 | _ACEOF | |
13209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13210 | egrep "ut_addr" >/dev/null 2>&1; then | |
13211 | eval "$ossh_varname=yes" | |
13212 | else | |
13213 | eval "$ossh_varname=no" | |
13214 | fi | |
13215 | rm -f conftest* | |
13216 | ||
13217 | fi | |
13218 | ||
13219 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13220 | if test -n "`echo $ossh_varname`"; then | |
13221 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13222 | echo "${ECHO_T}$ossh_result" >&6 | |
13223 | if test "x$ossh_result" = "xyes"; then | |
13224 | cat >>confdefs.h <<\_ACEOF | |
13225 | @%:@define HAVE_ADDR_IN_UTMPX 1 | |
13226 | _ACEOF | |
13227 | ||
13228 | fi | |
13229 | else | |
13230 | echo "$as_me:$LINENO: result: no" >&5 | |
13231 | echo "${ECHO_T}no" >&6 | |
13232 | fi | |
13233 | ||
13234 | ||
13235 | # look for field 'ut_addr_v6' in header 'utmp.h' | |
13236 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
13237 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | |
13238 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | |
13239 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6 | |
13240 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13242 | else | |
13243 | ||
13244 | cat >conftest.$ac_ext <<_ACEOF | |
13245 | #line $LINENO "configure" | |
13246 | #include "confdefs.h" | |
13247 | #include <utmp.h> | |
13248 | ||
13249 | _ACEOF | |
13250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13251 | egrep "ut_addr_v6" >/dev/null 2>&1; then | |
13252 | eval "$ossh_varname=yes" | |
13253 | else | |
13254 | eval "$ossh_varname=no" | |
13255 | fi | |
13256 | rm -f conftest* | |
13257 | ||
13258 | fi | |
13259 | ||
13260 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13261 | if test -n "`echo $ossh_varname`"; then | |
13262 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13263 | echo "${ECHO_T}$ossh_result" >&6 | |
13264 | if test "x$ossh_result" = "xyes"; then | |
13265 | cat >>confdefs.h <<\_ACEOF | |
13266 | @%:@define HAVE_ADDR_V6_IN_UTMP 1 | |
13267 | _ACEOF | |
13268 | ||
13269 | fi | |
13270 | else | |
13271 | echo "$as_me:$LINENO: result: no" >&5 | |
13272 | echo "${ECHO_T}no" >&6 | |
13273 | fi | |
13274 | ||
13275 | ||
13276 | # look for field 'ut_addr_v6' in header 'utmpx.h' | |
13277 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
13278 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | |
13279 | echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | |
13280 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6 | |
13281 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13283 | else | |
13284 | ||
13285 | cat >conftest.$ac_ext <<_ACEOF | |
13286 | #line $LINENO "configure" | |
13287 | #include "confdefs.h" | |
13288 | #include <utmpx.h> | |
13289 | ||
13290 | _ACEOF | |
13291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13292 | egrep "ut_addr_v6" >/dev/null 2>&1; then | |
13293 | eval "$ossh_varname=yes" | |
13294 | else | |
13295 | eval "$ossh_varname=no" | |
13296 | fi | |
13297 | rm -f conftest* | |
13298 | ||
13299 | fi | |
13300 | ||
13301 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13302 | if test -n "`echo $ossh_varname`"; then | |
13303 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13304 | echo "${ECHO_T}$ossh_result" >&6 | |
13305 | if test "x$ossh_result" = "xyes"; then | |
13306 | cat >>confdefs.h <<\_ACEOF | |
13307 | @%:@define HAVE_ADDR_V6_IN_UTMPX 1 | |
13308 | _ACEOF | |
13309 | ||
13310 | fi | |
13311 | else | |
13312 | echo "$as_me:$LINENO: result: no" >&5 | |
13313 | echo "${ECHO_T}no" >&6 | |
13314 | fi | |
13315 | ||
13316 | ||
13317 | # look for field 'ut_exit' in header 'utmp.h' | |
13318 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
13319 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | |
13320 | echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | |
13321 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6 | |
13322 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13324 | else | |
13325 | ||
13326 | cat >conftest.$ac_ext <<_ACEOF | |
13327 | #line $LINENO "configure" | |
13328 | #include "confdefs.h" | |
13329 | #include <utmp.h> | |
13330 | ||
13331 | _ACEOF | |
13332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13333 | egrep "ut_exit" >/dev/null 2>&1; then | |
13334 | eval "$ossh_varname=yes" | |
13335 | else | |
13336 | eval "$ossh_varname=no" | |
13337 | fi | |
13338 | rm -f conftest* | |
13339 | ||
13340 | fi | |
13341 | ||
13342 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13343 | if test -n "`echo $ossh_varname`"; then | |
13344 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13345 | echo "${ECHO_T}$ossh_result" >&6 | |
13346 | if test "x$ossh_result" = "xyes"; then | |
13347 | cat >>confdefs.h <<\_ACEOF | |
13348 | @%:@define HAVE_EXIT_IN_UTMP 1 | |
13349 | _ACEOF | |
13350 | ||
13351 | fi | |
13352 | else | |
13353 | echo "$as_me:$LINENO: result: no" >&5 | |
13354 | echo "${ECHO_T}no" >&6 | |
13355 | fi | |
13356 | ||
13357 | ||
13358 | # look for field 'ut_time' in header 'utmp.h' | |
13359 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | |
13360 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | |
13361 | echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | |
13362 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6 | |
13363 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13365 | else | |
13366 | ||
13367 | cat >conftest.$ac_ext <<_ACEOF | |
13368 | #line $LINENO "configure" | |
13369 | #include "confdefs.h" | |
13370 | #include <utmp.h> | |
13371 | ||
13372 | _ACEOF | |
13373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13374 | egrep "ut_time" >/dev/null 2>&1; then | |
13375 | eval "$ossh_varname=yes" | |
13376 | else | |
13377 | eval "$ossh_varname=no" | |
13378 | fi | |
13379 | rm -f conftest* | |
13380 | ||
13381 | fi | |
13382 | ||
13383 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13384 | if test -n "`echo $ossh_varname`"; then | |
13385 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13386 | echo "${ECHO_T}$ossh_result" >&6 | |
13387 | if test "x$ossh_result" = "xyes"; then | |
13388 | cat >>confdefs.h <<\_ACEOF | |
13389 | @%:@define HAVE_TIME_IN_UTMP 1 | |
13390 | _ACEOF | |
13391 | ||
13392 | fi | |
13393 | else | |
13394 | echo "$as_me:$LINENO: result: no" >&5 | |
13395 | echo "${ECHO_T}no" >&6 | |
13396 | fi | |
13397 | ||
13398 | ||
13399 | # look for field 'ut_time' in header 'utmpx.h' | |
13400 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
13401 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | |
13402 | echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | |
13403 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6 | |
13404 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13406 | else | |
13407 | ||
13408 | cat >conftest.$ac_ext <<_ACEOF | |
13409 | #line $LINENO "configure" | |
13410 | #include "confdefs.h" | |
13411 | #include <utmpx.h> | |
13412 | ||
13413 | _ACEOF | |
13414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13415 | egrep "ut_time" >/dev/null 2>&1; then | |
13416 | eval "$ossh_varname=yes" | |
13417 | else | |
13418 | eval "$ossh_varname=no" | |
13419 | fi | |
13420 | rm -f conftest* | |
13421 | ||
13422 | fi | |
13423 | ||
13424 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13425 | if test -n "`echo $ossh_varname`"; then | |
13426 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13427 | echo "${ECHO_T}$ossh_result" >&6 | |
13428 | if test "x$ossh_result" = "xyes"; then | |
13429 | cat >>confdefs.h <<\_ACEOF | |
13430 | @%:@define HAVE_TIME_IN_UTMPX 1 | |
13431 | _ACEOF | |
13432 | ||
13433 | fi | |
13434 | else | |
13435 | echo "$as_me:$LINENO: result: no" >&5 | |
13436 | echo "${ECHO_T}no" >&6 | |
13437 | fi | |
13438 | ||
13439 | ||
13440 | # look for field 'ut_tv' in header 'utmpx.h' | |
13441 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | |
13442 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | |
13443 | echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | |
13444 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6 | |
13445 | if eval "test \"\${$ossh_varname+set}\" = set"; then | |
13446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13447 | else | |
13448 | ||
13449 | cat >conftest.$ac_ext <<_ACEOF | |
13450 | #line $LINENO "configure" | |
13451 | #include "confdefs.h" | |
13452 | #include <utmpx.h> | |
13453 | ||
13454 | _ACEOF | |
13455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13456 | egrep "ut_tv" >/dev/null 2>&1; then | |
13457 | eval "$ossh_varname=yes" | |
13458 | else | |
13459 | eval "$ossh_varname=no" | |
13460 | fi | |
13461 | rm -f conftest* | |
13462 | ||
13463 | fi | |
13464 | ||
13465 | ossh_result=`eval 'echo $'"$ossh_varname"` | |
13466 | if test -n "`echo $ossh_varname`"; then | |
13467 | echo "$as_me:$LINENO: result: $ossh_result" >&5 | |
13468 | echo "${ECHO_T}$ossh_result" >&6 | |
13469 | if test "x$ossh_result" = "xyes"; then | |
13470 | cat >>confdefs.h <<\_ACEOF | |
13471 | @%:@define HAVE_TV_IN_UTMPX 1 | |
13472 | _ACEOF | |
13473 | ||
13474 | fi | |
13475 | else | |
13476 | echo "$as_me:$LINENO: result: no" >&5 | |
13477 | echo "${ECHO_T}no" >&6 | |
13478 | fi | |
13479 | ||
13480 | ||
13481 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | |
13482 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
13483 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
13484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13485 | else | |
13486 | cat >conftest.$ac_ext <<_ACEOF | |
13487 | #line $LINENO "configure" | |
13488 | #include "confdefs.h" | |
13489 | $ac_includes_default | |
13490 | #ifdef F77_DUMMY_MAIN | |
13491 | # ifdef __cplusplus | |
13492 | extern "C" | |
13493 | # endif | |
13494 | int F77_DUMMY_MAIN() { return 1; } | |
13495 | #endif | |
13496 | int | |
13497 | main () | |
13498 | { | |
13499 | static struct stat ac_aggr; | |
13500 | if (ac_aggr.st_blksize) | |
13501 | return 0; | |
13502 | ; | |
13503 | return 0; | |
13504 | } | |
13505 | _ACEOF | |
13506 | rm -f conftest.$ac_objext | |
13507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13508 | (eval $ac_compile) 2>&5 | |
13509 | ac_status=$? | |
13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13511 | (exit $ac_status); } && | |
13512 | { ac_try='test -s conftest.$ac_objext' | |
13513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13514 | (eval $ac_try) 2>&5 | |
13515 | ac_status=$? | |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 | (exit $ac_status); }; }; then | |
13518 | ac_cv_member_struct_stat_st_blksize=yes | |
13519 | else | |
13520 | echo "$as_me: failed program was:" >&5 | |
13521 | cat conftest.$ac_ext >&5 | |
13522 | ac_cv_member_struct_stat_st_blksize=no | |
13523 | fi | |
13524 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13525 | fi | |
13526 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
13527 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
13528 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
13529 | ||
13530 | cat >>confdefs.h <<_ACEOF | |
13531 | @%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
13532 | _ACEOF | |
13533 | ||
13534 | ||
13535 | fi | |
13536 | ||
13537 | ||
13538 | echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | |
13539 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | |
13540 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | |
13541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13542 | else | |
13543 | ||
13544 | cat >conftest.$ac_ext <<_ACEOF | |
13545 | #line $LINENO "configure" | |
13546 | #include "confdefs.h" | |
13547 | ||
13548 | #include <sys/types.h> | |
13549 | #include <sys/socket.h> | |
13550 | ||
13551 | #ifdef F77_DUMMY_MAIN | |
13552 | # ifdef __cplusplus | |
13553 | extern "C" | |
13554 | # endif | |
13555 | int F77_DUMMY_MAIN() { return 1; } | |
13556 | #endif | |
13557 | int | |
13558 | main () | |
13559 | { | |
13560 | struct sockaddr_storage s; s.ss_family = 1; | |
13561 | ; | |
13562 | return 0; | |
13563 | } | |
13564 | _ACEOF | |
13565 | rm -f conftest.$ac_objext | |
13566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13567 | (eval $ac_compile) 2>&5 | |
13568 | ac_status=$? | |
13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13570 | (exit $ac_status); } && | |
13571 | { ac_try='test -s conftest.$ac_objext' | |
13572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13573 | (eval $ac_try) 2>&5 | |
13574 | ac_status=$? | |
13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13576 | (exit $ac_status); }; }; then | |
13577 | ac_cv_have_ss_family_in_struct_ss="yes" | |
13578 | else | |
13579 | echo "$as_me: failed program was:" >&5 | |
13580 | cat conftest.$ac_ext >&5 | |
13581 | ac_cv_have_ss_family_in_struct_ss="no" | |
13582 | fi | |
13583 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13584 | ||
13585 | fi | |
13586 | echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | |
13587 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 | |
13588 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | |
13589 | cat >>confdefs.h <<\_ACEOF | |
13590 | @%:@define HAVE_SS_FAMILY_IN_SS 1 | |
13591 | _ACEOF | |
13592 | ||
13593 | fi | |
13594 | ||
13595 | echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | |
13596 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 | |
13597 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | |
13598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13599 | else | |
13600 | ||
13601 | cat >conftest.$ac_ext <<_ACEOF | |
13602 | #line $LINENO "configure" | |
13603 | #include "confdefs.h" | |
13604 | ||
13605 | #include <sys/types.h> | |
13606 | #include <sys/socket.h> | |
13607 | ||
13608 | #ifdef F77_DUMMY_MAIN | |
13609 | # ifdef __cplusplus | |
13610 | extern "C" | |
13611 | # endif | |
13612 | int F77_DUMMY_MAIN() { return 1; } | |
13613 | #endif | |
13614 | int | |
13615 | main () | |
13616 | { | |
13617 | struct sockaddr_storage s; s.__ss_family = 1; | |
13618 | ; | |
13619 | return 0; | |
13620 | } | |
13621 | _ACEOF | |
13622 | rm -f conftest.$ac_objext | |
13623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13624 | (eval $ac_compile) 2>&5 | |
13625 | ac_status=$? | |
13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13627 | (exit $ac_status); } && | |
13628 | { ac_try='test -s conftest.$ac_objext' | |
13629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13630 | (eval $ac_try) 2>&5 | |
13631 | ac_status=$? | |
13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13633 | (exit $ac_status); }; }; then | |
13634 | ac_cv_have___ss_family_in_struct_ss="yes" | |
13635 | else | |
13636 | echo "$as_me: failed program was:" >&5 | |
13637 | cat conftest.$ac_ext >&5 | |
13638 | ac_cv_have___ss_family_in_struct_ss="no" | |
13639 | ||
13640 | fi | |
13641 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13642 | ||
13643 | fi | |
13644 | echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | |
13645 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 | |
13646 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | |
13647 | cat >>confdefs.h <<\_ACEOF | |
13648 | @%:@define HAVE___SS_FAMILY_IN_SS 1 | |
13649 | _ACEOF | |
13650 | ||
13651 | fi | |
13652 | ||
13653 | echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | |
13654 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6 | |
13655 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | |
13656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13657 | else | |
13658 | ||
13659 | cat >conftest.$ac_ext <<_ACEOF | |
13660 | #line $LINENO "configure" | |
13661 | #include "confdefs.h" | |
13662 | ||
13663 | #include <pwd.h> | |
13664 | ||
13665 | #ifdef F77_DUMMY_MAIN | |
13666 | # ifdef __cplusplus | |
13667 | extern "C" | |
13668 | # endif | |
13669 | int F77_DUMMY_MAIN() { return 1; } | |
13670 | #endif | |
13671 | int | |
13672 | main () | |
13673 | { | |
13674 | struct passwd p; p.pw_class = 0; | |
13675 | ; | |
13676 | return 0; | |
13677 | } | |
13678 | _ACEOF | |
13679 | rm -f conftest.$ac_objext | |
13680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13681 | (eval $ac_compile) 2>&5 | |
13682 | ac_status=$? | |
13683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13684 | (exit $ac_status); } && | |
13685 | { ac_try='test -s conftest.$ac_objext' | |
13686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13687 | (eval $ac_try) 2>&5 | |
13688 | ac_status=$? | |
13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13690 | (exit $ac_status); }; }; then | |
13691 | ac_cv_have_pw_class_in_struct_passwd="yes" | |
13692 | else | |
13693 | echo "$as_me: failed program was:" >&5 | |
13694 | cat conftest.$ac_ext >&5 | |
13695 | ac_cv_have_pw_class_in_struct_passwd="no" | |
13696 | ||
13697 | fi | |
13698 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13699 | ||
13700 | fi | |
13701 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | |
13702 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6 | |
13703 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | |
13704 | cat >>confdefs.h <<\_ACEOF | |
13705 | @%:@define HAVE_PW_CLASS_IN_PASSWD 1 | |
13706 | _ACEOF | |
13707 | ||
13708 | fi | |
13709 | ||
13710 | echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | |
13711 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6 | |
13712 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | |
13713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13714 | else | |
13715 | ||
13716 | cat >conftest.$ac_ext <<_ACEOF | |
13717 | #line $LINENO "configure" | |
13718 | #include "confdefs.h" | |
13719 | ||
13720 | #include <pwd.h> | |
13721 | ||
13722 | #ifdef F77_DUMMY_MAIN | |
13723 | # ifdef __cplusplus | |
13724 | extern "C" | |
13725 | # endif | |
13726 | int F77_DUMMY_MAIN() { return 1; } | |
13727 | #endif | |
13728 | int | |
13729 | main () | |
13730 | { | |
13731 | struct passwd p; p.pw_expire = 0; | |
13732 | ; | |
13733 | return 0; | |
13734 | } | |
13735 | _ACEOF | |
13736 | rm -f conftest.$ac_objext | |
13737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13738 | (eval $ac_compile) 2>&5 | |
13739 | ac_status=$? | |
13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13741 | (exit $ac_status); } && | |
13742 | { ac_try='test -s conftest.$ac_objext' | |
13743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13744 | (eval $ac_try) 2>&5 | |
13745 | ac_status=$? | |
13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13747 | (exit $ac_status); }; }; then | |
13748 | ac_cv_have_pw_expire_in_struct_passwd="yes" | |
13749 | else | |
13750 | echo "$as_me: failed program was:" >&5 | |
13751 | cat conftest.$ac_ext >&5 | |
13752 | ac_cv_have_pw_expire_in_struct_passwd="no" | |
13753 | ||
13754 | fi | |
13755 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13756 | ||
13757 | fi | |
13758 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | |
13759 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6 | |
13760 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | |
13761 | cat >>confdefs.h <<\_ACEOF | |
13762 | @%:@define HAVE_PW_EXPIRE_IN_PASSWD 1 | |
13763 | _ACEOF | |
13764 | ||
13765 | fi | |
13766 | ||
13767 | echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | |
13768 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6 | |
13769 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | |
13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13771 | else | |
13772 | ||
13773 | cat >conftest.$ac_ext <<_ACEOF | |
13774 | #line $LINENO "configure" | |
13775 | #include "confdefs.h" | |
13776 | ||
13777 | #include <pwd.h> | |
13778 | ||
13779 | #ifdef F77_DUMMY_MAIN | |
13780 | # ifdef __cplusplus | |
13781 | extern "C" | |
13782 | # endif | |
13783 | int F77_DUMMY_MAIN() { return 1; } | |
13784 | #endif | |
13785 | int | |
13786 | main () | |
13787 | { | |
13788 | struct passwd p; p.pw_change = 0; | |
13789 | ; | |
13790 | return 0; | |
13791 | } | |
13792 | _ACEOF | |
13793 | rm -f conftest.$ac_objext | |
13794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13795 | (eval $ac_compile) 2>&5 | |
13796 | ac_status=$? | |
13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13798 | (exit $ac_status); } && | |
13799 | { ac_try='test -s conftest.$ac_objext' | |
13800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13801 | (eval $ac_try) 2>&5 | |
13802 | ac_status=$? | |
13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13804 | (exit $ac_status); }; }; then | |
13805 | ac_cv_have_pw_change_in_struct_passwd="yes" | |
13806 | else | |
13807 | echo "$as_me: failed program was:" >&5 | |
13808 | cat conftest.$ac_ext >&5 | |
13809 | ac_cv_have_pw_change_in_struct_passwd="no" | |
13810 | ||
13811 | fi | |
13812 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13813 | ||
13814 | fi | |
13815 | echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | |
13816 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6 | |
13817 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | |
13818 | cat >>confdefs.h <<\_ACEOF | |
13819 | @%:@define HAVE_PW_CHANGE_IN_PASSWD 1 | |
13820 | _ACEOF | |
13821 | ||
13822 | fi | |
13823 | ||
13824 | echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | |
13825 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6 | |
13826 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | |
13827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13828 | else | |
13829 | ||
f5799ae1 | 13830 | if test "$cross_compiling" = yes; then |
13831 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
13832 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13833 | { (exit 1); exit 1; }; } | |
13834 | else | |
13835 | cat >conftest.$ac_ext <<_ACEOF | |
700318f3 | 13836 | #line $LINENO "configure" |
13837 | #include "confdefs.h" | |
13838 | ||
13839 | #include <sys/types.h> | |
13840 | #include <sys/socket.h> | |
13841 | #include <sys/uio.h> | |
f5799ae1 | 13842 | int main() { |
13843 | #ifdef msg_accrights | |
13844 | exit(1); | |
700318f3 | 13845 | #endif |
f5799ae1 | 13846 | struct msghdr m; |
13847 | m.msg_accrights = 0; | |
13848 | exit(0); | |
700318f3 | 13849 | } |
f5799ae1 | 13850 | |
700318f3 | 13851 | _ACEOF |
f5799ae1 | 13852 | rm -f conftest$ac_exeext |
13853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13854 | (eval $ac_link) 2>&5 | |
700318f3 | 13855 | ac_status=$? |
13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f5799ae1 | 13857 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
700318f3 | 13858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13859 | (eval $ac_try) 2>&5 | |
13860 | ac_status=$? | |
13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13862 | (exit $ac_status); }; }; then | |
13863 | ac_cv_have_accrights_in_msghdr="yes" | |
13864 | else | |
f5799ae1 | 13865 | echo "$as_me: program exited with status $ac_status" >&5 |
13866 | echo "$as_me: failed program was:" >&5 | |
700318f3 | 13867 | cat conftest.$ac_ext >&5 |
f5799ae1 | 13868 | ( exit $ac_status ) |
700318f3 | 13869 | ac_cv_have_accrights_in_msghdr="no" |
13870 | ||
13871 | fi | |
f5799ae1 | 13872 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
13873 | fi | |
700318f3 | 13874 | |
13875 | fi | |
13876 | echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | |
13877 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6 | |
13878 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | |
13879 | cat >>confdefs.h <<\_ACEOF | |
13880 | @%:@define HAVE_ACCRIGHTS_IN_MSGHDR 1 | |
13881 | _ACEOF | |
13882 | ||
13883 | fi | |
13884 | ||
13885 | echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | |
13886 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6 | |
13887 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | |
13888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13889 | else | |
13890 | ||
f5799ae1 | 13891 | if test "$cross_compiling" = yes; then |
13892 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
13893 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13894 | { (exit 1); exit 1; }; } | |
13895 | else | |
13896 | cat >conftest.$ac_ext <<_ACEOF | |
700318f3 | 13897 | #line $LINENO "configure" |
13898 | #include "confdefs.h" | |
13899 | ||
13900 | #include <sys/types.h> | |
13901 | #include <sys/socket.h> | |
13902 | #include <sys/uio.h> | |
f5799ae1 | 13903 | int main() { |
13904 | #ifdef msg_control | |
13905 | exit(1); | |
700318f3 | 13906 | #endif |
f5799ae1 | 13907 | struct msghdr m; |
13908 | m.msg_control = 0; | |
13909 | exit(0); | |
700318f3 | 13910 | } |
f5799ae1 | 13911 | |
700318f3 | 13912 | _ACEOF |
f5799ae1 | 13913 | rm -f conftest$ac_exeext |
13914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13915 | (eval $ac_link) 2>&5 | |
700318f3 | 13916 | ac_status=$? |
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f5799ae1 | 13918 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
700318f3 | 13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13920 | (eval $ac_try) 2>&5 | |
13921 | ac_status=$? | |
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13923 | (exit $ac_status); }; }; then | |
13924 | ac_cv_have_control_in_msghdr="yes" | |
13925 | else | |
f5799ae1 | 13926 | echo "$as_me: program exited with status $ac_status" >&5 |
13927 | echo "$as_me: failed program was:" >&5 | |
700318f3 | 13928 | cat conftest.$ac_ext >&5 |
f5799ae1 | 13929 | ( exit $ac_status ) |
700318f3 | 13930 | ac_cv_have_control_in_msghdr="no" |
13931 | ||
13932 | fi | |
f5799ae1 | 13933 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
13934 | fi | |
700318f3 | 13935 | |
13936 | fi | |
13937 | echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | |
13938 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6 | |
13939 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | |
13940 | cat >>confdefs.h <<\_ACEOF | |
13941 | @%:@define HAVE_CONTROL_IN_MSGHDR 1 | |
13942 | _ACEOF | |
13943 | ||
13944 | fi | |
13945 | ||
13946 | echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | |
13947 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6 | |
13948 | if test "${ac_cv_libc_defines___progname+set}" = set; then | |
13949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13950 | else | |
13951 | ||
13952 | cat >conftest.$ac_ext <<_ACEOF | |
13953 | #line $LINENO "configure" | |
13954 | #include "confdefs.h" | |
13955 | ||
13956 | #ifdef F77_DUMMY_MAIN | |
13957 | # ifdef __cplusplus | |
13958 | extern "C" | |
13959 | # endif | |
13960 | int F77_DUMMY_MAIN() { return 1; } | |
13961 | #endif | |
13962 | int | |
13963 | main () | |
13964 | { | |
13965 | extern char *__progname; printf("%s", __progname); | |
13966 | ; | |
13967 | return 0; | |
13968 | } | |
13969 | _ACEOF | |
13970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13972 | (eval $ac_link) 2>&5 | |
13973 | ac_status=$? | |
13974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13975 | (exit $ac_status); } && | |
13976 | { ac_try='test -s conftest$ac_exeext' | |
13977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13978 | (eval $ac_try) 2>&5 | |
13979 | ac_status=$? | |
13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13981 | (exit $ac_status); }; }; then | |
13982 | ac_cv_libc_defines___progname="yes" | |
13983 | else | |
13984 | echo "$as_me: failed program was:" >&5 | |
13985 | cat conftest.$ac_ext >&5 | |
13986 | ac_cv_libc_defines___progname="no" | |
13987 | ||
13988 | fi | |
13989 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13990 | ||
13991 | fi | |
13992 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | |
13993 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6 | |
13994 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | |
13995 | cat >>confdefs.h <<\_ACEOF | |
13996 | @%:@define HAVE___PROGNAME 1 | |
13997 | _ACEOF | |
13998 | ||
13999 | fi | |
14000 | ||
14001 | echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | |
14002 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6 | |
14003 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | |
14004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14005 | else | |
14006 | ||
14007 | cat >conftest.$ac_ext <<_ACEOF | |
14008 | #line $LINENO "configure" | |
14009 | #include "confdefs.h" | |
14010 | ||
14011 | #include <stdio.h> | |
14012 | ||
14013 | #ifdef F77_DUMMY_MAIN | |
14014 | # ifdef __cplusplus | |
14015 | extern "C" | |
14016 | # endif | |
14017 | int F77_DUMMY_MAIN() { return 1; } | |
14018 | #endif | |
14019 | int | |
14020 | main () | |
14021 | { | |
14022 | printf("%s", __FUNCTION__); | |
14023 | ; | |
14024 | return 0; | |
14025 | } | |
14026 | _ACEOF | |
14027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14029 | (eval $ac_link) 2>&5 | |
14030 | ac_status=$? | |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14032 | (exit $ac_status); } && | |
14033 | { ac_try='test -s 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 | ac_cv_cc_implements___FUNCTION__="yes" | |
14040 | else | |
14041 | echo "$as_me: failed program was:" >&5 | |
14042 | cat conftest.$ac_ext >&5 | |
14043 | ac_cv_cc_implements___FUNCTION__="no" | |
14044 | ||
14045 | fi | |
14046 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14047 | ||
14048 | fi | |
14049 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | |
14050 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6 | |
14051 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | |
14052 | cat >>confdefs.h <<\_ACEOF | |
14053 | @%:@define HAVE___FUNCTION__ 1 | |
14054 | _ACEOF | |
14055 | ||
14056 | fi | |
14057 | ||
14058 | echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | |
14059 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6 | |
14060 | if test "${ac_cv_cc_implements___func__+set}" = set; then | |
14061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14062 | else | |
14063 | ||
14064 | cat >conftest.$ac_ext <<_ACEOF | |
14065 | #line $LINENO "configure" | |
14066 | #include "confdefs.h" | |
14067 | ||
14068 | #include <stdio.h> | |
14069 | ||
14070 | #ifdef F77_DUMMY_MAIN | |
14071 | # ifdef __cplusplus | |
14072 | extern "C" | |
14073 | # endif | |
14074 | int F77_DUMMY_MAIN() { return 1; } | |
14075 | #endif | |
14076 | int | |
14077 | main () | |
14078 | { | |
14079 | printf("%s", __func__); | |
14080 | ; | |
14081 | return 0; | |
14082 | } | |
14083 | _ACEOF | |
14084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14086 | (eval $ac_link) 2>&5 | |
14087 | ac_status=$? | |
14088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14089 | (exit $ac_status); } && | |
14090 | { ac_try='test -s conftest$ac_exeext' | |
14091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14092 | (eval $ac_try) 2>&5 | |
14093 | ac_status=$? | |
14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14095 | (exit $ac_status); }; }; then | |
14096 | ac_cv_cc_implements___func__="yes" | |
14097 | else | |
14098 | echo "$as_me: failed program was:" >&5 | |
14099 | cat conftest.$ac_ext >&5 | |
14100 | ac_cv_cc_implements___func__="no" | |
14101 | ||
14102 | fi | |
14103 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14104 | ||
14105 | fi | |
14106 | echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | |
14107 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6 | |
14108 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | |
14109 | cat >>confdefs.h <<\_ACEOF | |
14110 | @%:@define HAVE___func__ 1 | |
14111 | _ACEOF | |
14112 | ||
14113 | fi | |
14114 | ||
14115 | echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | |
14116 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6 | |
14117 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | |
14118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14119 | else | |
14120 | ||
14121 | cat >conftest.$ac_ext <<_ACEOF | |
14122 | #line $LINENO "configure" | |
14123 | #include "confdefs.h" | |
14124 | ||
14125 | #include <getopt.h> | |
14126 | ||
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 | extern int optreset; optreset = 0; | |
14137 | ; | |
14138 | return 0; | |
14139 | } | |
14140 | _ACEOF | |
14141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14143 | (eval $ac_link) 2>&5 | |
14144 | ac_status=$? | |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 | (exit $ac_status); } && | |
14147 | { ac_try='test -s conftest$ac_exeext' | |
14148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14149 | (eval $ac_try) 2>&5 | |
14150 | ac_status=$? | |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); }; }; then | |
14153 | ac_cv_have_getopt_optreset="yes" | |
14154 | else | |
14155 | echo "$as_me: failed program was:" >&5 | |
14156 | cat conftest.$ac_ext >&5 | |
14157 | ac_cv_have_getopt_optreset="no" | |
14158 | ||
14159 | fi | |
14160 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14161 | ||
14162 | fi | |
14163 | echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | |
14164 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6 | |
14165 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | |
14166 | cat >>confdefs.h <<\_ACEOF | |
14167 | @%:@define HAVE_GETOPT_OPTRESET 1 | |
14168 | _ACEOF | |
14169 | ||
14170 | fi | |
14171 | ||
14172 | echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | |
14173 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6 | |
14174 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | |
14175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14176 | else | |
14177 | ||
14178 | cat >conftest.$ac_ext <<_ACEOF | |
14179 | #line $LINENO "configure" | |
14180 | #include "confdefs.h" | |
14181 | ||
14182 | #ifdef F77_DUMMY_MAIN | |
14183 | # ifdef __cplusplus | |
14184 | extern "C" | |
14185 | # endif | |
14186 | int F77_DUMMY_MAIN() { return 1; } | |
14187 | #endif | |
14188 | int | |
14189 | main () | |
14190 | { | |
14191 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | |
14192 | ; | |
14193 | return 0; | |
14194 | } | |
14195 | _ACEOF | |
14196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14198 | (eval $ac_link) 2>&5 | |
14199 | ac_status=$? | |
14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14201 | (exit $ac_status); } && | |
14202 | { ac_try='test -s conftest$ac_exeext' | |
14203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14204 | (eval $ac_try) 2>&5 | |
14205 | ac_status=$? | |
14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14207 | (exit $ac_status); }; }; then | |
14208 | ac_cv_libc_defines_sys_errlist="yes" | |
14209 | else | |
14210 | echo "$as_me: failed program was:" >&5 | |
14211 | cat conftest.$ac_ext >&5 | |
14212 | ac_cv_libc_defines_sys_errlist="no" | |
14213 | ||
14214 | fi | |
14215 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14216 | ||
14217 | fi | |
14218 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | |
14219 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6 | |
14220 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | |
14221 | cat >>confdefs.h <<\_ACEOF | |
14222 | @%:@define HAVE_SYS_ERRLIST 1 | |
14223 | _ACEOF | |
14224 | ||
14225 | fi | |
14226 | ||
14227 | ||
14228 | echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | |
14229 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6 | |
14230 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | |
14231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14232 | else | |
14233 | ||
14234 | cat >conftest.$ac_ext <<_ACEOF | |
14235 | #line $LINENO "configure" | |
14236 | #include "confdefs.h" | |
14237 | ||
14238 | #ifdef F77_DUMMY_MAIN | |
14239 | # ifdef __cplusplus | |
14240 | extern "C" | |
14241 | # endif | |
14242 | int F77_DUMMY_MAIN() { return 1; } | |
14243 | #endif | |
14244 | int | |
14245 | main () | |
14246 | { | |
14247 | extern int sys_nerr; printf("%i", sys_nerr); | |
14248 | ; | |
14249 | return 0; | |
14250 | } | |
14251 | _ACEOF | |
14252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14254 | (eval $ac_link) 2>&5 | |
14255 | ac_status=$? | |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14257 | (exit $ac_status); } && | |
14258 | { ac_try='test -s conftest$ac_exeext' | |
14259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14260 | (eval $ac_try) 2>&5 | |
14261 | ac_status=$? | |
14262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14263 | (exit $ac_status); }; }; then | |
14264 | ac_cv_libc_defines_sys_nerr="yes" | |
14265 | else | |
14266 | echo "$as_me: failed program was:" >&5 | |
14267 | cat conftest.$ac_ext >&5 | |
14268 | ac_cv_libc_defines_sys_nerr="no" | |
14269 | ||
14270 | fi | |
14271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14272 | ||
14273 | fi | |
14274 | echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | |
14275 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6 | |
14276 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | |
14277 | cat >>confdefs.h <<\_ACEOF | |
14278 | @%:@define HAVE_SYS_NERR 1 | |
14279 | _ACEOF | |
14280 | ||
14281 | fi | |
14282 | ||
14283 | SCARD_MSG="no" | |
14284 | ||
14285 | # Check whether user wants sectok support | |
14286 | ||
14287 | # Check whether --with-sectok or --without-sectok was given. | |
14288 | if test "${with_sectok+set}" = set; then | |
14289 | withval="$with_sectok" | |
14290 | ||
14291 | if test "x$withval" != "xno" ; then | |
14292 | if test "x$withval" != "xyes" ; then | |
14293 | CPPFLAGS="$CPPFLAGS -I${withval}" | |
14294 | LDFLAGS="$LDFLAGS -L${withval}" | |
14295 | if test ! -z "$need_dash_r" ; then | |
14296 | LDFLAGS="$LDFLAGS -R${withval}" | |
14297 | fi | |
14298 | if test ! -z "$blibpath" ; then | |
14299 | blibpath="$blibpath:${withval}" | |
14300 | fi | |
14301 | fi | |
14302 | ||
14303 | for ac_header in sectok.h | |
14304 | do | |
14305 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14307 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14311 | fi | |
14312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14314 | else | |
14315 | # Is the header compilable? | |
14316 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14317 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14318 | cat >conftest.$ac_ext <<_ACEOF | |
14319 | #line $LINENO "configure" | |
14320 | #include "confdefs.h" | |
14321 | $ac_includes_default | |
14322 | @%:@include <$ac_header> | |
14323 | _ACEOF | |
14324 | rm -f conftest.$ac_objext | |
14325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14326 | (eval $ac_compile) 2>&5 | |
14327 | ac_status=$? | |
14328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14329 | (exit $ac_status); } && | |
14330 | { ac_try='test -s conftest.$ac_objext' | |
14331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14332 | (eval $ac_try) 2>&5 | |
14333 | ac_status=$? | |
14334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14335 | (exit $ac_status); }; }; then | |
14336 | ac_header_compiler=yes | |
14337 | else | |
14338 | echo "$as_me: failed program was:" >&5 | |
14339 | cat conftest.$ac_ext >&5 | |
14340 | ac_header_compiler=no | |
14341 | fi | |
14342 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14344 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14345 | ||
14346 | # Is the header present? | |
14347 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14349 | cat >conftest.$ac_ext <<_ACEOF | |
14350 | #line $LINENO "configure" | |
14351 | #include "confdefs.h" | |
14352 | @%:@include <$ac_header> | |
14353 | _ACEOF | |
14354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14356 | ac_status=$? | |
14357 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
14358 | rm -f conftest.er1 | |
14359 | cat conftest.err >&5 | |
14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14361 | (exit $ac_status); } >/dev/null; then | |
14362 | if test -s conftest.err; then | |
14363 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14364 | else | |
14365 | ac_cpp_err= | |
14366 | fi | |
14367 | else | |
14368 | ac_cpp_err=yes | |
14369 | fi | |
14370 | if test -z "$ac_cpp_err"; then | |
14371 | ac_header_preproc=yes | |
14372 | else | |
14373 | echo "$as_me: failed program was:" >&5 | |
14374 | cat conftest.$ac_ext >&5 | |
14375 | ac_header_preproc=no | |
14376 | fi | |
14377 | rm -f conftest.err conftest.$ac_ext | |
14378 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14379 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14380 | ||
14381 | # So? What about this header? | |
14382 | case $ac_header_compiler:$ac_header_preproc in | |
14383 | yes:no ) | |
14384 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14385 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14388 | no:yes ) | |
14389 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14390 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14391 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14392 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14395 | esac | |
14396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14400 | else | |
14401 | eval "$as_ac_Header=$ac_header_preproc" | |
14402 | fi | |
14403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14404 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14405 | ||
14406 | fi | |
14407 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14408 | cat >>confdefs.h <<_ACEOF | |
14409 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14410 | _ACEOF | |
14411 | ||
14412 | fi | |
14413 | ||
14414 | done | |
14415 | ||
14416 | if test "$ac_cv_header_sectok_h" != yes; then | |
14417 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | |
14418 | echo "$as_me: error: Can't find sectok.h" >&2;} | |
14419 | { (exit 1); exit 1; }; } | |
14420 | fi | |
14421 | ||
14422 | echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | |
14423 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6 | |
14424 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | |
14425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14426 | else | |
14427 | ac_check_lib_save_LIBS=$LIBS | |
14428 | LIBS="-lsectok $LIBS" | |
14429 | cat >conftest.$ac_ext <<_ACEOF | |
14430 | #line $LINENO "configure" | |
14431 | #include "confdefs.h" | |
14432 | ||
14433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14434 | #ifdef __cplusplus | |
14435 | extern "C" | |
14436 | #endif | |
14437 | /* We use char because int might match the return type of a gcc2 | |
14438 | builtin and then its argument prototype would still apply. */ | |
14439 | char sectok_open (); | |
14440 | #ifdef F77_DUMMY_MAIN | |
14441 | # ifdef __cplusplus | |
14442 | extern "C" | |
14443 | # endif | |
14444 | int F77_DUMMY_MAIN() { return 1; } | |
14445 | #endif | |
14446 | int | |
14447 | main () | |
14448 | { | |
14449 | sectok_open (); | |
14450 | ; | |
14451 | return 0; | |
14452 | } | |
14453 | _ACEOF | |
14454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14456 | (eval $ac_link) 2>&5 | |
14457 | ac_status=$? | |
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14459 | (exit $ac_status); } && | |
14460 | { ac_try='test -s conftest$ac_exeext' | |
14461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14462 | (eval $ac_try) 2>&5 | |
14463 | ac_status=$? | |
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14465 | (exit $ac_status); }; }; then | |
14466 | ac_cv_lib_sectok_sectok_open=yes | |
14467 | else | |
14468 | echo "$as_me: failed program was:" >&5 | |
14469 | cat conftest.$ac_ext >&5 | |
14470 | ac_cv_lib_sectok_sectok_open=no | |
14471 | fi | |
14472 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14473 | LIBS=$ac_check_lib_save_LIBS | |
14474 | fi | |
14475 | echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | |
14476 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6 | |
14477 | if test $ac_cv_lib_sectok_sectok_open = yes; then | |
14478 | cat >>confdefs.h <<_ACEOF | |
14479 | @%:@define HAVE_LIBSECTOK 1 | |
14480 | _ACEOF | |
14481 | ||
14482 | LIBS="-lsectok $LIBS" | |
14483 | ||
14484 | fi | |
14485 | ||
14486 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | |
14487 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | |
14488 | echo "$as_me: error: Can't find libsectok" >&2;} | |
14489 | { (exit 1); exit 1; }; } | |
14490 | fi | |
14491 | cat >>confdefs.h <<\_ACEOF | |
14492 | @%:@define SMARTCARD 1 | |
14493 | _ACEOF | |
14494 | ||
14495 | cat >>confdefs.h <<\_ACEOF | |
14496 | @%:@define USE_SECTOK 1 | |
14497 | _ACEOF | |
14498 | ||
14499 | SCARD_MSG="yes, using sectok" | |
14500 | fi | |
14501 | ||
14502 | ||
14503 | fi; | |
14504 | ||
14505 | # Check whether user wants OpenSC support | |
14506 | ||
14507 | # Check whether --with-opensc or --without-opensc was given. | |
14508 | if test "${with_opensc+set}" = set; then | |
14509 | withval="$with_opensc" | |
14510 | opensc_config_prefix="$withval" | |
14511 | else | |
14512 | opensc_config_prefix="" | |
14513 | fi; | |
14514 | if test x$opensc_config_prefix != x ; then | |
14515 | OPENSC_CONFIG=$opensc_config_prefix/bin/opensc-config | |
14516 | # Extract the first word of "opensc-config", so it can be a program name with args. | |
14517 | set dummy opensc-config; ac_word=$2 | |
14518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14520 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | |
14521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14522 | else | |
14523 | case $OPENSC_CONFIG in | |
14524 | [\\/]* | ?:[\\/]*) | |
14525 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | |
14526 | ;; | |
14527 | *) | |
14528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14529 | for as_dir in $PATH | |
14530 | do | |
14531 | IFS=$as_save_IFS | |
14532 | test -z "$as_dir" && as_dir=. | |
14533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14535 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14537 | break 2 | |
14538 | fi | |
14539 | done | |
14540 | done | |
14541 | ||
14542 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | |
14543 | ;; | |
14544 | esac | |
14545 | fi | |
14546 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | |
14547 | ||
14548 | if test -n "$OPENSC_CONFIG"; then | |
14549 | echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | |
14550 | echo "${ECHO_T}$OPENSC_CONFIG" >&6 | |
14551 | else | |
14552 | echo "$as_me:$LINENO: result: no" >&5 | |
14553 | echo "${ECHO_T}no" >&6 | |
14554 | fi | |
14555 | ||
14556 | if test "$OPENSC_CONFIG" != "no"; then | |
14557 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | |
14558 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | |
14559 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | |
14560 | LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" | |
14561 | cat >>confdefs.h <<\_ACEOF | |
14562 | @%:@define SMARTCARD 1 | |
14563 | _ACEOF | |
14564 | ||
14565 | cat >>confdefs.h <<\_ACEOF | |
14566 | @%:@define USE_OPENSC 1 | |
14567 | _ACEOF | |
14568 | ||
14569 | SCARD_MSG="yes, using OpenSC" | |
14570 | fi | |
14571 | fi | |
14572 | ||
14573 | # Check whether user wants Kerberos 5 support | |
14574 | KRB5_MSG="no" | |
14575 | ||
14576 | # Check whether --with-kerberos5 or --without-kerberos5 was given. | |
14577 | if test "${with_kerberos5+set}" = set; then | |
14578 | withval="$with_kerberos5" | |
14579 | ||
14580 | if test "x$withval" != "xno" ; then | |
14581 | if test "x$withval" = "xyes" ; then | |
14582 | KRB5ROOT="/usr/local" | |
14583 | else | |
14584 | KRB5ROOT=${withval} | |
14585 | fi | |
14586 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | |
14587 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | |
14588 | cat >>confdefs.h <<\_ACEOF | |
14589 | @%:@define KRB5 1 | |
14590 | _ACEOF | |
14591 | ||
14592 | KRB5_MSG="yes" | |
14593 | echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | |
14594 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6 | |
14595 | cat >conftest.$ac_ext <<_ACEOF | |
14596 | #line $LINENO "configure" | |
14597 | #include "confdefs.h" | |
14598 | #include <krb5.h> | |
14599 | #ifdef F77_DUMMY_MAIN | |
14600 | # ifdef __cplusplus | |
14601 | extern "C" | |
14602 | # endif | |
14603 | int F77_DUMMY_MAIN() { return 1; } | |
14604 | #endif | |
14605 | int | |
14606 | main () | |
14607 | { | |
14608 | char *tmp = heimdal_version; | |
14609 | ; | |
14610 | return 0; | |
14611 | } | |
14612 | _ACEOF | |
14613 | rm -f conftest.$ac_objext | |
14614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14615 | (eval $ac_compile) 2>&5 | |
14616 | ac_status=$? | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); } && | |
14619 | { ac_try='test -s conftest.$ac_objext' | |
14620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14621 | (eval $ac_try) 2>&5 | |
14622 | ac_status=$? | |
14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14624 | (exit $ac_status); }; }; then | |
14625 | echo "$as_me:$LINENO: result: yes" >&5 | |
14626 | echo "${ECHO_T}yes" >&6 | |
14627 | cat >>confdefs.h <<\_ACEOF | |
14628 | @%:@define HEIMDAL 1 | |
14629 | _ACEOF | |
14630 | ||
14631 | K5LIBS="-lkrb5 -ldes -lcom_err -lasn1 -lroken" | |
14632 | ||
14633 | else | |
14634 | echo "$as_me: failed program was:" >&5 | |
14635 | cat conftest.$ac_ext >&5 | |
14636 | echo "$as_me:$LINENO: result: no" >&5 | |
14637 | echo "${ECHO_T}no" >&6 | |
14638 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | |
14639 | ||
14640 | ||
14641 | fi | |
14642 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14643 | if test ! -z "$need_dash_r" ; then | |
14644 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | |
14645 | fi | |
14646 | if test ! -z "$blibpath" ; then | |
14647 | blibpath="$blibpath:${KRB5ROOT}/lib" | |
14648 | fi | |
14649 | ||
14650 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | |
14651 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | |
14652 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | |
14653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14654 | else | |
14655 | ac_check_lib_save_LIBS=$LIBS | |
14656 | LIBS="-lresolv $LIBS" | |
14657 | cat >conftest.$ac_ext <<_ACEOF | |
14658 | #line $LINENO "configure" | |
14659 | #include "confdefs.h" | |
14660 | ||
14661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14662 | #ifdef __cplusplus | |
14663 | extern "C" | |
14664 | #endif | |
14665 | /* We use char because int might match the return type of a gcc2 | |
14666 | builtin and then its argument prototype would still apply. */ | |
14667 | char dn_expand (); | |
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 | dn_expand (); | |
14678 | ; | |
14679 | return 0; | |
14680 | } | |
14681 | _ACEOF | |
14682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14684 | (eval $ac_link) 2>&5 | |
14685 | ac_status=$? | |
14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14687 | (exit $ac_status); } && | |
14688 | { ac_try='test -s conftest$ac_exeext' | |
14689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14690 | (eval $ac_try) 2>&5 | |
14691 | ac_status=$? | |
14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14693 | (exit $ac_status); }; }; then | |
14694 | ac_cv_lib_resolv_dn_expand=yes | |
14695 | else | |
14696 | echo "$as_me: failed program was:" >&5 | |
14697 | cat conftest.$ac_ext >&5 | |
14698 | ac_cv_lib_resolv_dn_expand=no | |
14699 | fi | |
14700 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14701 | LIBS=$ac_check_lib_save_LIBS | |
14702 | fi | |
14703 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | |
14704 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | |
14705 | if test $ac_cv_lib_resolv_dn_expand = yes; then | |
14706 | cat >>confdefs.h <<_ACEOF | |
14707 | @%:@define HAVE_LIBRESOLV 1 | |
14708 | _ACEOF | |
14709 | ||
14710 | LIBS="-lresolv $LIBS" | |
14711 | ||
14712 | fi | |
14713 | ||
14714 | ||
14715 | KRB5=yes | |
14716 | fi | |
14717 | ||
14718 | ||
14719 | fi; | |
14720 | # Check whether user wants Kerberos 4 support | |
14721 | KRB4_MSG="no" | |
14722 | ||
14723 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | |
14724 | if test "${with_kerberos4+set}" = set; then | |
14725 | withval="$with_kerberos4" | |
14726 | ||
14727 | if test "x$withval" != "xno" ; then | |
14728 | if test "x$withval" != "xyes" ; then | |
14729 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | |
14730 | LDFLAGS="$LDFLAGS -L${withval}/lib" | |
14731 | if test ! -z "$need_dash_r" ; then | |
14732 | LDFLAGS="$LDFLAGS -R${withval}/lib" | |
14733 | fi | |
14734 | if test ! -z "$blibpath" ; then | |
14735 | blibpath="$blibpath:${withval}/lib" | |
14736 | fi | |
14737 | else | |
14738 | if test -d /usr/include/kerberosIV ; then | |
14739 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | |
14740 | fi | |
14741 | fi | |
14742 | ||
14743 | ||
14744 | for ac_header in krb.h | |
14745 | do | |
14746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14752 | fi | |
14753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14755 | else | |
14756 | # Is the header compilable? | |
14757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14759 | cat >conftest.$ac_ext <<_ACEOF | |
14760 | #line $LINENO "configure" | |
14761 | #include "confdefs.h" | |
14762 | $ac_includes_default | |
14763 | @%:@include <$ac_header> | |
14764 | _ACEOF | |
14765 | rm -f conftest.$ac_objext | |
14766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14767 | (eval $ac_compile) 2>&5 | |
14768 | ac_status=$? | |
14769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14770 | (exit $ac_status); } && | |
14771 | { ac_try='test -s conftest.$ac_objext' | |
14772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14773 | (eval $ac_try) 2>&5 | |
14774 | ac_status=$? | |
14775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14776 | (exit $ac_status); }; }; then | |
14777 | ac_header_compiler=yes | |
14778 | else | |
14779 | echo "$as_me: failed program was:" >&5 | |
14780 | cat conftest.$ac_ext >&5 | |
14781 | ac_header_compiler=no | |
14782 | fi | |
14783 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14784 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14785 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14786 | ||
14787 | # Is the header present? | |
14788 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14790 | cat >conftest.$ac_ext <<_ACEOF | |
14791 | #line $LINENO "configure" | |
14792 | #include "confdefs.h" | |
14793 | @%:@include <$ac_header> | |
14794 | _ACEOF | |
14795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14797 | ac_status=$? | |
14798 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
14799 | rm -f conftest.er1 | |
14800 | cat conftest.err >&5 | |
14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14802 | (exit $ac_status); } >/dev/null; then | |
14803 | if test -s conftest.err; then | |
14804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14805 | else | |
14806 | ac_cpp_err= | |
14807 | fi | |
14808 | else | |
14809 | ac_cpp_err=yes | |
14810 | fi | |
14811 | if test -z "$ac_cpp_err"; then | |
14812 | ac_header_preproc=yes | |
14813 | else | |
14814 | echo "$as_me: failed program was:" >&5 | |
14815 | cat conftest.$ac_ext >&5 | |
14816 | ac_header_preproc=no | |
14817 | fi | |
14818 | rm -f conftest.err conftest.$ac_ext | |
14819 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14820 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14821 | ||
14822 | # So? What about this header? | |
14823 | case $ac_header_compiler:$ac_header_preproc in | |
14824 | yes:no ) | |
14825 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14826 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14827 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14828 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14829 | no:yes ) | |
14830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14835 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14836 | esac | |
14837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14841 | else | |
14842 | eval "$as_ac_Header=$ac_header_preproc" | |
14843 | fi | |
14844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14845 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14846 | ||
14847 | fi | |
14848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14849 | cat >>confdefs.h <<_ACEOF | |
14850 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14851 | _ACEOF | |
14852 | ||
14853 | fi | |
14854 | ||
14855 | done | |
14856 | ||
14857 | if test "$ac_cv_header_krb_h" != yes; then | |
14858 | { echo "$as_me:$LINENO: WARNING: Cannot find krb.h, build may fail" >&5 | |
14859 | echo "$as_me: WARNING: Cannot find krb.h, build may fail" >&2;} | |
14860 | fi | |
14861 | ||
14862 | echo "$as_me:$LINENO: checking for main in -lkrb" >&5 | |
14863 | echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6 | |
14864 | if test "${ac_cv_lib_krb_main+set}" = set; then | |
14865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14866 | else | |
14867 | ac_check_lib_save_LIBS=$LIBS | |
14868 | LIBS="-lkrb $LIBS" | |
14869 | cat >conftest.$ac_ext <<_ACEOF | |
14870 | #line $LINENO "configure" | |
14871 | #include "confdefs.h" | |
14872 | ||
14873 | ||
14874 | #ifdef F77_DUMMY_MAIN | |
14875 | # ifdef __cplusplus | |
14876 | extern "C" | |
14877 | # endif | |
14878 | int F77_DUMMY_MAIN() { return 1; } | |
14879 | #endif | |
14880 | int | |
14881 | main () | |
14882 | { | |
14883 | main (); | |
14884 | ; | |
14885 | return 0; | |
14886 | } | |
14887 | _ACEOF | |
14888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14890 | (eval $ac_link) 2>&5 | |
14891 | ac_status=$? | |
14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14893 | (exit $ac_status); } && | |
14894 | { ac_try='test -s conftest$ac_exeext' | |
14895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14896 | (eval $ac_try) 2>&5 | |
14897 | ac_status=$? | |
14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14899 | (exit $ac_status); }; }; then | |
14900 | ac_cv_lib_krb_main=yes | |
14901 | else | |
14902 | echo "$as_me: failed program was:" >&5 | |
14903 | cat conftest.$ac_ext >&5 | |
14904 | ac_cv_lib_krb_main=no | |
14905 | fi | |
14906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14907 | LIBS=$ac_check_lib_save_LIBS | |
14908 | fi | |
14909 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5 | |
14910 | echo "${ECHO_T}$ac_cv_lib_krb_main" >&6 | |
14911 | if test $ac_cv_lib_krb_main = yes; then | |
14912 | cat >>confdefs.h <<_ACEOF | |
14913 | @%:@define HAVE_LIBKRB 1 | |
14914 | _ACEOF | |
14915 | ||
14916 | LIBS="-lkrb $LIBS" | |
14917 | ||
14918 | fi | |
14919 | ||
14920 | if test "$ac_cv_lib_krb_main" != yes; then | |
14921 | ||
14922 | echo "$as_me:$LINENO: checking for main in -lkrb4" >&5 | |
14923 | echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6 | |
14924 | if test "${ac_cv_lib_krb4_main+set}" = set; then | |
14925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14926 | else | |
14927 | ac_check_lib_save_LIBS=$LIBS | |
14928 | LIBS="-lkrb4 $LIBS" | |
14929 | cat >conftest.$ac_ext <<_ACEOF | |
14930 | #line $LINENO "configure" | |
14931 | #include "confdefs.h" | |
14932 | ||
14933 | ||
14934 | #ifdef F77_DUMMY_MAIN | |
14935 | # ifdef __cplusplus | |
14936 | extern "C" | |
14937 | # endif | |
14938 | int F77_DUMMY_MAIN() { return 1; } | |
14939 | #endif | |
14940 | int | |
14941 | main () | |
14942 | { | |
14943 | main (); | |
14944 | ; | |
14945 | return 0; | |
14946 | } | |
14947 | _ACEOF | |
14948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14950 | (eval $ac_link) 2>&5 | |
14951 | ac_status=$? | |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14953 | (exit $ac_status); } && | |
14954 | { ac_try='test -s conftest$ac_exeext' | |
14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14956 | (eval $ac_try) 2>&5 | |
14957 | ac_status=$? | |
14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14959 | (exit $ac_status); }; }; then | |
14960 | ac_cv_lib_krb4_main=yes | |
14961 | else | |
14962 | echo "$as_me: failed program was:" >&5 | |
14963 | cat conftest.$ac_ext >&5 | |
14964 | ac_cv_lib_krb4_main=no | |
14965 | fi | |
14966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14967 | LIBS=$ac_check_lib_save_LIBS | |
14968 | fi | |
14969 | echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5 | |
14970 | echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6 | |
14971 | if test $ac_cv_lib_krb4_main = yes; then | |
14972 | cat >>confdefs.h <<_ACEOF | |
14973 | @%:@define HAVE_LIBKRB4 1 | |
14974 | _ACEOF | |
14975 | ||
14976 | LIBS="-lkrb4 $LIBS" | |
14977 | ||
14978 | fi | |
14979 | ||
14980 | if test "$ac_cv_lib_krb4_main" != yes; then | |
14981 | { echo "$as_me:$LINENO: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&5 | |
14982 | echo "$as_me: WARNING: Cannot find libkrb nor libkrb4, build may fail" >&2;} | |
14983 | else | |
14984 | KLIBS="-lkrb4" | |
14985 | fi | |
14986 | else | |
14987 | KLIBS="-lkrb" | |
14988 | fi | |
14989 | ||
14990 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | |
14991 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 | |
14992 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
14993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14994 | else | |
14995 | ac_check_lib_save_LIBS=$LIBS | |
14996 | LIBS="-ldes $LIBS" | |
14997 | cat >conftest.$ac_ext <<_ACEOF | |
14998 | #line $LINENO "configure" | |
14999 | #include "confdefs.h" | |
15000 | ||
15001 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15002 | #ifdef __cplusplus | |
15003 | extern "C" | |
15004 | #endif | |
15005 | /* We use char because int might match the return type of a gcc2 | |
15006 | builtin and then its argument prototype would still apply. */ | |
15007 | char des_cbc_encrypt (); | |
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 | des_cbc_encrypt (); | |
15018 | ; | |
15019 | return 0; | |
15020 | } | |
15021 | _ACEOF | |
15022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15024 | (eval $ac_link) 2>&5 | |
15025 | ac_status=$? | |
15026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15027 | (exit $ac_status); } && | |
15028 | { ac_try='test -s conftest$ac_exeext' | |
15029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15030 | (eval $ac_try) 2>&5 | |
15031 | ac_status=$? | |
15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15033 | (exit $ac_status); }; }; then | |
15034 | ac_cv_lib_des_des_cbc_encrypt=yes | |
15035 | else | |
15036 | echo "$as_me: failed program was:" >&5 | |
15037 | cat conftest.$ac_ext >&5 | |
15038 | ac_cv_lib_des_des_cbc_encrypt=no | |
15039 | fi | |
15040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15041 | LIBS=$ac_check_lib_save_LIBS | |
15042 | fi | |
15043 | echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | |
15044 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 | |
15045 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
15046 | cat >>confdefs.h <<_ACEOF | |
15047 | @%:@define HAVE_LIBDES 1 | |
15048 | _ACEOF | |
15049 | ||
15050 | LIBS="-ldes $LIBS" | |
15051 | ||
15052 | fi | |
15053 | ||
15054 | if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then | |
15055 | ||
15056 | echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | |
15057 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 | |
15058 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
15059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15060 | else | |
15061 | ac_check_lib_save_LIBS=$LIBS | |
15062 | LIBS="-ldes425 $LIBS" | |
15063 | cat >conftest.$ac_ext <<_ACEOF | |
15064 | #line $LINENO "configure" | |
15065 | #include "confdefs.h" | |
15066 | ||
15067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15068 | #ifdef __cplusplus | |
15069 | extern "C" | |
15070 | #endif | |
15071 | /* We use char because int might match the return type of a gcc2 | |
15072 | builtin and then its argument prototype would still apply. */ | |
15073 | char des_cbc_encrypt (); | |
15074 | #ifdef F77_DUMMY_MAIN | |
15075 | # ifdef __cplusplus | |
15076 | extern "C" | |
15077 | # endif | |
15078 | int F77_DUMMY_MAIN() { return 1; } | |
15079 | #endif | |
15080 | int | |
15081 | main () | |
15082 | { | |
15083 | des_cbc_encrypt (); | |
15084 | ; | |
15085 | return 0; | |
15086 | } | |
15087 | _ACEOF | |
15088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15090 | (eval $ac_link) 2>&5 | |
15091 | ac_status=$? | |
15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15093 | (exit $ac_status); } && | |
15094 | { ac_try='test -s conftest$ac_exeext' | |
15095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15096 | (eval $ac_try) 2>&5 | |
15097 | ac_status=$? | |
15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15099 | (exit $ac_status); }; }; then | |
15100 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
15101 | else | |
15102 | echo "$as_me: failed program was:" >&5 | |
15103 | cat conftest.$ac_ext >&5 | |
15104 | ac_cv_lib_des425_des_cbc_encrypt=no | |
15105 | fi | |
15106 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15107 | LIBS=$ac_check_lib_save_LIBS | |
15108 | fi | |
15109 | echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | |
15110 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 | |
15111 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
15112 | cat >>confdefs.h <<_ACEOF | |
15113 | @%:@define HAVE_LIBDES425 1 | |
15114 | _ACEOF | |
15115 | ||
15116 | LIBS="-ldes425 $LIBS" | |
15117 | ||
15118 | fi | |
15119 | ||
15120 | if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then | |
15121 | { echo "$as_me:$LINENO: WARNING: Cannot find libdes nor libdes425, build may fail" >&5 | |
15122 | echo "$as_me: WARNING: Cannot find libdes nor libdes425, build may fail" >&2;} | |
15123 | else | |
15124 | KLIBS="-ldes425" | |
15125 | fi | |
15126 | else | |
15127 | KLIBS="-ldes" | |
15128 | fi | |
15129 | ||
15130 | echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5 | |
15131 | echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6 | |
15132 | if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then | |
15133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15134 | else | |
15135 | ac_check_lib_save_LIBS=$LIBS | |
15136 | LIBS="-lresolv $LIBS" | |
15137 | cat >conftest.$ac_ext <<_ACEOF | |
15138 | #line $LINENO "configure" | |
15139 | #include "confdefs.h" | |
15140 | ||
15141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15142 | #ifdef __cplusplus | |
15143 | extern "C" | |
15144 | #endif | |
15145 | /* We use char because int might match the return type of a gcc2 | |
15146 | builtin and then its argument prototype would still apply. */ | |
15147 | char dn_expand (); | |
15148 | #ifdef F77_DUMMY_MAIN | |
15149 | # ifdef __cplusplus | |
15150 | extern "C" | |
15151 | # endif | |
15152 | int F77_DUMMY_MAIN() { return 1; } | |
15153 | #endif | |
15154 | int | |
15155 | main () | |
15156 | { | |
15157 | dn_expand (); | |
15158 | ; | |
15159 | return 0; | |
15160 | } | |
15161 | _ACEOF | |
15162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15164 | (eval $ac_link) 2>&5 | |
15165 | ac_status=$? | |
15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15167 | (exit $ac_status); } && | |
15168 | { ac_try='test -s conftest$ac_exeext' | |
15169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15170 | (eval $ac_try) 2>&5 | |
15171 | ac_status=$? | |
15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15173 | (exit $ac_status); }; }; then | |
15174 | ac_cv_lib_resolv_dn_expand=yes | |
15175 | else | |
15176 | echo "$as_me: failed program was:" >&5 | |
15177 | cat conftest.$ac_ext >&5 | |
15178 | ac_cv_lib_resolv_dn_expand=no | |
15179 | fi | |
15180 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15181 | LIBS=$ac_check_lib_save_LIBS | |
15182 | fi | |
15183 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5 | |
15184 | echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6 | |
15185 | if test $ac_cv_lib_resolv_dn_expand = yes; then | |
15186 | cat >>confdefs.h <<_ACEOF | |
15187 | @%:@define HAVE_LIBRESOLV 1 | |
15188 | _ACEOF | |
15189 | ||
15190 | LIBS="-lresolv $LIBS" | |
15191 | ||
15192 | fi | |
15193 | ||
15194 | KRB4=yes | |
15195 | KRB4_MSG="yes" | |
15196 | cat >>confdefs.h <<\_ACEOF | |
15197 | @%:@define KRB4 1 | |
15198 | _ACEOF | |
15199 | ||
15200 | fi | |
15201 | ||
15202 | ||
15203 | fi; | |
15204 | ||
15205 | # Check whether user wants AFS support | |
15206 | AFS_MSG="no" | |
15207 | ||
15208 | # Check whether --with-afs or --without-afs was given. | |
15209 | if test "${with_afs+set}" = set; then | |
15210 | withval="$with_afs" | |
15211 | ||
15212 | if test "x$withval" != "xno" ; then | |
15213 | ||
15214 | if test "x$withval" != "xyes" ; then | |
15215 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | |
15216 | LDFLAGS="$LDFLAGS -L${withval}/lib" | |
15217 | fi | |
15218 | ||
15219 | if test -z "$KRB4" ; then | |
15220 | { echo "$as_me:$LINENO: WARNING: AFS requires Kerberos IV support, build may fail" >&5 | |
15221 | echo "$as_me: WARNING: AFS requires Kerberos IV support, build may fail" >&2;} | |
15222 | fi | |
15223 | ||
15224 | LIBS="-lkafs $LIBS" | |
15225 | if test ! -z "$AFS_LIBS" ; then | |
15226 | LIBS="$LIBS $AFS_LIBS" | |
15227 | fi | |
15228 | cat >>confdefs.h <<\_ACEOF | |
15229 | @%:@define AFS 1 | |
15230 | _ACEOF | |
15231 | ||
15232 | AFS_MSG="yes" | |
15233 | fi | |
15234 | ||
15235 | ||
15236 | fi; | |
15237 | LIBS="$LIBS $KLIBS $K5LIBS" | |
15238 | ||
15239 | # Looking for programs, paths and files | |
15240 | ||
15241 | # Check whether --with-rsh or --without-rsh was given. | |
15242 | if test "${with_rsh+set}" = set; then | |
15243 | withval="$with_rsh" | |
15244 | ||
15245 | if test "x$withval" != "$no" ; then | |
15246 | rsh_path=$withval | |
15247 | fi | |
15248 | ||
15249 | else | |
15250 | ||
15251 | # Extract the first word of "rsh", so it can be a program name with args. | |
15252 | set dummy rsh; ac_word=$2 | |
15253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15255 | if test "${ac_cv_path_rsh_path+set}" = set; then | |
15256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15257 | else | |
15258 | case $rsh_path in | |
15259 | [\\/]* | ?:[\\/]*) | |
15260 | ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path. | |
15261 | ;; | |
15262 | *) | |
15263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15264 | for as_dir in $PATH | |
15265 | do | |
15266 | IFS=$as_save_IFS | |
15267 | test -z "$as_dir" && as_dir=. | |
15268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15270 | ac_cv_path_rsh_path="$as_dir/$ac_word$ac_exec_ext" | |
15271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15272 | break 2 | |
15273 | fi | |
15274 | done | |
15275 | done | |
15276 | ||
15277 | ;; | |
15278 | esac | |
15279 | fi | |
15280 | rsh_path=$ac_cv_path_rsh_path | |
15281 | ||
15282 | if test -n "$rsh_path"; then | |
15283 | echo "$as_me:$LINENO: result: $rsh_path" >&5 | |
15284 | echo "${ECHO_T}$rsh_path" >&6 | |
15285 | else | |
15286 | echo "$as_me:$LINENO: result: no" >&5 | |
15287 | echo "${ECHO_T}no" >&6 | |
15288 | fi | |
15289 | ||
15290 | ||
15291 | ||
15292 | fi; | |
15293 | ||
15294 | PRIVSEP_PATH=/var/empty | |
15295 | ||
15296 | # Check whether --with-privsep-path or --without-privsep-path was given. | |
15297 | if test "${with_privsep_path+set}" = set; then | |
15298 | withval="$with_privsep_path" | |
15299 | ||
15300 | if test "x$withval" != "$no" ; then | |
15301 | PRIVSEP_PATH=$withval | |
15302 | fi | |
15303 | ||
15304 | ||
15305 | fi; | |
15306 | ||
15307 | ||
15308 | ||
15309 | # Check whether --with-xauth or --without-xauth was given. | |
15310 | if test "${with_xauth+set}" = set; then | |
15311 | withval="$with_xauth" | |
15312 | ||
15313 | if test "x$withval" != "xno" ; then | |
15314 | xauth_path=$withval | |
15315 | fi | |
15316 | ||
15317 | else | |
15318 | ||
15319 | # Extract the first word of "xauth", so it can be a program name with args. | |
15320 | set dummy xauth; ac_word=$2 | |
15321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15323 | if test "${ac_cv_path_xauth_path+set}" = set; then | |
15324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15325 | else | |
15326 | case $xauth_path in | |
15327 | [\\/]* | ?:[\\/]*) | |
15328 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | |
15329 | ;; | |
15330 | *) | |
15331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15332 | for as_dir in $PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin | |
15333 | do | |
15334 | IFS=$as_save_IFS | |
15335 | test -z "$as_dir" && as_dir=. | |
15336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15337 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15338 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | |
15339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15340 | break 2 | |
15341 | fi | |
15342 | done | |
15343 | done | |
15344 | ||
15345 | ;; | |
15346 | esac | |
15347 | fi | |
15348 | xauth_path=$ac_cv_path_xauth_path | |
15349 | ||
15350 | if test -n "$xauth_path"; then | |
15351 | echo "$as_me:$LINENO: result: $xauth_path" >&5 | |
15352 | echo "${ECHO_T}$xauth_path" >&6 | |
15353 | else | |
15354 | echo "$as_me:$LINENO: result: no" >&5 | |
15355 | echo "${ECHO_T}no" >&6 | |
15356 | fi | |
15357 | ||
15358 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | |
15359 | xauth_path="/usr/openwin/bin/xauth" | |
15360 | fi | |
15361 | ||
15362 | ||
15363 | fi; | |
15364 | ||
15365 | if test -z "$xauth_path" ; then | |
15366 | XAUTH_PATH="undefined" | |
15367 | ||
15368 | else | |
15369 | cat >>confdefs.h <<_ACEOF | |
15370 | @%:@define XAUTH_PATH "$xauth_path" | |
15371 | _ACEOF | |
15372 | ||
15373 | XAUTH_PATH=$xauth_path | |
15374 | ||
15375 | fi | |
15376 | if test ! -z "$rsh_path" ; then | |
15377 | cat >>confdefs.h <<_ACEOF | |
15378 | @%:@define RSH_PATH "$rsh_path" | |
15379 | _ACEOF | |
15380 | ||
15381 | fi | |
15382 | ||
15383 | # Check for mail directory (last resort if we cannot get it from headers) | |
15384 | if test ! -z "$MAIL" ; then | |
15385 | maildir=`dirname $MAIL` | |
15386 | cat >>confdefs.h <<_ACEOF | |
15387 | @%:@define MAIL_DIRECTORY "$maildir" | |
15388 | _ACEOF | |
15389 | ||
15390 | fi | |
15391 | ||
15392 | if test -z "$no_dev_ptmx" ; then | |
15393 | if test "x$disable_ptmx_check" != "xyes" ; then | |
15394 | echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | |
15395 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6 | |
15396 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | |
15397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15398 | else | |
15399 | test "$cross_compiling" = yes && | |
15400 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
15401 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
15402 | { (exit 1); exit 1; }; } | |
15403 | if test -r ""/dev/ptmx""; then | |
15404 | ac_cv_file___dev_ptmx_=yes | |
15405 | else | |
15406 | ac_cv_file___dev_ptmx_=no | |
15407 | fi | |
15408 | fi | |
15409 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | |
15410 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6 | |
15411 | if test $ac_cv_file___dev_ptmx_ = yes; then | |
15412 | ||
15413 | cat >>confdefs.h <<_ACEOF | |
15414 | @%:@define HAVE_DEV_PTMX 1 | |
15415 | _ACEOF | |
15416 | ||
15417 | have_dev_ptmx=1 | |
15418 | ||
15419 | ||
15420 | fi | |
15421 | ||
15422 | fi | |
15423 | fi | |
15424 | echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | |
15425 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6 | |
15426 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | |
15427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15428 | else | |
15429 | test "$cross_compiling" = yes && | |
15430 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
15431 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
15432 | { (exit 1); exit 1; }; } | |
15433 | if test -r ""/dev/ptc""; then | |
15434 | ac_cv_file___dev_ptc_=yes | |
15435 | else | |
15436 | ac_cv_file___dev_ptc_=no | |
15437 | fi | |
15438 | fi | |
15439 | echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | |
15440 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6 | |
15441 | if test $ac_cv_file___dev_ptc_ = yes; then | |
15442 | ||
15443 | cat >>confdefs.h <<_ACEOF | |
15444 | @%:@define HAVE_DEV_PTS_AND_PTC 1 | |
15445 | _ACEOF | |
15446 | ||
15447 | have_dev_ptc=1 | |
15448 | ||
15449 | ||
15450 | fi | |
15451 | ||
15452 | ||
15453 | # Options from here on. Some of these are preset by platform above | |
15454 | ||
15455 | # Check whether --with-mantype or --without-mantype was given. | |
15456 | if test "${with_mantype+set}" = set; then | |
15457 | withval="$with_mantype" | |
15458 | ||
15459 | case "$withval" in | |
15460 | man|cat|doc) | |
15461 | MANTYPE=$withval | |
15462 | ;; | |
15463 | *) | |
15464 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | |
15465 | echo "$as_me: error: invalid man type: $withval" >&2;} | |
15466 | { (exit 1); exit 1; }; } | |
15467 | ;; | |
15468 | esac | |
15469 | ||
15470 | ||
15471 | fi; | |
15472 | if test -z "$MANTYPE"; then | |
15473 | for ac_prog in nroff awf | |
15474 | do | |
15475 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15476 | set dummy $ac_prog; ac_word=$2 | |
15477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15479 | if test "${ac_cv_path_NROFF+set}" = set; then | |
15480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15481 | else | |
15482 | case $NROFF in | |
15483 | [\\/]* | ?:[\\/]*) | |
15484 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | |
15485 | ;; | |
15486 | *) | |
15487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15488 | as_dummy="/usr/bin:/usr/ucb" | |
15489 | for as_dir in $as_dummy | |
15490 | do | |
15491 | IFS=$as_save_IFS | |
15492 | test -z "$as_dir" && as_dir=. | |
15493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15495 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | |
15496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15497 | break 2 | |
15498 | fi | |
15499 | done | |
15500 | done | |
15501 | ||
15502 | ;; | |
15503 | esac | |
15504 | fi | |
15505 | NROFF=$ac_cv_path_NROFF | |
15506 | ||
15507 | if test -n "$NROFF"; then | |
15508 | echo "$as_me:$LINENO: result: $NROFF" >&5 | |
15509 | echo "${ECHO_T}$NROFF" >&6 | |
15510 | else | |
15511 | echo "$as_me:$LINENO: result: no" >&5 | |
15512 | echo "${ECHO_T}no" >&6 | |
15513 | fi | |
15514 | ||
15515 | test -n "$NROFF" && break | |
15516 | done | |
15517 | test -n "$NROFF" || NROFF="/bin/false" | |
15518 | ||
15519 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | |
15520 | MANTYPE=doc | |
15521 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | |
15522 | MANTYPE=man | |
15523 | else | |
15524 | MANTYPE=cat | |
15525 | fi | |
15526 | fi | |
15527 | ||
15528 | if test "$MANTYPE" = "doc"; then | |
15529 | mansubdir=man; | |
15530 | else | |
15531 | mansubdir=$MANTYPE; | |
15532 | fi | |
15533 | ||
15534 | ||
15535 | # Check whether to enable MD5 passwords | |
15536 | MD5_MSG="no" | |
15537 | ||
15538 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | |
15539 | if test "${with_md5_passwords+set}" = set; then | |
15540 | withval="$with_md5_passwords" | |
15541 | ||
15542 | if test "x$withval" != "xno" ; then | |
15543 | cat >>confdefs.h <<\_ACEOF | |
15544 | @%:@define HAVE_MD5_PASSWORDS 1 | |
15545 | _ACEOF | |
15546 | ||
15547 | MD5_MSG="yes" | |
15548 | fi | |
15549 | ||
15550 | ||
15551 | fi; | |
15552 | ||
15553 | # Whether to disable shadow password support | |
15554 | ||
15555 | # Check whether --with-shadow or --without-shadow was given. | |
15556 | if test "${with_shadow+set}" = set; then | |
15557 | withval="$with_shadow" | |
15558 | ||
15559 | if test "x$withval" = "xno" ; then | |
15560 | cat >>confdefs.h <<\_ACEOF | |
15561 | @%:@define DISABLE_SHADOW 1 | |
15562 | _ACEOF | |
15563 | ||
15564 | disable_shadow=yes | |
15565 | fi | |
15566 | ||
15567 | ||
15568 | fi; | |
15569 | ||
15570 | if test -z "$disable_shadow" ; then | |
15571 | echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | |
15572 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6 | |
15573 | cat >conftest.$ac_ext <<_ACEOF | |
15574 | #line $LINENO "configure" | |
15575 | #include "confdefs.h" | |
15576 | ||
15577 | #include <sys/types.h> | |
15578 | #include <shadow.h> | |
15579 | struct spwd sp; | |
15580 | ||
15581 | #ifdef F77_DUMMY_MAIN | |
15582 | # ifdef __cplusplus | |
15583 | extern "C" | |
15584 | # endif | |
15585 | int F77_DUMMY_MAIN() { return 1; } | |
15586 | #endif | |
15587 | int | |
15588 | main () | |
15589 | { | |
15590 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | |
15591 | ; | |
15592 | return 0; | |
15593 | } | |
15594 | _ACEOF | |
15595 | rm -f conftest.$ac_objext | |
15596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15597 | (eval $ac_compile) 2>&5 | |
15598 | ac_status=$? | |
15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15600 | (exit $ac_status); } && | |
15601 | { ac_try='test -s conftest.$ac_objext' | |
15602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15603 | (eval $ac_try) 2>&5 | |
15604 | ac_status=$? | |
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15606 | (exit $ac_status); }; }; then | |
15607 | sp_expire_available=yes | |
15608 | else | |
15609 | echo "$as_me: failed program was:" >&5 | |
15610 | cat conftest.$ac_ext >&5 | |
15611 | ||
15612 | ||
15613 | fi | |
15614 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15615 | ||
15616 | if test "x$sp_expire_available" = "xyes" ; then | |
15617 | echo "$as_me:$LINENO: result: yes" >&5 | |
15618 | echo "${ECHO_T}yes" >&6 | |
15619 | cat >>confdefs.h <<\_ACEOF | |
15620 | @%:@define HAS_SHADOW_EXPIRE 1 | |
15621 | _ACEOF | |
15622 | ||
15623 | else | |
15624 | echo "$as_me:$LINENO: result: no" >&5 | |
15625 | echo "${ECHO_T}no" >&6 | |
15626 | fi | |
15627 | fi | |
15628 | ||
15629 | # Use ip address instead of hostname in $DISPLAY | |
15630 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | |
15631 | DISPLAY_HACK_MSG="yes" | |
15632 | cat >>confdefs.h <<\_ACEOF | |
15633 | @%:@define IPADDR_IN_DISPLAY 1 | |
15634 | _ACEOF | |
15635 | ||
15636 | else | |
15637 | DISPLAY_HACK_MSG="no" | |
15638 | ||
15639 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | |
15640 | if test "${with_ipaddr_display+set}" = set; then | |
15641 | withval="$with_ipaddr_display" | |
15642 | ||
15643 | if test "x$withval" != "xno" ; then | |
15644 | cat >>confdefs.h <<\_ACEOF | |
15645 | @%:@define IPADDR_IN_DISPLAY 1 | |
15646 | _ACEOF | |
15647 | ||
15648 | DISPLAY_HACK_MSG="yes" | |
15649 | fi | |
15650 | ||
15651 | ||
15652 | fi; | |
15653 | fi | |
15654 | ||
15655 | if test $ac_cv_func_login_getcapbool = "yes" -a \ | |
15656 | $ac_cv_header_login_cap_h = "yes" ; then | |
15657 | USES_LOGIN_CONF=yes | |
15658 | fi | |
15659 | # Whether to mess with the default path | |
15660 | SERVER_PATH_MSG="(default)" | |
15661 | ||
15662 | # Check whether --with-default-path or --without-default-path was given. | |
15663 | if test "${with_default_path+set}" = set; then | |
15664 | withval="$with_default_path" | |
15665 | ||
15666 | if test "$USES_LOGIN_CONF" = "yes" ; then | |
15667 | { echo "$as_me:$LINENO: WARNING: | |
15668 | --with-default-path=PATH has no effect on this system. | |
15669 | Edit /etc/login.conf instead." >&5 | |
15670 | echo "$as_me: WARNING: | |
15671 | --with-default-path=PATH has no effect on this system. | |
15672 | Edit /etc/login.conf instead." >&2;} | |
15673 | elif test "x$withval" != "xno" ; then | |
15674 | user_path="$withval" | |
15675 | SERVER_PATH_MSG="$withval" | |
15676 | fi | |
15677 | ||
15678 | else | |
15679 | if test "$USES_LOGIN_CONF" = "yes" ; then | |
15680 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | |
15681 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | |
15682 | else | |
15683 | if test "$cross_compiling" = yes; then | |
15684 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | |
15685 | ||
15686 | else | |
15687 | cat >conftest.$ac_ext <<_ACEOF | |
15688 | #line $LINENO "configure" | |
15689 | #include "confdefs.h" | |
15690 | ||
15691 | /* find out what STDPATH is */ | |
15692 | #include <stdio.h> | |
15693 | #ifdef HAVE_PATHS_H | |
15694 | # include <paths.h> | |
15695 | #endif | |
15696 | #ifndef _PATH_STDPATH | |
15697 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | |
15698 | #endif | |
15699 | #include <sys/types.h> | |
15700 | #include <sys/stat.h> | |
15701 | #include <fcntl.h> | |
15702 | #define DATA "conftest.stdpath" | |
15703 | ||
15704 | main() | |
15705 | { | |
15706 | FILE *fd; | |
15707 | int rc; | |
15708 | ||
15709 | fd = fopen(DATA,"w"); | |
15710 | if(fd == NULL) | |
15711 | exit(1); | |
15712 | ||
15713 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | |
15714 | exit(1); | |
15715 | ||
15716 | exit(0); | |
15717 | } | |
15718 | ||
15719 | _ACEOF | |
15720 | rm -f conftest$ac_exeext | |
15721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15722 | (eval $ac_link) 2>&5 | |
15723 | ac_status=$? | |
15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15727 | (eval $ac_try) 2>&5 | |
15728 | ac_status=$? | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); }; }; then | |
15731 | user_path=`cat conftest.stdpath` | |
15732 | else | |
15733 | echo "$as_me: program exited with status $ac_status" >&5 | |
15734 | echo "$as_me: failed program was:" >&5 | |
15735 | cat conftest.$ac_ext >&5 | |
15736 | ( exit $ac_status ) | |
15737 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | |
15738 | fi | |
15739 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15740 | fi | |
15741 | # make sure $bindir is in USER_PATH so scp will work | |
15742 | t_bindir=`eval echo ${bindir}` | |
15743 | case $t_bindir in | |
15744 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | |
15745 | esac | |
15746 | case $t_bindir in | |
15747 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | |
15748 | esac | |
15749 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | |
15750 | if test $? -ne 0 ; then | |
15751 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | |
15752 | if test $? -ne 0 ; then | |
15753 | user_path=$user_path:$t_bindir | |
15754 | echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | |
15755 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6 | |
15756 | fi | |
15757 | fi | |
15758 | fi | |
15759 | ||
15760 | fi; | |
15761 | if test "$USES_LOGIN_CONF" != "yes" ; then | |
15762 | cat >>confdefs.h <<_ACEOF | |
15763 | @%:@define USER_PATH "$user_path" | |
15764 | _ACEOF | |
15765 | ||
15766 | ||
15767 | fi | |
15768 | ||
15769 | # Set superuser path separately to user path | |
700318f3 | 15770 | |
15771 | # Check whether --with-superuser-path or --without-superuser-path was given. | |
15772 | if test "${with_superuser_path+set}" = set; then | |
15773 | withval="$with_superuser_path" | |
15774 | ||
15775 | if test "x$withval" != "xno" ; then | |
15776 | cat >>confdefs.h <<_ACEOF | |
15777 | @%:@define SUPERUSER_PATH "$withval" | |
15778 | _ACEOF | |
15779 | ||
15780 | superuser_path=$withval | |
15781 | fi | |
15782 | ||
15783 | ||
15784 | fi; | |
15785 | ||
15786 | ||
15787 | # Whether to force IPv4 by default (needed on broken glibc Linux) | |
15788 | IPV4_HACK_MSG="no" | |
15789 | ||
15790 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | |
15791 | if test "${with_ipv4_default+set}" = set; then | |
15792 | withval="$with_ipv4_default" | |
15793 | ||
15794 | if test "x$withval" != "xno" ; then | |
15795 | cat >>confdefs.h <<\_ACEOF | |
15796 | @%:@define IPV4_DEFAULT 1 | |
15797 | _ACEOF | |
15798 | ||
15799 | IPV4_HACK_MSG="yes" | |
15800 | fi | |
15801 | ||
15802 | ||
15803 | fi; | |
15804 | ||
15805 | echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | |
15806 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6 | |
15807 | IPV4_IN6_HACK_MSG="no" | |
15808 | ||
15809 | # Check whether --with-4in6 or --without-4in6 was given. | |
15810 | if test "${with_4in6+set}" = set; then | |
15811 | withval="$with_4in6" | |
15812 | ||
15813 | if test "x$withval" != "xno" ; then | |
15814 | echo "$as_me:$LINENO: result: yes" >&5 | |
15815 | echo "${ECHO_T}yes" >&6 | |
15816 | cat >>confdefs.h <<\_ACEOF | |
15817 | @%:@define IPV4_IN_IPV6 1 | |
15818 | _ACEOF | |
15819 | ||
15820 | IPV4_IN6_HACK_MSG="yes" | |
15821 | else | |
15822 | echo "$as_me:$LINENO: result: no" >&5 | |
15823 | echo "${ECHO_T}no" >&6 | |
15824 | fi | |
15825 | ||
15826 | else | |
15827 | ||
15828 | if test "x$inet6_default_4in6" = "xyes"; then | |
15829 | echo "$as_me:$LINENO: result: yes (default)" >&5 | |
15830 | echo "${ECHO_T}yes (default)" >&6 | |
15831 | cat >>confdefs.h <<\_ACEOF | |
15832 | @%:@define IPV4_IN_IPV6 1 | |
15833 | _ACEOF | |
15834 | ||
15835 | IPV4_IN6_HACK_MSG="yes" | |
15836 | else | |
15837 | echo "$as_me:$LINENO: result: no (default)" >&5 | |
15838 | echo "${ECHO_T}no (default)" >&6 | |
15839 | fi | |
15840 | ||
15841 | ||
15842 | fi; | |
15843 | ||
15844 | # Whether to enable BSD auth support | |
15845 | BSD_AUTH_MSG=no | |
15846 | ||
15847 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | |
15848 | if test "${with_bsd_auth+set}" = set; then | |
15849 | withval="$with_bsd_auth" | |
15850 | ||
15851 | if test "x$withval" != "xno" ; then | |
15852 | cat >>confdefs.h <<\_ACEOF | |
15853 | @%:@define BSD_AUTH 1 | |
15854 | _ACEOF | |
15855 | ||
15856 | BSD_AUTH_MSG=yes | |
15857 | fi | |
15858 | ||
15859 | ||
15860 | fi; | |
15861 | ||
700318f3 | 15862 | # Where to place sshd.pid |
15863 | piddir=/var/run | |
15864 | # make sure the directory exists | |
15865 | if test ! -d $piddir ; then | |
15866 | piddir=`eval echo ${sysconfdir}` | |
15867 | case $piddir in | |
15868 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | |
15869 | esac | |
15870 | fi | |
15871 | ||
15872 | ||
15873 | # Check whether --with-pid-dir or --without-pid-dir was given. | |
15874 | if test "${with_pid_dir+set}" = set; then | |
15875 | withval="$with_pid_dir" | |
15876 | ||
15877 | if test "x$withval" != "xno" ; then | |
15878 | piddir=$withval | |
15879 | if test ! -d $piddir ; then | |
15880 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | |
15881 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | |
15882 | fi | |
15883 | fi | |
15884 | ||
15885 | ||
15886 | fi; | |
15887 | ||
15888 | cat >>confdefs.h <<_ACEOF | |
15889 | @%:@define _PATH_SSH_PIDDIR "$piddir" | |
15890 | _ACEOF | |
15891 | ||
15892 | ||
15893 | ||
15894 | # Check whether --enable-lastlog or --disable-lastlog was given. | |
15895 | if test "${enable_lastlog+set}" = set; then | |
15896 | enableval="$enable_lastlog" | |
15897 | cat >>confdefs.h <<\_ACEOF | |
15898 | @%:@define DISABLE_LASTLOG 1 | |
15899 | _ACEOF | |
15900 | ||
15901 | ||
15902 | fi; | |
15903 | # Check whether --enable-utmp or --disable-utmp was given. | |
15904 | if test "${enable_utmp+set}" = set; then | |
15905 | enableval="$enable_utmp" | |
15906 | cat >>confdefs.h <<\_ACEOF | |
15907 | @%:@define DISABLE_UTMP 1 | |
15908 | _ACEOF | |
15909 | ||
15910 | ||
15911 | fi; | |
15912 | # Check whether --enable-utmpx or --disable-utmpx was given. | |
15913 | if test "${enable_utmpx+set}" = set; then | |
15914 | enableval="$enable_utmpx" | |
15915 | cat >>confdefs.h <<\_ACEOF | |
15916 | @%:@define DISABLE_UTMPX 1 | |
15917 | _ACEOF | |
15918 | ||
15919 | ||
15920 | fi; | |
15921 | # Check whether --enable-wtmp or --disable-wtmp was given. | |
15922 | if test "${enable_wtmp+set}" = set; then | |
15923 | enableval="$enable_wtmp" | |
15924 | cat >>confdefs.h <<\_ACEOF | |
15925 | @%:@define DISABLE_WTMP 1 | |
15926 | _ACEOF | |
15927 | ||
15928 | ||
15929 | fi; | |
15930 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | |
15931 | if test "${enable_wtmpx+set}" = set; then | |
15932 | enableval="$enable_wtmpx" | |
15933 | cat >>confdefs.h <<\_ACEOF | |
15934 | @%:@define DISABLE_WTMPX 1 | |
15935 | _ACEOF | |
15936 | ||
15937 | ||
15938 | fi; | |
15939 | # Check whether --enable-libutil or --disable-libutil was given. | |
15940 | if test "${enable_libutil+set}" = set; then | |
15941 | enableval="$enable_libutil" | |
15942 | cat >>confdefs.h <<\_ACEOF | |
15943 | @%:@define DISABLE_LOGIN 1 | |
15944 | _ACEOF | |
15945 | ||
15946 | ||
15947 | fi; | |
15948 | # Check whether --enable-pututline or --disable-pututline was given. | |
15949 | if test "${enable_pututline+set}" = set; then | |
15950 | enableval="$enable_pututline" | |
15951 | cat >>confdefs.h <<\_ACEOF | |
15952 | @%:@define DISABLE_PUTUTLINE 1 | |
15953 | _ACEOF | |
15954 | ||
15955 | ||
15956 | fi; | |
15957 | # Check whether --enable-pututxline or --disable-pututxline was given. | |
15958 | if test "${enable_pututxline+set}" = set; then | |
15959 | enableval="$enable_pututxline" | |
15960 | cat >>confdefs.h <<\_ACEOF | |
15961 | @%:@define DISABLE_PUTUTXLINE 1 | |
15962 | _ACEOF | |
15963 | ||
15964 | ||
15965 | fi; | |
15966 | ||
15967 | # Check whether --with-lastlog or --without-lastlog was given. | |
15968 | if test "${with_lastlog+set}" = set; then | |
15969 | withval="$with_lastlog" | |
15970 | ||
15971 | if test "x$withval" = "xno" ; then | |
15972 | cat >>confdefs.h <<\_ACEOF | |
15973 | @%:@define DISABLE_LASTLOG 1 | |
15974 | _ACEOF | |
15975 | ||
15976 | else | |
15977 | conf_lastlog_location=$withval | |
15978 | fi | |
15979 | ||
15980 | ||
15981 | fi; | |
15982 | ||
15983 | ||
15984 | echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | |
15985 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6 | |
15986 | cat >conftest.$ac_ext <<_ACEOF | |
15987 | #line $LINENO "configure" | |
15988 | #include "confdefs.h" | |
15989 | ||
15990 | #include <sys/types.h> | |
15991 | #include <utmp.h> | |
15992 | #ifdef HAVE_LASTLOG_H | |
15993 | # include <lastlog.h> | |
15994 | #endif | |
15995 | #ifdef HAVE_PATHS_H | |
15996 | # include <paths.h> | |
15997 | #endif | |
15998 | #ifdef HAVE_LOGIN_H | |
15999 | # include <login.h> | |
16000 | #endif | |
16001 | ||
16002 | #ifdef F77_DUMMY_MAIN | |
16003 | # ifdef __cplusplus | |
16004 | extern "C" | |
16005 | # endif | |
16006 | int F77_DUMMY_MAIN() { return 1; } | |
16007 | #endif | |
16008 | int | |
16009 | main () | |
16010 | { | |
16011 | char *lastlog = LASTLOG_FILE; | |
16012 | ; | |
16013 | return 0; | |
16014 | } | |
16015 | _ACEOF | |
16016 | rm -f conftest.$ac_objext | |
16017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16018 | (eval $ac_compile) 2>&5 | |
16019 | ac_status=$? | |
16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16021 | (exit $ac_status); } && | |
16022 | { ac_try='test -s conftest.$ac_objext' | |
16023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16024 | (eval $ac_try) 2>&5 | |
16025 | ac_status=$? | |
16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16027 | (exit $ac_status); }; }; then | |
16028 | echo "$as_me:$LINENO: result: yes" >&5 | |
16029 | echo "${ECHO_T}yes" >&6 | |
16030 | else | |
16031 | echo "$as_me: failed program was:" >&5 | |
16032 | cat conftest.$ac_ext >&5 | |
16033 | ||
16034 | echo "$as_me:$LINENO: result: no" >&5 | |
16035 | echo "${ECHO_T}no" >&6 | |
16036 | echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | |
16037 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6 | |
16038 | cat >conftest.$ac_ext <<_ACEOF | |
16039 | #line $LINENO "configure" | |
16040 | #include "confdefs.h" | |
16041 | ||
16042 | #include <sys/types.h> | |
16043 | #include <utmp.h> | |
16044 | #ifdef HAVE_LASTLOG_H | |
16045 | # include <lastlog.h> | |
16046 | #endif | |
16047 | #ifdef HAVE_PATHS_H | |
16048 | # include <paths.h> | |
16049 | #endif | |
16050 | ||
16051 | #ifdef F77_DUMMY_MAIN | |
16052 | # ifdef __cplusplus | |
16053 | extern "C" | |
16054 | # endif | |
16055 | int F77_DUMMY_MAIN() { return 1; } | |
16056 | #endif | |
16057 | int | |
16058 | main () | |
16059 | { | |
16060 | char *lastlog = _PATH_LASTLOG; | |
16061 | ; | |
16062 | return 0; | |
16063 | } | |
16064 | _ACEOF | |
16065 | rm -f conftest.$ac_objext | |
16066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16067 | (eval $ac_compile) 2>&5 | |
16068 | ac_status=$? | |
16069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16070 | (exit $ac_status); } && | |
16071 | { ac_try='test -s conftest.$ac_objext' | |
16072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16073 | (eval $ac_try) 2>&5 | |
16074 | ac_status=$? | |
16075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16076 | (exit $ac_status); }; }; then | |
16077 | echo "$as_me:$LINENO: result: yes" >&5 | |
16078 | echo "${ECHO_T}yes" >&6 | |
16079 | else | |
16080 | echo "$as_me: failed program was:" >&5 | |
16081 | cat conftest.$ac_ext >&5 | |
16082 | ||
16083 | echo "$as_me:$LINENO: result: no" >&5 | |
16084 | echo "${ECHO_T}no" >&6 | |
16085 | system_lastlog_path=no | |
16086 | ||
16087 | fi | |
16088 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16089 | ||
16090 | ||
16091 | fi | |
16092 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16093 | ||
16094 | if test -z "$conf_lastlog_location"; then | |
16095 | if test x"$system_lastlog_path" = x"no" ; then | |
16096 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | |
16097 | if (test -d "$f" || test -f "$f") ; then | |
16098 | conf_lastlog_location=$f | |
16099 | fi | |
16100 | done | |
16101 | if test -z "$conf_lastlog_location"; then | |
16102 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | |
16103 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | |
16104 | fi | |
16105 | fi | |
16106 | fi | |
16107 | ||
16108 | if test -n "$conf_lastlog_location"; then | |
16109 | cat >>confdefs.h <<_ACEOF | |
16110 | @%:@define CONF_LASTLOG_FILE "$conf_lastlog_location" | |
16111 | _ACEOF | |
16112 | ||
16113 | fi | |
16114 | ||
16115 | echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | |
16116 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6 | |
16117 | cat >conftest.$ac_ext <<_ACEOF | |
16118 | #line $LINENO "configure" | |
16119 | #include "confdefs.h" | |
16120 | ||
16121 | #include <sys/types.h> | |
16122 | #include <utmp.h> | |
16123 | #ifdef HAVE_PATHS_H | |
16124 | # include <paths.h> | |
16125 | #endif | |
16126 | ||
16127 | #ifdef F77_DUMMY_MAIN | |
16128 | # ifdef __cplusplus | |
16129 | extern "C" | |
16130 | # endif | |
16131 | int F77_DUMMY_MAIN() { return 1; } | |
16132 | #endif | |
16133 | int | |
16134 | main () | |
16135 | { | |
16136 | char *utmp = UTMP_FILE; | |
16137 | ; | |
16138 | return 0; | |
16139 | } | |
16140 | _ACEOF | |
16141 | rm -f conftest.$ac_objext | |
16142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16143 | (eval $ac_compile) 2>&5 | |
16144 | ac_status=$? | |
16145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16146 | (exit $ac_status); } && | |
16147 | { ac_try='test -s conftest.$ac_objext' | |
16148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16149 | (eval $ac_try) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); }; }; then | |
16153 | echo "$as_me:$LINENO: result: yes" >&5 | |
16154 | echo "${ECHO_T}yes" >&6 | |
16155 | else | |
16156 | echo "$as_me: failed program was:" >&5 | |
16157 | cat conftest.$ac_ext >&5 | |
16158 | echo "$as_me:$LINENO: result: no" >&5 | |
16159 | echo "${ECHO_T}no" >&6 | |
16160 | system_utmp_path=no | |
16161 | ||
16162 | fi | |
16163 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16164 | if test -z "$conf_utmp_location"; then | |
16165 | if test x"$system_utmp_path" = x"no" ; then | |
16166 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | |
16167 | if test -f $f ; then | |
16168 | conf_utmp_location=$f | |
16169 | fi | |
16170 | done | |
16171 | if test -z "$conf_utmp_location"; then | |
16172 | cat >>confdefs.h <<\_ACEOF | |
16173 | @%:@define DISABLE_UTMP 1 | |
16174 | _ACEOF | |
16175 | ||
16176 | fi | |
16177 | fi | |
16178 | fi | |
16179 | if test -n "$conf_utmp_location"; then | |
16180 | cat >>confdefs.h <<_ACEOF | |
16181 | @%:@define CONF_UTMP_FILE "$conf_utmp_location" | |
16182 | _ACEOF | |
16183 | ||
16184 | fi | |
16185 | ||
16186 | echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | |
16187 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6 | |
16188 | cat >conftest.$ac_ext <<_ACEOF | |
16189 | #line $LINENO "configure" | |
16190 | #include "confdefs.h" | |
16191 | ||
16192 | #include <sys/types.h> | |
16193 | #include <utmp.h> | |
16194 | #ifdef HAVE_PATHS_H | |
16195 | # include <paths.h> | |
16196 | #endif | |
16197 | ||
16198 | #ifdef F77_DUMMY_MAIN | |
16199 | # ifdef __cplusplus | |
16200 | extern "C" | |
16201 | # endif | |
16202 | int F77_DUMMY_MAIN() { return 1; } | |
16203 | #endif | |
16204 | int | |
16205 | main () | |
16206 | { | |
16207 | char *wtmp = WTMP_FILE; | |
16208 | ; | |
16209 | return 0; | |
16210 | } | |
16211 | _ACEOF | |
16212 | rm -f conftest.$ac_objext | |
16213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16214 | (eval $ac_compile) 2>&5 | |
16215 | ac_status=$? | |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16217 | (exit $ac_status); } && | |
16218 | { ac_try='test -s conftest.$ac_objext' | |
16219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16220 | (eval $ac_try) 2>&5 | |
16221 | ac_status=$? | |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16223 | (exit $ac_status); }; }; then | |
16224 | echo "$as_me:$LINENO: result: yes" >&5 | |
16225 | echo "${ECHO_T}yes" >&6 | |
16226 | else | |
16227 | echo "$as_me: failed program was:" >&5 | |
16228 | cat conftest.$ac_ext >&5 | |
16229 | echo "$as_me:$LINENO: result: no" >&5 | |
16230 | echo "${ECHO_T}no" >&6 | |
16231 | system_wtmp_path=no | |
16232 | ||
16233 | fi | |
16234 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16235 | if test -z "$conf_wtmp_location"; then | |
16236 | if test x"$system_wtmp_path" = x"no" ; then | |
16237 | for f in /usr/adm/wtmp /var/log/wtmp; do | |
16238 | if test -f $f ; then | |
16239 | conf_wtmp_location=$f | |
16240 | fi | |
16241 | done | |
16242 | if test -z "$conf_wtmp_location"; then | |
16243 | cat >>confdefs.h <<\_ACEOF | |
16244 | @%:@define DISABLE_WTMP 1 | |
16245 | _ACEOF | |
16246 | ||
16247 | fi | |
16248 | fi | |
16249 | fi | |
16250 | if test -n "$conf_wtmp_location"; then | |
16251 | cat >>confdefs.h <<_ACEOF | |
16252 | @%:@define CONF_WTMP_FILE "$conf_wtmp_location" | |
16253 | _ACEOF | |
16254 | ||
16255 | fi | |
16256 | ||
16257 | ||
16258 | echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | |
16259 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6 | |
16260 | cat >conftest.$ac_ext <<_ACEOF | |
16261 | #line $LINENO "configure" | |
16262 | #include "confdefs.h" | |
16263 | ||
16264 | #include <sys/types.h> | |
16265 | #include <utmp.h> | |
16266 | #ifdef HAVE_UTMPX_H | |
16267 | #include <utmpx.h> | |
16268 | #endif | |
16269 | #ifdef HAVE_PATHS_H | |
16270 | # include <paths.h> | |
16271 | #endif | |
16272 | ||
16273 | #ifdef F77_DUMMY_MAIN | |
16274 | # ifdef __cplusplus | |
16275 | extern "C" | |
16276 | # endif | |
16277 | int F77_DUMMY_MAIN() { return 1; } | |
16278 | #endif | |
16279 | int | |
16280 | main () | |
16281 | { | |
16282 | char *utmpx = UTMPX_FILE; | |
16283 | ; | |
16284 | return 0; | |
16285 | } | |
16286 | _ACEOF | |
16287 | rm -f conftest.$ac_objext | |
16288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16289 | (eval $ac_compile) 2>&5 | |
16290 | ac_status=$? | |
16291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16292 | (exit $ac_status); } && | |
16293 | { ac_try='test -s conftest.$ac_objext' | |
16294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16295 | (eval $ac_try) 2>&5 | |
16296 | ac_status=$? | |
16297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16298 | (exit $ac_status); }; }; then | |
16299 | echo "$as_me:$LINENO: result: yes" >&5 | |
16300 | echo "${ECHO_T}yes" >&6 | |
16301 | else | |
16302 | echo "$as_me: failed program was:" >&5 | |
16303 | cat conftest.$ac_ext >&5 | |
16304 | echo "$as_me:$LINENO: result: no" >&5 | |
16305 | echo "${ECHO_T}no" >&6 | |
16306 | system_utmpx_path=no | |
16307 | ||
16308 | fi | |
16309 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16310 | if test -z "$conf_utmpx_location"; then | |
16311 | if test x"$system_utmpx_path" = x"no" ; then | |
16312 | cat >>confdefs.h <<\_ACEOF | |
16313 | @%:@define DISABLE_UTMPX 1 | |
16314 | _ACEOF | |
16315 | ||
16316 | fi | |
16317 | else | |
16318 | cat >>confdefs.h <<_ACEOF | |
16319 | @%:@define CONF_UTMPX_FILE "$conf_utmpx_location" | |
16320 | _ACEOF | |
16321 | ||
16322 | fi | |
16323 | ||
16324 | echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | |
16325 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6 | |
16326 | cat >conftest.$ac_ext <<_ACEOF | |
16327 | #line $LINENO "configure" | |
16328 | #include "confdefs.h" | |
16329 | ||
16330 | #include <sys/types.h> | |
16331 | #include <utmp.h> | |
16332 | #ifdef HAVE_UTMPX_H | |
16333 | #include <utmpx.h> | |
16334 | #endif | |
16335 | #ifdef HAVE_PATHS_H | |
16336 | # include <paths.h> | |
16337 | #endif | |
16338 | ||
16339 | #ifdef F77_DUMMY_MAIN | |
16340 | # ifdef __cplusplus | |
16341 | extern "C" | |
16342 | # endif | |
16343 | int F77_DUMMY_MAIN() { return 1; } | |
16344 | #endif | |
16345 | int | |
16346 | main () | |
16347 | { | |
16348 | char *wtmpx = WTMPX_FILE; | |
16349 | ; | |
16350 | return 0; | |
16351 | } | |
16352 | _ACEOF | |
16353 | rm -f conftest.$ac_objext | |
16354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16355 | (eval $ac_compile) 2>&5 | |
16356 | ac_status=$? | |
16357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16358 | (exit $ac_status); } && | |
16359 | { ac_try='test -s conftest.$ac_objext' | |
16360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16361 | (eval $ac_try) 2>&5 | |
16362 | ac_status=$? | |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16364 | (exit $ac_status); }; }; then | |
16365 | echo "$as_me:$LINENO: result: yes" >&5 | |
16366 | echo "${ECHO_T}yes" >&6 | |
16367 | else | |
16368 | echo "$as_me: failed program was:" >&5 | |
16369 | cat conftest.$ac_ext >&5 | |
16370 | echo "$as_me:$LINENO: result: no" >&5 | |
16371 | echo "${ECHO_T}no" >&6 | |
16372 | system_wtmpx_path=no | |
16373 | ||
16374 | fi | |
16375 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16376 | if test -z "$conf_wtmpx_location"; then | |
16377 | if test x"$system_wtmpx_path" = x"no" ; then | |
16378 | cat >>confdefs.h <<\_ACEOF | |
16379 | @%:@define DISABLE_WTMPX 1 | |
16380 | _ACEOF | |
16381 | ||
16382 | fi | |
16383 | else | |
16384 | cat >>confdefs.h <<_ACEOF | |
16385 | @%:@define CONF_WTMPX_FILE "$conf_wtmpx_location" | |
16386 | _ACEOF | |
16387 | ||
16388 | fi | |
16389 | ||
16390 | ||
16391 | if test ! -z "$blibpath" ; then | |
16392 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | |
16393 | { echo "$as_me:$LINENO: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&5 | |
16394 | echo "$as_me: WARNING: Please check and edit -blibpath in LDFLAGS in Makefile" >&2;} | |
16395 | fi | |
16396 | ||
16397 | if test "$PAM_MSG" = yes ; then | |
16398 | LIBS=`echo $LIBS | sed 's/-lpam //'` | |
16399 | fi | |
16400 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | |
16401 | LIBS=`echo $LIBS | sed 's/-ldl //'` | |
16402 | fi | |
16403 | ||
16404 | ||
16405 | ac_config_files="$ac_config_files Makefile openbsd-compat/Makefile scard/Makefile ssh_prng_cmds" | |
16406 | ||
16407 | cat >confcache <<\_ACEOF | |
16408 | # This file is a shell script that caches the results of configure | |
16409 | # tests run on this system so they can be shared between configure | |
16410 | # scripts and configure runs, see configure's option --config-cache. | |
16411 | # It is not useful on other systems. If it contains results you don't | |
16412 | # want to keep, you may remove or edit it. | |
16413 | # | |
16414 | # config.status only pays attention to the cache file if you give it | |
16415 | # the --recheck option to rerun configure. | |
16416 | # | |
16417 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
16418 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16419 | # following values. | |
16420 | ||
16421 | _ACEOF | |
16422 | ||
16423 | # The following way of writing the cache mishandles newlines in values, | |
16424 | # but we know of no workaround that is simple, portable, and efficient. | |
16425 | # So, don't put newlines in cache variables' values. | |
16426 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16427 | # and sets the high bit in the cache file unless we assign to the vars. | |
16428 | { | |
16429 | (set) 2>&1 | | |
16430 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16431 | *ac_space=\ *) | |
16432 | # `set' does not quote correctly, so add quotes (double-quote | |
16433 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16434 | sed -n \ | |
16435 | "s/'/'\\\\''/g; | |
16436 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16437 | ;; | |
16438 | *) | |
16439 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16440 | sed -n \ | |
16441 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
16442 | ;; | |
16443 | esac; | |
16444 | } | | |
16445 | sed ' | |
16446 | t clear | |
16447 | : clear | |
16448 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16449 | t end | |
16450 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16451 | : end' >>confcache | |
16452 | if cmp -s $cache_file confcache; then :; else | |
16453 | if test -w $cache_file; then | |
16454 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
16455 | cat confcache >$cache_file | |
16456 | else | |
16457 | echo "not updating unwritable cache $cache_file" | |
16458 | fi | |
16459 | fi | |
16460 | rm -f confcache | |
16461 | ||
16462 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16463 | # Let make expand exec_prefix. | |
16464 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16465 | ||
16466 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
16467 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16468 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16469 | # (actually we leave an empty line to preserve line numbers). | |
16470 | if test "x$srcdir" = x.; then | |
16471 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16472 | s/:*\$(srcdir):*/:/; | |
16473 | s/:*\${srcdir}:*/:/; | |
16474 | s/:*@srcdir@:*/:/; | |
16475 | s/^\([^=]*=[ ]*\):*/\1/; | |
16476 | s/:*$//; | |
16477 | s/^[^=]*=[ ]*$//; | |
16478 | }' | |
16479 | fi | |
16480 | ||
16481 | DEFS=-DHAVE_CONFIG_H | |
16482 | ||
16483 | ||
16484 | : ${CONFIG_STATUS=./config.status} | |
16485 | ac_clean_files_save=$ac_clean_files | |
16486 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16487 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
16488 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16489 | cat >$CONFIG_STATUS <<_ACEOF | |
16490 | #! $SHELL | |
16491 | # Generated by $as_me. | |
16492 | # Run this file to recreate the current configuration. | |
16493 | # Compiler output produced by configure, useful for debugging | |
16494 | # configure, is in config.log if it exists. | |
16495 | ||
16496 | debug=false | |
16497 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16498 | _ACEOF | |
16499 | ||
16500 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16501 | ||
16502 | ## --------------------- ## | |
16503 | ## M4sh Initialization. ## | |
16504 | ## --------------------- ## | |
16505 | ||
16506 | # Be Bourne compatible | |
16507 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16508 | emulate sh | |
16509 | NULLCMD=: | |
16510 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
16511 | set -o posix | |
16512 | fi | |
16513 | ||
16514 | # NLS nuisances. | |
16515 | # Support unset when possible. | |
16516 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
16517 | as_unset=unset | |
16518 | else | |
16519 | as_unset=false | |
16520 | fi | |
16521 | ||
16522 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
16523 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
16524 | { LANG=C; export LANG; } | |
16525 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
16526 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
16527 | { LC_ALL=C; export LC_ALL; } | |
16528 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
16529 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
16530 | { LC_TIME=C; export LC_TIME; } | |
16531 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
16532 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
16533 | { LC_CTYPE=C; export LC_CTYPE; } | |
16534 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
16535 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
16536 | { LANGUAGE=C; export LANGUAGE; } | |
16537 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
16538 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
16539 | { LC_COLLATE=C; export LC_COLLATE; } | |
16540 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
16541 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
16542 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
16543 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
16544 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
16545 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
16546 | ||
16547 | ||
16548 | # Name of the executable. | |
16549 | as_me=`(basename "$0") 2>/dev/null || | |
16550 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16551 | X"$0" : 'X\(//\)$' \| \ | |
16552 | X"$0" : 'X\(/\)$' \| \ | |
16553 | . : '\(.\)' 2>/dev/null || | |
16554 | echo X/"$0" | | |
16555 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
16556 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
16557 | /^X\/\(\/\).*/{ s//\1/; q; } | |
16558 | s/.*/./; q'` | |
16559 | ||
16560 | # PATH needs CR, and LINENO needs CR and PATH. | |
16561 | # Avoid depending upon Character Ranges. | |
16562 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16563 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16564 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16565 | as_cr_digits='0123456789' | |
16566 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16567 | ||
16568 | # The user is always right. | |
16569 | if test "${PATH_SEPARATOR+set}" != set; then | |
16570 | echo "#! /bin/sh" >conftest.sh | |
16571 | echo "exit 0" >>conftest.sh | |
16572 | chmod +x conftest.sh | |
16573 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
16574 | PATH_SEPARATOR=';' | |
16575 | else | |
16576 | PATH_SEPARATOR=: | |
16577 | fi | |
16578 | rm -f conftest.sh | |
16579 | fi | |
16580 | ||
16581 | ||
16582 | as_lineno_1=$LINENO | |
16583 | as_lineno_2=$LINENO | |
16584 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16585 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
16586 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
16587 | # Find who we are. Look in the path if we contain no path at all | |
16588 | # relative or not. | |
16589 | case $0 in | |
16590 | *[\\/]* ) as_myself=$0 ;; | |
16591 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16592 | for as_dir in $PATH | |
16593 | do | |
16594 | IFS=$as_save_IFS | |
16595 | test -z "$as_dir" && as_dir=. | |
16596 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16597 | done | |
16598 | ||
16599 | ;; | |
16600 | esac | |
16601 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16602 | # in which case we are not to be found in the path. | |
16603 | if test "x$as_myself" = x; then | |
16604 | as_myself=$0 | |
16605 | fi | |
16606 | if test ! -f "$as_myself"; then | |
16607 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
16608 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
16609 | { (exit 1); exit 1; }; } | |
16610 | fi | |
16611 | case $CONFIG_SHELL in | |
16612 | '') | |
16613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16614 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
16615 | do | |
16616 | IFS=$as_save_IFS | |
16617 | test -z "$as_dir" && as_dir=. | |
16618 | for as_base in sh bash ksh sh5; do | |
16619 | case $as_dir in | |
16620 | /*) | |
16621 | if ("$as_dir/$as_base" -c ' | |
16622 | as_lineno_1=$LINENO | |
16623 | as_lineno_2=$LINENO | |
16624 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16625 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
16626 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
16627 | CONFIG_SHELL=$as_dir/$as_base | |
16628 | export CONFIG_SHELL | |
16629 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
16630 | fi;; | |
16631 | esac | |
16632 | done | |
16633 | done | |
16634 | ;; | |
16635 | esac | |
16636 | ||
16637 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
16638 | # uniformly replaced by the line number. The first 'sed' inserts a | |
16639 | # line-number line before each line; the second 'sed' does the real | |
16640 | # work. The second script uses 'N' to pair each line-number line | |
16641 | # with the numbered line, and appends trailing '-' during | |
16642 | # substitution so that $LINENO is not a special case at line end. | |
16643 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
16644 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
16645 | sed '=' <$as_myself | | |
16646 | sed ' | |
16647 | N | |
16648 | s,$,-, | |
16649 | : loop | |
16650 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
16651 | t loop | |
16652 | s,-$,, | |
16653 | s,^['$as_cr_digits']*\n,, | |
16654 | ' >$as_me.lineno && | |
16655 | chmod +x $as_me.lineno || | |
16656 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
16657 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
16658 | { (exit 1); exit 1; }; } | |
16659 | ||
16660 | # Don't try to exec as it changes $[0], causing all sort of problems | |
16661 | # (the dirname of $[0] is not the place where we might find the | |
16662 | # original and so on. Autoconf is especially sensible to this). | |
16663 | . ./$as_me.lineno | |
16664 | # Exit status is that of the last command. | |
16665 | exit | |
16666 | } | |
16667 | ||
16668 | ||
16669 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
16670 | *c*,-n*) ECHO_N= ECHO_C=' | |
16671 | ' ECHO_T=' ' ;; | |
16672 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
16673 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
16674 | esac | |
16675 | ||
16676 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
16677 | as_expr=expr | |
16678 | else | |
16679 | as_expr=false | |
16680 | fi | |
16681 | ||
16682 | rm -f conf$$ conf$$.exe conf$$.file | |
16683 | echo >conf$$.file | |
16684 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16685 | # We could just check for DJGPP; but this test a) works b) is more generic | |
16686 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
16687 | if test -f conf$$.exe; then | |
16688 | # Don't use ln at all; we don't have any links | |
16689 | as_ln_s='cp -p' | |
16690 | else | |
16691 | as_ln_s='ln -s' | |
16692 | fi | |
16693 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16694 | as_ln_s=ln | |
16695 | else | |
16696 | as_ln_s='cp -p' | |
16697 | fi | |
16698 | rm -f conf$$ conf$$.exe conf$$.file | |
16699 | ||
16700 | as_executable_p="test -f" | |
16701 | ||
16702 | # Sed expression to map a string onto a valid CPP name. | |
16703 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
16704 | ||
16705 | # Sed expression to map a string onto a valid variable name. | |
16706 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
16707 | ||
16708 | ||
16709 | # IFS | |
16710 | # We need space, tab and new line, in precisely that order. | |
16711 | as_nl=' | |
16712 | ' | |
16713 | IFS=" $as_nl" | |
16714 | ||
16715 | # CDPATH. | |
16716 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
16717 | ||
16718 | exec 6>&1 | |
16719 | ||
16720 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
16721 | # report actual input values of CONFIG_FILES etc. instead of their | |
16722 | # values after options handling. Logging --version etc. is OK. | |
16723 | exec 5>>config.log | |
16724 | { | |
16725 | echo | |
16726 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX | |
16727 | @%:@@%:@ Running $as_me. @%:@@%:@ | |
16728 | _ASBOX | |
16729 | } >&5 | |
16730 | cat >&5 <<_CSEOF | |
16731 | ||
16732 | This file was extended by $as_me, which was | |
16733 | generated by GNU Autoconf 2.53. Invocation command line was | |
16734 | ||
16735 | CONFIG_FILES = $CONFIG_FILES | |
16736 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16737 | CONFIG_LINKS = $CONFIG_LINKS | |
16738 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16739 | $ $0 $@ | |
16740 | ||
16741 | _CSEOF | |
16742 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
16743 | echo >&5 | |
16744 | _ACEOF | |
16745 | ||
16746 | # Files that config.status was made for. | |
16747 | if test -n "$ac_config_files"; then | |
16748 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
16749 | fi | |
16750 | ||
16751 | if test -n "$ac_config_headers"; then | |
16752 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
16753 | fi | |
16754 | ||
16755 | if test -n "$ac_config_links"; then | |
16756 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
16757 | fi | |
16758 | ||
16759 | if test -n "$ac_config_commands"; then | |
16760 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
16761 | fi | |
16762 | ||
16763 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16764 | ||
16765 | ac_cs_usage="\ | |
16766 | \`$as_me' instantiates files from templates according to the | |
16767 | current configuration. | |
16768 | ||
16769 | Usage: $0 [OPTIONS] [FILE]... | |
16770 | ||
16771 | -h, --help print this help, then exit | |
16772 | -V, --version print version number, then exit | |
16773 | -d, --debug don't remove temporary files | |
16774 | --recheck update $as_me by reconfiguring in the same conditions | |
16775 | --file=FILE[:TEMPLATE] | |
16776 | instantiate the configuration file FILE | |
16777 | --header=FILE[:TEMPLATE] | |
16778 | instantiate the configuration header FILE | |
16779 | ||
16780 | Configuration files: | |
16781 | $config_files | |
16782 | ||
16783 | Configuration headers: | |
16784 | $config_headers | |
16785 | ||
16786 | Report bugs to <bug-autoconf@gnu.org>." | |
16787 | _ACEOF | |
16788 | ||
16789 | cat >>$CONFIG_STATUS <<_ACEOF | |
16790 | ac_cs_version="\\ | |
16791 | config.status | |
16792 | configured by $0, generated by GNU Autoconf 2.53, | |
16793 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
16794 | ||
16795 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
16796 | Free Software Foundation, Inc. | |
16797 | This config.status script is free software; the Free Software Foundation | |
16798 | gives unlimited permission to copy, distribute and modify it." | |
16799 | srcdir=$srcdir | |
16800 | INSTALL="$INSTALL" | |
16801 | _ACEOF | |
16802 | ||
16803 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16804 | # If no file are specified by the user, then we need to provide default | |
16805 | # value. By we need to know if files were specified by the user. | |
16806 | ac_need_defaults=: | |
16807 | while test $# != 0 | |
16808 | do | |
16809 | case $1 in | |
16810 | --*=*) | |
16811 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
16812 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
16813 | shift | |
16814 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
16815 | shift | |
16816 | ;; | |
16817 | -*);; | |
16818 | *) # This is not an option, so the user has probably given explicit | |
16819 | # arguments. | |
16820 | ac_need_defaults=false;; | |
16821 | esac | |
16822 | ||
16823 | case $1 in | |
16824 | # Handling of the options. | |
16825 | _ACEOF | |
16826 | cat >>$CONFIG_STATUS <<_ACEOF | |
16827 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16828 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
16829 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
16830 | _ACEOF | |
16831 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16832 | --version | --vers* | -V ) | |
16833 | echo "$ac_cs_version"; exit 0 ;; | |
16834 | --he | --h) | |
16835 | # Conflict between --help and --header | |
16836 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
16837 | Try \`$0 --help' for more information." >&5 | |
16838 | echo "$as_me: error: ambiguous option: $1 | |
16839 | Try \`$0 --help' for more information." >&2;} | |
16840 | { (exit 1); exit 1; }; };; | |
16841 | --help | --hel | -h ) | |
16842 | echo "$ac_cs_usage"; exit 0 ;; | |
16843 | --debug | --d* | -d ) | |
16844 | debug=: ;; | |
16845 | --file | --fil | --fi | --f ) | |
16846 | shift | |
16847 | CONFIG_FILES="$CONFIG_FILES $1" | |
16848 | ac_need_defaults=false;; | |
16849 | --header | --heade | --head | --hea ) | |
16850 | shift | |
16851 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
16852 | ac_need_defaults=false;; | |
16853 | ||
16854 | # This is an error. | |
16855 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
16856 | Try \`$0 --help' for more information." >&5 | |
16857 | echo "$as_me: error: unrecognized option: $1 | |
16858 | Try \`$0 --help' for more information." >&2;} | |
16859 | { (exit 1); exit 1; }; } ;; | |
16860 | ||
16861 | *) ac_config_targets="$ac_config_targets $1" ;; | |
16862 | ||
16863 | esac | |
16864 | shift | |
16865 | done | |
16866 | ||
16867 | _ACEOF | |
16868 | ||
16869 | ||
16870 | ||
16871 | ||
16872 | ||
16873 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16874 | for ac_config_target in $ac_config_targets | |
16875 | do | |
16876 | case "$ac_config_target" in | |
16877 | # Handling of arguments. | |
16878 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16879 | "openbsd-compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | |
16880 | "scard/Makefile" ) CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | |
16881 | "ssh_prng_cmds" ) CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | |
16882 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
16883 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
16884 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
16885 | { (exit 1); exit 1; }; };; | |
16886 | esac | |
16887 | done | |
16888 | ||
16889 | # If the user did not use the arguments to specify the items to instantiate, | |
16890 | # then the envvar interface is used. Set only those that are not. | |
16891 | # We use the long form for the default assignment because of an extremely | |
16892 | # bizarre bug on SunOS 4.1.3. | |
16893 | if $ac_need_defaults; then | |
16894 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16895 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16896 | fi | |
16897 | ||
16898 | # Create a temporary directory, and hook for its removal unless debugging. | |
16899 | $debug || | |
16900 | { | |
16901 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
16902 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
16903 | } | |
16904 | ||
16905 | # Create a (secure) tmp directory for tmp files. | |
16906 | : ${TMPDIR=/tmp} | |
16907 | { | |
16908 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
16909 | test -n "$tmp" && test -d "$tmp" | |
16910 | } || | |
16911 | { | |
16912 | tmp=$TMPDIR/cs$$-$RANDOM | |
16913 | (umask 077 && mkdir $tmp) | |
16914 | } || | |
16915 | { | |
16916 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
16917 | { (exit 1); exit 1; } | |
16918 | } | |
16919 | ||
16920 | _ACEOF | |
16921 | ||
16922 | cat >>$CONFIG_STATUS <<_ACEOF | |
16923 | ||
16924 | # | |
16925 | # CONFIG_FILES section. | |
16926 | # | |
16927 | ||
16928 | # No need to generate the scripts if there are no CONFIG_FILES. | |
16929 | # This happens for instance when ./config.status config.h | |
16930 | if test -n "\$CONFIG_FILES"; then | |
16931 | # Protect against being on the right side of a sed subst in config.status. | |
16932 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
16933 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
16934 | s,@SHELL@,$SHELL,;t t | |
16935 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
16936 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
16937 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
16938 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
16939 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
16940 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
16941 | s,@exec_prefix@,$exec_prefix,;t t | |
16942 | s,@prefix@,$prefix,;t t | |
16943 | s,@program_transform_name@,$program_transform_name,;t t | |
16944 | s,@bindir@,$bindir,;t t | |
16945 | s,@sbindir@,$sbindir,;t t | |
16946 | s,@libexecdir@,$libexecdir,;t t | |
16947 | s,@datadir@,$datadir,;t t | |
16948 | s,@sysconfdir@,$sysconfdir,;t t | |
16949 | s,@sharedstatedir@,$sharedstatedir,;t t | |
16950 | s,@localstatedir@,$localstatedir,;t t | |
16951 | s,@libdir@,$libdir,;t t | |
16952 | s,@includedir@,$includedir,;t t | |
16953 | s,@oldincludedir@,$oldincludedir,;t t | |
16954 | s,@infodir@,$infodir,;t t | |
16955 | s,@mandir@,$mandir,;t t | |
16956 | s,@build_alias@,$build_alias,;t t | |
16957 | s,@host_alias@,$host_alias,;t t | |
16958 | s,@target_alias@,$target_alias,;t t | |
16959 | s,@DEFS@,$DEFS,;t t | |
16960 | s,@ECHO_C@,$ECHO_C,;t t | |
16961 | s,@ECHO_N@,$ECHO_N,;t t | |
16962 | s,@ECHO_T@,$ECHO_T,;t t | |
16963 | s,@LIBS@,$LIBS,;t t | |
16964 | s,@CC@,$CC,;t t | |
16965 | s,@CFLAGS@,$CFLAGS,;t t | |
16966 | s,@LDFLAGS@,$LDFLAGS,;t t | |
16967 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
16968 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
16969 | s,@EXEEXT@,$EXEEXT,;t t | |
16970 | s,@OBJEXT@,$OBJEXT,;t t | |
16971 | s,@build@,$build,;t t | |
16972 | s,@build_cpu@,$build_cpu,;t t | |
16973 | s,@build_vendor@,$build_vendor,;t t | |
16974 | s,@build_os@,$build_os,;t t | |
16975 | s,@host@,$host,;t t | |
16976 | s,@host_cpu@,$host_cpu,;t t | |
16977 | s,@host_vendor@,$host_vendor,;t t | |
16978 | s,@host_os@,$host_os,;t t | |
16979 | s,@CPP@,$CPP,;t t | |
16980 | s,@RANLIB@,$RANLIB,;t t | |
16981 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
16982 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
16983 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
16984 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
16985 | s,@AR@,$AR,;t t | |
16986 | s,@PERL@,$PERL,;t t | |
16987 | s,@ENT@,$ENT,;t t | |
16988 | s,@FILEPRIV@,$FILEPRIV,;t t | |
16989 | s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t | |
16990 | s,@SH@,$SH,;t t | |
16991 | s,@LOGIN_PROGRAM_FALLBACK@,$LOGIN_PROGRAM_FALLBACK,;t t | |
16992 | s,@LD@,$LD,;t t | |
16993 | s,@LIBWRAP@,$LIBWRAP,;t t | |
16994 | s,@LIBPAM@,$LIBPAM,;t t | |
16995 | s,@INSTALL_SSH_RAND_HELPER@,$INSTALL_SSH_RAND_HELPER,;t t | |
16996 | s,@PROG_LS@,$PROG_LS,;t t | |
16997 | s,@PROG_NETSTAT@,$PROG_NETSTAT,;t t | |
16998 | s,@PROG_ARP@,$PROG_ARP,;t t | |
16999 | s,@PROG_IFCONFIG@,$PROG_IFCONFIG,;t t | |
17000 | s,@PROG_JSTAT@,$PROG_JSTAT,;t t | |
17001 | s,@PROG_PS@,$PROG_PS,;t t | |
17002 | s,@PROG_SAR@,$PROG_SAR,;t t | |
17003 | s,@PROG_W@,$PROG_W,;t t | |
17004 | s,@PROG_WHO@,$PROG_WHO,;t t | |
17005 | s,@PROG_LAST@,$PROG_LAST,;t t | |
17006 | s,@PROG_LASTLOG@,$PROG_LASTLOG,;t t | |
17007 | s,@PROG_DF@,$PROG_DF,;t t | |
17008 | s,@PROG_VMSTAT@,$PROG_VMSTAT,;t t | |
17009 | s,@PROG_UPTIME@,$PROG_UPTIME,;t t | |
17010 | s,@PROG_IPCS@,$PROG_IPCS,;t t | |
17011 | s,@PROG_TAIL@,$PROG_TAIL,;t t | |
17012 | s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t | |
17013 | s,@NO_SFTP@,$NO_SFTP,;t t | |
17014 | s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t | |
17015 | s,@rsh_path@,$rsh_path,;t t | |
17016 | s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t | |
17017 | s,@xauth_path@,$xauth_path,;t t | |
17018 | s,@XAUTH_PATH@,$XAUTH_PATH,;t t | |
17019 | s,@NROFF@,$NROFF,;t t | |
17020 | s,@MANTYPE@,$MANTYPE,;t t | |
17021 | s,@mansubdir@,$mansubdir,;t t | |
17022 | s,@user_path@,$user_path,;t t | |
700318f3 | 17023 | s,@piddir@,$piddir,;t t |
17024 | CEOF | |
17025 | ||
17026 | _ACEOF | |
17027 | ||
17028 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17029 | # Split the substitutions into bite-sized pieces for seds with | |
17030 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17031 | ac_max_sed_lines=48 | |
17032 | ac_sed_frag=1 # Number of current file. | |
17033 | ac_beg=1 # First line for current file. | |
17034 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
17035 | ac_more_lines=: | |
17036 | ac_sed_cmds= | |
17037 | while $ac_more_lines; do | |
17038 | if test $ac_beg -gt 1; then | |
17039 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
17040 | else | |
17041 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
17042 | fi | |
17043 | if test ! -s $tmp/subs.frag; then | |
17044 | ac_more_lines=false | |
17045 | else | |
17046 | # The purpose of the label and of the branching condition is to | |
17047 | # speed up the sed processing (if there are no `@' at all, there | |
17048 | # is no need to browse any of the substitutions). | |
17049 | # These are the two extra sed commands mentioned above. | |
17050 | (echo ':t | |
17051 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
17052 | if test -z "$ac_sed_cmds"; then | |
17053 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
17054 | else | |
17055 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
17056 | fi | |
17057 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
17058 | ac_beg=$ac_end | |
17059 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
17060 | fi | |
17061 | done | |
17062 | if test -z "$ac_sed_cmds"; then | |
17063 | ac_sed_cmds=cat | |
17064 | fi | |
17065 | fi # test -n "$CONFIG_FILES" | |
17066 | ||
17067 | _ACEOF | |
17068 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17069 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
17070 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
17071 | case $ac_file in | |
17072 | - | *:- | *:-:* ) # input from stdin | |
17073 | cat >$tmp/stdin | |
17074 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17075 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17076 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17077 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17078 | * ) ac_file_in=$ac_file.in ;; | |
17079 | esac | |
17080 | ||
17081 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
17082 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
17083 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17084 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17085 | X"$ac_file" : 'X\(//\)$' \| \ | |
17086 | X"$ac_file" : 'X\(/\)' \| \ | |
17087 | . : '\(.\)' 2>/dev/null || | |
17088 | echo X"$ac_file" | | |
17089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17090 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17091 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17092 | /^X\(\/\).*/{ s//\1/; q; } | |
17093 | s/.*/./; q'` | |
17094 | { case "$ac_dir" in | |
17095 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
17096 | *) as_incr_dir=.;; | |
17097 | esac | |
17098 | as_dummy="$ac_dir" | |
17099 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
17100 | case $as_mkdir_dir in | |
17101 | # Skip DOS drivespec | |
17102 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
17103 | *) | |
17104 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
17105 | test -d "$as_incr_dir" || | |
17106 | mkdir "$as_incr_dir" || | |
17107 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
17108 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
17109 | { (exit 1); exit 1; }; } | |
17110 | ;; | |
17111 | esac | |
17112 | done; } | |
17113 | ||
17114 | ac_builddir=. | |
17115 | ||
17116 | if test "$ac_dir" != .; then | |
17117 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
17118 | # A "../" for each directory in $ac_dir_suffix. | |
17119 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
17120 | else | |
17121 | ac_dir_suffix= ac_top_builddir= | |
17122 | fi | |
17123 | ||
17124 | case $srcdir in | |
17125 | .) # No --srcdir option. We are building in place. | |
17126 | ac_srcdir=. | |
17127 | if test -z "$ac_top_builddir"; then | |
17128 | ac_top_srcdir=. | |
17129 | else | |
17130 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
17131 | fi ;; | |
17132 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
17133 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17134 | ac_top_srcdir=$srcdir ;; | |
17135 | *) # Relative path. | |
17136 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
17137 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
17138 | esac | |
17139 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
17140 | # absolute. | |
17141 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
17142 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
17143 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
17144 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
17145 | ||
17146 | ||
17147 | case $INSTALL in | |
17148 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17149 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
17150 | esac | |
17151 | ||
17152 | if test x"$ac_file" != x-; then | |
17153 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
17154 | echo "$as_me: creating $ac_file" >&6;} | |
17155 | rm -f "$ac_file" | |
17156 | fi | |
17157 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17158 | # use $as_me), people would be surprised to read: | |
17159 | # /* config.h. Generated by config.status. */ | |
17160 | if test x"$ac_file" = x-; then | |
17161 | configure_input= | |
17162 | else | |
17163 | configure_input="$ac_file. " | |
17164 | fi | |
17165 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
17166 | sed 's,.*/,,'` by configure." | |
17167 | ||
17168 | # First look for the input files in the build tree, otherwise in the | |
17169 | # src tree. | |
17170 | ac_file_inputs=`IFS=: | |
17171 | for f in $ac_file_in; do | |
17172 | case $f in | |
17173 | -) echo $tmp/stdin ;; | |
17174 | [\\/$]*) | |
17175 | # Absolute (can't be DOS-style, as IFS=:) | |
17176 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17177 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17178 | { (exit 1); exit 1; }; } | |
17179 | echo $f;; | |
17180 | *) # Relative | |
17181 | if test -f "$f"; then | |
17182 | # Build tree | |
17183 | echo $f | |
17184 | elif test -f "$srcdir/$f"; then | |
17185 | # Source tree | |
17186 | echo $srcdir/$f | |
17187 | else | |
17188 | # /dev/null tree | |
17189 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17190 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17191 | { (exit 1); exit 1; }; } | |
17192 | fi;; | |
17193 | esac | |
17194 | done` || { (exit 1); exit 1; } | |
17195 | _ACEOF | |
17196 | cat >>$CONFIG_STATUS <<_ACEOF | |
17197 | sed "$ac_vpsub | |
17198 | $extrasub | |
17199 | _ACEOF | |
17200 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17201 | :t | |
17202 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17203 | s,@configure_input@,$configure_input,;t t | |
17204 | s,@srcdir@,$ac_srcdir,;t t | |
17205 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
17206 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
17207 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
17208 | s,@builddir@,$ac_builddir,;t t | |
17209 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
17210 | s,@top_builddir@,$ac_top_builddir,;t t | |
17211 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
17212 | s,@INSTALL@,$ac_INSTALL,;t t | |
17213 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
17214 | rm -f $tmp/stdin | |
17215 | if test x"$ac_file" != x-; then | |
17216 | mv $tmp/out $ac_file | |
17217 | else | |
17218 | cat $tmp/out | |
17219 | rm -f $tmp/out | |
17220 | fi | |
17221 | ||
17222 | done | |
17223 | _ACEOF | |
17224 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17225 | ||
17226 | # | |
17227 | # CONFIG_HEADER section. | |
17228 | # | |
17229 | ||
17230 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17231 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17232 | # | |
17233 | # ac_d sets the value in "#define NAME VALUE" lines. | |
17234 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
17235 | ac_dB='[ ].*$,\1#\2' | |
17236 | ac_dC=' ' | |
17237 | ac_dD=',;t' | |
17238 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17239 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17240 | ac_uB='$,\1#\2define\3' | |
17241 | ac_uC=' ' | |
17242 | ac_uD=',;t' | |
17243 | ||
17244 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
17245 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
17246 | case $ac_file in | |
17247 | - | *:- | *:-:* ) # input from stdin | |
17248 | cat >$tmp/stdin | |
17249 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17250 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17251 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17252 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17253 | * ) ac_file_in=$ac_file.in ;; | |
17254 | esac | |
17255 | ||
17256 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
17257 | echo "$as_me: creating $ac_file" >&6;} | |
17258 | ||
17259 | # First look for the input files in the build tree, otherwise in the | |
17260 | # src tree. | |
17261 | ac_file_inputs=`IFS=: | |
17262 | for f in $ac_file_in; do | |
17263 | case $f in | |
17264 | -) echo $tmp/stdin ;; | |
17265 | [\\/$]*) | |
17266 | # Absolute (can't be DOS-style, as IFS=:) | |
17267 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17268 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17269 | { (exit 1); exit 1; }; } | |
17270 | echo $f;; | |
17271 | *) # Relative | |
17272 | if test -f "$f"; then | |
17273 | # Build tree | |
17274 | echo $f | |
17275 | elif test -f "$srcdir/$f"; then | |
17276 | # Source tree | |
17277 | echo $srcdir/$f | |
17278 | else | |
17279 | # /dev/null tree | |
17280 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17281 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17282 | { (exit 1); exit 1; }; } | |
17283 | fi;; | |
17284 | esac | |
17285 | done` || { (exit 1); exit 1; } | |
17286 | # Remove the trailing spaces. | |
17287 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
17288 | ||
17289 | _ACEOF | |
17290 | ||
17291 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
17292 | # `conftest.undefs', that substitutes the proper values into | |
17293 | # config.h.in to produce config.h. The first handles `#define' | |
17294 | # templates, and the second `#undef' templates. | |
17295 | # And first: Protect against being on the right side of a sed subst in | |
17296 | # config.status. Protect against being in an unquoted here document | |
17297 | # in config.status. | |
17298 | rm -f conftest.defines conftest.undefs | |
17299 | # Using a here document instead of a string reduces the quoting nightmare. | |
17300 | # Putting comments in sed scripts is not portable. | |
17301 | # | |
17302 | # `end' is used to avoid that the second main sed command (meant for | |
17303 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
17304 | # See the Autoconf documentation for `clear'. | |
17305 | cat >confdef2sed.sed <<\_ACEOF | |
17306 | s/[\\&,]/\\&/g | |
17307 | s,[\\$`],\\&,g | |
17308 | t clear | |
17309 | : clear | |
17310 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
17311 | t end | |
17312 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
17313 | : end | |
17314 | _ACEOF | |
17315 | # If some macros were called several times there might be several times | |
17316 | # the same #defines, which is useless. Nevertheless, we may not want to | |
17317 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
17318 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
17319 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
17320 | rm -f confdef2sed.sed | |
17321 | ||
17322 | # This sed command replaces #undef with comments. This is necessary, for | |
17323 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17324 | # on some systems where configure will not decide to define it. | |
17325 | cat >>conftest.undefs <<\_ACEOF | |
17326 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
17327 | _ACEOF | |
17328 | ||
17329 | # Break up conftest.defines because some shells have a limit on the size | |
17330 | # of here documents, and old seds have small limits too (100 cmds). | |
17331 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
17332 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
17333 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
17334 | echo ' :' >>$CONFIG_STATUS | |
17335 | rm -f conftest.tail | |
17336 | while grep . conftest.defines >/dev/null | |
17337 | do | |
17338 | # Write a limited-size here document to $tmp/defines.sed. | |
17339 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
17340 | # Speed up: don't consider the non `#define' lines. | |
17341 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
17342 | # Work around the forget-to-reset-the-flag bug. | |
17343 | echo 't clr' >>$CONFIG_STATUS | |
17344 | echo ': clr' >>$CONFIG_STATUS | |
17345 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
17346 | echo 'CEOF | |
17347 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
17348 | rm -f $tmp/in | |
17349 | mv $tmp/out $tmp/in | |
17350 | ' >>$CONFIG_STATUS | |
17351 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
17352 | rm -f conftest.defines | |
17353 | mv conftest.tail conftest.defines | |
17354 | done | |
17355 | rm -f conftest.defines | |
17356 | echo ' fi # egrep' >>$CONFIG_STATUS | |
17357 | echo >>$CONFIG_STATUS | |
17358 | ||
17359 | # Break up conftest.undefs because some shells have a limit on the size | |
17360 | # of here documents, and old seds have small limits too (100 cmds). | |
17361 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
17362 | rm -f conftest.tail | |
17363 | while grep . conftest.undefs >/dev/null | |
17364 | do | |
17365 | # Write a limited-size here document to $tmp/undefs.sed. | |
17366 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
17367 | # Speed up: don't consider the non `#undef' | |
17368 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
17369 | # Work around the forget-to-reset-the-flag bug. | |
17370 | echo 't clr' >>$CONFIG_STATUS | |
17371 | echo ': clr' >>$CONFIG_STATUS | |
17372 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
17373 | echo 'CEOF | |
17374 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
17375 | rm -f $tmp/in | |
17376 | mv $tmp/out $tmp/in | |
17377 | ' >>$CONFIG_STATUS | |
17378 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
17379 | rm -f conftest.undefs | |
17380 | mv conftest.tail conftest.undefs | |
17381 | done | |
17382 | rm -f conftest.undefs | |
17383 | ||
17384 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17385 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17386 | # use $as_me), people would be surprised to read: | |
17387 | # /* config.h. Generated by config.status. */ | |
17388 | if test x"$ac_file" = x-; then | |
17389 | echo "/* Generated by configure. */" >$tmp/config.h | |
17390 | else | |
17391 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
17392 | fi | |
17393 | cat $tmp/in >>$tmp/config.h | |
17394 | rm -f $tmp/in | |
17395 | if test x"$ac_file" != x-; then | |
17396 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
17397 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
17398 | echo "$as_me: $ac_file is unchanged" >&6;} | |
17399 | else | |
17400 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
17401 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17402 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17403 | X"$ac_file" : 'X\(//\)$' \| \ | |
17404 | X"$ac_file" : 'X\(/\)' \| \ | |
17405 | . : '\(.\)' 2>/dev/null || | |
17406 | echo X"$ac_file" | | |
17407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17408 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17409 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17410 | /^X\(\/\).*/{ s//\1/; q; } | |
17411 | s/.*/./; q'` | |
17412 | { case "$ac_dir" in | |
17413 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
17414 | *) as_incr_dir=.;; | |
17415 | esac | |
17416 | as_dummy="$ac_dir" | |
17417 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
17418 | case $as_mkdir_dir in | |
17419 | # Skip DOS drivespec | |
17420 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
17421 | *) | |
17422 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
17423 | test -d "$as_incr_dir" || | |
17424 | mkdir "$as_incr_dir" || | |
17425 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
17426 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
17427 | { (exit 1); exit 1; }; } | |
17428 | ;; | |
17429 | esac | |
17430 | done; } | |
17431 | ||
17432 | rm -f $ac_file | |
17433 | mv $tmp/config.h $ac_file | |
17434 | fi | |
17435 | else | |
17436 | cat $tmp/config.h | |
17437 | rm -f $tmp/config.h | |
17438 | fi | |
17439 | done | |
17440 | _ACEOF | |
17441 | ||
17442 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17443 | ||
17444 | { (exit 0); exit 0; } | |
17445 | _ACEOF | |
17446 | chmod +x $CONFIG_STATUS | |
17447 | ac_clean_files=$ac_clean_files_save | |
17448 | ||
17449 | ||
17450 | # configure is writing to config.log, and then calls config.status. | |
17451 | # config.status does its own redirection, appending to config.log. | |
17452 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17453 | # by configure, so config.status won't be able to write to it; its | |
17454 | # output is simply discarded. So we exec the FD to /dev/null, | |
17455 | # effectively closing config.log, so it can be properly (re)opened and | |
17456 | # appended to by config.status. When coming back to configure, we | |
17457 | # need to make the FD available again. | |
17458 | if test "$no_create" != yes; then | |
17459 | ac_cs_success=: | |
17460 | exec 5>/dev/null | |
17461 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
17462 | exec 5>>config.log | |
17463 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17464 | # would make configure fail if this is the last instruction. | |
17465 | $ac_cs_success || { (exit 1); exit 1; } | |
17466 | fi | |
17467 | ||
17468 | ||
17469 | # Print summary of options | |
17470 | ||
17471 | # Someone please show me a better way :) | |
17472 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | |
17473 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | |
17474 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | |
17475 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | |
17476 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | |
17477 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | |
17478 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | |
17479 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | |
17480 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | |
17481 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | |
17482 | ||
17483 | echo "" | |
17484 | echo "OpenSSH has been configured with the following options:" | |
17485 | echo " User binaries: $B" | |
17486 | echo " System binaries: $C" | |
17487 | echo " Configuration files: $D" | |
17488 | echo " Askpass program: $E" | |
17489 | echo " Manual pages: $F" | |
17490 | echo " PID file: $G" | |
17491 | echo " Privilege separation chroot path: $H" | |
17492 | if test "$USES_LOGIN_CONF" = "yes" ; then | |
17493 | echo " At runtime, sshd will use the path defined in /etc/login.conf" | |
17494 | else | |
17495 | echo " sshd default user PATH: $I" | |
17496 | fi | |
17497 | if test ! -z "$superuser_path" ; then | |
17498 | echo " sshd superuser user PATH: $J" | |
17499 | fi | |
17500 | echo " Manpage format: $MANTYPE" | |
17501 | echo " PAM support: ${PAM_MSG}" | |
17502 | echo " KerberosIV support: $KRB4_MSG" | |
17503 | echo " KerberosV support: $KRB5_MSG" | |
17504 | echo " Smartcard support: $SCARD_MSG" | |
17505 | echo " AFS support: $AFS_MSG" | |
17506 | echo " S/KEY support: $SKEY_MSG" | |
17507 | echo " TCP Wrappers support: $TCPW_MSG" | |
17508 | echo " MD5 password support: $MD5_MSG" | |
17509 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | |
17510 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | |
17511 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | |
17512 | echo " BSD Auth support: $BSD_AUTH_MSG" | |
17513 | echo " Random number source: $RAND_MSG" | |
17514 | if test ! -z "$USE_RAND_HELPER" ; then | |
17515 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | |
17516 | fi | |
17517 | ||
17518 | echo "" | |
17519 | ||
17520 | echo " Host: ${host}" | |
17521 | echo " Compiler: ${CC}" | |
17522 | echo " Compiler flags: ${CFLAGS}" | |
17523 | echo "Preprocessor flags: ${CPPFLAGS}" | |
17524 | echo " Linker flags: ${LDFLAGS}" | |
17525 | echo " Libraries: ${LIBWRAP} ${LIBPAM} ${LIBS}" | |
17526 | ||
17527 | echo "" | |
17528 | ||
17529 | if test "x$PAM_MSG" = "xyes" ; then | |
17530 | echo "PAM is enabled. You may need to install a PAM control file " | |
17531 | echo "for sshd, otherwise password authentication may fail. " | |
17532 | echo "Example PAM control files can be found in the contrib/ " | |
17533 | echo "subdirectory" | |
17534 | echo "" | |
17535 | fi | |
17536 | ||
17537 | if test ! -z "$NO_SFTP"; then | |
17538 | echo "sftp-server will be disabled. Your compiler does not " | |
17539 | echo "support 64bit integers." | |
17540 | echo "" | |
17541 | fi | |
17542 | ||
17543 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | |
17544 | echo "WARNING: you are using the builtin random number collection " | |
17545 | echo "service. Please read WARNING.RNG and request that your OS " | |
17546 | echo "vendor includes kernel-based random number collection in " | |
17547 | echo "future versions of your OS." | |
17548 | echo "" | |
17549 | fi | |
17550 |