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