Annotation of OpenXM_contrib/gmp/configure, Revision 1.1.1.3
1.1.1.2 maekawa 1: #! /bin/sh
1.1.1.3 ! maekawa 2: # From configure.in Revision: 1.129.2.2
1.1.1.2 maekawa 3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using Autoconf version 2.14a.
5: # Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
6: # Free Software Foundation, Inc.
7: #
8: # This configure script is free software; the Free Software Foundation
9: # gives unlimited permission to copy, distribute and modify it.
10:
11: # Defaults:
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14:
15: # Initialize some variables set by options.
16: ac_init_help=false
17: ac_init_version=false
18: # The variables have the same names as the options, with
19: # dashes changed to underlines.
20: build=NONE
21: cache_file=./config.cache
22: exec_prefix=NONE
23: host=NONE
24: no_create=
25: nonopt=NONE
26: no_recursion=
27: prefix=NONE
28: program_prefix=NONE
29: program_suffix=NONE
30: program_transform_name=s,x,x,
31: silent=
32: site=
33: srcdir=
34: target=NONE
35: verbose=
36: x_includes=NONE
37: x_libraries=NONE
38: bindir='${exec_prefix}/bin'
39: sbindir='${exec_prefix}/sbin'
40: libexecdir='${exec_prefix}/libexec'
41: datadir='${prefix}/share'
42: sysconfdir='${prefix}/etc'
43: sharedstatedir='${prefix}/com'
44: localstatedir='${prefix}/var'
45: libdir='${exec_prefix}/lib'
46: includedir='${prefix}/include'
47: oldincludedir='/usr/include'
48: infodir='${prefix}/info'
49: mandir='${prefix}/man'
50:
51: # Initialize some other variables.
52: subdirs=
53: MFLAGS= MAKEFLAGS=
54: SHELL=${CONFIG_SHELL-/bin/sh}
55: # Maximum number of lines to put in a shell here document.
56: : ${ac_max_here_lines=48}
57: # Sed expression to map a string onto a valid sh and CPP variable names.
58: ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
59: ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
60:
61: ac_prev=
62: for ac_option
63: do
64: # If the previous option needs an argument, assign it.
65: if test -n "$ac_prev"; then
66: eval "$ac_prev=\$ac_option"
67: ac_prev=
68: continue
69: fi
70:
71: ac_optarg=`echo "$ac_option" | sed -n 's/^[^=]*=//p'`
72:
73: # Accept the important Cygnus configure options, so we can diagnose typos.
74:
75: case "$ac_option" in
76:
77: -bindir | --bindir | --bindi | --bind | --bin | --bi)
78: ac_prev=bindir ;;
79: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80: bindir="$ac_optarg" ;;
81:
82: -build | --build | --buil | --bui | --bu)
83: ac_prev=build ;;
84: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85: build="$ac_optarg" ;;
86:
87: -cache-file | --cache-file | --cache-fil | --cache-fi \
88: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89: ac_prev=cache_file ;;
90: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92: cache_file="$ac_optarg" ;;
93:
94: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95: ac_prev=datadir ;;
96: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97: | --da=*)
98: datadir="$ac_optarg" ;;
99:
100: -disable-* | --disable-*)
101: ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
102: # Reject names that are not valid shell variable names.
103: if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
104: { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
105: fi
106: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107: eval "enable_${ac_feature}=no" ;;
108:
109: -enable-* | --enable-*)
110: ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
111: # Reject names that are not valid shell variable names.
112: if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
113: { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
114: fi
115: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116: case "$ac_option" in
117: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
118: *) ac_optarg=yes ;;
119: esac
120: eval "enable_${ac_feature}='$ac_optarg'" ;;
121:
122: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124: | --exec | --exe | --ex)
125: ac_prev=exec_prefix ;;
126: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128: | --exec=* | --exe=* | --ex=*)
129: exec_prefix="$ac_optarg" ;;
130:
131: -gas | --gas | --ga | --g)
132: # Obsolete; use --with-gas.
133: with_gas=yes ;;
134:
135: -help | --help | --hel | --he | -h)
136: ac_init_help=: ;;
137: -host | --host | --hos | --ho)
138: ac_prev=host ;;
139: -host=* | --host=* | --hos=* | --ho=*)
140: host="$ac_optarg" ;;
141:
142: -includedir | --includedir | --includedi | --included | --include \
143: | --includ | --inclu | --incl | --inc)
144: ac_prev=includedir ;;
145: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
146: | --includ=* | --inclu=* | --incl=* | --inc=*)
147: includedir="$ac_optarg" ;;
148:
149: -infodir | --infodir | --infodi | --infod | --info | --inf)
150: ac_prev=infodir ;;
151: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
152: infodir="$ac_optarg" ;;
153:
154: -libdir | --libdir | --libdi | --libd)
155: ac_prev=libdir ;;
156: -libdir=* | --libdir=* | --libdi=* | --libd=*)
157: libdir="$ac_optarg" ;;
158:
159: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
160: | --libexe | --libex | --libe)
161: ac_prev=libexecdir ;;
162: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
163: | --libexe=* | --libex=* | --libe=*)
164: libexecdir="$ac_optarg" ;;
165:
166: -localstatedir | --localstatedir | --localstatedi | --localstated \
167: | --localstate | --localstat | --localsta | --localst \
168: | --locals | --local | --loca | --loc | --lo)
169: ac_prev=localstatedir ;;
170: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
171: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
172: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
173: localstatedir="$ac_optarg" ;;
174:
175: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
176: ac_prev=mandir ;;
177: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
178: mandir="$ac_optarg" ;;
179:
180: -nfp | --nfp | --nf)
181: # Obsolete; use --without-fp.
182: with_fp=no ;;
183:
184: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
185: | --no-cr | --no-c)
186: no_create=yes ;;
187:
188: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
189: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
190: no_recursion=yes ;;
191:
192: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
193: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
194: | --oldin | --oldi | --old | --ol | --o)
195: ac_prev=oldincludedir ;;
196: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
197: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
198: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
199: oldincludedir="$ac_optarg" ;;
200:
201: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
202: ac_prev=prefix ;;
203: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
204: prefix="$ac_optarg" ;;
205:
206: -program-prefix | --program-prefix | --program-prefi | --program-pref \
207: | --program-pre | --program-pr | --program-p)
208: ac_prev=program_prefix ;;
209: -program-prefix=* | --program-prefix=* | --program-prefi=* \
210: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
211: program_prefix="$ac_optarg" ;;
212:
213: -program-suffix | --program-suffix | --program-suffi | --program-suff \
214: | --program-suf | --program-su | --program-s)
215: ac_prev=program_suffix ;;
216: -program-suffix=* | --program-suffix=* | --program-suffi=* \
217: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
218: program_suffix="$ac_optarg" ;;
219:
220: -program-transform-name | --program-transform-name \
221: | --program-transform-nam | --program-transform-na \
222: | --program-transform-n | --program-transform- \
223: | --program-transform | --program-transfor \
224: | --program-transfo | --program-transf \
225: | --program-trans | --program-tran \
226: | --progr-tra | --program-tr | --program-t)
227: ac_prev=program_transform_name ;;
228: -program-transform-name=* | --program-transform-name=* \
229: | --program-transform-nam=* | --program-transform-na=* \
230: | --program-transform-n=* | --program-transform-=* \
231: | --program-transform=* | --program-transfor=* \
232: | --program-transfo=* | --program-transf=* \
233: | --program-trans=* | --program-tran=* \
234: | --progr-tra=* | --program-tr=* | --program-t=*)
235: program_transform_name="$ac_optarg" ;;
236:
237: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
238: | -silent | --silent | --silen | --sile | --sil)
239: silent=yes ;;
240:
241: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
242: ac_prev=sbindir ;;
243: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
244: | --sbi=* | --sb=*)
245: sbindir="$ac_optarg" ;;
246:
247: -sharedstatedir | --sharedstatedir | --sharedstatedi \
248: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
249: | --sharedst | --shareds | --shared | --share | --shar \
250: | --sha | --sh)
251: ac_prev=sharedstatedir ;;
252: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
253: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
254: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
255: | --sha=* | --sh=*)
256: sharedstatedir="$ac_optarg" ;;
257:
258: -site | --site | --sit)
259: ac_prev=site ;;
260: -site=* | --site=* | --sit=*)
261: site="$ac_optarg" ;;
262:
263: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
264: ac_prev=srcdir ;;
265: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
266: srcdir="$ac_optarg" ;;
267:
268: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
269: | --syscon | --sysco | --sysc | --sys | --sy)
270: ac_prev=sysconfdir ;;
271: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
272: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
273: sysconfdir="$ac_optarg" ;;
274:
275: -target | --target | --targe | --targ | --tar | --ta | --t)
276: ac_prev=target ;;
277: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
278: target="$ac_optarg" ;;
279:
280: -v | -verbose | --verbose | --verbos | --verbo | --verb)
281: verbose=yes ;;
282:
283: -version | --version | --versio | --versi | --vers | -V)
284: ac_init_version=: ;;
285:
286: -with-* | --with-*)
287: ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
288: # Reject names that are not valid shell variable names.
289: if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
290: { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
291: fi
292: ac_package=`echo $ac_package| sed 's/-/_/g'`
293: case "$ac_option" in
294: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
295: *) ac_optarg=yes ;;
296: esac
297: eval "with_${ac_package}='$ac_optarg'" ;;
298:
299: -without-* | --without-*)
300: ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
301: # Reject names that are not valid shell variable names.
302: if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
303: { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
304: fi
305: ac_package=`echo $ac_package| sed 's/-/_/g'`
306: eval "with_${ac_package}=no" ;;
307:
308: --x)
309: # Obsolete; use --with-x.
310: with_x=yes ;;
311:
312: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
313: | --x-incl | --x-inc | --x-in | --x-i)
314: ac_prev=x_includes ;;
315: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
316: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
317: x_includes="$ac_optarg" ;;
318:
319: -x-libraries | --x-libraries | --x-librarie | --x-librari \
320: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
321: ac_prev=x_libraries ;;
322: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
323: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
324: x_libraries="$ac_optarg" ;;
325:
326: -*) { echo "configure: error: unrecognized option: $ac_option
327: Try \`configure --help' for more information." 1>&2; exit 1; }
328: ;;
329:
330: *=*)
331: ac_envvar=`echo "$ac_option" | sed -e 's/=.*//'`
332: # Reject names that are not valid shell variable names.
333: if echo "$ac_envvar" | grep '[^a-zA-Z0-9_]' >/dev/null 2>&1; then
334: { echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; }
335: fi
336: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
337: eval "$ac_envvar='$ac_optarg'"
338: export $ac_envvar ;;
339:
340: *)
341: if echo "$ac_option" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
342: echo "configure: warning: invalid host type: $ac_option" 1>&2
343: fi
344: if test "x$nonopt" != xNONE; then
345: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
346: fi
347: nonopt="$ac_option"
348: ;;
349:
350: esac
351: done
352:
353: if test -n "$ac_prev"; then
354: { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
355: fi
356: if $ac_init_help; then
357: # Omit some internal or obsolete options to make the list less imposing.
358: # This message is too long to be a string in the A/UX 3.1 sh.
359: cat <<\EOF
360: `configure' configures software source code packages to adapt to many kinds
361: of systems.
362:
363: Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
364:
365: To safely assign special values to environment variables (e.g., CC,
366: CFLAGS...), give to `configure' the definition as VAR=VALUE.
367:
368: Defaults for the options are specified in brackets.
369:
370: Configuration:
371: -h, --help print this message
372: -V, --version print the version of autoconf that created configure
373: -q, --quiet, --silent do not print `checking...' messages
374: --cache-file=FILE cache test results in FILE
375: -n, --no-create do not create output files
376:
377: EOF
378:
379: cat <<EOF
380: Directories:
381: --prefix=PREFIX install architecture-independent files in PREFIX
382: [$ac_default_prefix]
383: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
384: [same as prefix]
385: --bindir=DIR user executables in DIR [EPREFIX/bin]
386: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
387: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
388: --datadir=DIR read-only architecture-independent data in DIR
389: [PREFIX/share]
390: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
391: --sharedstatedir=DIR modifiable architecture-independent data in DIR
392: [PREFIX/com]
393: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
394: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
395: --includedir=DIR C header files in DIR [PREFIX/include]
396: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
397: --infodir=DIR info documentation in DIR [PREFIX/info]
398: --mandir=DIR man documentation in DIR [PREFIX/man]
399: --srcdir=DIR find the sources in DIR [configure dir or ..]
400: EOF
401:
402: cat <<\EOF
403:
404: Host type:
405: --build=BUILD configure for building on BUILD [BUILD=HOST]
406: --host=HOST configure for HOST [guessed]
407: --target=TARGET configure for TARGET [TARGET=HOST]
408: EOF
409:
410: cat <<\EOF
411:
412: Program names:
413: --program-prefix=PREFIX prepend PREFIX to installed program names
414: --program-suffix=SUFFIX append SUFFIX to installed program names
415: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
416:
417: Optional Features:
418: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
419: --enable-FEATURE=ARG include FEATURE ARG=yes
420: --disable-dependency-tracking Speeds up one-time builds
421: --enable-dependency-tracking Do not reject slow dependency extractors
422: --enable-maintainer-mode enable make rules and dependencies not useful
423: (and sometimes confusing) to the casual installer
424: --enable-assert enable ASSERT checking default=no
425: --enable-alloca use alloca for temp space default=yes
426: --enable-fft enable FFTs for multiplication default=no
427: --enable-mpbsd build Berkley MP compatibility library default=no
428: --enable-mpfr build MPFR default=no
429: --enable-shared=PKGS build shared libraries default=yes
430: --enable-static=PKGS build static libraries default=yes
431: --enable-fast-install=PKGS optimize for fast installation default=yes
432: --disable-libtool-lock avoid locking (might break parallel builds)
433:
434: Optional Packages:
435: --with-PACKAGE=ARG use PACKAGE ARG=yes
436: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
437: --with-gnu-ld assume the C compiler uses GNU ld default=no
438: --with-pic try to use only PIC/non-PIC objects default=use both
439: EOF
440: exit 0
441: fi
442: if $ac_init_version; then
443: cat <<\EOF
444: Generated automatically using Autoconf version 2.14a.
445: Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
446: Free Software Foundation, Inc.
447:
448: This configure script is free software; the Free Software Foundation
449: gives unlimited permission to copy, distribute and modify it.
450: EOF
451: exit 0
452: fi
453: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454:
455: # Keep a trace of the command line.
456: # Strip out --no-create and --no-recursion so they do not pile up.
457: # Also quote any args containing shell meta-characters.
458: ac_configure_args=
459: for ac_arg
460: do
461: case "$ac_arg" in
462: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
463: | --no-cr | --no-c) ;;
464: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
465: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
466: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
467: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
468: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470: esac
471: done
472:
473: # File descriptor usage:
474: # 0 standard input
475: # 1 file creation
476: # 2 errors and warnings
477: # 3 some systems may open it to /dev/tty
478: # 4 used on the Kubota Titan
479: # 6 checking for... messages and results
480: # 5 compiler messages saved in config.log
481: if test "$silent" = yes; then
482: exec 6>/dev/null
483: else
484: exec 6>&1
485: fi
486: exec 5>./config.log
487:
488: echo "\
489: This file contains any messages produced by compilers while
490: running configure, to aid debugging if configure makes a mistake.
491:
492: It was created by configure version 2.14a, executed with
493: > $0 $ac_configure_args
494: " 1>&5
495:
496: # NLS nuisances.
497: # Only set these to C if already set. These must not be set unconditionally
498: # because not all systems understand e.g. LANG=C (notably SCO).
499: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500: # Non-C LC_CTYPE values break the ctype check.
501: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
502: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505:
506: # confdefs.h avoids OS command line length limits that DEFS can exceed.
507: rm -rf conftest* confdefs.h
508: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509: echo >confdefs.h
510:
511: # A filename unique to this package, relative to the directory that
512: # configure is in, which we can look for to find out if srcdir is correct.
513: ac_unique_file=
514:
515: # Find the source files, if location was not specified.
516: if test -z "$srcdir"; then
517: ac_srcdir_defaulted=yes
518: # Try the directory containing this script, then its parent.
519: ac_prog=$0
520: ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
521: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522: srcdir=$ac_confdir
523: if test ! -r $srcdir/$ac_unique_file; then
524: srcdir=..
525: fi
526: else
527: ac_srcdir_defaulted=no
528: fi
529: if test ! -r $srcdir/$ac_unique_file; then
530: if test "$ac_srcdir_defaulted" = yes; then
531: { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
532: else
533: { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
534: fi
535: fi
536: srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
537:
538: # Prefer explicitly selected file to automatically selected ones.
539: if test -z "$CONFIG_SITE"; then
540: if test "x$prefix" != xNONE; then
541: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542: else
543: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544: fi
545: fi
546: for ac_site_file in $CONFIG_SITE; do
547: if test -r "$ac_site_file"; then
548: echo "loading site script $ac_site_file"
549: . "$ac_site_file"
550: fi
551: done
552:
553: if test -r "$cache_file"; then
554: echo "loading cache $cache_file"
555: test -f "$cache_file" && . $cache_file
556: else
557: echo "creating cache $cache_file"
558: >$cache_file
559: fi
560:
561: ac_ext=c
562: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563: ac_cpp='$CPP $CPPFLAGS'
564: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566: cross_compiling=$ac_cv_prog_cc_cross
567:
568: ac_exeext=
569: ac_objext=o
570: # Factoring default headers for most tests.
571: ac_includes_default="\
572: #include <stdio.h>
573: #include <sys/types.h>
574: #if STDC_HEADERS
575: # include <stdlib.h>
576: # include <stddef.h>
577: #else
578: # if HAVE_STDLIB_H
579: # include <stdlib.h>
580: # endif
581: #endif
582: #if HAVE_STRING_H
583: # if !STDC_HEADERS && HAVE_MEMORY_H
584: # include <memory.h>
585: # endif
586: # include <string.h>
587: #else
588: # if HAVE_STRINGS_H
589: # include <strings.h>
590: # endif
591: #endif
592: #if HAVE_INTTYPES_H
593: # include <inttypes.h>
594: #endif
595: #if HAVE_UNISTD_H
596: # include <unistd.h>
597: #endif"
598:
599: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
600: # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi.
601: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
602: ECHO_N= ECHO_C='
603: ' ECHO_T=' '
604: else
605: ECHO_N=-n ECHO_C= ECHO_T=
606: fi
607: else
608: ECHO_N= ECHO_C='\c' ECHO_T=
609: fi
610:
611: ac_aux_dir=
612: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
613: if test -f $ac_dir/install-sh; then
614: ac_aux_dir=$ac_dir
615: ac_install_sh="$ac_aux_dir/install-sh -c"
616: break
617: elif test -f $ac_dir/install.sh; then
618: ac_aux_dir=$ac_dir
619: ac_install_sh="$ac_aux_dir/install.sh -c"
620: break
621: elif test -f $ac_dir/shtool; then
622: ac_aux_dir=$ac_dir
623: ac_install_sh="$ac_aux_dir/shtool install -c"
624: break
625: fi
626: done
627: if test -z "$ac_aux_dir"; then
628: { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
629: fi
630: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
631: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
632: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
633:
634: echo $ECHO_N "checking host system type... $ECHO_C" 1>&6
635: echo "configure:636: checking host system type" 1>&5
636: if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
637:
638: # Make sure we can run config.sub.
639: if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
640: { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
641: fi
642:
643: ac_cv_host_alias=$host
644: case "$ac_cv_host_alias" in
645: NONE)
646: case $nonopt in
647: NONE)
648: if ac_cv_host_alias=`$ac_config_guess`; then :
649: else { echo "configure: error: cannot guess host type; you must specify one" 1>&2; exit 1; }
650: fi ;; *) ac_cv_host_alias=$nonopt ;;
651: esac ;;
652: esac
653:
654: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || exit 1
655: ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656: ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657: ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658: else
659: echo $ECHO_N "(cached) $ECHO_C" 1>&6
660: fi
661:
662: echo "$ECHO_T""$ac_cv_host" 1>&6
663:
664: host=$ac_cv_host
665: host_alias=$ac_cv_host_alias
666: host_cpu=$ac_cv_host_cpu
667: host_vendor=$ac_cv_host_vendor
668: host_os=$ac_cv_host_os
669:
670: echo $ECHO_N "checking target system type... $ECHO_C" 1>&6
671: echo "configure:672: checking target system type" 1>&5
672: if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
673:
674: # Make sure we can run config.sub.
675: if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
676: { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
677: fi
678:
679: ac_cv_target_alias=$target
680: case "$ac_cv_target_alias" in
681: NONE)
682: case $nonopt in
683: NONE)
684: ac_cv_target_alias=$host_alias ;;
685: *) ac_cv_target_alias=$nonopt ;;
686: esac ;;
687: esac
688:
689: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || exit 1
690: ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691: ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692: ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
693: else
694: echo $ECHO_N "(cached) $ECHO_C" 1>&6
695: fi
696:
697: echo "$ECHO_T""$ac_cv_target" 1>&6
698:
699: target=$ac_cv_target
700: target_alias=$ac_cv_target_alias
701: target_cpu=$ac_cv_target_cpu
702: target_vendor=$ac_cv_target_vendor
703: target_os=$ac_cv_target_os
704:
705: echo $ECHO_N "checking build system type... $ECHO_C" 1>&6
706: echo "configure:707: checking build system type" 1>&5
707: if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
708:
709: # Make sure we can run config.sub.
710: if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
711: { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
712: fi
713:
714: ac_cv_build_alias=$build
715: case "$ac_cv_build_alias" in
716: NONE)
717: case $nonopt in
718: NONE)
719: ac_cv_build_alias=$host_alias ;;
720: *) ac_cv_build_alias=$nonopt ;;
721: esac ;;
722: esac
723:
724: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
725: ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726: ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727: ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728: else
729: echo $ECHO_N "(cached) $ECHO_C" 1>&6
730: fi
731:
732: echo "$ECHO_T""$ac_cv_build" 1>&6
733:
734: build=$ac_cv_build
735: build_alias=$ac_cv_build_alias
736: build_cpu=$ac_cv_build_cpu
737: build_vendor=$ac_cv_build_vendor
738: build_os=$ac_cv_build_os
739:
740: # Do some error checking and defaulting for the host and target type.
741: # The inputs are:
742: # configure --host=HOST --target=TARGET --build=BUILD NONOPT
743: #
744: # The rules are:
745: # 1. You are not allowed to specify --host, --target, and nonopt at the
746: # same time.
747: # 2. Host defaults to nonopt.
748: # 3. If nonopt is not specified, then host defaults to the current host,
749: # as determined by config.guess.
750: # 4. Target and build default to nonopt.
751: # 5. If nonopt is not specified, then target and build default to host.
752:
753: # The aliases save the names the user supplied, while $host etc.
754: # will get canonicalized.
755: case $host---$target---$nonopt in
756: NONE---*---* | *---NONE---* | *---*---NONE) ;;
757: *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
758: esac
759:
760: test "$host_alias" != "$target_alias" &&
761: test "$program_prefix$program_suffix$program_transform_name" = \
762: NONENONEs,x,x, &&
763: program_prefix=${target_alias}-
764:
765: # Find a good install program. We prefer a C program (faster),
766: # so one script is as good as another. But avoid the broken or
767: # incompatible versions:
768: # SysV /etc/install, /usr/sbin/install
769: # SunOS /usr/etc/install
770: # IRIX /sbin/install
771: # AIX /bin/install
772: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
773: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
774: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
775: # ./install, which can be erroneously created by make from ./install.sh.
776: echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
777: echo "configure:778: checking for a BSD compatible install" 1>&5
778: if test -z "$INSTALL"; then
779: if test "${ac_cv_path_install+set}" = set; then
780: echo $ECHO_N "(cached) $ECHO_C" 1>&6
781: else
782: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
783: for ac_dir in $PATH; do
784: # Account for people who put trailing slashes in PATH elements.
785: case "$ac_dir/" in
786: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
787: *)
788: # OSF1 and SCO ODT 3.0 have their own names for install.
789: # Don't use installbsd from OSF since it installs stuff as root
790: # by default.
791: for ac_prog in ginstall scoinst install; do
792: if test -f $ac_dir/$ac_prog; then
793: if test $ac_prog = install &&
794: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
795: # AIX install. It has an incompatible calling convention.
796: :
797: elif test $ac_prog = install &&
798: grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
799: # program-specific install script used by HP pwplus--don't use.
800: :
801: else
802: ac_cv_path_install="$ac_dir/$ac_prog -c"
803: break 2
804: fi
805: fi
806: done
807: ;;
808: esac
809: done
810: IFS="$ac_save_IFS"
811:
812: fi
813: if test "${ac_cv_path_install+set}" = set; then
814: INSTALL="$ac_cv_path_install"
815: else
816: # As a last resort, use the slow shell script. We don't cache a
817: # path for INSTALL within a source directory, because that will
818: # break other packages using the cache if that directory is
819: # removed, or if the path is relative.
820: INSTALL="$ac_install_sh"
821: fi
822: fi
823: echo "$ECHO_T""$INSTALL" 1>&6
824:
825: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
826: # It thinks the first close brace ends the variable substitution.
827: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
828:
829: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
830:
831: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
832:
833: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" 1>&6
834: echo "configure:835: checking whether build environment is sane" 1>&5
835: # Just in case
836: sleep 1
837: echo timestamp > conftestfile
838: # Do `set' in a subshell so we don't clobber the current shell's
839: # arguments. Must try -L first in case configure is actually a
840: # symlink; some systems play weird games with the mod time of symlinks
841: # (eg FreeBSD returns the mod time of the symlink's containing
842: # directory).
843: if (
844: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
845: if test "$*" = "X"; then
846: # -L didn't work.
847: set X `ls -t $srcdir/configure conftestfile`
848: fi
849: if test "$*" != "X $srcdir/configure conftestfile" \
850: && test "$*" != "X conftestfile $srcdir/configure"; then
851:
852: # If neither matched, then we have a broken ls. This can happen
853: # if, for instance, CONFIG_SHELL is bash and it inherits a
854: # broken ls alias from the environment. This has actually
855: # happened. Such a system could not be considered "sane".
856: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
857: alias in your environment" 1>&2; exit 1; }
858: fi
859:
860: test "$2" = conftestfile
861: )
862: then
863: # Ok.
864: :
865: else
866: { echo "configure: error: newly created file is older than distributed files!
867: Check your system clock" 1>&2; exit 1; }
868: fi
869: rm -f conftest*
870: echo "$ECHO_T""yes" 1>&6
871: if test "$program_transform_name" = s,x,x,; then
872: program_transform_name=
873: else
874: # Double any \ or $. echo might interpret backslashes.
875: cat <<\EOF >conftestsed
876: s,\\,\\\\,g; s,\$,$$,g
877: EOF
878: program_transform_name=`echo $program_transform_name | sed -f conftestsed`
879: rm -f conftestsed
880: fi
881: test "$program_prefix" != NONE &&
882: program_transform_name="s,^,${program_prefix},;$program_transform_name"
883: # Use a double $ so make ignores it.
884: test "$program_suffix" != NONE &&
885: program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
886:
887: # sed with no file args requires a program.
888: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
889:
890: test x"${MISSING+set}" = xset || \
891: MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
892: if eval "$MISSING --run :"; then
893: am_missing_run="$MISSING --run "
894: else
895: am_missing_run=
896: am_backtick='`'
897: echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
898: fi
899:
900: for ac_prog in mawk gawk nawk awk
901: do
902: # Extract the first word of "$ac_prog", so it can be a program name with args.
903: set dummy $ac_prog; ac_word=$2
904: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
905: echo "configure:906: checking for $ac_word" 1>&5
906: if test "${ac_cv_prog_AWK+set}" = set; then
907: echo $ECHO_N "(cached) $ECHO_C" 1>&6
908: else
909: if test -n "$AWK"; then
910: ac_cv_prog_AWK="$AWK" # Let the user override the test.
911: else
912: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913: ac_dummy="$PATH"
914: for ac_dir in $ac_dummy; do
915: test -z "$ac_dir" && ac_dir=.
916: if test -f $ac_dir/$ac_word; then
917: echo "$ac_dir/$ac_word"
918: fi
919: done
920: IFS="$ac_save_ifs"
921: `; do
922: ac_cv_prog_AWK="$ac_prog"
923: break
924: done
925: fi
926: fi
927: AWK="$ac_cv_prog_AWK"
928: if test -n "$AWK"; then
929: echo "$ECHO_T""$AWK" 1>&6
930: else
931: echo "$ECHO_T""no" 1>&6
932: fi
933:
934: test -n "$AWK" && break
935: done
936:
937: echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
938: echo "configure:939: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
939: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
940: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
941: echo $ECHO_N "(cached) $ECHO_C" 1>&6
942: else
943: cat >conftestmake <<\EOF
944: all:
945: @echo 'ac_maketemp="${MAKE}"'
946: EOF
947: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
948: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
949: if test -n "$ac_maketemp"; then
950: eval ac_cv_prog_make_${ac_make}_set=yes
951: else
952: eval ac_cv_prog_make_${ac_make}_set=no
953: fi
954: rm -f conftestmake
955: fi
956: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
957: echo "$ECHO_T""yes" 1>&6
958: SET_MAKE=
959: else
960: echo "$ECHO_T""no" 1>&6
961: SET_MAKE="MAKE=${MAKE-make}"
962: fi
963:
964: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
965: if test "${enable_dependency_tracking+set}" = set; then
966: enableval="$enable_dependency_tracking"
967:
968: fi
969: if test "x$enable_dependency_tracking" = xno; then
970: AMDEP="#"
971: else
972: am_depcomp="$ac_aux_dir/depcomp"
973: if test ! -f "$am_depcomp"; then
974: AMDEP="#"
975: else
976: AMDEP=
977: fi
978: fi
979:
980: if test -z "$AMDEP"; then
981: AMDEPBACKSLASH='\'
982: else
983: AMDEPBACKSLASH=
984: fi
985:
986: if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
987: DEPDIR=.deps
988: else
989: DEPDIR=_deps
990: fi
991:
992: PACKAGE=gmp
993:
1.1.1.3 ! maekawa 994: VERSION=3.1.1
1.1.1.2 maekawa 995:
996: if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
997: test -f $srcdir/config.status; then
998: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
999: fi
1000: cat >>confdefs.h <<EOF
1001: #define PACKAGE "$PACKAGE"
1002: EOF
1003:
1004: cat >>confdefs.h <<EOF
1005: #define VERSION "$VERSION"
1006: EOF
1007:
1008: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1009:
1010: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1011:
1012: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1013:
1014: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1015:
1016: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1017:
1018: AMTAR=${AMTAR-"${am_missing_run}tar"}
1019:
1020: if test -z "$install_sh"; then
1021: install_sh="$ac_aux_dir/install-sh"
1022: test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
1023: test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
1024: install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
1025: fi
1026:
1027: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" 1>&6
1028: echo "configure:1029: checking whether to enable maintainer-specific portions of Makefiles" 1>&5
1029: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1030: if test "${enable_maintainer_mode+set}" = set; then
1031: enableval="$enable_maintainer_mode"
1032: USE_MAINTAINER_MODE=$enableval
1033: else
1034: USE_MAINTAINER_MODE=no
1035: fi
1036: echo "$ECHO_T""$USE_MAINTAINER_MODE" 1>&6
1037:
1038: if test $USE_MAINTAINER_MODE = yes; then
1039: MAINTAINER_MODE_TRUE=
1040: MAINTAINER_MODE_FALSE='#'
1041: else
1042: MAINTAINER_MODE_TRUE='#'
1043: MAINTAINER_MODE_FALSE=
1044: fi
1045: MAINT=$MAINTAINER_MODE_TRUE
1046:
1047: gmp_configm4="config.m4"
1048: gmp_tmpconfigm4=cnfm4.tmp
1049: gmp_tmpconfigm4i=cnfm4i.tmp
1050: gmp_tmpconfigm4p=cnfm4p.tmp
1051: test -f $gmp_tmpconfigm4 && rm $gmp_tmpconfigm4
1052: test -f $gmp_tmpconfigm4i && rm $gmp_tmpconfigm4i
1053: test -f $gmp_tmpconfigm4p && rm $gmp_tmpconfigm4p
1054:
1055: # Check whether --enable-assert or --disable-assert was given.
1056: if test "${enable_assert+set}" = set; then
1057: enableval="$enable_assert"
1058: case "${enableval}" in
1059: yes|no) ;;
1060: *) { echo "configure: error: bad value ${enableval} for --enable-assert, need yes or no" 1>&2; exit 1; } ;;
1061: esac
1062: else
1063: enable_assert=no
1064: fi
1065:
1066: if test "$enable_assert" = "yes"; then
1067: cat >>confdefs.h <<\EOF
1068: #define WANT_ASSERT 1
1069: EOF
1070:
1071: fi
1072:
1073: # Check whether --enable-alloca or --disable-alloca was given.
1074: if test "${enable_alloca+set}" = set; then
1075: enableval="$enable_alloca"
1076: case "${enableval}" in
1077: yes|no) ;;
1078: *) { echo "configure: error: bad value ${enableval} for --enable-alloca, need yes or no" 1>&2; exit 1; } ;;
1079: esac
1080: else
1081: enable_alloca=yes
1082: fi
1083:
1084: if test "$enable_alloca" = "no"; then
1085: cat >>confdefs.h <<\EOF
1086: #define USE_STACK_ALLOC 1
1087: EOF
1088:
1089: fi
1090:
1091: # Check whether --enable-fft or --disable-fft was given.
1092: if test "${enable_fft+set}" = set; then
1093: enableval="$enable_fft"
1094: case "${enableval}" in
1095: yes|no) ;;
1096: *) { echo "configure: error: bad value ${enableval} for --enable-fft, need yes or no" 1>&2; exit 1; } ;;
1097: esac
1098: else
1099: enable_fft=no
1100: fi
1101:
1102: if test "$enable_fft" = "yes"; then
1103: cat >>confdefs.h <<\EOF
1104: #define WANT_FFT 1
1105: EOF
1106:
1107: fi
1108:
1109: # Check whether --enable-mpbsd or --disable-mpbsd was given.
1110: if test "${enable_mpbsd+set}" = set; then
1111: enableval="$enable_mpbsd"
1112: case "${enableval}" in
1113: yes|no) ;;
1114: *) { echo "configure: error: bad value ${enableval} for --enable-mpbsd, need yes or no" 1>&2; exit 1; } ;;
1115: esac
1116: else
1117: enable_mpbsd=no
1118: fi
1119:
1120: if test "$enable_mpbsd" = "yes"; then
1121: WANT_MPBSD_TRUE=
1122: WANT_MPBSD_FALSE='#'
1123: else
1124: WANT_MPBSD_TRUE='#'
1125: WANT_MPBSD_FALSE=
1126: fi
1127:
1128: # Check whether --enable-mpfr or --disable-mpfr was given.
1129: if test "${enable_mpfr+set}" = set; then
1130: enableval="$enable_mpfr"
1131: case "${enableval}" in
1132: yes|no) ;;
1133: *) { echo "configure: error: bad value ${enableval} for --enable-mpfr, need yes or no" 1>&2; exit 1; } ;;
1134: esac
1135: else
1136: enable_mpfr=no
1137: fi
1138:
1139: if test "$enable_mpfr" = "yes"; then
1140: WANT_MPFR_TRUE=
1141: WANT_MPFR_FALSE='#'
1142: else
1143: WANT_MPFR_TRUE='#'
1144: WANT_MPFR_FALSE=
1145: fi
1146:
1147: os_64bit="no"
1148: cclist="gcc cc" # FIXME: Prefer c89 to cc.
1149: gmp_cflags_gcc="-g -O2"
1150: gmp_cflags64_gcc="-g -O2"
1151: gmp_cflags_cc="-g"
1152: gmp_cflags64_cc="-g"
1153:
1154: case "$target" in
1155: # Alpha
1156: alpha*-cray-unicos*)
1157: # Don't perform any assembly syntax tests on this beast.
1158: gmp_no_asm_syntax_testing=yes
1159: cclist=cc
1160: gmp_cflags_cc="$gmp_cflags_cc -O"
1161: ;;
1162: alpha*-*-osf*)
1163: flavour=`echo $target_cpu | sed 's/^alpha//g'`
1164: if test -n "$flavour"; then
1165: case $flavour in # compilers don't seem to understand `ev67' and such.
1166: ev6? | ev7*) flavour=ev6;;
1167: esac
1168: gmp_optcflags_gcc="-mcpu=$flavour"
1169: # FIXME: We shouldn't fail fatally if none of these work, but that's
1170: # how xoptcflags work and we don't have any other mechanism right now.
1171: # Why do we need this here and not for alpha*-*-* below?
1172: gmp_xoptcflags_gcc="-Wa,-arch,${flavour} -Wa,-m${flavour}"
1173: gmp_optcflags_cc="-arch $flavour -tune $flavour"
1174: fi
1175: ;;
1176: alpha*-*-*)
1177: cclist="gcc"
1178: flavour=`echo $target_cpu | sed 's/^alpha//g'`
1179: if test -n "$flavour"; then
1180: case $flavour in
1181: ev6? | ev7*) flavour=ev6;;
1182: esac
1183: gmp_optcflags_gcc="-mcpu=$flavour"
1184: fi
1185: ;;
1186: # Cray vector machines. This must come after alpha* so that we can
1187: # recognize present and future vector processors with a wildcard.
1188: *-cray-unicos*)
1189: # Don't perform any assembly syntax tests on this beast.
1190: gmp_no_asm_syntax_testing=yes
1191: cclist=cc
1192: # Don't inherit default gmp_cflags_cc value; it comes with -g which
1193: # disables all optimization on Cray vector systems
1194: gmp_cflags_cc="-O"
1195: ;;
1196:
1197: # AMD and Intel x86 configurations
1198: i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*)
1199: # Rumour has it -O2 used to give worse register allocation than just -O.
1200: gmp_cflags_gcc="-g -O -fomit-frame-pointer"
1201:
1202: case "${target}" in
1203: i386*-*-*) gmp_optcflags_gcc="-mcpu=i386 -march=i386";;
1204: i486*-*-*) gmp_optcflags_gcc="-mcpu=i486 -march=i486";;
1205: i586*-*-* | pentium-*-* | pentiummmx-*-*)
1206: gmp_optcflags_gcc="-mcpu=pentium -march=pentium";;
1207:
1208: # -march=pentiumpro not used because mpz/powm.c (swox cvs rev 1.4)
1209: # tickles a bug in gcc 2.95.2 (believed fixed in 2.96).
1210: i686*-*-* | pentiumpro-*-* | pentium[23]-*-*)
1211: gmp_optcflags_gcc="-mcpu=pentiumpro";;
1212:
1213: k6*-*-*) gmp_optcflags_gcc="-mcpu=k6 -march=k6";;
1214:
1215: # Athlon instruction costs are close to p6: 3 cycle load latency, 4-6
1216: # cycle mul, 40 cycle div, pairable adc, ...
1217: # FIXME: Change this when gcc gets something specific for Athlon.
1218: # -march=pentiumpro not used, per i686 above.
1219: athlon-*-*) gmp_optcflags_gcc="-mcpu=pentiumpro";;
1220: esac
1221: ;;
1222:
1223: # Sparc
1224: ultrasparc*-*-solaris2.[7-9] | sparcv9-*-solaris2.[7-9])
1225: os_64bit=yes
1226: gmp_cflags_gcc="$gmp_cflags_gcc -Wa,-xarch=v8plus"
1227: gmp_xoptcflags_gcc="-mcpu=v9 -mcpu=v8 -mv8"
1228: gmp_cflags64_gcc="$gmp_cflags64_gcc -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9"
1229: gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4"
1230: gmp_cflags64_cc="-xtarget=native -xarch=v9 -xO4"
1231: ;;
1232: sparc64-*-linux*)
1.1.1.3 ! maekawa 1233: # Need to think more about the options passed here. This isn't good for
! 1234: # some sparc64 linux distros, since we end up not optimizing when all the
! 1235: # options below fail.
1.1.1.2 maekawa 1236: os_64bit=yes
1237: gmp_cflags64_gcc="$gmp_cflags64_gcc -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9"
1238: gmp_cflags_gcc="$gmp_cflags_gcc -m32"
1239: gmp_xoptflags_gcc="-mcpu=ultrasparc -mvis"
1240: ;;
1241: ultrasparc*-*-* | sparcv9-*-*)
1242: gmp_cflags_gcc="$gmp_cflags_gcc -Wa,-xarch=v8plus"
1243: gmp_xoptcflags_gcc="-mcpu=v9 -mcpu=v8 -mv8"
1244: gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4"
1245: ;;
1246: sparcv8*-*-solaris2.* | microsparc*-*-solaris2.*)
1247: gmp_cflags_gcc="$gmp_cflags_gcc"
1248: gmp_xoptcflags_gcc="-mcpu=v8 -mv8"
1249: gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4"
1250: ;;
1251: sparcv8*-*-* | microsparc*-*-*) # SunOS, Linux, *BSD
1252: cclist="gcc acc cc"
1253: gmp_cflags_gcc="$gmp_cflags_gcc"
1254: gmp_xoptcflags_gcc="-mcpu=v8 -mv8"
1255: gmp_cflags_acc="-g -O2 -cg92"
1256: gmp_cflags_cc="-O2" # FIXME: Flag for v8?
1257: ;;
1258: supersparc*-*-solaris2.*)
1259: gmp_cflags_gcc="$gmp_cflags_gcc -DSUPERSPARC"
1260: gmp_xoptcflags_gcc="-mcpu=v8 -mv8"
1261: gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4 -DSUPERSPARC"
1262: ;;
1263: supersparc*-*-*) # SunOS, Linux, *BSD
1264: cclist="gcc acc cc"
1265: gmp_cflags_gcc="$gmp_cflags_gcc -DSUPERSPARC"
1266: gmp_xoptcflags_gcc="-mcpu=v8 -mv8"
1267: gmp_cflags_acc="-g -O2 -cg92 -DSUPERSPARC"
1268: gmp_cflags_cc="-O2 -DSUPERSPARC" # FIXME: Flag for v8?
1269: ;;
1270: *sparc*-*-*)
1271: cclist="gcc acc cc"
1272: gmp_cflags_acc="-g -O2"
1273: gmp_cflags_cc="-g -O2"
1274: ;;
1275:
1276: # POWER/PowerPC
1277: powerpc64-*-aix*)
1278: cclist="gcc xlc"
1279: gmp_cflags_gcc="$gmp_cflags_gcc -maix64 -mpowerpc64"
1280: gmp_cflags_xlc="-g -O2 -q64 -qtune=pwr3"
1281: ;;
1282: powerpc*-*-aix*)
1283: cclist="gcc xlc"
1284: gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc"
1285: gmp_cflags_xlc="$gmp_cflags_cc -qarch=ppc -O2"
1286: ;;
1287: power-*-aix*)
1288: cclist="gcc xlc"
1289: gmp_cflags_gcc="$gmp_cflags_gcc -mpower"
1290: gmp_cflags_xlc="$gmp_cflags_cc -qarch=pwr -O2"
1291: ;;
1292: powerpc64*-*-*)
1293: gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc64"
1294: cat >>confdefs.h <<\EOF
1295: #define _LONG_LONG_LIMB 1
1296: EOF
1297: ;;
1298: powerpc*-*-*)
1299: gmp_cflags_gcc="$gmp_cflags_gcc -mpowerpc"
1300: ;;
1301:
1302: # MIPS
1303: mips-sgi-irix6.*)
1304: os_64bit=yes
1305: gmp_cflags64_gcc="-g -O2 -mabi=n32"
1306: gmp_cflags64_cc="$gmp_cflags64_cc -O2 -n32"
1307: ;;
1308:
1309: # Motorola 68k family
1310: m88110*-*-*)
1311: gmp_cflags_gcc="-g -O -m88110" ;;
1312: m68*-*-*)
1313: gmp_cflags_gcc="$gmp_cflags_gcc -fomit-frame-pointer"
1314: ;;
1315:
1316: # HP
1317: hppa1.0*-*-*)
1318: cclist="gcc c89 cc"
1319: gmp_cflags_c89="$gmp_cflags_cc +O2"
1320: gmp_cflags_cc="$gmp_cflags_cc +O2"
1321: ;;
1322: hppa2.0w*-*-*)
1323: cclist="c89 cc"
1324: gmp_cflags_c89="+DD64 +O3"
1325: gmp_cflags_cc="+DD64 +O3"
1326: ;;
1327: hppa2.0*-*-*)
1328: os_64bit=yes
1329: cclist="gcc c89 cc"
1330: gmp_cflags64_gcc="$gmp_cflags64_gcc -mWHAT -D_LONG_LONG_LIMB"
1331: # +O2 to cc triggers bug in mpz/powm.c (1.4)
1332: gmp_cflags64_c89="+DA2.0 +e +O3 -D_LONG_LONG_LIMB"
1333: gmp_cflags64_cc="+DA2.0 +e +O3 -D_LONG_LONG_LIMB"
1334: gmp_cflags_c89="$gmp_cflags_cc +O2"
1335: gmp_cflags_cc="$gmp_cflags_cc +O2"
1336: ;;
1337:
1338: # VAX
1339: vax*-*-*)
1340: gmp_cflags_gcc="$gmp_cflags_gcc -fomit-frame-pointer"
1341: ;;
1342:
1343: # Fujitsu
1344: f30[01]-fujitsu-sysv*)
1345: cclist="gcc vcc"
1346: gmp_cflags_vcc="-g" # FIXME: flags for vcc?
1347: ;;
1348: esac
1349:
1350: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1351: echo "configure:1352: checking for BSD-compatible nm" 1>&5
1.1.1.2 maekawa 1352: if test "${ac_cv_path_NM+set}" = set; then
1353: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1354: else
1355: if test -n "$NM"; then
1356: # Let the user override the test.
1357: ac_cv_path_NM="$NM"
1358: else
1359: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1360: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1361: test -z "$ac_dir" && ac_dir=.
1362: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1363: # Check to see if the nm accepts a BSD-compat flag.
1364: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1365: # nm: unknown option "B" ignored
1366: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1367: ac_cv_path_NM="$ac_dir/nm -B"
1368: break
1369: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1370: ac_cv_path_NM="$ac_dir/nm -p"
1371: break
1372: else
1373: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1374: continue # so that we can try to find one that supports BSD flags
1375: fi
1376: fi
1377: done
1378: IFS="$ac_save_ifs"
1379: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1380: fi
1381: fi
1382:
1383: NM="$ac_cv_path_NM"
1384: echo "$ECHO_T""$NM" 1>&6
1385: # nm on 64-bit AIX needs to know the object file format
1386: case "$target" in
1387: powerpc64*-*-aix*)
1388: NM="$NM -X 64"
1389: ;;
1390: esac
1391:
1392: # Save CFLAGS given on command line.
1393: gmp_user_CFLAGS="$CFLAGS"
1394:
1395: if test -z "$CC"; then
1396: # Find compiler.
1397:
1398: if test $host != $build; then
1399: ac_tool_prefix=${host_alias}-
1400: else
1401: ac_tool_prefix=
1402: fi
1403:
1404: gmp_cc_list="$cclist"
1405: gmp_req_64bit_cc="$os_64bit"
1406:
1407: CC32=
1408: CC64=
1409: for c in $gmp_cc_list; do
1410: # Avoid cache hits.
1411: unset CC
1412: unset ac_cv_prog_CC
1413:
1414: # Extract the first word of "${ac_tool_prefix}$c", so it can be a program name with args.
1415: set dummy ${ac_tool_prefix}$c; ac_word=$2
1416: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1417: echo "configure:1418: checking for $ac_word" 1>&5
1.1.1.2 maekawa 1418: if test "${ac_cv_prog_CC+set}" = set; then
1419: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1420: else
1421: if test -n "$CC"; then
1422: ac_cv_prog_CC="$CC" # Let the user override the test.
1423: else
1424: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1425: ac_dummy="$PATH"
1426: for ac_dir in $ac_dummy; do
1427: test -z "$ac_dir" && ac_dir=.
1428: if test -f $ac_dir/$ac_word; then
1429: echo "$ac_dir/$ac_word"
1430: fi
1431: done
1432: IFS="$ac_save_ifs"
1433: `; do
1434: ac_cv_prog_CC="${ac_tool_prefix}$c"
1435: break
1436: done
1437: fi
1438: fi
1439: CC="$ac_cv_prog_CC"
1440: if test -n "$CC"; then
1441: echo "$ECHO_T""$CC" 1>&6
1442: else
1443: echo "$ECHO_T""no" 1>&6
1444: fi
1445:
1446: if test -z "$ac_cv_prog_CC"; then
1447: if test -n "$ac_tool_prefix"; then
1448: # Extract the first word of "$c", so it can be a program name with args.
1449: set dummy $c; ac_word=$2
1450: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1451: echo "configure:1452: checking for $ac_word" 1>&5
1.1.1.2 maekawa 1452: if test "${ac_cv_prog_CC+set}" = set; then
1453: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1454: else
1455: if test -n "$CC"; then
1456: ac_cv_prog_CC="$CC" # Let the user override the test.
1457: else
1458: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1459: ac_dummy="$PATH"
1460: for ac_dir in $ac_dummy; do
1461: test -z "$ac_dir" && ac_dir=.
1462: if test -f $ac_dir/$ac_word; then
1463: echo "$ac_dir/$ac_word"
1464: fi
1465: done
1466: IFS="$ac_save_ifs"
1467: `; do
1468: ac_cv_prog_CC="$c"
1469: break
1470: done
1471: test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="$c"
1472: fi
1473: fi
1474: CC="$ac_cv_prog_CC"
1475: if test -n "$CC"; then
1476: echo "$ECHO_T""$CC" 1>&6
1477: else
1478: echo "$ECHO_T""no" 1>&6
1479: fi
1480:
1481: else
1482: CC="$c"
1483: fi
1484: fi
1485:
1486: if test -n "$CC"; then
1487: eval c_flags=\$gmp_cflags_$c
1488: ac_ext=c
1489: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1490: ac_cpp='$CPP $CPPFLAGS'
1491: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1492: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1493: cross_compiling=$ac_cv_prog_cc_cross
1494: CC="$CC"
1495: CFLAGS="$c_flags"
1496: echo $ECHO_N "checking if the C compiler ($CC) works with flags $CFLAGS... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1497: echo "configure:1498: checking if the C compiler ($CC) works with flags $CFLAGS" 1>&5
1.1.1.2 maekawa 1498:
1499: # Simple test for all targets.
1500: cat >conftest.$ac_ext <<EOF
1501:
1.1.1.3 ! maekawa 1502: #line 1503 "configure"
1.1.1.2 maekawa 1503: #include "confdefs.h"
1504:
1505: int main(){return(0);}
1506: EOF
1.1.1.3 ! maekawa 1507: if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 1508: tmp_works=yes
1509: # If we can't run a trivial program, we are probably using a cross compiler.
1510: if (./conftest; exit) 2>/dev/null; then
1511: tmp_cross=no
1512: else
1513: tmp_cross=yes
1514: fi
1515: else
1516: echo "configure: failed program was:" >&5
1517: cat conftest.$ac_ext >&5
1518: tmp_works=no
1519: fi
1520: rm -fr conftest*
1521:
1522: # Target specific tests.
1523: if test "$tmp_works" = "yes"; then
1524: case "$target" in
1525: *-*-aix*) # Returning a funcptr.
1526: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 1527: #line 1528 "configure"
1.1.1.2 maekawa 1528: #include "confdefs.h"
1529:
1530: int
1531: main ()
1532: {
1533: } void *g(); void *f() { return g(); } int bar(){
1534: ;
1535: return 0;
1536: }
1537: EOF
1.1.1.3 ! maekawa 1538: if { (eval echo configure:1539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 1539: rm -rf conftest*
1540: tmp_works=yes
1541: else
1542: echo "configure: failed program was:" >&5
1543: cat conftest.$ac_ext >&5
1544: rm -rf conftest*
1545: tmp_works=no
1546: fi
1547: rm -f conftest*
1548: ;;
1549: esac
1550: fi
1551:
1552: if test "$tmp_works" = "yes"; then
1553: gmp_prog_cc_works=yes
1554: else
1555: gmp_prog_cc_works=no
1556: fi
1557:
1558: echo "$ECHO_T""$tmp_works" 1>&6
1559:
1560: if test "$gmp_prog_cc_works" != "yes"; then
1561: continue
1562: fi
1563:
1564: # Save first working compiler, whether 32- or 64-bit capable.
1565: if test -z "$CC32"; then
1566: CC32="$CC"
1567: fi
1568: if test "$gmp_req_64bit_cc" = "yes"; then
1569: eval c_flags=\$gmp_cflags64_$c
1570:
1571: # Verify that the compiler works in 64-bit mode as well.
1572: # /usr/ucb/cc on Solaris 7 can *compile* in 64-bit mode, but not link.
1573: ac_ext=c
1574: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1575: ac_cpp='$CPP $CPPFLAGS'
1576: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1577: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1578: cross_compiling=$ac_cv_prog_cc_cross
1579: CC="$c"
1580: CFLAGS="$c_flags"
1581: echo $ECHO_N "checking if the C compiler ($CC) works with flags $CFLAGS... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1582: echo "configure:1583: checking if the C compiler ($CC) works with flags $CFLAGS" 1>&5
1.1.1.2 maekawa 1583:
1584: # Simple test for all targets.
1585: cat >conftest.$ac_ext <<EOF
1586:
1.1.1.3 ! maekawa 1587: #line 1588 "configure"
1.1.1.2 maekawa 1588: #include "confdefs.h"
1589:
1590: int main(){return(0);}
1591: EOF
1.1.1.3 ! maekawa 1592: if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 1593: tmp_works=yes
1594: # If we can't run a trivial program, we are probably using a cross compiler.
1595: if (./conftest; exit) 2>/dev/null; then
1596: tmp_cross=no
1597: else
1598: tmp_cross=yes
1599: fi
1600: else
1601: echo "configure: failed program was:" >&5
1602: cat conftest.$ac_ext >&5
1603: tmp_works=no
1604: fi
1605: rm -fr conftest*
1606:
1607: # Target specific tests.
1608: if test "$tmp_works" = "yes"; then
1609: case "$target" in
1610: *-*-aix*) # Returning a funcptr.
1611: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 1612: #line 1613 "configure"
1.1.1.2 maekawa 1613: #include "confdefs.h"
1614:
1615: int
1616: main ()
1617: {
1618: } void *g(); void *f() { return g(); } int bar(){
1619: ;
1620: return 0;
1621: }
1622: EOF
1.1.1.3 ! maekawa 1623: if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 1624: rm -rf conftest*
1625: tmp_works=yes
1626: else
1627: echo "configure: failed program was:" >&5
1628: cat conftest.$ac_ext >&5
1629: rm -rf conftest*
1630: tmp_works=no
1631: fi
1632: rm -f conftest*
1633: ;;
1634: esac
1635: fi
1636:
1637: if test "$tmp_works" = "yes"; then
1638: gmp_prog_cc_works=yes
1639: else
1640: gmp_prog_cc_works=no
1641: fi
1642:
1643: echo "$ECHO_T""$tmp_works" 1>&6
1644:
1645: if test "$gmp_prog_cc_works" = "yes"; then
1646:
1647: gmp_tmp_CC_save="$CC"
1648: CC="$c"
1649: echo $ECHO_N "checking whether the C compiler ($CC) is 64-bit capable... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1650: echo "configure:1651: checking whether the C compiler ($CC) is 64-bit capable" 1>&5
1.1.1.2 maekawa 1651: if test -z "$NM"; then
1652: echo; echo "configure: GMP_CHECK_CC_64BIT: fatal: need nm"
1653: exit 1
1654: fi
1655: gmp_tmp_CFLAGS_save="$CFLAGS"
1656: CFLAGS="$c_flags"
1657:
1658: case "$target" in
1659: hppa2.0*-*-*)
1660: # FIXME: If gcc is installed under another name than "gcc", we will
1661: # test the wrong thing.
1662: if test "$CC" != "gcc"; then
1663: echo >conftest.c
1664: gmp_tmp_vs=`$CC $CFLAGS -V -c -o conftest.o conftest.c 2>&1 | grep "^ccom:"`
1665: rm conftest*
1666: gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\(.*\)\..*\..* HP C.*/\1/'`
1667: gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
1668: gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
1669: gmp_cv_cc_64bit=no
1670: test -n "$gmp_tmp_v1" && test "$gmp_tmp_v1" -ge "10" \
1671: && test -n "$gmp_tmp_v2" && test "$gmp_tmp_v2" -ge "32" \
1672: && test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge "30" \
1673: && gmp_cv_cc_64bit=yes
1674: else # gcc
1675: # FIXME: Compile a minimal file and determine if the resulting object
1676: # file is an ELF file. If so, gcc can produce 64-bit code.
1677: # Do we have file(1) for target?
1678: gmp_cv_cc_64bit=no
1679: fi
1680: ;;
1681: mips-sgi-irix6.*)
1682: # We use `-n32' to cc and `-mabi=n32' to gcc, resulting in 64-bit
1683: # arithmetic but not 64-bit pointers, so the general test for sizeof
1684: # (void *) is not valid.
1685: # Simply try to compile an empty main. If that succeeds return
1686: # true.
1687: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 1688: #line 1689 "configure"
1.1.1.2 maekawa 1689: #include "confdefs.h"
1690:
1691: int
1692: main ()
1693: {
1694:
1695: ;
1696: return 0;
1697: }
1698: EOF
1.1.1.3 ! maekawa 1699: if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 1700: rm -rf conftest*
1701: gmp_cv_cc_64bit=yes
1702: else
1703: echo "configure: failed program was:" >&5
1704: cat conftest.$ac_ext >&5
1705: rm -rf conftest*
1706: gmp_cv_cc_64bit=no
1707: fi
1708: rm -f conftest*
1709: ;;
1710: *-*-*)
1711: # Allocate an array of size sizeof (void *) and use nm to determine its
1712: # size. We depend on the first declared variable being put at address 0.
1713: cat >conftest.c <<EOF
1714: char arr[sizeof (void *)]={0};
1715: char post=0;
1716: EOF
1717: gmp_compile="$CC $CFLAGS -c conftest.c 1>&5"
1.1.1.3 ! maekawa 1718: if { (eval echo configure:1719: \"$gmp_compile\") 1>&5; (eval $gmp_compile) 2>&5; }; then
1.1.1.2 maekawa 1719: gmp_tmp_val=`$NM conftest.o | grep post | sed -e 's;[[][0-9][]]\(.*\);\1;' \
1720: -e 's;[^1-9]*\([0-9]*\).*;\1;'`
1721: if test "$gmp_tmp_val" = "8"; then
1722: gmp_cv_cc_64bit=yes
1723: else
1724: gmp_cv_cc_64bit=no
1725: fi
1726: else
1727: echo "configure: failed program was:" >&5
1728: cat conftest.$ac_ext >&5
1729: gmp_cv_cc_64bit=no
1730: fi
1731: rm -f conftest*
1732: ;;
1733: esac
1734:
1735: CC="$gmp_tmp_CC_save"
1736: CFLAGS="$gmp_tmp_CFLAGS_save"
1737: echo "$ECHO_T""$gmp_cv_cc_64bit" 1>&6
1738:
1739: if test "$gmp_cv_cc_64bit" = "yes"; then
1740: test -z "$CC64" && CC64="$c"
1741: test -z "$CFLAGS64" && CFLAGS64="$c_flags"
1742: # We have CC64 so we're done.
1743: break
1744: fi
1745: fi
1746: else
1747: # We have CC32, and we don't need a 64-bit compiler so we're done.
1748: break
1749: fi
1750: fi
1751: done
1752: CC="$CC32"
1753:
1754: # If 64-bit OS and we have a 64-bit compiler, use it.
1755: if test -n "$os_64bit" && test -n "$CC64"; then
1756: CC=$CC64
1757: CFLAGS=$CFLAGS64
1758: else
1759: eval CFLAGS=\$gmp_cflags_$CC
1760: fi
1761:
1762: # Try compiler flags that may work with only some compiler versions.
1763: # gmp_optcflags: All or nothing.
1764: eval optcflags=\$gmp_optcflags_$CC
1765: if test -n "$optcflags"; then
1766: CFLAGS_save="$CFLAGS"
1767: CFLAGS="$CFLAGS $optcflags"
1768: echo $ECHO_N "checking whether $CC accepts $optcflags... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1769: echo "configure:1770: checking whether $CC accepts $optcflags" 1>&5
1.1.1.2 maekawa 1770: ac_ext=c
1771: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1772: ac_cpp='$CPP $CPPFLAGS'
1773: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1774: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1775: cross_compiling=$ac_cv_prog_cc_cross
1776:
1777: cat >conftest.$ac_ext <<EOF
1778:
1.1.1.3 ! maekawa 1779: #line 1780 "configure"
1.1.1.2 maekawa 1780: #include "confdefs.h"
1781:
1782: int main(){return(0);}
1783: EOF
1.1.1.3 ! maekawa 1784: if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 1785: optok=yes
1786: # If we can't run a trivial program, we are probably using a cross compiler.
1787: if (./conftest; exit) 2>/dev/null; then
1788: cross=no
1789: else
1790: cross=yes
1791: fi
1792: else
1793: echo "configure: failed program was:" >&5
1794: cat conftest.$ac_ext >&5
1795: optok=no
1796: fi
1797: rm -fr conftest*
1798: if test "$optok" = "yes"; then
1799: echo "$ECHO_T""yes" 1>&6
1800: else
1801: echo "$ECHO_T""no" 1>&6
1802: CFLAGS="$CFLAGS_save"
1803: fi
1804: fi
1805: # gmp_xoptcflags: First is best, one has to work.
1806: eval xoptcflags=\$gmp_xoptcflags_$CC
1807: if test -n "$xoptcflags"; then
1808: gmp_found="no"
1809: for xopt in $xoptcflags; do
1810: CFLAGS_save="$CFLAGS"
1811: CFLAGS="$CFLAGS $xopt"
1812: echo $ECHO_N "checking whether $CC accepts $xopt... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1813: echo "configure:1814: checking whether $CC accepts $xopt" 1>&5
1.1.1.2 maekawa 1814: ac_ext=c
1815: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1816: ac_cpp='$CPP $CPPFLAGS'
1817: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1818: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1819: cross_compiling=$ac_cv_prog_cc_cross
1820:
1821: cat >conftest.$ac_ext <<EOF
1822:
1.1.1.3 ! maekawa 1823: #line 1824 "configure"
1.1.1.2 maekawa 1824: #include "confdefs.h"
1825:
1826: int main(){return(0);}
1827: EOF
1.1.1.3 ! maekawa 1828: if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 1829: optok=yes
1830: # If we can't run a trivial program, we are probably using a cross compiler.
1831: if (./conftest; exit) 2>/dev/null; then
1832: cross=no
1833: else
1834: cross=yes
1835: fi
1836: else
1837: echo "configure: failed program was:" >&5
1838: cat conftest.$ac_ext >&5
1839: optok=no
1840: fi
1841: rm -fr conftest*
1842: if test "$optok" = "yes"; then
1843: echo "$ECHO_T""yes" 1>&6
1844: gmp_found="yes"
1845: break
1846: else
1847: echo "$ECHO_T""no" 1>&6
1848: CFLAGS="$CFLAGS_save"
1849: fi
1850: done
1851: if test "$gmp_found" = "no"; then
1852: echo "$0: fatal: need a compiler that understands one of $xoptcflags"
1853: exit 1
1854: fi
1855: fi
1856: fi
1857:
1858: # Restore CFLAGS given on command line.
1859: # FIXME: We've run through quite some unnecessary code looking for a
1860: # nice compiler and working flags for it, just to spoil that with user
1861: # supplied flags.
1862: test -n "$gmp_user_CFLAGS" && CFLAGS="$gmp_user_CFLAGS"
1863:
1864: # Select chosen compiler.
1865:
1866: echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1867: echo "configure:1868: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
1.1.1.2 maekawa 1868:
1869: ac_ext=c
1870: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1871: ac_cpp='$CPP $CPPFLAGS'
1872: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1873: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1874: cross_compiling=$ac_cv_prog_cc_cross
1875:
1876: cat >conftest.$ac_ext <<EOF
1877:
1.1.1.3 ! maekawa 1878: #line 1879 "configure"
1.1.1.2 maekawa 1879: #include "confdefs.h"
1880:
1881: int main(){return(0);}
1882: EOF
1.1.1.3 ! maekawa 1883: if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 1884: ac_cv_prog_cc_works=yes
1885: # If we can't run a trivial program, we are probably using a cross compiler.
1886: if (./conftest; exit) 2>/dev/null; then
1887: ac_cv_prog_cc_cross=no
1888: else
1889: ac_cv_prog_cc_cross=yes
1890: fi
1891: else
1892: echo "configure: failed program was:" >&5
1893: cat conftest.$ac_ext >&5
1894: ac_cv_prog_cc_works=no
1895: fi
1896: rm -fr conftest*
1897: ac_ext=c
1898: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1899: ac_cpp='$CPP $CPPFLAGS'
1900: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1901: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1902: cross_compiling=$ac_cv_prog_cc_cross
1903:
1904: echo "$ECHO_T""$ac_cv_prog_cc_works" 1>&6
1905: if test $ac_cv_prog_cc_works = no; then
1906: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; }
1907: fi
1908: echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1909: echo "configure:1910: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
1.1.1.2 maekawa 1910: echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6
1911: cross_compiling=$ac_cv_prog_cc_cross
1912:
1913: echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1914: echo "configure:1915: checking whether we are using GNU C" 1>&5
1.1.1.2 maekawa 1915: if test "${ac_cv_prog_gcc+set}" = set; then
1916: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1917: else
1918: cat >conftest.c <<EOF
1919: #ifdef __GNUC__
1920: yes;
1921: #endif
1922: EOF
1.1.1.3 ! maekawa 1923: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1.1.2 maekawa 1924: ac_cv_prog_gcc=yes
1925: else
1926: ac_cv_prog_gcc=no
1927: fi
1928: fi
1929: echo "$ECHO_T""$ac_cv_prog_gcc" 1>&6
1930:
1931: if test "$ac_cv_prog_gcc" = "yes"; then
1932: GCC=yes
1933: else
1934: GCC=
1935: fi
1936:
1937: # Set CFLAGS if not already set.
1938: if test -z "$CFLAGS"; then
1939: CFLAGS="-g"
1940: if test "$GCC" = "yes"; then
1941: CFLAGS="$CFLAGS -O2"
1942: fi
1943: fi
1944:
1945: if test "${ac_cv_prog_CC+set}" = set; then
1946: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1947: else
1948: ac_cv_prog_CC="$CC"
1949: fi
1950:
1951: # How to assemble.
1952: CCAS="$CC -c"
1953:
1954: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 1955: echo "configure:1956: checking how to run the C preprocessor" 1>&5
1.1.1.2 maekawa 1956: # On Suns, sometimes $CPP names a directory.
1957: if test -n "$CPP" && test -d "$CPP"; then
1958: CPP=
1959: fi
1960: if test -z "$CPP"; then
1961: if test "${ac_cv_prog_CPP+set}" = set; then
1962: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1963: else
1964: # This must be in double quotes, not single quotes, because CPP may get
1965: # substituted into the Makefile and "${CC-cc}" will confuse make.
1966: CPP="${CC-cc} -E"
1967: # On the NeXT, cc -E runs the code through the compiler's parser,
1968: # not just through cpp.
1969:
1970: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 1971: #line 1972 "configure"
1.1.1.2 maekawa 1972: #include "confdefs.h"
1973: #include <assert.h>
1974: Syntax Error
1975: EOF
1976: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 1977: { (eval echo configure:1978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 1978: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1979: if test -z "$ac_err"; then
1980: :
1981: else
1982: echo "$ac_err" >&5
1983: echo "configure: failed program was:" >&5
1984: cat conftest.$ac_ext >&5
1985: rm -rf conftest*
1986: CPP="${CC-cc} -E -traditional-cpp"
1987:
1988: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 1989: #line 1990 "configure"
1.1.1.2 maekawa 1990: #include "confdefs.h"
1991: #include <assert.h>
1992: Syntax Error
1993: EOF
1994: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 1995: { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 1996: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997: if test -z "$ac_err"; then
1998: :
1999: else
2000: echo "$ac_err" >&5
2001: echo "configure: failed program was:" >&5
2002: cat conftest.$ac_ext >&5
2003: rm -rf conftest*
2004: CPP="${CC-cc} -nologo -E"
2005:
2006: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 2007: #line 2008 "configure"
1.1.1.2 maekawa 2008: #include "confdefs.h"
2009: #include <assert.h>
2010: Syntax Error
2011: EOF
2012: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 2013: { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 2014: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2015: if test -z "$ac_err"; then
2016: :
2017: else
2018: echo "$ac_err" >&5
2019: echo "configure: failed program was:" >&5
2020: cat conftest.$ac_ext >&5
2021: rm -rf conftest*
2022: CPP=/lib/cpp
2023: fi
2024: rm -f conftest*
2025: fi
2026: rm -f conftest*
2027: fi
2028: rm -f conftest*
2029: ac_cv_prog_CPP="$CPP"
2030: fi
2031: CPP="$ac_cv_prog_CPP"
2032: else
2033: ac_cv_prog_CPP="$CPP"
2034: fi
2035: echo "$ECHO_T""$CPP" 1>&6
2036:
2037: # Find a good install program. We prefer a C program (faster),
2038: # so one script is as good as another. But avoid the broken or
2039: # incompatible versions:
2040: # SysV /etc/install, /usr/sbin/install
2041: # SunOS /usr/etc/install
2042: # IRIX /sbin/install
2043: # AIX /bin/install
2044: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2045: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2046: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2047: # ./install, which can be erroneously created by make from ./install.sh.
2048: echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2049: echo "configure:2050: checking for a BSD compatible install" 1>&5
1.1.1.2 maekawa 2050: if test -z "$INSTALL"; then
2051: if test "${ac_cv_path_install+set}" = set; then
2052: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2053: else
2054: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2055: for ac_dir in $PATH; do
2056: # Account for people who put trailing slashes in PATH elements.
2057: case "$ac_dir/" in
2058: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2059: *)
2060: # OSF1 and SCO ODT 3.0 have their own names for install.
2061: # Don't use installbsd from OSF since it installs stuff as root
2062: # by default.
2063: for ac_prog in ginstall scoinst install; do
2064: if test -f $ac_dir/$ac_prog; then
2065: if test $ac_prog = install &&
2066: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2067: # AIX install. It has an incompatible calling convention.
2068: :
2069: elif test $ac_prog = install &&
2070: grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2071: # program-specific install script used by HP pwplus--don't use.
2072: :
2073: else
2074: ac_cv_path_install="$ac_dir/$ac_prog -c"
2075: break 2
2076: fi
2077: fi
2078: done
2079: ;;
2080: esac
2081: done
2082: IFS="$ac_save_IFS"
2083:
2084: fi
2085: if test "${ac_cv_path_install+set}" = set; then
2086: INSTALL="$ac_cv_path_install"
2087: else
2088: # As a last resort, use the slow shell script. We don't cache a
2089: # path for INSTALL within a source directory, because that will
2090: # break other packages using the cache if that directory is
2091: # removed, or if the path is relative.
2092: INSTALL="$ac_install_sh"
2093: fi
2094: fi
2095: echo "$ECHO_T""$INSTALL" 1>&6
2096:
2097: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2098: # It thinks the first close brace ends the variable substitution.
2099: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2100:
2101: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2102:
2103: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2104:
2105: echo $ECHO_N "checking whether ln -s works... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2106: echo "configure:2107: checking whether ln -s works" 1>&5
1.1.1.2 maekawa 2107: if test "${ac_cv_prog_LN_S+set}" = set; then
2108: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2109: else
2110: rm -f conftestdata
2111: if ln -s X conftestdata 2>/dev/null
2112: then
2113: rm -f conftestdata
2114: ac_cv_prog_LN_S="ln -s"
2115: else
2116: ac_cv_prog_LN_S=ln
2117: fi
2118: fi
2119: LN_S="$ac_cv_prog_LN_S"
2120: if test "$ac_cv_prog_LN_S" = "ln -s"; then
2121: echo "$ECHO_T""yes" 1>&6
2122: else
2123: echo "$ECHO_T""no" 1>&6
2124: fi
2125:
2126: echo $ECHO_N "checking for suitable m4... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2127: echo "configure:2128: checking for suitable m4" 1>&5
1.1.1.2 maekawa 2128: if test "${gmp_cv_prog_m4+set}" = set; then
2129: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2130: else
2131: if test -n "$M4"; then
2132: gmp_cv_prog_m4="$M4"
2133: else
2134: cat >conftest.m4 <<\EOF
2135: define(dollarhash,``$#'')dnl
2136: ifelse(dollarhash(x),1,`define(t1,Y)',
2137: ``bad: $# not supported (SunOS /usr/bin/m4)
2138: '')dnl
2139: ifelse(eval(89),89,`define(t2,Y)',
2140: `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
2141: ')dnl
2142: ifelse(t1`'t2,YY,`good
2143: ')dnl
2144: EOF
2145: echo "trying m4" 1>&5
2146: gmp_tmp_val="`(m4 conftest.m4) 2>&5`"
2147: echo "$gmp_tmp_val" 1>&5
2148: if test "$gmp_tmp_val" = good; then
2149: gmp_cv_prog_m4="m4"
2150: else
2151: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2152: ac_dummy="$PATH:/usr/5bin"
2153: for ac_dir in $ac_dummy; do
2154: test -z "$ac_dir" && ac_dir=.
2155: echo "trying $ac_dir/m4" 1>&5
2156: gmp_tmp_val="`($ac_dir/m4 conftest.m4) 2>&5`"
2157: echo "$gmp_tmp_val" 1>&5
2158: if test "$gmp_tmp_val" = good; then
2159: gmp_cv_prog_m4="$ac_dir/m4"
2160: break
2161: fi
2162: done
2163: IFS="$ac_save_ifs"
2164: if test -z "$gmp_cv_prog_m4"; then
2165: { echo "configure: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." 1>&2; exit 1; }
2166: fi
2167: fi
2168: rm -f conftest.m4
2169: fi
2170: fi
2171: echo "$ECHO_T""$gmp_cv_prog_m4" 1>&6
2172: M4="$gmp_cv_prog_m4"
2173:
2174: # Extract the first word of "ar", so it can be a program name with args.
2175: set dummy ar; ac_word=$2
2176: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2177: echo "configure:2178: checking for $ac_word" 1>&5
1.1.1.2 maekawa 2178: if test "${ac_cv_prog_AR+set}" = set; then
2179: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2180: else
2181: if test -n "$AR"; then
2182: ac_cv_prog_AR="$AR" # Let the user override the test.
2183: else
2184: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185: ac_dummy="$PATH"
2186: for ac_dir in $ac_dummy; do
2187: test -z "$ac_dir" && ac_dir=.
2188: if test -f $ac_dir/$ac_word; then
2189: echo "$ac_dir/$ac_word"
2190: fi
2191: done
2192: IFS="$ac_save_ifs"
2193: `; do
2194: ac_cv_prog_AR="ar"
2195: break
2196: done
2197: fi
2198: fi
2199: AR="$ac_cv_prog_AR"
2200: if test -n "$AR"; then
2201: echo "$ECHO_T""$AR" 1>&6
2202: else
2203: echo "$ECHO_T""no" 1>&6
2204: fi
2205:
2206: # ar on AIX needs to know the object file format
2207: case "$target" in
2208: powerpc64*-*-aix*)
2209: AR="$AR -X 64"
2210: ;;
2211: esac
2212:
2213: if test "$gmp_no_asm_syntax_testing" != "yes"; then
2214: echo $ECHO_N "checking how to switch to text section... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2215: echo "configure:2216: checking how to switch to text section" 1>&5
1.1.1.2 maekawa 2216: if test "${gmp_cv_check_asm_text+set}" = set; then
2217: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2218: else
2219: case "$target" in
2220: *-*-aix*)
2221:
2222: gmp_cv_check_asm_text=".csect .text[PR]"
2223:
2224: ;;
2225: *-*-hpux*) gmp_cv_check_asm_text=".code" ;;
2226: *) gmp_cv_check_asm_text=".text" ;;
2227: esac
2228:
2229: fi
2230: echo "$ECHO_T""$gmp_cv_check_asm_text" 1>&6
2231: echo "define(<TEXT>, <$gmp_cv_check_asm_text>)" >> $gmp_tmpconfigm4
2232:
2233: echo $ECHO_N "checking how to switch to data section... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2234: echo "configure:2235: checking how to switch to data section" 1>&5
1.1.1.2 maekawa 2235: if test "${gmp_cv_check_asm_data+set}" = set; then
2236: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2237: else
2238: case "$target" in
2239: *-*-aix*)
2240:
2241: gmp_cv_check_asm_data=".csect .data[RW]"
2242:
2243: ;;
2244: *) gmp_cv_check_asm_data=".data" ;;
2245: esac
2246:
2247: fi
2248: echo "$ECHO_T""$gmp_cv_check_asm_data" 1>&6
2249: echo "define(<DATA>, <$gmp_cv_check_asm_data>)" >> $gmp_tmpconfigm4
2250:
2251: echo $ECHO_N "checking how to export a symbol... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2252: echo "configure:2253: checking how to export a symbol" 1>&5
1.1.1.2 maekawa 2253: if test "${gmp_cv_check_asm_globl+set}" = set; then
2254: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2255: else
2256: case "$target" in
2257: *-*-hpux*) gmp_cv_check_asm_globl=".export" ;;
2258: *) gmp_cv_check_asm_globl=".globl" ;;
2259: esac
2260:
2261: fi
2262: echo "$ECHO_T""$gmp_cv_check_asm_globl" 1>&6
2263: echo "define(<GLOBL>, <$gmp_cv_check_asm_globl>)" >> $gmp_tmpconfigm4
2264:
2265: echo $ECHO_N "checking what assembly label suffix to use... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2266: echo "configure:2267: checking what assembly label suffix to use" 1>&5
1.1.1.2 maekawa 2267: if test "${gmp_cv_check_asm_label_suffix+set}" = set; then
2268: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2269: else
2270: case "$target" in
2271: *-*-hpux*) gmp_cv_check_asm_label_suffix="" ;;
2272: *) gmp_cv_check_asm_label_suffix=":" ;;
2273: esac
2274:
2275: fi
2276: echo "$ECHO_T""$gmp_cv_check_asm_label_suffix" 1>&6
2277: echo "define(<LABEL_SUFFIX>, <\$1$gmp_cv_check_asm_label_suffix>)" >> $gmp_tmpconfigm4
2278:
2279: echo $ECHO_N "checking how the .type assembly directive should be used... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2280: echo "configure:2281: checking how the .type assembly directive should be used" 1>&5
1.1.1.2 maekawa 2281: if test "${gmp_cv_check_asm_type+set}" = set; then
2282: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2283: else
2284: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
2285: for gmp_tmp_prefix in @ \# %; do
2286: echo " .type sym,${gmp_tmp_prefix}function" > conftest.s
1.1.1.3 ! maekawa 2287: if { (eval echo configure:2288: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2288: gmp_cv_check_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
2289: break
2290: fi
2291: done
2292: if test -z "$gmp_cv_check_asm_type"; then
2293: gmp_cv_check_asm_type="dnl"
2294: fi
2295:
2296: fi
2297: echo "$ECHO_T""$gmp_cv_check_asm_type" 1>&6
2298: echo "define(<TYPE>, <$gmp_cv_check_asm_type>)" >> $gmp_tmpconfigm4
2299:
2300: echo $ECHO_N "checking if the .size assembly directive works... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2301: echo "configure:2302: checking if the .size assembly directive works" 1>&5
1.1.1.2 maekawa 2302: if test "${gmp_cv_check_asm_size+set}" = set; then
2303: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2304: else
2305: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
2306: echo ' .size sym,1' > conftest.s
1.1.1.3 ! maekawa 2307: if { (eval echo configure:2308: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2308: gmp_cv_check_asm_size=".size \$1,\$2"
2309: else
2310: gmp_cv_check_asm_size="dnl"
2311: fi
2312:
2313: fi
2314: echo "$ECHO_T""$gmp_cv_check_asm_size" 1>&6
2315: echo "define(<SIZE>, <$gmp_cv_check_asm_size>)" >> $gmp_tmpconfigm4
2316:
2317: echo $ECHO_N "checking what prefix to use for a local label... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2318: echo "configure:2319: checking what prefix to use for a local label" 1>&5
1.1.1.2 maekawa 2319: if test "${gmp_cv_check_asm_lsym_prefix+set}" = set; then
2320: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2321: else
2322: if test -z "$NM"; then
2323: echo; echo "GMP_CHECK_ASM_LSYM_PREFIX: fatal: need nm"
2324: exit 1
2325: fi
2326: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
2327: gmp_cv_check_asm_lsym_prefix="L"
2328: for gmp_tmp_pre in L .L $ L$; do
2329: cat > conftest.s <<EOF
2330: dummy${gmp_cv_check_asm_label_suffix}
2331: ${gmp_tmp_pre}gurkmacka${gmp_cv_check_asm_label_suffix}
2332: .byte 0
2333: EOF
1.1.1.3 ! maekawa 2334: if { (eval echo configure:2335: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2335: $NM conftest.o >/dev/null 2>&1
2336: gmp_rc=$?
2337: if test "$gmp_rc" != "0"; then
2338: echo "configure: $NM failure, using default"
2339: break
2340: fi
2341: if $NM conftest.o | grep gurkmacka >/dev/null; then true; else
2342: gmp_cv_check_asm_lsym_prefix="$gmp_tmp_pre"
2343: break
2344: fi
2345: else
2346: echo "configure: failed program was:" >&5
2347: cat conftest.s >&5
2348: # Use default.
2349: fi
2350: done
2351: rm -f conftest*
2352:
2353: fi
2354: echo "$ECHO_T""$gmp_cv_check_asm_lsym_prefix" 1>&6
2355: echo "define(<LSYM_PREFIX>, <${gmp_cv_check_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
2356:
2357: echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2358: echo "configure:2359: checking how to [define] a 32-bit word" 1>&5
1.1.1.2 maekawa 2359: if test "${gmp_cv_check_asm_w32+set}" = set; then
2360: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2361: else
2362: if test -z "$NM"; then
2363: echo; echo "configure: GMP_CHECK_ASM_W32: fatal: need nm"
2364: exit 1
2365: fi
2366:
2367: # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
2368: # that it's at 0x0. We'll have to declare another symbol before the
2369: # .long/.word and look at the distance between the two symbols. The
2370: # only problem is that the sed expression(s) barfs (on Solaris, for
2371: # example) for the symbol with value 0. For now, HPUX uses .word.
2372:
2373: case "$target" in
2374: *-*-hpux*)
2375: gmp_cv_check_asm_w32=".word"
2376: ;;
2377: *-*-*)
2378: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
2379: for gmp_tmp_op in .long .word; do
2380: cat > conftest.s <<EOF
2381: $gmp_cv_check_asm_data
2382: $gmp_cv_check_asm_globl foo
2383: $gmp_tmp_op 0
2384: foo${gmp_cv_check_asm_label_suffix}
2385: .byte 0
2386: EOF
1.1.1.3 ! maekawa 2387: if { (eval echo configure:2388: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2388:
2389: gmp_tmp_val=`$NM conftest.o | grep foo | sed -e 's;[[][0-9][]]\(.*\);\1;' \
2390: -e 's;[^1-9]*\([0-9]*\).*;\1;'`
2391: if test "$gmp_tmp_val" = "4"; then
2392: gmp_cv_check_asm_w32="$gmp_tmp_op"
2393: break
2394: fi
2395: fi
2396: done
2397: ;;
2398: esac
2399:
2400: if test -z "$gmp_cv_check_asm_w32"; then
2401: echo; echo "configure: GMP_CHECK_ASM_W32: fatal: do not know how to define a 32-bit word"
2402: exit 1
2403: fi
2404: rm -f conftest*
2405:
2406: fi
2407: echo "$ECHO_T""$gmp_cv_check_asm_w32" 1>&6
2408: echo "define(<W32>, <$gmp_cv_check_asm_w32>)" >> $gmp_tmpconfigm4
2409:
2410: echo $ECHO_N "checking if symbols are prefixed by underscore... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2411: echo "configure:2412: checking if symbols are prefixed by underscore" 1>&5
1.1.1.2 maekawa 2412: if test "${gmp_cv_check_asm_underscore+set}" = set; then
2413: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2414: else
2415: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 2416: #line 2417 "configure"
1.1.1.2 maekawa 2417: #include "confdefs.h"
2418: int underscore_test() {
2419: return; }
2420: EOF
1.1.1.3 ! maekawa 2421: if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 2422: if grep _underscore_test conftest* >/dev/null; then
2423: gmp_cv_check_asm_underscore=yes
2424: else
2425: gmp_cv_check_asm_underscore=no
2426: fi
2427: else
2428: echo "configure: failed program was:" >&5
2429: cat conftest.$ac_ext >&5
2430: fi
2431: rm -f conftest*
2432:
2433: fi
2434: echo "$ECHO_T""$gmp_cv_check_asm_underscore" 1>&6
2435: if test "$gmp_cv_check_asm_underscore" = "yes"; then
2436:
2437: echo 'define(<GSYM_PREFIX>, <_>)' >> $gmp_tmpconfigm4
2438:
2439: underscore=yes
2440: else
2441:
2442: echo 'define(<GSYM_PREFIX>, <>)' >> $gmp_tmpconfigm4
2443:
2444: underscore=no
2445: fi
2446:
2447: echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2448: echo "configure:2449: checking if .align assembly directive is logarithmic" 1>&5
1.1.1.2 maekawa 2449: if test "${gmp_cv_check_asm_align_log+set}" = set; then
2450: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2451: else
2452: if test -z "$NM"; then
2453: echo; echo "configure: GMP_CHECK_ASM_ALIGN_LOG: fatal: need nm"
2454: exit 1
2455: fi
2456: cat > conftest.s <<EOF
2457: $gmp_cv_check_asm_data
2458: .align 4
2459: $gmp_cv_check_asm_globl foo
2460: .byte 1
2461: .align 4
2462: foo$gmp_cv_check_asm_label_suffix
2463: .byte 2
2464: EOF
2465: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
1.1.1.3 ! maekawa 2466: if { (eval echo configure:2467: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2467:
2468: gmp_tmp_val=`$NM conftest.o | grep foo | sed -e 's;[[][0-9][]]\(.*\);\1;' \
2469: -e 's;[^1-9]*\([0-9]*\).*;\1;'`
2470: if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
2471: gmp_cv_check_asm_align_log=yes
2472: else
2473: gmp_cv_check_asm_align_log=no
2474: fi
2475: else
2476: echo "configure: failed program was:" >&5
2477: cat conftest.s >&5
2478: fi
2479: rm -f conftest*
2480:
2481: fi
2482: echo "$ECHO_T""$gmp_cv_check_asm_align_log" 1>&6
2483:
2484: echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_check_asm_align_log>)" >> $gmp_tmpconfigm4
2485:
2486: if test "$gmp_cv_check_asm_align_log" = "yes"; then
2487: asm_align=log
2488: else
2489: asm_align=nolog
2490: fi
2491:
2492: fi
2493:
2494: family=generic
2495:
2496: case ${target} in
2497: arm*-*-*)
2498: path="arm"
2499: ;;
2500: sparcv9*-*-solaris2.[789]* | sparc64*-*-solaris2.[789]* | ultrasparc*-*-solaris2.[789]*)
1.1.1.3 ! maekawa 2501: if test -n "$CC64"
! 2502: then path="sparc64"
! 2503: else path="sparc32/v9 sparc32/v8 sparc32"
1.1.1.2 maekawa 2504: fi
2505: ;;
2506: sparc64-*-linux*)
1.1.1.3 ! maekawa 2507: if test -n "$CC64"
! 2508: then path="sparc64"
! 2509: else path="sparc32/v9 sparc32/v8 sparc32"
! 2510: fi
1.1.1.2 maekawa 2511: ;;
2512: sparcv8*-*-* | microsparc*-*-*)
2513: path="sparc32/v8 sparc32"
2514: if test x${floating_point} = xno
2515: then extra_functions="udiv_nfp"
2516: else extra_functions="udiv_fp"
2517: fi
2518: ;;
2519: sparcv9*-*-* | ultrasparc*-*-*)
2520: path="sparc32/v9 sparc32/v8 sparc32"
2521: extra_functions="udiv_fp"
2522: ;;
2523: supersparc*-*-*)
2524: path="sparc32/v8/supersparc sparc32/v8 sparc32"
2525: extra_functions="udiv"
2526: ;;
2527: sparc*-*-*) path="sparc32"
2528: if test x${floating_point} = xno
2529: then extra_functions="udiv_nfp"
2530: else extra_functions="udiv_fp"
2531: fi
2532: ;;
2533: hppa7000*-*-*)
2534: path="hppa/hppa1_1 hppa"
2535: extra_functions="udiv_qrnnd"
2536: ;;
2537: hppa1.0*-*-*)
2538: path="hppa"
2539: extra_functions="udiv_qrnnd"
2540: ;;
2541: hppa2.0w-*-*)
2542: path="pa64w"
2543: extra_functions="umul_ppmm udiv_qrnnd"
2544: ;;
2545: hppa2.0*-*-*)
2546: if test -n "$CC64"; then
2547: path="pa64"
2548: extra_functions="umul_ppmm udiv_qrnnd"
2549: # We need to use the system compiler, or actually the system assembler,
2550: # since GAS has not been ported to understand the 2.0 instructions.
2551: CCAS="$CC64 -c"
2552: else
2553: # FIXME: path should be "hppa/hppa2_0 hppa/hppa1_1 hppa"
2554: path="hppa/hppa1_1 hppa"
2555: extra_functions="udiv_qrnnd"
2556: fi
2557: ;;
2558: hppa*-*-*) #assume pa7100
2559: path="hppa/hppa1_1/pa7100 hppa/hppa1_1 hppa"
2560: extra_functions="udiv_qrnnd";;
2561: f30[01]-fujitsu-sysv*)
2562: path=fujitsu;;
2563: alphaev6*-*-*) path="alpha/ev6 alpha"; extra_functions="invert_limb cntlz";;
2564: alphaev5*-*-*) path="alpha/ev5 alpha"; extra_functions="invert_limb cntlz";;
2565: alpha*-*-*) path="alpha"; extra_functions="invert_limb cntlz";;
2566: # Cray vector machines. This must come after alpha* so that we can
2567: # recognize present and future vector processors with a wildcard.
2568: *-cray-unicos*)
2569: path="cray"
2570: extra_functions="mulww";;
2571: am29000*-*-*) path="a29k";;
2572: a29k*-*-*) path="a29k";;
2573:
2574: # AMD and Intel x86 configurations
2575:
2576: i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*)
2577: gmp_m4postinc="x86/x86-defs.m4"
2578: extra_functions="udiv umul"
2579: CALLING_CONVENTIONS_OBJS="x86call.o x86check.o"
2580:
2581: echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2582: echo "configure:2583: checking if the assembler takes cl with shldl" 1>&5
1.1.1.2 maekawa 2583: if test "${gmp_cv_check_asm_shldl_cl+set}" = set; then
2584: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2585: else
2586: cat > conftest.s <<EOF
2587: $gmp_cv_check_asm_text
2588: shldl %cl, %eax, %ebx
2589: EOF
2590: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
1.1.1.3 ! maekawa 2591: if { (eval echo configure:2592: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2592: gmp_cv_check_asm_shldl_cl=yes
2593: else
2594: gmp_cv_check_asm_shldl_cl=no
2595: fi
2596: rm -f conftest*
2597:
2598: fi
2599: echo "$ECHO_T""$gmp_cv_check_asm_shldl_cl" 1>&6
2600: if test "$gmp_cv_check_asm_shldl_cl" = "yes"; then
2601:
2602: echo 'define(<WANT_SHLDL_CL>, <1>)' >> $gmp_tmpconfigm4
2603:
2604: else
2605:
2606: echo 'define(<WANT_SHLDL_CL>, <0>)' >> $gmp_tmpconfigm4
2607:
2608: fi
2609:
2610: echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2611: echo "configure:2612: checking if the .align directive accepts an 0x90 fill in .text" 1>&5
1.1.1.2 maekawa 2612: if test "${gmp_cv_check_asm_align_fill_0x90+set}" = set; then
2613: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2614: else
2615:
2616: cat > conftest.s <<EOF
2617: $gmp_cv_check_asm_text
2618: .align 4, 0x90
2619: .byte 0
2620: .align 4, 0x90
2621: EOF
2622: gmp_tmp_val="`$CCAS $CFLAGS conftest.s 2>&1`"
2623: if test $? = 0; then
2624: echo "$gmp_tmp_val" 1>&5
2625: if echo "$gmp_tmp_val" | grep "Warning: Fill parameter ignored for executable section"; then
2626: echo "Supressing this warning by omitting 0x90" 1>&5
2627: gmp_cv_check_asm_align_fill_0x90=no
2628: else
2629: gmp_cv_check_asm_align_fill_0x90=yes
2630: fi
2631: else
2632: echo "Non-zero exit code" 1>&5
2633: echo "$gmp_tmp_val" 1>&5
2634: gmp_cv_check_asm_align_fill_0x90=no
2635: fi
2636: rm -f conftest*
2637:
2638: fi
2639: echo "$ECHO_T""$gmp_cv_check_asm_align_fill_0x90" 1>&6
2640:
2641: echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_check_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
2642:
2643: # the CPUs below wanting to know about mmx
2644: case ${target} in
2645: pentiummmx-*-* | pentium[23]-*-* | k6*-*-* | athlon-*-*)
2646:
2647: echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2648: echo "configure:2649: checking if the assembler knows about MMX instructions" 1>&5
1.1.1.2 maekawa 2649: if test "${gmp_cv_check_asm_mmx+set}" = set; then
2650: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2651: else
2652: cat > conftest.s <<EOF
2653: $gmp_cv_check_asm_text
2654: por %mm0, %mm0
2655: EOF
2656: ac_assemble="$CCAS $CFLAGS conftest.s 1>&5"
1.1.1.3 ! maekawa 2657: if { (eval echo configure:2658: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then
1.1.1.2 maekawa 2658: gmp_cv_check_asm_mmx=yes
2659: else
2660: gmp_cv_check_asm_mmx=no
2661: fi
2662: rm -f conftest*
2663:
2664: fi
2665: echo "$ECHO_T""$gmp_cv_check_asm_mmx" 1>&6
2666: if test "$gmp_cv_check_asm_mmx" = "yes"; then
2667: tmp_mmx=yes
2668: else
2669: echo "configure: warning: +----------------------------------------------------------" 1>&2
2670: echo "configure: warning: | WARNING WARNING WARNING" 1>&2
2671: echo "configure: warning: | Target CPU has MMX code, but it can't be assembled by" 1>&2
2672: echo "configure: warning: | $CCAS $CFLAGS" 1>&2
2673: echo "configure: warning: | Non-MMX replacements will be used." 1>&2
2674: echo "configure: warning: | This will be an inferior build." 1>&2
2675: echo "configure: warning: +----------------------------------------------------------" 1>&2
2676: tmp_mmx=no
2677: fi
2678:
2679: ;;
2680: esac
2681:
2682: # default for anything not otherwise mentioned
2683: path="x86"
2684:
2685: case ${target} in
2686: i[34]86*-*-*)
2687: path="x86"
2688: ;;
2689: k5*-*-*)
2690: # don't know what best suits k5
2691: path="x86"
2692: ;;
2693: i586*-*-* | pentium-*-*)
2694: path="x86/pentium x86"
2695: ;;
2696: pentiummmx-*-*)
2697: path="x86/pentium x86"
2698: if test "$tmp_mmx" = yes; then
2699: path="x86/pentium/mmx $path"
2700: fi
2701: ;;
2702: i686*-*-* | pentiumpro-*-*)
2703: path="x86/p6 x86"
2704: ;;
2705: pentium2-*-*)
2706: path="x86/p6 x86"
2707: # The pentium/mmx lshift and rshift are good on p6 and can be used
2708: # until there's something specific for p6.
2709: if test "$tmp_mmx" = yes; then
2710: path="x86/p6/mmx x86/pentium/mmx $path"
2711: fi
2712: ;;
2713: pentium3-*-*)
2714: path="x86/p6 x86"
2715: # The pentium/mmx lshift and rshift are good on p6 and can be used
2716: # until there's something specific for p6.
2717: if test "$tmp_mmx" = yes; then
2718: path="x86/p6/p3mmx x86/p6/mmx x86/pentium/mmx $path"
2719: fi
2720: ;;
2721: k6[23]*-*-*)
2722: path="x86/k6 x86"
2723: if test "$tmp_mmx" = yes; then
2724: path="x86/k6/k62mmx x86/k6/mmx $path"
2725: fi
2726: ;;
2727: k6*-*-*)
2728: path="x86/k6 x86"
2729: if test "$tmp_mmx" = yes; then
2730: path="x86/k6/mmx $path"
2731: fi
2732: ;;
2733: athlon-*-*)
2734: path="x86/k7 x86"
2735: if test "$tmp_mmx" = yes; then
2736: path="x86/k7/mmx $path"
2737: fi
2738: ;;
2739: esac
2740: ;;
2741:
2742: i960*-*-*) path="i960";;
2743:
2744: ia64*-*-*) path="ia64";;
2745:
2746: # Motorola 68k configurations. Let m68k mean 68020-68040.
2747: m680[234]0*-*-* | m68k*-*-* | \
2748: m68*-next-nextstep*) # Nexts are at least '020
2749: path="m68k/mc68020 m68k"
2750: family=m68k
2751: ;;
2752: m68000*-*-*)
2753: path="m68k"
2754: family=m68k
2755: ;;
2756:
2757: m88k*-*-* | m88k*-*-*) path="m88k";;
2758: m88110*-*-*) path="m88k/mc88110 m88k";;
2759: ns32k*-*-*) path="ns32k";;
2760:
2761: pyramid-*-*) path="pyr";;
2762:
2763: ppc601-*-*) path="power powerpc32";;
2764: powerpc64*-*-*) path="powerpc64";;
2765: powerpc*-*-*) path="powerpc32";;
2766: rs6000-*-* | power-*-* | power2-*-*)
2767: path="power"
2768: extra_functions="udiv_w_sdiv"
2769: ;;
2770:
2771: sh-*-*) path="sh";;
2772: sh2-*-*) path="sh/sh2 sh";;
2773:
2774: mips[34]*-*-*) path="mips3";;
2775: mips*-*-irix6*) path="mips3";;
2776: mips*-*-*) path="mips2";;
2777:
2778: vax*-*-*) path="vax"; extra_functions="udiv_w_sdiv";;
2779:
2780: z8000x*-*-*) path="z8000x"; extra_functions="udiv_w_sdiv";;
2781: z8000*-*-*) path="z8000"; extra_functions="udiv_w_sdiv";;
2782:
2783: clipper*-*-*) path="clipper";;
2784: esac
2785:
2786: if test -n "$CALLING_CONVENTIONS_OBJS"; then
2787: cat >>confdefs.h <<\EOF
2788: #define HAVE_CALLING_CONVENTIONS 1
2789: EOF
2790:
2791: fi
2792:
2793: case ${target} in
2794: i[5-8]86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-*)
2795: # rdtsc is in pentium and up, not in i386 and i486
2796: SPEED_CYCLECOUNTER_OBJS=pentium.lo
2797: ;;
2798: alpha*-*-*)
2799: SPEED_CYCLECOUNTER_OBJS=alpha.lo
2800: ;;
2801: sparcv9*-*-* | ultrasparc*-*-* | sparc64*-*-*)
2802: SPEED_CYCLECOUNTER_OBJS=sparcv9.lo
2803: ;;
2804: hppa2*-*-*)
2805: SPEED_CYCLECOUNTER_OBJS=hppa2.lo
2806: ;;
2807: hppa*-*-*)
2808: SPEED_CYCLECOUNTER_OBJS=hppa.lo
2809: ;;
2810: esac
2811:
2812: if test -n "$SPEED_CYCLECOUNTER_OBJS"
2813: then
2814: cat >>confdefs.h <<\EOF
2815: #define HAVE_SPEED_CYCLECOUNTER 1
2816: EOF
2817:
2818: fi
2819:
2820: echo $ECHO_N "checking for Cygwin environment... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2821: echo "configure:2822: checking for Cygwin environment" 1>&5
1.1.1.2 maekawa 2822: if test "${ac_cv_cygwin+set}" = set; then
2823: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2824: else
2825: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 2826: #line 2827 "configure"
1.1.1.2 maekawa 2827: #include "confdefs.h"
2828:
2829: int
2830: main ()
2831: {
2832: #ifndef __CYGWIN__
2833: # define __CYGWIN__ __CYGWIN32__
2834: #endif
2835: return __CYGWIN__;
2836: ;
2837: return 0;
2838: }
2839: EOF
1.1.1.3 ! maekawa 2840: if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 2841: rm -rf conftest*
2842: ac_cv_cygwin=yes
2843: else
2844: echo "configure: failed program was:" >&5
2845: cat conftest.$ac_ext >&5
2846: rm -rf conftest*
2847: ac_cv_cygwin=no
2848: fi
2849: rm -f conftest*
2850: fi
2851: echo "$ECHO_T""$ac_cv_cygwin" 1>&6
2852: CYGWIN=
2853: test "$ac_cv_cygwin" = yes && CYGWIN=yes
2854: echo $ECHO_N "checking for mingw32 environment... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2855: echo "configure:2856: checking for mingw32 environment" 1>&5
1.1.1.2 maekawa 2856: if test "${ac_cv_mingw32+set}" = set; then
2857: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2858: else
2859: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 2860: #line 2861 "configure"
1.1.1.2 maekawa 2861: #include "confdefs.h"
2862:
2863: int
2864: main ()
2865: {
2866: return __MINGW32__;
2867: ;
2868: return 0;
2869: }
2870: EOF
1.1.1.3 ! maekawa 2871: if { (eval echo configure:2872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 2872: rm -rf conftest*
2873: ac_cv_mingw32=yes
2874: else
2875: echo "configure: failed program was:" >&5
2876: cat conftest.$ac_ext >&5
2877: rm -rf conftest*
2878: ac_cv_mingw32=no
2879: fi
2880: rm -f conftest*
2881: fi
2882: echo "$ECHO_T""$ac_cv_mingw32" 1>&6
2883: MINGW32=
2884: test "$ac_cv_mingw32" = yes && MINGW32=yes
2885: echo $ECHO_N "checking for EMX OS/2 environment... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2886: echo "configure:2887: checking for EMX OS/2 environment" 1>&5
1.1.1.2 maekawa 2887: if test "${ac_cv_emxos2+set}" = set; then
2888: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2889: else
2890: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 2891: #line 2892 "configure"
1.1.1.2 maekawa 2892: #include "confdefs.h"
2893:
2894: int
2895: main ()
2896: {
2897: return __EMX__;
2898: ;
2899: return 0;
2900: }
2901: EOF
1.1.1.3 ! maekawa 2902: if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 2903: rm -rf conftest*
2904: ac_cv_emxos2=yes
2905: else
2906: echo "configure: failed program was:" >&5
2907: cat conftest.$ac_ext >&5
2908: rm -rf conftest*
2909: ac_cv_emxos2=no
2910: fi
2911: rm -f conftest*
2912: fi
2913: echo "$ECHO_T""$ac_cv_emxos2" 1>&6
2914: EMXOS2=
2915: test "$ac_cv_emxos2" = yes && EMXOS2=yes
2916:
2917: echo $ECHO_N "checking for executable suffix... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2918: echo "configure:2919: checking for executable suffix" 1>&5
1.1.1.2 maekawa 2919: if test "${ac_cv_exeext+set}" = set; then
2920: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2921: else
2922: if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
2923: ac_cv_exeext=.exe
2924: else
2925: rm -f conftest*
2926: echo 'int main () { return 0; }' >conftest.$ac_ext
2927: ac_cv_exeext=
1.1.1.3 ! maekawa 2928: if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1.1.2 maekawa 2929: for ac_file in conftest.*; do
2930: case $ac_file in
2931: *.c | *.C | *.o | *.obj | *.xcoff) ;;
2932: *) ac_cv_exeext=`echo $ac_file | sed -e s/conftest//` ;;
2933: esac
2934: done
2935: else
2936: { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2937: fi
2938: rm -f conftest*
2939: test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2940: fi
2941: fi
2942:
2943: EXEEXT=""
2944: test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2945: echo "$ECHO_T""${ac_cv_exeext}" 1>&6
2946: ac_exeext=$EXEEXT
2947:
2948: echo $ECHO_N "checking for object suffix... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 2949: echo "configure:2950: checking for object suffix" 1>&5
1.1.1.2 maekawa 2950: if test "${ac_cv_objext+set}" = set; then
2951: echo $ECHO_N "(cached) $ECHO_C" 1>&6
2952: else
2953: rm -f conftest*
2954: echo 'int i = 1;' >conftest.$ac_ext
1.1.1.3 ! maekawa 2955: if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 2956: for ac_file in conftest.*; do
2957: case $ac_file in
2958: *.c) ;;
2959: *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2960: esac
2961: done
2962: else
2963: { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2964: fi
2965: rm -f conftest*
2966: fi
2967:
2968: echo "$ECHO_T""$ac_cv_objext" 1>&6
2969: OBJEXT=$ac_cv_objext
2970: ac_objext=$ac_cv_objext
2971:
2972: case "$target" in
2973: *-*-aix4.[3-9]*) enable_shared=no ;;
2974: esac
2975: # Check whether --enable-shared or --disable-shared was given.
2976: if test "${enable_shared+set}" = set; then
2977: enableval="$enable_shared"
2978: p=${PACKAGE-default}
2979: case "$enableval" in
2980: yes) enable_shared=yes ;;
2981: no) enable_shared=no ;;
2982: *)
2983: enable_shared=no
2984: # Look at the argument we got. We use all the common list separators.
2985: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2986: for pkg in $enableval; do
2987: if test "X$pkg" = "X$p"; then
2988: enable_shared=yes
2989: fi
2990: done
2991: IFS="$ac_save_ifs"
2992: ;;
2993: esac
2994: else
2995: enable_shared=yes
2996: fi
2997: # Check whether --enable-static or --disable-static was given.
2998: if test "${enable_static+set}" = set; then
2999: enableval="$enable_static"
3000: p=${PACKAGE-default}
3001: case "$enableval" in
3002: yes) enable_static=yes ;;
3003: no) enable_static=no ;;
3004: *)
3005: enable_static=no
3006: # Look at the argument we got. We use all the common list separators.
3007: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3008: for pkg in $enableval; do
3009: if test "X$pkg" = "X$p"; then
3010: enable_static=yes
3011: fi
3012: done
3013: IFS="$ac_save_ifs"
3014: ;;
3015: esac
3016: else
3017: enable_static=yes
3018: fi
3019: # Check whether --enable-fast-install or --disable-fast-install was given.
3020: if test "${enable_fast_install+set}" = set; then
3021: enableval="$enable_fast_install"
3022: p=${PACKAGE-default}
3023: case "$enableval" in
3024: yes) enable_fast_install=yes ;;
3025: no) enable_fast_install=no ;;
3026: *)
3027: enable_fast_install=no
3028: # Look at the argument we got. We use all the common list separators.
3029: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3030: for pkg in $enableval; do
3031: if test "X$pkg" = "X$p"; then
3032: enable_fast_install=yes
3033: fi
3034: done
3035: IFS="$ac_save_ifs"
3036: ;;
3037: esac
3038: else
3039: enable_fast_install=yes
3040: fi
3041:
3042: echo $ECHO_N "checking build system type... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3043: echo "configure:3044: checking build system type" 1>&5
1.1.1.2 maekawa 3044: if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
3045:
3046: # Make sure we can run config.sub.
3047: if $ac_config_sub sun4 >/dev/null 2>&1; then :; else
3048: { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
3049: fi
3050:
3051: ac_cv_build_alias=$build
3052: case "$ac_cv_build_alias" in
3053: NONE)
3054: case $nonopt in
3055: NONE)
3056: ac_cv_build_alias=$host_alias ;;
3057: *) ac_cv_build_alias=$nonopt ;;
3058: esac ;;
3059: esac
3060:
3061: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
3062: ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3063: ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3064: ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3065: else
3066: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3067: fi
3068:
3069: echo "$ECHO_T""$ac_cv_build" 1>&6
3070:
3071: build=$ac_cv_build
3072: build_alias=$ac_cv_build_alias
3073: build_cpu=$ac_cv_build_cpu
3074: build_vendor=$ac_cv_build_vendor
3075: build_os=$ac_cv_build_os
3076:
3077: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3078: if test "${with_gnu_ld+set}" = set; then
3079: withval="$with_gnu_ld"
3080: test "$withval" = no || with_gnu_ld=yes
3081: else
3082: with_gnu_ld=no
3083: fi
3084:
3085: ac_prog=ld
3086: if test "$ac_cv_prog_gcc" = yes; then
3087: # Check if gcc -print-prog-name=ld gives a path.
3088: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3089: echo "configure:3090: checking for ld used by GCC" 1>&5
1.1.1.2 maekawa 3090: case $lt_target in
3091: *-*-mingw*)
3092: # gcc leaves a trailing carriage return which upsets mingw
3093: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3094: *)
3095: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3096: esac
3097: case "$ac_prog" in
3098: # Accept absolute paths.
3099: [\\/]* | [A-Za-z]:[\\/]*)
3100: re_direlt='/[^/][^/]*/\.\./'
3101: # Canonicalize the path of ld
3102: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3103: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3104: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3105: done
3106: test -z "$LD" && LD="$ac_prog"
3107: ;;
3108: "")
3109: # If it fails, then pretend we aren't using GCC.
3110: ac_prog=ld
3111: ;;
3112: *)
3113: # If it is relative, then search for the first ld in PATH.
3114: with_gnu_ld=unknown
3115: ;;
3116: esac
3117: elif test "$with_gnu_ld" = yes; then
3118: echo $ECHO_N "checking for GNU ld... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3119: echo "configure:3120: checking for GNU ld" 1>&5
1.1.1.2 maekawa 3120: else
3121: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3122: echo "configure:3123: checking for non-GNU ld" 1>&5
1.1.1.2 maekawa 3123: fi
3124: if test "${ac_cv_path_LD+set}" = set; then
3125: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3126: else
3127: if test -z "$LD"; then
3128: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3129: for ac_dir in $PATH; do
3130: test -z "$ac_dir" && ac_dir=.
3131: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3132: ac_cv_path_LD="$ac_dir/$ac_prog"
3133: # Check to see if the program is GNU ld. I'd rather use --version,
3134: # but apparently some GNU ld's only accept -v.
3135: # Break only if it was the GNU/non-GNU ld that we prefer.
3136: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3137: test "$with_gnu_ld" != no && break
3138: else
3139: test "$with_gnu_ld" != yes && break
3140: fi
3141: fi
3142: done
3143: IFS="$ac_save_ifs"
3144: else
3145: ac_cv_path_LD="$LD" # Let the user override the test with a path.
3146: fi
3147: fi
3148:
3149: LD="$ac_cv_path_LD"
3150: if test -n "$LD"; then
3151: echo "$ECHO_T""$LD" 1>&6
3152: else
3153: echo "$ECHO_T""no" 1>&6
3154: fi
3155: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3156: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3157: echo "configure:3158: checking if the linker ($LD) is GNU ld" 1>&5
1.1.1.2 maekawa 3158: if test "${ac_cv_prog_gnu_ld+set}" = set; then
3159: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3160: else
3161: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3162: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3163: ac_cv_prog_gnu_ld=yes
3164: else
3165: ac_cv_prog_gnu_ld=no
3166: fi
3167: fi
3168: echo "$ECHO_T""$ac_cv_prog_gnu_ld" 1>&6
3169: with_gnu_ld=$ac_cv_prog_gnu_ld
3170:
3171: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3172: echo "configure:3173: checking for $LD option to reload object files" 1>&5
1.1.1.2 maekawa 3173: if test "${lt_cv_ld_reload_flag+set}" = set; then
3174: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3175: else
3176: lt_cv_ld_reload_flag='-r'
3177: fi
3178: echo "$ECHO_T""$lt_cv_ld_reload_flag" 1>&6
3179: reload_flag=$lt_cv_ld_reload_flag
3180: test -n "$reload_flag" && reload_flag=" $reload_flag"
3181:
3182: echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3183: echo "configure:3184: checking how to recognise dependant libraries" 1>&5
1.1.1.2 maekawa 3184: if test "${lt_cv_deplibs_check_method+set}" = set; then
3185: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3186: else
3187: lt_cv_file_magic_cmd='${MAGIC}'
3188: lt_cv_file_magic_test_file=
3189: lt_cv_deplibs_check_method='unknown'
3190: # Need to set the preceding variable on all platforms that support
3191: # interlibrary dependencies.
3192: # 'none' -- dependencies not supported.
3193: # `unknown' -- same as none, but documents that we really don't know.
3194: # 'pass_all' -- all dependencies passed with no checks.
3195: # 'test_compile' -- check by making test program.
3196: # 'file_magic [regex]' -- check by looking for files in library path
3197: # which responds to the $file_magic_cmd with a given egrep regex.
3198: # If you have `file' or equivalent on your system and you're not sure
3199: # whether `pass_all' will *always* work, you probably want this one.
3200:
3201: case "$host_os" in
3202: aix4* | beos*)
3203: lt_cv_deplibs_check_method=pass_all
3204: ;;
3205:
3206: bsdi4*)
3207: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3208: lt_cv_file_magic_test_file=/shlib/libc.so
3209: ;;
3210:
3211: cygwin* | mingw*)
3212: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3213: lt_cv_file_magic_cmd='${OBJDUMP} -f'
3214: ;;
3215:
3216: freebsd*)
3217: case "$version_type" in
3218: freebsd-elf*)
3219: lt_cv_deplibs_check_method=pass_all
3220: ;;
3221: esac
3222: ;;
3223:
3224: gnu*)
3225: lt_cv_deplibs_check_method=pass_all
3226: ;;
3227:
3228: irix5* | irix6*)
3229: case "$host_os" in
3230: irix5*)
3231: # this will be overridden with pass_all, but let us keep it just in case
3232: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3233: ;;
3234: *)
3235: case "$LD" in
3236: *-32|*"-32 ") libmagic=32-bit;;
3237: *-n32|*"-n32 ") libmagic=N32;;
3238: *-64|*"-64 ") libmagic=64-bit;;
3239: *) libmagic=never-match;;
3240: esac
3241: # this will be overridden with pass_all, but let us keep it just in case
3242: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3243: ;;
3244: esac
3245: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3246: lt_cv_deplibs_check_method=pass_all
3247: ;;
3248:
3249: # This must be Linux ELF.
3250: linux-gnu*)
3251: case "$host_cpu" in
3252: alpha* | i*86 | powerpc* | sparc* )
3253: lt_cv_deplibs_check_method=pass_all ;;
3254: *)
3255: # glibc up to 2.1.1 does not perform some relocations on ARM
3256: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3257: esac
3258: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3259: ;;
3260:
3261: osf3* | osf4* | osf5*)
3262: # this will be overridden with pass_all, but let us keep it just in case
3263: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3264: lt_cv_file_magic_test_file=/shlib/libc.so
3265: lt_cv_deplibs_check_method=pass_all
3266: ;;
3267:
3268: sco3.2v5*)
3269: lt_cv_deplibs_check_method=pass_all
3270: ;;
3271:
3272: solaris*)
3273: lt_cv_deplibs_check_method=pass_all
3274: lt_cv_file_magic_test_file=/lib/libc.so
3275: ;;
3276:
3277: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3278: case "$host_vendor" in
3279: ncr)
3280: lt_cv_deplibs_check_method=pass_all
3281: ;;
3282: motorola)
3283: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3284: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3285: ;;
3286: esac
3287: ;;
3288: esac
3289:
3290: fi
3291: echo "$ECHO_T""$lt_cv_deplibs_check_method" 1>&6
3292: file_magic_cmd=$lt_cv_file_magic_cmd
3293: deplibs_check_method=$lt_cv_deplibs_check_method
3294:
3295: if test $host != $build; then
3296: ac_tool_prefix=${host_alias}-
3297: else
3298: ac_tool_prefix=
3299: fi
3300:
3301: # Only perform the check for file, if the check method requires it
3302: case "$deplibs_check_method" in
3303: file_magic*)
3304: if test "$file_magic_cmd" = '${MAGIC}'; then
3305:
3306: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3307: echo "configure:3308: checking for ${ac_tool_prefix}file" 1>&5
1.1.1.2 maekawa 3308: if test "${lt_cv_path_MAGIC+set}" = set; then
3309: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3310: else
3311: case "$MAGIC" in
3312: /*)
3313: lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
3314: ;;
3315: ?:/*)
3316: ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
3317: ;;
3318: *)
3319: ac_save_MAGIC="$MAGIC"
3320: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3321: ac_dummy="/usr/bin:$PATH"
3322: for ac_dir in $ac_dummy; do
3323: test -z "$ac_dir" && ac_dir=.
3324: if test -f $ac_dir/${ac_tool_prefix}file; then
3325: lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
3326: if test -n "$file_magic_test_file"; then
3327: case "$deplibs_check_method" in
3328: "file_magic "*)
3329: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3330: MAGIC="$lt_cv_path_MAGIC"
3331: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3332: egrep "$file_magic_regex" > /dev/null; then
3333: :
3334: else
3335: cat <<EOF 1>&2
3336:
3337: *** Warning: the command libtool uses to detect shared libraries,
3338: *** $file_magic_cmd, produces output that libtool cannot recognize.
3339: *** The result is that libtool may fail to recognize shared libraries
3340: *** as such. This will affect the creation of libtool libraries that
3341: *** depend on shared libraries, but programs linked with such libtool
3342: *** libraries will work regardless of this problem. Nevertheless, you
3343: *** may want to report the problem to your system manager and/or to
3344: *** bug-libtool@gnu.org
3345:
3346: EOF
3347: fi ;;
3348: esac
3349: fi
3350: break
3351: fi
3352: done
3353: IFS="$ac_save_ifs"
3354: MAGIC="$ac_save_MAGIC"
3355: ;;
3356: esac
3357: fi
3358:
3359: MAGIC="$lt_cv_path_MAGIC"
3360: if test -n "$MAGIC"; then
3361: echo "$ECHO_T""$MAGIC" 1>&6
3362: else
3363: echo "$ECHO_T""no" 1>&6
3364: fi
3365:
3366: if test -z "$lt_cv_path_MAGIC"; then
3367: if test -n "$ac_tool_prefix"; then
3368: echo $ECHO_N "checking for file... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3369: echo "configure:3370: checking for file" 1>&5
1.1.1.2 maekawa 3370: if test "${lt_cv_path_MAGIC+set}" = set; then
3371: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3372: else
3373: case "$MAGIC" in
3374: /*)
3375: lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
3376: ;;
3377: ?:/*)
3378: ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
3379: ;;
3380: *)
3381: ac_save_MAGIC="$MAGIC"
3382: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3383: ac_dummy="/usr/bin:$PATH"
3384: for ac_dir in $ac_dummy; do
3385: test -z "$ac_dir" && ac_dir=.
3386: if test -f $ac_dir/file; then
3387: lt_cv_path_MAGIC="$ac_dir/file"
3388: if test -n "$file_magic_test_file"; then
3389: case "$deplibs_check_method" in
3390: "file_magic "*)
3391: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3392: MAGIC="$lt_cv_path_MAGIC"
3393: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3394: egrep "$file_magic_regex" > /dev/null; then
3395: :
3396: else
3397: cat <<EOF 1>&2
3398:
3399: *** Warning: the command libtool uses to detect shared libraries,
3400: *** $file_magic_cmd, produces output that libtool cannot recognize.
3401: *** The result is that libtool may fail to recognize shared libraries
3402: *** as such. This will affect the creation of libtool libraries that
3403: *** depend on shared libraries, but programs linked with such libtool
3404: *** libraries will work regardless of this problem. Nevertheless, you
3405: *** may want to report the problem to your system manager and/or to
3406: *** bug-libtool@gnu.org
3407:
3408: EOF
3409: fi ;;
3410: esac
3411: fi
3412: break
3413: fi
3414: done
3415: IFS="$ac_save_ifs"
3416: MAGIC="$ac_save_MAGIC"
3417: ;;
3418: esac
3419: fi
3420:
3421: MAGIC="$lt_cv_path_MAGIC"
3422: if test -n "$MAGIC"; then
3423: echo "$ECHO_T""$MAGIC" 1>&6
3424: else
3425: echo "$ECHO_T""no" 1>&6
3426: fi
3427:
3428: else
3429: MAGIC=:
3430: fi
3431: fi
3432:
3433: fi
3434: ;;
3435: esac
3436:
3437: case "$target" in
3438: NONE) lt_target="$host" ;;
3439: *) lt_target="$target" ;;
3440: esac
3441:
3442: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3443: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3444: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3445: echo "configure:3446: checking for $ac_word" 1>&5
1.1.1.2 maekawa 3446: if test "${ac_cv_prog_RANLIB+set}" = set; then
3447: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3448: else
3449: if test -n "$RANLIB"; then
3450: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3451: else
3452: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3453: ac_dummy="$PATH"
3454: for ac_dir in $ac_dummy; do
3455: test -z "$ac_dir" && ac_dir=.
3456: if test -f $ac_dir/$ac_word; then
3457: echo "$ac_dir/$ac_word"
3458: fi
3459: done
3460: IFS="$ac_save_ifs"
3461: `; do
3462: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3463: break
3464: done
3465: fi
3466: fi
3467: RANLIB="$ac_cv_prog_RANLIB"
3468: if test -n "$RANLIB"; then
3469: echo "$ECHO_T""$RANLIB" 1>&6
3470: else
3471: echo "$ECHO_T""no" 1>&6
3472: fi
3473:
3474: if test -z "$ac_cv_prog_RANLIB"; then
3475: if test -n "$ac_tool_prefix"; then
3476: # Extract the first word of "ranlib", so it can be a program name with args.
3477: set dummy ranlib; ac_word=$2
3478: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3479: echo "configure:3480: checking for $ac_word" 1>&5
1.1.1.2 maekawa 3480: if test "${ac_cv_prog_RANLIB+set}" = set; then
3481: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3482: else
3483: if test -n "$RANLIB"; then
3484: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3485: else
3486: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3487: ac_dummy="$PATH"
3488: for ac_dir in $ac_dummy; do
3489: test -z "$ac_dir" && ac_dir=.
3490: if test -f $ac_dir/$ac_word; then
3491: echo "$ac_dir/$ac_word"
3492: fi
3493: done
3494: IFS="$ac_save_ifs"
3495: `; do
3496: ac_cv_prog_RANLIB="ranlib"
3497: break
3498: done
3499: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3500: fi
3501: fi
3502: RANLIB="$ac_cv_prog_RANLIB"
3503: if test -n "$RANLIB"; then
3504: echo "$ECHO_T""$RANLIB" 1>&6
3505: else
3506: echo "$ECHO_T""no" 1>&6
3507: fi
3508:
3509: else
3510: RANLIB=":"
3511: fi
3512: fi
3513:
3514: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3515: set dummy ${ac_tool_prefix}strip; ac_word=$2
3516: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3517: echo "configure:3518: checking for $ac_word" 1>&5
1.1.1.2 maekawa 3518: if test "${ac_cv_prog_STRIP+set}" = set; then
3519: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3520: else
3521: if test -n "$STRIP"; then
3522: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3523: else
3524: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3525: ac_dummy="$PATH"
3526: for ac_dir in $ac_dummy; do
3527: test -z "$ac_dir" && ac_dir=.
3528: if test -f $ac_dir/$ac_word; then
3529: echo "$ac_dir/$ac_word"
3530: fi
3531: done
3532: IFS="$ac_save_ifs"
3533: `; do
3534: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3535: break
3536: done
3537: fi
3538: fi
3539: STRIP="$ac_cv_prog_STRIP"
3540: if test -n "$STRIP"; then
3541: echo "$ECHO_T""$STRIP" 1>&6
3542: else
3543: echo "$ECHO_T""no" 1>&6
3544: fi
3545:
3546: if test -z "$ac_cv_prog_STRIP"; then
3547: if test -n "$ac_tool_prefix"; then
3548: # Extract the first word of "strip", so it can be a program name with args.
3549: set dummy strip; ac_word=$2
3550: echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3551: echo "configure:3552: checking for $ac_word" 1>&5
1.1.1.2 maekawa 3552: if test "${ac_cv_prog_STRIP+set}" = set; then
3553: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3554: else
3555: if test -n "$STRIP"; then
3556: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3557: else
3558: for ac_path in `IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559: ac_dummy="$PATH"
3560: for ac_dir in $ac_dummy; do
3561: test -z "$ac_dir" && ac_dir=.
3562: if test -f $ac_dir/$ac_word; then
3563: echo "$ac_dir/$ac_word"
3564: fi
3565: done
3566: IFS="$ac_save_ifs"
3567: `; do
3568: ac_cv_prog_STRIP="strip"
3569: break
3570: done
3571: test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3572: fi
3573: fi
3574: STRIP="$ac_cv_prog_STRIP"
3575: if test -n "$STRIP"; then
3576: echo "$ECHO_T""$STRIP" 1>&6
3577: else
3578: echo "$ECHO_T""no" 1>&6
3579: fi
3580:
3581: else
3582: STRIP=":"
3583: fi
3584: fi
3585:
3586: # Check for any special flags to pass to ltconfig.
3587: libtool_flags="--cache-file=$cache_file"
3588: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3589: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3590: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3591: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3592: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3593:
3594: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3595: if test "${enable_libtool_lock+set}" = set; then
3596: enableval="$enable_libtool_lock"
3597:
3598: fi
3599: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3600: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3601:
3602: # Check whether --with-pic or --without-pic was given.
3603: if test "${with_pic+set}" = set; then
3604: withval="$with_pic"
3605: pic_mode="$withval"
3606: else
3607: pic_mode=default
3608: fi
3609: test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3610: test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3611:
3612: # Some flags need to be propagated to the compiler or linker for good
3613: # libtool support.
3614: case "$lt_target" in
3615: *-*-irix6*)
3616: # Find out which ABI we are using.
1.1.1.3 ! maekawa 3617: echo '#line 3618 "configure"' > conftest.$ac_ext
! 3618: if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 3619: case "`/usr/bin/file conftest.o`" in
3620: *32-bit*)
3621: LD="${LD-ld} -32"
3622: ;;
3623: *N32*)
3624: LD="${LD-ld} -n32"
3625: ;;
3626: *64-bit*)
3627: LD="${LD-ld} -64"
3628: ;;
3629: esac
3630: fi
3631: rm -rf conftest*
3632: ;;
3633:
3634: *-*-sco3.2v5*)
3635: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3636: SAVE_CFLAGS="$CFLAGS"
3637: CFLAGS="$CFLAGS -belf"
3638: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3639: echo "configure:3640: checking whether the C compiler needs -belf" 1>&5
1.1.1.2 maekawa 3640: if test "${lt_cv_cc_needs_belf+set}" = set; then
3641: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3642: else
3643:
3644: ac_ext=c
3645: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3646: ac_cpp='$CPP $CPPFLAGS'
3647: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3648: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3649: cross_compiling=$ac_cv_prog_cc_cross
3650:
3651: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3652: #line 3653 "configure"
1.1.1.2 maekawa 3653: #include "confdefs.h"
3654:
3655: int
3656: main()
3657: {
3658:
3659: ;
3660: return 0;
3661: }
3662: EOF
1.1.1.3 ! maekawa 3663: if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 3664: rm -rf conftest*
3665: lt_cv_cc_needs_belf=yes
3666: else
3667: echo "configure: failed program was:" >&5
3668: cat conftest.$ac_ext >&5
3669: rm -rf conftest*
3670: lt_cv_cc_needs_belf=no
3671: fi
3672: rm -f conftest*
3673:
3674: ac_ext=c
3675: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3676: ac_cpp='$CPP $CPPFLAGS'
3677: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3678: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3679: cross_compiling=$ac_cv_prog_cc_cross
3680:
3681: fi
3682: echo "$ECHO_T""$lt_cv_cc_needs_belf" 1>&6
3683: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3684: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3685: CFLAGS="$SAVE_CFLAGS"
3686: fi
3687: ;;
3688:
3689: esac
3690:
3691: # Save cache, so that ltconfig can load it
3692: cat >confcache <<\EOF
3693: # This file is a shell script that caches the results of configure
3694: # tests run on this system so they can be shared between configure
3695: # scripts and configure runs. It is not useful on other systems.
3696: # If it contains results you don't want to keep, you may remove or edit it.
3697: #
3698: # By default, configure uses ./config.cache as the cache file,
3699: # creating it if it does not exist already. You can give configure
3700: # the --cache-file=FILE option to use a different cache file; that is
3701: # what configure does when it calls configure scripts in
3702: # subdirectories, so they share the cache.
3703: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3704: # config.status only pays attention to the cache file if you give it the
3705: # --recheck option to rerun configure.
3706: #
3707: EOF
3708: # The following way of writing the cache mishandles newlines in values,
3709: # but we know of no workaround that is simple, portable, and efficient.
3710: # So, don't put newlines in cache variables' values.
3711: # Ultrix sh set writes to stderr and can't be redirected directly,
3712: # and sets the high bit in the cache file unless we assign to the vars.
3713: (set) 2>&1 |
3714: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3715: *ac_space=\ *)
3716: # `set' does not quote correctly, so add quotes (double-quote substitution
3717: # turns \\\\ into \\, and sed turns \\ into \).
3718: sed -n \
3719: -e "s/'/'\\\\''/g" \
3720: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3721: ;;
3722: *)
3723: # `set' quotes correctly as required by POSIX, so do not add quotes.
3724: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3725: ;;
3726: esac >>confcache
3727: if cmp -s $cache_file confcache; then :; else
3728: if test -w $cache_file; then
3729: echo "updating cache $cache_file"
3730: cat confcache >$cache_file
3731: else
3732: echo "not updating unwritable cache $cache_file"
3733: fi
3734: fi
3735: rm -f confcache
3736:
3737: # Actually configure libtool. ac_aux_dir is where install-sh is found.
3738: AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3739: MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3740: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3741: AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3742: objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3743: deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3744: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3745: $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $lt_target \
3746: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3747:
3748: # Reload cache, that may have been modified by ltconfig
3749: if test -r "$cache_file"; then
3750: echo "loading cache $cache_file"
3751: test -f "$cache_file" && . $cache_file
3752: else
3753: echo "creating cache $cache_file"
3754: >$cache_file
3755: fi
3756:
3757: # This can be used to rebuild libtool when needed
3758: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3759:
3760: # Always use our own libtool.
3761: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3762:
3763: # Redirect the config.log output again, so that the ltconfig log is not
3764: # clobbered by the next message.
3765: exec 5>>./config.log
3766:
3767: echo $ECHO_N "checking whether optarg is declared... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3768: echo "configure:3769: checking whether optarg is declared" 1>&5
1.1.1.2 maekawa 3769: if test "${ac_cv_have_decl_optarg+set}" = set; then
3770: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3771: else
3772: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3773: #line 3774 "configure"
1.1.1.2 maekawa 3774: #include "confdefs.h"
3775: $ac_includes_default
3776: int
3777: main ()
3778: {
3779: #ifndef optarg
3780: char *p = (char *) optarg;
3781: #endif
3782:
3783: ;
3784: return 0;
3785: }
3786: EOF
1.1.1.3 ! maekawa 3787: if { (eval echo configure:3788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 3788: rm -rf conftest*
3789: ac_cv_have_decl_optarg=yes
3790: else
3791: echo "configure: failed program was:" >&5
3792: cat conftest.$ac_ext >&5
3793: rm -rf conftest*
3794: ac_cv_have_decl_optarg=no
3795: fi
3796: rm -f conftest*
3797: fi
3798: echo "$ECHO_T""$ac_cv_have_decl_optarg" 1>&6
3799: if test $ac_cv_have_decl_optarg = yes; then
3800: cat >>confdefs.h <<EOF
3801: #define HAVE_DECL_OPTARG 1
3802: EOF
3803:
3804: else
3805: cat >>confdefs.h <<EOF
3806: #define HAVE_DECL_OPTARG 0
3807: EOF
3808:
3809: fi
3810:
3811: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3812: echo "configure:3813: checking for ANSI C header files" 1>&5
1.1.1.2 maekawa 3813: if test "${ac_cv_header_stdc+set}" = set; then
3814: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3815: else
3816:
3817: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3818: #line 3819 "configure"
1.1.1.2 maekawa 3819: #include "confdefs.h"
3820: #include <stdlib.h>
3821: #include <stdarg.h>
3822: #include <string.h>
3823: #include <float.h>
3824:
3825: EOF
3826: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 3827: { (eval echo configure:3828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 3828: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3829: if test -z "$ac_err"; then
3830: rm -rf conftest*
3831: ac_cv_header_stdc=yes
3832: else
3833: echo "$ac_err" >&5
3834: echo "configure: failed program was:" >&5
3835: cat conftest.$ac_ext >&5
3836: rm -rf conftest*
3837: ac_cv_header_stdc=no
3838: fi
3839: rm -f conftest*
3840:
3841: if test $ac_cv_header_stdc = yes; then
3842: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3843:
3844: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3845: #line 3846 "configure"
1.1.1.2 maekawa 3846: #include "confdefs.h"
3847: #include <string.h>
3848:
3849: EOF
3850: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851: egrep "memchr" >/dev/null 2>&1; then
3852: :
3853: else
3854: rm -rf conftest*
3855: ac_cv_header_stdc=no
3856: fi
3857: rm -f conftest*
3858:
3859: fi
3860:
3861: if test $ac_cv_header_stdc = yes; then
3862: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3863:
3864: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3865: #line 3866 "configure"
1.1.1.2 maekawa 3866: #include "confdefs.h"
3867: #include <stdlib.h>
3868:
3869: EOF
3870: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871: egrep "free" >/dev/null 2>&1; then
3872: :
3873: else
3874: rm -rf conftest*
3875: ac_cv_header_stdc=no
3876: fi
3877: rm -f conftest*
3878:
3879: fi
3880:
3881: if test $ac_cv_header_stdc = yes; then
3882: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3883: if test "$cross_compiling" = yes; then
3884: :
3885: else
3886: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3887: #line 3888 "configure"
1.1.1.2 maekawa 3888: #include "confdefs.h"
3889: #include <ctype.h>
3890: #if ((' ' & 0x0FF) == 0x020)
3891: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3892: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3893: #else
3894: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3895: || ('j' <= (c) && (c) <= 'r') \
3896: || ('s' <= (c) && (c) <= 'z'))
3897: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3898: #endif
3899:
3900: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3901: int
3902: main ()
3903: {
3904: int i;
3905: for (i = 0; i < 256; i++)
3906: if (XOR (islower (i), ISLOWER (i))
3907: || toupper (i) != TOUPPER (i))
3908: exit(2);
3909: exit (0);
3910: }
3911: EOF
1.1.1.3 ! maekawa 3912: if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.2 maekawa 3913: then
3914: :
3915: else
3916: echo "configure: failed program was:" >&5
3917: cat conftest.$ac_ext >&5
3918: rm -fr conftest*
3919: ac_cv_header_stdc=no
3920: fi
3921: rm -fr conftest*
3922:
3923: fi
3924:
3925: fi
3926: fi
3927: echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
3928: if test $ac_cv_header_stdc = yes; then
3929: cat >>confdefs.h <<\EOF
3930: #define STDC_HEADERS 1
3931: EOF
1.1 maekawa 3932:
1.1.1.2 maekawa 3933: fi
1.1 maekawa 3934:
1.1.1.2 maekawa 3935: for ac_header in getopt.h unistd.h sys/sysctl.h sys/time.h
3936: do
3937: ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3938: echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3939: echo "configure:3940: checking for $ac_header" 1>&5
1.1.1.2 maekawa 3940: if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3941: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3942: else
1.1 maekawa 3943:
1.1.1.2 maekawa 3944: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3945: #line 3946 "configure"
1.1.1.2 maekawa 3946: #include "confdefs.h"
3947: #include <$ac_header>
1.1 maekawa 3948:
1.1.1.2 maekawa 3949: EOF
3950: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 3951: { (eval echo configure:3952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 3952: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3953: if test -z "$ac_err"; then
3954: rm -rf conftest*
3955: eval "$ac_ac_Header=yes"
3956: else
3957: echo "$ac_err" >&5
3958: echo "configure: failed program was:" >&5
3959: cat conftest.$ac_ext >&5
3960: rm -rf conftest*
3961: eval "$ac_ac_Header=no"
3962: fi
3963: rm -f conftest*
3964: fi
3965: echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
3966: if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3967: cat >>confdefs.h <<EOF
3968: #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3969: EOF
1.1 maekawa 3970:
1.1.1.2 maekawa 3971: fi
3972: done
1.1 maekawa 3973:
1.1.1.2 maekawa 3974: echo $ECHO_N "checking for void... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 3975: echo "configure:3976: checking for void" 1>&5
1.1.1.2 maekawa 3976: if test "${ac_cv_type_void+set}" = set; then
3977: echo $ECHO_N "(cached) $ECHO_C" 1>&6
3978: else
3979: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 3980: #line 3981 "configure"
1.1.1.2 maekawa 3981: #include "confdefs.h"
3982: $ac_includes_default
3983: int
3984: main ()
3985: {
3986: if ((void *) 0)
3987: return 0;
3988: if (sizeof (void))
3989: return 0;
3990: ;
3991: return 0;
3992: }
3993: EOF
1.1.1.3 ! maekawa 3994: if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 3995: rm -rf conftest*
3996: ac_cv_type_void=yes
3997: else
3998: echo "configure: failed program was:" >&5
3999: cat conftest.$ac_ext >&5
4000: rm -rf conftest*
4001: ac_cv_type_void=no
4002: fi
4003: rm -f conftest*
4004: fi
4005: echo "$ECHO_T""$ac_cv_type_void" 1>&6
4006: if test $ac_cv_type_void = yes; then
4007: cat >>confdefs.h <<EOF
4008: #define HAVE_VOID 1
4009: EOF
1.1 maekawa 4010:
1.1.1.2 maekawa 4011: fi
1.1 maekawa 4012:
1.1.1.2 maekawa 4013: echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 4014: echo "configure:4015: checking for preprocessor stringizing operator" 1>&5
1.1.1.2 maekawa 4015: if test "${ac_cv_c_stringize+set}" = set; then
4016: echo $ECHO_N "(cached) $ECHO_C" 1>&6
4017: else
1.1 maekawa 4018:
1.1.1.2 maekawa 4019: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4020: #line 4021 "configure"
1.1.1.2 maekawa 4021: #include "confdefs.h"
1.1 maekawa 4022:
1.1.1.2 maekawa 4023: #define x(y) #y
1.1 maekawa 4024:
1.1.1.2 maekawa 4025: char *s = x(teststring);
1.1 maekawa 4026:
1.1.1.2 maekawa 4027: EOF
4028: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029: egrep "#teststring" >/dev/null 2>&1; then
4030: rm -rf conftest*
4031: ac_cv_c_stringize=no
4032: else
4033: rm -rf conftest*
4034: ac_cv_c_stringize=yes
4035: fi
4036: rm -f conftest*
1.1 maekawa 4037:
1.1.1.2 maekawa 4038: fi
1.1 maekawa 4039:
1.1.1.2 maekawa 4040: if test "${ac_cv_c_stringize}" = yes; then
4041: cat >>confdefs.h <<\EOF
4042: #define HAVE_STRINGIZE 1
4043: EOF
1.1 maekawa 4044:
1.1.1.2 maekawa 4045: fi
4046: echo "$ECHO_T""${ac_cv_c_stringize}" 1>&6
4047:
4048: for ac_func in getopt_long getpagesize popen processor_info strtoul sysconf sysctlbyname
4049: do
4050: ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4051: echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 4052: echo "configure:4053: checking for $ac_func" 1>&5
1.1.1.2 maekawa 4053: if eval "test \"\${$ac_ac_var+set}\" = set"; then
4054: echo $ECHO_N "(cached) $ECHO_C" 1>&6
4055: else
4056: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4057: #line 4058 "configure"
1.1.1.2 maekawa 4058: #include "confdefs.h"
4059: /* System header to define __stub macros and hopefully few prototypes,
4060: which can conflict with char $ac_func(); below. */
4061: #include <assert.h>
4062: /* Override any gcc2 internal prototype to avoid an error. */
4063: /* We use char because int might match the return type of a gcc2
4064: builtin and then its argument prototype would still apply. */
4065: char $ac_func();
4066: char (*f)();
4067:
4068: int
4069: main()
4070: {
4071:
4072: /* The GNU C library defines this for functions which it implements
4073: to always fail with ENOSYS. Some functions are actually named
4074: something starting with __ and the normal name is an alias. */
4075: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4076: choke me
4077: #else
4078: f = $ac_func;
4079: #endif
4080:
4081: ;
4082: return 0;
4083: }
4084: EOF
1.1.1.3 ! maekawa 4085: if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 4086: rm -rf conftest*
4087: eval "$ac_ac_var=yes"
4088: else
4089: echo "configure: failed program was:" >&5
4090: cat conftest.$ac_ext >&5
4091: rm -rf conftest*
4092: eval "$ac_ac_var=no"
4093: fi
4094: rm -f conftest*
1.1 maekawa 4095:
4096: fi
1.1.1.2 maekawa 4097: echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
4098: if test `eval echo '${'$ac_ac_var'}'` = yes; then
4099: cat >>confdefs.h <<EOF
4100: #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4101: EOF
1.1 maekawa 4102:
1.1.1.2 maekawa 4103: fi
4104: done
1.1 maekawa 4105:
1.1.1.2 maekawa 4106: echo $ECHO_N "checking if ansi2knr should be used... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 4107: echo "configure:4108: checking if ansi2knr should be used" 1>&5
1.1.1.2 maekawa 4108: if test "${gmp_cv_c_ansi2knr+set}" = set; then
4109: echo $ECHO_N "(cached) $ECHO_C" 1>&6
4110: else
4111: cat >conftest.c <<EOF
4112: int main (int argc, char *argv) { return 0; }
4113: EOF
1.1.1.3 ! maekawa 4114: if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.2 maekawa 4115: gmp_cv_c_ansi2knr=no
1.1 maekawa 4116: else
1.1.1.2 maekawa 4117: gmp_cv_c_ansi2knr=yes
4118: fi
4119: rm -f conftest.*
4120:
1.1 maekawa 4121: fi
1.1.1.2 maekawa 4122: echo "$ECHO_T""$gmp_cv_c_ansi2knr" 1>&6
4123: if test $gmp_cv_c_ansi2knr = no; then
4124: U= ANSI2KNR=
4125: else
4126: U=_ ANSI2KNR=./ansi2knr
4127: # Ensure some checks needed by ansi2knr itself.
1.1 maekawa 4128:
1.1.1.2 maekawa 4129: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 4130: echo "configure:4131: checking for ANSI C header files" 1>&5
1.1.1.2 maekawa 4131: if test "${ac_cv_header_stdc+set}" = set; then
4132: echo $ECHO_N "(cached) $ECHO_C" 1>&6
1.1 maekawa 4133: else
1.1.1.2 maekawa 4134:
4135: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4136: #line 4137 "configure"
1.1.1.2 maekawa 4137: #include "confdefs.h"
4138: #include <stdlib.h>
4139: #include <stdarg.h>
4140: #include <string.h>
4141: #include <float.h>
4142:
4143: EOF
4144: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 4145: { (eval echo configure:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 4146: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4147: if test -z "$ac_err"; then
4148: rm -rf conftest*
4149: ac_cv_header_stdc=yes
4150: else
4151: echo "$ac_err" >&5
4152: echo "configure: failed program was:" >&5
4153: cat conftest.$ac_ext >&5
4154: rm -rf conftest*
4155: ac_cv_header_stdc=no
1.1 maekawa 4156: fi
1.1.1.2 maekawa 4157: rm -f conftest*
1.1 maekawa 4158:
1.1.1.2 maekawa 4159: if test $ac_cv_header_stdc = yes; then
4160: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.1 maekawa 4161:
1.1.1.2 maekawa 4162: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4163: #line 4164 "configure"
1.1.1.2 maekawa 4164: #include "confdefs.h"
4165: #include <string.h>
1.1 maekawa 4166:
1.1.1.2 maekawa 4167: EOF
4168: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169: egrep "memchr" >/dev/null 2>&1; then
4170: :
4171: else
4172: rm -rf conftest*
4173: ac_cv_header_stdc=no
4174: fi
4175: rm -f conftest*
1.1 maekawa 4176:
1.1.1.2 maekawa 4177: fi
1.1 maekawa 4178:
1.1.1.2 maekawa 4179: if test $ac_cv_header_stdc = yes; then
4180: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.1 maekawa 4181:
1.1.1.2 maekawa 4182: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4183: #line 4184 "configure"
1.1.1.2 maekawa 4184: #include "confdefs.h"
4185: #include <stdlib.h>
4186:
4187: EOF
4188: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189: egrep "free" >/dev/null 2>&1; then
4190: :
4191: else
4192: rm -rf conftest*
4193: ac_cv_header_stdc=no
4194: fi
4195: rm -f conftest*
1.1 maekawa 4196:
1.1.1.2 maekawa 4197: fi
1.1 maekawa 4198:
1.1.1.2 maekawa 4199: if test $ac_cv_header_stdc = yes; then
4200: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201: if test "$cross_compiling" = yes; then
4202: :
4203: else
4204: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4205: #line 4206 "configure"
1.1.1.2 maekawa 4206: #include "confdefs.h"
4207: #include <ctype.h>
4208: #if ((' ' & 0x0FF) == 0x020)
4209: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211: #else
4212: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4213: || ('j' <= (c) && (c) <= 'r') \
4214: || ('s' <= (c) && (c) <= 'z'))
4215: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4216: #endif
4217:
4218: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4219: int
4220: main ()
4221: {
4222: int i;
4223: for (i = 0; i < 256; i++)
4224: if (XOR (islower (i), ISLOWER (i))
4225: || toupper (i) != TOUPPER (i))
4226: exit(2);
4227: exit (0);
4228: }
4229: EOF
1.1.1.3 ! maekawa 4230: if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.2 maekawa 4231: then
4232: :
1.1 maekawa 4233: else
1.1.1.2 maekawa 4234: echo "configure: failed program was:" >&5
4235: cat conftest.$ac_ext >&5
4236: rm -fr conftest*
4237: ac_cv_header_stdc=no
1.1 maekawa 4238: fi
1.1.1.2 maekawa 4239: rm -fr conftest*
1.1 maekawa 4240:
1.1.1.2 maekawa 4241: fi
1.1 maekawa 4242:
1.1.1.2 maekawa 4243: fi
4244: fi
4245: echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
4246: if test $ac_cv_header_stdc = yes; then
4247: cat >>confdefs.h <<\EOF
4248: #define STDC_HEADERS 1
4249: EOF
1.1 maekawa 4250:
1.1.1.2 maekawa 4251: fi
1.1 maekawa 4252:
1.1.1.2 maekawa 4253: for ac_header in string.h
4254: do
4255: ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4256: echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
1.1.1.3 ! maekawa 4257: echo "configure:4258: checking for $ac_header" 1>&5
1.1.1.2 maekawa 4258: if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4259: echo $ECHO_N "(cached) $ECHO_C" 1>&6
4260: else
1.1 maekawa 4261:
1.1.1.2 maekawa 4262: cat >conftest.$ac_ext <<EOF
1.1.1.3 ! maekawa 4263: #line 4264 "configure"
1.1.1.2 maekawa 4264: #include "confdefs.h"
4265: #include <$ac_header>
4266:
4267: EOF
4268: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! maekawa 4269: { (eval echo configure:4270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 4270: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4271: if test -z "$ac_err"; then
4272: rm -rf conftest*
4273: eval "$ac_ac_Header=yes"
1.1 maekawa 4274: else
1.1.1.2 maekawa 4275: echo "$ac_err" >&5
4276: echo "configure: failed program was:" >&5
4277: cat conftest.$ac_ext >&5
4278: rm -rf conftest*
4279: eval "$ac_ac_Header=no"
4280: fi
4281: rm -f conftest*
1.1 maekawa 4282: fi
1.1.1.2 maekawa 4283: echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
4284: if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4285: cat >>confdefs.h <<EOF
4286: #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4287: EOF
1.1 maekawa 4288:
1.1.1.2 maekawa 4289: fi
4290: done
1.1 maekawa 4291:
4292: fi
4293:
1.1.1.2 maekawa 4294: syntax=
4295: # For now, we use the old switch for setting syntax.
4296: # FIXME: Remove when conversion to .asm is completed.
4297: case "${target}" in
4298: m680[234]0*-*-linuxaout* | m68k*-*-linuxaout* | \
4299: m68k-next-nextstep* | \
4300: m68000*-*-*)
4301: syntax=mit
4302: ;;
4303: m680[234]0*-*-linux* | m68k*-*-linux*)
4304: syntax=elf
4305: ;;
4306: m680[234]0*-*-* | m68k*-*-*)
4307: syntax=mit
4308: ;;
4309: esac
1.1 maekawa 4310:
1.1.1.2 maekawa 4311: # Now build an asm-syntax.h file for targets that include that from the
4312: # assembly files.
4313: # FIXME: Remove when conversion to .asm is completed.
4314: case "${family}-${underscore}-${asm_align}-${syntax}" in
4315: m68k-yes-log-mit)
4316: echo '#define MIT_SYNTAX' >asm-syntax.h
4317: cat $srcdir/mpn/underscore.h >>asm-syntax.h
4318: echo '#include "'$srcdir'/mpn/m68k/syntax.h"' >>asm-syntax.h;;
4319: m68k-no-nolog-elf)
4320: echo '#define ELF_SYNTAX' >asm-syntax.h
4321: echo '#define C_SYMBOL_NAME(name) name' >>asm-syntax.h
4322: echo '#include "'$srcdir'/mpn/m68k/syntax.h"' >>asm-syntax.h;;
4323: esac
4324:
4325: # The pattern here tests for an absolute path the same way as
4326: # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
4327:
4328: echo "dnl CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir" >> $gmp_tmpconfigm4
4329:
4330: case "$srcdir" in
4331: [\\/]* | ?:[\\/]* )
4332:
4333: echo "define(<CONFIG_TOP_SRCDIR>,<\`$srcdir'>)" >> $gmp_tmpconfigm4
4334: ;;
4335: *)
4336:
4337: echo "define(<CONFIG_TOP_SRCDIR>,<\`../$srcdir'>)" >> $gmp_tmpconfigm4
4338: ;;
4339: esac
4340:
4341: echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >> $gmp_tmpconfigm4p
4342:
4343: # Must be after asm-defs.m4
4344:
4345: echo "define_not_for_expansion(\`HAVE_TARGET_CPU_$target_cpu')" >> $gmp_tmpconfigm4p
4346:
4347: case "$target" in
4348: alpha*-cray-unicos*)
4349: gmp_m4postinc="alpha/unicos.m4"
4350: ;;
4351: alpha*-*-*)
4352: gmp_m4postinc="alpha/default.m4"
4353: ;;
4354: power*-*-*)
4355: case "$target" in
4356: *-*-mach* | *-*-rhapsody* | *-*-nextstep*)
4357: ;; # these use non-conventional assembly syntax.
4358: powerpc64-*-aix*)
4359: gmp_m4postinc="powerpc32/regmap.m4 powerpc64/aix.m4"
1.1 maekawa 4360: ;;
1.1.1.2 maekawa 4361: *-*-aix*)
4362: gmp_m4postinc="powerpc32/regmap.m4 powerpc32/aix.m4"
4363: ;;
4364: *)
4365: gmp_m4postinc="powerpc32/regmap.m4"
4366: ;;
4367: esac
4368: ;;
1.1 maekawa 4369: esac
4370:
1.1.1.2 maekawa 4371: for tmp_f in $gmp_m4postinc; do
1.1 maekawa 4372:
1.1.1.2 maekawa 4373: echo "include_mpn(\`$tmp_f')" >> $gmp_tmpconfigm4p
1.1 maekawa 4374:
1.1.1.2 maekawa 4375: done
1.1 maekawa 4376:
1.1.1.2 maekawa 4377: # Set up `gmp_links'. It's a list of link:file pairs that configure will
4378: # process to create link -> file.
4379: gmp_links=
4380:
4381: # If the user specified `MPN_PATH', use that instead of the path we've
4382: # come up with.
4383: if test -z "$MPN_PATH"; then
4384: path="$path generic"
4385: else
4386: path="$MPN_PATH"
1.1 maekawa 4387: fi
4388:
1.1.1.2 maekawa 4389: # Pick the correct source files in $path and link them to mpn/.
4390: # $gmp_mpn_functions lists all functions we need.
4391: #
4392: # The rule is to find a file with the function name and a .asm, .S,
4393: # .s, or .c extension. Certain multi-function files with special names
4394: # can provide some functions too. (mpn/Makefile.am passes
4395: # -DOPERATION_<func> to get them to generate the right code.)
4396:
4397: # FIXME: udiv and umul aren't in $gmp_mpn_functions_optional yet since
4398: # there's some versions of those files which should be checked for bit
4399: # rot first. Put them in $extra_functions for each target for now,
4400: # change to standard optionals when all are ready.
4401:
4402: # Note: The following lines defining $gmp_mpn_functions_optional
4403: # and $gmp_mpn_functions are parsed by the "macos/configure"
4404: # Perl script. So if you change the lines in a major way
4405: # make sure to run and examine the output from
4406: #
4407: # % (cd macos; perl configure)
4408:
4409: gmp_mpn_functions_optional="copyi copyd com_n \
4410: and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n"
4411:
4412: gmp_mpn_functions="${extra_functions} inlines add_n sub_n mul_1 addmul_1 \
4413: submul_1 lshift rshift diveby3 divrem divrem_1 divrem_2 \
4414: mod_1 mod_1_rs pre_mod_1 dump \
4415: mul mul_fft mul_n mul_basecase sqr_basecase random \
4416: random2 sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \
4417: bdivmod gcd_1 gcd gcdext tdiv_qr bz_divrem_n sb_divrem_mn jacbase \
4418: $gmp_mpn_functions_optional"
4419:
4420: # the list of all object files used by mpn/Makefile.in and the
4421: # top-level Makefile.in, respectively
4422: mpn_objects=
4423: mpn_objs_in_libgmp="mpn/mp_bases.lo"
4424:
4425: for tmp_fn in ${gmp_mpn_functions} ; do
4426: rm -f mpn/${tmp_fn}.[Ssc] mpn/${tmp_fn}.asm
4427:
4428: # functions that can be provided by multi-function files
4429: tmp_mulfunc=
4430: case $tmp_fn in
4431: add_n|sub_n) tmp_mulfunc="aors_n" ;;
4432: addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
4433: popcount|hamdist) tmp_mulfunc="popham" ;;
4434: and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
4435: tmp_mulfunc="logops_n" ;;
4436: esac
4437:
4438: found=no
4439: for tmp_dir in $path; do
4440: for tmp_base in $tmp_fn $tmp_mulfunc; do
4441: for tmp_ext in asm S s c; do
4442: tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
4443: if test -f $tmp_file; then
4444: found=yes
4445:
4446: mpn_objects="$mpn_objects ${tmp_fn}.lo"
4447: mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_fn}.lo"
4448: gmp_links="$gmp_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
4449:
4450: # duplicate AC_DEFINEs are harmless, so it doesn't matter
4451: # that multi-function files get grepped here repeatedly
4452: gmp_ep="`
4453: sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
1.1.1.3 ! maekawa 4454: sed -n 's/^[ ]*PROLOGUE.*(\(.*\))/\1/p' $tmp_file
1.1.1.2 maekawa 4455: `"
4456: for gmp_tmp in $gmp_ep; do
4457: cat >>confdefs.h <<EOF
4458: #define HAVE_NATIVE_${gmp_tmp} 1
4459: EOF
4460:
4461: done
4462:
4463: break
4464: fi
4465: done
4466: if test $found = yes; then break ; fi
4467: done
4468: if test $found = yes; then break ; fi
1.1 maekawa 4469: done
4470:
1.1.1.2 maekawa 4471: if test $found = no; then
4472: for tmp_optional in $gmp_mpn_functions_optional; do
4473: if test $tmp_optional = $tmp_fn; then
4474: found=yes
1.1 maekawa 4475: fi
4476: done
1.1.1.2 maekawa 4477: if test $found = no; then
4478: { echo "configure: error: no version of $tmp_fn found in path: $path" 1>&2; exit 1; }
4479: fi
1.1 maekawa 4480: fi
1.1.1.2 maekawa 4481: done
1.1 maekawa 4482:
1.1.1.2 maekawa 4483: # Create link for gmp-mparam.h.
4484: for tmp_dir in $path ; do
4485: rm -f gmp-mparam.h
4486: if test -f $srcdir/mpn/${tmp_dir}/gmp-mparam.h ; then
4487: gmp_links="$gmp_links gmp-mparam.h:mpn/${tmp_dir}/gmp-mparam.h"
4488:
4489: # Copy any KARATSUBA_SQR_THRESHOLD in gmp-mparam.h to config.m4.
4490: # Some versions of sqr_basecase.asm use this.
4491: tmp_gmp_karatsuba_sqr_threshold="`sed -n 's/^#define KARATSUBA_SQR_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $srcdir/mpn/${tmp_dir}/gmp-mparam.h`"
4492: if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
4493:
4494: echo "define(<KARATSUBA_SQR_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
4495:
4496: fi
4497:
4498: break
1.1 maekawa 4499: fi
1.1.1.2 maekawa 4500: done
1.1 maekawa 4501:
1.1.1.2 maekawa 4502: # Dig out the links from `gmp_links' for inclusion in DISTCLEANFILES.
4503: gmp_srclinks=
4504: for f in $gmp_links; do
4505: gmp_srclinks="$gmp_srclinks `echo $f | sed 's/\(.*\):.*/\1/'`"
4506: done
4507:
4508: echo "creating $gmp_configm4"
4509: echo "dnl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
4510: if test -f $gmp_tmpconfigm4; then
4511: echo "changequote(<,>)dnl" >> $gmp_configm4
4512: echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
4513: cat $gmp_tmpconfigm4 >> $gmp_configm4
4514: echo ">)" >> $gmp_configm4
4515: echo "changequote(\`,')dnl" >> $gmp_configm4
4516: rm $gmp_tmpconfigm4
4517: fi
4518: echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
4519: if test -f $gmp_tmpconfigm4i; then
4520: cat $gmp_tmpconfigm4i >> $gmp_configm4
4521: rm $gmp_tmpconfigm4i
4522: fi
4523: if test -f $gmp_tmpconfigm4p; then
4524: cat $gmp_tmpconfigm4p >> $gmp_configm4
4525: rm $gmp_tmpconfigm4p
4526: fi
4527: echo "')" >> $gmp_configm4
4528: echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
4529:
4530: trap '' 1 2 15
4531: cat >confcache <<\EOF
4532: # This file is a shell script that caches the results of configure
4533: # tests run on this system so they can be shared between configure
4534: # scripts and configure runs. It is not useful on other systems.
4535: # If it contains results you don't want to keep, you may remove or edit it.
4536: #
4537: # By default, configure uses ./config.cache as the cache file,
4538: # creating it if it does not exist already. You can give configure
4539: # the --cache-file=FILE option to use a different cache file; that is
4540: # what configure does when it calls configure scripts in
4541: # subdirectories, so they share the cache.
4542: # Giving --cache-file=/dev/null disables caching, for debugging configure.
4543: # config.status only pays attention to the cache file if you give it the
4544: # --recheck option to rerun configure.
4545: #
4546: EOF
4547: # The following way of writing the cache mishandles newlines in values,
4548: # but we know of no workaround that is simple, portable, and efficient.
4549: # So, don't put newlines in cache variables' values.
4550: # Ultrix sh set writes to stderr and can't be redirected directly,
4551: # and sets the high bit in the cache file unless we assign to the vars.
4552: (set) 2>&1 |
4553: case `(ac_space=' '; set | grep ac_space) 2>&1` in
4554: *ac_space=\ *)
4555: # `set' does not quote correctly, so add quotes (double-quote substitution
4556: # turns \\\\ into \\, and sed turns \\ into \).
4557: sed -n \
4558: -e "s/'/'\\\\''/g" \
4559: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4560: ;;
4561: *)
4562: # `set' quotes correctly as required by POSIX, so do not add quotes.
4563: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4564: ;;
4565: esac >>confcache
4566: if cmp -s $cache_file confcache; then :; else
4567: if test -w $cache_file; then
4568: echo "updating cache $cache_file"
4569: cat confcache >$cache_file
4570: else
4571: echo "not updating unwritable cache $cache_file"
1.1 maekawa 4572: fi
1.1.1.2 maekawa 4573: fi
4574: rm -f confcache
4575:
4576: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1.1 maekawa 4577:
1.1.1.2 maekawa 4578: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4579: # Let make expand exec_prefix.
4580: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4581:
4582: # Any assignment to VPATH causes Sun make to only execute
4583: # the first set of double-colon rules, so remove it if not needed.
4584: # If there is a colon in the path, we need to keep it.
4585: if test "x$srcdir" = x.; then
4586: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1.1 maekawa 4587: fi
4588:
1.1.1.2 maekawa 4589: DEFS=-DHAVE_CONFIG_H
1.1 maekawa 4590:
1.1.1.2 maekawa 4591: : ${CONFIG_STATUS=./config.status}
4592: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4593: echo creating $CONFIG_STATUS
4594: cat >$CONFIG_STATUS <<EOF
4595: #! /bin/sh
4596: # Generated automatically by configure.
4597: # Run this file to recreate the current configuration.
4598: # This directory was configured as follows,
4599: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4600: #
4601: # $0 $ac_configure_args
4602: #
4603: # Compiler output produced by configure, useful for debugging
4604: # configure, is in ./config.log if it exists.
1.1 maekawa 4605:
1.1.1.2 maekawa 4606: # Files that config.status was made for.
4607: config_files="\\
4608: Makefile mpf/Makefile mpz/Makefile mpn/Makefile mpq/Makefile
4609: mpf/tests/Makefile mpz/tests/Makefile mpq/tests/Makefile mpn/tests/Makefile
4610: tests/Makefile tests/rand/Makefile demos/Makefile tune/Makefile
4611: mpbsd/Makefile mpbsd/tests/Makefile mpfr/Makefile mpfr/tests/Makefile"
4612: config_headers="\\
4613: config.h:config.in"
4614: config_links="\\
4615: $gmp_links"
4616: config_commands="\\
4617: default-1"
4618:
4619: ac_cs_usage="\\
4620: \\\`$CONFIG_STATUS' instantiates files from templates according to the
4621: current configuration.
4622:
4623: Usage: $CONFIG_STATUS [OPTIONS] FILE...
4624:
4625: --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions
4626: --version Print the version of Autoconf and exit
4627: --help Display this help and exit
4628: --file=FILE[:TEMPLATE]
4629: Instantiate the configuration file FILE
4630: --header=FILE[:TEMPLATE]
4631: Instantiate the configuration header FILE
4632:
4633: Configuration files:
4634: \$config_files
4635:
4636: Configuration headers:
4637: \$config_headers
4638:
4639: Configuration links:
4640: \$config_links
4641:
4642: Configuration commands:
4643: \$config_commands
4644:
4645: Report bugs to <bug-autoconf@gnu.org>."
4646:
4647: ac_cs_version="\\
4648: $CONFIG_STATUS generated by autoconf version 2.14a.
4649: Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
4650: `echo "$0 $ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`"
4651:
4652: # Root of the tmp file names. Use pid to allow concurrent executions.
4653: ac_cs_root=cs\$\$
4654: ac_given_srcdir=$srcdir
4655: ac_given_INSTALL="$INSTALL"
4656:
4657: # If no file are specified by the user, then we need to provide default
4658: # value. By we need to know if files were specified by the user.
4659: ac_need_defaults=:
4660: while test \$# != 0
4661: do
4662: case "\$1" in
4663: --*=*)
4664: ac_option=\`echo "\$1" | sed -e 's/=.*//'\`
4665: ac_optarg=\`echo "\$1" | sed -e 's/[^=]*=//'\`
4666: shift
4667: set dummy "\$ac_option" "\$ac_optarg" \${1+"\$@"}
4668: shift
4669: ;;
4670: -*);;
4671: *) # This is not an option, so the user has probably given explicit
4672: # arguments.
4673: ac_need_defaults=false;;
4674: esac
4675:
4676: case "\$1" in
4677:
4678: # Handling of the options.
4679: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4680: echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
4681: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4682: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4683: echo "\$ac_cs_version"; exit 0 ;;
4684: --he | --h)
4685: # Conflict between --help and --header
4686: echo "$CONFIG_STATUS: ambiguous option: \$ac_option
4687: Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
4688: -help | --help | --hel )
4689: echo "\$ac_cs_usage"; exit 0 ;;
4690: --file | --fil | --fi | --f )
4691: shift
4692: CONFIG_FILES="\$CONFIG_FILES \$1"
4693: ac_need_defaults=false;;
4694: --header | --heade | --head | --hea )
4695: shift
4696: CONFIG_HEADERS="\$CONFIG_FILES \$1"
4697: ac_need_defaults=false;;
4698:
4699: # Handling of arguments.
4700: 'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;;
4701: 'mpf/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpf/Makefile" ;;
4702: 'mpz/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpz/Makefile" ;;
4703: 'mpn/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpn/Makefile" ;;
4704: 'mpq/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpq/Makefile" ;;
4705: 'mpf/tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpf/tests/Makefile" ;;
4706: 'mpz/tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpz/tests/Makefile" ;;
4707: 'mpq/tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpq/tests/Makefile" ;;
4708: 'mpn/tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpn/tests/Makefile" ;;
4709: 'tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES tests/Makefile" ;;
4710: 'tests/rand/Makefile' ) CONFIG_FILES="\$CONFIG_FILES tests/rand/Makefile" ;;
4711: 'demos/Makefile' ) CONFIG_FILES="\$CONFIG_FILES demos/Makefile" ;;
4712: 'tune/Makefile' ) CONFIG_FILES="\$CONFIG_FILES tune/Makefile" ;;
4713: 'mpbsd/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpbsd/Makefile" ;;
4714: 'mpbsd/tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpbsd/tests/Makefile" ;;
4715: 'mpfr/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpfr/Makefile" ;;
4716: 'mpfr/tests/Makefile' ) CONFIG_FILES="\$CONFIG_FILES mpfr/tests/Makefile" ;;
4717: '$gmp_links' ) CONFIG_LINKS="\$CONFIG_LINKS $gmp_links" ;;
4718: 'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;;
4719: 'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h:config.in" ;;
4720:
4721: # This is an error.
4722: -*) echo "$CONFIG_STATUS: unrecognized option: \$1
4723: Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
4724: *) echo "$CONFIG_STATUS: invalid argument: \$1"; exit 1 ;;
4725: esac
4726: shift
4727: done
4728:
4729: EOF
4730:
4731: cat >>$CONFIG_STATUS <<\EOF
4732: # If the user did not use the arguments to specify the items to instantiate,
4733: # then the envvar interface is used. Set only those that are not.
4734: if $ac_need_defaults; then
4735: : ${CONFIG_FILES=$config_files}
4736: : ${CONFIG_HEADERS=$config_headers}
4737: : ${CONFIG_LINKS=$config_links}
4738: : ${CONFIG_COMMANDS=$config_commands}
1.1 maekawa 4739: fi
4740:
1.1.1.2 maekawa 4741: # Trap to remove the temp files.
4742: trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
1.1 maekawa 4743:
1.1.1.2 maekawa 4744: EOF
1.1 maekawa 4745:
1.1.1.2 maekawa 4746: cat >>$CONFIG_STATUS <<EOF
4747: #
4748: # INIT-COMMANDS section.
4749: #
1.1 maekawa 4750:
1.1.1.2 maekawa 4751: EOF
1.1 maekawa 4752:
1.1.1.2 maekawa 4753: cat >>$CONFIG_STATUS <<EOF
4754:
4755: #
4756: # CONFIG_FILES section.
4757: #
4758:
4759: # No need to generate the scripts if there are no CONFIG_FILES.
4760: # This happens for instance when ./config.status config.h
4761: if test -n "\$CONFIG_FILES"; then
4762: # Protect against being on the right side of a sed subst in config.status.
4763: sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
4764: s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$ac_cs_root.subs <<\\CEOF
4765: s%@exec_prefix@%$exec_prefix%;t t
4766: s%@prefix@%$prefix%;t t
4767: s%@program_transform_name@%$program_transform_name%;t t
4768: s%@bindir@%$bindir%;t t
4769: s%@sbindir@%$sbindir%;t t
4770: s%@libexecdir@%$libexecdir%;t t
4771: s%@datadir@%$datadir%;t t
4772: s%@sysconfdir@%$sysconfdir%;t t
4773: s%@sharedstatedir@%$sharedstatedir%;t t
4774: s%@localstatedir@%$localstatedir%;t t
4775: s%@libdir@%$libdir%;t t
4776: s%@includedir@%$includedir%;t t
4777: s%@oldincludedir@%$oldincludedir%;t t
4778: s%@infodir@%$infodir%;t t
4779: s%@mandir@%$mandir%;t t
4780: s%@SHELL@%$SHELL%;t t
4781: s%@ECHO_C@%$ECHO_C%;t t
4782: s%@ECHO_N@%$ECHO_N%;t t
4783: s%@ECHO_T@%$ECHO_T%;t t
4784: s%@CFLAGS@%$CFLAGS%;t t
4785: s%@CPPFLAGS@%$CPPFLAGS%;t t
4786: s%@CXXFLAGS@%$CXXFLAGS%;t t
4787: s%@FFLAGS@%$FFLAGS%;t t
4788: s%@DEFS@%$DEFS%;t t
4789: s%@LDFLAGS@%$LDFLAGS%;t t
4790: s%@LIBS@%$LIBS%;t t
4791: s%@host@%$host%;t t
4792: s%@host_alias@%$host_alias%;t t
4793: s%@host_cpu@%$host_cpu%;t t
4794: s%@host_vendor@%$host_vendor%;t t
4795: s%@host_os@%$host_os%;t t
4796: s%@target@%$target%;t t
4797: s%@target_alias@%$target_alias%;t t
4798: s%@target_cpu@%$target_cpu%;t t
4799: s%@target_vendor@%$target_vendor%;t t
4800: s%@target_os@%$target_os%;t t
4801: s%@build@%$build%;t t
4802: s%@build_alias@%$build_alias%;t t
4803: s%@build_cpu@%$build_cpu%;t t
4804: s%@build_vendor@%$build_vendor%;t t
4805: s%@build_os@%$build_os%;t t
4806: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
4807: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
4808: s%@INSTALL_DATA@%$INSTALL_DATA%;t t
4809: s%@PACKAGE@%$PACKAGE%;t t
4810: s%@VERSION@%$VERSION%;t t
4811: s%@ACLOCAL@%$ACLOCAL%;t t
4812: s%@AUTOCONF@%$AUTOCONF%;t t
4813: s%@AUTOMAKE@%$AUTOMAKE%;t t
4814: s%@AUTOHEADER@%$AUTOHEADER%;t t
4815: s%@MAKEINFO@%$MAKEINFO%;t t
4816: s%@AMTAR@%$AMTAR%;t t
4817: s%@install_sh@%$install_sh%;t t
4818: s%@AWK@%$AWK%;t t
4819: s%@SET_MAKE@%$SET_MAKE%;t t
4820: s%@AMDEP@%$AMDEP%;t t
4821: s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t
4822: s%@DEPDIR@%$DEPDIR%;t t
4823: s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%;t t
4824: s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%;t t
4825: s%@MAINT@%$MAINT%;t t
4826: s%@WANT_MPBSD_TRUE@%$WANT_MPBSD_TRUE%;t t
4827: s%@WANT_MPBSD_FALSE@%$WANT_MPBSD_FALSE%;t t
4828: s%@WANT_MPFR_TRUE@%$WANT_MPFR_TRUE%;t t
4829: s%@WANT_MPFR_FALSE@%$WANT_MPFR_FALSE%;t t
4830: s%@CC@%$CC%;t t
4831: s%@CCAS@%$CCAS%;t t
4832: s%@CPP@%$CPP%;t t
4833: s%@LN_S@%$LN_S%;t t
4834: s%@M4@%$M4%;t t
4835: s%@AR@%$AR%;t t
4836: s%@CALLING_CONVENTIONS_OBJS@%$CALLING_CONVENTIONS_OBJS%;t t
4837: s%@SPEED_CYCLECOUNTER_OBJS@%$SPEED_CYCLECOUNTER_OBJS%;t t
4838: s%@EXEEXT@%$EXEEXT%;t t
4839: s%@OBJEXT@%$OBJEXT%;t t
4840: s%@RANLIB@%$RANLIB%;t t
4841: s%@STRIP@%$STRIP%;t t
4842: s%@LIBTOOL@%$LIBTOOL%;t t
4843: s%@U@%$U%;t t
4844: s%@ANSI2KNR@%$ANSI2KNR%;t t
4845: s%@mpn_objects@%$mpn_objects%;t t
4846: s%@mpn_objs_in_libgmp@%$mpn_objs_in_libgmp%;t t
4847: s%@gmp_srclinks@%$gmp_srclinks%;t t
4848: CEOF
4849:
4850: EOF
4851:
4852: cat >>$CONFIG_STATUS <<\EOF
4853: # Split the substitutions into bite-sized pieces for seds with
4854: # small command number limits, like on Digital OSF/1 and HP-UX.
4855: ac_max_sed_lines=48
4856: ac_sed_frag=1 # Number of current file.
4857: ac_beg=1 # First line for current file.
4858: ac_end=$ac_max_sed_lines # Line after last line for current file.
4859: ac_more_lines=:
4860: ac_sed_cmds=""
4861: while $ac_more_lines; do
4862: if test $ac_beg -gt 1; then
4863: sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
4864: else
4865: sed "${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
4866: fi
4867: if test ! -s $ac_cs_root.sfrag; then
4868: ac_more_lines=false
4869: rm -f $ac_cs_root.sfrag
4870: else
4871: # The purpose of the label and of the branching condition is to
4872: # speed up the sed processing (if there are no `@' at all, there
4873: # is no need to browse any of the substitutions).
4874: # These are the two extra sed commands mentioned above.
4875: (echo ':t
4876: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) >$ac_cs_root.s$ac_sed_frag
4877: if test -z "$ac_sed_cmds"; then
4878: ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag"
4879: else
4880: ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
4881: fi
4882: ac_sed_frag=`expr $ac_sed_frag + 1`
4883: ac_beg=$ac_end
4884: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 maekawa 4885: fi
1.1.1.2 maekawa 4886: done
4887: if test -z "$ac_sed_cmds"; then
4888: ac_sed_cmds=cat
4889: fi
4890: fi # test -n "$CONFIG_FILES"
1.1 maekawa 4891:
4892: EOF
1.1.1.2 maekawa 4893: cat >>$CONFIG_STATUS <<\EOF
4894: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4895: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4896: case "$ac_file" in
4897: *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
4898: ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
4899: *) ac_file_in="${ac_file}.in" ;;
4900: esac
4901:
4902: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4903:
4904: # Remove last slash and all that follows it. Not all systems have dirname.
4905: ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
4906: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4907: # The file is in a subdirectory.
4908: test ! -d "$ac_dir" && mkdir "$ac_dir"
4909: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4910: # A "../" for each directory in $ac_dir_suffix.
4911: ac_dots=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'`
4912: else
4913: ac_dir_suffix= ac_dots=
4914: fi
1.1 maekawa 4915:
1.1.1.2 maekawa 4916: case "$ac_given_srcdir" in
4917: .) srcdir=.
4918: if test -z "$ac_dots"; then top_srcdir=.
4919: else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
4920: [\\/]* | ?:[\\/]* )
4921: srcdir="$ac_given_srcdir$ac_dir_suffix";
4922: top_srcdir=$ac_given_srcdir ;;
4923: *) # Relative path.
4924: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4925: top_srcdir="$ac_dots$ac_given_srcdir" ;;
4926: esac
4927:
4928: case "$ac_given_INSTALL" in
4929: [\\/$]* | ?:[\\/]* ) INSTALL="$ac_given_INSTALL" ;;
4930: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4931: esac
4932:
4933: echo creating "$ac_file"
4934: rm -f "$ac_file"
4935: configure_input="Generated automatically from `echo $ac_file_in |
4936: sed 's%.*/%%'` by configure."
4937: case "$ac_file" in
4938: *[Mm]akefile*) ac_comsub="1i\\
4939: # $configure_input" ;;
4940: *) ac_comsub= ;;
4941: esac
4942:
4943: # Don't redirect the output to AC_FILE directly: use `mv' so that updating
4944: # is atomic, and doesn't need trapping.
4945: ac_file_inputs=`echo "$ac_file_in" |
4946: sed -e "s%:% $ac_given_srcdir/%g;s%^%$ac_given_srcdir/%"`
4947: for ac_file_input in $ac_file_inputs;
4948: do
4949: test -f "$ac_file_input" ||
4950: { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
4951: done
4952: EOF
4953: cat >>$CONFIG_STATUS <<EOF
4954: sed -e "$ac_comsub
4955: $ac_vpsub
4956: $extrasub
4957: EOF
4958: cat >>$CONFIG_STATUS <<\EOF
4959: :t
4960: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4961: s%@configure_input@%$configure_input%;t t
4962: s%@srcdir@%$srcdir%;t t
4963: s%@top_srcdir@%$top_srcdir%;t t
4964: s%@INSTALL@%$INSTALL%;t t
4965: " $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out
4966: mv $ac_cs_root.out $ac_file
4967:
4968: fi; done
4969: rm -f $ac_cs_root.s*
4970: EOF
4971: cat >>$CONFIG_STATUS <<\EOF
1.1 maekawa 4972:
1.1.1.2 maekawa 4973: #
4974: # CONFIG_HEADER section.
4975: #
1.1 maekawa 4976:
1.1.1.2 maekawa 4977: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4978: # NAME is the cpp macro being defined and VALUE is the value it is being given.
4979: #
4980: # ac_d sets the value in "#define NAME VALUE" lines.
4981: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4982: ac_dB='[ ].*$%\1#\2'
4983: ac_dC=' '
4984: ac_dD='%;t'
4985: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4986: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4987: ac_uB='$%\1#\2define\3'
4988: ac_uC=' '
4989: ac_uD='%;t'
4990:
4991: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4992: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4993: case "$ac_file" in
4994: *:*) ac_file_in=`echo "$ac_file" | sed 's%[^:]*:%%'`
4995: ac_file=`echo "$ac_file" | sed 's%:.*%%'` ;;
4996: *) ac_file_in="${ac_file}.in" ;;
4997: esac
4998:
4999: echo creating $ac_file
5000:
5001: rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
5002: ac_file_inputs=`echo "$ac_file_in" |
5003: sed -e "s%:% $ac_given_srcdir/%g;s%^%$ac_given_srcdir/%"`
5004: for ac_file_input in $ac_file_inputs;
5005: do
5006: test -f "$ac_file_input" ||
5007: { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
5008: done
5009: # Remove the trailing spaces.
5010: sed -e 's/[ ]*$//' $ac_file_inputs >$ac_cs_root.in
1.1 maekawa 5011:
1.1.1.2 maekawa 5012: EOF
1.1 maekawa 5013:
1.1.1.2 maekawa 5014: # Transform confdefs.h into two sed scripts, `conftest.defines' and
5015: # `conftest.undefs', that substitutes the proper values into
5016: # config.h.in to produce config.h. The first handles `#define'
5017: # templates, and the second `#undef' templates.
5018: # And first: Protect against being on the right side of a sed subst in
5019: # config.status. Protect against being in an unquoted here document
5020: # in config.status.
5021: rm -f conftest.defines conftest.undefs
5022: ac_cs_root=conftest
5023: cat >$ac_cs_root.hdr <<\EOF
5024: s/[\\&%]/\\&/g
5025: s%[\\$`]%\\&%g
5026: t clear
5027: : clear
5028: s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
5029: t cleanup
5030: s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5031: : cleanup
5032: EOF
5033: # If some macros were called several times there might be several times
5034: # the same #defines, which is useless. Nevertheless, we may not want to
5035: # sort them, since we want the *last* AC_DEFINE to be honored.
5036: uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines
5037: sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5038: rm -f $ac_cs_root.hdr
5039:
5040: # This sed command replaces #undef with comments. This is necessary, for
5041: # example, in the case of _POSIX_SOURCE, which is predefined and required
5042: # on some systems where configure will not decide to define it.
5043: cat >>conftest.undefs <<\EOF
5044: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5045: EOF
1.1 maekawa 5046:
1.1.1.2 maekawa 5047: # Break up conftest.defines because some shells have a limit on the size
5048: # of here documents, and old seds have small limits too (100 cmds).
5049: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5050: echo ' if egrep "^[ ]*#[ ]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS
5051: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5052: echo ' :' >>$CONFIG_STATUS
5053: rm -f conftest.tail
5054: while grep . conftest.defines >/dev/null
5055: do
5056: # Write a limited-size here document to $ac_cs_root.frag.
5057: echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
5058: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5059: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5060: echo 'CEOF
5061: sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
5062: rm -f $ac_cs_root.in
5063: mv $ac_cs_root.out $ac_cs_root.in
5064: ' >>$CONFIG_STATUS
5065: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5066: rm -f conftest.defines
5067: mv conftest.tail conftest.defines
5068: done
5069: rm -f conftest.defines
5070: echo ' fi # egrep' >>$CONFIG_STATUS
5071: echo >>$CONFIG_STATUS
5072:
5073: # Break up conftest.undefs because some shells have a limit on the size
5074: # of here documents, and old seds have small limits too (100 cmds).
5075: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5076: rm -f conftest.tail
5077: while grep . conftest.undefs >/dev/null
5078: do
5079: # Write a limited-size here document to $ac_cs_root.frag.
5080: echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
5081: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5082: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5083: echo 'CEOF
5084: sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
5085: rm -f $ac_cs_root.in
5086: mv $ac_cs_root.out $ac_cs_root.in
5087: ' >>$CONFIG_STATUS
5088: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5089: rm -f conftest.undefs
5090: mv conftest.tail conftest.undefs
1.1 maekawa 5091: done
1.1.1.2 maekawa 5092: rm -f conftest.undefs
1.1 maekawa 5093:
1.1.1.2 maekawa 5094: cat >>$CONFIG_STATUS <<\EOF
5095: rm -f $ac_cs_root.frag $ac_cs_root.h
5096: echo "/* $ac_file. Generated automatically by configure. */" >$ac_cs_root.h
5097: cat $ac_cs_root.in >>$ac_cs_root.h
5098: rm -f $ac_cs_root.in
5099: if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
5100: echo "$ac_file is unchanged"
5101: rm -f $ac_cs_root.h
5102: else
5103: # Remove last slash and all that follows it. Not all systems have dirname.
5104: ac_dir=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
5105: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5106: # The file is in a subdirectory.
5107: test ! -d "$ac_dir" && mkdir "$ac_dir"
5108: fi
5109: rm -f $ac_file
5110: mv $ac_cs_root.h $ac_file
5111: fi
5112: fi; done
5113: EOF
5114: cat >>$CONFIG_STATUS <<\EOF
1.1 maekawa 5115:
1.1.1.2 maekawa 5116: #
5117: # CONFIG_LINKS section.
5118: #
5119: srcdir=$ac_given_srcdir
5120:
5121: for ac_file in : $CONFIG_LINKS; do if test "x$ac_file" != x:; then
5122: ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
5123: ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
5124:
5125: echo "linking $srcdir/$ac_source to $ac_dest"
5126:
5127: if test ! -r $srcdir/$ac_source; then
5128: { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5129: fi
5130: rm -f $ac_dest
5131:
5132: # Make relative symlinks.
5133: # Remove last slash and all that follows it. Not all systems have dirname.
5134: ac_dest_dir=`echo $ac_dest | sed 's%/[^/][^/]*$%%'`
5135: if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5136: # The dest file is in a subdirectory.
5137: test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5138: ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5139: # A "../" for each directory in $ac_dest_dir_suffix.
5140: ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5141: else
5142: ac_dest_dir_suffix= ac_dots=
5143: fi
5144:
5145: case "$srcdir" in
5146: [\\/$]* | ?:[\\/]* ) ac_rel_source="$srcdir/$ac_source" ;;
5147: *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5148: esac
5149:
5150: # Make a symlink if possible; otherwise try a hard link.
5151: if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5152: ln $srcdir/$ac_source $ac_dest; then :
5153: else
5154: { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5155: fi
5156: fi; done
5157: EOF
5158: cat >>$CONFIG_STATUS <<\EOF
1.1 maekawa 5159:
5160: #
1.1.1.2 maekawa 5161: # CONFIG_COMMANDS section.
1.1 maekawa 5162: #
1.1.1.2 maekawa 5163: for ac_file in .. $CONFIG_COMMANDS; do if test "x$ac_file" != x..; then
5164: ac_dest=`echo "$ac_file" | sed 's%:.*%%'`
5165: ac_source=`echo "$ac_file" | sed 's%[^:]*:%%'`
5166:
5167: case "$ac_dest" in
5168: default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5169: esac
5170: fi;done
5171: EOF
5172:
5173: cat >>$CONFIG_STATUS <<\EOF
5174:
5175: exit 0
5176: EOF
5177: chmod +x $CONFIG_STATUS
5178: rm -fr confdefs* $ac_clean_files
5179: trap 'exit 1' 1 2 15
1.1 maekawa 5180:
1.1.1.2 maekawa 5181: test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>