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