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