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-corba Enable CORBA support"
|
---|
16 | ac_help="$ac_help
|
---|
17 | --with-micodir Use installed MICO directory"
|
---|
18 | ac_help="$ac_help
|
---|
19 | --enable-z3950 Enable Z39.50 client support"
|
---|
20 | ac_help="$ac_help
|
---|
21 | --with-gdbm=dir Use local gdbm library and headers"
|
---|
22 | ac_help="$ac_help
|
---|
23 | --with-dmalloc use dmalloc, as in
|
---|
24 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
|
---|
25 | ac_help="$ac_help
|
---|
26 | --with-regex use older regex in lieu of GNU rx for matching"
|
---|
27 |
|
---|
28 | # Initialize some variables set by options.
|
---|
29 | # The variables have the same names as the options, with
|
---|
30 | # dashes changed to underlines.
|
---|
31 | build=NONE
|
---|
32 | cache_file=./config.cache
|
---|
33 | exec_prefix=NONE
|
---|
34 | host=NONE
|
---|
35 | no_create=
|
---|
36 | nonopt=NONE
|
---|
37 | no_recursion=
|
---|
38 | prefix=NONE
|
---|
39 | program_prefix=NONE
|
---|
40 | program_suffix=NONE
|
---|
41 | program_transform_name=s,x,x,
|
---|
42 | silent=
|
---|
43 | site=
|
---|
44 | srcdir=
|
---|
45 | target=NONE
|
---|
46 | verbose=
|
---|
47 | x_includes=NONE
|
---|
48 | x_libraries=NONE
|
---|
49 | bindir='${exec_prefix}/bin'
|
---|
50 | sbindir='${exec_prefix}/sbin'
|
---|
51 | libexecdir='${exec_prefix}/libexec'
|
---|
52 | datadir='${prefix}/share'
|
---|
53 | sysconfdir='${prefix}/etc'
|
---|
54 | sharedstatedir='${prefix}/com'
|
---|
55 | localstatedir='${prefix}/var'
|
---|
56 | libdir='${exec_prefix}/lib'
|
---|
57 | includedir='${prefix}/include'
|
---|
58 | oldincludedir='/usr/include'
|
---|
59 | infodir='${prefix}/info'
|
---|
60 | mandir='${prefix}/man'
|
---|
61 |
|
---|
62 | # Initialize some other variables.
|
---|
63 | subdirs=
|
---|
64 | MFLAGS= MAKEFLAGS=
|
---|
65 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
66 | # Maximum number of lines to put in a shell here document.
|
---|
67 | ac_max_here_lines=12
|
---|
68 |
|
---|
69 | ac_prev=
|
---|
70 | for ac_option
|
---|
71 | do
|
---|
72 |
|
---|
73 | # If the previous option needs an argument, assign it.
|
---|
74 | if test -n "$ac_prev"; then
|
---|
75 | eval "$ac_prev=\$ac_option"
|
---|
76 | ac_prev=
|
---|
77 | continue
|
---|
78 | fi
|
---|
79 |
|
---|
80 | case "$ac_option" in
|
---|
81 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
82 | *) ac_optarg= ;;
|
---|
83 | esac
|
---|
84 |
|
---|
85 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
86 |
|
---|
87 | case "$ac_option" in
|
---|
88 |
|
---|
89 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
90 | ac_prev=bindir ;;
|
---|
91 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
92 | bindir="$ac_optarg" ;;
|
---|
93 |
|
---|
94 | -build | --build | --buil | --bui | --bu)
|
---|
95 | ac_prev=build ;;
|
---|
96 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
97 | build="$ac_optarg" ;;
|
---|
98 |
|
---|
99 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
100 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
101 | ac_prev=cache_file ;;
|
---|
102 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
103 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
104 | cache_file="$ac_optarg" ;;
|
---|
105 |
|
---|
106 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
107 | ac_prev=datadir ;;
|
---|
108 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
109 | | --da=*)
|
---|
110 | datadir="$ac_optarg" ;;
|
---|
111 |
|
---|
112 | -disable-* | --disable-*)
|
---|
113 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
114 | # Reject names that are not valid shell variable names.
|
---|
115 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
116 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
117 | fi
|
---|
118 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
119 | eval "enable_${ac_feature}=no" ;;
|
---|
120 |
|
---|
121 | -enable-* | --enable-*)
|
---|
122 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
123 | # Reject names that are not valid shell variable names.
|
---|
124 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
126 | fi
|
---|
127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
128 | case "$ac_option" in
|
---|
129 | *=*) ;;
|
---|
130 | *) ac_optarg=yes ;;
|
---|
131 | esac
|
---|
132 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
133 |
|
---|
134 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
135 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
136 | | --exec | --exe | --ex)
|
---|
137 | ac_prev=exec_prefix ;;
|
---|
138 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
139 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
140 | | --exec=* | --exe=* | --ex=*)
|
---|
141 | exec_prefix="$ac_optarg" ;;
|
---|
142 |
|
---|
143 | -gas | --gas | --ga | --g)
|
---|
144 | # Obsolete; use --with-gas.
|
---|
145 | with_gas=yes ;;
|
---|
146 |
|
---|
147 | -help | --help | --hel | --he)
|
---|
148 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
149 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
150 | cat << EOF
|
---|
151 | Usage: configure [options] [host]
|
---|
152 | Options: [defaults in brackets after descriptions]
|
---|
153 | Configuration:
|
---|
154 | --cache-file=FILE cache test results in FILE
|
---|
155 | --help print this message
|
---|
156 | --no-create do not create output files
|
---|
157 | --quiet, --silent do not print \`checking...' messages
|
---|
158 | --version print the version of autoconf that created configure
|
---|
159 | Directory and file names:
|
---|
160 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
161 | [$ac_default_prefix]
|
---|
162 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
163 | [same as prefix]
|
---|
164 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
165 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
166 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
167 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
168 | [PREFIX/share]
|
---|
169 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
170 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
171 | [PREFIX/com]
|
---|
172 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
173 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
174 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
175 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
176 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
177 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
178 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
179 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
180 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
181 | --program-transform-name=PROGRAM
|
---|
182 | run sed PROGRAM on installed program names
|
---|
183 | EOF
|
---|
184 | cat << EOF
|
---|
185 | Host type:
|
---|
186 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
187 | --host=HOST configure for HOST [guessed]
|
---|
188 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
189 | Features and packages:
|
---|
190 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
191 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
192 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
193 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
194 | --x-includes=DIR X include files are in DIR
|
---|
195 | --x-libraries=DIR X library files are in DIR
|
---|
196 | EOF
|
---|
197 | if test -n "$ac_help"; then
|
---|
198 | echo "--enable and --with options recognized:$ac_help"
|
---|
199 | fi
|
---|
200 | exit 0 ;;
|
---|
201 |
|
---|
202 | -host | --host | --hos | --ho)
|
---|
203 | ac_prev=host ;;
|
---|
204 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
205 | host="$ac_optarg" ;;
|
---|
206 |
|
---|
207 | -includedir | --includedir | --includedi | --included | --include \
|
---|
208 | | --includ | --inclu | --incl | --inc)
|
---|
209 | ac_prev=includedir ;;
|
---|
210 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
211 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
212 | includedir="$ac_optarg" ;;
|
---|
213 |
|
---|
214 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
215 | ac_prev=infodir ;;
|
---|
216 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
217 | infodir="$ac_optarg" ;;
|
---|
218 |
|
---|
219 | -libdir | --libdir | --libdi | --libd)
|
---|
220 | ac_prev=libdir ;;
|
---|
221 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
222 | libdir="$ac_optarg" ;;
|
---|
223 |
|
---|
224 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
225 | | --libexe | --libex | --libe)
|
---|
226 | ac_prev=libexecdir ;;
|
---|
227 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
228 | | --libexe=* | --libex=* | --libe=*)
|
---|
229 | libexecdir="$ac_optarg" ;;
|
---|
230 |
|
---|
231 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
232 | | --localstate | --localstat | --localsta | --localst \
|
---|
233 | | --locals | --local | --loca | --loc | --lo)
|
---|
234 | ac_prev=localstatedir ;;
|
---|
235 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
236 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
237 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
238 | localstatedir="$ac_optarg" ;;
|
---|
239 |
|
---|
240 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
241 | ac_prev=mandir ;;
|
---|
242 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
243 | mandir="$ac_optarg" ;;
|
---|
244 |
|
---|
245 | -nfp | --nfp | --nf)
|
---|
246 | # Obsolete; use --without-fp.
|
---|
247 | with_fp=no ;;
|
---|
248 |
|
---|
249 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
250 | | --no-cr | --no-c)
|
---|
251 | no_create=yes ;;
|
---|
252 |
|
---|
253 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
254 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
255 | no_recursion=yes ;;
|
---|
256 |
|
---|
257 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
258 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
259 | | --oldin | --oldi | --old | --ol | --o)
|
---|
260 | ac_prev=oldincludedir ;;
|
---|
261 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
262 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
263 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
264 | oldincludedir="$ac_optarg" ;;
|
---|
265 |
|
---|
266 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
267 | ac_prev=prefix ;;
|
---|
268 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
269 | prefix="$ac_optarg" ;;
|
---|
270 |
|
---|
271 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
272 | | --program-pre | --program-pr | --program-p)
|
---|
273 | ac_prev=program_prefix ;;
|
---|
274 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
275 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
276 | program_prefix="$ac_optarg" ;;
|
---|
277 |
|
---|
278 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
279 | | --program-suf | --program-su | --program-s)
|
---|
280 | ac_prev=program_suffix ;;
|
---|
281 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
282 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
283 | program_suffix="$ac_optarg" ;;
|
---|
284 |
|
---|
285 | -program-transform-name | --program-transform-name \
|
---|
286 | | --program-transform-nam | --program-transform-na \
|
---|
287 | | --program-transform-n | --program-transform- \
|
---|
288 | | --program-transform | --program-transfor \
|
---|
289 | | --program-transfo | --program-transf \
|
---|
290 | | --program-trans | --program-tran \
|
---|
291 | | --progr-tra | --program-tr | --program-t)
|
---|
292 | ac_prev=program_transform_name ;;
|
---|
293 | -program-transform-name=* | --program-transform-name=* \
|
---|
294 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
295 | | --program-transform-n=* | --program-transform-=* \
|
---|
296 | | --program-transform=* | --program-transfor=* \
|
---|
297 | | --program-transfo=* | --program-transf=* \
|
---|
298 | | --program-trans=* | --program-tran=* \
|
---|
299 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
300 | program_transform_name="$ac_optarg" ;;
|
---|
301 |
|
---|
302 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
303 | | -silent | --silent | --silen | --sile | --sil)
|
---|
304 | silent=yes ;;
|
---|
305 |
|
---|
306 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
307 | ac_prev=sbindir ;;
|
---|
308 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
309 | | --sbi=* | --sb=*)
|
---|
310 | sbindir="$ac_optarg" ;;
|
---|
311 |
|
---|
312 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
313 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
314 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
315 | | --sha | --sh)
|
---|
316 | ac_prev=sharedstatedir ;;
|
---|
317 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
318 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
319 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
320 | | --sha=* | --sh=*)
|
---|
321 | sharedstatedir="$ac_optarg" ;;
|
---|
322 |
|
---|
323 | -site | --site | --sit)
|
---|
324 | ac_prev=site ;;
|
---|
325 | -site=* | --site=* | --sit=*)
|
---|
326 | site="$ac_optarg" ;;
|
---|
327 |
|
---|
328 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
329 | ac_prev=srcdir ;;
|
---|
330 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
331 | srcdir="$ac_optarg" ;;
|
---|
332 |
|
---|
333 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
334 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
335 | ac_prev=sysconfdir ;;
|
---|
336 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
337 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
338 | sysconfdir="$ac_optarg" ;;
|
---|
339 |
|
---|
340 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
341 | ac_prev=target ;;
|
---|
342 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
343 | target="$ac_optarg" ;;
|
---|
344 |
|
---|
345 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
346 | verbose=yes ;;
|
---|
347 |
|
---|
348 | -version | --version | --versio | --versi | --vers)
|
---|
349 | echo "configure generated by autoconf version 2.13"
|
---|
350 | exit 0 ;;
|
---|
351 |
|
---|
352 | -with-* | --with-*)
|
---|
353 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
354 | # Reject names that are not valid shell variable names.
|
---|
355 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
357 | fi
|
---|
358 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
359 | case "$ac_option" in
|
---|
360 | *=*) ;;
|
---|
361 | *) ac_optarg=yes ;;
|
---|
362 | esac
|
---|
363 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
364 |
|
---|
365 | -without-* | --without-*)
|
---|
366 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
367 | # Reject names that are not valid shell variable names.
|
---|
368 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
370 | fi
|
---|
371 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
372 | eval "with_${ac_package}=no" ;;
|
---|
373 |
|
---|
374 | --x)
|
---|
375 | # Obsolete; use --with-x.
|
---|
376 | with_x=yes ;;
|
---|
377 |
|
---|
378 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
379 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
380 | ac_prev=x_includes ;;
|
---|
381 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
382 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
383 | x_includes="$ac_optarg" ;;
|
---|
384 |
|
---|
385 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
386 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
387 | ac_prev=x_libraries ;;
|
---|
388 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
389 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
390 | x_libraries="$ac_optarg" ;;
|
---|
391 |
|
---|
392 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
393 | ;;
|
---|
394 |
|
---|
395 | *)
|
---|
396 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
397 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
398 | fi
|
---|
399 | if test "x$nonopt" != xNONE; then
|
---|
400 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
401 | fi
|
---|
402 | nonopt="$ac_option"
|
---|
403 | ;;
|
---|
404 |
|
---|
405 | esac
|
---|
406 | done
|
---|
407 |
|
---|
408 | if test -n "$ac_prev"; then
|
---|
409 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
410 | fi
|
---|
411 |
|
---|
412 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
413 |
|
---|
414 | # File descriptor usage:
|
---|
415 | # 0 standard input
|
---|
416 | # 1 file creation
|
---|
417 | # 2 errors and warnings
|
---|
418 | # 3 some systems may open it to /dev/tty
|
---|
419 | # 4 used on the Kubota Titan
|
---|
420 | # 6 checking for... messages and results
|
---|
421 | # 5 compiler messages saved in config.log
|
---|
422 | if test "$silent" = yes; then
|
---|
423 | exec 6>/dev/null
|
---|
424 | else
|
---|
425 | exec 6>&1
|
---|
426 | fi
|
---|
427 | exec 5>./config.log
|
---|
428 |
|
---|
429 | echo "\
|
---|
430 | This file contains any messages produced by compilers while
|
---|
431 | running configure, to aid debugging if configure makes a mistake.
|
---|
432 | " 1>&5
|
---|
433 |
|
---|
434 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
435 | # Also quote any args containing shell metacharacters.
|
---|
436 | ac_configure_args=
|
---|
437 | for ac_arg
|
---|
438 | do
|
---|
439 | case "$ac_arg" in
|
---|
440 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
441 | | --no-cr | --no-c) ;;
|
---|
442 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
443 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
444 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
445 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
446 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
447 | esac
|
---|
448 | done
|
---|
449 |
|
---|
450 | # NLS nuisances.
|
---|
451 | # Only set these to C if already set. These must not be set unconditionally
|
---|
452 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
453 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
454 | # Non-C LC_CTYPE values break the ctype check.
|
---|
455 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
456 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
457 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
458 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
459 |
|
---|
460 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
461 | rm -rf conftest* confdefs.h
|
---|
462 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
463 | echo > confdefs.h
|
---|
464 |
|
---|
465 | # A filename unique to this package, relative to the directory that
|
---|
466 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
467 | ac_unique_file=lib/text_t.h
|
---|
468 |
|
---|
469 | # Find the source files, if location was not specified.
|
---|
470 | if test -z "$srcdir"; then
|
---|
471 | ac_srcdir_defaulted=yes
|
---|
472 | # Try the directory containing this script, then its parent.
|
---|
473 | ac_prog=$0
|
---|
474 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
475 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
476 | srcdir=$ac_confdir
|
---|
477 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
478 | srcdir=..
|
---|
479 | fi
|
---|
480 | else
|
---|
481 | ac_srcdir_defaulted=no
|
---|
482 | fi
|
---|
483 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
484 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
485 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
486 | else
|
---|
487 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
488 | fi
|
---|
489 | fi
|
---|
490 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
491 |
|
---|
492 | # Prefer explicitly selected file to automatically selected ones.
|
---|
493 | if test -z "$CONFIG_SITE"; then
|
---|
494 | if test "x$prefix" != xNONE; then
|
---|
495 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
496 | else
|
---|
497 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
498 | fi
|
---|
499 | fi
|
---|
500 | for ac_site_file in $CONFIG_SITE; do
|
---|
501 | if test -r "$ac_site_file"; then
|
---|
502 | echo "loading site script $ac_site_file"
|
---|
503 | . "$ac_site_file"
|
---|
504 | fi
|
---|
505 | done
|
---|
506 |
|
---|
507 | if test -r "$cache_file"; then
|
---|
508 | echo "loading cache $cache_file"
|
---|
509 | . $cache_file
|
---|
510 | else
|
---|
511 | echo "creating cache $cache_file"
|
---|
512 | > $cache_file
|
---|
513 | fi
|
---|
514 |
|
---|
515 | ac_ext=c
|
---|
516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
517 | ac_cpp='$CPP $CPPFLAGS'
|
---|
518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
519 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
520 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
521 |
|
---|
522 | ac_exeext=
|
---|
523 | ac_objext=o
|
---|
524 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
525 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
---|
526 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
527 | ac_n= ac_c='
|
---|
528 | ' ac_t=' '
|
---|
529 | else
|
---|
530 | ac_n=-n ac_c= ac_t=
|
---|
531 | fi
|
---|
532 | else
|
---|
533 | ac_n= ac_c='\c' ac_t=
|
---|
534 | fi
|
---|
535 |
|
---|
536 |
|
---|
537 |
|
---|
538 |
|
---|
539 | PACKAGE=gsdl
|
---|
540 | VERSION=2.1
|
---|
541 | cat >> confdefs.h <<EOF
|
---|
542 | #define PACKAGE "$PACKAGE"
|
---|
543 | EOF
|
---|
544 |
|
---|
545 | cat >> confdefs.h <<EOF
|
---|
546 | #define VERSION "$VERSION"
|
---|
547 | EOF
|
---|
548 |
|
---|
549 |
|
---|
550 |
|
---|
551 |
|
---|
552 | USE_FASTCGI=0
|
---|
553 | if test USE_FASTCGI = 1; then
|
---|
554 | cat >> confdefs.h <<\EOF
|
---|
555 | #define USE_FASTCGI 1
|
---|
556 | EOF
|
---|
557 |
|
---|
558 |
|
---|
559 | fi
|
---|
560 |
|
---|
561 | # Check whether --enable-corba or --disable-corba was given.
|
---|
562 | if test "${enable_corba+set}" = set; then
|
---|
563 | enableval="$enable_corba"
|
---|
564 | USE_CORBA=1
|
---|
565 | else
|
---|
566 | USE_CORBA=0
|
---|
567 | fi
|
---|
568 |
|
---|
569 | cat >> confdefs.h <<EOF
|
---|
570 | #define USE_CORBA $USE_CORBA
|
---|
571 | EOF
|
---|
572 |
|
---|
573 |
|
---|
574 |
|
---|
575 | # Check whether --with-micodir or --without-micodir was given.
|
---|
576 | if test "${with_micodir+set}" = set; then
|
---|
577 | withval="$with_micodir"
|
---|
578 | MICO_DIR=$enableval
|
---|
579 | else
|
---|
580 | MICO_DIR="default"
|
---|
581 | fi
|
---|
582 |
|
---|
583 | cat >> confdefs.h <<EOF
|
---|
584 | #define MICO_DIR "$MICO_DIR"
|
---|
585 | EOF
|
---|
586 |
|
---|
587 |
|
---|
588 |
|
---|
589 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
590 | if test "${enable_z3950+set}" = set; then
|
---|
591 | enableval="$enable_z3950"
|
---|
592 | USE_Z3950=1
|
---|
593 | else
|
---|
594 | USE_Z3950=0
|
---|
595 | fi
|
---|
596 |
|
---|
597 | if test USE_Z3950 = 1; then
|
---|
598 | cat >> confdefs.h <<\EOF
|
---|
599 | #define USE_Z3950 $USE_Z3950
|
---|
600 | EOF
|
---|
601 |
|
---|
602 |
|
---|
603 | fi
|
---|
604 |
|
---|
605 | # Check whether --with-gdbm or --without-gdbm was given.
|
---|
606 | if test "${with_gdbm+set}" = set; then
|
---|
607 | withval="$with_gdbm"
|
---|
608 | gdbmdir=$withval
|
---|
609 | fi
|
---|
610 |
|
---|
611 |
|
---|
612 | LDFLAGS=
|
---|
613 | if test -z "$CFLAGS"; then
|
---|
614 | CFLAGS=-O2
|
---|
615 | fi
|
---|
616 |
|
---|
617 |
|
---|
618 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
619 | set dummy gcc; ac_word=$2
|
---|
620 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
621 | echo "configure:622: checking for $ac_word" >&5
|
---|
622 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
623 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
624 | else
|
---|
625 | if test -n "$CC"; then
|
---|
626 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
627 | else
|
---|
628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
629 | ac_dummy="$PATH"
|
---|
630 | for ac_dir in $ac_dummy; do
|
---|
631 | test -z "$ac_dir" && ac_dir=.
|
---|
632 | if test -f $ac_dir/$ac_word; then
|
---|
633 | ac_cv_prog_CC="gcc"
|
---|
634 | break
|
---|
635 | fi
|
---|
636 | done
|
---|
637 | IFS="$ac_save_ifs"
|
---|
638 | fi
|
---|
639 | fi
|
---|
640 | CC="$ac_cv_prog_CC"
|
---|
641 | if test -n "$CC"; then
|
---|
642 | echo "$ac_t""$CC" 1>&6
|
---|
643 | else
|
---|
644 | echo "$ac_t""no" 1>&6
|
---|
645 | fi
|
---|
646 |
|
---|
647 | if test -z "$CC"; then
|
---|
648 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
649 | set dummy cc; ac_word=$2
|
---|
650 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
651 | echo "configure:652: checking for $ac_word" >&5
|
---|
652 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
653 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
654 | else
|
---|
655 | if test -n "$CC"; then
|
---|
656 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
657 | else
|
---|
658 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
659 | ac_prog_rejected=no
|
---|
660 | ac_dummy="$PATH"
|
---|
661 | for ac_dir in $ac_dummy; do
|
---|
662 | test -z "$ac_dir" && ac_dir=.
|
---|
663 | if test -f $ac_dir/$ac_word; then
|
---|
664 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
665 | ac_prog_rejected=yes
|
---|
666 | continue
|
---|
667 | fi
|
---|
668 | ac_cv_prog_CC="cc"
|
---|
669 | break
|
---|
670 | fi
|
---|
671 | done
|
---|
672 | IFS="$ac_save_ifs"
|
---|
673 | if test $ac_prog_rejected = yes; then
|
---|
674 | # We found a bogon in the path, so make sure we never use it.
|
---|
675 | set dummy $ac_cv_prog_CC
|
---|
676 | shift
|
---|
677 | if test $# -gt 0; then
|
---|
678 | # We chose a different compiler from the bogus one.
|
---|
679 | # However, it has the same basename, so the bogon will be chosen
|
---|
680 | # first if we set CC to just the basename; use the full file name.
|
---|
681 | shift
|
---|
682 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
683 | shift
|
---|
684 | ac_cv_prog_CC="$@"
|
---|
685 | fi
|
---|
686 | fi
|
---|
687 | fi
|
---|
688 | fi
|
---|
689 | CC="$ac_cv_prog_CC"
|
---|
690 | if test -n "$CC"; then
|
---|
691 | echo "$ac_t""$CC" 1>&6
|
---|
692 | else
|
---|
693 | echo "$ac_t""no" 1>&6
|
---|
694 | fi
|
---|
695 |
|
---|
696 | if test -z "$CC"; then
|
---|
697 | case "`uname -s`" in
|
---|
698 | *win32* | *WIN32*)
|
---|
699 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
700 | set dummy cl; ac_word=$2
|
---|
701 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
702 | echo "configure:703: checking for $ac_word" >&5
|
---|
703 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
704 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
705 | else
|
---|
706 | if test -n "$CC"; then
|
---|
707 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
708 | else
|
---|
709 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
710 | ac_dummy="$PATH"
|
---|
711 | for ac_dir in $ac_dummy; do
|
---|
712 | test -z "$ac_dir" && ac_dir=.
|
---|
713 | if test -f $ac_dir/$ac_word; then
|
---|
714 | ac_cv_prog_CC="cl"
|
---|
715 | break
|
---|
716 | fi
|
---|
717 | done
|
---|
718 | IFS="$ac_save_ifs"
|
---|
719 | fi
|
---|
720 | fi
|
---|
721 | CC="$ac_cv_prog_CC"
|
---|
722 | if test -n "$CC"; then
|
---|
723 | echo "$ac_t""$CC" 1>&6
|
---|
724 | else
|
---|
725 | echo "$ac_t""no" 1>&6
|
---|
726 | fi
|
---|
727 | ;;
|
---|
728 | esac
|
---|
729 | fi
|
---|
730 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
731 | fi
|
---|
732 |
|
---|
733 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
734 | echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
735 |
|
---|
736 | ac_ext=c
|
---|
737 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
738 | ac_cpp='$CPP $CPPFLAGS'
|
---|
739 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
740 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
741 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
742 |
|
---|
743 | cat > conftest.$ac_ext << EOF
|
---|
744 |
|
---|
745 | #line 746 "configure"
|
---|
746 | #include "confdefs.h"
|
---|
747 |
|
---|
748 | main(){return(0);}
|
---|
749 | EOF
|
---|
750 | if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
751 | ac_cv_prog_cc_works=yes
|
---|
752 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
753 | if (./conftest; exit) 2>/dev/null; then
|
---|
754 | ac_cv_prog_cc_cross=no
|
---|
755 | else
|
---|
756 | ac_cv_prog_cc_cross=yes
|
---|
757 | fi
|
---|
758 | else
|
---|
759 | echo "configure: failed program was:" >&5
|
---|
760 | cat conftest.$ac_ext >&5
|
---|
761 | ac_cv_prog_cc_works=no
|
---|
762 | fi
|
---|
763 | rm -fr conftest*
|
---|
764 | ac_ext=c
|
---|
765 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
766 | ac_cpp='$CPP $CPPFLAGS'
|
---|
767 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
768 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
769 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
770 |
|
---|
771 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
772 | if test $ac_cv_prog_cc_works = no; then
|
---|
773 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
774 | fi
|
---|
775 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
776 | echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
777 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
778 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
779 |
|
---|
780 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
781 | echo "configure:782: checking whether we are using GNU C" >&5
|
---|
782 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
783 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
784 | else
|
---|
785 | cat > conftest.c <<EOF
|
---|
786 | #ifdef __GNUC__
|
---|
787 | yes;
|
---|
788 | #endif
|
---|
789 | EOF
|
---|
790 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
791 | ac_cv_prog_gcc=yes
|
---|
792 | else
|
---|
793 | ac_cv_prog_gcc=no
|
---|
794 | fi
|
---|
795 | fi
|
---|
796 |
|
---|
797 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
798 |
|
---|
799 | if test $ac_cv_prog_gcc = yes; then
|
---|
800 | GCC=yes
|
---|
801 | else
|
---|
802 | GCC=
|
---|
803 | fi
|
---|
804 |
|
---|
805 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
806 | ac_save_CFLAGS="$CFLAGS"
|
---|
807 | CFLAGS=
|
---|
808 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
809 | echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
|
---|
810 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
811 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
812 | else
|
---|
813 | echo 'void f(){}' > conftest.c
|
---|
814 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
815 | ac_cv_prog_cc_g=yes
|
---|
816 | else
|
---|
817 | ac_cv_prog_cc_g=no
|
---|
818 | fi
|
---|
819 | rm -f conftest*
|
---|
820 |
|
---|
821 | fi
|
---|
822 |
|
---|
823 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
824 | if test "$ac_test_CFLAGS" = set; then
|
---|
825 | CFLAGS="$ac_save_CFLAGS"
|
---|
826 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
827 | if test "$GCC" = yes; then
|
---|
828 | CFLAGS="-g -O2"
|
---|
829 | else
|
---|
830 | CFLAGS="-g"
|
---|
831 | fi
|
---|
832 | else
|
---|
833 | if test "$GCC" = yes; then
|
---|
834 | CFLAGS="-O2"
|
---|
835 | else
|
---|
836 | CFLAGS=
|
---|
837 | fi
|
---|
838 | fi
|
---|
839 |
|
---|
840 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
---|
841 | do
|
---|
842 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
843 | set dummy $ac_prog; ac_word=$2
|
---|
844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
845 | echo "configure:846: checking for $ac_word" >&5
|
---|
846 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
847 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
848 | else
|
---|
849 | if test -n "$CXX"; then
|
---|
850 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
851 | else
|
---|
852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
853 | ac_dummy="$PATH"
|
---|
854 | for ac_dir in $ac_dummy; do
|
---|
855 | test -z "$ac_dir" && ac_dir=.
|
---|
856 | if test -f $ac_dir/$ac_word; then
|
---|
857 | ac_cv_prog_CXX="$ac_prog"
|
---|
858 | break
|
---|
859 | fi
|
---|
860 | done
|
---|
861 | IFS="$ac_save_ifs"
|
---|
862 | fi
|
---|
863 | fi
|
---|
864 | CXX="$ac_cv_prog_CXX"
|
---|
865 | if test -n "$CXX"; then
|
---|
866 | echo "$ac_t""$CXX" 1>&6
|
---|
867 | else
|
---|
868 | echo "$ac_t""no" 1>&6
|
---|
869 | fi
|
---|
870 |
|
---|
871 | test -n "$CXX" && break
|
---|
872 | done
|
---|
873 | test -n "$CXX" || CXX="gcc"
|
---|
874 |
|
---|
875 |
|
---|
876 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
877 | echo "configure:878: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
878 |
|
---|
879 | ac_ext=C
|
---|
880 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
881 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
882 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
883 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
884 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
885 |
|
---|
886 | cat > conftest.$ac_ext << EOF
|
---|
887 |
|
---|
888 | #line 889 "configure"
|
---|
889 | #include "confdefs.h"
|
---|
890 |
|
---|
891 | int main(){return(0);}
|
---|
892 | EOF
|
---|
893 | if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
894 | ac_cv_prog_cxx_works=yes
|
---|
895 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
896 | if (./conftest; exit) 2>/dev/null; then
|
---|
897 | ac_cv_prog_cxx_cross=no
|
---|
898 | else
|
---|
899 | ac_cv_prog_cxx_cross=yes
|
---|
900 | fi
|
---|
901 | else
|
---|
902 | echo "configure: failed program was:" >&5
|
---|
903 | cat conftest.$ac_ext >&5
|
---|
904 | ac_cv_prog_cxx_works=no
|
---|
905 | fi
|
---|
906 | rm -fr conftest*
|
---|
907 | ac_ext=c
|
---|
908 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
909 | ac_cpp='$CPP $CPPFLAGS'
|
---|
910 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
911 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
912 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
913 |
|
---|
914 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
915 | if test $ac_cv_prog_cxx_works = no; then
|
---|
916 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
917 | fi
|
---|
918 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
919 | echo "configure:920: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
920 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
921 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
922 |
|
---|
923 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
924 | echo "configure:925: checking whether we are using GNU C++" >&5
|
---|
925 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
926 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
927 | else
|
---|
928 | cat > conftest.C <<EOF
|
---|
929 | #ifdef __GNUC__
|
---|
930 | yes;
|
---|
931 | #endif
|
---|
932 | EOF
|
---|
933 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
934 | ac_cv_prog_gxx=yes
|
---|
935 | else
|
---|
936 | ac_cv_prog_gxx=no
|
---|
937 | fi
|
---|
938 | fi
|
---|
939 |
|
---|
940 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
941 |
|
---|
942 | if test $ac_cv_prog_gxx = yes; then
|
---|
943 | GXX=yes
|
---|
944 | else
|
---|
945 | GXX=
|
---|
946 | fi
|
---|
947 |
|
---|
948 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
---|
949 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
950 | CXXFLAGS=
|
---|
951 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
952 | echo "configure:953: checking whether ${CXX-g++} accepts -g" >&5
|
---|
953 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
954 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
955 | else
|
---|
956 | echo 'void f(){}' > conftest.cc
|
---|
957 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
958 | ac_cv_prog_cxx_g=yes
|
---|
959 | else
|
---|
960 | ac_cv_prog_cxx_g=no
|
---|
961 | fi
|
---|
962 | rm -f conftest*
|
---|
963 |
|
---|
964 | fi
|
---|
965 |
|
---|
966 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
967 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
968 | CXXFLAGS="$ac_save_CXXFLAGS"
|
---|
969 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
970 | if test "$GXX" = yes; then
|
---|
971 | CXXFLAGS="-g -O2"
|
---|
972 | else
|
---|
973 | CXXFLAGS="-g"
|
---|
974 | fi
|
---|
975 | else
|
---|
976 | if test "$GXX" = yes; then
|
---|
977 | CXXFLAGS="-O2"
|
---|
978 | else
|
---|
979 | CXXFLAGS=
|
---|
980 | fi
|
---|
981 | fi
|
---|
982 |
|
---|
983 | for ac_declaration in \
|
---|
984 | ''\
|
---|
985 | '#include <stdlib.h>' \
|
---|
986 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
987 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
988 | 'extern "C" void exit (int) throw ();' \
|
---|
989 | 'extern "C" void exit (int);' \
|
---|
990 | 'void exit (int);'
|
---|
991 | do
|
---|
992 | cat > conftest.$ac_ext <<EOF
|
---|
993 | #line 994 "configure"
|
---|
994 | #include "confdefs.h"
|
---|
995 | #include <stdlib.h>
|
---|
996 | $ac_declaration
|
---|
997 | int main() {
|
---|
998 | exit (42);
|
---|
999 | ; return 0; }
|
---|
1000 | EOF
|
---|
1001 | if { (eval echo configure:1002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1002 | :
|
---|
1003 | else
|
---|
1004 | echo "configure: failed program was:" >&5
|
---|
1005 | cat conftest.$ac_ext >&5
|
---|
1006 | rm -rf conftest*
|
---|
1007 | continue
|
---|
1008 | fi
|
---|
1009 | rm -f conftest*
|
---|
1010 | cat > conftest.$ac_ext <<EOF
|
---|
1011 | #line 1012 "configure"
|
---|
1012 | #include "confdefs.h"
|
---|
1013 | $ac_declaration
|
---|
1014 | int main() {
|
---|
1015 | exit (42);
|
---|
1016 | ; return 0; }
|
---|
1017 | EOF
|
---|
1018 | if { (eval echo configure:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1019 | rm -rf conftest*
|
---|
1020 | break
|
---|
1021 | else
|
---|
1022 | echo "configure: failed program was:" >&5
|
---|
1023 | cat conftest.$ac_ext >&5
|
---|
1024 | fi
|
---|
1025 | rm -f conftest*
|
---|
1026 | done
|
---|
1027 | if test -n "$ac_declaration"; then
|
---|
1028 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
1029 | echo $ac_declaration >>confdefs.h
|
---|
1030 | echo '#endif' >>confdefs.h
|
---|
1031 | fi
|
---|
1032 |
|
---|
1033 |
|
---|
1034 | for ac_prog in gawk mawk nawk awk
|
---|
1035 | do
|
---|
1036 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1037 | set dummy $ac_prog; ac_word=$2
|
---|
1038 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1039 | echo "configure:1040: checking for $ac_word" >&5
|
---|
1040 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
---|
1041 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1042 | else
|
---|
1043 | if test -n "$AWK"; then
|
---|
1044 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
1045 | else
|
---|
1046 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1047 | ac_dummy="$PATH"
|
---|
1048 | for ac_dir in $ac_dummy; do
|
---|
1049 | test -z "$ac_dir" && ac_dir=.
|
---|
1050 | if test -f $ac_dir/$ac_word; then
|
---|
1051 | ac_cv_prog_AWK="$ac_prog"
|
---|
1052 | break
|
---|
1053 | fi
|
---|
1054 | done
|
---|
1055 | IFS="$ac_save_ifs"
|
---|
1056 | fi
|
---|
1057 | fi
|
---|
1058 | AWK="$ac_cv_prog_AWK"
|
---|
1059 | if test -n "$AWK"; then
|
---|
1060 | echo "$ac_t""$AWK" 1>&6
|
---|
1061 | else
|
---|
1062 | echo "$ac_t""no" 1>&6
|
---|
1063 | fi
|
---|
1064 |
|
---|
1065 | test -n "$AWK" && break
|
---|
1066 | done
|
---|
1067 |
|
---|
1068 | for ac_prog in 'bison -y' byacc
|
---|
1069 | do
|
---|
1070 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1071 | set dummy $ac_prog; ac_word=$2
|
---|
1072 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1073 | echo "configure:1074: checking for $ac_word" >&5
|
---|
1074 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
---|
1075 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1076 | else
|
---|
1077 | if test -n "$YACC"; then
|
---|
1078 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
1079 | else
|
---|
1080 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1081 | ac_dummy="$PATH"
|
---|
1082 | for ac_dir in $ac_dummy; do
|
---|
1083 | test -z "$ac_dir" && ac_dir=.
|
---|
1084 | if test -f $ac_dir/$ac_word; then
|
---|
1085 | ac_cv_prog_YACC="$ac_prog"
|
---|
1086 | break
|
---|
1087 | fi
|
---|
1088 | done
|
---|
1089 | IFS="$ac_save_ifs"
|
---|
1090 | fi
|
---|
1091 | fi
|
---|
1092 | YACC="$ac_cv_prog_YACC"
|
---|
1093 | if test -n "$YACC"; then
|
---|
1094 | echo "$ac_t""$YACC" 1>&6
|
---|
1095 | else
|
---|
1096 | echo "$ac_t""no" 1>&6
|
---|
1097 | fi
|
---|
1098 |
|
---|
1099 | test -n "$YACC" && break
|
---|
1100 | done
|
---|
1101 | test -n "$YACC" || YACC="yacc"
|
---|
1102 |
|
---|
1103 | ac_aux_dir=
|
---|
1104 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
1105 | if test -f $ac_dir/install-sh; then
|
---|
1106 | ac_aux_dir=$ac_dir
|
---|
1107 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
1108 | break
|
---|
1109 | elif test -f $ac_dir/install.sh; then
|
---|
1110 | ac_aux_dir=$ac_dir
|
---|
1111 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
1112 | break
|
---|
1113 | fi
|
---|
1114 | done
|
---|
1115 | if test -z "$ac_aux_dir"; then
|
---|
1116 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
1117 | fi
|
---|
1118 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
1119 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
1120 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
1121 |
|
---|
1122 |
|
---|
1123 | # Do some error checking and defaulting for the host and target type.
|
---|
1124 | # The inputs are:
|
---|
1125 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
1126 | #
|
---|
1127 | # The rules are:
|
---|
1128 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
1129 | # same time.
|
---|
1130 | # 2. Host defaults to nonopt.
|
---|
1131 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
1132 | # as determined by config.guess.
|
---|
1133 | # 4. Target and build default to nonopt.
|
---|
1134 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
1135 |
|
---|
1136 | # The aliases save the names the user supplied, while $host etc.
|
---|
1137 | # will get canonicalized.
|
---|
1138 | case $host---$target---$nonopt in
|
---|
1139 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
1140 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
1141 | esac
|
---|
1142 |
|
---|
1143 |
|
---|
1144 | # Make sure we can run config.sub.
|
---|
1145 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
1146 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
1147 | fi
|
---|
1148 |
|
---|
1149 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
1150 | echo "configure:1151: checking host system type" >&5
|
---|
1151 |
|
---|
1152 | host_alias=$host
|
---|
1153 | case "$host_alias" in
|
---|
1154 | NONE)
|
---|
1155 | case $nonopt in
|
---|
1156 | NONE)
|
---|
1157 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
1158 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
1159 | fi ;;
|
---|
1160 | *) host_alias=$nonopt ;;
|
---|
1161 | esac ;;
|
---|
1162 | esac
|
---|
1163 |
|
---|
1164 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
1165 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1166 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1167 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1168 | echo "$ac_t""$host" 1>&6
|
---|
1169 |
|
---|
1170 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
1171 | echo "configure:1172: checking target system type" >&5
|
---|
1172 |
|
---|
1173 | target_alias=$target
|
---|
1174 | case "$target_alias" in
|
---|
1175 | NONE)
|
---|
1176 | case $nonopt in
|
---|
1177 | NONE) target_alias=$host_alias ;;
|
---|
1178 | *) target_alias=$nonopt ;;
|
---|
1179 | esac ;;
|
---|
1180 | esac
|
---|
1181 |
|
---|
1182 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
1183 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1184 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1185 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1186 | echo "$ac_t""$target" 1>&6
|
---|
1187 |
|
---|
1188 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
1189 | echo "configure:1190: checking build system type" >&5
|
---|
1190 |
|
---|
1191 | build_alias=$build
|
---|
1192 | case "$build_alias" in
|
---|
1193 | NONE)
|
---|
1194 | case $nonopt in
|
---|
1195 | NONE) build_alias=$host_alias ;;
|
---|
1196 | *) build_alias=$nonopt ;;
|
---|
1197 | esac ;;
|
---|
1198 | esac
|
---|
1199 |
|
---|
1200 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
1201 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
1202 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
1203 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
1204 | echo "$ac_t""$build" 1>&6
|
---|
1205 |
|
---|
1206 | test "$host_alias" != "$target_alias" &&
|
---|
1207 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
1208 | NONENONEs,x,x, &&
|
---|
1209 | program_prefix=${target_alias}-
|
---|
1210 |
|
---|
1211 | # Find a good install program. We prefer a C program (faster),
|
---|
1212 | # so one script is as good as another. But avoid the broken or
|
---|
1213 | # incompatible versions:
|
---|
1214 | # SysV /etc/install, /usr/sbin/install
|
---|
1215 | # SunOS /usr/etc/install
|
---|
1216 | # IRIX /sbin/install
|
---|
1217 | # AIX /bin/install
|
---|
1218 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1219 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1220 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1221 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1222 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1223 | echo "configure:1224: checking for a BSD compatible install" >&5
|
---|
1224 | if test -z "$INSTALL"; then
|
---|
1225 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1226 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1227 | else
|
---|
1228 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
1229 | for ac_dir in $PATH; do
|
---|
1230 | # Account for people who put trailing slashes in PATH elements.
|
---|
1231 | case "$ac_dir/" in
|
---|
1232 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1233 | *)
|
---|
1234 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1235 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1236 | # by default.
|
---|
1237 | for ac_prog in ginstall scoinst install; do
|
---|
1238 | if test -f $ac_dir/$ac_prog; then
|
---|
1239 | if test $ac_prog = install &&
|
---|
1240 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1241 | # AIX install. It has an incompatible calling convention.
|
---|
1242 | :
|
---|
1243 | else
|
---|
1244 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
1245 | break 2
|
---|
1246 | fi
|
---|
1247 | fi
|
---|
1248 | done
|
---|
1249 | ;;
|
---|
1250 | esac
|
---|
1251 | done
|
---|
1252 | IFS="$ac_save_IFS"
|
---|
1253 |
|
---|
1254 | fi
|
---|
1255 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1256 | INSTALL="$ac_cv_path_install"
|
---|
1257 | else
|
---|
1258 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1259 | # path for INSTALL within a source directory, because that will
|
---|
1260 | # break other packages using the cache if that directory is
|
---|
1261 | # removed, or if the path is relative.
|
---|
1262 | INSTALL="$ac_install_sh"
|
---|
1263 | fi
|
---|
1264 | fi
|
---|
1265 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1266 |
|
---|
1267 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1268 | # It thinks the first close brace ends the variable substitution.
|
---|
1269 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1270 |
|
---|
1271 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1272 |
|
---|
1273 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1274 |
|
---|
1275 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1276 | echo "configure:1277: checking whether ln -s works" >&5
|
---|
1277 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1278 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1279 | else
|
---|
1280 | rm -f conftestdata
|
---|
1281 | if ln -s X conftestdata 2>/dev/null
|
---|
1282 | then
|
---|
1283 | rm -f conftestdata
|
---|
1284 | ac_cv_prog_LN_S="ln -s"
|
---|
1285 | else
|
---|
1286 | ac_cv_prog_LN_S=ln
|
---|
1287 | fi
|
---|
1288 | fi
|
---|
1289 | LN_S="$ac_cv_prog_LN_S"
|
---|
1290 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1291 | echo "$ac_t""yes" 1>&6
|
---|
1292 | else
|
---|
1293 | echo "$ac_t""no" 1>&6
|
---|
1294 | fi
|
---|
1295 |
|
---|
1296 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1297 | echo "configure:1298: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1298 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1299 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1300 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1301 | else
|
---|
1302 | cat > conftestmake <<\EOF
|
---|
1303 | all:
|
---|
1304 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1305 | EOF
|
---|
1306 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1307 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1308 | if test -n "$ac_maketemp"; then
|
---|
1309 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1310 | else
|
---|
1311 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1312 | fi
|
---|
1313 | rm -f conftestmake
|
---|
1314 | fi
|
---|
1315 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1316 | echo "$ac_t""yes" 1>&6
|
---|
1317 | SET_MAKE=
|
---|
1318 | else
|
---|
1319 | echo "$ac_t""no" 1>&6
|
---|
1320 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1321 | fi
|
---|
1322 |
|
---|
1323 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1324 | set dummy ranlib; ac_word=$2
|
---|
1325 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1326 | echo "configure:1327: checking for $ac_word" >&5
|
---|
1327 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1328 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1329 | else
|
---|
1330 | if test -n "$RANLIB"; then
|
---|
1331 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1332 | else
|
---|
1333 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1334 | ac_dummy="$PATH"
|
---|
1335 | for ac_dir in $ac_dummy; do
|
---|
1336 | test -z "$ac_dir" && ac_dir=.
|
---|
1337 | if test -f $ac_dir/$ac_word; then
|
---|
1338 | ac_cv_prog_RANLIB="ranlib"
|
---|
1339 | break
|
---|
1340 | fi
|
---|
1341 | done
|
---|
1342 | IFS="$ac_save_ifs"
|
---|
1343 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1344 | fi
|
---|
1345 | fi
|
---|
1346 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1347 | if test -n "$RANLIB"; then
|
---|
1348 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1349 | else
|
---|
1350 | echo "$ac_t""no" 1>&6
|
---|
1351 | fi
|
---|
1352 |
|
---|
1353 |
|
---|
1354 | #moved CORBA MICO directory test to get version of MICO
|
---|
1355 | if test $USE_CORBA = 1; then
|
---|
1356 |
|
---|
1357 | if test $MICO_DIR = "default"; then
|
---|
1358 | #do something
|
---|
1359 | MICO_INC="-I packages/mico/mico/include"
|
---|
1360 | else
|
---|
1361 | #build the micotest program
|
---|
1362 | MICO_INC= ""
|
---|
1363 | if test $MICO_DIR != yes; then
|
---|
1364 | MICO_INC="-I $MICO_DIR"
|
---|
1365 | fi
|
---|
1366 | fi
|
---|
1367 |
|
---|
1368 | #get MICO_VER value
|
---|
1369 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
1370 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
1371 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
1372 | sh -c "rm micotest"
|
---|
1373 | sh -c "rm micotest.o"
|
---|
1374 |
|
---|
1375 | #do test of MICO_VER
|
---|
1376 | if test MICO_VER != 0; then
|
---|
1377 | cat >> confdefs.h <<\EOF
|
---|
1378 | #define MICO_VER 1
|
---|
1379 | EOF
|
---|
1380 |
|
---|
1381 |
|
---|
1382 | fi
|
---|
1383 | #end USE_CORBA test
|
---|
1384 | fi
|
---|
1385 |
|
---|
1386 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
1387 | echo "configure:1388: checking how to run the C preprocessor" >&5
|
---|
1388 | # On Suns, sometimes $CPP names a directory.
|
---|
1389 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
1390 | CPP=
|
---|
1391 | fi
|
---|
1392 | if test -z "$CPP"; then
|
---|
1393 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
1394 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1395 | else
|
---|
1396 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
1397 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
1398 | CPP="${CC-cc} -E"
|
---|
1399 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
1400 | # not just through cpp.
|
---|
1401 | cat > conftest.$ac_ext <<EOF
|
---|
1402 | #line 1403 "configure"
|
---|
1403 | #include "confdefs.h"
|
---|
1404 | #include <assert.h>
|
---|
1405 | Syntax Error
|
---|
1406 | EOF
|
---|
1407 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1408 | { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1409 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1410 | if test -z "$ac_err"; then
|
---|
1411 | :
|
---|
1412 | else
|
---|
1413 | echo "$ac_err" >&5
|
---|
1414 | echo "configure: failed program was:" >&5
|
---|
1415 | cat conftest.$ac_ext >&5
|
---|
1416 | rm -rf conftest*
|
---|
1417 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
1418 | cat > conftest.$ac_ext <<EOF
|
---|
1419 | #line 1420 "configure"
|
---|
1420 | #include "confdefs.h"
|
---|
1421 | #include <assert.h>
|
---|
1422 | Syntax Error
|
---|
1423 | EOF
|
---|
1424 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1425 | { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1426 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1427 | if test -z "$ac_err"; then
|
---|
1428 | :
|
---|
1429 | else
|
---|
1430 | echo "$ac_err" >&5
|
---|
1431 | echo "configure: failed program was:" >&5
|
---|
1432 | cat conftest.$ac_ext >&5
|
---|
1433 | rm -rf conftest*
|
---|
1434 | CPP="${CC-cc} -nologo -E"
|
---|
1435 | cat > conftest.$ac_ext <<EOF
|
---|
1436 | #line 1437 "configure"
|
---|
1437 | #include "confdefs.h"
|
---|
1438 | #include <assert.h>
|
---|
1439 | Syntax Error
|
---|
1440 | EOF
|
---|
1441 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1442 | { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1443 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1444 | if test -z "$ac_err"; then
|
---|
1445 | :
|
---|
1446 | else
|
---|
1447 | echo "$ac_err" >&5
|
---|
1448 | echo "configure: failed program was:" >&5
|
---|
1449 | cat conftest.$ac_ext >&5
|
---|
1450 | rm -rf conftest*
|
---|
1451 | CPP=/lib/cpp
|
---|
1452 | fi
|
---|
1453 | rm -f conftest*
|
---|
1454 | fi
|
---|
1455 | rm -f conftest*
|
---|
1456 | fi
|
---|
1457 | rm -f conftest*
|
---|
1458 | ac_cv_prog_CPP="$CPP"
|
---|
1459 | fi
|
---|
1460 | CPP="$ac_cv_prog_CPP"
|
---|
1461 | else
|
---|
1462 | ac_cv_prog_CPP="$CPP"
|
---|
1463 | fi
|
---|
1464 | echo "$ac_t""$CPP" 1>&6
|
---|
1465 |
|
---|
1466 | echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
---|
1467 | echo "configure:1468: checking for AIX" >&5
|
---|
1468 | cat > conftest.$ac_ext <<EOF
|
---|
1469 | #line 1470 "configure"
|
---|
1470 | #include "confdefs.h"
|
---|
1471 | #ifdef _AIX
|
---|
1472 | yes
|
---|
1473 | #endif
|
---|
1474 |
|
---|
1475 | EOF
|
---|
1476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1477 | egrep "yes" >/dev/null 2>&1; then
|
---|
1478 | rm -rf conftest*
|
---|
1479 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
---|
1480 | #define _ALL_SOURCE 1
|
---|
1481 | EOF
|
---|
1482 |
|
---|
1483 | else
|
---|
1484 | rm -rf conftest*
|
---|
1485 | echo "$ac_t""no" 1>&6
|
---|
1486 | fi
|
---|
1487 | rm -f conftest*
|
---|
1488 |
|
---|
1489 |
|
---|
1490 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1491 | echo "configure:1492: checking for POSIXized ISC" >&5
|
---|
1492 | if test -d /etc/conf/kconfig.d &&
|
---|
1493 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1494 | then
|
---|
1495 | echo "$ac_t""yes" 1>&6
|
---|
1496 | ISC=yes # If later tests want to check for ISC.
|
---|
1497 | cat >> confdefs.h <<\EOF
|
---|
1498 | #define _POSIX_SOURCE 1
|
---|
1499 | EOF
|
---|
1500 |
|
---|
1501 | if test "$GCC" = yes; then
|
---|
1502 | CC="$CC -posix"
|
---|
1503 | else
|
---|
1504 | CC="$CC -Xp"
|
---|
1505 | fi
|
---|
1506 | else
|
---|
1507 | echo "$ac_t""no" 1>&6
|
---|
1508 | ISC=
|
---|
1509 | fi
|
---|
1510 |
|
---|
1511 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
|
---|
1512 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
|
---|
1513 | echo "configure:1514: checking for minix/config.h" >&5
|
---|
1514 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
1515 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1516 | else
|
---|
1517 | cat > conftest.$ac_ext <<EOF
|
---|
1518 | #line 1519 "configure"
|
---|
1519 | #include "confdefs.h"
|
---|
1520 | #include <minix/config.h>
|
---|
1521 | EOF
|
---|
1522 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1523 | { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1524 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1525 | if test -z "$ac_err"; then
|
---|
1526 | rm -rf conftest*
|
---|
1527 | eval "ac_cv_header_$ac_safe=yes"
|
---|
1528 | else
|
---|
1529 | echo "$ac_err" >&5
|
---|
1530 | echo "configure: failed program was:" >&5
|
---|
1531 | cat conftest.$ac_ext >&5
|
---|
1532 | rm -rf conftest*
|
---|
1533 | eval "ac_cv_header_$ac_safe=no"
|
---|
1534 | fi
|
---|
1535 | rm -f conftest*
|
---|
1536 | fi
|
---|
1537 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
1538 | echo "$ac_t""yes" 1>&6
|
---|
1539 | MINIX=yes
|
---|
1540 | else
|
---|
1541 | echo "$ac_t""no" 1>&6
|
---|
1542 | MINIX=
|
---|
1543 | fi
|
---|
1544 |
|
---|
1545 | if test "$MINIX" = yes; then
|
---|
1546 | cat >> confdefs.h <<\EOF
|
---|
1547 | #define _POSIX_SOURCE 1
|
---|
1548 | EOF
|
---|
1549 |
|
---|
1550 | cat >> confdefs.h <<\EOF
|
---|
1551 | #define _POSIX_1_SOURCE 2
|
---|
1552 | EOF
|
---|
1553 |
|
---|
1554 | cat >> confdefs.h <<\EOF
|
---|
1555 | #define _MINIX 1
|
---|
1556 | EOF
|
---|
1557 |
|
---|
1558 | fi
|
---|
1559 |
|
---|
1560 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
---|
1561 | echo "configure:1562: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
1562 | if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
|
---|
1563 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1564 | else
|
---|
1565 | ac_cv_prog_cc_stdc=no
|
---|
1566 | ac_save_CFLAGS="$CFLAGS"
|
---|
1567 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
1568 | # breaks some systems' header files.
|
---|
1569 | # AIX -qlanglvl=ansi
|
---|
1570 | # Ultrix and OSF/1 -std1
|
---|
1571 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
1572 | # SVR4 -Xc
|
---|
1573 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
1574 | do
|
---|
1575 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
1576 | cat > conftest.$ac_ext <<EOF
|
---|
1577 | #line 1578 "configure"
|
---|
1578 | #include "confdefs.h"
|
---|
1579 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
1580 | choke me
|
---|
1581 | #endif
|
---|
1582 |
|
---|
1583 | int main() {
|
---|
1584 | int test (int i, double x);
|
---|
1585 | struct s1 {int (*f) (int a);};
|
---|
1586 | struct s2 {int (*f) (double a);};
|
---|
1587 | ; return 0; }
|
---|
1588 | EOF
|
---|
1589 | if { (eval echo configure:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1590 | rm -rf conftest*
|
---|
1591 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
1592 | else
|
---|
1593 | echo "configure: failed program was:" >&5
|
---|
1594 | cat conftest.$ac_ext >&5
|
---|
1595 | fi
|
---|
1596 | rm -f conftest*
|
---|
1597 | done
|
---|
1598 | CFLAGS="$ac_save_CFLAGS"
|
---|
1599 |
|
---|
1600 | fi
|
---|
1601 |
|
---|
1602 | echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
|
---|
1603 | case "x$ac_cv_prog_cc_stdc" in
|
---|
1604 | x|xno) ;;
|
---|
1605 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
1606 | esac
|
---|
1607 |
|
---|
1608 |
|
---|
1609 | echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
|
---|
1610 | echo "configure:1611: checking for function prototypes" >&5
|
---|
1611 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
1612 | echo "$ac_t""yes" 1>&6
|
---|
1613 | cat >> confdefs.h <<\EOF
|
---|
1614 | #define PROTOTYPES 1
|
---|
1615 | EOF
|
---|
1616 |
|
---|
1617 | U= ANSI2KNR=
|
---|
1618 | else
|
---|
1619 | echo "$ac_t""no" 1>&6
|
---|
1620 | U=_ ANSI2KNR=ansi2knr
|
---|
1621 | fi
|
---|
1622 |
|
---|
1623 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
1624 | echo "configure:1625: checking for working const" >&5
|
---|
1625 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
1626 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1627 | else
|
---|
1628 | cat > conftest.$ac_ext <<EOF
|
---|
1629 | #line 1630 "configure"
|
---|
1630 | #include "confdefs.h"
|
---|
1631 |
|
---|
1632 | int main() {
|
---|
1633 |
|
---|
1634 | /* Ultrix mips cc rejects this. */
|
---|
1635 | typedef int charset[2]; const charset x;
|
---|
1636 | /* SunOS 4.1.1 cc rejects this. */
|
---|
1637 | char const *const *ccp;
|
---|
1638 | char **p;
|
---|
1639 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
1640 | struct point {int x, y;};
|
---|
1641 | static struct point const zero = {0,0};
|
---|
1642 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
1643 | It does not let you subtract one const X* pointer from another in an arm
|
---|
1644 | of an if-expression whose if-part is not a constant expression */
|
---|
1645 | const char *g = "string";
|
---|
1646 | ccp = &g + (g ? g-g : 0);
|
---|
1647 | /* HPUX 7.0 cc rejects these. */
|
---|
1648 | ++ccp;
|
---|
1649 | p = (char**) ccp;
|
---|
1650 | ccp = (char const *const *) p;
|
---|
1651 | { /* SCO 3.2v4 cc rejects this. */
|
---|
1652 | char *t;
|
---|
1653 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
1654 |
|
---|
1655 | *t++ = 0;
|
---|
1656 | }
|
---|
1657 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
1658 | int x[] = {25, 17};
|
---|
1659 | const int *foo = &x[0];
|
---|
1660 | ++foo;
|
---|
1661 | }
|
---|
1662 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
1663 | typedef const int *iptr;
|
---|
1664 | iptr p = 0;
|
---|
1665 | ++p;
|
---|
1666 | }
|
---|
1667 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
1668 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
1669 | struct s { int j; const int *ap[3]; };
|
---|
1670 | struct s *b; b->j = 5;
|
---|
1671 | }
|
---|
1672 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
1673 | const int foo = 10;
|
---|
1674 | }
|
---|
1675 |
|
---|
1676 | ; return 0; }
|
---|
1677 | EOF
|
---|
1678 | if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1679 | rm -rf conftest*
|
---|
1680 | ac_cv_c_const=yes
|
---|
1681 | else
|
---|
1682 | echo "configure: failed program was:" >&5
|
---|
1683 | cat conftest.$ac_ext >&5
|
---|
1684 | rm -rf conftest*
|
---|
1685 | ac_cv_c_const=no
|
---|
1686 | fi
|
---|
1687 | rm -f conftest*
|
---|
1688 | fi
|
---|
1689 |
|
---|
1690 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
1691 | if test $ac_cv_c_const = no; then
|
---|
1692 | cat >> confdefs.h <<\EOF
|
---|
1693 | #define const
|
---|
1694 | EOF
|
---|
1695 |
|
---|
1696 | fi
|
---|
1697 |
|
---|
1698 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
1699 | echo "configure:1700: checking for ANSI C header files" >&5
|
---|
1700 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
1701 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1702 | else
|
---|
1703 | cat > conftest.$ac_ext <<EOF
|
---|
1704 | #line 1705 "configure"
|
---|
1705 | #include "confdefs.h"
|
---|
1706 | #include <stdlib.h>
|
---|
1707 | #include <stdarg.h>
|
---|
1708 | #include <string.h>
|
---|
1709 | #include <float.h>
|
---|
1710 | EOF
|
---|
1711 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1712 | { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1713 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1714 | if test -z "$ac_err"; then
|
---|
1715 | rm -rf conftest*
|
---|
1716 | ac_cv_header_stdc=yes
|
---|
1717 | else
|
---|
1718 | echo "$ac_err" >&5
|
---|
1719 | echo "configure: failed program was:" >&5
|
---|
1720 | cat conftest.$ac_ext >&5
|
---|
1721 | rm -rf conftest*
|
---|
1722 | ac_cv_header_stdc=no
|
---|
1723 | fi
|
---|
1724 | rm -f conftest*
|
---|
1725 |
|
---|
1726 | if test $ac_cv_header_stdc = yes; then
|
---|
1727 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
1728 | cat > conftest.$ac_ext <<EOF
|
---|
1729 | #line 1730 "configure"
|
---|
1730 | #include "confdefs.h"
|
---|
1731 | #include <string.h>
|
---|
1732 | EOF
|
---|
1733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1734 | egrep "memchr" >/dev/null 2>&1; then
|
---|
1735 | :
|
---|
1736 | else
|
---|
1737 | rm -rf conftest*
|
---|
1738 | ac_cv_header_stdc=no
|
---|
1739 | fi
|
---|
1740 | rm -f conftest*
|
---|
1741 |
|
---|
1742 | fi
|
---|
1743 |
|
---|
1744 | if test $ac_cv_header_stdc = yes; then
|
---|
1745 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
1746 | cat > conftest.$ac_ext <<EOF
|
---|
1747 | #line 1748 "configure"
|
---|
1748 | #include "confdefs.h"
|
---|
1749 | #include <stdlib.h>
|
---|
1750 | EOF
|
---|
1751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1752 | egrep "free" >/dev/null 2>&1; then
|
---|
1753 | :
|
---|
1754 | else
|
---|
1755 | rm -rf conftest*
|
---|
1756 | ac_cv_header_stdc=no
|
---|
1757 | fi
|
---|
1758 | rm -f conftest*
|
---|
1759 |
|
---|
1760 | fi
|
---|
1761 |
|
---|
1762 | if test $ac_cv_header_stdc = yes; then
|
---|
1763 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
1764 | if test "$cross_compiling" = yes; then
|
---|
1765 | :
|
---|
1766 | else
|
---|
1767 | cat > conftest.$ac_ext <<EOF
|
---|
1768 | #line 1769 "configure"
|
---|
1769 | #include "confdefs.h"
|
---|
1770 | #include <ctype.h>
|
---|
1771 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
1772 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
1773 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
1774 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
1775 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
1776 | exit (0); }
|
---|
1777 |
|
---|
1778 | EOF
|
---|
1779 | if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
1780 | then
|
---|
1781 | :
|
---|
1782 | else
|
---|
1783 | echo "configure: failed program was:" >&5
|
---|
1784 | cat conftest.$ac_ext >&5
|
---|
1785 | rm -fr conftest*
|
---|
1786 | ac_cv_header_stdc=no
|
---|
1787 | fi
|
---|
1788 | rm -fr conftest*
|
---|
1789 | fi
|
---|
1790 |
|
---|
1791 | fi
|
---|
1792 | fi
|
---|
1793 |
|
---|
1794 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
1795 | if test $ac_cv_header_stdc = yes; then
|
---|
1796 | cat >> confdefs.h <<\EOF
|
---|
1797 | #define STDC_HEADERS 1
|
---|
1798 | EOF
|
---|
1799 |
|
---|
1800 | fi
|
---|
1801 |
|
---|
1802 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
1803 | echo "configure:1804: checking for off_t" >&5
|
---|
1804 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
1805 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1806 | else
|
---|
1807 | cat > conftest.$ac_ext <<EOF
|
---|
1808 | #line 1809 "configure"
|
---|
1809 | #include "confdefs.h"
|
---|
1810 | #include <sys/types.h>
|
---|
1811 | #if STDC_HEADERS
|
---|
1812 | #include <stdlib.h>
|
---|
1813 | #include <stddef.h>
|
---|
1814 | #endif
|
---|
1815 | EOF
|
---|
1816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1817 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1818 | rm -rf conftest*
|
---|
1819 | ac_cv_type_off_t=yes
|
---|
1820 | else
|
---|
1821 | rm -rf conftest*
|
---|
1822 | ac_cv_type_off_t=no
|
---|
1823 | fi
|
---|
1824 | rm -f conftest*
|
---|
1825 |
|
---|
1826 | fi
|
---|
1827 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
1828 | if test $ac_cv_type_off_t = no; then
|
---|
1829 | cat >> confdefs.h <<\EOF
|
---|
1830 | #define off_t long
|
---|
1831 | EOF
|
---|
1832 |
|
---|
1833 | fi
|
---|
1834 |
|
---|
1835 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
1836 | echo "configure:1837: checking for size_t" >&5
|
---|
1837 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
1838 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1839 | else
|
---|
1840 | cat > conftest.$ac_ext <<EOF
|
---|
1841 | #line 1842 "configure"
|
---|
1842 | #include "confdefs.h"
|
---|
1843 | #include <sys/types.h>
|
---|
1844 | #if STDC_HEADERS
|
---|
1845 | #include <stdlib.h>
|
---|
1846 | #include <stddef.h>
|
---|
1847 | #endif
|
---|
1848 | EOF
|
---|
1849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
1850 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
1851 | rm -rf conftest*
|
---|
1852 | ac_cv_type_size_t=yes
|
---|
1853 | else
|
---|
1854 | rm -rf conftest*
|
---|
1855 | ac_cv_type_size_t=no
|
---|
1856 | fi
|
---|
1857 | rm -f conftest*
|
---|
1858 |
|
---|
1859 | fi
|
---|
1860 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
1861 | if test $ac_cv_type_size_t = no; then
|
---|
1862 | cat >> confdefs.h <<\EOF
|
---|
1863 | #define size_t unsigned
|
---|
1864 | EOF
|
---|
1865 |
|
---|
1866 | fi
|
---|
1867 |
|
---|
1868 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
1869 | echo "configure:1870: checking whether time.h and sys/time.h may both be included" >&5
|
---|
1870 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
1871 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1872 | else
|
---|
1873 | cat > conftest.$ac_ext <<EOF
|
---|
1874 | #line 1875 "configure"
|
---|
1875 | #include "confdefs.h"
|
---|
1876 | #include <sys/types.h>
|
---|
1877 | #include <sys/time.h>
|
---|
1878 | #include <time.h>
|
---|
1879 | int main() {
|
---|
1880 | struct tm *tp;
|
---|
1881 | ; return 0; }
|
---|
1882 | EOF
|
---|
1883 | if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1884 | rm -rf conftest*
|
---|
1885 | ac_cv_header_time=yes
|
---|
1886 | else
|
---|
1887 | echo "configure: failed program was:" >&5
|
---|
1888 | cat conftest.$ac_ext >&5
|
---|
1889 | rm -rf conftest*
|
---|
1890 | ac_cv_header_time=no
|
---|
1891 | fi
|
---|
1892 | rm -f conftest*
|
---|
1893 | fi
|
---|
1894 |
|
---|
1895 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
1896 | if test $ac_cv_header_time = yes; then
|
---|
1897 | cat >> confdefs.h <<\EOF
|
---|
1898 | #define TIME_WITH_SYS_TIME 1
|
---|
1899 | EOF
|
---|
1900 |
|
---|
1901 | fi
|
---|
1902 |
|
---|
1903 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
---|
1904 | echo "configure:1905: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
1905 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
---|
1906 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1907 | else
|
---|
1908 | cat > conftest.$ac_ext <<EOF
|
---|
1909 | #line 1910 "configure"
|
---|
1910 | #include "confdefs.h"
|
---|
1911 | #include <sys/types.h>
|
---|
1912 | #include <time.h>
|
---|
1913 | int main() {
|
---|
1914 | struct tm *tp; tp->tm_sec;
|
---|
1915 | ; return 0; }
|
---|
1916 | EOF
|
---|
1917 | if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1918 | rm -rf conftest*
|
---|
1919 | ac_cv_struct_tm=time.h
|
---|
1920 | else
|
---|
1921 | echo "configure: failed program was:" >&5
|
---|
1922 | cat conftest.$ac_ext >&5
|
---|
1923 | rm -rf conftest*
|
---|
1924 | ac_cv_struct_tm=sys/time.h
|
---|
1925 | fi
|
---|
1926 | rm -f conftest*
|
---|
1927 | fi
|
---|
1928 |
|
---|
1929 | echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
---|
1930 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
1931 | cat >> confdefs.h <<\EOF
|
---|
1932 | #define TM_IN_SYS_TIME 1
|
---|
1933 | EOF
|
---|
1934 |
|
---|
1935 | fi
|
---|
1936 |
|
---|
1937 |
|
---|
1938 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
1939 | cat > conftest.$ac_ext <<EOF
|
---|
1940 | #line 1941 "configure"
|
---|
1941 | #include "confdefs.h"
|
---|
1942 | #include <stdio.h>
|
---|
1943 |
|
---|
1944 | int main() {
|
---|
1945 | FILE *rubbish = popen("yes", "r");
|
---|
1946 | ; return 0; }
|
---|
1947 | EOF
|
---|
1948 | if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1949 | :
|
---|
1950 | else
|
---|
1951 | echo "configure: failed program was:" >&5
|
---|
1952 | cat conftest.$ac_ext >&5
|
---|
1953 | rm -rf conftest*
|
---|
1954 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
1955 | fi
|
---|
1956 | rm -f conftest*
|
---|
1957 | fi
|
---|
1958 |
|
---|
1959 |
|
---|
1960 | echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
|
---|
1961 | echo "configure:1962: checking for main in -lg" >&5
|
---|
1962 | ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
|
---|
1963 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
1964 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1965 | else
|
---|
1966 | ac_save_LIBS="$LIBS"
|
---|
1967 | LIBS="-lg $LIBS"
|
---|
1968 | cat > conftest.$ac_ext <<EOF
|
---|
1969 | #line 1970 "configure"
|
---|
1970 | #include "confdefs.h"
|
---|
1971 |
|
---|
1972 | int main() {
|
---|
1973 | main()
|
---|
1974 | ; return 0; }
|
---|
1975 | EOF
|
---|
1976 | if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1977 | rm -rf conftest*
|
---|
1978 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
1979 | else
|
---|
1980 | echo "configure: failed program was:" >&5
|
---|
1981 | cat conftest.$ac_ext >&5
|
---|
1982 | rm -rf conftest*
|
---|
1983 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
1984 | fi
|
---|
1985 | rm -f conftest*
|
---|
1986 | LIBS="$ac_save_LIBS"
|
---|
1987 |
|
---|
1988 | fi
|
---|
1989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
1990 | echo "$ac_t""yes" 1>&6
|
---|
1991 | ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
1992 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
1993 | cat >> confdefs.h <<EOF
|
---|
1994 | #define $ac_tr_lib 1
|
---|
1995 | EOF
|
---|
1996 |
|
---|
1997 | LIBS="-lg $LIBS"
|
---|
1998 |
|
---|
1999 | else
|
---|
2000 | echo "$ac_t""no" 1>&6
|
---|
2001 | fi
|
---|
2002 |
|
---|
2003 | echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
|
---|
2004 | echo "configure:2005: checking for main in -lgdbm" >&5
|
---|
2005 | ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
|
---|
2006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2007 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2008 | else
|
---|
2009 | ac_save_LIBS="$LIBS"
|
---|
2010 | LIBS="-lgdbm $LIBS"
|
---|
2011 | cat > conftest.$ac_ext <<EOF
|
---|
2012 | #line 2013 "configure"
|
---|
2013 | #include "confdefs.h"
|
---|
2014 |
|
---|
2015 | int main() {
|
---|
2016 | main()
|
---|
2017 | ; return 0; }
|
---|
2018 | EOF
|
---|
2019 | if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2020 | rm -rf conftest*
|
---|
2021 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2022 | else
|
---|
2023 | echo "configure: failed program was:" >&5
|
---|
2024 | cat conftest.$ac_ext >&5
|
---|
2025 | rm -rf conftest*
|
---|
2026 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2027 | fi
|
---|
2028 | rm -f conftest*
|
---|
2029 | LIBS="$ac_save_LIBS"
|
---|
2030 |
|
---|
2031 | fi
|
---|
2032 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2033 | echo "$ac_t""yes" 1>&6
|
---|
2034 | ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
2035 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
2036 | cat >> confdefs.h <<EOF
|
---|
2037 | #define $ac_tr_lib 1
|
---|
2038 | EOF
|
---|
2039 |
|
---|
2040 | LIBS="-lgdbm $LIBS"
|
---|
2041 |
|
---|
2042 | else
|
---|
2043 | echo "$ac_t""no" 1>&6
|
---|
2044 | fi
|
---|
2045 |
|
---|
2046 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
---|
2047 | echo "configure:2048: checking for main in -lm" >&5
|
---|
2048 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
---|
2049 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2050 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2051 | else
|
---|
2052 | ac_save_LIBS="$LIBS"
|
---|
2053 | LIBS="-lm $LIBS"
|
---|
2054 | cat > conftest.$ac_ext <<EOF
|
---|
2055 | #line 2056 "configure"
|
---|
2056 | #include "confdefs.h"
|
---|
2057 |
|
---|
2058 | int main() {
|
---|
2059 | main()
|
---|
2060 | ; return 0; }
|
---|
2061 | EOF
|
---|
2062 | if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2063 | rm -rf conftest*
|
---|
2064 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2065 | else
|
---|
2066 | echo "configure: failed program was:" >&5
|
---|
2067 | cat conftest.$ac_ext >&5
|
---|
2068 | rm -rf conftest*
|
---|
2069 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2070 | fi
|
---|
2071 | rm -f conftest*
|
---|
2072 | LIBS="$ac_save_LIBS"
|
---|
2073 |
|
---|
2074 | fi
|
---|
2075 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2076 | echo "$ac_t""yes" 1>&6
|
---|
2077 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
2078 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
2079 | cat >> confdefs.h <<EOF
|
---|
2080 | #define $ac_tr_lib 1
|
---|
2081 | EOF
|
---|
2082 |
|
---|
2083 | LIBS="-lm $LIBS"
|
---|
2084 |
|
---|
2085 | else
|
---|
2086 | echo "$ac_t""no" 1>&6
|
---|
2087 | fi
|
---|
2088 |
|
---|
2089 | echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
|
---|
2090 | echo "configure:2091: checking for main in -lstdc++" >&5
|
---|
2091 | ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
|
---|
2092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2093 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2094 | else
|
---|
2095 | ac_save_LIBS="$LIBS"
|
---|
2096 | LIBS="-lstdc++ $LIBS"
|
---|
2097 | cat > conftest.$ac_ext <<EOF
|
---|
2098 | #line 2099 "configure"
|
---|
2099 | #include "confdefs.h"
|
---|
2100 |
|
---|
2101 | int main() {
|
---|
2102 | main()
|
---|
2103 | ; return 0; }
|
---|
2104 | EOF
|
---|
2105 | if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2106 | rm -rf conftest*
|
---|
2107 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2108 | else
|
---|
2109 | echo "configure: failed program was:" >&5
|
---|
2110 | cat conftest.$ac_ext >&5
|
---|
2111 | rm -rf conftest*
|
---|
2112 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2113 | fi
|
---|
2114 | rm -f conftest*
|
---|
2115 | LIBS="$ac_save_LIBS"
|
---|
2116 |
|
---|
2117 | fi
|
---|
2118 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2119 | echo "$ac_t""yes" 1>&6
|
---|
2120 | ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
2121 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
2122 | cat >> confdefs.h <<EOF
|
---|
2123 | #define $ac_tr_lib 1
|
---|
2124 | EOF
|
---|
2125 |
|
---|
2126 | LIBS="-lstdc++ $LIBS"
|
---|
2127 |
|
---|
2128 | else
|
---|
2129 | echo "$ac_t""no" 1>&6
|
---|
2130 | fi
|
---|
2131 |
|
---|
2132 | echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
|
---|
2133 | echo "configure:2134: checking for main in -lcrypt" >&5
|
---|
2134 | ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
|
---|
2135 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2136 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2137 | else
|
---|
2138 | ac_save_LIBS="$LIBS"
|
---|
2139 | LIBS="-lcrypt $LIBS"
|
---|
2140 | cat > conftest.$ac_ext <<EOF
|
---|
2141 | #line 2142 "configure"
|
---|
2142 | #include "confdefs.h"
|
---|
2143 |
|
---|
2144 | int main() {
|
---|
2145 | main()
|
---|
2146 | ; return 0; }
|
---|
2147 | EOF
|
---|
2148 | if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2149 | rm -rf conftest*
|
---|
2150 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2151 | else
|
---|
2152 | echo "configure: failed program was:" >&5
|
---|
2153 | cat conftest.$ac_ext >&5
|
---|
2154 | rm -rf conftest*
|
---|
2155 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2156 | fi
|
---|
2157 | rm -f conftest*
|
---|
2158 | LIBS="$ac_save_LIBS"
|
---|
2159 |
|
---|
2160 | fi
|
---|
2161 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2162 | echo "$ac_t""yes" 1>&6
|
---|
2163 | ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
---|
2164 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
---|
2165 | cat >> confdefs.h <<EOF
|
---|
2166 | #define $ac_tr_lib 1
|
---|
2167 | EOF
|
---|
2168 |
|
---|
2169 | LIBS="-lcrypt $LIBS"
|
---|
2170 |
|
---|
2171 | else
|
---|
2172 | echo "$ac_t""no" 1>&6
|
---|
2173 | fi
|
---|
2174 |
|
---|
2175 |
|
---|
2176 |
|
---|
2177 | ac_header_dirent=no
|
---|
2178 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
2179 | do
|
---|
2180 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
2181 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
2182 | echo "configure:2183: checking for $ac_hdr that defines DIR" >&5
|
---|
2183 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
2184 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2185 | else
|
---|
2186 | cat > conftest.$ac_ext <<EOF
|
---|
2187 | #line 2188 "configure"
|
---|
2188 | #include "confdefs.h"
|
---|
2189 | #include <sys/types.h>
|
---|
2190 | #include <$ac_hdr>
|
---|
2191 | int main() {
|
---|
2192 | DIR *dirp = 0;
|
---|
2193 | ; return 0; }
|
---|
2194 | EOF
|
---|
2195 | if { (eval echo configure:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2196 | rm -rf conftest*
|
---|
2197 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
2198 | else
|
---|
2199 | echo "configure: failed program was:" >&5
|
---|
2200 | cat conftest.$ac_ext >&5
|
---|
2201 | rm -rf conftest*
|
---|
2202 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
2203 | fi
|
---|
2204 | rm -f conftest*
|
---|
2205 | fi
|
---|
2206 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
2207 | echo "$ac_t""yes" 1>&6
|
---|
2208 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
2209 | cat >> confdefs.h <<EOF
|
---|
2210 | #define $ac_tr_hdr 1
|
---|
2211 | EOF
|
---|
2212 | ac_header_dirent=$ac_hdr; break
|
---|
2213 | else
|
---|
2214 | echo "$ac_t""no" 1>&6
|
---|
2215 | fi
|
---|
2216 | done
|
---|
2217 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
2218 | if test $ac_header_dirent = dirent.h; then
|
---|
2219 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
2220 | echo "configure:2221: checking for opendir in -ldir" >&5
|
---|
2221 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
2222 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2223 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2224 | else
|
---|
2225 | ac_save_LIBS="$LIBS"
|
---|
2226 | LIBS="-ldir $LIBS"
|
---|
2227 | cat > conftest.$ac_ext <<EOF
|
---|
2228 | #line 2229 "configure"
|
---|
2229 | #include "confdefs.h"
|
---|
2230 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2231 | /* We use char because int might match the return type of a gcc2
|
---|
2232 | builtin and then its argument prototype would still apply. */
|
---|
2233 | char opendir();
|
---|
2234 |
|
---|
2235 | int main() {
|
---|
2236 | opendir()
|
---|
2237 | ; return 0; }
|
---|
2238 | EOF
|
---|
2239 | if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2240 | rm -rf conftest*
|
---|
2241 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2242 | else
|
---|
2243 | echo "configure: failed program was:" >&5
|
---|
2244 | cat conftest.$ac_ext >&5
|
---|
2245 | rm -rf conftest*
|
---|
2246 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2247 | fi
|
---|
2248 | rm -f conftest*
|
---|
2249 | LIBS="$ac_save_LIBS"
|
---|
2250 |
|
---|
2251 | fi
|
---|
2252 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2253 | echo "$ac_t""yes" 1>&6
|
---|
2254 | LIBS="$LIBS -ldir"
|
---|
2255 | else
|
---|
2256 | echo "$ac_t""no" 1>&6
|
---|
2257 | fi
|
---|
2258 |
|
---|
2259 | else
|
---|
2260 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
2261 | echo "configure:2262: checking for opendir in -lx" >&5
|
---|
2262 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
2263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
2264 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2265 | else
|
---|
2266 | ac_save_LIBS="$LIBS"
|
---|
2267 | LIBS="-lx $LIBS"
|
---|
2268 | cat > conftest.$ac_ext <<EOF
|
---|
2269 | #line 2270 "configure"
|
---|
2270 | #include "confdefs.h"
|
---|
2271 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2272 | /* We use char because int might match the return type of a gcc2
|
---|
2273 | builtin and then its argument prototype would still apply. */
|
---|
2274 | char opendir();
|
---|
2275 |
|
---|
2276 | int main() {
|
---|
2277 | opendir()
|
---|
2278 | ; return 0; }
|
---|
2279 | EOF
|
---|
2280 | if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2281 | rm -rf conftest*
|
---|
2282 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
2283 | else
|
---|
2284 | echo "configure: failed program was:" >&5
|
---|
2285 | cat conftest.$ac_ext >&5
|
---|
2286 | rm -rf conftest*
|
---|
2287 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
2288 | fi
|
---|
2289 | rm -f conftest*
|
---|
2290 | LIBS="$ac_save_LIBS"
|
---|
2291 |
|
---|
2292 | fi
|
---|
2293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
2294 | echo "$ac_t""yes" 1>&6
|
---|
2295 | LIBS="$LIBS -lx"
|
---|
2296 | else
|
---|
2297 | echo "$ac_t""no" 1>&6
|
---|
2298 | fi
|
---|
2299 |
|
---|
2300 | fi
|
---|
2301 |
|
---|
2302 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2303 | echo "configure:2304: checking for ANSI C header files" >&5
|
---|
2304 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2305 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2306 | else
|
---|
2307 | cat > conftest.$ac_ext <<EOF
|
---|
2308 | #line 2309 "configure"
|
---|
2309 | #include "confdefs.h"
|
---|
2310 | #include <stdlib.h>
|
---|
2311 | #include <stdarg.h>
|
---|
2312 | #include <string.h>
|
---|
2313 | #include <float.h>
|
---|
2314 | EOF
|
---|
2315 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2316 | { (eval echo configure:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2317 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2318 | if test -z "$ac_err"; then
|
---|
2319 | rm -rf conftest*
|
---|
2320 | ac_cv_header_stdc=yes
|
---|
2321 | else
|
---|
2322 | echo "$ac_err" >&5
|
---|
2323 | echo "configure: failed program was:" >&5
|
---|
2324 | cat conftest.$ac_ext >&5
|
---|
2325 | rm -rf conftest*
|
---|
2326 | ac_cv_header_stdc=no
|
---|
2327 | fi
|
---|
2328 | rm -f conftest*
|
---|
2329 |
|
---|
2330 | if test $ac_cv_header_stdc = yes; then
|
---|
2331 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2332 | cat > conftest.$ac_ext <<EOF
|
---|
2333 | #line 2334 "configure"
|
---|
2334 | #include "confdefs.h"
|
---|
2335 | #include <string.h>
|
---|
2336 | EOF
|
---|
2337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2338 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2339 | :
|
---|
2340 | else
|
---|
2341 | rm -rf conftest*
|
---|
2342 | ac_cv_header_stdc=no
|
---|
2343 | fi
|
---|
2344 | rm -f conftest*
|
---|
2345 |
|
---|
2346 | fi
|
---|
2347 |
|
---|
2348 | if test $ac_cv_header_stdc = yes; then
|
---|
2349 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2350 | cat > conftest.$ac_ext <<EOF
|
---|
2351 | #line 2352 "configure"
|
---|
2352 | #include "confdefs.h"
|
---|
2353 | #include <stdlib.h>
|
---|
2354 | EOF
|
---|
2355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2356 | egrep "free" >/dev/null 2>&1; then
|
---|
2357 | :
|
---|
2358 | else
|
---|
2359 | rm -rf conftest*
|
---|
2360 | ac_cv_header_stdc=no
|
---|
2361 | fi
|
---|
2362 | rm -f conftest*
|
---|
2363 |
|
---|
2364 | fi
|
---|
2365 |
|
---|
2366 | if test $ac_cv_header_stdc = yes; then
|
---|
2367 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2368 | if test "$cross_compiling" = yes; then
|
---|
2369 | :
|
---|
2370 | else
|
---|
2371 | cat > conftest.$ac_ext <<EOF
|
---|
2372 | #line 2373 "configure"
|
---|
2373 | #include "confdefs.h"
|
---|
2374 | #include <ctype.h>
|
---|
2375 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2376 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2377 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2378 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2379 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2380 | exit (0); }
|
---|
2381 |
|
---|
2382 | EOF
|
---|
2383 | if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2384 | then
|
---|
2385 | :
|
---|
2386 | else
|
---|
2387 | echo "configure: failed program was:" >&5
|
---|
2388 | cat conftest.$ac_ext >&5
|
---|
2389 | rm -fr conftest*
|
---|
2390 | ac_cv_header_stdc=no
|
---|
2391 | fi
|
---|
2392 | rm -fr conftest*
|
---|
2393 | fi
|
---|
2394 |
|
---|
2395 | fi
|
---|
2396 | fi
|
---|
2397 |
|
---|
2398 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2399 | if test $ac_cv_header_stdc = yes; then
|
---|
2400 | cat >> confdefs.h <<\EOF
|
---|
2401 | #define STDC_HEADERS 1
|
---|
2402 | EOF
|
---|
2403 |
|
---|
2404 | fi
|
---|
2405 |
|
---|
2406 | for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
2407 | do
|
---|
2408 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
2409 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
2410 | echo "configure:2411: checking for $ac_hdr" >&5
|
---|
2411 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
2412 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2413 | else
|
---|
2414 | cat > conftest.$ac_ext <<EOF
|
---|
2415 | #line 2416 "configure"
|
---|
2416 | #include "confdefs.h"
|
---|
2417 | #include <$ac_hdr>
|
---|
2418 | EOF
|
---|
2419 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2420 | { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2421 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2422 | if test -z "$ac_err"; then
|
---|
2423 | rm -rf conftest*
|
---|
2424 | eval "ac_cv_header_$ac_safe=yes"
|
---|
2425 | else
|
---|
2426 | echo "$ac_err" >&5
|
---|
2427 | echo "configure: failed program was:" >&5
|
---|
2428 | cat conftest.$ac_ext >&5
|
---|
2429 | rm -rf conftest*
|
---|
2430 | eval "ac_cv_header_$ac_safe=no"
|
---|
2431 | fi
|
---|
2432 | rm -f conftest*
|
---|
2433 | fi
|
---|
2434 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
2435 | echo "$ac_t""yes" 1>&6
|
---|
2436 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
2437 | cat >> confdefs.h <<EOF
|
---|
2438 | #define $ac_tr_hdr 1
|
---|
2439 | EOF
|
---|
2440 |
|
---|
2441 | else
|
---|
2442 | echo "$ac_t""no" 1>&6
|
---|
2443 | fi
|
---|
2444 | done
|
---|
2445 |
|
---|
2446 | cat > conftest.$ac_ext <<EOF
|
---|
2447 | #line 2448 "configure"
|
---|
2448 | #include "confdefs.h"
|
---|
2449 | #include <stdio.h>
|
---|
2450 | EOF
|
---|
2451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2452 | egrep "fread" >/dev/null 2>&1; then
|
---|
2453 | rm -rf conftest*
|
---|
2454 | cat >> confdefs.h <<\EOF
|
---|
2455 | #define HAVE_FREAD_DECL 1
|
---|
2456 | EOF
|
---|
2457 |
|
---|
2458 | fi
|
---|
2459 | rm -f conftest*
|
---|
2460 |
|
---|
2461 | cat > conftest.$ac_ext <<EOF
|
---|
2462 | #line 2463 "configure"
|
---|
2463 | #include "confdefs.h"
|
---|
2464 | #include <stdio.h>
|
---|
2465 | EOF
|
---|
2466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2467 | egrep "fgetc" >/dev/null 2>&1; then
|
---|
2468 | rm -rf conftest*
|
---|
2469 | cat >> confdefs.h <<\EOF
|
---|
2470 | #define HAVE_FGETC_DECL 1
|
---|
2471 | EOF
|
---|
2472 |
|
---|
2473 | fi
|
---|
2474 | rm -f conftest*
|
---|
2475 |
|
---|
2476 | cat > conftest.$ac_ext <<EOF
|
---|
2477 | #line 2478 "configure"
|
---|
2478 | #include "confdefs.h"
|
---|
2479 | #include <sys/procfs.h>
|
---|
2480 | EOF
|
---|
2481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2482 | egrep "pr_brksize" >/dev/null 2>&1; then
|
---|
2483 | rm -rf conftest*
|
---|
2484 | cat >> confdefs.h <<\EOF
|
---|
2485 | #define HAVE_PR_BRKSIZE 1
|
---|
2486 | EOF
|
---|
2487 |
|
---|
2488 | fi
|
---|
2489 | rm -f conftest*
|
---|
2490 |
|
---|
2491 |
|
---|
2492 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
2493 | # for constant arguments. Useless!
|
---|
2494 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
2495 | echo "configure:2496: checking for working alloca.h" >&5
|
---|
2496 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
2497 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2498 | else
|
---|
2499 | cat > conftest.$ac_ext <<EOF
|
---|
2500 | #line 2501 "configure"
|
---|
2501 | #include "confdefs.h"
|
---|
2502 | #include <alloca.h>
|
---|
2503 | int main() {
|
---|
2504 | char *p = alloca(2 * sizeof(int));
|
---|
2505 | ; return 0; }
|
---|
2506 | EOF
|
---|
2507 | if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2508 | rm -rf conftest*
|
---|
2509 | ac_cv_header_alloca_h=yes
|
---|
2510 | else
|
---|
2511 | echo "configure: failed program was:" >&5
|
---|
2512 | cat conftest.$ac_ext >&5
|
---|
2513 | rm -rf conftest*
|
---|
2514 | ac_cv_header_alloca_h=no
|
---|
2515 | fi
|
---|
2516 | rm -f conftest*
|
---|
2517 | fi
|
---|
2518 |
|
---|
2519 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
2520 | if test $ac_cv_header_alloca_h = yes; then
|
---|
2521 | cat >> confdefs.h <<\EOF
|
---|
2522 | #define HAVE_ALLOCA_H 1
|
---|
2523 | EOF
|
---|
2524 |
|
---|
2525 | fi
|
---|
2526 |
|
---|
2527 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
2528 | echo "configure:2529: checking for alloca" >&5
|
---|
2529 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
2530 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2531 | else
|
---|
2532 | cat > conftest.$ac_ext <<EOF
|
---|
2533 | #line 2534 "configure"
|
---|
2534 | #include "confdefs.h"
|
---|
2535 |
|
---|
2536 | #ifdef __GNUC__
|
---|
2537 | # define alloca __builtin_alloca
|
---|
2538 | #else
|
---|
2539 | # ifdef _MSC_VER
|
---|
2540 | # include <malloc.h>
|
---|
2541 | # define alloca _alloca
|
---|
2542 | # else
|
---|
2543 | # if HAVE_ALLOCA_H
|
---|
2544 | # include <alloca.h>
|
---|
2545 | # else
|
---|
2546 | # ifdef _AIX
|
---|
2547 | #pragma alloca
|
---|
2548 | # else
|
---|
2549 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
2550 | char *alloca ();
|
---|
2551 | # endif
|
---|
2552 | # endif
|
---|
2553 | # endif
|
---|
2554 | # endif
|
---|
2555 | #endif
|
---|
2556 |
|
---|
2557 | int main() {
|
---|
2558 | char *p = (char *) alloca(1);
|
---|
2559 | ; return 0; }
|
---|
2560 | EOF
|
---|
2561 | if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2562 | rm -rf conftest*
|
---|
2563 | ac_cv_func_alloca_works=yes
|
---|
2564 | else
|
---|
2565 | echo "configure: failed program was:" >&5
|
---|
2566 | cat conftest.$ac_ext >&5
|
---|
2567 | rm -rf conftest*
|
---|
2568 | ac_cv_func_alloca_works=no
|
---|
2569 | fi
|
---|
2570 | rm -f conftest*
|
---|
2571 | fi
|
---|
2572 |
|
---|
2573 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
2574 | if test $ac_cv_func_alloca_works = yes; then
|
---|
2575 | cat >> confdefs.h <<\EOF
|
---|
2576 | #define HAVE_ALLOCA 1
|
---|
2577 | EOF
|
---|
2578 |
|
---|
2579 | fi
|
---|
2580 |
|
---|
2581 | if test $ac_cv_func_alloca_works = no; then
|
---|
2582 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
2583 | # that cause trouble. Some versions do not even contain alloca or
|
---|
2584 | # contain a buggy version. If you still want to use their alloca,
|
---|
2585 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
2586 | ALLOCA=alloca.${ac_objext}
|
---|
2587 | cat >> confdefs.h <<\EOF
|
---|
2588 | #define C_ALLOCA 1
|
---|
2589 | EOF
|
---|
2590 |
|
---|
2591 |
|
---|
2592 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
2593 | echo "configure:2594: checking whether alloca needs Cray hooks" >&5
|
---|
2594 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
2595 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2596 | else
|
---|
2597 | cat > conftest.$ac_ext <<EOF
|
---|
2598 | #line 2599 "configure"
|
---|
2599 | #include "confdefs.h"
|
---|
2600 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
2601 | webecray
|
---|
2602 | #else
|
---|
2603 | wenotbecray
|
---|
2604 | #endif
|
---|
2605 |
|
---|
2606 | EOF
|
---|
2607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2608 | egrep "webecray" >/dev/null 2>&1; then
|
---|
2609 | rm -rf conftest*
|
---|
2610 | ac_cv_os_cray=yes
|
---|
2611 | else
|
---|
2612 | rm -rf conftest*
|
---|
2613 | ac_cv_os_cray=no
|
---|
2614 | fi
|
---|
2615 | rm -f conftest*
|
---|
2616 |
|
---|
2617 | fi
|
---|
2618 |
|
---|
2619 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
2620 | if test $ac_cv_os_cray = yes; then
|
---|
2621 | for ac_func in _getb67 GETB67 getb67; do
|
---|
2622 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2623 | echo "configure:2624: checking for $ac_func" >&5
|
---|
2624 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2625 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2626 | else
|
---|
2627 | cat > conftest.$ac_ext <<EOF
|
---|
2628 | #line 2629 "configure"
|
---|
2629 | #include "confdefs.h"
|
---|
2630 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2631 | which can conflict with char $ac_func(); below. */
|
---|
2632 | #include <assert.h>
|
---|
2633 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2634 | /* We use char because int might match the return type of a gcc2
|
---|
2635 | builtin and then its argument prototype would still apply. */
|
---|
2636 | char $ac_func();
|
---|
2637 |
|
---|
2638 | int main() {
|
---|
2639 |
|
---|
2640 | /* The GNU C library defines this for functions which it implements
|
---|
2641 | to always fail with ENOSYS. Some functions are actually named
|
---|
2642 | something starting with __ and the normal name is an alias. */
|
---|
2643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2644 | choke me
|
---|
2645 | #else
|
---|
2646 | $ac_func();
|
---|
2647 | #endif
|
---|
2648 |
|
---|
2649 | ; return 0; }
|
---|
2650 | EOF
|
---|
2651 | if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2652 | rm -rf conftest*
|
---|
2653 | eval "ac_cv_func_$ac_func=yes"
|
---|
2654 | else
|
---|
2655 | echo "configure: failed program was:" >&5
|
---|
2656 | cat conftest.$ac_ext >&5
|
---|
2657 | rm -rf conftest*
|
---|
2658 | eval "ac_cv_func_$ac_func=no"
|
---|
2659 | fi
|
---|
2660 | rm -f conftest*
|
---|
2661 | fi
|
---|
2662 |
|
---|
2663 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2664 | echo "$ac_t""yes" 1>&6
|
---|
2665 | cat >> confdefs.h <<EOF
|
---|
2666 | #define CRAY_STACKSEG_END $ac_func
|
---|
2667 | EOF
|
---|
2668 |
|
---|
2669 | break
|
---|
2670 | else
|
---|
2671 | echo "$ac_t""no" 1>&6
|
---|
2672 | fi
|
---|
2673 |
|
---|
2674 | done
|
---|
2675 | fi
|
---|
2676 |
|
---|
2677 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
2678 | echo "configure:2679: checking stack direction for C alloca" >&5
|
---|
2679 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
2680 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2681 | else
|
---|
2682 | if test "$cross_compiling" = yes; then
|
---|
2683 | ac_cv_c_stack_direction=0
|
---|
2684 | else
|
---|
2685 | cat > conftest.$ac_ext <<EOF
|
---|
2686 | #line 2687 "configure"
|
---|
2687 | #include "confdefs.h"
|
---|
2688 | find_stack_direction ()
|
---|
2689 | {
|
---|
2690 | static char *addr = 0;
|
---|
2691 | auto char dummy;
|
---|
2692 | if (addr == 0)
|
---|
2693 | {
|
---|
2694 | addr = &dummy;
|
---|
2695 | return find_stack_direction ();
|
---|
2696 | }
|
---|
2697 | else
|
---|
2698 | return (&dummy > addr) ? 1 : -1;
|
---|
2699 | }
|
---|
2700 | main ()
|
---|
2701 | {
|
---|
2702 | exit (find_stack_direction() < 0);
|
---|
2703 | }
|
---|
2704 | EOF
|
---|
2705 | if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2706 | then
|
---|
2707 | ac_cv_c_stack_direction=1
|
---|
2708 | else
|
---|
2709 | echo "configure: failed program was:" >&5
|
---|
2710 | cat conftest.$ac_ext >&5
|
---|
2711 | rm -fr conftest*
|
---|
2712 | ac_cv_c_stack_direction=-1
|
---|
2713 | fi
|
---|
2714 | rm -fr conftest*
|
---|
2715 | fi
|
---|
2716 |
|
---|
2717 | fi
|
---|
2718 |
|
---|
2719 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
2720 | cat >> confdefs.h <<EOF
|
---|
2721 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
2722 | EOF
|
---|
2723 |
|
---|
2724 | fi
|
---|
2725 |
|
---|
2726 | if test $ac_cv_prog_gcc = yes; then
|
---|
2727 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
---|
2728 | echo "configure:2729: checking whether ${CC-cc} needs -traditional" >&5
|
---|
2729 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
---|
2730 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2731 | else
|
---|
2732 | ac_pattern="Autoconf.*'x'"
|
---|
2733 | cat > conftest.$ac_ext <<EOF
|
---|
2734 | #line 2735 "configure"
|
---|
2735 | #include "confdefs.h"
|
---|
2736 | #include <sgtty.h>
|
---|
2737 | Autoconf TIOCGETP
|
---|
2738 | EOF
|
---|
2739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2740 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
2741 | rm -rf conftest*
|
---|
2742 | ac_cv_prog_gcc_traditional=yes
|
---|
2743 | else
|
---|
2744 | rm -rf conftest*
|
---|
2745 | ac_cv_prog_gcc_traditional=no
|
---|
2746 | fi
|
---|
2747 | rm -f conftest*
|
---|
2748 |
|
---|
2749 |
|
---|
2750 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
2751 | cat > conftest.$ac_ext <<EOF
|
---|
2752 | #line 2753 "configure"
|
---|
2753 | #include "confdefs.h"
|
---|
2754 | #include <termio.h>
|
---|
2755 | Autoconf TCGETA
|
---|
2756 | EOF
|
---|
2757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2758 | egrep "$ac_pattern" >/dev/null 2>&1; then
|
---|
2759 | rm -rf conftest*
|
---|
2760 | ac_cv_prog_gcc_traditional=yes
|
---|
2761 | fi
|
---|
2762 | rm -f conftest*
|
---|
2763 |
|
---|
2764 | fi
|
---|
2765 | fi
|
---|
2766 |
|
---|
2767 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
---|
2768 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
2769 | CC="$CC -traditional"
|
---|
2770 | fi
|
---|
2771 | fi
|
---|
2772 |
|
---|
2773 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
---|
2774 | echo "configure:2775: checking return type of signal handlers" >&5
|
---|
2775 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
---|
2776 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2777 | else
|
---|
2778 | cat > conftest.$ac_ext <<EOF
|
---|
2779 | #line 2780 "configure"
|
---|
2780 | #include "confdefs.h"
|
---|
2781 | #include <sys/types.h>
|
---|
2782 | #include <signal.h>
|
---|
2783 | #ifdef signal
|
---|
2784 | #undef signal
|
---|
2785 | #endif
|
---|
2786 | #ifdef __cplusplus
|
---|
2787 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
2788 | #else
|
---|
2789 | void (*signal ()) ();
|
---|
2790 | #endif
|
---|
2791 |
|
---|
2792 | int main() {
|
---|
2793 | int i;
|
---|
2794 | ; return 0; }
|
---|
2795 | EOF
|
---|
2796 | if { (eval echo configure:2797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2797 | rm -rf conftest*
|
---|
2798 | ac_cv_type_signal=void
|
---|
2799 | else
|
---|
2800 | echo "configure: failed program was:" >&5
|
---|
2801 | cat conftest.$ac_ext >&5
|
---|
2802 | rm -rf conftest*
|
---|
2803 | ac_cv_type_signal=int
|
---|
2804 | fi
|
---|
2805 | rm -f conftest*
|
---|
2806 | fi
|
---|
2807 |
|
---|
2808 | echo "$ac_t""$ac_cv_type_signal" 1>&6
|
---|
2809 | cat >> confdefs.h <<EOF
|
---|
2810 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
2811 | EOF
|
---|
2812 |
|
---|
2813 |
|
---|
2814 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
---|
2815 | echo "configure:2816: checking for vprintf" >&5
|
---|
2816 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
|
---|
2817 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2818 | else
|
---|
2819 | cat > conftest.$ac_ext <<EOF
|
---|
2820 | #line 2821 "configure"
|
---|
2821 | #include "confdefs.h"
|
---|
2822 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2823 | which can conflict with char vprintf(); below. */
|
---|
2824 | #include <assert.h>
|
---|
2825 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2826 | /* We use char because int might match the return type of a gcc2
|
---|
2827 | builtin and then its argument prototype would still apply. */
|
---|
2828 | char vprintf();
|
---|
2829 |
|
---|
2830 | int main() {
|
---|
2831 |
|
---|
2832 | /* The GNU C library defines this for functions which it implements
|
---|
2833 | to always fail with ENOSYS. Some functions are actually named
|
---|
2834 | something starting with __ and the normal name is an alias. */
|
---|
2835 | #if defined (__stub_vprintf) || defined (__stub___vprintf)
|
---|
2836 | choke me
|
---|
2837 | #else
|
---|
2838 | vprintf();
|
---|
2839 | #endif
|
---|
2840 |
|
---|
2841 | ; return 0; }
|
---|
2842 | EOF
|
---|
2843 | if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2844 | rm -rf conftest*
|
---|
2845 | eval "ac_cv_func_vprintf=yes"
|
---|
2846 | else
|
---|
2847 | echo "configure: failed program was:" >&5
|
---|
2848 | cat conftest.$ac_ext >&5
|
---|
2849 | rm -rf conftest*
|
---|
2850 | eval "ac_cv_func_vprintf=no"
|
---|
2851 | fi
|
---|
2852 | rm -f conftest*
|
---|
2853 | fi
|
---|
2854 |
|
---|
2855 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
---|
2856 | echo "$ac_t""yes" 1>&6
|
---|
2857 | cat >> confdefs.h <<\EOF
|
---|
2858 | #define HAVE_VPRINTF 1
|
---|
2859 | EOF
|
---|
2860 |
|
---|
2861 | else
|
---|
2862 | echo "$ac_t""no" 1>&6
|
---|
2863 | fi
|
---|
2864 |
|
---|
2865 | if test "$ac_cv_func_vprintf" != yes; then
|
---|
2866 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
---|
2867 | echo "configure:2868: checking for _doprnt" >&5
|
---|
2868 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
|
---|
2869 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2870 | else
|
---|
2871 | cat > conftest.$ac_ext <<EOF
|
---|
2872 | #line 2873 "configure"
|
---|
2873 | #include "confdefs.h"
|
---|
2874 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2875 | which can conflict with char _doprnt(); below. */
|
---|
2876 | #include <assert.h>
|
---|
2877 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2878 | /* We use char because int might match the return type of a gcc2
|
---|
2879 | builtin and then its argument prototype would still apply. */
|
---|
2880 | char _doprnt();
|
---|
2881 |
|
---|
2882 | int main() {
|
---|
2883 |
|
---|
2884 | /* The GNU C library defines this for functions which it implements
|
---|
2885 | to always fail with ENOSYS. Some functions are actually named
|
---|
2886 | something starting with __ and the normal name is an alias. */
|
---|
2887 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
2888 | choke me
|
---|
2889 | #else
|
---|
2890 | _doprnt();
|
---|
2891 | #endif
|
---|
2892 |
|
---|
2893 | ; return 0; }
|
---|
2894 | EOF
|
---|
2895 | if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2896 | rm -rf conftest*
|
---|
2897 | eval "ac_cv_func__doprnt=yes"
|
---|
2898 | else
|
---|
2899 | echo "configure: failed program was:" >&5
|
---|
2900 | cat conftest.$ac_ext >&5
|
---|
2901 | rm -rf conftest*
|
---|
2902 | eval "ac_cv_func__doprnt=no"
|
---|
2903 | fi
|
---|
2904 | rm -f conftest*
|
---|
2905 | fi
|
---|
2906 |
|
---|
2907 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
---|
2908 | echo "$ac_t""yes" 1>&6
|
---|
2909 | cat >> confdefs.h <<\EOF
|
---|
2910 | #define HAVE_DOPRNT 1
|
---|
2911 | EOF
|
---|
2912 |
|
---|
2913 | else
|
---|
2914 | echo "$ac_t""no" 1>&6
|
---|
2915 | fi
|
---|
2916 |
|
---|
2917 | fi
|
---|
2918 |
|
---|
2919 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
2920 | do
|
---|
2921 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2922 | echo "configure:2923: checking for $ac_func" >&5
|
---|
2923 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2924 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2925 | else
|
---|
2926 | cat > conftest.$ac_ext <<EOF
|
---|
2927 | #line 2928 "configure"
|
---|
2928 | #include "confdefs.h"
|
---|
2929 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2930 | which can conflict with char $ac_func(); below. */
|
---|
2931 | #include <assert.h>
|
---|
2932 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2933 | /* We use char because int might match the return type of a gcc2
|
---|
2934 | builtin and then its argument prototype would still apply. */
|
---|
2935 | char $ac_func();
|
---|
2936 |
|
---|
2937 | int main() {
|
---|
2938 |
|
---|
2939 | /* The GNU C library defines this for functions which it implements
|
---|
2940 | to always fail with ENOSYS. Some functions are actually named
|
---|
2941 | something starting with __ and the normal name is an alias. */
|
---|
2942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2943 | choke me
|
---|
2944 | #else
|
---|
2945 | $ac_func();
|
---|
2946 | #endif
|
---|
2947 |
|
---|
2948 | ; return 0; }
|
---|
2949 | EOF
|
---|
2950 | if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2951 | rm -rf conftest*
|
---|
2952 | eval "ac_cv_func_$ac_func=yes"
|
---|
2953 | else
|
---|
2954 | echo "configure: failed program was:" >&5
|
---|
2955 | cat conftest.$ac_ext >&5
|
---|
2956 | rm -rf conftest*
|
---|
2957 | eval "ac_cv_func_$ac_func=no"
|
---|
2958 | fi
|
---|
2959 | rm -f conftest*
|
---|
2960 | fi
|
---|
2961 |
|
---|
2962 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2963 | echo "$ac_t""yes" 1>&6
|
---|
2964 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2965 | cat >> confdefs.h <<EOF
|
---|
2966 | #define $ac_tr_func 1
|
---|
2967 | EOF
|
---|
2968 |
|
---|
2969 | else
|
---|
2970 | echo "$ac_t""no" 1>&6
|
---|
2971 | fi
|
---|
2972 | done
|
---|
2973 |
|
---|
2974 | for ac_func in ftruncate strstr strcasecmp
|
---|
2975 | do
|
---|
2976 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2977 | echo "configure:2978: checking for $ac_func" >&5
|
---|
2978 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2979 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2980 | else
|
---|
2981 | cat > conftest.$ac_ext <<EOF
|
---|
2982 | #line 2983 "configure"
|
---|
2983 | #include "confdefs.h"
|
---|
2984 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2985 | which can conflict with char $ac_func(); below. */
|
---|
2986 | #include <assert.h>
|
---|
2987 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2988 | /* We use char because int might match the return type of a gcc2
|
---|
2989 | builtin and then its argument prototype would still apply. */
|
---|
2990 | char $ac_func();
|
---|
2991 |
|
---|
2992 | int main() {
|
---|
2993 |
|
---|
2994 | /* The GNU C library defines this for functions which it implements
|
---|
2995 | to always fail with ENOSYS. Some functions are actually named
|
---|
2996 | something starting with __ and the normal name is an alias. */
|
---|
2997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2998 | choke me
|
---|
2999 | #else
|
---|
3000 | $ac_func();
|
---|
3001 | #endif
|
---|
3002 |
|
---|
3003 | ; return 0; }
|
---|
3004 | EOF
|
---|
3005 | if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3006 | rm -rf conftest*
|
---|
3007 | eval "ac_cv_func_$ac_func=yes"
|
---|
3008 | else
|
---|
3009 | echo "configure: failed program was:" >&5
|
---|
3010 | cat conftest.$ac_ext >&5
|
---|
3011 | rm -rf conftest*
|
---|
3012 | eval "ac_cv_func_$ac_func=no"
|
---|
3013 | fi
|
---|
3014 | rm -f conftest*
|
---|
3015 | fi
|
---|
3016 |
|
---|
3017 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3018 | echo "$ac_t""yes" 1>&6
|
---|
3019 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3020 | cat >> confdefs.h <<EOF
|
---|
3021 | #define $ac_tr_func 1
|
---|
3022 | EOF
|
---|
3023 |
|
---|
3024 | else
|
---|
3025 | echo "$ac_t""no" 1>&6
|
---|
3026 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
---|
3027 | fi
|
---|
3028 | done
|
---|
3029 |
|
---|
3030 |
|
---|
3031 |
|
---|
3032 |
|
---|
3033 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
3034 | # ---------------------------------------------------------------------------
|
---|
3035 | echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
|
---|
3036 | echo "configure:3037: checking for HP-UX needing gmalloc" >&5
|
---|
3037 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
3038 | echo "$ac_t""yes" 1>&6
|
---|
3039 | LIBOBJS="$LIBOBJS gmalloc.o"
|
---|
3040 | cat >> confdefs.h <<\EOF
|
---|
3041 | #define HAVE_VALLOC 1
|
---|
3042 | EOF
|
---|
3043 |
|
---|
3044 | else
|
---|
3045 | echo "$ac_t""no" 1>&6
|
---|
3046 | for ac_func in valloc
|
---|
3047 | do
|
---|
3048 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3049 | echo "configure:3050: checking for $ac_func" >&5
|
---|
3050 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3051 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3052 | else
|
---|
3053 | cat > conftest.$ac_ext <<EOF
|
---|
3054 | #line 3055 "configure"
|
---|
3055 | #include "confdefs.h"
|
---|
3056 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3057 | which can conflict with char $ac_func(); below. */
|
---|
3058 | #include <assert.h>
|
---|
3059 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3060 | /* We use char because int might match the return type of a gcc2
|
---|
3061 | builtin and then its argument prototype would still apply. */
|
---|
3062 | char $ac_func();
|
---|
3063 |
|
---|
3064 | int main() {
|
---|
3065 |
|
---|
3066 | /* The GNU C library defines this for functions which it implements
|
---|
3067 | to always fail with ENOSYS. Some functions are actually named
|
---|
3068 | something starting with __ and the normal name is an alias. */
|
---|
3069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3070 | choke me
|
---|
3071 | #else
|
---|
3072 | $ac_func();
|
---|
3073 | #endif
|
---|
3074 |
|
---|
3075 | ; return 0; }
|
---|
3076 | EOF
|
---|
3077 | if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3078 | rm -rf conftest*
|
---|
3079 | eval "ac_cv_func_$ac_func=yes"
|
---|
3080 | else
|
---|
3081 | echo "configure: failed program was:" >&5
|
---|
3082 | cat conftest.$ac_ext >&5
|
---|
3083 | rm -rf conftest*
|
---|
3084 | eval "ac_cv_func_$ac_func=no"
|
---|
3085 | fi
|
---|
3086 | rm -f conftest*
|
---|
3087 | fi
|
---|
3088 |
|
---|
3089 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3090 | echo "$ac_t""yes" 1>&6
|
---|
3091 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3092 | cat >> confdefs.h <<EOF
|
---|
3093 | #define $ac_tr_func 1
|
---|
3094 | EOF
|
---|
3095 |
|
---|
3096 | else
|
---|
3097 | echo "$ac_t""no" 1>&6
|
---|
3098 | fi
|
---|
3099 | done
|
---|
3100 |
|
---|
3101 | fi
|
---|
3102 |
|
---|
3103 | echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
|
---|
3104 | echo "configure:3105: checking if malloc debugging is wanted" >&5
|
---|
3105 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
3106 | if test "${with_dmalloc+set}" = set; then
|
---|
3107 | withval="$with_dmalloc"
|
---|
3108 | if test "$withval" = yes; then
|
---|
3109 | echo "$ac_t""yes" 1>&6
|
---|
3110 | cat >> confdefs.h <<\EOF
|
---|
3111 | #define WITH_DMALLOC 1
|
---|
3112 | EOF
|
---|
3113 |
|
---|
3114 | LIBS="$LIBS -ldmalloc"
|
---|
3115 | LDFLAGS="$LDFLAGS -g"
|
---|
3116 | else
|
---|
3117 | echo "$ac_t""no" 1>&6
|
---|
3118 | fi
|
---|
3119 | else
|
---|
3120 | echo "$ac_t""no" 1>&6
|
---|
3121 | fi
|
---|
3122 |
|
---|
3123 |
|
---|
3124 | echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
|
---|
3125 | echo "configure:3126: checking which of rx or regex is wanted" >&5
|
---|
3126 | # Check whether --with-regex or --without-regex was given.
|
---|
3127 | if test "${with_regex+set}" = set; then
|
---|
3128 | withval="$with_regex"
|
---|
3129 | if test "$withval" = yes; then
|
---|
3130 | ac_with_regex=1
|
---|
3131 | echo "$ac_t""regex" 1>&6
|
---|
3132 | cat >> confdefs.h <<\EOF
|
---|
3133 | #define WITH_REGEX 1
|
---|
3134 | EOF
|
---|
3135 |
|
---|
3136 | LIBOBJS="$LIBOBJS regex.o"
|
---|
3137 | fi
|
---|
3138 | fi
|
---|
3139 |
|
---|
3140 | if test -z "$ac_with_regex"; then
|
---|
3141 | echo "$ac_t""rx" 1>&6
|
---|
3142 | echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
|
---|
3143 | echo "configure:3144: checking for re_rx_search" >&5
|
---|
3144 | if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
|
---|
3145 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3146 | else
|
---|
3147 | cat > conftest.$ac_ext <<EOF
|
---|
3148 | #line 3149 "configure"
|
---|
3149 | #include "confdefs.h"
|
---|
3150 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3151 | which can conflict with char re_rx_search(); below. */
|
---|
3152 | #include <assert.h>
|
---|
3153 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3154 | /* We use char because int might match the return type of a gcc2
|
---|
3155 | builtin and then its argument prototype would still apply. */
|
---|
3156 | char re_rx_search();
|
---|
3157 |
|
---|
3158 | int main() {
|
---|
3159 |
|
---|
3160 | /* The GNU C library defines this for functions which it implements
|
---|
3161 | to always fail with ENOSYS. Some functions are actually named
|
---|
3162 | something starting with __ and the normal name is an alias. */
|
---|
3163 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
3164 | choke me
|
---|
3165 | #else
|
---|
3166 | re_rx_search();
|
---|
3167 | #endif
|
---|
3168 |
|
---|
3169 | ; return 0; }
|
---|
3170 | EOF
|
---|
3171 | if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3172 | rm -rf conftest*
|
---|
3173 | eval "ac_cv_func_re_rx_search=yes"
|
---|
3174 | else
|
---|
3175 | echo "configure: failed program was:" >&5
|
---|
3176 | cat conftest.$ac_ext >&5
|
---|
3177 | rm -rf conftest*
|
---|
3178 | eval "ac_cv_func_re_rx_search=no"
|
---|
3179 | fi
|
---|
3180 | rm -f conftest*
|
---|
3181 | fi
|
---|
3182 |
|
---|
3183 | if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
|
---|
3184 | echo "$ac_t""yes" 1>&6
|
---|
3185 | :
|
---|
3186 | else
|
---|
3187 | echo "$ac_t""no" 1>&6
|
---|
3188 | LIBOBJS="$LIBOBJS rx.o"
|
---|
3189 | fi
|
---|
3190 |
|
---|
3191 | fi
|
---|
3192 |
|
---|
3193 |
|
---|
3194 | # ---------------------------------------------------------------------------
|
---|
3195 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
3196 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
3197 | fi
|
---|
3198 |
|
---|
3199 |
|
---|
3200 | # ---------------------------------------------------------------------------
|
---|
3201 |
|
---|
3202 | ac_ext=C
|
---|
3203 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3204 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3205 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3206 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3207 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
3208 |
|
---|
3209 |
|
---|
3210 |
|
---|
3211 | echo $ac_n "checking that the GDBM library is available""... $ac_c" 1>&6
|
---|
3212 | echo "configure:3213: checking that the GDBM library is available" >&5
|
---|
3213 | if test ! -z "$gdbmdir" ; then
|
---|
3214 | # look in given directory for header file
|
---|
3215 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
3216 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
3217 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
3218 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
3219 | fi
|
---|
3220 |
|
---|
3221 | # look in given directory for library
|
---|
3222 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
3223 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
3224 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
3225 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
3226 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
3227 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
3228 | fi
|
---|
3229 |
|
---|
3230 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
3231 | echo "$ac_t""$gdbmdir" 1>&6 ;
|
---|
3232 | else
|
---|
3233 | echo "$ac_t""can't find gdbm.h and libgdbm.a in $gdbmdir" 1>&6;
|
---|
3234 | echo $ac_n "checking looking for GDBM library in default locations""... $ac_c" 1>&6
|
---|
3235 | echo "configure:3236: checking looking for GDBM library in default locations" >&5
|
---|
3236 | fi
|
---|
3237 | fi
|
---|
3238 |
|
---|
3239 | # look in default path and in /usr/local
|
---|
3240 | if test -z "$GDBM_INCLUDE" ; then
|
---|
3241 | # try in system directory
|
---|
3242 | cat > conftest.$ac_ext <<EOF
|
---|
3243 | #line 3244 "configure"
|
---|
3244 | #include "confdefs.h"
|
---|
3245 | #include <gdbm.h>
|
---|
3246 |
|
---|
3247 | int main() {
|
---|
3248 |
|
---|
3249 | ; return 0; }
|
---|
3250 | EOF
|
---|
3251 | if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3252 | rm -rf conftest*
|
---|
3253 | success=yes
|
---|
3254 | else
|
---|
3255 | echo "configure: failed program was:" >&5
|
---|
3256 | cat conftest.$ac_ext >&5
|
---|
3257 | rm -rf conftest*
|
---|
3258 | success=no
|
---|
3259 |
|
---|
3260 | fi
|
---|
3261 | rm -f conftest*
|
---|
3262 |
|
---|
3263 | if test $success = "no"; then
|
---|
3264 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
3265 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
3266 | GDBM_INCLUDE=-I/usr/local/include
|
---|
3267 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
3268 | ac_save_LIBS="$LIBS"
|
---|
3269 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
3270 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
3271 | cat > conftest.$ac_ext <<EOF
|
---|
3272 | #line 3273 "configure"
|
---|
3273 | #include "confdefs.h"
|
---|
3274 | #include <gdbm.h>
|
---|
3275 | #include <stdio.h>
|
---|
3276 |
|
---|
3277 | int main() {
|
---|
3278 | printf("%s",gdbm_version);
|
---|
3279 | ; return 0; }
|
---|
3280 | EOF
|
---|
3281 | if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3282 | rm -rf conftest*
|
---|
3283 | success=/usr/local
|
---|
3284 | else
|
---|
3285 | echo "configure: failed program was:" >&5
|
---|
3286 | cat conftest.$ac_ext >&5
|
---|
3287 | rm -rf conftest*
|
---|
3288 | success=no
|
---|
3289 |
|
---|
3290 | fi
|
---|
3291 | rm -f conftest*
|
---|
3292 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3293 | LIBS=$ac_save_LIBS
|
---|
3294 | fi
|
---|
3295 |
|
---|
3296 | echo "$ac_t""$success" 1>&6
|
---|
3297 | if test $success = "no"; then
|
---|
3298 | { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; }
|
---|
3299 | fi
|
---|
3300 | fi
|
---|
3301 | cat >> confdefs.h <<\EOF
|
---|
3302 | #define HAVE_LIBGDBM 1
|
---|
3303 | EOF
|
---|
3304 |
|
---|
3305 |
|
---|
3306 |
|
---|
3307 |
|
---|
3308 |
|
---|
3309 | echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6
|
---|
3310 | echo "configure:3311: checking that Perl 5 is available" >&5
|
---|
3311 | success="no"
|
---|
3312 | pl_path="$PATH"
|
---|
3313 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
3314 | for pl_dir in $pl_path; do
|
---|
3315 | test -z "$pl_dir" && pl_dir=.
|
---|
3316 | if test -x $pl_dir/perl; then
|
---|
3317 | success="yes"
|
---|
3318 | break
|
---|
3319 | fi
|
---|
3320 | done
|
---|
3321 | IFS="$pl_save_ifs"
|
---|
3322 |
|
---|
3323 | if test $success = "yes"; then
|
---|
3324 | try=`perl configtest.pl` || try="0"
|
---|
3325 | try=`expr $try \> 5.000`
|
---|
3326 | if test $try = "1"; then
|
---|
3327 | echo "$ac_t"""yes"" 1>&6
|
---|
3328 | else
|
---|
3329 | success="no"
|
---|
3330 | fi
|
---|
3331 | fi
|
---|
3332 |
|
---|
3333 | if test $success = "no"; then
|
---|
3334 | echo "$ac_t"""no"" 1>&6
|
---|
3335 | { echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
|
---|
3336 | fi
|
---|
3337 |
|
---|
3338 | success=no
|
---|
3339 | echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
|
---|
3340 | echo "configure:3341: checking "whether STL library has known faults"" >&5
|
---|
3341 |
|
---|
3342 | cat > conftest.$ac_ext <<EOF
|
---|
3343 | #line 3344 "configure"
|
---|
3344 | #include "confdefs.h"
|
---|
3345 | #include <vector>
|
---|
3346 |
|
---|
3347 | int main() {
|
---|
3348 |
|
---|
3349 | ; return 0; }
|
---|
3350 | EOF
|
---|
3351 | if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3352 | rm -rf conftest*
|
---|
3353 | success=yes
|
---|
3354 | else
|
---|
3355 | echo "configure: failed program was:" >&5
|
---|
3356 | cat conftest.$ac_ext >&5
|
---|
3357 | fi
|
---|
3358 | rm -f conftest*
|
---|
3359 |
|
---|
3360 | if test $success = "no"; then
|
---|
3361 | cat > conftest.$ac_ext <<EOF
|
---|
3362 | #line 3363 "configure"
|
---|
3363 | #include "confdefs.h"
|
---|
3364 | #include <vector.h>
|
---|
3365 |
|
---|
3366 | int main() {
|
---|
3367 |
|
---|
3368 | ; return 0; }
|
---|
3369 | EOF
|
---|
3370 | if { (eval echo configure:3371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3371 | rm -rf conftest*
|
---|
3372 | success="yes"
|
---|
3373 | else
|
---|
3374 | echo "configure: failed program was:" >&5
|
---|
3375 | cat conftest.$ac_ext >&5
|
---|
3376 | fi
|
---|
3377 | rm -f conftest*
|
---|
3378 | fi
|
---|
3379 |
|
---|
3380 | if test $success = "no"; then
|
---|
3381 | cat > conftest.$ac_ext <<EOF
|
---|
3382 | #line 3383 "configure"
|
---|
3383 | #include "confdefs.h"
|
---|
3384 | #include <ospace\\std\\vector>
|
---|
3385 |
|
---|
3386 | int main() {
|
---|
3387 |
|
---|
3388 | ; return 0; }
|
---|
3389 | EOF
|
---|
3390 | if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3391 | rm -rf conftest*
|
---|
3392 | success="yes"
|
---|
3393 | else
|
---|
3394 | echo "configure: failed program was:" >&5
|
---|
3395 | cat conftest.$ac_ext >&5
|
---|
3396 | fi
|
---|
3397 | rm -f conftest*
|
---|
3398 | fi
|
---|
3399 |
|
---|
3400 | if test $success = yes; then
|
---|
3401 | echo "$ac_t"""no"" 1>&6
|
---|
3402 | else
|
---|
3403 | echo "$ac_t"""yes"" 1>&6
|
---|
3404 | { echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
|
---|
3405 | fi
|
---|
3406 |
|
---|
3407 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
3408 | # check for running bash under cygwin
|
---|
3409 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
3410 | then
|
---|
3411 | gsdlos=windows
|
---|
3412 | fi
|
---|
3413 |
|
---|
3414 |
|
---|
3415 | # ---------------------------------------------------------------------------
|
---|
3416 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
3417 | LIBOBJS="$LIBOBJS xmalloc.o error.o"
|
---|
3418 | fi
|
---|
3419 |
|
---|
3420 | # ---------------------------------------------------------------------------
|
---|
3421 |
|
---|
3422 | moduleDirs=""
|
---|
3423 | MODULEDIRS=""
|
---|
3424 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
3425 | if test -d "$x"; then
|
---|
3426 | d="$x/Makefile.in"
|
---|
3427 | if test -e "$d"; then
|
---|
3428 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
3429 | MODULEDIRS="$MODULEDIRS $x"
|
---|
3430 | fi
|
---|
3431 | fi
|
---|
3432 | done
|
---|
3433 | echo "Making$moduleDirs in modules directory"
|
---|
3434 |
|
---|
3435 |
|
---|
3436 | # ---------------------------------------------------------------------------
|
---|
3437 | ac_configure_args="$ac_configure_args --host=$host --target=$target"
|
---|
3438 | subdirs="packages"
|
---|
3439 |
|
---|
3440 |
|
---|
3441 | # the list of folders in the src folder
|
---|
3442 | srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
|
---|
3443 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
|
---|
3444 | src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
|
---|
3445 |
|
---|
3446 | trap '' 1 2 15
|
---|
3447 | cat > confcache <<\EOF
|
---|
3448 | # This file is a shell script that caches the results of configure
|
---|
3449 | # tests run on this system so they can be shared between configure
|
---|
3450 | # scripts and configure runs. It is not useful on other systems.
|
---|
3451 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
3452 | #
|
---|
3453 | # By default, configure uses ./config.cache as the cache file,
|
---|
3454 | # creating it if it does not exist already. You can give configure
|
---|
3455 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
3456 | # what configure does when it calls configure scripts in
|
---|
3457 | # subdirectories, so they share the cache.
|
---|
3458 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
3459 | # config.status only pays attention to the cache file if you give it the
|
---|
3460 | # --recheck option to rerun configure.
|
---|
3461 | #
|
---|
3462 | EOF
|
---|
3463 | # The following way of writing the cache mishandles newlines in values,
|
---|
3464 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
3465 | # So, don't put newlines in cache variables' values.
|
---|
3466 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
3467 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
3468 | (set) 2>&1 |
|
---|
3469 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
3470 | *ac_space=\ *)
|
---|
3471 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
3472 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
3473 | sed -n \
|
---|
3474 | -e "s/'/'\\\\''/g" \
|
---|
3475 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
3476 | ;;
|
---|
3477 | *)
|
---|
3478 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
3479 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
3480 | ;;
|
---|
3481 | esac >> confcache
|
---|
3482 | if cmp -s $cache_file confcache; then
|
---|
3483 | :
|
---|
3484 | else
|
---|
3485 | if test -w $cache_file; then
|
---|
3486 | echo "updating cache $cache_file"
|
---|
3487 | cat confcache > $cache_file
|
---|
3488 | else
|
---|
3489 | echo "not updating unwritable cache $cache_file"
|
---|
3490 | fi
|
---|
3491 | fi
|
---|
3492 | rm -f confcache
|
---|
3493 |
|
---|
3494 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
3495 |
|
---|
3496 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
3497 | # Let make expand exec_prefix.
|
---|
3498 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
3499 |
|
---|
3500 | # Any assignment to VPATH causes Sun make to only execute
|
---|
3501 | # the first set of double-colon rules, so remove it if not needed.
|
---|
3502 | # If there is a colon in the path, we need to keep it.
|
---|
3503 | if test "x$srcdir" = x.; then
|
---|
3504 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
3505 | fi
|
---|
3506 |
|
---|
3507 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
3508 |
|
---|
3509 | DEFS=-DHAVE_CONFIG_H
|
---|
3510 |
|
---|
3511 | # Without the "./", some shells look in PATH for config.status.
|
---|
3512 | : ${CONFIG_STATUS=./config.status}
|
---|
3513 |
|
---|
3514 | echo creating $CONFIG_STATUS
|
---|
3515 | rm -f $CONFIG_STATUS
|
---|
3516 | cat > $CONFIG_STATUS <<EOF
|
---|
3517 | #! /bin/sh
|
---|
3518 | # Generated automatically by configure.
|
---|
3519 | # Run this file to recreate the current configuration.
|
---|
3520 | # This directory was configured as follows,
|
---|
3521 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
3522 | #
|
---|
3523 | # $0 $ac_configure_args
|
---|
3524 | #
|
---|
3525 | # Compiler output produced by configure, useful for debugging
|
---|
3526 | # configure, is in ./config.log if it exists.
|
---|
3527 |
|
---|
3528 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
3529 | for ac_option
|
---|
3530 | do
|
---|
3531 | case "\$ac_option" in
|
---|
3532 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
3533 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
3534 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
3535 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
3536 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
3537 | exit 0 ;;
|
---|
3538 | -help | --help | --hel | --he | --h)
|
---|
3539 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
3540 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
3541 | esac
|
---|
3542 | done
|
---|
3543 |
|
---|
3544 | ac_given_srcdir=$srcdir
|
---|
3545 | ac_given_INSTALL="$INSTALL"
|
---|
3546 |
|
---|
3547 | trap 'rm -fr `echo "packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
|
---|
3548 | packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
|
---|
3549 | lib/Makefile Makefile $srclist $moduleDirs config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
3550 | EOF
|
---|
3551 | cat >> $CONFIG_STATUS <<EOF
|
---|
3552 |
|
---|
3553 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3554 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
3555 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
3556 | $ac_vpsub
|
---|
3557 | $extrasub
|
---|
3558 | s%@SHELL@%$SHELL%g
|
---|
3559 | s%@CFLAGS@%$CFLAGS%g
|
---|
3560 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
3561 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
3562 | s%@FFLAGS@%$FFLAGS%g
|
---|
3563 | s%@DEFS@%$DEFS%g
|
---|
3564 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
3565 | s%@LIBS@%$LIBS%g
|
---|
3566 | s%@exec_prefix@%$exec_prefix%g
|
---|
3567 | s%@prefix@%$prefix%g
|
---|
3568 | s%@program_transform_name@%$program_transform_name%g
|
---|
3569 | s%@bindir@%$bindir%g
|
---|
3570 | s%@sbindir@%$sbindir%g
|
---|
3571 | s%@libexecdir@%$libexecdir%g
|
---|
3572 | s%@datadir@%$datadir%g
|
---|
3573 | s%@sysconfdir@%$sysconfdir%g
|
---|
3574 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
3575 | s%@localstatedir@%$localstatedir%g
|
---|
3576 | s%@libdir@%$libdir%g
|
---|
3577 | s%@includedir@%$includedir%g
|
---|
3578 | s%@oldincludedir@%$oldincludedir%g
|
---|
3579 | s%@infodir@%$infodir%g
|
---|
3580 | s%@mandir@%$mandir%g
|
---|
3581 | s%@PACKAGE@%$PACKAGE%g
|
---|
3582 | s%@VERSION@%$VERSION%g
|
---|
3583 | s%@USE_FASTCGI@%$USE_FASTCGI%g
|
---|
3584 | s%@USE_CORBA@%$USE_CORBA%g
|
---|
3585 | s%@MICO_DIR@%$MICO_DIR%g
|
---|
3586 | s%@USE_Z3950@%$USE_Z3950%g
|
---|
3587 | s%@CC@%$CC%g
|
---|
3588 | s%@CXX@%$CXX%g
|
---|
3589 | s%@AWK@%$AWK%g
|
---|
3590 | s%@YACC@%$YACC%g
|
---|
3591 | s%@host@%$host%g
|
---|
3592 | s%@host_alias@%$host_alias%g
|
---|
3593 | s%@host_cpu@%$host_cpu%g
|
---|
3594 | s%@host_vendor@%$host_vendor%g
|
---|
3595 | s%@host_os@%$host_os%g
|
---|
3596 | s%@target@%$target%g
|
---|
3597 | s%@target_alias@%$target_alias%g
|
---|
3598 | s%@target_cpu@%$target_cpu%g
|
---|
3599 | s%@target_vendor@%$target_vendor%g
|
---|
3600 | s%@target_os@%$target_os%g
|
---|
3601 | s%@build@%$build%g
|
---|
3602 | s%@build_alias@%$build_alias%g
|
---|
3603 | s%@build_cpu@%$build_cpu%g
|
---|
3604 | s%@build_vendor@%$build_vendor%g
|
---|
3605 | s%@build_os@%$build_os%g
|
---|
3606 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
3607 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
3608 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
3609 | s%@LN_S@%$LN_S%g
|
---|
3610 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
3611 | s%@RANLIB@%$RANLIB%g
|
---|
3612 | s%@MICO_VER@%$MICO_VER%g
|
---|
3613 | s%@CPP@%$CPP%g
|
---|
3614 | s%@U@%$U%g
|
---|
3615 | s%@ANSI2KNR@%$ANSI2KNR%g
|
---|
3616 | s%@ALLOCA@%$ALLOCA%g
|
---|
3617 | s%@LIBOBJS@%$LIBOBJS%g
|
---|
3618 | s%@GDBM_LIBPATH@%$GDBM_LIBPATH%g
|
---|
3619 | s%@GDBM_INCLUDE@%$GDBM_INCLUDE%g
|
---|
3620 | s%@gsdlos@%$gsdlos%g
|
---|
3621 | s%@MODULEDIRS@%$MODULEDIRS%g
|
---|
3622 | s%@subdirs@%$subdirs%g
|
---|
3623 |
|
---|
3624 | CEOF
|
---|
3625 | EOF
|
---|
3626 |
|
---|
3627 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3628 |
|
---|
3629 | # Split the substitutions into bite-sized pieces for seds with
|
---|
3630 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
3631 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
3632 | ac_file=1 # Number of current file.
|
---|
3633 | ac_beg=1 # First line for current file.
|
---|
3634 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
3635 | ac_more_lines=:
|
---|
3636 | ac_sed_cmds=""
|
---|
3637 | while $ac_more_lines; do
|
---|
3638 | if test $ac_beg -gt 1; then
|
---|
3639 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
3640 | else
|
---|
3641 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
3642 | fi
|
---|
3643 | if test ! -s conftest.s$ac_file; then
|
---|
3644 | ac_more_lines=false
|
---|
3645 | rm -f conftest.s$ac_file
|
---|
3646 | else
|
---|
3647 | if test -z "$ac_sed_cmds"; then
|
---|
3648 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
3649 | else
|
---|
3650 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
3651 | fi
|
---|
3652 | ac_file=`expr $ac_file + 1`
|
---|
3653 | ac_beg=$ac_end
|
---|
3654 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
3655 | fi
|
---|
3656 | done
|
---|
3657 | if test -z "$ac_sed_cmds"; then
|
---|
3658 | ac_sed_cmds=cat
|
---|
3659 | fi
|
---|
3660 | EOF
|
---|
3661 |
|
---|
3662 | cat >> $CONFIG_STATUS <<EOF
|
---|
3663 |
|
---|
3664 | CONFIG_FILES=\${CONFIG_FILES-"packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
|
---|
3665 | packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
|
---|
3666 | lib/Makefile Makefile $srclist $moduleDirs"}
|
---|
3667 | EOF
|
---|
3668 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3669 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
3670 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3671 | case "$ac_file" in
|
---|
3672 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3673 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3674 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3675 | esac
|
---|
3676 |
|
---|
3677 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
3678 |
|
---|
3679 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3680 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3681 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3682 | # The file is in a subdirectory.
|
---|
3683 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3684 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
3685 | # A "../" for each directory in $ac_dir_suffix.
|
---|
3686 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
3687 | else
|
---|
3688 | ac_dir_suffix= ac_dots=
|
---|
3689 | fi
|
---|
3690 |
|
---|
3691 | case "$ac_given_srcdir" in
|
---|
3692 | .) srcdir=.
|
---|
3693 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
3694 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
3695 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
3696 | *) # Relative path.
|
---|
3697 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
3698 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
3699 | esac
|
---|
3700 |
|
---|
3701 | case "$ac_given_INSTALL" in
|
---|
3702 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
3703 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
3704 | esac
|
---|
3705 |
|
---|
3706 | echo creating "$ac_file"
|
---|
3707 | rm -f "$ac_file"
|
---|
3708 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
3709 | case "$ac_file" in
|
---|
3710 | *Makefile*) ac_comsub="1i\\
|
---|
3711 | # $configure_input" ;;
|
---|
3712 | *) ac_comsub= ;;
|
---|
3713 | esac
|
---|
3714 |
|
---|
3715 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3716 | sed -e "$ac_comsub
|
---|
3717 | s%@configure_input@%$configure_input%g
|
---|
3718 | s%@srcdir@%$srcdir%g
|
---|
3719 | s%@top_srcdir@%$top_srcdir%g
|
---|
3720 | s%@INSTALL@%$INSTALL%g
|
---|
3721 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
3722 | fi; done
|
---|
3723 | rm -f conftest.s*
|
---|
3724 |
|
---|
3725 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
3726 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
3727 | #
|
---|
3728 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
3729 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
3730 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
3731 | ac_dC='\3'
|
---|
3732 | ac_dD='%g'
|
---|
3733 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
3734 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3735 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
3736 | ac_uC=' '
|
---|
3737 | ac_uD='\4%g'
|
---|
3738 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
3739 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
3740 | ac_eB='$%\1#\2define\3'
|
---|
3741 | ac_eC=' '
|
---|
3742 | ac_eD='%g'
|
---|
3743 |
|
---|
3744 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
3745 | EOF
|
---|
3746 | cat >> $CONFIG_STATUS <<EOF
|
---|
3747 | CONFIG_HEADERS="config.h"
|
---|
3748 | EOF
|
---|
3749 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3750 | fi
|
---|
3751 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
3752 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
3753 | case "$ac_file" in
|
---|
3754 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
3755 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
3756 | *) ac_file_in="${ac_file}.in" ;;
|
---|
3757 | esac
|
---|
3758 |
|
---|
3759 | echo creating $ac_file
|
---|
3760 |
|
---|
3761 | rm -f conftest.frag conftest.in conftest.out
|
---|
3762 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
3763 | cat $ac_file_inputs > conftest.in
|
---|
3764 |
|
---|
3765 | EOF
|
---|
3766 |
|
---|
3767 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
3768 | # the proper values into config.h.in to produce config.h. And first:
|
---|
3769 | # Protect against being on the right side of a sed subst in config.status.
|
---|
3770 | # Protect against being in an unquoted here document in config.status.
|
---|
3771 | rm -f conftest.vals
|
---|
3772 | cat > conftest.hdr <<\EOF
|
---|
3773 | s/[\\&%]/\\&/g
|
---|
3774 | s%[\\$`]%\\&%g
|
---|
3775 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
3776 | s%ac_d%ac_u%gp
|
---|
3777 | s%ac_u%ac_e%gp
|
---|
3778 | EOF
|
---|
3779 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
3780 | rm -f conftest.hdr
|
---|
3781 |
|
---|
3782 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
3783 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
3784 | # on some systems where configure will not decide to define it.
|
---|
3785 | cat >> conftest.vals <<\EOF
|
---|
3786 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
3787 | EOF
|
---|
3788 |
|
---|
3789 | # Break up conftest.vals because some shells have a limit on
|
---|
3790 | # the size of here documents, and old seds have small limits too.
|
---|
3791 |
|
---|
3792 | rm -f conftest.tail
|
---|
3793 | while :
|
---|
3794 | do
|
---|
3795 | ac_lines=`grep -c . conftest.vals`
|
---|
3796 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
3797 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
3798 | # Write a limited-size here document to conftest.frag.
|
---|
3799 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
3800 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
3801 | echo 'CEOF
|
---|
3802 | sed -f conftest.frag conftest.in > conftest.out
|
---|
3803 | rm -f conftest.in
|
---|
3804 | mv conftest.out conftest.in
|
---|
3805 | ' >> $CONFIG_STATUS
|
---|
3806 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
3807 | rm -f conftest.vals
|
---|
3808 | mv conftest.tail conftest.vals
|
---|
3809 | done
|
---|
3810 | rm -f conftest.vals
|
---|
3811 |
|
---|
3812 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3813 | rm -f conftest.frag conftest.h
|
---|
3814 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
3815 | cat conftest.in >> conftest.h
|
---|
3816 | rm -f conftest.in
|
---|
3817 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
3818 | echo "$ac_file is unchanged"
|
---|
3819 | rm -f conftest.h
|
---|
3820 | else
|
---|
3821 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
3822 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
3823 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
3824 | # The file is in a subdirectory.
|
---|
3825 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
3826 | fi
|
---|
3827 | rm -f $ac_file
|
---|
3828 | mv conftest.h $ac_file
|
---|
3829 | fi
|
---|
3830 | fi; done
|
---|
3831 |
|
---|
3832 | EOF
|
---|
3833 | cat >> $CONFIG_STATUS <<EOF
|
---|
3834 |
|
---|
3835 | EOF
|
---|
3836 | cat >> $CONFIG_STATUS <<\EOF
|
---|
3837 |
|
---|
3838 | exit 0
|
---|
3839 | EOF
|
---|
3840 | chmod +x $CONFIG_STATUS
|
---|
3841 | rm -fr confdefs* $ac_clean_files
|
---|
3842 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
3843 |
|
---|
3844 | if test "$no_recursion" != yes; then
|
---|
3845 |
|
---|
3846 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
3847 | ac_sub_configure_args=
|
---|
3848 | ac_prev=
|
---|
3849 | for ac_arg in $ac_configure_args; do
|
---|
3850 | if test -n "$ac_prev"; then
|
---|
3851 | ac_prev=
|
---|
3852 | continue
|
---|
3853 | fi
|
---|
3854 | case "$ac_arg" in
|
---|
3855 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
3856 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
3857 | ac_prev=cache_file ;;
|
---|
3858 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
3859 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
3860 | ;;
|
---|
3861 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
3862 | ac_prev=srcdir ;;
|
---|
3863 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
3864 | ;;
|
---|
3865 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
3866 | esac
|
---|
3867 | done
|
---|
3868 |
|
---|
3869 | for ac_config_dir in packages; do
|
---|
3870 |
|
---|
3871 | # Do not complain, so a configure script can configure whichever
|
---|
3872 | # parts of a large source tree are present.
|
---|
3873 | if test ! -d $srcdir/$ac_config_dir; then
|
---|
3874 | continue
|
---|
3875 | fi
|
---|
3876 |
|
---|
3877 | echo configuring in $ac_config_dir
|
---|
3878 |
|
---|
3879 | case "$srcdir" in
|
---|
3880 | .) ;;
|
---|
3881 | *)
|
---|
3882 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
---|
3883 | else
|
---|
3884 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
---|
3885 | fi
|
---|
3886 | ;;
|
---|
3887 | esac
|
---|
3888 |
|
---|
3889 | ac_popdir=`pwd`
|
---|
3890 | cd $ac_config_dir
|
---|
3891 |
|
---|
3892 | # A "../" for each directory in /$ac_config_dir.
|
---|
3893 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
---|
3894 |
|
---|
3895 | case "$srcdir" in
|
---|
3896 | .) # No --srcdir option. We are building in place.
|
---|
3897 | ac_sub_srcdir=$srcdir ;;
|
---|
3898 | /*) # Absolute path.
|
---|
3899 | ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
---|
3900 | *) # Relative path.
|
---|
3901 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
---|
3902 | esac
|
---|
3903 |
|
---|
3904 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
3905 | if test -f $ac_sub_srcdir/configure; then
|
---|
3906 | ac_sub_configure=$ac_sub_srcdir/configure
|
---|
3907 | elif test -f $ac_sub_srcdir/configure.in; then
|
---|
3908 | ac_sub_configure=$ac_configure
|
---|
3909 | else
|
---|
3910 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
---|
3911 | ac_sub_configure=
|
---|
3912 | fi
|
---|
3913 |
|
---|
3914 | # The recursion is here.
|
---|
3915 | if test -n "$ac_sub_configure"; then
|
---|
3916 |
|
---|
3917 | # Make the cache file name correct relative to the subdirectory.
|
---|
3918 | case "$cache_file" in
|
---|
3919 | /*) ac_sub_cache_file=$cache_file ;;
|
---|
3920 | *) # Relative path.
|
---|
3921 | ac_sub_cache_file="$ac_dots$cache_file" ;;
|
---|
3922 | esac
|
---|
3923 | case "$ac_given_INSTALL" in
|
---|
3924 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
3925 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
3926 | esac
|
---|
3927 |
|
---|
3928 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
---|
3929 | # The eval makes quoting arguments work.
|
---|
3930 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
---|
3931 | then :
|
---|
3932 | else
|
---|
3933 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
---|
3934 | fi
|
---|
3935 | fi
|
---|
3936 |
|
---|
3937 | cd $ac_popdir
|
---|
3938 | done
|
---|
3939 | fi
|
---|
3940 |
|
---|
3941 | #AC_OUTPUT($srclist)
|
---|
3942 |
|
---|
3943 |
|
---|