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