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