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