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 |
|
15 |
# Initialize some variables set by options. |
16 |
# The variables have the same names as the options, with |
17 |
# dashes changed to underlines. |
18 |
build=NONE |
19 |
cache_file=./config.cache |
20 |
exec_prefix=NONE |
21 |
host=NONE |
22 |
no_create= |
23 |
nonopt=NONE |
24 |
no_recursion= |
25 |
prefix=NONE |
26 |
program_prefix=NONE |
27 |
program_suffix=NONE |
28 |
program_transform_name=s,x,x, |
29 |
silent= |
30 |
site= |
31 |
srcdir= |
32 |
target=NONE |
33 |
verbose= |
34 |
x_includes=NONE |
35 |
x_libraries=NONE |
36 |
bindir='${exec_prefix}/bin' |
37 |
sbindir='${exec_prefix}/sbin' |
38 |
libexecdir='${exec_prefix}/libexec' |
39 |
datadir='${prefix}/share' |
40 |
sysconfdir='${prefix}/etc' |
41 |
sharedstatedir='${prefix}/com' |
42 |
localstatedir='${prefix}/var' |
43 |
libdir='${exec_prefix}/lib' |
44 |
includedir='${prefix}/include' |
45 |
oldincludedir='/usr/include' |
46 |
infodir='${prefix}/info' |
47 |
mandir='${prefix}/man' |
48 |
|
49 |
# Initialize some other variables. |
50 |
subdirs= |
51 |
MFLAGS= MAKEFLAGS= |
52 |
SHELL=${CONFIG_SHELL-/bin/sh} |
53 |
# Maximum number of lines to put in a shell here document. |
54 |
ac_max_here_lines=12 |
55 |
|
56 |
ac_prev= |
57 |
for ac_option |
58 |
do |
59 |
|
60 |
# If the previous option needs an argument, assign it. |
61 |
if test -n "$ac_prev"; then |
62 |
eval "$ac_prev=\$ac_option" |
63 |
ac_prev= |
64 |
continue |
65 |
fi |
66 |
|
67 |
case "$ac_option" in |
68 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
69 |
*) ac_optarg= ;; |
70 |
esac |
71 |
|
72 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
73 |
|
74 |
case "$ac_option" in |
75 |
|
76 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
77 |
ac_prev=bindir ;; |
78 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
79 |
bindir="$ac_optarg" ;; |
80 |
|
81 |
-build | --build | --buil | --bui | --bu) |
82 |
ac_prev=build ;; |
83 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
84 |
build="$ac_optarg" ;; |
85 |
|
86 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
87 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
88 |
ac_prev=cache_file ;; |
89 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
90 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
91 |
cache_file="$ac_optarg" ;; |
92 |
|
93 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
94 |
ac_prev=datadir ;; |
95 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
96 |
| --da=*) |
97 |
datadir="$ac_optarg" ;; |
98 |
|
99 |
-disable-* | --disable-*) |
100 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
101 |
# Reject names that are not valid shell variable names. |
102 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
103 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
104 |
fi |
105 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
106 |
eval "enable_${ac_feature}=no" ;; |
107 |
|
108 |
-enable-* | --enable-*) |
109 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
110 |
# Reject names that are not valid shell variable names. |
111 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
112 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
113 |
fi |
114 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
115 |
case "$ac_option" in |
116 |
*=*) ;; |
117 |
*) ac_optarg=yes ;; |
118 |
esac |
119 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
120 |
|
121 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
122 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
123 |
| --exec | --exe | --ex) |
124 |
ac_prev=exec_prefix ;; |
125 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
126 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
127 |
| --exec=* | --exe=* | --ex=*) |
128 |
exec_prefix="$ac_optarg" ;; |
129 |
|
130 |
-gas | --gas | --ga | --g) |
131 |
# Obsolete; use --with-gas. |
132 |
with_gas=yes ;; |
133 |
|
134 |
-help | --help | --hel | --he) |
135 |
# Omit some internal or obsolete options to make the list less imposing. |
136 |
# This message is too long to be a string in the A/UX 3.1 sh. |
137 |
cat << EOF |
138 |
Usage: configure [options] [host] |
139 |
Options: [defaults in brackets after descriptions] |
140 |
Configuration: |
141 |
--cache-file=FILE cache test results in FILE |
142 |
--help print this message |
143 |
--no-create do not create output files |
144 |
--quiet, --silent do not print \`checking...' messages |
145 |
--version print the version of autoconf that created configure |
146 |
Directory and file names: |
147 |
--prefix=PREFIX install architecture-independent files in PREFIX |
148 |
[$ac_default_prefix] |
149 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
150 |
[same as prefix] |
151 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
152 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
153 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
154 |
--datadir=DIR read-only architecture-independent data in DIR |
155 |
[PREFIX/share] |
156 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
157 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
158 |
[PREFIX/com] |
159 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
160 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
161 |
--includedir=DIR C header files in DIR [PREFIX/include] |
162 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
163 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
164 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
165 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
166 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
167 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
168 |
--program-transform-name=PROGRAM |
169 |
run sed PROGRAM on installed program names |
170 |
EOF |
171 |
cat << EOF |
172 |
Host type: |
173 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
174 |
--host=HOST configure for HOST [guessed] |
175 |
--target=TARGET configure for TARGET [TARGET=HOST] |
176 |
Features and packages: |
177 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
178 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
179 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
180 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
181 |
--x-includes=DIR X include files are in DIR |
182 |
--x-libraries=DIR X library files are in DIR |
183 |
EOF |
184 |
if test -n "$ac_help"; then |
185 |
echo "--enable and --with options recognized:$ac_help" |
186 |
fi |
187 |
exit 0 ;; |
188 |
|
189 |
-host | --host | --hos | --ho) |
190 |
ac_prev=host ;; |
191 |
-host=* | --host=* | --hos=* | --ho=*) |
192 |
host="$ac_optarg" ;; |
193 |
|
194 |
-includedir | --includedir | --includedi | --included | --include \ |
195 |
| --includ | --inclu | --incl | --inc) |
196 |
ac_prev=includedir ;; |
197 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
198 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
199 |
includedir="$ac_optarg" ;; |
200 |
|
201 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
202 |
ac_prev=infodir ;; |
203 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
204 |
infodir="$ac_optarg" ;; |
205 |
|
206 |
-libdir | --libdir | --libdi | --libd) |
207 |
ac_prev=libdir ;; |
208 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
209 |
libdir="$ac_optarg" ;; |
210 |
|
211 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
212 |
| --libexe | --libex | --libe) |
213 |
ac_prev=libexecdir ;; |
214 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
215 |
| --libexe=* | --libex=* | --libe=*) |
216 |
libexecdir="$ac_optarg" ;; |
217 |
|
218 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
219 |
| --localstate | --localstat | --localsta | --localst \ |
220 |
| --locals | --local | --loca | --loc | --lo) |
221 |
ac_prev=localstatedir ;; |
222 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
223 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
224 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
225 |
localstatedir="$ac_optarg" ;; |
226 |
|
227 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
228 |
ac_prev=mandir ;; |
229 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
230 |
mandir="$ac_optarg" ;; |
231 |
|
232 |
-nfp | --nfp | --nf) |
233 |
# Obsolete; use --without-fp. |
234 |
with_fp=no ;; |
235 |
|
236 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
237 |
| --no-cr | --no-c) |
238 |
no_create=yes ;; |
239 |
|
240 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
241 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
242 |
no_recursion=yes ;; |
243 |
|
244 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
245 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
246 |
| --oldin | --oldi | --old | --ol | --o) |
247 |
ac_prev=oldincludedir ;; |
248 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
249 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
250 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
251 |
oldincludedir="$ac_optarg" ;; |
252 |
|
253 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
254 |
ac_prev=prefix ;; |
255 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
256 |
prefix="$ac_optarg" ;; |
257 |
|
258 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
259 |
| --program-pre | --program-pr | --program-p) |
260 |
ac_prev=program_prefix ;; |
261 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
262 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
263 |
program_prefix="$ac_optarg" ;; |
264 |
|
265 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
266 |
| --program-suf | --program-su | --program-s) |
267 |
ac_prev=program_suffix ;; |
268 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
269 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
270 |
program_suffix="$ac_optarg" ;; |
271 |
|
272 |
-program-transform-name | --program-transform-name \ |
273 |
| --program-transform-nam | --program-transform-na \ |
274 |
| --program-transform-n | --program-transform- \ |
275 |
| --program-transform | --program-transfor \ |
276 |
| --program-transfo | --program-transf \ |
277 |
| --program-trans | --program-tran \ |
278 |
| --progr-tra | --program-tr | --program-t) |
279 |
ac_prev=program_transform_name ;; |
280 |
-program-transform-name=* | --program-transform-name=* \ |
281 |
| --program-transform-nam=* | --program-transform-na=* \ |
282 |
| --program-transform-n=* | --program-transform-=* \ |
283 |
| --program-transform=* | --program-transfor=* \ |
284 |
| --program-transfo=* | --program-transf=* \ |
285 |
| --program-trans=* | --program-tran=* \ |
286 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
287 |
program_transform_name="$ac_optarg" ;; |
288 |
|
289 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
290 |
| -silent | --silent | --silen | --sile | --sil) |
291 |
silent=yes ;; |
292 |
|
293 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
294 |
ac_prev=sbindir ;; |
295 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
296 |
| --sbi=* | --sb=*) |
297 |
sbindir="$ac_optarg" ;; |
298 |
|
299 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
300 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
301 |
| --sharedst | --shareds | --shared | --share | --shar \ |
302 |
| --sha | --sh) |
303 |
ac_prev=sharedstatedir ;; |
304 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
305 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
306 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
307 |
| --sha=* | --sh=*) |
308 |
sharedstatedir="$ac_optarg" ;; |
309 |
|
310 |
-site | --site | --sit) |
311 |
ac_prev=site ;; |
312 |
-site=* | --site=* | --sit=*) |
313 |
site="$ac_optarg" ;; |
314 |
|
315 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
316 |
ac_prev=srcdir ;; |
317 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
318 |
srcdir="$ac_optarg" ;; |
319 |
|
320 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
321 |
| --syscon | --sysco | --sysc | --sys | --sy) |
322 |
ac_prev=sysconfdir ;; |
323 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
324 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
325 |
sysconfdir="$ac_optarg" ;; |
326 |
|
327 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
328 |
ac_prev=target ;; |
329 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
330 |
target="$ac_optarg" ;; |
331 |
|
332 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
333 |
verbose=yes ;; |
334 |
|
335 |
-version | --version | --versio | --versi | --vers) |
336 |
echo "configure generated by autoconf version 2.13" |
337 |
exit 0 ;; |
338 |
|
339 |
-with-* | --with-*) |
340 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
341 |
# Reject names that are not valid shell variable names. |
342 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
343 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
344 |
fi |
345 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
346 |
case "$ac_option" in |
347 |
*=*) ;; |
348 |
*) ac_optarg=yes ;; |
349 |
esac |
350 |
eval "with_${ac_package}='$ac_optarg'" ;; |
351 |
|
352 |
-without-* | --without-*) |
353 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
354 |
# Reject names that are not valid shell variable names. |
355 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
356 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
357 |
fi |
358 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
359 |
eval "with_${ac_package}=no" ;; |
360 |
|
361 |
--x) |
362 |
# Obsolete; use --with-x. |
363 |
with_x=yes ;; |
364 |
|
365 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
366 |
| --x-incl | --x-inc | --x-in | --x-i) |
367 |
ac_prev=x_includes ;; |
368 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
369 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
370 |
x_includes="$ac_optarg" ;; |
371 |
|
372 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
373 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
374 |
ac_prev=x_libraries ;; |
375 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
376 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
377 |
x_libraries="$ac_optarg" ;; |
378 |
|
379 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
380 |
;; |
381 |
|
382 |
*) |
383 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
384 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
385 |
fi |
386 |
if test "x$nonopt" != xNONE; then |
387 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
388 |
fi |
389 |
nonopt="$ac_option" |
390 |
;; |
391 |
|
392 |
esac |
393 |
done |
394 |
|
395 |
if test -n "$ac_prev"; then |
396 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
397 |
fi |
398 |
|
399 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
400 |
|
401 |
# File descriptor usage: |
402 |
# 0 standard input |
403 |
# 1 file creation |
404 |
# 2 errors and warnings |
405 |
# 3 some systems may open it to /dev/tty |
406 |
# 4 used on the Kubota Titan |
407 |
# 6 checking for... messages and results |
408 |
# 5 compiler messages saved in config.log |
409 |
if test "$silent" = yes; then |
410 |
exec 6>/dev/null |
411 |
else |
412 |
exec 6>&1 |
413 |
fi |
414 |
exec 5>./config.log |
415 |
|
416 |
echo "\ |
417 |
This file contains any messages produced by compilers while |
418 |
running configure, to aid debugging if configure makes a mistake. |
419 |
" 1>&5 |
420 |
|
421 |
# Strip out --no-create and --no-recursion so they do not pile up. |
422 |
# Also quote any args containing shell metacharacters. |
423 |
ac_configure_args= |
424 |
for ac_arg |
425 |
do |
426 |
case "$ac_arg" in |
427 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
428 |
| --no-cr | --no-c) ;; |
429 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
430 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
431 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
432 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
433 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
434 |
esac |
435 |
done |
436 |
|
437 |
# NLS nuisances. |
438 |
# Only set these to C if already set. These must not be set unconditionally |
439 |
# because not all systems understand e.g. LANG=C (notably SCO). |
440 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
441 |
# Non-C LC_CTYPE values break the ctype check. |
442 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
443 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
444 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
445 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
446 |
|
447 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
448 |
rm -rf conftest* confdefs.h |
449 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
450 |
echo > confdefs.h |
451 |
|
452 |
# A filename unique to this package, relative to the directory that |
453 |
# configure is in, which we can look for to find out if srcdir is correct. |
454 |
ac_unique_file=thttpd.c |
455 |
|
456 |
# Find the source files, if location was not specified. |
457 |
if test -z "$srcdir"; then |
458 |
ac_srcdir_defaulted=yes |
459 |
# Try the directory containing this script, then its parent. |
460 |
ac_prog=$0 |
461 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
462 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
463 |
srcdir=$ac_confdir |
464 |
if test ! -r $srcdir/$ac_unique_file; then |
465 |
srcdir=.. |
466 |
fi |
467 |
else |
468 |
ac_srcdir_defaulted=no |
469 |
fi |
470 |
if test ! -r $srcdir/$ac_unique_file; then |
471 |
if test "$ac_srcdir_defaulted" = yes; then |
472 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
473 |
else |
474 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
475 |
fi |
476 |
fi |
477 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
478 |
|
479 |
# Prefer explicitly selected file to automatically selected ones. |
480 |
if test -z "$CONFIG_SITE"; then |
481 |
if test "x$prefix" != xNONE; then |
482 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
483 |
else |
484 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
485 |
fi |
486 |
fi |
487 |
for ac_site_file in $CONFIG_SITE; do |
488 |
if test -r "$ac_site_file"; then |
489 |
echo "loading site script $ac_site_file" |
490 |
. "$ac_site_file" |
491 |
fi |
492 |
done |
493 |
|
494 |
if test -r "$cache_file"; then |
495 |
echo "loading cache $cache_file" |
496 |
. $cache_file |
497 |
else |
498 |
echo "creating cache $cache_file" |
499 |
> $cache_file |
500 |
fi |
501 |
|
502 |
ac_ext=c |
503 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
504 |
ac_cpp='$CPP $CPPFLAGS' |
505 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
506 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
507 |
cross_compiling=$ac_cv_prog_cc_cross |
508 |
|
509 |
ac_exeext= |
510 |
ac_objext=o |
511 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
512 |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
513 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
514 |
ac_n= ac_c=' |
515 |
' ac_t=' ' |
516 |
else |
517 |
ac_n=-n ac_c= ac_t= |
518 |
fi |
519 |
else |
520 |
ac_n= ac_c='\c' ac_t= |
521 |
fi |
522 |
|
523 |
|
524 |
|
525 |
ac_aux_dir= |
526 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
527 |
if test -f $ac_dir/install-sh; then |
528 |
ac_aux_dir=$ac_dir |
529 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
530 |
break |
531 |
elif test -f $ac_dir/install.sh; then |
532 |
ac_aux_dir=$ac_dir |
533 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
534 |
break |
535 |
fi |
536 |
done |
537 |
if test -z "$ac_aux_dir"; then |
538 |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
539 |
fi |
540 |
ac_config_guess=$ac_aux_dir/config.guess |
541 |
ac_config_sub=$ac_aux_dir/config.sub |
542 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
543 |
|
544 |
|
545 |
# Do some error checking and defaulting for the host and target type. |
546 |
# The inputs are: |
547 |
# configure --host=HOST --target=TARGET --build=BUILD NONOPT |
548 |
# |
549 |
# The rules are: |
550 |
# 1. You are not allowed to specify --host, --target, and nonopt at the |
551 |
# same time. |
552 |
# 2. Host defaults to nonopt. |
553 |
# 3. If nonopt is not specified, then host defaults to the current host, |
554 |
# as determined by config.guess. |
555 |
# 4. Target and build default to nonopt. |
556 |
# 5. If nonopt is not specified, then target and build default to host. |
557 |
|
558 |
# The aliases save the names the user supplied, while $host etc. |
559 |
# will get canonicalized. |
560 |
case $host---$target---$nonopt in |
561 |
NONE---*---* | *---NONE---* | *---*---NONE) ;; |
562 |
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
563 |
esac |
564 |
|
565 |
|
566 |
# Make sure we can run config.sub. |
567 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
568 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
569 |
fi |
570 |
|
571 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
572 |
echo "configure:573: checking host system type" >&5 |
573 |
|
574 |
host_alias=$host |
575 |
case "$host_alias" in |
576 |
NONE) |
577 |
case $nonopt in |
578 |
NONE) |
579 |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
580 |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
581 |
fi ;; |
582 |
*) host_alias=$nonopt ;; |
583 |
esac ;; |
584 |
esac |
585 |
|
586 |
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
587 |
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
588 |
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
589 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
590 |
echo "$ac_t""$host" 1>&6 |
591 |
|
592 |
echo $ac_n "checking target system type""... $ac_c" 1>&6 |
593 |
echo "configure:594: checking target system type" >&5 |
594 |
|
595 |
target_alias=$target |
596 |
case "$target_alias" in |
597 |
NONE) |
598 |
case $nonopt in |
599 |
NONE) target_alias=$host_alias ;; |
600 |
*) target_alias=$nonopt ;; |
601 |
esac ;; |
602 |
esac |
603 |
|
604 |
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
605 |
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
606 |
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
607 |
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
608 |
echo "$ac_t""$target" 1>&6 |
609 |
|
610 |
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
611 |
echo "configure:612: checking build system type" >&5 |
612 |
|
613 |
build_alias=$build |
614 |
case "$build_alias" in |
615 |
NONE) |
616 |
case $nonopt in |
617 |
NONE) build_alias=$host_alias ;; |
618 |
*) build_alias=$nonopt ;; |
619 |
esac ;; |
620 |
esac |
621 |
|
622 |
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
623 |
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
624 |
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
625 |
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
626 |
echo "$ac_t""$build" 1>&6 |
627 |
|
628 |
test "$host_alias" != "$target_alias" && |
629 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
630 |
NONENONEs,x,x, && |
631 |
program_prefix=${target_alias}- |
632 |
|
633 |
|
634 |
# Extract the first word of "gcc", so it can be a program name with args. |
635 |
set dummy gcc; ac_word=$2 |
636 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
637 |
echo "configure:638: checking for $ac_word" >&5 |
638 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
639 |
echo $ac_n "(cached) $ac_c" 1>&6 |
640 |
else |
641 |
if test -n "$CC"; then |
642 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
643 |
else |
644 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
645 |
ac_dummy="$PATH" |
646 |
for ac_dir in $ac_dummy; do |
647 |
test -z "$ac_dir" && ac_dir=. |
648 |
if test -f $ac_dir/$ac_word; then |
649 |
ac_cv_prog_CC="gcc" |
650 |
break |
651 |
fi |
652 |
done |
653 |
IFS="$ac_save_ifs" |
654 |
fi |
655 |
fi |
656 |
CC="$ac_cv_prog_CC" |
657 |
if test -n "$CC"; then |
658 |
echo "$ac_t""$CC" 1>&6 |
659 |
else |
660 |
echo "$ac_t""no" 1>&6 |
661 |
fi |
662 |
|
663 |
if test -z "$CC"; then |
664 |
# Extract the first word of "cc", so it can be a program name with args. |
665 |
set dummy cc; ac_word=$2 |
666 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
667 |
echo "configure:668: checking for $ac_word" >&5 |
668 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
669 |
echo $ac_n "(cached) $ac_c" 1>&6 |
670 |
else |
671 |
if test -n "$CC"; then |
672 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
673 |
else |
674 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
675 |
ac_prog_rejected=no |
676 |
ac_dummy="$PATH" |
677 |
for ac_dir in $ac_dummy; do |
678 |
test -z "$ac_dir" && ac_dir=. |
679 |
if test -f $ac_dir/$ac_word; then |
680 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
681 |
ac_prog_rejected=yes |
682 |
continue |
683 |
fi |
684 |
ac_cv_prog_CC="cc" |
685 |
break |
686 |
fi |
687 |
done |
688 |
IFS="$ac_save_ifs" |
689 |
if test $ac_prog_rejected = yes; then |
690 |
# We found a bogon in the path, so make sure we never use it. |
691 |
set dummy $ac_cv_prog_CC |
692 |
shift |
693 |
if test $# -gt 0; then |
694 |
# We chose a different compiler from the bogus one. |
695 |
# However, it has the same basename, so the bogon will be chosen |
696 |
# first if we set CC to just the basename; use the full file name. |
697 |
shift |
698 |
set dummy "$ac_dir/$ac_word" "$@" |
699 |
shift |
700 |
ac_cv_prog_CC="$@" |
701 |
fi |
702 |
fi |
703 |
fi |
704 |
fi |
705 |
CC="$ac_cv_prog_CC" |
706 |
if test -n "$CC"; then |
707 |
echo "$ac_t""$CC" 1>&6 |
708 |
else |
709 |
echo "$ac_t""no" 1>&6 |
710 |
fi |
711 |
|
712 |
if test -z "$CC"; then |
713 |
case "`uname -s`" in |
714 |
*win32* | *WIN32*) |
715 |
# Extract the first word of "cl", so it can be a program name with args. |
716 |
set dummy cl; ac_word=$2 |
717 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
718 |
echo "configure:719: checking for $ac_word" >&5 |
719 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
720 |
echo $ac_n "(cached) $ac_c" 1>&6 |
721 |
else |
722 |
if test -n "$CC"; then |
723 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
724 |
else |
725 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
726 |
ac_dummy="$PATH" |
727 |
for ac_dir in $ac_dummy; do |
728 |
test -z "$ac_dir" && ac_dir=. |
729 |
if test -f $ac_dir/$ac_word; then |
730 |
ac_cv_prog_CC="cl" |
731 |
break |
732 |
fi |
733 |
done |
734 |
IFS="$ac_save_ifs" |
735 |
fi |
736 |
fi |
737 |
CC="$ac_cv_prog_CC" |
738 |
if test -n "$CC"; then |
739 |
echo "$ac_t""$CC" 1>&6 |
740 |
else |
741 |
echo "$ac_t""no" 1>&6 |
742 |
fi |
743 |
;; |
744 |
esac |
745 |
fi |
746 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
747 |
fi |
748 |
|
749 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
750 |
echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
751 |
|
752 |
ac_ext=c |
753 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
754 |
ac_cpp='$CPP $CPPFLAGS' |
755 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
756 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
757 |
cross_compiling=$ac_cv_prog_cc_cross |
758 |
|
759 |
cat > conftest.$ac_ext << EOF |
760 |
|
761 |
#line 762 "configure" |
762 |
#include "confdefs.h" |
763 |
|
764 |
main(){return(0);} |
765 |
EOF |
766 |
if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
767 |
ac_cv_prog_cc_works=yes |
768 |
# If we can't run a trivial program, we are probably using a cross compiler. |
769 |
if (./conftest; exit) 2>/dev/null; then |
770 |
ac_cv_prog_cc_cross=no |
771 |
else |
772 |
ac_cv_prog_cc_cross=yes |
773 |
fi |
774 |
else |
775 |
echo "configure: failed program was:" >&5 |
776 |
cat conftest.$ac_ext >&5 |
777 |
ac_cv_prog_cc_works=no |
778 |
fi |
779 |
rm -fr conftest* |
780 |
ac_ext=c |
781 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
782 |
ac_cpp='$CPP $CPPFLAGS' |
783 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
784 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
785 |
cross_compiling=$ac_cv_prog_cc_cross |
786 |
|
787 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
788 |
if test $ac_cv_prog_cc_works = no; then |
789 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
790 |
fi |
791 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
792 |
echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
793 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
794 |
cross_compiling=$ac_cv_prog_cc_cross |
795 |
|
796 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
797 |
echo "configure:798: checking whether we are using GNU C" >&5 |
798 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
799 |
echo $ac_n "(cached) $ac_c" 1>&6 |
800 |
else |
801 |
cat > conftest.c <<EOF |
802 |
#ifdef __GNUC__ |
803 |
yes; |
804 |
#endif |
805 |
EOF |
806 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
807 |
ac_cv_prog_gcc=yes |
808 |
else |
809 |
ac_cv_prog_gcc=no |
810 |
fi |
811 |
fi |
812 |
|
813 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
814 |
|
815 |
if test $ac_cv_prog_gcc = yes; then |
816 |
GCC=yes |
817 |
else |
818 |
GCC= |
819 |
fi |
820 |
|
821 |
ac_test_CFLAGS="${CFLAGS+set}" |
822 |
ac_save_CFLAGS="$CFLAGS" |
823 |
CFLAGS= |
824 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
825 |
echo "configure:826: checking whether ${CC-cc} accepts -g" >&5 |
826 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
827 |
echo $ac_n "(cached) $ac_c" 1>&6 |
828 |
else |
829 |
echo 'void f(){}' > conftest.c |
830 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
831 |
ac_cv_prog_cc_g=yes |
832 |
else |
833 |
ac_cv_prog_cc_g=no |
834 |
fi |
835 |
rm -f conftest* |
836 |
|
837 |
fi |
838 |
|
839 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
840 |
if test "$ac_test_CFLAGS" = set; then |
841 |
CFLAGS="$ac_save_CFLAGS" |
842 |
elif test $ac_cv_prog_cc_g = yes; then |
843 |
if test "$GCC" = yes; then |
844 |
CFLAGS="-g -O2" |
845 |
else |
846 |
CFLAGS="-g" |
847 |
fi |
848 |
else |
849 |
if test "$GCC" = yes; then |
850 |
CFLAGS="-O2" |
851 |
else |
852 |
CFLAGS= |
853 |
fi |
854 |
fi |
855 |
|
856 |
|
857 |
V_CCOPT="-O" |
858 |
if test "$GCC" = yes ; then |
859 |
echo $ac_n "checking gcc version""... $ac_c" 1>&6 |
860 |
echo "configure:861: checking gcc version" >&5 |
861 |
if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then |
862 |
echo $ac_n "(cached) $ac_c" 1>&6 |
863 |
else |
864 |
ac_cv_lbl_gcc_vers=`$CC --version 2>&1 | \ |
865 |
sed -e 's/\..*//'` |
866 |
fi |
867 |
|
868 |
echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6 |
869 |
if test "$ac_cv_lbl_gcc_vers" -gt 1 ; then |
870 |
V_CCOPT="-O2" |
871 |
fi |
872 |
fi |
873 |
if test -f .devel ; then |
874 |
V_CCOPT="-g $V_CCOPT -Wall -Wmissing-prototypes -Wstrict-prototypes" |
875 |
fi |
876 |
|
877 |
echo $ac_n "checking how to link static binaries""... $ac_c" 1>&6 |
878 |
echo "configure:879: checking how to link static binaries" >&5 |
879 |
if eval "test \"`echo '$''{'ac_cv_lbl_static_flag'+set}'`\" = set"; then |
880 |
echo $ac_n "(cached) $ac_c" 1>&6 |
881 |
else |
882 |
ac_cv_lbl_static_flag=unknown |
883 |
echo 'main() {}' > conftest.c |
884 |
if test "$GCC" != yes ; then |
885 |
trial_flag="-Bstatic" |
886 |
test=`$CC $trial_flag -o conftest conftest.c 2>&1` |
887 |
if test -z "$test" ; then |
888 |
ac_cv_lbl_static_flag="$trial_flag" |
889 |
fi |
890 |
rm -f conftest |
891 |
fi |
892 |
if test "$ac_cv_lbl_static_flag" = unknown ; then |
893 |
trial_flag="-static" |
894 |
test=`$CC $trial_flag -o conftest conftest.c 2>&1` |
895 |
if test -z "$test" ; then |
896 |
ac_cv_lbl_static_flag="$trial_flag" |
897 |
fi |
898 |
rm -f conftest |
899 |
fi |
900 |
rm conftest.c |
901 |
fi |
902 |
|
903 |
echo "$ac_t""$ac_cv_lbl_static_flag" 1>&6 |
904 |
if test "$ac_cv_lbl_static_flag" != unknown ; then |
905 |
V_STATICFLAG="$ac_cv_lbl_static_flag" |
906 |
fi |
907 |
|
908 |
echo $ac_n "checking for __progname""... $ac_c" 1>&6 |
909 |
echo "configure:910: checking for __progname" >&5 |
910 |
if eval "test \"`echo '$''{'ac_cv_extern__progname'+set}'`\" = set"; then |
911 |
echo $ac_n "(cached) $ac_c" 1>&6 |
912 |
else |
913 |
cat > conftest.$ac_ext <<EOF |
914 |
#line 915 "configure" |
915 |
#include "confdefs.h" |
916 |
|
917 |
int main() { |
918 |
extern char *__progname; |
919 |
puts(__progname) |
920 |
; return 0; } |
921 |
EOF |
922 |
if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
923 |
rm -rf conftest* |
924 |
ac_cv_extern__progname=yes |
925 |
else |
926 |
echo "configure: failed program was:" >&5 |
927 |
cat conftest.$ac_ext >&5 |
928 |
rm -rf conftest* |
929 |
ac_cv_extern__progname=no |
930 |
fi |
931 |
rm -f conftest* |
932 |
fi |
933 |
|
934 |
if test $ac_cv_extern__progname = yes ; then |
935 |
cat >> confdefs.h <<\EOF |
936 |
#define HAVE__PROGNAME 1 |
937 |
EOF |
938 |
|
939 |
echo "$ac_t""yes" 1>&6 |
940 |
else |
941 |
echo "$ac_t""no" 1>&6 |
942 |
fi |
943 |
|
944 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
945 |
echo "configure:946: checking how to run the C preprocessor" >&5 |
946 |
# On Suns, sometimes $CPP names a directory. |
947 |
if test -n "$CPP" && test -d "$CPP"; then |
948 |
CPP= |
949 |
fi |
950 |
if test -z "$CPP"; then |
951 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
952 |
echo $ac_n "(cached) $ac_c" 1>&6 |
953 |
else |
954 |
# This must be in double quotes, not single quotes, because CPP may get |
955 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
956 |
CPP="${CC-cc} -E" |
957 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
958 |
# not just through cpp. |
959 |
cat > conftest.$ac_ext <<EOF |
960 |
#line 961 "configure" |
961 |
#include "confdefs.h" |
962 |
#include <assert.h> |
963 |
Syntax Error |
964 |
EOF |
965 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
966 |
{ (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
967 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
968 |
if test -z "$ac_err"; then |
969 |
: |
970 |
else |
971 |
echo "$ac_err" >&5 |
972 |
echo "configure: failed program was:" >&5 |
973 |
cat conftest.$ac_ext >&5 |
974 |
rm -rf conftest* |
975 |
CPP="${CC-cc} -E -traditional-cpp" |
976 |
cat > conftest.$ac_ext <<EOF |
977 |
#line 978 "configure" |
978 |
#include "confdefs.h" |
979 |
#include <assert.h> |
980 |
Syntax Error |
981 |
EOF |
982 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
983 |
{ (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
984 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
985 |
if test -z "$ac_err"; then |
986 |
: |
987 |
else |
988 |
echo "$ac_err" >&5 |
989 |
echo "configure: failed program was:" >&5 |
990 |
cat conftest.$ac_ext >&5 |
991 |
rm -rf conftest* |
992 |
CPP="${CC-cc} -nologo -E" |
993 |
cat > conftest.$ac_ext <<EOF |
994 |
#line 995 "configure" |
995 |
#include "confdefs.h" |
996 |
#include <assert.h> |
997 |
Syntax Error |
998 |
EOF |
999 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1000 |
{ (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1001 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1002 |
if test -z "$ac_err"; then |
1003 |
: |
1004 |
else |
1005 |
echo "$ac_err" >&5 |
1006 |
echo "configure: failed program was:" >&5 |
1007 |
cat conftest.$ac_ext >&5 |
1008 |
rm -rf conftest* |
1009 |
CPP=/lib/cpp |
1010 |
fi |
1011 |
rm -f conftest* |
1012 |
fi |
1013 |
rm -f conftest* |
1014 |
fi |
1015 |
rm -f conftest* |
1016 |
ac_cv_prog_CPP="$CPP" |
1017 |
fi |
1018 |
CPP="$ac_cv_prog_CPP" |
1019 |
else |
1020 |
ac_cv_prog_CPP="$CPP" |
1021 |
fi |
1022 |
echo "$ac_t""$CPP" 1>&6 |
1023 |
|
1024 |
for ac_hdr in fcntl.h grp.h memory.h paths.h poll.h sys/poll.h sys/event.h osreldate.h |
1025 |
do |
1026 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1027 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1028 |
echo "configure:1029: checking for $ac_hdr" >&5 |
1029 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1030 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1031 |
else |
1032 |
cat > conftest.$ac_ext <<EOF |
1033 |
#line 1034 "configure" |
1034 |
#include "confdefs.h" |
1035 |
#include <$ac_hdr> |
1036 |
EOF |
1037 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1038 |
{ (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1039 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1040 |
if test -z "$ac_err"; then |
1041 |
rm -rf conftest* |
1042 |
eval "ac_cv_header_$ac_safe=yes" |
1043 |
else |
1044 |
echo "$ac_err" >&5 |
1045 |
echo "configure: failed program was:" >&5 |
1046 |
cat conftest.$ac_ext >&5 |
1047 |
rm -rf conftest* |
1048 |
eval "ac_cv_header_$ac_safe=no" |
1049 |
fi |
1050 |
rm -f conftest* |
1051 |
fi |
1052 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1053 |
echo "$ac_t""yes" 1>&6 |
1054 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1055 |
cat >> confdefs.h <<EOF |
1056 |
#define $ac_tr_hdr 1 |
1057 |
EOF |
1058 |
|
1059 |
else |
1060 |
echo "$ac_t""no" 1>&6 |
1061 |
fi |
1062 |
done |
1063 |
|
1064 |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
1065 |
echo "configure:1066: checking whether time.h and sys/time.h may both be included" >&5 |
1066 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1067 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1068 |
else |
1069 |
cat > conftest.$ac_ext <<EOF |
1070 |
#line 1071 "configure" |
1071 |
#include "confdefs.h" |
1072 |
#include <sys/types.h> |
1073 |
#include <sys/time.h> |
1074 |
#include <time.h> |
1075 |
int main() { |
1076 |
struct tm *tp; |
1077 |
; return 0; } |
1078 |
EOF |
1079 |
if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1080 |
rm -rf conftest* |
1081 |
ac_cv_header_time=yes |
1082 |
else |
1083 |
echo "configure: failed program was:" >&5 |
1084 |
cat conftest.$ac_ext >&5 |
1085 |
rm -rf conftest* |
1086 |
ac_cv_header_time=no |
1087 |
fi |
1088 |
rm -f conftest* |
1089 |
fi |
1090 |
|
1091 |
echo "$ac_t""$ac_cv_header_time" 1>&6 |
1092 |
if test $ac_cv_header_time = yes; then |
1093 |
cat >> confdefs.h <<\EOF |
1094 |
#define TIME_WITH_SYS_TIME 1 |
1095 |
EOF |
1096 |
|
1097 |
fi |
1098 |
|
1099 |
ac_header_dirent=no |
1100 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
1101 |
do |
1102 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1103 |
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
1104 |
echo "configure:1105: checking for $ac_hdr that defines DIR" >&5 |
1105 |
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
1106 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1107 |
else |
1108 |
cat > conftest.$ac_ext <<EOF |
1109 |
#line 1110 "configure" |
1110 |
#include "confdefs.h" |
1111 |
#include <sys/types.h> |
1112 |
#include <$ac_hdr> |
1113 |
int main() { |
1114 |
DIR *dirp = 0; |
1115 |
; return 0; } |
1116 |
EOF |
1117 |
if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1118 |
rm -rf conftest* |
1119 |
eval "ac_cv_header_dirent_$ac_safe=yes" |
1120 |
else |
1121 |
echo "configure: failed program was:" >&5 |
1122 |
cat conftest.$ac_ext >&5 |
1123 |
rm -rf conftest* |
1124 |
eval "ac_cv_header_dirent_$ac_safe=no" |
1125 |
fi |
1126 |
rm -f conftest* |
1127 |
fi |
1128 |
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
1129 |
echo "$ac_t""yes" 1>&6 |
1130 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1131 |
cat >> confdefs.h <<EOF |
1132 |
#define $ac_tr_hdr 1 |
1133 |
EOF |
1134 |
ac_header_dirent=$ac_hdr; break |
1135 |
else |
1136 |
echo "$ac_t""no" 1>&6 |
1137 |
fi |
1138 |
done |
1139 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
1140 |
if test $ac_header_dirent = dirent.h; then |
1141 |
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
1142 |
echo "configure:1143: checking for opendir in -ldir" >&5 |
1143 |
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
1144 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1145 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1146 |
else |
1147 |
ac_save_LIBS="$LIBS" |
1148 |
LIBS="-ldir $LIBS" |
1149 |
cat > conftest.$ac_ext <<EOF |
1150 |
#line 1151 "configure" |
1151 |
#include "confdefs.h" |
1152 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1153 |
/* We use char because int might match the return type of a gcc2 |
1154 |
builtin and then its argument prototype would still apply. */ |
1155 |
char opendir(); |
1156 |
|
1157 |
int main() { |
1158 |
opendir() |
1159 |
; return 0; } |
1160 |
EOF |
1161 |
if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1162 |
rm -rf conftest* |
1163 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1164 |
else |
1165 |
echo "configure: failed program was:" >&5 |
1166 |
cat conftest.$ac_ext >&5 |
1167 |
rm -rf conftest* |
1168 |
eval "ac_cv_lib_$ac_lib_var=no" |
1169 |
fi |
1170 |
rm -f conftest* |
1171 |
LIBS="$ac_save_LIBS" |
1172 |
|
1173 |
fi |
1174 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1175 |
echo "$ac_t""yes" 1>&6 |
1176 |
LIBS="$LIBS -ldir" |
1177 |
else |
1178 |
echo "$ac_t""no" 1>&6 |
1179 |
fi |
1180 |
|
1181 |
else |
1182 |
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
1183 |
echo "configure:1184: checking for opendir in -lx" >&5 |
1184 |
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
1185 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1186 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1187 |
else |
1188 |
ac_save_LIBS="$LIBS" |
1189 |
LIBS="-lx $LIBS" |
1190 |
cat > conftest.$ac_ext <<EOF |
1191 |
#line 1192 "configure" |
1192 |
#include "confdefs.h" |
1193 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1194 |
/* We use char because int might match the return type of a gcc2 |
1195 |
builtin and then its argument prototype would still apply. */ |
1196 |
char opendir(); |
1197 |
|
1198 |
int main() { |
1199 |
opendir() |
1200 |
; return 0; } |
1201 |
EOF |
1202 |
if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1203 |
rm -rf conftest* |
1204 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1205 |
else |
1206 |
echo "configure: failed program was:" >&5 |
1207 |
cat conftest.$ac_ext >&5 |
1208 |
rm -rf conftest* |
1209 |
eval "ac_cv_lib_$ac_lib_var=no" |
1210 |
fi |
1211 |
rm -f conftest* |
1212 |
LIBS="$ac_save_LIBS" |
1213 |
|
1214 |
fi |
1215 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1216 |
echo "$ac_t""yes" 1>&6 |
1217 |
LIBS="$LIBS -lx" |
1218 |
else |
1219 |
echo "$ac_t""no" 1>&6 |
1220 |
fi |
1221 |
|
1222 |
fi |
1223 |
|
1224 |
|
1225 |
d="/usr/local/v6/lib" |
1226 |
echo $ac_n "checking for $d""... $ac_c" 1>&6 |
1227 |
echo "configure:1228: checking for $d" >&5 |
1228 |
if test -d $d; then |
1229 |
echo "$ac_t""yes (Adding -L$d to LDFLAGS)" 1>&6 |
1230 |
LDFLAGS="$LDFLAGS -L$d" |
1231 |
else |
1232 |
echo "$ac_t""no" 1>&6 |
1233 |
fi |
1234 |
|
1235 |
V_NETLIBS="" |
1236 |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
1237 |
echo "configure:1238: checking for gethostbyname" >&5 |
1238 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1239 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1240 |
else |
1241 |
cat > conftest.$ac_ext <<EOF |
1242 |
#line 1243 "configure" |
1243 |
#include "confdefs.h" |
1244 |
/* System header to define __stub macros and hopefully few prototypes, |
1245 |
which can conflict with char gethostbyname(); below. */ |
1246 |
#include <assert.h> |
1247 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1248 |
/* We use char because int might match the return type of a gcc2 |
1249 |
builtin and then its argument prototype would still apply. */ |
1250 |
char gethostbyname(); |
1251 |
|
1252 |
int main() { |
1253 |
|
1254 |
/* The GNU C library defines this for functions which it implements |
1255 |
to always fail with ENOSYS. Some functions are actually named |
1256 |
something starting with __ and the normal name is an alias. */ |
1257 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
1258 |
choke me |
1259 |
#else |
1260 |
gethostbyname(); |
1261 |
#endif |
1262 |
|
1263 |
; return 0; } |
1264 |
EOF |
1265 |
if { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1266 |
rm -rf conftest* |
1267 |
eval "ac_cv_func_gethostbyname=yes" |
1268 |
else |
1269 |
echo "configure: failed program was:" >&5 |
1270 |
cat conftest.$ac_ext >&5 |
1271 |
rm -rf conftest* |
1272 |
eval "ac_cv_func_gethostbyname=no" |
1273 |
fi |
1274 |
rm -f conftest* |
1275 |
fi |
1276 |
|
1277 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
1278 |
echo "$ac_t""yes" 1>&6 |
1279 |
: |
1280 |
else |
1281 |
echo "$ac_t""no" 1>&6 |
1282 |
# Some OSes (eg. Solaris) place it in libnsl: |
1283 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
1284 |
echo "configure:1285: checking for gethostbyname in -lnsl" >&5 |
1285 |
ac_lib_var=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'` |
1286 |
if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then |
1287 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1288 |
else |
1289 |
ac_save_LIBS="$LIBS" |
1290 |
LIBS="-lnsl $LIBS" |
1291 |
cat > conftest.$ac_ext <<EOF |
1292 |
#line 1293 "configure" |
1293 |
#include "confdefs.h" |
1294 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1295 |
/* We use char because int might match the return type of a gcc2 |
1296 |
builtin and then its argument prototype would still apply. */ |
1297 |
char gethostbyname(); |
1298 |
|
1299 |
int main() { |
1300 |
gethostbyname() |
1301 |
; return 0; } |
1302 |
EOF |
1303 |
if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1304 |
rm -rf conftest* |
1305 |
eval "ac_cv_lbl_lib_$ac_lib_var=yes" |
1306 |
else |
1307 |
echo "configure: failed program was:" >&5 |
1308 |
cat conftest.$ac_ext >&5 |
1309 |
rm -rf conftest* |
1310 |
eval "ac_cv_lbl_lib_$ac_lib_var=no" |
1311 |
fi |
1312 |
rm -f conftest* |
1313 |
LIBS="$ac_save_LIBS" |
1314 |
|
1315 |
fi |
1316 |
if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then |
1317 |
echo "$ac_t""yes" 1>&6 |
1318 |
V_NETLIBS="-lnsl $V_NETLIBS" |
1319 |
else |
1320 |
echo "$ac_t""no" 1>&6 |
1321 |
# Some strange OSes (SINIX) have it in libsocket: |
1322 |
echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 |
1323 |
echo "configure:1324: checking for gethostbyname in -lsocket" >&5 |
1324 |
ac_lib_var=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'` |
1325 |
if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then |
1326 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1327 |
else |
1328 |
ac_save_LIBS="$LIBS" |
1329 |
LIBS="-lsocket $LIBS" |
1330 |
cat > conftest.$ac_ext <<EOF |
1331 |
#line 1332 "configure" |
1332 |
#include "confdefs.h" |
1333 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1334 |
/* We use char because int might match the return type of a gcc2 |
1335 |
builtin and then its argument prototype would still apply. */ |
1336 |
char gethostbyname(); |
1337 |
|
1338 |
int main() { |
1339 |
gethostbyname() |
1340 |
; return 0; } |
1341 |
EOF |
1342 |
if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1343 |
rm -rf conftest* |
1344 |
eval "ac_cv_lbl_lib_$ac_lib_var=yes" |
1345 |
else |
1346 |
echo "configure: failed program was:" >&5 |
1347 |
cat conftest.$ac_ext >&5 |
1348 |
rm -rf conftest* |
1349 |
eval "ac_cv_lbl_lib_$ac_lib_var=no" |
1350 |
fi |
1351 |
rm -f conftest* |
1352 |
LIBS="$ac_save_LIBS" |
1353 |
|
1354 |
fi |
1355 |
if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then |
1356 |
echo "$ac_t""yes" 1>&6 |
1357 |
V_NETLIBS="-lsocket $V_NETLIBS" |
1358 |
else |
1359 |
echo "$ac_t""no" 1>&6 |
1360 |
# Unfortunately libsocket sometimes depends on libnsl. |
1361 |
# AC_CHECK_LIB's API is essentially broken so the |
1362 |
# following ugliness is necessary: |
1363 |
echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 |
1364 |
echo "configure:1365: checking for gethostbyname in -lsocket" >&5 |
1365 |
ac_lib_var=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'` |
1366 |
if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then |
1367 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1368 |
else |
1369 |
ac_save_LIBS="$LIBS" |
1370 |
LIBS="-lsocket -lnsl $LIBS" |
1371 |
cat > conftest.$ac_ext <<EOF |
1372 |
#line 1373 "configure" |
1373 |
#include "confdefs.h" |
1374 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1375 |
/* We use char because int might match the return type of a gcc2 |
1376 |
builtin and then its argument prototype would still apply. */ |
1377 |
char gethostbyname(); |
1378 |
|
1379 |
int main() { |
1380 |
gethostbyname() |
1381 |
; return 0; } |
1382 |
EOF |
1383 |
if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1384 |
rm -rf conftest* |
1385 |
eval "ac_cv_lbl_lib_$ac_lib_var=yes" |
1386 |
else |
1387 |
echo "configure: failed program was:" >&5 |
1388 |
cat conftest.$ac_ext >&5 |
1389 |
rm -rf conftest* |
1390 |
eval "ac_cv_lbl_lib_$ac_lib_var=no" |
1391 |
fi |
1392 |
rm -f conftest* |
1393 |
LIBS="$ac_save_LIBS" |
1394 |
|
1395 |
fi |
1396 |
if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then |
1397 |
echo "$ac_t""yes" 1>&6 |
1398 |
V_NETLIBS="-lsocket -lnsl $V_NETLIBS" |
1399 |
else |
1400 |
echo "$ac_t""no" 1>&6 |
1401 |
echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 |
1402 |
echo "configure:1403: checking for gethostbyname in -lresolv" >&5 |
1403 |
ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` |
1404 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1405 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1406 |
else |
1407 |
ac_save_LIBS="$LIBS" |
1408 |
LIBS="-lresolv $LIBS" |
1409 |
cat > conftest.$ac_ext <<EOF |
1410 |
#line 1411 "configure" |
1411 |
#include "confdefs.h" |
1412 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1413 |
/* We use char because int might match the return type of a gcc2 |
1414 |
builtin and then its argument prototype would still apply. */ |
1415 |
char gethostbyname(); |
1416 |
|
1417 |
int main() { |
1418 |
gethostbyname() |
1419 |
; return 0; } |
1420 |
EOF |
1421 |
if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1422 |
rm -rf conftest* |
1423 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1424 |
else |
1425 |
echo "configure: failed program was:" >&5 |
1426 |
cat conftest.$ac_ext >&5 |
1427 |
rm -rf conftest* |
1428 |
eval "ac_cv_lib_$ac_lib_var=no" |
1429 |
fi |
1430 |
rm -f conftest* |
1431 |
LIBS="$ac_save_LIBS" |
1432 |
|
1433 |
fi |
1434 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1435 |
echo "$ac_t""yes" 1>&6 |
1436 |
V_NETLIBS="-lresolv $V_NETLIBS" |
1437 |
else |
1438 |
echo "$ac_t""no" 1>&6 |
1439 |
fi |
1440 |
|
1441 |
fi |
1442 |
|
1443 |
fi |
1444 |
|
1445 |
fi |
1446 |
|
1447 |
fi |
1448 |
|
1449 |
echo $ac_n "checking for socket""... $ac_c" 1>&6 |
1450 |
echo "configure:1451: checking for socket" >&5 |
1451 |
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
1452 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1453 |
else |
1454 |
cat > conftest.$ac_ext <<EOF |
1455 |
#line 1456 "configure" |
1456 |
#include "confdefs.h" |
1457 |
/* System header to define __stub macros and hopefully few prototypes, |
1458 |
which can conflict with char socket(); below. */ |
1459 |
#include <assert.h> |
1460 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1461 |
/* We use char because int might match the return type of a gcc2 |
1462 |
builtin and then its argument prototype would still apply. */ |
1463 |
char socket(); |
1464 |
|
1465 |
int main() { |
1466 |
|
1467 |
/* The GNU C library defines this for functions which it implements |
1468 |
to always fail with ENOSYS. Some functions are actually named |
1469 |
something starting with __ and the normal name is an alias. */ |
1470 |
#if defined (__stub_socket) || defined (__stub___socket) |
1471 |
choke me |
1472 |
#else |
1473 |
socket(); |
1474 |
#endif |
1475 |
|
1476 |
; return 0; } |
1477 |
EOF |
1478 |
if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1479 |
rm -rf conftest* |
1480 |
eval "ac_cv_func_socket=yes" |
1481 |
else |
1482 |
echo "configure: failed program was:" >&5 |
1483 |
cat conftest.$ac_ext >&5 |
1484 |
rm -rf conftest* |
1485 |
eval "ac_cv_func_socket=no" |
1486 |
fi |
1487 |
rm -f conftest* |
1488 |
fi |
1489 |
|
1490 |
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
1491 |
echo "$ac_t""yes" 1>&6 |
1492 |
: |
1493 |
else |
1494 |
echo "$ac_t""no" 1>&6 |
1495 |
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
1496 |
echo "configure:1497: checking for socket in -lsocket" >&5 |
1497 |
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
1498 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1499 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1500 |
else |
1501 |
ac_save_LIBS="$LIBS" |
1502 |
LIBS="-lsocket $LIBS" |
1503 |
cat > conftest.$ac_ext <<EOF |
1504 |
#line 1505 "configure" |
1505 |
#include "confdefs.h" |
1506 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1507 |
/* We use char because int might match the return type of a gcc2 |
1508 |
builtin and then its argument prototype would still apply. */ |
1509 |
char socket(); |
1510 |
|
1511 |
int main() { |
1512 |
socket() |
1513 |
; return 0; } |
1514 |
EOF |
1515 |
if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1516 |
rm -rf conftest* |
1517 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1518 |
else |
1519 |
echo "configure: failed program was:" >&5 |
1520 |
cat conftest.$ac_ext >&5 |
1521 |
rm -rf conftest* |
1522 |
eval "ac_cv_lib_$ac_lib_var=no" |
1523 |
fi |
1524 |
rm -f conftest* |
1525 |
LIBS="$ac_save_LIBS" |
1526 |
|
1527 |
fi |
1528 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1529 |
echo "$ac_t""yes" 1>&6 |
1530 |
V_NETLIBS="-lsocket $V_NETLIBS" |
1531 |
else |
1532 |
echo "$ac_t""no" 1>&6 |
1533 |
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
1534 |
echo "configure:1535: checking for socket in -lsocket" >&5 |
1535 |
ac_lib_var=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'` |
1536 |
if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then |
1537 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1538 |
else |
1539 |
ac_save_LIBS="$LIBS" |
1540 |
LIBS="-lsocket -lnsl $LIBS" |
1541 |
cat > conftest.$ac_ext <<EOF |
1542 |
#line 1543 "configure" |
1543 |
#include "confdefs.h" |
1544 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1545 |
/* We use char because int might match the return type of a gcc2 |
1546 |
builtin and then its argument prototype would still apply. */ |
1547 |
char socket(); |
1548 |
|
1549 |
int main() { |
1550 |
socket() |
1551 |
; return 0; } |
1552 |
EOF |
1553 |
if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1554 |
rm -rf conftest* |
1555 |
eval "ac_cv_lbl_lib_$ac_lib_var=yes" |
1556 |
else |
1557 |
echo "configure: failed program was:" >&5 |
1558 |
cat conftest.$ac_ext >&5 |
1559 |
rm -rf conftest* |
1560 |
eval "ac_cv_lbl_lib_$ac_lib_var=no" |
1561 |
fi |
1562 |
rm -f conftest* |
1563 |
LIBS="$ac_save_LIBS" |
1564 |
|
1565 |
fi |
1566 |
if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then |
1567 |
echo "$ac_t""yes" 1>&6 |
1568 |
V_NETLIBS="-lsocket -lnsl $V_NETLIBS" |
1569 |
else |
1570 |
echo "$ac_t""no" 1>&6 |
1571 |
fi |
1572 |
|
1573 |
fi |
1574 |
|
1575 |
fi |
1576 |
|
1577 |
|
1578 |
echo $ac_n "checking for main in -linet6""... $ac_c" 1>&6 |
1579 |
echo "configure:1580: checking for main in -linet6" >&5 |
1580 |
ac_lib_var=`echo inet6'_'main | sed 'y%./+-%__p_%'` |
1581 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1582 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1583 |
else |
1584 |
ac_save_LIBS="$LIBS" |
1585 |
LIBS="-linet6 $LIBS" |
1586 |
cat > conftest.$ac_ext <<EOF |
1587 |
#line 1588 "configure" |
1588 |
#include "confdefs.h" |
1589 |
|
1590 |
int main() { |
1591 |
main() |
1592 |
; return 0; } |
1593 |
EOF |
1594 |
if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1595 |
rm -rf conftest* |
1596 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1597 |
else |
1598 |
echo "configure: failed program was:" >&5 |
1599 |
cat conftest.$ac_ext >&5 |
1600 |
rm -rf conftest* |
1601 |
eval "ac_cv_lib_$ac_lib_var=no" |
1602 |
fi |
1603 |
rm -f conftest* |
1604 |
LIBS="$ac_save_LIBS" |
1605 |
|
1606 |
fi |
1607 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1608 |
echo "$ac_t""yes" 1>&6 |
1609 |
ac_tr_lib=HAVE_LIB`echo inet6 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
1610 |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
1611 |
cat >> confdefs.h <<EOF |
1612 |
#define $ac_tr_lib 1 |
1613 |
EOF |
1614 |
|
1615 |
LIBS="-linet6 $LIBS" |
1616 |
|
1617 |
else |
1618 |
echo "$ac_t""no" 1>&6 |
1619 |
fi |
1620 |
|
1621 |
|
1622 |
echo $ac_n "checking for crypt""... $ac_c" 1>&6 |
1623 |
echo "configure:1624: checking for crypt" >&5 |
1624 |
if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then |
1625 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1626 |
else |
1627 |
cat > conftest.$ac_ext <<EOF |
1628 |
#line 1629 "configure" |
1629 |
#include "confdefs.h" |
1630 |
/* System header to define __stub macros and hopefully few prototypes, |
1631 |
which can conflict with char crypt(); below. */ |
1632 |
#include <assert.h> |
1633 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1634 |
/* We use char because int might match the return type of a gcc2 |
1635 |
builtin and then its argument prototype would still apply. */ |
1636 |
char crypt(); |
1637 |
|
1638 |
int main() { |
1639 |
|
1640 |
/* The GNU C library defines this for functions which it implements |
1641 |
to always fail with ENOSYS. Some functions are actually named |
1642 |
something starting with __ and the normal name is an alias. */ |
1643 |
#if defined (__stub_crypt) || defined (__stub___crypt) |
1644 |
choke me |
1645 |
#else |
1646 |
crypt(); |
1647 |
#endif |
1648 |
|
1649 |
; return 0; } |
1650 |
EOF |
1651 |
if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1652 |
rm -rf conftest* |
1653 |
eval "ac_cv_func_crypt=yes" |
1654 |
else |
1655 |
echo "configure: failed program was:" >&5 |
1656 |
cat conftest.$ac_ext >&5 |
1657 |
rm -rf conftest* |
1658 |
eval "ac_cv_func_crypt=no" |
1659 |
fi |
1660 |
rm -f conftest* |
1661 |
fi |
1662 |
|
1663 |
if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then |
1664 |
echo "$ac_t""yes" 1>&6 |
1665 |
: |
1666 |
else |
1667 |
echo "$ac_t""no" 1>&6 |
1668 |
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
1669 |
echo "configure:1670: checking for crypt in -lcrypt" >&5 |
1670 |
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
1671 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1672 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1673 |
else |
1674 |
ac_save_LIBS="$LIBS" |
1675 |
LIBS="-lcrypt $LIBS" |
1676 |
cat > conftest.$ac_ext <<EOF |
1677 |
#line 1678 "configure" |
1678 |
#include "confdefs.h" |
1679 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1680 |
/* We use char because int might match the return type of a gcc2 |
1681 |
builtin and then its argument prototype would still apply. */ |
1682 |
char crypt(); |
1683 |
|
1684 |
int main() { |
1685 |
crypt() |
1686 |
; return 0; } |
1687 |
EOF |
1688 |
if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1689 |
rm -rf conftest* |
1690 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1691 |
else |
1692 |
echo "configure: failed program was:" >&5 |
1693 |
cat conftest.$ac_ext >&5 |
1694 |
rm -rf conftest* |
1695 |
eval "ac_cv_lib_$ac_lib_var=no" |
1696 |
fi |
1697 |
rm -f conftest* |
1698 |
LIBS="$ac_save_LIBS" |
1699 |
|
1700 |
fi |
1701 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1702 |
echo "$ac_t""yes" 1>&6 |
1703 |
ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \ |
1704 |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
1705 |
cat >> confdefs.h <<EOF |
1706 |
#define $ac_tr_lib 1 |
1707 |
EOF |
1708 |
|
1709 |
LIBS="-lcrypt $LIBS" |
1710 |
|
1711 |
else |
1712 |
echo "$ac_t""no" 1>&6 |
1713 |
fi |
1714 |
|
1715 |
fi |
1716 |
|
1717 |
echo $ac_n "checking for hstrerror""... $ac_c" 1>&6 |
1718 |
echo "configure:1719: checking for hstrerror" >&5 |
1719 |
if eval "test \"`echo '$''{'ac_cv_func_hstrerror'+set}'`\" = set"; then |
1720 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1721 |
else |
1722 |
cat > conftest.$ac_ext <<EOF |
1723 |
#line 1724 "configure" |
1724 |
#include "confdefs.h" |
1725 |
/* System header to define __stub macros and hopefully few prototypes, |
1726 |
which can conflict with char hstrerror(); below. */ |
1727 |
#include <assert.h> |
1728 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1729 |
/* We use char because int might match the return type of a gcc2 |
1730 |
builtin and then its argument prototype would still apply. */ |
1731 |
char hstrerror(); |
1732 |
|
1733 |
int main() { |
1734 |
|
1735 |
/* The GNU C library defines this for functions which it implements |
1736 |
to always fail with ENOSYS. Some functions are actually named |
1737 |
something starting with __ and the normal name is an alias. */ |
1738 |
#if defined (__stub_hstrerror) || defined (__stub___hstrerror) |
1739 |
choke me |
1740 |
#else |
1741 |
hstrerror(); |
1742 |
#endif |
1743 |
|
1744 |
; return 0; } |
1745 |
EOF |
1746 |
if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1747 |
rm -rf conftest* |
1748 |
eval "ac_cv_func_hstrerror=yes" |
1749 |
else |
1750 |
echo "configure: failed program was:" >&5 |
1751 |
cat conftest.$ac_ext >&5 |
1752 |
rm -rf conftest* |
1753 |
eval "ac_cv_func_hstrerror=no" |
1754 |
fi |
1755 |
rm -f conftest* |
1756 |
fi |
1757 |
|
1758 |
if eval "test \"`echo '$ac_cv_func_'hstrerror`\" = yes"; then |
1759 |
echo "$ac_t""yes" 1>&6 |
1760 |
: |
1761 |
else |
1762 |
echo "$ac_t""no" 1>&6 |
1763 |
echo $ac_n "checking for hstrerror in -lresolv""... $ac_c" 1>&6 |
1764 |
echo "configure:1765: checking for hstrerror in -lresolv" >&5 |
1765 |
ac_lib_var=`echo resolv'_'hstrerror | sed 'y%./+-%__p_%'` |
1766 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1767 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1768 |
else |
1769 |
ac_save_LIBS="$LIBS" |
1770 |
LIBS="-lresolv $LIBS" |
1771 |
cat > conftest.$ac_ext <<EOF |
1772 |
#line 1773 "configure" |
1773 |
#include "confdefs.h" |
1774 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1775 |
/* We use char because int might match the return type of a gcc2 |
1776 |
builtin and then its argument prototype would still apply. */ |
1777 |
char hstrerror(); |
1778 |
|
1779 |
int main() { |
1780 |
hstrerror() |
1781 |
; return 0; } |
1782 |
EOF |
1783 |
if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1784 |
rm -rf conftest* |
1785 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1786 |
else |
1787 |
echo "configure: failed program was:" >&5 |
1788 |
cat conftest.$ac_ext >&5 |
1789 |
rm -rf conftest* |
1790 |
eval "ac_cv_lib_$ac_lib_var=no" |
1791 |
fi |
1792 |
rm -f conftest* |
1793 |
LIBS="$ac_save_LIBS" |
1794 |
|
1795 |
fi |
1796 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1797 |
echo "$ac_t""yes" 1>&6 |
1798 |
V_NETLIBS="-lresolv $V_NETLIBS" |
1799 |
else |
1800 |
echo "$ac_t""no" 1>&6 |
1801 |
fi |
1802 |
|
1803 |
fi |
1804 |
|
1805 |
|
1806 |
for ac_func in strerror |
1807 |
do |
1808 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1809 |
echo "configure:1810: checking for $ac_func" >&5 |
1810 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1811 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1812 |
else |
1813 |
cat > conftest.$ac_ext <<EOF |
1814 |
#line 1815 "configure" |
1815 |
#include "confdefs.h" |
1816 |
/* System header to define __stub macros and hopefully few prototypes, |
1817 |
which can conflict with char $ac_func(); below. */ |
1818 |
#include <assert.h> |
1819 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1820 |
/* We use char because int might match the return type of a gcc2 |
1821 |
builtin and then its argument prototype would still apply. */ |
1822 |
char $ac_func(); |
1823 |
|
1824 |
int main() { |
1825 |
|
1826 |
/* The GNU C library defines this for functions which it implements |
1827 |
to always fail with ENOSYS. Some functions are actually named |
1828 |
something starting with __ and the normal name is an alias. */ |
1829 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
1830 |
choke me |
1831 |
#else |
1832 |
$ac_func(); |
1833 |
#endif |
1834 |
|
1835 |
; return 0; } |
1836 |
EOF |
1837 |
if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1838 |
rm -rf conftest* |
1839 |
eval "ac_cv_func_$ac_func=yes" |
1840 |
else |
1841 |
echo "configure: failed program was:" >&5 |
1842 |
cat conftest.$ac_ext >&5 |
1843 |
rm -rf conftest* |
1844 |
eval "ac_cv_func_$ac_func=no" |
1845 |
fi |
1846 |
rm -f conftest* |
1847 |
fi |
1848 |
|
1849 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
1850 |
echo "$ac_t""yes" 1>&6 |
1851 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1852 |
cat >> confdefs.h <<EOF |
1853 |
#define $ac_tr_func 1 |
1854 |
EOF |
1855 |
|
1856 |
else |
1857 |
echo "$ac_t""no" 1>&6 |
1858 |
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
1859 |
fi |
1860 |
done |
1861 |
|
1862 |
|
1863 |
for ac_func in waitpid vsnprintf daemon setsid setlogin getaddrinfo getnameinfo gai_strerror kqueue |
1864 |
do |
1865 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1866 |
echo "configure:1867: checking for $ac_func" >&5 |
1867 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1868 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1869 |
else |
1870 |
cat > conftest.$ac_ext <<EOF |
1871 |
#line 1872 "configure" |
1872 |
#include "confdefs.h" |
1873 |
/* System header to define __stub macros and hopefully few prototypes, |
1874 |
which can conflict with char $ac_func(); below. */ |
1875 |
#include <assert.h> |
1876 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1877 |
/* We use char because int might match the return type of a gcc2 |
1878 |
builtin and then its argument prototype would still apply. */ |
1879 |
char $ac_func(); |
1880 |
|
1881 |
int main() { |
1882 |
|
1883 |
/* The GNU C library defines this for functions which it implements |
1884 |
to always fail with ENOSYS. Some functions are actually named |
1885 |
something starting with __ and the normal name is an alias. */ |
1886 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
1887 |
choke me |
1888 |
#else |
1889 |
$ac_func(); |
1890 |
#endif |
1891 |
|
1892 |
; return 0; } |
1893 |
EOF |
1894 |
if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1895 |
rm -rf conftest* |
1896 |
eval "ac_cv_func_$ac_func=yes" |
1897 |
else |
1898 |
echo "configure: failed program was:" >&5 |
1899 |
cat conftest.$ac_ext >&5 |
1900 |
rm -rf conftest* |
1901 |
eval "ac_cv_func_$ac_func=no" |
1902 |
fi |
1903 |
rm -f conftest* |
1904 |
fi |
1905 |
|
1906 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
1907 |
echo "$ac_t""yes" 1>&6 |
1908 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1909 |
cat >> confdefs.h <<EOF |
1910 |
#define $ac_tr_func 1 |
1911 |
EOF |
1912 |
|
1913 |
else |
1914 |
echo "$ac_t""no" 1>&6 |
1915 |
fi |
1916 |
done |
1917 |
|
1918 |
for ac_hdr in unistd.h |
1919 |
do |
1920 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1921 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1922 |
echo "configure:1923: checking for $ac_hdr" >&5 |
1923 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1924 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1925 |
else |
1926 |
cat > conftest.$ac_ext <<EOF |
1927 |
#line 1928 "configure" |
1928 |
#include "confdefs.h" |
1929 |
#include <$ac_hdr> |
1930 |
EOF |
1931 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1932 |
{ (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1933 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1934 |
if test -z "$ac_err"; then |
1935 |
rm -rf conftest* |
1936 |
eval "ac_cv_header_$ac_safe=yes" |
1937 |
else |
1938 |
echo "$ac_err" >&5 |
1939 |
echo "configure: failed program was:" >&5 |
1940 |
cat conftest.$ac_ext >&5 |
1941 |
rm -rf conftest* |
1942 |
eval "ac_cv_header_$ac_safe=no" |
1943 |
fi |
1944 |
rm -f conftest* |
1945 |
fi |
1946 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1947 |
echo "$ac_t""yes" 1>&6 |
1948 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1949 |
cat >> confdefs.h <<EOF |
1950 |
#define $ac_tr_hdr 1 |
1951 |
EOF |
1952 |
|
1953 |
else |
1954 |
echo "$ac_t""no" 1>&6 |
1955 |
fi |
1956 |
done |
1957 |
|
1958 |
for ac_func in getpagesize |
1959 |
do |
1960 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1961 |
echo "configure:1962: checking for $ac_func" >&5 |
1962 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1963 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1964 |
else |
1965 |
cat > conftest.$ac_ext <<EOF |
1966 |
#line 1967 "configure" |
1967 |
#include "confdefs.h" |
1968 |
/* System header to define __stub macros and hopefully few prototypes, |
1969 |
which can conflict with char $ac_func(); below. */ |
1970 |
#include <assert.h> |
1971 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1972 |
/* We use char because int might match the return type of a gcc2 |
1973 |
builtin and then its argument prototype would still apply. */ |
1974 |
char $ac_func(); |
1975 |
|
1976 |
int main() { |
1977 |
|
1978 |
/* The GNU C library defines this for functions which it implements |
1979 |
to always fail with ENOSYS. Some functions are actually named |
1980 |
something starting with __ and the normal name is an alias. */ |
1981 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
1982 |
choke me |
1983 |
#else |
1984 |
$ac_func(); |
1985 |
#endif |
1986 |
|
1987 |
; return 0; } |
1988 |
EOF |
1989 |
if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1990 |
rm -rf conftest* |
1991 |
eval "ac_cv_func_$ac_func=yes" |
1992 |
else |
1993 |
echo "configure: failed program was:" >&5 |
1994 |
cat conftest.$ac_ext >&5 |
1995 |
rm -rf conftest* |
1996 |
eval "ac_cv_func_$ac_func=no" |
1997 |
fi |
1998 |
rm -f conftest* |
1999 |
fi |
2000 |
|
2001 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2002 |
echo "$ac_t""yes" 1>&6 |
2003 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2004 |
cat >> confdefs.h <<EOF |
2005 |
#define $ac_tr_func 1 |
2006 |
EOF |
2007 |
|
2008 |
else |
2009 |
echo "$ac_t""no" 1>&6 |
2010 |
fi |
2011 |
done |
2012 |
|
2013 |
echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
2014 |
echo "configure:2015: checking for working mmap" >&5 |
2015 |
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2016 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2017 |
else |
2018 |
if test "$cross_compiling" = yes; then |
2019 |
ac_cv_func_mmap_fixed_mapped=no |
2020 |
else |
2021 |
cat > conftest.$ac_ext <<EOF |
2022 |
#line 2023 "configure" |
2023 |
#include "confdefs.h" |
2024 |
|
2025 |
/* Thanks to Mike Haertel and Jim Avera for this test. |
2026 |
Here is a matrix of mmap possibilities: |
2027 |
mmap private not fixed |
2028 |
mmap private fixed at somewhere currently unmapped |
2029 |
mmap private fixed at somewhere already mapped |
2030 |
mmap shared not fixed |
2031 |
mmap shared fixed at somewhere currently unmapped |
2032 |
mmap shared fixed at somewhere already mapped |
2033 |
For private mappings, we should verify that changes cannot be read() |
2034 |
back from the file, nor mmap's back from the file at a different |
2035 |
address. (There have been systems where private was not correctly |
2036 |
implemented like the infamous i386 svr4.0, and systems where the |
2037 |
VM page cache was not coherent with the filesystem buffer cache |
2038 |
like early versions of FreeBSD and possibly contemporary NetBSD.) |
2039 |
For shared mappings, we should conversely verify that changes get |
2040 |
propogated back to all the places they're supposed to be. |
2041 |
|
2042 |
Grep wants private fixed already mapped. |
2043 |
The main things grep needs to know about mmap are: |
2044 |
* does it exist and is it safe to write into the mmap'd area |
2045 |
* how to use it (BSD variants) */ |
2046 |
#include <sys/types.h> |
2047 |
#include <fcntl.h> |
2048 |
#include <sys/mman.h> |
2049 |
|
2050 |
/* This mess was copied from the GNU getpagesize.h. */ |
2051 |
#ifndef HAVE_GETPAGESIZE |
2052 |
# ifdef HAVE_UNISTD_H |
2053 |
# include <unistd.h> |
2054 |
# endif |
2055 |
|
2056 |
/* Assume that all systems that can run configure have sys/param.h. */ |
2057 |
# ifndef HAVE_SYS_PARAM_H |
2058 |
# define HAVE_SYS_PARAM_H 1 |
2059 |
# endif |
2060 |
|
2061 |
# ifdef _SC_PAGESIZE |
2062 |
# define getpagesize() sysconf(_SC_PAGESIZE) |
2063 |
# else /* no _SC_PAGESIZE */ |
2064 |
# ifdef HAVE_SYS_PARAM_H |
2065 |
# include <sys/param.h> |
2066 |
# ifdef EXEC_PAGESIZE |
2067 |
# define getpagesize() EXEC_PAGESIZE |
2068 |
# else /* no EXEC_PAGESIZE */ |
2069 |
# ifdef NBPG |
2070 |
# define getpagesize() NBPG * CLSIZE |
2071 |
# ifndef CLSIZE |
2072 |
# define CLSIZE 1 |
2073 |
# endif /* no CLSIZE */ |
2074 |
# else /* no NBPG */ |
2075 |
# ifdef NBPC |
2076 |
# define getpagesize() NBPC |
2077 |
# else /* no NBPC */ |
2078 |
# ifdef PAGESIZE |
2079 |
# define getpagesize() PAGESIZE |
2080 |
# endif /* PAGESIZE */ |
2081 |
# endif /* no NBPC */ |
2082 |
# endif /* no NBPG */ |
2083 |
# endif /* no EXEC_PAGESIZE */ |
2084 |
# else /* no HAVE_SYS_PARAM_H */ |
2085 |
# define getpagesize() 8192 /* punt totally */ |
2086 |
# endif /* no HAVE_SYS_PARAM_H */ |
2087 |
# endif /* no _SC_PAGESIZE */ |
2088 |
|
2089 |
#endif /* no HAVE_GETPAGESIZE */ |
2090 |
|
2091 |
#ifdef __cplusplus |
2092 |
extern "C" { void *malloc(unsigned); } |
2093 |
#else |
2094 |
char *malloc(); |
2095 |
#endif |
2096 |
|
2097 |
int |
2098 |
main() |
2099 |
{ |
2100 |
char *data, *data2, *data3; |
2101 |
int i, pagesize; |
2102 |
int fd; |
2103 |
|
2104 |
pagesize = getpagesize(); |
2105 |
|
2106 |
/* |
2107 |
* First, make a file with some known garbage in it. |
2108 |
*/ |
2109 |
data = malloc(pagesize); |
2110 |
if (!data) |
2111 |
exit(1); |
2112 |
for (i = 0; i < pagesize; ++i) |
2113 |
*(data + i) = rand(); |
2114 |
umask(0); |
2115 |
fd = creat("conftestmmap", 0600); |
2116 |
if (fd < 0) |
2117 |
exit(1); |
2118 |
if (write(fd, data, pagesize) != pagesize) |
2119 |
exit(1); |
2120 |
close(fd); |
2121 |
|
2122 |
/* |
2123 |
* Next, try to mmap the file at a fixed address which |
2124 |
* already has something else allocated at it. If we can, |
2125 |
* also make sure that we see the same garbage. |
2126 |
*/ |
2127 |
fd = open("conftestmmap", O_RDWR); |
2128 |
if (fd < 0) |
2129 |
exit(1); |
2130 |
data2 = malloc(2 * pagesize); |
2131 |
if (!data2) |
2132 |
exit(1); |
2133 |
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
2134 |
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
2135 |
MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
2136 |
exit(1); |
2137 |
for (i = 0; i < pagesize; ++i) |
2138 |
if (*(data + i) != *(data2 + i)) |
2139 |
exit(1); |
2140 |
|
2141 |
/* |
2142 |
* Finally, make sure that changes to the mapped area |
2143 |
* do not percolate back to the file as seen by read(). |
2144 |
* (This is a bug on some variants of i386 svr4.0.) |
2145 |
*/ |
2146 |
for (i = 0; i < pagesize; ++i) |
2147 |
*(data2 + i) = *(data2 + i) + 1; |
2148 |
data3 = malloc(pagesize); |
2149 |
if (!data3) |
2150 |
exit(1); |
2151 |
if (read(fd, data3, pagesize) != pagesize) |
2152 |
exit(1); |
2153 |
for (i = 0; i < pagesize; ++i) |
2154 |
if (*(data + i) != *(data3 + i)) |
2155 |
exit(1); |
2156 |
close(fd); |
2157 |
unlink("conftestmmap"); |
2158 |
exit(0); |
2159 |
} |
2160 |
|
2161 |
EOF |
2162 |
if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2163 |
then |
2164 |
ac_cv_func_mmap_fixed_mapped=yes |
2165 |
else |
2166 |
echo "configure: failed program was:" >&5 |
2167 |
cat conftest.$ac_ext >&5 |
2168 |
rm -fr conftest* |
2169 |
ac_cv_func_mmap_fixed_mapped=no |
2170 |
fi |
2171 |
rm -fr conftest* |
2172 |
fi |
2173 |
|
2174 |
fi |
2175 |
|
2176 |
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
2177 |
if test $ac_cv_func_mmap_fixed_mapped = yes; then |
2178 |
cat >> confdefs.h <<\EOF |
2179 |
#define HAVE_MMAP 1 |
2180 |
EOF |
2181 |
|
2182 |
fi |
2183 |
|
2184 |
|
2185 |
case "$target_os" in |
2186 |
solaris*) |
2187 |
for ac_func in poll |
2188 |
do |
2189 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2190 |
echo "configure:2191: checking for $ac_func" >&5 |
2191 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2192 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2193 |
else |
2194 |
cat > conftest.$ac_ext <<EOF |
2195 |
#line 2196 "configure" |
2196 |
#include "confdefs.h" |
2197 |
/* System header to define __stub macros and hopefully few prototypes, |
2198 |
which can conflict with char $ac_func(); below. */ |
2199 |
#include <assert.h> |
2200 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2201 |
/* We use char because int might match the return type of a gcc2 |
2202 |
builtin and then its argument prototype would still apply. */ |
2203 |
char $ac_func(); |
2204 |
|
2205 |
int main() { |
2206 |
|
2207 |
/* The GNU C library defines this for functions which it implements |
2208 |
to always fail with ENOSYS. Some functions are actually named |
2209 |
something starting with __ and the normal name is an alias. */ |
2210 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2211 |
choke me |
2212 |
#else |
2213 |
$ac_func(); |
2214 |
#endif |
2215 |
|
2216 |
; return 0; } |
2217 |
EOF |
2218 |
if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2219 |
rm -rf conftest* |
2220 |
eval "ac_cv_func_$ac_func=yes" |
2221 |
else |
2222 |
echo "configure: failed program was:" >&5 |
2223 |
cat conftest.$ac_ext >&5 |
2224 |
rm -rf conftest* |
2225 |
eval "ac_cv_func_$ac_func=no" |
2226 |
fi |
2227 |
rm -f conftest* |
2228 |
fi |
2229 |
|
2230 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2231 |
echo "$ac_t""yes" 1>&6 |
2232 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2233 |
cat >> confdefs.h <<EOF |
2234 |
#define $ac_tr_func 1 |
2235 |
EOF |
2236 |
|
2237 |
else |
2238 |
echo "$ac_t""no" 1>&6 |
2239 |
fi |
2240 |
done |
2241 |
|
2242 |
;; |
2243 |
*) |
2244 |
for ac_func in select poll |
2245 |
do |
2246 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2247 |
echo "configure:2248: checking for $ac_func" >&5 |
2248 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2249 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2250 |
else |
2251 |
cat > conftest.$ac_ext <<EOF |
2252 |
#line 2253 "configure" |
2253 |
#include "confdefs.h" |
2254 |
/* System header to define __stub macros and hopefully few prototypes, |
2255 |
which can conflict with char $ac_func(); below. */ |
2256 |
#include <assert.h> |
2257 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2258 |
/* We use char because int might match the return type of a gcc2 |
2259 |
builtin and then its argument prototype would still apply. */ |
2260 |
char $ac_func(); |
2261 |
|
2262 |
int main() { |
2263 |
|
2264 |
/* The GNU C library defines this for functions which it implements |
2265 |
to always fail with ENOSYS. Some functions are actually named |
2266 |
something starting with __ and the normal name is an alias. */ |
2267 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2268 |
choke me |
2269 |
#else |
2270 |
$ac_func(); |
2271 |
#endif |
2272 |
|
2273 |
; return 0; } |
2274 |
EOF |
2275 |
if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2276 |
rm -rf conftest* |
2277 |
eval "ac_cv_func_$ac_func=yes" |
2278 |
else |
2279 |
echo "configure: failed program was:" >&5 |
2280 |
cat conftest.$ac_ext >&5 |
2281 |
rm -rf conftest* |
2282 |
eval "ac_cv_func_$ac_func=no" |
2283 |
fi |
2284 |
rm -f conftest* |
2285 |
fi |
2286 |
|
2287 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2288 |
echo "$ac_t""yes" 1>&6 |
2289 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2290 |
cat >> confdefs.h <<EOF |
2291 |
#define $ac_tr_func 1 |
2292 |
EOF |
2293 |
|
2294 |
else |
2295 |
echo "$ac_t""no" 1>&6 |
2296 |
fi |
2297 |
done |
2298 |
|
2299 |
;; |
2300 |
esac |
2301 |
|
2302 |
echo $ac_n "checking if struct tm has tm_gmtoff member""... $ac_c" 1>&6 |
2303 |
echo "configure:2304: checking if struct tm has tm_gmtoff member" >&5 |
2304 |
if eval "test \"`echo '$''{'ac_cv_acme_tm_has_tm_gmtoff'+set}'`\" = set"; then |
2305 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2306 |
else |
2307 |
cat > conftest.$ac_ext <<EOF |
2308 |
#line 2309 "configure" |
2309 |
#include "confdefs.h" |
2310 |
|
2311 |
# include <sys/types.h> |
2312 |
# include <time.h> |
2313 |
int main() { |
2314 |
u_int i = sizeof(((struct tm *)0)->tm_gmtoff) |
2315 |
; return 0; } |
2316 |
EOF |
2317 |
if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2318 |
rm -rf conftest* |
2319 |
ac_cv_acme_tm_has_tm_gmtoff=yes |
2320 |
else |
2321 |
echo "configure: failed program was:" >&5 |
2322 |
cat conftest.$ac_ext >&5 |
2323 |
rm -rf conftest* |
2324 |
ac_cv_acme_tm_has_tm_gmtoff=no |
2325 |
fi |
2326 |
rm -f conftest* |
2327 |
fi |
2328 |
|
2329 |
echo "$ac_t""$ac_cv_acme_tm_has_tm_gmtoff" 1>&6 |
2330 |
if test $ac_cv_acme_tm_has_tm_gmtoff = yes ; then |
2331 |
cat >> confdefs.h <<\EOF |
2332 |
#define HAVE_TM_GMTOFF 1 |
2333 |
EOF |
2334 |
|
2335 |
fi |
2336 |
echo $ac_n "checking if struct sockaddr_storage exists""... $ac_c" 1>&6 |
2337 |
echo "configure:2338: checking if struct sockaddr_storage exists" >&5 |
2338 |
if eval "test \"`echo '$''{'ac_cv_acme_sockaddr_storage'+set}'`\" = set"; then |
2339 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2340 |
else |
2341 |
cat > conftest.$ac_ext <<EOF |
2342 |
#line 2343 "configure" |
2343 |
#include "confdefs.h" |
2344 |
|
2345 |
# include <sys/types.h> |
2346 |
# include <sys/socket.h> |
2347 |
int main() { |
2348 |
struct sockaddr_storage sas |
2349 |
; return 0; } |
2350 |
EOF |
2351 |
if { (eval echo configure:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2352 |
rm -rf conftest* |
2353 |
ac_cv_acme_sockaddr_storage=yes |
2354 |
else |
2355 |
echo "configure: failed program was:" >&5 |
2356 |
cat conftest.$ac_ext >&5 |
2357 |
rm -rf conftest* |
2358 |
ac_cv_acme_sockaddr_storage=no |
2359 |
fi |
2360 |
rm -f conftest* |
2361 |
fi |
2362 |
|
2363 |
echo "$ac_t""$ac_cv_acme_sockaddr_storage" 1>&6 |
2364 |
if test $ac_cv_acme_sockaddr_storage = yes ; then |
2365 |
cat >> confdefs.h <<\EOF |
2366 |
#define HAVE_SOCKADDR_STORAGE 1 |
2367 |
EOF |
2368 |
|
2369 |
fi |
2370 |
echo $ac_n "checking if struct sockaddr_in6 exists""... $ac_c" 1>&6 |
2371 |
echo "configure:2372: checking if struct sockaddr_in6 exists" >&5 |
2372 |
if eval "test \"`echo '$''{'ac_cv_acme_sockaddr_in6'+set}'`\" = set"; then |
2373 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2374 |
else |
2375 |
cat > conftest.$ac_ext <<EOF |
2376 |
#line 2377 "configure" |
2377 |
#include "confdefs.h" |
2378 |
|
2379 |
# include <sys/types.h> |
2380 |
# include <sys/socket.h> |
2381 |
# include <netinet/in.h> |
2382 |
int main() { |
2383 |
struct sockaddr_in6 sa6 |
2384 |
; return 0; } |
2385 |
EOF |
2386 |
if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2387 |
rm -rf conftest* |
2388 |
ac_cv_acme_sockaddr_in6=yes |
2389 |
else |
2390 |
echo "configure: failed program was:" >&5 |
2391 |
cat conftest.$ac_ext >&5 |
2392 |
rm -rf conftest* |
2393 |
ac_cv_acme_sockaddr_in6=no |
2394 |
fi |
2395 |
rm -f conftest* |
2396 |
fi |
2397 |
|
2398 |
echo "$ac_t""$ac_cv_acme_sockaddr_in6" 1>&6 |
2399 |
if test $ac_cv_acme_sockaddr_in6 = yes ; then |
2400 |
cat >> confdefs.h <<\EOF |
2401 |
#define HAVE_SOCKADDR_IN6 1 |
2402 |
EOF |
2403 |
|
2404 |
fi |
2405 |
|
2406 |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
2407 |
echo "configure:2408: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
2408 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
2409 |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
2410 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2411 |
else |
2412 |
cat > conftestmake <<\EOF |
2413 |
all: |
2414 |
@echo 'ac_maketemp="${MAKE}"' |
2415 |
EOF |
2416 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2417 |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
2418 |
if test -n "$ac_maketemp"; then |
2419 |
eval ac_cv_prog_make_${ac_make}_set=yes |
2420 |
else |
2421 |
eval ac_cv_prog_make_${ac_make}_set=no |
2422 |
fi |
2423 |
rm -f conftestmake |
2424 |
fi |
2425 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
2426 |
echo "$ac_t""yes" 1>&6 |
2427 |
SET_MAKE= |
2428 |
else |
2429 |
echo "$ac_t""no" 1>&6 |
2430 |
SET_MAKE="MAKE=${MAKE-make}" |
2431 |
fi |
2432 |
|
2433 |
# Find a good install program. We prefer a C program (faster), |
2434 |
# so one script is as good as another. But avoid the broken or |
2435 |
# incompatible versions: |
2436 |
# SysV /etc/install, /usr/sbin/install |
2437 |
# SunOS /usr/etc/install |
2438 |
# IRIX /sbin/install |
2439 |
# AIX /bin/install |
2440 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2441 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2442 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2443 |
# ./install, which can be erroneously created by make from ./install.sh. |
2444 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2445 |
echo "configure:2446: checking for a BSD compatible install" >&5 |
2446 |
if test -z "$INSTALL"; then |
2447 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
2448 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2449 |
else |
2450 |
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2451 |
for ac_dir in $PATH; do |
2452 |
# Account for people who put trailing slashes in PATH elements. |
2453 |
case "$ac_dir/" in |
2454 |
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
2455 |
*) |
2456 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2457 |
# Don't use installbsd from OSF since it installs stuff as root |
2458 |
# by default. |
2459 |
for ac_prog in ginstall scoinst install; do |
2460 |
if test -f $ac_dir/$ac_prog; then |
2461 |
if test $ac_prog = install && |
2462 |
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
2463 |
# AIX install. It has an incompatible calling convention. |
2464 |
: |
2465 |
else |
2466 |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
2467 |
break 2 |
2468 |
fi |
2469 |
fi |
2470 |
done |
2471 |
;; |
2472 |
esac |
2473 |
done |
2474 |
IFS="$ac_save_IFS" |
2475 |
|
2476 |
fi |
2477 |
if test "${ac_cv_path_install+set}" = set; then |
2478 |
INSTALL="$ac_cv_path_install" |
2479 |
else |
2480 |
# As a last resort, use the slow shell script. We don't cache a |
2481 |
# path for INSTALL within a source directory, because that will |
2482 |
# break other packages using the cache if that directory is |
2483 |
# removed, or if the path is relative. |
2484 |
INSTALL="$ac_install_sh" |
2485 |
fi |
2486 |
fi |
2487 |
echo "$ac_t""$INSTALL" 1>&6 |
2488 |
|
2489 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2490 |
# It thinks the first close brace ends the variable substitution. |
2491 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2492 |
|
2493 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2494 |
|
2495 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2496 |
|
2497 |
|
2498 |
|
2499 |
|
2500 |
|
2501 |
|
2502 |
|
2503 |
trap '' 1 2 15 |
2504 |
cat > confcache <<\EOF |
2505 |
# This file is a shell script that caches the results of configure |
2506 |
# tests run on this system so they can be shared between configure |
2507 |
# scripts and configure runs. It is not useful on other systems. |
2508 |
# If it contains results you don't want to keep, you may remove or edit it. |
2509 |
# |
2510 |
# By default, configure uses ./config.cache as the cache file, |
2511 |
# creating it if it does not exist already. You can give configure |
2512 |
# the --cache-file=FILE option to use a different cache file; that is |
2513 |
# what configure does when it calls configure scripts in |
2514 |
# subdirectories, so they share the cache. |
2515 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
2516 |
# config.status only pays attention to the cache file if you give it the |
2517 |
# --recheck option to rerun configure. |
2518 |
# |
2519 |
EOF |
2520 |
# The following way of writing the cache mishandles newlines in values, |
2521 |
# but we know of no workaround that is simple, portable, and efficient. |
2522 |
# So, don't put newlines in cache variables' values. |
2523 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
2524 |
# and sets the high bit in the cache file unless we assign to the vars. |
2525 |
(set) 2>&1 | |
2526 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
2527 |
*ac_space=\ *) |
2528 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
2529 |
# turns \\\\ into \\, and sed turns \\ into \). |
2530 |
sed -n \ |
2531 |
-e "s/'/'\\\\''/g" \ |
2532 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
2533 |
;; |
2534 |
*) |
2535 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
2536 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
2537 |
;; |
2538 |
esac >> confcache |
2539 |
if cmp -s $cache_file confcache; then |
2540 |
: |
2541 |
else |
2542 |
if test -w $cache_file; then |
2543 |
echo "updating cache $cache_file" |
2544 |
cat confcache > $cache_file |
2545 |
else |
2546 |
echo "not updating unwritable cache $cache_file" |
2547 |
fi |
2548 |
fi |
2549 |
rm -f confcache |
2550 |
|
2551 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
2552 |
|
2553 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
2554 |
# Let make expand exec_prefix. |
2555 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
2556 |
|
2557 |
# Any assignment to VPATH causes Sun make to only execute |
2558 |
# the first set of double-colon rules, so remove it if not needed. |
2559 |
# If there is a colon in the path, we need to keep it. |
2560 |
if test "x$srcdir" = x.; then |
2561 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
2562 |
fi |
2563 |
|
2564 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
2565 |
|
2566 |
# Transform confdefs.h into DEFS. |
2567 |
# Protect against shell expansion while executing Makefile rules. |
2568 |
# Protect against Makefile macro expansion. |
2569 |
cat > conftest.defs <<\EOF |
2570 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
2571 |
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
2572 |
s%\[%\\&%g |
2573 |
s%\]%\\&%g |
2574 |
s%\$%$$%g |
2575 |
EOF |
2576 |
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
2577 |
rm -f conftest.defs |
2578 |
|
2579 |
|
2580 |
# Without the "./", some shells look in PATH for config.status. |
2581 |
: ${CONFIG_STATUS=./config.status} |
2582 |
|
2583 |
echo creating $CONFIG_STATUS |
2584 |
rm -f $CONFIG_STATUS |
2585 |
cat > $CONFIG_STATUS <<EOF |
2586 |
#! /bin/sh |
2587 |
# Generated automatically by configure. |
2588 |
# Run this file to recreate the current configuration. |
2589 |
# This directory was configured as follows, |
2590 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2591 |
# |
2592 |
# $0 $ac_configure_args |
2593 |
# |
2594 |
# Compiler output produced by configure, useful for debugging |
2595 |
# configure, is in ./config.log if it exists. |
2596 |
|
2597 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
2598 |
for ac_option |
2599 |
do |
2600 |
case "\$ac_option" in |
2601 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
2602 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
2603 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
2604 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
2605 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
2606 |
exit 0 ;; |
2607 |
-help | --help | --hel | --he | --h) |
2608 |
echo "\$ac_cs_usage"; exit 0 ;; |
2609 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
2610 |
esac |
2611 |
done |
2612 |
|
2613 |
ac_given_srcdir=$srcdir |
2614 |
ac_given_INSTALL="$INSTALL" |
2615 |
|
2616 |
trap 'rm -fr `echo "Makefile cgi-src/Makefile extras/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2617 |
EOF |
2618 |
cat >> $CONFIG_STATUS <<EOF |
2619 |
|
2620 |
# Protect against being on the right side of a sed subst in config.status. |
2621 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2622 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
2623 |
$ac_vpsub |
2624 |
$extrasub |
2625 |
s%@SHELL@%$SHELL%g |
2626 |
s%@CFLAGS@%$CFLAGS%g |
2627 |
s%@CPPFLAGS@%$CPPFLAGS%g |
2628 |
s%@CXXFLAGS@%$CXXFLAGS%g |
2629 |
s%@FFLAGS@%$FFLAGS%g |
2630 |
s%@DEFS@%$DEFS%g |
2631 |
s%@LDFLAGS@%$LDFLAGS%g |
2632 |
s%@LIBS@%$LIBS%g |
2633 |
s%@exec_prefix@%$exec_prefix%g |
2634 |
s%@prefix@%$prefix%g |
2635 |
s%@program_transform_name@%$program_transform_name%g |
2636 |
s%@bindir@%$bindir%g |
2637 |
s%@sbindir@%$sbindir%g |
2638 |
s%@libexecdir@%$libexecdir%g |
2639 |
s%@datadir@%$datadir%g |
2640 |
s%@sysconfdir@%$sysconfdir%g |
2641 |
s%@sharedstatedir@%$sharedstatedir%g |
2642 |
s%@localstatedir@%$localstatedir%g |
2643 |
s%@libdir@%$libdir%g |
2644 |
s%@includedir@%$includedir%g |
2645 |
s%@oldincludedir@%$oldincludedir%g |
2646 |
s%@infodir@%$infodir%g |
2647 |
s%@mandir@%$mandir%g |
2648 |
s%@host@%$host%g |
2649 |
s%@host_alias@%$host_alias%g |
2650 |
s%@host_cpu@%$host_cpu%g |
2651 |
s%@host_vendor@%$host_vendor%g |
2652 |
s%@host_os@%$host_os%g |
2653 |
s%@target@%$target%g |
2654 |
s%@target_alias@%$target_alias%g |
2655 |
s%@target_cpu@%$target_cpu%g |
2656 |
s%@target_vendor@%$target_vendor%g |
2657 |
s%@target_os@%$target_os%g |
2658 |
s%@build@%$build%g |
2659 |
s%@build_alias@%$build_alias%g |
2660 |
s%@build_cpu@%$build_cpu%g |
2661 |
s%@build_vendor@%$build_vendor%g |
2662 |
s%@build_os@%$build_os%g |
2663 |
s%@CC@%$CC%g |
2664 |
s%@CPP@%$CPP%g |
2665 |
s%@LIBOBJS@%$LIBOBJS%g |
2666 |
s%@SET_MAKE@%$SET_MAKE%g |
2667 |
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
2668 |
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
2669 |
s%@INSTALL_DATA@%$INSTALL_DATA%g |
2670 |
s%@V_CCOPT@%$V_CCOPT%g |
2671 |
s%@V_STATICFLAG@%$V_STATICFLAG%g |
2672 |
s%@V_NETLIBS@%$V_NETLIBS%g |
2673 |
|
2674 |
CEOF |
2675 |
EOF |
2676 |
|
2677 |
cat >> $CONFIG_STATUS <<\EOF |
2678 |
|
2679 |
# Split the substitutions into bite-sized pieces for seds with |
2680 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
2681 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
2682 |
ac_file=1 # Number of current file. |
2683 |
ac_beg=1 # First line for current file. |
2684 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
2685 |
ac_more_lines=: |
2686 |
ac_sed_cmds="" |
2687 |
while $ac_more_lines; do |
2688 |
if test $ac_beg -gt 1; then |
2689 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
2690 |
else |
2691 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
2692 |
fi |
2693 |
if test ! -s conftest.s$ac_file; then |
2694 |
ac_more_lines=false |
2695 |
rm -f conftest.s$ac_file |
2696 |
else |
2697 |
if test -z "$ac_sed_cmds"; then |
2698 |
ac_sed_cmds="sed -f conftest.s$ac_file" |
2699 |
else |
2700 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
2701 |
fi |
2702 |
ac_file=`expr $ac_file + 1` |
2703 |
ac_beg=$ac_end |
2704 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
2705 |
fi |
2706 |
done |
2707 |
if test -z "$ac_sed_cmds"; then |
2708 |
ac_sed_cmds=cat |
2709 |
fi |
2710 |
EOF |
2711 |
|
2712 |
cat >> $CONFIG_STATUS <<EOF |
2713 |
|
2714 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile cgi-src/Makefile extras/Makefile"} |
2715 |
EOF |
2716 |
cat >> $CONFIG_STATUS <<\EOF |
2717 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2718 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2719 |
case "$ac_file" in |
2720 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
2721 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2722 |
*) ac_file_in="${ac_file}.in" ;; |
2723 |
esac |
2724 |
|
2725 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
2726 |
|
2727 |
# Remove last slash and all that follows it. Not all systems have dirname. |
2728 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
2729 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
2730 |
# The file is in a subdirectory. |
2731 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
2732 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
2733 |
# A "../" for each directory in $ac_dir_suffix. |
2734 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
2735 |
else |
2736 |
ac_dir_suffix= ac_dots= |
2737 |
fi |
2738 |
|
2739 |
case "$ac_given_srcdir" in |
2740 |
.) srcdir=. |
2741 |
if test -z "$ac_dots"; then top_srcdir=. |
2742 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
2743 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
2744 |
*) # Relative path. |
2745 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
2746 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
2747 |
esac |
2748 |
|
2749 |
case "$ac_given_INSTALL" in |
2750 |
[/$]*) INSTALL="$ac_given_INSTALL" ;; |
2751 |
*) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
2752 |
esac |
2753 |
|
2754 |
echo creating "$ac_file" |
2755 |
rm -f "$ac_file" |
2756 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
2757 |
case "$ac_file" in |
2758 |
*Makefile*) ac_comsub="1i\\ |
2759 |
# $configure_input" ;; |
2760 |
*) ac_comsub= ;; |
2761 |
esac |
2762 |
|
2763 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
2764 |
sed -e "$ac_comsub |
2765 |
s%@configure_input@%$configure_input%g |
2766 |
s%@srcdir@%$srcdir%g |
2767 |
s%@top_srcdir@%$top_srcdir%g |
2768 |
s%@INSTALL@%$INSTALL%g |
2769 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
2770 |
fi; done |
2771 |
rm -f conftest.s* |
2772 |
|
2773 |
EOF |
2774 |
cat >> $CONFIG_STATUS <<EOF |
2775 |
|
2776 |
EOF |
2777 |
cat >> $CONFIG_STATUS <<\EOF |
2778 |
|
2779 |
exit 0 |
2780 |
EOF |
2781 |
chmod +x $CONFIG_STATUS |
2782 |
rm -fr confdefs* $ac_clean_files |
2783 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
2784 |
|