1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --enable-deprecated-linux-pw-encrypt |
---|
16 | Enable using of deprecated linx pw_encrypt function." |
---|
17 | ac_help="$ac_help |
---|
18 | --enable-warnings Enable -Wall if using gcc." |
---|
19 | ac_help="$ac_help |
---|
20 | --with-x use the X Window System" |
---|
21 | ac_help="$ac_help |
---|
22 | --with-idea Use IDEA (default). |
---|
23 | --without-idea Don't use IDEA: avoids patent problems in commercial use" |
---|
24 | ac_help="$ac_help |
---|
25 | --with-blowfish Include blowfish (default). |
---|
26 | --without-blowfish Don't include blowfish" |
---|
27 | ac_help="$ac_help |
---|
28 | --with-des Include single-DES support. |
---|
29 | --without-des Don't allow single DES (default)" |
---|
30 | ac_help="$ac_help |
---|
31 | --with-arcfour Include arcfour (DO NOT ENABLE, unless you know the security implications of this settings. See README.CIPHERS for more info). |
---|
32 | --without-arcfour Don't include arcfour (default)" |
---|
33 | ac_help="$ac_help |
---|
34 | --with-none Include support for unencrypted connections |
---|
35 | --without-none Don't allow unencrypted connections (default)" |
---|
36 | ac_help="$ac_help |
---|
37 | --with-login[=PATH] Use login -f to finish login connections. " |
---|
38 | ac_help="$ac_help |
---|
39 | --with-rsh=PATH Specify where to find rsh. |
---|
40 | --without-rsh Do not use rsh under any conditions. " |
---|
41 | ac_help="$ac_help |
---|
42 | --with-path=PATH Default path passed to user shell by sshd." |
---|
43 | ac_help="$ac_help |
---|
44 | --with-etcdir=PATH Directory containing ssh system files (default /etc)." |
---|
45 | ac_help="$ac_help |
---|
46 | --with-nologin-allow[=PATH] If a nologin.allow override should be used (default /etc/nologin.allow). " |
---|
47 | ac_help="$ac_help |
---|
48 | --with-securid[=PATH] Enable support for Security Dynamics SecurID card." |
---|
49 | ac_help="$ac_help |
---|
50 | --with-tis[=DIR] Enable support for TIS authentication server." |
---|
51 | ac_help="$ac_help |
---|
52 | --with-kerberos5=[KRB_PREFIX] Compile in Kerberos5 support." |
---|
53 | ac_help="$ac_help |
---|
54 | --enable-kerberos-tgt-passing Pass Kerberos ticket-granting-ticket." |
---|
55 | ac_help="$ac_help |
---|
56 | --with-libwrap[=PATH] Compile in libwrap (tcp_wrappers) support." |
---|
57 | ac_help="$ac_help |
---|
58 | --with-socks Compile with SOCKS firewall traversal support." |
---|
59 | ac_help="$ac_help |
---|
60 | --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support." |
---|
61 | ac_help="$ac_help |
---|
62 | --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support." |
---|
63 | ac_help="$ac_help |
---|
64 | --with-rsaref[=PATH] Use RSAREF (try to avoid patent problems in U.S.) |
---|
65 | --without-rsaref Use normal RSA routines (default). " |
---|
66 | ac_help="$ac_help |
---|
67 | --enable-group-writeability Allow group writeability in auth-rsa. " |
---|
68 | ac_help="$ac_help |
---|
69 | --disable-server-port-forwardings |
---|
70 | Disable all port forwardings in server (except X11)" |
---|
71 | ac_help="$ac_help |
---|
72 | --disable-client-port-forwardings |
---|
73 | Disable all port forwardings in client (except X11)" |
---|
74 | ac_help="$ac_help |
---|
75 | --disable-server-x11-forwarding |
---|
76 | Disable X11 forwarding in server" |
---|
77 | ac_help="$ac_help |
---|
78 | --disable-client-x11-forwarding |
---|
79 | Disable X11 forwarding in client" |
---|
80 | ac_help="$ac_help |
---|
81 | --enable-suid-ssh Install ssh as suid root (default) |
---|
82 | --disable-suid-ssh Install ssh without suid bit" |
---|
83 | ac_help="$ac_help |
---|
84 | --disable-tcp-nodelay Disable TCP_NODELAY socket option" |
---|
85 | ac_help="$ac_help |
---|
86 | --enable-so-linger Enable setting SO_LINGER socket option" |
---|
87 | ac_help="$ac_help |
---|
88 | --without-scp-stats Without scp statistics code" |
---|
89 | ac_help="$ac_help |
---|
90 | --disable-scp-stats Disable scp statistics display" |
---|
91 | ac_help="$ac_help |
---|
92 | --disable-all-scp-stats Disable all files scp statistics display" |
---|
93 | ac_help="$ac_help |
---|
94 | --disable-asm Disable assembly language optimizations. " |
---|
95 | ac_help="$ac_help |
---|
96 | --without-afs don't have afs libraries to build against (default) |
---|
97 | --with-afs=AFSDIR use preinstalled AFS library tree" |
---|
98 | |
---|
99 | # Initialize some variables set by options. |
---|
100 | # The variables have the same names as the options, with |
---|
101 | # dashes changed to underlines. |
---|
102 | build=NONE |
---|
103 | cache_file=./config.cache |
---|
104 | exec_prefix=NONE |
---|
105 | host=NONE |
---|
106 | no_create= |
---|
107 | nonopt=NONE |
---|
108 | no_recursion= |
---|
109 | prefix=NONE |
---|
110 | program_prefix=NONE |
---|
111 | program_suffix=NONE |
---|
112 | program_transform_name=s,x,x, |
---|
113 | silent= |
---|
114 | site= |
---|
115 | srcdir= |
---|
116 | target=NONE |
---|
117 | verbose= |
---|
118 | x_includes=NONE |
---|
119 | x_libraries=NONE |
---|
120 | bindir='${exec_prefix}/bin' |
---|
121 | sbindir='${exec_prefix}/sbin' |
---|
122 | libexecdir='${exec_prefix}/libexec' |
---|
123 | datadir='${prefix}/share' |
---|
124 | sysconfdir='${prefix}/etc' |
---|
125 | sharedstatedir='${prefix}/com' |
---|
126 | localstatedir='${prefix}/var' |
---|
127 | libdir='${exec_prefix}/lib' |
---|
128 | includedir='${prefix}/include' |
---|
129 | oldincludedir='/usr/include' |
---|
130 | infodir='${prefix}/info' |
---|
131 | mandir='${prefix}/man' |
---|
132 | |
---|
133 | # Initialize some other variables. |
---|
134 | subdirs= |
---|
135 | MFLAGS= MAKEFLAGS= |
---|
136 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
137 | # Maximum number of lines to put in a shell here document. |
---|
138 | ac_max_here_lines=12 |
---|
139 | |
---|
140 | ac_prev= |
---|
141 | for ac_option |
---|
142 | do |
---|
143 | |
---|
144 | # If the previous option needs an argument, assign it. |
---|
145 | if test -n "$ac_prev"; then |
---|
146 | eval "$ac_prev=\$ac_option" |
---|
147 | ac_prev= |
---|
148 | continue |
---|
149 | fi |
---|
150 | |
---|
151 | case "$ac_option" in |
---|
152 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
153 | *) ac_optarg= ;; |
---|
154 | esac |
---|
155 | |
---|
156 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
157 | |
---|
158 | case "$ac_option" in |
---|
159 | |
---|
160 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
161 | ac_prev=bindir ;; |
---|
162 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
163 | bindir="$ac_optarg" ;; |
---|
164 | |
---|
165 | -build | --build | --buil | --bui | --bu) |
---|
166 | ac_prev=build ;; |
---|
167 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
168 | build="$ac_optarg" ;; |
---|
169 | |
---|
170 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
171 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
172 | ac_prev=cache_file ;; |
---|
173 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
174 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
175 | cache_file="$ac_optarg" ;; |
---|
176 | |
---|
177 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
178 | ac_prev=datadir ;; |
---|
179 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
180 | | --da=*) |
---|
181 | datadir="$ac_optarg" ;; |
---|
182 | |
---|
183 | -disable-* | --disable-*) |
---|
184 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
185 | # Reject names that are not valid shell variable names. |
---|
186 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
187 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
188 | fi |
---|
189 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
190 | eval "enable_${ac_feature}=no" ;; |
---|
191 | |
---|
192 | -enable-* | --enable-*) |
---|
193 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
194 | # Reject names that are not valid shell variable names. |
---|
195 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
196 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
197 | fi |
---|
198 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
199 | case "$ac_option" in |
---|
200 | *=*) ;; |
---|
201 | *) ac_optarg=yes ;; |
---|
202 | esac |
---|
203 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
204 | |
---|
205 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
206 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
207 | | --exec | --exe | --ex) |
---|
208 | ac_prev=exec_prefix ;; |
---|
209 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
210 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
211 | | --exec=* | --exe=* | --ex=*) |
---|
212 | exec_prefix="$ac_optarg" ;; |
---|
213 | |
---|
214 | -gas | --gas | --ga | --g) |
---|
215 | # Obsolete; use --with-gas. |
---|
216 | with_gas=yes ;; |
---|
217 | |
---|
218 | -help | --help | --hel | --he) |
---|
219 | # Omit some internal or obsolete options to make the list less imposing. |
---|
220 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
221 | cat << EOF |
---|
222 | Usage: configure [options] [host] |
---|
223 | Options: [defaults in brackets after descriptions] |
---|
224 | Configuration: |
---|
225 | --cache-file=FILE cache test results in FILE |
---|
226 | --help print this message |
---|
227 | --no-create do not create output files |
---|
228 | --quiet, --silent do not print \`checking...' messages |
---|
229 | --version print the version of autoconf that created configure |
---|
230 | Directory and file names: |
---|
231 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
232 | [$ac_default_prefix] |
---|
233 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
234 | [same as prefix] |
---|
235 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
236 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
237 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
238 | --datadir=DIR read-only architecture-independent data in DIR |
---|
239 | [PREFIX/share] |
---|
240 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
241 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
242 | [PREFIX/com] |
---|
243 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
244 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
245 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
246 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
247 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
248 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
249 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
250 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
251 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
252 | --program-transform-name=PROGRAM |
---|
253 | run sed PROGRAM on installed program names |
---|
254 | EOF |
---|
255 | cat << EOF |
---|
256 | Host type: |
---|
257 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
258 | --host=HOST configure for HOST [guessed] |
---|
259 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
260 | Features and packages: |
---|
261 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
262 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
263 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
264 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
265 | --x-includes=DIR X include files are in DIR |
---|
266 | --x-libraries=DIR X library files are in DIR |
---|
267 | EOF |
---|
268 | if test -n "$ac_help"; then |
---|
269 | echo "--enable and --with options recognized:$ac_help" |
---|
270 | fi |
---|
271 | exit 0 ;; |
---|
272 | |
---|
273 | -host | --host | --hos | --ho) |
---|
274 | ac_prev=host ;; |
---|
275 | -host=* | --host=* | --hos=* | --ho=*) |
---|
276 | host="$ac_optarg" ;; |
---|
277 | |
---|
278 | -includedir | --includedir | --includedi | --included | --include \ |
---|
279 | | --includ | --inclu | --incl | --inc) |
---|
280 | ac_prev=includedir ;; |
---|
281 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
282 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
283 | includedir="$ac_optarg" ;; |
---|
284 | |
---|
285 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
286 | ac_prev=infodir ;; |
---|
287 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
288 | infodir="$ac_optarg" ;; |
---|
289 | |
---|
290 | -libdir | --libdir | --libdi | --libd) |
---|
291 | ac_prev=libdir ;; |
---|
292 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
293 | libdir="$ac_optarg" ;; |
---|
294 | |
---|
295 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
296 | | --libexe | --libex | --libe) |
---|
297 | ac_prev=libexecdir ;; |
---|
298 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
299 | | --libexe=* | --libex=* | --libe=*) |
---|
300 | libexecdir="$ac_optarg" ;; |
---|
301 | |
---|
302 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
303 | | --localstate | --localstat | --localsta | --localst \ |
---|
304 | | --locals | --local | --loca | --loc | --lo) |
---|
305 | ac_prev=localstatedir ;; |
---|
306 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
307 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
308 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
309 | localstatedir="$ac_optarg" ;; |
---|
310 | |
---|
311 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
312 | ac_prev=mandir ;; |
---|
313 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
314 | mandir="$ac_optarg" ;; |
---|
315 | |
---|
316 | -nfp | --nfp | --nf) |
---|
317 | # Obsolete; use --without-fp. |
---|
318 | with_fp=no ;; |
---|
319 | |
---|
320 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
321 | | --no-cr | --no-c) |
---|
322 | no_create=yes ;; |
---|
323 | |
---|
324 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
325 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
326 | no_recursion=yes ;; |
---|
327 | |
---|
328 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
329 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
330 | | --oldin | --oldi | --old | --ol | --o) |
---|
331 | ac_prev=oldincludedir ;; |
---|
332 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
333 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
334 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
335 | oldincludedir="$ac_optarg" ;; |
---|
336 | |
---|
337 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
338 | ac_prev=prefix ;; |
---|
339 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
340 | prefix="$ac_optarg" ;; |
---|
341 | |
---|
342 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
343 | | --program-pre | --program-pr | --program-p) |
---|
344 | ac_prev=program_prefix ;; |
---|
345 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
346 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
347 | program_prefix="$ac_optarg" ;; |
---|
348 | |
---|
349 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
350 | | --program-suf | --program-su | --program-s) |
---|
351 | ac_prev=program_suffix ;; |
---|
352 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
353 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
354 | program_suffix="$ac_optarg" ;; |
---|
355 | |
---|
356 | -program-transform-name | --program-transform-name \ |
---|
357 | | --program-transform-nam | --program-transform-na \ |
---|
358 | | --program-transform-n | --program-transform- \ |
---|
359 | | --program-transform | --program-transfor \ |
---|
360 | | --program-transfo | --program-transf \ |
---|
361 | | --program-trans | --program-tran \ |
---|
362 | | --progr-tra | --program-tr | --program-t) |
---|
363 | ac_prev=program_transform_name ;; |
---|
364 | -program-transform-name=* | --program-transform-name=* \ |
---|
365 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
366 | | --program-transform-n=* | --program-transform-=* \ |
---|
367 | | --program-transform=* | --program-transfor=* \ |
---|
368 | | --program-transfo=* | --program-transf=* \ |
---|
369 | | --program-trans=* | --program-tran=* \ |
---|
370 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
371 | program_transform_name="$ac_optarg" ;; |
---|
372 | |
---|
373 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
374 | | -silent | --silent | --silen | --sile | --sil) |
---|
375 | silent=yes ;; |
---|
376 | |
---|
377 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
378 | ac_prev=sbindir ;; |
---|
379 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
380 | | --sbi=* | --sb=*) |
---|
381 | sbindir="$ac_optarg" ;; |
---|
382 | |
---|
383 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
384 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
385 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
386 | | --sha | --sh) |
---|
387 | ac_prev=sharedstatedir ;; |
---|
388 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
389 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
390 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
391 | | --sha=* | --sh=*) |
---|
392 | sharedstatedir="$ac_optarg" ;; |
---|
393 | |
---|
394 | -site | --site | --sit) |
---|
395 | ac_prev=site ;; |
---|
396 | -site=* | --site=* | --sit=*) |
---|
397 | site="$ac_optarg" ;; |
---|
398 | |
---|
399 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
400 | ac_prev=srcdir ;; |
---|
401 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
402 | srcdir="$ac_optarg" ;; |
---|
403 | |
---|
404 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
405 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
406 | ac_prev=sysconfdir ;; |
---|
407 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
408 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
409 | sysconfdir="$ac_optarg" ;; |
---|
410 | |
---|
411 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
412 | ac_prev=target ;; |
---|
413 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
414 | target="$ac_optarg" ;; |
---|
415 | |
---|
416 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
417 | verbose=yes ;; |
---|
418 | |
---|
419 | -version | --version | --versio | --versi | --vers) |
---|
420 | echo "configure generated by autoconf version 2.13" |
---|
421 | exit 0 ;; |
---|
422 | |
---|
423 | -with-* | --with-*) |
---|
424 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
425 | # Reject names that are not valid shell variable names. |
---|
426 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
427 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
428 | fi |
---|
429 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
430 | case "$ac_option" in |
---|
431 | *=*) ;; |
---|
432 | *) ac_optarg=yes ;; |
---|
433 | esac |
---|
434 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
435 | |
---|
436 | -without-* | --without-*) |
---|
437 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
438 | # Reject names that are not valid shell variable names. |
---|
439 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
440 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
441 | fi |
---|
442 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
443 | eval "with_${ac_package}=no" ;; |
---|
444 | |
---|
445 | --x) |
---|
446 | # Obsolete; use --with-x. |
---|
447 | with_x=yes ;; |
---|
448 | |
---|
449 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
450 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
451 | ac_prev=x_includes ;; |
---|
452 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
453 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
454 | x_includes="$ac_optarg" ;; |
---|
455 | |
---|
456 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
457 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
458 | ac_prev=x_libraries ;; |
---|
459 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
460 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
461 | x_libraries="$ac_optarg" ;; |
---|
462 | |
---|
463 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
464 | ;; |
---|
465 | |
---|
466 | *) |
---|
467 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
468 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
469 | fi |
---|
470 | if test "x$nonopt" != xNONE; then |
---|
471 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
472 | fi |
---|
473 | nonopt="$ac_option" |
---|
474 | ;; |
---|
475 | |
---|
476 | esac |
---|
477 | done |
---|
478 | |
---|
479 | if test -n "$ac_prev"; then |
---|
480 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
481 | fi |
---|
482 | |
---|
483 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
484 | |
---|
485 | # File descriptor usage: |
---|
486 | # 0 standard input |
---|
487 | # 1 file creation |
---|
488 | # 2 errors and warnings |
---|
489 | # 3 some systems may open it to /dev/tty |
---|
490 | # 4 used on the Kubota Titan |
---|
491 | # 6 checking for... messages and results |
---|
492 | # 5 compiler messages saved in config.log |
---|
493 | if test "$silent" = yes; then |
---|
494 | exec 6>/dev/null |
---|
495 | else |
---|
496 | exec 6>&1 |
---|
497 | fi |
---|
498 | exec 5>./config.log |
---|
499 | |
---|
500 | echo "\ |
---|
501 | This file contains any messages produced by compilers while |
---|
502 | running configure, to aid debugging if configure makes a mistake. |
---|
503 | " 1>&5 |
---|
504 | |
---|
505 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
506 | # Also quote any args containing shell metacharacters. |
---|
507 | ac_configure_args= |
---|
508 | for ac_arg |
---|
509 | do |
---|
510 | case "$ac_arg" in |
---|
511 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
512 | | --no-cr | --no-c) ;; |
---|
513 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
514 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
515 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
516 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
517 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
518 | esac |
---|
519 | done |
---|
520 | |
---|
521 | # NLS nuisances. |
---|
522 | # Only set these to C if already set. These must not be set unconditionally |
---|
523 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
524 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
525 | # Non-C LC_CTYPE values break the ctype check. |
---|
526 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
527 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
528 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
529 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
530 | |
---|
531 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
532 | rm -rf conftest* confdefs.h |
---|
533 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
534 | echo > confdefs.h |
---|
535 | |
---|
536 | # A filename unique to this package, relative to the directory that |
---|
537 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
538 | ac_unique_file=sshd.c |
---|
539 | |
---|
540 | # Find the source files, if location was not specified. |
---|
541 | if test -z "$srcdir"; then |
---|
542 | ac_srcdir_defaulted=yes |
---|
543 | # Try the directory containing this script, then its parent. |
---|
544 | ac_prog=$0 |
---|
545 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
546 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
547 | srcdir=$ac_confdir |
---|
548 | if test ! -r $srcdir/$ac_unique_file; then |
---|
549 | srcdir=.. |
---|
550 | fi |
---|
551 | else |
---|
552 | ac_srcdir_defaulted=no |
---|
553 | fi |
---|
554 | if test ! -r $srcdir/$ac_unique_file; then |
---|
555 | if test "$ac_srcdir_defaulted" = yes; then |
---|
556 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
557 | else |
---|
558 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
559 | fi |
---|
560 | fi |
---|
561 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
562 | |
---|
563 | # Prefer explicitly selected file to automatically selected ones. |
---|
564 | if test -z "$CONFIG_SITE"; then |
---|
565 | if test "x$prefix" != xNONE; then |
---|
566 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
567 | else |
---|
568 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
569 | fi |
---|
570 | fi |
---|
571 | for ac_site_file in $CONFIG_SITE; do |
---|
572 | if test -r "$ac_site_file"; then |
---|
573 | echo "loading site script $ac_site_file" |
---|
574 | . "$ac_site_file" |
---|
575 | fi |
---|
576 | done |
---|
577 | |
---|
578 | if test -r "$cache_file"; then |
---|
579 | echo "loading cache $cache_file" |
---|
580 | . $cache_file |
---|
581 | else |
---|
582 | echo "creating cache $cache_file" |
---|
583 | > $cache_file |
---|
584 | fi |
---|
585 | |
---|
586 | ac_ext=c |
---|
587 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
588 | ac_cpp='$CPP $CPPFLAGS' |
---|
589 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
590 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
591 | cross_compiling=$ac_cv_prog_cc_cross |
---|
592 | |
---|
593 | ac_exeext= |
---|
594 | ac_objext=o |
---|
595 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
596 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
597 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
598 | ac_n= ac_c=' |
---|
599 | ' ac_t=' ' |
---|
600 | else |
---|
601 | ac_n=-n ac_c= ac_t= |
---|
602 | fi |
---|
603 | else |
---|
604 | ac_n= ac_c='\c' ac_t= |
---|
605 | fi |
---|
606 | |
---|
607 | |
---|
608 | |
---|
609 | |
---|
610 | |
---|
611 | # So many systems seem to need this that it is better do it here automatically. |
---|
612 | LIBS="-L/usr/local/lib $LIBS" |
---|
613 | |
---|
614 | ac_aux_dir= |
---|
615 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
616 | if test -f $ac_dir/install-sh; then |
---|
617 | ac_aux_dir=$ac_dir |
---|
618 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
619 | break |
---|
620 | elif test -f $ac_dir/install.sh; then |
---|
621 | ac_aux_dir=$ac_dir |
---|
622 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
623 | break |
---|
624 | fi |
---|
625 | done |
---|
626 | if test -z "$ac_aux_dir"; then |
---|
627 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
628 | fi |
---|
629 | ac_config_guess=$ac_aux_dir/config.guess |
---|
630 | ac_config_sub=$ac_aux_dir/config.sub |
---|
631 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
632 | |
---|
633 | |
---|
634 | # Make sure we can run config.sub. |
---|
635 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
636 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
637 | fi |
---|
638 | |
---|
639 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
640 | echo "configure:641: checking host system type" >&5 |
---|
641 | |
---|
642 | host_alias=$host |
---|
643 | case "$host_alias" in |
---|
644 | NONE) |
---|
645 | case $nonopt in |
---|
646 | NONE) |
---|
647 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
648 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
649 | fi ;; |
---|
650 | *) host_alias=$nonopt ;; |
---|
651 | esac ;; |
---|
652 | esac |
---|
653 | |
---|
654 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
655 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
656 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
657 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
658 | echo "$ac_t""$host" 1>&6 |
---|
659 | |
---|
660 | echo $ac_n "checking cached information""... $ac_c" 1>&6 |
---|
661 | echo "configure:662: checking cached information" >&5 |
---|
662 | hostcheck="$host" |
---|
663 | if eval "test \"`echo '$''{'ac_cv_hostcheck'+set}'`\" = set"; then |
---|
664 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
665 | else |
---|
666 | ac_cv_hostcheck="$hostcheck" |
---|
667 | fi |
---|
668 | |
---|
669 | if test "$ac_cv_hostcheck" != "$hostcheck"; then |
---|
670 | echo "$ac_t""changed" 1>&6 |
---|
671 | echo "configure: warning: config.cache exists!" 1>&2 |
---|
672 | { echo "configure: error: you must do 'make distclean' first to compile for different host or different parameters." 1>&2; exit 1; } |
---|
673 | else |
---|
674 | echo "$ac_t""ok" 1>&6 |
---|
675 | fi |
---|
676 | |
---|
677 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
678 | set dummy gcc; ac_word=$2 |
---|
679 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
680 | echo "configure:681: checking for $ac_word" >&5 |
---|
681 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
682 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
683 | else |
---|
684 | if test -n "$CC"; then |
---|
685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
686 | else |
---|
687 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
688 | ac_dummy="$PATH" |
---|
689 | for ac_dir in $ac_dummy; do |
---|
690 | test -z "$ac_dir" && ac_dir=. |
---|
691 | if test -f $ac_dir/$ac_word; then |
---|
692 | ac_cv_prog_CC="gcc" |
---|
693 | break |
---|
694 | fi |
---|
695 | done |
---|
696 | IFS="$ac_save_ifs" |
---|
697 | fi |
---|
698 | fi |
---|
699 | CC="$ac_cv_prog_CC" |
---|
700 | if test -n "$CC"; then |
---|
701 | echo "$ac_t""$CC" 1>&6 |
---|
702 | else |
---|
703 | echo "$ac_t""no" 1>&6 |
---|
704 | fi |
---|
705 | |
---|
706 | if test -z "$CC"; then |
---|
707 | # Extract the first word of "cc", so it can be a program name with args. |
---|
708 | set dummy cc; ac_word=$2 |
---|
709 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
710 | echo "configure:711: checking for $ac_word" >&5 |
---|
711 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
712 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
713 | else |
---|
714 | if test -n "$CC"; then |
---|
715 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
716 | else |
---|
717 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
718 | ac_prog_rejected=no |
---|
719 | ac_dummy="$PATH" |
---|
720 | for ac_dir in $ac_dummy; do |
---|
721 | test -z "$ac_dir" && ac_dir=. |
---|
722 | if test -f $ac_dir/$ac_word; then |
---|
723 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
724 | ac_prog_rejected=yes |
---|
725 | continue |
---|
726 | fi |
---|
727 | ac_cv_prog_CC="cc" |
---|
728 | break |
---|
729 | fi |
---|
730 | done |
---|
731 | IFS="$ac_save_ifs" |
---|
732 | if test $ac_prog_rejected = yes; then |
---|
733 | # We found a bogon in the path, so make sure we never use it. |
---|
734 | set dummy $ac_cv_prog_CC |
---|
735 | shift |
---|
736 | if test $# -gt 0; then |
---|
737 | # We chose a different compiler from the bogus one. |
---|
738 | # However, it has the same basename, so the bogon will be chosen |
---|
739 | # first if we set CC to just the basename; use the full file name. |
---|
740 | shift |
---|
741 | set dummy "$ac_dir/$ac_word" "$@" |
---|
742 | shift |
---|
743 | ac_cv_prog_CC="$@" |
---|
744 | fi |
---|
745 | fi |
---|
746 | fi |
---|
747 | fi |
---|
748 | CC="$ac_cv_prog_CC" |
---|
749 | if test -n "$CC"; then |
---|
750 | echo "$ac_t""$CC" 1>&6 |
---|
751 | else |
---|
752 | echo "$ac_t""no" 1>&6 |
---|
753 | fi |
---|
754 | |
---|
755 | if test -z "$CC"; then |
---|
756 | case "`uname -s`" in |
---|
757 | *win32* | *WIN32*) |
---|
758 | # Extract the first word of "cl", so it can be a program name with args. |
---|
759 | set dummy cl; ac_word=$2 |
---|
760 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
761 | echo "configure:762: checking for $ac_word" >&5 |
---|
762 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
763 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
764 | else |
---|
765 | if test -n "$CC"; then |
---|
766 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
767 | else |
---|
768 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
769 | ac_dummy="$PATH" |
---|
770 | for ac_dir in $ac_dummy; do |
---|
771 | test -z "$ac_dir" && ac_dir=. |
---|
772 | if test -f $ac_dir/$ac_word; then |
---|
773 | ac_cv_prog_CC="cl" |
---|
774 | break |
---|
775 | fi |
---|
776 | done |
---|
777 | IFS="$ac_save_ifs" |
---|
778 | fi |
---|
779 | fi |
---|
780 | CC="$ac_cv_prog_CC" |
---|
781 | if test -n "$CC"; then |
---|
782 | echo "$ac_t""$CC" 1>&6 |
---|
783 | else |
---|
784 | echo "$ac_t""no" 1>&6 |
---|
785 | fi |
---|
786 | ;; |
---|
787 | esac |
---|
788 | fi |
---|
789 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
790 | fi |
---|
791 | |
---|
792 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
793 | echo "configure:794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
794 | |
---|
795 | ac_ext=c |
---|
796 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
797 | ac_cpp='$CPP $CPPFLAGS' |
---|
798 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
799 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
800 | cross_compiling=$ac_cv_prog_cc_cross |
---|
801 | |
---|
802 | cat > conftest.$ac_ext << EOF |
---|
803 | |
---|
804 | #line 805 "configure" |
---|
805 | #include "confdefs.h" |
---|
806 | |
---|
807 | main(){return(0);} |
---|
808 | EOF |
---|
809 | if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
810 | ac_cv_prog_cc_works=yes |
---|
811 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
812 | if (./conftest; exit) 2>/dev/null; then |
---|
813 | ac_cv_prog_cc_cross=no |
---|
814 | else |
---|
815 | ac_cv_prog_cc_cross=yes |
---|
816 | fi |
---|
817 | else |
---|
818 | echo "configure: failed program was:" >&5 |
---|
819 | cat conftest.$ac_ext >&5 |
---|
820 | ac_cv_prog_cc_works=no |
---|
821 | fi |
---|
822 | rm -fr conftest* |
---|
823 | ac_ext=c |
---|
824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
825 | ac_cpp='$CPP $CPPFLAGS' |
---|
826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
828 | cross_compiling=$ac_cv_prog_cc_cross |
---|
829 | |
---|
830 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
831 | if test $ac_cv_prog_cc_works = no; then |
---|
832 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
833 | fi |
---|
834 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
835 | echo "configure:836: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
836 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
837 | cross_compiling=$ac_cv_prog_cc_cross |
---|
838 | |
---|
839 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
840 | echo "configure:841: checking whether we are using GNU C" >&5 |
---|
841 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
842 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
843 | else |
---|
844 | cat > conftest.c <<EOF |
---|
845 | #ifdef __GNUC__ |
---|
846 | yes; |
---|
847 | #endif |
---|
848 | EOF |
---|
849 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
850 | ac_cv_prog_gcc=yes |
---|
851 | else |
---|
852 | ac_cv_prog_gcc=no |
---|
853 | fi |
---|
854 | fi |
---|
855 | |
---|
856 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
857 | |
---|
858 | if test $ac_cv_prog_gcc = yes; then |
---|
859 | GCC=yes |
---|
860 | else |
---|
861 | GCC= |
---|
862 | fi |
---|
863 | |
---|
864 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
865 | ac_save_CFLAGS="$CFLAGS" |
---|
866 | CFLAGS= |
---|
867 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
868 | echo "configure:869: checking whether ${CC-cc} accepts -g" >&5 |
---|
869 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
870 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
871 | else |
---|
872 | echo 'void f(){}' > conftest.c |
---|
873 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
874 | ac_cv_prog_cc_g=yes |
---|
875 | else |
---|
876 | ac_cv_prog_cc_g=no |
---|
877 | fi |
---|
878 | rm -f conftest* |
---|
879 | |
---|
880 | fi |
---|
881 | |
---|
882 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
883 | if test "$ac_test_CFLAGS" = set; then |
---|
884 | CFLAGS="$ac_save_CFLAGS" |
---|
885 | elif test $ac_cv_prog_cc_g = yes; then |
---|
886 | if test "$GCC" = yes; then |
---|
887 | CFLAGS="-g -O2" |
---|
888 | else |
---|
889 | CFLAGS="-g" |
---|
890 | fi |
---|
891 | else |
---|
892 | if test "$GCC" = yes; then |
---|
893 | CFLAGS="-O2" |
---|
894 | else |
---|
895 | CFLAGS= |
---|
896 | fi |
---|
897 | fi |
---|
898 | |
---|
899 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
900 | echo "configure:901: checking for POSIXized ISC" >&5 |
---|
901 | if test -d /etc/conf/kconfig.d && |
---|
902 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
903 | then |
---|
904 | echo "$ac_t""yes" 1>&6 |
---|
905 | ISC=yes # If later tests want to check for ISC. |
---|
906 | cat >> confdefs.h <<\EOF |
---|
907 | #define _POSIX_SOURCE 1 |
---|
908 | EOF |
---|
909 | |
---|
910 | if test "$GCC" = yes; then |
---|
911 | CC="$CC -posix" |
---|
912 | else |
---|
913 | CC="$CC -Xp" |
---|
914 | fi |
---|
915 | else |
---|
916 | echo "$ac_t""no" 1>&6 |
---|
917 | ISC= |
---|
918 | fi |
---|
919 | |
---|
920 | |
---|
921 | cat >> confdefs.h <<EOF |
---|
922 | #define HOSTTYPE "$host" |
---|
923 | EOF |
---|
924 | |
---|
925 | |
---|
926 | case "$host" in |
---|
927 | *-*-sunos4.1.1*) |
---|
928 | os_sunos=yes |
---|
929 | # Tim Adam <tma@osa.com.au> says speed_t is defined in stdtypes.h |
---|
930 | cat >> confdefs.h <<\EOF |
---|
931 | #define SPEED_T_IN_STDTYPES_H 1 |
---|
932 | EOF |
---|
933 | |
---|
934 | ;; |
---|
935 | *-*-solaris*) |
---|
936 | # solaris stuff. appro@fy.chalmers.se |
---|
937 | # AC_DEFINE(SECURE_RPC) |
---|
938 | cat >> confdefs.h <<\EOF |
---|
939 | #define SECURE_NFS 1 |
---|
940 | EOF |
---|
941 | |
---|
942 | # NIS+ is forced so that we don't have to recompile |
---|
943 | # if we move to NIS+. appro@fy.chalmers.se |
---|
944 | cat >> confdefs.h <<\EOF |
---|
945 | #define NIS_PLUS 1 |
---|
946 | EOF |
---|
947 | |
---|
948 | ;; |
---|
949 | *-*-sunos*) |
---|
950 | os_sunos=yes |
---|
951 | ;; |
---|
952 | *-sgi-irix5*) |
---|
953 | # Irix stuff from snabb@niksula.hut.fi, tsurmacz@asic.ict.pwr.wroc.pl, |
---|
954 | # C.Martin@sheffield.ac.uk, raistlin@uni-paderborn.de |
---|
955 | no_libsocket=yes |
---|
956 | no_libsun=yes |
---|
957 | no_libnsl=yes |
---|
958 | # force /etc/shadow support. they can run /sbin/pwconv at any time. |
---|
959 | # if they do so, don't let sshd down:-) appro@fy.chalmers.se |
---|
960 | cat >> confdefs.h <<\EOF |
---|
961 | #define HAVE_ETC_SHADOW 1 |
---|
962 | EOF |
---|
963 | |
---|
964 | no_shadows_password_checking=yes |
---|
965 | ;; |
---|
966 | *-sgi-irix6*) |
---|
967 | # from d-champion@uchicago.edu |
---|
968 | no_libsocket=yes |
---|
969 | no_libnsl=yes |
---|
970 | no_libsun=yes |
---|
971 | if test -z "$GCC";then |
---|
972 | if test "`uname -s`" = "IRIX64"; then |
---|
973 | CFLAGS="-D_LONG_LONG_LIMB $CFLAGS" |
---|
974 | LDFLAGS="$LDFLAGS" |
---|
975 | else |
---|
976 | CFLAGS="$CFLAGS" |
---|
977 | LDFLAGS="$LDFLAGS" |
---|
978 | fi |
---|
979 | fi |
---|
980 | # force /etc/shadow support. they can run /sbin/pwconv at any time. |
---|
981 | # if they do so, don't let sshd down:-) appro@fy.chalmers.se |
---|
982 | cat >> confdefs.h <<\EOF |
---|
983 | #define HAVE_ETC_SHADOW 1 |
---|
984 | EOF |
---|
985 | |
---|
986 | no_shadows_password_checking=yes |
---|
987 | # We want support for <proj.h> eivind@ii.uib.no |
---|
988 | cat > conftest.$ac_ext <<EOF |
---|
989 | #line 990 "configure" |
---|
990 | #include "confdefs.h" |
---|
991 | #include <proj.h> |
---|
992 | int main() { |
---|
993 | int foo = MAXPROJNAMELEN; |
---|
994 | ; return 0; } |
---|
995 | EOF |
---|
996 | if { (eval echo configure:997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
997 | rm -rf conftest* |
---|
998 | cat >> confdefs.h <<\EOF |
---|
999 | #define HAVE_SGI_PROJ_H 1 |
---|
1000 | EOF |
---|
1001 | |
---|
1002 | else |
---|
1003 | echo "configure: failed program was:" >&5 |
---|
1004 | cat conftest.$ac_ext >&5 |
---|
1005 | fi |
---|
1006 | rm -f conftest* |
---|
1007 | ;; |
---|
1008 | *-ibm-aix3.2|*-ibm-aix3.2.0|*-ibm-aix3.2.1|*-ibm-aix3.2.2|*-ibm-aix3.2.3|*-ibm-aix3.2.4) |
---|
1009 | os_aix=yes |
---|
1010 | echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 |
---|
1011 | echo "configure:1012: checking for getuserattr in -ls" >&5 |
---|
1012 | ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` |
---|
1013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1014 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1015 | else |
---|
1016 | ac_save_LIBS="$LIBS" |
---|
1017 | LIBS="-ls $LIBS" |
---|
1018 | cat > conftest.$ac_ext <<EOF |
---|
1019 | #line 1020 "configure" |
---|
1020 | #include "confdefs.h" |
---|
1021 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1022 | /* We use char because int might match the return type of a gcc2 |
---|
1023 | builtin and then its argument prototype would still apply. */ |
---|
1024 | char getuserattr(); |
---|
1025 | |
---|
1026 | int main() { |
---|
1027 | getuserattr() |
---|
1028 | ; return 0; } |
---|
1029 | EOF |
---|
1030 | if { (eval echo configure:1031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1031 | rm -rf conftest* |
---|
1032 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1033 | else |
---|
1034 | echo "configure: failed program was:" >&5 |
---|
1035 | cat conftest.$ac_ext >&5 |
---|
1036 | rm -rf conftest* |
---|
1037 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1038 | fi |
---|
1039 | rm -f conftest* |
---|
1040 | LIBS="$ac_save_LIBS" |
---|
1041 | |
---|
1042 | fi |
---|
1043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1044 | echo "$ac_t""yes" 1>&6 |
---|
1045 | ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1046 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1047 | cat >> confdefs.h <<EOF |
---|
1048 | #define $ac_tr_lib 1 |
---|
1049 | EOF |
---|
1050 | |
---|
1051 | LIBS="-ls $LIBS" |
---|
1052 | |
---|
1053 | else |
---|
1054 | echo "$ac_t""no" 1>&6 |
---|
1055 | fi |
---|
1056 | |
---|
1057 | ;; |
---|
1058 | *-ibm-aix4.2|*-ibm-aix4.2.*|*-ibm-aix4.3*|*-ibm-aix4.4*) |
---|
1059 | no_utmpx=yes |
---|
1060 | os_aix=yes |
---|
1061 | echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 |
---|
1062 | echo "configure:1063: checking for getuserattr in -ls" >&5 |
---|
1063 | ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` |
---|
1064 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1065 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1066 | else |
---|
1067 | ac_save_LIBS="$LIBS" |
---|
1068 | LIBS="-ls $LIBS" |
---|
1069 | cat > conftest.$ac_ext <<EOF |
---|
1070 | #line 1071 "configure" |
---|
1071 | #include "confdefs.h" |
---|
1072 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1073 | /* We use char because int might match the return type of a gcc2 |
---|
1074 | builtin and then its argument prototype would still apply. */ |
---|
1075 | char getuserattr(); |
---|
1076 | |
---|
1077 | int main() { |
---|
1078 | getuserattr() |
---|
1079 | ; return 0; } |
---|
1080 | EOF |
---|
1081 | if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1082 | rm -rf conftest* |
---|
1083 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1084 | else |
---|
1085 | echo "configure: failed program was:" >&5 |
---|
1086 | cat conftest.$ac_ext >&5 |
---|
1087 | rm -rf conftest* |
---|
1088 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1089 | fi |
---|
1090 | rm -f conftest* |
---|
1091 | LIBS="$ac_save_LIBS" |
---|
1092 | |
---|
1093 | fi |
---|
1094 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1095 | echo "$ac_t""yes" 1>&6 |
---|
1096 | ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1097 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1098 | cat >> confdefs.h <<EOF |
---|
1099 | #define $ac_tr_lib 1 |
---|
1100 | EOF |
---|
1101 | |
---|
1102 | LIBS="-ls $LIBS" |
---|
1103 | |
---|
1104 | else |
---|
1105 | echo "$ac_t""no" 1>&6 |
---|
1106 | fi |
---|
1107 | |
---|
1108 | ;; |
---|
1109 | *-ibm-aix*) |
---|
1110 | os_aix=yes |
---|
1111 | echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 |
---|
1112 | echo "configure:1113: checking for getuserattr in -ls" >&5 |
---|
1113 | ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` |
---|
1114 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1115 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1116 | else |
---|
1117 | ac_save_LIBS="$LIBS" |
---|
1118 | LIBS="-ls $LIBS" |
---|
1119 | cat > conftest.$ac_ext <<EOF |
---|
1120 | #line 1121 "configure" |
---|
1121 | #include "confdefs.h" |
---|
1122 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1123 | /* We use char because int might match the return type of a gcc2 |
---|
1124 | builtin and then its argument prototype would still apply. */ |
---|
1125 | char getuserattr(); |
---|
1126 | |
---|
1127 | int main() { |
---|
1128 | getuserattr() |
---|
1129 | ; return 0; } |
---|
1130 | EOF |
---|
1131 | if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1132 | rm -rf conftest* |
---|
1133 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1134 | else |
---|
1135 | echo "configure: failed program was:" >&5 |
---|
1136 | cat conftest.$ac_ext >&5 |
---|
1137 | rm -rf conftest* |
---|
1138 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1139 | fi |
---|
1140 | rm -f conftest* |
---|
1141 | LIBS="$ac_save_LIBS" |
---|
1142 | |
---|
1143 | fi |
---|
1144 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1145 | echo "$ac_t""yes" 1>&6 |
---|
1146 | ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1147 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1148 | cat >> confdefs.h <<EOF |
---|
1149 | #define $ac_tr_lib 1 |
---|
1150 | EOF |
---|
1151 | |
---|
1152 | LIBS="-ls $LIBS" |
---|
1153 | |
---|
1154 | else |
---|
1155 | echo "$ac_t""no" 1>&6 |
---|
1156 | fi |
---|
1157 | |
---|
1158 | ;; |
---|
1159 | mips-dec-mach3*) |
---|
1160 | # Mach3 stuff from kivinen@hut.fi |
---|
1161 | no_vhangup=yes |
---|
1162 | no_setsid=yes |
---|
1163 | ;; |
---|
1164 | *-dec-ultrix*) |
---|
1165 | # Ultrix stuff from dmckilli@qc.bell.ca, jbotz@orixa.mtholyoke.edu, |
---|
1166 | # corey@cac.washington.edu |
---|
1167 | cat >> confdefs.h <<\EOF |
---|
1168 | #define O_NONBLOCK_BROKEN 1 |
---|
1169 | EOF |
---|
1170 | |
---|
1171 | cat >> confdefs.h <<\EOF |
---|
1172 | #define HAVE_ULTRIX_SHADOW_PASSWORDS 1 |
---|
1173 | EOF |
---|
1174 | |
---|
1175 | no_vhangup=yes |
---|
1176 | no_utmpx=yes |
---|
1177 | no_termios=yes |
---|
1178 | # Ultrix shadow passwords implemented in auth-passwd.c. |
---|
1179 | no_shadows_password_checking=yes |
---|
1180 | echo $ac_n "checking for authenticate_user in -lauth""... $ac_c" 1>&6 |
---|
1181 | echo "configure:1182: checking for authenticate_user in -lauth" >&5 |
---|
1182 | ac_lib_var=`echo auth'_'authenticate_user | sed 'y%./+-%__p_%'` |
---|
1183 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1184 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1185 | else |
---|
1186 | ac_save_LIBS="$LIBS" |
---|
1187 | LIBS="-lauth $LIBS" |
---|
1188 | cat > conftest.$ac_ext <<EOF |
---|
1189 | #line 1190 "configure" |
---|
1190 | #include "confdefs.h" |
---|
1191 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1192 | /* We use char because int might match the return type of a gcc2 |
---|
1193 | builtin and then its argument prototype would still apply. */ |
---|
1194 | char authenticate_user(); |
---|
1195 | |
---|
1196 | int main() { |
---|
1197 | authenticate_user() |
---|
1198 | ; return 0; } |
---|
1199 | EOF |
---|
1200 | if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1201 | rm -rf conftest* |
---|
1202 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1203 | else |
---|
1204 | echo "configure: failed program was:" >&5 |
---|
1205 | cat conftest.$ac_ext >&5 |
---|
1206 | rm -rf conftest* |
---|
1207 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1208 | fi |
---|
1209 | rm -f conftest* |
---|
1210 | LIBS="$ac_save_LIBS" |
---|
1211 | |
---|
1212 | fi |
---|
1213 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1214 | echo "$ac_t""yes" 1>&6 |
---|
1215 | ac_tr_lib=HAVE_LIB`echo auth | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1216 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1217 | cat >> confdefs.h <<EOF |
---|
1218 | #define $ac_tr_lib 1 |
---|
1219 | EOF |
---|
1220 | |
---|
1221 | LIBS="-lauth $LIBS" |
---|
1222 | |
---|
1223 | else |
---|
1224 | echo "$ac_t""no" 1>&6 |
---|
1225 | fi |
---|
1226 | |
---|
1227 | cat > conftest.$ac_ext <<EOF |
---|
1228 | #line 1229 "configure" |
---|
1229 | #include "confdefs.h" |
---|
1230 | #include <syslog.h> |
---|
1231 | int main() { |
---|
1232 | int foo = LOG_DAEMON; |
---|
1233 | ; return 0; } |
---|
1234 | EOF |
---|
1235 | if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1236 | : |
---|
1237 | else |
---|
1238 | echo "configure: failed program was:" >&5 |
---|
1239 | cat conftest.$ac_ext >&5 |
---|
1240 | rm -rf conftest* |
---|
1241 | cat >> confdefs.h <<\EOF |
---|
1242 | #define NEED_SYS_SYSLOG_H 1 |
---|
1243 | EOF |
---|
1244 | |
---|
1245 | fi |
---|
1246 | rm -f conftest* |
---|
1247 | ;; |
---|
1248 | *-*-hpux7.*) |
---|
1249 | # Kludge for ancient HPUX 7.x (from Nenad Babajic <saca@uis0.uis.kg.ac.yu>) |
---|
1250 | cat >> confdefs.h <<\EOF |
---|
1251 | #define HPSUX7_KLUDGES 1 |
---|
1252 | EOF |
---|
1253 | |
---|
1254 | # HPUX flags from jgotts@engin.umich.edu |
---|
1255 | if test -z "$GCC"; then |
---|
1256 | CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE" |
---|
1257 | fi |
---|
1258 | cat >> confdefs.h <<\EOF |
---|
1259 | #define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1 |
---|
1260 | EOF |
---|
1261 | |
---|
1262 | cat >> confdefs.h <<\EOF |
---|
1263 | #define HPSUX_NONSTANDARD_X11_KLUDGE 1 |
---|
1264 | EOF |
---|
1265 | |
---|
1266 | ;; |
---|
1267 | *-*-hpux*) |
---|
1268 | # HPUX flags from jgotts@engin.umich.edu |
---|
1269 | if test -z "$GCC"; then |
---|
1270 | CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE" |
---|
1271 | fi |
---|
1272 | echo $ac_n "checking for HPUX tcb auth option""... $ac_c" 1>&6 |
---|
1273 | echo "configure:1274: checking for HPUX tcb auth option" >&5 |
---|
1274 | if test -f /tcb/files/auth/system/pw_id_map; then |
---|
1275 | echo "$ac_t""yes" 1>&6 |
---|
1276 | cat >> confdefs.h <<\EOF |
---|
1277 | #define HAVE_HPUX_TCB_AUTH 1 |
---|
1278 | EOF |
---|
1279 | |
---|
1280 | LIBS="$LIBS -lsec" |
---|
1281 | else |
---|
1282 | echo "$ac_t""no" 1>&6 |
---|
1283 | fi |
---|
1284 | echo $ac_n "checking for keyserv""... $ac_c" 1>&6 |
---|
1285 | echo "configure:1286: checking for keyserv" >&5 |
---|
1286 | if test -f /usr/sbin/keyserv; then |
---|
1287 | echo "$ac_t""yes" 1>&6 |
---|
1288 | cat >> confdefs.h <<\EOF |
---|
1289 | #define SECURE_RPC 1 |
---|
1290 | EOF |
---|
1291 | |
---|
1292 | LIBS="$LIBS -lrpcsvc" |
---|
1293 | else |
---|
1294 | echo "$ac_t""no" 1>&6 |
---|
1295 | fi |
---|
1296 | cat >> confdefs.h <<\EOF |
---|
1297 | #define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1 |
---|
1298 | EOF |
---|
1299 | |
---|
1300 | cat >> confdefs.h <<\EOF |
---|
1301 | #define HPSUX_NONSTANDARD_X11_KLUDGE 1 |
---|
1302 | EOF |
---|
1303 | |
---|
1304 | no_utmpx=yes |
---|
1305 | ;; |
---|
1306 | alpha-dec-osf*) |
---|
1307 | cat >> confdefs.h <<\EOF |
---|
1308 | #define TTY_GROUP "terminal" |
---|
1309 | EOF |
---|
1310 | |
---|
1311 | # The man page says that we need -lsecurity -ldb -laud -lm to quickstart |
---|
1312 | # programs using enchanced security. |
---|
1313 | echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6 |
---|
1314 | echo "configure:1315: checking for set_auth_parameters in -lsecurity" >&5 |
---|
1315 | ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'` |
---|
1316 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1317 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1318 | else |
---|
1319 | ac_save_LIBS="$LIBS" |
---|
1320 | LIBS="-lsecurity $LIBS" |
---|
1321 | cat > conftest.$ac_ext <<EOF |
---|
1322 | #line 1323 "configure" |
---|
1323 | #include "confdefs.h" |
---|
1324 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1325 | /* We use char because int might match the return type of a gcc2 |
---|
1326 | builtin and then its argument prototype would still apply. */ |
---|
1327 | char set_auth_parameters(); |
---|
1328 | |
---|
1329 | int main() { |
---|
1330 | set_auth_parameters() |
---|
1331 | ; return 0; } |
---|
1332 | EOF |
---|
1333 | if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1334 | rm -rf conftest* |
---|
1335 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1336 | else |
---|
1337 | echo "configure: failed program was:" >&5 |
---|
1338 | cat conftest.$ac_ext >&5 |
---|
1339 | rm -rf conftest* |
---|
1340 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1341 | fi |
---|
1342 | rm -f conftest* |
---|
1343 | LIBS="$ac_save_LIBS" |
---|
1344 | |
---|
1345 | fi |
---|
1346 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1347 | echo "$ac_t""yes" 1>&6 |
---|
1348 | ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1349 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1350 | cat >> confdefs.h <<EOF |
---|
1351 | #define $ac_tr_lib 1 |
---|
1352 | EOF |
---|
1353 | |
---|
1354 | LIBS="-lsecurity $LIBS" |
---|
1355 | |
---|
1356 | else |
---|
1357 | echo "$ac_t""no" 1>&6 |
---|
1358 | fi |
---|
1359 | |
---|
1360 | echo $ac_n "checking for audgen in -laud""... $ac_c" 1>&6 |
---|
1361 | echo "configure:1362: checking for audgen in -laud" >&5 |
---|
1362 | ac_lib_var=`echo aud'_'audgen | sed 'y%./+-%__p_%'` |
---|
1363 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1364 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1365 | else |
---|
1366 | ac_save_LIBS="$LIBS" |
---|
1367 | LIBS="-laud $LIBS" |
---|
1368 | cat > conftest.$ac_ext <<EOF |
---|
1369 | #line 1370 "configure" |
---|
1370 | #include "confdefs.h" |
---|
1371 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1372 | /* We use char because int might match the return type of a gcc2 |
---|
1373 | builtin and then its argument prototype would still apply. */ |
---|
1374 | char audgen(); |
---|
1375 | |
---|
1376 | int main() { |
---|
1377 | audgen() |
---|
1378 | ; return 0; } |
---|
1379 | EOF |
---|
1380 | if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1381 | rm -rf conftest* |
---|
1382 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1383 | else |
---|
1384 | echo "configure: failed program was:" >&5 |
---|
1385 | cat conftest.$ac_ext >&5 |
---|
1386 | rm -rf conftest* |
---|
1387 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1388 | fi |
---|
1389 | rm -f conftest* |
---|
1390 | LIBS="$ac_save_LIBS" |
---|
1391 | |
---|
1392 | fi |
---|
1393 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1394 | echo "$ac_t""yes" 1>&6 |
---|
1395 | ac_tr_lib=HAVE_LIB`echo aud | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1396 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1397 | cat >> confdefs.h <<EOF |
---|
1398 | #define $ac_tr_lib 1 |
---|
1399 | EOF |
---|
1400 | |
---|
1401 | LIBS="-laud $LIBS" |
---|
1402 | |
---|
1403 | else |
---|
1404 | echo "$ac_t""no" 1>&6 |
---|
1405 | fi |
---|
1406 | |
---|
1407 | echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 |
---|
1408 | echo "configure:1409: checking for dbopen in -ldb" >&5 |
---|
1409 | ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` |
---|
1410 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1411 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1412 | else |
---|
1413 | ac_save_LIBS="$LIBS" |
---|
1414 | LIBS="-ldb $LIBS" |
---|
1415 | cat > conftest.$ac_ext <<EOF |
---|
1416 | #line 1417 "configure" |
---|
1417 | #include "confdefs.h" |
---|
1418 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1419 | /* We use char because int might match the return type of a gcc2 |
---|
1420 | builtin and then its argument prototype would still apply. */ |
---|
1421 | char dbopen(); |
---|
1422 | |
---|
1423 | int main() { |
---|
1424 | dbopen() |
---|
1425 | ; return 0; } |
---|
1426 | EOF |
---|
1427 | if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1428 | rm -rf conftest* |
---|
1429 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1430 | else |
---|
1431 | echo "configure: failed program was:" >&5 |
---|
1432 | cat conftest.$ac_ext >&5 |
---|
1433 | rm -rf conftest* |
---|
1434 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1435 | fi |
---|
1436 | rm -f conftest* |
---|
1437 | LIBS="$ac_save_LIBS" |
---|
1438 | |
---|
1439 | fi |
---|
1440 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1441 | echo "$ac_t""yes" 1>&6 |
---|
1442 | ac_tr_lib=HAVE_LIB`echo db | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1443 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1444 | cat >> confdefs.h <<EOF |
---|
1445 | #define $ac_tr_lib 1 |
---|
1446 | EOF |
---|
1447 | |
---|
1448 | LIBS="-ldb $LIBS" |
---|
1449 | |
---|
1450 | else |
---|
1451 | echo "$ac_t""no" 1>&6 |
---|
1452 | fi |
---|
1453 | |
---|
1454 | echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 |
---|
1455 | echo "configure:1456: checking for sin in -lm" >&5 |
---|
1456 | ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` |
---|
1457 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1458 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1459 | else |
---|
1460 | ac_save_LIBS="$LIBS" |
---|
1461 | LIBS="-lm $LIBS" |
---|
1462 | cat > conftest.$ac_ext <<EOF |
---|
1463 | #line 1464 "configure" |
---|
1464 | #include "confdefs.h" |
---|
1465 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1466 | /* We use char because int might match the return type of a gcc2 |
---|
1467 | builtin and then its argument prototype would still apply. */ |
---|
1468 | char sin(); |
---|
1469 | |
---|
1470 | int main() { |
---|
1471 | sin() |
---|
1472 | ; return 0; } |
---|
1473 | EOF |
---|
1474 | if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1475 | rm -rf conftest* |
---|
1476 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1477 | else |
---|
1478 | echo "configure: failed program was:" >&5 |
---|
1479 | cat conftest.$ac_ext >&5 |
---|
1480 | rm -rf conftest* |
---|
1481 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1482 | fi |
---|
1483 | rm -f conftest* |
---|
1484 | LIBS="$ac_save_LIBS" |
---|
1485 | |
---|
1486 | fi |
---|
1487 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1488 | echo "$ac_t""yes" 1>&6 |
---|
1489 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1490 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1491 | cat >> confdefs.h <<EOF |
---|
1492 | #define $ac_tr_lib 1 |
---|
1493 | EOF |
---|
1494 | |
---|
1495 | LIBS="-lm $LIBS" |
---|
1496 | |
---|
1497 | else |
---|
1498 | echo "$ac_t""no" 1>&6 |
---|
1499 | fi |
---|
1500 | |
---|
1501 | for ac_func in setluid getespwnam locked_out_es time_lock |
---|
1502 | do |
---|
1503 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
1504 | echo "configure:1505: checking for $ac_func" >&5 |
---|
1505 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
1506 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1507 | else |
---|
1508 | cat > conftest.$ac_ext <<EOF |
---|
1509 | #line 1510 "configure" |
---|
1510 | #include "confdefs.h" |
---|
1511 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1512 | which can conflict with char $ac_func(); below. */ |
---|
1513 | #include <assert.h> |
---|
1514 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1515 | /* We use char because int might match the return type of a gcc2 |
---|
1516 | builtin and then its argument prototype would still apply. */ |
---|
1517 | char $ac_func(); |
---|
1518 | |
---|
1519 | int main() { |
---|
1520 | |
---|
1521 | /* The GNU C library defines this for functions which it implements |
---|
1522 | to always fail with ENOSYS. Some functions are actually named |
---|
1523 | something starting with __ and the normal name is an alias. */ |
---|
1524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
1525 | choke me |
---|
1526 | #else |
---|
1527 | $ac_func(); |
---|
1528 | #endif |
---|
1529 | |
---|
1530 | ; return 0; } |
---|
1531 | EOF |
---|
1532 | if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1533 | rm -rf conftest* |
---|
1534 | eval "ac_cv_func_$ac_func=yes" |
---|
1535 | else |
---|
1536 | echo "configure: failed program was:" >&5 |
---|
1537 | cat conftest.$ac_ext >&5 |
---|
1538 | rm -rf conftest* |
---|
1539 | eval "ac_cv_func_$ac_func=no" |
---|
1540 | fi |
---|
1541 | rm -f conftest* |
---|
1542 | fi |
---|
1543 | |
---|
1544 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
1545 | echo "$ac_t""yes" 1>&6 |
---|
1546 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1547 | cat >> confdefs.h <<EOF |
---|
1548 | #define $ac_tr_func 1 |
---|
1549 | EOF |
---|
1550 | |
---|
1551 | else |
---|
1552 | echo "$ac_t""no" 1>&6 |
---|
1553 | fi |
---|
1554 | done |
---|
1555 | |
---|
1556 | no_utmpx=yes |
---|
1557 | echo $ac_n "checking for OSF/1 C2 security package""... $ac_c" 1>&6 |
---|
1558 | echo "configure:1559: checking for OSF/1 C2 security package" >&5 |
---|
1559 | osfc2sec=`/usr/sbin/setld -i | grep '^OSFC2SEC' | grep 'installed'` |
---|
1560 | if test -n "$osfc2sec"; then |
---|
1561 | echo "$ac_t""yes" 1>&6 |
---|
1562 | cat >> confdefs.h <<\EOF |
---|
1563 | #define HAVE_OSF1_C2_SECURITY 1 |
---|
1564 | EOF |
---|
1565 | |
---|
1566 | SSHDCONFOBJS="$SSHDCONFOBJS osfc2.o" |
---|
1567 | OLD_CFLAGS="$CFLAGS" |
---|
1568 | CFLAGS="$CFLAGS -I." |
---|
1569 | cat > conftest.$ac_ext <<EOF |
---|
1570 | #line 1571 "configure" |
---|
1571 | #include "confdefs.h" |
---|
1572 | #include <sys/types.h> |
---|
1573 | #include <sys/security.h> |
---|
1574 | #include <prot.h> |
---|
1575 | int main() { |
---|
1576 | |
---|
1577 | ; return 0; } |
---|
1578 | EOF |
---|
1579 | if { (eval echo configure:1580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1580 | : |
---|
1581 | else |
---|
1582 | echo "configure: failed program was:" >&5 |
---|
1583 | cat conftest.$ac_ext >&5 |
---|
1584 | rm -rf conftest* |
---|
1585 | |
---|
1586 | echo "configure: warning: Could not include <prot.h> file. |
---|
1587 | The digital unix 4.0 prot.h tries to include <acl.h> instead of <sys/acl.h>. |
---|
1588 | Making a local copy of prot.h and patching it." 1>&2 |
---|
1589 | sed 's@<acl.h>@<sys/acl.h>@g' </usr/include/prot.h >prot.h |
---|
1590 | |
---|
1591 | fi |
---|
1592 | rm -f conftest* |
---|
1593 | CFLAGS="$OLD_CFLAGS" |
---|
1594 | else |
---|
1595 | echo "$ac_t""no" 1>&6 |
---|
1596 | fi |
---|
1597 | ;; |
---|
1598 | *-*-nextstep*) |
---|
1599 | # Nextstep support from a person who wants to remain anonymous |
---|
1600 | no_termios=yes |
---|
1601 | if test -f /usr/include/bsd/sys/termios.h; then |
---|
1602 | cat >> confdefs.h <<\EOF |
---|
1603 | #define SPEED_T_IN_STDTYPES_H 1 |
---|
1604 | EOF |
---|
1605 | |
---|
1606 | fi |
---|
1607 | ;; |
---|
1608 | *-*-linux*) |
---|
1609 | echo $ac_n "checking for getspnam""... $ac_c" 1>&6 |
---|
1610 | echo "configure:1611: checking for getspnam" >&5 |
---|
1611 | if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then |
---|
1612 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1613 | else |
---|
1614 | cat > conftest.$ac_ext <<EOF |
---|
1615 | #line 1616 "configure" |
---|
1616 | #include "confdefs.h" |
---|
1617 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1618 | which can conflict with char getspnam(); below. */ |
---|
1619 | #include <assert.h> |
---|
1620 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1621 | /* We use char because int might match the return type of a gcc2 |
---|
1622 | builtin and then its argument prototype would still apply. */ |
---|
1623 | char getspnam(); |
---|
1624 | |
---|
1625 | int main() { |
---|
1626 | |
---|
1627 | /* The GNU C library defines this for functions which it implements |
---|
1628 | to always fail with ENOSYS. Some functions are actually named |
---|
1629 | something starting with __ and the normal name is an alias. */ |
---|
1630 | #if defined (__stub_getspnam) || defined (__stub___getspnam) |
---|
1631 | choke me |
---|
1632 | #else |
---|
1633 | getspnam(); |
---|
1634 | #endif |
---|
1635 | |
---|
1636 | ; return 0; } |
---|
1637 | EOF |
---|
1638 | if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1639 | rm -rf conftest* |
---|
1640 | eval "ac_cv_func_getspnam=yes" |
---|
1641 | else |
---|
1642 | echo "configure: failed program was:" >&5 |
---|
1643 | cat conftest.$ac_ext >&5 |
---|
1644 | rm -rf conftest* |
---|
1645 | eval "ac_cv_func_getspnam=no" |
---|
1646 | fi |
---|
1647 | rm -f conftest* |
---|
1648 | fi |
---|
1649 | |
---|
1650 | if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then |
---|
1651 | echo "$ac_t""yes" 1>&6 |
---|
1652 | : |
---|
1653 | else |
---|
1654 | echo "$ac_t""no" 1>&6 |
---|
1655 | fi |
---|
1656 | |
---|
1657 | if test $ac_cv_func_getspnam = no; then |
---|
1658 | echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6 |
---|
1659 | echo "configure:1660: checking for getspnam in -lshadow" >&5 |
---|
1660 | ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'` |
---|
1661 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1662 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1663 | else |
---|
1664 | ac_save_LIBS="$LIBS" |
---|
1665 | LIBS="-lshadow $LIBS" |
---|
1666 | cat > conftest.$ac_ext <<EOF |
---|
1667 | #line 1668 "configure" |
---|
1668 | #include "confdefs.h" |
---|
1669 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1670 | /* We use char because int might match the return type of a gcc2 |
---|
1671 | builtin and then its argument prototype would still apply. */ |
---|
1672 | char getspnam(); |
---|
1673 | |
---|
1674 | int main() { |
---|
1675 | getspnam() |
---|
1676 | ; return 0; } |
---|
1677 | EOF |
---|
1678 | if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1679 | rm -rf conftest* |
---|
1680 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1681 | else |
---|
1682 | echo "configure: failed program was:" >&5 |
---|
1683 | cat conftest.$ac_ext >&5 |
---|
1684 | rm -rf conftest* |
---|
1685 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1686 | fi |
---|
1687 | rm -f conftest* |
---|
1688 | LIBS="$ac_save_LIBS" |
---|
1689 | |
---|
1690 | fi |
---|
1691 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1692 | echo "$ac_t""yes" 1>&6 |
---|
1693 | ac_tr_lib=HAVE_LIB`echo shadow | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1694 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1695 | cat >> confdefs.h <<EOF |
---|
1696 | #define $ac_tr_lib 1 |
---|
1697 | EOF |
---|
1698 | |
---|
1699 | LIBS="-lshadow $LIBS" |
---|
1700 | |
---|
1701 | else |
---|
1702 | echo "$ac_t""no" 1>&6 |
---|
1703 | fi |
---|
1704 | |
---|
1705 | fi |
---|
1706 | if test $ac_cv_func_getspnam = yes; then |
---|
1707 | cat >> confdefs.h <<\EOF |
---|
1708 | #define HAVE_ETC_SHADOW 1 |
---|
1709 | EOF |
---|
1710 | |
---|
1711 | fi |
---|
1712 | no_shadows_password_checking=yes |
---|
1713 | for ac_func in pw_encrypt |
---|
1714 | do |
---|
1715 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
1716 | echo "configure:1717: checking for $ac_func" >&5 |
---|
1717 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
1718 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1719 | else |
---|
1720 | cat > conftest.$ac_ext <<EOF |
---|
1721 | #line 1722 "configure" |
---|
1722 | #include "confdefs.h" |
---|
1723 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1724 | which can conflict with char $ac_func(); below. */ |
---|
1725 | #include <assert.h> |
---|
1726 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1727 | /* We use char because int might match the return type of a gcc2 |
---|
1728 | builtin and then its argument prototype would still apply. */ |
---|
1729 | char $ac_func(); |
---|
1730 | |
---|
1731 | int main() { |
---|
1732 | |
---|
1733 | /* The GNU C library defines this for functions which it implements |
---|
1734 | to always fail with ENOSYS. Some functions are actually named |
---|
1735 | something starting with __ and the normal name is an alias. */ |
---|
1736 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
1737 | choke me |
---|
1738 | #else |
---|
1739 | $ac_func(); |
---|
1740 | #endif |
---|
1741 | |
---|
1742 | ; return 0; } |
---|
1743 | EOF |
---|
1744 | if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1745 | rm -rf conftest* |
---|
1746 | eval "ac_cv_func_$ac_func=yes" |
---|
1747 | else |
---|
1748 | echo "configure: failed program was:" >&5 |
---|
1749 | cat conftest.$ac_ext >&5 |
---|
1750 | rm -rf conftest* |
---|
1751 | eval "ac_cv_func_$ac_func=no" |
---|
1752 | fi |
---|
1753 | rm -f conftest* |
---|
1754 | fi |
---|
1755 | |
---|
1756 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
1757 | echo "$ac_t""yes" 1>&6 |
---|
1758 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1759 | cat >> confdefs.h <<EOF |
---|
1760 | #define $ac_tr_func 1 |
---|
1761 | EOF |
---|
1762 | pwencrypt=yes |
---|
1763 | else |
---|
1764 | echo "$ac_t""no" 1>&6 |
---|
1765 | fi |
---|
1766 | done |
---|
1767 | |
---|
1768 | if test $ac_cv_func_pw_encrypt = no; then |
---|
1769 | echo $ac_n "checking for pw_encrypt in -lshadow""... $ac_c" 1>&6 |
---|
1770 | echo "configure:1771: checking for pw_encrypt in -lshadow" >&5 |
---|
1771 | ac_lib_var=`echo shadow'_'pw_encrypt | sed 'y%./+-%__p_%'` |
---|
1772 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1773 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1774 | else |
---|
1775 | ac_save_LIBS="$LIBS" |
---|
1776 | LIBS="-lshadow $LIBS" |
---|
1777 | cat > conftest.$ac_ext <<EOF |
---|
1778 | #line 1779 "configure" |
---|
1779 | #include "confdefs.h" |
---|
1780 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1781 | /* We use char because int might match the return type of a gcc2 |
---|
1782 | builtin and then its argument prototype would still apply. */ |
---|
1783 | char pw_encrypt(); |
---|
1784 | |
---|
1785 | int main() { |
---|
1786 | pw_encrypt() |
---|
1787 | ; return 0; } |
---|
1788 | EOF |
---|
1789 | if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1790 | rm -rf conftest* |
---|
1791 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1792 | else |
---|
1793 | echo "configure: failed program was:" >&5 |
---|
1794 | cat conftest.$ac_ext >&5 |
---|
1795 | rm -rf conftest* |
---|
1796 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1797 | fi |
---|
1798 | rm -f conftest* |
---|
1799 | LIBS="$ac_save_LIBS" |
---|
1800 | |
---|
1801 | fi |
---|
1802 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1803 | echo "$ac_t""yes" 1>&6 |
---|
1804 | |
---|
1805 | pwencrypt=yes |
---|
1806 | pwencryptlib="-lshadow" |
---|
1807 | else |
---|
1808 | echo "$ac_t""no" 1>&6 |
---|
1809 | fi |
---|
1810 | |
---|
1811 | fi |
---|
1812 | echo $ac_n "checking whether to enable pw_encrypt""... $ac_c" 1>&6 |
---|
1813 | echo "configure:1814: checking whether to enable pw_encrypt" >&5 |
---|
1814 | # Check whether --enable-deprecated-linux-pw-encrypt or --disable-deprecated-linux-pw-encrypt was given. |
---|
1815 | if test "${enable_deprecated_linux_pw_encrypt+set}" = set; then |
---|
1816 | enableval="$enable_deprecated_linux_pw_encrypt" |
---|
1817 | if test -z "$pwencrypt"; then |
---|
1818 | echo "$ac_t""no" 1>&6 |
---|
1819 | else |
---|
1820 | cat >> confdefs.h <<\EOF |
---|
1821 | #define crypt pw_encrypt |
---|
1822 | EOF |
---|
1823 | |
---|
1824 | echo "$ac_t""no" 1>&6 |
---|
1825 | if test -n "$pwencryptlib"; then |
---|
1826 | LIBS="$LIBS $pwencryptlib" |
---|
1827 | fi |
---|
1828 | fi |
---|
1829 | else |
---|
1830 | echo "$ac_t""no" 1>&6 |
---|
1831 | fi |
---|
1832 | |
---|
1833 | ;; |
---|
1834 | i*86-*-bsdi2.1*) |
---|
1835 | no_pipe=yes |
---|
1836 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
1837 | ;; |
---|
1838 | i*86-*-bsdi*) |
---|
1839 | no_pipe=yes |
---|
1840 | ;; |
---|
1841 | i*86-unknown-bsd*) |
---|
1842 | # Assume 386BSD. pgut01@cs.auckland.ac.nz reported this makes it compile. |
---|
1843 | cat >> confdefs.h <<\EOF |
---|
1844 | #define __FreeBSD__ 1 |
---|
1845 | EOF |
---|
1846 | |
---|
1847 | ;; |
---|
1848 | mips-sony-newsos6) |
---|
1849 | cat >> confdefs.h <<\EOF |
---|
1850 | #define HAVE_NO_TZ_IN_GETTIMEOFDAY 1 |
---|
1851 | EOF |
---|
1852 | |
---|
1853 | ;; |
---|
1854 | m68k-sony-newsos*) |
---|
1855 | # From snabb@niksula.hut.fi |
---|
1856 | no_vhangup=yes |
---|
1857 | ;; |
---|
1858 | mips-sony-bsd*) |
---|
1859 | no_vhangup=yes |
---|
1860 | ;; |
---|
1861 | m68k-apple-aux*) |
---|
1862 | # Macintosh A/UX tweaks - prune LIB = -L/usr/local/lib, exceeds ld capacity |
---|
1863 | # add -lposix to it, needed for termio stuff |
---|
1864 | LIBS="$LIBS -lposix" |
---|
1865 | cat >> confdefs.h <<\EOF |
---|
1866 | #define _POSIX_SOURCE 1 |
---|
1867 | EOF |
---|
1868 | |
---|
1869 | ;; |
---|
1870 | m88k-dg-dgux*) |
---|
1871 | cat >> confdefs.h <<\EOF |
---|
1872 | #define BROKEN_INET_ADDR 1 |
---|
1873 | EOF |
---|
1874 | |
---|
1875 | ;; |
---|
1876 | t3e-*-*) |
---|
1877 | CFLAGS="$CFLAGS -I." |
---|
1878 | LIBS="$LIBS -lrsc" |
---|
1879 | ;; |
---|
1880 | *-cray-unicos*) |
---|
1881 | CFLAGS="$CFLAGS -DCRAY_STACKSEG_END=_getb67" |
---|
1882 | LIBS="$LIBS -lrsc" |
---|
1883 | ;; |
---|
1884 | i386-sni-sysv4*) |
---|
1885 | cat >> confdefs.h <<\EOF |
---|
1886 | #define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1 |
---|
1887 | EOF |
---|
1888 | |
---|
1889 | echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6 |
---|
1890 | echo "configure:1891: checking for openlog in -lgen" >&5 |
---|
1891 | ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'` |
---|
1892 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1893 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1894 | else |
---|
1895 | ac_save_LIBS="$LIBS" |
---|
1896 | LIBS="-lgen $LIBS" |
---|
1897 | cat > conftest.$ac_ext <<EOF |
---|
1898 | #line 1899 "configure" |
---|
1899 | #include "confdefs.h" |
---|
1900 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1901 | /* We use char because int might match the return type of a gcc2 |
---|
1902 | builtin and then its argument prototype would still apply. */ |
---|
1903 | char openlog(); |
---|
1904 | |
---|
1905 | int main() { |
---|
1906 | openlog() |
---|
1907 | ; return 0; } |
---|
1908 | EOF |
---|
1909 | if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1910 | rm -rf conftest* |
---|
1911 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1912 | else |
---|
1913 | echo "configure: failed program was:" >&5 |
---|
1914 | cat conftest.$ac_ext >&5 |
---|
1915 | rm -rf conftest* |
---|
1916 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1917 | fi |
---|
1918 | rm -f conftest* |
---|
1919 | LIBS="$ac_save_LIBS" |
---|
1920 | |
---|
1921 | fi |
---|
1922 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1923 | echo "$ac_t""yes" 1>&6 |
---|
1924 | ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1925 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1926 | cat >> confdefs.h <<EOF |
---|
1927 | #define $ac_tr_lib 1 |
---|
1928 | EOF |
---|
1929 | |
---|
1930 | LIBS="-lgen $LIBS" |
---|
1931 | |
---|
1932 | else |
---|
1933 | echo "$ac_t""no" 1>&6 |
---|
1934 | fi |
---|
1935 | |
---|
1936 | ;; |
---|
1937 | *-*-sysv4*) |
---|
1938 | echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6 |
---|
1939 | echo "configure:1940: checking for openlog in -lgen" >&5 |
---|
1940 | ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'` |
---|
1941 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1942 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1943 | else |
---|
1944 | ac_save_LIBS="$LIBS" |
---|
1945 | LIBS="-lgen $LIBS" |
---|
1946 | cat > conftest.$ac_ext <<EOF |
---|
1947 | #line 1948 "configure" |
---|
1948 | #include "confdefs.h" |
---|
1949 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1950 | /* We use char because int might match the return type of a gcc2 |
---|
1951 | builtin and then its argument prototype would still apply. */ |
---|
1952 | char openlog(); |
---|
1953 | |
---|
1954 | int main() { |
---|
1955 | openlog() |
---|
1956 | ; return 0; } |
---|
1957 | EOF |
---|
1958 | if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1959 | rm -rf conftest* |
---|
1960 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1961 | else |
---|
1962 | echo "configure: failed program was:" >&5 |
---|
1963 | cat conftest.$ac_ext >&5 |
---|
1964 | rm -rf conftest* |
---|
1965 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1966 | fi |
---|
1967 | rm -f conftest* |
---|
1968 | LIBS="$ac_save_LIBS" |
---|
1969 | |
---|
1970 | fi |
---|
1971 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1972 | echo "$ac_t""yes" 1>&6 |
---|
1973 | ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1974 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1975 | cat >> confdefs.h <<EOF |
---|
1976 | #define $ac_tr_lib 1 |
---|
1977 | EOF |
---|
1978 | |
---|
1979 | LIBS="-lgen $LIBS" |
---|
1980 | |
---|
1981 | else |
---|
1982 | echo "$ac_t""no" 1>&6 |
---|
1983 | fi |
---|
1984 | |
---|
1985 | ;; |
---|
1986 | *-*-machten*) |
---|
1987 | cat >> confdefs.h <<\EOF |
---|
1988 | #define USE_STRLEN_FOR_AF_UNIX 1 |
---|
1989 | EOF |
---|
1990 | |
---|
1991 | no_vhangup=yes |
---|
1992 | ;; |
---|
1993 | i*86-unknown-sco3.2v4*) |
---|
1994 | # From moi@dio.com |
---|
1995 | cat >> confdefs.h <<\EOF |
---|
1996 | #define HAVE_SCO_ETC_SHADOW 1 |
---|
1997 | EOF |
---|
1998 | |
---|
1999 | cat >> confdefs.h <<\EOF |
---|
2000 | #define SCO 1 |
---|
2001 | EOF |
---|
2002 | |
---|
2003 | no_ranlib=yes |
---|
2004 | LIBS="-L/usr/lib/libp -lprot -lx $LIBS" |
---|
2005 | CFLAGS="$CFLAGS -UM_I86SM" |
---|
2006 | ;; |
---|
2007 | i*86-unknown-sco3.2v5*) |
---|
2008 | # From brian@ilinx.com |
---|
2009 | cat >> confdefs.h <<\EOF |
---|
2010 | #define HAVE_SCO_ETC_SHADOW 1 |
---|
2011 | EOF |
---|
2012 | |
---|
2013 | cat >> confdefs.h <<\EOF |
---|
2014 | #define SCO 1 |
---|
2015 | EOF |
---|
2016 | |
---|
2017 | cat >> confdefs.h <<\EOF |
---|
2018 | #define SCO5 1 |
---|
2019 | EOF |
---|
2020 | |
---|
2021 | no_ranlib=yes |
---|
2022 | LIBS="-L/usr/lib/libp -lprot -lx $LIBS" |
---|
2023 | CFLAGS="$CFLAGS -UM_I86SM" |
---|
2024 | ;; |
---|
2025 | *-convex-bsd*) |
---|
2026 | # From mark.martinec@nsc.ijs.si |
---|
2027 | # On Convex, getpwnam sets pw_passwd if running as root |
---|
2028 | no_shadows_password_checking=yes |
---|
2029 | ;; |
---|
2030 | *-sequent-ptx*) |
---|
2031 | # From geek+@cmu.edu |
---|
2032 | test_libinet=yes |
---|
2033 | ;; |
---|
2034 | *-sequent-dynix*|*-sequent-ptx*) |
---|
2035 | LIBS="-lseq -lsec $LIBS" |
---|
2036 | X_EXTRA_LIBS="-lsocket -linet -lnsl $X_EXTRA_LIBS" |
---|
2037 | ;; |
---|
2038 | *-*-freebsd*) |
---|
2039 | # From Ollivier Robert: FreeBSD and NetBSD use master.passwd, but set |
---|
2040 | # pw_passwd automatically when running as root. |
---|
2041 | no_shadow_password_checking=yes |
---|
2042 | ;; |
---|
2043 | *-*-netbsd*|*-*-openbsd*) |
---|
2044 | # From Ollivier Robert: FreeBSD and NetBSD use master.passwd, but set |
---|
2045 | # pw_passwd automatically when running as root. |
---|
2046 | no_shadow_password_checking=yes |
---|
2047 | ;; |
---|
2048 | *) |
---|
2049 | ;; |
---|
2050 | esac |
---|
2051 | |
---|
2052 | export CFLAGS CC |
---|
2053 | |
---|
2054 | # Socket pairs appear to be broken on several systems. I don't know exactly |
---|
2055 | # where, so I'll use pipes everywhere for now. |
---|
2056 | cat >> confdefs.h <<\EOF |
---|
2057 | #define USE_PIPES 1 |
---|
2058 | EOF |
---|
2059 | |
---|
2060 | |
---|
2061 | echo $ac_n "checking that the compiler works""... $ac_c" 1>&6 |
---|
2062 | echo "configure:2063: checking that the compiler works" >&5 |
---|
2063 | if test "$cross_compiling" = yes; then |
---|
2064 | { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; } |
---|
2065 | else |
---|
2066 | cat > conftest.$ac_ext <<EOF |
---|
2067 | #line 2068 "configure" |
---|
2068 | #include "confdefs.h" |
---|
2069 | main(int ac, char **av) { return 0; } |
---|
2070 | EOF |
---|
2071 | if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2072 | then |
---|
2073 | echo "$ac_t""yes" 1>&6 |
---|
2074 | else |
---|
2075 | echo "configure: failed program was:" >&5 |
---|
2076 | cat conftest.$ac_ext >&5 |
---|
2077 | rm -fr conftest* |
---|
2078 | echo "$ac_t""no" 1>&6 |
---|
2079 | { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; } |
---|
2080 | fi |
---|
2081 | rm -fr conftest* |
---|
2082 | fi |
---|
2083 | |
---|
2084 | |
---|
2085 | if test -z "$no_pipe"; then |
---|
2086 | if test -n "$GCC"; then |
---|
2087 | echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6 |
---|
2088 | echo "configure:2089: checking if the compiler understands -pipe" >&5 |
---|
2089 | OLDCC="$CC" |
---|
2090 | CC="$CC -pipe" |
---|
2091 | cat > conftest.$ac_ext <<EOF |
---|
2092 | #line 2093 "configure" |
---|
2093 | #include "confdefs.h" |
---|
2094 | |
---|
2095 | int main() { |
---|
2096 | |
---|
2097 | ; return 0; } |
---|
2098 | EOF |
---|
2099 | if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2100 | rm -rf conftest* |
---|
2101 | echo "$ac_t""yes" 1>&6 |
---|
2102 | else |
---|
2103 | echo "configure: failed program was:" >&5 |
---|
2104 | cat conftest.$ac_ext >&5 |
---|
2105 | rm -rf conftest* |
---|
2106 | CC="$OLDCC" |
---|
2107 | echo "$ac_t""no" 1>&6 |
---|
2108 | fi |
---|
2109 | rm -f conftest* |
---|
2110 | fi |
---|
2111 | fi |
---|
2112 | |
---|
2113 | echo $ac_n "checking whether to enable -Wall""... $ac_c" 1>&6 |
---|
2114 | echo "configure:2115: checking whether to enable -Wall" >&5 |
---|
2115 | # Check whether --enable-warnings or --disable-warnings was given. |
---|
2116 | if test "${enable_warnings+set}" = set; then |
---|
2117 | enableval="$enable_warnings" |
---|
2118 | if test -n "$GCC"; then |
---|
2119 | echo "$ac_t""adding -Wall to CFLAGS." 1>&6 |
---|
2120 | CFLAGS="$CFLAGS -Wall" |
---|
2121 | fi |
---|
2122 | else |
---|
2123 | echo "$ac_t""no" 1>&6 |
---|
2124 | fi |
---|
2125 | |
---|
2126 | |
---|
2127 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
---|
2128 | echo "configure:2129: checking return type of signal handlers" >&5 |
---|
2129 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
---|
2130 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2131 | else |
---|
2132 | cat > conftest.$ac_ext <<EOF |
---|
2133 | #line 2134 "configure" |
---|
2134 | #include "confdefs.h" |
---|
2135 | #include <sys/types.h> |
---|
2136 | #include <signal.h> |
---|
2137 | #ifdef signal |
---|
2138 | #undef signal |
---|
2139 | #endif |
---|
2140 | #ifdef __cplusplus |
---|
2141 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
2142 | #else |
---|
2143 | void (*signal ()) (); |
---|
2144 | #endif |
---|
2145 | |
---|
2146 | int main() { |
---|
2147 | int i; |
---|
2148 | ; return 0; } |
---|
2149 | EOF |
---|
2150 | if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2151 | rm -rf conftest* |
---|
2152 | ac_cv_type_signal=void |
---|
2153 | else |
---|
2154 | echo "configure: failed program was:" >&5 |
---|
2155 | cat conftest.$ac_ext >&5 |
---|
2156 | rm -rf conftest* |
---|
2157 | ac_cv_type_signal=int |
---|
2158 | fi |
---|
2159 | rm -f conftest* |
---|
2160 | fi |
---|
2161 | |
---|
2162 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
---|
2163 | cat >> confdefs.h <<EOF |
---|
2164 | #define RETSIGTYPE $ac_cv_type_signal |
---|
2165 | EOF |
---|
2166 | |
---|
2167 | |
---|
2168 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
2169 | echo "configure:2170: checking how to run the C preprocessor" >&5 |
---|
2170 | # On Suns, sometimes $CPP names a directory. |
---|
2171 | if test -n "$CPP" && test -d "$CPP"; then |
---|
2172 | CPP= |
---|
2173 | fi |
---|
2174 | if test -z "$CPP"; then |
---|
2175 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
2176 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2177 | else |
---|
2178 | # This must be in double quotes, not single quotes, because CPP may get |
---|
2179 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
2180 | CPP="${CC-cc} -E" |
---|
2181 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2182 | # not just through cpp. |
---|
2183 | cat > conftest.$ac_ext <<EOF |
---|
2184 | #line 2185 "configure" |
---|
2185 | #include "confdefs.h" |
---|
2186 | #include <assert.h> |
---|
2187 | Syntax Error |
---|
2188 | EOF |
---|
2189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2190 | { (eval echo configure:2191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2192 | if test -z "$ac_err"; then |
---|
2193 | : |
---|
2194 | else |
---|
2195 | echo "$ac_err" >&5 |
---|
2196 | echo "configure: failed program was:" >&5 |
---|
2197 | cat conftest.$ac_ext >&5 |
---|
2198 | rm -rf conftest* |
---|
2199 | CPP="${CC-cc} -E -traditional-cpp" |
---|
2200 | cat > conftest.$ac_ext <<EOF |
---|
2201 | #line 2202 "configure" |
---|
2202 | #include "confdefs.h" |
---|
2203 | #include <assert.h> |
---|
2204 | Syntax Error |
---|
2205 | EOF |
---|
2206 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2207 | { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2208 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2209 | if test -z "$ac_err"; then |
---|
2210 | : |
---|
2211 | else |
---|
2212 | echo "$ac_err" >&5 |
---|
2213 | echo "configure: failed program was:" >&5 |
---|
2214 | cat conftest.$ac_ext >&5 |
---|
2215 | rm -rf conftest* |
---|
2216 | CPP="${CC-cc} -nologo -E" |
---|
2217 | cat > conftest.$ac_ext <<EOF |
---|
2218 | #line 2219 "configure" |
---|
2219 | #include "confdefs.h" |
---|
2220 | #include <assert.h> |
---|
2221 | Syntax Error |
---|
2222 | EOF |
---|
2223 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2224 | { (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2225 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2226 | if test -z "$ac_err"; then |
---|
2227 | : |
---|
2228 | else |
---|
2229 | echo "$ac_err" >&5 |
---|
2230 | echo "configure: failed program was:" >&5 |
---|
2231 | cat conftest.$ac_ext >&5 |
---|
2232 | rm -rf conftest* |
---|
2233 | CPP=/lib/cpp |
---|
2234 | fi |
---|
2235 | rm -f conftest* |
---|
2236 | fi |
---|
2237 | rm -f conftest* |
---|
2238 | fi |
---|
2239 | rm -f conftest* |
---|
2240 | ac_cv_prog_CPP="$CPP" |
---|
2241 | fi |
---|
2242 | CPP="$ac_cv_prog_CPP" |
---|
2243 | else |
---|
2244 | ac_cv_prog_CPP="$CPP" |
---|
2245 | fi |
---|
2246 | echo "$ac_t""$CPP" 1>&6 |
---|
2247 | |
---|
2248 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
2249 | echo "configure:2250: checking for ANSI C header files" >&5 |
---|
2250 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
2251 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2252 | else |
---|
2253 | cat > conftest.$ac_ext <<EOF |
---|
2254 | #line 2255 "configure" |
---|
2255 | #include "confdefs.h" |
---|
2256 | #include <stdlib.h> |
---|
2257 | #include <stdarg.h> |
---|
2258 | #include <string.h> |
---|
2259 | #include <float.h> |
---|
2260 | EOF |
---|
2261 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2262 | { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2263 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2264 | if test -z "$ac_err"; then |
---|
2265 | rm -rf conftest* |
---|
2266 | ac_cv_header_stdc=yes |
---|
2267 | else |
---|
2268 | echo "$ac_err" >&5 |
---|
2269 | echo "configure: failed program was:" >&5 |
---|
2270 | cat conftest.$ac_ext >&5 |
---|
2271 | rm -rf conftest* |
---|
2272 | ac_cv_header_stdc=no |
---|
2273 | fi |
---|
2274 | rm -f conftest* |
---|
2275 | |
---|
2276 | if test $ac_cv_header_stdc = yes; then |
---|
2277 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2278 | cat > conftest.$ac_ext <<EOF |
---|
2279 | #line 2280 "configure" |
---|
2280 | #include "confdefs.h" |
---|
2281 | #include <string.h> |
---|
2282 | EOF |
---|
2283 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2284 | egrep "memchr" >/dev/null 2>&1; then |
---|
2285 | : |
---|
2286 | else |
---|
2287 | rm -rf conftest* |
---|
2288 | ac_cv_header_stdc=no |
---|
2289 | fi |
---|
2290 | rm -f conftest* |
---|
2291 | |
---|
2292 | fi |
---|
2293 | |
---|
2294 | if test $ac_cv_header_stdc = yes; then |
---|
2295 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
2296 | cat > conftest.$ac_ext <<EOF |
---|
2297 | #line 2298 "configure" |
---|
2298 | #include "confdefs.h" |
---|
2299 | #include <stdlib.h> |
---|
2300 | EOF |
---|
2301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2302 | egrep "free" >/dev/null 2>&1; then |
---|
2303 | : |
---|
2304 | else |
---|
2305 | rm -rf conftest* |
---|
2306 | ac_cv_header_stdc=no |
---|
2307 | fi |
---|
2308 | rm -f conftest* |
---|
2309 | |
---|
2310 | fi |
---|
2311 | |
---|
2312 | if test $ac_cv_header_stdc = yes; then |
---|
2313 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
2314 | if test "$cross_compiling" = yes; then |
---|
2315 | : |
---|
2316 | else |
---|
2317 | cat > conftest.$ac_ext <<EOF |
---|
2318 | #line 2319 "configure" |
---|
2319 | #include "confdefs.h" |
---|
2320 | #include <ctype.h> |
---|
2321 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
2322 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
2323 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
2324 | int main () { int i; for (i = 0; i < 256; i++) |
---|
2325 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
2326 | exit (0); } |
---|
2327 | |
---|
2328 | EOF |
---|
2329 | if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2330 | then |
---|
2331 | : |
---|
2332 | else |
---|
2333 | echo "configure: failed program was:" >&5 |
---|
2334 | cat conftest.$ac_ext >&5 |
---|
2335 | rm -fr conftest* |
---|
2336 | ac_cv_header_stdc=no |
---|
2337 | fi |
---|
2338 | rm -fr conftest* |
---|
2339 | fi |
---|
2340 | |
---|
2341 | fi |
---|
2342 | fi |
---|
2343 | |
---|
2344 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
2345 | if test $ac_cv_header_stdc = yes; then |
---|
2346 | cat >> confdefs.h <<\EOF |
---|
2347 | #define STDC_HEADERS 1 |
---|
2348 | EOF |
---|
2349 | |
---|
2350 | fi |
---|
2351 | |
---|
2352 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
2353 | echo "configure:2354: checking for size_t" >&5 |
---|
2354 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
2355 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2356 | else |
---|
2357 | cat > conftest.$ac_ext <<EOF |
---|
2358 | #line 2359 "configure" |
---|
2359 | #include "confdefs.h" |
---|
2360 | #include <sys/types.h> |
---|
2361 | #if STDC_HEADERS |
---|
2362 | #include <stdlib.h> |
---|
2363 | #include <stddef.h> |
---|
2364 | #endif |
---|
2365 | EOF |
---|
2366 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2367 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2368 | rm -rf conftest* |
---|
2369 | ac_cv_type_size_t=yes |
---|
2370 | else |
---|
2371 | rm -rf conftest* |
---|
2372 | ac_cv_type_size_t=no |
---|
2373 | fi |
---|
2374 | rm -f conftest* |
---|
2375 | |
---|
2376 | fi |
---|
2377 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
2378 | if test $ac_cv_type_size_t = no; then |
---|
2379 | cat >> confdefs.h <<\EOF |
---|
2380 | #define size_t unsigned |
---|
2381 | EOF |
---|
2382 | |
---|
2383 | fi |
---|
2384 | |
---|
2385 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
---|
2386 | echo "configure:2387: checking for uid_t in sys/types.h" >&5 |
---|
2387 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
---|
2388 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2389 | else |
---|
2390 | cat > conftest.$ac_ext <<EOF |
---|
2391 | #line 2392 "configure" |
---|
2392 | #include "confdefs.h" |
---|
2393 | #include <sys/types.h> |
---|
2394 | EOF |
---|
2395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2396 | egrep "uid_t" >/dev/null 2>&1; then |
---|
2397 | rm -rf conftest* |
---|
2398 | ac_cv_type_uid_t=yes |
---|
2399 | else |
---|
2400 | rm -rf conftest* |
---|
2401 | ac_cv_type_uid_t=no |
---|
2402 | fi |
---|
2403 | rm -f conftest* |
---|
2404 | |
---|
2405 | fi |
---|
2406 | |
---|
2407 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
---|
2408 | if test $ac_cv_type_uid_t = no; then |
---|
2409 | cat >> confdefs.h <<\EOF |
---|
2410 | #define uid_t int |
---|
2411 | EOF |
---|
2412 | |
---|
2413 | cat >> confdefs.h <<\EOF |
---|
2414 | #define gid_t int |
---|
2415 | EOF |
---|
2416 | |
---|
2417 | fi |
---|
2418 | |
---|
2419 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
---|
2420 | echo "configure:2421: checking for off_t" >&5 |
---|
2421 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
---|
2422 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2423 | else |
---|
2424 | cat > conftest.$ac_ext <<EOF |
---|
2425 | #line 2426 "configure" |
---|
2426 | #include "confdefs.h" |
---|
2427 | #include <sys/types.h> |
---|
2428 | #if STDC_HEADERS |
---|
2429 | #include <stdlib.h> |
---|
2430 | #include <stddef.h> |
---|
2431 | #endif |
---|
2432 | EOF |
---|
2433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2434 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2435 | rm -rf conftest* |
---|
2436 | ac_cv_type_off_t=yes |
---|
2437 | else |
---|
2438 | rm -rf conftest* |
---|
2439 | ac_cv_type_off_t=no |
---|
2440 | fi |
---|
2441 | rm -f conftest* |
---|
2442 | |
---|
2443 | fi |
---|
2444 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
---|
2445 | if test $ac_cv_type_off_t = no; then |
---|
2446 | cat >> confdefs.h <<\EOF |
---|
2447 | #define off_t long |
---|
2448 | EOF |
---|
2449 | |
---|
2450 | fi |
---|
2451 | |
---|
2452 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
---|
2453 | echo "configure:2454: checking for mode_t" >&5 |
---|
2454 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
---|
2455 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2456 | else |
---|
2457 | cat > conftest.$ac_ext <<EOF |
---|
2458 | #line 2459 "configure" |
---|
2459 | #include "confdefs.h" |
---|
2460 | #include <sys/types.h> |
---|
2461 | #if STDC_HEADERS |
---|
2462 | #include <stdlib.h> |
---|
2463 | #include <stddef.h> |
---|
2464 | #endif |
---|
2465 | EOF |
---|
2466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2467 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2468 | rm -rf conftest* |
---|
2469 | ac_cv_type_mode_t=yes |
---|
2470 | else |
---|
2471 | rm -rf conftest* |
---|
2472 | ac_cv_type_mode_t=no |
---|
2473 | fi |
---|
2474 | rm -f conftest* |
---|
2475 | |
---|
2476 | fi |
---|
2477 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
---|
2478 | if test $ac_cv_type_mode_t = no; then |
---|
2479 | cat >> confdefs.h <<\EOF |
---|
2480 | #define mode_t int |
---|
2481 | EOF |
---|
2482 | |
---|
2483 | fi |
---|
2484 | |
---|
2485 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 |
---|
2486 | echo "configure:2487: checking for st_blksize in struct stat" >&5 |
---|
2487 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
---|
2488 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2489 | else |
---|
2490 | cat > conftest.$ac_ext <<EOF |
---|
2491 | #line 2492 "configure" |
---|
2492 | #include "confdefs.h" |
---|
2493 | #include <sys/types.h> |
---|
2494 | #include <sys/stat.h> |
---|
2495 | int main() { |
---|
2496 | struct stat s; s.st_blksize; |
---|
2497 | ; return 0; } |
---|
2498 | EOF |
---|
2499 | if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2500 | rm -rf conftest* |
---|
2501 | ac_cv_struct_st_blksize=yes |
---|
2502 | else |
---|
2503 | echo "configure: failed program was:" >&5 |
---|
2504 | cat conftest.$ac_ext >&5 |
---|
2505 | rm -rf conftest* |
---|
2506 | ac_cv_struct_st_blksize=no |
---|
2507 | fi |
---|
2508 | rm -f conftest* |
---|
2509 | fi |
---|
2510 | |
---|
2511 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 |
---|
2512 | if test $ac_cv_struct_st_blksize = yes; then |
---|
2513 | cat >> confdefs.h <<\EOF |
---|
2514 | #define HAVE_ST_BLKSIZE 1 |
---|
2515 | EOF |
---|
2516 | |
---|
2517 | fi |
---|
2518 | |
---|
2519 | |
---|
2520 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
2521 | echo "configure:2522: checking for working const" >&5 |
---|
2522 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
2523 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2524 | else |
---|
2525 | cat > conftest.$ac_ext <<EOF |
---|
2526 | #line 2527 "configure" |
---|
2527 | #include "confdefs.h" |
---|
2528 | |
---|
2529 | int main() { |
---|
2530 | |
---|
2531 | /* Ultrix mips cc rejects this. */ |
---|
2532 | typedef int charset[2]; const charset x; |
---|
2533 | /* SunOS 4.1.1 cc rejects this. */ |
---|
2534 | char const *const *ccp; |
---|
2535 | char **p; |
---|
2536 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
2537 | struct point {int x, y;}; |
---|
2538 | static struct point const zero = {0,0}; |
---|
2539 | /* AIX XL C 1.02.0.0 rejects this. |
---|
2540 | It does not let you subtract one const X* pointer from another in an arm |
---|
2541 | of an if-expression whose if-part is not a constant expression */ |
---|
2542 | const char *g = "string"; |
---|
2543 | ccp = &g + (g ? g-g : 0); |
---|
2544 | /* HPUX 7.0 cc rejects these. */ |
---|
2545 | ++ccp; |
---|
2546 | p = (char**) ccp; |
---|
2547 | ccp = (char const *const *) p; |
---|
2548 | { /* SCO 3.2v4 cc rejects this. */ |
---|
2549 | char *t; |
---|
2550 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
2551 | |
---|
2552 | *t++ = 0; |
---|
2553 | } |
---|
2554 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
2555 | int x[] = {25, 17}; |
---|
2556 | const int *foo = &x[0]; |
---|
2557 | ++foo; |
---|
2558 | } |
---|
2559 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
2560 | typedef const int *iptr; |
---|
2561 | iptr p = 0; |
---|
2562 | ++p; |
---|
2563 | } |
---|
2564 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
2565 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
2566 | struct s { int j; const int *ap[3]; }; |
---|
2567 | struct s *b; b->j = 5; |
---|
2568 | } |
---|
2569 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
2570 | const int foo = 10; |
---|
2571 | } |
---|
2572 | |
---|
2573 | ; return 0; } |
---|
2574 | EOF |
---|
2575 | if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2576 | rm -rf conftest* |
---|
2577 | ac_cv_c_const=yes |
---|
2578 | else |
---|
2579 | echo "configure: failed program was:" >&5 |
---|
2580 | cat conftest.$ac_ext >&5 |
---|
2581 | rm -rf conftest* |
---|
2582 | ac_cv_c_const=no |
---|
2583 | fi |
---|
2584 | rm -f conftest* |
---|
2585 | fi |
---|
2586 | |
---|
2587 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
2588 | if test $ac_cv_c_const = no; then |
---|
2589 | cat >> confdefs.h <<\EOF |
---|
2590 | #define const |
---|
2591 | EOF |
---|
2592 | |
---|
2593 | fi |
---|
2594 | |
---|
2595 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
2596 | echo "configure:2597: checking for inline" >&5 |
---|
2597 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
2598 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2599 | else |
---|
2600 | ac_cv_c_inline=no |
---|
2601 | for ac_kw in inline __inline__ __inline; do |
---|
2602 | cat > conftest.$ac_ext <<EOF |
---|
2603 | #line 2604 "configure" |
---|
2604 | #include "confdefs.h" |
---|
2605 | |
---|
2606 | int main() { |
---|
2607 | } $ac_kw foo() { |
---|
2608 | ; return 0; } |
---|
2609 | EOF |
---|
2610 | if { (eval echo configure:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2611 | rm -rf conftest* |
---|
2612 | ac_cv_c_inline=$ac_kw; break |
---|
2613 | else |
---|
2614 | echo "configure: failed program was:" >&5 |
---|
2615 | cat conftest.$ac_ext >&5 |
---|
2616 | fi |
---|
2617 | rm -f conftest* |
---|
2618 | done |
---|
2619 | |
---|
2620 | fi |
---|
2621 | |
---|
2622 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
2623 | case "$ac_cv_c_inline" in |
---|
2624 | inline | yes) ;; |
---|
2625 | no) cat >> confdefs.h <<\EOF |
---|
2626 | #define inline |
---|
2627 | EOF |
---|
2628 | ;; |
---|
2629 | *) cat >> confdefs.h <<EOF |
---|
2630 | #define inline $ac_cv_c_inline |
---|
2631 | EOF |
---|
2632 | ;; |
---|
2633 | esac |
---|
2634 | |
---|
2635 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
---|
2636 | echo "configure:2637: checking whether byte ordering is bigendian" >&5 |
---|
2637 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
---|
2638 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2639 | else |
---|
2640 | ac_cv_c_bigendian=unknown |
---|
2641 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
2642 | cat > conftest.$ac_ext <<EOF |
---|
2643 | #line 2644 "configure" |
---|
2644 | #include "confdefs.h" |
---|
2645 | #include <sys/types.h> |
---|
2646 | #include <sys/param.h> |
---|
2647 | int main() { |
---|
2648 | |
---|
2649 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
---|
2650 | bogus endian macros |
---|
2651 | #endif |
---|
2652 | ; return 0; } |
---|
2653 | EOF |
---|
2654 | if { (eval echo configure:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2655 | rm -rf conftest* |
---|
2656 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
2657 | cat > conftest.$ac_ext <<EOF |
---|
2658 | #line 2659 "configure" |
---|
2659 | #include "confdefs.h" |
---|
2660 | #include <sys/types.h> |
---|
2661 | #include <sys/param.h> |
---|
2662 | int main() { |
---|
2663 | |
---|
2664 | #if BYTE_ORDER != BIG_ENDIAN |
---|
2665 | not big endian |
---|
2666 | #endif |
---|
2667 | ; return 0; } |
---|
2668 | EOF |
---|
2669 | if { (eval echo configure:2670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2670 | rm -rf conftest* |
---|
2671 | ac_cv_c_bigendian=yes |
---|
2672 | else |
---|
2673 | echo "configure: failed program was:" >&5 |
---|
2674 | cat conftest.$ac_ext >&5 |
---|
2675 | rm -rf conftest* |
---|
2676 | ac_cv_c_bigendian=no |
---|
2677 | fi |
---|
2678 | rm -f conftest* |
---|
2679 | else |
---|
2680 | echo "configure: failed program was:" >&5 |
---|
2681 | cat conftest.$ac_ext >&5 |
---|
2682 | fi |
---|
2683 | rm -f conftest* |
---|
2684 | if test $ac_cv_c_bigendian = unknown; then |
---|
2685 | if test "$cross_compiling" = yes; then |
---|
2686 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
2687 | else |
---|
2688 | cat > conftest.$ac_ext <<EOF |
---|
2689 | #line 2690 "configure" |
---|
2690 | #include "confdefs.h" |
---|
2691 | main () { |
---|
2692 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
2693 | union |
---|
2694 | { |
---|
2695 | long l; |
---|
2696 | char c[sizeof (long)]; |
---|
2697 | } u; |
---|
2698 | u.l = 1; |
---|
2699 | exit (u.c[sizeof (long) - 1] == 1); |
---|
2700 | } |
---|
2701 | EOF |
---|
2702 | if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2703 | then |
---|
2704 | ac_cv_c_bigendian=no |
---|
2705 | else |
---|
2706 | echo "configure: failed program was:" >&5 |
---|
2707 | cat conftest.$ac_ext >&5 |
---|
2708 | rm -fr conftest* |
---|
2709 | ac_cv_c_bigendian=yes |
---|
2710 | fi |
---|
2711 | rm -fr conftest* |
---|
2712 | fi |
---|
2713 | |
---|
2714 | fi |
---|
2715 | fi |
---|
2716 | |
---|
2717 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
---|
2718 | if test $ac_cv_c_bigendian = yes; then |
---|
2719 | cat >> confdefs.h <<\EOF |
---|
2720 | #define WORDS_BIGENDIAN 1 |
---|
2721 | EOF |
---|
2722 | |
---|
2723 | fi |
---|
2724 | |
---|
2725 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
---|
2726 | echo "configure:2727: checking size of long" >&5 |
---|
2727 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
---|
2728 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2729 | else |
---|
2730 | if test "$cross_compiling" = yes; then |
---|
2731 | ac_cv_sizeof_long=4 |
---|
2732 | else |
---|
2733 | cat > conftest.$ac_ext <<EOF |
---|
2734 | #line 2735 "configure" |
---|
2735 | #include "confdefs.h" |
---|
2736 | #include <stdio.h> |
---|
2737 | main() |
---|
2738 | { |
---|
2739 | FILE *f=fopen("conftestval", "w"); |
---|
2740 | if (!f) exit(1); |
---|
2741 | fprintf(f, "%d\n", sizeof(long)); |
---|
2742 | exit(0); |
---|
2743 | } |
---|
2744 | EOF |
---|
2745 | if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2746 | then |
---|
2747 | ac_cv_sizeof_long=`cat conftestval` |
---|
2748 | else |
---|
2749 | echo "configure: failed program was:" >&5 |
---|
2750 | cat conftest.$ac_ext >&5 |
---|
2751 | rm -fr conftest* |
---|
2752 | ac_cv_sizeof_long=0 |
---|
2753 | fi |
---|
2754 | rm -fr conftest* |
---|
2755 | fi |
---|
2756 | |
---|
2757 | fi |
---|
2758 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
---|
2759 | cat >> confdefs.h <<EOF |
---|
2760 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
2761 | EOF |
---|
2762 | |
---|
2763 | |
---|
2764 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
---|
2765 | echo "configure:2766: checking size of int" >&5 |
---|
2766 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
---|
2767 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2768 | else |
---|
2769 | if test "$cross_compiling" = yes; then |
---|
2770 | ac_cv_sizeof_int=4 |
---|
2771 | else |
---|
2772 | cat > conftest.$ac_ext <<EOF |
---|
2773 | #line 2774 "configure" |
---|
2774 | #include "confdefs.h" |
---|
2775 | #include <stdio.h> |
---|
2776 | main() |
---|
2777 | { |
---|
2778 | FILE *f=fopen("conftestval", "w"); |
---|
2779 | if (!f) exit(1); |
---|
2780 | fprintf(f, "%d\n", sizeof(int)); |
---|
2781 | exit(0); |
---|
2782 | } |
---|
2783 | EOF |
---|
2784 | if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2785 | then |
---|
2786 | ac_cv_sizeof_int=`cat conftestval` |
---|
2787 | else |
---|
2788 | echo "configure: failed program was:" >&5 |
---|
2789 | cat conftest.$ac_ext >&5 |
---|
2790 | rm -fr conftest* |
---|
2791 | ac_cv_sizeof_int=0 |
---|
2792 | fi |
---|
2793 | rm -fr conftest* |
---|
2794 | fi |
---|
2795 | |
---|
2796 | fi |
---|
2797 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
---|
2798 | cat >> confdefs.h <<EOF |
---|
2799 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
2800 | EOF |
---|
2801 | |
---|
2802 | |
---|
2803 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
---|
2804 | echo "configure:2805: checking size of short" >&5 |
---|
2805 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
---|
2806 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2807 | else |
---|
2808 | if test "$cross_compiling" = yes; then |
---|
2809 | ac_cv_sizeof_short=2 |
---|
2810 | else |
---|
2811 | cat > conftest.$ac_ext <<EOF |
---|
2812 | #line 2813 "configure" |
---|
2813 | #include "confdefs.h" |
---|
2814 | #include <stdio.h> |
---|
2815 | main() |
---|
2816 | { |
---|
2817 | FILE *f=fopen("conftestval", "w"); |
---|
2818 | if (!f) exit(1); |
---|
2819 | fprintf(f, "%d\n", sizeof(short)); |
---|
2820 | exit(0); |
---|
2821 | } |
---|
2822 | EOF |
---|
2823 | if { (eval echo configure:2824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2824 | then |
---|
2825 | ac_cv_sizeof_short=`cat conftestval` |
---|
2826 | else |
---|
2827 | echo "configure: failed program was:" >&5 |
---|
2828 | cat conftest.$ac_ext >&5 |
---|
2829 | rm -fr conftest* |
---|
2830 | ac_cv_sizeof_short=0 |
---|
2831 | fi |
---|
2832 | rm -fr conftest* |
---|
2833 | fi |
---|
2834 | |
---|
2835 | fi |
---|
2836 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
---|
2837 | cat >> confdefs.h <<EOF |
---|
2838 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
---|
2839 | EOF |
---|
2840 | |
---|
2841 | |
---|
2842 | |
---|
2843 | if test -z "$no_termios"; then |
---|
2844 | for ac_hdr in termios.h |
---|
2845 | do |
---|
2846 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2847 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2848 | echo "configure:2849: checking for $ac_hdr" >&5 |
---|
2849 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2850 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2851 | else |
---|
2852 | cat > conftest.$ac_ext <<EOF |
---|
2853 | #line 2854 "configure" |
---|
2854 | #include "confdefs.h" |
---|
2855 | #include <$ac_hdr> |
---|
2856 | EOF |
---|
2857 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2858 | { (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2859 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2860 | if test -z "$ac_err"; then |
---|
2861 | rm -rf conftest* |
---|
2862 | eval "ac_cv_header_$ac_safe=yes" |
---|
2863 | else |
---|
2864 | echo "$ac_err" >&5 |
---|
2865 | echo "configure: failed program was:" >&5 |
---|
2866 | cat conftest.$ac_ext >&5 |
---|
2867 | rm -rf conftest* |
---|
2868 | eval "ac_cv_header_$ac_safe=no" |
---|
2869 | fi |
---|
2870 | rm -f conftest* |
---|
2871 | fi |
---|
2872 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2873 | echo "$ac_t""yes" 1>&6 |
---|
2874 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2875 | cat >> confdefs.h <<EOF |
---|
2876 | #define $ac_tr_hdr 1 |
---|
2877 | EOF |
---|
2878 | |
---|
2879 | else |
---|
2880 | echo "$ac_t""no" 1>&6 |
---|
2881 | fi |
---|
2882 | done |
---|
2883 | |
---|
2884 | fi |
---|
2885 | |
---|
2886 | if test -z "$no_utmpx"; then |
---|
2887 | for ac_hdr in utmpx.h |
---|
2888 | do |
---|
2889 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2890 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2891 | echo "configure:2892: checking for $ac_hdr" >&5 |
---|
2892 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2893 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2894 | else |
---|
2895 | cat > conftest.$ac_ext <<EOF |
---|
2896 | #line 2897 "configure" |
---|
2897 | #include "confdefs.h" |
---|
2898 | #include <$ac_hdr> |
---|
2899 | EOF |
---|
2900 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2901 | { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2902 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2903 | if test -z "$ac_err"; then |
---|
2904 | rm -rf conftest* |
---|
2905 | eval "ac_cv_header_$ac_safe=yes" |
---|
2906 | else |
---|
2907 | echo "$ac_err" >&5 |
---|
2908 | echo "configure: failed program was:" >&5 |
---|
2909 | cat conftest.$ac_ext >&5 |
---|
2910 | rm -rf conftest* |
---|
2911 | eval "ac_cv_header_$ac_safe=no" |
---|
2912 | fi |
---|
2913 | rm -f conftest* |
---|
2914 | fi |
---|
2915 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2916 | echo "$ac_t""yes" 1>&6 |
---|
2917 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2918 | cat >> confdefs.h <<EOF |
---|
2919 | #define $ac_tr_hdr 1 |
---|
2920 | EOF |
---|
2921 | |
---|
2922 | else |
---|
2923 | echo "$ac_t""no" 1>&6 |
---|
2924 | fi |
---|
2925 | done |
---|
2926 | |
---|
2927 | echo $ac_n "checking whether utmpx have ut_syslen field""... $ac_c" 1>&6 |
---|
2928 | echo "configure:2929: checking whether utmpx have ut_syslen field" >&5 |
---|
2929 | cat > conftest.$ac_ext <<EOF |
---|
2930 | #line 2931 "configure" |
---|
2931 | #include "confdefs.h" |
---|
2932 | #include <utmpx.h> |
---|
2933 | EOF |
---|
2934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2935 | egrep "ut_syslen" >/dev/null 2>&1; then |
---|
2936 | rm -rf conftest* |
---|
2937 | cat >> confdefs.h <<\EOF |
---|
2938 | #define HAVE_SYSLEN_IN_UTMPX 1 |
---|
2939 | EOF |
---|
2940 | |
---|
2941 | echo "$ac_t""yes" 1>&6 |
---|
2942 | else |
---|
2943 | rm -rf conftest* |
---|
2944 | echo "$ac_t""no" 1>&6 |
---|
2945 | fi |
---|
2946 | rm -f conftest* |
---|
2947 | |
---|
2948 | fi |
---|
2949 | |
---|
2950 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
2951 | echo "configure:2952: checking for ANSI C header files" >&5 |
---|
2952 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
2953 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2954 | else |
---|
2955 | cat > conftest.$ac_ext <<EOF |
---|
2956 | #line 2957 "configure" |
---|
2957 | #include "confdefs.h" |
---|
2958 | #include <stdlib.h> |
---|
2959 | #include <stdarg.h> |
---|
2960 | #include <string.h> |
---|
2961 | #include <float.h> |
---|
2962 | EOF |
---|
2963 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2964 | { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2965 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2966 | if test -z "$ac_err"; then |
---|
2967 | rm -rf conftest* |
---|
2968 | ac_cv_header_stdc=yes |
---|
2969 | else |
---|
2970 | echo "$ac_err" >&5 |
---|
2971 | echo "configure: failed program was:" >&5 |
---|
2972 | cat conftest.$ac_ext >&5 |
---|
2973 | rm -rf conftest* |
---|
2974 | ac_cv_header_stdc=no |
---|
2975 | fi |
---|
2976 | rm -f conftest* |
---|
2977 | |
---|
2978 | if test $ac_cv_header_stdc = yes; then |
---|
2979 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2980 | cat > conftest.$ac_ext <<EOF |
---|
2981 | #line 2982 "configure" |
---|
2982 | #include "confdefs.h" |
---|
2983 | #include <string.h> |
---|
2984 | EOF |
---|
2985 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2986 | egrep "memchr" >/dev/null 2>&1; then |
---|
2987 | : |
---|
2988 | else |
---|
2989 | rm -rf conftest* |
---|
2990 | ac_cv_header_stdc=no |
---|
2991 | fi |
---|
2992 | rm -f conftest* |
---|
2993 | |
---|
2994 | fi |
---|
2995 | |
---|
2996 | if test $ac_cv_header_stdc = yes; then |
---|
2997 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
2998 | cat > conftest.$ac_ext <<EOF |
---|
2999 | #line 3000 "configure" |
---|
3000 | #include "confdefs.h" |
---|
3001 | #include <stdlib.h> |
---|
3002 | EOF |
---|
3003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3004 | egrep "free" >/dev/null 2>&1; then |
---|
3005 | : |
---|
3006 | else |
---|
3007 | rm -rf conftest* |
---|
3008 | ac_cv_header_stdc=no |
---|
3009 | fi |
---|
3010 | rm -f conftest* |
---|
3011 | |
---|
3012 | fi |
---|
3013 | |
---|
3014 | if test $ac_cv_header_stdc = yes; then |
---|
3015 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3016 | if test "$cross_compiling" = yes; then |
---|
3017 | : |
---|
3018 | else |
---|
3019 | cat > conftest.$ac_ext <<EOF |
---|
3020 | #line 3021 "configure" |
---|
3021 | #include "confdefs.h" |
---|
3022 | #include <ctype.h> |
---|
3023 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3024 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3025 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3026 | int main () { int i; for (i = 0; i < 256; i++) |
---|
3027 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
3028 | exit (0); } |
---|
3029 | |
---|
3030 | EOF |
---|
3031 | if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3032 | then |
---|
3033 | : |
---|
3034 | else |
---|
3035 | echo "configure: failed program was:" >&5 |
---|
3036 | cat conftest.$ac_ext >&5 |
---|
3037 | rm -fr conftest* |
---|
3038 | ac_cv_header_stdc=no |
---|
3039 | fi |
---|
3040 | rm -fr conftest* |
---|
3041 | fi |
---|
3042 | |
---|
3043 | fi |
---|
3044 | fi |
---|
3045 | |
---|
3046 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
3047 | if test $ac_cv_header_stdc = yes; then |
---|
3048 | cat >> confdefs.h <<\EOF |
---|
3049 | #define STDC_HEADERS 1 |
---|
3050 | EOF |
---|
3051 | |
---|
3052 | fi |
---|
3053 | |
---|
3054 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
---|
3055 | echo "configure:3056: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
---|
3056 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
---|
3057 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3058 | else |
---|
3059 | cat > conftest.$ac_ext <<EOF |
---|
3060 | #line 3061 "configure" |
---|
3061 | #include "confdefs.h" |
---|
3062 | #include <sys/types.h> |
---|
3063 | #include <sys/wait.h> |
---|
3064 | #ifndef WEXITSTATUS |
---|
3065 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
---|
3066 | #endif |
---|
3067 | #ifndef WIFEXITED |
---|
3068 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
3069 | #endif |
---|
3070 | int main() { |
---|
3071 | int s; |
---|
3072 | wait (&s); |
---|
3073 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
3074 | ; return 0; } |
---|
3075 | EOF |
---|
3076 | if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3077 | rm -rf conftest* |
---|
3078 | ac_cv_header_sys_wait_h=yes |
---|
3079 | else |
---|
3080 | echo "configure: failed program was:" >&5 |
---|
3081 | cat conftest.$ac_ext >&5 |
---|
3082 | rm -rf conftest* |
---|
3083 | ac_cv_header_sys_wait_h=no |
---|
3084 | fi |
---|
3085 | rm -f conftest* |
---|
3086 | fi |
---|
3087 | |
---|
3088 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
---|
3089 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
3090 | cat >> confdefs.h <<\EOF |
---|
3091 | #define HAVE_SYS_WAIT_H 1 |
---|
3092 | EOF |
---|
3093 | |
---|
3094 | fi |
---|
3095 | |
---|
3096 | for ac_hdr in unistd.h rusage.h sys/time.h lastlog.h utmp.h shadow.h |
---|
3097 | do |
---|
3098 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3099 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3100 | echo "configure:3101: checking for $ac_hdr" >&5 |
---|
3101 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3102 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3103 | else |
---|
3104 | cat > conftest.$ac_ext <<EOF |
---|
3105 | #line 3106 "configure" |
---|
3106 | #include "confdefs.h" |
---|
3107 | #include <$ac_hdr> |
---|
3108 | EOF |
---|
3109 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3110 | { (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3111 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3112 | if test -z "$ac_err"; then |
---|
3113 | rm -rf conftest* |
---|
3114 | eval "ac_cv_header_$ac_safe=yes" |
---|
3115 | else |
---|
3116 | echo "$ac_err" >&5 |
---|
3117 | echo "configure: failed program was:" >&5 |
---|
3118 | cat conftest.$ac_ext >&5 |
---|
3119 | rm -rf conftest* |
---|
3120 | eval "ac_cv_header_$ac_safe=no" |
---|
3121 | fi |
---|
3122 | rm -f conftest* |
---|
3123 | fi |
---|
3124 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3125 | echo "$ac_t""yes" 1>&6 |
---|
3126 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3127 | cat >> confdefs.h <<EOF |
---|
3128 | #define $ac_tr_hdr 1 |
---|
3129 | EOF |
---|
3130 | |
---|
3131 | else |
---|
3132 | echo "$ac_t""no" 1>&6 |
---|
3133 | fi |
---|
3134 | done |
---|
3135 | |
---|
3136 | for ac_hdr in sgtty.h sys/select.h sys/ioctl.h machine/endian.h |
---|
3137 | do |
---|
3138 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3139 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3140 | echo "configure:3141: checking for $ac_hdr" >&5 |
---|
3141 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3142 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3143 | else |
---|
3144 | cat > conftest.$ac_ext <<EOF |
---|
3145 | #line 3146 "configure" |
---|
3146 | #include "confdefs.h" |
---|
3147 | #include <$ac_hdr> |
---|
3148 | EOF |
---|
3149 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3150 | { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3151 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3152 | if test -z "$ac_err"; then |
---|
3153 | rm -rf conftest* |
---|
3154 | eval "ac_cv_header_$ac_safe=yes" |
---|
3155 | else |
---|
3156 | echo "$ac_err" >&5 |
---|
3157 | echo "configure: failed program was:" >&5 |
---|
3158 | cat conftest.$ac_ext >&5 |
---|
3159 | rm -rf conftest* |
---|
3160 | eval "ac_cv_header_$ac_safe=no" |
---|
3161 | fi |
---|
3162 | rm -f conftest* |
---|
3163 | fi |
---|
3164 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3165 | echo "$ac_t""yes" 1>&6 |
---|
3166 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3167 | cat >> confdefs.h <<EOF |
---|
3168 | #define $ac_tr_hdr 1 |
---|
3169 | EOF |
---|
3170 | |
---|
3171 | else |
---|
3172 | echo "$ac_t""no" 1>&6 |
---|
3173 | fi |
---|
3174 | done |
---|
3175 | |
---|
3176 | for ac_hdr in paths.h usersec.h utime.h netinet/in_systm.h |
---|
3177 | do |
---|
3178 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3179 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3180 | echo "configure:3181: checking for $ac_hdr" >&5 |
---|
3181 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3182 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3183 | else |
---|
3184 | cat > conftest.$ac_ext <<EOF |
---|
3185 | #line 3186 "configure" |
---|
3186 | #include "confdefs.h" |
---|
3187 | #include <$ac_hdr> |
---|
3188 | EOF |
---|
3189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3190 | { (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3192 | if test -z "$ac_err"; then |
---|
3193 | rm -rf conftest* |
---|
3194 | eval "ac_cv_header_$ac_safe=yes" |
---|
3195 | else |
---|
3196 | echo "$ac_err" >&5 |
---|
3197 | echo "configure: failed program was:" >&5 |
---|
3198 | cat conftest.$ac_ext >&5 |
---|
3199 | rm -rf conftest* |
---|
3200 | eval "ac_cv_header_$ac_safe=no" |
---|
3201 | fi |
---|
3202 | rm -f conftest* |
---|
3203 | fi |
---|
3204 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3205 | echo "$ac_t""yes" 1>&6 |
---|
3206 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3207 | cat >> confdefs.h <<EOF |
---|
3208 | #define $ac_tr_hdr 1 |
---|
3209 | EOF |
---|
3210 | |
---|
3211 | else |
---|
3212 | echo "$ac_t""no" 1>&6 |
---|
3213 | fi |
---|
3214 | done |
---|
3215 | |
---|
3216 | for ac_hdr in netinet/in_system.h netinet/ip.h netinet/tcp.h ulimit.h |
---|
3217 | do |
---|
3218 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3219 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3220 | echo "configure:3221: checking for $ac_hdr" >&5 |
---|
3221 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3222 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3223 | else |
---|
3224 | cat > conftest.$ac_ext <<EOF |
---|
3225 | #line 3226 "configure" |
---|
3226 | #include "confdefs.h" |
---|
3227 | #include <$ac_hdr> |
---|
3228 | EOF |
---|
3229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3230 | { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3232 | if test -z "$ac_err"; then |
---|
3233 | rm -rf conftest* |
---|
3234 | eval "ac_cv_header_$ac_safe=yes" |
---|
3235 | else |
---|
3236 | echo "$ac_err" >&5 |
---|
3237 | echo "configure: failed program was:" >&5 |
---|
3238 | cat conftest.$ac_ext >&5 |
---|
3239 | rm -rf conftest* |
---|
3240 | eval "ac_cv_header_$ac_safe=no" |
---|
3241 | fi |
---|
3242 | rm -f conftest* |
---|
3243 | fi |
---|
3244 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3245 | echo "$ac_t""yes" 1>&6 |
---|
3246 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3247 | cat >> confdefs.h <<EOF |
---|
3248 | #define $ac_tr_hdr 1 |
---|
3249 | EOF |
---|
3250 | |
---|
3251 | else |
---|
3252 | echo "$ac_t""no" 1>&6 |
---|
3253 | fi |
---|
3254 | done |
---|
3255 | |
---|
3256 | for ac_hdr in sys/resource.h login_cap.h |
---|
3257 | do |
---|
3258 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3259 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3260 | echo "configure:3261: checking for $ac_hdr" >&5 |
---|
3261 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3262 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3263 | else |
---|
3264 | cat > conftest.$ac_ext <<EOF |
---|
3265 | #line 3266 "configure" |
---|
3266 | #include "confdefs.h" |
---|
3267 | #include <$ac_hdr> |
---|
3268 | EOF |
---|
3269 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3270 | { (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3271 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3272 | if test -z "$ac_err"; then |
---|
3273 | rm -rf conftest* |
---|
3274 | eval "ac_cv_header_$ac_safe=yes" |
---|
3275 | else |
---|
3276 | echo "$ac_err" >&5 |
---|
3277 | echo "configure: failed program was:" >&5 |
---|
3278 | cat conftest.$ac_ext >&5 |
---|
3279 | rm -rf conftest* |
---|
3280 | eval "ac_cv_header_$ac_safe=no" |
---|
3281 | fi |
---|
3282 | rm -f conftest* |
---|
3283 | fi |
---|
3284 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3285 | echo "$ac_t""yes" 1>&6 |
---|
3286 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3287 | cat >> confdefs.h <<EOF |
---|
3288 | #define $ac_tr_hdr 1 |
---|
3289 | EOF |
---|
3290 | |
---|
3291 | else |
---|
3292 | echo "$ac_t""no" 1>&6 |
---|
3293 | fi |
---|
3294 | done |
---|
3295 | |
---|
3296 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
---|
3297 | echo "configure:3298: checking whether time.h and sys/time.h may both be included" >&5 |
---|
3298 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
---|
3299 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3300 | else |
---|
3301 | cat > conftest.$ac_ext <<EOF |
---|
3302 | #line 3303 "configure" |
---|
3303 | #include "confdefs.h" |
---|
3304 | #include <sys/types.h> |
---|
3305 | #include <sys/time.h> |
---|
3306 | #include <time.h> |
---|
3307 | int main() { |
---|
3308 | struct tm *tp; |
---|
3309 | ; return 0; } |
---|
3310 | EOF |
---|
3311 | if { (eval echo configure:3312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3312 | rm -rf conftest* |
---|
3313 | ac_cv_header_time=yes |
---|
3314 | else |
---|
3315 | echo "configure: failed program was:" >&5 |
---|
3316 | cat conftest.$ac_ext >&5 |
---|
3317 | rm -rf conftest* |
---|
3318 | ac_cv_header_time=no |
---|
3319 | fi |
---|
3320 | rm -f conftest* |
---|
3321 | fi |
---|
3322 | |
---|
3323 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
---|
3324 | if test $ac_cv_header_time = yes; then |
---|
3325 | cat >> confdefs.h <<\EOF |
---|
3326 | #define TIME_WITH_SYS_TIME 1 |
---|
3327 | EOF |
---|
3328 | |
---|
3329 | fi |
---|
3330 | |
---|
3331 | ac_header_dirent=no |
---|
3332 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
---|
3333 | do |
---|
3334 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3335 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
---|
3336 | echo "configure:3337: checking for $ac_hdr that defines DIR" >&5 |
---|
3337 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
---|
3338 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3339 | else |
---|
3340 | cat > conftest.$ac_ext <<EOF |
---|
3341 | #line 3342 "configure" |
---|
3342 | #include "confdefs.h" |
---|
3343 | #include <sys/types.h> |
---|
3344 | #include <$ac_hdr> |
---|
3345 | int main() { |
---|
3346 | DIR *dirp = 0; |
---|
3347 | ; return 0; } |
---|
3348 | EOF |
---|
3349 | if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3350 | rm -rf conftest* |
---|
3351 | eval "ac_cv_header_dirent_$ac_safe=yes" |
---|
3352 | else |
---|
3353 | echo "configure: failed program was:" >&5 |
---|
3354 | cat conftest.$ac_ext >&5 |
---|
3355 | rm -rf conftest* |
---|
3356 | eval "ac_cv_header_dirent_$ac_safe=no" |
---|
3357 | fi |
---|
3358 | rm -f conftest* |
---|
3359 | fi |
---|
3360 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
---|
3361 | echo "$ac_t""yes" 1>&6 |
---|
3362 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3363 | cat >> confdefs.h <<EOF |
---|
3364 | #define $ac_tr_hdr 1 |
---|
3365 | EOF |
---|
3366 | ac_header_dirent=$ac_hdr; break |
---|
3367 | else |
---|
3368 | echo "$ac_t""no" 1>&6 |
---|
3369 | fi |
---|
3370 | done |
---|
3371 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
3372 | if test $ac_header_dirent = dirent.h; then |
---|
3373 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
---|
3374 | echo "configure:3375: checking for opendir in -ldir" >&5 |
---|
3375 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
---|
3376 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3377 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3378 | else |
---|
3379 | ac_save_LIBS="$LIBS" |
---|
3380 | LIBS="-ldir $LIBS" |
---|
3381 | cat > conftest.$ac_ext <<EOF |
---|
3382 | #line 3383 "configure" |
---|
3383 | #include "confdefs.h" |
---|
3384 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3385 | /* We use char because int might match the return type of a gcc2 |
---|
3386 | builtin and then its argument prototype would still apply. */ |
---|
3387 | char opendir(); |
---|
3388 | |
---|
3389 | int main() { |
---|
3390 | opendir() |
---|
3391 | ; return 0; } |
---|
3392 | EOF |
---|
3393 | if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3394 | rm -rf conftest* |
---|
3395 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3396 | else |
---|
3397 | echo "configure: failed program was:" >&5 |
---|
3398 | cat conftest.$ac_ext >&5 |
---|
3399 | rm -rf conftest* |
---|
3400 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3401 | fi |
---|
3402 | rm -f conftest* |
---|
3403 | LIBS="$ac_save_LIBS" |
---|
3404 | |
---|
3405 | fi |
---|
3406 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3407 | echo "$ac_t""yes" 1>&6 |
---|
3408 | LIBS="$LIBS -ldir" |
---|
3409 | else |
---|
3410 | echo "$ac_t""no" 1>&6 |
---|
3411 | fi |
---|
3412 | |
---|
3413 | else |
---|
3414 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
---|
3415 | echo "configure:3416: checking for opendir in -lx" >&5 |
---|
3416 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
---|
3417 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3418 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3419 | else |
---|
3420 | ac_save_LIBS="$LIBS" |
---|
3421 | LIBS="-lx $LIBS" |
---|
3422 | cat > conftest.$ac_ext <<EOF |
---|
3423 | #line 3424 "configure" |
---|
3424 | #include "confdefs.h" |
---|
3425 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3426 | /* We use char because int might match the return type of a gcc2 |
---|
3427 | builtin and then its argument prototype would still apply. */ |
---|
3428 | char opendir(); |
---|
3429 | |
---|
3430 | int main() { |
---|
3431 | opendir() |
---|
3432 | ; return 0; } |
---|
3433 | EOF |
---|
3434 | if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3435 | rm -rf conftest* |
---|
3436 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3437 | else |
---|
3438 | echo "configure: failed program was:" >&5 |
---|
3439 | cat conftest.$ac_ext >&5 |
---|
3440 | rm -rf conftest* |
---|
3441 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3442 | fi |
---|
3443 | rm -f conftest* |
---|
3444 | LIBS="$ac_save_LIBS" |
---|
3445 | |
---|
3446 | fi |
---|
3447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3448 | echo "$ac_t""yes" 1>&6 |
---|
3449 | LIBS="$LIBS -lx" |
---|
3450 | else |
---|
3451 | echo "$ac_t""no" 1>&6 |
---|
3452 | fi |
---|
3453 | |
---|
3454 | fi |
---|
3455 | |
---|
3456 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
---|
3457 | echo "configure:3458: checking whether stat file-mode macros are broken" >&5 |
---|
3458 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
---|
3459 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3460 | else |
---|
3461 | cat > conftest.$ac_ext <<EOF |
---|
3462 | #line 3463 "configure" |
---|
3463 | #include "confdefs.h" |
---|
3464 | #include <sys/types.h> |
---|
3465 | #include <sys/stat.h> |
---|
3466 | |
---|
3467 | #if defined(S_ISBLK) && defined(S_IFDIR) |
---|
3468 | # if S_ISBLK (S_IFDIR) |
---|
3469 | You lose. |
---|
3470 | # endif |
---|
3471 | #endif |
---|
3472 | |
---|
3473 | #if defined(S_ISBLK) && defined(S_IFCHR) |
---|
3474 | # if S_ISBLK (S_IFCHR) |
---|
3475 | You lose. |
---|
3476 | # endif |
---|
3477 | #endif |
---|
3478 | |
---|
3479 | #if defined(S_ISLNK) && defined(S_IFREG) |
---|
3480 | # if S_ISLNK (S_IFREG) |
---|
3481 | You lose. |
---|
3482 | # endif |
---|
3483 | #endif |
---|
3484 | |
---|
3485 | #if defined(S_ISSOCK) && defined(S_IFREG) |
---|
3486 | # if S_ISSOCK (S_IFREG) |
---|
3487 | You lose. |
---|
3488 | # endif |
---|
3489 | #endif |
---|
3490 | |
---|
3491 | EOF |
---|
3492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3493 | egrep "You lose" >/dev/null 2>&1; then |
---|
3494 | rm -rf conftest* |
---|
3495 | ac_cv_header_stat_broken=yes |
---|
3496 | else |
---|
3497 | rm -rf conftest* |
---|
3498 | ac_cv_header_stat_broken=no |
---|
3499 | fi |
---|
3500 | rm -f conftest* |
---|
3501 | |
---|
3502 | fi |
---|
3503 | |
---|
3504 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
---|
3505 | if test $ac_cv_header_stat_broken = yes; then |
---|
3506 | cat >> confdefs.h <<\EOF |
---|
3507 | #define STAT_MACROS_BROKEN 1 |
---|
3508 | EOF |
---|
3509 | |
---|
3510 | fi |
---|
3511 | |
---|
3512 | echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 |
---|
3513 | echo "configure:3514: checking whether sys/types.h defines makedev" >&5 |
---|
3514 | if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then |
---|
3515 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3516 | else |
---|
3517 | cat > conftest.$ac_ext <<EOF |
---|
3518 | #line 3519 "configure" |
---|
3519 | #include "confdefs.h" |
---|
3520 | #include <sys/types.h> |
---|
3521 | int main() { |
---|
3522 | return makedev(0, 0); |
---|
3523 | ; return 0; } |
---|
3524 | EOF |
---|
3525 | if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3526 | rm -rf conftest* |
---|
3527 | ac_cv_header_sys_types_h_makedev=yes |
---|
3528 | else |
---|
3529 | echo "configure: failed program was:" >&5 |
---|
3530 | cat conftest.$ac_ext >&5 |
---|
3531 | rm -rf conftest* |
---|
3532 | ac_cv_header_sys_types_h_makedev=no |
---|
3533 | fi |
---|
3534 | rm -f conftest* |
---|
3535 | |
---|
3536 | fi |
---|
3537 | |
---|
3538 | echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 |
---|
3539 | |
---|
3540 | if test $ac_cv_header_sys_types_h_makedev = no; then |
---|
3541 | ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` |
---|
3542 | echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 |
---|
3543 | echo "configure:3544: checking for sys/mkdev.h" >&5 |
---|
3544 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3545 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3546 | else |
---|
3547 | cat > conftest.$ac_ext <<EOF |
---|
3548 | #line 3549 "configure" |
---|
3549 | #include "confdefs.h" |
---|
3550 | #include <sys/mkdev.h> |
---|
3551 | EOF |
---|
3552 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3553 | { (eval echo configure:3554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3554 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3555 | if test -z "$ac_err"; then |
---|
3556 | rm -rf conftest* |
---|
3557 | eval "ac_cv_header_$ac_safe=yes" |
---|
3558 | else |
---|
3559 | echo "$ac_err" >&5 |
---|
3560 | echo "configure: failed program was:" >&5 |
---|
3561 | cat conftest.$ac_ext >&5 |
---|
3562 | rm -rf conftest* |
---|
3563 | eval "ac_cv_header_$ac_safe=no" |
---|
3564 | fi |
---|
3565 | rm -f conftest* |
---|
3566 | fi |
---|
3567 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3568 | echo "$ac_t""yes" 1>&6 |
---|
3569 | cat >> confdefs.h <<\EOF |
---|
3570 | #define MAJOR_IN_MKDEV 1 |
---|
3571 | EOF |
---|
3572 | |
---|
3573 | else |
---|
3574 | echo "$ac_t""no" 1>&6 |
---|
3575 | fi |
---|
3576 | |
---|
3577 | |
---|
3578 | if test $ac_cv_header_sys_mkdev_h = no; then |
---|
3579 | ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` |
---|
3580 | echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 |
---|
3581 | echo "configure:3582: checking for sys/sysmacros.h" >&5 |
---|
3582 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3583 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3584 | else |
---|
3585 | cat > conftest.$ac_ext <<EOF |
---|
3586 | #line 3587 "configure" |
---|
3587 | #include "confdefs.h" |
---|
3588 | #include <sys/sysmacros.h> |
---|
3589 | EOF |
---|
3590 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3591 | { (eval echo configure:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3592 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3593 | if test -z "$ac_err"; then |
---|
3594 | rm -rf conftest* |
---|
3595 | eval "ac_cv_header_$ac_safe=yes" |
---|
3596 | else |
---|
3597 | echo "$ac_err" >&5 |
---|
3598 | echo "configure: failed program was:" >&5 |
---|
3599 | cat conftest.$ac_ext >&5 |
---|
3600 | rm -rf conftest* |
---|
3601 | eval "ac_cv_header_$ac_safe=no" |
---|
3602 | fi |
---|
3603 | rm -f conftest* |
---|
3604 | fi |
---|
3605 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3606 | echo "$ac_t""yes" 1>&6 |
---|
3607 | cat >> confdefs.h <<\EOF |
---|
3608 | #define MAJOR_IN_SYSMACROS 1 |
---|
3609 | EOF |
---|
3610 | |
---|
3611 | else |
---|
3612 | echo "$ac_t""no" 1>&6 |
---|
3613 | fi |
---|
3614 | |
---|
3615 | fi |
---|
3616 | fi |
---|
3617 | |
---|
3618 | echo $ac_n "checking whether utmp have ut_pid field""... $ac_c" 1>&6 |
---|
3619 | echo "configure:3620: checking whether utmp have ut_pid field" >&5 |
---|
3620 | cat > conftest.$ac_ext <<EOF |
---|
3621 | #line 3622 "configure" |
---|
3622 | #include "confdefs.h" |
---|
3623 | #include <utmp.h> |
---|
3624 | EOF |
---|
3625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3626 | egrep "ut_pid" >/dev/null 2>&1; then |
---|
3627 | rm -rf conftest* |
---|
3628 | cat >> confdefs.h <<\EOF |
---|
3629 | #define HAVE_PID_IN_UTMP 1 |
---|
3630 | EOF |
---|
3631 | |
---|
3632 | echo "$ac_t""yes" 1>&6 |
---|
3633 | else |
---|
3634 | rm -rf conftest* |
---|
3635 | echo "$ac_t""no" 1>&6 |
---|
3636 | fi |
---|
3637 | rm -f conftest* |
---|
3638 | |
---|
3639 | echo $ac_n "checking whether utmp have ut_name field""... $ac_c" 1>&6 |
---|
3640 | echo "configure:3641: checking whether utmp have ut_name field" >&5 |
---|
3641 | cat > conftest.$ac_ext <<EOF |
---|
3642 | #line 3643 "configure" |
---|
3643 | #include "confdefs.h" |
---|
3644 | #include <utmp.h> |
---|
3645 | EOF |
---|
3646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3647 | egrep "ut_name" >/dev/null 2>&1; then |
---|
3648 | rm -rf conftest* |
---|
3649 | cat >> confdefs.h <<\EOF |
---|
3650 | #define HAVE_NAME_IN_UTMP 1 |
---|
3651 | EOF |
---|
3652 | |
---|
3653 | echo "$ac_t""yes" 1>&6 |
---|
3654 | else |
---|
3655 | rm -rf conftest* |
---|
3656 | echo "$ac_t""no" 1>&6 |
---|
3657 | fi |
---|
3658 | rm -f conftest* |
---|
3659 | |
---|
3660 | echo $ac_n "checking whether utmp have ut_id field""... $ac_c" 1>&6 |
---|
3661 | echo "configure:3662: checking whether utmp have ut_id field" >&5 |
---|
3662 | cat > conftest.$ac_ext <<EOF |
---|
3663 | #line 3664 "configure" |
---|
3664 | #include "confdefs.h" |
---|
3665 | #include <utmp.h> |
---|
3666 | EOF |
---|
3667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3668 | egrep "ut_id" >/dev/null 2>&1; then |
---|
3669 | rm -rf conftest* |
---|
3670 | cat >> confdefs.h <<\EOF |
---|
3671 | #define HAVE_ID_IN_UTMP 1 |
---|
3672 | EOF |
---|
3673 | |
---|
3674 | echo "$ac_t""yes" 1>&6 |
---|
3675 | else |
---|
3676 | rm -rf conftest* |
---|
3677 | echo "$ac_t""no" 1>&6 |
---|
3678 | fi |
---|
3679 | rm -f conftest* |
---|
3680 | |
---|
3681 | echo $ac_n "checking whether utmp have ut_host field""... $ac_c" 1>&6 |
---|
3682 | echo "configure:3683: checking whether utmp have ut_host field" >&5 |
---|
3683 | cat > conftest.$ac_ext <<EOF |
---|
3684 | #line 3685 "configure" |
---|
3685 | #include "confdefs.h" |
---|
3686 | #include <utmp.h> |
---|
3687 | EOF |
---|
3688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3689 | egrep "ut_host" >/dev/null 2>&1; then |
---|
3690 | rm -rf conftest* |
---|
3691 | cat >> confdefs.h <<\EOF |
---|
3692 | #define HAVE_HOST_IN_UTMP 1 |
---|
3693 | EOF |
---|
3694 | |
---|
3695 | echo "$ac_t""yes" 1>&6 |
---|
3696 | else |
---|
3697 | rm -rf conftest* |
---|
3698 | echo "$ac_t""no" 1>&6 |
---|
3699 | fi |
---|
3700 | rm -f conftest* |
---|
3701 | |
---|
3702 | echo $ac_n "checking whether utmp have ut_addr field""... $ac_c" 1>&6 |
---|
3703 | echo "configure:3704: checking whether utmp have ut_addr field" >&5 |
---|
3704 | cat > conftest.$ac_ext <<EOF |
---|
3705 | #line 3706 "configure" |
---|
3706 | #include "confdefs.h" |
---|
3707 | #include <utmp.h> |
---|
3708 | EOF |
---|
3709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3710 | egrep "ut_addr" >/dev/null 2>&1; then |
---|
3711 | rm -rf conftest* |
---|
3712 | cat >> confdefs.h <<\EOF |
---|
3713 | #define HAVE_ADDR_IN_UTMP 1 |
---|
3714 | EOF |
---|
3715 | |
---|
3716 | echo "$ac_t""yes" 1>&6 |
---|
3717 | else |
---|
3718 | rm -rf conftest* |
---|
3719 | echo "$ac_t""no" 1>&6 |
---|
3720 | fi |
---|
3721 | rm -f conftest* |
---|
3722 | |
---|
3723 | echo $ac_n "checking whether you have incompatible SIGINFO macro""... $ac_c" 1>&6 |
---|
3724 | echo "configure:3725: checking whether you have incompatible SIGINFO macro" >&5 |
---|
3725 | cat > conftest.$ac_ext <<EOF |
---|
3726 | #line 3727 "configure" |
---|
3727 | #include "confdefs.h" |
---|
3728 | #include <sys/siginfo.h> |
---|
3729 | SIGINFO(p,1) |
---|
3730 | EOF |
---|
3731 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3732 | egrep "p_siginfo" >/dev/null 2>&1; then |
---|
3733 | rm -rf conftest* |
---|
3734 | cat >> confdefs.h <<\EOF |
---|
3735 | #define HAVE_INCOMPATIBLE_SIGINFO 1 |
---|
3736 | EOF |
---|
3737 | |
---|
3738 | echo "$ac_t""yes" 1>&6 |
---|
3739 | else |
---|
3740 | rm -rf conftest* |
---|
3741 | echo "$ac_t""no" 1>&6 |
---|
3742 | fi |
---|
3743 | rm -f conftest* |
---|
3744 | |
---|
3745 | |
---|
3746 | echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6 |
---|
3747 | echo "configure:3748: checking for crypt in -lc" >&5 |
---|
3748 | ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` |
---|
3749 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3750 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3751 | else |
---|
3752 | ac_save_LIBS="$LIBS" |
---|
3753 | LIBS="-lc $LIBS" |
---|
3754 | cat > conftest.$ac_ext <<EOF |
---|
3755 | #line 3756 "configure" |
---|
3756 | #include "confdefs.h" |
---|
3757 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3758 | /* We use char because int might match the return type of a gcc2 |
---|
3759 | builtin and then its argument prototype would still apply. */ |
---|
3760 | char crypt(); |
---|
3761 | |
---|
3762 | int main() { |
---|
3763 | crypt() |
---|
3764 | ; return 0; } |
---|
3765 | EOF |
---|
3766 | if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3767 | rm -rf conftest* |
---|
3768 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3769 | else |
---|
3770 | echo "configure: failed program was:" >&5 |
---|
3771 | cat conftest.$ac_ext >&5 |
---|
3772 | rm -rf conftest* |
---|
3773 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3774 | fi |
---|
3775 | rm -f conftest* |
---|
3776 | LIBS="$ac_save_LIBS" |
---|
3777 | |
---|
3778 | fi |
---|
3779 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3780 | echo "$ac_t""yes" 1>&6 |
---|
3781 | true |
---|
3782 | else |
---|
3783 | echo "$ac_t""no" 1>&6 |
---|
3784 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
---|
3785 | echo "configure:3786: checking for crypt in -lcrypt" >&5 |
---|
3786 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
---|
3787 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3788 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3789 | else |
---|
3790 | ac_save_LIBS="$LIBS" |
---|
3791 | LIBS="-lcrypt $LIBS" |
---|
3792 | cat > conftest.$ac_ext <<EOF |
---|
3793 | #line 3794 "configure" |
---|
3794 | #include "confdefs.h" |
---|
3795 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3796 | /* We use char because int might match the return type of a gcc2 |
---|
3797 | builtin and then its argument prototype would still apply. */ |
---|
3798 | char crypt(); |
---|
3799 | |
---|
3800 | int main() { |
---|
3801 | crypt() |
---|
3802 | ; return 0; } |
---|
3803 | EOF |
---|
3804 | if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3805 | rm -rf conftest* |
---|
3806 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3807 | else |
---|
3808 | echo "configure: failed program was:" >&5 |
---|
3809 | cat conftest.$ac_ext >&5 |
---|
3810 | rm -rf conftest* |
---|
3811 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3812 | fi |
---|
3813 | rm -f conftest* |
---|
3814 | LIBS="$ac_save_LIBS" |
---|
3815 | |
---|
3816 | fi |
---|
3817 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3818 | echo "$ac_t""yes" 1>&6 |
---|
3819 | ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
3820 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3821 | cat >> confdefs.h <<EOF |
---|
3822 | #define $ac_tr_lib 1 |
---|
3823 | EOF |
---|
3824 | |
---|
3825 | LIBS="-lcrypt $LIBS" |
---|
3826 | |
---|
3827 | else |
---|
3828 | echo "$ac_t""no" 1>&6 |
---|
3829 | fi |
---|
3830 | |
---|
3831 | fi |
---|
3832 | |
---|
3833 | echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6 |
---|
3834 | echo "configure:3835: checking for getspnam in -lsec" >&5 |
---|
3835 | ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'` |
---|
3836 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3837 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3838 | else |
---|
3839 | ac_save_LIBS="$LIBS" |
---|
3840 | LIBS="-lsec $LIBS" |
---|
3841 | cat > conftest.$ac_ext <<EOF |
---|
3842 | #line 3843 "configure" |
---|
3843 | #include "confdefs.h" |
---|
3844 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3845 | /* We use char because int might match the return type of a gcc2 |
---|
3846 | builtin and then its argument prototype would still apply. */ |
---|
3847 | char getspnam(); |
---|
3848 | |
---|
3849 | int main() { |
---|
3850 | getspnam() |
---|
3851 | ; return 0; } |
---|
3852 | EOF |
---|
3853 | if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3854 | rm -rf conftest* |
---|
3855 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3856 | else |
---|
3857 | echo "configure: failed program was:" >&5 |
---|
3858 | cat conftest.$ac_ext >&5 |
---|
3859 | rm -rf conftest* |
---|
3860 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3861 | fi |
---|
3862 | rm -f conftest* |
---|
3863 | LIBS="$ac_save_LIBS" |
---|
3864 | |
---|
3865 | fi |
---|
3866 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3867 | echo "$ac_t""yes" 1>&6 |
---|
3868 | ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3869 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3870 | cat >> confdefs.h <<EOF |
---|
3871 | #define $ac_tr_lib 1 |
---|
3872 | EOF |
---|
3873 | |
---|
3874 | LIBS="-lsec $LIBS" |
---|
3875 | |
---|
3876 | else |
---|
3877 | echo "$ac_t""no" 1>&6 |
---|
3878 | fi |
---|
3879 | |
---|
3880 | echo $ac_n "checking for get_process_stats in -lseq""... $ac_c" 1>&6 |
---|
3881 | echo "configure:3882: checking for get_process_stats in -lseq" >&5 |
---|
3882 | ac_lib_var=`echo seq'_'get_process_stats | sed 'y%./+-%__p_%'` |
---|
3883 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3884 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3885 | else |
---|
3886 | ac_save_LIBS="$LIBS" |
---|
3887 | LIBS="-lseq $LIBS" |
---|
3888 | cat > conftest.$ac_ext <<EOF |
---|
3889 | #line 3890 "configure" |
---|
3890 | #include "confdefs.h" |
---|
3891 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3892 | /* We use char because int might match the return type of a gcc2 |
---|
3893 | builtin and then its argument prototype would still apply. */ |
---|
3894 | char get_process_stats(); |
---|
3895 | |
---|
3896 | int main() { |
---|
3897 | get_process_stats() |
---|
3898 | ; return 0; } |
---|
3899 | EOF |
---|
3900 | if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3901 | rm -rf conftest* |
---|
3902 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3903 | else |
---|
3904 | echo "configure: failed program was:" >&5 |
---|
3905 | cat conftest.$ac_ext >&5 |
---|
3906 | rm -rf conftest* |
---|
3907 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3908 | fi |
---|
3909 | rm -f conftest* |
---|
3910 | LIBS="$ac_save_LIBS" |
---|
3911 | |
---|
3912 | fi |
---|
3913 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3914 | echo "$ac_t""yes" 1>&6 |
---|
3915 | ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3916 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3917 | cat >> confdefs.h <<EOF |
---|
3918 | #define $ac_tr_lib 1 |
---|
3919 | EOF |
---|
3920 | |
---|
3921 | LIBS="-lseq $LIBS" |
---|
3922 | |
---|
3923 | else |
---|
3924 | echo "$ac_t""no" 1>&6 |
---|
3925 | fi |
---|
3926 | |
---|
3927 | echo $ac_n "checking for bcopy in -lbsd""... $ac_c" 1>&6 |
---|
3928 | echo "configure:3929: checking for bcopy in -lbsd" >&5 |
---|
3929 | ac_lib_var=`echo bsd'_'bcopy | sed 'y%./+-%__p_%'` |
---|
3930 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3931 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3932 | else |
---|
3933 | ac_save_LIBS="$LIBS" |
---|
3934 | LIBS="-lbsd $LIBS" |
---|
3935 | cat > conftest.$ac_ext <<EOF |
---|
3936 | #line 3937 "configure" |
---|
3937 | #include "confdefs.h" |
---|
3938 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3939 | /* We use char because int might match the return type of a gcc2 |
---|
3940 | builtin and then its argument prototype would still apply. */ |
---|
3941 | char bcopy(); |
---|
3942 | |
---|
3943 | int main() { |
---|
3944 | bcopy() |
---|
3945 | ; return 0; } |
---|
3946 | EOF |
---|
3947 | if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3948 | rm -rf conftest* |
---|
3949 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3950 | else |
---|
3951 | echo "configure: failed program was:" >&5 |
---|
3952 | cat conftest.$ac_ext >&5 |
---|
3953 | rm -rf conftest* |
---|
3954 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3955 | fi |
---|
3956 | rm -f conftest* |
---|
3957 | LIBS="$ac_save_LIBS" |
---|
3958 | |
---|
3959 | fi |
---|
3960 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3961 | echo "$ac_t""yes" 1>&6 |
---|
3962 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3963 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3964 | cat >> confdefs.h <<EOF |
---|
3965 | #define $ac_tr_lib 1 |
---|
3966 | EOF |
---|
3967 | |
---|
3968 | LIBS="-lbsd $LIBS" |
---|
3969 | |
---|
3970 | else |
---|
3971 | echo "$ac_t""no" 1>&6 |
---|
3972 | fi |
---|
3973 | |
---|
3974 | if test -z "$no_libnsl"; then |
---|
3975 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
---|
3976 | echo "configure:3977: checking for main in -lnsl" >&5 |
---|
3977 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
---|
3978 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3979 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3980 | else |
---|
3981 | ac_save_LIBS="$LIBS" |
---|
3982 | LIBS="-lnsl $LIBS" |
---|
3983 | cat > conftest.$ac_ext <<EOF |
---|
3984 | #line 3985 "configure" |
---|
3985 | #include "confdefs.h" |
---|
3986 | |
---|
3987 | int main() { |
---|
3988 | main() |
---|
3989 | ; return 0; } |
---|
3990 | EOF |
---|
3991 | if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3992 | rm -rf conftest* |
---|
3993 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3994 | else |
---|
3995 | echo "configure: failed program was:" >&5 |
---|
3996 | cat conftest.$ac_ext >&5 |
---|
3997 | rm -rf conftest* |
---|
3998 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3999 | fi |
---|
4000 | rm -f conftest* |
---|
4001 | LIBS="$ac_save_LIBS" |
---|
4002 | |
---|
4003 | fi |
---|
4004 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4005 | echo "$ac_t""yes" 1>&6 |
---|
4006 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4007 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4008 | cat >> confdefs.h <<EOF |
---|
4009 | #define $ac_tr_lib 1 |
---|
4010 | EOF |
---|
4011 | |
---|
4012 | LIBS="-lnsl $LIBS" |
---|
4013 | |
---|
4014 | else |
---|
4015 | echo "$ac_t""no" 1>&6 |
---|
4016 | fi |
---|
4017 | |
---|
4018 | fi |
---|
4019 | if test -n "$test_libinet"; then |
---|
4020 | echo $ac_n "checking for inet_network in -linet""... $ac_c" 1>&6 |
---|
4021 | echo "configure:4022: checking for inet_network in -linet" >&5 |
---|
4022 | ac_lib_var=`echo inet'_'inet_network | sed 'y%./+-%__p_%'` |
---|
4023 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4024 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4025 | else |
---|
4026 | ac_save_LIBS="$LIBS" |
---|
4027 | LIBS="-linet $LIBS" |
---|
4028 | cat > conftest.$ac_ext <<EOF |
---|
4029 | #line 4030 "configure" |
---|
4030 | #include "confdefs.h" |
---|
4031 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4032 | /* We use char because int might match the return type of a gcc2 |
---|
4033 | builtin and then its argument prototype would still apply. */ |
---|
4034 | char inet_network(); |
---|
4035 | |
---|
4036 | int main() { |
---|
4037 | inet_network() |
---|
4038 | ; return 0; } |
---|
4039 | EOF |
---|
4040 | if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4041 | rm -rf conftest* |
---|
4042 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4043 | else |
---|
4044 | echo "configure: failed program was:" >&5 |
---|
4045 | cat conftest.$ac_ext >&5 |
---|
4046 | rm -rf conftest* |
---|
4047 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4048 | fi |
---|
4049 | rm -f conftest* |
---|
4050 | LIBS="$ac_save_LIBS" |
---|
4051 | |
---|
4052 | fi |
---|
4053 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4054 | echo "$ac_t""yes" 1>&6 |
---|
4055 | ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4056 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4057 | cat >> confdefs.h <<EOF |
---|
4058 | #define $ac_tr_lib 1 |
---|
4059 | EOF |
---|
4060 | |
---|
4061 | LIBS="-linet $LIBS" |
---|
4062 | |
---|
4063 | else |
---|
4064 | echo "$ac_t""no" 1>&6 |
---|
4065 | fi |
---|
4066 | |
---|
4067 | fi |
---|
4068 | if test -z "$no_libsocket"; then |
---|
4069 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
---|
4070 | echo "configure:4071: checking for socket in -lsocket" >&5 |
---|
4071 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
---|
4072 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4073 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4074 | else |
---|
4075 | ac_save_LIBS="$LIBS" |
---|
4076 | LIBS="-lsocket $LIBS" |
---|
4077 | cat > conftest.$ac_ext <<EOF |
---|
4078 | #line 4079 "configure" |
---|
4079 | #include "confdefs.h" |
---|
4080 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4081 | /* We use char because int might match the return type of a gcc2 |
---|
4082 | builtin and then its argument prototype would still apply. */ |
---|
4083 | char socket(); |
---|
4084 | |
---|
4085 | int main() { |
---|
4086 | socket() |
---|
4087 | ; return 0; } |
---|
4088 | EOF |
---|
4089 | if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4090 | rm -rf conftest* |
---|
4091 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4092 | else |
---|
4093 | echo "configure: failed program was:" >&5 |
---|
4094 | cat conftest.$ac_ext >&5 |
---|
4095 | rm -rf conftest* |
---|
4096 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4097 | fi |
---|
4098 | rm -f conftest* |
---|
4099 | LIBS="$ac_save_LIBS" |
---|
4100 | |
---|
4101 | fi |
---|
4102 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4103 | echo "$ac_t""yes" 1>&6 |
---|
4104 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4105 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4106 | cat >> confdefs.h <<EOF |
---|
4107 | #define $ac_tr_lib 1 |
---|
4108 | EOF |
---|
4109 | |
---|
4110 | LIBS="-lsocket $LIBS" |
---|
4111 | |
---|
4112 | else |
---|
4113 | echo "$ac_t""no" 1>&6 |
---|
4114 | fi |
---|
4115 | |
---|
4116 | fi |
---|
4117 | if test -z "$no_libsun"; then |
---|
4118 | echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6 |
---|
4119 | echo "configure:4120: checking for getpwnam in -lsun" >&5 |
---|
4120 | ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'` |
---|
4121 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4122 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4123 | else |
---|
4124 | ac_save_LIBS="$LIBS" |
---|
4125 | LIBS="-lsun $LIBS" |
---|
4126 | cat > conftest.$ac_ext <<EOF |
---|
4127 | #line 4128 "configure" |
---|
4128 | #include "confdefs.h" |
---|
4129 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4130 | /* We use char because int might match the return type of a gcc2 |
---|
4131 | builtin and then its argument prototype would still apply. */ |
---|
4132 | char getpwnam(); |
---|
4133 | |
---|
4134 | int main() { |
---|
4135 | getpwnam() |
---|
4136 | ; return 0; } |
---|
4137 | EOF |
---|
4138 | if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4139 | rm -rf conftest* |
---|
4140 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4141 | else |
---|
4142 | echo "configure: failed program was:" >&5 |
---|
4143 | cat conftest.$ac_ext >&5 |
---|
4144 | rm -rf conftest* |
---|
4145 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4146 | fi |
---|
4147 | rm -f conftest* |
---|
4148 | LIBS="$ac_save_LIBS" |
---|
4149 | |
---|
4150 | fi |
---|
4151 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4152 | echo "$ac_t""yes" 1>&6 |
---|
4153 | ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4154 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4155 | cat >> confdefs.h <<EOF |
---|
4156 | #define $ac_tr_lib 1 |
---|
4157 | EOF |
---|
4158 | |
---|
4159 | LIBS="-lsun $LIBS" |
---|
4160 | |
---|
4161 | else |
---|
4162 | echo "$ac_t""no" 1>&6 |
---|
4163 | fi |
---|
4164 | |
---|
4165 | fi |
---|
4166 | if test -z "$no_libbsd"; then |
---|
4167 | echo $ac_n "checking for openpty in -lbsd""... $ac_c" 1>&6 |
---|
4168 | echo "configure:4169: checking for openpty in -lbsd" >&5 |
---|
4169 | ac_lib_var=`echo bsd'_'openpty | sed 'y%./+-%__p_%'` |
---|
4170 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4171 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4172 | else |
---|
4173 | ac_save_LIBS="$LIBS" |
---|
4174 | LIBS="-lbsd $LIBS" |
---|
4175 | cat > conftest.$ac_ext <<EOF |
---|
4176 | #line 4177 "configure" |
---|
4177 | #include "confdefs.h" |
---|
4178 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4179 | /* We use char because int might match the return type of a gcc2 |
---|
4180 | builtin and then its argument prototype would still apply. */ |
---|
4181 | char openpty(); |
---|
4182 | |
---|
4183 | int main() { |
---|
4184 | openpty() |
---|
4185 | ; return 0; } |
---|
4186 | EOF |
---|
4187 | if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4188 | rm -rf conftest* |
---|
4189 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4190 | else |
---|
4191 | echo "configure: failed program was:" >&5 |
---|
4192 | cat conftest.$ac_ext >&5 |
---|
4193 | rm -rf conftest* |
---|
4194 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4195 | fi |
---|
4196 | rm -f conftest* |
---|
4197 | LIBS="$ac_save_LIBS" |
---|
4198 | |
---|
4199 | fi |
---|
4200 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4201 | echo "$ac_t""yes" 1>&6 |
---|
4202 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4203 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4204 | cat >> confdefs.h <<EOF |
---|
4205 | #define $ac_tr_lib 1 |
---|
4206 | EOF |
---|
4207 | |
---|
4208 | LIBS="-lbsd $LIBS" |
---|
4209 | |
---|
4210 | else |
---|
4211 | echo "$ac_t""no" 1>&6 |
---|
4212 | fi |
---|
4213 | |
---|
4214 | fi |
---|
4215 | echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6 |
---|
4216 | echo "configure:4217: checking for login in -lutil" >&5 |
---|
4217 | ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'` |
---|
4218 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4219 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4220 | else |
---|
4221 | ac_save_LIBS="$LIBS" |
---|
4222 | LIBS="-lutil $LIBS" |
---|
4223 | cat > conftest.$ac_ext <<EOF |
---|
4224 | #line 4225 "configure" |
---|
4225 | #include "confdefs.h" |
---|
4226 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4227 | /* We use char because int might match the return type of a gcc2 |
---|
4228 | builtin and then its argument prototype would still apply. */ |
---|
4229 | char login(); |
---|
4230 | |
---|
4231 | int main() { |
---|
4232 | login() |
---|
4233 | ; return 0; } |
---|
4234 | EOF |
---|
4235 | if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4236 | rm -rf conftest* |
---|
4237 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4238 | else |
---|
4239 | echo "configure: failed program was:" >&5 |
---|
4240 | cat conftest.$ac_ext >&5 |
---|
4241 | rm -rf conftest* |
---|
4242 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4243 | fi |
---|
4244 | rm -f conftest* |
---|
4245 | LIBS="$ac_save_LIBS" |
---|
4246 | |
---|
4247 | fi |
---|
4248 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4249 | echo "$ac_t""yes" 1>&6 |
---|
4250 | cat >> confdefs.h <<\EOF |
---|
4251 | #define HAVE_LIBUTIL_LOGIN 1 |
---|
4252 | EOF |
---|
4253 | |
---|
4254 | LIBS="$LIBS -lutil" |
---|
4255 | else |
---|
4256 | echo "$ac_t""no" 1>&6 |
---|
4257 | fi |
---|
4258 | |
---|
4259 | |
---|
4260 | if test -z "$no_vhangup"; then |
---|
4261 | for ac_func in vhangup |
---|
4262 | do |
---|
4263 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4264 | echo "configure:4265: checking for $ac_func" >&5 |
---|
4265 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4266 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4267 | else |
---|
4268 | cat > conftest.$ac_ext <<EOF |
---|
4269 | #line 4270 "configure" |
---|
4270 | #include "confdefs.h" |
---|
4271 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4272 | which can conflict with char $ac_func(); below. */ |
---|
4273 | #include <assert.h> |
---|
4274 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4275 | /* We use char because int might match the return type of a gcc2 |
---|
4276 | builtin and then its argument prototype would still apply. */ |
---|
4277 | char $ac_func(); |
---|
4278 | |
---|
4279 | int 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 | $ac_func(); |
---|
4288 | #endif |
---|
4289 | |
---|
4290 | ; return 0; } |
---|
4291 | EOF |
---|
4292 | if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4293 | rm -rf conftest* |
---|
4294 | eval "ac_cv_func_$ac_func=yes" |
---|
4295 | else |
---|
4296 | echo "configure: failed program was:" >&5 |
---|
4297 | cat conftest.$ac_ext >&5 |
---|
4298 | rm -rf conftest* |
---|
4299 | eval "ac_cv_func_$ac_func=no" |
---|
4300 | fi |
---|
4301 | rm -f conftest* |
---|
4302 | fi |
---|
4303 | |
---|
4304 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4305 | echo "$ac_t""yes" 1>&6 |
---|
4306 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4307 | cat >> confdefs.h <<EOF |
---|
4308 | #define $ac_tr_func 1 |
---|
4309 | EOF |
---|
4310 | |
---|
4311 | else |
---|
4312 | echo "$ac_t""no" 1>&6 |
---|
4313 | fi |
---|
4314 | done |
---|
4315 | |
---|
4316 | fi |
---|
4317 | |
---|
4318 | if test -z "$no_setsid"; then |
---|
4319 | for ac_func in setsid |
---|
4320 | do |
---|
4321 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4322 | echo "configure:4323: checking for $ac_func" >&5 |
---|
4323 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4324 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4325 | else |
---|
4326 | cat > conftest.$ac_ext <<EOF |
---|
4327 | #line 4328 "configure" |
---|
4328 | #include "confdefs.h" |
---|
4329 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4330 | which can conflict with char $ac_func(); below. */ |
---|
4331 | #include <assert.h> |
---|
4332 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4333 | /* We use char because int might match the return type of a gcc2 |
---|
4334 | builtin and then its argument prototype would still apply. */ |
---|
4335 | char $ac_func(); |
---|
4336 | |
---|
4337 | int main() { |
---|
4338 | |
---|
4339 | /* The GNU C library defines this for functions which it implements |
---|
4340 | to always fail with ENOSYS. Some functions are actually named |
---|
4341 | something starting with __ and the normal name is an alias. */ |
---|
4342 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4343 | choke me |
---|
4344 | #else |
---|
4345 | $ac_func(); |
---|
4346 | #endif |
---|
4347 | |
---|
4348 | ; return 0; } |
---|
4349 | EOF |
---|
4350 | if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4351 | rm -rf conftest* |
---|
4352 | eval "ac_cv_func_$ac_func=yes" |
---|
4353 | else |
---|
4354 | echo "configure: failed program was:" >&5 |
---|
4355 | cat conftest.$ac_ext >&5 |
---|
4356 | rm -rf conftest* |
---|
4357 | eval "ac_cv_func_$ac_func=no" |
---|
4358 | fi |
---|
4359 | rm -f conftest* |
---|
4360 | fi |
---|
4361 | |
---|
4362 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4363 | echo "$ac_t""yes" 1>&6 |
---|
4364 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4365 | cat >> confdefs.h <<EOF |
---|
4366 | #define $ac_tr_func 1 |
---|
4367 | EOF |
---|
4368 | |
---|
4369 | else |
---|
4370 | echo "$ac_t""no" 1>&6 |
---|
4371 | fi |
---|
4372 | done |
---|
4373 | |
---|
4374 | fi |
---|
4375 | |
---|
4376 | for ac_func in gettimeofday times getrusage ftruncate revoke makeutx |
---|
4377 | do |
---|
4378 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4379 | echo "configure:4380: checking for $ac_func" >&5 |
---|
4380 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4381 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4382 | else |
---|
4383 | cat > conftest.$ac_ext <<EOF |
---|
4384 | #line 4385 "configure" |
---|
4385 | #include "confdefs.h" |
---|
4386 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4387 | which can conflict with char $ac_func(); below. */ |
---|
4388 | #include <assert.h> |
---|
4389 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4390 | /* We use char because int might match the return type of a gcc2 |
---|
4391 | builtin and then its argument prototype would still apply. */ |
---|
4392 | char $ac_func(); |
---|
4393 | |
---|
4394 | int main() { |
---|
4395 | |
---|
4396 | /* The GNU C library defines this for functions which it implements |
---|
4397 | to always fail with ENOSYS. Some functions are actually named |
---|
4398 | something starting with __ and the normal name is an alias. */ |
---|
4399 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4400 | choke me |
---|
4401 | #else |
---|
4402 | $ac_func(); |
---|
4403 | #endif |
---|
4404 | |
---|
4405 | ; return 0; } |
---|
4406 | EOF |
---|
4407 | if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4408 | rm -rf conftest* |
---|
4409 | eval "ac_cv_func_$ac_func=yes" |
---|
4410 | else |
---|
4411 | echo "configure: failed program was:" >&5 |
---|
4412 | cat conftest.$ac_ext >&5 |
---|
4413 | rm -rf conftest* |
---|
4414 | eval "ac_cv_func_$ac_func=no" |
---|
4415 | fi |
---|
4416 | rm -f conftest* |
---|
4417 | fi |
---|
4418 | |
---|
4419 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4420 | echo "$ac_t""yes" 1>&6 |
---|
4421 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4422 | cat >> confdefs.h <<EOF |
---|
4423 | #define $ac_tr_func 1 |
---|
4424 | EOF |
---|
4425 | |
---|
4426 | else |
---|
4427 | echo "$ac_t""no" 1>&6 |
---|
4428 | fi |
---|
4429 | done |
---|
4430 | |
---|
4431 | for ac_func in strchr memcpy setlogin openpty _getpty clock fchmod ulimit |
---|
4432 | do |
---|
4433 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4434 | echo "configure:4435: checking for $ac_func" >&5 |
---|
4435 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4436 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4437 | else |
---|
4438 | cat > conftest.$ac_ext <<EOF |
---|
4439 | #line 4440 "configure" |
---|
4440 | #include "confdefs.h" |
---|
4441 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4442 | which can conflict with char $ac_func(); below. */ |
---|
4443 | #include <assert.h> |
---|
4444 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4445 | /* We use char because int might match the return type of a gcc2 |
---|
4446 | builtin and then its argument prototype would still apply. */ |
---|
4447 | char $ac_func(); |
---|
4448 | |
---|
4449 | int main() { |
---|
4450 | |
---|
4451 | /* The GNU C library defines this for functions which it implements |
---|
4452 | to always fail with ENOSYS. Some functions are actually named |
---|
4453 | something starting with __ and the normal name is an alias. */ |
---|
4454 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4455 | choke me |
---|
4456 | #else |
---|
4457 | $ac_func(); |
---|
4458 | #endif |
---|
4459 | |
---|
4460 | ; return 0; } |
---|
4461 | EOF |
---|
4462 | if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4463 | rm -rf conftest* |
---|
4464 | eval "ac_cv_func_$ac_func=yes" |
---|
4465 | else |
---|
4466 | echo "configure: failed program was:" >&5 |
---|
4467 | cat conftest.$ac_ext >&5 |
---|
4468 | rm -rf conftest* |
---|
4469 | eval "ac_cv_func_$ac_func=no" |
---|
4470 | fi |
---|
4471 | rm -f conftest* |
---|
4472 | fi |
---|
4473 | |
---|
4474 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4475 | echo "$ac_t""yes" 1>&6 |
---|
4476 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4477 | cat >> confdefs.h <<EOF |
---|
4478 | #define $ac_tr_func 1 |
---|
4479 | EOF |
---|
4480 | |
---|
4481 | else |
---|
4482 | echo "$ac_t""no" 1>&6 |
---|
4483 | fi |
---|
4484 | done |
---|
4485 | |
---|
4486 | for ac_func in gethostname getdtablesize umask innetgr initgroups setpgrp |
---|
4487 | do |
---|
4488 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4489 | echo "configure:4490: checking for $ac_func" >&5 |
---|
4490 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4491 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4492 | else |
---|
4493 | cat > conftest.$ac_ext <<EOF |
---|
4494 | #line 4495 "configure" |
---|
4495 | #include "confdefs.h" |
---|
4496 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4497 | which can conflict with char $ac_func(); below. */ |
---|
4498 | #include <assert.h> |
---|
4499 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4500 | /* We use char because int might match the return type of a gcc2 |
---|
4501 | builtin and then its argument prototype would still apply. */ |
---|
4502 | char $ac_func(); |
---|
4503 | |
---|
4504 | int main() { |
---|
4505 | |
---|
4506 | /* The GNU C library defines this for functions which it implements |
---|
4507 | to always fail with ENOSYS. Some functions are actually named |
---|
4508 | something starting with __ and the normal name is an alias. */ |
---|
4509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4510 | choke me |
---|
4511 | #else |
---|
4512 | $ac_func(); |
---|
4513 | #endif |
---|
4514 | |
---|
4515 | ; return 0; } |
---|
4516 | EOF |
---|
4517 | if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4518 | rm -rf conftest* |
---|
4519 | eval "ac_cv_func_$ac_func=yes" |
---|
4520 | else |
---|
4521 | echo "configure: failed program was:" >&5 |
---|
4522 | cat conftest.$ac_ext >&5 |
---|
4523 | rm -rf conftest* |
---|
4524 | eval "ac_cv_func_$ac_func=no" |
---|
4525 | fi |
---|
4526 | rm -f conftest* |
---|
4527 | fi |
---|
4528 | |
---|
4529 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4530 | echo "$ac_t""yes" 1>&6 |
---|
4531 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4532 | cat >> confdefs.h <<EOF |
---|
4533 | #define $ac_tr_func 1 |
---|
4534 | EOF |
---|
4535 | |
---|
4536 | else |
---|
4537 | echo "$ac_t""no" 1>&6 |
---|
4538 | fi |
---|
4539 | done |
---|
4540 | |
---|
4541 | for ac_func in setpgid daemon waitpid ttyslot authenticate |
---|
4542 | do |
---|
4543 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4544 | echo "configure:4545: checking for $ac_func" >&5 |
---|
4545 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4546 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4547 | else |
---|
4548 | cat > conftest.$ac_ext <<EOF |
---|
4549 | #line 4550 "configure" |
---|
4550 | #include "confdefs.h" |
---|
4551 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4552 | which can conflict with char $ac_func(); below. */ |
---|
4553 | #include <assert.h> |
---|
4554 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4555 | /* We use char because int might match the return type of a gcc2 |
---|
4556 | builtin and then its argument prototype would still apply. */ |
---|
4557 | char $ac_func(); |
---|
4558 | |
---|
4559 | int main() { |
---|
4560 | |
---|
4561 | /* The GNU C library defines this for functions which it implements |
---|
4562 | to always fail with ENOSYS. Some functions are actually named |
---|
4563 | something starting with __ and the normal name is an alias. */ |
---|
4564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4565 | choke me |
---|
4566 | #else |
---|
4567 | $ac_func(); |
---|
4568 | #endif |
---|
4569 | |
---|
4570 | ; return 0; } |
---|
4571 | EOF |
---|
4572 | if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4573 | rm -rf conftest* |
---|
4574 | eval "ac_cv_func_$ac_func=yes" |
---|
4575 | else |
---|
4576 | echo "configure: failed program was:" >&5 |
---|
4577 | cat conftest.$ac_ext >&5 |
---|
4578 | rm -rf conftest* |
---|
4579 | eval "ac_cv_func_$ac_func=no" |
---|
4580 | fi |
---|
4581 | rm -f conftest* |
---|
4582 | fi |
---|
4583 | |
---|
4584 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4585 | echo "$ac_t""yes" 1>&6 |
---|
4586 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4587 | cat >> confdefs.h <<EOF |
---|
4588 | #define $ac_tr_func 1 |
---|
4589 | EOF |
---|
4590 | |
---|
4591 | else |
---|
4592 | echo "$ac_t""no" 1>&6 |
---|
4593 | fi |
---|
4594 | done |
---|
4595 | |
---|
4596 | |
---|
4597 | for ac_func in strerror memmove remove random putenv crypt socketpair |
---|
4598 | do |
---|
4599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4600 | echo "configure:4601: checking for $ac_func" >&5 |
---|
4601 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4602 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4603 | else |
---|
4604 | cat > conftest.$ac_ext <<EOF |
---|
4605 | #line 4606 "configure" |
---|
4606 | #include "confdefs.h" |
---|
4607 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4608 | which can conflict with char $ac_func(); below. */ |
---|
4609 | #include <assert.h> |
---|
4610 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4611 | /* We use char because int might match the return type of a gcc2 |
---|
4612 | builtin and then its argument prototype would still apply. */ |
---|
4613 | char $ac_func(); |
---|
4614 | |
---|
4615 | int main() { |
---|
4616 | |
---|
4617 | /* The GNU C library defines this for functions which it implements |
---|
4618 | to always fail with ENOSYS. Some functions are actually named |
---|
4619 | something starting with __ and the normal name is an alias. */ |
---|
4620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4621 | choke me |
---|
4622 | #else |
---|
4623 | $ac_func(); |
---|
4624 | #endif |
---|
4625 | |
---|
4626 | ; return 0; } |
---|
4627 | EOF |
---|
4628 | if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4629 | rm -rf conftest* |
---|
4630 | eval "ac_cv_func_$ac_func=yes" |
---|
4631 | else |
---|
4632 | echo "configure: failed program was:" >&5 |
---|
4633 | cat conftest.$ac_ext >&5 |
---|
4634 | rm -rf conftest* |
---|
4635 | eval "ac_cv_func_$ac_func=no" |
---|
4636 | fi |
---|
4637 | rm -f conftest* |
---|
4638 | fi |
---|
4639 | |
---|
4640 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4641 | echo "$ac_t""yes" 1>&6 |
---|
4642 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4643 | cat >> confdefs.h <<EOF |
---|
4644 | #define $ac_tr_func 1 |
---|
4645 | EOF |
---|
4646 | |
---|
4647 | else |
---|
4648 | echo "$ac_t""no" 1>&6 |
---|
4649 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
---|
4650 | fi |
---|
4651 | done |
---|
4652 | |
---|
4653 | |
---|
4654 | |
---|
4655 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
4656 | echo "configure:4657: checking whether ln -s works" >&5 |
---|
4657 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
4658 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4659 | else |
---|
4660 | rm -f conftestdata |
---|
4661 | if ln -s X conftestdata 2>/dev/null |
---|
4662 | then |
---|
4663 | rm -f conftestdata |
---|
4664 | ac_cv_prog_LN_S="ln -s" |
---|
4665 | else |
---|
4666 | ac_cv_prog_LN_S=ln |
---|
4667 | fi |
---|
4668 | fi |
---|
4669 | LN_S="$ac_cv_prog_LN_S" |
---|
4670 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
4671 | echo "$ac_t""yes" 1>&6 |
---|
4672 | else |
---|
4673 | echo "$ac_t""no" 1>&6 |
---|
4674 | fi |
---|
4675 | |
---|
4676 | # Find a good install program. We prefer a C program (faster), |
---|
4677 | # so one script is as good as another. But avoid the broken or |
---|
4678 | # incompatible versions: |
---|
4679 | # SysV /etc/install, /usr/sbin/install |
---|
4680 | # SunOS /usr/etc/install |
---|
4681 | # IRIX /sbin/install |
---|
4682 | # AIX /bin/install |
---|
4683 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
4684 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
4685 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
4686 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
4687 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
4688 | echo "configure:4689: checking for a BSD compatible install" >&5 |
---|
4689 | if test -z "$INSTALL"; then |
---|
4690 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
4691 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4692 | else |
---|
4693 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
4694 | for ac_dir in $PATH; do |
---|
4695 | # Account for people who put trailing slashes in PATH elements. |
---|
4696 | case "$ac_dir/" in |
---|
4697 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
4698 | *) |
---|
4699 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
4700 | # Don't use installbsd from OSF since it installs stuff as root |
---|
4701 | # by default. |
---|
4702 | for ac_prog in ginstall scoinst install; do |
---|
4703 | if test -f $ac_dir/$ac_prog; then |
---|
4704 | if test $ac_prog = install && |
---|
4705 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
4706 | # AIX install. It has an incompatible calling convention. |
---|
4707 | : |
---|
4708 | else |
---|
4709 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
4710 | break 2 |
---|
4711 | fi |
---|
4712 | fi |
---|
4713 | done |
---|
4714 | ;; |
---|
4715 | esac |
---|
4716 | done |
---|
4717 | IFS="$ac_save_IFS" |
---|
4718 | |
---|
4719 | fi |
---|
4720 | if test "${ac_cv_path_install+set}" = set; then |
---|
4721 | INSTALL="$ac_cv_path_install" |
---|
4722 | else |
---|
4723 | # As a last resort, use the slow shell script. We don't cache a |
---|
4724 | # path for INSTALL within a source directory, because that will |
---|
4725 | # break other packages using the cache if that directory is |
---|
4726 | # removed, or if the path is relative. |
---|
4727 | INSTALL="$ac_install_sh" |
---|
4728 | fi |
---|
4729 | fi |
---|
4730 | echo "$ac_t""$INSTALL" 1>&6 |
---|
4731 | |
---|
4732 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
4733 | # It thinks the first close brace ends the variable substitution. |
---|
4734 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
4735 | |
---|
4736 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
4737 | |
---|
4738 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
4739 | |
---|
4740 | # Extract the first word of "ar", so it can be a program name with args. |
---|
4741 | set dummy ar; ac_word=$2 |
---|
4742 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4743 | echo "configure:4744: checking for $ac_word" >&5 |
---|
4744 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
---|
4745 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4746 | else |
---|
4747 | if test -n "$AR"; then |
---|
4748 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
4749 | else |
---|
4750 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4751 | ac_dummy="$PATH" |
---|
4752 | for ac_dir in $ac_dummy; do |
---|
4753 | test -z "$ac_dir" && ac_dir=. |
---|
4754 | if test -f $ac_dir/$ac_word; then |
---|
4755 | ac_cv_prog_AR="ar" |
---|
4756 | break |
---|
4757 | fi |
---|
4758 | done |
---|
4759 | IFS="$ac_save_ifs" |
---|
4760 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="echo" |
---|
4761 | fi |
---|
4762 | fi |
---|
4763 | AR="$ac_cv_prog_AR" |
---|
4764 | if test -n "$AR"; then |
---|
4765 | echo "$ac_t""$AR" 1>&6 |
---|
4766 | else |
---|
4767 | echo "$ac_t""no" 1>&6 |
---|
4768 | fi |
---|
4769 | |
---|
4770 | if test -z "$no_ranlib"; then |
---|
4771 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
4772 | set dummy ranlib; ac_word=$2 |
---|
4773 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4774 | echo "configure:4775: checking for $ac_word" >&5 |
---|
4775 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
4776 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4777 | else |
---|
4778 | if test -n "$RANLIB"; then |
---|
4779 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
4780 | else |
---|
4781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4782 | ac_dummy="$PATH" |
---|
4783 | for ac_dir in $ac_dummy; do |
---|
4784 | test -z "$ac_dir" && ac_dir=. |
---|
4785 | if test -f $ac_dir/$ac_word; then |
---|
4786 | ac_cv_prog_RANLIB="ranlib" |
---|
4787 | break |
---|
4788 | fi |
---|
4789 | done |
---|
4790 | IFS="$ac_save_ifs" |
---|
4791 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
4792 | fi |
---|
4793 | fi |
---|
4794 | RANLIB="$ac_cv_prog_RANLIB" |
---|
4795 | if test -n "$RANLIB"; then |
---|
4796 | echo "$ac_t""$RANLIB" 1>&6 |
---|
4797 | else |
---|
4798 | echo "$ac_t""no" 1>&6 |
---|
4799 | fi |
---|
4800 | |
---|
4801 | else |
---|
4802 | RANLIB=":" |
---|
4803 | fi |
---|
4804 | for ac_prog in makedepend makedep |
---|
4805 | do |
---|
4806 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4807 | set dummy $ac_prog; ac_word=$2 |
---|
4808 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4809 | echo "configure:4810: checking for $ac_word" >&5 |
---|
4810 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEP'+set}'`\" = set"; then |
---|
4811 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4812 | else |
---|
4813 | if test -n "$MAKEDEP"; then |
---|
4814 | ac_cv_prog_MAKEDEP="$MAKEDEP" # Let the user override the test. |
---|
4815 | else |
---|
4816 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4817 | ac_dummy="$PATH" |
---|
4818 | for ac_dir in $ac_dummy; do |
---|
4819 | test -z "$ac_dir" && ac_dir=. |
---|
4820 | if test -f $ac_dir/$ac_word; then |
---|
4821 | ac_cv_prog_MAKEDEP="$ac_prog" |
---|
4822 | break |
---|
4823 | fi |
---|
4824 | done |
---|
4825 | IFS="$ac_save_ifs" |
---|
4826 | fi |
---|
4827 | fi |
---|
4828 | MAKEDEP="$ac_cv_prog_MAKEDEP" |
---|
4829 | if test -n "$MAKEDEP"; then |
---|
4830 | echo "$ac_t""$MAKEDEP" 1>&6 |
---|
4831 | else |
---|
4832 | echo "$ac_t""no" 1>&6 |
---|
4833 | fi |
---|
4834 | |
---|
4835 | test -n "$MAKEDEP" && break |
---|
4836 | done |
---|
4837 | test -n "$MAKEDEP" || MAKEDEP="makedepend" |
---|
4838 | |
---|
4839 | |
---|
4840 | # If we find X, set shell vars x_includes and x_libraries to the |
---|
4841 | # paths, otherwise set no_x=yes. |
---|
4842 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
---|
4843 | # --without-x overrides everything else, but does not touch the cache. |
---|
4844 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
---|
4845 | echo "configure:4846: checking for X" >&5 |
---|
4846 | |
---|
4847 | # Check whether --with-x or --without-x was given. |
---|
4848 | if test "${with_x+set}" = set; then |
---|
4849 | withval="$with_x" |
---|
4850 | : |
---|
4851 | fi |
---|
4852 | |
---|
4853 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
4854 | if test "x$with_x" = xno; then |
---|
4855 | # The user explicitly disabled X. |
---|
4856 | have_x=disabled |
---|
4857 | else |
---|
4858 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
---|
4859 | # Both variables are already set. |
---|
4860 | have_x=yes |
---|
4861 | else |
---|
4862 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
---|
4863 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4864 | else |
---|
4865 | # One or both of the vars are not set, and there is no cached value. |
---|
4866 | ac_x_includes=NO ac_x_libraries=NO |
---|
4867 | rm -fr conftestdir |
---|
4868 | if mkdir conftestdir; then |
---|
4869 | cd conftestdir |
---|
4870 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
---|
4871 | cat > Imakefile <<'EOF' |
---|
4872 | acfindx: |
---|
4873 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
---|
4874 | EOF |
---|
4875 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
4876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
4877 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
---|
4878 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
4879 | for ac_extension in a so sl; do |
---|
4880 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
---|
4881 | test -f $ac_im_libdir/libX11.$ac_extension; then |
---|
4882 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
4883 | fi |
---|
4884 | done |
---|
4885 | # Screen out bogus values from the imake configuration. They are |
---|
4886 | # bogus both because they are the default anyway, and because |
---|
4887 | # using them would break gcc on systems where it needs fixed includes. |
---|
4888 | case "$ac_im_incroot" in |
---|
4889 | /usr/include) ;; |
---|
4890 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
---|
4891 | esac |
---|
4892 | case "$ac_im_usrlibdir" in |
---|
4893 | /usr/lib | /lib) ;; |
---|
4894 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
---|
4895 | esac |
---|
4896 | fi |
---|
4897 | cd .. |
---|
4898 | rm -fr conftestdir |
---|
4899 | fi |
---|
4900 | |
---|
4901 | if test "$ac_x_includes" = NO; then |
---|
4902 | # Guess where to find include files, by looking for this one X11 .h file. |
---|
4903 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
---|
4904 | |
---|
4905 | # First, try using that file with no special directory specified. |
---|
4906 | cat > conftest.$ac_ext <<EOF |
---|
4907 | #line 4908 "configure" |
---|
4908 | #include "confdefs.h" |
---|
4909 | #include <$x_direct_test_include> |
---|
4910 | EOF |
---|
4911 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4912 | { (eval echo configure:4913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4913 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4914 | if test -z "$ac_err"; then |
---|
4915 | rm -rf conftest* |
---|
4916 | # We can compile using X headers with no special include directory. |
---|
4917 | ac_x_includes= |
---|
4918 | else |
---|
4919 | echo "$ac_err" >&5 |
---|
4920 | echo "configure: failed program was:" >&5 |
---|
4921 | cat conftest.$ac_ext >&5 |
---|
4922 | rm -rf conftest* |
---|
4923 | # Look for the header file in a standard set of common directories. |
---|
4924 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
4925 | for ac_dir in \ |
---|
4926 | /usr/X11/include \ |
---|
4927 | /usr/X11R6/include \ |
---|
4928 | /usr/X11R5/include \ |
---|
4929 | /usr/X11R4/include \ |
---|
4930 | \ |
---|
4931 | /usr/include/X11 \ |
---|
4932 | /usr/include/X11R6 \ |
---|
4933 | /usr/include/X11R5 \ |
---|
4934 | /usr/include/X11R4 \ |
---|
4935 | \ |
---|
4936 | /usr/local/X11/include \ |
---|
4937 | /usr/local/X11R6/include \ |
---|
4938 | /usr/local/X11R5/include \ |
---|
4939 | /usr/local/X11R4/include \ |
---|
4940 | \ |
---|
4941 | /usr/local/include/X11 \ |
---|
4942 | /usr/local/include/X11R6 \ |
---|
4943 | /usr/local/include/X11R5 \ |
---|
4944 | /usr/local/include/X11R4 \ |
---|
4945 | \ |
---|
4946 | /usr/X386/include \ |
---|
4947 | /usr/x386/include \ |
---|
4948 | /usr/XFree86/include/X11 \ |
---|
4949 | \ |
---|
4950 | /usr/include \ |
---|
4951 | /usr/local/include \ |
---|
4952 | /usr/unsupported/include \ |
---|
4953 | /usr/athena/include \ |
---|
4954 | /usr/local/x11r5/include \ |
---|
4955 | /usr/lpp/Xamples/include \ |
---|
4956 | \ |
---|
4957 | /usr/openwin/include \ |
---|
4958 | /usr/openwin/share/include \ |
---|
4959 | ; \ |
---|
4960 | do |
---|
4961 | if test -r "$ac_dir/$x_direct_test_include"; then |
---|
4962 | ac_x_includes=$ac_dir |
---|
4963 | break |
---|
4964 | fi |
---|
4965 | done |
---|
4966 | fi |
---|
4967 | rm -f conftest* |
---|
4968 | fi # $ac_x_includes = NO |
---|
4969 | |
---|
4970 | if test "$ac_x_libraries" = NO; then |
---|
4971 | # Check for the libraries. |
---|
4972 | |
---|
4973 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
---|
4974 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
---|
4975 | |
---|
4976 | # See if we find them without any special options. |
---|
4977 | # Don't add to $LIBS permanently. |
---|
4978 | ac_save_LIBS="$LIBS" |
---|
4979 | LIBS="-l$x_direct_test_library $LIBS" |
---|
4980 | cat > conftest.$ac_ext <<EOF |
---|
4981 | #line 4982 "configure" |
---|
4982 | #include "confdefs.h" |
---|
4983 | |
---|
4984 | int main() { |
---|
4985 | ${x_direct_test_function}() |
---|
4986 | ; return 0; } |
---|
4987 | EOF |
---|
4988 | if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4989 | rm -rf conftest* |
---|
4990 | LIBS="$ac_save_LIBS" |
---|
4991 | # We can link X programs with no special library path. |
---|
4992 | ac_x_libraries= |
---|
4993 | else |
---|
4994 | echo "configure: failed program was:" >&5 |
---|
4995 | cat conftest.$ac_ext >&5 |
---|
4996 | rm -rf conftest* |
---|
4997 | LIBS="$ac_save_LIBS" |
---|
4998 | # First see if replacing the include by lib works. |
---|
4999 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
5000 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
---|
5001 | /usr/X11/lib \ |
---|
5002 | /usr/X11R6/lib \ |
---|
5003 | /usr/X11R5/lib \ |
---|
5004 | /usr/X11R4/lib \ |
---|
5005 | \ |
---|
5006 | /usr/lib/X11 \ |
---|
5007 | /usr/lib/X11R6 \ |
---|
5008 | /usr/lib/X11R5 \ |
---|
5009 | /usr/lib/X11R4 \ |
---|
5010 | \ |
---|
5011 | /usr/local/X11/lib \ |
---|
5012 | /usr/local/X11R6/lib \ |
---|
5013 | /usr/local/X11R5/lib \ |
---|
5014 | /usr/local/X11R4/lib \ |
---|
5015 | \ |
---|
5016 | /usr/local/lib/X11 \ |
---|
5017 | /usr/local/lib/X11R6 \ |
---|
5018 | /usr/local/lib/X11R5 \ |
---|
5019 | /usr/local/lib/X11R4 \ |
---|
5020 | \ |
---|
5021 | /usr/X386/lib \ |
---|
5022 | /usr/x386/lib \ |
---|
5023 | /usr/XFree86/lib/X11 \ |
---|
5024 | \ |
---|
5025 | /usr/lib \ |
---|
5026 | /usr/local/lib \ |
---|
5027 | /usr/unsupported/lib \ |
---|
5028 | /usr/athena/lib \ |
---|
5029 | /usr/local/x11r5/lib \ |
---|
5030 | /usr/lpp/Xamples/lib \ |
---|
5031 | /lib/usr/lib/X11 \ |
---|
5032 | \ |
---|
5033 | /usr/openwin/lib \ |
---|
5034 | /usr/openwin/share/lib \ |
---|
5035 | ; \ |
---|
5036 | do |
---|
5037 | for ac_extension in a so sl; do |
---|
5038 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
---|
5039 | ac_x_libraries=$ac_dir |
---|
5040 | break 2 |
---|
5041 | fi |
---|
5042 | done |
---|
5043 | done |
---|
5044 | fi |
---|
5045 | rm -f conftest* |
---|
5046 | fi # $ac_x_libraries = NO |
---|
5047 | |
---|
5048 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
---|
5049 | # Didn't find X anywhere. Cache the known absence of X. |
---|
5050 | ac_cv_have_x="have_x=no" |
---|
5051 | else |
---|
5052 | # Record where we found X for the cache. |
---|
5053 | ac_cv_have_x="have_x=yes \ |
---|
5054 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
---|
5055 | fi |
---|
5056 | fi |
---|
5057 | fi |
---|
5058 | eval "$ac_cv_have_x" |
---|
5059 | fi # $with_x != no |
---|
5060 | |
---|
5061 | if test "$have_x" != yes; then |
---|
5062 | echo "$ac_t""$have_x" 1>&6 |
---|
5063 | no_x=yes |
---|
5064 | else |
---|
5065 | # If each of the values was on the command line, it overrides each guess. |
---|
5066 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
5067 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
5068 | # Update the cache value to reflect the command line values. |
---|
5069 | ac_cv_have_x="have_x=yes \ |
---|
5070 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
---|
5071 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
---|
5072 | fi |
---|
5073 | |
---|
5074 | if test "$no_x" = yes; then |
---|
5075 | # Not all programs may use this symbol, but it does not hurt to define it. |
---|
5076 | cat >> confdefs.h <<\EOF |
---|
5077 | #define X_DISPLAY_MISSING 1 |
---|
5078 | EOF |
---|
5079 | |
---|
5080 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
---|
5081 | else |
---|
5082 | if test -n "$x_includes"; then |
---|
5083 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
---|
5084 | fi |
---|
5085 | |
---|
5086 | # It would also be nice to do this for all -L options, not just this one. |
---|
5087 | if test -n "$x_libraries"; then |
---|
5088 | X_LIBS="$X_LIBS -L$x_libraries" |
---|
5089 | # For Solaris; some versions of Sun CC require a space after -R and |
---|
5090 | # others require no space. Words are not sufficient . . . . |
---|
5091 | case "`(uname -sr) 2>/dev/null`" in |
---|
5092 | "SunOS 5"*) |
---|
5093 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
---|
5094 | echo "configure:5095: checking whether -R must be followed by a space" >&5 |
---|
5095 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
---|
5096 | cat > conftest.$ac_ext <<EOF |
---|
5097 | #line 5098 "configure" |
---|
5098 | #include "confdefs.h" |
---|
5099 | |
---|
5100 | int main() { |
---|
5101 | |
---|
5102 | ; return 0; } |
---|
5103 | EOF |
---|
5104 | if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5105 | rm -rf conftest* |
---|
5106 | ac_R_nospace=yes |
---|
5107 | else |
---|
5108 | echo "configure: failed program was:" >&5 |
---|
5109 | cat conftest.$ac_ext >&5 |
---|
5110 | rm -rf conftest* |
---|
5111 | ac_R_nospace=no |
---|
5112 | fi |
---|
5113 | rm -f conftest* |
---|
5114 | if test $ac_R_nospace = yes; then |
---|
5115 | echo "$ac_t""no" 1>&6 |
---|
5116 | X_LIBS="$X_LIBS -R$x_libraries" |
---|
5117 | else |
---|
5118 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
---|
5119 | cat > conftest.$ac_ext <<EOF |
---|
5120 | #line 5121 "configure" |
---|
5121 | #include "confdefs.h" |
---|
5122 | |
---|
5123 | int main() { |
---|
5124 | |
---|
5125 | ; return 0; } |
---|
5126 | EOF |
---|
5127 | if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5128 | rm -rf conftest* |
---|
5129 | ac_R_space=yes |
---|
5130 | else |
---|
5131 | echo "configure: failed program was:" >&5 |
---|
5132 | cat conftest.$ac_ext >&5 |
---|
5133 | rm -rf conftest* |
---|
5134 | ac_R_space=no |
---|
5135 | fi |
---|
5136 | rm -f conftest* |
---|
5137 | if test $ac_R_space = yes; then |
---|
5138 | echo "$ac_t""yes" 1>&6 |
---|
5139 | X_LIBS="$X_LIBS -R $x_libraries" |
---|
5140 | else |
---|
5141 | echo "$ac_t""neither works" 1>&6 |
---|
5142 | fi |
---|
5143 | fi |
---|
5144 | LIBS="$ac_xsave_LIBS" |
---|
5145 | esac |
---|
5146 | fi |
---|
5147 | |
---|
5148 | # Check for system-dependent libraries X programs must link with. |
---|
5149 | # Do this before checking for the system-independent R6 libraries |
---|
5150 | # (-lICE), since we may need -lsocket or whatever for X linking. |
---|
5151 | |
---|
5152 | if test "$ISC" = yes; then |
---|
5153 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
---|
5154 | else |
---|
5155 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
---|
5156 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
---|
5157 | # the Alpha needs dnet_stub (dnet does not exist). |
---|
5158 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
---|
5159 | echo "configure:5160: checking for dnet_ntoa in -ldnet" >&5 |
---|
5160 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
---|
5161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5162 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5163 | else |
---|
5164 | ac_save_LIBS="$LIBS" |
---|
5165 | LIBS="-ldnet $LIBS" |
---|
5166 | cat > conftest.$ac_ext <<EOF |
---|
5167 | #line 5168 "configure" |
---|
5168 | #include "confdefs.h" |
---|
5169 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5170 | /* We use char because int might match the return type of a gcc2 |
---|
5171 | builtin and then its argument prototype would still apply. */ |
---|
5172 | char dnet_ntoa(); |
---|
5173 | |
---|
5174 | int main() { |
---|
5175 | dnet_ntoa() |
---|
5176 | ; return 0; } |
---|
5177 | EOF |
---|
5178 | if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5179 | rm -rf conftest* |
---|
5180 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5181 | else |
---|
5182 | echo "configure: failed program was:" >&5 |
---|
5183 | cat conftest.$ac_ext >&5 |
---|
5184 | rm -rf conftest* |
---|
5185 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5186 | fi |
---|
5187 | rm -f conftest* |
---|
5188 | LIBS="$ac_save_LIBS" |
---|
5189 | |
---|
5190 | fi |
---|
5191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5192 | echo "$ac_t""yes" 1>&6 |
---|
5193 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
---|
5194 | else |
---|
5195 | echo "$ac_t""no" 1>&6 |
---|
5196 | fi |
---|
5197 | |
---|
5198 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
---|
5199 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
---|
5200 | echo "configure:5201: checking for dnet_ntoa in -ldnet_stub" >&5 |
---|
5201 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
---|
5202 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5203 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5204 | else |
---|
5205 | ac_save_LIBS="$LIBS" |
---|
5206 | LIBS="-ldnet_stub $LIBS" |
---|
5207 | cat > conftest.$ac_ext <<EOF |
---|
5208 | #line 5209 "configure" |
---|
5209 | #include "confdefs.h" |
---|
5210 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5211 | /* We use char because int might match the return type of a gcc2 |
---|
5212 | builtin and then its argument prototype would still apply. */ |
---|
5213 | char dnet_ntoa(); |
---|
5214 | |
---|
5215 | int main() { |
---|
5216 | dnet_ntoa() |
---|
5217 | ; return 0; } |
---|
5218 | EOF |
---|
5219 | if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5220 | rm -rf conftest* |
---|
5221 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5222 | else |
---|
5223 | echo "configure: failed program was:" >&5 |
---|
5224 | cat conftest.$ac_ext >&5 |
---|
5225 | rm -rf conftest* |
---|
5226 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5227 | fi |
---|
5228 | rm -f conftest* |
---|
5229 | LIBS="$ac_save_LIBS" |
---|
5230 | |
---|
5231 | fi |
---|
5232 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5233 | echo "$ac_t""yes" 1>&6 |
---|
5234 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
---|
5235 | else |
---|
5236 | echo "$ac_t""no" 1>&6 |
---|
5237 | fi |
---|
5238 | |
---|
5239 | fi |
---|
5240 | |
---|
5241 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
---|
5242 | # to get the SysV transport functions. |
---|
5243 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
---|
5244 | # needs -lnsl. |
---|
5245 | # The nsl library prevents programs from opening the X display |
---|
5246 | # on Irix 5.2, according to dickey@clark.net. |
---|
5247 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
5248 | echo "configure:5249: checking for gethostbyname" >&5 |
---|
5249 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
5250 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5251 | else |
---|
5252 | cat > conftest.$ac_ext <<EOF |
---|
5253 | #line 5254 "configure" |
---|
5254 | #include "confdefs.h" |
---|
5255 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5256 | which can conflict with char gethostbyname(); below. */ |
---|
5257 | #include <assert.h> |
---|
5258 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5259 | /* We use char because int might match the return type of a gcc2 |
---|
5260 | builtin and then its argument prototype would still apply. */ |
---|
5261 | char gethostbyname(); |
---|
5262 | |
---|
5263 | int main() { |
---|
5264 | |
---|
5265 | /* The GNU C library defines this for functions which it implements |
---|
5266 | to always fail with ENOSYS. Some functions are actually named |
---|
5267 | something starting with __ and the normal name is an alias. */ |
---|
5268 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
5269 | choke me |
---|
5270 | #else |
---|
5271 | gethostbyname(); |
---|
5272 | #endif |
---|
5273 | |
---|
5274 | ; return 0; } |
---|
5275 | EOF |
---|
5276 | if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5277 | rm -rf conftest* |
---|
5278 | eval "ac_cv_func_gethostbyname=yes" |
---|
5279 | else |
---|
5280 | echo "configure: failed program was:" >&5 |
---|
5281 | cat conftest.$ac_ext >&5 |
---|
5282 | rm -rf conftest* |
---|
5283 | eval "ac_cv_func_gethostbyname=no" |
---|
5284 | fi |
---|
5285 | rm -f conftest* |
---|
5286 | fi |
---|
5287 | |
---|
5288 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
5289 | echo "$ac_t""yes" 1>&6 |
---|
5290 | : |
---|
5291 | else |
---|
5292 | echo "$ac_t""no" 1>&6 |
---|
5293 | fi |
---|
5294 | |
---|
5295 | if test $ac_cv_func_gethostbyname = no; then |
---|
5296 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
5297 | echo "configure:5298: checking for gethostbyname in -lnsl" >&5 |
---|
5298 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
5299 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5300 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5301 | else |
---|
5302 | ac_save_LIBS="$LIBS" |
---|
5303 | LIBS="-lnsl $LIBS" |
---|
5304 | cat > conftest.$ac_ext <<EOF |
---|
5305 | #line 5306 "configure" |
---|
5306 | #include "confdefs.h" |
---|
5307 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5308 | /* We use char because int might match the return type of a gcc2 |
---|
5309 | builtin and then its argument prototype would still apply. */ |
---|
5310 | char gethostbyname(); |
---|
5311 | |
---|
5312 | int main() { |
---|
5313 | gethostbyname() |
---|
5314 | ; return 0; } |
---|
5315 | EOF |
---|
5316 | if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5317 | rm -rf conftest* |
---|
5318 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5319 | else |
---|
5320 | echo "configure: failed program was:" >&5 |
---|
5321 | cat conftest.$ac_ext >&5 |
---|
5322 | rm -rf conftest* |
---|
5323 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5324 | fi |
---|
5325 | rm -f conftest* |
---|
5326 | LIBS="$ac_save_LIBS" |
---|
5327 | |
---|
5328 | fi |
---|
5329 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5330 | echo "$ac_t""yes" 1>&6 |
---|
5331 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
---|
5332 | else |
---|
5333 | echo "$ac_t""no" 1>&6 |
---|
5334 | fi |
---|
5335 | |
---|
5336 | fi |
---|
5337 | |
---|
5338 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
---|
5339 | # socket/setsockopt and other routines are undefined under SCO ODT |
---|
5340 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
---|
5341 | # on later versions), says simon@lia.di.epfl.ch: it contains |
---|
5342 | # gethostby* variants that don't use the nameserver (or something). |
---|
5343 | # -lsocket must be given before -lnsl if both are needed. |
---|
5344 | # We assume that if connect needs -lnsl, so does gethostbyname. |
---|
5345 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
---|
5346 | echo "configure:5347: checking for connect" >&5 |
---|
5347 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
---|
5348 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5349 | else |
---|
5350 | cat > conftest.$ac_ext <<EOF |
---|
5351 | #line 5352 "configure" |
---|
5352 | #include "confdefs.h" |
---|
5353 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5354 | which can conflict with char connect(); below. */ |
---|
5355 | #include <assert.h> |
---|
5356 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5357 | /* We use char because int might match the return type of a gcc2 |
---|
5358 | builtin and then its argument prototype would still apply. */ |
---|
5359 | char connect(); |
---|
5360 | |
---|
5361 | int main() { |
---|
5362 | |
---|
5363 | /* The GNU C library defines this for functions which it implements |
---|
5364 | to always fail with ENOSYS. Some functions are actually named |
---|
5365 | something starting with __ and the normal name is an alias. */ |
---|
5366 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
5367 | choke me |
---|
5368 | #else |
---|
5369 | connect(); |
---|
5370 | #endif |
---|
5371 | |
---|
5372 | ; return 0; } |
---|
5373 | EOF |
---|
5374 | if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5375 | rm -rf conftest* |
---|
5376 | eval "ac_cv_func_connect=yes" |
---|
5377 | else |
---|
5378 | echo "configure: failed program was:" >&5 |
---|
5379 | cat conftest.$ac_ext >&5 |
---|
5380 | rm -rf conftest* |
---|
5381 | eval "ac_cv_func_connect=no" |
---|
5382 | fi |
---|
5383 | rm -f conftest* |
---|
5384 | fi |
---|
5385 | |
---|
5386 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
---|
5387 | echo "$ac_t""yes" 1>&6 |
---|
5388 | : |
---|
5389 | else |
---|
5390 | echo "$ac_t""no" 1>&6 |
---|
5391 | fi |
---|
5392 | |
---|
5393 | if test $ac_cv_func_connect = no; then |
---|
5394 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
---|
5395 | echo "configure:5396: checking for connect in -lsocket" >&5 |
---|
5396 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
---|
5397 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5398 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5399 | else |
---|
5400 | ac_save_LIBS="$LIBS" |
---|
5401 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
---|
5402 | cat > conftest.$ac_ext <<EOF |
---|
5403 | #line 5404 "configure" |
---|
5404 | #include "confdefs.h" |
---|
5405 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5406 | /* We use char because int might match the return type of a gcc2 |
---|
5407 | builtin and then its argument prototype would still apply. */ |
---|
5408 | char connect(); |
---|
5409 | |
---|
5410 | int main() { |
---|
5411 | connect() |
---|
5412 | ; return 0; } |
---|
5413 | EOF |
---|
5414 | if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5415 | rm -rf conftest* |
---|
5416 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5417 | else |
---|
5418 | echo "configure: failed program was:" >&5 |
---|
5419 | cat conftest.$ac_ext >&5 |
---|
5420 | rm -rf conftest* |
---|
5421 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5422 | fi |
---|
5423 | rm -f conftest* |
---|
5424 | LIBS="$ac_save_LIBS" |
---|
5425 | |
---|
5426 | fi |
---|
5427 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5428 | echo "$ac_t""yes" 1>&6 |
---|
5429 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
---|
5430 | else |
---|
5431 | echo "$ac_t""no" 1>&6 |
---|
5432 | fi |
---|
5433 | |
---|
5434 | fi |
---|
5435 | |
---|
5436 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
---|
5437 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
---|
5438 | echo "configure:5439: checking for remove" >&5 |
---|
5439 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
---|
5440 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5441 | else |
---|
5442 | cat > conftest.$ac_ext <<EOF |
---|
5443 | #line 5444 "configure" |
---|
5444 | #include "confdefs.h" |
---|
5445 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5446 | which can conflict with char remove(); below. */ |
---|
5447 | #include <assert.h> |
---|
5448 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5449 | /* We use char because int might match the return type of a gcc2 |
---|
5450 | builtin and then its argument prototype would still apply. */ |
---|
5451 | char remove(); |
---|
5452 | |
---|
5453 | int main() { |
---|
5454 | |
---|
5455 | /* The GNU C library defines this for functions which it implements |
---|
5456 | to always fail with ENOSYS. Some functions are actually named |
---|
5457 | something starting with __ and the normal name is an alias. */ |
---|
5458 | #if defined (__stub_remove) || defined (__stub___remove) |
---|
5459 | choke me |
---|
5460 | #else |
---|
5461 | remove(); |
---|
5462 | #endif |
---|
5463 | |
---|
5464 | ; return 0; } |
---|
5465 | EOF |
---|
5466 | if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5467 | rm -rf conftest* |
---|
5468 | eval "ac_cv_func_remove=yes" |
---|
5469 | else |
---|
5470 | echo "configure: failed program was:" >&5 |
---|
5471 | cat conftest.$ac_ext >&5 |
---|
5472 | rm -rf conftest* |
---|
5473 | eval "ac_cv_func_remove=no" |
---|
5474 | fi |
---|
5475 | rm -f conftest* |
---|
5476 | fi |
---|
5477 | |
---|
5478 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
---|
5479 | echo "$ac_t""yes" 1>&6 |
---|
5480 | : |
---|
5481 | else |
---|
5482 | echo "$ac_t""no" 1>&6 |
---|
5483 | fi |
---|
5484 | |
---|
5485 | if test $ac_cv_func_remove = no; then |
---|
5486 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
---|
5487 | echo "configure:5488: checking for remove in -lposix" >&5 |
---|
5488 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
---|
5489 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5490 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5491 | else |
---|
5492 | ac_save_LIBS="$LIBS" |
---|
5493 | LIBS="-lposix $LIBS" |
---|
5494 | cat > conftest.$ac_ext <<EOF |
---|
5495 | #line 5496 "configure" |
---|
5496 | #include "confdefs.h" |
---|
5497 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5498 | /* We use char because int might match the return type of a gcc2 |
---|
5499 | builtin and then its argument prototype would still apply. */ |
---|
5500 | char remove(); |
---|
5501 | |
---|
5502 | int main() { |
---|
5503 | remove() |
---|
5504 | ; return 0; } |
---|
5505 | EOF |
---|
5506 | if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5507 | rm -rf conftest* |
---|
5508 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5509 | else |
---|
5510 | echo "configure: failed program was:" >&5 |
---|
5511 | cat conftest.$ac_ext >&5 |
---|
5512 | rm -rf conftest* |
---|
5513 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5514 | fi |
---|
5515 | rm -f conftest* |
---|
5516 | LIBS="$ac_save_LIBS" |
---|
5517 | |
---|
5518 | fi |
---|
5519 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5520 | echo "$ac_t""yes" 1>&6 |
---|
5521 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
---|
5522 | else |
---|
5523 | echo "$ac_t""no" 1>&6 |
---|
5524 | fi |
---|
5525 | |
---|
5526 | fi |
---|
5527 | |
---|
5528 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
---|
5529 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
---|
5530 | echo "configure:5531: checking for shmat" >&5 |
---|
5531 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
---|
5532 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5533 | else |
---|
5534 | cat > conftest.$ac_ext <<EOF |
---|
5535 | #line 5536 "configure" |
---|
5536 | #include "confdefs.h" |
---|
5537 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5538 | which can conflict with char shmat(); below. */ |
---|
5539 | #include <assert.h> |
---|
5540 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5541 | /* We use char because int might match the return type of a gcc2 |
---|
5542 | builtin and then its argument prototype would still apply. */ |
---|
5543 | char shmat(); |
---|
5544 | |
---|
5545 | int main() { |
---|
5546 | |
---|
5547 | /* The GNU C library defines this for functions which it implements |
---|
5548 | to always fail with ENOSYS. Some functions are actually named |
---|
5549 | something starting with __ and the normal name is an alias. */ |
---|
5550 | #if defined (__stub_shmat) || defined (__stub___shmat) |
---|
5551 | choke me |
---|
5552 | #else |
---|
5553 | shmat(); |
---|
5554 | #endif |
---|
5555 | |
---|
5556 | ; return 0; } |
---|
5557 | EOF |
---|
5558 | if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5559 | rm -rf conftest* |
---|
5560 | eval "ac_cv_func_shmat=yes" |
---|
5561 | else |
---|
5562 | echo "configure: failed program was:" >&5 |
---|
5563 | cat conftest.$ac_ext >&5 |
---|
5564 | rm -rf conftest* |
---|
5565 | eval "ac_cv_func_shmat=no" |
---|
5566 | fi |
---|
5567 | rm -f conftest* |
---|
5568 | fi |
---|
5569 | |
---|
5570 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
---|
5571 | echo "$ac_t""yes" 1>&6 |
---|
5572 | : |
---|
5573 | else |
---|
5574 | echo "$ac_t""no" 1>&6 |
---|
5575 | fi |
---|
5576 | |
---|
5577 | if test $ac_cv_func_shmat = no; then |
---|
5578 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
---|
5579 | echo "configure:5580: checking for shmat in -lipc" >&5 |
---|
5580 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
---|
5581 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5582 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5583 | else |
---|
5584 | ac_save_LIBS="$LIBS" |
---|
5585 | LIBS="-lipc $LIBS" |
---|
5586 | cat > conftest.$ac_ext <<EOF |
---|
5587 | #line 5588 "configure" |
---|
5588 | #include "confdefs.h" |
---|
5589 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5590 | /* We use char because int might match the return type of a gcc2 |
---|
5591 | builtin and then its argument prototype would still apply. */ |
---|
5592 | char shmat(); |
---|
5593 | |
---|
5594 | int main() { |
---|
5595 | shmat() |
---|
5596 | ; return 0; } |
---|
5597 | EOF |
---|
5598 | if { (eval echo configure:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5599 | rm -rf conftest* |
---|
5600 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5601 | else |
---|
5602 | echo "configure: failed program was:" >&5 |
---|
5603 | cat conftest.$ac_ext >&5 |
---|
5604 | rm -rf conftest* |
---|
5605 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5606 | fi |
---|
5607 | rm -f conftest* |
---|
5608 | LIBS="$ac_save_LIBS" |
---|
5609 | |
---|
5610 | fi |
---|
5611 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5612 | echo "$ac_t""yes" 1>&6 |
---|
5613 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
5614 | else |
---|
5615 | echo "$ac_t""no" 1>&6 |
---|
5616 | fi |
---|
5617 | |
---|
5618 | fi |
---|
5619 | fi |
---|
5620 | |
---|
5621 | # Check for libraries that X11R6 Xt/Xaw programs need. |
---|
5622 | ac_save_LDFLAGS="$LDFLAGS" |
---|
5623 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
---|
5624 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
---|
5625 | # check for ICE first), but we must link in the order -lSM -lICE or |
---|
5626 | # we get undefined symbols. So assume we have SM if we have ICE. |
---|
5627 | # These have to be linked with before -lX11, unlike the other |
---|
5628 | # libraries we check for below, so use a different variable. |
---|
5629 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
---|
5630 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
---|
5631 | echo "configure:5632: checking for IceConnectionNumber in -lICE" >&5 |
---|
5632 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
---|
5633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5634 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5635 | else |
---|
5636 | ac_save_LIBS="$LIBS" |
---|
5637 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
---|
5638 | cat > conftest.$ac_ext <<EOF |
---|
5639 | #line 5640 "configure" |
---|
5640 | #include "confdefs.h" |
---|
5641 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5642 | /* We use char because int might match the return type of a gcc2 |
---|
5643 | builtin and then its argument prototype would still apply. */ |
---|
5644 | char IceConnectionNumber(); |
---|
5645 | |
---|
5646 | int main() { |
---|
5647 | IceConnectionNumber() |
---|
5648 | ; return 0; } |
---|
5649 | EOF |
---|
5650 | if { (eval echo configure:5651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5651 | rm -rf conftest* |
---|
5652 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5653 | else |
---|
5654 | echo "configure: failed program was:" >&5 |
---|
5655 | cat conftest.$ac_ext >&5 |
---|
5656 | rm -rf conftest* |
---|
5657 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5658 | fi |
---|
5659 | rm -f conftest* |
---|
5660 | LIBS="$ac_save_LIBS" |
---|
5661 | |
---|
5662 | fi |
---|
5663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5664 | echo "$ac_t""yes" 1>&6 |
---|
5665 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
---|
5666 | else |
---|
5667 | echo "$ac_t""no" 1>&6 |
---|
5668 | fi |
---|
5669 | |
---|
5670 | LDFLAGS="$ac_save_LDFLAGS" |
---|
5671 | |
---|
5672 | fi |
---|
5673 | |
---|
5674 | |
---|
5675 | # Extract the first word of "passwd", so it can be a program name with args. |
---|
5676 | set dummy passwd; ac_word=$2 |
---|
5677 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5678 | echo "configure:5679: checking for $ac_word" >&5 |
---|
5679 | if eval "test \"`echo '$''{'ac_cv_path_PASSWD_PATH'+set}'`\" = set"; then |
---|
5680 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5681 | else |
---|
5682 | case "$PASSWD_PATH" in |
---|
5683 | /*) |
---|
5684 | ac_cv_path_PASSWD_PATH="$PASSWD_PATH" # Let the user override the test with a path. |
---|
5685 | ;; |
---|
5686 | ?:/*) |
---|
5687 | ac_cv_path_PASSWD_PATH="$PASSWD_PATH" # Let the user override the test with a dos path. |
---|
5688 | ;; |
---|
5689 | *) |
---|
5690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5691 | ac_dummy="$PATH" |
---|
5692 | for ac_dir in $ac_dummy; do |
---|
5693 | test -z "$ac_dir" && ac_dir=. |
---|
5694 | if test -f $ac_dir/$ac_word; then |
---|
5695 | ac_cv_path_PASSWD_PATH="$ac_dir/$ac_word" |
---|
5696 | break |
---|
5697 | fi |
---|
5698 | done |
---|
5699 | IFS="$ac_save_ifs" |
---|
5700 | ;; |
---|
5701 | esac |
---|
5702 | fi |
---|
5703 | PASSWD_PATH="$ac_cv_path_PASSWD_PATH" |
---|
5704 | if test -n "$PASSWD_PATH"; then |
---|
5705 | echo "$ac_t""$PASSWD_PATH" 1>&6 |
---|
5706 | else |
---|
5707 | echo "$ac_t""no" 1>&6 |
---|
5708 | fi |
---|
5709 | |
---|
5710 | if test -n "$PASSWD_PATH"; then |
---|
5711 | cat >> confdefs.h <<EOF |
---|
5712 | #define PASSWD_PATH "$PASSWD_PATH" |
---|
5713 | EOF |
---|
5714 | |
---|
5715 | fi |
---|
5716 | |
---|
5717 | # Extract the first word of "xauth", so it can be a program name with args. |
---|
5718 | set dummy xauth; ac_word=$2 |
---|
5719 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5720 | echo "configure:5721: checking for $ac_word" >&5 |
---|
5721 | if eval "test \"`echo '$''{'ac_cv_path_XAUTH_PATH'+set}'`\" = set"; then |
---|
5722 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5723 | else |
---|
5724 | case "$XAUTH_PATH" in |
---|
5725 | /*) |
---|
5726 | ac_cv_path_XAUTH_PATH="$XAUTH_PATH" # Let the user override the test with a path. |
---|
5727 | ;; |
---|
5728 | ?:/*) |
---|
5729 | ac_cv_path_XAUTH_PATH="$XAUTH_PATH" # Let the user override the test with a dos path. |
---|
5730 | ;; |
---|
5731 | *) |
---|
5732 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5733 | ac_dummy="$PATH" |
---|
5734 | for ac_dir in $ac_dummy; do |
---|
5735 | test -z "$ac_dir" && ac_dir=. |
---|
5736 | if test -f $ac_dir/$ac_word; then |
---|
5737 | ac_cv_path_XAUTH_PATH="$ac_dir/$ac_word" |
---|
5738 | break |
---|
5739 | fi |
---|
5740 | done |
---|
5741 | IFS="$ac_save_ifs" |
---|
5742 | ;; |
---|
5743 | esac |
---|
5744 | fi |
---|
5745 | XAUTH_PATH="$ac_cv_path_XAUTH_PATH" |
---|
5746 | if test -n "$XAUTH_PATH"; then |
---|
5747 | echo "$ac_t""$XAUTH_PATH" 1>&6 |
---|
5748 | else |
---|
5749 | echo "$ac_t""no" 1>&6 |
---|
5750 | fi |
---|
5751 | |
---|
5752 | if test -n "$XAUTH_PATH"; then |
---|
5753 | cat >> confdefs.h <<EOF |
---|
5754 | #define XAUTH_PATH "$XAUTH_PATH" |
---|
5755 | EOF |
---|
5756 | |
---|
5757 | fi |
---|
5758 | |
---|
5759 | if test "$no_x" = yes; then |
---|
5760 | X_PROGRAMS="" |
---|
5761 | else |
---|
5762 | if test "x$XAUTH_PATH" = "x"; then |
---|
5763 | { echo "configure: error: configuring with X but xauth not found - aborting" 1>&2; exit 1; } |
---|
5764 | fi |
---|
5765 | X_PROGRAMS="ssh-askpass" |
---|
5766 | fi |
---|
5767 | echo $ac_n "checking for X11 unix domain socket directory""... $ac_c" 1>&6 |
---|
5768 | echo "configure:5769: checking for X11 unix domain socket directory" >&5 |
---|
5769 | |
---|
5770 | if test '!' -d /tmp/.X11-unix; then |
---|
5771 | if test -d /var/X/.X11-unix; then |
---|
5772 | cat >> confdefs.h <<\EOF |
---|
5773 | #define X11_DIR "/var/X/.X11-unix" |
---|
5774 | EOF |
---|
5775 | |
---|
5776 | echo "$ac_t""/var/X/.X11-unix" 1>&6 |
---|
5777 | else |
---|
5778 | if test -d /tmp/.X11-pipe; then |
---|
5779 | cat >> confdefs.h <<\EOF |
---|
5780 | #define X11_DIR "/tmp/.X11-pipe" |
---|
5781 | EOF |
---|
5782 | |
---|
5783 | echo "$ac_t""/tmp/.X11-pipe" 1>&6 |
---|
5784 | else |
---|
5785 | echo "$ac_t""/tmp/.X11-unix" 1>&6 |
---|
5786 | fi |
---|
5787 | fi |
---|
5788 | else |
---|
5789 | echo "$ac_t""/tmp/.X11-unix" 1>&6 |
---|
5790 | fi |
---|
5791 | |
---|
5792 | for ac_prog in perl5 perl |
---|
5793 | do |
---|
5794 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5795 | set dummy $ac_prog; ac_word=$2 |
---|
5796 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5797 | echo "configure:5798: checking for $ac_word" >&5 |
---|
5798 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
---|
5799 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5800 | else |
---|
5801 | case "$PERL" in |
---|
5802 | /*) |
---|
5803 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
---|
5804 | ;; |
---|
5805 | ?:/*) |
---|
5806 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
---|
5807 | ;; |
---|
5808 | *) |
---|
5809 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5810 | ac_dummy="$PATH" |
---|
5811 | for ac_dir in $ac_dummy; do |
---|
5812 | test -z "$ac_dir" && ac_dir=. |
---|
5813 | if test -f $ac_dir/$ac_word; then |
---|
5814 | ac_cv_path_PERL="$ac_dir/$ac_word" |
---|
5815 | break |
---|
5816 | fi |
---|
5817 | done |
---|
5818 | IFS="$ac_save_ifs" |
---|
5819 | ;; |
---|
5820 | esac |
---|
5821 | fi |
---|
5822 | PERL="$ac_cv_path_PERL" |
---|
5823 | if test -n "$PERL"; then |
---|
5824 | echo "$ac_t""$PERL" 1>&6 |
---|
5825 | else |
---|
5826 | echo "$ac_t""no" 1>&6 |
---|
5827 | fi |
---|
5828 | |
---|
5829 | test -n "$PERL" && break |
---|
5830 | done |
---|
5831 | test -n "$PERL" || PERL="not found" |
---|
5832 | |
---|
5833 | if test "x$PERL" = "xnot found" || $PERL -e 'exit ($] >= 5)'; then |
---|
5834 | unset ac_cv_path_PERL |
---|
5835 | PERL="/usr/local/bin/perl" |
---|
5836 | echo "configure: warning: perl version 5 not found - make-ssh-known-hosts will not work" 1>&2 |
---|
5837 | fi |
---|
5838 | |
---|
5839 | for ac_func in getpseudotty |
---|
5840 | do |
---|
5841 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5842 | echo "configure:5843: checking for $ac_func" >&5 |
---|
5843 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5844 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5845 | else |
---|
5846 | cat > conftest.$ac_ext <<EOF |
---|
5847 | #line 5848 "configure" |
---|
5848 | #include "confdefs.h" |
---|
5849 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5850 | which can conflict with char $ac_func(); below. */ |
---|
5851 | #include <assert.h> |
---|
5852 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5853 | /* We use char because int might match the return type of a gcc2 |
---|
5854 | builtin and then its argument prototype would still apply. */ |
---|
5855 | char $ac_func(); |
---|
5856 | |
---|
5857 | int main() { |
---|
5858 | |
---|
5859 | /* The GNU C library defines this for functions which it implements |
---|
5860 | to always fail with ENOSYS. Some functions are actually named |
---|
5861 | something starting with __ and the normal name is an alias. */ |
---|
5862 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5863 | choke me |
---|
5864 | #else |
---|
5865 | $ac_func(); |
---|
5866 | #endif |
---|
5867 | |
---|
5868 | ; return 0; } |
---|
5869 | EOF |
---|
5870 | if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5871 | rm -rf conftest* |
---|
5872 | eval "ac_cv_func_$ac_func=yes" |
---|
5873 | else |
---|
5874 | echo "configure: failed program was:" >&5 |
---|
5875 | cat conftest.$ac_ext >&5 |
---|
5876 | rm -rf conftest* |
---|
5877 | eval "ac_cv_func_$ac_func=no" |
---|
5878 | fi |
---|
5879 | rm -f conftest* |
---|
5880 | fi |
---|
5881 | |
---|
5882 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5883 | echo "$ac_t""yes" 1>&6 |
---|
5884 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5885 | cat >> confdefs.h <<EOF |
---|
5886 | #define $ac_tr_func 1 |
---|
5887 | EOF |
---|
5888 | |
---|
5889 | else |
---|
5890 | echo "$ac_t""no" 1>&6 |
---|
5891 | fi |
---|
5892 | done |
---|
5893 | |
---|
5894 | echo $ac_n "checking for pseudo ttys""... $ac_c" 1>&6 |
---|
5895 | echo "configure:5896: checking for pseudo ttys" >&5 |
---|
5896 | if test -c /dev/getpty && test $ac_cv_func_getpseudotty = yes |
---|
5897 | then |
---|
5898 | cat >> confdefs.h <<\EOF |
---|
5899 | #define HAVE_GETPSEUDOTTY 1 |
---|
5900 | EOF |
---|
5901 | |
---|
5902 | echo "$ac_t""getpseudotty" 1>&6 |
---|
5903 | else |
---|
5904 | if test -c /dev/ptmx && test -c /dev/pts/0 |
---|
5905 | then |
---|
5906 | cat >> confdefs.h <<\EOF |
---|
5907 | #define HAVE_DEV_PTMX 1 |
---|
5908 | EOF |
---|
5909 | |
---|
5910 | echo "$ac_t""streams ptys" 1>&6 |
---|
5911 | else |
---|
5912 | if test -c /dev/ptc && test -c /dev/pts || test -d /dev/pts |
---|
5913 | then |
---|
5914 | cat >> confdefs.h <<\EOF |
---|
5915 | #define HAVE_DEV_PTS_AND_PTC 1 |
---|
5916 | EOF |
---|
5917 | |
---|
5918 | echo "$ac_t""/dev/pts and /dev/ptc" 1>&6 |
---|
5919 | else |
---|
5920 | if test -c /dev/ptyp10 |
---|
5921 | then |
---|
5922 | cat >> confdefs.h <<\EOF |
---|
5923 | #define HAVE_DEV_PTYP10 1 |
---|
5924 | EOF |
---|
5925 | |
---|
5926 | echo "$ac_t""sco-style ptys" 1>&6 |
---|
5927 | else |
---|
5928 | echo "$ac_t""bsd-style ptys" 1>&6 |
---|
5929 | fi |
---|
5930 | fi |
---|
5931 | fi |
---|
5932 | fi |
---|
5933 | |
---|
5934 | echo $ac_n "checking for /etc/default/login""... $ac_c" 1>&6 |
---|
5935 | echo "configure:5936: checking for /etc/default/login" >&5 |
---|
5936 | if test -f /etc/default/login; then |
---|
5937 | cat >> confdefs.h <<\EOF |
---|
5938 | #define HAVE_ETC_DEFAULT_LOGIN 1 |
---|
5939 | EOF |
---|
5940 | |
---|
5941 | echo "$ac_t""yes" 1>&6 |
---|
5942 | else |
---|
5943 | echo "$ac_t""no" 1>&6 |
---|
5944 | fi |
---|
5945 | |
---|
5946 | if test -z "$no_shadows_password_checking"; then |
---|
5947 | echo $ac_n "checking for shadow passwords""... $ac_c" 1>&6 |
---|
5948 | echo "configure:5949: checking for shadow passwords" >&5 |
---|
5949 | if test -f /etc/shadow; then |
---|
5950 | # If we don't have shadow.h, this might be some nonstandard |
---|
5951 | # kludging... So better check it out. |
---|
5952 | if test "x$ac_cv_header_shadow_h" = "xyes"; then |
---|
5953 | cat >> confdefs.h <<\EOF |
---|
5954 | #define HAVE_ETC_SHADOW 1 |
---|
5955 | EOF |
---|
5956 | |
---|
5957 | echo "$ac_t""/etc/shadow" 1>&6 |
---|
5958 | # SunOS C2 security uses this style of shadow passwords, but does not |
---|
5959 | # have getspent in a system library. However, a libshadow.a library |
---|
5960 | # contaning these is publicly available. |
---|
5961 | echo $ac_n "checking for getspent in -lshadow""... $ac_c" 1>&6 |
---|
5962 | echo "configure:5963: checking for getspent in -lshadow" >&5 |
---|
5963 | ac_lib_var=`echo shadow'_'getspent | sed 'y%./+-%__p_%'` |
---|
5964 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5965 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5966 | else |
---|
5967 | ac_save_LIBS="$LIBS" |
---|
5968 | LIBS="-lshadow $LIBS" |
---|
5969 | cat > conftest.$ac_ext <<EOF |
---|
5970 | #line 5971 "configure" |
---|
5971 | #include "confdefs.h" |
---|
5972 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5973 | /* We use char because int might match the return type of a gcc2 |
---|
5974 | builtin and then its argument prototype would still apply. */ |
---|
5975 | char getspent(); |
---|
5976 | |
---|
5977 | int main() { |
---|
5978 | getspent() |
---|
5979 | ; return 0; } |
---|
5980 | EOF |
---|
5981 | if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5982 | rm -rf conftest* |
---|
5983 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5984 | else |
---|
5985 | echo "configure: failed program was:" >&5 |
---|
5986 | cat conftest.$ac_ext >&5 |
---|
5987 | rm -rf conftest* |
---|
5988 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5989 | fi |
---|
5990 | rm -f conftest* |
---|
5991 | LIBS="$ac_save_LIBS" |
---|
5992 | |
---|
5993 | fi |
---|
5994 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5995 | echo "$ac_t""yes" 1>&6 |
---|
5996 | ac_tr_lib=HAVE_LIB`echo shadow | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5997 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5998 | cat >> confdefs.h <<EOF |
---|
5999 | #define $ac_tr_lib 1 |
---|
6000 | EOF |
---|
6001 | |
---|
6002 | LIBS="-lshadow $LIBS" |
---|
6003 | |
---|
6004 | else |
---|
6005 | echo "$ac_t""no" 1>&6 |
---|
6006 | fi |
---|
6007 | |
---|
6008 | echo $ac_n "checking whether spwd have sp_expire field""... $ac_c" 1>&6 |
---|
6009 | echo "configure:6010: checking whether spwd have sp_expire field" >&5 |
---|
6010 | cat > conftest.$ac_ext <<EOF |
---|
6011 | #line 6012 "configure" |
---|
6012 | #include "confdefs.h" |
---|
6013 | #include <shadow.h> |
---|
6014 | EOF |
---|
6015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6016 | egrep "sp_expire" >/dev/null 2>&1; then |
---|
6017 | rm -rf conftest* |
---|
6018 | cat >> confdefs.h <<\EOF |
---|
6019 | #define HAVE_STRUCT_SPWD_EXPIRE 1 |
---|
6020 | EOF |
---|
6021 | |
---|
6022 | echo "$ac_t""yes" 1>&6 |
---|
6023 | else |
---|
6024 | rm -rf conftest* |
---|
6025 | echo "$ac_t""no" 1>&6 |
---|
6026 | fi |
---|
6027 | rm -f conftest* |
---|
6028 | |
---|
6029 | echo $ac_n "checking whether spwd have sp_inact field""... $ac_c" 1>&6 |
---|
6030 | echo "configure:6031: checking whether spwd have sp_inact field" >&5 |
---|
6031 | cat > conftest.$ac_ext <<EOF |
---|
6032 | #line 6033 "configure" |
---|
6033 | #include "confdefs.h" |
---|
6034 | #include <shadow.h> |
---|
6035 | EOF |
---|
6036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6037 | egrep "sp_inact" >/dev/null 2>&1; then |
---|
6038 | rm -rf conftest* |
---|
6039 | cat >> confdefs.h <<\EOF |
---|
6040 | #define HAVE_STRUCT_SPWD_INACT 1 |
---|
6041 | EOF |
---|
6042 | |
---|
6043 | echo "$ac_t""yes" 1>&6 |
---|
6044 | else |
---|
6045 | rm -rf conftest* |
---|
6046 | echo "$ac_t""no" 1>&6 |
---|
6047 | fi |
---|
6048 | rm -f conftest* |
---|
6049 | |
---|
6050 | else |
---|
6051 | echo "$ac_t""no" 1>&6 |
---|
6052 | fi |
---|
6053 | elif test -n "$os_aix"; then |
---|
6054 | cat >> confdefs.h <<\EOF |
---|
6055 | #define HAVE_ETC_SECURITY_PASSWD 1 |
---|
6056 | EOF |
---|
6057 | |
---|
6058 | echo "$ac_t""/etc/security/passwd" 1>&6 |
---|
6059 | elif test -n "$os_sunos"; then |
---|
6060 | cat >> confdefs.h <<\EOF |
---|
6061 | #define HAVE_ETC_SECURITY_PASSWD_ADJUNCT 1 |
---|
6062 | EOF |
---|
6063 | |
---|
6064 | echo "$ac_t""/etc/security/passwd.adjunct" 1>&6 |
---|
6065 | else |
---|
6066 | echo "$ac_t""no" 1>&6 |
---|
6067 | fi |
---|
6068 | fi |
---|
6069 | |
---|
6070 | echo $ac_n "checking location of mail spool files""... $ac_c" 1>&6 |
---|
6071 | echo "configure:6072: checking location of mail spool files" >&5 |
---|
6072 | for dir in /var/spool/mail /var/mail /usr/spool/mail /usr/mail FILE |
---|
6073 | do |
---|
6074 | if test "$dir" = "FILE"; then |
---|
6075 | if test -f $HOME/.MailBox; then |
---|
6076 | echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/.MailBox" 1>&2 |
---|
6077 | cat >> confdefs.h <<EOF |
---|
6078 | #define MAIL_SPOOL_FILE ".MailBox" |
---|
6079 | EOF |
---|
6080 | |
---|
6081 | echo "$ac_t""\$HOME/.MailBox" 1>&6 |
---|
6082 | else |
---|
6083 | if test -f $HOME/Mailbox; then |
---|
6084 | echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/Mailbox" 1>&2 |
---|
6085 | cat >> confdefs.h <<EOF |
---|
6086 | #define MAIL_SPOOL_FILE "Mailbox" |
---|
6087 | EOF |
---|
6088 | |
---|
6089 | echo "$ac_t""\$HOME/Mailbox" 1>&6 |
---|
6090 | else |
---|
6091 | echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/newmail" 1>&2 |
---|
6092 | cat >> confdefs.h <<EOF |
---|
6093 | #define MAIL_SPOOL_FILE "newmail" |
---|
6094 | EOF |
---|
6095 | |
---|
6096 | echo "$ac_t""\$HOME/newmail" 1>&6 |
---|
6097 | fi |
---|
6098 | fi |
---|
6099 | elif test -d $dir; then |
---|
6100 | cat >> confdefs.h <<EOF |
---|
6101 | #define MAIL_SPOOL_DIRECTORY "$dir" |
---|
6102 | EOF |
---|
6103 | |
---|
6104 | echo "$ac_t""$dir" 1>&6 |
---|
6105 | break |
---|
6106 | fi |
---|
6107 | done |
---|
6108 | |
---|
6109 | echo $ac_n "checking location of utmp""... $ac_c" 1>&6 |
---|
6110 | echo "configure:6111: checking location of utmp" >&5 |
---|
6111 | if test -f /var/run/utmp; then |
---|
6112 | cat >> confdefs.h <<\EOF |
---|
6113 | #define SSH_UTMP "/var/run/utmp" |
---|
6114 | EOF |
---|
6115 | |
---|
6116 | echo "$ac_t""/var/run/utmp" 1>&6 |
---|
6117 | elif test -f /var/log/utmp; then |
---|
6118 | cat >> confdefs.h <<\EOF |
---|
6119 | #define SSH_UTMP "/var/log/utmp" |
---|
6120 | EOF |
---|
6121 | |
---|
6122 | echo "$ac_t""/var/log/utmp" 1>&6 |
---|
6123 | elif test -f /var/adm/utmp; then |
---|
6124 | cat >> confdefs.h <<\EOF |
---|
6125 | #define SSH_UTMP "/var/adm/utmp" |
---|
6126 | EOF |
---|
6127 | |
---|
6128 | echo "$ac_t""/var/adm/utmp" 1>&6 |
---|
6129 | elif test -f /usr/adm/utmp; then |
---|
6130 | cat >> confdefs.h <<\EOF |
---|
6131 | #define SSH_UTMP "/usr/adm/utmp" |
---|
6132 | EOF |
---|
6133 | |
---|
6134 | echo "$ac_t""/usr/adm/utmp" 1>&6 |
---|
6135 | elif test -f /etc/utmp; then |
---|
6136 | cat >> confdefs.h <<\EOF |
---|
6137 | #define SSH_UTMP "/etc/utmp" |
---|
6138 | EOF |
---|
6139 | |
---|
6140 | echo "$ac_t""/etc/utmp" 1>&6 |
---|
6141 | else |
---|
6142 | echo "$ac_t""not found" 1>&6 |
---|
6143 | fi |
---|
6144 | |
---|
6145 | echo $ac_n "checking location of wtmp""... $ac_c" 1>&6 |
---|
6146 | echo "configure:6147: checking location of wtmp" >&5 |
---|
6147 | if test -f /var/log/wtmp; then |
---|
6148 | cat >> confdefs.h <<\EOF |
---|
6149 | #define SSH_WTMP "/var/log/wtmp" |
---|
6150 | EOF |
---|
6151 | |
---|
6152 | echo "$ac_t""/var/log/wtmp" 1>&6 |
---|
6153 | elif test -f /var/adm/wtmp; then |
---|
6154 | cat >> confdefs.h <<\EOF |
---|
6155 | #define SSH_WTMP "/var/adm/wtmp" |
---|
6156 | EOF |
---|
6157 | |
---|
6158 | echo "$ac_t""/var/adm/wtmp" 1>&6 |
---|
6159 | elif test -f /usr/adm/wtmp; then |
---|
6160 | cat >> confdefs.h <<\EOF |
---|
6161 | #define SSH_WTMP "/usr/adm/wtmp" |
---|
6162 | EOF |
---|
6163 | |
---|
6164 | echo "$ac_t""/usr/adm/wtmp" 1>&6 |
---|
6165 | elif test -f /etc/wtmp; then |
---|
6166 | cat >> confdefs.h <<\EOF |
---|
6167 | #define SSH_WTMP "/etc/wtmp" |
---|
6168 | EOF |
---|
6169 | |
---|
6170 | echo "$ac_t""/etc/wtmp" 1>&6 |
---|
6171 | else |
---|
6172 | cat >> confdefs.h <<\EOF |
---|
6173 | #define SSH_WTMP "/var/adm/wtmp" |
---|
6174 | EOF |
---|
6175 | |
---|
6176 | echo "$ac_t""not found" 1>&6 |
---|
6177 | fi |
---|
6178 | |
---|
6179 | echo $ac_n "checking location of lastlog""... $ac_c" 1>&6 |
---|
6180 | echo "configure:6181: checking location of lastlog" >&5 |
---|
6181 | if test -f /var/log/lastlog || test -d /var/log/lastlog; then |
---|
6182 | cat >> confdefs.h <<\EOF |
---|
6183 | #define SSH_LASTLOG "/var/log/lastlog" |
---|
6184 | EOF |
---|
6185 | |
---|
6186 | cat >> confdefs.h <<\EOF |
---|
6187 | #define HAVE_LASTLOG 1 |
---|
6188 | EOF |
---|
6189 | |
---|
6190 | LASTLOG=/var/log/lastlog |
---|
6191 | echo "$ac_t""/var/log/lastlog" 1>&6 |
---|
6192 | elif test -f /var/adm/lastlog || test -d /var/adm/lastlog; then |
---|
6193 | cat >> confdefs.h <<\EOF |
---|
6194 | #define SSH_LASTLOG "/var/adm/lastlog" |
---|
6195 | EOF |
---|
6196 | |
---|
6197 | cat >> confdefs.h <<\EOF |
---|
6198 | #define HAVE_LASTLOG 1 |
---|
6199 | EOF |
---|
6200 | |
---|
6201 | LASTLOG=/var/adm/lastlog |
---|
6202 | echo "$ac_t""/var/adm/lastlog" 1>&6 |
---|
6203 | elif test -f /usr/adm/lastlog || test -d /usr/adm/lastlog; then |
---|
6204 | cat >> confdefs.h <<\EOF |
---|
6205 | #define SSH_LASTLOG "/usr/adm/lastlog" |
---|
6206 | EOF |
---|
6207 | |
---|
6208 | cat >> confdefs.h <<\EOF |
---|
6209 | #define HAVE_LASTLOG 1 |
---|
6210 | EOF |
---|
6211 | |
---|
6212 | LASTLOG=/usr/adm/lastlog |
---|
6213 | echo "$ac_t""/usr/adm/lastlog" 1>&6 |
---|
6214 | elif test -f /etc/lastlog || test -d /etc/lastlog; then |
---|
6215 | cat >> confdefs.h <<\EOF |
---|
6216 | #define SSH_LASTLOG "/etc/lastlog" |
---|
6217 | EOF |
---|
6218 | |
---|
6219 | cat >> confdefs.h <<\EOF |
---|
6220 | #define HAVE_LASTLOG 1 |
---|
6221 | EOF |
---|
6222 | |
---|
6223 | LASTLOG=/etc/lastlog |
---|
6224 | echo "$ac_t""/etc/lastlog" 1>&6 |
---|
6225 | else |
---|
6226 | echo "$ac_t""not found" 1>&6 |
---|
6227 | cat >> confdefs.h <<\EOF |
---|
6228 | #define SSH_LASTLOG "/var/log/lastlog" |
---|
6229 | EOF |
---|
6230 | |
---|
6231 | LASTLOG=/var/log/lastlog |
---|
6232 | fi |
---|
6233 | |
---|
6234 | echo $ac_n "checking whether $LASTLOG is a directory""... $ac_c" 1>&6 |
---|
6235 | echo "configure:6236: checking whether $LASTLOG is a directory" >&5 |
---|
6236 | if test -d $LASTLOG |
---|
6237 | then |
---|
6238 | echo "$ac_t""yes" 1>&6 |
---|
6239 | cat >> confdefs.h <<\EOF |
---|
6240 | #define LASTLOG_IS_DIR 1 |
---|
6241 | EOF |
---|
6242 | |
---|
6243 | else |
---|
6244 | echo "$ac_t""no" 1>&6 |
---|
6245 | fi |
---|
6246 | |
---|
6247 | echo $ac_n "checking whether to include the IDEA encryption algorithm""... $ac_c" 1>&6 |
---|
6248 | echo "configure:6249: checking whether to include the IDEA encryption algorithm" >&5 |
---|
6249 | # Check whether --with-idea or --without-idea was given. |
---|
6250 | if test "${with_idea+set}" = set; then |
---|
6251 | withval="$with_idea" |
---|
6252 | case "$withval" in |
---|
6253 | no) |
---|
6254 | echo "$ac_t""no" 1>&6 |
---|
6255 | ;; |
---|
6256 | *) |
---|
6257 | echo "$ac_t""yes" 1>&6 |
---|
6258 | cat >> confdefs.h <<\EOF |
---|
6259 | #define WITH_IDEA 1 |
---|
6260 | EOF |
---|
6261 | |
---|
6262 | CONFOBJS="$CONFOBJS idea.o" |
---|
6263 | ;; |
---|
6264 | esac |
---|
6265 | else |
---|
6266 | #ifndef F_SECURE_COMMERCIAL |
---|
6267 | echo "$ac_t""yes" 1>&6 |
---|
6268 | cat >> confdefs.h <<\EOF |
---|
6269 | #define WITH_IDEA 1 |
---|
6270 | EOF |
---|
6271 | |
---|
6272 | CONFOBJS="$CONFOBJS idea.o" |
---|
6273 | #endif F_SECURE_COMMERCIAL |
---|
6274 | #ifdef F_SECURE_COMMERCIAL |
---|
6275 | # |
---|
6276 | #endif F_SECURE_COMMERCIAL |
---|
6277 | |
---|
6278 | fi |
---|
6279 | |
---|
6280 | |
---|
6281 | echo $ac_n "checking whether to include the Blowfish encryption algorithm""... $ac_c" 1>&6 |
---|
6282 | echo "configure:6283: checking whether to include the Blowfish encryption algorithm" >&5 |
---|
6283 | # Check whether --with-blowfish or --without-blowfish was given. |
---|
6284 | if test "${with_blowfish+set}" = set; then |
---|
6285 | withval="$with_blowfish" |
---|
6286 | case "$withval" in |
---|
6287 | no) |
---|
6288 | echo "$ac_t""no" 1>&6 |
---|
6289 | ;; |
---|
6290 | *) |
---|
6291 | echo "$ac_t""yes" 1>&6 |
---|
6292 | cat >> confdefs.h <<\EOF |
---|
6293 | #define WITH_BLOWFISH 1 |
---|
6294 | EOF |
---|
6295 | |
---|
6296 | ;; |
---|
6297 | esac |
---|
6298 | else |
---|
6299 | echo "$ac_t""yes" 1>&6 |
---|
6300 | cat >> confdefs.h <<\EOF |
---|
6301 | #define WITH_BLOWFISH 1 |
---|
6302 | EOF |
---|
6303 | |
---|
6304 | |
---|
6305 | fi |
---|
6306 | |
---|
6307 | |
---|
6308 | echo $ac_n "checking whether to include the DES encryption algorithm""... $ac_c" 1>&6 |
---|
6309 | echo "configure:6310: checking whether to include the DES encryption algorithm" >&5 |
---|
6310 | # Check whether --with-des or --without-des was given. |
---|
6311 | if test "${with_des+set}" = set; then |
---|
6312 | withval="$with_des" |
---|
6313 | case "$withval" in |
---|
6314 | yes) |
---|
6315 | echo "$ac_t""yes" 1>&6 |
---|
6316 | cat >> confdefs.h <<\EOF |
---|
6317 | #define WITH_DES 1 |
---|
6318 | EOF |
---|
6319 | |
---|
6320 | ;; |
---|
6321 | *) |
---|
6322 | echo "$ac_t""no" 1>&6 |
---|
6323 | ;; |
---|
6324 | esac |
---|
6325 | else |
---|
6326 | echo "$ac_t""no" 1>&6 |
---|
6327 | |
---|
6328 | fi |
---|
6329 | |
---|
6330 | |
---|
6331 | echo $ac_n "checking whether to include the ARCFOUR encryption algorithm""... $ac_c" 1>&6 |
---|
6332 | echo "configure:6333: checking whether to include the ARCFOUR encryption algorithm" >&5 |
---|
6333 | # Check whether --with-arcfour or --without-arcfour was given. |
---|
6334 | if test "${with_arcfour+set}" = set; then |
---|
6335 | withval="$with_arcfour" |
---|
6336 | case "$withval" in |
---|
6337 | yes) |
---|
6338 | echo "$ac_t""yes" 1>&6 |
---|
6339 | cat >> confdefs.h <<\EOF |
---|
6340 | #define WITH_ARCFOUR 1 |
---|
6341 | EOF |
---|
6342 | |
---|
6343 | ;; |
---|
6344 | *) |
---|
6345 | echo "$ac_t""no" 1>&6 |
---|
6346 | ;; |
---|
6347 | esac |
---|
6348 | else |
---|
6349 | echo "$ac_t""no" 1>&6 |
---|
6350 | |
---|
6351 | fi |
---|
6352 | |
---|
6353 | |
---|
6354 | echo $ac_n "checking whether to include the none encryption algorithm""... $ac_c" 1>&6 |
---|
6355 | echo "configure:6356: checking whether to include the none encryption algorithm" >&5 |
---|
6356 | # Check whether --with-none or --without-none was given. |
---|
6357 | if test "${with_none+set}" = set; then |
---|
6358 | withval="$with_none" |
---|
6359 | case "$withval" in |
---|
6360 | yes) |
---|
6361 | echo "$ac_t""yes" 1>&6 |
---|
6362 | cat >> confdefs.h <<\EOF |
---|
6363 | #define WITH_NONE 1 |
---|
6364 | EOF |
---|
6365 | |
---|
6366 | ;; |
---|
6367 | *) |
---|
6368 | echo "$ac_t""no" 1>&6 |
---|
6369 | ;; |
---|
6370 | esac |
---|
6371 | else |
---|
6372 | echo "$ac_t""no" 1>&6 |
---|
6373 | |
---|
6374 | fi |
---|
6375 | |
---|
6376 | |
---|
6377 | echo $ac_n "checking whether to use login""... $ac_c" 1>&6 |
---|
6378 | echo "configure:6379: checking whether to use login" >&5 |
---|
6379 | # Check whether --with-login or --without-login was given. |
---|
6380 | if test "${with_login+set}" = set; then |
---|
6381 | withval="$with_login" |
---|
6382 | case "$withval" in |
---|
6383 | no) |
---|
6384 | echo "$ac_t""no" 1>&6 |
---|
6385 | ;; |
---|
6386 | yes) |
---|
6387 | echo "$ac_t""yes" 1>&6 |
---|
6388 | for ac_prog in login |
---|
6389 | do |
---|
6390 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6391 | set dummy $ac_prog; ac_word=$2 |
---|
6392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6393 | echo "configure:6394: checking for $ac_word" >&5 |
---|
6394 | if eval "test \"`echo '$''{'ac_cv_path_PATH_LOGIN'+set}'`\" = set"; then |
---|
6395 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6396 | else |
---|
6397 | case "$PATH_LOGIN" in |
---|
6398 | /*) |
---|
6399 | ac_cv_path_PATH_LOGIN="$PATH_LOGIN" # Let the user override the test with a path. |
---|
6400 | ;; |
---|
6401 | ?:/*) |
---|
6402 | ac_cv_path_PATH_LOGIN="$PATH_LOGIN" # Let the user override the test with a dos path. |
---|
6403 | ;; |
---|
6404 | *) |
---|
6405 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6406 | ac_dummy="$PATH" |
---|
6407 | for ac_dir in $ac_dummy; do |
---|
6408 | test -z "$ac_dir" && ac_dir=. |
---|
6409 | if test -f $ac_dir/$ac_word; then |
---|
6410 | ac_cv_path_PATH_LOGIN="$ac_dir/$ac_word" |
---|
6411 | break |
---|
6412 | fi |
---|
6413 | done |
---|
6414 | IFS="$ac_save_ifs" |
---|
6415 | ;; |
---|
6416 | esac |
---|
6417 | fi |
---|
6418 | PATH_LOGIN="$ac_cv_path_PATH_LOGIN" |
---|
6419 | if test -n "$PATH_LOGIN"; then |
---|
6420 | echo "$ac_t""$PATH_LOGIN" 1>&6 |
---|
6421 | else |
---|
6422 | echo "$ac_t""no" 1>&6 |
---|
6423 | fi |
---|
6424 | |
---|
6425 | test -n "$PATH_LOGIN" && break |
---|
6426 | done |
---|
6427 | |
---|
6428 | cat >> confdefs.h <<\EOF |
---|
6429 | #define USELOGIN 1 |
---|
6430 | EOF |
---|
6431 | |
---|
6432 | cat >> confdefs.h <<EOF |
---|
6433 | #define PATH_LOGIN "$PATH_LOGIN" |
---|
6434 | EOF |
---|
6435 | |
---|
6436 | ;; |
---|
6437 | *) |
---|
6438 | echo "$ac_t""$withval" 1>&6 |
---|
6439 | cat >> confdefs.h <<\EOF |
---|
6440 | #define USELOGIN 1 |
---|
6441 | EOF |
---|
6442 | |
---|
6443 | cat >> confdefs.h <<EOF |
---|
6444 | #define PATH_LOGIN "$withval" |
---|
6445 | EOF |
---|
6446 | |
---|
6447 | ;; |
---|
6448 | esac |
---|
6449 | else |
---|
6450 | echo "$ac_t""no" 1>&6 |
---|
6451 | |
---|
6452 | fi |
---|
6453 | |
---|
6454 | |
---|
6455 | echo $ac_n "checking whether to use rsh""... $ac_c" 1>&6 |
---|
6456 | echo "configure:6457: checking whether to use rsh" >&5 |
---|
6457 | # Check whether --with-rsh or --without-rsh was given. |
---|
6458 | if test "${with_rsh+set}" = set; then |
---|
6459 | withval="$with_rsh" |
---|
6460 | case "$withval" in |
---|
6461 | no) |
---|
6462 | echo "$ac_t""no" 1>&6 |
---|
6463 | ;; |
---|
6464 | yes) |
---|
6465 | echo "$ac_t""yes" 1>&6 |
---|
6466 | for ac_prog in remsh resh rsh |
---|
6467 | do |
---|
6468 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6469 | set dummy $ac_prog; ac_word=$2 |
---|
6470 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6471 | echo "configure:6472: checking for $ac_word" >&5 |
---|
6472 | if eval "test \"`echo '$''{'ac_cv_path_RSH_PATH'+set}'`\" = set"; then |
---|
6473 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6474 | else |
---|
6475 | case "$RSH_PATH" in |
---|
6476 | /*) |
---|
6477 | ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a path. |
---|
6478 | ;; |
---|
6479 | ?:/*) |
---|
6480 | ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a dos path. |
---|
6481 | ;; |
---|
6482 | *) |
---|
6483 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6484 | ac_dummy="$PATH" |
---|
6485 | for ac_dir in $ac_dummy; do |
---|
6486 | test -z "$ac_dir" && ac_dir=. |
---|
6487 | if test -f $ac_dir/$ac_word; then |
---|
6488 | ac_cv_path_RSH_PATH="$ac_dir/$ac_word" |
---|
6489 | break |
---|
6490 | fi |
---|
6491 | done |
---|
6492 | IFS="$ac_save_ifs" |
---|
6493 | ;; |
---|
6494 | esac |
---|
6495 | fi |
---|
6496 | RSH_PATH="$ac_cv_path_RSH_PATH" |
---|
6497 | if test -n "$RSH_PATH"; then |
---|
6498 | echo "$ac_t""$RSH_PATH" 1>&6 |
---|
6499 | else |
---|
6500 | echo "$ac_t""no" 1>&6 |
---|
6501 | fi |
---|
6502 | |
---|
6503 | test -n "$RSH_PATH" && break |
---|
6504 | done |
---|
6505 | |
---|
6506 | cat >> confdefs.h <<EOF |
---|
6507 | #define RSH_PATH "$RSH_PATH" |
---|
6508 | EOF |
---|
6509 | |
---|
6510 | ;; |
---|
6511 | *) |
---|
6512 | echo "$ac_t""$withval" 1>&6 |
---|
6513 | cat >> confdefs.h <<EOF |
---|
6514 | #define RSH_PATH "$withval" |
---|
6515 | EOF |
---|
6516 | |
---|
6517 | RSH_PATH="$withval" |
---|
6518 | ;; |
---|
6519 | esac |
---|
6520 | else |
---|
6521 | echo "$ac_t""yes" 1>&6 |
---|
6522 | for ac_prog in remsh resh rsh |
---|
6523 | do |
---|
6524 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6525 | set dummy $ac_prog; ac_word=$2 |
---|
6526 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6527 | echo "configure:6528: checking for $ac_word" >&5 |
---|
6528 | if eval "test \"`echo '$''{'ac_cv_path_RSH_PATH'+set}'`\" = set"; then |
---|
6529 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6530 | else |
---|
6531 | case "$RSH_PATH" in |
---|
6532 | /*) |
---|
6533 | ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a path. |
---|
6534 | ;; |
---|
6535 | ?:/*) |
---|
6536 | ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a dos path. |
---|
6537 | ;; |
---|
6538 | *) |
---|
6539 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6540 | ac_dummy="$PATH" |
---|
6541 | for ac_dir in $ac_dummy; do |
---|
6542 | test -z "$ac_dir" && ac_dir=. |
---|
6543 | if test -f $ac_dir/$ac_word; then |
---|
6544 | ac_cv_path_RSH_PATH="$ac_dir/$ac_word" |
---|
6545 | break |
---|
6546 | fi |
---|
6547 | done |
---|
6548 | IFS="$ac_save_ifs" |
---|
6549 | ;; |
---|
6550 | esac |
---|
6551 | fi |
---|
6552 | RSH_PATH="$ac_cv_path_RSH_PATH" |
---|
6553 | if test -n "$RSH_PATH"; then |
---|
6554 | echo "$ac_t""$RSH_PATH" 1>&6 |
---|
6555 | else |
---|
6556 | echo "$ac_t""no" 1>&6 |
---|
6557 | fi |
---|
6558 | |
---|
6559 | test -n "$RSH_PATH" && break |
---|
6560 | done |
---|
6561 | |
---|
6562 | cat >> confdefs.h <<EOF |
---|
6563 | #define RSH_PATH "$RSH_PATH" |
---|
6564 | EOF |
---|
6565 | |
---|
6566 | |
---|
6567 | fi |
---|
6568 | |
---|
6569 | |
---|
6570 | # Check that we didn't accidentally get ssh as rsh. |
---|
6571 | if test -n "$RSH_PATH"; then |
---|
6572 | if test -n "`$RSH_PATH </dev/null 2>&1 | grep listen-port:host:port`"; then |
---|
6573 | echo "configure: warning: Found rsh in $RSH_PATH but it appears to actually be ssh." 1>&2 |
---|
6574 | { echo "configure: error: Probably forgot to specify --with-rsh=PATH-TO-REAL-RSH." 1>&2; exit 1; } |
---|
6575 | fi |
---|
6576 | fi |
---|
6577 | |
---|
6578 | # Code to permit setting default path for users (alden@math.ohio-state.edu) |
---|
6579 | echo $ac_n "checking default path""... $ac_c" 1>&6 |
---|
6580 | echo "configure:6581: checking default path" >&5 |
---|
6581 | # Check whether --with-path or --without-path was given. |
---|
6582 | if test "${with_path+set}" = set; then |
---|
6583 | withval="$with_path" |
---|
6584 | case "$withval" in |
---|
6585 | no) |
---|
6586 | echo "$ac_t""use system default" 1>&6 |
---|
6587 | ;; |
---|
6588 | *) |
---|
6589 | echo "$ac_t""$withval" 1>&6 |
---|
6590 | cat >> confdefs.h <<EOF |
---|
6591 | #define DEFAULT_PATH "$withval" |
---|
6592 | EOF |
---|
6593 | |
---|
6594 | ;; |
---|
6595 | esac |
---|
6596 | else |
---|
6597 | echo "$ac_t""use system default" 1>&6 |
---|
6598 | |
---|
6599 | fi |
---|
6600 | |
---|
6601 | |
---|
6602 | echo $ac_n "checking etcdir""... $ac_c" 1>&6 |
---|
6603 | echo "configure:6604: checking etcdir" >&5 |
---|
6604 | # Check whether --with-etcdir or --without-etcdir was given. |
---|
6605 | if test "${with_etcdir+set}" = set; then |
---|
6606 | withval="$with_etcdir" |
---|
6607 | case "$withval" in |
---|
6608 | no) |
---|
6609 | { echo "configure: error: Need ETCDIR." 1>&2; exit 1; } |
---|
6610 | ;; |
---|
6611 | yes) |
---|
6612 | ETCDIR="/etc" |
---|
6613 | echo "$ac_t""/etc" 1>&6 |
---|
6614 | ;; |
---|
6615 | *) |
---|
6616 | ETCDIR="$withval" |
---|
6617 | echo "$ac_t""$withval" 1>&6 |
---|
6618 | ;; |
---|
6619 | esac |
---|
6620 | else |
---|
6621 | ETCDIR="/etc" |
---|
6622 | echo "$ac_t""/etc" 1>&6 |
---|
6623 | |
---|
6624 | fi |
---|
6625 | |
---|
6626 | |
---|
6627 | echo $ac_n "checking whether to use nologin.allow file to override nologin""... $ac_c" 1>&6 |
---|
6628 | echo "configure:6629: checking whether to use nologin.allow file to override nologin" >&5 |
---|
6629 | # Check whether --with-nologin-allow or --without-nologin-allow was given. |
---|
6630 | if test "${with_nologin_allow+set}" = set; then |
---|
6631 | withval="$with_nologin_allow" |
---|
6632 | case "$withval" in |
---|
6633 | no) |
---|
6634 | echo "$ac_t""no" 1>&6 |
---|
6635 | ;; |
---|
6636 | yes) |
---|
6637 | echo "$ac_t""yes" 1>&6 |
---|
6638 | cat >> confdefs.h <<EOF |
---|
6639 | #define NOLOGIN_ALLOW "/etc/nologin.allow" |
---|
6640 | EOF |
---|
6641 | |
---|
6642 | ;; |
---|
6643 | *) |
---|
6644 | echo "$ac_t""$withval" 1>&6 |
---|
6645 | cat >> confdefs.h <<EOF |
---|
6646 | #define NOLOGIN_ALLOW "$withval" |
---|
6647 | EOF |
---|
6648 | |
---|
6649 | ;; |
---|
6650 | esac |
---|
6651 | else |
---|
6652 | echo "$ac_t""no" 1>&6 |
---|
6653 | |
---|
6654 | fi |
---|
6655 | |
---|
6656 | |
---|
6657 | echo $ac_n "checking whether to support SecurID""... $ac_c" 1>&6 |
---|
6658 | echo "configure:6659: checking whether to support SecurID" >&5 |
---|
6659 | # Check whether --with-securid or --without-securid was given. |
---|
6660 | if test "${with_securid+set}" = set; then |
---|
6661 | withval="$with_securid" |
---|
6662 | case "$withval" in |
---|
6663 | no) |
---|
6664 | echo "$ac_t""no" 1>&6 |
---|
6665 | ;; |
---|
6666 | yes) |
---|
6667 | echo "$ac_t""yes" 1>&6 |
---|
6668 | if test '!' -f /usr/ace/sdiclient.a; then |
---|
6669 | { echo "configure: error: SecurID sdiclient.a not found in /usr/ace: you must supply the path." 1>&2; exit 1; } |
---|
6670 | fi |
---|
6671 | echo "$ac_t""yes" 1>&6 |
---|
6672 | echo "$ac_t""Assuming SecurID headers and libraries are in /usr/ace." 1>&6 |
---|
6673 | cat >> confdefs.h <<\EOF |
---|
6674 | #define HAVE_SECURID 1 |
---|
6675 | EOF |
---|
6676 | |
---|
6677 | CFLAGS="$CFLAGS -I/usr/ace" |
---|
6678 | LIBS="/usr/ace/sdiclient.a $LIBS" |
---|
6679 | ;; |
---|
6680 | *) |
---|
6681 | echo "$ac_t""yes" 1>&6 |
---|
6682 | if test '!' -f $withval/sdiclient.a; then |
---|
6683 | { echo "configure: error: SecurID sdiclient.a not found in $withval: please supply the correct path." 1>&2; exit 1; } |
---|
6684 | fi |
---|
6685 | echo "$ac_t""Assuming SecurID headers and libraries are in $withval." 1>&6 |
---|
6686 | cat >> confdefs.h <<\EOF |
---|
6687 | #define HAVE_SECURID 1 |
---|
6688 | EOF |
---|
6689 | |
---|
6690 | CFLAGS="$CFLAGS -I$withval" |
---|
6691 | LIBS="$withval/sdiclient.a $LIBS" |
---|
6692 | ;; |
---|
6693 | esac |
---|
6694 | else |
---|
6695 | echo "$ac_t""no" 1>&6 |
---|
6696 | |
---|
6697 | fi |
---|
6698 | |
---|
6699 | |
---|
6700 | echo $ac_n "checking whether to support TIS authentication server""... $ac_c" 1>&6 |
---|
6701 | echo "configure:6702: checking whether to support TIS authentication server" >&5 |
---|
6702 | # Check whether --with-tis or --without-tis was given. |
---|
6703 | if test "${with_tis+set}" = set; then |
---|
6704 | withval="$with_tis" |
---|
6705 | case "$withval" in |
---|
6706 | no) |
---|
6707 | echo "$ac_t""no" 1>&6 |
---|
6708 | ;; |
---|
6709 | *) |
---|
6710 | echo "$ac_t""yes" 1>&6 |
---|
6711 | if test '!' -f $withval/libauth.a -a -f $withval/libfwall.a -a -f $withval/firewall.h; then |
---|
6712 | { echo "configure: error: TIS libauth.a or libfwall.a or firewall.h not found in $withval: please supply the correct path." 1>&2; exit 1; } |
---|
6713 | fi |
---|
6714 | echo "$ac_t""Assuming TIS headers and libraries are in $withval." 1>&6 |
---|
6715 | cat >> confdefs.h <<\EOF |
---|
6716 | #define HAVE_TIS 1 |
---|
6717 | EOF |
---|
6718 | |
---|
6719 | CFLAGS="$CFLAGS -I$withval -DHAVE_TIS" |
---|
6720 | LIBS="-L$withval -lauth -lfwall $LIBS" |
---|
6721 | echo "configure: warning: Remember to read README.TIS. The connection between sshd and TIS authentication |
---|
6722 | server is clear text!" 1>&2 |
---|
6723 | ;; |
---|
6724 | esac |
---|
6725 | else |
---|
6726 | echo "$ac_t""no" 1>&6 |
---|
6727 | |
---|
6728 | fi |
---|
6729 | |
---|
6730 | |
---|
6731 | echo $ac_n "checking whether to use Kerberos""... $ac_c" 1>&6 |
---|
6732 | echo "configure:6733: checking whether to use Kerberos" >&5 |
---|
6733 | # Check whether --with-kerberos5 or --without-kerberos5 was given. |
---|
6734 | if test "${with_kerberos5+set}" = set; then |
---|
6735 | withval="$with_kerberos5" |
---|
6736 | case "$withval" in |
---|
6737 | yes) |
---|
6738 | with_kerberos5=/usr/local |
---|
6739 | ;; |
---|
6740 | esac |
---|
6741 | else |
---|
6742 | with_kerberos5=no |
---|
6743 | |
---|
6744 | fi |
---|
6745 | |
---|
6746 | case "$with_kerberos5" in |
---|
6747 | no) |
---|
6748 | echo "$ac_t""no" 1>&6 |
---|
6749 | ;; |
---|
6750 | *) |
---|
6751 | echo "$ac_t""yes" 1>&6 |
---|
6752 | cat >> confdefs.h <<\EOF |
---|
6753 | #define KERBEROS 1 |
---|
6754 | EOF |
---|
6755 | |
---|
6756 | cat >> confdefs.h <<\EOF |
---|
6757 | #define KRB5 1 |
---|
6758 | EOF |
---|
6759 | |
---|
6760 | KERBEROS_ROOT="$with_kerberos5" |
---|
6761 | KERBEROS_INCS="-I${KERBEROS_ROOT}/include" |
---|
6762 | KERBEROS_LIBS="-L${KERBEROS_ROOT}/lib -lkrb4 -ldes425 -lkrb524 -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err" |
---|
6763 | echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6 |
---|
6764 | echo "configure:6765: checking for dbm_open in -lndbm" >&5 |
---|
6765 | ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'` |
---|
6766 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6767 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6768 | else |
---|
6769 | ac_save_LIBS="$LIBS" |
---|
6770 | LIBS="-lndbm $LIBS" |
---|
6771 | cat > conftest.$ac_ext <<EOF |
---|
6772 | #line 6773 "configure" |
---|
6773 | #include "confdefs.h" |
---|
6774 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6775 | /* We use char because int might match the return type of a gcc2 |
---|
6776 | builtin and then its argument prototype would still apply. */ |
---|
6777 | char dbm_open(); |
---|
6778 | |
---|
6779 | int main() { |
---|
6780 | dbm_open() |
---|
6781 | ; return 0; } |
---|
6782 | EOF |
---|
6783 | if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6784 | rm -rf conftest* |
---|
6785 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6786 | else |
---|
6787 | echo "configure: failed program was:" >&5 |
---|
6788 | cat conftest.$ac_ext >&5 |
---|
6789 | rm -rf conftest* |
---|
6790 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6791 | fi |
---|
6792 | rm -f conftest* |
---|
6793 | LIBS="$ac_save_LIBS" |
---|
6794 | |
---|
6795 | fi |
---|
6796 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6797 | echo "$ac_t""yes" 1>&6 |
---|
6798 | KERBEROS_LIBS="$KERBEROS_LIBS -lndbm" |
---|
6799 | else |
---|
6800 | echo "$ac_t""no" 1>&6 |
---|
6801 | fi |
---|
6802 | |
---|
6803 | echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6 |
---|
6804 | echo "configure:6805: checking for compile in -lgen" >&5 |
---|
6805 | ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'` |
---|
6806 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6807 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6808 | else |
---|
6809 | ac_save_LIBS="$LIBS" |
---|
6810 | LIBS="-lgen $LIBS" |
---|
6811 | cat > conftest.$ac_ext <<EOF |
---|
6812 | #line 6813 "configure" |
---|
6813 | #include "confdefs.h" |
---|
6814 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6815 | /* We use char because int might match the return type of a gcc2 |
---|
6816 | builtin and then its argument prototype would still apply. */ |
---|
6817 | char compile(); |
---|
6818 | |
---|
6819 | int main() { |
---|
6820 | compile() |
---|
6821 | ; return 0; } |
---|
6822 | EOF |
---|
6823 | if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6824 | rm -rf conftest* |
---|
6825 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6826 | else |
---|
6827 | echo "configure: failed program was:" >&5 |
---|
6828 | cat conftest.$ac_ext >&5 |
---|
6829 | rm -rf conftest* |
---|
6830 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6831 | fi |
---|
6832 | rm -f conftest* |
---|
6833 | LIBS="$ac_save_LIBS" |
---|
6834 | |
---|
6835 | fi |
---|
6836 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6837 | echo "$ac_t""yes" 1>&6 |
---|
6838 | KERBEROS_LIBS="$KERBEROS_LIBS -lgen" |
---|
6839 | else |
---|
6840 | echo "$ac_t""no" 1>&6 |
---|
6841 | fi |
---|
6842 | |
---|
6843 | KERBEROS_OBJS="auth-kerberos.o" |
---|
6844 | ;; |
---|
6845 | esac |
---|
6846 | |
---|
6847 | |
---|
6848 | |
---|
6849 | |
---|
6850 | |
---|
6851 | echo $ac_n "checking whether to enable passing the Kerberos TGT""... $ac_c" 1>&6 |
---|
6852 | echo "configure:6853: checking whether to enable passing the Kerberos TGT" >&5 |
---|
6853 | # Check whether --enable-kerberos-tgt-passing or --disable-kerberos-tgt-passing was given. |
---|
6854 | if test "${enable_kerberos_tgt_passing+set}" = set; then |
---|
6855 | enableval="$enable_kerberos_tgt_passing" |
---|
6856 | case "$enableval" in |
---|
6857 | no) |
---|
6858 | echo "$ac_t""no" 1>&6 |
---|
6859 | ;; |
---|
6860 | *) |
---|
6861 | if test "$with_kerberos5" = no ; then |
---|
6862 | echo "$ac_t""no" 1>&6 |
---|
6863 | echo "configure: warning: "Passing Kerberos TGT requires Kerberos5 support."" 1>&2 |
---|
6864 | else |
---|
6865 | echo "$ac_t""yes" 1>&6 |
---|
6866 | cat >> confdefs.h <<\EOF |
---|
6867 | #define KERBEROS_TGT_PASSING 1 |
---|
6868 | EOF |
---|
6869 | |
---|
6870 | fi |
---|
6871 | ;; |
---|
6872 | esac |
---|
6873 | else |
---|
6874 | echo "$ac_t""no" 1>&6 |
---|
6875 | |
---|
6876 | fi |
---|
6877 | |
---|
6878 | |
---|
6879 | echo $ac_n "checking whether to use libwrap""... $ac_c" 1>&6 |
---|
6880 | echo "configure:6881: checking whether to use libwrap" >&5 |
---|
6881 | # Check whether --with-libwrap or --without-libwrap was given. |
---|
6882 | if test "${with_libwrap+set}" = set; then |
---|
6883 | withval="$with_libwrap" |
---|
6884 | case "$withval" in |
---|
6885 | no) |
---|
6886 | echo "$ac_t""no" 1>&6 |
---|
6887 | ;; |
---|
6888 | yes) |
---|
6889 | echo "$ac_t""yes" 1>&6 |
---|
6890 | echo $ac_n "checking for request_init in -lwrap""... $ac_c" 1>&6 |
---|
6891 | echo "configure:6892: checking for request_init in -lwrap" >&5 |
---|
6892 | ac_lib_var=`echo wrap'_'request_init | sed 'y%./+-%__p_%'` |
---|
6893 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6894 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6895 | else |
---|
6896 | ac_save_LIBS="$LIBS" |
---|
6897 | LIBS="-lwrap $LIBS" |
---|
6898 | cat > conftest.$ac_ext <<EOF |
---|
6899 | #line 6900 "configure" |
---|
6900 | #include "confdefs.h" |
---|
6901 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6902 | /* We use char because int might match the return type of a gcc2 |
---|
6903 | builtin and then its argument prototype would still apply. */ |
---|
6904 | char request_init(); |
---|
6905 | |
---|
6906 | int main() { |
---|
6907 | request_init() |
---|
6908 | ; return 0; } |
---|
6909 | EOF |
---|
6910 | if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6911 | rm -rf conftest* |
---|
6912 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6913 | else |
---|
6914 | echo "configure: failed program was:" >&5 |
---|
6915 | cat conftest.$ac_ext >&5 |
---|
6916 | rm -rf conftest* |
---|
6917 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6918 | fi |
---|
6919 | rm -f conftest* |
---|
6920 | LIBS="$ac_save_LIBS" |
---|
6921 | |
---|
6922 | fi |
---|
6923 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6924 | echo "$ac_t""yes" 1>&6 |
---|
6925 | |
---|
6926 | cat >> confdefs.h <<\EOF |
---|
6927 | #define LIBWRAP 1 |
---|
6928 | EOF |
---|
6929 | |
---|
6930 | WRAPLIBS="-lwrap" |
---|
6931 | cat >> confdefs.h <<\EOF |
---|
6932 | #define HAVE_LIBWRAP 1 |
---|
6933 | EOF |
---|
6934 | |
---|
6935 | else |
---|
6936 | echo "$ac_t""no" 1>&6 |
---|
6937 | fi |
---|
6938 | |
---|
6939 | ;; |
---|
6940 | *) |
---|
6941 | echo "$ac_t""yes" 1>&6 |
---|
6942 | cat >> confdefs.h <<\EOF |
---|
6943 | #define LIBWRAP 1 |
---|
6944 | EOF |
---|
6945 | |
---|
6946 | if test -d "$withval"; then |
---|
6947 | WRAPLIBS="-L$withval -lwrap" |
---|
6948 | else |
---|
6949 | WRAPLIBS="$withval" |
---|
6950 | fi |
---|
6951 | OLDLIBS="$LIBS" |
---|
6952 | LIBS="$WRAPLIBS $LIBS" |
---|
6953 | cat > conftest.$ac_ext <<EOF |
---|
6954 | #line 6955 "configure" |
---|
6955 | #include "confdefs.h" |
---|
6956 | int allow_severity; int deny_severity; |
---|
6957 | int main() { |
---|
6958 | hosts_access(); |
---|
6959 | ; return 0; } |
---|
6960 | EOF |
---|
6961 | if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6962 | : |
---|
6963 | else |
---|
6964 | echo "configure: failed program was:" >&5 |
---|
6965 | cat conftest.$ac_ext >&5 |
---|
6966 | rm -rf conftest* |
---|
6967 | { echo "configure: error: Could not find the $withval library. You must first install tcp_wrappers." 1>&2; exit 1; } |
---|
6968 | fi |
---|
6969 | rm -f conftest* |
---|
6970 | LIBS="$OLDLIBS" |
---|
6971 | ;; |
---|
6972 | esac |
---|
6973 | else |
---|
6974 | echo "$ac_t""no" 1>&6 |
---|
6975 | |
---|
6976 | fi |
---|
6977 | |
---|
6978 | |
---|
6979 | |
---|
6980 | |
---|
6981 | echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6 |
---|
6982 | echo "configure:6983: checking whether to support SOCKS" >&5 |
---|
6983 | # Check whether --with-socks or --without-socks was given. |
---|
6984 | if test "${with_socks+set}" = set; then |
---|
6985 | withval="$with_socks" |
---|
6986 | case "$withval" in |
---|
6987 | no) |
---|
6988 | echo "$ac_t""no" 1>&6 |
---|
6989 | ;; |
---|
6990 | yes) |
---|
6991 | echo "$ac_t""yes" 1>&6 |
---|
6992 | echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6 |
---|
6993 | echo "configure:6994: checking for SOCKSconnect in -lsocks5" >&5 |
---|
6994 | ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'` |
---|
6995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6996 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6997 | else |
---|
6998 | ac_save_LIBS="$LIBS" |
---|
6999 | LIBS="-lsocks5 $LIBS" |
---|
7000 | cat > conftest.$ac_ext <<EOF |
---|
7001 | #line 7002 "configure" |
---|
7002 | #include "confdefs.h" |
---|
7003 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7004 | /* We use char because int might match the return type of a gcc2 |
---|
7005 | builtin and then its argument prototype would still apply. */ |
---|
7006 | char SOCKSconnect(); |
---|
7007 | |
---|
7008 | int main() { |
---|
7009 | SOCKSconnect() |
---|
7010 | ; return 0; } |
---|
7011 | EOF |
---|
7012 | if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7013 | rm -rf conftest* |
---|
7014 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7015 | else |
---|
7016 | echo "configure: failed program was:" >&5 |
---|
7017 | cat conftest.$ac_ext >&5 |
---|
7018 | rm -rf conftest* |
---|
7019 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7020 | fi |
---|
7021 | rm -f conftest* |
---|
7022 | LIBS="$ac_save_LIBS" |
---|
7023 | |
---|
7024 | fi |
---|
7025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7026 | echo "$ac_t""yes" 1>&6 |
---|
7027 | |
---|
7028 | socks=5 |
---|
7029 | LIBS="-lsocks5 $LIBS" |
---|
7030 | else |
---|
7031 | echo "$ac_t""no" 1>&6 |
---|
7032 | |
---|
7033 | echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6 |
---|
7034 | echo "configure:7035: checking for Rconnect in -lsocks" >&5 |
---|
7035 | ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'` |
---|
7036 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7037 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7038 | else |
---|
7039 | ac_save_LIBS="$LIBS" |
---|
7040 | LIBS="-lsocks $LIBS" |
---|
7041 | cat > conftest.$ac_ext <<EOF |
---|
7042 | #line 7043 "configure" |
---|
7043 | #include "confdefs.h" |
---|
7044 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7045 | /* We use char because int might match the return type of a gcc2 |
---|
7046 | builtin and then its argument prototype would still apply. */ |
---|
7047 | char Rconnect(); |
---|
7048 | |
---|
7049 | int main() { |
---|
7050 | Rconnect() |
---|
7051 | ; return 0; } |
---|
7052 | EOF |
---|
7053 | if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7054 | rm -rf conftest* |
---|
7055 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7056 | else |
---|
7057 | echo "configure: failed program was:" >&5 |
---|
7058 | cat conftest.$ac_ext >&5 |
---|
7059 | rm -rf conftest* |
---|
7060 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7061 | fi |
---|
7062 | rm -f conftest* |
---|
7063 | LIBS="$ac_save_LIBS" |
---|
7064 | |
---|
7065 | fi |
---|
7066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7067 | echo "$ac_t""yes" 1>&6 |
---|
7068 | |
---|
7069 | socks=4 |
---|
7070 | LIBS="-lsocks $LIBS" |
---|
7071 | else |
---|
7072 | echo "$ac_t""no" 1>&6 |
---|
7073 | |
---|
7074 | { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; } |
---|
7075 | fi |
---|
7076 | |
---|
7077 | fi |
---|
7078 | |
---|
7079 | ;; |
---|
7080 | esac |
---|
7081 | else |
---|
7082 | echo "$ac_t""no" 1>&6 |
---|
7083 | |
---|
7084 | fi |
---|
7085 | |
---|
7086 | |
---|
7087 | if test "x$socks" = "x"; then |
---|
7088 | echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6 |
---|
7089 | echo "configure:7090: checking whether to support SOCKS5" >&5 |
---|
7090 | # Check whether --with-socks5 or --without-socks5 was given. |
---|
7091 | if test "${with_socks5+set}" = set; then |
---|
7092 | withval="$with_socks5" |
---|
7093 | case "$withval" in |
---|
7094 | no) |
---|
7095 | echo "$ac_t""no" 1>&6 |
---|
7096 | ;; |
---|
7097 | *) |
---|
7098 | echo "$ac_t""yes" 1>&6 |
---|
7099 | socks=5 |
---|
7100 | if test "x$withval" = "xyes"; then |
---|
7101 | withval="-lsocks5" |
---|
7102 | else |
---|
7103 | if test -d "$withval"; then |
---|
7104 | if test -d "$withval/include"; then |
---|
7105 | CFLAGS="$CFLAGS -I$withval/include" |
---|
7106 | else |
---|
7107 | CFLAGS="$CFLAGS -I$withval" |
---|
7108 | fi |
---|
7109 | if test -d "$withval/lib"; then |
---|
7110 | withval="-L$withval/lib -lsocks5" |
---|
7111 | else |
---|
7112 | withval="-L$withval -lsocks5" |
---|
7113 | fi |
---|
7114 | fi |
---|
7115 | fi |
---|
7116 | LIBS="$withval $LIBS" |
---|
7117 | # If Socks was compiled with Kerberos support, we will need |
---|
7118 | # to link against kerberos libraries. Temporarily append |
---|
7119 | # to LIBS. This is harmless if there is no kerberos support. |
---|
7120 | TMPLIBS="$LIBS" |
---|
7121 | LIBS="$LIBS $KERBEROS_LIBS" |
---|
7122 | cat > conftest.$ac_ext <<EOF |
---|
7123 | #line 7124 "configure" |
---|
7124 | #include "confdefs.h" |
---|
7125 | |
---|
7126 | int main() { |
---|
7127 | SOCKSconnect(); |
---|
7128 | ; return 0; } |
---|
7129 | EOF |
---|
7130 | if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7131 | : |
---|
7132 | else |
---|
7133 | echo "configure: failed program was:" >&5 |
---|
7134 | cat conftest.$ac_ext >&5 |
---|
7135 | rm -rf conftest* |
---|
7136 | { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; } |
---|
7137 | fi |
---|
7138 | rm -f conftest* |
---|
7139 | LIBS="$TMPLIBS" |
---|
7140 | ;; |
---|
7141 | esac |
---|
7142 | else |
---|
7143 | echo "$ac_t""no" 1>&6 |
---|
7144 | |
---|
7145 | fi |
---|
7146 | |
---|
7147 | fi |
---|
7148 | |
---|
7149 | if test "x$socks" = "x"; then |
---|
7150 | echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6 |
---|
7151 | echo "configure:7152: checking whether to support SOCKS4" >&5 |
---|
7152 | # Check whether --with-socks4 or --without-socks4 was given. |
---|
7153 | if test "${with_socks4+set}" = set; then |
---|
7154 | withval="$with_socks4" |
---|
7155 | case "$withval" in |
---|
7156 | no) |
---|
7157 | echo "$ac_t""no" 1>&6 |
---|
7158 | ;; |
---|
7159 | *) |
---|
7160 | echo "$ac_t""yes" 1>&6 |
---|
7161 | socks=4 |
---|
7162 | if test "x$withval" = "xyes"; then |
---|
7163 | withval="-lsocks" |
---|
7164 | else |
---|
7165 | if test -d "$withval"; then |
---|
7166 | withval="-L$withval -lsocks" |
---|
7167 | fi |
---|
7168 | fi |
---|
7169 | LIBS="$withval $LIBS" |
---|
7170 | cat > conftest.$ac_ext <<EOF |
---|
7171 | #line 7172 "configure" |
---|
7172 | #include "confdefs.h" |
---|
7173 | |
---|
7174 | int main() { |
---|
7175 | Rconnect(); |
---|
7176 | ; return 0; } |
---|
7177 | EOF |
---|
7178 | if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7179 | : |
---|
7180 | else |
---|
7181 | echo "configure: failed program was:" >&5 |
---|
7182 | cat conftest.$ac_ext >&5 |
---|
7183 | rm -rf conftest* |
---|
7184 | { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; } |
---|
7185 | fi |
---|
7186 | rm -f conftest* |
---|
7187 | ;; |
---|
7188 | esac |
---|
7189 | else |
---|
7190 | echo "$ac_t""no" 1>&6 |
---|
7191 | |
---|
7192 | fi |
---|
7193 | |
---|
7194 | fi |
---|
7195 | |
---|
7196 | |
---|
7197 | |
---|
7198 | if test "x$socks" = "x4"; then |
---|
7199 | cat >> confdefs.h <<\EOF |
---|
7200 | #define SOCKS 1 |
---|
7201 | EOF |
---|
7202 | |
---|
7203 | cat >> confdefs.h <<\EOF |
---|
7204 | #define SOCKS4 1 |
---|
7205 | EOF |
---|
7206 | |
---|
7207 | fi |
---|
7208 | |
---|
7209 | if test "x$socks" = "x5"; then |
---|
7210 | cat >> confdefs.h <<\EOF |
---|
7211 | #define SOCKS 1 |
---|
7212 | EOF |
---|
7213 | |
---|
7214 | cat >> confdefs.h <<\EOF |
---|
7215 | #define SOCKS5 1 |
---|
7216 | EOF |
---|
7217 | |
---|
7218 | for ac_hdr in socks.h |
---|
7219 | do |
---|
7220 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
7221 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
7222 | echo "configure:7223: checking for $ac_hdr" >&5 |
---|
7223 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
7224 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7225 | else |
---|
7226 | cat > conftest.$ac_ext <<EOF |
---|
7227 | #line 7228 "configure" |
---|
7228 | #include "confdefs.h" |
---|
7229 | #include <$ac_hdr> |
---|
7230 | EOF |
---|
7231 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
7232 | { (eval echo configure:7233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
7233 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
7234 | if test -z "$ac_err"; then |
---|
7235 | rm -rf conftest* |
---|
7236 | eval "ac_cv_header_$ac_safe=yes" |
---|
7237 | else |
---|
7238 | echo "$ac_err" >&5 |
---|
7239 | echo "configure: failed program was:" >&5 |
---|
7240 | cat conftest.$ac_ext >&5 |
---|
7241 | rm -rf conftest* |
---|
7242 | eval "ac_cv_header_$ac_safe=no" |
---|
7243 | fi |
---|
7244 | rm -f conftest* |
---|
7245 | fi |
---|
7246 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
7247 | echo "$ac_t""yes" 1>&6 |
---|
7248 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
7249 | cat >> confdefs.h <<EOF |
---|
7250 | #define $ac_tr_hdr 1 |
---|
7251 | EOF |
---|
7252 | |
---|
7253 | else |
---|
7254 | echo "$ac_t""no" 1>&6 |
---|
7255 | fi |
---|
7256 | done |
---|
7257 | |
---|
7258 | if test "x$ac_cv_header_socks_h" != "xyes"; then |
---|
7259 | cat >> confdefs.h <<\EOF |
---|
7260 | #define Rconnect SOCKSconnect |
---|
7261 | EOF |
---|
7262 | |
---|
7263 | cat >> confdefs.h <<\EOF |
---|
7264 | #define Rgetsockname SOCKSgetsockname |
---|
7265 | EOF |
---|
7266 | |
---|
7267 | cat >> confdefs.h <<\EOF |
---|
7268 | #define Rgetpeername SOCKSgetpeername |
---|
7269 | EOF |
---|
7270 | |
---|
7271 | cat >> confdefs.h <<\EOF |
---|
7272 | #define Rbind SOCKSbind |
---|
7273 | EOF |
---|
7274 | |
---|
7275 | cat >> confdefs.h <<\EOF |
---|
7276 | #define Raccept SOCKSaccept |
---|
7277 | EOF |
---|
7278 | |
---|
7279 | cat >> confdefs.h <<\EOF |
---|
7280 | #define Rlisten SOCKSlisten |
---|
7281 | EOF |
---|
7282 | |
---|
7283 | cat >> confdefs.h <<\EOF |
---|
7284 | #define Rselect SOCKSselect |
---|
7285 | EOF |
---|
7286 | |
---|
7287 | cat >> confdefs.h <<\EOF |
---|
7288 | #define Rrecvfrom SOCKSrecvfrom |
---|
7289 | EOF |
---|
7290 | |
---|
7291 | cat >> confdefs.h <<\EOF |
---|
7292 | #define Rsendto SOCKSsendto |
---|
7293 | EOF |
---|
7294 | |
---|
7295 | cat >> confdefs.h <<\EOF |
---|
7296 | #define Rrecv SOCKSrecv |
---|
7297 | EOF |
---|
7298 | |
---|
7299 | cat >> confdefs.h <<\EOF |
---|
7300 | #define Rsend SOCKSsend |
---|
7301 | EOF |
---|
7302 | |
---|
7303 | cat >> confdefs.h <<\EOF |
---|
7304 | #define Rread SOCKSread |
---|
7305 | EOF |
---|
7306 | |
---|
7307 | cat >> confdefs.h <<\EOF |
---|
7308 | #define Rwrite SOCKSwrite |
---|
7309 | EOF |
---|
7310 | |
---|
7311 | cat >> confdefs.h <<\EOF |
---|
7312 | #define Rrresvport SOCKSrresvport |
---|
7313 | EOF |
---|
7314 | |
---|
7315 | cat >> confdefs.h <<\EOF |
---|
7316 | #define Rshutdown SOCKSshutdown |
---|
7317 | EOF |
---|
7318 | |
---|
7319 | cat >> confdefs.h <<\EOF |
---|
7320 | #define Rlisten SOCKSlisten |
---|
7321 | EOF |
---|
7322 | |
---|
7323 | cat >> confdefs.h <<\EOF |
---|
7324 | #define Rclose SOCKSclose |
---|
7325 | EOF |
---|
7326 | |
---|
7327 | cat >> confdefs.h <<\EOF |
---|
7328 | #define Rdup SOCKSdup |
---|
7329 | EOF |
---|
7330 | |
---|
7331 | cat >> confdefs.h <<\EOF |
---|
7332 | #define Rdup2 SOCKSdup2 |
---|
7333 | EOF |
---|
7334 | |
---|
7335 | cat >> confdefs.h <<\EOF |
---|
7336 | #define Rfclose SOCKSfclose |
---|
7337 | EOF |
---|
7338 | |
---|
7339 | cat >> confdefs.h <<\EOF |
---|
7340 | #define Rgethostbyname SOCKSgethostbyname |
---|
7341 | EOF |
---|
7342 | |
---|
7343 | fi |
---|
7344 | fi |
---|
7345 | |
---|
7346 | echo $ac_n "checking whether to use rsaref""... $ac_c" 1>&6 |
---|
7347 | echo "configure:7348: checking whether to use rsaref" >&5 |
---|
7348 | # Check whether --with-rsaref or --without-rsaref was given. |
---|
7349 | if test "${with_rsaref+set}" = set; then |
---|
7350 | withval="$with_rsaref" |
---|
7351 | case "$withval" in |
---|
7352 | no) |
---|
7353 | echo "$ac_t""no" 1>&6 |
---|
7354 | ;; |
---|
7355 | *) |
---|
7356 | echo "$ac_t""yes" 1>&6 |
---|
7357 | if test "x$withval" = "xyes"; then |
---|
7358 | withval="-lrsaref" |
---|
7359 | RSAREFDEP="rsaref2/source/librsaref.a" |
---|
7360 | LDFLAGS="-Lrsaref2/source $LDFLAGS" |
---|
7361 | else |
---|
7362 | if test -d "$withval"; then |
---|
7363 | withval="-L$withval -lrsaref" |
---|
7364 | fi |
---|
7365 | fi |
---|
7366 | cat >> confdefs.h <<\EOF |
---|
7367 | #define RSAREF 1 |
---|
7368 | EOF |
---|
7369 | |
---|
7370 | LIBS="$withval $LIBS" |
---|
7371 | ;; |
---|
7372 | esac |
---|
7373 | else |
---|
7374 | echo "$ac_t""no" 1>&6 |
---|
7375 | |
---|
7376 | fi |
---|
7377 | |
---|
7378 | |
---|
7379 | # This allows group writeability in userfile_check_owner_permissions() |
---|
7380 | echo $ac_n "checking whether to allow group writeability""... $ac_c" 1>&6 |
---|
7381 | echo "configure:7382: checking whether to allow group writeability" >&5 |
---|
7382 | # Check whether --enable-group-writeability or --disable-group-writeability was given. |
---|
7383 | if test "${enable_group_writeability+set}" = set; then |
---|
7384 | enableval="$enable_group_writeability" |
---|
7385 | echo "$ac_t""yes" 1>&6 |
---|
7386 | cat >> confdefs.h <<\EOF |
---|
7387 | #define ALLOW_GROUP_WRITEABILITY 1 |
---|
7388 | EOF |
---|
7389 | |
---|
7390 | else |
---|
7391 | echo "$ac_t""no" 1>&6 |
---|
7392 | |
---|
7393 | fi |
---|
7394 | |
---|
7395 | |
---|
7396 | echo $ac_n "checking whether to disable forwardings in server""... $ac_c" 1>&6 |
---|
7397 | echo "configure:7398: checking whether to disable forwardings in server" >&5 |
---|
7398 | # Check whether --enable-server-port-forwardings or --disable-server-port-forwardings was given. |
---|
7399 | if test "${enable_server_port_forwardings+set}" = set; then |
---|
7400 | enableval="$enable_server_port_forwardings" |
---|
7401 | case "$enableval" in |
---|
7402 | no) |
---|
7403 | cat >> confdefs.h <<\EOF |
---|
7404 | #define SSHD_NO_PORT_FORWARDING 1 |
---|
7405 | EOF |
---|
7406 | |
---|
7407 | echo "$ac_t""yes" 1>&6 |
---|
7408 | ;; |
---|
7409 | *) echo "$ac_t""no" 1>&6 |
---|
7410 | ;; |
---|
7411 | esac |
---|
7412 | else |
---|
7413 | echo "$ac_t""no" 1>&6 |
---|
7414 | |
---|
7415 | fi |
---|
7416 | |
---|
7417 | |
---|
7418 | echo $ac_n "checking whether to disable forwardings in client""... $ac_c" 1>&6 |
---|
7419 | echo "configure:7420: checking whether to disable forwardings in client" >&5 |
---|
7420 | # Check whether --enable-client-port-forwardings or --disable-client-port-forwardings was given. |
---|
7421 | if test "${enable_client_port_forwardings+set}" = set; then |
---|
7422 | enableval="$enable_client_port_forwardings" |
---|
7423 | case "$enableval" in |
---|
7424 | no) |
---|
7425 | cat >> confdefs.h <<\EOF |
---|
7426 | #define SSH_NO_PORT_FORWARDING 1 |
---|
7427 | EOF |
---|
7428 | |
---|
7429 | echo "$ac_t""yes" 1>&6 |
---|
7430 | ;; |
---|
7431 | *) echo "$ac_t""no" 1>&6 |
---|
7432 | ;; |
---|
7433 | esac |
---|
7434 | else |
---|
7435 | echo "$ac_t""no" 1>&6 |
---|
7436 | |
---|
7437 | fi |
---|
7438 | |
---|
7439 | |
---|
7440 | echo $ac_n "checking whether to disable X11 forwarding in server""... $ac_c" 1>&6 |
---|
7441 | echo "configure:7442: checking whether to disable X11 forwarding in server" >&5 |
---|
7442 | # Check whether --enable-server-x11-forwarding or --disable-server-x11-forwarding was given. |
---|
7443 | if test "${enable_server_x11_forwarding+set}" = set; then |
---|
7444 | enableval="$enable_server_x11_forwarding" |
---|
7445 | case "$enableval" in |
---|
7446 | no) |
---|
7447 | cat >> confdefs.h <<\EOF |
---|
7448 | #define SSHD_NO_X11_FORWARDING 1 |
---|
7449 | EOF |
---|
7450 | |
---|
7451 | echo "$ac_t""yes" 1>&6 |
---|
7452 | ;; |
---|
7453 | *) echo "$ac_t""no" 1>&6 |
---|
7454 | ;; |
---|
7455 | esac |
---|
7456 | else |
---|
7457 | echo "$ac_t""no" 1>&6 |
---|
7458 | |
---|
7459 | fi |
---|
7460 | |
---|
7461 | |
---|
7462 | echo $ac_n "checking whether to disable X11 forwarding in client""... $ac_c" 1>&6 |
---|
7463 | echo "configure:7464: checking whether to disable X11 forwarding in client" >&5 |
---|
7464 | # Check whether --enable-client-x11-forwarding or --disable-client-x11-forwarding was given. |
---|
7465 | if test "${enable_client_x11_forwarding+set}" = set; then |
---|
7466 | enableval="$enable_client_x11_forwarding" |
---|
7467 | case "$enableval" in |
---|
7468 | no) |
---|
7469 | cat >> confdefs.h <<\EOF |
---|
7470 | #define SSH_NO_X11_FORWARDING 1 |
---|
7471 | EOF |
---|
7472 | |
---|
7473 | echo "$ac_t""yes" 1>&6 |
---|
7474 | ;; |
---|
7475 | *) echo "$ac_t""no" 1>&6 |
---|
7476 | ;; |
---|
7477 | esac |
---|
7478 | else |
---|
7479 | echo "$ac_t""no" 1>&6 |
---|
7480 | |
---|
7481 | fi |
---|
7482 | |
---|
7483 | |
---|
7484 | echo $ac_n "checking whether to install ssh as suid root""... $ac_c" 1>&6 |
---|
7485 | echo "configure:7486: checking whether to install ssh as suid root" >&5 |
---|
7486 | # Check whether --enable-suid-ssh or --disable-suid-ssh was given. |
---|
7487 | if test "${enable_suid_ssh+set}" = set; then |
---|
7488 | enableval="$enable_suid_ssh" |
---|
7489 | case "$enableval" in |
---|
7490 | no) |
---|
7491 | echo "$ac_t""no" 1>&6 |
---|
7492 | SSHINSTALLMODE=0755 |
---|
7493 | ;; |
---|
7494 | *) echo "$ac_t""yes" 1>&6 |
---|
7495 | SSHINSTALLMODE=04711 |
---|
7496 | ;; |
---|
7497 | esac |
---|
7498 | else |
---|
7499 | echo "$ac_t""yes" 1>&6 |
---|
7500 | SSHINSTALLMODE=04711 |
---|
7501 | |
---|
7502 | fi |
---|
7503 | |
---|
7504 | |
---|
7505 | echo $ac_n "checking whether to enable TCP_NODELAY""... $ac_c" 1>&6 |
---|
7506 | echo "configure:7507: checking whether to enable TCP_NODELAY" >&5 |
---|
7507 | # Check whether --enable-tcp-nodelay or --disable-tcp-nodelay was given. |
---|
7508 | if test "${enable_tcp_nodelay+set}" = set; then |
---|
7509 | enableval="$enable_tcp_nodelay" |
---|
7510 | case "$enableval" in |
---|
7511 | no) |
---|
7512 | echo "$ac_t""no" 1>&6 |
---|
7513 | ;; |
---|
7514 | *) |
---|
7515 | cat >> confdefs.h <<\EOF |
---|
7516 | #define ENABLE_TCP_NODELAY 1 |
---|
7517 | EOF |
---|
7518 | |
---|
7519 | echo "$ac_t""yes" 1>&6 |
---|
7520 | esac |
---|
7521 | else |
---|
7522 | echo "$ac_t""yes" 1>&6 |
---|
7523 | cat >> confdefs.h <<\EOF |
---|
7524 | #define ENABLE_TCP_NODELAY 1 |
---|
7525 | EOF |
---|
7526 | |
---|
7527 | |
---|
7528 | fi |
---|
7529 | |
---|
7530 | |
---|
7531 | echo $ac_n "checking whether to enable SO_LINGER""... $ac_c" 1>&6 |
---|
7532 | echo "configure:7533: checking whether to enable SO_LINGER" >&5 |
---|
7533 | # Check whether --enable-so-linger or --disable-so-linger was given. |
---|
7534 | if test "${enable_so_linger+set}" = set; then |
---|
7535 | enableval="$enable_so_linger" |
---|
7536 | case "$enableval" in |
---|
7537 | yes) |
---|
7538 | echo "$ac_t""yes" 1>&6 |
---|
7539 | cat >> confdefs.h <<\EOF |
---|
7540 | #define ENABLE_SO_LINGER 1 |
---|
7541 | EOF |
---|
7542 | |
---|
7543 | ;; |
---|
7544 | *) |
---|
7545 | echo "$ac_t""no" 1>&6 |
---|
7546 | esac |
---|
7547 | else |
---|
7548 | echo "$ac_t""no" 1>&6 |
---|
7549 | |
---|
7550 | fi |
---|
7551 | |
---|
7552 | |
---|
7553 | echo $ac_n "checking whether to include scp statistics at all""... $ac_c" 1>&6 |
---|
7554 | echo "configure:7555: checking whether to include scp statistics at all" >&5 |
---|
7555 | # Check whether --with-scp-stats or --without-scp-stats was given. |
---|
7556 | if test "${with_scp_stats+set}" = set; then |
---|
7557 | withval="$with_scp_stats" |
---|
7558 | case "withvalval" in |
---|
7559 | no) |
---|
7560 | echo "$ac_t""no" 1>&6 |
---|
7561 | ;; |
---|
7562 | *) |
---|
7563 | cat >> confdefs.h <<\EOF |
---|
7564 | #define WITH_SCP_STATS 1 |
---|
7565 | EOF |
---|
7566 | |
---|
7567 | echo "$ac_t""yes" 1>&6 |
---|
7568 | esac |
---|
7569 | else |
---|
7570 | echo "$ac_t""yes" 1>&6 |
---|
7571 | cat >> confdefs.h <<\EOF |
---|
7572 | #define WITH_SCP_STATS 1 |
---|
7573 | EOF |
---|
7574 | |
---|
7575 | |
---|
7576 | fi |
---|
7577 | |
---|
7578 | |
---|
7579 | echo $ac_n "checking whether to enable scp statistics""... $ac_c" 1>&6 |
---|
7580 | echo "configure:7581: checking whether to enable scp statistics" >&5 |
---|
7581 | # Check whether --enable-scp-stats or --disable-scp-stats was given. |
---|
7582 | if test "${enable_scp_stats+set}" = set; then |
---|
7583 | enableval="$enable_scp_stats" |
---|
7584 | case "$enableval" in |
---|
7585 | no) |
---|
7586 | echo "$ac_t""no" 1>&6 |
---|
7587 | ;; |
---|
7588 | *) |
---|
7589 | cat >> confdefs.h <<\EOF |
---|
7590 | #define SCP_STATISTICS_ENABLED 1 |
---|
7591 | EOF |
---|
7592 | |
---|
7593 | echo "$ac_t""yes" 1>&6 |
---|
7594 | esac |
---|
7595 | else |
---|
7596 | echo "$ac_t""yes" 1>&6 |
---|
7597 | cat >> confdefs.h <<\EOF |
---|
7598 | #define SCP_STATISTICS_ENABLED 1 |
---|
7599 | EOF |
---|
7600 | |
---|
7601 | |
---|
7602 | fi |
---|
7603 | |
---|
7604 | |
---|
7605 | echo $ac_n "checking whether to enable scp statistics for all files""... $ac_c" 1>&6 |
---|
7606 | echo "configure:7607: checking whether to enable scp statistics for all files" >&5 |
---|
7607 | # Check whether --enable-all-scp-stats or --disable-all-scp-stats was given. |
---|
7608 | if test "${enable_all_scp_stats+set}" = set; then |
---|
7609 | enableval="$enable_all_scp_stats" |
---|
7610 | case "$enableval" in |
---|
7611 | no) |
---|
7612 | echo "$ac_t""no" 1>&6 |
---|
7613 | ;; |
---|
7614 | *) |
---|
7615 | cat >> confdefs.h <<\EOF |
---|
7616 | #define SCP_ALL_STATISTICS_ENABLED 1 |
---|
7617 | EOF |
---|
7618 | |
---|
7619 | echo "$ac_t""yes" 1>&6 |
---|
7620 | esac |
---|
7621 | else |
---|
7622 | echo "$ac_t""yes" 1>&6 |
---|
7623 | cat >> confdefs.h <<\EOF |
---|
7624 | #define SCP_ALL_STATISTICS_ENABLED 1 |
---|
7625 | EOF |
---|
7626 | |
---|
7627 | |
---|
7628 | fi |
---|
7629 | |
---|
7630 | |
---|
7631 | # We include this here only to make it visible in --help; this is only used |
---|
7632 | # in the gmp subdirectory. |
---|
7633 | # Check whether --enable-asm or --disable-asm was given. |
---|
7634 | if test "${enable_asm+set}" = set; then |
---|
7635 | enableval="$enable_asm" |
---|
7636 | : |
---|
7637 | fi |
---|
7638 | |
---|
7639 | |
---|
7640 | PIDDIR="/var/run" |
---|
7641 | echo $ac_n "checking where to put sshd.pid""... $ac_c" 1>&6 |
---|
7642 | echo "configure:7643: checking where to put sshd.pid" >&5 |
---|
7643 | if test '!' -d $PIDDIR; then |
---|
7644 | PIDDIR="$ETCDIR" |
---|
7645 | fi |
---|
7646 | echo "$ac_t""$PIDDIR" 1>&6 |
---|
7647 | |
---|
7648 | subdirs="gmp-2.0.2-ssh-2" |
---|
7649 | |
---|
7650 | |
---|
7651 | if test "$program_transform_name" = s,x,x,; then |
---|
7652 | program_transform_name= |
---|
7653 | else |
---|
7654 | # Double any \ or $. echo might interpret backslashes. |
---|
7655 | cat <<\EOF_SED > conftestsed |
---|
7656 | s,\\,\\\\,g; s,\$,$$,g |
---|
7657 | EOF_SED |
---|
7658 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
7659 | rm -f conftestsed |
---|
7660 | fi |
---|
7661 | test "$program_prefix" != NONE && |
---|
7662 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
7663 | # Use a double $ so make ignores it. |
---|
7664 | test "$program_suffix" != NONE && |
---|
7665 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
7666 | |
---|
7667 | # sed with no file args requires a program. |
---|
7668 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
7669 | |
---|
7670 | |
---|
7671 | |
---|
7672 | |
---|
7673 | |
---|
7674 | |
---|
7675 | |
---|
7676 | |
---|
7677 | |
---|
7678 | |
---|
7679 | ATHENA_LIBS= |
---|
7680 | echo $ac_n "checking for res_send""... $ac_c" 1>&6 |
---|
7681 | echo "configure:7682: checking for res_send" >&5 |
---|
7682 | if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then |
---|
7683 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7684 | else |
---|
7685 | cat > conftest.$ac_ext <<EOF |
---|
7686 | #line 7687 "configure" |
---|
7687 | #include "confdefs.h" |
---|
7688 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7689 | which can conflict with char res_send(); below. */ |
---|
7690 | #include <assert.h> |
---|
7691 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7692 | /* We use char because int might match the return type of a gcc2 |
---|
7693 | builtin and then its argument prototype would still apply. */ |
---|
7694 | char res_send(); |
---|
7695 | |
---|
7696 | int main() { |
---|
7697 | |
---|
7698 | /* The GNU C library defines this for functions which it implements |
---|
7699 | to always fail with ENOSYS. Some functions are actually named |
---|
7700 | something starting with __ and the normal name is an alias. */ |
---|
7701 | #if defined (__stub_res_send) || defined (__stub___res_send) |
---|
7702 | choke me |
---|
7703 | #else |
---|
7704 | res_send(); |
---|
7705 | #endif |
---|
7706 | |
---|
7707 | ; return 0; } |
---|
7708 | EOF |
---|
7709 | if { (eval echo configure:7710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7710 | rm -rf conftest* |
---|
7711 | eval "ac_cv_func_res_send=yes" |
---|
7712 | else |
---|
7713 | echo "configure: failed program was:" >&5 |
---|
7714 | cat conftest.$ac_ext >&5 |
---|
7715 | rm -rf conftest* |
---|
7716 | eval "ac_cv_func_res_send=no" |
---|
7717 | fi |
---|
7718 | rm -f conftest* |
---|
7719 | fi |
---|
7720 | |
---|
7721 | if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then |
---|
7722 | echo "$ac_t""yes" 1>&6 |
---|
7723 | : |
---|
7724 | else |
---|
7725 | echo "$ac_t""no" 1>&6 |
---|
7726 | echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 |
---|
7727 | echo "configure:7728: checking for res_send in -lresolv" >&5 |
---|
7728 | ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` |
---|
7729 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7730 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7731 | else |
---|
7732 | ac_save_LIBS="$LIBS" |
---|
7733 | LIBS="-lresolv $LIBS" |
---|
7734 | cat > conftest.$ac_ext <<EOF |
---|
7735 | #line 7736 "configure" |
---|
7736 | #include "confdefs.h" |
---|
7737 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7738 | /* We use char because int might match the return type of a gcc2 |
---|
7739 | builtin and then its argument prototype would still apply. */ |
---|
7740 | char res_send(); |
---|
7741 | |
---|
7742 | int main() { |
---|
7743 | res_send() |
---|
7744 | ; return 0; } |
---|
7745 | EOF |
---|
7746 | if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7747 | rm -rf conftest* |
---|
7748 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7749 | else |
---|
7750 | echo "configure: failed program was:" >&5 |
---|
7751 | cat conftest.$ac_ext >&5 |
---|
7752 | rm -rf conftest* |
---|
7753 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7754 | fi |
---|
7755 | rm -f conftest* |
---|
7756 | LIBS="$ac_save_LIBS" |
---|
7757 | |
---|
7758 | fi |
---|
7759 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7760 | echo "$ac_t""yes" 1>&6 |
---|
7761 | ATHENA_LIBS=-lresolv |
---|
7762 | else |
---|
7763 | echo "$ac_t""no" 1>&6 |
---|
7764 | fi |
---|
7765 | |
---|
7766 | fi |
---|
7767 | |
---|
7768 | |
---|
7769 | # Check whether --with-afs or --without-afs was given. |
---|
7770 | if test "${with_afs+set}" = set; then |
---|
7771 | withval="$with_afs" |
---|
7772 | : |
---|
7773 | else |
---|
7774 | with_afs=no |
---|
7775 | fi |
---|
7776 | if test $with_afs != no; then |
---|
7777 | ATHENA_LIBS="$ATHENA_LIBS -L$with_afs/lib -L$with_afs/lib/afs -lprot -lauth -lrxkad -lubik $with_afs/lib/afs/util.a -laudit -lsys -lrx -llwp -lsys" |
---|
7778 | echo $ac_n "checking for sigvec""... $ac_c" 1>&6 |
---|
7779 | echo "configure:7780: checking for sigvec" >&5 |
---|
7780 | if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then |
---|
7781 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7782 | else |
---|
7783 | cat > conftest.$ac_ext <<EOF |
---|
7784 | #line 7785 "configure" |
---|
7785 | #include "confdefs.h" |
---|
7786 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7787 | which can conflict with char sigvec(); below. */ |
---|
7788 | #include <assert.h> |
---|
7789 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7790 | /* We use char because int might match the return type of a gcc2 |
---|
7791 | builtin and then its argument prototype would still apply. */ |
---|
7792 | char sigvec(); |
---|
7793 | |
---|
7794 | int main() { |
---|
7795 | |
---|
7796 | /* The GNU C library defines this for functions which it implements |
---|
7797 | to always fail with ENOSYS. Some functions are actually named |
---|
7798 | something starting with __ and the normal name is an alias. */ |
---|
7799 | #if defined (__stub_sigvec) || defined (__stub___sigvec) |
---|
7800 | choke me |
---|
7801 | #else |
---|
7802 | sigvec(); |
---|
7803 | #endif |
---|
7804 | |
---|
7805 | ; return 0; } |
---|
7806 | EOF |
---|
7807 | if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7808 | rm -rf conftest* |
---|
7809 | eval "ac_cv_func_sigvec=yes" |
---|
7810 | else |
---|
7811 | echo "configure: failed program was:" >&5 |
---|
7812 | cat conftest.$ac_ext >&5 |
---|
7813 | rm -rf conftest* |
---|
7814 | eval "ac_cv_func_sigvec=no" |
---|
7815 | fi |
---|
7816 | rm -f conftest* |
---|
7817 | fi |
---|
7818 | |
---|
7819 | if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then |
---|
7820 | echo "$ac_t""yes" 1>&6 |
---|
7821 | : |
---|
7822 | else |
---|
7823 | echo "$ac_t""no" 1>&6 |
---|
7824 | echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6 |
---|
7825 | echo "configure:7826: checking for sigvec in -lucb" >&5 |
---|
7826 | ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'` |
---|
7827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7828 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7829 | else |
---|
7830 | ac_save_LIBS="$LIBS" |
---|
7831 | LIBS="-lucb -L/usr/ucblib $LIBS" |
---|
7832 | cat > conftest.$ac_ext <<EOF |
---|
7833 | #line 7834 "configure" |
---|
7834 | #include "confdefs.h" |
---|
7835 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7836 | /* We use char because int might match the return type of a gcc2 |
---|
7837 | builtin and then its argument prototype would still apply. */ |
---|
7838 | char sigvec(); |
---|
7839 | |
---|
7840 | int main() { |
---|
7841 | sigvec() |
---|
7842 | ; return 0; } |
---|
7843 | EOF |
---|
7844 | if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7845 | rm -rf conftest* |
---|
7846 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7847 | else |
---|
7848 | echo "configure: failed program was:" >&5 |
---|
7849 | cat conftest.$ac_ext >&5 |
---|
7850 | rm -rf conftest* |
---|
7851 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7852 | fi |
---|
7853 | rm -f conftest* |
---|
7854 | LIBS="$ac_save_LIBS" |
---|
7855 | |
---|
7856 | fi |
---|
7857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7858 | echo "$ac_t""yes" 1>&6 |
---|
7859 | ATHENA_LIBS="$ATHENA_LIBS -L/usr/ucblib -R/usr/ucblib -lc -lucb" |
---|
7860 | else |
---|
7861 | echo "$ac_t""no" 1>&6 |
---|
7862 | : |
---|
7863 | fi |
---|
7864 | |
---|
7865 | fi |
---|
7866 | |
---|
7867 | echo $ac_n "checking for insque""... $ac_c" 1>&6 |
---|
7868 | echo "configure:7869: checking for insque" >&5 |
---|
7869 | if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then |
---|
7870 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7871 | else |
---|
7872 | cat > conftest.$ac_ext <<EOF |
---|
7873 | #line 7874 "configure" |
---|
7874 | #include "confdefs.h" |
---|
7875 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7876 | which can conflict with char insque(); below. */ |
---|
7877 | #include <assert.h> |
---|
7878 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7879 | /* We use char because int might match the return type of a gcc2 |
---|
7880 | builtin and then its argument prototype would still apply. */ |
---|
7881 | char insque(); |
---|
7882 | |
---|
7883 | int main() { |
---|
7884 | |
---|
7885 | /* The GNU C library defines this for functions which it implements |
---|
7886 | to always fail with ENOSYS. Some functions are actually named |
---|
7887 | something starting with __ and the normal name is an alias. */ |
---|
7888 | #if defined (__stub_insque) || defined (__stub___insque) |
---|
7889 | choke me |
---|
7890 | #else |
---|
7891 | insque(); |
---|
7892 | #endif |
---|
7893 | |
---|
7894 | ; return 0; } |
---|
7895 | EOF |
---|
7896 | if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7897 | rm -rf conftest* |
---|
7898 | eval "ac_cv_func_insque=yes" |
---|
7899 | else |
---|
7900 | echo "configure: failed program was:" >&5 |
---|
7901 | cat conftest.$ac_ext >&5 |
---|
7902 | rm -rf conftest* |
---|
7903 | eval "ac_cv_func_insque=no" |
---|
7904 | fi |
---|
7905 | rm -f conftest* |
---|
7906 | fi |
---|
7907 | |
---|
7908 | if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then |
---|
7909 | echo "$ac_t""yes" 1>&6 |
---|
7910 | : |
---|
7911 | else |
---|
7912 | echo "$ac_t""no" 1>&6 |
---|
7913 | echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6 |
---|
7914 | echo "configure:7915: checking for insque in -lcompat" >&5 |
---|
7915 | ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'` |
---|
7916 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
7917 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
7918 | else |
---|
7919 | ac_save_LIBS="$LIBS" |
---|
7920 | LIBS="-lcompat $LIBS" |
---|
7921 | cat > conftest.$ac_ext <<EOF |
---|
7922 | #line 7923 "configure" |
---|
7923 | #include "confdefs.h" |
---|
7924 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7925 | /* We use char because int might match the return type of a gcc2 |
---|
7926 | builtin and then its argument prototype would still apply. */ |
---|
7927 | char insque(); |
---|
7928 | |
---|
7929 | int main() { |
---|
7930 | insque() |
---|
7931 | ; return 0; } |
---|
7932 | EOF |
---|
7933 | if { (eval echo configure:7934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
7934 | rm -rf conftest* |
---|
7935 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
7936 | else |
---|
7937 | echo "configure: failed program was:" >&5 |
---|
7938 | cat conftest.$ac_ext >&5 |
---|
7939 | rm -rf conftest* |
---|
7940 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
7941 | fi |
---|
7942 | rm -f conftest* |
---|
7943 | LIBS="$ac_save_LIBS" |
---|
7944 | |
---|
7945 | fi |
---|
7946 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
7947 | echo "$ac_t""yes" 1>&6 |
---|
7948 | ATHENA_LIBS="$ATHENA_LIBS -lcompat" |
---|
7949 | else |
---|
7950 | echo "$ac_t""no" 1>&6 |
---|
7951 | fi |
---|
7952 | |
---|
7953 | fi |
---|
7954 | |
---|
7955 | fi |
---|
7956 | |
---|
7957 | |
---|
7958 | trap '' 1 2 15 |
---|
7959 | cat > confcache <<\EOF |
---|
7960 | # This file is a shell script that caches the results of configure |
---|
7961 | # tests run on this system so they can be shared between configure |
---|
7962 | # scripts and configure runs. It is not useful on other systems. |
---|
7963 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
7964 | # |
---|
7965 | # By default, configure uses ./config.cache as the cache file, |
---|
7966 | # creating it if it does not exist already. You can give configure |
---|
7967 | # the --cache-file=FILE option to use a different cache file; that is |
---|
7968 | # what configure does when it calls configure scripts in |
---|
7969 | # subdirectories, so they share the cache. |
---|
7970 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
7971 | # config.status only pays attention to the cache file if you give it the |
---|
7972 | # --recheck option to rerun configure. |
---|
7973 | # |
---|
7974 | EOF |
---|
7975 | # The following way of writing the cache mishandles newlines in values, |
---|
7976 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7977 | # So, don't put newlines in cache variables' values. |
---|
7978 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7979 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7980 | (set) 2>&1 | |
---|
7981 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7982 | *ac_space=\ *) |
---|
7983 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
7984 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
7985 | sed -n \ |
---|
7986 | -e "s/'/'\\\\''/g" \ |
---|
7987 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
7988 | ;; |
---|
7989 | *) |
---|
7990 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7991 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
7992 | ;; |
---|
7993 | esac >> confcache |
---|
7994 | if cmp -s $cache_file confcache; then |
---|
7995 | : |
---|
7996 | else |
---|
7997 | if test -w $cache_file; then |
---|
7998 | echo "updating cache $cache_file" |
---|
7999 | cat confcache > $cache_file |
---|
8000 | else |
---|
8001 | echo "not updating unwritable cache $cache_file" |
---|
8002 | fi |
---|
8003 | fi |
---|
8004 | rm -f confcache |
---|
8005 | |
---|
8006 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
8007 | |
---|
8008 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
8009 | # Let make expand exec_prefix. |
---|
8010 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
8011 | |
---|
8012 | # Any assignment to VPATH causes Sun make to only execute |
---|
8013 | # the first set of double-colon rules, so remove it if not needed. |
---|
8014 | # If there is a colon in the path, we need to keep it. |
---|
8015 | if test "x$srcdir" = x.; then |
---|
8016 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
8017 | fi |
---|
8018 | |
---|
8019 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
8020 | |
---|
8021 | DEFS=-DHAVE_CONFIG_H |
---|
8022 | |
---|
8023 | # Without the "./", some shells look in PATH for config.status. |
---|
8024 | : ${CONFIG_STATUS=./config.status} |
---|
8025 | |
---|
8026 | echo creating $CONFIG_STATUS |
---|
8027 | rm -f $CONFIG_STATUS |
---|
8028 | cat > $CONFIG_STATUS <<EOF |
---|
8029 | #! /bin/sh |
---|
8030 | # Generated automatically by configure. |
---|
8031 | # Run this file to recreate the current configuration. |
---|
8032 | # This directory was configured as follows, |
---|
8033 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
8034 | # |
---|
8035 | # $0 $ac_configure_args |
---|
8036 | # |
---|
8037 | # Compiler output produced by configure, useful for debugging |
---|
8038 | # configure, is in ./config.log if it exists. |
---|
8039 | |
---|
8040 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
8041 | for ac_option |
---|
8042 | do |
---|
8043 | case "\$ac_option" in |
---|
8044 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
8045 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
8046 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
8047 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
8048 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
8049 | exit 0 ;; |
---|
8050 | -help | --help | --hel | --he | --h) |
---|
8051 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
8052 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
8053 | esac |
---|
8054 | done |
---|
8055 | |
---|
8056 | ac_given_srcdir=$srcdir |
---|
8057 | ac_given_INSTALL="$INSTALL" |
---|
8058 | |
---|
8059 | trap 'rm -fr `echo "Makefile sshd.8 ssh.1 make-ssh-known-hosts.1 zlib-1.0.4/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
8060 | EOF |
---|
8061 | cat >> $CONFIG_STATUS <<EOF |
---|
8062 | |
---|
8063 | # Protect against being on the right side of a sed subst in config.status. |
---|
8064 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
8065 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
8066 | $ac_vpsub |
---|
8067 | $extrasub |
---|
8068 | s%@SHELL@%$SHELL%g |
---|
8069 | s%@CFLAGS@%$CFLAGS%g |
---|
8070 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
8071 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
8072 | s%@FFLAGS@%$FFLAGS%g |
---|
8073 | s%@DEFS@%$DEFS%g |
---|
8074 | s%@LDFLAGS@%$LDFLAGS%g |
---|
8075 | s%@LIBS@%$LIBS%g |
---|
8076 | s%@exec_prefix@%$exec_prefix%g |
---|
8077 | s%@prefix@%$prefix%g |
---|
8078 | s%@program_transform_name@%$program_transform_name%g |
---|
8079 | s%@bindir@%$bindir%g |
---|
8080 | s%@sbindir@%$sbindir%g |
---|
8081 | s%@libexecdir@%$libexecdir%g |
---|
8082 | s%@datadir@%$datadir%g |
---|
8083 | s%@sysconfdir@%$sysconfdir%g |
---|
8084 | s%@sharedstatedir@%$sharedstatedir%g |
---|
8085 | s%@localstatedir@%$localstatedir%g |
---|
8086 | s%@libdir@%$libdir%g |
---|
8087 | s%@includedir@%$includedir%g |
---|
8088 | s%@oldincludedir@%$oldincludedir%g |
---|
8089 | s%@infodir@%$infodir%g |
---|
8090 | s%@mandir@%$mandir%g |
---|
8091 | s%@host@%$host%g |
---|
8092 | s%@host_alias@%$host_alias%g |
---|
8093 | s%@host_cpu@%$host_cpu%g |
---|
8094 | s%@host_vendor@%$host_vendor%g |
---|
8095 | s%@host_os@%$host_os%g |
---|
8096 | s%@CC@%$CC%g |
---|
8097 | s%@CPP@%$CPP%g |
---|
8098 | s%@LIBOBJS@%$LIBOBJS%g |
---|
8099 | s%@LN_S@%$LN_S%g |
---|
8100 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
8101 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
8102 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
8103 | s%@AR@%$AR%g |
---|
8104 | s%@RANLIB@%$RANLIB%g |
---|
8105 | s%@MAKEDEP@%$MAKEDEP%g |
---|
8106 | s%@X_CFLAGS@%$X_CFLAGS%g |
---|
8107 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
---|
8108 | s%@X_LIBS@%$X_LIBS%g |
---|
8109 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
---|
8110 | s%@PASSWD_PATH@%$PASSWD_PATH%g |
---|
8111 | s%@XAUTH_PATH@%$XAUTH_PATH%g |
---|
8112 | s%@X_PROGRAMS@%$X_PROGRAMS%g |
---|
8113 | s%@PERL@%$PERL%g |
---|
8114 | s%@PATH_LOGIN@%$PATH_LOGIN%g |
---|
8115 | s%@RSH_PATH@%$RSH_PATH%g |
---|
8116 | s%@KERBEROS_ROOT@%$KERBEROS_ROOT%g |
---|
8117 | s%@KERBEROS_INCS@%$KERBEROS_INCS%g |
---|
8118 | s%@KERBEROS_LIBS@%$KERBEROS_LIBS%g |
---|
8119 | s%@KERBEROS_OBJS@%$KERBEROS_OBJS%g |
---|
8120 | s%@WRAPLIBS@%$WRAPLIBS%g |
---|
8121 | s%@subdirs@%$subdirs%g |
---|
8122 | s%@ETCDIR@%$ETCDIR%g |
---|
8123 | s%@PIDDIR@%$PIDDIR%g |
---|
8124 | s%@RSAREFDEP@%$RSAREFDEP%g |
---|
8125 | s%@CONFOBJS@%$CONFOBJS%g |
---|
8126 | s%@SSHCONFOBJS@%$SSHCONFOBJS%g |
---|
8127 | s%@SSHDCONFOBJS@%$SSHDCONFOBJS%g |
---|
8128 | s%@SSHINSTALLMODE@%$SSHINSTALLMODE%g |
---|
8129 | s%@ATHENA_LIBS@%$ATHENA_LIBS%g |
---|
8130 | |
---|
8131 | CEOF |
---|
8132 | EOF |
---|
8133 | |
---|
8134 | cat >> $CONFIG_STATUS <<\EOF |
---|
8135 | |
---|
8136 | # Split the substitutions into bite-sized pieces for seds with |
---|
8137 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8138 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
8139 | ac_file=1 # Number of current file. |
---|
8140 | ac_beg=1 # First line for current file. |
---|
8141 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
8142 | ac_more_lines=: |
---|
8143 | ac_sed_cmds="" |
---|
8144 | while $ac_more_lines; do |
---|
8145 | if test $ac_beg -gt 1; then |
---|
8146 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
8147 | else |
---|
8148 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
8149 | fi |
---|
8150 | if test ! -s conftest.s$ac_file; then |
---|
8151 | ac_more_lines=false |
---|
8152 | rm -f conftest.s$ac_file |
---|
8153 | else |
---|
8154 | if test -z "$ac_sed_cmds"; then |
---|
8155 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
8156 | else |
---|
8157 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
8158 | fi |
---|
8159 | ac_file=`expr $ac_file + 1` |
---|
8160 | ac_beg=$ac_end |
---|
8161 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
8162 | fi |
---|
8163 | done |
---|
8164 | if test -z "$ac_sed_cmds"; then |
---|
8165 | ac_sed_cmds=cat |
---|
8166 | fi |
---|
8167 | EOF |
---|
8168 | |
---|
8169 | cat >> $CONFIG_STATUS <<EOF |
---|
8170 | |
---|
8171 | CONFIG_FILES=\${CONFIG_FILES-"Makefile sshd.8 ssh.1 make-ssh-known-hosts.1 zlib-1.0.4/Makefile"} |
---|
8172 | EOF |
---|
8173 | cat >> $CONFIG_STATUS <<\EOF |
---|
8174 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
8175 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8176 | case "$ac_file" in |
---|
8177 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
8178 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
8179 | *) ac_file_in="${ac_file}.in" ;; |
---|
8180 | esac |
---|
8181 | |
---|
8182 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
8183 | |
---|
8184 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
8185 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
8186 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
8187 | # The file is in a subdirectory. |
---|
8188 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
8189 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
8190 | # A "../" for each directory in $ac_dir_suffix. |
---|
8191 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
8192 | else |
---|
8193 | ac_dir_suffix= ac_dots= |
---|
8194 | fi |
---|
8195 | |
---|
8196 | case "$ac_given_srcdir" in |
---|
8197 | .) srcdir=. |
---|
8198 | if test -z "$ac_dots"; then top_srcdir=. |
---|
8199 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
8200 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
8201 | *) # Relative path. |
---|
8202 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
8203 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
8204 | esac |
---|
8205 | |
---|
8206 | case "$ac_given_INSTALL" in |
---|
8207 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
8208 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
8209 | esac |
---|
8210 | |
---|
8211 | echo creating "$ac_file" |
---|
8212 | rm -f "$ac_file" |
---|
8213 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
8214 | case "$ac_file" in |
---|
8215 | *Makefile*) ac_comsub="1i\\ |
---|
8216 | # $configure_input" ;; |
---|
8217 | *) ac_comsub= ;; |
---|
8218 | esac |
---|
8219 | |
---|
8220 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
8221 | sed -e "$ac_comsub |
---|
8222 | s%@configure_input@%$configure_input%g |
---|
8223 | s%@srcdir@%$srcdir%g |
---|
8224 | s%@top_srcdir@%$top_srcdir%g |
---|
8225 | s%@INSTALL@%$INSTALL%g |
---|
8226 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
8227 | fi; done |
---|
8228 | rm -f conftest.s* |
---|
8229 | |
---|
8230 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8231 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8232 | # |
---|
8233 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8234 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8235 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
8236 | ac_dC='\3' |
---|
8237 | ac_dD='%g' |
---|
8238 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
8239 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8240 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
8241 | ac_uC=' ' |
---|
8242 | ac_uD='\4%g' |
---|
8243 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8244 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8245 | ac_eB='$%\1#\2define\3' |
---|
8246 | ac_eC=' ' |
---|
8247 | ac_eD='%g' |
---|
8248 | |
---|
8249 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
8250 | EOF |
---|
8251 | cat >> $CONFIG_STATUS <<EOF |
---|
8252 | CONFIG_HEADERS="config.h" |
---|
8253 | EOF |
---|
8254 | cat >> $CONFIG_STATUS <<\EOF |
---|
8255 | fi |
---|
8256 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
8257 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8258 | case "$ac_file" in |
---|
8259 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
8260 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
8261 | *) ac_file_in="${ac_file}.in" ;; |
---|
8262 | esac |
---|
8263 | |
---|
8264 | echo creating $ac_file |
---|
8265 | |
---|
8266 | rm -f conftest.frag conftest.in conftest.out |
---|
8267 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
8268 | cat $ac_file_inputs > conftest.in |
---|
8269 | |
---|
8270 | EOF |
---|
8271 | |
---|
8272 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
8273 | # the proper values into config.h.in to produce config.h. And first: |
---|
8274 | # Protect against being on the right side of a sed subst in config.status. |
---|
8275 | # Protect against being in an unquoted here document in config.status. |
---|
8276 | rm -f conftest.vals |
---|
8277 | cat > conftest.hdr <<\EOF |
---|
8278 | s/[\\&%]/\\&/g |
---|
8279 | s%[\\$`]%\\&%g |
---|
8280 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
8281 | s%ac_d%ac_u%gp |
---|
8282 | s%ac_u%ac_e%gp |
---|
8283 | EOF |
---|
8284 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
8285 | rm -f conftest.hdr |
---|
8286 | |
---|
8287 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8288 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8289 | # on some systems where configure will not decide to define it. |
---|
8290 | cat >> conftest.vals <<\EOF |
---|
8291 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
8292 | EOF |
---|
8293 | |
---|
8294 | # Break up conftest.vals because some shells have a limit on |
---|
8295 | # the size of here documents, and old seds have small limits too. |
---|
8296 | |
---|
8297 | rm -f conftest.tail |
---|
8298 | while : |
---|
8299 | do |
---|
8300 | ac_lines=`grep -c . conftest.vals` |
---|
8301 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
8302 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
8303 | # Write a limited-size here document to conftest.frag. |
---|
8304 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
8305 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
8306 | echo 'CEOF |
---|
8307 | sed -f conftest.frag conftest.in > conftest.out |
---|
8308 | rm -f conftest.in |
---|
8309 | mv conftest.out conftest.in |
---|
8310 | ' >> $CONFIG_STATUS |
---|
8311 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
8312 | rm -f conftest.vals |
---|
8313 | mv conftest.tail conftest.vals |
---|
8314 | done |
---|
8315 | rm -f conftest.vals |
---|
8316 | |
---|
8317 | cat >> $CONFIG_STATUS <<\EOF |
---|
8318 | rm -f conftest.frag conftest.h |
---|
8319 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
8320 | cat conftest.in >> conftest.h |
---|
8321 | rm -f conftest.in |
---|
8322 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
8323 | echo "$ac_file is unchanged" |
---|
8324 | rm -f conftest.h |
---|
8325 | else |
---|
8326 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
8327 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
8328 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
8329 | # The file is in a subdirectory. |
---|
8330 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
8331 | fi |
---|
8332 | rm -f $ac_file |
---|
8333 | mv conftest.h $ac_file |
---|
8334 | fi |
---|
8335 | fi; done |
---|
8336 | |
---|
8337 | EOF |
---|
8338 | cat >> $CONFIG_STATUS <<EOF |
---|
8339 | |
---|
8340 | EOF |
---|
8341 | cat >> $CONFIG_STATUS <<\EOF |
---|
8342 | |
---|
8343 | exit 0 |
---|
8344 | EOF |
---|
8345 | chmod +x $CONFIG_STATUS |
---|
8346 | rm -fr confdefs* $ac_clean_files |
---|
8347 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
8348 | |
---|
8349 | if test "$no_recursion" != yes; then |
---|
8350 | |
---|
8351 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
8352 | ac_sub_configure_args= |
---|
8353 | ac_prev= |
---|
8354 | for ac_arg in $ac_configure_args; do |
---|
8355 | if test -n "$ac_prev"; then |
---|
8356 | ac_prev= |
---|
8357 | continue |
---|
8358 | fi |
---|
8359 | case "$ac_arg" in |
---|
8360 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
8361 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
8362 | ac_prev=cache_file ;; |
---|
8363 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
8364 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
8365 | ;; |
---|
8366 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
8367 | ac_prev=srcdir ;; |
---|
8368 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
8369 | ;; |
---|
8370 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
8371 | esac |
---|
8372 | done |
---|
8373 | |
---|
8374 | for ac_config_dir in gmp-2.0.2-ssh-2; do |
---|
8375 | |
---|
8376 | # Do not complain, so a configure script can configure whichever |
---|
8377 | # parts of a large source tree are present. |
---|
8378 | if test ! -d $srcdir/$ac_config_dir; then |
---|
8379 | continue |
---|
8380 | fi |
---|
8381 | |
---|
8382 | echo configuring in $ac_config_dir |
---|
8383 | |
---|
8384 | case "$srcdir" in |
---|
8385 | .) ;; |
---|
8386 | *) |
---|
8387 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
8388 | else |
---|
8389 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
8390 | fi |
---|
8391 | ;; |
---|
8392 | esac |
---|
8393 | |
---|
8394 | ac_popdir=`pwd` |
---|
8395 | cd $ac_config_dir |
---|
8396 | |
---|
8397 | # A "../" for each directory in /$ac_config_dir. |
---|
8398 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
8399 | |
---|
8400 | case "$srcdir" in |
---|
8401 | .) # No --srcdir option. We are building in place. |
---|
8402 | ac_sub_srcdir=$srcdir ;; |
---|
8403 | /*) # Absolute path. |
---|
8404 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
8405 | *) # Relative path. |
---|
8406 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
8407 | esac |
---|
8408 | |
---|
8409 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
8410 | if test -f $ac_sub_srcdir/configure; then |
---|
8411 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
8412 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
8413 | ac_sub_configure=$ac_configure |
---|
8414 | else |
---|
8415 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
8416 | ac_sub_configure= |
---|
8417 | fi |
---|
8418 | |
---|
8419 | # The recursion is here. |
---|
8420 | if test -n "$ac_sub_configure"; then |
---|
8421 | |
---|
8422 | # Make the cache file name correct relative to the subdirectory. |
---|
8423 | case "$cache_file" in |
---|
8424 | /*) ac_sub_cache_file=$cache_file ;; |
---|
8425 | *) # Relative path. |
---|
8426 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
8427 | esac |
---|
8428 | case "$ac_given_INSTALL" in |
---|
8429 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
8430 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
8431 | esac |
---|
8432 | |
---|
8433 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
8434 | # The eval makes quoting arguments work. |
---|
8435 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
8436 | then : |
---|
8437 | else |
---|
8438 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
8439 | fi |
---|
8440 | fi |
---|
8441 | |
---|
8442 | cd $ac_popdir |
---|
8443 | done |
---|
8444 | fi |
---|
8445 | |
---|