]>
Commit | Line | Data |
---|---|---|
81fea2b1 JL |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
411a2e59 | 4 | # Generated automatically using autoconf version 2.13 |
81fea2b1 JL |
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: | |
ceb5e20f GK |
14 | ac_help="$ac_help |
15 | --enable-multilib build hella library versions (default)" | |
16 | ac_help="$ac_help | |
17 | --with-target-subdir=SUBDIR | |
18 | configuring in a subdirectory" | |
19 | ac_help="$ac_help | |
20 | --with-cross-host=HOST configuring with a cross compiler" | |
21 | ac_help="$ac_help | |
22 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory " | |
dedc4a53 JP |
23 | ac_help="$ac_help |
24 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
25 | ac_help="$ac_help | |
26 | --enable-static[=PKGS] build static libraries [default=yes]" | |
27 | ac_help="$ac_help | |
28 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
29 | ac_help="$ac_help | |
30 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
31 | ac_help="$ac_help | |
32 | --disable-libtool-lock avoid locking (might break parallel builds)" | |
33 | ac_help="$ac_help | |
34 | --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
81fea2b1 JL |
35 | |
36 | # Initialize some variables set by options. | |
37 | # The variables have the same names as the options, with | |
38 | # dashes changed to underlines. | |
39 | build=NONE | |
40 | cache_file=./config.cache | |
41 | exec_prefix=NONE | |
42 | host=NONE | |
43 | no_create= | |
44 | nonopt=NONE | |
45 | no_recursion= | |
46 | prefix=NONE | |
47 | program_prefix=NONE | |
48 | program_suffix=NONE | |
49 | program_transform_name=s,x,x, | |
50 | silent= | |
51 | site= | |
52 | srcdir= | |
53 | target=NONE | |
54 | verbose= | |
55 | x_includes=NONE | |
56 | x_libraries=NONE | |
57 | bindir='${exec_prefix}/bin' | |
58 | sbindir='${exec_prefix}/sbin' | |
59 | libexecdir='${exec_prefix}/libexec' | |
60 | datadir='${prefix}/share' | |
61 | sysconfdir='${prefix}/etc' | |
62 | sharedstatedir='${prefix}/com' | |
63 | localstatedir='${prefix}/var' | |
64 | libdir='${exec_prefix}/lib' | |
65 | includedir='${prefix}/include' | |
66 | oldincludedir='/usr/include' | |
67 | infodir='${prefix}/info' | |
68 | mandir='${prefix}/man' | |
69 | ||
70 | # Initialize some other variables. | |
71 | subdirs= | |
72 | MFLAGS= MAKEFLAGS= | |
e6e86071 | 73 | SHELL=${CONFIG_SHELL-/bin/sh} |
81fea2b1 JL |
74 | # Maximum number of lines to put in a shell here document. |
75 | ac_max_here_lines=12 | |
76 | ||
77 | ac_prev= | |
78 | for ac_option | |
79 | do | |
80 | ||
81 | # If the previous option needs an argument, assign it. | |
82 | if test -n "$ac_prev"; then | |
83 | eval "$ac_prev=\$ac_option" | |
84 | ac_prev= | |
85 | continue | |
86 | fi | |
87 | ||
88 | case "$ac_option" in | |
89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
90 | *) ac_optarg= ;; | |
91 | esac | |
92 | ||
93 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
94 | ||
95 | case "$ac_option" in | |
96 | ||
97 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
98 | ac_prev=bindir ;; | |
99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
100 | bindir="$ac_optarg" ;; | |
101 | ||
102 | -build | --build | --buil | --bui | --bu) | |
103 | ac_prev=build ;; | |
104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
105 | build="$ac_optarg" ;; | |
106 | ||
107 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
109 | ac_prev=cache_file ;; | |
110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
112 | cache_file="$ac_optarg" ;; | |
113 | ||
114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
115 | ac_prev=datadir ;; | |
116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
117 | | --da=*) | |
118 | datadir="$ac_optarg" ;; | |
119 | ||
120 | -disable-* | --disable-*) | |
121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
122 | # Reject names that are not valid shell variable names. | |
123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
125 | fi | |
126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
127 | eval "enable_${ac_feature}=no" ;; | |
128 | ||
129 | -enable-* | --enable-*) | |
130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
131 | # Reject names that are not valid shell variable names. | |
132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
134 | fi | |
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
136 | case "$ac_option" in | |
137 | *=*) ;; | |
138 | *) ac_optarg=yes ;; | |
139 | esac | |
140 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
141 | ||
142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
144 | | --exec | --exe | --ex) | |
145 | ac_prev=exec_prefix ;; | |
146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
148 | | --exec=* | --exe=* | --ex=*) | |
149 | exec_prefix="$ac_optarg" ;; | |
150 | ||
151 | -gas | --gas | --ga | --g) | |
152 | # Obsolete; use --with-gas. | |
153 | with_gas=yes ;; | |
154 | ||
155 | -help | --help | --hel | --he) | |
156 | # Omit some internal or obsolete options to make the list less imposing. | |
157 | # This message is too long to be a string in the A/UX 3.1 sh. | |
158 | cat << EOF | |
159 | Usage: configure [options] [host] | |
160 | Options: [defaults in brackets after descriptions] | |
161 | Configuration: | |
162 | --cache-file=FILE cache test results in FILE | |
163 | --help print this message | |
164 | --no-create do not create output files | |
165 | --quiet, --silent do not print \`checking...' messages | |
166 | --version print the version of autoconf that created configure | |
167 | Directory and file names: | |
168 | --prefix=PREFIX install architecture-independent files in PREFIX | |
169 | [$ac_default_prefix] | |
170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
171 | [same as prefix] | |
172 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
175 | --datadir=DIR read-only architecture-independent data in DIR | |
176 | [PREFIX/share] | |
177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
179 | [PREFIX/com] | |
180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
182 | --includedir=DIR C header files in DIR [PREFIX/include] | |
183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
184 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
185 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
186 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
187 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
188 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
189 | --program-transform-name=PROGRAM | |
190 | run sed PROGRAM on installed program names | |
191 | EOF | |
192 | cat << EOF | |
193 | Host type: | |
194 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
195 | --host=HOST configure for HOST [guessed] | |
196 | --target=TARGET configure for TARGET [TARGET=HOST] | |
197 | Features and packages: | |
198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
202 | --x-includes=DIR X include files are in DIR | |
203 | --x-libraries=DIR X library files are in DIR | |
204 | EOF | |
205 | if test -n "$ac_help"; then | |
206 | echo "--enable and --with options recognized:$ac_help" | |
207 | fi | |
208 | exit 0 ;; | |
209 | ||
210 | -host | --host | --hos | --ho) | |
211 | ac_prev=host ;; | |
212 | -host=* | --host=* | --hos=* | --ho=*) | |
213 | host="$ac_optarg" ;; | |
214 | ||
215 | -includedir | --includedir | --includedi | --included | --include \ | |
216 | | --includ | --inclu | --incl | --inc) | |
217 | ac_prev=includedir ;; | |
218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
219 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
220 | includedir="$ac_optarg" ;; | |
221 | ||
222 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
223 | ac_prev=infodir ;; | |
224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
225 | infodir="$ac_optarg" ;; | |
226 | ||
227 | -libdir | --libdir | --libdi | --libd) | |
228 | ac_prev=libdir ;; | |
229 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
230 | libdir="$ac_optarg" ;; | |
231 | ||
232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
233 | | --libexe | --libex | --libe) | |
234 | ac_prev=libexecdir ;; | |
235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
236 | | --libexe=* | --libex=* | --libe=*) | |
237 | libexecdir="$ac_optarg" ;; | |
238 | ||
239 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
240 | | --localstate | --localstat | --localsta | --localst \ | |
241 | | --locals | --local | --loca | --loc | --lo) | |
242 | ac_prev=localstatedir ;; | |
243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
246 | localstatedir="$ac_optarg" ;; | |
247 | ||
248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
249 | ac_prev=mandir ;; | |
250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
251 | mandir="$ac_optarg" ;; | |
252 | ||
253 | -nfp | --nfp | --nf) | |
254 | # Obsolete; use --without-fp. | |
255 | with_fp=no ;; | |
256 | ||
257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
258 | | --no-cr | --no-c) | |
259 | no_create=yes ;; | |
260 | ||
261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
263 | no_recursion=yes ;; | |
264 | ||
265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
267 | | --oldin | --oldi | --old | --ol | --o) | |
268 | ac_prev=oldincludedir ;; | |
269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
272 | oldincludedir="$ac_optarg" ;; | |
273 | ||
274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
275 | ac_prev=prefix ;; | |
276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
277 | prefix="$ac_optarg" ;; | |
278 | ||
279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
280 | | --program-pre | --program-pr | --program-p) | |
281 | ac_prev=program_prefix ;; | |
282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
284 | program_prefix="$ac_optarg" ;; | |
285 | ||
286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
287 | | --program-suf | --program-su | --program-s) | |
288 | ac_prev=program_suffix ;; | |
289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
291 | program_suffix="$ac_optarg" ;; | |
292 | ||
293 | -program-transform-name | --program-transform-name \ | |
294 | | --program-transform-nam | --program-transform-na \ | |
295 | | --program-transform-n | --program-transform- \ | |
296 | | --program-transform | --program-transfor \ | |
297 | | --program-transfo | --program-transf \ | |
298 | | --program-trans | --program-tran \ | |
299 | | --progr-tra | --program-tr | --program-t) | |
300 | ac_prev=program_transform_name ;; | |
301 | -program-transform-name=* | --program-transform-name=* \ | |
302 | | --program-transform-nam=* | --program-transform-na=* \ | |
303 | | --program-transform-n=* | --program-transform-=* \ | |
304 | | --program-transform=* | --program-transfor=* \ | |
305 | | --program-transfo=* | --program-transf=* \ | |
306 | | --program-trans=* | --program-tran=* \ | |
307 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
308 | program_transform_name="$ac_optarg" ;; | |
309 | ||
310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
311 | | -silent | --silent | --silen | --sile | --sil) | |
312 | silent=yes ;; | |
313 | ||
314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
315 | ac_prev=sbindir ;; | |
316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
317 | | --sbi=* | --sb=*) | |
318 | sbindir="$ac_optarg" ;; | |
319 | ||
320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
322 | | --sharedst | --shareds | --shared | --share | --shar \ | |
323 | | --sha | --sh) | |
324 | ac_prev=sharedstatedir ;; | |
325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
328 | | --sha=* | --sh=*) | |
329 | sharedstatedir="$ac_optarg" ;; | |
330 | ||
331 | -site | --site | --sit) | |
332 | ac_prev=site ;; | |
333 | -site=* | --site=* | --sit=*) | |
334 | site="$ac_optarg" ;; | |
335 | ||
336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
337 | ac_prev=srcdir ;; | |
338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
339 | srcdir="$ac_optarg" ;; | |
340 | ||
341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
342 | | --syscon | --sysco | --sysc | --sys | --sy) | |
343 | ac_prev=sysconfdir ;; | |
344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
346 | sysconfdir="$ac_optarg" ;; | |
347 | ||
348 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
349 | ac_prev=target ;; | |
350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
351 | target="$ac_optarg" ;; | |
352 | ||
353 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
354 | verbose=yes ;; | |
355 | ||
356 | -version | --version | --versio | --versi | --vers) | |
411a2e59 | 357 | echo "configure generated by autoconf version 2.13" |
81fea2b1 JL |
358 | exit 0 ;; |
359 | ||
360 | -with-* | --with-*) | |
361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
362 | # Reject names that are not valid shell variable names. | |
363 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
365 | fi | |
366 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
367 | case "$ac_option" in | |
368 | *=*) ;; | |
369 | *) ac_optarg=yes ;; | |
370 | esac | |
371 | eval "with_${ac_package}='$ac_optarg'" ;; | |
372 | ||
373 | -without-* | --without-*) | |
374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
375 | # Reject names that are not valid shell variable names. | |
376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
378 | fi | |
379 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
380 | eval "with_${ac_package}=no" ;; | |
381 | ||
382 | --x) | |
383 | # Obsolete; use --with-x. | |
384 | with_x=yes ;; | |
385 | ||
386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
387 | | --x-incl | --x-inc | --x-in | --x-i) | |
388 | ac_prev=x_includes ;; | |
389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
391 | x_includes="$ac_optarg" ;; | |
392 | ||
393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
395 | ac_prev=x_libraries ;; | |
396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
398 | x_libraries="$ac_optarg" ;; | |
399 | ||
400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
401 | ;; | |
402 | ||
403 | *) | |
404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
405 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
406 | fi | |
407 | if test "x$nonopt" != xNONE; then | |
408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
409 | fi | |
410 | nonopt="$ac_option" | |
411 | ;; | |
412 | ||
413 | esac | |
414 | done | |
415 | ||
416 | if test -n "$ac_prev"; then | |
417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
418 | fi | |
419 | ||
420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
421 | ||
422 | # File descriptor usage: | |
423 | # 0 standard input | |
424 | # 1 file creation | |
425 | # 2 errors and warnings | |
426 | # 3 some systems may open it to /dev/tty | |
427 | # 4 used on the Kubota Titan | |
428 | # 6 checking for... messages and results | |
429 | # 5 compiler messages saved in config.log | |
430 | if test "$silent" = yes; then | |
431 | exec 6>/dev/null | |
432 | else | |
433 | exec 6>&1 | |
434 | fi | |
435 | exec 5>./config.log | |
436 | ||
437 | echo "\ | |
438 | This file contains any messages produced by compilers while | |
439 | running configure, to aid debugging if configure makes a mistake. | |
440 | " 1>&5 | |
441 | ||
442 | # Strip out --no-create and --no-recursion so they do not pile up. | |
443 | # Also quote any args containing shell metacharacters. | |
444 | ac_configure_args= | |
445 | for ac_arg | |
446 | do | |
447 | case "$ac_arg" in | |
448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
449 | | --no-cr | --no-c) ;; | |
450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
455 | esac | |
456 | done | |
457 | ||
458 | # NLS nuisances. | |
459 | # Only set these to C if already set. These must not be set unconditionally | |
460 | # because not all systems understand e.g. LANG=C (notably SCO). | |
461 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
462 | # Non-C LC_CTYPE values break the ctype check. | |
463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
464 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
465 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
466 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
467 | ||
468 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
469 | rm -rf conftest* confdefs.h | |
470 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
471 | echo > confdefs.h | |
472 | ||
473 | # A filename unique to this package, relative to the directory that | |
474 | # configure is in, which we can look for to find out if srcdir is correct. | |
475 | ac_unique_file=libF77/Version.c | |
476 | ||
477 | # Find the source files, if location was not specified. | |
478 | if test -z "$srcdir"; then | |
479 | ac_srcdir_defaulted=yes | |
480 | # Try the directory containing this script, then its parent. | |
481 | ac_prog=$0 | |
482 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
483 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
484 | srcdir=$ac_confdir | |
485 | if test ! -r $srcdir/$ac_unique_file; then | |
486 | srcdir=.. | |
487 | fi | |
488 | else | |
489 | ac_srcdir_defaulted=no | |
490 | fi | |
491 | if test ! -r $srcdir/$ac_unique_file; then | |
492 | if test "$ac_srcdir_defaulted" = yes; then | |
493 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
494 | else | |
495 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
496 | fi | |
497 | fi | |
498 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
499 | ||
500 | # Prefer explicitly selected file to automatically selected ones. | |
4977bab6 ZW |
501 | if test -z "$CONFIG_SITE"; then |
502 | if test "x$prefix" != xNONE; then | |
503 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
504 | else | |
505 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
81fea2b1 JL |
506 | fi |
507 | fi | |
508 | for ac_site_file in $CONFIG_SITE; do | |
509 | if test -r "$ac_site_file"; then | |
510 | echo "loading site script $ac_site_file" | |
511 | . "$ac_site_file" | |
512 | fi | |
513 | done | |
514 | ||
515 | if test -r "$cache_file"; then | |
516 | echo "loading cache $cache_file" | |
517 | . $cache_file | |
518 | else | |
519 | echo "creating cache $cache_file" | |
520 | > $cache_file | |
521 | fi | |
522 | ||
523 | ac_ext=c | |
524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
525 | ac_cpp='$CPP $CPPFLAGS' | |
526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
411a2e59 | 527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
81fea2b1 JL |
528 | cross_compiling=$ac_cv_prog_cc_cross |
529 | ||
411a2e59 JL |
530 | ac_exeext= |
531 | ac_objext=o | |
81fea2b1 JL |
532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
533 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
535 | ac_n= ac_c=' | |
536 | ' ac_t=' ' | |
537 | else | |
538 | ac_n=-n ac_c= ac_t= | |
539 | fi | |
540 | else | |
541 | ac_n= ac_c='\c' ac_t= | |
542 | fi | |
543 | ||
544 | ||
545 | ||
6706f116 AO |
546 | # This works around the fact that libtool configuration may change LD |
547 | # for this particular configuration, but some shells, instead of | |
548 | # keeping the changes in LD private, export them just because LD is | |
549 | # exported. | |
550 | ORIGINAL_LD_FOR_MULTILIBS=$LD | |
551 | ||
aebb8c22 DD |
552 | |
553 | # Check whether --enable-multilib or --disable-multilib was given. | |
554 | if test "${enable_multilib+set}" = set; then | |
555 | enableval="$enable_multilib" | |
556 | case "${enableval}" in | |
557 | yes) multilib=yes ;; | |
558 | no) multilib=no ;; | |
559 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | |
560 | esac | |
561 | else | |
562 | multilib=yes | |
563 | fi | |
564 | ||
565 | # When building with srcdir == objdir, links to the source files will | |
566 | # be created in directories within the target_subdir. We have to | |
567 | # adjust toplevel_srcdir accordingly, so that configure finds | |
568 | # install-sh and other auxiliary files that live in the top-level | |
569 | # source directory. | |
570 | if test "${srcdir}" = "."; then | |
571 | if test -z "${with_target_subdir}"; then | |
572 | toprel=".." | |
573 | else | |
574 | if test "${with_target_subdir}" != "."; then | |
575 | toprel="${with_multisrctop}../.." | |
576 | else | |
577 | toprel="${with_multisrctop}.." | |
578 | fi | |
579 | fi | |
580 | else | |
581 | toprel=".." | |
582 | fi | |
495e6ebb | 583 | ac_aux_dir= |
aebb8c22 | 584 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do |
495e6ebb DL |
585 | if test -f $ac_dir/install-sh; then |
586 | ac_aux_dir=$ac_dir | |
587 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
588 | break | |
589 | elif test -f $ac_dir/install.sh; then | |
590 | ac_aux_dir=$ac_dir | |
591 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
592 | break | |
593 | fi | |
594 | done | |
595 | if test -z "$ac_aux_dir"; then | |
aebb8c22 | 596 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; } |
495e6ebb DL |
597 | fi |
598 | ac_config_guess=$ac_aux_dir/config.guess | |
599 | ac_config_sub=$ac_aux_dir/config.sub | |
600 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
601 | ||
aebb8c22 DD |
602 | toplevel_srcdir=\${top_srcdir}/$toprel |
603 | ||
604 | ||
605 | ||
ab300375 | 606 | |
ceb5e20f GK |
607 | # Do some error checking and defaulting for the host and target type. |
608 | # The inputs are: | |
609 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
610 | # | |
611 | # The rules are: | |
612 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
613 | # same time. | |
614 | # 2. Host defaults to nonopt. | |
615 | # 3. If nonopt is not specified, then host defaults to the current host, | |
616 | # as determined by config.guess. | |
617 | # 4. Target and build default to nonopt. | |
618 | # 5. If nonopt is not specified, then target and build default to host. | |
411a2e59 | 619 | |
ceb5e20f GK |
620 | # The aliases save the names the user supplied, while $host etc. |
621 | # will get canonicalized. | |
622 | case $host---$target---$nonopt in | |
623 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
624 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
625 | esac | |
71205e0b | 626 | |
ceb5e20f GK |
627 | |
628 | # Make sure we can run config.sub. | |
629 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
630 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
71205e0b MH |
631 | fi |
632 | ||
ceb5e20f | 633 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
4977bab6 | 634 | echo "configure:635: checking host system type" >&5 |
7c6b0e92 | 635 | |
ceb5e20f GK |
636 | host_alias=$host |
637 | case "$host_alias" in | |
638 | NONE) | |
639 | case $nonopt in | |
640 | NONE) | |
641 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
642 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
643 | fi ;; | |
644 | *) host_alias=$nonopt ;; | |
645 | esac ;; | |
646 | esac | |
7c6b0e92 | 647 | |
ceb5e20f GK |
648 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
649 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
650 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
651 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
652 | echo "$ac_t""$host" 1>&6 | |
7c6b0e92 | 653 | |
ceb5e20f | 654 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
4977bab6 | 655 | echo "configure:656: checking target system type" >&5 |
ceb5e20f GK |
656 | |
657 | target_alias=$target | |
658 | case "$target_alias" in | |
659 | NONE) | |
660 | case $nonopt in | |
661 | NONE) target_alias=$host_alias ;; | |
662 | *) target_alias=$nonopt ;; | |
663 | esac ;; | |
664 | esac | |
665 | ||
666 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
667 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
668 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
669 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
670 | echo "$ac_t""$target" 1>&6 | |
671 | ||
672 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
4977bab6 | 673 | echo "configure:674: checking build system type" >&5 |
ceb5e20f GK |
674 | |
675 | build_alias=$build | |
676 | case "$build_alias" in | |
677 | NONE) | |
678 | case $nonopt in | |
679 | NONE) build_alias=$host_alias ;; | |
680 | *) build_alias=$nonopt ;; | |
681 | esac ;; | |
682 | esac | |
683 | ||
684 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
685 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
686 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
687 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
688 | echo "$ac_t""$build" 1>&6 | |
689 | ||
690 | test "$host_alias" != "$target_alias" && | |
691 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
692 | NONENONEs,x,x, && | |
693 | program_prefix=${target_alias}- | |
694 | ||
695 | target_alias=${target_alias-$target} | |
696 | ||
697 | ||
698 | if test $host != $build; then | |
699 | ac_tool_prefix=${host_alias}- | |
700 | else | |
701 | ac_tool_prefix= | |
702 | fi | |
703 | ||
704 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
4977bab6 | 705 | echo "configure:706: checking for Cygwin environment" >&5 |
a4017847 HPN |
706 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
708 | else | |
709 | cat > conftest.$ac_ext <<EOF | |
4977bab6 | 710 | #line 711 "configure" |
a4017847 HPN |
711 | #include "confdefs.h" |
712 | ||
713 | int main() { | |
714 | ||
715 | #ifndef __CYGWIN__ | |
716 | #define __CYGWIN__ __CYGWIN32__ | |
717 | #endif | |
718 | return __CYGWIN__; | |
719 | ; return 0; } | |
720 | EOF | |
4977bab6 | 721 | if { (eval echo configure:722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a4017847 HPN |
722 | rm -rf conftest* |
723 | ac_cv_cygwin=yes | |
724 | else | |
725 | echo "configure: failed program was:" >&5 | |
726 | cat conftest.$ac_ext >&5 | |
727 | rm -rf conftest* | |
728 | ac_cv_cygwin=no | |
729 | fi | |
730 | rm -f conftest* | |
731 | rm -f conftest* | |
732 | fi | |
733 | ||
734 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
735 | CYGWIN= | |
736 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
737 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
4977bab6 | 738 | echo "configure:739: checking for mingw32 environment" >&5 |
a4017847 HPN |
739 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
741 | else | |
742 | cat > conftest.$ac_ext <<EOF | |
4977bab6 | 743 | #line 744 "configure" |
a4017847 HPN |
744 | #include "confdefs.h" |
745 | ||
746 | int main() { | |
747 | return __MINGW32__; | |
748 | ; return 0; } | |
749 | EOF | |
4977bab6 | 750 | if { (eval echo configure:751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a4017847 HPN |
751 | rm -rf conftest* |
752 | ac_cv_mingw32=yes | |
753 | else | |
754 | echo "configure: failed program was:" >&5 | |
755 | cat conftest.$ac_ext >&5 | |
756 | rm -rf conftest* | |
757 | ac_cv_mingw32=no | |
758 | fi | |
759 | rm -f conftest* | |
760 | rm -f conftest* | |
761 | fi | |
762 | ||
763 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
764 | MINGW32= | |
765 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
766 | ||
ceb5e20f GK |
767 | # Export build and source directories. |
768 | # These need to be absolute paths, yet at the same time need to | |
769 | # canonicalize only relative paths, because then amd will not unmount | |
770 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
1e6347d8 | 771 | glibcpp_builddir=`${PWDCMD-pwd}` |
ceb5e20f GK |
772 | case $srcdir in |
773 | \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; | |
774 | *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
775 | esac | |
776 | ||
777 | ||
778 | ||
779 | ||
780 | ||
781 | # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also | |
782 | # be 'cp -p' if linking isn't available. | |
783 | #ac_cv_prog_LN_S='cp -p' | |
784 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
4977bab6 | 785 | echo "configure:786: checking whether ln -s works" >&5 |
ceb5e20f | 786 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
a4017847 HPN |
787 | echo $ac_n "(cached) $ac_c" 1>&6 |
788 | else | |
ceb5e20f GK |
789 | rm -f conftestdata |
790 | if ln -s X conftestdata 2>/dev/null | |
791 | then | |
792 | rm -f conftestdata | |
793 | ac_cv_prog_LN_S="ln -s" | |
a4017847 | 794 | else |
ceb5e20f | 795 | ac_cv_prog_LN_S=ln |
a4017847 HPN |
796 | fi |
797 | fi | |
ceb5e20f GK |
798 | LN_S="$ac_cv_prog_LN_S" |
799 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
800 | echo "$ac_t""yes" 1>&6 | |
801 | else | |
802 | echo "$ac_t""no" 1>&6 | |
803 | fi | |
a4017847 | 804 | |
a4017847 | 805 | |
ceb5e20f GK |
806 | # We use these options to decide which functions to include. |
807 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
808 | if test "${with_target_subdir+set}" = set; then | |
809 | withval="$with_target_subdir" | |
810 | : | |
a4017847 HPN |
811 | fi |
812 | ||
ceb5e20f GK |
813 | # Check whether --with-cross-host or --without-cross-host was given. |
814 | if test "${with_cross_host+set}" = set; then | |
815 | withval="$with_cross_host" | |
816 | : | |
817 | fi | |
818 | ||
819 | ||
820 | # Never versions of autoconf add an underscore to these functions. | |
821 | # Prevent future problems ... | |
822 | ||
823 | ||
824 | ||
825 | ||
826 | ||
827 | # AC_PROG_CC | |
828 | ||
829 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is | |
830 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We | |
831 | # are probably using a cross compiler, which will not be able to fully | |
832 | # link an executable. This should really be fixed in autoconf | |
833 | # itself. | |
834 | ||
835 | ||
836 | ||
7c6b0e92 | 837 | |
f30bc2e7 | 838 | # Extract the first word of "gcc", so it can be a program name with args. |
81fea2b1 JL |
839 | set dummy gcc; ac_word=$2 |
840 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4977bab6 | 841 | echo "configure:842: checking for $ac_word" >&5 |
81fea2b1 JL |
842 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
844 | else | |
845 | if test -n "$CC"; then | |
846 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
847 | else | |
411a2e59 JL |
848 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
849 | ac_dummy="$PATH" | |
850 | for ac_dir in $ac_dummy; do | |
81fea2b1 JL |
851 | test -z "$ac_dir" && ac_dir=. |
852 | if test -f $ac_dir/$ac_word; then | |
853 | ac_cv_prog_CC="gcc" | |
854 | break | |
855 | fi | |
856 | done | |
857 | IFS="$ac_save_ifs" | |
858 | fi | |
859 | fi | |
860 | CC="$ac_cv_prog_CC" | |
861 | if test -n "$CC"; then | |
862 | echo "$ac_t""$CC" 1>&6 | |
863 | else | |
864 | echo "$ac_t""no" 1>&6 | |
865 | fi | |
866 | ||
867 | if test -z "$CC"; then | |
868 | # Extract the first word of "cc", so it can be a program name with args. | |
869 | set dummy cc; ac_word=$2 | |
870 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4977bab6 | 871 | echo "configure:872: checking for $ac_word" >&5 |
81fea2b1 JL |
872 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
874 | else | |
875 | if test -n "$CC"; then | |
876 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
877 | else | |
411a2e59 | 878 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
81fea2b1 | 879 | ac_prog_rejected=no |
411a2e59 JL |
880 | ac_dummy="$PATH" |
881 | for ac_dir in $ac_dummy; do | |
81fea2b1 JL |
882 | test -z "$ac_dir" && ac_dir=. |
883 | if test -f $ac_dir/$ac_word; then | |
884 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
885 | ac_prog_rejected=yes | |
886 | continue | |
887 | fi | |
888 | ac_cv_prog_CC="cc" | |
889 | break | |
890 | fi | |
891 | done | |
892 | IFS="$ac_save_ifs" | |
893 | if test $ac_prog_rejected = yes; then | |
894 | # We found a bogon in the path, so make sure we never use it. | |
895 | set dummy $ac_cv_prog_CC | |
896 | shift | |
897 | if test $# -gt 0; then | |
898 | # We chose a different compiler from the bogus one. | |
899 | # However, it has the same basename, so the bogon will be chosen | |
900 | # first if we set CC to just the basename; use the full file name. | |
901 | shift | |
902 | set dummy "$ac_dir/$ac_word" "$@" | |
903 | shift | |
904 | ac_cv_prog_CC="$@" | |
905 | fi | |
906 | fi | |
907 | fi | |
908 | fi | |
909 | CC="$ac_cv_prog_CC" | |
910 | if test -n "$CC"; then | |
911 | echo "$ac_t""$CC" 1>&6 | |
912 | else | |
913 | echo "$ac_t""no" 1>&6 | |
914 | fi | |
915 | ||
ceb5e20f GK |
916 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
917 | fi | |
918 | ||
919 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
4977bab6 | 920 | echo "configure:921: checking whether we are using GNU C" >&5 |
ceb5e20f GK |
921 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
923 | else | |
924 | cat > conftest.c <<EOF | |
925 | #ifdef __GNUC__ | |
926 | yes; | |
927 | #endif | |
928 | EOF | |
4977bab6 | 929 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
ceb5e20f GK |
930 | ac_cv_prog_gcc=yes |
931 | else | |
932 | ac_cv_prog_gcc=no | |
933 | fi | |
934 | fi | |
935 | ||
936 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
937 | ||
938 | if test $ac_cv_prog_gcc = yes; then | |
939 | GCC=yes | |
940 | ac_test_CFLAGS="${CFLAGS+set}" | |
941 | ac_save_CFLAGS="$CFLAGS" | |
942 | CFLAGS= | |
943 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
4977bab6 | 944 | echo "configure:945: checking whether ${CC-cc} accepts -g" >&5 |
ceb5e20f GK |
945 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
947 | else | |
948 | echo 'void f(){}' > conftest.c | |
949 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
950 | ac_cv_prog_cc_g=yes | |
951 | else | |
952 | ac_cv_prog_cc_g=no | |
953 | fi | |
954 | rm -f conftest* | |
955 | ||
956 | fi | |
957 | ||
958 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
959 | if test "$ac_test_CFLAGS" = set; then | |
960 | CFLAGS="$ac_save_CFLAGS" | |
961 | elif test $ac_cv_prog_cc_g = yes; then | |
962 | CFLAGS="-g -O2" | |
963 | else | |
964 | CFLAGS="-O2" | |
965 | fi | |
966 | else | |
967 | GCC= | |
968 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
969 | fi | |
970 | ||
971 | ||
972 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
973 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
974 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4977bab6 | 975 | echo "configure:976: checking for $ac_word" >&5 |
ceb5e20f GK |
976 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
978 | else | |
979 | if test -n "$AS"; then | |
980 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
981 | else | |
982 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
983 | ac_dummy="$PATH" | |
984 | for ac_dir in $ac_dummy; do | |
985 | test -z "$ac_dir" && ac_dir=. | |
986 | if test -f $ac_dir/$ac_word; then | |
987 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
988 | break | |
989 | fi | |
990 | done | |
991 | IFS="$ac_save_ifs" | |
992 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | |
993 | fi | |
994 | fi | |
995 | AS="$ac_cv_prog_AS" | |
996 | if test -n "$AS"; then | |
997 | echo "$ac_t""$AS" 1>&6 | |
998 | else | |
999 | echo "$ac_t""no" 1>&6 | |
1000 | fi | |
1001 | ||
1002 | ||
1003 | ||
1004 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1005 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
411a2e59 | 1006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4977bab6 | 1007 | echo "configure:1008: checking for $ac_word" >&5 |
ceb5e20f | 1008 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
411a2e59 JL |
1009 | echo $ac_n "(cached) $ac_c" 1>&6 |
1010 | else | |
ceb5e20f GK |
1011 | if test -n "$AR"; then |
1012 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
411a2e59 JL |
1013 | else |
1014 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1015 | ac_dummy="$PATH" | |
1016 | for ac_dir in $ac_dummy; do | |
1017 | test -z "$ac_dir" && ac_dir=. | |
1018 | if test -f $ac_dir/$ac_word; then | |
ceb5e20f | 1019 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
411a2e59 JL |
1020 | break |
1021 | fi | |
1022 | done | |
1023 | IFS="$ac_save_ifs" | |
ceb5e20f | 1024 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
411a2e59 JL |
1025 | fi |
1026 | fi | |
ceb5e20f GK |
1027 | AR="$ac_cv_prog_AR" |
1028 | if test -n "$AR"; then | |
1029 | echo "$ac_t""$AR" 1>&6 | |
1030 | else | |
1031 | echo "$ac_t""no" 1>&6 | |
1032 | fi | |
1033 | ||
1034 | ||
1035 | ||
1036 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1037 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1038 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4977bab6 | 1039 | echo "configure:1040: checking for $ac_word" >&5 |
ceb5e20f GK |
1040 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1042 | else | |
1043 | if test -n "$RANLIB"; then | |
1044 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1045 | else | |
1046 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1047 | ac_dummy="$PATH" | |
1048 | for ac_dir in $ac_dummy; do | |
1049 | test -z "$ac_dir" && ac_dir=. | |
1050 | if test -f $ac_dir/$ac_word; then | |
1051 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1052 | break | |
1053 | fi | |
1054 | done | |
1055 | IFS="$ac_save_ifs" | |
1056 | fi | |
1057 | fi | |
1058 | RANLIB="$ac_cv_prog_RANLIB" | |
1059 | if test -n "$RANLIB"; then | |
1060 | echo "$ac_t""$RANLIB" 1>&6 | |
1061 | else | |
1062 | echo "$ac_t""no" 1>&6 | |
1063 | fi | |
1064 | ||
1065 | ||
1066 | if test -z "$ac_cv_prog_RANLIB"; then | |
1067 | if test -n "$ac_tool_prefix"; then | |
1068 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1069 | set dummy ranlib; ac_word=$2 | |
1070 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4977bab6 | 1071 | echo "configure:1072: checking for $ac_word" >&5 |
ceb5e20f GK |
1072 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1074 | else | |
1075 | if test -n "$RANLIB"; then | |
1076 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1077 | else | |
1078 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1079 | ac_dummy="$PATH" | |
1080 | for ac_dir in $ac_dummy; do | |
1081 | test -z "$ac_dir" && ac_dir=. | |
1082 | if test -f $ac_dir/$ac_word; then | |
1083 | ac_cv_prog_RANLIB="ranlib" | |
1084 | break | |
1085 | fi | |
1086 | done | |
1087 | IFS="$ac_save_ifs" | |
1088 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error" | |
1089 | fi | |
1090 | fi | |
1091 | RANLIB="$ac_cv_prog_RANLIB" | |
1092 | if test -n "$RANLIB"; then | |
1093 | echo "$ac_t""$RANLIB" 1>&6 | |
411a2e59 JL |
1094 | else |
1095 | echo "$ac_t""no" 1>&6 | |
1096 | fi | |
ceb5e20f GK |
1097 | |
1098 | else | |
1099 | RANLIB="ranlib-not-found-in-path-error" | |
1100 | fi | |
1101 | fi | |
1102 | ||
1103 | # Find a good install program. We prefer a C program (faster), | |
1104 | # so one script is as good as another. But avoid the broken or | |
1105 | # incompatible versions: | |
1106 | # SysV /etc/install, /usr/sbin/install | |
1107 | # SunOS /usr/etc/install | |
1108 | # IRIX /sbin/install | |
1109 | # AIX /bin/install | |
1110 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1111 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1112 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1113 | # ./install, which can be erroneously created by make from ./install.sh. | |
1114 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
4977bab6 | 1115 | echo "configure:1116: checking for a BSD compatible install" >&5 |
ceb5e20f GK |
1116 | if test -z "$INSTALL"; then |
1117 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1119 | else | |
1120 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
1121 | for ac_dir in $PATH; do | |
1122 | # Account for people who put trailing slashes in PATH elements. | |
1123 | case "$ac_dir/" in | |
1124 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1125 | *) | |
1126 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1127 | # Don't use installbsd from OSF since it installs stuff as root | |
1128 | # by default. | |
1129 | for ac_prog in ginstall scoinst install; do | |
1130 | if test -f $ac_dir/$ac_prog; then | |
1131 | if test $ac_prog = install && | |
1132 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1133 | # AIX install. It has an incompatible calling convention. | |
1134 | : | |
1135 | else | |
1136 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1137 | break 2 | |
1138 | fi | |
1139 | fi | |
1140 | done | |
1141 | ;; | |
411a2e59 | 1142 | esac |
ceb5e20f GK |
1143 | done |
1144 | IFS="$ac_save_IFS" | |
1145 | ||
1146 | fi | |
1147 | if test "${ac_cv_path_install+set}" = set; then | |
1148 | INSTALL="$ac_cv_path_install" | |
1149 | else | |
1150 | # As a last resort, use the slow shell script. We don't cache a | |
1151 | # path for INSTALL within a source directory, because that will | |
1152 | # break other packages using the cache if that directory is | |
1153 | # removed, or if the path is relative. | |
1154 | INSTALL="$ac_install_sh" | |
411a2e59 | 1155 | fi |
81fea2b1 | 1156 | fi |
ceb5e20f GK |
1157 | echo "$ac_t""$INSTALL" 1>&6 |
1158 | ||
1159 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1160 | # It thinks the first close brace ends the variable substitution. | |
1161 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1162 | ||
1163 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
1164 | ||
1165 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1166 | ||
1167 | ||
1168 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However, | |
1169 | # at least currently, we never actually build a program, so we never | |
1170 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally | |
1171 | # fails, because we are probably configuring with a cross compiler | |
1172 | # which can't create executables. So we include AC_EXEEXT to keep | |
1173 | # automake happy, but we don't execute it, since we don't care about | |
1174 | # the result. | |
1175 | if false; then | |
1176 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands | |
1177 | # to nothing, so nothing would remain between `then' and `fi' if it | |
1178 | # were not for the `:' below. | |
1179 | : | |
1180 | ||
1181 | ||
1182 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
4977bab6 | 1183 | echo "configure:1184: checking for executable suffix" >&5 |
ceb5e20f GK |
1184 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1186 | else | |
1187 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
1188 | ac_cv_exeext=.exe | |
1189 | else | |
1190 | rm -f conftest* | |
1191 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
1192 | ac_cv_exeext= | |
4977bab6 | 1193 | if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
ceb5e20f GK |
1194 | for file in conftest.*; do |
1195 | case $file in | |
233888d3 | 1196 | *.c | *.o | *.obj) ;; |
ceb5e20f GK |
1197 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1198 | esac | |
1199 | done | |
1200 | else | |
1201 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
1202 | fi | |
1203 | rm -f conftest* | |
1204 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
1205 | fi | |
1206 | fi | |
1207 | ||
1208 | EXEEXT="" | |
1209 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
1210 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
1211 | ac_exeext=$EXEEXT | |
1212 | ||
1213 | fi | |
1214 | ||
81fea2b1 | 1215 | |
ceb5e20f GK |
1216 | # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and |
1217 | # exported correctly in GLIBCPP_CONFIGURE. | |
1218 | glibcpp_toolexecdir=no | |
1219 | glibcpp_toolexeclibdir=no | |
1220 | glibcpp_prefixdir=${prefix} | |
81fea2b1 | 1221 | |
ceb5e20f | 1222 | echo $ac_n "checking for interface version number""... $ac_c" 1>&6 |
4977bab6 | 1223 | echo "configure:1224: checking for interface version number" >&5 |
ceb5e20f GK |
1224 | libstdcxx_interface=$INTERFACE |
1225 | echo "$ac_t""$libstdcxx_interface" 1>&6 | |
1226 | ||
1227 | # Process the option "--enable-version-specific-runtime-libs" | |
1228 | echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6 | |
4977bab6 | 1229 | echo "configure:1230: checking for --enable-version-specific-runtime-libs" >&5 |
ceb5e20f GK |
1230 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. |
1231 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1232 | enableval="$enable_version_specific_runtime_libs" | |
1233 | case "$enableval" in | |
1234 | yes) version_specific_libs=yes ;; | |
1235 | no) version_specific_libs=no ;; | |
1236 | *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };; | |
1237 | esac | |
81fea2b1 | 1238 | else |
ceb5e20f | 1239 | version_specific_libs=no |
81fea2b1 | 1240 | fi |
ceb5e20f GK |
1241 | # Option set, now we can test it. |
1242 | echo "$ac_t""$version_specific_libs" 1>&6 | |
81fea2b1 | 1243 | |
a2b3412c | 1244 | gcc_version_trigger=${toplevel_srcdir}/gcc/version.c |
ceb5e20f GK |
1245 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` |
1246 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'` | |
81fea2b1 | 1247 | |
ceb5e20f GK |
1248 | |
1249 | ||
1250 | if test $version_specific_libs = yes; then | |
1251 | # Need the gcc compiler version to know where to install libraries | |
1252 | # and header files if --enable-version-specific-runtime-libs option | |
1253 | # is selected. | |
1254 | glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
1255 | glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)' | |
1256 | fi | |
1257 | ||
1258 | # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir | |
1259 | # Install a library built with a cross compiler in tooldir, not libdir. | |
1260 | if test x"$glibcpp_toolexecdir" = x"no"; then | |
1261 | if test -n "$with_cross_host" && | |
1262 | test x"$with_cross_host" != x"no"; then | |
1263 | glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)' | |
233888d3 | 1264 | glibcpp_toolexeclibdir='$(toolexecdir)/lib' |
ceb5e20f GK |
1265 | else |
1266 | glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
233888d3 | 1267 | glibcpp_toolexeclibdir='$(libdir)' |
ceb5e20f | 1268 | fi |
233888d3 | 1269 | glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory` |
411a2e59 JL |
1270 | fi |
1271 | ||
ceb5e20f GK |
1272 | |
1273 | ||
1274 | ||
1275 | ||
1276 | ||
ceb5e20f | 1277 | |
dedc4a53 JP |
1278 | # Check whether --enable-shared or --disable-shared was given. |
1279 | if test "${enable_shared+set}" = set; then | |
1280 | enableval="$enable_shared" | |
1281 | p=${PACKAGE-default} | |
1282 | case $enableval in | |
1283 | yes) enable_shared=yes ;; | |
1284 | no) enable_shared=no ;; | |
1285 | *) | |
1286 | enable_shared=no | |
1287 | # Look at the argument we got. We use all the common list separators. | |
1288 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1289 | for pkg in $enableval; do | |
1290 | if test "X$pkg" = "X$p"; then | |
1291 | enable_shared=yes | |
1292 | fi | |
1293 | done | |
1294 | IFS="$ac_save_ifs" | |
1295 | ;; | |
1296 | esac | |
1297 | else | |
1298 | enable_shared=yes | |
1299 | fi | |
1300 | ||
1301 | # Check whether --enable-static or --disable-static was given. | |
1302 | if test "${enable_static+set}" = set; then | |
1303 | enableval="$enable_static" | |
1304 | p=${PACKAGE-default} | |
1305 | case $enableval in | |
1306 | yes) enable_static=yes ;; | |
1307 | no) enable_static=no ;; | |
1308 | *) | |
1309 | enable_static=no | |
1310 | # Look at the argument we got. We use all the common list separators. | |
1311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1312 | for pkg in $enableval; do | |
1313 | if test "X$pkg" = "X$p"; then | |
1314 | enable_static=yes | |
1315 | fi | |
1316 | done | |
1317 | IFS="$ac_save_ifs" | |
1318 | ;; | |
1319 | esac | |
1320 | else | |
1321 | enable_static=yes | |
1322 | fi | |
1323 | ||
1324 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
1325 | if test "${enable_fast_install+set}" = set; then | |
1326 | enableval="$enable_fast_install" | |
1327 | p=${PACKAGE-default} | |
1328 | case $enableval in | |
1329 | yes) enable_fast_install=yes ;; | |
1330 | no) enable_fast_install=no ;; | |
1331 | *) | |
1332 | enable_fast_install=no | |
1333 | # Look at the argument we got. We use all the common list separators. | |
1334 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1335 | for pkg in $enableval; do | |
1336 | if test "X$pkg" = "X$p"; then | |
1337 | enable_fast_install=yes | |
1338 | fi | |
1339 | done | |
1340 | IFS="$ac_save_ifs" | |
1341 | ;; | |
1342 | esac | |
1343 | else | |
1344 | enable_fast_install=yes | |
1345 | fi | |
1346 | ||
dedc4a53 JP |
1347 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
1348 | if test "${with_gnu_ld+set}" = set; then | |
1349 | withval="$with_gnu_ld" | |
1350 | test "$withval" = no || with_gnu_ld=yes | |
1351 | else | |
1352 | with_gnu_ld=no | |
1353 | fi | |
1354 | ||
1355 | ac_prog=ld | |
1356 | if test "$GCC" = yes; then | |
1357 | # Check if gcc -print-prog-name=ld gives a path. | |
1358 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
233888d3 | 1359 | echo "configure:1360: checking for ld used by GCC" >&5 |
dedc4a53 JP |
1360 | case $host in |
1361 | *-*-mingw*) | |
1362 | # gcc leaves a trailing carriage return which upsets mingw | |
1363 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1364 | *) | |
1365 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1366 | esac | |
1367 | case $ac_prog in | |
1368 | # Accept absolute paths. | |
1369 | [\\/]* | [A-Za-z]:[\\/]*) | |
1370 | re_direlt='/[^/][^/]*/\.\./' | |
1371 | # Canonicalize the path of ld | |
1372 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1373 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1374 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1375 | done | |
1376 | test -z "$LD" && LD="$ac_prog" | |
1377 | ;; | |
1378 | "") | |
1379 | # If it fails, then pretend we aren't using GCC. | |
1380 | ac_prog=ld | |
1381 | ;; | |
1382 | *) | |
1383 | # If it is relative, then search for the first ld in PATH. | |
1384 | with_gnu_ld=unknown | |
1385 | ;; | |
1386 | esac | |
1387 | elif test "$with_gnu_ld" = yes; then | |
1388 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
233888d3 | 1389 | echo "configure:1390: checking for GNU ld" >&5 |
dedc4a53 JP |
1390 | else |
1391 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
233888d3 | 1392 | echo "configure:1393: checking for non-GNU ld" >&5 |
dedc4a53 JP |
1393 | fi |
1394 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then | |
1395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1396 | else | |
1397 | if test -z "$LD"; then | |
1398 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1399 | for ac_dir in $PATH; do | |
1400 | test -z "$ac_dir" && ac_dir=. | |
1401 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
1402 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
1403 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1404 | # but apparently some GNU ld's only accept -v. | |
1405 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1406 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1407 | test "$with_gnu_ld" != no && break | |
1408 | else | |
1409 | test "$with_gnu_ld" != yes && break | |
1410 | fi | |
1411 | fi | |
1412 | done | |
1413 | IFS="$ac_save_ifs" | |
1414 | else | |
1415 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
1416 | fi | |
1417 | fi | |
1418 | ||
1419 | LD="$lt_cv_path_LD" | |
1420 | if test -n "$LD"; then | |
1421 | echo "$ac_t""$LD" 1>&6 | |
1422 | else | |
1423 | echo "$ac_t""no" 1>&6 | |
1424 | fi | |
1425 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1426 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
233888d3 | 1427 | echo "configure:1428: checking if the linker ($LD) is GNU ld" >&5 |
dedc4a53 JP |
1428 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
1429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1430 | else | |
1431 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1432 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1433 | lt_cv_prog_gnu_ld=yes | |
1434 | else | |
1435 | lt_cv_prog_gnu_ld=no | |
1436 | fi | |
1437 | fi | |
1438 | ||
1439 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 | |
1440 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
1441 | ||
1442 | ||
1443 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
233888d3 | 1444 | echo "configure:1445: checking for $LD option to reload object files" >&5 |
dedc4a53 JP |
1445 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
1446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1447 | else | |
1448 | lt_cv_ld_reload_flag='-r' | |
1449 | fi | |
1450 | ||
1451 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
1452 | reload_flag=$lt_cv_ld_reload_flag | |
1453 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
1454 | ||
1455 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
233888d3 | 1456 | echo "configure:1457: checking for BSD-compatible nm" >&5 |
dedc4a53 JP |
1457 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
1458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1459 | else | |
1460 | if test -n "$NM"; then | |
1461 | # Let the user override the test. | |
1462 | lt_cv_path_NM="$NM" | |
1463 | else | |
1464 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1465 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
1466 | test -z "$ac_dir" && ac_dir=. | |
1467 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
1468 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
1469 | # Check to see if the nm accepts a BSD-compat flag. | |
1470 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1471 | # nm: unknown option "B" ignored | |
1472 | # Tru64's nm complains that /dev/null is an invalid object file | |
1473 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
1474 | lt_cv_path_NM="$tmp_nm -B" | |
1475 | break | |
1476 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1477 | lt_cv_path_NM="$tmp_nm -p" | |
1478 | break | |
1479 | else | |
1480 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
1481 | continue # so that we can try to find one that supports BSD flags | |
1482 | fi | |
1483 | fi | |
1484 | done | |
1485 | IFS="$ac_save_ifs" | |
1486 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
1487 | fi | |
1488 | fi | |
1489 | ||
1490 | NM="$lt_cv_path_NM" | |
1491 | echo "$ac_t""$NM" 1>&6 | |
1492 | ||
dedc4a53 | 1493 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
233888d3 | 1494 | echo "configure:1495: checking how to recognise dependant libraries" >&5 |
dedc4a53 JP |
1495 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
1496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1497 | else | |
1498 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
1499 | lt_cv_file_magic_test_file= | |
1500 | lt_cv_deplibs_check_method='unknown' | |
1501 | # Need to set the preceding variable on all platforms that support | |
1502 | # interlibrary dependencies. | |
1503 | # 'none' -- dependencies not supported. | |
1504 | # `unknown' -- same as none, but documents that we really don't know. | |
1505 | # 'pass_all' -- all dependencies passed with no checks. | |
1506 | # 'test_compile' -- check by making test program. | |
1507 | # 'file_magic [regex]' -- check by looking for files in library path | |
1508 | # which responds to the $file_magic_cmd with a given egrep regex. | |
1509 | # If you have `file' or equivalent on your system and you're not sure | |
1510 | # whether `pass_all' will *always* work, you probably want this one. | |
1511 | ||
1512 | case $host_os in | |
1513 | aix*) | |
1514 | lt_cv_deplibs_check_method=pass_all | |
1515 | ;; | |
1516 | ||
1517 | beos*) | |
1518 | lt_cv_deplibs_check_method=pass_all | |
1519 | ;; | |
1520 | ||
1521 | bsdi4*) | |
1522 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
1523 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1524 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1525 | ;; | |
1526 | ||
1527 | cygwin* | mingw* |pw32*) | |
1528 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
1529 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
1530 | ;; | |
1531 | ||
1532 | darwin* | rhapsody*) | |
1533 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
1534 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1535 | case "$host_os" in | |
1536 | rhapsody* | darwin1.012) | |
1537 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
1538 | ;; | |
1539 | *) # Darwin 1.3 on | |
1540 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
1541 | ;; | |
1542 | esac | |
1543 | ;; | |
1544 | ||
1545 | freebsd* ) | |
1546 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
1547 | case $host_cpu in | |
1548 | i*86 ) | |
1549 | # Not sure whether the presence of OpenBSD here was a mistake. | |
1550 | # Let's accept both of them until this is cleared up. | |
1551 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
1552 | lt_cv_file_magic_cmd=/usr/bin/file | |
1553 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
1554 | ;; | |
1555 | esac | |
1556 | else | |
1557 | lt_cv_deplibs_check_method=pass_all | |
1558 | fi | |
1559 | ;; | |
1560 | ||
1561 | gnu*) | |
1562 | lt_cv_deplibs_check_method=pass_all | |
1563 | ;; | |
1564 | ||
1565 | hpux10.20*|hpux11*) | |
f5cc59a7 AO |
1566 | case $host_cpu in |
1567 | hppa*) | |
1568 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
1569 | lt_cv_file_magic_cmd=/usr/bin/file | |
1570 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1571 | ;; | |
1572 | ia64*) | |
1573 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
1574 | lt_cv_file_magic_cmd=/usr/bin/file | |
1575 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
1576 | ;; | |
1577 | esac | |
dedc4a53 JP |
1578 | ;; |
1579 | ||
1580 | irix5* | irix6*) | |
1581 | case $host_os in | |
1582 | irix5*) | |
1583 | # this will be overridden with pass_all, but let us keep it just in case | |
1584 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1585 | ;; | |
1586 | *) | |
1587 | case $LD in | |
1588 | *-32|*"-32 ") libmagic=32-bit;; | |
1589 | *-n32|*"-n32 ") libmagic=N32;; | |
1590 | *-64|*"-64 ") libmagic=64-bit;; | |
1591 | *) libmagic=never-match;; | |
1592 | esac | |
1593 | # this will be overridden with pass_all, but let us keep it just in case | |
1594 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
1595 | ;; | |
1596 | esac | |
1597 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1598 | lt_cv_deplibs_check_method=pass_all | |
1599 | ;; | |
1600 | ||
1601 | # This must be Linux ELF. | |
1602 | linux-gnu*) | |
1603 | case $host_cpu in | |
1604 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) | |
1605 | lt_cv_deplibs_check_method=pass_all ;; | |
1606 | *) | |
1607 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
1608 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
1609 | esac | |
1610 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
1611 | ;; | |
1612 | ||
1613 | netbsd*) | |
1614 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
1615 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
1616 | else | |
1617 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
1618 | fi | |
1619 | ;; | |
1620 | ||
1621 | newsos6) | |
1622 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
1623 | lt_cv_file_magic_cmd=/usr/bin/file | |
1624 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
1625 | ;; | |
1626 | ||
1627 | osf3* | osf4* | osf5*) | |
1628 | # this will be overridden with pass_all, but let us keep it just in case | |
1629 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1630 | lt_cv_file_magic_test_file=/shlib/libc.so | |
1631 | lt_cv_deplibs_check_method=pass_all | |
1632 | ;; | |
1633 | ||
1634 | sco3.2v5*) | |
1635 | lt_cv_deplibs_check_method=pass_all | |
1636 | ;; | |
1637 | ||
1638 | solaris*) | |
1639 | lt_cv_deplibs_check_method=pass_all | |
1640 | lt_cv_file_magic_test_file=/lib/libc.so | |
1641 | ;; | |
1642 | ||
1643 | sysv5uw[78]* | sysv4*uw2*) | |
1644 | lt_cv_deplibs_check_method=pass_all | |
1645 | ;; | |
1646 | ||
1647 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
1648 | case $host_vendor in | |
1649 | ncr) | |
1650 | lt_cv_deplibs_check_method=pass_all | |
1651 | ;; | |
1652 | motorola) | |
1653 | 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]' | |
1654 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1655 | ;; | |
1656 | esac | |
1657 | ;; | |
1658 | esac | |
1659 | ||
1660 | fi | |
1661 | ||
1662 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1663 | file_magic_cmd=$lt_cv_file_magic_cmd | |
1664 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1665 | ||
1666 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
233888d3 | 1667 | echo "configure:1668: checking for object suffix" >&5 |
dedc4a53 JP |
1668 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
1669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1670 | else | |
1671 | rm -f conftest* | |
1672 | echo 'int i = 1;' > conftest.$ac_ext | |
233888d3 | 1673 | if { (eval echo configure:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dedc4a53 JP |
1674 | for ac_file in conftest.*; do |
1675 | case $ac_file in | |
1676 | *.c) ;; | |
1677 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1678 | esac | |
1679 | done | |
1680 | else | |
1681 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1682 | fi | |
1683 | rm -f conftest* | |
1684 | fi | |
1685 | ||
1686 | echo "$ac_t""$ac_cv_objext" 1>&6 | |
1687 | OBJEXT=$ac_cv_objext | |
1688 | ac_objext=$ac_cv_objext | |
1689 | ||
dedc4a53 JP |
1690 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
1691 | ||
1692 | # Only perform the check for file, if the check method requires it | |
1693 | case $deplibs_check_method in | |
1694 | file_magic*) | |
1695 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
1696 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | |
233888d3 | 1697 | echo "configure:1698: checking for ${ac_tool_prefix}file" >&5 |
dedc4a53 JP |
1698 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
1699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1700 | else | |
1701 | case $MAGIC_CMD in | |
1702 | /*) | |
1703 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1704 | ;; | |
1705 | ?:/*) | |
1706 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1707 | ;; | |
1708 | *) | |
1709 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
1710 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1711 | ac_dummy="/usr/bin:$PATH" | |
1712 | for ac_dir in $ac_dummy; do | |
1713 | test -z "$ac_dir" && ac_dir=. | |
1714 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
1715 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
1716 | if test -n "$file_magic_test_file"; then | |
1717 | case $deplibs_check_method in | |
1718 | "file_magic "*) | |
1719 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
1720 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1721 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
1722 | egrep "$file_magic_regex" > /dev/null; then | |
1723 | : | |
1724 | else | |
1725 | cat <<EOF 1>&2 | |
1726 | ||
1727 | *** Warning: the command libtool uses to detect shared libraries, | |
1728 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1729 | *** The result is that libtool may fail to recognize shared libraries | |
1730 | *** as such. This will affect the creation of libtool libraries that | |
1731 | *** depend on shared libraries, but programs linked with such libtool | |
1732 | *** libraries will work regardless of this problem. Nevertheless, you | |
1733 | *** may want to report the problem to your system manager and/or to | |
1734 | *** bug-libtool@gnu.org | |
1735 | ||
1736 | EOF | |
1737 | fi ;; | |
1738 | esac | |
1739 | fi | |
1740 | break | |
1741 | fi | |
1742 | done | |
1743 | IFS="$ac_save_ifs" | |
1744 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
1745 | ;; | |
1746 | esac | |
1747 | fi | |
1748 | ||
1749 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1750 | if test -n "$MAGIC_CMD"; then | |
1751 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
1752 | else | |
1753 | echo "$ac_t""no" 1>&6 | |
1754 | fi | |
1755 | ||
1756 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
1757 | if test -n "$ac_tool_prefix"; then | |
1758 | echo $ac_n "checking for file""... $ac_c" 1>&6 | |
233888d3 | 1759 | echo "configure:1760: checking for file" >&5 |
dedc4a53 JP |
1760 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
1761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1762 | else | |
1763 | case $MAGIC_CMD in | |
1764 | /*) | |
1765 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1766 | ;; | |
1767 | ?:/*) | |
1768 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1769 | ;; | |
1770 | *) | |
1771 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
1772 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1773 | ac_dummy="/usr/bin:$PATH" | |
1774 | for ac_dir in $ac_dummy; do | |
1775 | test -z "$ac_dir" && ac_dir=. | |
1776 | if test -f $ac_dir/file; then | |
1777 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
1778 | if test -n "$file_magic_test_file"; then | |
1779 | case $deplibs_check_method in | |
1780 | "file_magic "*) | |
1781 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
1782 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1783 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
1784 | egrep "$file_magic_regex" > /dev/null; then | |
1785 | : | |
1786 | else | |
1787 | cat <<EOF 1>&2 | |
1788 | ||
1789 | *** Warning: the command libtool uses to detect shared libraries, | |
1790 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
1791 | *** The result is that libtool may fail to recognize shared libraries | |
1792 | *** as such. This will affect the creation of libtool libraries that | |
1793 | *** depend on shared libraries, but programs linked with such libtool | |
1794 | *** libraries will work regardless of this problem. Nevertheless, you | |
1795 | *** may want to report the problem to your system manager and/or to | |
1796 | *** bug-libtool@gnu.org | |
1797 | ||
1798 | EOF | |
1799 | fi ;; | |
1800 | esac | |
1801 | fi | |
1802 | break | |
1803 | fi | |
1804 | done | |
1805 | IFS="$ac_save_ifs" | |
1806 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
1807 | ;; | |
1808 | esac | |
1809 | fi | |
1810 | ||
1811 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1812 | if test -n "$MAGIC_CMD"; then | |
1813 | echo "$ac_t""$MAGIC_CMD" 1>&6 | |
1814 | else | |
1815 | echo "$ac_t""no" 1>&6 | |
1816 | fi | |
1817 | ||
1818 | else | |
1819 | MAGIC_CMD=: | |
1820 | fi | |
1821 | fi | |
1822 | ||
1823 | fi | |
1824 | ;; | |
1825 | esac | |
1826 | ||
1827 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1828 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1829 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
233888d3 | 1830 | echo "configure:1831: checking for $ac_word" >&5 |
dedc4a53 JP |
1831 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1833 | else | |
1834 | if test -n "$RANLIB"; then | |
1835 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1836 | else | |
1837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1838 | ac_dummy="$PATH" | |
1839 | for ac_dir in $ac_dummy; do | |
1840 | test -z "$ac_dir" && ac_dir=. | |
1841 | if test -f $ac_dir/$ac_word; then | |
1842 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1843 | break | |
1844 | fi | |
1845 | done | |
1846 | IFS="$ac_save_ifs" | |
1847 | fi | |
1848 | fi | |
1849 | RANLIB="$ac_cv_prog_RANLIB" | |
1850 | if test -n "$RANLIB"; then | |
1851 | echo "$ac_t""$RANLIB" 1>&6 | |
1852 | else | |
1853 | echo "$ac_t""no" 1>&6 | |
1854 | fi | |
1855 | ||
1856 | ||
1857 | if test -z "$ac_cv_prog_RANLIB"; then | |
1858 | if test -n "$ac_tool_prefix"; then | |
1859 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1860 | set dummy ranlib; ac_word=$2 | |
1861 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
233888d3 | 1862 | echo "configure:1863: checking for $ac_word" >&5 |
dedc4a53 JP |
1863 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1865 | else | |
1866 | if test -n "$RANLIB"; then | |
1867 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1868 | else | |
1869 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1870 | ac_dummy="$PATH" | |
1871 | for ac_dir in $ac_dummy; do | |
1872 | test -z "$ac_dir" && ac_dir=. | |
1873 | if test -f $ac_dir/$ac_word; then | |
1874 | ac_cv_prog_RANLIB="ranlib" | |
1875 | break | |
1876 | fi | |
1877 | done | |
1878 | IFS="$ac_save_ifs" | |
1879 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1880 | fi | |
1881 | fi | |
1882 | RANLIB="$ac_cv_prog_RANLIB" | |
1883 | if test -n "$RANLIB"; then | |
1884 | echo "$ac_t""$RANLIB" 1>&6 | |
1885 | else | |
1886 | echo "$ac_t""no" 1>&6 | |
1887 | fi | |
1888 | ||
1889 | else | |
1890 | RANLIB=":" | |
1891 | fi | |
1892 | fi | |
1893 | ||
1894 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1895 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1896 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
233888d3 | 1897 | echo "configure:1898: checking for $ac_word" >&5 |
dedc4a53 JP |
1898 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1899 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1900 | else | |
1901 | if test -n "$STRIP"; then | |
1902 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1903 | else | |
1904 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1905 | ac_dummy="$PATH" | |
1906 | for ac_dir in $ac_dummy; do | |
1907 | test -z "$ac_dir" && ac_dir=. | |
1908 | if test -f $ac_dir/$ac_word; then | |
1909 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1910 | break | |
1911 | fi | |
1912 | done | |
1913 | IFS="$ac_save_ifs" | |
1914 | fi | |
1915 | fi | |
1916 | STRIP="$ac_cv_prog_STRIP" | |
1917 | if test -n "$STRIP"; then | |
1918 | echo "$ac_t""$STRIP" 1>&6 | |
1919 | else | |
1920 | echo "$ac_t""no" 1>&6 | |
1921 | fi | |
1922 | ||
1923 | ||
1924 | if test -z "$ac_cv_prog_STRIP"; then | |
1925 | if test -n "$ac_tool_prefix"; then | |
1926 | # Extract the first word of "strip", so it can be a program name with args. | |
1927 | set dummy strip; ac_word=$2 | |
1928 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
233888d3 | 1929 | echo "configure:1930: checking for $ac_word" >&5 |
dedc4a53 JP |
1930 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
1931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1932 | else | |
1933 | if test -n "$STRIP"; then | |
1934 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1935 | else | |
1936 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1937 | ac_dummy="$PATH" | |
1938 | for ac_dir in $ac_dummy; do | |
1939 | test -z "$ac_dir" && ac_dir=. | |
1940 | if test -f $ac_dir/$ac_word; then | |
1941 | ac_cv_prog_STRIP="strip" | |
1942 | break | |
1943 | fi | |
1944 | done | |
1945 | IFS="$ac_save_ifs" | |
1946 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
1947 | fi | |
1948 | fi | |
1949 | STRIP="$ac_cv_prog_STRIP" | |
1950 | if test -n "$STRIP"; then | |
1951 | echo "$ac_t""$STRIP" 1>&6 | |
1952 | else | |
1953 | echo "$ac_t""no" 1>&6 | |
1954 | fi | |
1955 | ||
1956 | else | |
1957 | STRIP=":" | |
1958 | fi | |
1959 | fi | |
1960 | ||
1961 | ||
1962 | # Check for any special flags to pass to ltconfig. | |
1963 | libtool_flags="--cache-file=$cache_file" | |
1964 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
1965 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
1966 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
1967 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
1968 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
1969 | ||
1970 | ||
1971 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1972 | if test "${enable_libtool_lock+set}" = set; then | |
1973 | enableval="$enable_libtool_lock" | |
1974 | : | |
1975 | fi | |
1976 | ||
1977 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
1978 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
1979 | ||
1980 | # Check whether --with-pic or --without-pic was given. | |
1981 | if test "${with_pic+set}" = set; then | |
1982 | withval="$with_pic" | |
1983 | pic_mode="$withval" | |
1984 | else | |
1985 | pic_mode=default | |
1986 | fi | |
1987 | ||
1988 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
1989 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
1990 | ||
1991 | # Some flags need to be propagated to the compiler or linker for good | |
1992 | # libtool support. | |
1993 | case $host in | |
1994 | *-*-irix6*) | |
1995 | # Find out which ABI we are using. | |
233888d3 AO |
1996 | echo '#line 1997 "configure"' > conftest.$ac_ext |
1997 | if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3343fdd2 AO |
1998 | if test "$lt_cv_prog_gnu_ld" = yes; then |
1999 | case `/usr/bin/file conftest.$ac_objext` in | |
2000 | *32-bit*) | |
2001 | LD="${LD-ld} -melf32bsmip" | |
2002 | ;; | |
2003 | *N32*) | |
2004 | LD="${LD-ld} -melf32bmipn32" | |
2005 | ;; | |
2006 | *64-bit*) | |
2007 | LD="${LD-ld} -melf64bmip" | |
2008 | ;; | |
2009 | esac | |
2010 | else | |
dedc4a53 JP |
2011 | case `/usr/bin/file conftest.$ac_objext` in |
2012 | *32-bit*) | |
2013 | LD="${LD-ld} -32" | |
2014 | ;; | |
2015 | *N32*) | |
2016 | LD="${LD-ld} -n32" | |
2017 | ;; | |
2018 | *64-bit*) | |
2019 | LD="${LD-ld} -64" | |
2020 | ;; | |
2021 | esac | |
3343fdd2 | 2022 | fi |
dedc4a53 JP |
2023 | fi |
2024 | rm -rf conftest* | |
2025 | ;; | |
2026 | ||
f5cc59a7 AO |
2027 | ia64-*-hpux*) |
2028 | # Find out which ABI we are using. | |
2029 | echo 'int i;' > conftest.$ac_ext | |
3343fdd2 | 2030 | if { (eval echo configure:2031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f5cc59a7 AO |
2031 | case "`/usr/bin/file conftest.o`" in |
2032 | *ELF-32*) | |
2033 | HPUX_IA64_MODE="32" | |
2034 | ;; | |
2035 | *ELF-64*) | |
2036 | HPUX_IA64_MODE="64" | |
2037 | ;; | |
2038 | esac | |
2039 | fi | |
2040 | rm -rf conftest* | |
2041 | ;; | |
2042 | ||
4977bab6 ZW |
2043 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
2044 | # Find out which ABI we are using. | |
2045 | echo 'int i;' > conftest.$ac_ext | |
3343fdd2 | 2046 | if { (eval echo configure:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4977bab6 ZW |
2047 | case "`/usr/bin/file conftest.o`" in |
2048 | *32-bit*) | |
2049 | case $host in | |
2050 | x86_64-*linux*) | |
2051 | LD="${LD-ld} -m elf_i386" | |
2052 | ;; | |
2053 | ppc64-*linux*) | |
2054 | LD="${LD-ld} -m elf32ppclinux" | |
2055 | ;; | |
2056 | s390x-*linux*) | |
2057 | LD="${LD-ld} -m elf_s390" | |
2058 | ;; | |
2059 | sparc64-*linux*) | |
2060 | LD="${LD-ld} -m elf32_sparc" | |
2061 | ;; | |
2062 | esac | |
2063 | ;; | |
2064 | *64-bit*) | |
2065 | case $host in | |
2066 | x86_64-*linux*) | |
2067 | LD="${LD-ld} -m elf_x86_64" | |
2068 | ;; | |
2069 | ppc*-*linux*|powerpc*-*linux*) | |
2070 | LD="${LD-ld} -m elf64ppc" | |
2071 | ;; | |
2072 | s390*-*linux*) | |
2073 | LD="${LD-ld} -m elf64_s390" | |
2074 | ;; | |
2075 | sparc*-*linux*) | |
2076 | LD="${LD-ld} -m elf64_sparc" | |
2077 | ;; | |
2078 | esac | |
2079 | ;; | |
2080 | esac | |
2081 | fi | |
2082 | rm -rf conftest* | |
2083 | ;; | |
2084 | ||
dedc4a53 JP |
2085 | *-*-sco3.2v5*) |
2086 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2087 | SAVE_CFLAGS="$CFLAGS" | |
2088 | CFLAGS="$CFLAGS -belf" | |
2089 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
3343fdd2 | 2090 | echo "configure:2091: checking whether the C compiler needs -belf" >&5 |
dedc4a53 JP |
2091 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2093 | else | |
2094 | ||
2095 | ac_ext=c | |
2096 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2097 | ac_cpp='$CPP $CPPFLAGS' | |
2098 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2099 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2100 | cross_compiling=$ac_cv_prog_cc_cross | |
2101 | ||
2102 | cat > conftest.$ac_ext <<EOF | |
3343fdd2 | 2103 | #line 2104 "configure" |
dedc4a53 JP |
2104 | #include "confdefs.h" |
2105 | ||
2106 | int main() { | |
2107 | ||
2108 | ; return 0; } | |
2109 | EOF | |
3343fdd2 | 2110 | if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
dedc4a53 JP |
2111 | rm -rf conftest* |
2112 | lt_cv_cc_needs_belf=yes | |
2113 | else | |
2114 | echo "configure: failed program was:" >&5 | |
2115 | cat conftest.$ac_ext >&5 | |
2116 | rm -rf conftest* | |
2117 | lt_cv_cc_needs_belf=no | |
2118 | fi | |
2119 | rm -f conftest* | |
2120 | ac_ext=c | |
2121 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2122 | ac_cpp='$CPP $CPPFLAGS' | |
2123 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2124 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2125 | cross_compiling=$ac_cv_prog_cc_cross | |
2126 | ||
2127 | fi | |
2128 | ||
2129 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2130 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2131 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2132 | CFLAGS="$SAVE_CFLAGS" | |
2133 | fi | |
2134 | ;; | |
2135 | ||
2136 | ||
2137 | esac | |
2138 | ||
2139 | ||
2140 | # Save cache, so that ltconfig can load it | |
2141 | cat > confcache <<\EOF | |
2142 | # This file is a shell script that caches the results of configure | |
2143 | # tests run on this system so they can be shared between configure | |
2144 | # scripts and configure runs. It is not useful on other systems. | |
2145 | # If it contains results you don't want to keep, you may remove or edit it. | |
2146 | # | |
2147 | # By default, configure uses ./config.cache as the cache file, | |
2148 | # creating it if it does not exist already. You can give configure | |
2149 | # the --cache-file=FILE option to use a different cache file; that is | |
2150 | # what configure does when it calls configure scripts in | |
2151 | # subdirectories, so they share the cache. | |
2152 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2153 | # config.status only pays attention to the cache file if you give it the | |
2154 | # --recheck option to rerun configure. | |
2155 | # | |
2156 | EOF | |
2157 | # The following way of writing the cache mishandles newlines in values, | |
2158 | # but we know of no workaround that is simple, portable, and efficient. | |
2159 | # So, don't put newlines in cache variables' values. | |
2160 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2161 | # and sets the high bit in the cache file unless we assign to the vars. | |
2162 | (set) 2>&1 | | |
2163 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2164 | *ac_space=\ *) | |
2165 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2166 | # turns \\\\ into \\, and sed turns \\ into \). | |
2167 | sed -n \ | |
2168 | -e "s/'/'\\\\''/g" \ | |
2169 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2170 | ;; | |
2171 | *) | |
2172 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2173 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2174 | ;; | |
2175 | esac >> confcache | |
2176 | if cmp -s $cache_file confcache; then | |
2177 | : | |
2178 | else | |
2179 | if test -w $cache_file; then | |
2180 | echo "updating cache $cache_file" | |
2181 | cat confcache > $cache_file | |
2182 | else | |
2183 | echo "not updating unwritable cache $cache_file" | |
2184 | fi | |
2185 | fi | |
2186 | rm -f confcache | |
2187 | ||
2188 | ||
2189 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
2190 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
2191 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
2192 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
2193 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2194 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2195 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
2196 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
2197 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
2198 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
2199 | ||
2200 | # Reload cache, that may have been modified by ltconfig | |
2201 | if test -r "$cache_file"; then | |
2202 | echo "loading cache $cache_file" | |
2203 | . $cache_file | |
2204 | else | |
2205 | echo "creating cache $cache_file" | |
2206 | > $cache_file | |
2207 | fi | |
2208 | ||
2209 | ||
2210 | # This can be used to rebuild libtool when needed | |
2211 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
2212 | ||
2213 | # Always use our own libtool. | |
2214 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2215 | ||
2216 | # Redirect the config.log output again, so that the ltconfig log is not | |
2217 | # clobbered by the next message. | |
2218 | exec 5>>./config.log | |
2219 | ||
2220 | ||
2221 | ||
2222 | ||
2223 | ||
2224 | ||
81fea2b1 JL |
2225 | |
2226 | test "$AR" || AR=ar | |
2227 | ||
2228 | if test "$RANLIB"; then : | |
2229 | ||
81fea2b1 | 2230 | else |
b1daa215 DL |
2231 | # Extract the first word of "ranlib", so it can be a program name with args. |
2232 | set dummy ranlib; ac_word=$2 | |
2233 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3343fdd2 | 2234 | echo "configure:2235: checking for $ac_word" >&5 |
b1daa215 | 2235 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
81fea2b1 JL |
2236 | echo $ac_n "(cached) $ac_c" 1>&6 |
2237 | else | |
b1daa215 DL |
2238 | if test -n "$RANLIB"; then |
2239 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
81fea2b1 | 2240 | else |
411a2e59 JL |
2241 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2242 | ac_dummy="$PATH" | |
2243 | for ac_dir in $ac_dummy; do | |
b1daa215 DL |
2244 | test -z "$ac_dir" && ac_dir=. |
2245 | if test -f $ac_dir/$ac_word; then | |
2246 | ac_cv_prog_RANLIB="ranlib" | |
2247 | break | |
2248 | fi | |
2249 | done | |
2250 | IFS="$ac_save_ifs" | |
2251 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
81fea2b1 | 2252 | fi |
81fea2b1 | 2253 | fi |
b1daa215 DL |
2254 | RANLIB="$ac_cv_prog_RANLIB" |
2255 | if test -n "$RANLIB"; then | |
2256 | echo "$ac_t""$RANLIB" 1>&6 | |
81fea2b1 JL |
2257 | else |
2258 | echo "$ac_t""no" 1>&6 | |
b1daa215 | 2259 | fi |
81fea2b1 | 2260 | |
81fea2b1 | 2261 | fi |
b1daa215 DL |
2262 | # Find a good install program. We prefer a C program (faster), |
2263 | # so one script is as good as another. But avoid the broken or | |
2264 | # incompatible versions: | |
2265 | # SysV /etc/install, /usr/sbin/install | |
2266 | # SunOS /usr/etc/install | |
2267 | # IRIX /sbin/install | |
2268 | # AIX /bin/install | |
e6e86071 | 2269 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
b1daa215 DL |
2270 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2271 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2272 | # ./install, which can be erroneously created by make from ./install.sh. | |
2273 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
3343fdd2 | 2274 | echo "configure:2275: checking for a BSD compatible install" >&5 |
b1daa215 DL |
2275 | if test -z "$INSTALL"; then |
2276 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
81fea2b1 | 2278 | else |
411a2e59 | 2279 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
b1daa215 DL |
2280 | for ac_dir in $PATH; do |
2281 | # Account for people who put trailing slashes in PATH elements. | |
2282 | case "$ac_dir/" in | |
2283 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2284 | *) | |
2285 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
e6e86071 KG |
2286 | # Don't use installbsd from OSF since it installs stuff as root |
2287 | # by default. | |
2288 | for ac_prog in ginstall scoinst install; do | |
b1daa215 DL |
2289 | if test -f $ac_dir/$ac_prog; then |
2290 | if test $ac_prog = install && | |
2291 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2292 | # AIX install. It has an incompatible calling convention. | |
2293 | : | |
2294 | else | |
2295 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2296 | break 2 | |
2297 | fi | |
2298 | fi | |
2299 | done | |
2300 | ;; | |
2301 | esac | |
2302 | done | |
2303 | IFS="$ac_save_IFS" | |
81fea2b1 JL |
2304 | |
2305 | fi | |
b1daa215 DL |
2306 | if test "${ac_cv_path_install+set}" = set; then |
2307 | INSTALL="$ac_cv_path_install" | |
2308 | else | |
2309 | # As a last resort, use the slow shell script. We don't cache a | |
2310 | # path for INSTALL within a source directory, because that will | |
2311 | # break other packages using the cache if that directory is | |
2312 | # removed, or if the path is relative. | |
2313 | INSTALL="$ac_install_sh" | |
2314 | fi | |
81fea2b1 | 2315 | fi |
b1daa215 | 2316 | echo "$ac_t""$INSTALL" 1>&6 |
81fea2b1 | 2317 | |
b1daa215 DL |
2318 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2319 | # It thinks the first close brace ends the variable substitution. | |
2320 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81fea2b1 | 2321 | |
411a2e59 JL |
2322 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2323 | ||
b1daa215 DL |
2324 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2325 | ||
2326 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
3343fdd2 | 2327 | echo "configure:2328: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
b1daa215 DL |
2328 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
2329 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
81fea2b1 JL |
2330 | echo $ac_n "(cached) $ac_c" 1>&6 |
2331 | else | |
b1daa215 DL |
2332 | cat > conftestmake <<\EOF |
2333 | all: | |
2334 | @echo 'ac_maketemp="${MAKE}"' | |
81fea2b1 | 2335 | EOF |
b1daa215 DL |
2336 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2337 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
2338 | if test -n "$ac_maketemp"; then | |
2339 | eval ac_cv_prog_make_${ac_make}_set=yes | |
81fea2b1 | 2340 | else |
b1daa215 | 2341 | eval ac_cv_prog_make_${ac_make}_set=no |
81fea2b1 | 2342 | fi |
b1daa215 | 2343 | rm -f conftestmake |
81fea2b1 | 2344 | fi |
b1daa215 | 2345 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
81fea2b1 | 2346 | echo "$ac_t""yes" 1>&6 |
b1daa215 | 2347 | SET_MAKE= |
81fea2b1 JL |
2348 | else |
2349 | echo "$ac_t""no" 1>&6 | |
b1daa215 | 2350 | SET_MAKE="MAKE=${MAKE-make}" |
81fea2b1 JL |
2351 | fi |
2352 | ||
81fea2b1 | 2353 | |
b1daa215 DL |
2354 | # Sanity check for the cross-compilation case: |
2355 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
3343fdd2 | 2356 | echo "configure:2357: checking how to run the C preprocessor" >&5 |
b1daa215 DL |
2357 | # On Suns, sometimes $CPP names a directory. |
2358 | if test -n "$CPP" && test -d "$CPP"; then | |
2359 | CPP= | |
81fea2b1 | 2360 | fi |
b1daa215 DL |
2361 | if test -z "$CPP"; then |
2362 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
81fea2b1 JL |
2363 | echo $ac_n "(cached) $ac_c" 1>&6 |
2364 | else | |
b1daa215 DL |
2365 | # This must be in double quotes, not single quotes, because CPP may get |
2366 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2367 | CPP="${CC-cc} -E" | |
2368 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2369 | # not just through cpp. | |
81fea2b1 | 2370 | cat > conftest.$ac_ext <<EOF |
3343fdd2 | 2371 | #line 2372 "configure" |
81fea2b1 | 2372 | #include "confdefs.h" |
b1daa215 DL |
2373 | #include <assert.h> |
2374 | Syntax Error | |
81fea2b1 | 2375 | EOF |
b1daa215 | 2376 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3343fdd2 | 2377 | { (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
411a2e59 | 2378 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
b1daa215 DL |
2379 | if test -z "$ac_err"; then |
2380 | : | |
81fea2b1 | 2381 | else |
b1daa215 | 2382 | echo "$ac_err" >&5 |
81fea2b1 JL |
2383 | echo "configure: failed program was:" >&5 |
2384 | cat conftest.$ac_ext >&5 | |
2385 | rm -rf conftest* | |
b1daa215 DL |
2386 | CPP="${CC-cc} -E -traditional-cpp" |
2387 | cat > conftest.$ac_ext <<EOF | |
3343fdd2 | 2388 | #line 2389 "configure" |
411a2e59 JL |
2389 | #include "confdefs.h" |
2390 | #include <assert.h> | |
2391 | Syntax Error | |
2392 | EOF | |
2393 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3343fdd2 | 2394 | { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
411a2e59 JL |
2395 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2396 | if test -z "$ac_err"; then | |
2397 | : | |
2398 | else | |
2399 | echo "$ac_err" >&5 | |
2400 | echo "configure: failed program was:" >&5 | |
2401 | cat conftest.$ac_ext >&5 | |
2402 | rm -rf conftest* | |
2403 | CPP="${CC-cc} -nologo -E" | |
2404 | cat > conftest.$ac_ext <<EOF | |
3343fdd2 | 2405 | #line 2406 "configure" |
81fea2b1 | 2406 | #include "confdefs.h" |
b1daa215 DL |
2407 | #include <assert.h> |
2408 | Syntax Error | |
81fea2b1 | 2409 | EOF |
b1daa215 | 2410 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3343fdd2 | 2411 | { (eval echo configure:2412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
411a2e59 | 2412 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
b1daa215 DL |
2413 | if test -z "$ac_err"; then |
2414 | : | |
81fea2b1 | 2415 | else |
b1daa215 | 2416 | echo "$ac_err" >&5 |
81fea2b1 JL |
2417 | echo "configure: failed program was:" >&5 |
2418 | cat conftest.$ac_ext >&5 | |
2419 | rm -rf conftest* | |
b1daa215 | 2420 | CPP=/lib/cpp |
81fea2b1 JL |
2421 | fi |
2422 | rm -f conftest* | |
81fea2b1 | 2423 | fi |
411a2e59 JL |
2424 | rm -f conftest* |
2425 | fi | |
b1daa215 DL |
2426 | rm -f conftest* |
2427 | ac_cv_prog_CPP="$CPP" | |
2428 | fi | |
2429 | CPP="$ac_cv_prog_CPP" | |
81fea2b1 | 2430 | else |
b1daa215 | 2431 | ac_cv_prog_CPP="$CPP" |
81fea2b1 | 2432 | fi |
b1daa215 | 2433 | echo "$ac_t""$CPP" 1>&6 |
81fea2b1 | 2434 | |
b1daa215 DL |
2435 | ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'` |
2436 | echo $ac_n "checking for stdio.h""... $ac_c" 1>&6 | |
3343fdd2 | 2437 | echo "configure:2438: checking for stdio.h" >&5 |
b1daa215 | 2438 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2731cc56 JL |
2439 | echo $ac_n "(cached) $ac_c" 1>&6 |
2440 | else | |
2441 | cat > conftest.$ac_ext <<EOF | |
3343fdd2 | 2442 | #line 2443 "configure" |
2731cc56 | 2443 | #include "confdefs.h" |
b1daa215 | 2444 | #include <stdio.h> |
2731cc56 | 2445 | EOF |
b1daa215 | 2446 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3343fdd2 | 2447 | { (eval echo configure:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
411a2e59 | 2448 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
b1daa215 | 2449 | if test -z "$ac_err"; then |
2731cc56 | 2450 | rm -rf conftest* |
b1daa215 | 2451 | eval "ac_cv_header_$ac_safe=yes" |
2731cc56 | 2452 | else |
b1daa215 | 2453 | echo "$ac_err" >&5 |
2731cc56 JL |
2454 | echo "configure: failed program was:" >&5 |
2455 | cat conftest.$ac_ext >&5 | |
2456 | rm -rf conftest* | |
b1daa215 | 2457 | eval "ac_cv_header_$ac_safe=no" |
2731cc56 JL |
2458 | fi |
2459 | rm -f conftest* | |
2460 | fi | |
b1daa215 | 2461 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
2731cc56 | 2462 | echo "$ac_t""yes" 1>&6 |
b1daa215 | 2463 | : |
2731cc56 JL |
2464 | else |
2465 | echo "$ac_t""no" 1>&6 | |
b1daa215 DL |
2466 | { echo "configure: error: Can't find stdio.h. |
2467 | You must have a usable C system for the target already installed, at least | |
2468 | including headers and, preferably, the library, before you can configure | |
2469 | the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c', | |
2470 | then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; } | |
2731cc56 | 2471 | fi |
81fea2b1 | 2472 | |
81fea2b1 | 2473 | |
3eb10f8a | 2474 | echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6 |
3343fdd2 | 2475 | echo "configure:2476: checking for built-in g77 integer types" >&5 |
3eb10f8a | 2476 | if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then |
81fea2b1 JL |
2477 | echo $ac_n "(cached) $ac_c" 1>&6 |
2478 | else | |
81fea2b1 | 2479 | cat > conftest.$ac_ext <<EOF |
3343fdd2 | 2480 | #line 2481 "configure" |
81fea2b1 | 2481 | #include "confdefs.h" |
81fea2b1 | 2482 | |
3eb10f8a CD |
2483 | int main() { |
2484 | __g77_integer g77i; | |
2485 | __g77_uinteger g77ui; | |
2486 | __g77_longint g77l; | |
2487 | __g77_ulongint g77ul; | |
2488 | ; return 0; } | |
81fea2b1 | 2489 | EOF |
3343fdd2 | 2490 | if { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81fea2b1 | 2491 | rm -rf conftest* |
3eb10f8a | 2492 | libf2c_cv_has_g77_builtin_types=yes |
81fea2b1 | 2493 | else |
3eb10f8a CD |
2494 | echo "configure: failed program was:" >&5 |
2495 | cat conftest.$ac_ext >&5 | |
81fea2b1 | 2496 | rm -rf conftest* |
3eb10f8a | 2497 | libf2c_cv_has_g77_builtin_types=no |
81fea2b1 JL |
2498 | fi |
2499 | rm -f conftest* | |
81fea2b1 JL |
2500 | fi |
2501 | ||
3eb10f8a CD |
2502 | echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6 |
2503 | if test $libf2c_cv_has_g77_builtin_types = no; then | |
2504 | { echo "configure: error: gcc doesn't define all of the built in types __g77_integer, | |
2505 | __g77_uinteger, __g77_longint, and __g77_ulongint. You may not be using | |
2506 | a new enough version of gcc, or your target may not have type sizes which | |
2507 | accommodate those types." 1>&2; exit 1; } | |
81fea2b1 JL |
2508 | fi |
2509 | ||
81fea2b1 JL |
2510 | # avoid confusion in case the `makefile's from the f2c distribution have |
2511 | # got put here | |
2512 | test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori | |
2513 | test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori | |
2514 | test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori | |
2515 | ||
b1daa215 | 2516 | subdirs="libU77 libI77 libF77" |
81fea2b1 | 2517 | |
c007ef46 | 2518 | # Do Makefile first since g2c.h depends on it and shouldn't get an |
c60f1599 DL |
2519 | # earlier timestamp. Of course, it does when the multilib gunk below |
2520 | # edits Makefile, sigh; see additional touch below. | |
81fea2b1 JL |
2521 | trap '' 1 2 15 |
2522 | cat > confcache <<\EOF | |
2523 | # This file is a shell script that caches the results of configure | |
2524 | # tests run on this system so they can be shared between configure | |
2525 | # scripts and configure runs. It is not useful on other systems. | |
2526 | # If it contains results you don't want to keep, you may remove or edit it. | |
2527 | # | |
2528 | # By default, configure uses ./config.cache as the cache file, | |
2529 | # creating it if it does not exist already. You can give configure | |
2530 | # the --cache-file=FILE option to use a different cache file; that is | |
2531 | # what configure does when it calls configure scripts in | |
2532 | # subdirectories, so they share the cache. | |
2533 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2534 | # config.status only pays attention to the cache file if you give it the | |
2535 | # --recheck option to rerun configure. | |
2536 | # | |
2537 | EOF | |
2538 | # The following way of writing the cache mishandles newlines in values, | |
2539 | # but we know of no workaround that is simple, portable, and efficient. | |
2540 | # So, don't put newlines in cache variables' values. | |
2541 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2542 | # and sets the high bit in the cache file unless we assign to the vars. | |
2543 | (set) 2>&1 | | |
411a2e59 | 2544 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
81fea2b1 JL |
2545 | *ac_space=\ *) |
2546 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2547 | # turns \\\\ into \\, and sed turns \\ into \). | |
2548 | sed -n \ | |
2549 | -e "s/'/'\\\\''/g" \ | |
2550 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2551 | ;; | |
2552 | *) | |
2553 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2554 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2555 | ;; | |
2556 | esac >> confcache | |
2557 | if cmp -s $cache_file confcache; then | |
2558 | : | |
2559 | else | |
2560 | if test -w $cache_file; then | |
2561 | echo "updating cache $cache_file" | |
2562 | cat confcache > $cache_file | |
2563 | else | |
2564 | echo "not updating unwritable cache $cache_file" | |
2565 | fi | |
2566 | fi | |
2567 | rm -f confcache | |
2568 | ||
2569 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2570 | ||
2571 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2572 | # Let make expand exec_prefix. | |
2573 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2574 | ||
2575 | # Any assignment to VPATH causes Sun make to only execute | |
2576 | # the first set of double-colon rules, so remove it if not needed. | |
2577 | # If there is a colon in the path, we need to keep it. | |
2578 | if test "x$srcdir" = x.; then | |
2579 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2580 | fi | |
2581 | ||
2582 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2583 | ||
2584 | # Transform confdefs.h into DEFS. | |
2585 | # Protect against shell expansion while executing Makefile rules. | |
2586 | # Protect against Makefile macro expansion. | |
233888d3 AO |
2587 | # |
2588 | # If the first sed substitution is executed (which looks for macros that | |
2589 | # take arguments), then we branch to the quote section. Otherwise, | |
2590 | # look for a macro that doesn't take arguments. | |
2591 | cat >confdef2opt.sed <<\_ACEOF | |
2592 | t clear | |
2593 | : clear | |
2594 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
2595 | t quote | |
2596 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
2597 | t quote | |
2598 | d | |
2599 | : quote | |
2600 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
2601 | s,\[,\\&,g | |
2602 | s,\],\\&,g | |
2603 | s,\$,$$,g | |
2604 | p | |
2605 | _ACEOF | |
2606 | # We use echo to avoid assuming a particular line-breaking character. | |
2607 | # The extra dot is to prevent the shell from consuming trailing | |
2608 | # line-breaks from the sub-command output. A line-break within | |
2609 | # single-quotes doesn't work because, if this script is created in a | |
2610 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
2611 | # would break. | |
2612 | ac_LF_and_DOT=`echo; echo .` | |
2613 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
2614 | rm -f confdef2opt.sed | |
81fea2b1 JL |
2615 | |
2616 | ||
2617 | # Without the "./", some shells look in PATH for config.status. | |
2618 | : ${CONFIG_STATUS=./config.status} | |
2619 | ||
2620 | echo creating $CONFIG_STATUS | |
2621 | rm -f $CONFIG_STATUS | |
2622 | cat > $CONFIG_STATUS <<EOF | |
2623 | #! /bin/sh | |
2624 | # Generated automatically by configure. | |
2625 | # Run this file to recreate the current configuration. | |
2626 | # This directory was configured as follows, | |
2627 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2628 | # | |
2629 | # $0 $ac_configure_args | |
2630 | # | |
2631 | # Compiler output produced by configure, useful for debugging | |
2632 | # configure, is in ./config.log if it exists. | |
2633 | ||
2634 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2635 | for ac_option | |
2636 | do | |
2637 | case "\$ac_option" in | |
2638 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2639 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2640 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2641 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
411a2e59 | 2642 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
81fea2b1 JL |
2643 | exit 0 ;; |
2644 | -help | --help | --hel | --he | --h) | |
2645 | echo "\$ac_cs_usage"; exit 0 ;; | |
2646 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2647 | esac | |
2648 | done | |
2649 | ||
2650 | ac_given_srcdir=$srcdir | |
b1daa215 | 2651 | ac_given_INSTALL="$INSTALL" |
81fea2b1 | 2652 | |
c007ef46 | 2653 | trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
81fea2b1 JL |
2654 | EOF |
2655 | cat >> $CONFIG_STATUS <<EOF | |
2656 | ||
2657 | # Protect against being on the right side of a sed subst in config.status. | |
2658 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2659 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2660 | $ac_vpsub | |
2661 | $extrasub | |
e6e86071 | 2662 | s%@SHELL@%$SHELL%g |
81fea2b1 JL |
2663 | s%@CFLAGS@%$CFLAGS%g |
2664 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2665 | s%@CXXFLAGS@%$CXXFLAGS%g | |
411a2e59 | 2666 | s%@FFLAGS@%$FFLAGS%g |
81fea2b1 JL |
2667 | s%@DEFS@%$DEFS%g |
2668 | s%@LDFLAGS@%$LDFLAGS%g | |
2669 | s%@LIBS@%$LIBS%g | |
2670 | s%@exec_prefix@%$exec_prefix%g | |
2671 | s%@prefix@%$prefix%g | |
2672 | s%@program_transform_name@%$program_transform_name%g | |
2673 | s%@bindir@%$bindir%g | |
2674 | s%@sbindir@%$sbindir%g | |
2675 | s%@libexecdir@%$libexecdir%g | |
2676 | s%@datadir@%$datadir%g | |
2677 | s%@sysconfdir@%$sysconfdir%g | |
2678 | s%@sharedstatedir@%$sharedstatedir%g | |
2679 | s%@localstatedir@%$localstatedir%g | |
2680 | s%@libdir@%$libdir%g | |
2681 | s%@includedir@%$includedir%g | |
2682 | s%@oldincludedir@%$oldincludedir%g | |
2683 | s%@infodir@%$infodir%g | |
2684 | s%@mandir@%$mandir%g | |
aebb8c22 | 2685 | s%@toplevel_srcdir@%$toplevel_srcdir%g |
dedc4a53 JP |
2686 | s%@host@%$host%g |
2687 | s%@host_alias@%$host_alias%g | |
2688 | s%@host_cpu@%$host_cpu%g | |
2689 | s%@host_vendor@%$host_vendor%g | |
2690 | s%@host_os@%$host_os%g | |
ceb5e20f GK |
2691 | s%@target@%$target%g |
2692 | s%@target_alias@%$target_alias%g | |
2693 | s%@target_cpu@%$target_cpu%g | |
2694 | s%@target_vendor@%$target_vendor%g | |
2695 | s%@target_os@%$target_os%g | |
dedc4a53 JP |
2696 | s%@build@%$build%g |
2697 | s%@build_alias@%$build_alias%g | |
2698 | s%@build_cpu@%$build_cpu%g | |
2699 | s%@build_vendor@%$build_vendor%g | |
2700 | s%@build_os@%$build_os%g | |
ceb5e20f GK |
2701 | s%@glibcpp_builddir@%$glibcpp_builddir%g |
2702 | s%@glibcpp_srcdir@%$glibcpp_srcdir%g | |
dedc4a53 | 2703 | s%@LN_S@%$LN_S%g |
ceb5e20f GK |
2704 | s%@CC@%$CC%g |
2705 | s%@AS@%$AS%g | |
dedc4a53 | 2706 | s%@AR@%$AR%g |
ceb5e20f | 2707 | s%@RANLIB@%$RANLIB%g |
b1daa215 | 2708 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
411a2e59 | 2709 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
b1daa215 | 2710 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
ceb5e20f | 2711 | s%@EXEEXT@%$EXEEXT%g |
6174dcf3 | 2712 | s%@gcc_version@%$gcc_version%g |
f1943b77 | 2713 | s%@gcc_version_trigger@%$gcc_version_trigger%g |
ceb5e20f GK |
2714 | s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g |
2715 | s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g | |
2716 | s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g | |
2717 | s%@OBJEXT@%$OBJEXT%g | |
2718 | s%@STRIP@%$STRIP%g | |
2719 | s%@LIBTOOL@%$LIBTOOL%g | |
2720 | s%@SET_MAKE@%$SET_MAKE%g | |
2721 | s%@CPP@%$CPP%g | |
81fea2b1 JL |
2722 | s%@subdirs@%$subdirs%g |
2723 | ||
2724 | CEOF | |
2725 | EOF | |
2726 | ||
2727 | cat >> $CONFIG_STATUS <<\EOF | |
2728 | ||
2729 | # Split the substitutions into bite-sized pieces for seds with | |
2730 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2731 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2732 | ac_file=1 # Number of current file. | |
2733 | ac_beg=1 # First line for current file. | |
2734 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2735 | ac_more_lines=: | |
2736 | ac_sed_cmds="" | |
2737 | while $ac_more_lines; do | |
2738 | if test $ac_beg -gt 1; then | |
2739 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2740 | else | |
2741 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2742 | fi | |
2743 | if test ! -s conftest.s$ac_file; then | |
2744 | ac_more_lines=false | |
2745 | rm -f conftest.s$ac_file | |
2746 | else | |
2747 | if test -z "$ac_sed_cmds"; then | |
2748 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2749 | else | |
2750 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2751 | fi | |
2752 | ac_file=`expr $ac_file + 1` | |
2753 | ac_beg=$ac_end | |
2754 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2755 | fi | |
2756 | done | |
2757 | if test -z "$ac_sed_cmds"; then | |
2758 | ac_sed_cmds=cat | |
2759 | fi | |
2760 | EOF | |
2761 | ||
2762 | cat >> $CONFIG_STATUS <<EOF | |
2763 | ||
c007ef46 | 2764 | CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"} |
81fea2b1 JL |
2765 | EOF |
2766 | cat >> $CONFIG_STATUS <<\EOF | |
2767 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2768 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2769 | case "$ac_file" in | |
2770 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2771 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2772 | *) ac_file_in="${ac_file}.in" ;; | |
2773 | esac | |
2774 | ||
2775 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
2776 | ||
2777 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2778 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2779 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2780 | # The file is in a subdirectory. | |
2781 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2782 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
2783 | # A "../" for each directory in $ac_dir_suffix. | |
2784 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2785 | else | |
2786 | ac_dir_suffix= ac_dots= | |
2787 | fi | |
2788 | ||
2789 | case "$ac_given_srcdir" in | |
2790 | .) srcdir=. | |
2791 | if test -z "$ac_dots"; then top_srcdir=. | |
2792 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2793 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2794 | *) # Relative path. | |
2795 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2796 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2797 | esac | |
2798 | ||
b1daa215 DL |
2799 | case "$ac_given_INSTALL" in |
2800 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2801 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2802 | esac | |
81fea2b1 JL |
2803 | |
2804 | echo creating "$ac_file" | |
2805 | rm -f "$ac_file" | |
2806 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2807 | case "$ac_file" in | |
2808 | *Makefile*) ac_comsub="1i\\ | |
2809 | # $configure_input" ;; | |
2810 | *) ac_comsub= ;; | |
2811 | esac | |
2812 | ||
2813 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
2814 | sed -e "$ac_comsub | |
2815 | s%@configure_input@%$configure_input%g | |
2816 | s%@srcdir@%$srcdir%g | |
2817 | s%@top_srcdir@%$top_srcdir%g | |
b1daa215 | 2818 | s%@INSTALL@%$INSTALL%g |
81fea2b1 JL |
2819 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
2820 | fi; done | |
2821 | rm -f conftest.s* | |
2822 | ||
2823 | EOF | |
2824 | cat >> $CONFIG_STATUS <<EOF | |
ab300375 RL |
2825 | srcdir=${srcdir} |
2826 | host=${host} | |
2827 | target=${target} | |
2828 | with_target_subdir=${with_target_subdir} | |
2829 | with_multisubdir=${with_multisubdir} | |
2830 | ac_configure_args="--enable-multilib ${ac_configure_args}" | |
ceb5e20f | 2831 | toplevel_srcdir=${toplevel_srcdir} |
ab300375 | 2832 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
3343fdd2 | 2833 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" |
81fea2b1 JL |
2834 | |
2835 | EOF | |
2836 | cat >> $CONFIG_STATUS <<\EOF | |
ab300375 RL |
2837 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
2838 | if test -n "$CONFIG_FILES"; then | |
6706f116 | 2839 | LD="${ORIGINAL_LD_FOR_MULTILIBS}" |
ab300375 RL |
2840 | if test -n "${with_target_subdir}"; then |
2841 | # FIXME: We shouldn't need to set ac_file | |
2842 | ac_file=Makefile | |
ceb5e20f | 2843 | . ${toplevel_srcdir}/config-ml.in |
c60f1599 | 2844 | touch g2c.h # to keep it more recent than Makefile |
ab300375 RL |
2845 | fi |
2846 | fi | |
81fea2b1 JL |
2847 | exit 0 |
2848 | EOF | |
2849 | chmod +x $CONFIG_STATUS | |
2850 | rm -fr confdefs* $ac_clean_files | |
2851 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2852 | ||
2853 | if test "$no_recursion" != yes; then | |
2854 | ||
2855 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2856 | ac_sub_configure_args= | |
2857 | ac_prev= | |
2858 | for ac_arg in $ac_configure_args; do | |
2859 | if test -n "$ac_prev"; then | |
2860 | ac_prev= | |
2861 | continue | |
2862 | fi | |
2863 | case "$ac_arg" in | |
2864 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2865 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2866 | ac_prev=cache_file ;; | |
2867 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2868 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2869 | ;; | |
2870 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2871 | ac_prev=srcdir ;; | |
2872 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2873 | ;; | |
2874 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
2875 | esac | |
2876 | done | |
2877 | ||
b1daa215 | 2878 | for ac_config_dir in libU77 libI77 libF77; do |
81fea2b1 JL |
2879 | |
2880 | # Do not complain, so a configure script can configure whichever | |
2881 | # parts of a large source tree are present. | |
2882 | if test ! -d $srcdir/$ac_config_dir; then | |
2883 | continue | |
2884 | fi | |
2885 | ||
2886 | echo configuring in $ac_config_dir | |
2887 | ||
2888 | case "$srcdir" in | |
2889 | .) ;; | |
2890 | *) | |
2891 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
2892 | else | |
2893 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
2894 | fi | |
2895 | ;; | |
2896 | esac | |
2897 | ||
2898 | ac_popdir=`pwd` | |
2899 | cd $ac_config_dir | |
2900 | ||
2901 | # A "../" for each directory in /$ac_config_dir. | |
2902 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2903 | ||
2904 | case "$srcdir" in | |
2905 | .) # No --srcdir option. We are building in place. | |
2906 | ac_sub_srcdir=$srcdir ;; | |
2907 | /*) # Absolute path. | |
2908 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2909 | *) # Relative path. | |
2910 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
2911 | esac | |
2912 | ||
2913 | # Check for guested configure; otherwise get Cygnus style configure. | |
2914 | if test -f $ac_sub_srcdir/configure; then | |
2915 | ac_sub_configure=$ac_sub_srcdir/configure | |
2916 | elif test -f $ac_sub_srcdir/configure.in; then | |
2917 | ac_sub_configure=$ac_configure | |
2918 | else | |
2919 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
2920 | ac_sub_configure= | |
2921 | fi | |
2922 | ||
2923 | # The recursion is here. | |
2924 | if test -n "$ac_sub_configure"; then | |
2925 | ||
2926 | # Make the cache file name correct relative to the subdirectory. | |
2927 | case "$cache_file" in | |
2928 | /*) ac_sub_cache_file=$cache_file ;; | |
2929 | *) # Relative path. | |
2930 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2931 | esac | |
b1daa215 DL |
2932 | case "$ac_given_INSTALL" in |
2933 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2934 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2935 | esac | |
81fea2b1 JL |
2936 | |
2937 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
2938 | # The eval makes quoting arguments work. | |
2939 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
2940 | then : | |
2941 | else | |
2942 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
2943 | fi | |
2944 | fi | |
2945 | ||
2946 | cd $ac_popdir | |
2947 | done | |
2948 | fi | |
2949 | ||
2950 | ||
ab300375 | 2951 |