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