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