1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.12 |
---|
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_default_prefix=`pwd`/.. |
---|
15 | ac_help="$ac_help |
---|
16 | --with-rootdir=DIR use DIR ass compiled-in root directory |
---|
17 | (default is PREFIX)" |
---|
18 | ac_help="$ac_help |
---|
19 | --with-lex=[LEX,no] uses LEX as lex program, default is flex" |
---|
20 | ac_help="$ac_help |
---|
21 | --with-readline do use static readline for fancy display" |
---|
22 | ac_help="$ac_help |
---|
23 | --without-MP do not use MP (no MP links)" |
---|
24 | ac_help="$ac_help |
---|
25 | --without-dbm do not use dbm (no DBM links)" |
---|
26 | ac_help="$ac_help |
---|
27 | --without-factory do not use factory (no poly factorization)" |
---|
28 | ac_help="$ac_help |
---|
29 | --without-libfac do not use libfac (no primary decompositions)" |
---|
30 | ac_help="$ac_help |
---|
31 | --with-namespaces do compile namespace support" |
---|
32 | ac_help="$ac_help |
---|
33 | --with-dl do use dl (dynamic linking)" |
---|
34 | ac_help="$ac_help |
---|
35 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic" |
---|
36 | ac_help="$ac_help |
---|
37 | --with-plural do compile with Plural support" |
---|
38 | |
---|
39 | # Initialize some variables set by options. |
---|
40 | # The variables have the same names as the options, with |
---|
41 | # dashes changed to underlines. |
---|
42 | build=NONE |
---|
43 | cache_file=./config.cache |
---|
44 | exec_prefix=NONE |
---|
45 | host=NONE |
---|
46 | no_create= |
---|
47 | nonopt=NONE |
---|
48 | no_recursion= |
---|
49 | prefix=NONE |
---|
50 | program_prefix=NONE |
---|
51 | program_suffix=NONE |
---|
52 | program_transform_name=s,x,x, |
---|
53 | silent= |
---|
54 | site= |
---|
55 | srcdir= |
---|
56 | target=NONE |
---|
57 | verbose= |
---|
58 | x_includes=NONE |
---|
59 | x_libraries=NONE |
---|
60 | bindir='${exec_prefix}/bin' |
---|
61 | sbindir='${exec_prefix}/sbin' |
---|
62 | libexecdir='${exec_prefix}/libexec' |
---|
63 | datadir='${prefix}/share' |
---|
64 | sysconfdir='${prefix}/etc' |
---|
65 | sharedstatedir='${prefix}/com' |
---|
66 | localstatedir='${prefix}/var' |
---|
67 | libdir='${exec_prefix}/lib' |
---|
68 | includedir='${prefix}/include' |
---|
69 | oldincludedir='/usr/include' |
---|
70 | infodir='${prefix}/info' |
---|
71 | mandir='${prefix}/man' |
---|
72 | |
---|
73 | # Initialize some other variables. |
---|
74 | subdirs= |
---|
75 | MFLAGS= MAKEFLAGS= |
---|
76 | # Maximum number of lines to put in a shell here document. |
---|
77 | ac_max_here_lines=12 |
---|
78 | |
---|
79 | ac_prev= |
---|
80 | for ac_option |
---|
81 | do |
---|
82 | |
---|
83 | # If the previous option needs an argument, assign it. |
---|
84 | if test -n "$ac_prev"; then |
---|
85 | eval "$ac_prev=\$ac_option" |
---|
86 | ac_prev= |
---|
87 | continue |
---|
88 | fi |
---|
89 | |
---|
90 | case "$ac_option" in |
---|
91 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
92 | *) ac_optarg= ;; |
---|
93 | esac |
---|
94 | |
---|
95 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
96 | |
---|
97 | case "$ac_option" in |
---|
98 | |
---|
99 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
100 | ac_prev=bindir ;; |
---|
101 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
102 | bindir="$ac_optarg" ;; |
---|
103 | |
---|
104 | -build | --build | --buil | --bui | --bu) |
---|
105 | ac_prev=build ;; |
---|
106 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
107 | build="$ac_optarg" ;; |
---|
108 | |
---|
109 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
110 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
111 | ac_prev=cache_file ;; |
---|
112 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
113 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
114 | cache_file="$ac_optarg" ;; |
---|
115 | |
---|
116 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
117 | ac_prev=datadir ;; |
---|
118 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
119 | | --da=*) |
---|
120 | datadir="$ac_optarg" ;; |
---|
121 | |
---|
122 | -disable-* | --disable-*) |
---|
123 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
124 | # Reject names that are not valid shell variable names. |
---|
125 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
126 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
127 | fi |
---|
128 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
129 | eval "enable_${ac_feature}=no" ;; |
---|
130 | |
---|
131 | -enable-* | --enable-*) |
---|
132 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
133 | # Reject names that are not valid shell variable names. |
---|
134 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
135 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
136 | fi |
---|
137 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
138 | case "$ac_option" in |
---|
139 | *=*) ;; |
---|
140 | *) ac_optarg=yes ;; |
---|
141 | esac |
---|
142 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
143 | |
---|
144 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
145 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
146 | | --exec | --exe | --ex) |
---|
147 | ac_prev=exec_prefix ;; |
---|
148 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
149 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
150 | | --exec=* | --exe=* | --ex=*) |
---|
151 | exec_prefix="$ac_optarg" ;; |
---|
152 | |
---|
153 | -gas | --gas | --ga | --g) |
---|
154 | # Obsolete; use --with-gas. |
---|
155 | with_gas=yes ;; |
---|
156 | |
---|
157 | -help | --help | --hel | --he) |
---|
158 | # Omit some internal or obsolete options to make the list less imposing. |
---|
159 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
160 | cat << EOF |
---|
161 | Usage: configure [options] [host] |
---|
162 | Options: [defaults in brackets after descriptions] |
---|
163 | Configuration: |
---|
164 | --cache-file=FILE cache test results in FILE |
---|
165 | --help print this message |
---|
166 | --no-create do not create output files |
---|
167 | --quiet, --silent do not print \`checking...' messages |
---|
168 | --version print the version of autoconf that created configure |
---|
169 | Directory and file names: |
---|
170 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
171 | [$ac_default_prefix] |
---|
172 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
173 | [same as prefix] |
---|
174 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
175 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
176 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
177 | --datadir=DIR read-only architecture-independent data in DIR |
---|
178 | [PREFIX/share] |
---|
179 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
180 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
181 | [PREFIX/com] |
---|
182 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
183 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
184 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
185 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
186 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
187 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
188 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
189 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
190 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
191 | --program-transform-name=PROGRAM |
---|
192 | run sed PROGRAM on installed program names |
---|
193 | EOF |
---|
194 | cat << EOF |
---|
195 | Host type: |
---|
196 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
197 | --host=HOST configure for HOST [guessed] |
---|
198 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
199 | Features and packages: |
---|
200 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
201 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
202 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
203 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
204 | --x-includes=DIR X include files are in DIR |
---|
205 | --x-libraries=DIR X library files are in DIR |
---|
206 | EOF |
---|
207 | if test -n "$ac_help"; then |
---|
208 | echo "--enable and --with options recognized:$ac_help" |
---|
209 | fi |
---|
210 | exit 0 ;; |
---|
211 | |
---|
212 | -host | --host | --hos | --ho) |
---|
213 | ac_prev=host ;; |
---|
214 | -host=* | --host=* | --hos=* | --ho=*) |
---|
215 | host="$ac_optarg" ;; |
---|
216 | |
---|
217 | -includedir | --includedir | --includedi | --included | --include \ |
---|
218 | | --includ | --inclu | --incl | --inc) |
---|
219 | ac_prev=includedir ;; |
---|
220 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
221 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
222 | includedir="$ac_optarg" ;; |
---|
223 | |
---|
224 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
225 | ac_prev=infodir ;; |
---|
226 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
227 | infodir="$ac_optarg" ;; |
---|
228 | |
---|
229 | -libdir | --libdir | --libdi | --libd) |
---|
230 | ac_prev=libdir ;; |
---|
231 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
232 | libdir="$ac_optarg" ;; |
---|
233 | |
---|
234 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
235 | | --libexe | --libex | --libe) |
---|
236 | ac_prev=libexecdir ;; |
---|
237 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
238 | | --libexe=* | --libex=* | --libe=*) |
---|
239 | libexecdir="$ac_optarg" ;; |
---|
240 | |
---|
241 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
242 | | --localstate | --localstat | --localsta | --localst \ |
---|
243 | | --locals | --local | --loca | --loc | --lo) |
---|
244 | ac_prev=localstatedir ;; |
---|
245 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
246 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
247 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
248 | localstatedir="$ac_optarg" ;; |
---|
249 | |
---|
250 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
251 | ac_prev=mandir ;; |
---|
252 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
253 | mandir="$ac_optarg" ;; |
---|
254 | |
---|
255 | -nfp | --nfp | --nf) |
---|
256 | # Obsolete; use --without-fp. |
---|
257 | with_fp=no ;; |
---|
258 | |
---|
259 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
260 | | --no-cr | --no-c) |
---|
261 | no_create=yes ;; |
---|
262 | |
---|
263 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
264 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
265 | no_recursion=yes ;; |
---|
266 | |
---|
267 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
268 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
269 | | --oldin | --oldi | --old | --ol | --o) |
---|
270 | ac_prev=oldincludedir ;; |
---|
271 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
272 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
273 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
274 | oldincludedir="$ac_optarg" ;; |
---|
275 | |
---|
276 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
277 | ac_prev=prefix ;; |
---|
278 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
279 | prefix="$ac_optarg" ;; |
---|
280 | |
---|
281 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
282 | | --program-pre | --program-pr | --program-p) |
---|
283 | ac_prev=program_prefix ;; |
---|
284 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
285 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
286 | program_prefix="$ac_optarg" ;; |
---|
287 | |
---|
288 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
289 | | --program-suf | --program-su | --program-s) |
---|
290 | ac_prev=program_suffix ;; |
---|
291 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
292 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
293 | program_suffix="$ac_optarg" ;; |
---|
294 | |
---|
295 | -program-transform-name | --program-transform-name \ |
---|
296 | | --program-transform-nam | --program-transform-na \ |
---|
297 | | --program-transform-n | --program-transform- \ |
---|
298 | | --program-transform | --program-transfor \ |
---|
299 | | --program-transfo | --program-transf \ |
---|
300 | | --program-trans | --program-tran \ |
---|
301 | | --progr-tra | --program-tr | --program-t) |
---|
302 | ac_prev=program_transform_name ;; |
---|
303 | -program-transform-name=* | --program-transform-name=* \ |
---|
304 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
305 | | --program-transform-n=* | --program-transform-=* \ |
---|
306 | | --program-transform=* | --program-transfor=* \ |
---|
307 | | --program-transfo=* | --program-transf=* \ |
---|
308 | | --program-trans=* | --program-tran=* \ |
---|
309 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
310 | program_transform_name="$ac_optarg" ;; |
---|
311 | |
---|
312 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
313 | | -silent | --silent | --silen | --sile | --sil) |
---|
314 | silent=yes ;; |
---|
315 | |
---|
316 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
317 | ac_prev=sbindir ;; |
---|
318 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
319 | | --sbi=* | --sb=*) |
---|
320 | sbindir="$ac_optarg" ;; |
---|
321 | |
---|
322 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
323 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
324 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
325 | | --sha | --sh) |
---|
326 | ac_prev=sharedstatedir ;; |
---|
327 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
328 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
329 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
330 | | --sha=* | --sh=*) |
---|
331 | sharedstatedir="$ac_optarg" ;; |
---|
332 | |
---|
333 | -site | --site | --sit) |
---|
334 | ac_prev=site ;; |
---|
335 | -site=* | --site=* | --sit=*) |
---|
336 | site="$ac_optarg" ;; |
---|
337 | |
---|
338 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
339 | ac_prev=srcdir ;; |
---|
340 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
341 | srcdir="$ac_optarg" ;; |
---|
342 | |
---|
343 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
344 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
345 | ac_prev=sysconfdir ;; |
---|
346 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
347 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
348 | sysconfdir="$ac_optarg" ;; |
---|
349 | |
---|
350 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
351 | ac_prev=target ;; |
---|
352 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
353 | target="$ac_optarg" ;; |
---|
354 | |
---|
355 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
356 | verbose=yes ;; |
---|
357 | |
---|
358 | -version | --version | --versio | --versi | --vers) |
---|
359 | echo "configure generated by autoconf version 2.12" |
---|
360 | exit 0 ;; |
---|
361 | |
---|
362 | -with-* | --with-*) |
---|
363 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
364 | # Reject names that are not valid shell variable names. |
---|
365 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
366 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
367 | fi |
---|
368 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
369 | case "$ac_option" in |
---|
370 | *=*) ;; |
---|
371 | *) ac_optarg=yes ;; |
---|
372 | esac |
---|
373 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
374 | |
---|
375 | -without-* | --without-*) |
---|
376 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
377 | # Reject names that are not valid shell variable names. |
---|
378 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
380 | fi |
---|
381 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
382 | eval "with_${ac_package}=no" ;; |
---|
383 | |
---|
384 | --x) |
---|
385 | # Obsolete; use --with-x. |
---|
386 | with_x=yes ;; |
---|
387 | |
---|
388 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
389 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
390 | ac_prev=x_includes ;; |
---|
391 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
392 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
393 | x_includes="$ac_optarg" ;; |
---|
394 | |
---|
395 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
396 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
397 | ac_prev=x_libraries ;; |
---|
398 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
399 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
400 | x_libraries="$ac_optarg" ;; |
---|
401 | |
---|
402 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
403 | ;; |
---|
404 | |
---|
405 | *) |
---|
406 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
407 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
408 | fi |
---|
409 | if test "x$nonopt" != xNONE; then |
---|
410 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
411 | fi |
---|
412 | nonopt="$ac_option" |
---|
413 | ;; |
---|
414 | |
---|
415 | esac |
---|
416 | done |
---|
417 | |
---|
418 | if test -n "$ac_prev"; then |
---|
419 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
420 | fi |
---|
421 | |
---|
422 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
423 | |
---|
424 | # File descriptor usage: |
---|
425 | # 0 standard input |
---|
426 | # 1 file creation |
---|
427 | # 2 errors and warnings |
---|
428 | # 3 some systems may open it to /dev/tty |
---|
429 | # 4 used on the Kubota Titan |
---|
430 | # 6 checking for... messages and results |
---|
431 | # 5 compiler messages saved in config.log |
---|
432 | if test "$silent" = yes; then |
---|
433 | exec 6>/dev/null |
---|
434 | else |
---|
435 | exec 6>&1 |
---|
436 | fi |
---|
437 | exec 5>./config.log |
---|
438 | |
---|
439 | echo "\ |
---|
440 | This file contains any messages produced by compilers while |
---|
441 | running configure, to aid debugging if configure makes a mistake. |
---|
442 | " 1>&5 |
---|
443 | |
---|
444 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
445 | # Also quote any args containing shell metacharacters. |
---|
446 | ac_configure_args= |
---|
447 | for ac_arg |
---|
448 | do |
---|
449 | case "$ac_arg" in |
---|
450 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
451 | | --no-cr | --no-c) ;; |
---|
452 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
453 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
454 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
455 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
456 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
457 | esac |
---|
458 | done |
---|
459 | |
---|
460 | # NLS nuisances. |
---|
461 | # Only set these to C if already set. These must not be set unconditionally |
---|
462 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
463 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
464 | # Non-C LC_CTYPE values break the ctype check. |
---|
465 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
466 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
467 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
468 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
469 | |
---|
470 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
471 | rm -rf conftest* confdefs.h |
---|
472 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
473 | echo > confdefs.h |
---|
474 | |
---|
475 | # A filename unique to this package, relative to the directory that |
---|
476 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
477 | ac_unique_file=mmalloc.cc |
---|
478 | |
---|
479 | # Find the source files, if location was not specified. |
---|
480 | if test -z "$srcdir"; then |
---|
481 | ac_srcdir_defaulted=yes |
---|
482 | # Try the directory containing this script, then its parent. |
---|
483 | ac_prog=$0 |
---|
484 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
485 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
486 | srcdir=$ac_confdir |
---|
487 | if test ! -r $srcdir/$ac_unique_file; then |
---|
488 | srcdir=.. |
---|
489 | fi |
---|
490 | else |
---|
491 | ac_srcdir_defaulted=no |
---|
492 | fi |
---|
493 | if test ! -r $srcdir/$ac_unique_file; then |
---|
494 | if test "$ac_srcdir_defaulted" = yes; then |
---|
495 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
496 | else |
---|
497 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
498 | fi |
---|
499 | fi |
---|
500 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
501 | |
---|
502 | # Prefer explicitly selected file to automatically selected ones. |
---|
503 | if test -z "$CONFIG_SITE"; then |
---|
504 | if test "x$prefix" != xNONE; then |
---|
505 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
506 | else |
---|
507 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
508 | fi |
---|
509 | fi |
---|
510 | for ac_site_file in $CONFIG_SITE; do |
---|
511 | if test -r "$ac_site_file"; then |
---|
512 | echo "loading site script $ac_site_file" |
---|
513 | . "$ac_site_file" |
---|
514 | fi |
---|
515 | done |
---|
516 | |
---|
517 | if test -r "$cache_file"; then |
---|
518 | echo "loading cache $cache_file" |
---|
519 | . $cache_file |
---|
520 | else |
---|
521 | echo "creating cache $cache_file" |
---|
522 | > $cache_file |
---|
523 | fi |
---|
524 | |
---|
525 | ac_ext=c |
---|
526 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
527 | ac_cpp='$CPP $CPPFLAGS' |
---|
528 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
529 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
530 | cross_compiling=$ac_cv_prog_cc_cross |
---|
531 | |
---|
532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
533 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
535 | ac_n= ac_c=' |
---|
536 | ' ac_t=' ' |
---|
537 | else |
---|
538 | ac_n=-n ac_c= ac_t= |
---|
539 | fi |
---|
540 | else |
---|
541 | ac_n= ac_c='\c' ac_t= |
---|
542 | fi |
---|
543 | |
---|
544 | |
---|
545 | |
---|
546 | |
---|
547 | |
---|
548 | echo $ac_n "checking uname for singular""... $ac_c" 1>&6 |
---|
549 | echo "configure:550: checking uname for singular" >&5 |
---|
550 | if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then |
---|
551 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
552 | else |
---|
553 | ac_cv_singuname="unknown" |
---|
554 | if test -r "singuname.sh"; then |
---|
555 | if (/bin/sh singuname.sh >/dev/null 2>&1) then |
---|
556 | ac_cv_singuname=`/bin/sh singuname.sh` |
---|
557 | fi |
---|
558 | fi |
---|
559 | if test "$ac_cv_singuname" = unknown && test -r "../singuname.sh"; then |
---|
560 | if (/bin/sh ../singuname.sh >/dev/null 2>&1) then |
---|
561 | ac_cv_singuname=`/bin/sh ../singuname.sh` |
---|
562 | fi |
---|
563 | fi |
---|
564 | |
---|
565 | fi |
---|
566 | |
---|
567 | echo "$ac_t""$ac_cv_singuname" 1>&6 |
---|
568 | if test "$ac_cv_singuname" = unknown; then |
---|
569 | echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2 |
---|
570 | ac_cv_singuname="unknown" |
---|
571 | fi |
---|
572 | cat >> confdefs.h <<EOF |
---|
573 | #define S_UNAME "$ac_cv_singuname" |
---|
574 | EOF |
---|
575 | |
---|
576 | SINGUNAME=$ac_cv_singuname |
---|
577 | |
---|
578 | |
---|
579 | if test "$ac_cv_singuname" = ix86-Win; then |
---|
580 | EXEC_EXT=".exe" |
---|
581 | fi |
---|
582 | |
---|
583 | |
---|
584 | SING_UNAME=`echo $SINGUNAME | tr '-' '_' ` |
---|
585 | |
---|
586 | |
---|
587 | # stupid Win programs do not like dots in their pathnames |
---|
588 | VERSION_SEP="-" |
---|
589 | |
---|
590 | |
---|
591 | SINGULAR_MAJOR_VERSION=${SINGULAR_MAJOR_VERSION:-1} |
---|
592 | SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-3} |
---|
593 | SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-10} |
---|
594 | SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}" |
---|
595 | VERSION_DATE=${VERSION_DATE:-"November 2000"} |
---|
596 | |
---|
597 | |
---|
598 | |
---|
599 | |
---|
600 | |
---|
601 | |
---|
602 | cat >> confdefs.h <<EOF |
---|
603 | #define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION} |
---|
604 | EOF |
---|
605 | |
---|
606 | cat >> confdefs.h <<EOF |
---|
607 | #define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION} |
---|
608 | EOF |
---|
609 | |
---|
610 | cat >> confdefs.h <<EOF |
---|
611 | #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} |
---|
612 | EOF |
---|
613 | |
---|
614 | cat >> confdefs.h <<EOF |
---|
615 | #define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" |
---|
616 | EOF |
---|
617 | |
---|
618 | cat >> confdefs.h <<EOF |
---|
619 | #define S_VERSION2 "${VERSION_DATE}" |
---|
620 | EOF |
---|
621 | |
---|
622 | cat >> confdefs.h <<EOF |
---|
623 | #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} |
---|
624 | EOF |
---|
625 | |
---|
626 | |
---|
627 | |
---|
628 | if test "${CXXFLAGS+set}" != set; then |
---|
629 | ac_cxxflags_set=no |
---|
630 | CXXFLAGS="-O" |
---|
631 | fi |
---|
632 | if test "${CFLAGS+set}" != set; then |
---|
633 | CFLAGS="-O" |
---|
634 | ac_cflags_set=no |
---|
635 | fi |
---|
636 | |
---|
637 | # check whether CXX was set by user as env variable |
---|
638 | if test "${CXX+set}" != set; then |
---|
639 | ac_cxx_set=no |
---|
640 | else |
---|
641 | ac_cxx_set=yes |
---|
642 | fi |
---|
643 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
644 | set dummy gcc; ac_word=$2 |
---|
645 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
646 | echo "configure:647: checking for $ac_word" >&5 |
---|
647 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
648 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
649 | else |
---|
650 | if test -n "$CC"; then |
---|
651 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
652 | else |
---|
653 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
654 | for ac_dir in $PATH; do |
---|
655 | test -z "$ac_dir" && ac_dir=. |
---|
656 | if test -f $ac_dir/$ac_word; then |
---|
657 | ac_cv_prog_CC="gcc" |
---|
658 | break |
---|
659 | fi |
---|
660 | done |
---|
661 | IFS="$ac_save_ifs" |
---|
662 | fi |
---|
663 | fi |
---|
664 | CC="$ac_cv_prog_CC" |
---|
665 | if test -n "$CC"; then |
---|
666 | echo "$ac_t""$CC" 1>&6 |
---|
667 | else |
---|
668 | echo "$ac_t""no" 1>&6 |
---|
669 | fi |
---|
670 | |
---|
671 | if test -z "$CC"; then |
---|
672 | # Extract the first word of "cc", so it can be a program name with args. |
---|
673 | set dummy cc; ac_word=$2 |
---|
674 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
675 | echo "configure:676: checking for $ac_word" >&5 |
---|
676 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
677 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
678 | else |
---|
679 | if test -n "$CC"; then |
---|
680 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
681 | else |
---|
682 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
683 | ac_prog_rejected=no |
---|
684 | for ac_dir in $PATH; do |
---|
685 | test -z "$ac_dir" && ac_dir=. |
---|
686 | if test -f $ac_dir/$ac_word; then |
---|
687 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
688 | ac_prog_rejected=yes |
---|
689 | continue |
---|
690 | fi |
---|
691 | ac_cv_prog_CC="cc" |
---|
692 | break |
---|
693 | fi |
---|
694 | done |
---|
695 | IFS="$ac_save_ifs" |
---|
696 | if test $ac_prog_rejected = yes; then |
---|
697 | # We found a bogon in the path, so make sure we never use it. |
---|
698 | set dummy $ac_cv_prog_CC |
---|
699 | shift |
---|
700 | if test $# -gt 0; then |
---|
701 | # We chose a different compiler from the bogus one. |
---|
702 | # However, it has the same basename, so the bogon will be chosen |
---|
703 | # first if we set CC to just the basename; use the full file name. |
---|
704 | shift |
---|
705 | set dummy "$ac_dir/$ac_word" "$@" |
---|
706 | shift |
---|
707 | ac_cv_prog_CC="$@" |
---|
708 | fi |
---|
709 | fi |
---|
710 | fi |
---|
711 | fi |
---|
712 | CC="$ac_cv_prog_CC" |
---|
713 | if test -n "$CC"; then |
---|
714 | echo "$ac_t""$CC" 1>&6 |
---|
715 | else |
---|
716 | echo "$ac_t""no" 1>&6 |
---|
717 | fi |
---|
718 | |
---|
719 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
720 | fi |
---|
721 | |
---|
722 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
723 | echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
724 | |
---|
725 | ac_ext=c |
---|
726 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
727 | ac_cpp='$CPP $CPPFLAGS' |
---|
728 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
729 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
730 | cross_compiling=$ac_cv_prog_cc_cross |
---|
731 | |
---|
732 | cat > conftest.$ac_ext <<EOF |
---|
733 | #line 734 "configure" |
---|
734 | #include "confdefs.h" |
---|
735 | main(){return(0);} |
---|
736 | EOF |
---|
737 | if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
738 | ac_cv_prog_cc_works=yes |
---|
739 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
740 | if (./conftest; exit) 2>/dev/null; then |
---|
741 | ac_cv_prog_cc_cross=no |
---|
742 | else |
---|
743 | ac_cv_prog_cc_cross=yes |
---|
744 | fi |
---|
745 | else |
---|
746 | echo "configure: failed program was:" >&5 |
---|
747 | cat conftest.$ac_ext >&5 |
---|
748 | ac_cv_prog_cc_works=no |
---|
749 | fi |
---|
750 | rm -fr conftest* |
---|
751 | |
---|
752 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
753 | if test $ac_cv_prog_cc_works = no; then |
---|
754 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
755 | fi |
---|
756 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
757 | echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
758 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
759 | cross_compiling=$ac_cv_prog_cc_cross |
---|
760 | |
---|
761 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
762 | echo "configure:763: checking whether we are using GNU C" >&5 |
---|
763 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
764 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
765 | else |
---|
766 | cat > conftest.c <<EOF |
---|
767 | #ifdef __GNUC__ |
---|
768 | yes; |
---|
769 | #endif |
---|
770 | EOF |
---|
771 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
772 | ac_cv_prog_gcc=yes |
---|
773 | else |
---|
774 | ac_cv_prog_gcc=no |
---|
775 | fi |
---|
776 | fi |
---|
777 | |
---|
778 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
779 | |
---|
780 | if test $ac_cv_prog_gcc = yes; then |
---|
781 | GCC=yes |
---|
782 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
783 | ac_save_CFLAGS="$CFLAGS" |
---|
784 | CFLAGS= |
---|
785 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
786 | echo "configure:787: checking whether ${CC-cc} accepts -g" >&5 |
---|
787 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
788 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
789 | else |
---|
790 | echo 'void f(){}' > conftest.c |
---|
791 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
792 | ac_cv_prog_cc_g=yes |
---|
793 | else |
---|
794 | ac_cv_prog_cc_g=no |
---|
795 | fi |
---|
796 | rm -f conftest* |
---|
797 | |
---|
798 | fi |
---|
799 | |
---|
800 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
801 | if test "$ac_test_CFLAGS" = set; then |
---|
802 | CFLAGS="$ac_save_CFLAGS" |
---|
803 | elif test $ac_cv_prog_cc_g = yes; then |
---|
804 | CFLAGS="-g -O2" |
---|
805 | else |
---|
806 | CFLAGS="-O2" |
---|
807 | fi |
---|
808 | else |
---|
809 | GCC= |
---|
810 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
811 | fi |
---|
812 | |
---|
813 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
814 | echo "configure:815: checking how to run the C preprocessor" >&5 |
---|
815 | # On Suns, sometimes $CPP names a directory. |
---|
816 | if test -n "$CPP" && test -d "$CPP"; then |
---|
817 | CPP= |
---|
818 | fi |
---|
819 | if test -z "$CPP"; then |
---|
820 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
821 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
822 | else |
---|
823 | # This must be in double quotes, not single quotes, because CPP may get |
---|
824 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
825 | CPP="${CC-cc} -E" |
---|
826 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
827 | # not just through cpp. |
---|
828 | cat > conftest.$ac_ext <<EOF |
---|
829 | #line 830 "configure" |
---|
830 | #include "confdefs.h" |
---|
831 | #include <assert.h> |
---|
832 | Syntax Error |
---|
833 | EOF |
---|
834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
835 | { (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
836 | ac_err=`grep -v '^ *+' conftest.out` |
---|
837 | if test -z "$ac_err"; then |
---|
838 | : |
---|
839 | else |
---|
840 | echo "$ac_err" >&5 |
---|
841 | echo "configure: failed program was:" >&5 |
---|
842 | cat conftest.$ac_ext >&5 |
---|
843 | rm -rf conftest* |
---|
844 | CPP="${CC-cc} -E -traditional-cpp" |
---|
845 | cat > conftest.$ac_ext <<EOF |
---|
846 | #line 847 "configure" |
---|
847 | #include "confdefs.h" |
---|
848 | #include <assert.h> |
---|
849 | Syntax Error |
---|
850 | EOF |
---|
851 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
852 | { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
853 | ac_err=`grep -v '^ *+' conftest.out` |
---|
854 | if test -z "$ac_err"; then |
---|
855 | : |
---|
856 | else |
---|
857 | echo "$ac_err" >&5 |
---|
858 | echo "configure: failed program was:" >&5 |
---|
859 | cat conftest.$ac_ext >&5 |
---|
860 | rm -rf conftest* |
---|
861 | CPP=/lib/cpp |
---|
862 | fi |
---|
863 | rm -f conftest* |
---|
864 | fi |
---|
865 | rm -f conftest* |
---|
866 | ac_cv_prog_CPP="$CPP" |
---|
867 | fi |
---|
868 | CPP="$ac_cv_prog_CPP" |
---|
869 | else |
---|
870 | ac_cv_prog_CPP="$CPP" |
---|
871 | fi |
---|
872 | echo "$ac_t""$CPP" 1>&6 |
---|
873 | |
---|
874 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
---|
875 | do |
---|
876 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
877 | set dummy $ac_prog; ac_word=$2 |
---|
878 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
879 | echo "configure:880: checking for $ac_word" >&5 |
---|
880 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
881 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
882 | else |
---|
883 | if test -n "$CXX"; then |
---|
884 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
885 | else |
---|
886 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
887 | for ac_dir in $PATH; do |
---|
888 | test -z "$ac_dir" && ac_dir=. |
---|
889 | if test -f $ac_dir/$ac_word; then |
---|
890 | ac_cv_prog_CXX="$ac_prog" |
---|
891 | break |
---|
892 | fi |
---|
893 | done |
---|
894 | IFS="$ac_save_ifs" |
---|
895 | fi |
---|
896 | fi |
---|
897 | CXX="$ac_cv_prog_CXX" |
---|
898 | if test -n "$CXX"; then |
---|
899 | echo "$ac_t""$CXX" 1>&6 |
---|
900 | else |
---|
901 | echo "$ac_t""no" 1>&6 |
---|
902 | fi |
---|
903 | |
---|
904 | test -n "$CXX" && break |
---|
905 | done |
---|
906 | test -n "$CXX" || CXX="gcc" |
---|
907 | |
---|
908 | |
---|
909 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
910 | echo "configure:911: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
911 | |
---|
912 | ac_ext=C |
---|
913 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
914 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
915 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
916 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
917 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
918 | |
---|
919 | cat > conftest.$ac_ext <<EOF |
---|
920 | #line 921 "configure" |
---|
921 | #include "confdefs.h" |
---|
922 | main(){return(0);} |
---|
923 | EOF |
---|
924 | if { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
925 | ac_cv_prog_cxx_works=yes |
---|
926 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
927 | if (./conftest; exit) 2>/dev/null; then |
---|
928 | ac_cv_prog_cxx_cross=no |
---|
929 | else |
---|
930 | ac_cv_prog_cxx_cross=yes |
---|
931 | fi |
---|
932 | else |
---|
933 | echo "configure: failed program was:" >&5 |
---|
934 | cat conftest.$ac_ext >&5 |
---|
935 | ac_cv_prog_cxx_works=no |
---|
936 | fi |
---|
937 | rm -fr conftest* |
---|
938 | ac_ext=c |
---|
939 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
940 | ac_cpp='$CPP $CPPFLAGS' |
---|
941 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
942 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
943 | cross_compiling=$ac_cv_prog_cc_cross |
---|
944 | |
---|
945 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
946 | if test $ac_cv_prog_cxx_works = no; then |
---|
947 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
948 | fi |
---|
949 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
950 | echo "configure:951: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
951 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
952 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
953 | |
---|
954 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
955 | echo "configure:956: checking whether we are using GNU C++" >&5 |
---|
956 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
957 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
958 | else |
---|
959 | cat > conftest.C <<EOF |
---|
960 | #ifdef __GNUC__ |
---|
961 | yes; |
---|
962 | #endif |
---|
963 | EOF |
---|
964 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
965 | ac_cv_prog_gxx=yes |
---|
966 | else |
---|
967 | ac_cv_prog_gxx=no |
---|
968 | fi |
---|
969 | fi |
---|
970 | |
---|
971 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
972 | |
---|
973 | if test $ac_cv_prog_gxx = yes; then |
---|
974 | GXX=yes |
---|
975 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
976 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
977 | CXXFLAGS= |
---|
978 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
979 | echo "configure:980: checking whether ${CXX-g++} accepts -g" >&5 |
---|
980 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
981 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
982 | else |
---|
983 | echo 'void f(){}' > conftest.cc |
---|
984 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
985 | ac_cv_prog_cxx_g=yes |
---|
986 | else |
---|
987 | ac_cv_prog_cxx_g=no |
---|
988 | fi |
---|
989 | rm -f conftest* |
---|
990 | |
---|
991 | fi |
---|
992 | |
---|
993 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
994 | if test "$ac_test_CXXFLAGS" = set; then |
---|
995 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
996 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
997 | CXXFLAGS="-g -O2" |
---|
998 | else |
---|
999 | CXXFLAGS="-O2" |
---|
1000 | fi |
---|
1001 | else |
---|
1002 | GXX= |
---|
1003 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
1004 | fi |
---|
1005 | |
---|
1006 | ac_aux_dir= |
---|
1007 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1008 | if test -f $ac_dir/install-sh; then |
---|
1009 | ac_aux_dir=$ac_dir |
---|
1010 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1011 | break |
---|
1012 | elif test -f $ac_dir/install.sh; then |
---|
1013 | ac_aux_dir=$ac_dir |
---|
1014 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1015 | break |
---|
1016 | fi |
---|
1017 | done |
---|
1018 | if test -z "$ac_aux_dir"; then |
---|
1019 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
1020 | fi |
---|
1021 | ac_config_guess=$ac_aux_dir/config.guess |
---|
1022 | ac_config_sub=$ac_aux_dir/config.sub |
---|
1023 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
1024 | |
---|
1025 | # Find a good install program. We prefer a C program (faster), |
---|
1026 | # so one script is as good as another. But avoid the broken or |
---|
1027 | # incompatible versions: |
---|
1028 | # SysV /etc/install, /usr/sbin/install |
---|
1029 | # SunOS /usr/etc/install |
---|
1030 | # IRIX /sbin/install |
---|
1031 | # AIX /bin/install |
---|
1032 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1033 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1034 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1035 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1036 | echo "configure:1037: checking for a BSD compatible install" >&5 |
---|
1037 | if test -z "$INSTALL"; then |
---|
1038 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1039 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1040 | else |
---|
1041 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
---|
1042 | for ac_dir in $PATH; do |
---|
1043 | # Account for people who put trailing slashes in PATH elements. |
---|
1044 | case "$ac_dir/" in |
---|
1045 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1046 | *) |
---|
1047 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1048 | for ac_prog in ginstall installbsd scoinst install; do |
---|
1049 | if test -f $ac_dir/$ac_prog; then |
---|
1050 | if test $ac_prog = install && |
---|
1051 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1052 | # AIX install. It has an incompatible calling convention. |
---|
1053 | # OSF/1 installbsd also uses dspmsg, but is usable. |
---|
1054 | : |
---|
1055 | else |
---|
1056 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1057 | break 2 |
---|
1058 | fi |
---|
1059 | fi |
---|
1060 | done |
---|
1061 | ;; |
---|
1062 | esac |
---|
1063 | done |
---|
1064 | IFS="$ac_save_IFS" |
---|
1065 | |
---|
1066 | fi |
---|
1067 | if test "${ac_cv_path_install+set}" = set; then |
---|
1068 | INSTALL="$ac_cv_path_install" |
---|
1069 | else |
---|
1070 | # As a last resort, use the slow shell script. We don't cache a |
---|
1071 | # path for INSTALL within a source directory, because that will |
---|
1072 | # break other packages using the cache if that directory is |
---|
1073 | # removed, or if the path is relative. |
---|
1074 | INSTALL="$ac_install_sh" |
---|
1075 | fi |
---|
1076 | fi |
---|
1077 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1078 | |
---|
1079 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1080 | # It thinks the first close brace ends the variable substitution. |
---|
1081 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1082 | |
---|
1083 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1084 | |
---|
1085 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
1086 | echo "configure:1087: checking for AIX" >&5 |
---|
1087 | cat > conftest.$ac_ext <<EOF |
---|
1088 | #line 1089 "configure" |
---|
1089 | #include "confdefs.h" |
---|
1090 | #ifdef _AIX |
---|
1091 | yes |
---|
1092 | #endif |
---|
1093 | |
---|
1094 | EOF |
---|
1095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1096 | egrep "yes" >/dev/null 2>&1; then |
---|
1097 | rm -rf conftest* |
---|
1098 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
1099 | #define _ALL_SOURCE 1 |
---|
1100 | EOF |
---|
1101 | |
---|
1102 | else |
---|
1103 | rm -rf conftest* |
---|
1104 | echo "$ac_t""no" 1>&6 |
---|
1105 | fi |
---|
1106 | rm -f conftest* |
---|
1107 | |
---|
1108 | |
---|
1109 | |
---|
1110 | # we prefer using gcc for compiling C++ files, provided the user did |
---|
1111 | # not overwrite it explicitely |
---|
1112 | if test "${GXX}" = yes && test "${ac_cxx_set}" = no; then |
---|
1113 | CXX=gcc |
---|
1114 | fi |
---|
1115 | |
---|
1116 | # check whether the compiler accepts -pipe |
---|
1117 | echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 |
---|
1118 | echo "configure:1119: checking whether compiler accepts -pipe" >&5 |
---|
1119 | temp_cflags=${CFLAGS} |
---|
1120 | CFLAGS="${CFLAGS} -pipe" |
---|
1121 | if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then |
---|
1122 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1123 | else |
---|
1124 | cat > conftest.$ac_ext <<EOF |
---|
1125 | #line 1126 "configure" |
---|
1126 | #include "confdefs.h" |
---|
1127 | |
---|
1128 | int main() { |
---|
1129 | |
---|
1130 | ; return 0; } |
---|
1131 | EOF |
---|
1132 | if { (eval echo configure:1133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1133 | rm -rf conftest* |
---|
1134 | ac_cv_cxx_have_pipe=yes |
---|
1135 | else |
---|
1136 | echo "configure: failed program was:" >&5 |
---|
1137 | cat conftest.$ac_ext >&5 |
---|
1138 | rm -rf conftest* |
---|
1139 | ac_cv_cxx_have_pipe=no |
---|
1140 | fi |
---|
1141 | rm -f conftest* |
---|
1142 | |
---|
1143 | fi |
---|
1144 | |
---|
1145 | echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6 |
---|
1146 | CFLAGS=${temp_cflags} |
---|
1147 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
1148 | PIPE= |
---|
1149 | else |
---|
1150 | PIPE="-pipe" |
---|
1151 | fi |
---|
1152 | |
---|
1153 | |
---|
1154 | # Customize CFLAGS |
---|
1155 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
1156 | echo "configure:1157: checking whether _AIX is defined" >&5 |
---|
1157 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
1158 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1159 | else |
---|
1160 | cat > conftest.$ac_ext <<EOF |
---|
1161 | #line 1162 "configure" |
---|
1162 | #include "confdefs.h" |
---|
1163 | #ifdef _AIX |
---|
1164 | yes |
---|
1165 | #endif |
---|
1166 | |
---|
1167 | EOF |
---|
1168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1169 | egrep "yes" >/dev/null 2>&1; then |
---|
1170 | rm -rf conftest* |
---|
1171 | ac_cv_is_aix=yes |
---|
1172 | else |
---|
1173 | rm -rf conftest* |
---|
1174 | ac_cv_is_aix=no |
---|
1175 | fi |
---|
1176 | rm -f conftest* |
---|
1177 | |
---|
1178 | fi |
---|
1179 | |
---|
1180 | if test "$ac_cv_is_aix" = yes; then |
---|
1181 | echo "$ac_t""yes" 1>&6 |
---|
1182 | else |
---|
1183 | echo "$ac_t""no" 1>&6 |
---|
1184 | fi |
---|
1185 | |
---|
1186 | # we know best when compiling with gcc |
---|
1187 | if test "${GXX}" = yes; then |
---|
1188 | if test "$ac_cxxflags_set" = no; then |
---|
1189 | CXXFLAGS="-O3 -w -fomit-frame-pointer" |
---|
1190 | fi |
---|
1191 | CXXTEMPLFLAGS="-fno-implicit-templates" |
---|
1192 | if test "$ac_cv_is_aix" = yes; then |
---|
1193 | CXXNOOPTFLAGS="-w" |
---|
1194 | else |
---|
1195 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
1196 | fi |
---|
1197 | STATIC_LDFLAGS="-static" |
---|
1198 | else |
---|
1199 | CXXTEMPFLAGS="" |
---|
1200 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
1201 | STATIC_LDFLAGS="" |
---|
1202 | fi |
---|
1203 | |
---|
1204 | |
---|
1205 | |
---|
1206 | |
---|
1207 | if test "${GCC}" = yes && test "$ac_cflags_set" = no ; then |
---|
1208 | CFLAGS="-O3 -w -fomit-frame-pointer" |
---|
1209 | fi |
---|
1210 | |
---|
1211 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
1212 | echo "configure:1213: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1213 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
1214 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
1215 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1216 | else |
---|
1217 | cat > conftestmake <<\EOF |
---|
1218 | all: |
---|
1219 | @echo 'ac_maketemp="${MAKE}"' |
---|
1220 | EOF |
---|
1221 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1222 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
1223 | if test -n "$ac_maketemp"; then |
---|
1224 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1225 | else |
---|
1226 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1227 | fi |
---|
1228 | rm -f conftestmake |
---|
1229 | fi |
---|
1230 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1231 | echo "$ac_t""yes" 1>&6 |
---|
1232 | SET_MAKE= |
---|
1233 | else |
---|
1234 | echo "$ac_t""no" 1>&6 |
---|
1235 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1236 | fi |
---|
1237 | |
---|
1238 | |
---|
1239 | |
---|
1240 | |
---|
1241 | |
---|
1242 | # expand prefix |
---|
1243 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1244 | if test "${with_rootdir+set}" != set; then |
---|
1245 | cat >> confdefs.h <<EOF |
---|
1246 | #define S_ROOT_DIR "${prefix}" |
---|
1247 | EOF |
---|
1248 | |
---|
1249 | else |
---|
1250 | cat >> confdefs.h <<EOF |
---|
1251 | #define S_ROOT_DIR "${with_rootdir}" |
---|
1252 | EOF |
---|
1253 | |
---|
1254 | fi |
---|
1255 | |
---|
1256 | # expand exec_prefixad |
---|
1257 | if test "x$exec_prefix" = xNONE; then |
---|
1258 | exec_prefix=${prefix}/${ac_cv_singuname} |
---|
1259 | fi |
---|
1260 | |
---|
1261 | # expand bindir |
---|
1262 | test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}" |
---|
1263 | SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION} |
---|
1264 | |
---|
1265 | cat >> confdefs.h <<EOF |
---|
1266 | #define S_BIN_DIR "${bindir}" |
---|
1267 | EOF |
---|
1268 | |
---|
1269 | |
---|
1270 | # expand libdir |
---|
1271 | test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib" |
---|
1272 | |
---|
1273 | # expand includedir |
---|
1274 | test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include" |
---|
1275 | |
---|
1276 | # add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure |
---|
1277 | LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib" |
---|
1278 | CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include" |
---|
1279 | |
---|
1280 | # this is a work-around to include the right term.h |
---|
1281 | if test "$ac_cv_singuname" = SunOS-5; then |
---|
1282 | CPPFLAGS="-I/usr/xpg4/include ${CPPFLAGS}" |
---|
1283 | fi |
---|
1284 | |
---|
1285 | |
---|
1286 | |
---|
1287 | # lex |
---|
1288 | if test "${with_lex+set}" != set; then |
---|
1289 | echo $ac_n "checking for flex""... $ac_c" 1>&6 |
---|
1290 | echo "configure:1291: checking for flex" >&5 |
---|
1291 | if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then |
---|
1292 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1293 | else |
---|
1294 | if (flex --version >/dev/null 2>&1) |
---|
1295 | then |
---|
1296 | if (flex --version | egrep "[2-9]\.[5-9]" >/dev/null 2>&1) |
---|
1297 | then |
---|
1298 | ac_cv_prog_flex=flex |
---|
1299 | fi |
---|
1300 | fi |
---|
1301 | |
---|
1302 | fi |
---|
1303 | |
---|
1304 | if test "${ac_cv_prog_flex+set}" = set; then |
---|
1305 | echo "$ac_t""flex" 1>&6 |
---|
1306 | LEX=flex |
---|
1307 | |
---|
1308 | else |
---|
1309 | { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; } |
---|
1310 | fi |
---|
1311 | elif test "${with_lex}" = no; then |
---|
1312 | echo "configure: warning: building without lex -- make might fail" 1>&2 |
---|
1313 | else |
---|
1314 | unset LEX |
---|
1315 | unset ac_cv_prog_LEX |
---|
1316 | for ac_prog in ${with_lex} |
---|
1317 | do |
---|
1318 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1319 | set dummy $ac_prog; ac_word=$2 |
---|
1320 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1321 | echo "configure:1322: checking for $ac_word" >&5 |
---|
1322 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
1323 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1324 | else |
---|
1325 | if test -n "$LEX"; then |
---|
1326 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
1327 | else |
---|
1328 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1329 | for ac_dir in $PATH; do |
---|
1330 | test -z "$ac_dir" && ac_dir=. |
---|
1331 | if test -f $ac_dir/$ac_word; then |
---|
1332 | ac_cv_prog_LEX="$ac_prog" |
---|
1333 | break |
---|
1334 | fi |
---|
1335 | done |
---|
1336 | IFS="$ac_save_ifs" |
---|
1337 | fi |
---|
1338 | fi |
---|
1339 | LEX="$ac_cv_prog_LEX" |
---|
1340 | if test -n "$LEX"; then |
---|
1341 | echo "$ac_t""$LEX" 1>&6 |
---|
1342 | else |
---|
1343 | echo "$ac_t""no" 1>&6 |
---|
1344 | fi |
---|
1345 | |
---|
1346 | test -n "$LEX" && break |
---|
1347 | done |
---|
1348 | |
---|
1349 | if test "x${LEX}" = x; then |
---|
1350 | echo "configure: warning: building without lex -- make might fail" 1>&2 |
---|
1351 | fi |
---|
1352 | fi |
---|
1353 | |
---|
1354 | # bison |
---|
1355 | for ac_prog in bison |
---|
1356 | do |
---|
1357 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1358 | set dummy $ac_prog; ac_word=$2 |
---|
1359 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1360 | echo "configure:1361: checking for $ac_word" >&5 |
---|
1361 | if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then |
---|
1362 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1363 | else |
---|
1364 | if test -n "$BISON"; then |
---|
1365 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
---|
1366 | else |
---|
1367 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1368 | for ac_dir in $PATH; do |
---|
1369 | test -z "$ac_dir" && ac_dir=. |
---|
1370 | if test -f $ac_dir/$ac_word; then |
---|
1371 | ac_cv_prog_BISON="$ac_prog" |
---|
1372 | break |
---|
1373 | fi |
---|
1374 | done |
---|
1375 | IFS="$ac_save_ifs" |
---|
1376 | fi |
---|
1377 | fi |
---|
1378 | BISON="$ac_cv_prog_BISON" |
---|
1379 | if test -n "$BISON"; then |
---|
1380 | echo "$ac_t""$BISON" 1>&6 |
---|
1381 | else |
---|
1382 | echo "$ac_t""no" 1>&6 |
---|
1383 | fi |
---|
1384 | |
---|
1385 | test -n "$BISON" && break |
---|
1386 | done |
---|
1387 | |
---|
1388 | if test "${BISON+set}" != set; then |
---|
1389 | echo "configure: warning: did not find bison -- make might fail" 1>&2 |
---|
1390 | fi |
---|
1391 | |
---|
1392 | # ln -s |
---|
1393 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1394 | echo "configure:1395: checking whether ln -s works" >&5 |
---|
1395 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1396 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1397 | else |
---|
1398 | rm -f conftestdata |
---|
1399 | if ln -s X conftestdata 2>/dev/null |
---|
1400 | then |
---|
1401 | rm -f conftestdata |
---|
1402 | ac_cv_prog_LN_S="ln -s" |
---|
1403 | else |
---|
1404 | ac_cv_prog_LN_S=ln |
---|
1405 | fi |
---|
1406 | fi |
---|
1407 | LN_S="$ac_cv_prog_LN_S" |
---|
1408 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1409 | echo "$ac_t""yes" 1>&6 |
---|
1410 | else |
---|
1411 | echo "$ac_t""no" 1>&6 |
---|
1412 | fi |
---|
1413 | |
---|
1414 | |
---|
1415 | for ac_prog in perl5 perl |
---|
1416 | do |
---|
1417 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1418 | set dummy $ac_prog; ac_word=$2 |
---|
1419 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1420 | echo "configure:1421: checking for $ac_word" >&5 |
---|
1421 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
---|
1422 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1423 | else |
---|
1424 | if test -n "$PERL"; then |
---|
1425 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
---|
1426 | else |
---|
1427 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1428 | for ac_dir in $PATH; do |
---|
1429 | test -z "$ac_dir" && ac_dir=. |
---|
1430 | if test -f $ac_dir/$ac_word; then |
---|
1431 | ac_cv_prog_PERL="$ac_prog" |
---|
1432 | break |
---|
1433 | fi |
---|
1434 | done |
---|
1435 | IFS="$ac_save_ifs" |
---|
1436 | fi |
---|
1437 | fi |
---|
1438 | PERL="$ac_cv_prog_PERL" |
---|
1439 | if test -n "$PERL"; then |
---|
1440 | echo "$ac_t""$PERL" 1>&6 |
---|
1441 | else |
---|
1442 | echo "$ac_t""no" 1>&6 |
---|
1443 | fi |
---|
1444 | |
---|
1445 | test -n "$PERL" && break |
---|
1446 | done |
---|
1447 | |
---|
1448 | |
---|
1449 | # lib checks |
---|
1450 | echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 |
---|
1451 | echo "configure:1452: checking for atof in -lm" >&5 |
---|
1452 | ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` |
---|
1453 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1454 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1455 | else |
---|
1456 | ac_save_LIBS="$LIBS" |
---|
1457 | LIBS="-lm $LIBS" |
---|
1458 | cat > conftest.$ac_ext <<EOF |
---|
1459 | #line 1460 "configure" |
---|
1460 | #include "confdefs.h" |
---|
1461 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1462 | /* We use char because int might match the return type of a gcc2 |
---|
1463 | builtin and then its argument prototype would still apply. */ |
---|
1464 | char atof(); |
---|
1465 | |
---|
1466 | int main() { |
---|
1467 | atof() |
---|
1468 | ; return 0; } |
---|
1469 | EOF |
---|
1470 | if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1471 | rm -rf conftest* |
---|
1472 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1473 | else |
---|
1474 | echo "configure: failed program was:" >&5 |
---|
1475 | cat conftest.$ac_ext >&5 |
---|
1476 | rm -rf conftest* |
---|
1477 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1478 | fi |
---|
1479 | rm -f conftest* |
---|
1480 | LIBS="$ac_save_LIBS" |
---|
1481 | |
---|
1482 | fi |
---|
1483 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1484 | echo "$ac_t""yes" 1>&6 |
---|
1485 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1486 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1487 | cat >> confdefs.h <<EOF |
---|
1488 | #define $ac_tr_lib 1 |
---|
1489 | EOF |
---|
1490 | |
---|
1491 | LIBS="-lm $LIBS" |
---|
1492 | |
---|
1493 | else |
---|
1494 | echo "$ac_t""no" 1>&6 |
---|
1495 | fi |
---|
1496 | |
---|
1497 | echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 |
---|
1498 | echo "configure:1499: checking for socket in -lbsd" >&5 |
---|
1499 | ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` |
---|
1500 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1501 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1502 | else |
---|
1503 | ac_save_LIBS="$LIBS" |
---|
1504 | LIBS="-lbsd $LIBS" |
---|
1505 | cat > conftest.$ac_ext <<EOF |
---|
1506 | #line 1507 "configure" |
---|
1507 | #include "confdefs.h" |
---|
1508 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1509 | /* We use char because int might match the return type of a gcc2 |
---|
1510 | builtin and then its argument prototype would still apply. */ |
---|
1511 | char socket(); |
---|
1512 | |
---|
1513 | int main() { |
---|
1514 | socket() |
---|
1515 | ; return 0; } |
---|
1516 | EOF |
---|
1517 | if { (eval echo configure:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1518 | rm -rf conftest* |
---|
1519 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1520 | else |
---|
1521 | echo "configure: failed program was:" >&5 |
---|
1522 | cat conftest.$ac_ext >&5 |
---|
1523 | rm -rf conftest* |
---|
1524 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1525 | fi |
---|
1526 | rm -f conftest* |
---|
1527 | LIBS="$ac_save_LIBS" |
---|
1528 | |
---|
1529 | fi |
---|
1530 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1531 | echo "$ac_t""yes" 1>&6 |
---|
1532 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1533 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1534 | cat >> confdefs.h <<EOF |
---|
1535 | #define $ac_tr_lib 1 |
---|
1536 | EOF |
---|
1537 | |
---|
1538 | LIBS="-lbsd $LIBS" |
---|
1539 | |
---|
1540 | else |
---|
1541 | echo "$ac_t""no" 1>&6 |
---|
1542 | fi |
---|
1543 | |
---|
1544 | echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 |
---|
1545 | echo "configure:1546: checking for listen in -lsocket" >&5 |
---|
1546 | ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` |
---|
1547 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1548 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1549 | else |
---|
1550 | ac_save_LIBS="$LIBS" |
---|
1551 | LIBS="-lsocket $LIBS" |
---|
1552 | cat > conftest.$ac_ext <<EOF |
---|
1553 | #line 1554 "configure" |
---|
1554 | #include "confdefs.h" |
---|
1555 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1556 | /* We use char because int might match the return type of a gcc2 |
---|
1557 | builtin and then its argument prototype would still apply. */ |
---|
1558 | char listen(); |
---|
1559 | |
---|
1560 | int main() { |
---|
1561 | listen() |
---|
1562 | ; return 0; } |
---|
1563 | EOF |
---|
1564 | if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1565 | rm -rf conftest* |
---|
1566 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1567 | else |
---|
1568 | echo "configure: failed program was:" >&5 |
---|
1569 | cat conftest.$ac_ext >&5 |
---|
1570 | rm -rf conftest* |
---|
1571 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1572 | fi |
---|
1573 | rm -f conftest* |
---|
1574 | LIBS="$ac_save_LIBS" |
---|
1575 | |
---|
1576 | fi |
---|
1577 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1578 | echo "$ac_t""yes" 1>&6 |
---|
1579 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1580 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1581 | cat >> confdefs.h <<EOF |
---|
1582 | #define $ac_tr_lib 1 |
---|
1583 | EOF |
---|
1584 | |
---|
1585 | LIBS="-lsocket $LIBS" |
---|
1586 | |
---|
1587 | else |
---|
1588 | echo "$ac_t""no" 1>&6 |
---|
1589 | fi |
---|
1590 | |
---|
1591 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
1592 | echo "configure:1593: checking for gethostbyname in -lnsl" >&5 |
---|
1593 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
1594 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1595 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1596 | else |
---|
1597 | ac_save_LIBS="$LIBS" |
---|
1598 | LIBS="-lnsl $LIBS" |
---|
1599 | cat > conftest.$ac_ext <<EOF |
---|
1600 | #line 1601 "configure" |
---|
1601 | #include "confdefs.h" |
---|
1602 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1603 | /* We use char because int might match the return type of a gcc2 |
---|
1604 | builtin and then its argument prototype would still apply. */ |
---|
1605 | char gethostbyname(); |
---|
1606 | |
---|
1607 | int main() { |
---|
1608 | gethostbyname() |
---|
1609 | ; return 0; } |
---|
1610 | EOF |
---|
1611 | if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1612 | rm -rf conftest* |
---|
1613 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1614 | else |
---|
1615 | echo "configure: failed program was:" >&5 |
---|
1616 | cat conftest.$ac_ext >&5 |
---|
1617 | rm -rf conftest* |
---|
1618 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1619 | fi |
---|
1620 | rm -f conftest* |
---|
1621 | LIBS="$ac_save_LIBS" |
---|
1622 | |
---|
1623 | fi |
---|
1624 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1625 | echo "$ac_t""yes" 1>&6 |
---|
1626 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1627 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1628 | cat >> confdefs.h <<EOF |
---|
1629 | #define $ac_tr_lib 1 |
---|
1630 | EOF |
---|
1631 | |
---|
1632 | LIBS="-lnsl $LIBS" |
---|
1633 | |
---|
1634 | else |
---|
1635 | echo "$ac_t""no" 1>&6 |
---|
1636 | fi |
---|
1637 | |
---|
1638 | echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6 |
---|
1639 | echo "configure:1640: checking for index in -lucb" >&5 |
---|
1640 | ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'` |
---|
1641 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1642 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1643 | else |
---|
1644 | ac_save_LIBS="$LIBS" |
---|
1645 | LIBS="-lucb $LIBS" |
---|
1646 | cat > conftest.$ac_ext <<EOF |
---|
1647 | #line 1648 "configure" |
---|
1648 | #include "confdefs.h" |
---|
1649 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1650 | /* We use char because int might match the return type of a gcc2 |
---|
1651 | builtin and then its argument prototype would still apply. */ |
---|
1652 | char ; |
---|
1653 | |
---|
1654 | int main() { |
---|
1655 | index() |
---|
1656 | ; return 0; } |
---|
1657 | EOF |
---|
1658 | if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1659 | rm -rf conftest* |
---|
1660 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1661 | else |
---|
1662 | echo "configure: failed program was:" >&5 |
---|
1663 | cat conftest.$ac_ext >&5 |
---|
1664 | rm -rf conftest* |
---|
1665 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1666 | fi |
---|
1667 | rm -f conftest* |
---|
1668 | LIBS="$ac_save_LIBS" |
---|
1669 | |
---|
1670 | fi |
---|
1671 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1672 | echo "$ac_t""yes" 1>&6 |
---|
1673 | ac_tr_lib=HAVE_LIB`echo ucb | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1674 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1675 | cat >> confdefs.h <<EOF |
---|
1676 | #define $ac_tr_lib 1 |
---|
1677 | EOF |
---|
1678 | |
---|
1679 | LIBS="-lucb $LIBS" |
---|
1680 | |
---|
1681 | else |
---|
1682 | echo "$ac_t""no" 1>&6 |
---|
1683 | fi |
---|
1684 | |
---|
1685 | |
---|
1686 | # heder file checks |
---|
1687 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1688 | echo "configure:1689: checking for ANSI C header files" >&5 |
---|
1689 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1690 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1691 | else |
---|
1692 | cat > conftest.$ac_ext <<EOF |
---|
1693 | #line 1694 "configure" |
---|
1694 | #include "confdefs.h" |
---|
1695 | #include <stdlib.h> |
---|
1696 | #include <stdarg.h> |
---|
1697 | #include <string.h> |
---|
1698 | #include <float.h> |
---|
1699 | EOF |
---|
1700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1701 | { (eval echo configure:1702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1702 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1703 | if test -z "$ac_err"; then |
---|
1704 | rm -rf conftest* |
---|
1705 | ac_cv_header_stdc=yes |
---|
1706 | else |
---|
1707 | echo "$ac_err" >&5 |
---|
1708 | echo "configure: failed program was:" >&5 |
---|
1709 | cat conftest.$ac_ext >&5 |
---|
1710 | rm -rf conftest* |
---|
1711 | ac_cv_header_stdc=no |
---|
1712 | fi |
---|
1713 | rm -f conftest* |
---|
1714 | |
---|
1715 | if test $ac_cv_header_stdc = yes; then |
---|
1716 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1717 | cat > conftest.$ac_ext <<EOF |
---|
1718 | #line 1719 "configure" |
---|
1719 | #include "confdefs.h" |
---|
1720 | #include <string.h> |
---|
1721 | EOF |
---|
1722 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1723 | egrep "memchr" >/dev/null 2>&1; then |
---|
1724 | : |
---|
1725 | else |
---|
1726 | rm -rf conftest* |
---|
1727 | ac_cv_header_stdc=no |
---|
1728 | fi |
---|
1729 | rm -f conftest* |
---|
1730 | |
---|
1731 | fi |
---|
1732 | |
---|
1733 | if test $ac_cv_header_stdc = yes; then |
---|
1734 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1735 | cat > conftest.$ac_ext <<EOF |
---|
1736 | #line 1737 "configure" |
---|
1737 | #include "confdefs.h" |
---|
1738 | #include <stdlib.h> |
---|
1739 | EOF |
---|
1740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1741 | egrep "free" >/dev/null 2>&1; then |
---|
1742 | : |
---|
1743 | else |
---|
1744 | rm -rf conftest* |
---|
1745 | ac_cv_header_stdc=no |
---|
1746 | fi |
---|
1747 | rm -f conftest* |
---|
1748 | |
---|
1749 | fi |
---|
1750 | |
---|
1751 | if test $ac_cv_header_stdc = yes; then |
---|
1752 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1753 | if test "$cross_compiling" = yes; then |
---|
1754 | : |
---|
1755 | else |
---|
1756 | cat > conftest.$ac_ext <<EOF |
---|
1757 | #line 1758 "configure" |
---|
1758 | #include "confdefs.h" |
---|
1759 | #include <ctype.h> |
---|
1760 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1761 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1762 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1763 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1764 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1765 | exit (0); } |
---|
1766 | |
---|
1767 | EOF |
---|
1768 | if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
1769 | then |
---|
1770 | : |
---|
1771 | else |
---|
1772 | echo "configure: failed program was:" >&5 |
---|
1773 | cat conftest.$ac_ext >&5 |
---|
1774 | rm -fr conftest* |
---|
1775 | ac_cv_header_stdc=no |
---|
1776 | fi |
---|
1777 | rm -fr conftest* |
---|
1778 | fi |
---|
1779 | |
---|
1780 | fi |
---|
1781 | fi |
---|
1782 | |
---|
1783 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1784 | if test $ac_cv_header_stdc = yes; then |
---|
1785 | cat >> confdefs.h <<\EOF |
---|
1786 | #define STDC_HEADERS 1 |
---|
1787 | EOF |
---|
1788 | |
---|
1789 | fi |
---|
1790 | |
---|
1791 | for ac_hdr in limits.h unistd.h |
---|
1792 | do |
---|
1793 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1794 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1795 | echo "configure:1796: checking for $ac_hdr" >&5 |
---|
1796 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1797 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1798 | else |
---|
1799 | cat > conftest.$ac_ext <<EOF |
---|
1800 | #line 1801 "configure" |
---|
1801 | #include "confdefs.h" |
---|
1802 | #include <$ac_hdr> |
---|
1803 | EOF |
---|
1804 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1805 | { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1806 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1807 | if test -z "$ac_err"; then |
---|
1808 | rm -rf conftest* |
---|
1809 | eval "ac_cv_header_$ac_safe=yes" |
---|
1810 | else |
---|
1811 | echo "$ac_err" >&5 |
---|
1812 | echo "configure: failed program was:" >&5 |
---|
1813 | cat conftest.$ac_ext >&5 |
---|
1814 | rm -rf conftest* |
---|
1815 | eval "ac_cv_header_$ac_safe=no" |
---|
1816 | fi |
---|
1817 | rm -f conftest* |
---|
1818 | fi |
---|
1819 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1820 | echo "$ac_t""yes" 1>&6 |
---|
1821 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1822 | cat >> confdefs.h <<EOF |
---|
1823 | #define $ac_tr_hdr 1 |
---|
1824 | EOF |
---|
1825 | |
---|
1826 | else |
---|
1827 | echo "$ac_t""no" 1>&6 |
---|
1828 | { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; } |
---|
1829 | fi |
---|
1830 | done |
---|
1831 | |
---|
1832 | |
---|
1833 | for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h readline/readline.h |
---|
1834 | do |
---|
1835 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1836 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1837 | echo "configure:1838: checking for $ac_hdr" >&5 |
---|
1838 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1839 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1840 | else |
---|
1841 | cat > conftest.$ac_ext <<EOF |
---|
1842 | #line 1843 "configure" |
---|
1843 | #include "confdefs.h" |
---|
1844 | #include <$ac_hdr> |
---|
1845 | EOF |
---|
1846 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1847 | { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1848 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1849 | if test -z "$ac_err"; then |
---|
1850 | rm -rf conftest* |
---|
1851 | eval "ac_cv_header_$ac_safe=yes" |
---|
1852 | else |
---|
1853 | echo "$ac_err" >&5 |
---|
1854 | echo "configure: failed program was:" >&5 |
---|
1855 | cat conftest.$ac_ext >&5 |
---|
1856 | rm -rf conftest* |
---|
1857 | eval "ac_cv_header_$ac_safe=no" |
---|
1858 | fi |
---|
1859 | rm -f conftest* |
---|
1860 | fi |
---|
1861 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1862 | echo "$ac_t""yes" 1>&6 |
---|
1863 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1864 | cat >> confdefs.h <<EOF |
---|
1865 | #define $ac_tr_hdr 1 |
---|
1866 | EOF |
---|
1867 | |
---|
1868 | else |
---|
1869 | echo "$ac_t""no" 1>&6 |
---|
1870 | fi |
---|
1871 | done |
---|
1872 | |
---|
1873 | |
---|
1874 | # typedefs, structures |
---|
1875 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
1876 | echo "configure:1877: checking for working const" >&5 |
---|
1877 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
1878 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1879 | else |
---|
1880 | cat > conftest.$ac_ext <<EOF |
---|
1881 | #line 1882 "configure" |
---|
1882 | #include "confdefs.h" |
---|
1883 | |
---|
1884 | int main() { |
---|
1885 | |
---|
1886 | /* Ultrix mips cc rejects this. */ |
---|
1887 | typedef int charset[2]; const charset x; |
---|
1888 | /* SunOS 4.1.1 cc rejects this. */ |
---|
1889 | char const *const *ccp; |
---|
1890 | char **p; |
---|
1891 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
1892 | struct point {int x, y;}; |
---|
1893 | static struct point const zero = {0,0}; |
---|
1894 | /* AIX XL C 1.02.0.0 rejects this. |
---|
1895 | It does not let you subtract one const X* pointer from another in an arm |
---|
1896 | of an if-expression whose if-part is not a constant expression */ |
---|
1897 | const char *g = "string"; |
---|
1898 | ccp = &g + (g ? g-g : 0); |
---|
1899 | /* HPUX 7.0 cc rejects these. */ |
---|
1900 | ++ccp; |
---|
1901 | p = (char**) ccp; |
---|
1902 | ccp = (char const *const *) p; |
---|
1903 | { /* SCO 3.2v4 cc rejects this. */ |
---|
1904 | char *t; |
---|
1905 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
1906 | |
---|
1907 | *t++ = 0; |
---|
1908 | } |
---|
1909 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
1910 | int x[] = {25, 17}; |
---|
1911 | const int *foo = &x[0]; |
---|
1912 | ++foo; |
---|
1913 | } |
---|
1914 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
1915 | typedef const int *iptr; |
---|
1916 | iptr p = 0; |
---|
1917 | ++p; |
---|
1918 | } |
---|
1919 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
1920 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
1921 | struct s { int j; const int *ap[3]; }; |
---|
1922 | struct s *b; b->j = 5; |
---|
1923 | } |
---|
1924 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
1925 | const int foo = 10; |
---|
1926 | } |
---|
1927 | |
---|
1928 | ; return 0; } |
---|
1929 | EOF |
---|
1930 | if { (eval echo configure:1931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1931 | rm -rf conftest* |
---|
1932 | ac_cv_c_const=yes |
---|
1933 | else |
---|
1934 | echo "configure: failed program was:" >&5 |
---|
1935 | cat conftest.$ac_ext >&5 |
---|
1936 | rm -rf conftest* |
---|
1937 | ac_cv_c_const=no |
---|
1938 | fi |
---|
1939 | rm -f conftest* |
---|
1940 | fi |
---|
1941 | |
---|
1942 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
1943 | if test $ac_cv_c_const = no; then |
---|
1944 | cat >> confdefs.h <<\EOF |
---|
1945 | #define const |
---|
1946 | EOF |
---|
1947 | |
---|
1948 | fi |
---|
1949 | |
---|
1950 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
1951 | echo "configure:1952: checking for inline" >&5 |
---|
1952 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
1953 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1954 | else |
---|
1955 | ac_cv_c_inline=no |
---|
1956 | for ac_kw in inline __inline__ __inline; do |
---|
1957 | cat > conftest.$ac_ext <<EOF |
---|
1958 | #line 1959 "configure" |
---|
1959 | #include "confdefs.h" |
---|
1960 | |
---|
1961 | int main() { |
---|
1962 | } $ac_kw foo() { |
---|
1963 | ; return 0; } |
---|
1964 | EOF |
---|
1965 | if { (eval echo configure:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1966 | rm -rf conftest* |
---|
1967 | ac_cv_c_inline=$ac_kw; break |
---|
1968 | else |
---|
1969 | echo "configure: failed program was:" >&5 |
---|
1970 | cat conftest.$ac_ext >&5 |
---|
1971 | fi |
---|
1972 | rm -f conftest* |
---|
1973 | done |
---|
1974 | |
---|
1975 | fi |
---|
1976 | |
---|
1977 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
1978 | case "$ac_cv_c_inline" in |
---|
1979 | inline | yes) ;; |
---|
1980 | no) cat >> confdefs.h <<\EOF |
---|
1981 | #define inline |
---|
1982 | EOF |
---|
1983 | ;; |
---|
1984 | *) cat >> confdefs.h <<EOF |
---|
1985 | #define inline $ac_cv_c_inline |
---|
1986 | EOF |
---|
1987 | ;; |
---|
1988 | esac |
---|
1989 | |
---|
1990 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
1991 | echo "configure:1992: checking for size_t" >&5 |
---|
1992 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
1993 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1994 | else |
---|
1995 | cat > conftest.$ac_ext <<EOF |
---|
1996 | #line 1997 "configure" |
---|
1997 | #include "confdefs.h" |
---|
1998 | #include <sys/types.h> |
---|
1999 | #if STDC_HEADERS |
---|
2000 | #include <stdlib.h> |
---|
2001 | #include <stddef.h> |
---|
2002 | #endif |
---|
2003 | EOF |
---|
2004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2005 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2006 | rm -rf conftest* |
---|
2007 | ac_cv_type_size_t=yes |
---|
2008 | else |
---|
2009 | rm -rf conftest* |
---|
2010 | ac_cv_type_size_t=no |
---|
2011 | fi |
---|
2012 | rm -f conftest* |
---|
2013 | |
---|
2014 | fi |
---|
2015 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
2016 | if test $ac_cv_type_size_t = no; then |
---|
2017 | cat >> confdefs.h <<\EOF |
---|
2018 | #define size_t unsigned |
---|
2019 | EOF |
---|
2020 | |
---|
2021 | fi |
---|
2022 | |
---|
2023 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
---|
2024 | echo "configure:2025: checking whether time.h and sys/time.h may both be included" >&5 |
---|
2025 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
---|
2026 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2027 | else |
---|
2028 | cat > conftest.$ac_ext <<EOF |
---|
2029 | #line 2030 "configure" |
---|
2030 | #include "confdefs.h" |
---|
2031 | #include <sys/types.h> |
---|
2032 | #include <sys/time.h> |
---|
2033 | #include <time.h> |
---|
2034 | int main() { |
---|
2035 | struct tm *tp; |
---|
2036 | ; return 0; } |
---|
2037 | EOF |
---|
2038 | if { (eval echo configure:2039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2039 | rm -rf conftest* |
---|
2040 | ac_cv_header_time=yes |
---|
2041 | else |
---|
2042 | echo "configure: failed program was:" >&5 |
---|
2043 | cat conftest.$ac_ext >&5 |
---|
2044 | rm -rf conftest* |
---|
2045 | ac_cv_header_time=no |
---|
2046 | fi |
---|
2047 | rm -f conftest* |
---|
2048 | fi |
---|
2049 | |
---|
2050 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
---|
2051 | if test $ac_cv_header_time = yes; then |
---|
2052 | cat >> confdefs.h <<\EOF |
---|
2053 | #define TIME_WITH_SYS_TIME 1 |
---|
2054 | EOF |
---|
2055 | |
---|
2056 | fi |
---|
2057 | |
---|
2058 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
---|
2059 | echo "configure:2060: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
2060 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
---|
2061 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2062 | else |
---|
2063 | cat > conftest.$ac_ext <<EOF |
---|
2064 | #line 2065 "configure" |
---|
2065 | #include "confdefs.h" |
---|
2066 | #include <sys/types.h> |
---|
2067 | #include <time.h> |
---|
2068 | int main() { |
---|
2069 | struct tm *tp; tp->tm_sec; |
---|
2070 | ; return 0; } |
---|
2071 | EOF |
---|
2072 | if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2073 | rm -rf conftest* |
---|
2074 | ac_cv_struct_tm=time.h |
---|
2075 | else |
---|
2076 | echo "configure: failed program was:" >&5 |
---|
2077 | cat conftest.$ac_ext >&5 |
---|
2078 | rm -rf conftest* |
---|
2079 | ac_cv_struct_tm=sys/time.h |
---|
2080 | fi |
---|
2081 | rm -f conftest* |
---|
2082 | fi |
---|
2083 | |
---|
2084 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
---|
2085 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
2086 | cat >> confdefs.h <<\EOF |
---|
2087 | #define TM_IN_SYS_TIME 1 |
---|
2088 | EOF |
---|
2089 | |
---|
2090 | fi |
---|
2091 | |
---|
2092 | |
---|
2093 | # library functions. |
---|
2094 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
2095 | # for constant arguments. Useless! |
---|
2096 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
2097 | echo "configure:2098: checking for working alloca.h" >&5 |
---|
2098 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
2099 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2100 | else |
---|
2101 | cat > conftest.$ac_ext <<EOF |
---|
2102 | #line 2103 "configure" |
---|
2103 | #include "confdefs.h" |
---|
2104 | #include <alloca.h> |
---|
2105 | int main() { |
---|
2106 | char *p = alloca(2 * sizeof(int)); |
---|
2107 | ; return 0; } |
---|
2108 | EOF |
---|
2109 | if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2110 | rm -rf conftest* |
---|
2111 | ac_cv_header_alloca_h=yes |
---|
2112 | else |
---|
2113 | echo "configure: failed program was:" >&5 |
---|
2114 | cat conftest.$ac_ext >&5 |
---|
2115 | rm -rf conftest* |
---|
2116 | ac_cv_header_alloca_h=no |
---|
2117 | fi |
---|
2118 | rm -f conftest* |
---|
2119 | fi |
---|
2120 | |
---|
2121 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
2122 | if test $ac_cv_header_alloca_h = yes; then |
---|
2123 | cat >> confdefs.h <<\EOF |
---|
2124 | #define HAVE_ALLOCA_H 1 |
---|
2125 | EOF |
---|
2126 | |
---|
2127 | fi |
---|
2128 | |
---|
2129 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
2130 | echo "configure:2131: checking for alloca" >&5 |
---|
2131 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
2132 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2133 | else |
---|
2134 | cat > conftest.$ac_ext <<EOF |
---|
2135 | #line 2136 "configure" |
---|
2136 | #include "confdefs.h" |
---|
2137 | |
---|
2138 | #ifdef __GNUC__ |
---|
2139 | # define alloca __builtin_alloca |
---|
2140 | #else |
---|
2141 | # if HAVE_ALLOCA_H |
---|
2142 | # include <alloca.h> |
---|
2143 | # else |
---|
2144 | # ifdef _AIX |
---|
2145 | #pragma alloca |
---|
2146 | # else |
---|
2147 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
2148 | char *alloca (); |
---|
2149 | # endif |
---|
2150 | # endif |
---|
2151 | # endif |
---|
2152 | #endif |
---|
2153 | |
---|
2154 | int main() { |
---|
2155 | char *p = (char *) alloca(1); |
---|
2156 | ; return 0; } |
---|
2157 | EOF |
---|
2158 | if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2159 | rm -rf conftest* |
---|
2160 | ac_cv_func_alloca_works=yes |
---|
2161 | else |
---|
2162 | echo "configure: failed program was:" >&5 |
---|
2163 | cat conftest.$ac_ext >&5 |
---|
2164 | rm -rf conftest* |
---|
2165 | ac_cv_func_alloca_works=no |
---|
2166 | fi |
---|
2167 | rm -f conftest* |
---|
2168 | fi |
---|
2169 | |
---|
2170 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
2171 | if test $ac_cv_func_alloca_works = yes; then |
---|
2172 | cat >> confdefs.h <<\EOF |
---|
2173 | #define HAVE_ALLOCA 1 |
---|
2174 | EOF |
---|
2175 | |
---|
2176 | fi |
---|
2177 | |
---|
2178 | if test $ac_cv_func_alloca_works = no; then |
---|
2179 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
2180 | # that cause trouble. Some versions do not even contain alloca or |
---|
2181 | # contain a buggy version. If you still want to use their alloca, |
---|
2182 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
2183 | ALLOCA=alloca.o |
---|
2184 | cat >> confdefs.h <<\EOF |
---|
2185 | #define C_ALLOCA 1 |
---|
2186 | EOF |
---|
2187 | |
---|
2188 | |
---|
2189 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
2190 | echo "configure:2191: checking whether alloca needs Cray hooks" >&5 |
---|
2191 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
2192 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2193 | else |
---|
2194 | cat > conftest.$ac_ext <<EOF |
---|
2195 | #line 2196 "configure" |
---|
2196 | #include "confdefs.h" |
---|
2197 | #if defined(CRAY) && ! defined(CRAY2) |
---|
2198 | webecray |
---|
2199 | #else |
---|
2200 | wenotbecray |
---|
2201 | #endif |
---|
2202 | |
---|
2203 | EOF |
---|
2204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2205 | egrep "webecray" >/dev/null 2>&1; then |
---|
2206 | rm -rf conftest* |
---|
2207 | ac_cv_os_cray=yes |
---|
2208 | else |
---|
2209 | rm -rf conftest* |
---|
2210 | ac_cv_os_cray=no |
---|
2211 | fi |
---|
2212 | rm -f conftest* |
---|
2213 | |
---|
2214 | fi |
---|
2215 | |
---|
2216 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
2217 | if test $ac_cv_os_cray = yes; then |
---|
2218 | for ac_func in _getb67 GETB67 getb67; do |
---|
2219 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2220 | echo "configure:2221: checking for $ac_func" >&5 |
---|
2221 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2222 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2223 | else |
---|
2224 | cat > conftest.$ac_ext <<EOF |
---|
2225 | #line 2226 "configure" |
---|
2226 | #include "confdefs.h" |
---|
2227 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2228 | which can conflict with char $ac_func(); below. */ |
---|
2229 | #include <assert.h> |
---|
2230 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2231 | /* We use char because int might match the return type of a gcc2 |
---|
2232 | builtin and then its argument prototype would still apply. */ |
---|
2233 | char $ac_func(); |
---|
2234 | |
---|
2235 | int main() { |
---|
2236 | |
---|
2237 | /* The GNU C library defines this for functions which it implements |
---|
2238 | to always fail with ENOSYS. Some functions are actually named |
---|
2239 | something starting with __ and the normal name is an alias. */ |
---|
2240 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2241 | choke me |
---|
2242 | #else |
---|
2243 | $ac_func(); |
---|
2244 | #endif |
---|
2245 | |
---|
2246 | ; return 0; } |
---|
2247 | EOF |
---|
2248 | if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2249 | rm -rf conftest* |
---|
2250 | eval "ac_cv_func_$ac_func=yes" |
---|
2251 | else |
---|
2252 | echo "configure: failed program was:" >&5 |
---|
2253 | cat conftest.$ac_ext >&5 |
---|
2254 | rm -rf conftest* |
---|
2255 | eval "ac_cv_func_$ac_func=no" |
---|
2256 | fi |
---|
2257 | rm -f conftest* |
---|
2258 | fi |
---|
2259 | |
---|
2260 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2261 | echo "$ac_t""yes" 1>&6 |
---|
2262 | cat >> confdefs.h <<EOF |
---|
2263 | #define CRAY_STACKSEG_END $ac_func |
---|
2264 | EOF |
---|
2265 | |
---|
2266 | break |
---|
2267 | else |
---|
2268 | echo "$ac_t""no" 1>&6 |
---|
2269 | fi |
---|
2270 | |
---|
2271 | done |
---|
2272 | fi |
---|
2273 | |
---|
2274 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
2275 | echo "configure:2276: checking stack direction for C alloca" >&5 |
---|
2276 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
2277 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2278 | else |
---|
2279 | if test "$cross_compiling" = yes; then |
---|
2280 | ac_cv_c_stack_direction=0 |
---|
2281 | else |
---|
2282 | cat > conftest.$ac_ext <<EOF |
---|
2283 | #line 2284 "configure" |
---|
2284 | #include "confdefs.h" |
---|
2285 | find_stack_direction () |
---|
2286 | { |
---|
2287 | static char *addr = 0; |
---|
2288 | auto char dummy; |
---|
2289 | if (addr == 0) |
---|
2290 | { |
---|
2291 | addr = &dummy; |
---|
2292 | return find_stack_direction (); |
---|
2293 | } |
---|
2294 | else |
---|
2295 | return (&dummy > addr) ? 1 : -1; |
---|
2296 | } |
---|
2297 | main () |
---|
2298 | { |
---|
2299 | exit (find_stack_direction() < 0); |
---|
2300 | } |
---|
2301 | EOF |
---|
2302 | if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
2303 | then |
---|
2304 | ac_cv_c_stack_direction=1 |
---|
2305 | else |
---|
2306 | echo "configure: failed program was:" >&5 |
---|
2307 | cat conftest.$ac_ext >&5 |
---|
2308 | rm -fr conftest* |
---|
2309 | ac_cv_c_stack_direction=-1 |
---|
2310 | fi |
---|
2311 | rm -fr conftest* |
---|
2312 | fi |
---|
2313 | |
---|
2314 | fi |
---|
2315 | |
---|
2316 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
2317 | cat >> confdefs.h <<EOF |
---|
2318 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
2319 | EOF |
---|
2320 | |
---|
2321 | fi |
---|
2322 | |
---|
2323 | if test $ac_cv_prog_gcc = yes; then |
---|
2324 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
---|
2325 | echo "configure:2326: checking whether ${CC-cc} needs -traditional" >&5 |
---|
2326 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
---|
2327 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2328 | else |
---|
2329 | ac_pattern="Autoconf.*'x'" |
---|
2330 | cat > conftest.$ac_ext <<EOF |
---|
2331 | #line 2332 "configure" |
---|
2332 | #include "confdefs.h" |
---|
2333 | #include <sgtty.h> |
---|
2334 | Autoconf TIOCGETP |
---|
2335 | EOF |
---|
2336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2337 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
2338 | rm -rf conftest* |
---|
2339 | ac_cv_prog_gcc_traditional=yes |
---|
2340 | else |
---|
2341 | rm -rf conftest* |
---|
2342 | ac_cv_prog_gcc_traditional=no |
---|
2343 | fi |
---|
2344 | rm -f conftest* |
---|
2345 | |
---|
2346 | |
---|
2347 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
2348 | cat > conftest.$ac_ext <<EOF |
---|
2349 | #line 2350 "configure" |
---|
2350 | #include "confdefs.h" |
---|
2351 | #include <termio.h> |
---|
2352 | Autoconf TCGETA |
---|
2353 | EOF |
---|
2354 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2355 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
2356 | rm -rf conftest* |
---|
2357 | ac_cv_prog_gcc_traditional=yes |
---|
2358 | fi |
---|
2359 | rm -f conftest* |
---|
2360 | |
---|
2361 | fi |
---|
2362 | fi |
---|
2363 | |
---|
2364 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
---|
2365 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
2366 | CC="$CC -traditional" |
---|
2367 | fi |
---|
2368 | fi |
---|
2369 | |
---|
2370 | for ac_hdr in unistd.h |
---|
2371 | do |
---|
2372 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2373 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2374 | echo "configure:2375: checking for $ac_hdr" >&5 |
---|
2375 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2376 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2377 | else |
---|
2378 | cat > conftest.$ac_ext <<EOF |
---|
2379 | #line 2380 "configure" |
---|
2380 | #include "confdefs.h" |
---|
2381 | #include <$ac_hdr> |
---|
2382 | EOF |
---|
2383 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2384 | { (eval echo configure:2385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2385 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2386 | if test -z "$ac_err"; then |
---|
2387 | rm -rf conftest* |
---|
2388 | eval "ac_cv_header_$ac_safe=yes" |
---|
2389 | else |
---|
2390 | echo "$ac_err" >&5 |
---|
2391 | echo "configure: failed program was:" >&5 |
---|
2392 | cat conftest.$ac_ext >&5 |
---|
2393 | rm -rf conftest* |
---|
2394 | eval "ac_cv_header_$ac_safe=no" |
---|
2395 | fi |
---|
2396 | rm -f conftest* |
---|
2397 | fi |
---|
2398 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2399 | echo "$ac_t""yes" 1>&6 |
---|
2400 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2401 | cat >> confdefs.h <<EOF |
---|
2402 | #define $ac_tr_hdr 1 |
---|
2403 | EOF |
---|
2404 | |
---|
2405 | else |
---|
2406 | echo "$ac_t""no" 1>&6 |
---|
2407 | fi |
---|
2408 | done |
---|
2409 | |
---|
2410 | for ac_func in getpagesize |
---|
2411 | do |
---|
2412 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2413 | echo "configure:2414: checking for $ac_func" >&5 |
---|
2414 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2415 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2416 | else |
---|
2417 | cat > conftest.$ac_ext <<EOF |
---|
2418 | #line 2419 "configure" |
---|
2419 | #include "confdefs.h" |
---|
2420 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2421 | which can conflict with char $ac_func(); below. */ |
---|
2422 | #include <assert.h> |
---|
2423 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2424 | /* We use char because int might match the return type of a gcc2 |
---|
2425 | builtin and then its argument prototype would still apply. */ |
---|
2426 | char $ac_func(); |
---|
2427 | |
---|
2428 | int main() { |
---|
2429 | |
---|
2430 | /* The GNU C library defines this for functions which it implements |
---|
2431 | to always fail with ENOSYS. Some functions are actually named |
---|
2432 | something starting with __ and the normal name is an alias. */ |
---|
2433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2434 | choke me |
---|
2435 | #else |
---|
2436 | $ac_func(); |
---|
2437 | #endif |
---|
2438 | |
---|
2439 | ; return 0; } |
---|
2440 | EOF |
---|
2441 | if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2442 | rm -rf conftest* |
---|
2443 | eval "ac_cv_func_$ac_func=yes" |
---|
2444 | else |
---|
2445 | echo "configure: failed program was:" >&5 |
---|
2446 | cat conftest.$ac_ext >&5 |
---|
2447 | rm -rf conftest* |
---|
2448 | eval "ac_cv_func_$ac_func=no" |
---|
2449 | fi |
---|
2450 | rm -f conftest* |
---|
2451 | fi |
---|
2452 | |
---|
2453 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2454 | echo "$ac_t""yes" 1>&6 |
---|
2455 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2456 | cat >> confdefs.h <<EOF |
---|
2457 | #define $ac_tr_func 1 |
---|
2458 | EOF |
---|
2459 | |
---|
2460 | else |
---|
2461 | echo "$ac_t""no" 1>&6 |
---|
2462 | fi |
---|
2463 | done |
---|
2464 | |
---|
2465 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
2466 | echo "configure:2467: checking for working mmap" >&5 |
---|
2467 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
2468 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2469 | else |
---|
2470 | if test "$cross_compiling" = yes; then |
---|
2471 | ac_cv_func_mmap_fixed_mapped=no |
---|
2472 | else |
---|
2473 | cat > conftest.$ac_ext <<EOF |
---|
2474 | #line 2475 "configure" |
---|
2475 | #include "confdefs.h" |
---|
2476 | |
---|
2477 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
2478 | Here is a matrix of mmap possibilities: |
---|
2479 | mmap private not fixed |
---|
2480 | mmap private fixed at somewhere currently unmapped |
---|
2481 | mmap private fixed at somewhere already mapped |
---|
2482 | mmap shared not fixed |
---|
2483 | mmap shared fixed at somewhere currently unmapped |
---|
2484 | mmap shared fixed at somewhere already mapped |
---|
2485 | For private mappings, we should verify that changes cannot be read() |
---|
2486 | back from the file, nor mmap's back from the file at a different |
---|
2487 | address. (There have been systems where private was not correctly |
---|
2488 | implemented like the infamous i386 svr4.0, and systems where the |
---|
2489 | VM page cache was not coherent with the filesystem buffer cache |
---|
2490 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
2491 | For shared mappings, we should conversely verify that changes get |
---|
2492 | propogated back to all the places they're supposed to be. |
---|
2493 | |
---|
2494 | Grep wants private fixed already mapped. |
---|
2495 | The main things grep needs to know about mmap are: |
---|
2496 | * does it exist and is it safe to write into the mmap'd area |
---|
2497 | * how to use it (BSD variants) */ |
---|
2498 | #include <sys/types.h> |
---|
2499 | #include <fcntl.h> |
---|
2500 | #include <sys/mman.h> |
---|
2501 | |
---|
2502 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
2503 | #ifndef HAVE_GETPAGESIZE |
---|
2504 | # ifdef HAVE_UNISTD_H |
---|
2505 | # include <unistd.h> |
---|
2506 | # endif |
---|
2507 | |
---|
2508 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
2509 | # ifndef HAVE_SYS_PARAM_H |
---|
2510 | # define HAVE_SYS_PARAM_H 1 |
---|
2511 | # endif |
---|
2512 | |
---|
2513 | # ifdef _SC_PAGESIZE |
---|
2514 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
2515 | # else /* no _SC_PAGESIZE */ |
---|
2516 | # ifdef HAVE_SYS_PARAM_H |
---|
2517 | # include <sys/param.h> |
---|
2518 | # ifdef EXEC_PAGESIZE |
---|
2519 | # define getpagesize() EXEC_PAGESIZE |
---|
2520 | # else /* no EXEC_PAGESIZE */ |
---|
2521 | # ifdef NBPG |
---|
2522 | # define getpagesize() NBPG * CLSIZE |
---|
2523 | # ifndef CLSIZE |
---|
2524 | # define CLSIZE 1 |
---|
2525 | # endif /* no CLSIZE */ |
---|
2526 | # else /* no NBPG */ |
---|
2527 | # ifdef NBPC |
---|
2528 | # define getpagesize() NBPC |
---|
2529 | # else /* no NBPC */ |
---|
2530 | # ifdef PAGESIZE |
---|
2531 | # define getpagesize() PAGESIZE |
---|
2532 | # endif /* PAGESIZE */ |
---|
2533 | # endif /* no NBPC */ |
---|
2534 | # endif /* no NBPG */ |
---|
2535 | # endif /* no EXEC_PAGESIZE */ |
---|
2536 | # else /* no HAVE_SYS_PARAM_H */ |
---|
2537 | # define getpagesize() 8192 /* punt totally */ |
---|
2538 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
2539 | # endif /* no _SC_PAGESIZE */ |
---|
2540 | |
---|
2541 | #endif /* no HAVE_GETPAGESIZE */ |
---|
2542 | |
---|
2543 | #ifdef __cplusplus |
---|
2544 | extern "C" { void *malloc(unsigned); } |
---|
2545 | #else |
---|
2546 | char *malloc(); |
---|
2547 | #endif |
---|
2548 | |
---|
2549 | int |
---|
2550 | main() |
---|
2551 | { |
---|
2552 | char *data, *data2, *data3; |
---|
2553 | int i, pagesize; |
---|
2554 | int fd; |
---|
2555 | |
---|
2556 | pagesize = getpagesize(); |
---|
2557 | |
---|
2558 | /* |
---|
2559 | * First, make a file with some known garbage in it. |
---|
2560 | */ |
---|
2561 | data = malloc(pagesize); |
---|
2562 | if (!data) |
---|
2563 | exit(1); |
---|
2564 | for (i = 0; i < pagesize; ++i) |
---|
2565 | *(data + i) = rand(); |
---|
2566 | umask(0); |
---|
2567 | fd = creat("conftestmmap", 0600); |
---|
2568 | if (fd < 0) |
---|
2569 | exit(1); |
---|
2570 | if (write(fd, data, pagesize) != pagesize) |
---|
2571 | exit(1); |
---|
2572 | close(fd); |
---|
2573 | |
---|
2574 | /* |
---|
2575 | * Next, try to mmap the file at a fixed address which |
---|
2576 | * already has something else allocated at it. If we can, |
---|
2577 | * also make sure that we see the same garbage. |
---|
2578 | */ |
---|
2579 | fd = open("conftestmmap", O_RDWR); |
---|
2580 | if (fd < 0) |
---|
2581 | exit(1); |
---|
2582 | data2 = malloc(2 * pagesize); |
---|
2583 | if (!data2) |
---|
2584 | exit(1); |
---|
2585 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
2586 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
2587 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
2588 | exit(1); |
---|
2589 | for (i = 0; i < pagesize; ++i) |
---|
2590 | if (*(data + i) != *(data2 + i)) |
---|
2591 | exit(1); |
---|
2592 | |
---|
2593 | /* |
---|
2594 | * Finally, make sure that changes to the mapped area |
---|
2595 | * do not percolate back to the file as seen by read(). |
---|
2596 | * (This is a bug on some variants of i386 svr4.0.) |
---|
2597 | */ |
---|
2598 | for (i = 0; i < pagesize; ++i) |
---|
2599 | *(data2 + i) = *(data2 + i) + 1; |
---|
2600 | data3 = malloc(pagesize); |
---|
2601 | if (!data3) |
---|
2602 | exit(1); |
---|
2603 | if (read(fd, data3, pagesize) != pagesize) |
---|
2604 | exit(1); |
---|
2605 | for (i = 0; i < pagesize; ++i) |
---|
2606 | if (*(data + i) != *(data3 + i)) |
---|
2607 | exit(1); |
---|
2608 | close(fd); |
---|
2609 | unlink("conftestmmap"); |
---|
2610 | exit(0); |
---|
2611 | } |
---|
2612 | |
---|
2613 | EOF |
---|
2614 | if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
2615 | then |
---|
2616 | ac_cv_func_mmap_fixed_mapped=yes |
---|
2617 | else |
---|
2618 | echo "configure: failed program was:" >&5 |
---|
2619 | cat conftest.$ac_ext >&5 |
---|
2620 | rm -fr conftest* |
---|
2621 | ac_cv_func_mmap_fixed_mapped=no |
---|
2622 | fi |
---|
2623 | rm -fr conftest* |
---|
2624 | fi |
---|
2625 | |
---|
2626 | fi |
---|
2627 | |
---|
2628 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
2629 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
2630 | cat >> confdefs.h <<\EOF |
---|
2631 | #define HAVE_MMAP 1 |
---|
2632 | EOF |
---|
2633 | |
---|
2634 | fi |
---|
2635 | |
---|
2636 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
---|
2637 | echo "configure:2638: checking return type of signal handlers" >&5 |
---|
2638 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
---|
2639 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2640 | else |
---|
2641 | cat > conftest.$ac_ext <<EOF |
---|
2642 | #line 2643 "configure" |
---|
2643 | #include "confdefs.h" |
---|
2644 | #include <sys/types.h> |
---|
2645 | #include <signal.h> |
---|
2646 | #ifdef signal |
---|
2647 | #undef signal |
---|
2648 | #endif |
---|
2649 | #ifdef __cplusplus |
---|
2650 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
2651 | #else |
---|
2652 | void (*signal ()) (); |
---|
2653 | #endif |
---|
2654 | |
---|
2655 | int main() { |
---|
2656 | int i; |
---|
2657 | ; return 0; } |
---|
2658 | EOF |
---|
2659 | if { (eval echo configure:2660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2660 | rm -rf conftest* |
---|
2661 | ac_cv_type_signal=void |
---|
2662 | else |
---|
2663 | echo "configure: failed program was:" >&5 |
---|
2664 | cat conftest.$ac_ext >&5 |
---|
2665 | rm -rf conftest* |
---|
2666 | ac_cv_type_signal=int |
---|
2667 | fi |
---|
2668 | rm -f conftest* |
---|
2669 | fi |
---|
2670 | |
---|
2671 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
---|
2672 | cat >> confdefs.h <<EOF |
---|
2673 | #define RETSIGTYPE $ac_cv_type_signal |
---|
2674 | EOF |
---|
2675 | |
---|
2676 | |
---|
2677 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
2678 | echo "configure:2679: checking for vprintf" >&5 |
---|
2679 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
2680 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2681 | else |
---|
2682 | cat > conftest.$ac_ext <<EOF |
---|
2683 | #line 2684 "configure" |
---|
2684 | #include "confdefs.h" |
---|
2685 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2686 | which can conflict with char vprintf(); below. */ |
---|
2687 | #include <assert.h> |
---|
2688 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2689 | /* We use char because int might match the return type of a gcc2 |
---|
2690 | builtin and then its argument prototype would still apply. */ |
---|
2691 | char vprintf(); |
---|
2692 | |
---|
2693 | int main() { |
---|
2694 | |
---|
2695 | /* The GNU C library defines this for functions which it implements |
---|
2696 | to always fail with ENOSYS. Some functions are actually named |
---|
2697 | something starting with __ and the normal name is an alias. */ |
---|
2698 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
2699 | choke me |
---|
2700 | #else |
---|
2701 | vprintf(); |
---|
2702 | #endif |
---|
2703 | |
---|
2704 | ; return 0; } |
---|
2705 | EOF |
---|
2706 | if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2707 | rm -rf conftest* |
---|
2708 | eval "ac_cv_func_vprintf=yes" |
---|
2709 | else |
---|
2710 | echo "configure: failed program was:" >&5 |
---|
2711 | cat conftest.$ac_ext >&5 |
---|
2712 | rm -rf conftest* |
---|
2713 | eval "ac_cv_func_vprintf=no" |
---|
2714 | fi |
---|
2715 | rm -f conftest* |
---|
2716 | fi |
---|
2717 | |
---|
2718 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
2719 | echo "$ac_t""yes" 1>&6 |
---|
2720 | cat >> confdefs.h <<\EOF |
---|
2721 | #define HAVE_VPRINTF 1 |
---|
2722 | EOF |
---|
2723 | |
---|
2724 | else |
---|
2725 | echo "$ac_t""no" 1>&6 |
---|
2726 | fi |
---|
2727 | |
---|
2728 | if test "$ac_cv_func_vprintf" != yes; then |
---|
2729 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
2730 | echo "configure:2731: checking for _doprnt" >&5 |
---|
2731 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
2732 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2733 | else |
---|
2734 | cat > conftest.$ac_ext <<EOF |
---|
2735 | #line 2736 "configure" |
---|
2736 | #include "confdefs.h" |
---|
2737 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2738 | which can conflict with char _doprnt(); below. */ |
---|
2739 | #include <assert.h> |
---|
2740 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2741 | /* We use char because int might match the return type of a gcc2 |
---|
2742 | builtin and then its argument prototype would still apply. */ |
---|
2743 | char _doprnt(); |
---|
2744 | |
---|
2745 | int main() { |
---|
2746 | |
---|
2747 | /* The GNU C library defines this for functions which it implements |
---|
2748 | to always fail with ENOSYS. Some functions are actually named |
---|
2749 | something starting with __ and the normal name is an alias. */ |
---|
2750 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
2751 | choke me |
---|
2752 | #else |
---|
2753 | _doprnt(); |
---|
2754 | #endif |
---|
2755 | |
---|
2756 | ; return 0; } |
---|
2757 | EOF |
---|
2758 | if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2759 | rm -rf conftest* |
---|
2760 | eval "ac_cv_func__doprnt=yes" |
---|
2761 | else |
---|
2762 | echo "configure: failed program was:" >&5 |
---|
2763 | cat conftest.$ac_ext >&5 |
---|
2764 | rm -rf conftest* |
---|
2765 | eval "ac_cv_func__doprnt=no" |
---|
2766 | fi |
---|
2767 | rm -f conftest* |
---|
2768 | fi |
---|
2769 | |
---|
2770 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
2771 | echo "$ac_t""yes" 1>&6 |
---|
2772 | cat >> confdefs.h <<\EOF |
---|
2773 | #define HAVE_DOPRNT 1 |
---|
2774 | EOF |
---|
2775 | |
---|
2776 | else |
---|
2777 | echo "$ac_t""no" 1>&6 |
---|
2778 | fi |
---|
2779 | |
---|
2780 | fi |
---|
2781 | |
---|
2782 | for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink sleep usleep setenv getpwnam popen |
---|
2783 | do |
---|
2784 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2785 | echo "configure:2786: checking for $ac_func" >&5 |
---|
2786 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2787 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2788 | else |
---|
2789 | cat > conftest.$ac_ext <<EOF |
---|
2790 | #line 2791 "configure" |
---|
2791 | #include "confdefs.h" |
---|
2792 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2793 | which can conflict with char $ac_func(); below. */ |
---|
2794 | #include <assert.h> |
---|
2795 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2796 | /* We use char because int might match the return type of a gcc2 |
---|
2797 | builtin and then its argument prototype would still apply. */ |
---|
2798 | char $ac_func(); |
---|
2799 | |
---|
2800 | int main() { |
---|
2801 | |
---|
2802 | /* The GNU C library defines this for functions which it implements |
---|
2803 | to always fail with ENOSYS. Some functions are actually named |
---|
2804 | something starting with __ and the normal name is an alias. */ |
---|
2805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2806 | choke me |
---|
2807 | #else |
---|
2808 | $ac_func(); |
---|
2809 | #endif |
---|
2810 | |
---|
2811 | ; return 0; } |
---|
2812 | EOF |
---|
2813 | if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2814 | rm -rf conftest* |
---|
2815 | eval "ac_cv_func_$ac_func=yes" |
---|
2816 | else |
---|
2817 | echo "configure: failed program was:" >&5 |
---|
2818 | cat conftest.$ac_ext >&5 |
---|
2819 | rm -rf conftest* |
---|
2820 | eval "ac_cv_func_$ac_func=no" |
---|
2821 | fi |
---|
2822 | rm -f conftest* |
---|
2823 | fi |
---|
2824 | |
---|
2825 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2826 | echo "$ac_t""yes" 1>&6 |
---|
2827 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2828 | cat >> confdefs.h <<EOF |
---|
2829 | #define $ac_tr_func 1 |
---|
2830 | EOF |
---|
2831 | |
---|
2832 | else |
---|
2833 | echo "$ac_t""no" 1>&6 |
---|
2834 | fi |
---|
2835 | done |
---|
2836 | |
---|
2837 | |
---|
2838 | |
---|
2839 | # arithmetic shifts |
---|
2840 | echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 |
---|
2841 | echo "configure:2842: checking whether your machine has correct arithmetic shifts" >&5 |
---|
2842 | if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then |
---|
2843 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2844 | else |
---|
2845 | if test "$cross_compiling" = yes; then |
---|
2846 | if test "$ac_c_cross_dos" = yes; then |
---|
2847 | ac_cv_shift=yes; |
---|
2848 | else |
---|
2849 | echo "$ac_t""no" 1>&6 |
---|
2850 | { echo "configure: error: cross compilation without default value" 1>&2; exit 1; } |
---|
2851 | fi |
---|
2852 | else |
---|
2853 | cat > conftest.$ac_ext <<EOF |
---|
2854 | #line 2855 "configure" |
---|
2855 | #include "confdefs.h" |
---|
2856 | int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } |
---|
2857 | EOF |
---|
2858 | if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
2859 | then |
---|
2860 | ac_cv_shift=yes |
---|
2861 | else |
---|
2862 | echo "configure: failed program was:" >&5 |
---|
2863 | cat conftest.$ac_ext >&5 |
---|
2864 | rm -fr conftest* |
---|
2865 | ac_cv_shift=no |
---|
2866 | fi |
---|
2867 | rm -fr conftest* |
---|
2868 | fi |
---|
2869 | |
---|
2870 | fi |
---|
2871 | |
---|
2872 | |
---|
2873 | if test "$ac_cv_shift" = yes; then |
---|
2874 | echo "$ac_t""yes" 1>&6 |
---|
2875 | else |
---|
2876 | echo "$ac_t""no" 1>&6 |
---|
2877 | { echo "configure: error: need -2 >> 1 == -1" 1>&2; exit 1; } |
---|
2878 | fi |
---|
2879 | |
---|
2880 | |
---|
2881 | # check for a peculiar constructor initialization |
---|
2882 | echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 |
---|
2883 | echo "configure:2884: checking whether explicit C++ constructor calls are allowed" >&5 |
---|
2884 | |
---|
2885 | ac_ext=C |
---|
2886 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2887 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2888 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2889 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2890 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
2891 | |
---|
2892 | if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then |
---|
2893 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2894 | else |
---|
2895 | cat > conftest.$ac_ext <<EOF |
---|
2896 | #line 2897 "configure" |
---|
2897 | #include "confdefs.h" |
---|
2898 | |
---|
2899 | int main() { |
---|
2900 | class testclass |
---|
2901 | { |
---|
2902 | public: |
---|
2903 | int value; |
---|
2904 | testclass() : value(0) {} |
---|
2905 | testclass( int i ) : value(i) {} |
---|
2906 | ~testclass() { value = 0; } |
---|
2907 | }; |
---|
2908 | |
---|
2909 | testclass ptr; |
---|
2910 | ptr.testclass(1); |
---|
2911 | |
---|
2912 | ; return 0; } |
---|
2913 | EOF |
---|
2914 | if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2915 | rm -rf conftest* |
---|
2916 | ac_cv_explicit_const=yes |
---|
2917 | else |
---|
2918 | echo "configure: failed program was:" >&5 |
---|
2919 | cat conftest.$ac_ext >&5 |
---|
2920 | rm -rf conftest* |
---|
2921 | ac_cv_explicit_const=no |
---|
2922 | fi |
---|
2923 | rm -f conftest* |
---|
2924 | fi |
---|
2925 | |
---|
2926 | ac_ext=c |
---|
2927 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
2928 | ac_cpp='$CPP $CPPFLAGS' |
---|
2929 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
2930 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
2931 | cross_compiling=$ac_cv_prog_cc_cross |
---|
2932 | |
---|
2933 | echo "$ac_t""$ac_cv_explicit_const" 1>&6 |
---|
2934 | if test "$ac_cv_explicit_const" = yes; then |
---|
2935 | cat >> confdefs.h <<\EOF |
---|
2936 | #define HAVE_EXPLICIT_CONSTR 1 |
---|
2937 | EOF |
---|
2938 | |
---|
2939 | fi |
---|
2940 | |
---|
2941 | # sprintf returns number of printed chars |
---|
2942 | echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 |
---|
2943 | echo "configure:2944: checking whether vsprintf returns number of printed chars" >&5 |
---|
2944 | if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then |
---|
2945 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2946 | else |
---|
2947 | if test "$cross_compiling" = yes; then |
---|
2948 | ac_cv_returns_n_of_chars=no |
---|
2949 | else |
---|
2950 | cat > conftest.$ac_ext <<EOF |
---|
2951 | #line 2952 "configure" |
---|
2952 | #include "confdefs.h" |
---|
2953 | #include <stdio.h> |
---|
2954 | main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } |
---|
2955 | EOF |
---|
2956 | if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
2957 | then |
---|
2958 | ac_cv_returns_n_of_chars=yes |
---|
2959 | else |
---|
2960 | echo "configure: failed program was:" >&5 |
---|
2961 | cat conftest.$ac_ext >&5 |
---|
2962 | rm -fr conftest* |
---|
2963 | ac_cv_returns_n_of_chars=no |
---|
2964 | fi |
---|
2965 | rm -fr conftest* |
---|
2966 | fi |
---|
2967 | |
---|
2968 | fi |
---|
2969 | |
---|
2970 | if test "$ac_cv_returns_n_of_chars" = yes; then |
---|
2971 | echo "$ac_t""yes" 1>&6 |
---|
2972 | else |
---|
2973 | echo "$ac_t""no" 1>&6 |
---|
2974 | cat >> confdefs.h <<\EOF |
---|
2975 | #define BSD_SPRINTF 1 |
---|
2976 | EOF |
---|
2977 | |
---|
2978 | fi |
---|
2979 | |
---|
2980 | # determine ALIGN_8 |
---|
2981 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
---|
2982 | echo "configure:2983: checking size of char" >&5 |
---|
2983 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
---|
2984 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2985 | else |
---|
2986 | if test "$cross_compiling" = yes; then |
---|
2987 | ac_cv_sizeof_char=1 |
---|
2988 | else |
---|
2989 | cat > conftest.$ac_ext <<EOF |
---|
2990 | #line 2991 "configure" |
---|
2991 | #include "confdefs.h" |
---|
2992 | #include <stdio.h> |
---|
2993 | main() |
---|
2994 | { |
---|
2995 | FILE *f=fopen("conftestval", "w"); |
---|
2996 | if (!f) exit(1); |
---|
2997 | fprintf(f, "%d\n", sizeof(char)); |
---|
2998 | exit(0); |
---|
2999 | } |
---|
3000 | EOF |
---|
3001 | if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3002 | then |
---|
3003 | ac_cv_sizeof_char=`cat conftestval` |
---|
3004 | else |
---|
3005 | echo "configure: failed program was:" >&5 |
---|
3006 | cat conftest.$ac_ext >&5 |
---|
3007 | rm -fr conftest* |
---|
3008 | ac_cv_sizeof_char=0 |
---|
3009 | fi |
---|
3010 | rm -fr conftest* |
---|
3011 | fi |
---|
3012 | |
---|
3013 | fi |
---|
3014 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
---|
3015 | cat >> confdefs.h <<EOF |
---|
3016 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
---|
3017 | EOF |
---|
3018 | |
---|
3019 | |
---|
3020 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
---|
3021 | echo "configure:3022: checking size of short" >&5 |
---|
3022 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
---|
3023 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3024 | else |
---|
3025 | if test "$cross_compiling" = yes; then |
---|
3026 | ac_cv_sizeof_short=2 |
---|
3027 | else |
---|
3028 | cat > conftest.$ac_ext <<EOF |
---|
3029 | #line 3030 "configure" |
---|
3030 | #include "confdefs.h" |
---|
3031 | #include <stdio.h> |
---|
3032 | main() |
---|
3033 | { |
---|
3034 | FILE *f=fopen("conftestval", "w"); |
---|
3035 | if (!f) exit(1); |
---|
3036 | fprintf(f, "%d\n", sizeof(short)); |
---|
3037 | exit(0); |
---|
3038 | } |
---|
3039 | EOF |
---|
3040 | if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3041 | then |
---|
3042 | ac_cv_sizeof_short=`cat conftestval` |
---|
3043 | else |
---|
3044 | echo "configure: failed program was:" >&5 |
---|
3045 | cat conftest.$ac_ext >&5 |
---|
3046 | rm -fr conftest* |
---|
3047 | ac_cv_sizeof_short=0 |
---|
3048 | fi |
---|
3049 | rm -fr conftest* |
---|
3050 | fi |
---|
3051 | |
---|
3052 | fi |
---|
3053 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
---|
3054 | cat >> confdefs.h <<EOF |
---|
3055 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
---|
3056 | EOF |
---|
3057 | |
---|
3058 | |
---|
3059 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
---|
3060 | echo "configure:3061: checking size of int" >&5 |
---|
3061 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
---|
3062 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3063 | else |
---|
3064 | if test "$cross_compiling" = yes; then |
---|
3065 | ac_cv_sizeof_int=4 |
---|
3066 | else |
---|
3067 | cat > conftest.$ac_ext <<EOF |
---|
3068 | #line 3069 "configure" |
---|
3069 | #include "confdefs.h" |
---|
3070 | #include <stdio.h> |
---|
3071 | main() |
---|
3072 | { |
---|
3073 | FILE *f=fopen("conftestval", "w"); |
---|
3074 | if (!f) exit(1); |
---|
3075 | fprintf(f, "%d\n", sizeof(int)); |
---|
3076 | exit(0); |
---|
3077 | } |
---|
3078 | EOF |
---|
3079 | if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3080 | then |
---|
3081 | ac_cv_sizeof_int=`cat conftestval` |
---|
3082 | else |
---|
3083 | echo "configure: failed program was:" >&5 |
---|
3084 | cat conftest.$ac_ext >&5 |
---|
3085 | rm -fr conftest* |
---|
3086 | ac_cv_sizeof_int=0 |
---|
3087 | fi |
---|
3088 | rm -fr conftest* |
---|
3089 | fi |
---|
3090 | |
---|
3091 | fi |
---|
3092 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
---|
3093 | cat >> confdefs.h <<EOF |
---|
3094 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
3095 | EOF |
---|
3096 | |
---|
3097 | |
---|
3098 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
---|
3099 | echo "configure:3100: checking size of long" >&5 |
---|
3100 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
---|
3101 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3102 | else |
---|
3103 | if test "$cross_compiling" = yes; then |
---|
3104 | ac_cv_sizeof_long=4 |
---|
3105 | else |
---|
3106 | cat > conftest.$ac_ext <<EOF |
---|
3107 | #line 3108 "configure" |
---|
3108 | #include "confdefs.h" |
---|
3109 | #include <stdio.h> |
---|
3110 | main() |
---|
3111 | { |
---|
3112 | FILE *f=fopen("conftestval", "w"); |
---|
3113 | if (!f) exit(1); |
---|
3114 | fprintf(f, "%d\n", sizeof(long)); |
---|
3115 | exit(0); |
---|
3116 | } |
---|
3117 | EOF |
---|
3118 | if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3119 | then |
---|
3120 | ac_cv_sizeof_long=`cat conftestval` |
---|
3121 | else |
---|
3122 | echo "configure: failed program was:" >&5 |
---|
3123 | cat conftest.$ac_ext >&5 |
---|
3124 | rm -fr conftest* |
---|
3125 | ac_cv_sizeof_long=0 |
---|
3126 | fi |
---|
3127 | rm -fr conftest* |
---|
3128 | fi |
---|
3129 | |
---|
3130 | fi |
---|
3131 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
---|
3132 | cat >> confdefs.h <<EOF |
---|
3133 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
3134 | EOF |
---|
3135 | |
---|
3136 | |
---|
3137 | echo $ac_n "checking size of void*""... $ac_c" 1>&6 |
---|
3138 | echo "configure:3139: checking size of void*" >&5 |
---|
3139 | if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then |
---|
3140 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3141 | else |
---|
3142 | if test "$cross_compiling" = yes; then |
---|
3143 | ac_cv_sizeof_voidp=4 |
---|
3144 | else |
---|
3145 | cat > conftest.$ac_ext <<EOF |
---|
3146 | #line 3147 "configure" |
---|
3147 | #include "confdefs.h" |
---|
3148 | #include <stdio.h> |
---|
3149 | main() |
---|
3150 | { |
---|
3151 | FILE *f=fopen("conftestval", "w"); |
---|
3152 | if (!f) exit(1); |
---|
3153 | fprintf(f, "%d\n", sizeof(void*)); |
---|
3154 | exit(0); |
---|
3155 | } |
---|
3156 | EOF |
---|
3157 | if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3158 | then |
---|
3159 | ac_cv_sizeof_voidp=`cat conftestval` |
---|
3160 | else |
---|
3161 | echo "configure: failed program was:" >&5 |
---|
3162 | cat conftest.$ac_ext >&5 |
---|
3163 | rm -fr conftest* |
---|
3164 | ac_cv_sizeof_voidp=0 |
---|
3165 | fi |
---|
3166 | rm -fr conftest* |
---|
3167 | fi |
---|
3168 | |
---|
3169 | fi |
---|
3170 | echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6 |
---|
3171 | cat >> confdefs.h <<EOF |
---|
3172 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp |
---|
3173 | EOF |
---|
3174 | |
---|
3175 | |
---|
3176 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
---|
3177 | echo "configure:3178: checking size of double" >&5 |
---|
3178 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
---|
3179 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3180 | else |
---|
3181 | if test "$cross_compiling" = yes; then |
---|
3182 | ac_cv_sizeof_double=8 |
---|
3183 | else |
---|
3184 | cat > conftest.$ac_ext <<EOF |
---|
3185 | #line 3186 "configure" |
---|
3186 | #include "confdefs.h" |
---|
3187 | #include <stdio.h> |
---|
3188 | main() |
---|
3189 | { |
---|
3190 | FILE *f=fopen("conftestval", "w"); |
---|
3191 | if (!f) exit(1); |
---|
3192 | fprintf(f, "%d\n", sizeof(double)); |
---|
3193 | exit(0); |
---|
3194 | } |
---|
3195 | EOF |
---|
3196 | if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3197 | then |
---|
3198 | ac_cv_sizeof_double=`cat conftestval` |
---|
3199 | else |
---|
3200 | echo "configure: failed program was:" >&5 |
---|
3201 | cat conftest.$ac_ext >&5 |
---|
3202 | rm -fr conftest* |
---|
3203 | ac_cv_sizeof_double=0 |
---|
3204 | fi |
---|
3205 | rm -fr conftest* |
---|
3206 | fi |
---|
3207 | |
---|
3208 | fi |
---|
3209 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
---|
3210 | cat >> confdefs.h <<EOF |
---|
3211 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
---|
3212 | EOF |
---|
3213 | |
---|
3214 | |
---|
3215 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
---|
3216 | echo "configure:3217: checking whether byte ordering is bigendian" >&5 |
---|
3217 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
---|
3218 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3219 | else |
---|
3220 | ac_cv_c_bigendian=unknown |
---|
3221 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
3222 | cat > conftest.$ac_ext <<EOF |
---|
3223 | #line 3224 "configure" |
---|
3224 | #include "confdefs.h" |
---|
3225 | #include <sys/types.h> |
---|
3226 | #include <sys/param.h> |
---|
3227 | int main() { |
---|
3228 | |
---|
3229 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
---|
3230 | bogus endian macros |
---|
3231 | #endif |
---|
3232 | ; return 0; } |
---|
3233 | EOF |
---|
3234 | if { (eval echo configure:3235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3235 | rm -rf conftest* |
---|
3236 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
3237 | cat > conftest.$ac_ext <<EOF |
---|
3238 | #line 3239 "configure" |
---|
3239 | #include "confdefs.h" |
---|
3240 | #include <sys/types.h> |
---|
3241 | #include <sys/param.h> |
---|
3242 | int main() { |
---|
3243 | |
---|
3244 | #if BYTE_ORDER != BIG_ENDIAN |
---|
3245 | not big endian |
---|
3246 | #endif |
---|
3247 | ; return 0; } |
---|
3248 | EOF |
---|
3249 | if { (eval echo configure:3250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3250 | rm -rf conftest* |
---|
3251 | ac_cv_c_bigendian=yes |
---|
3252 | else |
---|
3253 | echo "configure: failed program was:" >&5 |
---|
3254 | cat conftest.$ac_ext >&5 |
---|
3255 | rm -rf conftest* |
---|
3256 | ac_cv_c_bigendian=no |
---|
3257 | fi |
---|
3258 | rm -f conftest* |
---|
3259 | else |
---|
3260 | echo "configure: failed program was:" >&5 |
---|
3261 | cat conftest.$ac_ext >&5 |
---|
3262 | fi |
---|
3263 | rm -f conftest* |
---|
3264 | if test $ac_cv_c_bigendian = unknown; then |
---|
3265 | if test "$cross_compiling" = yes; then |
---|
3266 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
3267 | else |
---|
3268 | cat > conftest.$ac_ext <<EOF |
---|
3269 | #line 3270 "configure" |
---|
3270 | #include "confdefs.h" |
---|
3271 | main () { |
---|
3272 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
3273 | union |
---|
3274 | { |
---|
3275 | long l; |
---|
3276 | char c[sizeof (long)]; |
---|
3277 | } u; |
---|
3278 | u.l = 1; |
---|
3279 | exit (u.c[sizeof (long) - 1] == 1); |
---|
3280 | } |
---|
3281 | EOF |
---|
3282 | if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3283 | then |
---|
3284 | ac_cv_c_bigendian=no |
---|
3285 | else |
---|
3286 | echo "configure: failed program was:" >&5 |
---|
3287 | cat conftest.$ac_ext >&5 |
---|
3288 | rm -fr conftest* |
---|
3289 | ac_cv_c_bigendian=yes |
---|
3290 | fi |
---|
3291 | rm -fr conftest* |
---|
3292 | fi |
---|
3293 | |
---|
3294 | fi |
---|
3295 | fi |
---|
3296 | |
---|
3297 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
---|
3298 | if test $ac_cv_c_bigendian = yes; then |
---|
3299 | cat >> confdefs.h <<\EOF |
---|
3300 | #define WORDS_BIGENDIAN 1 |
---|
3301 | EOF |
---|
3302 | |
---|
3303 | fi |
---|
3304 | |
---|
3305 | if test "$ac_cv_sizeof_int" != 4; then |
---|
3306 | { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; } |
---|
3307 | fi |
---|
3308 | if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then |
---|
3309 | { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; } |
---|
3310 | fi |
---|
3311 | if test "$ac_cv_sizeof_double" != 8; then |
---|
3312 | { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; } |
---|
3313 | fi |
---|
3314 | if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then |
---|
3315 | { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; } |
---|
3316 | fi |
---|
3317 | |
---|
3318 | # Check whether --with-rootdir or --without-rootdir was given. |
---|
3319 | if test "${with_rootdir+set}" = set; then |
---|
3320 | withval="$with_rootdir" |
---|
3321 | : |
---|
3322 | fi |
---|
3323 | |
---|
3324 | # Check whether --with-lex or --without-lex was given. |
---|
3325 | if test "${with_lex+set}" = set; then |
---|
3326 | withval="$with_lex" |
---|
3327 | : |
---|
3328 | fi |
---|
3329 | |
---|
3330 | # Check whether --with-readline or --without-readline was given. |
---|
3331 | if test "${with_readline+set}" = set; then |
---|
3332 | withval="$with_readline" |
---|
3333 | : |
---|
3334 | fi |
---|
3335 | |
---|
3336 | # Check whether --with-MP or --without-MP was given. |
---|
3337 | if test "${with_MP+set}" = set; then |
---|
3338 | withval="$with_MP" |
---|
3339 | : |
---|
3340 | fi |
---|
3341 | |
---|
3342 | # Check whether --with-dbm or --without-dbm was given. |
---|
3343 | if test "${with_dbm+set}" = set; then |
---|
3344 | withval="$with_dbm" |
---|
3345 | : |
---|
3346 | fi |
---|
3347 | |
---|
3348 | # Check whether --with-factory or --without-factory was given. |
---|
3349 | if test "${with_factory+set}" = set; then |
---|
3350 | withval="$with_factory" |
---|
3351 | : |
---|
3352 | fi |
---|
3353 | |
---|
3354 | # Check whether --with-libfac or --without-libfac was given. |
---|
3355 | if test "${with_libfac+set}" = set; then |
---|
3356 | withval="$with_libfac" |
---|
3357 | : |
---|
3358 | fi |
---|
3359 | |
---|
3360 | # Check whether --with-namespaces or --without-namespaces was given. |
---|
3361 | if test "${with_namespaces+set}" = set; then |
---|
3362 | withval="$with_namespaces" |
---|
3363 | : |
---|
3364 | fi |
---|
3365 | |
---|
3366 | # Check whether --with-dl or --without-dl was given. |
---|
3367 | if test "${with_dl+set}" = set; then |
---|
3368 | withval="$with_dl" |
---|
3369 | : |
---|
3370 | fi |
---|
3371 | |
---|
3372 | # Check whether --with-apint or --without-apint was given. |
---|
3373 | if test "${with_apint+set}" = set; then |
---|
3374 | withval="$with_apint" |
---|
3375 | : |
---|
3376 | fi |
---|
3377 | |
---|
3378 | # Check whether --with-plural or --without-plural was given. |
---|
3379 | if test "${with_plural+set}" = set; then |
---|
3380 | withval="$with_plural" |
---|
3381 | : |
---|
3382 | fi |
---|
3383 | |
---|
3384 | |
---|
3385 | |
---|
3386 | echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
---|
3387 | echo "configure:3388: checking for tgetent in -lncurses" >&5 |
---|
3388 | ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
3389 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3390 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3391 | else |
---|
3392 | ac_save_LIBS="$LIBS" |
---|
3393 | LIBS="-lncurses $LIBS" |
---|
3394 | cat > conftest.$ac_ext <<EOF |
---|
3395 | #line 3396 "configure" |
---|
3396 | #include "confdefs.h" |
---|
3397 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3398 | /* We use char because int might match the return type of a gcc2 |
---|
3399 | builtin and then its argument prototype would still apply. */ |
---|
3400 | char tgetent(); |
---|
3401 | |
---|
3402 | int main() { |
---|
3403 | tgetent() |
---|
3404 | ; return 0; } |
---|
3405 | EOF |
---|
3406 | if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3407 | rm -rf conftest* |
---|
3408 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3409 | else |
---|
3410 | echo "configure: failed program was:" >&5 |
---|
3411 | cat conftest.$ac_ext >&5 |
---|
3412 | rm -rf conftest* |
---|
3413 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3414 | fi |
---|
3415 | rm -f conftest* |
---|
3416 | LIBS="$ac_save_LIBS" |
---|
3417 | |
---|
3418 | fi |
---|
3419 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3420 | echo "$ac_t""yes" 1>&6 |
---|
3421 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3422 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3423 | cat >> confdefs.h <<EOF |
---|
3424 | #define $ac_tr_lib 1 |
---|
3425 | EOF |
---|
3426 | |
---|
3427 | LIBS="-lncurses $LIBS" |
---|
3428 | |
---|
3429 | else |
---|
3430 | echo "$ac_t""no" 1>&6 |
---|
3431 | \ |
---|
3432 | echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
---|
3433 | echo "configure:3434: checking for tgetent in -lcurses" >&5 |
---|
3434 | ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
3435 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3436 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3437 | else |
---|
3438 | ac_save_LIBS="$LIBS" |
---|
3439 | LIBS="-lcurses $LIBS" |
---|
3440 | cat > conftest.$ac_ext <<EOF |
---|
3441 | #line 3442 "configure" |
---|
3442 | #include "confdefs.h" |
---|
3443 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3444 | /* We use char because int might match the return type of a gcc2 |
---|
3445 | builtin and then its argument prototype would still apply. */ |
---|
3446 | char tgetent(); |
---|
3447 | |
---|
3448 | int main() { |
---|
3449 | tgetent() |
---|
3450 | ; return 0; } |
---|
3451 | EOF |
---|
3452 | if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3453 | rm -rf conftest* |
---|
3454 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3455 | else |
---|
3456 | echo "configure: failed program was:" >&5 |
---|
3457 | cat conftest.$ac_ext >&5 |
---|
3458 | rm -rf conftest* |
---|
3459 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3460 | fi |
---|
3461 | rm -f conftest* |
---|
3462 | LIBS="$ac_save_LIBS" |
---|
3463 | |
---|
3464 | fi |
---|
3465 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3466 | echo "$ac_t""yes" 1>&6 |
---|
3467 | ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
3468 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3469 | cat >> confdefs.h <<EOF |
---|
3470 | #define $ac_tr_lib 1 |
---|
3471 | EOF |
---|
3472 | |
---|
3473 | LIBS="-lcurses $LIBS" |
---|
3474 | |
---|
3475 | else |
---|
3476 | echo "$ac_t""no" 1>&6 |
---|
3477 | \ |
---|
3478 | echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
---|
3479 | echo "configure:3480: checking for tgetent in -ltermcap" >&5 |
---|
3480 | ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
---|
3481 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3482 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3483 | else |
---|
3484 | ac_save_LIBS="$LIBS" |
---|
3485 | LIBS="-ltermcap $LIBS" |
---|
3486 | cat > conftest.$ac_ext <<EOF |
---|
3487 | #line 3488 "configure" |
---|
3488 | #include "confdefs.h" |
---|
3489 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3490 | /* We use char because int might match the return type of a gcc2 |
---|
3491 | builtin and then its argument prototype would still apply. */ |
---|
3492 | char tgetent(); |
---|
3493 | |
---|
3494 | int main() { |
---|
3495 | tgetent() |
---|
3496 | ; return 0; } |
---|
3497 | EOF |
---|
3498 | if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3499 | rm -rf conftest* |
---|
3500 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3501 | else |
---|
3502 | echo "configure: failed program was:" >&5 |
---|
3503 | cat conftest.$ac_ext >&5 |
---|
3504 | rm -rf conftest* |
---|
3505 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3506 | fi |
---|
3507 | rm -f conftest* |
---|
3508 | LIBS="$ac_save_LIBS" |
---|
3509 | |
---|
3510 | fi |
---|
3511 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3512 | echo "$ac_t""yes" 1>&6 |
---|
3513 | ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
3514 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3515 | cat >> confdefs.h <<EOF |
---|
3516 | #define $ac_tr_lib 1 |
---|
3517 | EOF |
---|
3518 | |
---|
3519 | LIBS="-ltermcap $LIBS" |
---|
3520 | |
---|
3521 | else |
---|
3522 | echo "$ac_t""no" 1>&6 |
---|
3523 | fi |
---|
3524 | |
---|
3525 | fi |
---|
3526 | |
---|
3527 | fi |
---|
3528 | |
---|
3529 | |
---|
3530 | # readline |
---|
3531 | if test "$with_readline" = yes; then |
---|
3532 | |
---|
3533 | ac_ext=C |
---|
3534 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
3535 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3536 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
3537 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
3538 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
3539 | |
---|
3540 | echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 |
---|
3541 | echo "configure:3542: checking for rl_abort in -lreadline" >&5 |
---|
3542 | ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` |
---|
3543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3544 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3545 | else |
---|
3546 | ac_save_LIBS="$LIBS" |
---|
3547 | LIBS="-lreadline $LIBS" |
---|
3548 | cat > conftest.$ac_ext <<EOF |
---|
3549 | #line 3550 "configure" |
---|
3550 | #include "confdefs.h" |
---|
3551 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3552 | #ifdef __cplusplus |
---|
3553 | extern "C" |
---|
3554 | #endif |
---|
3555 | /* We use char because int might match the return type of a gcc2 |
---|
3556 | builtin and then its argument prototype would still apply. */ |
---|
3557 | char rl_abort(); |
---|
3558 | |
---|
3559 | int main() { |
---|
3560 | rl_abort() |
---|
3561 | ; return 0; } |
---|
3562 | EOF |
---|
3563 | if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3564 | rm -rf conftest* |
---|
3565 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3566 | else |
---|
3567 | echo "configure: failed program was:" >&5 |
---|
3568 | cat conftest.$ac_ext >&5 |
---|
3569 | rm -rf conftest* |
---|
3570 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3571 | fi |
---|
3572 | rm -f conftest* |
---|
3573 | LIBS="$ac_save_LIBS" |
---|
3574 | |
---|
3575 | fi |
---|
3576 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3577 | echo "$ac_t""yes" 1>&6 |
---|
3578 | ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3579 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3580 | cat >> confdefs.h <<EOF |
---|
3581 | #define $ac_tr_lib 1 |
---|
3582 | EOF |
---|
3583 | |
---|
3584 | LIBS="-lreadline $LIBS" |
---|
3585 | |
---|
3586 | else |
---|
3587 | echo "$ac_t""no" 1>&6 |
---|
3588 | fi |
---|
3589 | |
---|
3590 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
---|
3591 | echo "configure:3592: checking how to run the C++ preprocessor" >&5 |
---|
3592 | if test -z "$CXXCPP"; then |
---|
3593 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
---|
3594 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3595 | else |
---|
3596 | ac_ext=C |
---|
3597 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
3598 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3599 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
3600 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
3601 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
3602 | CXXCPP="${CXX-g++} -E" |
---|
3603 | cat > conftest.$ac_ext <<EOF |
---|
3604 | #line 3605 "configure" |
---|
3605 | #include "confdefs.h" |
---|
3606 | #include <stdlib.h> |
---|
3607 | EOF |
---|
3608 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3609 | { (eval echo configure:3610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3610 | ac_err=`grep -v '^ *+' conftest.out` |
---|
3611 | if test -z "$ac_err"; then |
---|
3612 | : |
---|
3613 | else |
---|
3614 | echo "$ac_err" >&5 |
---|
3615 | echo "configure: failed program was:" >&5 |
---|
3616 | cat conftest.$ac_ext >&5 |
---|
3617 | rm -rf conftest* |
---|
3618 | CXXCPP=/lib/cpp |
---|
3619 | fi |
---|
3620 | rm -f conftest* |
---|
3621 | ac_cv_prog_CXXCPP="$CXXCPP" |
---|
3622 | fi |
---|
3623 | fi |
---|
3624 | CXXCPP="$ac_cv_prog_CXXCPP" |
---|
3625 | echo "$ac_t""$CXXCPP" 1>&6 |
---|
3626 | |
---|
3627 | for ac_hdr in readline/readline.h readline/history.h |
---|
3628 | do |
---|
3629 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3630 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3631 | echo "configure:3632: checking for $ac_hdr" >&5 |
---|
3632 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3633 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3634 | else |
---|
3635 | cat > conftest.$ac_ext <<EOF |
---|
3636 | #line 3637 "configure" |
---|
3637 | #include "confdefs.h" |
---|
3638 | #include <$ac_hdr> |
---|
3639 | EOF |
---|
3640 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3641 | { (eval echo configure:3642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3642 | ac_err=`grep -v '^ *+' conftest.out` |
---|
3643 | if test -z "$ac_err"; then |
---|
3644 | rm -rf conftest* |
---|
3645 | eval "ac_cv_header_$ac_safe=yes" |
---|
3646 | else |
---|
3647 | echo "$ac_err" >&5 |
---|
3648 | echo "configure: failed program was:" >&5 |
---|
3649 | cat conftest.$ac_ext >&5 |
---|
3650 | rm -rf conftest* |
---|
3651 | eval "ac_cv_header_$ac_safe=no" |
---|
3652 | fi |
---|
3653 | rm -f conftest* |
---|
3654 | fi |
---|
3655 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3656 | echo "$ac_t""yes" 1>&6 |
---|
3657 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3658 | cat >> confdefs.h <<EOF |
---|
3659 | #define $ac_tr_hdr 1 |
---|
3660 | EOF |
---|
3661 | |
---|
3662 | else |
---|
3663 | echo "$ac_t""no" 1>&6 |
---|
3664 | fi |
---|
3665 | done |
---|
3666 | |
---|
3667 | if test "$ac_cv_lib_readline_rl_abort" = yes && \ |
---|
3668 | test "$ac_cv_header_readline_readline_h" = yes; then |
---|
3669 | echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 |
---|
3670 | echo "configure:3671: checking whether readline.h is ok" >&5 |
---|
3671 | if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then |
---|
3672 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3673 | else |
---|
3674 | cat > conftest.$ac_ext <<EOF |
---|
3675 | #line 3676 "configure" |
---|
3676 | #include "confdefs.h" |
---|
3677 | #include<unistd.h> |
---|
3678 | #include<stdio.h> |
---|
3679 | #include<readline/readline.h> |
---|
3680 | #ifdef HAVE_READLINE_HISTORY_H |
---|
3681 | #include<readline/history.h> |
---|
3682 | #endif |
---|
3683 | |
---|
3684 | int main() { |
---|
3685 | #ifndef NULL |
---|
3686 | #define NULL 0 |
---|
3687 | #endif |
---|
3688 | rl_readline_name=NULL; |
---|
3689 | *rl_line_buffer=1; |
---|
3690 | completion_matches(NULL, filename_completion_function); |
---|
3691 | rl_attempted_completion_function = (CPPFunction *) NULL; |
---|
3692 | rl_outstream=NULL; |
---|
3693 | readline(NULL); |
---|
3694 | add_history(NULL); |
---|
3695 | read_history(NULL); |
---|
3696 | write_history(NULL); |
---|
3697 | |
---|
3698 | ; return 0; } |
---|
3699 | EOF |
---|
3700 | if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3701 | rm -rf conftest* |
---|
3702 | ac_cv_header_readline_readline_h_ok="yes" |
---|
3703 | else |
---|
3704 | echo "configure: failed program was:" >&5 |
---|
3705 | cat conftest.$ac_ext >&5 |
---|
3706 | rm -rf conftest* |
---|
3707 | ac_cv_header_readline_readline_h_ok="no" |
---|
3708 | fi |
---|
3709 | rm -f conftest* |
---|
3710 | fi |
---|
3711 | |
---|
3712 | echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6 |
---|
3713 | if test "$ac_cv_header_readline_readline_h_ok" != yes; then |
---|
3714 | #not ok -- try once more with explicitly declaring everything |
---|
3715 | echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 |
---|
3716 | echo "configure:3717: checking whether or not we nevertheless can use readline" >&5 |
---|
3717 | if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then |
---|
3718 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3719 | else |
---|
3720 | cat > conftest.$ac_ext <<EOF |
---|
3721 | #line 3722 "configure" |
---|
3722 | #include "confdefs.h" |
---|
3723 | #include <stdio.h> |
---|
3724 | extern "C" |
---|
3725 | { |
---|
3726 | extern char * rl_readline_name; |
---|
3727 | extern char *rl_line_buffer; |
---|
3728 | char *filename_completion_function(); |
---|
3729 | typedef char **CPPFunction (); |
---|
3730 | extern char ** completion_matches (); |
---|
3731 | extern CPPFunction * rl_attempted_completion_function; |
---|
3732 | extern FILE * rl_outstream; |
---|
3733 | char * readline (); |
---|
3734 | void add_history (); |
---|
3735 | int write_history (); |
---|
3736 | int read_history(); |
---|
3737 | } |
---|
3738 | #ifndef NULL |
---|
3739 | #define NULL 0 |
---|
3740 | #endif |
---|
3741 | |
---|
3742 | int main() { |
---|
3743 | rl_readline_name=NULL; |
---|
3744 | *rl_line_buffer=1; |
---|
3745 | completion_matches(NULL, filename_completion_function); |
---|
3746 | rl_attempted_completion_function = (CPPFunction *) NULL; |
---|
3747 | rl_outstream=NULL; |
---|
3748 | readline(NULL); |
---|
3749 | add_history(NULL); |
---|
3750 | read_history(NULL); |
---|
3751 | write_history(NULL); |
---|
3752 | |
---|
3753 | ; return 0; } |
---|
3754 | EOF |
---|
3755 | if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3756 | rm -rf conftest* |
---|
3757 | ac_cv_have_readline="yes" |
---|
3758 | |
---|
3759 | else |
---|
3760 | echo "configure: failed program was:" >&5 |
---|
3761 | cat conftest.$ac_ext >&5 |
---|
3762 | rm -rf conftest* |
---|
3763 | ac_cv_have_readline="no" |
---|
3764 | |
---|
3765 | fi |
---|
3766 | rm -f conftest* |
---|
3767 | fi |
---|
3768 | |
---|
3769 | echo "$ac_t""$ac_cv_have_readline" 1>&6 |
---|
3770 | else |
---|
3771 | cat >> confdefs.h <<\EOF |
---|
3772 | #define READLINE_READLINE_H_OK 1 |
---|
3773 | EOF |
---|
3774 | |
---|
3775 | ac_cv_have_readline="yes" |
---|
3776 | fi |
---|
3777 | fi |
---|
3778 | if test "$ac_cv_have_readline" = yes; then |
---|
3779 | cat >> confdefs.h <<\EOF |
---|
3780 | #define HAVE_READLINE 1 |
---|
3781 | EOF |
---|
3782 | |
---|
3783 | else |
---|
3784 | echo "configure: warning: building without readline: disabling fancy display" 1>&2 |
---|
3785 | fi |
---|
3786 | ac_ext=c |
---|
3787 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
3788 | ac_cpp='$CPP $CPPFLAGS' |
---|
3789 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
3790 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
3791 | cross_compiling=$ac_cv_prog_cc_cross |
---|
3792 | |
---|
3793 | fi |
---|
3794 | |
---|
3795 | NEED_LIBS=$LIBS |
---|
3796 | |
---|
3797 | # gmp, smallgmp, MP, MPT, factory, libfac |
---|
3798 | echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 |
---|
3799 | echo "configure:3800: checking for main in -lgmp" >&5 |
---|
3800 | ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` |
---|
3801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3802 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3803 | else |
---|
3804 | ac_save_LIBS="$LIBS" |
---|
3805 | LIBS="-lgmp $LIBS" |
---|
3806 | cat > conftest.$ac_ext <<EOF |
---|
3807 | #line 3808 "configure" |
---|
3808 | #include "confdefs.h" |
---|
3809 | |
---|
3810 | int main() { |
---|
3811 | main() |
---|
3812 | ; return 0; } |
---|
3813 | EOF |
---|
3814 | if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3815 | rm -rf conftest* |
---|
3816 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3817 | else |
---|
3818 | echo "configure: failed program was:" >&5 |
---|
3819 | cat conftest.$ac_ext >&5 |
---|
3820 | rm -rf conftest* |
---|
3821 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3822 | fi |
---|
3823 | rm -f conftest* |
---|
3824 | LIBS="$ac_save_LIBS" |
---|
3825 | |
---|
3826 | fi |
---|
3827 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3828 | echo "$ac_t""yes" 1>&6 |
---|
3829 | ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3830 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3831 | cat >> confdefs.h <<EOF |
---|
3832 | #define $ac_tr_lib 1 |
---|
3833 | EOF |
---|
3834 | |
---|
3835 | LIBS="-lgmp $LIBS" |
---|
3836 | |
---|
3837 | else |
---|
3838 | echo "$ac_t""no" 1>&6 |
---|
3839 | fi |
---|
3840 | |
---|
3841 | if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then |
---|
3842 | LIBS=NEED_LIBS |
---|
3843 | fi |
---|
3844 | echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6 |
---|
3845 | echo "configure:3846: checking for main in -lsmallgmp" >&5 |
---|
3846 | ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'` |
---|
3847 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3848 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3849 | else |
---|
3850 | ac_save_LIBS="$LIBS" |
---|
3851 | LIBS="-lsmallgmp $LIBS" |
---|
3852 | cat > conftest.$ac_ext <<EOF |
---|
3853 | #line 3854 "configure" |
---|
3854 | #include "confdefs.h" |
---|
3855 | |
---|
3856 | int main() { |
---|
3857 | main() |
---|
3858 | ; return 0; } |
---|
3859 | EOF |
---|
3860 | if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3861 | rm -rf conftest* |
---|
3862 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3863 | else |
---|
3864 | echo "configure: failed program was:" >&5 |
---|
3865 | cat conftest.$ac_ext >&5 |
---|
3866 | rm -rf conftest* |
---|
3867 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3868 | fi |
---|
3869 | rm -f conftest* |
---|
3870 | LIBS="$ac_save_LIBS" |
---|
3871 | |
---|
3872 | fi |
---|
3873 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3874 | echo "$ac_t""yes" 1>&6 |
---|
3875 | ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3876 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3877 | cat >> confdefs.h <<EOF |
---|
3878 | #define $ac_tr_lib 1 |
---|
3879 | EOF |
---|
3880 | |
---|
3881 | LIBS="-lsmallgmp $LIBS" |
---|
3882 | |
---|
3883 | else |
---|
3884 | echo "$ac_t""no" 1>&6 |
---|
3885 | fi |
---|
3886 | |
---|
3887 | echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 |
---|
3888 | echo "configure:3889: checking for IMP_PutGmpInt in -lMP" >&5 |
---|
3889 | ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` |
---|
3890 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3891 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3892 | else |
---|
3893 | ac_save_LIBS="$LIBS" |
---|
3894 | LIBS="-lMP $LIBS" |
---|
3895 | cat > conftest.$ac_ext <<EOF |
---|
3896 | #line 3897 "configure" |
---|
3897 | #include "confdefs.h" |
---|
3898 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3899 | /* We use char because int might match the return type of a gcc2 |
---|
3900 | builtin and then its argument prototype would still apply. */ |
---|
3901 | char IMP_PutGmpInt(); |
---|
3902 | |
---|
3903 | int main() { |
---|
3904 | IMP_PutGmpInt() |
---|
3905 | ; return 0; } |
---|
3906 | EOF |
---|
3907 | if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3908 | rm -rf conftest* |
---|
3909 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3910 | else |
---|
3911 | echo "configure: failed program was:" >&5 |
---|
3912 | cat conftest.$ac_ext >&5 |
---|
3913 | rm -rf conftest* |
---|
3914 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3915 | fi |
---|
3916 | rm -f conftest* |
---|
3917 | LIBS="$ac_save_LIBS" |
---|
3918 | |
---|
3919 | fi |
---|
3920 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3921 | echo "$ac_t""yes" 1>&6 |
---|
3922 | ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3923 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3924 | cat >> confdefs.h <<EOF |
---|
3925 | #define $ac_tr_lib 1 |
---|
3926 | EOF |
---|
3927 | |
---|
3928 | LIBS="-lMP $LIBS" |
---|
3929 | |
---|
3930 | else |
---|
3931 | echo "$ac_t""no" 1>&6 |
---|
3932 | fi |
---|
3933 | |
---|
3934 | echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 |
---|
3935 | echo "configure:3936: checking for MPT_GetTree in -lMPT" >&5 |
---|
3936 | ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` |
---|
3937 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3938 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3939 | else |
---|
3940 | ac_save_LIBS="$LIBS" |
---|
3941 | LIBS="-lMPT $LIBS" |
---|
3942 | cat > conftest.$ac_ext <<EOF |
---|
3943 | #line 3944 "configure" |
---|
3944 | #include "confdefs.h" |
---|
3945 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3946 | /* We use char because int might match the return type of a gcc2 |
---|
3947 | builtin and then its argument prototype would still apply. */ |
---|
3948 | char MPT_GetTree(); |
---|
3949 | |
---|
3950 | int main() { |
---|
3951 | MPT_GetTree() |
---|
3952 | ; return 0; } |
---|
3953 | EOF |
---|
3954 | if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3955 | rm -rf conftest* |
---|
3956 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3957 | else |
---|
3958 | echo "configure: failed program was:" >&5 |
---|
3959 | cat conftest.$ac_ext >&5 |
---|
3960 | rm -rf conftest* |
---|
3961 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3962 | fi |
---|
3963 | rm -f conftest* |
---|
3964 | LIBS="$ac_save_LIBS" |
---|
3965 | |
---|
3966 | fi |
---|
3967 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3968 | echo "$ac_t""yes" 1>&6 |
---|
3969 | ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3970 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3971 | cat >> confdefs.h <<EOF |
---|
3972 | #define $ac_tr_lib 1 |
---|
3973 | EOF |
---|
3974 | |
---|
3975 | LIBS="-lMPT $LIBS" |
---|
3976 | |
---|
3977 | else |
---|
3978 | echo "$ac_t""no" 1>&6 |
---|
3979 | fi |
---|
3980 | |
---|
3981 | echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 |
---|
3982 | echo "configure:3983: checking for atof in -lsingcf" >&5 |
---|
3983 | ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` |
---|
3984 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3985 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3986 | else |
---|
3987 | ac_save_LIBS="$LIBS" |
---|
3988 | LIBS="-lsingcf $LIBS" |
---|
3989 | cat > conftest.$ac_ext <<EOF |
---|
3990 | #line 3991 "configure" |
---|
3991 | #include "confdefs.h" |
---|
3992 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3993 | /* We use char because int might match the return type of a gcc2 |
---|
3994 | builtin and then its argument prototype would still apply. */ |
---|
3995 | char atof(); |
---|
3996 | |
---|
3997 | int main() { |
---|
3998 | atof() |
---|
3999 | ; return 0; } |
---|
4000 | EOF |
---|
4001 | if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4002 | rm -rf conftest* |
---|
4003 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4004 | else |
---|
4005 | echo "configure: failed program was:" >&5 |
---|
4006 | cat conftest.$ac_ext >&5 |
---|
4007 | rm -rf conftest* |
---|
4008 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4009 | fi |
---|
4010 | rm -f conftest* |
---|
4011 | LIBS="$ac_save_LIBS" |
---|
4012 | |
---|
4013 | fi |
---|
4014 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4015 | echo "$ac_t""yes" 1>&6 |
---|
4016 | ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4017 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4018 | cat >> confdefs.h <<EOF |
---|
4019 | #define $ac_tr_lib 1 |
---|
4020 | EOF |
---|
4021 | |
---|
4022 | LIBS="-lsingcf $LIBS" |
---|
4023 | |
---|
4024 | else |
---|
4025 | echo "$ac_t""no" 1>&6 |
---|
4026 | fi |
---|
4027 | |
---|
4028 | echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 |
---|
4029 | echo "configure:4030: checking for atof in -lsingfac" >&5 |
---|
4030 | ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` |
---|
4031 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4032 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4033 | else |
---|
4034 | ac_save_LIBS="$LIBS" |
---|
4035 | LIBS="-lsingfac $LIBS" |
---|
4036 | cat > conftest.$ac_ext <<EOF |
---|
4037 | #line 4038 "configure" |
---|
4038 | #include "confdefs.h" |
---|
4039 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4040 | /* We use char because int might match the return type of a gcc2 |
---|
4041 | builtin and then its argument prototype would still apply. */ |
---|
4042 | char atof(); |
---|
4043 | |
---|
4044 | int main() { |
---|
4045 | atof() |
---|
4046 | ; return 0; } |
---|
4047 | EOF |
---|
4048 | if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4049 | rm -rf conftest* |
---|
4050 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4051 | else |
---|
4052 | echo "configure: failed program was:" >&5 |
---|
4053 | cat conftest.$ac_ext >&5 |
---|
4054 | rm -rf conftest* |
---|
4055 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4056 | fi |
---|
4057 | rm -f conftest* |
---|
4058 | LIBS="$ac_save_LIBS" |
---|
4059 | |
---|
4060 | fi |
---|
4061 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4062 | echo "$ac_t""yes" 1>&6 |
---|
4063 | ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4064 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4065 | cat >> confdefs.h <<EOF |
---|
4066 | #define $ac_tr_lib 1 |
---|
4067 | EOF |
---|
4068 | |
---|
4069 | LIBS="-lsingfac $LIBS" |
---|
4070 | |
---|
4071 | else |
---|
4072 | echo "$ac_t""no" 1>&6 |
---|
4073 | fi |
---|
4074 | |
---|
4075 | echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 |
---|
4076 | echo "configure:4077: checking for omTestAddr in -lomalloc" >&5 |
---|
4077 | ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` |
---|
4078 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4079 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4080 | else |
---|
4081 | ac_save_LIBS="$LIBS" |
---|
4082 | LIBS="-lomalloc $LIBS" |
---|
4083 | cat > conftest.$ac_ext <<EOF |
---|
4084 | #line 4085 "configure" |
---|
4085 | #include "confdefs.h" |
---|
4086 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4087 | /* We use char because int might match the return type of a gcc2 |
---|
4088 | builtin and then its argument prototype would still apply. */ |
---|
4089 | char omTestAddr(); |
---|
4090 | |
---|
4091 | int main() { |
---|
4092 | omTestAddr() |
---|
4093 | ; return 0; } |
---|
4094 | EOF |
---|
4095 | if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4096 | rm -rf conftest* |
---|
4097 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4098 | else |
---|
4099 | echo "configure: failed program was:" >&5 |
---|
4100 | cat conftest.$ac_ext >&5 |
---|
4101 | rm -rf conftest* |
---|
4102 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4103 | fi |
---|
4104 | rm -f conftest* |
---|
4105 | LIBS="$ac_save_LIBS" |
---|
4106 | |
---|
4107 | fi |
---|
4108 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4109 | echo "$ac_t""yes" 1>&6 |
---|
4110 | ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4111 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4112 | cat >> confdefs.h <<EOF |
---|
4113 | #define $ac_tr_lib 1 |
---|
4114 | EOF |
---|
4115 | |
---|
4116 | LIBS="-lomalloc $LIBS" |
---|
4117 | |
---|
4118 | else |
---|
4119 | echo "$ac_t""no" 1>&6 |
---|
4120 | fi |
---|
4121 | |
---|
4122 | echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 |
---|
4123 | echo "configure:4124: checking for main in -lomalloc_ndebug" >&5 |
---|
4124 | ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` |
---|
4125 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4126 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4127 | else |
---|
4128 | ac_save_LIBS="$LIBS" |
---|
4129 | LIBS="-lomalloc_ndebug $LIBS" |
---|
4130 | cat > conftest.$ac_ext <<EOF |
---|
4131 | #line 4132 "configure" |
---|
4132 | #include "confdefs.h" |
---|
4133 | |
---|
4134 | int main() { |
---|
4135 | main() |
---|
4136 | ; return 0; } |
---|
4137 | EOF |
---|
4138 | if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4139 | rm -rf conftest* |
---|
4140 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4141 | else |
---|
4142 | echo "configure: failed program was:" >&5 |
---|
4143 | cat conftest.$ac_ext >&5 |
---|
4144 | rm -rf conftest* |
---|
4145 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4146 | fi |
---|
4147 | rm -f conftest* |
---|
4148 | LIBS="$ac_save_LIBS" |
---|
4149 | |
---|
4150 | fi |
---|
4151 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4152 | echo "$ac_t""yes" 1>&6 |
---|
4153 | ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4154 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4155 | cat >> confdefs.h <<EOF |
---|
4156 | #define $ac_tr_lib 1 |
---|
4157 | EOF |
---|
4158 | |
---|
4159 | LIBS="-lomalloc_ndebug $LIBS" |
---|
4160 | |
---|
4161 | else |
---|
4162 | echo "$ac_t""no" 1>&6 |
---|
4163 | fi |
---|
4164 | |
---|
4165 | |
---|
4166 | for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h omalloc.h omalloc.c |
---|
4167 | do |
---|
4168 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4169 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4170 | echo "configure:4171: checking for $ac_hdr" >&5 |
---|
4171 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4172 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4173 | else |
---|
4174 | cat > conftest.$ac_ext <<EOF |
---|
4175 | #line 4176 "configure" |
---|
4176 | #include "confdefs.h" |
---|
4177 | #include <$ac_hdr> |
---|
4178 | EOF |
---|
4179 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4180 | { (eval echo configure:4181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4181 | ac_err=`grep -v '^ *+' conftest.out` |
---|
4182 | if test -z "$ac_err"; then |
---|
4183 | rm -rf conftest* |
---|
4184 | eval "ac_cv_header_$ac_safe=yes" |
---|
4185 | else |
---|
4186 | echo "$ac_err" >&5 |
---|
4187 | echo "configure: failed program was:" >&5 |
---|
4188 | cat conftest.$ac_ext >&5 |
---|
4189 | rm -rf conftest* |
---|
4190 | eval "ac_cv_header_$ac_safe=no" |
---|
4191 | fi |
---|
4192 | rm -f conftest* |
---|
4193 | fi |
---|
4194 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4195 | echo "$ac_t""yes" 1>&6 |
---|
4196 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4197 | cat >> confdefs.h <<EOF |
---|
4198 | #define $ac_tr_hdr 1 |
---|
4199 | EOF |
---|
4200 | |
---|
4201 | else |
---|
4202 | echo "$ac_t""no" 1>&6 |
---|
4203 | fi |
---|
4204 | done |
---|
4205 | |
---|
4206 | |
---|
4207 | if test "$ac_cv_lib_gmp_main" = yes && \ |
---|
4208 | test "$ac_cv_header_gmp_h" = yes; then |
---|
4209 | ac_gmp_ok=yes |
---|
4210 | fi |
---|
4211 | |
---|
4212 | if test "$ac_cv_lib_smallgmp_main" = yes && \ |
---|
4213 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
4214 | test "$ac_cv_header_gmp_h" = yes; then |
---|
4215 | ac_smallgmp_ok=yes |
---|
4216 | fi |
---|
4217 | |
---|
4218 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
4219 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
4220 | test "$ac_cv_header_MP_h" = yes && \ |
---|
4221 | test "$ac_cv_header_MPT_h" = yes; then |
---|
4222 | ac_MP_ok=yes |
---|
4223 | fi |
---|
4224 | |
---|
4225 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
4226 | test "$ac_cv_header_factory_h" = yes; then |
---|
4227 | ac_factory_ok=yes |
---|
4228 | fi |
---|
4229 | |
---|
4230 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
4231 | test "$ac_cv_header_factor_h" = yes; then |
---|
4232 | ac_libfac_ok=yes |
---|
4233 | fi |
---|
4234 | |
---|
4235 | if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \ |
---|
4236 | test "$ac_cv_lib_omalloc_ndebug_main" = yes && \ |
---|
4237 | test "$ac_cv_header_omalloc_c" = yes && \ |
---|
4238 | test "$ac_cv_header_omalloc_h" = yes; then |
---|
4239 | ac_cv_omalloc_ok=yes |
---|
4240 | fi |
---|
4241 | |
---|
4242 | |
---|
4243 | # evaluate results |
---|
4244 | if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then |
---|
4245 | { echo "configure: error: can not build without omalloc" 1>&2; exit 1; } |
---|
4246 | fi |
---|
4247 | |
---|
4248 | echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 |
---|
4249 | echo "configure:4250: checking which apint package to use" >&5 |
---|
4250 | if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then |
---|
4251 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
4252 | echo "$ac_t""gmp" 1>&6 |
---|
4253 | will_have_gmp=yes |
---|
4254 | NEED_LIBS="-lgmp ${NEED_LIBS}" |
---|
4255 | elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then |
---|
4256 | echo "$ac_t""smallgmp" 1>&6 |
---|
4257 | cat >> confdefs.h <<\EOF |
---|
4258 | #define HAVE_SMALLGMP 1 |
---|
4259 | EOF |
---|
4260 | |
---|
4261 | NEED_LIBS="-lsmallgmp ${NEED_LIBS}" |
---|
4262 | else |
---|
4263 | echo "$ac_t""none" 1>&6 |
---|
4264 | { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; } |
---|
4265 | fi |
---|
4266 | elif test "${with_apint}" = gmp; then |
---|
4267 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
4268 | echo "$ac_t""gmp" 1>&6 |
---|
4269 | will_have_gmp=yes |
---|
4270 | NEED_LIBS="-lgmp ${NEED_LIBS}" |
---|
4271 | else |
---|
4272 | echo "$ac_t""none" 1>&6 |
---|
4273 | { echo "configure: error: can not build with gmp" 1>&2; exit 1; } |
---|
4274 | fi |
---|
4275 | else |
---|
4276 | if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then |
---|
4277 | echo "$ac_t""smallgmp" 1>&6 |
---|
4278 | cat >> confdefs.h <<\EOF |
---|
4279 | #define HAVE_SMALLGMP 1 |
---|
4280 | EOF |
---|
4281 | |
---|
4282 | NEED_LIBS="-lsmallgmp ${NEED_LIBS}" |
---|
4283 | else |
---|
4284 | echo "$ac_t""none" 1>&6 |
---|
4285 | { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; } |
---|
4286 | fi |
---|
4287 | fi |
---|
4288 | |
---|
4289 | # |
---|
4290 | echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 |
---|
4291 | echo "configure:4292: checking whether to have MP" >&5 |
---|
4292 | if test "${with_MP}" != yes && test "${with_MP}" != no; then |
---|
4293 | if (test "${will_have_gmp}" = yes) && \ |
---|
4294 | (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
4295 | echo "$ac_t""yes" 1>&6 |
---|
4296 | cat >> confdefs.h <<\EOF |
---|
4297 | #define HAVE_MPSR 1 |
---|
4298 | EOF |
---|
4299 | |
---|
4300 | NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" |
---|
4301 | else |
---|
4302 | echo "$ac_t""no" 1>&6 |
---|
4303 | fi |
---|
4304 | elif test "${with_MP}" = yes; then |
---|
4305 | if (test "${will_have_gmp}" = yes) && \ |
---|
4306 | (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
4307 | echo "$ac_t""yes" 1>&6 |
---|
4308 | cat >> confdefs.h <<\EOF |
---|
4309 | #define HAVE_MPSR 1 |
---|
4310 | EOF |
---|
4311 | |
---|
4312 | NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" |
---|
4313 | else |
---|
4314 | echo "$ac_t""no" 1>&6 |
---|
4315 | { echo "configure: error: can not build with MP" 1>&2; exit 1; } |
---|
4316 | fi |
---|
4317 | else |
---|
4318 | echo "$ac_t""no" 1>&6 |
---|
4319 | fi |
---|
4320 | |
---|
4321 | echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 |
---|
4322 | echo "configure:4323: checking whether to have factory" >&5 |
---|
4323 | if test "${with_factory}" != yes && test "${with_factory}" != no; then |
---|
4324 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
4325 | echo "$ac_t""yes" 1>&6 |
---|
4326 | cat >> confdefs.h <<\EOF |
---|
4327 | #define HAVE_FACTORY 1 |
---|
4328 | EOF |
---|
4329 | |
---|
4330 | will_have_factory=yes |
---|
4331 | NEED_LIBS="-lsingcf ${NEED_LIBS}" |
---|
4332 | else |
---|
4333 | echo "$ac_t""no" 1>&6 |
---|
4334 | fi |
---|
4335 | elif test "${with_factory}" = yes; then |
---|
4336 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
4337 | echo "$ac_t""yes" 1>&6 |
---|
4338 | cat >> confdefs.h <<\EOF |
---|
4339 | #define HAVE_FACTORY 1 |
---|
4340 | EOF |
---|
4341 | |
---|
4342 | will_have_factory=yes |
---|
4343 | NEED_LIBS="-lsingcf ${NEED_LIBS}" |
---|
4344 | else |
---|
4345 | echo "$ac_t""no" 1>&6 |
---|
4346 | { echo "configure: error: can not build with factory" 1>&2; exit 1; } |
---|
4347 | fi |
---|
4348 | else |
---|
4349 | echo "$ac_t""no" 1>&6 |
---|
4350 | fi |
---|
4351 | |
---|
4352 | echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 |
---|
4353 | echo "configure:4354: checking whether to have libfac" >&5 |
---|
4354 | if test "${with_libfac}" != yes && test "${with_libfac}" != no; then |
---|
4355 | if (test "${will_have_factory}" = yes) && \ |
---|
4356 | (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then |
---|
4357 | echo "$ac_t""yes" 1>&6 |
---|
4358 | cat >> confdefs.h <<\EOF |
---|
4359 | #define HAVE_LIBFAC_P 1 |
---|
4360 | EOF |
---|
4361 | |
---|
4362 | NEED_LIBS="-lsingfac ${NEED_LIBS}" |
---|
4363 | else |
---|
4364 | echo "$ac_t""no" 1>&6 |
---|
4365 | fi |
---|
4366 | elif test "${with_libfac}" = yes; then |
---|
4367 | if (test "${will_have_factory}" = yes) && \ |
---|
4368 | (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then |
---|
4369 | echo "$ac_t""yes" 1>&6 |
---|
4370 | cat >> confdefs.h <<\EOF |
---|
4371 | #define HAVE_LIBFAC_P 1 |
---|
4372 | EOF |
---|
4373 | |
---|
4374 | NEED_LIBS="-lsingfac ${NEED_LIBS}" |
---|
4375 | else |
---|
4376 | echo "$ac_t""no" 1>&6 |
---|
4377 | { echo "configure: error: can not build with libfac" 1>&2; exit 1; } |
---|
4378 | fi |
---|
4379 | else |
---|
4380 | echo "$ac_t""no" 1>&6 |
---|
4381 | fi |
---|
4382 | |
---|
4383 | |
---|
4384 | |
---|
4385 | |
---|
4386 | echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 |
---|
4387 | echo "configure:4388: checking whether to have dbm links" >&5 |
---|
4388 | if test "$with_dbm" != no; then |
---|
4389 | cat >> confdefs.h <<\EOF |
---|
4390 | #define HAVE_DBM 1 |
---|
4391 | EOF |
---|
4392 | |
---|
4393 | echo "$ac_t""yes" 1>&6 |
---|
4394 | else |
---|
4395 | echo "$ac_t""no" 1>&6 |
---|
4396 | fi |
---|
4397 | |
---|
4398 | echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 |
---|
4399 | echo "configure:4400: checking whether to have namespaces" >&5 |
---|
4400 | if test "$with_namespaces" != yes; then |
---|
4401 | echo "$ac_t""no" 1>&6 |
---|
4402 | else |
---|
4403 | cat >> confdefs.h <<\EOF |
---|
4404 | #define HAVE_NAMESPACES 1 |
---|
4405 | EOF |
---|
4406 | |
---|
4407 | echo "$ac_t""yes" 1>&6 |
---|
4408 | fi |
---|
4409 | |
---|
4410 | echo $ac_n "checking whether to have dl lib""... $ac_c" 1>&6 |
---|
4411 | echo "configure:4412: checking whether to have dl lib" >&5 |
---|
4412 | |
---|
4413 | case "$ac_cv_singuname" in |
---|
4414 | HPUX-9) |
---|
4415 | echo "$ac_t""dld" 1>&6 |
---|
4416 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
---|
4417 | echo "configure:4418: checking for shl_load in -ldld" >&5 |
---|
4418 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
---|
4419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4420 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4421 | else |
---|
4422 | ac_save_LIBS="$LIBS" |
---|
4423 | LIBS="-ldld $LIBS" |
---|
4424 | cat > conftest.$ac_ext <<EOF |
---|
4425 | #line 4426 "configure" |
---|
4426 | #include "confdefs.h" |
---|
4427 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4428 | /* We use char because int might match the return type of a gcc2 |
---|
4429 | builtin and then its argument prototype would still apply. */ |
---|
4430 | char shl_load(); |
---|
4431 | |
---|
4432 | int main() { |
---|
4433 | shl_load() |
---|
4434 | ; return 0; } |
---|
4435 | EOF |
---|
4436 | if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4437 | rm -rf conftest* |
---|
4438 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4439 | else |
---|
4440 | echo "configure: failed program was:" >&5 |
---|
4441 | cat conftest.$ac_ext >&5 |
---|
4442 | rm -rf conftest* |
---|
4443 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4444 | fi |
---|
4445 | rm -f conftest* |
---|
4446 | LIBS="$ac_save_LIBS" |
---|
4447 | |
---|
4448 | fi |
---|
4449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4450 | echo "$ac_t""yes" 1>&6 |
---|
4451 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4452 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4453 | cat >> confdefs.h <<EOF |
---|
4454 | #define $ac_tr_lib 1 |
---|
4455 | EOF |
---|
4456 | |
---|
4457 | LIBS="-ldld $LIBS" |
---|
4458 | |
---|
4459 | else |
---|
4460 | echo "$ac_t""no" 1>&6 |
---|
4461 | fi |
---|
4462 | |
---|
4463 | LD_DYN_FLAGS="-ldld -Xlinker -E" |
---|
4464 | cat >> confdefs.h <<\EOF |
---|
4465 | #define HAVE_DL 1 |
---|
4466 | EOF |
---|
4467 | |
---|
4468 | ;; |
---|
4469 | HPUX-10) |
---|
4470 | echo "$ac_t""dld" 1>&6 |
---|
4471 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
---|
4472 | echo "configure:4473: checking for shl_load in -ldld" >&5 |
---|
4473 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
---|
4474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4475 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4476 | else |
---|
4477 | ac_save_LIBS="$LIBS" |
---|
4478 | LIBS="-ldld $LIBS" |
---|
4479 | cat > conftest.$ac_ext <<EOF |
---|
4480 | #line 4481 "configure" |
---|
4481 | #include "confdefs.h" |
---|
4482 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4483 | /* We use char because int might match the return type of a gcc2 |
---|
4484 | builtin and then its argument prototype would still apply. */ |
---|
4485 | char shl_load(); |
---|
4486 | |
---|
4487 | int main() { |
---|
4488 | shl_load() |
---|
4489 | ; return 0; } |
---|
4490 | EOF |
---|
4491 | if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4492 | rm -rf conftest* |
---|
4493 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4494 | else |
---|
4495 | echo "configure: failed program was:" >&5 |
---|
4496 | cat conftest.$ac_ext >&5 |
---|
4497 | rm -rf conftest* |
---|
4498 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4499 | fi |
---|
4500 | rm -f conftest* |
---|
4501 | LIBS="$ac_save_LIBS" |
---|
4502 | |
---|
4503 | fi |
---|
4504 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4505 | echo "$ac_t""yes" 1>&6 |
---|
4506 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4507 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4508 | cat >> confdefs.h <<EOF |
---|
4509 | #define $ac_tr_lib 1 |
---|
4510 | EOF |
---|
4511 | |
---|
4512 | LIBS="-ldld $LIBS" |
---|
4513 | |
---|
4514 | else |
---|
4515 | echo "$ac_t""no" 1>&6 |
---|
4516 | fi |
---|
4517 | |
---|
4518 | LD_DYN_FLAGS="-ldld -Xlinker -E" |
---|
4519 | cat >> confdefs.h <<\EOF |
---|
4520 | #define HAVE_DL 1 |
---|
4521 | EOF |
---|
4522 | |
---|
4523 | ;; |
---|
4524 | *Linux*) |
---|
4525 | echo "$ac_t""dl" 1>&6 |
---|
4526 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
4527 | echo "configure:4528: checking for dlopen in -ldl" >&5 |
---|
4528 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
4529 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4530 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4531 | else |
---|
4532 | ac_save_LIBS="$LIBS" |
---|
4533 | LIBS="-ldl $LIBS" |
---|
4534 | cat > conftest.$ac_ext <<EOF |
---|
4535 | #line 4536 "configure" |
---|
4536 | #include "confdefs.h" |
---|
4537 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4538 | /* We use char because int might match the return type of a gcc2 |
---|
4539 | builtin and then its argument prototype would still apply. */ |
---|
4540 | char dlopen(); |
---|
4541 | |
---|
4542 | int main() { |
---|
4543 | dlopen() |
---|
4544 | ; return 0; } |
---|
4545 | EOF |
---|
4546 | if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
4547 | rm -rf conftest* |
---|
4548 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4549 | else |
---|
4550 | echo "configure: failed program was:" >&5 |
---|
4551 | cat conftest.$ac_ext >&5 |
---|
4552 | rm -rf conftest* |
---|
4553 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4554 | fi |
---|
4555 | rm -f conftest* |
---|
4556 | LIBS="$ac_save_LIBS" |
---|
4557 | |
---|
4558 | fi |
---|
4559 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4560 | echo "$ac_t""yes" 1>&6 |
---|
4561 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4562 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4563 | cat >> confdefs.h <<EOF |
---|
4564 | #define $ac_tr_lib 1 |
---|
4565 | EOF |
---|
4566 | |
---|
4567 | LIBS="-ldl $LIBS" |
---|
4568 | |
---|
4569 | else |
---|
4570 | echo "$ac_t""no" 1>&6 |
---|
4571 | fi |
---|
4572 | |
---|
4573 | LD_DYN_FLAGS="-ldl -rdynamic" |
---|
4574 | cat >> confdefs.h <<\EOF |
---|
4575 | #define HAVE_DL 1 |
---|
4576 | EOF |
---|
4577 | |
---|
4578 | ;; |
---|
4579 | *) |
---|
4580 | echo "$ac_t""no" 1>&6 |
---|
4581 | ;; |
---|
4582 | esac |
---|
4583 | |
---|
4584 | echo $ac_n "checking whether to have dynamic loading""... $ac_c" 1>&6 |
---|
4585 | echo "configure:4586: checking whether to have dynamic loading" >&5 |
---|
4586 | if test "$with_dl" != yes; then |
---|
4587 | echo "$ac_t""no" 1>&6 |
---|
4588 | else |
---|
4589 | cat >> confdefs.h <<\EOF |
---|
4590 | #define HAVE_DYNAMIC_LOADING 1 |
---|
4591 | EOF |
---|
4592 | |
---|
4593 | echo "$ac_t""yes" 1>&6 |
---|
4594 | fi |
---|
4595 | |
---|
4596 | echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 |
---|
4597 | echo "configure:4598: checking whether to have Plural" >&5 |
---|
4598 | if test "$with_plural" != yes; then |
---|
4599 | echo "$ac_t""no" 1>&6 |
---|
4600 | else |
---|
4601 | cat >> confdefs.h <<\EOF |
---|
4602 | #define HAVE_PLURAL 1 |
---|
4603 | EOF |
---|
4604 | |
---|
4605 | echo "$ac_t""yes" 1>&6 |
---|
4606 | fi |
---|
4607 | |
---|
4608 | |
---|
4609 | |
---|
4610 | OUTPUT_MAKEFILES=Makefile |
---|
4611 | |
---|
4612 | if test "$ac_cv_singuname" = "ix86-Win"; then |
---|
4613 | OUTPUT_MAKEFILES="${OUTPUT_MAKEFILES} Singular.rc" |
---|
4614 | fi |
---|
4615 | |
---|
4616 | trap '' 1 2 15 |
---|
4617 | cat > confcache <<\EOF |
---|
4618 | # This file is a shell script that caches the results of configure |
---|
4619 | # tests run on this system so they can be shared between configure |
---|
4620 | # scripts and configure runs. It is not useful on other systems. |
---|
4621 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
4622 | # |
---|
4623 | # By default, configure uses ./config.cache as the cache file, |
---|
4624 | # creating it if it does not exist already. You can give configure |
---|
4625 | # the --cache-file=FILE option to use a different cache file; that is |
---|
4626 | # what configure does when it calls configure scripts in |
---|
4627 | # subdirectories, so they share the cache. |
---|
4628 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
4629 | # config.status only pays attention to the cache file if you give it the |
---|
4630 | # --recheck option to rerun configure. |
---|
4631 | # |
---|
4632 | EOF |
---|
4633 | # The following way of writing the cache mishandles newlines in values, |
---|
4634 | # but we know of no workaround that is simple, portable, and efficient. |
---|
4635 | # So, don't put newlines in cache variables' values. |
---|
4636 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
4637 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
4638 | (set) 2>&1 | |
---|
4639 | case `(ac_space=' '; set) 2>&1` in |
---|
4640 | *ac_space=\ *) |
---|
4641 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
4642 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
4643 | sed -n \ |
---|
4644 | -e "s/'/'\\\\''/g" \ |
---|
4645 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
4646 | ;; |
---|
4647 | *) |
---|
4648 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
4649 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
4650 | ;; |
---|
4651 | esac >> confcache |
---|
4652 | if cmp -s $cache_file confcache; then |
---|
4653 | : |
---|
4654 | else |
---|
4655 | if test -w $cache_file; then |
---|
4656 | echo "updating cache $cache_file" |
---|
4657 | cat confcache > $cache_file |
---|
4658 | else |
---|
4659 | echo "not updating unwritable cache $cache_file" |
---|
4660 | fi |
---|
4661 | fi |
---|
4662 | rm -f confcache |
---|
4663 | |
---|
4664 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
4665 | |
---|
4666 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
4667 | # Let make expand exec_prefix. |
---|
4668 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
4669 | |
---|
4670 | # Any assignment to VPATH causes Sun make to only execute |
---|
4671 | # the first set of double-colon rules, so remove it if not needed. |
---|
4672 | # If there is a colon in the path, we need to keep it. |
---|
4673 | if test "x$srcdir" = x.; then |
---|
4674 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
4675 | fi |
---|
4676 | |
---|
4677 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
4678 | |
---|
4679 | DEFS=-DHAVE_CONFIG_H |
---|
4680 | |
---|
4681 | # Without the "./", some shells look in PATH for config.status. |
---|
4682 | : ${CONFIG_STATUS=./config.status} |
---|
4683 | |
---|
4684 | echo creating $CONFIG_STATUS |
---|
4685 | rm -f $CONFIG_STATUS |
---|
4686 | cat > $CONFIG_STATUS <<EOF |
---|
4687 | #! /bin/sh |
---|
4688 | # Generated automatically by configure. |
---|
4689 | # Run this file to recreate the current configuration. |
---|
4690 | # This directory was configured as follows, |
---|
4691 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
4692 | # |
---|
4693 | # $0 $ac_configure_args |
---|
4694 | # |
---|
4695 | # Compiler output produced by configure, useful for debugging |
---|
4696 | # configure, is in ./config.log if it exists. |
---|
4697 | |
---|
4698 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
4699 | for ac_option |
---|
4700 | do |
---|
4701 | case "\$ac_option" in |
---|
4702 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4703 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
4704 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
4705 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
4706 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
---|
4707 | exit 0 ;; |
---|
4708 | -help | --help | --hel | --he | --h) |
---|
4709 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
4710 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
4711 | esac |
---|
4712 | done |
---|
4713 | |
---|
4714 | ac_given_srcdir=$srcdir |
---|
4715 | ac_given_INSTALL="$INSTALL" |
---|
4716 | |
---|
4717 | trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
4718 | EOF |
---|
4719 | cat >> $CONFIG_STATUS <<EOF |
---|
4720 | |
---|
4721 | # Protect against being on the right side of a sed subst in config.status. |
---|
4722 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
4723 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
4724 | $ac_vpsub |
---|
4725 | $extrasub |
---|
4726 | s%@CFLAGS@%$CFLAGS%g |
---|
4727 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
4728 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
4729 | s%@DEFS@%$DEFS%g |
---|
4730 | s%@LDFLAGS@%$LDFLAGS%g |
---|
4731 | s%@LIBS@%$LIBS%g |
---|
4732 | s%@exec_prefix@%$exec_prefix%g |
---|
4733 | s%@prefix@%$prefix%g |
---|
4734 | s%@program_transform_name@%$program_transform_name%g |
---|
4735 | s%@bindir@%$bindir%g |
---|
4736 | s%@sbindir@%$sbindir%g |
---|
4737 | s%@libexecdir@%$libexecdir%g |
---|
4738 | s%@datadir@%$datadir%g |
---|
4739 | s%@sysconfdir@%$sysconfdir%g |
---|
4740 | s%@sharedstatedir@%$sharedstatedir%g |
---|
4741 | s%@localstatedir@%$localstatedir%g |
---|
4742 | s%@libdir@%$libdir%g |
---|
4743 | s%@includedir@%$includedir%g |
---|
4744 | s%@oldincludedir@%$oldincludedir%g |
---|
4745 | s%@infodir@%$infodir%g |
---|
4746 | s%@mandir@%$mandir%g |
---|
4747 | s%@SINGUNAME@%$SINGUNAME%g |
---|
4748 | s%@EXEC_EXT@%$EXEC_EXT%g |
---|
4749 | s%@SING_UNAME@%$SING_UNAME%g |
---|
4750 | s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g |
---|
4751 | s%@VERSION_DATE@%$VERSION_DATE%g |
---|
4752 | s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g |
---|
4753 | s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g |
---|
4754 | s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g |
---|
4755 | s%@CC@%$CC%g |
---|
4756 | s%@CPP@%$CPP%g |
---|
4757 | s%@CXX@%$CXX%g |
---|
4758 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
4759 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
4760 | s%@PIPE@%$PIPE%g |
---|
4761 | s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g |
---|
4762 | s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g |
---|
4763 | s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g |
---|
4764 | s%@SET_MAKE@%$SET_MAKE%g |
---|
4765 | s%@SINGULAR@%$SINGULAR%g |
---|
4766 | s%@LEX@%$LEX%g |
---|
4767 | s%@BISON@%$BISON%g |
---|
4768 | s%@LN_S@%$LN_S%g |
---|
4769 | s%@PERL@%$PERL%g |
---|
4770 | s%@ALLOCA@%$ALLOCA%g |
---|
4771 | s%@CXXCPP@%$CXXCPP%g |
---|
4772 | s%@NEED_LIBS@%$NEED_LIBS%g |
---|
4773 | s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g |
---|
4774 | |
---|
4775 | CEOF |
---|
4776 | EOF |
---|
4777 | |
---|
4778 | cat >> $CONFIG_STATUS <<\EOF |
---|
4779 | |
---|
4780 | # Split the substitutions into bite-sized pieces for seds with |
---|
4781 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4782 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
4783 | ac_file=1 # Number of current file. |
---|
4784 | ac_beg=1 # First line for current file. |
---|
4785 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
4786 | ac_more_lines=: |
---|
4787 | ac_sed_cmds="" |
---|
4788 | while $ac_more_lines; do |
---|
4789 | if test $ac_beg -gt 1; then |
---|
4790 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4791 | else |
---|
4792 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4793 | fi |
---|
4794 | if test ! -s conftest.s$ac_file; then |
---|
4795 | ac_more_lines=false |
---|
4796 | rm -f conftest.s$ac_file |
---|
4797 | else |
---|
4798 | if test -z "$ac_sed_cmds"; then |
---|
4799 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
4800 | else |
---|
4801 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
4802 | fi |
---|
4803 | ac_file=`expr $ac_file + 1` |
---|
4804 | ac_beg=$ac_end |
---|
4805 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
4806 | fi |
---|
4807 | done |
---|
4808 | if test -z "$ac_sed_cmds"; then |
---|
4809 | ac_sed_cmds=cat |
---|
4810 | fi |
---|
4811 | EOF |
---|
4812 | |
---|
4813 | cat >> $CONFIG_STATUS <<EOF |
---|
4814 | |
---|
4815 | CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"} |
---|
4816 | EOF |
---|
4817 | cat >> $CONFIG_STATUS <<\EOF |
---|
4818 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
4819 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4820 | case "$ac_file" in |
---|
4821 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4822 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4823 | *) ac_file_in="${ac_file}.in" ;; |
---|
4824 | esac |
---|
4825 | |
---|
4826 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
4827 | |
---|
4828 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4829 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4830 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4831 | # The file is in a subdirectory. |
---|
4832 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4833 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
4834 | # A "../" for each directory in $ac_dir_suffix. |
---|
4835 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
4836 | else |
---|
4837 | ac_dir_suffix= ac_dots= |
---|
4838 | fi |
---|
4839 | |
---|
4840 | case "$ac_given_srcdir" in |
---|
4841 | .) srcdir=. |
---|
4842 | if test -z "$ac_dots"; then top_srcdir=. |
---|
4843 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
4844 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
4845 | *) # Relative path. |
---|
4846 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
4847 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
4848 | esac |
---|
4849 | |
---|
4850 | case "$ac_given_INSTALL" in |
---|
4851 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
4852 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
4853 | esac |
---|
4854 | |
---|
4855 | echo creating "$ac_file" |
---|
4856 | rm -f "$ac_file" |
---|
4857 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
4858 | case "$ac_file" in |
---|
4859 | *Makefile*) ac_comsub="1i\\ |
---|
4860 | # $configure_input" ;; |
---|
4861 | *) ac_comsub= ;; |
---|
4862 | esac |
---|
4863 | |
---|
4864 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4865 | sed -e "$ac_comsub |
---|
4866 | s%@configure_input@%$configure_input%g |
---|
4867 | s%@srcdir@%$srcdir%g |
---|
4868 | s%@top_srcdir@%$top_srcdir%g |
---|
4869 | s%@INSTALL@%$INSTALL%g |
---|
4870 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
4871 | fi; done |
---|
4872 | rm -f conftest.s* |
---|
4873 | |
---|
4874 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
4875 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
4876 | # |
---|
4877 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
4878 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
4879 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
4880 | ac_dC='\3' |
---|
4881 | ac_dD='%g' |
---|
4882 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
4883 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
4884 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
4885 | ac_uC=' ' |
---|
4886 | ac_uD='\4%g' |
---|
4887 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
4888 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
4889 | ac_eB='$%\1#\2define\3' |
---|
4890 | ac_eC=' ' |
---|
4891 | ac_eD='%g' |
---|
4892 | |
---|
4893 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
4894 | EOF |
---|
4895 | cat >> $CONFIG_STATUS <<EOF |
---|
4896 | CONFIG_HEADERS="mod2.h" |
---|
4897 | EOF |
---|
4898 | cat >> $CONFIG_STATUS <<\EOF |
---|
4899 | fi |
---|
4900 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
4901 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4902 | case "$ac_file" in |
---|
4903 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4904 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4905 | *) ac_file_in="${ac_file}.in" ;; |
---|
4906 | esac |
---|
4907 | |
---|
4908 | echo creating $ac_file |
---|
4909 | |
---|
4910 | rm -f conftest.frag conftest.in conftest.out |
---|
4911 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4912 | cat $ac_file_inputs > conftest.in |
---|
4913 | |
---|
4914 | EOF |
---|
4915 | |
---|
4916 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
4917 | # the proper values into config.h.in to produce config.h. And first: |
---|
4918 | # Protect against being on the right side of a sed subst in config.status. |
---|
4919 | # Protect against being in an unquoted here document in config.status. |
---|
4920 | rm -f conftest.vals |
---|
4921 | cat > conftest.hdr <<\EOF |
---|
4922 | s/[\\&%]/\\&/g |
---|
4923 | s%[\\$`]%\\&%g |
---|
4924 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
4925 | s%ac_d%ac_u%gp |
---|
4926 | s%ac_u%ac_e%gp |
---|
4927 | EOF |
---|
4928 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
4929 | rm -f conftest.hdr |
---|
4930 | |
---|
4931 | # This sed command replaces #undef with comments. This is necessary, for |
---|
4932 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
4933 | # on some systems where configure will not decide to define it. |
---|
4934 | cat >> conftest.vals <<\EOF |
---|
4935 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
4936 | EOF |
---|
4937 | |
---|
4938 | # Break up conftest.vals because some shells have a limit on |
---|
4939 | # the size of here documents, and old seds have small limits too. |
---|
4940 | |
---|
4941 | rm -f conftest.tail |
---|
4942 | while : |
---|
4943 | do |
---|
4944 | ac_lines=`grep -c . conftest.vals` |
---|
4945 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
4946 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
4947 | # Write a limited-size here document to conftest.frag. |
---|
4948 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
4949 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
4950 | echo 'CEOF |
---|
4951 | sed -f conftest.frag conftest.in > conftest.out |
---|
4952 | rm -f conftest.in |
---|
4953 | mv conftest.out conftest.in |
---|
4954 | ' >> $CONFIG_STATUS |
---|
4955 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
4956 | rm -f conftest.vals |
---|
4957 | mv conftest.tail conftest.vals |
---|
4958 | done |
---|
4959 | rm -f conftest.vals |
---|
4960 | |
---|
4961 | cat >> $CONFIG_STATUS <<\EOF |
---|
4962 | rm -f conftest.frag conftest.h |
---|
4963 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
4964 | cat conftest.in >> conftest.h |
---|
4965 | rm -f conftest.in |
---|
4966 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
4967 | echo "$ac_file is unchanged" |
---|
4968 | rm -f conftest.h |
---|
4969 | else |
---|
4970 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4971 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4972 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4973 | # The file is in a subdirectory. |
---|
4974 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4975 | fi |
---|
4976 | rm -f $ac_file |
---|
4977 | mv conftest.h $ac_file |
---|
4978 | fi |
---|
4979 | fi; done |
---|
4980 | |
---|
4981 | EOF |
---|
4982 | cat >> $CONFIG_STATUS <<EOF |
---|
4983 | |
---|
4984 | EOF |
---|
4985 | cat >> $CONFIG_STATUS <<\EOF |
---|
4986 | \ |
---|
4987 | if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi |
---|
4988 | exit 0 |
---|
4989 | EOF |
---|
4990 | chmod +x $CONFIG_STATUS |
---|
4991 | rm -fr confdefs* $ac_clean_files |
---|
4992 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
4993 | |
---|