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