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