1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated automatically using autoconf version 2.13
|
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
---|
6 | #
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 |
|
---|
10 | # Defaults:
|
---|
11 | ac_help=
|
---|
12 | ac_default_prefix=/usr/local
|
---|
13 | # Any additions from configure.in:
|
---|
14 | ac_help="$ac_help
|
---|
15 | --enable-shared[=PKGS] build shared libraries [default=no]"
|
---|
16 | ac_help="$ac_help
|
---|
17 | --enable-static[=PKGS] build static libraries [default=yes]"
|
---|
18 | ac_help="$ac_help
|
---|
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
---|
20 | ac_help="$ac_help
|
---|
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
---|
22 | ac_help="$ac_help
|
---|
23 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
---|
24 | ac_help="$ac_help
|
---|
25 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
---|
26 | ac_help="$ac_help
|
---|
27 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
|
---|
28 | ac_help="$ac_help
|
---|
29 | --enable-targets alternative target configurations"
|
---|
30 | ac_help="$ac_help
|
---|
31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
---|
32 | ac_help="$ac_help
|
---|
33 | --with-mmap try using mmap for BFD input files if available"
|
---|
34 | ac_help="$ac_help
|
---|
35 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
---|
36 | ac_help="$ac_help
|
---|
37 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
38 | (and sometimes confusing) to the casual installer"
|
---|
39 | ac_help="$ac_help
|
---|
40 | --disable-nls do not use Native Language Support"
|
---|
41 | ac_help="$ac_help
|
---|
42 | --with-included-gettext use the GNU gettext library included here"
|
---|
43 |
|
---|
44 | # Initialize some variables set by options.
|
---|
45 | # The variables have the same names as the options, with
|
---|
46 | # dashes changed to underlines.
|
---|
47 | build=NONE
|
---|
48 | cache_file=./config.cache
|
---|
49 | exec_prefix=NONE
|
---|
50 | host=NONE
|
---|
51 | no_create=
|
---|
52 | nonopt=NONE
|
---|
53 | no_recursion=
|
---|
54 | prefix=NONE
|
---|
55 | program_prefix=NONE
|
---|
56 | program_suffix=NONE
|
---|
57 | program_transform_name=s,x,x,
|
---|
58 | silent=
|
---|
59 | site=
|
---|
60 | srcdir=
|
---|
61 | target=NONE
|
---|
62 | verbose=
|
---|
63 | x_includes=NONE
|
---|
64 | x_libraries=NONE
|
---|
65 | bindir='${exec_prefix}/bin'
|
---|
66 | sbindir='${exec_prefix}/sbin'
|
---|
67 | libexecdir='${exec_prefix}/libexec'
|
---|
68 | datadir='${prefix}/share'
|
---|
69 | sysconfdir='${prefix}/etc'
|
---|
70 | sharedstatedir='${prefix}/com'
|
---|
71 | localstatedir='${prefix}/var'
|
---|
72 | libdir='${exec_prefix}/lib'
|
---|
73 | includedir='${prefix}/include'
|
---|
74 | oldincludedir='/usr/include'
|
---|
75 | infodir='${prefix}/info'
|
---|
76 | mandir='${prefix}/man'
|
---|
77 |
|
---|
78 | # Initialize some other variables.
|
---|
79 | subdirs=
|
---|
80 | MFLAGS= MAKEFLAGS=
|
---|
81 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
82 | # Maximum number of lines to put in a shell here document.
|
---|
83 | ac_max_here_lines=12
|
---|
84 |
|
---|
85 | ac_prev=
|
---|
86 | for ac_option
|
---|
87 | do
|
---|
88 |
|
---|
89 | # If the previous option needs an argument, assign it.
|
---|
90 | if test -n "$ac_prev"; then
|
---|
91 | eval "$ac_prev=\$ac_option"
|
---|
92 | ac_prev=
|
---|
93 | continue
|
---|
94 | fi
|
---|
95 |
|
---|
96 | case "$ac_option" in
|
---|
97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
98 | *) ac_optarg= ;;
|
---|
99 | esac
|
---|
100 |
|
---|
101 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
102 |
|
---|
103 | case "$ac_option" in
|
---|
104 |
|
---|
105 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
106 | ac_prev=bindir ;;
|
---|
107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
108 | bindir="$ac_optarg" ;;
|
---|
109 |
|
---|
110 | -build | --build | --buil | --bui | --bu)
|
---|
111 | ac_prev=build ;;
|
---|
112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
113 | build="$ac_optarg" ;;
|
---|
114 |
|
---|
115 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
117 | ac_prev=cache_file ;;
|
---|
118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
120 | cache_file="$ac_optarg" ;;
|
---|
121 |
|
---|
122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
123 | ac_prev=datadir ;;
|
---|
124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
125 | | --da=*)
|
---|
126 | datadir="$ac_optarg" ;;
|
---|
127 |
|
---|
128 | -disable-* | --disable-*)
|
---|
129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
130 | # Reject names that are not valid shell variable names.
|
---|
131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
133 | fi
|
---|
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
135 | eval "enable_${ac_feature}=no" ;;
|
---|
136 |
|
---|
137 | -enable-* | --enable-*)
|
---|
138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
139 | # Reject names that are not valid shell variable names.
|
---|
140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
142 | fi
|
---|
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
144 | case "$ac_option" in
|
---|
145 | *=*) ;;
|
---|
146 | *) ac_optarg=yes ;;
|
---|
147 | esac
|
---|
148 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
149 |
|
---|
150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
152 | | --exec | --exe | --ex)
|
---|
153 | ac_prev=exec_prefix ;;
|
---|
154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
156 | | --exec=* | --exe=* | --ex=*)
|
---|
157 | exec_prefix="$ac_optarg" ;;
|
---|
158 |
|
---|
159 | -gas | --gas | --ga | --g)
|
---|
160 | # Obsolete; use --with-gas.
|
---|
161 | with_gas=yes ;;
|
---|
162 |
|
---|
163 | -help | --help | --hel | --he)
|
---|
164 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
165 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
166 | cat << EOF
|
---|
167 | Usage: configure [options] [host]
|
---|
168 | Options: [defaults in brackets after descriptions]
|
---|
169 | Configuration:
|
---|
170 | --cache-file=FILE cache test results in FILE
|
---|
171 | --help print this message
|
---|
172 | --no-create do not create output files
|
---|
173 | --quiet, --silent do not print \`checking...' messages
|
---|
174 | --version print the version of autoconf that created configure
|
---|
175 | Directory and file names:
|
---|
176 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
177 | [$ac_default_prefix]
|
---|
178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
179 | [same as prefix]
|
---|
180 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
183 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
184 | [PREFIX/share]
|
---|
185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
187 | [PREFIX/com]
|
---|
188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
190 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
192 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
193 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
194 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
195 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
196 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
197 | --program-transform-name=PROGRAM
|
---|
198 | run sed PROGRAM on installed program names
|
---|
199 | EOF
|
---|
200 | cat << EOF
|
---|
201 | Host type:
|
---|
202 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
203 | --host=HOST configure for HOST [guessed]
|
---|
204 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
205 | Features and packages:
|
---|
206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
210 | --x-includes=DIR X include files are in DIR
|
---|
211 | --x-libraries=DIR X library files are in DIR
|
---|
212 | EOF
|
---|
213 | if test -n "$ac_help"; then
|
---|
214 | echo "--enable and --with options recognized:$ac_help"
|
---|
215 | fi
|
---|
216 | exit 0 ;;
|
---|
217 |
|
---|
218 | -host | --host | --hos | --ho)
|
---|
219 | ac_prev=host ;;
|
---|
220 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
221 | host="$ac_optarg" ;;
|
---|
222 |
|
---|
223 | -includedir | --includedir | --includedi | --included | --include \
|
---|
224 | | --includ | --inclu | --incl | --inc)
|
---|
225 | ac_prev=includedir ;;
|
---|
226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
227 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
228 | includedir="$ac_optarg" ;;
|
---|
229 |
|
---|
230 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
231 | ac_prev=infodir ;;
|
---|
232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
233 | infodir="$ac_optarg" ;;
|
---|
234 |
|
---|
235 | -libdir | --libdir | --libdi | --libd)
|
---|
236 | ac_prev=libdir ;;
|
---|
237 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
238 | libdir="$ac_optarg" ;;
|
---|
239 |
|
---|
240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
241 | | --libexe | --libex | --libe)
|
---|
242 | ac_prev=libexecdir ;;
|
---|
243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
244 | | --libexe=* | --libex=* | --libe=*)
|
---|
245 | libexecdir="$ac_optarg" ;;
|
---|
246 |
|
---|
247 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
248 | | --localstate | --localstat | --localsta | --localst \
|
---|
249 | | --locals | --local | --loca | --loc | --lo)
|
---|
250 | ac_prev=localstatedir ;;
|
---|
251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
254 | localstatedir="$ac_optarg" ;;
|
---|
255 |
|
---|
256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
257 | ac_prev=mandir ;;
|
---|
258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
259 | mandir="$ac_optarg" ;;
|
---|
260 |
|
---|
261 | -nfp | --nfp | --nf)
|
---|
262 | # Obsolete; use --without-fp.
|
---|
263 | with_fp=no ;;
|
---|
264 |
|
---|
265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
266 | | --no-cr | --no-c)
|
---|
267 | no_create=yes ;;
|
---|
268 |
|
---|
269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
271 | no_recursion=yes ;;
|
---|
272 |
|
---|
273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
275 | | --oldin | --oldi | --old | --ol | --o)
|
---|
276 | ac_prev=oldincludedir ;;
|
---|
277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
280 | oldincludedir="$ac_optarg" ;;
|
---|
281 |
|
---|
282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
283 | ac_prev=prefix ;;
|
---|
284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
285 | prefix="$ac_optarg" ;;
|
---|
286 |
|
---|
287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
288 | | --program-pre | --program-pr | --program-p)
|
---|
289 | ac_prev=program_prefix ;;
|
---|
290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
292 | program_prefix="$ac_optarg" ;;
|
---|
293 |
|
---|
294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
295 | | --program-suf | --program-su | --program-s)
|
---|
296 | ac_prev=program_suffix ;;
|
---|
297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
299 | program_suffix="$ac_optarg" ;;
|
---|
300 |
|
---|
301 | -program-transform-name | --program-transform-name \
|
---|
302 | | --program-transform-nam | --program-transform-na \
|
---|
303 | | --program-transform-n | --program-transform- \
|
---|
304 | | --program-transform | --program-transfor \
|
---|
305 | | --program-transfo | --program-transf \
|
---|
306 | | --program-trans | --program-tran \
|
---|
307 | | --progr-tra | --program-tr | --program-t)
|
---|
308 | ac_prev=program_transform_name ;;
|
---|
309 | -program-transform-name=* | --program-transform-name=* \
|
---|
310 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
311 | | --program-transform-n=* | --program-transform-=* \
|
---|
312 | | --program-transform=* | --program-transfor=* \
|
---|
313 | | --program-transfo=* | --program-transf=* \
|
---|
314 | | --program-trans=* | --program-tran=* \
|
---|
315 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
316 | program_transform_name="$ac_optarg" ;;
|
---|
317 |
|
---|
318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
319 | | -silent | --silent | --silen | --sile | --sil)
|
---|
320 | silent=yes ;;
|
---|
321 |
|
---|
322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
323 | ac_prev=sbindir ;;
|
---|
324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
325 | | --sbi=* | --sb=*)
|
---|
326 | sbindir="$ac_optarg" ;;
|
---|
327 |
|
---|
328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
330 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
331 | | --sha | --sh)
|
---|
332 | ac_prev=sharedstatedir ;;
|
---|
333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
336 | | --sha=* | --sh=*)
|
---|
337 | sharedstatedir="$ac_optarg" ;;
|
---|
338 |
|
---|
339 | -site | --site | --sit)
|
---|
340 | ac_prev=site ;;
|
---|
341 | -site=* | --site=* | --sit=*)
|
---|
342 | site="$ac_optarg" ;;
|
---|
343 |
|
---|
344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
345 | ac_prev=srcdir ;;
|
---|
346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
347 | srcdir="$ac_optarg" ;;
|
---|
348 |
|
---|
349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
350 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
351 | ac_prev=sysconfdir ;;
|
---|
352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
354 | sysconfdir="$ac_optarg" ;;
|
---|
355 |
|
---|
356 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
357 | ac_prev=target ;;
|
---|
358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
359 | target="$ac_optarg" ;;
|
---|
360 |
|
---|
361 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
362 | verbose=yes ;;
|
---|
363 |
|
---|
364 | -version | --version | --versio | --versi | --vers)
|
---|
365 | echo "configure generated by autoconf version 2.13"
|
---|
366 | exit 0 ;;
|
---|
367 |
|
---|
368 | -with-* | --with-*)
|
---|
369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
370 | # Reject names that are not valid shell variable names.
|
---|
371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
373 | fi
|
---|
374 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
375 | case "$ac_option" in
|
---|
376 | *=*) ;;
|
---|
377 | *) ac_optarg=yes ;;
|
---|
378 | esac
|
---|
379 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
380 |
|
---|
381 | -without-* | --without-*)
|
---|
382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
383 | # Reject names that are not valid shell variable names.
|
---|
384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
386 | fi
|
---|
387 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
388 | eval "with_${ac_package}=no" ;;
|
---|
389 |
|
---|
390 | --x)
|
---|
391 | # Obsolete; use --with-x.
|
---|
392 | with_x=yes ;;
|
---|
393 |
|
---|
394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
395 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
396 | ac_prev=x_includes ;;
|
---|
397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
399 | x_includes="$ac_optarg" ;;
|
---|
400 |
|
---|
401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
403 | ac_prev=x_libraries ;;
|
---|
404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
406 | x_libraries="$ac_optarg" ;;
|
---|
407 |
|
---|
408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
409 | ;;
|
---|
410 |
|
---|
411 | *)
|
---|
412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
413 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
414 | fi
|
---|
415 | if test "x$nonopt" != xNONE; then
|
---|
416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
417 | fi
|
---|
418 | nonopt="$ac_option"
|
---|
419 | ;;
|
---|
420 |
|
---|
421 | esac
|
---|
422 | done
|
---|
423 |
|
---|
424 | if test -n "$ac_prev"; then
|
---|
425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
426 | fi
|
---|
427 |
|
---|
428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
429 |
|
---|
430 | # File descriptor usage:
|
---|
431 | # 0 standard input
|
---|
432 | # 1 file creation
|
---|
433 | # 2 errors and warnings
|
---|
434 | # 3 some systems may open it to /dev/tty
|
---|
435 | # 4 used on the Kubota Titan
|
---|
436 | # 6 checking for... messages and results
|
---|
437 | # 5 compiler messages saved in config.log
|
---|
438 | if test "$silent" = yes; then
|
---|
439 | exec 6>/dev/null
|
---|
440 | else
|
---|
441 | exec 6>&1
|
---|
442 | fi
|
---|
443 | exec 5>./config.log
|
---|
444 |
|
---|
445 | echo "\
|
---|
446 | This file contains any messages produced by compilers while
|
---|
447 | running configure, to aid debugging if configure makes a mistake.
|
---|
448 | " 1>&5
|
---|
449 |
|
---|
450 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
451 | # Also quote any args containing shell metacharacters.
|
---|
452 | ac_configure_args=
|
---|
453 | for ac_arg
|
---|
454 | do
|
---|
455 | case "$ac_arg" in
|
---|
456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
457 | | --no-cr | --no-c) ;;
|
---|
458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
463 | esac
|
---|
464 | done
|
---|
465 |
|
---|
466 | # NLS nuisances.
|
---|
467 | # Only set these to C if already set. These must not be set unconditionally
|
---|
468 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
470 | # Non-C LC_CTYPE values break the ctype check.
|
---|
471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
475 |
|
---|
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
477 | rm -rf conftest* confdefs.h
|
---|
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
479 | echo > confdefs.h
|
---|
480 |
|
---|
481 | # A filename unique to this package, relative to the directory that
|
---|
482 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
483 | ac_unique_file=libbfd.c
|
---|
484 |
|
---|
485 | # Find the source files, if location was not specified.
|
---|
486 | if test -z "$srcdir"; then
|
---|
487 | ac_srcdir_defaulted=yes
|
---|
488 | # Try the directory containing this script, then its parent.
|
---|
489 | ac_prog=$0
|
---|
490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
492 | srcdir=$ac_confdir
|
---|
493 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
494 | srcdir=..
|
---|
495 | fi
|
---|
496 | else
|
---|
497 | ac_srcdir_defaulted=no
|
---|
498 | fi
|
---|
499 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
500 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
502 | else
|
---|
503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
504 | fi
|
---|
505 | fi
|
---|
506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
507 |
|
---|
508 | # Prefer explicitly selected file to automatically selected ones.
|
---|
509 | if test -z "$CONFIG_SITE"; then
|
---|
510 | if test "x$prefix" != xNONE; then
|
---|
511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
512 | else
|
---|
513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
514 | fi
|
---|
515 | fi
|
---|
516 | for ac_site_file in $CONFIG_SITE; do
|
---|
517 | if test -r "$ac_site_file"; then
|
---|
518 | echo "loading site script $ac_site_file"
|
---|
519 | . "$ac_site_file"
|
---|
520 | fi
|
---|
521 | done
|
---|
522 |
|
---|
523 | if test -r "$cache_file"; then
|
---|
524 | echo "loading cache $cache_file"
|
---|
525 | . $cache_file
|
---|
526 | else
|
---|
527 | echo "creating cache $cache_file"
|
---|
528 | > $cache_file
|
---|
529 | fi
|
---|
530 |
|
---|
531 | ac_ext=c
|
---|
532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
533 | ac_cpp='$CPP $CPPFLAGS'
|
---|
534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
536 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
537 |
|
---|
538 | ac_exeext=
|
---|
539 | ac_objext=o
|
---|
540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
543 | ac_n= ac_c='
|
---|
544 | ' ac_t=' '
|
---|
545 | else
|
---|
546 | ac_n=-n ac_c= ac_t=
|
---|
547 | fi
|
---|
548 | else
|
---|
549 | ac_n= ac_c='\c' ac_t=
|
---|
550 | fi
|
---|
551 |
|
---|
552 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
---|
553 | echo "configure:554: checking for path separator" >&5
|
---|
554 | # Filter path to get backslahes into forwardslashes
|
---|
555 | case "`uname -s 2> /dev/null`" in
|
---|
556 | OS/2)
|
---|
557 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
---|
558 | PATH_IFS=';'
|
---|
559 | ;;
|
---|
560 | *)
|
---|
561 | PATH_IFS=':'
|
---|
562 | ;;
|
---|
563 | esac
|
---|
564 | echo "$ac_t""${PATH_IFS}" 1>&6
|
---|
565 |
|
---|
566 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
567 | echo "configure:568: checking for Cygwin environment" >&5
|
---|
568 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
569 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
570 | else
|
---|
571 | cat > conftest.$ac_ext <<EOF
|
---|
572 | #line 573 "configure"
|
---|
573 | #include "confdefs.h"
|
---|
574 |
|
---|
575 | int main() {
|
---|
576 |
|
---|
577 | #ifndef __CYGWIN__
|
---|
578 | #define __CYGWIN__ __CYGWIN32__
|
---|
579 | #endif
|
---|
580 | return __CYGWIN__;
|
---|
581 | ; return 0; }
|
---|
582 | EOF
|
---|
583 | if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
584 | rm -rf conftest*
|
---|
585 | ac_cv_cygwin=yes
|
---|
586 | else
|
---|
587 | echo "configure: failed program was:" >&5
|
---|
588 | cat conftest.$ac_ext >&5
|
---|
589 | rm -rf conftest*
|
---|
590 | ac_cv_cygwin=no
|
---|
591 | fi
|
---|
592 | rm -f conftest*
|
---|
593 | rm -f conftest*
|
---|
594 | fi
|
---|
595 |
|
---|
596 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
597 | CYGWIN=
|
---|
598 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
599 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
600 | echo "configure:601: checking for mingw32 environment" >&5
|
---|
601 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
602 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
603 | else
|
---|
604 | cat > conftest.$ac_ext <<EOF
|
---|
605 | #line 606 "configure"
|
---|
606 | #include "confdefs.h"
|
---|
607 |
|
---|
608 | int main() {
|
---|
609 | return __MINGW32__;
|
---|
610 | ; return 0; }
|
---|
611 | EOF
|
---|
612 | if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
613 | rm -rf conftest*
|
---|
614 | ac_cv_mingw32=yes
|
---|
615 | else
|
---|
616 | echo "configure: failed program was:" >&5
|
---|
617 | cat conftest.$ac_ext >&5
|
---|
618 | rm -rf conftest*
|
---|
619 | ac_cv_mingw32=no
|
---|
620 | fi
|
---|
621 | rm -f conftest*
|
---|
622 | rm -f conftest*
|
---|
623 | fi
|
---|
624 |
|
---|
625 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
626 | MINGW32=
|
---|
627 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
628 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
---|
629 | echo "configure:630: checking for EMX/OS2 environment" >&5
|
---|
630 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
---|
631 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
632 | else
|
---|
633 | : ${CC=gcc.exe}
|
---|
634 | cat > conftest.$ac_ext <<EOF
|
---|
635 | #line 636 "configure"
|
---|
636 | #include "confdefs.h"
|
---|
637 |
|
---|
638 | int main() {
|
---|
639 | return __EMX__;
|
---|
640 | ; return 0; }
|
---|
641 | EOF
|
---|
642 | if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
643 | rm -rf conftest*
|
---|
644 | ac_cv_emxos2=yes
|
---|
645 | else
|
---|
646 | echo "configure: failed program was:" >&5
|
---|
647 | cat conftest.$ac_ext >&5
|
---|
648 | rm -rf conftest*
|
---|
649 | ac_cv_emxos2=no
|
---|
650 | fi
|
---|
651 | rm -f conftest*
|
---|
652 | rm -f conftest*
|
---|
653 | fi
|
---|
654 |
|
---|
655 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
---|
656 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
---|
657 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
658 | else
|
---|
659 | if test "$ac_cv_emxos2" = yes ; then
|
---|
660 | ac_cv_libpre=
|
---|
661 | else
|
---|
662 | ac_cv_libpre=lib
|
---|
663 | fi
|
---|
664 |
|
---|
665 | fi
|
---|
666 |
|
---|
667 | EMXOS2=
|
---|
668 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
---|
669 |
|
---|
670 |
|
---|
671 |
|
---|
672 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
673 | echo "configure:674: checking for executable suffix" >&5
|
---|
674 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
675 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
676 | else
|
---|
677 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
678 | ac_cv_exeext=.exe
|
---|
679 | else
|
---|
680 | rm -f conftest*
|
---|
681 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
682 | ac_cv_exeext=
|
---|
683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
684 | for file in conftest.*; do
|
---|
685 | case $file in
|
---|
686 | *.c | *.o | *.obj) ;;
|
---|
687 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
688 | esac
|
---|
689 | done
|
---|
690 | else
|
---|
691 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
692 | fi
|
---|
693 | rm -f conftest*
|
---|
694 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
695 | fi
|
---|
696 | fi
|
---|
697 |
|
---|
698 | EXEEXT=""
|
---|
699 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
700 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
701 | ac_exeext=$EXEEXT
|
---|
702 |
|
---|
703 |
|
---|
704 |
|
---|
705 | ac_aux_dir=
|
---|
706 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
707 | if test -f $ac_dir/install-sh; then
|
---|
708 | ac_aux_dir=$ac_dir
|
---|
709 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
710 | break
|
---|
711 | elif test -f $ac_dir/install.sh; then
|
---|
712 | ac_aux_dir=$ac_dir
|
---|
713 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
714 | break
|
---|
715 | fi
|
---|
716 | done
|
---|
717 | if test -z "$ac_aux_dir"; then
|
---|
718 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
719 | fi
|
---|
720 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
721 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
722 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
723 |
|
---|
724 |
|
---|
725 | # Do some error checking and defaulting for the host and target type.
|
---|
726 | # The inputs are:
|
---|
727 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
728 | #
|
---|
729 | # The rules are:
|
---|
730 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
731 | # same time.
|
---|
732 | # 2. Host defaults to nonopt.
|
---|
733 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
734 | # as determined by config.guess.
|
---|
735 | # 4. Target and build default to nonopt.
|
---|
736 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
737 |
|
---|
738 | # The aliases save the names the user supplied, while $host etc.
|
---|
739 | # will get canonicalized.
|
---|
740 | case $host---$target---$nonopt in
|
---|
741 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
742 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
743 | esac
|
---|
744 |
|
---|
745 |
|
---|
746 | # Make sure we can run config.sub.
|
---|
747 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
748 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
749 | fi
|
---|
750 |
|
---|
751 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
752 | echo "configure:753: checking host system type" >&5
|
---|
753 |
|
---|
754 | host_alias=$host
|
---|
755 | case "$host_alias" in
|
---|
756 | NONE)
|
---|
757 | case $nonopt in
|
---|
758 | NONE)
|
---|
759 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
760 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
761 | fi ;;
|
---|
762 | *) host_alias=$nonopt ;;
|
---|
763 | esac ;;
|
---|
764 | esac
|
---|
765 |
|
---|
766 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
767 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
768 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
769 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
770 | echo "$ac_t""$host" 1>&6
|
---|
771 |
|
---|
772 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
773 | echo "configure:774: checking target system type" >&5
|
---|
774 |
|
---|
775 | target_alias=$target
|
---|
776 | case "$target_alias" in
|
---|
777 | NONE)
|
---|
778 | case $nonopt in
|
---|
779 | NONE) target_alias=$host_alias ;;
|
---|
780 | *) target_alias=$nonopt ;;
|
---|
781 | esac ;;
|
---|
782 | esac
|
---|
783 |
|
---|
784 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
785 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
786 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
787 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
788 | echo "$ac_t""$target" 1>&6
|
---|
789 |
|
---|
790 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
791 | echo "configure:792: checking build system type" >&5
|
---|
792 |
|
---|
793 | build_alias=$build
|
---|
794 | case "$build_alias" in
|
---|
795 | NONE)
|
---|
796 | case $nonopt in
|
---|
797 | NONE) build_alias=$host_alias ;;
|
---|
798 | *) build_alias=$nonopt ;;
|
---|
799 | esac ;;
|
---|
800 | esac
|
---|
801 |
|
---|
802 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
803 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
804 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
805 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
806 | echo "$ac_t""$build" 1>&6
|
---|
807 |
|
---|
808 | test "$host_alias" != "$target_alias" &&
|
---|
809 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
810 | NONENONEs,x,x, &&
|
---|
811 | program_prefix=${target_alias}-
|
---|
812 |
|
---|
813 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
814 | set dummy gcc; ac_word=$2
|
---|
815 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
816 | echo "configure:817: checking for $ac_word" >&5
|
---|
817 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
818 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
819 | else
|
---|
820 | if test -n "$CC"; then
|
---|
821 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
822 | else
|
---|
823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
824 | ac_dummy="$PATH"
|
---|
825 | for ac_dir in $ac_dummy; do
|
---|
826 | test -z "$ac_dir" && ac_dir=.
|
---|
827 | if test -f $ac_dir/$ac_word -o \
|
---|
828 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
829 | ac_cv_prog_CC="gcc"
|
---|
830 | break
|
---|
831 | fi
|
---|
832 | done
|
---|
833 | IFS="$ac_save_ifs"
|
---|
834 | fi
|
---|
835 | fi
|
---|
836 | CC="$ac_cv_prog_CC"
|
---|
837 | if test -n "$CC"; then
|
---|
838 | echo "$ac_t""$CC" 1>&6
|
---|
839 | else
|
---|
840 | echo "$ac_t""no" 1>&6
|
---|
841 | fi
|
---|
842 |
|
---|
843 | if test -z "$CC"; then
|
---|
844 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
845 | set dummy cc; ac_word=$2
|
---|
846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
847 | echo "configure:848: checking for $ac_word" >&5
|
---|
848 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
849 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
850 | else
|
---|
851 | if test -n "$CC"; then
|
---|
852 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
853 | else
|
---|
854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
855 | ac_prog_rejected=no
|
---|
856 | ac_dummy="$PATH"
|
---|
857 | for ac_dir in $ac_dummy; do
|
---|
858 | test -z "$ac_dir" && ac_dir=.
|
---|
859 | if test -f $ac_dir/$ac_word -o \
|
---|
860 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
861 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
862 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
863 | ac_prog_rejected=yes
|
---|
864 | continue
|
---|
865 | fi
|
---|
866 | ac_cv_prog_CC="cc"
|
---|
867 | break
|
---|
868 | fi
|
---|
869 | done
|
---|
870 | IFS="$ac_save_ifs"
|
---|
871 | if test $ac_prog_rejected = yes; then
|
---|
872 | # We found a bogon in the path, so make sure we never use it.
|
---|
873 | set dummy $ac_cv_prog_CC
|
---|
874 | shift
|
---|
875 | if test $# -gt 0; then
|
---|
876 | # We chose a different compiler from the bogus one.
|
---|
877 | # However, it has the same basename, so the bogon will be chosen
|
---|
878 | # first if we set CC to just the basename; use the full file name.
|
---|
879 | shift
|
---|
880 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
881 | shift
|
---|
882 | ac_cv_prog_CC="$@"
|
---|
883 | fi
|
---|
884 | fi
|
---|
885 | fi
|
---|
886 | fi
|
---|
887 | CC="$ac_cv_prog_CC"
|
---|
888 | if test -n "$CC"; then
|
---|
889 | echo "$ac_t""$CC" 1>&6
|
---|
890 | else
|
---|
891 | echo "$ac_t""no" 1>&6
|
---|
892 | fi
|
---|
893 |
|
---|
894 | if test -z "$CC"; then
|
---|
895 | case "`uname -s`" in
|
---|
896 | *win32* | *WIN32*)
|
---|
897 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
898 | set dummy cl; ac_word=$2
|
---|
899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
900 | echo "configure:901: checking for $ac_word" >&5
|
---|
901 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
902 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
903 | else
|
---|
904 | if test -n "$CC"; then
|
---|
905 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
906 | else
|
---|
907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
908 | ac_dummy="$PATH"
|
---|
909 | for ac_dir in $ac_dummy; do
|
---|
910 | test -z "$ac_dir" && ac_dir=.
|
---|
911 | if test -f $ac_dir/$ac_word -o \
|
---|
912 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
913 | ac_cv_prog_CC="cl"
|
---|
914 | break
|
---|
915 | fi
|
---|
916 | done
|
---|
917 | IFS="$ac_save_ifs"
|
---|
918 | fi
|
---|
919 | fi
|
---|
920 | CC="$ac_cv_prog_CC"
|
---|
921 | if test -n "$CC"; then
|
---|
922 | echo "$ac_t""$CC" 1>&6
|
---|
923 | else
|
---|
924 | echo "$ac_t""no" 1>&6
|
---|
925 | fi
|
---|
926 | ;;
|
---|
927 | esac
|
---|
928 | fi
|
---|
929 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
930 | fi
|
---|
931 |
|
---|
932 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
933 | echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
934 |
|
---|
935 | ac_ext=c
|
---|
936 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
937 | ac_cpp='$CPP $CPPFLAGS'
|
---|
938 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
939 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
940 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
941 |
|
---|
942 | cat > conftest.$ac_ext << EOF
|
---|
943 |
|
---|
944 | #line 945 "configure"
|
---|
945 | #include "confdefs.h"
|
---|
946 |
|
---|
947 | main(){return(0);}
|
---|
948 | EOF
|
---|
949 | if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
950 | ac_cv_prog_cc_works=yes
|
---|
951 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
952 | if (./conftest; exit) 2>/dev/null; then
|
---|
953 | ac_cv_prog_cc_cross=no
|
---|
954 | else
|
---|
955 | ac_cv_prog_cc_cross=yes
|
---|
956 | fi
|
---|
957 | else
|
---|
958 | echo "configure: failed program was:" >&5
|
---|
959 | cat conftest.$ac_ext >&5
|
---|
960 | ac_cv_prog_cc_works=no
|
---|
961 | fi
|
---|
962 | rm -fr conftest*
|
---|
963 | ac_ext=c
|
---|
964 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
965 | ac_cpp='$CPP $CPPFLAGS'
|
---|
966 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
967 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
968 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
969 |
|
---|
970 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
971 | if test $ac_cv_prog_cc_works = no; then
|
---|
972 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
973 | fi
|
---|
974 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
975 | echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
976 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
977 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
978 |
|
---|
979 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
980 | echo "configure:981: checking whether we are using GNU C" >&5
|
---|
981 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
982 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
983 | else
|
---|
984 | cat > conftest.c <<EOF
|
---|
985 | #ifdef __GNUC__
|
---|
986 | yes;
|
---|
987 | #endif
|
---|
988 | EOF
|
---|
989 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
990 | ac_cv_prog_gcc=yes
|
---|
991 | else
|
---|
992 | ac_cv_prog_gcc=no
|
---|
993 | fi
|
---|
994 | fi
|
---|
995 |
|
---|
996 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
997 |
|
---|
998 | if test $ac_cv_prog_gcc = yes; then
|
---|
999 | GCC=yes
|
---|
1000 | else
|
---|
1001 | GCC=
|
---|
1002 | fi
|
---|
1003 |
|
---|
1004 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
1005 | ac_save_CFLAGS="$CFLAGS"
|
---|
1006 | CFLAGS=
|
---|
1007 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1008 | echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
|
---|
1009 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1010 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1011 | else
|
---|
1012 | echo 'void f(){}' > conftest.c
|
---|
1013 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1014 | ac_cv_prog_cc_g=yes
|
---|
1015 | else
|
---|
1016 | ac_cv_prog_cc_g=no
|
---|
1017 | fi
|
---|
1018 | rm -f conftest*
|
---|
1019 |
|
---|
1020 | fi
|
---|
1021 |
|
---|
1022 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1023 | if test "$ac_test_CFLAGS" = set; then
|
---|
1024 | CFLAGS="$ac_save_CFLAGS"
|
---|
1025 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1026 | if test "$GCC" = yes; then
|
---|
1027 | CFLAGS="-g -O2"
|
---|
1028 | else
|
---|
1029 | CFLAGS="-g"
|
---|
1030 | fi
|
---|
1031 | else
|
---|
1032 | if test "$GCC" = yes; then
|
---|
1033 | CFLAGS="-O2"
|
---|
1034 | else
|
---|
1035 | CFLAGS=
|
---|
1036 | fi
|
---|
1037 | fi
|
---|
1038 |
|
---|
1039 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1040 | echo "configure:1041: checking for POSIXized ISC" >&5
|
---|
1041 | if test -d /etc/conf/kconfig.d &&
|
---|
1042 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1043 | then
|
---|
1044 | echo "$ac_t""yes" 1>&6
|
---|
1045 | ISC=yes # If later tests want to check for ISC.
|
---|
1046 | cat >> confdefs.h <<\EOF
|
---|
1047 | #define _POSIX_SOURCE 1
|
---|
1048 | EOF
|
---|
1049 |
|
---|
1050 | if test "$GCC" = yes; then
|
---|
1051 | CC="$CC -posix"
|
---|
1052 | else
|
---|
1053 | CC="$CC -Xp"
|
---|
1054 | fi
|
---|
1055 | else
|
---|
1056 | echo "$ac_t""no" 1>&6
|
---|
1057 | ISC=
|
---|
1058 | fi
|
---|
1059 |
|
---|
1060 |
|
---|
1061 | # Find a good install program. We prefer a C program (faster),
|
---|
1062 | # so one script is as good as another. But avoid the broken or
|
---|
1063 | # incompatible versions:
|
---|
1064 | # SysV /etc/install, /usr/sbin/install
|
---|
1065 | # SunOS /usr/etc/install
|
---|
1066 | # IRIX /sbin/install
|
---|
1067 | # AIX /bin/install
|
---|
1068 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1069 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1070 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1071 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1072 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1073 | echo "configure:1074: checking for a BSD compatible install" >&5
|
---|
1074 | if test -z "$INSTALL"; then
|
---|
1075 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1076 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1077 | else
|
---|
1078 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
1079 | for ac_dir in $PATH; do
|
---|
1080 | # Account for people who put trailing slashes in PATH elements.
|
---|
1081 | case "$ac_dir/" in
|
---|
1082 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1083 | # We reject the install program from OS/2 or W3.1
|
---|
1084 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
1085 | *)
|
---|
1086 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1087 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1088 | # by default.
|
---|
1089 | for ac_prog in ginstall scoinst install; do
|
---|
1090 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
1091 | if test $ac_prog = install &&
|
---|
1092 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1093 | # AIX install. It has an incompatible calling convention.
|
---|
1094 | :
|
---|
1095 | else
|
---|
1096 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
1097 | break 2
|
---|
1098 | fi
|
---|
1099 | fi
|
---|
1100 | done
|
---|
1101 | ;;
|
---|
1102 | esac
|
---|
1103 | done
|
---|
1104 | IFS="$ac_save_IFS"
|
---|
1105 |
|
---|
1106 | fi
|
---|
1107 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1108 | INSTALL="$ac_cv_path_install"
|
---|
1109 | else
|
---|
1110 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1111 | # path for INSTALL within a source directory, because that will
|
---|
1112 | # break other packages using the cache if that directory is
|
---|
1113 | # removed, or if the path is relative.
|
---|
1114 | INSTALL="$ac_install_sh"
|
---|
1115 | fi
|
---|
1116 | fi
|
---|
1117 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1118 |
|
---|
1119 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1120 | # It thinks the first close brace ends the variable substitution.
|
---|
1121 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1122 |
|
---|
1123 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1124 |
|
---|
1125 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1126 |
|
---|
1127 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
1128 | echo "configure:1129: checking whether build environment is sane" >&5
|
---|
1129 | # Just in case
|
---|
1130 | sleep 1
|
---|
1131 | echo timestamp > conftestfile
|
---|
1132 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1133 | # arguments. Must try -L first in case configure is actually a
|
---|
1134 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1135 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1136 | # directory).
|
---|
1137 | if (
|
---|
1138 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
1139 | if test "$*" = "X"; then
|
---|
1140 | # -L didn't work.
|
---|
1141 | set X `ls -t $srcdir/configure conftestfile`
|
---|
1142 | fi
|
---|
1143 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
1144 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
1145 |
|
---|
1146 | # If neither matched, then we have a broken ls. This can happen
|
---|
1147 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1148 | # broken ls alias from the environment. This has actually
|
---|
1149 | # happened. Such a system could not be considered "sane".
|
---|
1150 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1151 | alias in your environment" 1>&2; exit 1; }
|
---|
1152 | fi
|
---|
1153 |
|
---|
1154 | test "$2" = conftestfile
|
---|
1155 | )
|
---|
1156 | then
|
---|
1157 | # Ok.
|
---|
1158 | :
|
---|
1159 | else
|
---|
1160 | { echo "configure: error: newly created file is older than distributed files!
|
---|
1161 | Check your system clock" 1>&2; exit 1; }
|
---|
1162 | fi
|
---|
1163 | rm -f conftest*
|
---|
1164 | echo "$ac_t""yes" 1>&6
|
---|
1165 | if test "$program_transform_name" = s,x,x,; then
|
---|
1166 | program_transform_name=
|
---|
1167 | else
|
---|
1168 | # Double any \ or $. echo might interpret backslashes.
|
---|
1169 | cat <<\EOF_SED > conftestsed
|
---|
1170 | s,\\,\\\\,g; s,\$,$$,g
|
---|
1171 | EOF_SED
|
---|
1172 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
1173 | rm -f conftestsed
|
---|
1174 | fi
|
---|
1175 | test "$program_prefix" != NONE &&
|
---|
1176 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
1177 | # Use a double $ so make ignores it.
|
---|
1178 | test "$program_suffix" != NONE &&
|
---|
1179 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
1180 |
|
---|
1181 | # sed with no file args requires a program.
|
---|
1182 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
1183 |
|
---|
1184 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1185 | echo "configure:1186: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1186 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1187 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1188 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1189 | else
|
---|
1190 | cat > conftestmake <<\EOF
|
---|
1191 | all:
|
---|
1192 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1193 | EOF
|
---|
1194 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1195 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1196 | if test -n "$ac_maketemp"; then
|
---|
1197 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1198 | else
|
---|
1199 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1200 | fi
|
---|
1201 | rm -f conftestmake
|
---|
1202 | fi
|
---|
1203 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1204 | echo "$ac_t""yes" 1>&6
|
---|
1205 | SET_MAKE=
|
---|
1206 | else
|
---|
1207 | echo "$ac_t""no" 1>&6
|
---|
1208 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1209 | fi
|
---|
1210 |
|
---|
1211 |
|
---|
1212 | PACKAGE=bfd
|
---|
1213 |
|
---|
1214 | VERSION=2.11.2
|
---|
1215 |
|
---|
1216 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1217 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1218 | fi
|
---|
1219 | cat >> confdefs.h <<EOF
|
---|
1220 | #define PACKAGE "$PACKAGE"
|
---|
1221 | EOF
|
---|
1222 |
|
---|
1223 | cat >> confdefs.h <<EOF
|
---|
1224 | #define VERSION "$VERSION"
|
---|
1225 | EOF
|
---|
1226 |
|
---|
1227 |
|
---|
1228 |
|
---|
1229 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1230 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1231 | echo "configure:1232: checking for working aclocal" >&5
|
---|
1232 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1233 | # an executable is not found, even if stderr is redirected.
|
---|
1234 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1235 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1236 | ACLOCAL=aclocal
|
---|
1237 | echo "$ac_t""found" 1>&6
|
---|
1238 | else
|
---|
1239 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1240 | echo "$ac_t""missing" 1>&6
|
---|
1241 | fi
|
---|
1242 |
|
---|
1243 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1244 | echo "configure:1245: checking for working autoconf" >&5
|
---|
1245 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1246 | # an executable is not found, even if stderr is redirected.
|
---|
1247 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1248 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1249 | AUTOCONF=autoconf
|
---|
1250 | echo "$ac_t""found" 1>&6
|
---|
1251 | else
|
---|
1252 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1253 | echo "$ac_t""missing" 1>&6
|
---|
1254 | fi
|
---|
1255 |
|
---|
1256 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1257 | echo "configure:1258: checking for working automake" >&5
|
---|
1258 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1259 | # an executable is not found, even if stderr is redirected.
|
---|
1260 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1261 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1262 | AUTOMAKE=automake
|
---|
1263 | echo "$ac_t""found" 1>&6
|
---|
1264 | else
|
---|
1265 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1266 | echo "$ac_t""missing" 1>&6
|
---|
1267 | fi
|
---|
1268 |
|
---|
1269 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1270 | echo "configure:1271: checking for working autoheader" >&5
|
---|
1271 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1272 | # an executable is not found, even if stderr is redirected.
|
---|
1273 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1274 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1275 | AUTOHEADER=autoheader
|
---|
1276 | echo "$ac_t""found" 1>&6
|
---|
1277 | else
|
---|
1278 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1279 | echo "$ac_t""missing" 1>&6
|
---|
1280 | fi
|
---|
1281 |
|
---|
1282 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1283 | echo "configure:1284: checking for working makeinfo" >&5
|
---|
1284 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1285 | # an executable is not found, even if stderr is redirected.
|
---|
1286 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1287 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1288 | MAKEINFO=makeinfo
|
---|
1289 | echo "$ac_t""found" 1>&6
|
---|
1290 | else
|
---|
1291 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1292 | echo "$ac_t""missing" 1>&6
|
---|
1293 | fi
|
---|
1294 |
|
---|
1295 |
|
---|
1296 |
|
---|
1297 | if test $host != $build; then
|
---|
1298 | ac_tool_prefix=${host_alias}-
|
---|
1299 | else
|
---|
1300 | ac_tool_prefix=
|
---|
1301 | fi
|
---|
1302 |
|
---|
1303 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
1304 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
1305 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1306 | echo "configure:1307: checking for $ac_word" >&5
|
---|
1307 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
---|
1308 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1309 | else
|
---|
1310 | if test -n "$AR"; then
|
---|
1311 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
1312 | else
|
---|
1313 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1314 | ac_dummy="$PATH"
|
---|
1315 | for ac_dir in $ac_dummy; do
|
---|
1316 | test -z "$ac_dir" && ac_dir=.
|
---|
1317 | if test -f $ac_dir/$ac_word -o \
|
---|
1318 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1319 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
1320 | break
|
---|
1321 | fi
|
---|
1322 | done
|
---|
1323 | IFS="$ac_save_ifs"
|
---|
1324 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
1325 | fi
|
---|
1326 | fi
|
---|
1327 | AR="$ac_cv_prog_AR"
|
---|
1328 | if test -n "$AR"; then
|
---|
1329 | echo "$ac_t""$AR" 1>&6
|
---|
1330 | else
|
---|
1331 | echo "$ac_t""no" 1>&6
|
---|
1332 | fi
|
---|
1333 |
|
---|
1334 |
|
---|
1335 |
|
---|
1336 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1337 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1339 | echo "configure:1340: checking for $ac_word" >&5
|
---|
1340 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1341 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1342 | else
|
---|
1343 | if test -n "$RANLIB"; then
|
---|
1344 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1345 | else
|
---|
1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1347 | ac_dummy="$PATH"
|
---|
1348 | for ac_dir in $ac_dummy; do
|
---|
1349 | test -z "$ac_dir" && ac_dir=.
|
---|
1350 | if test -f $ac_dir/$ac_word -o \
|
---|
1351 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1352 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1353 | break
|
---|
1354 | fi
|
---|
1355 | done
|
---|
1356 | IFS="$ac_save_ifs"
|
---|
1357 | fi
|
---|
1358 | fi
|
---|
1359 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1360 | if test -n "$RANLIB"; then
|
---|
1361 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1362 | else
|
---|
1363 | echo "$ac_t""no" 1>&6
|
---|
1364 | fi
|
---|
1365 |
|
---|
1366 |
|
---|
1367 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1368 | if test -n "$ac_tool_prefix"; then
|
---|
1369 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1370 | set dummy ranlib; ac_word=$2
|
---|
1371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1372 | echo "configure:1373: checking for $ac_word" >&5
|
---|
1373 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1374 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1375 | else
|
---|
1376 | if test -n "$RANLIB"; then
|
---|
1377 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1378 | else
|
---|
1379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1380 | ac_dummy="$PATH"
|
---|
1381 | for ac_dir in $ac_dummy; do
|
---|
1382 | test -z "$ac_dir" && ac_dir=.
|
---|
1383 | if test -f $ac_dir/$ac_word -o \
|
---|
1384 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1385 | ac_cv_prog_RANLIB="ranlib"
|
---|
1386 | break
|
---|
1387 | fi
|
---|
1388 | done
|
---|
1389 | IFS="$ac_save_ifs"
|
---|
1390 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1391 | fi
|
---|
1392 | fi
|
---|
1393 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1394 | if test -n "$RANLIB"; then
|
---|
1395 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1396 | else
|
---|
1397 | echo "$ac_t""no" 1>&6
|
---|
1398 | fi
|
---|
1399 |
|
---|
1400 | else
|
---|
1401 | RANLIB=":"
|
---|
1402 | fi
|
---|
1403 | fi
|
---|
1404 |
|
---|
1405 |
|
---|
1406 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1407 | if test "${enable_shared+set}" = set; then
|
---|
1408 | enableval="$enable_shared"
|
---|
1409 | p=${PACKAGE-default}
|
---|
1410 | case "$enableval" in
|
---|
1411 | yes) enable_shared=yes ;;
|
---|
1412 | no) enable_shared=no ;;
|
---|
1413 | *)
|
---|
1414 | enable_shared=no
|
---|
1415 | # Look at the argument we got. We use all the common list separators.
|
---|
1416 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1417 | for pkg in $enableval; do
|
---|
1418 | if test "X$pkg" = "X$p"; then
|
---|
1419 | enable_shared=yes
|
---|
1420 | fi
|
---|
1421 | done
|
---|
1422 | IFS="$ac_save_ifs"
|
---|
1423 | ;;
|
---|
1424 | esac
|
---|
1425 | else
|
---|
1426 | enable_shared=no
|
---|
1427 | fi
|
---|
1428 |
|
---|
1429 |
|
---|
1430 | # Check whether --enable-static or --disable-static was given.
|
---|
1431 | if test "${enable_static+set}" = set; then
|
---|
1432 | enableval="$enable_static"
|
---|
1433 | p=${PACKAGE-default}
|
---|
1434 | case "$enableval" in
|
---|
1435 | yes) enable_static=yes ;;
|
---|
1436 | no) enable_static=no ;;
|
---|
1437 | *)
|
---|
1438 | enable_static=no
|
---|
1439 | # Look at the argument we got. We use all the common list separators.
|
---|
1440 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1441 | for pkg in $enableval; do
|
---|
1442 | if test "X$pkg" = "X$p"; then
|
---|
1443 | enable_static=yes
|
---|
1444 | fi
|
---|
1445 | done
|
---|
1446 | IFS="$ac_save_ifs"
|
---|
1447 | ;;
|
---|
1448 | esac
|
---|
1449 | else
|
---|
1450 | enable_static=yes
|
---|
1451 | fi
|
---|
1452 |
|
---|
1453 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1454 | if test "${enable_fast_install+set}" = set; then
|
---|
1455 | enableval="$enable_fast_install"
|
---|
1456 | p=${PACKAGE-default}
|
---|
1457 | case "$enableval" in
|
---|
1458 | yes) enable_fast_install=yes ;;
|
---|
1459 | no) enable_fast_install=no ;;
|
---|
1460 | *)
|
---|
1461 | enable_fast_install=no
|
---|
1462 | # Look at the argument we got. We use all the common list separators.
|
---|
1463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1464 | for pkg in $enableval; do
|
---|
1465 | if test "X$pkg" = "X$p"; then
|
---|
1466 | enable_fast_install=yes
|
---|
1467 | fi
|
---|
1468 | done
|
---|
1469 | IFS="$ac_save_ifs"
|
---|
1470 | ;;
|
---|
1471 | esac
|
---|
1472 | else
|
---|
1473 | enable_fast_install=yes
|
---|
1474 | fi
|
---|
1475 |
|
---|
1476 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1477 | if test "${with_gnu_ld+set}" = set; then
|
---|
1478 | withval="$with_gnu_ld"
|
---|
1479 | test "$withval" = no || with_gnu_ld=yes
|
---|
1480 | else
|
---|
1481 | with_gnu_ld=no
|
---|
1482 | fi
|
---|
1483 |
|
---|
1484 | ac_prog=ld
|
---|
1485 | if test "$ac_cv_prog_gcc" = yes; then
|
---|
1486 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1487 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1488 | echo "configure:1489: checking for ld used by GCC" >&5
|
---|
1489 | case $host in
|
---|
1490 | *-*-mingw*)
|
---|
1491 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1492 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1493 | *)
|
---|
1494 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1495 | esac
|
---|
1496 | case "$ac_prog" in
|
---|
1497 | # Accept absolute paths.
|
---|
1498 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1499 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1500 | # Canonicalize the path of ld
|
---|
1501 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1502 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1503 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1504 | done
|
---|
1505 | test -z "$LD" && LD="$ac_prog"
|
---|
1506 | ;;
|
---|
1507 | "")
|
---|
1508 | # If it fails, then pretend we aren't using GCC.
|
---|
1509 | ac_prog=ld
|
---|
1510 | ;;
|
---|
1511 | *)
|
---|
1512 | # If it is relative, then search for the first ld in PATH.
|
---|
1513 | with_gnu_ld=unknown
|
---|
1514 | ;;
|
---|
1515 | esac
|
---|
1516 | elif test "$with_gnu_ld" = yes; then
|
---|
1517 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1518 | echo "configure:1519: checking for GNU ld" >&5
|
---|
1519 | else
|
---|
1520 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1521 | echo "configure:1522: checking for non-GNU ld" >&5
|
---|
1522 | fi
|
---|
1523 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
---|
1524 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1525 | else
|
---|
1526 | if test -z "$LD"; then
|
---|
1527 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1528 | for ac_dir in $PATH; do
|
---|
1529 | test -z "$ac_dir" && ac_dir=.
|
---|
1530 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1531 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1532 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1533 | # but apparently some GNU ld's only accept -v.
|
---|
1534 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1535 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1536 | test "$with_gnu_ld" != no && break
|
---|
1537 | else
|
---|
1538 | test "$with_gnu_ld" != yes && break
|
---|
1539 | fi
|
---|
1540 | fi
|
---|
1541 | done
|
---|
1542 | IFS="$ac_save_ifs"
|
---|
1543 | else
|
---|
1544 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1545 | fi
|
---|
1546 | fi
|
---|
1547 |
|
---|
1548 | LD="$ac_cv_path_LD"
|
---|
1549 | if test -n "$LD"; then
|
---|
1550 | echo "$ac_t""$LD" 1>&6
|
---|
1551 | else
|
---|
1552 | echo "$ac_t""no" 1>&6
|
---|
1553 | fi
|
---|
1554 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1555 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1556 | echo "configure:1557: checking if the linker ($LD) is GNU ld" >&5
|
---|
1557 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1558 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1559 | else
|
---|
1560 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1561 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1562 | ac_cv_prog_gnu_ld=yes
|
---|
1563 | else
|
---|
1564 | ac_cv_prog_gnu_ld=no
|
---|
1565 | fi
|
---|
1566 | fi
|
---|
1567 |
|
---|
1568 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
---|
1569 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
---|
1570 |
|
---|
1571 |
|
---|
1572 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1573 | echo "configure:1574: checking for $LD option to reload object files" >&5
|
---|
1574 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1575 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1576 | else
|
---|
1577 | lt_cv_ld_reload_flag='-r'
|
---|
1578 | fi
|
---|
1579 |
|
---|
1580 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1581 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1582 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1583 |
|
---|
1584 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1585 | echo "configure:1586: checking for BSD-compatible nm" >&5
|
---|
1586 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
---|
1587 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1588 | else
|
---|
1589 | if test -n "$NM"; then
|
---|
1590 | # Let the user override the test.
|
---|
1591 | ac_cv_path_NM="$NM"
|
---|
1592 | else
|
---|
1593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1594 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1595 | test -z "$ac_dir" && ac_dir=.
|
---|
1596 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1597 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1598 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1599 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1600 | # nm: unknown option "B" ignored
|
---|
1601 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1602 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1603 | ac_cv_path_NM="$tmp_nm -B"
|
---|
1604 | break
|
---|
1605 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1606 | ac_cv_path_NM="$tmp_nm -p"
|
---|
1607 | break
|
---|
1608 | else
|
---|
1609 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1610 | continue # so that we can try to find one that supports BSD flags
|
---|
1611 | fi
|
---|
1612 | fi
|
---|
1613 | done
|
---|
1614 | IFS="$ac_save_ifs"
|
---|
1615 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
---|
1616 | fi
|
---|
1617 | fi
|
---|
1618 |
|
---|
1619 | NM="$ac_cv_path_NM"
|
---|
1620 | echo "$ac_t""$NM" 1>&6
|
---|
1621 |
|
---|
1622 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1623 | echo "configure:1624: checking whether ln -s works" >&5
|
---|
1624 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1625 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1626 | else
|
---|
1627 | rm -f conftestdata
|
---|
1628 | if ln -s X conftestdata 2>/dev/null
|
---|
1629 | then
|
---|
1630 | rm -f conftestdata
|
---|
1631 | ac_cv_prog_LN_S="ln -s"
|
---|
1632 | else
|
---|
1633 | echo A > conftestdata;
|
---|
1634 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1635 | ac_cv_prog_LN_S=ln
|
---|
1636 | else
|
---|
1637 | ac_cv_prog_LN_S=cp
|
---|
1638 | fi
|
---|
1639 | fi
|
---|
1640 | rm -f conftestdata*
|
---|
1641 | fi
|
---|
1642 | LN_S="$ac_cv_prog_LN_S"
|
---|
1643 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1644 | echo "$ac_t""yes" 1>&6
|
---|
1645 | else
|
---|
1646 | echo "$ac_t""no" 1>&6
|
---|
1647 | fi
|
---|
1648 |
|
---|
1649 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1650 | echo "configure:1651: checking how to recognise dependant libraries" >&5
|
---|
1651 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1652 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1653 | else
|
---|
1654 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1655 | lt_cv_file_magic_test_file=
|
---|
1656 | lt_cv_deplibs_check_method='unknown'
|
---|
1657 | # Need to set the preceding variable on all platforms that support
|
---|
1658 | # interlibrary dependencies.
|
---|
1659 | # 'none' -- dependencies not supported.
|
---|
1660 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1661 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1662 | # 'test_compile' -- check by making test program.
|
---|
1663 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1664 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1665 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1666 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1667 |
|
---|
1668 | case "$host_os" in
|
---|
1669 | aix4*)
|
---|
1670 | lt_cv_deplibs_check_method=pass_all
|
---|
1671 | ;;
|
---|
1672 |
|
---|
1673 | beos*)
|
---|
1674 | lt_cv_deplibs_check_method=pass_all
|
---|
1675 | ;;
|
---|
1676 |
|
---|
1677 | bsdi4*)
|
---|
1678 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1679 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1680 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1681 | ;;
|
---|
1682 |
|
---|
1683 | cygwin* | mingw* |pw32*)
|
---|
1684 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1685 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1686 | ;;
|
---|
1687 |
|
---|
1688 | freebsd* )
|
---|
1689 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1690 | case "$host_cpu" in
|
---|
1691 | i*86 )
|
---|
1692 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1693 | # Let's accept both of them until this is cleared up.
|
---|
1694 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1695 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1696 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1697 | ;;
|
---|
1698 | esac
|
---|
1699 | else
|
---|
1700 | lt_cv_deplibs_check_method=pass_all
|
---|
1701 | fi
|
---|
1702 | ;;
|
---|
1703 |
|
---|
1704 | gnu*)
|
---|
1705 | lt_cv_deplibs_check_method=pass_all
|
---|
1706 | ;;
|
---|
1707 |
|
---|
1708 | hpux10.20*)
|
---|
1709 | # TODO: Does this work for hpux-11 too?
|
---|
1710 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
|
---|
1711 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1712 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1713 | ;;
|
---|
1714 |
|
---|
1715 | irix5* | irix6*)
|
---|
1716 | case "$host_os" in
|
---|
1717 | irix5*)
|
---|
1718 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1719 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1720 | ;;
|
---|
1721 | *)
|
---|
1722 | case "$LD" in
|
---|
1723 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1724 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1725 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1726 | *) libmagic=never-match;;
|
---|
1727 | esac
|
---|
1728 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1729 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1730 | ;;
|
---|
1731 | esac
|
---|
1732 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1733 | lt_cv_deplibs_check_method=pass_all
|
---|
1734 | ;;
|
---|
1735 |
|
---|
1736 | # This must be Linux ELF.
|
---|
1737 | linux-gnu*)
|
---|
1738 | case "$host_cpu" in
|
---|
1739 | alpha* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1740 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1741 | *)
|
---|
1742 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1743 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1744 | esac
|
---|
1745 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1746 | ;;
|
---|
1747 |
|
---|
1748 | netbsd*)
|
---|
1749 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
|
---|
1750 | else
|
---|
1751 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
---|
1752 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1753 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1754 | fi
|
---|
1755 | ;;
|
---|
1756 |
|
---|
1757 | osf3* | osf4* | osf5*)
|
---|
1758 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1759 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1760 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1761 | lt_cv_deplibs_check_method=pass_all
|
---|
1762 | ;;
|
---|
1763 |
|
---|
1764 | sco3.2v5*)
|
---|
1765 | lt_cv_deplibs_check_method=pass_all
|
---|
1766 | ;;
|
---|
1767 |
|
---|
1768 | solaris*)
|
---|
1769 | lt_cv_deplibs_check_method=pass_all
|
---|
1770 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1771 | ;;
|
---|
1772 |
|
---|
1773 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1774 | case "$host_vendor" in
|
---|
1775 | ncr)
|
---|
1776 | lt_cv_deplibs_check_method=pass_all
|
---|
1777 | ;;
|
---|
1778 | motorola)
|
---|
1779 | 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]'
|
---|
1780 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1781 | ;;
|
---|
1782 | esac
|
---|
1783 | ;;
|
---|
1784 | esac
|
---|
1785 |
|
---|
1786 | fi
|
---|
1787 |
|
---|
1788 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1789 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1790 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1791 |
|
---|
1792 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1793 | echo "configure:1794: checking for object suffix" >&5
|
---|
1794 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1795 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1796 | else
|
---|
1797 | rm -f conftest*
|
---|
1798 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1799 | if { (eval echo configure:1800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1800 | for ac_file in conftest.*; do
|
---|
1801 | case $ac_file in
|
---|
1802 | *.c) ;;
|
---|
1803 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1804 | esac
|
---|
1805 | done
|
---|
1806 | else
|
---|
1807 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1808 | fi
|
---|
1809 | rm -f conftest*
|
---|
1810 | fi
|
---|
1811 |
|
---|
1812 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1813 | OBJEXT=$ac_cv_objext
|
---|
1814 | ac_objext=$ac_cv_objext
|
---|
1815 |
|
---|
1816 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1817 |
|
---|
1818 | # Only perform the check for file, if the check method requires it
|
---|
1819 | case "$deplibs_check_method" in
|
---|
1820 | file_magic*)
|
---|
1821 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1822 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1823 | echo "configure:1824: checking for ${ac_tool_prefix}file" >&5
|
---|
1824 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1825 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1826 | else
|
---|
1827 | case "$MAGIC_CMD" in
|
---|
1828 | /*)
|
---|
1829 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1830 | ;;
|
---|
1831 | ?:/*)
|
---|
1832 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1833 | ;;
|
---|
1834 | *)
|
---|
1835 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1837 | ac_dummy="/usr/bin:$PATH"
|
---|
1838 | for ac_dir in $ac_dummy; do
|
---|
1839 | test -z "$ac_dir" && ac_dir=.
|
---|
1840 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1841 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1842 | if test -n "$file_magic_test_file"; then
|
---|
1843 | case "$deplibs_check_method" in
|
---|
1844 | "file_magic "*)
|
---|
1845 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1846 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1847 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1848 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1849 | :
|
---|
1850 | else
|
---|
1851 | cat <<EOF 1>&2
|
---|
1852 |
|
---|
1853 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1854 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1855 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1856 | *** as such. This will affect the creation of libtool libraries that
|
---|
1857 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1858 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1859 | *** may want to report the problem to your system manager and/or to
|
---|
1860 | *** bug-libtool@gnu.org
|
---|
1861 |
|
---|
1862 | EOF
|
---|
1863 | fi ;;
|
---|
1864 | esac
|
---|
1865 | fi
|
---|
1866 | break
|
---|
1867 | fi
|
---|
1868 | done
|
---|
1869 | IFS="$ac_save_ifs"
|
---|
1870 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1871 | ;;
|
---|
1872 | esac
|
---|
1873 | fi
|
---|
1874 |
|
---|
1875 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1876 | if test -n "$MAGIC_CMD"; then
|
---|
1877 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1878 | else
|
---|
1879 | echo "$ac_t""no" 1>&6
|
---|
1880 | fi
|
---|
1881 |
|
---|
1882 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1883 | if test -n "$ac_tool_prefix"; then
|
---|
1884 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1885 | echo "configure:1886: checking for file" >&5
|
---|
1886 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1887 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1888 | else
|
---|
1889 | case "$MAGIC_CMD" in
|
---|
1890 | /*)
|
---|
1891 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1892 | ;;
|
---|
1893 | ?:/*)
|
---|
1894 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1895 | ;;
|
---|
1896 | *)
|
---|
1897 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1898 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1899 | ac_dummy="/usr/bin:$PATH"
|
---|
1900 | for ac_dir in $ac_dummy; do
|
---|
1901 | test -z "$ac_dir" && ac_dir=.
|
---|
1902 | if test -f $ac_dir/file; then
|
---|
1903 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1904 | if test -n "$file_magic_test_file"; then
|
---|
1905 | case "$deplibs_check_method" in
|
---|
1906 | "file_magic "*)
|
---|
1907 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1908 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1909 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1910 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1911 | :
|
---|
1912 | else
|
---|
1913 | cat <<EOF 1>&2
|
---|
1914 |
|
---|
1915 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1916 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1917 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1918 | *** as such. This will affect the creation of libtool libraries that
|
---|
1919 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1920 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1921 | *** may want to report the problem to your system manager and/or to
|
---|
1922 | *** bug-libtool@gnu.org
|
---|
1923 |
|
---|
1924 | EOF
|
---|
1925 | fi ;;
|
---|
1926 | esac
|
---|
1927 | fi
|
---|
1928 | break
|
---|
1929 | fi
|
---|
1930 | done
|
---|
1931 | IFS="$ac_save_ifs"
|
---|
1932 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1933 | ;;
|
---|
1934 | esac
|
---|
1935 | fi
|
---|
1936 |
|
---|
1937 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1938 | if test -n "$MAGIC_CMD"; then
|
---|
1939 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1940 | else
|
---|
1941 | echo "$ac_t""no" 1>&6
|
---|
1942 | fi
|
---|
1943 |
|
---|
1944 | else
|
---|
1945 | MAGIC_CMD=:
|
---|
1946 | fi
|
---|
1947 | fi
|
---|
1948 |
|
---|
1949 | fi
|
---|
1950 | ;;
|
---|
1951 | esac
|
---|
1952 |
|
---|
1953 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1954 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1955 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1956 | echo "configure:1957: checking for $ac_word" >&5
|
---|
1957 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1958 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1959 | else
|
---|
1960 | if test -n "$RANLIB"; then
|
---|
1961 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1962 | else
|
---|
1963 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1964 | ac_dummy="$PATH"
|
---|
1965 | for ac_dir in $ac_dummy; do
|
---|
1966 | test -z "$ac_dir" && ac_dir=.
|
---|
1967 | if test -f $ac_dir/$ac_word -o \
|
---|
1968 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1969 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1970 | break
|
---|
1971 | fi
|
---|
1972 | done
|
---|
1973 | IFS="$ac_save_ifs"
|
---|
1974 | fi
|
---|
1975 | fi
|
---|
1976 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1977 | if test -n "$RANLIB"; then
|
---|
1978 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1979 | else
|
---|
1980 | echo "$ac_t""no" 1>&6
|
---|
1981 | fi
|
---|
1982 |
|
---|
1983 |
|
---|
1984 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1985 | if test -n "$ac_tool_prefix"; then
|
---|
1986 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1987 | set dummy ranlib; ac_word=$2
|
---|
1988 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1989 | echo "configure:1990: checking for $ac_word" >&5
|
---|
1990 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1991 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1992 | else
|
---|
1993 | if test -n "$RANLIB"; then
|
---|
1994 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1995 | else
|
---|
1996 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1997 | ac_dummy="$PATH"
|
---|
1998 | for ac_dir in $ac_dummy; do
|
---|
1999 | test -z "$ac_dir" && ac_dir=.
|
---|
2000 | if test -f $ac_dir/$ac_word -o \
|
---|
2001 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2002 | ac_cv_prog_RANLIB="ranlib"
|
---|
2003 | break
|
---|
2004 | fi
|
---|
2005 | done
|
---|
2006 | IFS="$ac_save_ifs"
|
---|
2007 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2008 | fi
|
---|
2009 | fi
|
---|
2010 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2011 | if test -n "$RANLIB"; then
|
---|
2012 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2013 | else
|
---|
2014 | echo "$ac_t""no" 1>&6
|
---|
2015 | fi
|
---|
2016 |
|
---|
2017 | else
|
---|
2018 | RANLIB=":"
|
---|
2019 | fi
|
---|
2020 | fi
|
---|
2021 |
|
---|
2022 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2023 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2025 | echo "configure:2026: checking for $ac_word" >&5
|
---|
2026 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2027 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2028 | else
|
---|
2029 | if test -n "$STRIP"; then
|
---|
2030 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2031 | else
|
---|
2032 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2033 | ac_dummy="$PATH"
|
---|
2034 | for ac_dir in $ac_dummy; do
|
---|
2035 | test -z "$ac_dir" && ac_dir=.
|
---|
2036 | if test -f $ac_dir/$ac_word -o \
|
---|
2037 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2038 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2039 | break
|
---|
2040 | fi
|
---|
2041 | done
|
---|
2042 | IFS="$ac_save_ifs"
|
---|
2043 | fi
|
---|
2044 | fi
|
---|
2045 | STRIP="$ac_cv_prog_STRIP"
|
---|
2046 | if test -n "$STRIP"; then
|
---|
2047 | echo "$ac_t""$STRIP" 1>&6
|
---|
2048 | else
|
---|
2049 | echo "$ac_t""no" 1>&6
|
---|
2050 | fi
|
---|
2051 |
|
---|
2052 |
|
---|
2053 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2054 | if test -n "$ac_tool_prefix"; then
|
---|
2055 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2056 | set dummy strip; ac_word=$2
|
---|
2057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2058 | echo "configure:2059: checking for $ac_word" >&5
|
---|
2059 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2060 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2061 | else
|
---|
2062 | if test -n "$STRIP"; then
|
---|
2063 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2064 | else
|
---|
2065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2066 | ac_dummy="$PATH"
|
---|
2067 | for ac_dir in $ac_dummy; do
|
---|
2068 | test -z "$ac_dir" && ac_dir=.
|
---|
2069 | if test -f $ac_dir/$ac_word -o \
|
---|
2070 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2071 | ac_cv_prog_STRIP="strip"
|
---|
2072 | break
|
---|
2073 | fi
|
---|
2074 | done
|
---|
2075 | IFS="$ac_save_ifs"
|
---|
2076 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2077 | fi
|
---|
2078 | fi
|
---|
2079 | STRIP="$ac_cv_prog_STRIP"
|
---|
2080 | if test -n "$STRIP"; then
|
---|
2081 | echo "$ac_t""$STRIP" 1>&6
|
---|
2082 | else
|
---|
2083 | echo "$ac_t""no" 1>&6
|
---|
2084 | fi
|
---|
2085 |
|
---|
2086 | else
|
---|
2087 | STRIP=":"
|
---|
2088 | fi
|
---|
2089 | fi
|
---|
2090 |
|
---|
2091 |
|
---|
2092 | # Check for any special flags to pass to ltconfig.
|
---|
2093 | libtool_flags="--cache-file=$cache_file"
|
---|
2094 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2095 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2096 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2097 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2098 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2099 |
|
---|
2100 |
|
---|
2101 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2102 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2103 | enableval="$enable_libtool_lock"
|
---|
2104 | :
|
---|
2105 | fi
|
---|
2106 |
|
---|
2107 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2108 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2109 |
|
---|
2110 | # Check whether --with-pic or --without-pic was given.
|
---|
2111 | if test "${with_pic+set}" = set; then
|
---|
2112 | withval="$with_pic"
|
---|
2113 | pic_mode="$withval"
|
---|
2114 | else
|
---|
2115 | pic_mode=default
|
---|
2116 | fi
|
---|
2117 |
|
---|
2118 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2119 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2120 |
|
---|
2121 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2122 | # libtool support.
|
---|
2123 | case "$host" in
|
---|
2124 | *-*-irix6*)
|
---|
2125 | # Find out which ABI we are using.
|
---|
2126 | echo '#line 2127 "configure"' > conftest.$ac_ext
|
---|
2127 | if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2128 | case "`/usr/bin/file conftest.o`" in
|
---|
2129 | *32-bit*)
|
---|
2130 | LD="${LD-ld} -32"
|
---|
2131 | ;;
|
---|
2132 | *N32*)
|
---|
2133 | LD="${LD-ld} -n32"
|
---|
2134 | ;;
|
---|
2135 | *64-bit*)
|
---|
2136 | LD="${LD-ld} -64"
|
---|
2137 | ;;
|
---|
2138 | esac
|
---|
2139 | fi
|
---|
2140 | rm -rf conftest*
|
---|
2141 | ;;
|
---|
2142 |
|
---|
2143 | *-*-sco3.2v5*)
|
---|
2144 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2145 | SAVE_CFLAGS="$CFLAGS"
|
---|
2146 | CFLAGS="$CFLAGS -belf"
|
---|
2147 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2148 | echo "configure:2149: checking whether the C compiler needs -belf" >&5
|
---|
2149 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2150 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2151 | else
|
---|
2152 |
|
---|
2153 | ac_ext=c
|
---|
2154 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2155 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2156 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2157 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2158 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2159 |
|
---|
2160 | cat > conftest.$ac_ext <<EOF
|
---|
2161 | #line 2162 "configure"
|
---|
2162 | #include "confdefs.h"
|
---|
2163 |
|
---|
2164 | int main() {
|
---|
2165 |
|
---|
2166 | ; return 0; }
|
---|
2167 | EOF
|
---|
2168 | if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2169 | rm -rf conftest*
|
---|
2170 | lt_cv_cc_needs_belf=yes
|
---|
2171 | else
|
---|
2172 | echo "configure: failed program was:" >&5
|
---|
2173 | cat conftest.$ac_ext >&5
|
---|
2174 | rm -rf conftest*
|
---|
2175 | lt_cv_cc_needs_belf=no
|
---|
2176 | fi
|
---|
2177 | rm -f conftest*
|
---|
2178 | ac_ext=c
|
---|
2179 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2180 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2181 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2182 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2183 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2184 |
|
---|
2185 | fi
|
---|
2186 |
|
---|
2187 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2188 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2189 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2190 | CFLAGS="$SAVE_CFLAGS"
|
---|
2191 | fi
|
---|
2192 | ;;
|
---|
2193 |
|
---|
2194 |
|
---|
2195 | esac
|
---|
2196 |
|
---|
2197 |
|
---|
2198 | # Save cache, so that ltconfig can load it
|
---|
2199 | cat > confcache <<\EOF
|
---|
2200 | # This file is a shell script that caches the results of configure
|
---|
2201 | # tests run on this system so they can be shared between configure
|
---|
2202 | # scripts and configure runs. It is not useful on other systems.
|
---|
2203 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2204 | #
|
---|
2205 | # By default, configure uses ./config.cache as the cache file,
|
---|
2206 | # creating it if it does not exist already. You can give configure
|
---|
2207 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2208 | # what configure does when it calls configure scripts in
|
---|
2209 | # subdirectories, so they share the cache.
|
---|
2210 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2211 | # config.status only pays attention to the cache file if you give it the
|
---|
2212 | # --recheck option to rerun configure.
|
---|
2213 | #
|
---|
2214 | EOF
|
---|
2215 | # The following way of writing the cache mishandles newlines in values,
|
---|
2216 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2217 | # So, don't put newlines in cache variables' values.
|
---|
2218 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2219 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2220 | (set) 2>&1 |
|
---|
2221 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2222 | *ac_space=\ *)
|
---|
2223 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2224 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2225 | sed -n \
|
---|
2226 | -e "s/'/'\\\\''/g" \
|
---|
2227 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2228 | ;;
|
---|
2229 | *)
|
---|
2230 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2231 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2232 | ;;
|
---|
2233 | esac >> confcache
|
---|
2234 | if cmp -s $cache_file confcache; then
|
---|
2235 | :
|
---|
2236 | else
|
---|
2237 | if test -w $cache_file; then
|
---|
2238 | echo "updating cache $cache_file"
|
---|
2239 | cat confcache > $cache_file
|
---|
2240 | else
|
---|
2241 | echo "not updating unwritable cache $cache_file"
|
---|
2242 | fi
|
---|
2243 | fi
|
---|
2244 | rm -f confcache
|
---|
2245 |
|
---|
2246 |
|
---|
2247 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2248 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2249 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2250 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2251 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2252 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2253 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2254 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2255 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2256 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2257 |
|
---|
2258 | # Reload cache, that may have been modified by ltconfig
|
---|
2259 | if test -r "$cache_file"; then
|
---|
2260 | echo "loading cache $cache_file"
|
---|
2261 | . $cache_file
|
---|
2262 | else
|
---|
2263 | echo "creating cache $cache_file"
|
---|
2264 | > $cache_file
|
---|
2265 | fi
|
---|
2266 |
|
---|
2267 |
|
---|
2268 | # This can be used to rebuild libtool when needed
|
---|
2269 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2270 |
|
---|
2271 | # Always use our own libtool.
|
---|
2272 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2273 |
|
---|
2274 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2275 | # clobbered by the next message.
|
---|
2276 | exec 5>>./config.log
|
---|
2277 |
|
---|
2278 |
|
---|
2279 |
|
---|
2280 |
|
---|
2281 |
|
---|
2282 |
|
---|
2283 |
|
---|
2284 |
|
---|
2285 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
---|
2286 | if test "${enable_64_bit_bfd+set}" = set; then
|
---|
2287 | enableval="$enable_64_bit_bfd"
|
---|
2288 | case "${enableval}" in
|
---|
2289 | yes) want64=true ;;
|
---|
2290 | no) want64=false ;;
|
---|
2291 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
|
---|
2292 | esac
|
---|
2293 | else
|
---|
2294 | want64=false
|
---|
2295 | fi
|
---|
2296 | # Check whether --enable-targets or --disable-targets was given.
|
---|
2297 | if test "${enable_targets+set}" = set; then
|
---|
2298 | enableval="$enable_targets"
|
---|
2299 | case "${enableval}" in
|
---|
2300 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
---|
2301 | ;;
|
---|
2302 | no) enable_targets= ;;
|
---|
2303 | *) enable_targets=$enableval ;;
|
---|
2304 | esac
|
---|
2305 | fi
|
---|
2306 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
---|
2307 | if test "${enable_commonbfdlib+set}" = set; then
|
---|
2308 | enableval="$enable_commonbfdlib"
|
---|
2309 | case "${enableval}" in
|
---|
2310 | yes) commonbfdlib=true ;;
|
---|
2311 | no) commonbfdlib=false ;;
|
---|
2312 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
---|
2313 | esac
|
---|
2314 | fi
|
---|
2315 | # Check whether --with-mmap or --without-mmap was given.
|
---|
2316 | if test "${with_mmap+set}" = set; then
|
---|
2317 | withval="$with_mmap"
|
---|
2318 | case "${withval}" in
|
---|
2319 | yes) want_mmap=true ;;
|
---|
2320 | no) want_mmap=false ;;
|
---|
2321 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
|
---|
2322 | esac
|
---|
2323 | else
|
---|
2324 | want_mmap=false
|
---|
2325 | fi
|
---|
2326 |
|
---|
2327 | build_warnings="-W -Wall"
|
---|
2328 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
2329 | if test "${enable_build_warnings+set}" = set; then
|
---|
2330 | enableval="$enable_build_warnings"
|
---|
2331 | case "${enableval}" in
|
---|
2332 | yes) ;;
|
---|
2333 | no) build_warnings="-w";;
|
---|
2334 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2335 | build_warnings="${build_warnings} ${t}";;
|
---|
2336 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2337 | build_warnings="${t} ${build_warnings}";;
|
---|
2338 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
2339 | esac
|
---|
2340 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
2341 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
2342 | fi
|
---|
2343 | fi
|
---|
2344 | WARN_CFLAGS=""
|
---|
2345 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
---|
2346 | WARN_CFLAGS="${build_warnings}"
|
---|
2347 | fi
|
---|
2348 |
|
---|
2349 |
|
---|
2350 |
|
---|
2351 |
|
---|
2352 |
|
---|
2353 |
|
---|
2354 | if test -z "$target" ; then
|
---|
2355 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
---|
2356 | fi
|
---|
2357 | if test "$program_transform_name" = s,x,x,; then
|
---|
2358 | program_transform_name=
|
---|
2359 | else
|
---|
2360 | # Double any \ or $. echo might interpret backslashes.
|
---|
2361 | cat <<\EOF_SED > conftestsed
|
---|
2362 | s,\\,\\\\,g; s,\$,$$,g
|
---|
2363 | EOF_SED
|
---|
2364 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
2365 | rm -f conftestsed
|
---|
2366 | fi
|
---|
2367 | test "$program_prefix" != NONE &&
|
---|
2368 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
2369 | # Use a double $ so make ignores it.
|
---|
2370 | test "$program_suffix" != NONE &&
|
---|
2371 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
2372 |
|
---|
2373 | # sed with no file args requires a program.
|
---|
2374 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
2375 |
|
---|
2376 |
|
---|
2377 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
2378 | echo "configure:2379: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
2379 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
2380 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
2381 | enableval="$enable_maintainer_mode"
|
---|
2382 | USE_MAINTAINER_MODE=$enableval
|
---|
2383 | else
|
---|
2384 | USE_MAINTAINER_MODE=no
|
---|
2385 | fi
|
---|
2386 |
|
---|
2387 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
2388 |
|
---|
2389 |
|
---|
2390 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
2391 | MAINTAINER_MODE_TRUE=
|
---|
2392 | MAINTAINER_MODE_FALSE='#'
|
---|
2393 | else
|
---|
2394 | MAINTAINER_MODE_TRUE='#'
|
---|
2395 | MAINTAINER_MODE_FALSE=
|
---|
2396 | fi
|
---|
2397 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
2398 |
|
---|
2399 |
|
---|
2400 |
|
---|
2401 |
|
---|
2402 |
|
---|
2403 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
2404 | echo "configure:2405: checking for executable suffix" >&5
|
---|
2405 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
2406 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2407 | else
|
---|
2408 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
2409 | ac_cv_exeext=.exe
|
---|
2410 | else
|
---|
2411 | rm -f conftest*
|
---|
2412 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
2413 | ac_cv_exeext=
|
---|
2414 | if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
2415 | for file in conftest.*; do
|
---|
2416 | case $file in
|
---|
2417 | *.c | *.o | *.obj) ;;
|
---|
2418 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
2419 | esac
|
---|
2420 | done
|
---|
2421 | else
|
---|
2422 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
2423 | fi
|
---|
2424 | rm -f conftest*
|
---|
2425 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
2426 | fi
|
---|
2427 | fi
|
---|
2428 |
|
---|
2429 | EXEEXT=""
|
---|
2430 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
2431 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
2432 | ac_exeext=$EXEEXT
|
---|
2433 |
|
---|
2434 |
|
---|
2435 | host64=false
|
---|
2436 | target64=false
|
---|
2437 |
|
---|
2438 | # host stuff:
|
---|
2439 |
|
---|
2440 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2441 | set dummy gcc; ac_word=$2
|
---|
2442 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2443 | echo "configure:2444: checking for $ac_word" >&5
|
---|
2444 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2445 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2446 | else
|
---|
2447 | if test -n "$CC"; then
|
---|
2448 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2449 | else
|
---|
2450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2451 | ac_dummy="$PATH"
|
---|
2452 | for ac_dir in $ac_dummy; do
|
---|
2453 | test -z "$ac_dir" && ac_dir=.
|
---|
2454 | if test -f $ac_dir/$ac_word -o \
|
---|
2455 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2456 | ac_cv_prog_CC="gcc"
|
---|
2457 | break
|
---|
2458 | fi
|
---|
2459 | done
|
---|
2460 | IFS="$ac_save_ifs"
|
---|
2461 | fi
|
---|
2462 | fi
|
---|
2463 | CC="$ac_cv_prog_CC"
|
---|
2464 | if test -n "$CC"; then
|
---|
2465 | echo "$ac_t""$CC" 1>&6
|
---|
2466 | else
|
---|
2467 | echo "$ac_t""no" 1>&6
|
---|
2468 | fi
|
---|
2469 |
|
---|
2470 | if test -z "$CC"; then
|
---|
2471 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2472 | set dummy cc; ac_word=$2
|
---|
2473 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2474 | echo "configure:2475: checking for $ac_word" >&5
|
---|
2475 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2476 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2477 | else
|
---|
2478 | if test -n "$CC"; then
|
---|
2479 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2480 | else
|
---|
2481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2482 | ac_prog_rejected=no
|
---|
2483 | ac_dummy="$PATH"
|
---|
2484 | for ac_dir in $ac_dummy; do
|
---|
2485 | test -z "$ac_dir" && ac_dir=.
|
---|
2486 | if test -f $ac_dir/$ac_word -o \
|
---|
2487 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2488 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
2489 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
2490 | ac_prog_rejected=yes
|
---|
2491 | continue
|
---|
2492 | fi
|
---|
2493 | ac_cv_prog_CC="cc"
|
---|
2494 | break
|
---|
2495 | fi
|
---|
2496 | done
|
---|
2497 | IFS="$ac_save_ifs"
|
---|
2498 | if test $ac_prog_rejected = yes; then
|
---|
2499 | # We found a bogon in the path, so make sure we never use it.
|
---|
2500 | set dummy $ac_cv_prog_CC
|
---|
2501 | shift
|
---|
2502 | if test $# -gt 0; then
|
---|
2503 | # We chose a different compiler from the bogus one.
|
---|
2504 | # However, it has the same basename, so the bogon will be chosen
|
---|
2505 | # first if we set CC to just the basename; use the full file name.
|
---|
2506 | shift
|
---|
2507 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
2508 | shift
|
---|
2509 | ac_cv_prog_CC="$@"
|
---|
2510 | fi
|
---|
2511 | fi
|
---|
2512 | fi
|
---|
2513 | fi
|
---|
2514 | CC="$ac_cv_prog_CC"
|
---|
2515 | if test -n "$CC"; then
|
---|
2516 | echo "$ac_t""$CC" 1>&6
|
---|
2517 | else
|
---|
2518 | echo "$ac_t""no" 1>&6
|
---|
2519 | fi
|
---|
2520 |
|
---|
2521 | if test -z "$CC"; then
|
---|
2522 | case "`uname -s`" in
|
---|
2523 | *win32* | *WIN32*)
|
---|
2524 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
2525 | set dummy cl; ac_word=$2
|
---|
2526 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2527 | echo "configure:2528: checking for $ac_word" >&5
|
---|
2528 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2529 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2530 | else
|
---|
2531 | if test -n "$CC"; then
|
---|
2532 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2533 | else
|
---|
2534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2535 | ac_dummy="$PATH"
|
---|
2536 | for ac_dir in $ac_dummy; do
|
---|
2537 | test -z "$ac_dir" && ac_dir=.
|
---|
2538 | if test -f $ac_dir/$ac_word -o \
|
---|
2539 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2540 | ac_cv_prog_CC="cl"
|
---|
2541 | break
|
---|
2542 | fi
|
---|
2543 | done
|
---|
2544 | IFS="$ac_save_ifs"
|
---|
2545 | fi
|
---|
2546 | fi
|
---|
2547 | CC="$ac_cv_prog_CC"
|
---|
2548 | if test -n "$CC"; then
|
---|
2549 | echo "$ac_t""$CC" 1>&6
|
---|
2550 | else
|
---|
2551 | echo "$ac_t""no" 1>&6
|
---|
2552 | fi
|
---|
2553 | ;;
|
---|
2554 | esac
|
---|
2555 | fi
|
---|
2556 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2557 | fi
|
---|
2558 |
|
---|
2559 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2560 | echo "configure:2561: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2561 |
|
---|
2562 | ac_ext=c
|
---|
2563 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2564 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2565 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2566 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2567 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2568 |
|
---|
2569 | cat > conftest.$ac_ext << EOF
|
---|
2570 |
|
---|
2571 | #line 2572 "configure"
|
---|
2572 | #include "confdefs.h"
|
---|
2573 |
|
---|
2574 | main(){return(0);}
|
---|
2575 | EOF
|
---|
2576 | if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2577 | ac_cv_prog_cc_works=yes
|
---|
2578 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2579 | if (./conftest; exit) 2>/dev/null; then
|
---|
2580 | ac_cv_prog_cc_cross=no
|
---|
2581 | else
|
---|
2582 | ac_cv_prog_cc_cross=yes
|
---|
2583 | fi
|
---|
2584 | else
|
---|
2585 | echo "configure: failed program was:" >&5
|
---|
2586 | cat conftest.$ac_ext >&5
|
---|
2587 | ac_cv_prog_cc_works=no
|
---|
2588 | fi
|
---|
2589 | rm -fr conftest*
|
---|
2590 | ac_ext=c
|
---|
2591 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2592 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2593 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2594 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2595 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2596 |
|
---|
2597 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2598 | if test $ac_cv_prog_cc_works = no; then
|
---|
2599 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2600 | fi
|
---|
2601 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2602 | echo "configure:2603: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2603 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2604 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2605 |
|
---|
2606 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2607 | echo "configure:2608: checking whether we are using GNU C" >&5
|
---|
2608 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2609 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2610 | else
|
---|
2611 | cat > conftest.c <<EOF
|
---|
2612 | #ifdef __GNUC__
|
---|
2613 | yes;
|
---|
2614 | #endif
|
---|
2615 | EOF
|
---|
2616 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2617 | ac_cv_prog_gcc=yes
|
---|
2618 | else
|
---|
2619 | ac_cv_prog_gcc=no
|
---|
2620 | fi
|
---|
2621 | fi
|
---|
2622 |
|
---|
2623 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2624 |
|
---|
2625 | if test $ac_cv_prog_gcc = yes; then
|
---|
2626 | GCC=yes
|
---|
2627 | else
|
---|
2628 | GCC=
|
---|
2629 | fi
|
---|
2630 |
|
---|
2631 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2632 | ac_save_CFLAGS="$CFLAGS"
|
---|
2633 | CFLAGS=
|
---|
2634 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2635 | echo "configure:2636: checking whether ${CC-cc} accepts -g" >&5
|
---|
2636 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2637 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2638 | else
|
---|
2639 | echo 'void f(){}' > conftest.c
|
---|
2640 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2641 | ac_cv_prog_cc_g=yes
|
---|
2642 | else
|
---|
2643 | ac_cv_prog_cc_g=no
|
---|
2644 | fi
|
---|
2645 | rm -f conftest*
|
---|
2646 |
|
---|
2647 | fi
|
---|
2648 |
|
---|
2649 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2650 | if test "$ac_test_CFLAGS" = set; then
|
---|
2651 | CFLAGS="$ac_save_CFLAGS"
|
---|
2652 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2653 | if test "$GCC" = yes; then
|
---|
2654 | CFLAGS="-g -O2"
|
---|
2655 | else
|
---|
2656 | CFLAGS="-g"
|
---|
2657 | fi
|
---|
2658 | else
|
---|
2659 | if test "$GCC" = yes; then
|
---|
2660 | CFLAGS="-O2"
|
---|
2661 | else
|
---|
2662 | CFLAGS=
|
---|
2663 | fi
|
---|
2664 | fi
|
---|
2665 |
|
---|
2666 |
|
---|
2667 | ALL_LINGUAS=
|
---|
2668 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2669 | echo "configure:2670: checking how to run the C preprocessor" >&5
|
---|
2670 | # On Suns, sometimes $CPP names a directory.
|
---|
2671 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2672 | CPP=
|
---|
2673 | fi
|
---|
2674 | if test -z "$CPP"; then
|
---|
2675 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2676 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2677 | else
|
---|
2678 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2679 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2680 | CPP="${CC-cc} -E"
|
---|
2681 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2682 | # not just through cpp.
|
---|
2683 | cat > conftest.$ac_ext <<EOF
|
---|
2684 | #include <sys/types.h>
|
---|
2685 | #line 2686 "configure"
|
---|
2686 | #include "confdefs.h"
|
---|
2687 | #include <assert.h>
|
---|
2688 | Syntax Error
|
---|
2689 | EOF
|
---|
2690 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2691 | { (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2692 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2693 | if test -z "$ac_err"; then
|
---|
2694 | :
|
---|
2695 | else
|
---|
2696 | echo "$ac_err" >&5
|
---|
2697 | echo "configure: failed program was:" >&5
|
---|
2698 | cat conftest.$ac_ext >&5
|
---|
2699 | rm -rf conftest*
|
---|
2700 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2701 | cat > conftest.$ac_ext <<EOF
|
---|
2702 | #include <sys/types.h>
|
---|
2703 | #line 2704 "configure"
|
---|
2704 | #include "confdefs.h"
|
---|
2705 | #include <assert.h>
|
---|
2706 | Syntax Error
|
---|
2707 | EOF
|
---|
2708 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2709 | { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2710 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2711 | if test -z "$ac_err"; then
|
---|
2712 | :
|
---|
2713 | else
|
---|
2714 | echo "$ac_err" >&5
|
---|
2715 | echo "configure: failed program was:" >&5
|
---|
2716 | cat conftest.$ac_ext >&5
|
---|
2717 | rm -rf conftest*
|
---|
2718 | CPP="${CC-cc} -nologo -E"
|
---|
2719 | cat > conftest.$ac_ext <<EOF
|
---|
2720 | #include <sys/types.h>
|
---|
2721 | #line 2722 "configure"
|
---|
2722 | #include "confdefs.h"
|
---|
2723 | #include <assert.h>
|
---|
2724 | Syntax Error
|
---|
2725 | EOF
|
---|
2726 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2727 | { (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2728 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2729 | if test -z "$ac_err"; then
|
---|
2730 | :
|
---|
2731 | else
|
---|
2732 | echo "$ac_err" >&5
|
---|
2733 | echo "configure: failed program was:" >&5
|
---|
2734 | cat conftest.$ac_ext >&5
|
---|
2735 | rm -rf conftest*
|
---|
2736 | CPP=/lib/cpp
|
---|
2737 | fi
|
---|
2738 | rm -f conftest*
|
---|
2739 | fi
|
---|
2740 | rm -f conftest*
|
---|
2741 | fi
|
---|
2742 | rm -f conftest*
|
---|
2743 | ac_cv_prog_CPP="$CPP"
|
---|
2744 | fi
|
---|
2745 | CPP="$ac_cv_prog_CPP"
|
---|
2746 | else
|
---|
2747 | ac_cv_prog_CPP="$CPP"
|
---|
2748 | fi
|
---|
2749 | echo "$ac_t""$CPP" 1>&6
|
---|
2750 |
|
---|
2751 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2752 | set dummy ranlib; ac_word=$2
|
---|
2753 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2754 | echo "configure:2755: checking for $ac_word" >&5
|
---|
2755 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2756 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2757 | else
|
---|
2758 | if test -n "$RANLIB"; then
|
---|
2759 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2760 | else
|
---|
2761 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2762 | ac_dummy="$PATH"
|
---|
2763 | for ac_dir in $ac_dummy; do
|
---|
2764 | test -z "$ac_dir" && ac_dir=.
|
---|
2765 | if test -f $ac_dir/$ac_word -o \
|
---|
2766 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2767 | ac_cv_prog_RANLIB="ranlib"
|
---|
2768 | break
|
---|
2769 | fi
|
---|
2770 | done
|
---|
2771 | IFS="$ac_save_ifs"
|
---|
2772 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2773 | fi
|
---|
2774 | fi
|
---|
2775 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2776 | if test -n "$RANLIB"; then
|
---|
2777 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2778 | else
|
---|
2779 | echo "$ac_t""no" 1>&6
|
---|
2780 | fi
|
---|
2781 |
|
---|
2782 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2783 | echo "configure:2784: checking for ANSI C header files" >&5
|
---|
2784 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2785 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2786 | else
|
---|
2787 | cat > conftest.$ac_ext <<EOF
|
---|
2788 | #include <sys/types.h>
|
---|
2789 | #line 2790 "configure"
|
---|
2790 | #include "confdefs.h"
|
---|
2791 | #include <stdlib.h>
|
---|
2792 | #include <stdarg.h>
|
---|
2793 | #include <string.h>
|
---|
2794 | #include <float.h>
|
---|
2795 | EOF
|
---|
2796 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2797 | { (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2798 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2799 | if test -z "$ac_err"; then
|
---|
2800 | rm -rf conftest*
|
---|
2801 | ac_cv_header_stdc=yes
|
---|
2802 | else
|
---|
2803 | echo "$ac_err" >&5
|
---|
2804 | echo "configure: failed program was:" >&5
|
---|
2805 | cat conftest.$ac_ext >&5
|
---|
2806 | rm -rf conftest*
|
---|
2807 | ac_cv_header_stdc=no
|
---|
2808 | fi
|
---|
2809 | rm -f conftest*
|
---|
2810 |
|
---|
2811 | if test $ac_cv_header_stdc = yes; then
|
---|
2812 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2813 | cat > conftest.$ac_ext <<EOF
|
---|
2814 | #line 2815 "configure"
|
---|
2815 | #include "confdefs.h"
|
---|
2816 | #include <string.h>
|
---|
2817 | EOF
|
---|
2818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2819 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2820 | :
|
---|
2821 | else
|
---|
2822 | rm -rf conftest*
|
---|
2823 | ac_cv_header_stdc=no
|
---|
2824 | fi
|
---|
2825 | rm -f conftest*
|
---|
2826 |
|
---|
2827 | fi
|
---|
2828 |
|
---|
2829 | if test $ac_cv_header_stdc = yes; then
|
---|
2830 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2831 | cat > conftest.$ac_ext <<EOF
|
---|
2832 | #line 2833 "configure"
|
---|
2833 | #include "confdefs.h"
|
---|
2834 | #include <stdlib.h>
|
---|
2835 | EOF
|
---|
2836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2837 | egrep "free" >/dev/null 2>&1; then
|
---|
2838 | :
|
---|
2839 | else
|
---|
2840 | rm -rf conftest*
|
---|
2841 | ac_cv_header_stdc=no
|
---|
2842 | fi
|
---|
2843 | rm -f conftest*
|
---|
2844 |
|
---|
2845 | fi
|
---|
2846 |
|
---|
2847 | if test $ac_cv_header_stdc = yes; then
|
---|
2848 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2849 | if test "$cross_compiling" = yes; then
|
---|
2850 | :
|
---|
2851 | else
|
---|
2852 | cat > conftest.$ac_ext <<EOF
|
---|
2853 | #line 2854 "configure"
|
---|
2854 | #include "confdefs.h"
|
---|
2855 | #include <ctype.h>
|
---|
2856 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2857 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2858 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2859 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2860 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2861 | exit (0); }
|
---|
2862 |
|
---|
2863 | EOF
|
---|
2864 | if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2865 | then
|
---|
2866 | :
|
---|
2867 | else
|
---|
2868 | echo "configure: failed program was:" >&5
|
---|
2869 | cat conftest.$ac_ext >&5
|
---|
2870 | rm -fr conftest*
|
---|
2871 | ac_cv_header_stdc=no
|
---|
2872 | fi
|
---|
2873 | rm -fr conftest*
|
---|
2874 | fi
|
---|
2875 |
|
---|
2876 | fi
|
---|
2877 | fi
|
---|
2878 |
|
---|
2879 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2880 | if test $ac_cv_header_stdc = yes; then
|
---|
2881 | cat >> confdefs.h <<\EOF
|
---|
2882 | #define STDC_HEADERS 1
|
---|
2883 | EOF
|
---|
2884 |
|
---|
2885 | fi
|
---|
2886 |
|
---|
2887 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2888 | echo "configure:2889: checking for working const" >&5
|
---|
2889 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2890 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2891 | else
|
---|
2892 | cat > conftest.$ac_ext <<EOF
|
---|
2893 | #line 2894 "configure"
|
---|
2894 | #include "confdefs.h"
|
---|
2895 |
|
---|
2896 | int main() {
|
---|
2897 |
|
---|
2898 | /* Ultrix mips cc rejects this. */
|
---|
2899 | typedef int charset[2]; const charset x;
|
---|
2900 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2901 | char const *const *ccp;
|
---|
2902 | char **p;
|
---|
2903 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2904 | struct point {int x, y;};
|
---|
2905 | static struct point const zero = {0,0};
|
---|
2906 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2907 | It does not let you subtract one const X* pointer from another in an arm
|
---|
2908 | of an if-expression whose if-part is not a constant expression */
|
---|
2909 | const char *g = "string";
|
---|
2910 | ccp = &g + (g ? g-g : 0);
|
---|
2911 | /* HPUX 7.0 cc rejects these. */
|
---|
2912 | ++ccp;
|
---|
2913 | p = (char**) ccp;
|
---|
2914 | ccp = (char const *const *) p;
|
---|
2915 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2916 | char *t;
|
---|
2917 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2918 |
|
---|
2919 | *t++ = 0;
|
---|
2920 | }
|
---|
2921 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2922 | int x[] = {25, 17};
|
---|
2923 | const int *foo = &x[0];
|
---|
2924 | ++foo;
|
---|
2925 | }
|
---|
2926 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2927 | typedef const int *iptr;
|
---|
2928 | iptr p = 0;
|
---|
2929 | ++p;
|
---|
2930 | }
|
---|
2931 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2932 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2933 | struct s { int j; const int *ap[3]; };
|
---|
2934 | struct s *b; b->j = 5;
|
---|
2935 | }
|
---|
2936 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2937 | const int foo = 10;
|
---|
2938 | }
|
---|
2939 |
|
---|
2940 | ; return 0; }
|
---|
2941 | EOF
|
---|
2942 | if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2943 | rm -rf conftest*
|
---|
2944 | ac_cv_c_const=yes
|
---|
2945 | else
|
---|
2946 | echo "configure: failed program was:" >&5
|
---|
2947 | cat conftest.$ac_ext >&5
|
---|
2948 | rm -rf conftest*
|
---|
2949 | ac_cv_c_const=no
|
---|
2950 | fi
|
---|
2951 | rm -f conftest*
|
---|
2952 | fi
|
---|
2953 |
|
---|
2954 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
2955 | if test $ac_cv_c_const = no; then
|
---|
2956 | cat >> confdefs.h <<\EOF
|
---|
2957 | #define const
|
---|
2958 | EOF
|
---|
2959 |
|
---|
2960 | fi
|
---|
2961 |
|
---|
2962 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
2963 | echo "configure:2964: checking for inline" >&5
|
---|
2964 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
2965 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2966 | else
|
---|
2967 | ac_cv_c_inline=no
|
---|
2968 | for ac_kw in inline __inline__ __inline; do
|
---|
2969 | cat > conftest.$ac_ext <<EOF
|
---|
2970 | #line 2971 "configure"
|
---|
2971 | #include "confdefs.h"
|
---|
2972 |
|
---|
2973 | int main() {
|
---|
2974 | } $ac_kw foo() {
|
---|
2975 | ; return 0; }
|
---|
2976 | EOF
|
---|
2977 | if { (eval echo configure:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2978 | rm -rf conftest*
|
---|
2979 | ac_cv_c_inline=$ac_kw; break
|
---|
2980 | else
|
---|
2981 | echo "configure: failed program was:" >&5
|
---|
2982 | cat conftest.$ac_ext >&5
|
---|
2983 | fi
|
---|
2984 | rm -f conftest*
|
---|
2985 | done
|
---|
2986 |
|
---|
2987 | fi
|
---|
2988 |
|
---|
2989 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
2990 | case "$ac_cv_c_inline" in
|
---|
2991 | inline | yes) ;;
|
---|
2992 | no) cat >> confdefs.h <<\EOF
|
---|
2993 | #define inline
|
---|
2994 | EOF
|
---|
2995 | ;;
|
---|
2996 | *) cat >> confdefs.h <<EOF
|
---|
2997 | #define inline $ac_cv_c_inline
|
---|
2998 | EOF
|
---|
2999 | ;;
|
---|
3000 | esac
|
---|
3001 |
|
---|
3002 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
3003 | echo "configure:3004: checking for off_t" >&5
|
---|
3004 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
3005 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3006 | else
|
---|
3007 | cat > conftest.$ac_ext <<EOF
|
---|
3008 | #line 3009 "configure"
|
---|
3009 | #include "confdefs.h"
|
---|
3010 | #include <sys/types.h>
|
---|
3011 | #if STDC_HEADERS
|
---|
3012 | #include <stdlib.h>
|
---|
3013 | #include <stddef.h>
|
---|
3014 | #endif
|
---|
3015 | EOF
|
---|
3016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3017 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3018 | rm -rf conftest*
|
---|
3019 | ac_cv_type_off_t=yes
|
---|
3020 | else
|
---|
3021 | rm -rf conftest*
|
---|
3022 | ac_cv_type_off_t=no
|
---|
3023 | fi
|
---|
3024 | rm -f conftest*
|
---|
3025 |
|
---|
3026 | fi
|
---|
3027 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
3028 | if test $ac_cv_type_off_t = no; then
|
---|
3029 | cat >> confdefs.h <<\EOF
|
---|
3030 | #define off_t long
|
---|
3031 | EOF
|
---|
3032 |
|
---|
3033 | fi
|
---|
3034 |
|
---|
3035 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
3036 | echo "configure:3037: checking for size_t" >&5
|
---|
3037 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
3038 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3039 | else
|
---|
3040 | cat > conftest.$ac_ext <<EOF
|
---|
3041 | #line 3042 "configure"
|
---|
3042 | #include "confdefs.h"
|
---|
3043 | #include <sys/types.h>
|
---|
3044 | #if STDC_HEADERS
|
---|
3045 | #include <stdlib.h>
|
---|
3046 | #include <stddef.h>
|
---|
3047 | #endif
|
---|
3048 | EOF
|
---|
3049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3050 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3051 | rm -rf conftest*
|
---|
3052 | ac_cv_type_size_t=yes
|
---|
3053 | else
|
---|
3054 | rm -rf conftest*
|
---|
3055 | ac_cv_type_size_t=no
|
---|
3056 | fi
|
---|
3057 | rm -f conftest*
|
---|
3058 |
|
---|
3059 | fi
|
---|
3060 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
3061 | if test $ac_cv_type_size_t = no; then
|
---|
3062 | cat >> confdefs.h <<\EOF
|
---|
3063 | #define size_t unsigned
|
---|
3064 | EOF
|
---|
3065 |
|
---|
3066 | fi
|
---|
3067 |
|
---|
3068 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
3069 | # for constant arguments. Useless!
|
---|
3070 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
3071 | echo "configure:3072: checking for working alloca.h" >&5
|
---|
3072 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
3073 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3074 | else
|
---|
3075 | cat > conftest.$ac_ext <<EOF
|
---|
3076 | #line 3077 "configure"
|
---|
3077 | #include "confdefs.h"
|
---|
3078 | #include <alloca.h>
|
---|
3079 | int main() {
|
---|
3080 | char *p = alloca(2 * sizeof(int));
|
---|
3081 | ; return 0; }
|
---|
3082 | EOF
|
---|
3083 | if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3084 | rm -rf conftest*
|
---|
3085 | ac_cv_header_alloca_h=yes
|
---|
3086 | else
|
---|
3087 | echo "configure: failed program was:" >&5
|
---|
3088 | cat conftest.$ac_ext >&5
|
---|
3089 | rm -rf conftest*
|
---|
3090 | ac_cv_header_alloca_h=no
|
---|
3091 | fi
|
---|
3092 | rm -f conftest*
|
---|
3093 | fi
|
---|
3094 |
|
---|
3095 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
3096 | if test $ac_cv_header_alloca_h = yes; then
|
---|
3097 | cat >> confdefs.h <<\EOF
|
---|
3098 | #define HAVE_ALLOCA_H 1
|
---|
3099 | EOF
|
---|
3100 |
|
---|
3101 | fi
|
---|
3102 |
|
---|
3103 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
3104 | echo "configure:3105: checking for alloca" >&5
|
---|
3105 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
3106 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3107 | else
|
---|
3108 | cat > conftest.$ac_ext <<EOF
|
---|
3109 | #line 3110 "configure"
|
---|
3110 | #include "confdefs.h"
|
---|
3111 |
|
---|
3112 | #ifdef __GNUC__
|
---|
3113 | # define alloca __builtin_alloca
|
---|
3114 | #else
|
---|
3115 | # ifdef _MSC_VER
|
---|
3116 | # include <malloc.h>
|
---|
3117 | # define alloca _alloca
|
---|
3118 | # else
|
---|
3119 | # if HAVE_ALLOCA_H
|
---|
3120 | # include <alloca.h>
|
---|
3121 | # else
|
---|
3122 | # ifdef _AIX
|
---|
3123 | #pragma alloca
|
---|
3124 | # else
|
---|
3125 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3126 | char *alloca ();
|
---|
3127 | # endif
|
---|
3128 | # endif
|
---|
3129 | # endif
|
---|
3130 | # endif
|
---|
3131 | #endif
|
---|
3132 |
|
---|
3133 | int main() {
|
---|
3134 | char *p = (char *) alloca(1);
|
---|
3135 | ; return 0; }
|
---|
3136 | EOF
|
---|
3137 | if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3138 | rm -rf conftest*
|
---|
3139 | ac_cv_func_alloca_works=yes
|
---|
3140 | else
|
---|
3141 | echo "configure: failed program was:" >&5
|
---|
3142 | cat conftest.$ac_ext >&5
|
---|
3143 | rm -rf conftest*
|
---|
3144 | ac_cv_func_alloca_works=no
|
---|
3145 | fi
|
---|
3146 | rm -f conftest*
|
---|
3147 | fi
|
---|
3148 |
|
---|
3149 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3150 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3151 | cat >> confdefs.h <<\EOF
|
---|
3152 | #define HAVE_ALLOCA 1
|
---|
3153 | EOF
|
---|
3154 |
|
---|
3155 | fi
|
---|
3156 |
|
---|
3157 | if test $ac_cv_func_alloca_works = no; then
|
---|
3158 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3159 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3160 | # contain a buggy version. If you still want to use their alloca,
|
---|
3161 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3162 | ALLOCA=alloca.${ac_objext}
|
---|
3163 | cat >> confdefs.h <<\EOF
|
---|
3164 | #define C_ALLOCA 1
|
---|
3165 | EOF
|
---|
3166 |
|
---|
3167 |
|
---|
3168 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3169 | echo "configure:3170: checking whether alloca needs Cray hooks" >&5
|
---|
3170 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3171 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3172 | else
|
---|
3173 | cat > conftest.$ac_ext <<EOF
|
---|
3174 | #line 3175 "configure"
|
---|
3175 | #include "confdefs.h"
|
---|
3176 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3177 | webecray
|
---|
3178 | #else
|
---|
3179 | wenotbecray
|
---|
3180 | #endif
|
---|
3181 |
|
---|
3182 | EOF
|
---|
3183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3184 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3185 | rm -rf conftest*
|
---|
3186 | ac_cv_os_cray=yes
|
---|
3187 | else
|
---|
3188 | rm -rf conftest*
|
---|
3189 | ac_cv_os_cray=no
|
---|
3190 | fi
|
---|
3191 | rm -f conftest*
|
---|
3192 |
|
---|
3193 | fi
|
---|
3194 |
|
---|
3195 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3196 | if test $ac_cv_os_cray = yes; then
|
---|
3197 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3198 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3199 | echo "configure:3200: checking for $ac_func" >&5
|
---|
3200 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3201 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3202 | else
|
---|
3203 | cat > conftest.$ac_ext <<EOF
|
---|
3204 | #line 3205 "configure"
|
---|
3205 | #include "confdefs.h"
|
---|
3206 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3207 | which can conflict with char $ac_func(); below. */
|
---|
3208 | #include <assert.h>
|
---|
3209 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3210 | /* We use char because int might match the return type of a gcc2
|
---|
3211 | builtin and then its argument prototype would still apply. */
|
---|
3212 | char $ac_func();
|
---|
3213 |
|
---|
3214 | int main() {
|
---|
3215 |
|
---|
3216 | /* The GNU C library defines this for functions which it implements
|
---|
3217 | to always fail with ENOSYS. Some functions are actually named
|
---|
3218 | something starting with __ and the normal name is an alias. */
|
---|
3219 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3220 | choke me
|
---|
3221 | #else
|
---|
3222 | $ac_func();
|
---|
3223 | #endif
|
---|
3224 |
|
---|
3225 | ; return 0; }
|
---|
3226 | EOF
|
---|
3227 | if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3228 | rm -rf conftest*
|
---|
3229 | eval "ac_cv_func_$ac_func=yes"
|
---|
3230 | else
|
---|
3231 | echo "configure: failed program was:" >&5
|
---|
3232 | cat conftest.$ac_ext >&5
|
---|
3233 | rm -rf conftest*
|
---|
3234 | eval "ac_cv_func_$ac_func=no"
|
---|
3235 | fi
|
---|
3236 | rm -f conftest*
|
---|
3237 | fi
|
---|
3238 |
|
---|
3239 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3240 | echo "$ac_t""yes" 1>&6
|
---|
3241 | cat >> confdefs.h <<EOF
|
---|
3242 | #define CRAY_STACKSEG_END $ac_func
|
---|
3243 | EOF
|
---|
3244 |
|
---|
3245 | break
|
---|
3246 | else
|
---|
3247 | echo "$ac_t""no" 1>&6
|
---|
3248 | fi
|
---|
3249 |
|
---|
3250 | done
|
---|
3251 | fi
|
---|
3252 |
|
---|
3253 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3254 | echo "configure:3255: checking stack direction for C alloca" >&5
|
---|
3255 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3256 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3257 | else
|
---|
3258 | if test "$cross_compiling" = yes; then
|
---|
3259 | ac_cv_c_stack_direction=0
|
---|
3260 | else
|
---|
3261 | cat > conftest.$ac_ext <<EOF
|
---|
3262 | #line 3263 "configure"
|
---|
3263 | #include "confdefs.h"
|
---|
3264 | find_stack_direction ()
|
---|
3265 | {
|
---|
3266 | static char *addr = 0;
|
---|
3267 | auto char dummy;
|
---|
3268 | if (addr == 0)
|
---|
3269 | {
|
---|
3270 | addr = &dummy;
|
---|
3271 | return find_stack_direction ();
|
---|
3272 | }
|
---|
3273 | else
|
---|
3274 | return (&dummy > addr) ? 1 : -1;
|
---|
3275 | }
|
---|
3276 | main ()
|
---|
3277 | {
|
---|
3278 | exit (find_stack_direction() < 0);
|
---|
3279 | }
|
---|
3280 | EOF
|
---|
3281 | if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3282 | then
|
---|
3283 | ac_cv_c_stack_direction=1
|
---|
3284 | else
|
---|
3285 | echo "configure: failed program was:" >&5
|
---|
3286 | cat conftest.$ac_ext >&5
|
---|
3287 | rm -fr conftest*
|
---|
3288 | ac_cv_c_stack_direction=-1
|
---|
3289 | fi
|
---|
3290 | rm -fr conftest*
|
---|
3291 | fi
|
---|
3292 |
|
---|
3293 | fi
|
---|
3294 |
|
---|
3295 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3296 | cat >> confdefs.h <<EOF
|
---|
3297 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3298 | EOF
|
---|
3299 |
|
---|
3300 | fi
|
---|
3301 |
|
---|
3302 | for ac_hdr in unistd.h
|
---|
3303 | do
|
---|
3304 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3305 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3306 | echo "configure:3307: checking for $ac_hdr" >&5
|
---|
3307 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3308 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3309 | else
|
---|
3310 | cat > conftest.$ac_ext <<EOF
|
---|
3311 | #include <sys/types.h>
|
---|
3312 | #line 3313 "configure"
|
---|
3313 | #include "confdefs.h"
|
---|
3314 | #include <$ac_hdr>
|
---|
3315 | EOF
|
---|
3316 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3317 | { (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3318 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3319 | if test -z "$ac_err"; then
|
---|
3320 | rm -rf conftest*
|
---|
3321 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3322 | else
|
---|
3323 | echo "$ac_err" >&5
|
---|
3324 | echo "configure: failed program was:" >&5
|
---|
3325 | cat conftest.$ac_ext >&5
|
---|
3326 | rm -rf conftest*
|
---|
3327 | eval "ac_cv_header_$ac_safe=no"
|
---|
3328 | fi
|
---|
3329 | rm -f conftest*
|
---|
3330 | fi
|
---|
3331 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3332 | echo "$ac_t""yes" 1>&6
|
---|
3333 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3334 | cat >> confdefs.h <<EOF
|
---|
3335 | #define $ac_tr_hdr 1
|
---|
3336 | EOF
|
---|
3337 |
|
---|
3338 | else
|
---|
3339 | echo "$ac_t""no" 1>&6
|
---|
3340 | fi
|
---|
3341 | done
|
---|
3342 |
|
---|
3343 | for ac_func in getpagesize
|
---|
3344 | do
|
---|
3345 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3346 | echo "configure:3347: checking for $ac_func" >&5
|
---|
3347 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3348 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3349 | else
|
---|
3350 | cat > conftest.$ac_ext <<EOF
|
---|
3351 | #line 3352 "configure"
|
---|
3352 | #include "confdefs.h"
|
---|
3353 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3354 | which can conflict with char $ac_func(); below. */
|
---|
3355 | #include <assert.h>
|
---|
3356 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3357 | /* We use char because int might match the return type of a gcc2
|
---|
3358 | builtin and then its argument prototype would still apply. */
|
---|
3359 | char $ac_func();
|
---|
3360 |
|
---|
3361 | int main() {
|
---|
3362 |
|
---|
3363 | /* The GNU C library defines this for functions which it implements
|
---|
3364 | to always fail with ENOSYS. Some functions are actually named
|
---|
3365 | something starting with __ and the normal name is an alias. */
|
---|
3366 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3367 | choke me
|
---|
3368 | #else
|
---|
3369 | $ac_func();
|
---|
3370 | #endif
|
---|
3371 |
|
---|
3372 | ; return 0; }
|
---|
3373 | EOF
|
---|
3374 | if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3375 | rm -rf conftest*
|
---|
3376 | eval "ac_cv_func_$ac_func=yes"
|
---|
3377 | else
|
---|
3378 | echo "configure: failed program was:" >&5
|
---|
3379 | cat conftest.$ac_ext >&5
|
---|
3380 | rm -rf conftest*
|
---|
3381 | eval "ac_cv_func_$ac_func=no"
|
---|
3382 | fi
|
---|
3383 | rm -f conftest*
|
---|
3384 | fi
|
---|
3385 |
|
---|
3386 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3387 | echo "$ac_t""yes" 1>&6
|
---|
3388 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3389 | cat >> confdefs.h <<EOF
|
---|
3390 | #define $ac_tr_func 1
|
---|
3391 | EOF
|
---|
3392 |
|
---|
3393 | else
|
---|
3394 | echo "$ac_t""no" 1>&6
|
---|
3395 | fi
|
---|
3396 | done
|
---|
3397 |
|
---|
3398 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3399 | echo "configure:3400: checking for working mmap" >&5
|
---|
3400 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3401 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3402 | else
|
---|
3403 | if test "$cross_compiling" = yes; then
|
---|
3404 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3405 | else
|
---|
3406 | cat > conftest.$ac_ext <<EOF
|
---|
3407 | #line 3408 "configure"
|
---|
3408 | #include "confdefs.h"
|
---|
3409 |
|
---|
3410 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3411 | Here is a matrix of mmap possibilities:
|
---|
3412 | mmap private not fixed
|
---|
3413 | mmap private fixed at somewhere currently unmapped
|
---|
3414 | mmap private fixed at somewhere already mapped
|
---|
3415 | mmap shared not fixed
|
---|
3416 | mmap shared fixed at somewhere currently unmapped
|
---|
3417 | mmap shared fixed at somewhere already mapped
|
---|
3418 | For private mappings, we should verify that changes cannot be read()
|
---|
3419 | back from the file, nor mmap's back from the file at a different
|
---|
3420 | address. (There have been systems where private was not correctly
|
---|
3421 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3422 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3423 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3424 | For shared mappings, we should conversely verify that changes get
|
---|
3425 | propogated back to all the places they're supposed to be.
|
---|
3426 |
|
---|
3427 | Grep wants private fixed already mapped.
|
---|
3428 | The main things grep needs to know about mmap are:
|
---|
3429 | * does it exist and is it safe to write into the mmap'd area
|
---|
3430 | * how to use it (BSD variants) */
|
---|
3431 | #include <sys/types.h>
|
---|
3432 | #include <fcntl.h>
|
---|
3433 | #include <sys/mman.h>
|
---|
3434 |
|
---|
3435 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3436 | #ifndef HAVE_GETPAGESIZE
|
---|
3437 | # ifdef HAVE_UNISTD_H
|
---|
3438 | # include <unistd.h>
|
---|
3439 | # endif
|
---|
3440 |
|
---|
3441 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3442 | # ifndef HAVE_SYS_PARAM_H
|
---|
3443 | # define HAVE_SYS_PARAM_H 1
|
---|
3444 | # endif
|
---|
3445 |
|
---|
3446 | # ifdef _SC_PAGESIZE
|
---|
3447 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3448 | # else /* no _SC_PAGESIZE */
|
---|
3449 | # ifdef HAVE_SYS_PARAM_H
|
---|
3450 | # include <sys/param.h>
|
---|
3451 | # ifdef EXEC_PAGESIZE
|
---|
3452 | # define getpagesize() EXEC_PAGESIZE
|
---|
3453 | # else /* no EXEC_PAGESIZE */
|
---|
3454 | # ifdef NBPG
|
---|
3455 | # define getpagesize() NBPG * CLSIZE
|
---|
3456 | # ifndef CLSIZE
|
---|
3457 | # define CLSIZE 1
|
---|
3458 | # endif /* no CLSIZE */
|
---|
3459 | # else /* no NBPG */
|
---|
3460 | # ifdef NBPC
|
---|
3461 | # define getpagesize() NBPC
|
---|
3462 | # else /* no NBPC */
|
---|
3463 | # ifdef PAGESIZE
|
---|
3464 | # define getpagesize() PAGESIZE
|
---|
3465 | # endif /* PAGESIZE */
|
---|
3466 | # endif /* no NBPC */
|
---|
3467 | # endif /* no NBPG */
|
---|
3468 | # endif /* no EXEC_PAGESIZE */
|
---|
3469 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3470 | # define getpagesize() 8192 /* punt totally */
|
---|
3471 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3472 | # endif /* no _SC_PAGESIZE */
|
---|
3473 |
|
---|
3474 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3475 |
|
---|
3476 | #ifdef __cplusplus
|
---|
3477 | extern "C" { void *malloc(unsigned); }
|
---|
3478 | #else
|
---|
3479 | char *malloc();
|
---|
3480 | #endif
|
---|
3481 |
|
---|
3482 | int
|
---|
3483 | main()
|
---|
3484 | {
|
---|
3485 | char *data, *data2, *data3;
|
---|
3486 | int i, pagesize;
|
---|
3487 | int fd;
|
---|
3488 |
|
---|
3489 | pagesize = getpagesize();
|
---|
3490 |
|
---|
3491 | /*
|
---|
3492 | * First, make a file with some known garbage in it.
|
---|
3493 | */
|
---|
3494 | data = malloc(pagesize);
|
---|
3495 | if (!data)
|
---|
3496 | exit(1);
|
---|
3497 | for (i = 0; i < pagesize; ++i)
|
---|
3498 | *(data + i) = rand();
|
---|
3499 | umask(0);
|
---|
3500 | fd = creat("conftestmmap", 0600);
|
---|
3501 | if (fd < 0)
|
---|
3502 | exit(1);
|
---|
3503 | if (write(fd, data, pagesize) != pagesize)
|
---|
3504 | exit(1);
|
---|
3505 | close(fd);
|
---|
3506 |
|
---|
3507 | /*
|
---|
3508 | * Next, try to mmap the file at a fixed address which
|
---|
3509 | * already has something else allocated at it. If we can,
|
---|
3510 | * also make sure that we see the same garbage.
|
---|
3511 | */
|
---|
3512 | fd = open("conftestmmap", O_RDWR);
|
---|
3513 | if (fd < 0)
|
---|
3514 | exit(1);
|
---|
3515 | data2 = malloc(2 * pagesize);
|
---|
3516 | if (!data2)
|
---|
3517 | exit(1);
|
---|
3518 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3519 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3520 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3521 | exit(1);
|
---|
3522 | for (i = 0; i < pagesize; ++i)
|
---|
3523 | if (*(data + i) != *(data2 + i))
|
---|
3524 | exit(1);
|
---|
3525 |
|
---|
3526 | /*
|
---|
3527 | * Finally, make sure that changes to the mapped area
|
---|
3528 | * do not percolate back to the file as seen by read().
|
---|
3529 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3530 | */
|
---|
3531 | for (i = 0; i < pagesize; ++i)
|
---|
3532 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3533 | data3 = malloc(pagesize);
|
---|
3534 | if (!data3)
|
---|
3535 | exit(1);
|
---|
3536 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3537 | exit(1);
|
---|
3538 | for (i = 0; i < pagesize; ++i)
|
---|
3539 | if (*(data + i) != *(data3 + i))
|
---|
3540 | exit(1);
|
---|
3541 | close(fd);
|
---|
3542 | unlink("conftestmmap");
|
---|
3543 | exit(0);
|
---|
3544 | }
|
---|
3545 |
|
---|
3546 | EOF
|
---|
3547 | if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3548 | then
|
---|
3549 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3550 | else
|
---|
3551 | echo "configure: failed program was:" >&5
|
---|
3552 | cat conftest.$ac_ext >&5
|
---|
3553 | rm -fr conftest*
|
---|
3554 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3555 | fi
|
---|
3556 | rm -fr conftest*
|
---|
3557 | fi
|
---|
3558 |
|
---|
3559 | fi
|
---|
3560 |
|
---|
3561 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3562 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3563 | cat >> confdefs.h <<\EOF
|
---|
3564 | #define HAVE_MMAP 1
|
---|
3565 | EOF
|
---|
3566 |
|
---|
3567 | fi
|
---|
3568 |
|
---|
3569 |
|
---|
3570 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3571 | unistd.h values.h sys/param.h
|
---|
3572 | do
|
---|
3573 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3574 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3575 | echo "configure:3576: checking for $ac_hdr" >&5
|
---|
3576 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3577 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3578 | else
|
---|
3579 | cat > conftest.$ac_ext <<EOF
|
---|
3580 | #include <sys/types.h>
|
---|
3581 | #line 3582 "configure"
|
---|
3582 | #include "confdefs.h"
|
---|
3583 | #include <$ac_hdr>
|
---|
3584 | EOF
|
---|
3585 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3586 | { (eval echo configure:3587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3587 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3588 | if test -z "$ac_err"; then
|
---|
3589 | rm -rf conftest*
|
---|
3590 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3591 | else
|
---|
3592 | echo "$ac_err" >&5
|
---|
3593 | echo "configure: failed program was:" >&5
|
---|
3594 | cat conftest.$ac_ext >&5
|
---|
3595 | rm -rf conftest*
|
---|
3596 | eval "ac_cv_header_$ac_safe=no"
|
---|
3597 | fi
|
---|
3598 | rm -f conftest*
|
---|
3599 | fi
|
---|
3600 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3601 | echo "$ac_t""yes" 1>&6
|
---|
3602 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3603 | cat >> confdefs.h <<EOF
|
---|
3604 | #define $ac_tr_hdr 1
|
---|
3605 | EOF
|
---|
3606 |
|
---|
3607 | else
|
---|
3608 | echo "$ac_t""no" 1>&6
|
---|
3609 | fi
|
---|
3610 | done
|
---|
3611 |
|
---|
3612 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3613 | __argz_count __argz_stringify __argz_next
|
---|
3614 | do
|
---|
3615 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3616 | echo "configure:3617: checking for $ac_func" >&5
|
---|
3617 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3618 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3619 | else
|
---|
3620 | cat > conftest.$ac_ext <<EOF
|
---|
3621 | #line 3622 "configure"
|
---|
3622 | #include "confdefs.h"
|
---|
3623 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3624 | which can conflict with char $ac_func(); below. */
|
---|
3625 | #include <assert.h>
|
---|
3626 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3627 | /* We use char because int might match the return type of a gcc2
|
---|
3628 | builtin and then its argument prototype would still apply. */
|
---|
3629 | char $ac_func();
|
---|
3630 |
|
---|
3631 | int main() {
|
---|
3632 |
|
---|
3633 | /* The GNU C library defines this for functions which it implements
|
---|
3634 | to always fail with ENOSYS. Some functions are actually named
|
---|
3635 | something starting with __ and the normal name is an alias. */
|
---|
3636 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3637 | choke me
|
---|
3638 | #else
|
---|
3639 | $ac_func();
|
---|
3640 | #endif
|
---|
3641 |
|
---|
3642 | ; return 0; }
|
---|
3643 | EOF
|
---|
3644 | if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3645 | rm -rf conftest*
|
---|
3646 | eval "ac_cv_func_$ac_func=yes"
|
---|
3647 | else
|
---|
3648 | echo "configure: failed program was:" >&5
|
---|
3649 | cat conftest.$ac_ext >&5
|
---|
3650 | rm -rf conftest*
|
---|
3651 | eval "ac_cv_func_$ac_func=no"
|
---|
3652 | fi
|
---|
3653 | rm -f conftest*
|
---|
3654 | fi
|
---|
3655 |
|
---|
3656 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3657 | echo "$ac_t""yes" 1>&6
|
---|
3658 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3659 | cat >> confdefs.h <<EOF
|
---|
3660 | #define $ac_tr_func 1
|
---|
3661 | EOF
|
---|
3662 |
|
---|
3663 | else
|
---|
3664 | echo "$ac_t""no" 1>&6
|
---|
3665 | fi
|
---|
3666 | done
|
---|
3667 |
|
---|
3668 |
|
---|
3669 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3670 | for ac_func in stpcpy
|
---|
3671 | do
|
---|
3672 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3673 | echo "configure:3674: checking for $ac_func" >&5
|
---|
3674 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3675 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3676 | else
|
---|
3677 | cat > conftest.$ac_ext <<EOF
|
---|
3678 | #line 3679 "configure"
|
---|
3679 | #include "confdefs.h"
|
---|
3680 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3681 | which can conflict with char $ac_func(); below. */
|
---|
3682 | #include <assert.h>
|
---|
3683 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3684 | /* We use char because int might match the return type of a gcc2
|
---|
3685 | builtin and then its argument prototype would still apply. */
|
---|
3686 | char $ac_func();
|
---|
3687 |
|
---|
3688 | int main() {
|
---|
3689 |
|
---|
3690 | /* The GNU C library defines this for functions which it implements
|
---|
3691 | to always fail with ENOSYS. Some functions are actually named
|
---|
3692 | something starting with __ and the normal name is an alias. */
|
---|
3693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3694 | choke me
|
---|
3695 | #else
|
---|
3696 | $ac_func();
|
---|
3697 | #endif
|
---|
3698 |
|
---|
3699 | ; return 0; }
|
---|
3700 | EOF
|
---|
3701 | if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3702 | rm -rf conftest*
|
---|
3703 | eval "ac_cv_func_$ac_func=yes"
|
---|
3704 | else
|
---|
3705 | echo "configure: failed program was:" >&5
|
---|
3706 | cat conftest.$ac_ext >&5
|
---|
3707 | rm -rf conftest*
|
---|
3708 | eval "ac_cv_func_$ac_func=no"
|
---|
3709 | fi
|
---|
3710 | rm -f conftest*
|
---|
3711 | fi
|
---|
3712 |
|
---|
3713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3714 | echo "$ac_t""yes" 1>&6
|
---|
3715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3716 | cat >> confdefs.h <<EOF
|
---|
3717 | #define $ac_tr_func 1
|
---|
3718 | EOF
|
---|
3719 |
|
---|
3720 | else
|
---|
3721 | echo "$ac_t""no" 1>&6
|
---|
3722 | fi
|
---|
3723 | done
|
---|
3724 |
|
---|
3725 | fi
|
---|
3726 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3727 | cat >> confdefs.h <<\EOF
|
---|
3728 | #define HAVE_STPCPY 1
|
---|
3729 | EOF
|
---|
3730 |
|
---|
3731 | fi
|
---|
3732 |
|
---|
3733 | if test $ac_cv_header_locale_h = yes; then
|
---|
3734 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3735 | echo "configure:3736: checking for LC_MESSAGES" >&5
|
---|
3736 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3737 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3738 | else
|
---|
3739 | cat > conftest.$ac_ext <<EOF
|
---|
3740 | #line 3741 "configure"
|
---|
3741 | #include "confdefs.h"
|
---|
3742 | #include <locale.h>
|
---|
3743 | int main() {
|
---|
3744 | return LC_MESSAGES
|
---|
3745 | ; return 0; }
|
---|
3746 | EOF
|
---|
3747 | if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3748 | rm -rf conftest*
|
---|
3749 | am_cv_val_LC_MESSAGES=yes
|
---|
3750 | else
|
---|
3751 | echo "configure: failed program was:" >&5
|
---|
3752 | cat conftest.$ac_ext >&5
|
---|
3753 | rm -rf conftest*
|
---|
3754 | am_cv_val_LC_MESSAGES=no
|
---|
3755 | fi
|
---|
3756 | rm -f conftest*
|
---|
3757 | fi
|
---|
3758 |
|
---|
3759 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3760 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3761 | cat >> confdefs.h <<\EOF
|
---|
3762 | #define HAVE_LC_MESSAGES 1
|
---|
3763 | EOF
|
---|
3764 |
|
---|
3765 | fi
|
---|
3766 | fi
|
---|
3767 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3768 | echo "configure:3769: checking whether NLS is requested" >&5
|
---|
3769 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3770 | if test "${enable_nls+set}" = set; then
|
---|
3771 | enableval="$enable_nls"
|
---|
3772 | USE_NLS=$enableval
|
---|
3773 | else
|
---|
3774 | USE_NLS=yes
|
---|
3775 | fi
|
---|
3776 |
|
---|
3777 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3778 |
|
---|
3779 |
|
---|
3780 | USE_INCLUDED_LIBINTL=no
|
---|
3781 |
|
---|
3782 | if test "$USE_NLS" = "yes"; then
|
---|
3783 | cat >> confdefs.h <<\EOF
|
---|
3784 | #define ENABLE_NLS 1
|
---|
3785 | EOF
|
---|
3786 |
|
---|
3787 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3788 | echo "configure:3789: checking whether included gettext is requested" >&5
|
---|
3789 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3790 | if test "${with_included_gettext+set}" = set; then
|
---|
3791 | withval="$with_included_gettext"
|
---|
3792 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3793 | else
|
---|
3794 | nls_cv_force_use_gnu_gettext=no
|
---|
3795 | fi
|
---|
3796 |
|
---|
3797 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3798 |
|
---|
3799 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3800 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3801 | nls_cv_header_intl=
|
---|
3802 | nls_cv_header_libgt=
|
---|
3803 | CATOBJEXT=NONE
|
---|
3804 |
|
---|
3805 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3806 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3807 | echo "configure:3808: checking for libintl.h" >&5
|
---|
3808 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3809 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3810 | else
|
---|
3811 | cat > conftest.$ac_ext <<EOF
|
---|
3812 | #include <sys/types.h>
|
---|
3813 | #line 3814 "configure"
|
---|
3814 | #include "confdefs.h"
|
---|
3815 | #include <libintl.h>
|
---|
3816 | EOF
|
---|
3817 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3818 | { (eval echo configure:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3819 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3820 | if test -z "$ac_err"; then
|
---|
3821 | rm -rf conftest*
|
---|
3822 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3823 | else
|
---|
3824 | echo "$ac_err" >&5
|
---|
3825 | echo "configure: failed program was:" >&5
|
---|
3826 | cat conftest.$ac_ext >&5
|
---|
3827 | rm -rf conftest*
|
---|
3828 | eval "ac_cv_header_$ac_safe=no"
|
---|
3829 | fi
|
---|
3830 | rm -f conftest*
|
---|
3831 | fi
|
---|
3832 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3833 | echo "$ac_t""yes" 1>&6
|
---|
3834 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3835 | echo "configure:3836: checking for gettext in libc" >&5
|
---|
3836 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3837 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3838 | else
|
---|
3839 | cat > conftest.$ac_ext <<EOF
|
---|
3840 | #line 3841 "configure"
|
---|
3841 | #include "confdefs.h"
|
---|
3842 | #include <libintl.h>
|
---|
3843 | int main() {
|
---|
3844 | return (int) gettext ("")
|
---|
3845 | ; return 0; }
|
---|
3846 | EOF
|
---|
3847 | if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3848 | rm -rf conftest*
|
---|
3849 | gt_cv_func_gettext_libc=yes
|
---|
3850 | else
|
---|
3851 | echo "configure: failed program was:" >&5
|
---|
3852 | cat conftest.$ac_ext >&5
|
---|
3853 | rm -rf conftest*
|
---|
3854 | gt_cv_func_gettext_libc=no
|
---|
3855 | fi
|
---|
3856 | rm -f conftest*
|
---|
3857 | fi
|
---|
3858 |
|
---|
3859 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3860 |
|
---|
3861 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3862 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3863 | echo "configure:3864: checking for bindtextdomain in -lintl" >&5
|
---|
3864 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3865 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3866 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3867 | else
|
---|
3868 | ac_save_LIBS="$LIBS"
|
---|
3869 | LIBS="-lintl $LIBS"
|
---|
3870 | cat > conftest.$ac_ext <<EOF
|
---|
3871 | #line 3872 "configure"
|
---|
3872 | #include "confdefs.h"
|
---|
3873 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3874 | /* We use char because int might match the return type of a gcc2
|
---|
3875 | builtin and then its argument prototype would still apply. */
|
---|
3876 | char bindtextdomain();
|
---|
3877 |
|
---|
3878 | int main() {
|
---|
3879 | bindtextdomain()
|
---|
3880 | ; return 0; }
|
---|
3881 | EOF
|
---|
3882 | if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3883 | rm -rf conftest*
|
---|
3884 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3885 | else
|
---|
3886 | echo "configure: failed program was:" >&5
|
---|
3887 | cat conftest.$ac_ext >&5
|
---|
3888 | rm -rf conftest*
|
---|
3889 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3890 | fi
|
---|
3891 | rm -f conftest*
|
---|
3892 | LIBS="$ac_save_LIBS"
|
---|
3893 |
|
---|
3894 | fi
|
---|
3895 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3896 | echo "$ac_t""yes" 1>&6
|
---|
3897 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3898 | echo "configure:3899: checking for gettext in libintl" >&5
|
---|
3899 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3900 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3901 | else
|
---|
3902 | cat > conftest.$ac_ext <<EOF
|
---|
3903 | #line 3904 "configure"
|
---|
3904 | #include "confdefs.h"
|
---|
3905 |
|
---|
3906 | int main() {
|
---|
3907 | return (int) gettext ("")
|
---|
3908 | ; return 0; }
|
---|
3909 | EOF
|
---|
3910 | if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3911 | rm -rf conftest*
|
---|
3912 | gt_cv_func_gettext_libintl=yes
|
---|
3913 | else
|
---|
3914 | echo "configure: failed program was:" >&5
|
---|
3915 | cat conftest.$ac_ext >&5
|
---|
3916 | rm -rf conftest*
|
---|
3917 | gt_cv_func_gettext_libintl=no
|
---|
3918 | fi
|
---|
3919 | rm -f conftest*
|
---|
3920 | fi
|
---|
3921 |
|
---|
3922 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
3923 | else
|
---|
3924 | echo "$ac_t""no" 1>&6
|
---|
3925 | fi
|
---|
3926 |
|
---|
3927 | fi
|
---|
3928 |
|
---|
3929 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
3930 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
3931 | cat >> confdefs.h <<\EOF
|
---|
3932 | #define HAVE_GETTEXT 1
|
---|
3933 | EOF
|
---|
3934 |
|
---|
3935 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3936 | set dummy msgfmt; ac_word=$2
|
---|
3937 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3938 | echo "configure:3939: checking for $ac_word" >&5
|
---|
3939 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
3940 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3941 | else
|
---|
3942 | case "$MSGFMT" in
|
---|
3943 | /*)
|
---|
3944 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
3945 | ;;
|
---|
3946 | *)
|
---|
3947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
3948 | for ac_dir in $PATH; do
|
---|
3949 | test -z "$ac_dir" && ac_dir=.
|
---|
3950 | if test -f $ac_dir/$ac_word; then
|
---|
3951 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
3952 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
3953 | break
|
---|
3954 | fi
|
---|
3955 | fi
|
---|
3956 | done
|
---|
3957 | IFS="$ac_save_ifs"
|
---|
3958 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
3959 | ;;
|
---|
3960 | esac
|
---|
3961 | fi
|
---|
3962 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
3963 | if test -n "$MSGFMT"; then
|
---|
3964 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
3965 | else
|
---|
3966 | echo "$ac_t""no" 1>&6
|
---|
3967 | fi
|
---|
3968 | if test "$MSGFMT" != "no"; then
|
---|
3969 | for ac_func in dcgettext
|
---|
3970 | do
|
---|
3971 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3972 | echo "configure:3973: checking for $ac_func" >&5
|
---|
3973 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3974 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3975 | else
|
---|
3976 | cat > conftest.$ac_ext <<EOF
|
---|
3977 | #line 3978 "configure"
|
---|
3978 | #include "confdefs.h"
|
---|
3979 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3980 | which can conflict with char $ac_func(); below. */
|
---|
3981 | #include <assert.h>
|
---|
3982 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3983 | /* We use char because int might match the return type of a gcc2
|
---|
3984 | builtin and then its argument prototype would still apply. */
|
---|
3985 | char $ac_func();
|
---|
3986 |
|
---|
3987 | int main() {
|
---|
3988 |
|
---|
3989 | /* The GNU C library defines this for functions which it implements
|
---|
3990 | to always fail with ENOSYS. Some functions are actually named
|
---|
3991 | something starting with __ and the normal name is an alias. */
|
---|
3992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3993 | choke me
|
---|
3994 | #else
|
---|
3995 | $ac_func();
|
---|
3996 | #endif
|
---|
3997 |
|
---|
3998 | ; return 0; }
|
---|
3999 | EOF
|
---|
4000 | if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4001 | rm -rf conftest*
|
---|
4002 | eval "ac_cv_func_$ac_func=yes"
|
---|
4003 | else
|
---|
4004 | echo "configure: failed program was:" >&5
|
---|
4005 | cat conftest.$ac_ext >&5
|
---|
4006 | rm -rf conftest*
|
---|
4007 | eval "ac_cv_func_$ac_func=no"
|
---|
4008 | fi
|
---|
4009 | rm -f conftest*
|
---|
4010 | fi
|
---|
4011 |
|
---|
4012 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4013 | echo "$ac_t""yes" 1>&6
|
---|
4014 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4015 | cat >> confdefs.h <<EOF
|
---|
4016 | #define $ac_tr_func 1
|
---|
4017 | EOF
|
---|
4018 |
|
---|
4019 | else
|
---|
4020 | echo "$ac_t""no" 1>&6
|
---|
4021 | fi
|
---|
4022 | done
|
---|
4023 |
|
---|
4024 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4025 | set dummy gmsgfmt; ac_word=$2
|
---|
4026 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4027 | echo "configure:4028: checking for $ac_word" >&5
|
---|
4028 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4029 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4030 | else
|
---|
4031 | case "$GMSGFMT" in
|
---|
4032 | /* | [a-zA-Z]:*)
|
---|
4033 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4034 | ;;
|
---|
4035 | ?:/*)
|
---|
4036 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4037 | ;;
|
---|
4038 | *)
|
---|
4039 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4040 | ac_dummy="$PATH"
|
---|
4041 | for ac_dir in $ac_dummy; do
|
---|
4042 | test -z "$ac_dir" && ac_dir=.
|
---|
4043 | if test -f $ac_dir/$ac_word; then
|
---|
4044 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4045 | break
|
---|
4046 | fi
|
---|
4047 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4048 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4049 | break
|
---|
4050 | fi
|
---|
4051 | done
|
---|
4052 | IFS="$ac_save_ifs"
|
---|
4053 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4054 | ;;
|
---|
4055 | esac
|
---|
4056 | fi
|
---|
4057 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4058 | if test -n "$GMSGFMT"; then
|
---|
4059 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4060 | else
|
---|
4061 | echo "$ac_t""no" 1>&6
|
---|
4062 | fi
|
---|
4063 |
|
---|
4064 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4065 | set dummy xgettext; ac_word=$2
|
---|
4066 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4067 | echo "configure:4068: checking for $ac_word" >&5
|
---|
4068 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4069 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4070 | else
|
---|
4071 | case "$XGETTEXT" in
|
---|
4072 | /*)
|
---|
4073 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4074 | ;;
|
---|
4075 | *)
|
---|
4076 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4077 | for ac_dir in $PATH; do
|
---|
4078 | test -z "$ac_dir" && ac_dir=.
|
---|
4079 | if test -f $ac_dir/$ac_word; then
|
---|
4080 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4081 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4082 | break
|
---|
4083 | fi
|
---|
4084 | fi
|
---|
4085 | done
|
---|
4086 | IFS="$ac_save_ifs"
|
---|
4087 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4088 | ;;
|
---|
4089 | esac
|
---|
4090 | fi
|
---|
4091 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4092 | if test -n "$XGETTEXT"; then
|
---|
4093 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4094 | else
|
---|
4095 | echo "$ac_t""no" 1>&6
|
---|
4096 | fi
|
---|
4097 |
|
---|
4098 | cat > conftest.$ac_ext <<EOF
|
---|
4099 | #line 4100 "configure"
|
---|
4100 | #include "confdefs.h"
|
---|
4101 |
|
---|
4102 | int main() {
|
---|
4103 | extern int _nl_msg_cat_cntr;
|
---|
4104 | return _nl_msg_cat_cntr
|
---|
4105 | ; return 0; }
|
---|
4106 | EOF
|
---|
4107 | if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4108 | rm -rf conftest*
|
---|
4109 | CATOBJEXT=.gmo
|
---|
4110 | DATADIRNAME=share
|
---|
4111 | else
|
---|
4112 | echo "configure: failed program was:" >&5
|
---|
4113 | cat conftest.$ac_ext >&5
|
---|
4114 | rm -rf conftest*
|
---|
4115 | CATOBJEXT=.mo
|
---|
4116 | DATADIRNAME=lib
|
---|
4117 | fi
|
---|
4118 | rm -f conftest*
|
---|
4119 | INSTOBJEXT=.mo
|
---|
4120 | fi
|
---|
4121 | fi
|
---|
4122 |
|
---|
4123 | else
|
---|
4124 | echo "$ac_t""no" 1>&6
|
---|
4125 | fi
|
---|
4126 |
|
---|
4127 |
|
---|
4128 |
|
---|
4129 | if test "$CATOBJEXT" = "NONE"; then
|
---|
4130 | nls_cv_use_gnu_gettext=yes
|
---|
4131 | fi
|
---|
4132 | fi
|
---|
4133 |
|
---|
4134 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
4135 | INTLOBJS="\$(GETTOBJS)"
|
---|
4136 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4137 | set dummy msgfmt; ac_word=$2
|
---|
4138 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4139 | echo "configure:4140: checking for $ac_word" >&5
|
---|
4140 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4141 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4142 | else
|
---|
4143 | case "$MSGFMT" in
|
---|
4144 | /*)
|
---|
4145 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4146 | ;;
|
---|
4147 | *)
|
---|
4148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4149 | for ac_dir in $PATH; do
|
---|
4150 | test -z "$ac_dir" && ac_dir=.
|
---|
4151 | if test -f $ac_dir/$ac_word; then
|
---|
4152 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4153 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4154 | break
|
---|
4155 | fi
|
---|
4156 | fi
|
---|
4157 | done
|
---|
4158 | IFS="$ac_save_ifs"
|
---|
4159 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4160 | ;;
|
---|
4161 | esac
|
---|
4162 | fi
|
---|
4163 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4164 | if test -n "$MSGFMT"; then
|
---|
4165 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4166 | else
|
---|
4167 | echo "$ac_t""no" 1>&6
|
---|
4168 | fi
|
---|
4169 |
|
---|
4170 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4171 | set dummy gmsgfmt; ac_word=$2
|
---|
4172 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4173 | echo "configure:4174: checking for $ac_word" >&5
|
---|
4174 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4175 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4176 | else
|
---|
4177 | case "$GMSGFMT" in
|
---|
4178 | /* | [a-zA-Z]:*)
|
---|
4179 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4180 | ;;
|
---|
4181 | ?:/*)
|
---|
4182 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4183 | ;;
|
---|
4184 | *)
|
---|
4185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4186 | ac_dummy="$PATH"
|
---|
4187 | for ac_dir in $ac_dummy; do
|
---|
4188 | test -z "$ac_dir" && ac_dir=.
|
---|
4189 | if test -f $ac_dir/$ac_word; then
|
---|
4190 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4191 | break
|
---|
4192 | fi
|
---|
4193 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4194 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4195 | break
|
---|
4196 | fi
|
---|
4197 | done
|
---|
4198 | IFS="$ac_save_ifs"
|
---|
4199 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4200 | ;;
|
---|
4201 | esac
|
---|
4202 | fi
|
---|
4203 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4204 | if test -n "$GMSGFMT"; then
|
---|
4205 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4206 | else
|
---|
4207 | echo "$ac_t""no" 1>&6
|
---|
4208 | fi
|
---|
4209 |
|
---|
4210 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4211 | set dummy xgettext; ac_word=$2
|
---|
4212 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4213 | echo "configure:4214: checking for $ac_word" >&5
|
---|
4214 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4215 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4216 | else
|
---|
4217 | case "$XGETTEXT" in
|
---|
4218 | /*)
|
---|
4219 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4220 | ;;
|
---|
4221 | *)
|
---|
4222 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4223 | for ac_dir in $PATH; do
|
---|
4224 | test -z "$ac_dir" && ac_dir=.
|
---|
4225 | if test -f $ac_dir/$ac_word; then
|
---|
4226 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4227 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4228 | break
|
---|
4229 | fi
|
---|
4230 | fi
|
---|
4231 | done
|
---|
4232 | IFS="$ac_save_ifs"
|
---|
4233 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4234 | ;;
|
---|
4235 | esac
|
---|
4236 | fi
|
---|
4237 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4238 | if test -n "$XGETTEXT"; then
|
---|
4239 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4240 | else
|
---|
4241 | echo "$ac_t""no" 1>&6
|
---|
4242 | fi
|
---|
4243 |
|
---|
4244 |
|
---|
4245 | USE_INCLUDED_LIBINTL=yes
|
---|
4246 | CATOBJEXT=.gmo
|
---|
4247 | INSTOBJEXT=.mo
|
---|
4248 | DATADIRNAME=share
|
---|
4249 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4250 | INTLLIBS=$INTLDEPS
|
---|
4251 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4252 | nls_cv_header_intl=libintl.h
|
---|
4253 | nls_cv_header_libgt=libgettext.h
|
---|
4254 | fi
|
---|
4255 |
|
---|
4256 | if test "$XGETTEXT" != ":"; then
|
---|
4257 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4258 | : ;
|
---|
4259 | else
|
---|
4260 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4261 | XGETTEXT=":"
|
---|
4262 | fi
|
---|
4263 | fi
|
---|
4264 |
|
---|
4265 | # We need to process the po/ directory.
|
---|
4266 | POSUB=po
|
---|
4267 | else
|
---|
4268 | DATADIRNAME=share
|
---|
4269 | nls_cv_header_intl=libintl.h
|
---|
4270 | nls_cv_header_libgt=libgettext.h
|
---|
4271 | fi
|
---|
4272 |
|
---|
4273 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4274 | # because some of the sources are only built for this goal.
|
---|
4275 | if test "$PACKAGE" = gettext; then
|
---|
4276 | USE_NLS=yes
|
---|
4277 | USE_INCLUDED_LIBINTL=yes
|
---|
4278 | fi
|
---|
4279 |
|
---|
4280 | for lang in $ALL_LINGUAS; do
|
---|
4281 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4282 | POFILES="$POFILES $lang.po"
|
---|
4283 | done
|
---|
4284 |
|
---|
4285 |
|
---|
4286 |
|
---|
4287 |
|
---|
4288 |
|
---|
4289 |
|
---|
4290 |
|
---|
4291 |
|
---|
4292 |
|
---|
4293 |
|
---|
4294 |
|
---|
4295 |
|
---|
4296 |
|
---|
4297 |
|
---|
4298 | if test "x$CATOBJEXT" != "x"; then
|
---|
4299 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4300 | LINGUAS=
|
---|
4301 | else
|
---|
4302 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4303 | echo "configure:4304: checking for catalogs to be installed" >&5
|
---|
4304 | NEW_LINGUAS=
|
---|
4305 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4306 | case "$ALL_LINGUAS" in
|
---|
4307 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4308 | esac
|
---|
4309 | done
|
---|
4310 | LINGUAS=$NEW_LINGUAS
|
---|
4311 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4312 | fi
|
---|
4313 |
|
---|
4314 | if test -n "$LINGUAS"; then
|
---|
4315 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4316 | fi
|
---|
4317 | fi
|
---|
4318 |
|
---|
4319 | if test $ac_cv_header_locale_h = yes; then
|
---|
4320 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4321 | else
|
---|
4322 | INCLUDE_LOCALE_H="\
|
---|
4323 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4324 | fi
|
---|
4325 |
|
---|
4326 |
|
---|
4327 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4328 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4329 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4330 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4331 | echo "configure:4332: checking for linux/version.h" >&5
|
---|
4332 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4333 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4334 | else
|
---|
4335 | cat > conftest.$ac_ext <<EOF
|
---|
4336 | #include <sys/types.h>
|
---|
4337 | #line 4338 "configure"
|
---|
4338 | #include "confdefs.h"
|
---|
4339 | #include <linux/version.h>
|
---|
4340 | EOF
|
---|
4341 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4342 | { (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4343 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4344 | if test -z "$ac_err"; then
|
---|
4345 | rm -rf conftest*
|
---|
4346 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4347 | else
|
---|
4348 | echo "$ac_err" >&5
|
---|
4349 | echo "configure: failed program was:" >&5
|
---|
4350 | cat conftest.$ac_ext >&5
|
---|
4351 | rm -rf conftest*
|
---|
4352 | eval "ac_cv_header_$ac_safe=no"
|
---|
4353 | fi
|
---|
4354 | rm -f conftest*
|
---|
4355 | fi
|
---|
4356 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4357 | echo "$ac_t""yes" 1>&6
|
---|
4358 | msgformat=linux
|
---|
4359 | else
|
---|
4360 | echo "$ac_t""no" 1>&6
|
---|
4361 | msgformat=xopen
|
---|
4362 | fi
|
---|
4363 |
|
---|
4364 |
|
---|
4365 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4366 | fi
|
---|
4367 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4368 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4369 | fi
|
---|
4370 |
|
---|
4371 | if test "$PACKAGE" = "gettext"; then
|
---|
4372 | GT_NO="#NO#"
|
---|
4373 | GT_YES=
|
---|
4374 | else
|
---|
4375 | GT_NO=
|
---|
4376 | GT_YES="#YES#"
|
---|
4377 | fi
|
---|
4378 |
|
---|
4379 |
|
---|
4380 |
|
---|
4381 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4382 |
|
---|
4383 |
|
---|
4384 | l=
|
---|
4385 |
|
---|
4386 |
|
---|
4387 | if test -d $srcdir/po; then
|
---|
4388 | test -d po || mkdir po
|
---|
4389 | if test "x$srcdir" != "x."; then
|
---|
4390 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
---|
4391 | posrcprefix="$srcdir/"
|
---|
4392 | else
|
---|
4393 | posrcprefix="../$srcdir/"
|
---|
4394 | fi
|
---|
4395 | else
|
---|
4396 | posrcprefix="../"
|
---|
4397 | fi
|
---|
4398 | rm -f po/POTFILES
|
---|
4399 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4400 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4401 | fi
|
---|
4402 |
|
---|
4403 |
|
---|
4404 | # Permit host specific settings.
|
---|
4405 | . ${srcdir}/configure.host
|
---|
4406 |
|
---|
4407 |
|
---|
4408 | # Find a good install program. We prefer a C program (faster),
|
---|
4409 | # so one script is as good as another. But avoid the broken or
|
---|
4410 | # incompatible versions:
|
---|
4411 | # SysV /etc/install, /usr/sbin/install
|
---|
4412 | # SunOS /usr/etc/install
|
---|
4413 | # IRIX /sbin/install
|
---|
4414 | # AIX /bin/install
|
---|
4415 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4416 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4417 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4418 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4419 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
4420 | echo "configure:4421: checking for a BSD compatible install" >&5
|
---|
4421 | if test -z "$INSTALL"; then
|
---|
4422 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
4423 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4424 | else
|
---|
4425 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
4426 | for ac_dir in $PATH; do
|
---|
4427 | # Account for people who put trailing slashes in PATH elements.
|
---|
4428 | case "$ac_dir/" in
|
---|
4429 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
4430 | # We reject the install program from OS/2 or W3.1
|
---|
4431 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
4432 | *)
|
---|
4433 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4434 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4435 | # by default.
|
---|
4436 | for ac_prog in ginstall scoinst install; do
|
---|
4437 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
4438 | if test $ac_prog = install &&
|
---|
4439 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
4440 | # AIX install. It has an incompatible calling convention.
|
---|
4441 | :
|
---|
4442 | else
|
---|
4443 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
4444 | break 2
|
---|
4445 | fi
|
---|
4446 | fi
|
---|
4447 | done
|
---|
4448 | ;;
|
---|
4449 | esac
|
---|
4450 | done
|
---|
4451 | IFS="$ac_save_IFS"
|
---|
4452 |
|
---|
4453 | fi
|
---|
4454 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4455 | INSTALL="$ac_cv_path_install"
|
---|
4456 | else
|
---|
4457 | # As a last resort, use the slow shell script. We don't cache a
|
---|
4458 | # path for INSTALL within a source directory, because that will
|
---|
4459 | # break other packages using the cache if that directory is
|
---|
4460 | # removed, or if the path is relative.
|
---|
4461 | INSTALL="$ac_install_sh"
|
---|
4462 | fi
|
---|
4463 | fi
|
---|
4464 | echo "$ac_t""$INSTALL" 1>&6
|
---|
4465 |
|
---|
4466 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4467 | # It thinks the first close brace ends the variable substitution.
|
---|
4468 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4469 |
|
---|
4470 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
4471 |
|
---|
4472 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4473 |
|
---|
4474 |
|
---|
4475 | BFD_HOST_64BIT_LONG=0
|
---|
4476 | BFD_HOST_64_BIT_DEFINED=0
|
---|
4477 | BFD_HOST_64_BIT=
|
---|
4478 | BFD_HOST_U_64_BIT=
|
---|
4479 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then
|
---|
4480 | BFD_HOST_64BIT_LONG=1
|
---|
4481 | elif test "x${HOST_64BIT_TYPE}" != "x"; then
|
---|
4482 | BFD_HOST_64_BIT_DEFINED=1
|
---|
4483 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
|
---|
4484 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
|
---|
4485 | fi
|
---|
4486 |
|
---|
4487 |
|
---|
4488 |
|
---|
4489 |
|
---|
4490 |
|
---|
4491 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
---|
4492 | if test -z "$CC_FOR_BUILD"; then
|
---|
4493 | if test "x$cross_compiling" = "xno"; then
|
---|
4494 | CC_FOR_BUILD='$(CC)'
|
---|
4495 | else
|
---|
4496 | CC_FOR_BUILD=gcc
|
---|
4497 | fi
|
---|
4498 | fi
|
---|
4499 |
|
---|
4500 | # Also set EXEEXT_FOR_BUILD.
|
---|
4501 | if test "x$cross_compiling" = "xno"; then
|
---|
4502 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
---|
4503 | else
|
---|
4504 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
---|
4505 | echo "configure:4506: checking for build system executable suffix" >&5
|
---|
4506 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
---|
4507 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4508 | else
|
---|
4509 | rm -f conftest*
|
---|
4510 | echo 'int main () { return 0; }' > conftest.c
|
---|
4511 | bfd_cv_build_exeext=
|
---|
4512 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
---|
4513 | for file in conftest.*; do
|
---|
4514 | case $file in
|
---|
4515 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
---|
4516 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4517 | esac
|
---|
4518 | done
|
---|
4519 | rm -f conftest*
|
---|
4520 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
---|
4521 | fi
|
---|
4522 |
|
---|
4523 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
---|
4524 | EXEEXT_FOR_BUILD=""
|
---|
4525 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
---|
4526 | fi
|
---|
4527 |
|
---|
4528 |
|
---|
4529 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
|
---|
4530 | do
|
---|
4531 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4532 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4533 | echo "configure:4534: checking for $ac_hdr" >&5
|
---|
4534 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4535 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4536 | else
|
---|
4537 | cat > conftest.$ac_ext <<EOF
|
---|
4538 | #include <sys/types.h>
|
---|
4539 | #line 4540 "configure"
|
---|
4540 | #include "confdefs.h"
|
---|
4541 | #include <$ac_hdr>
|
---|
4542 | EOF
|
---|
4543 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4544 | { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4545 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4546 | if test -z "$ac_err"; then
|
---|
4547 | rm -rf conftest*
|
---|
4548 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4549 | else
|
---|
4550 | echo "$ac_err" >&5
|
---|
4551 | echo "configure: failed program was:" >&5
|
---|
4552 | cat conftest.$ac_ext >&5
|
---|
4553 | rm -rf conftest*
|
---|
4554 | eval "ac_cv_header_$ac_safe=no"
|
---|
4555 | fi
|
---|
4556 | rm -f conftest*
|
---|
4557 | fi
|
---|
4558 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4559 | echo "$ac_t""yes" 1>&6
|
---|
4560 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4561 | cat >> confdefs.h <<EOF
|
---|
4562 | #define $ac_tr_hdr 1
|
---|
4563 | EOF
|
---|
4564 |
|
---|
4565 | else
|
---|
4566 | echo "$ac_t""no" 1>&6
|
---|
4567 | fi
|
---|
4568 | done
|
---|
4569 |
|
---|
4570 | for ac_hdr in fcntl.h sys/file.h sys/time.h
|
---|
4571 | do
|
---|
4572 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4573 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4574 | echo "configure:4575: checking for $ac_hdr" >&5
|
---|
4575 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4576 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4577 | else
|
---|
4578 | cat > conftest.$ac_ext <<EOF
|
---|
4579 | #include <sys/types.h>
|
---|
4580 | #line 4581 "configure"
|
---|
4581 | #include "confdefs.h"
|
---|
4582 | #include <$ac_hdr>
|
---|
4583 | EOF
|
---|
4584 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4585 | { (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4586 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4587 | if test -z "$ac_err"; then
|
---|
4588 | rm -rf conftest*
|
---|
4589 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4590 | else
|
---|
4591 | echo "$ac_err" >&5
|
---|
4592 | echo "configure: failed program was:" >&5
|
---|
4593 | cat conftest.$ac_ext >&5
|
---|
4594 | rm -rf conftest*
|
---|
4595 | eval "ac_cv_header_$ac_safe=no"
|
---|
4596 | fi
|
---|
4597 | rm -f conftest*
|
---|
4598 | fi
|
---|
4599 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4600 | echo "$ac_t""yes" 1>&6
|
---|
4601 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4602 | cat >> confdefs.h <<EOF
|
---|
4603 | #define $ac_tr_hdr 1
|
---|
4604 | EOF
|
---|
4605 |
|
---|
4606 | else
|
---|
4607 | echo "$ac_t""no" 1>&6
|
---|
4608 | fi
|
---|
4609 | done
|
---|
4610 |
|
---|
4611 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
---|
4612 | echo "configure:4613: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4613 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
---|
4614 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4615 | else
|
---|
4616 | cat > conftest.$ac_ext <<EOF
|
---|
4617 | #line 4618 "configure"
|
---|
4618 | #include "confdefs.h"
|
---|
4619 | #include <sys/types.h>
|
---|
4620 | #include <sys/time.h>
|
---|
4621 | #include <time.h>
|
---|
4622 | int main() {
|
---|
4623 | struct tm *tp;
|
---|
4624 | ; return 0; }
|
---|
4625 | EOF
|
---|
4626 | if { (eval echo configure:4627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4627 | rm -rf conftest*
|
---|
4628 | ac_cv_header_time=yes
|
---|
4629 | else
|
---|
4630 | echo "configure: failed program was:" >&5
|
---|
4631 | cat conftest.$ac_ext >&5
|
---|
4632 | rm -rf conftest*
|
---|
4633 | ac_cv_header_time=no
|
---|
4634 | fi
|
---|
4635 | rm -f conftest*
|
---|
4636 | fi
|
---|
4637 |
|
---|
4638 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
---|
4639 | if test $ac_cv_header_time = yes; then
|
---|
4640 | cat >> confdefs.h <<\EOF
|
---|
4641 | #define TIME_WITH_SYS_TIME 1
|
---|
4642 | EOF
|
---|
4643 |
|
---|
4644 | fi
|
---|
4645 |
|
---|
4646 | ac_header_dirent=no
|
---|
4647 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
---|
4648 | do
|
---|
4649 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4650 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
---|
4651 | echo "configure:4652: checking for $ac_hdr that defines DIR" >&5
|
---|
4652 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
---|
4653 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4654 | else
|
---|
4655 | cat > conftest.$ac_ext <<EOF
|
---|
4656 | #line 4657 "configure"
|
---|
4657 | #include "confdefs.h"
|
---|
4658 | #include <sys/types.h>
|
---|
4659 | #include <$ac_hdr>
|
---|
4660 | int main() {
|
---|
4661 | DIR *dirp = 0;
|
---|
4662 | ; return 0; }
|
---|
4663 | EOF
|
---|
4664 | if { (eval echo configure:4665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4665 | rm -rf conftest*
|
---|
4666 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
---|
4667 | else
|
---|
4668 | echo "configure: failed program was:" >&5
|
---|
4669 | cat conftest.$ac_ext >&5
|
---|
4670 | rm -rf conftest*
|
---|
4671 | eval "ac_cv_header_dirent_$ac_safe=no"
|
---|
4672 | fi
|
---|
4673 | rm -f conftest*
|
---|
4674 | fi
|
---|
4675 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
---|
4676 | echo "$ac_t""yes" 1>&6
|
---|
4677 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4678 | cat >> confdefs.h <<EOF
|
---|
4679 | #define $ac_tr_hdr 1
|
---|
4680 | EOF
|
---|
4681 | ac_header_dirent=$ac_hdr; break
|
---|
4682 | else
|
---|
4683 | echo "$ac_t""no" 1>&6
|
---|
4684 | fi
|
---|
4685 | done
|
---|
4686 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4687 | if test $ac_header_dirent = dirent.h; then
|
---|
4688 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
---|
4689 | echo "configure:4690: checking for opendir in -ldir" >&5
|
---|
4690 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4691 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4692 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4693 | else
|
---|
4694 | ac_save_LIBS="$LIBS"
|
---|
4695 | LIBS="-ldir $LIBS"
|
---|
4696 | cat > conftest.$ac_ext <<EOF
|
---|
4697 | #line 4698 "configure"
|
---|
4698 | #include "confdefs.h"
|
---|
4699 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4700 | /* We use char because int might match the return type of a gcc2
|
---|
4701 | builtin and then its argument prototype would still apply. */
|
---|
4702 | char opendir();
|
---|
4703 |
|
---|
4704 | int main() {
|
---|
4705 | opendir()
|
---|
4706 | ; return 0; }
|
---|
4707 | EOF
|
---|
4708 | if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4709 | rm -rf conftest*
|
---|
4710 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4711 | else
|
---|
4712 | echo "configure: failed program was:" >&5
|
---|
4713 | cat conftest.$ac_ext >&5
|
---|
4714 | rm -rf conftest*
|
---|
4715 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4716 | fi
|
---|
4717 | rm -f conftest*
|
---|
4718 | LIBS="$ac_save_LIBS"
|
---|
4719 |
|
---|
4720 | fi
|
---|
4721 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4722 | echo "$ac_t""yes" 1>&6
|
---|
4723 | LIBS="$LIBS -ldir"
|
---|
4724 | else
|
---|
4725 | echo "$ac_t""no" 1>&6
|
---|
4726 | fi
|
---|
4727 |
|
---|
4728 | else
|
---|
4729 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
---|
4730 | echo "configure:4731: checking for opendir in -lx" >&5
|
---|
4731 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
---|
4732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4733 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4734 | else
|
---|
4735 | ac_save_LIBS="$LIBS"
|
---|
4736 | LIBS="-lx $LIBS"
|
---|
4737 | cat > conftest.$ac_ext <<EOF
|
---|
4738 | #line 4739 "configure"
|
---|
4739 | #include "confdefs.h"
|
---|
4740 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4741 | /* We use char because int might match the return type of a gcc2
|
---|
4742 | builtin and then its argument prototype would still apply. */
|
---|
4743 | char opendir();
|
---|
4744 |
|
---|
4745 | int main() {
|
---|
4746 | opendir()
|
---|
4747 | ; return 0; }
|
---|
4748 | EOF
|
---|
4749 | if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4750 | rm -rf conftest*
|
---|
4751 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4752 | else
|
---|
4753 | echo "configure: failed program was:" >&5
|
---|
4754 | cat conftest.$ac_ext >&5
|
---|
4755 | rm -rf conftest*
|
---|
4756 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4757 | fi
|
---|
4758 | rm -f conftest*
|
---|
4759 | LIBS="$ac_save_LIBS"
|
---|
4760 |
|
---|
4761 | fi
|
---|
4762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4763 | echo "$ac_t""yes" 1>&6
|
---|
4764 | LIBS="$LIBS -lx"
|
---|
4765 | else
|
---|
4766 | echo "$ac_t""no" 1>&6
|
---|
4767 | fi
|
---|
4768 |
|
---|
4769 | fi
|
---|
4770 |
|
---|
4771 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
|
---|
4772 | do
|
---|
4773 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4774 | echo "configure:4775: checking for $ac_func" >&5
|
---|
4775 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4776 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4777 | else
|
---|
4778 | cat > conftest.$ac_ext <<EOF
|
---|
4779 | #line 4780 "configure"
|
---|
4780 | #include "confdefs.h"
|
---|
4781 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4782 | which can conflict with char $ac_func(); below. */
|
---|
4783 | #include <assert.h>
|
---|
4784 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4785 | /* We use char because int might match the return type of a gcc2
|
---|
4786 | builtin and then its argument prototype would still apply. */
|
---|
4787 | char $ac_func();
|
---|
4788 |
|
---|
4789 | int main() {
|
---|
4790 |
|
---|
4791 | /* The GNU C library defines this for functions which it implements
|
---|
4792 | to always fail with ENOSYS. Some functions are actually named
|
---|
4793 | something starting with __ and the normal name is an alias. */
|
---|
4794 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4795 | choke me
|
---|
4796 | #else
|
---|
4797 | $ac_func();
|
---|
4798 | #endif
|
---|
4799 |
|
---|
4800 | ; return 0; }
|
---|
4801 | EOF
|
---|
4802 | if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4803 | rm -rf conftest*
|
---|
4804 | eval "ac_cv_func_$ac_func=yes"
|
---|
4805 | else
|
---|
4806 | echo "configure: failed program was:" >&5
|
---|
4807 | cat conftest.$ac_ext >&5
|
---|
4808 | rm -rf conftest*
|
---|
4809 | eval "ac_cv_func_$ac_func=no"
|
---|
4810 | fi
|
---|
4811 | rm -f conftest*
|
---|
4812 | fi
|
---|
4813 |
|
---|
4814 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4815 | echo "$ac_t""yes" 1>&6
|
---|
4816 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4817 | cat >> confdefs.h <<EOF
|
---|
4818 | #define $ac_tr_func 1
|
---|
4819 | EOF
|
---|
4820 |
|
---|
4821 | else
|
---|
4822 | echo "$ac_t""no" 1>&6
|
---|
4823 | fi
|
---|
4824 | done
|
---|
4825 |
|
---|
4826 |
|
---|
4827 |
|
---|
4828 | case "${host}" in
|
---|
4829 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
|
---|
4830 | cat >> confdefs.h <<\EOF
|
---|
4831 | #define USE_BINARY_FOPEN 1
|
---|
4832 | EOF
|
---|
4833 | ;;
|
---|
4834 | esac
|
---|
4835 |
|
---|
4836 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
---|
4837 | echo "configure:4838: checking whether strstr must be declared" >&5
|
---|
4838 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
---|
4839 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4840 | else
|
---|
4841 | cat > conftest.$ac_ext <<EOF
|
---|
4842 | #line 4843 "configure"
|
---|
4843 | #include "confdefs.h"
|
---|
4844 |
|
---|
4845 | #include <stdio.h>
|
---|
4846 | #ifdef HAVE_STRING_H
|
---|
4847 | #include <string.h>
|
---|
4848 | #else
|
---|
4849 | #ifdef HAVE_STRINGS_H
|
---|
4850 | #include <strings.h>
|
---|
4851 | #endif
|
---|
4852 | #endif
|
---|
4853 | #ifdef HAVE_STDLIB_H
|
---|
4854 | #include <stdlib.h>
|
---|
4855 | #endif
|
---|
4856 | #ifdef HAVE_UNISTD_H
|
---|
4857 | #include <unistd.h>
|
---|
4858 | #endif
|
---|
4859 | int main() {
|
---|
4860 | char *(*pfn) = (char *(*)) strstr
|
---|
4861 | ; return 0; }
|
---|
4862 | EOF
|
---|
4863 | if { (eval echo configure:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4864 | rm -rf conftest*
|
---|
4865 | bfd_cv_decl_needed_strstr=no
|
---|
4866 | else
|
---|
4867 | echo "configure: failed program was:" >&5
|
---|
4868 | cat conftest.$ac_ext >&5
|
---|
4869 | rm -rf conftest*
|
---|
4870 | bfd_cv_decl_needed_strstr=yes
|
---|
4871 | fi
|
---|
4872 | rm -f conftest*
|
---|
4873 | fi
|
---|
4874 |
|
---|
4875 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
---|
4876 | if test $bfd_cv_decl_needed_strstr = yes; then
|
---|
4877 | cat >> confdefs.h <<\EOF
|
---|
4878 | #define NEED_DECLARATION_STRSTR 1
|
---|
4879 | EOF
|
---|
4880 |
|
---|
4881 | fi
|
---|
4882 |
|
---|
4883 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
---|
4884 | echo "configure:4885: checking whether malloc must be declared" >&5
|
---|
4885 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
---|
4886 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4887 | else
|
---|
4888 | cat > conftest.$ac_ext <<EOF
|
---|
4889 | #line 4890 "configure"
|
---|
4890 | #include "confdefs.h"
|
---|
4891 |
|
---|
4892 | #include <stdio.h>
|
---|
4893 | #ifdef HAVE_STRING_H
|
---|
4894 | #include <string.h>
|
---|
4895 | #else
|
---|
4896 | #ifdef HAVE_STRINGS_H
|
---|
4897 | #include <strings.h>
|
---|
4898 | #endif
|
---|
4899 | #endif
|
---|
4900 | #ifdef HAVE_STDLIB_H
|
---|
4901 | #include <stdlib.h>
|
---|
4902 | #endif
|
---|
4903 | #ifdef HAVE_UNISTD_H
|
---|
4904 | #include <unistd.h>
|
---|
4905 | #endif
|
---|
4906 | int main() {
|
---|
4907 | char *(*pfn) = (char *(*)) malloc
|
---|
4908 | ; return 0; }
|
---|
4909 | EOF
|
---|
4910 | if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4911 | rm -rf conftest*
|
---|
4912 | bfd_cv_decl_needed_malloc=no
|
---|
4913 | else
|
---|
4914 | echo "configure: failed program was:" >&5
|
---|
4915 | cat conftest.$ac_ext >&5
|
---|
4916 | rm -rf conftest*
|
---|
4917 | bfd_cv_decl_needed_malloc=yes
|
---|
4918 | fi
|
---|
4919 | rm -f conftest*
|
---|
4920 | fi
|
---|
4921 |
|
---|
4922 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
---|
4923 | if test $bfd_cv_decl_needed_malloc = yes; then
|
---|
4924 | cat >> confdefs.h <<\EOF
|
---|
4925 | #define NEED_DECLARATION_MALLOC 1
|
---|
4926 | EOF
|
---|
4927 |
|
---|
4928 | fi
|
---|
4929 |
|
---|
4930 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
---|
4931 | echo "configure:4932: checking whether realloc must be declared" >&5
|
---|
4932 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
---|
4933 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4934 | else
|
---|
4935 | cat > conftest.$ac_ext <<EOF
|
---|
4936 | #line 4937 "configure"
|
---|
4937 | #include "confdefs.h"
|
---|
4938 |
|
---|
4939 | #include <stdio.h>
|
---|
4940 | #ifdef HAVE_STRING_H
|
---|
4941 | #include <string.h>
|
---|
4942 | #else
|
---|
4943 | #ifdef HAVE_STRINGS_H
|
---|
4944 | #include <strings.h>
|
---|
4945 | #endif
|
---|
4946 | #endif
|
---|
4947 | #ifdef HAVE_STDLIB_H
|
---|
4948 | #include <stdlib.h>
|
---|
4949 | #endif
|
---|
4950 | #ifdef HAVE_UNISTD_H
|
---|
4951 | #include <unistd.h>
|
---|
4952 | #endif
|
---|
4953 | int main() {
|
---|
4954 | char *(*pfn) = (char *(*)) realloc
|
---|
4955 | ; return 0; }
|
---|
4956 | EOF
|
---|
4957 | if { (eval echo configure:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
4958 | rm -rf conftest*
|
---|
4959 | bfd_cv_decl_needed_realloc=no
|
---|
4960 | else
|
---|
4961 | echo "configure: failed program was:" >&5
|
---|
4962 | cat conftest.$ac_ext >&5
|
---|
4963 | rm -rf conftest*
|
---|
4964 | bfd_cv_decl_needed_realloc=yes
|
---|
4965 | fi
|
---|
4966 | rm -f conftest*
|
---|
4967 | fi
|
---|
4968 |
|
---|
4969 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
---|
4970 | if test $bfd_cv_decl_needed_realloc = yes; then
|
---|
4971 | cat >> confdefs.h <<\EOF
|
---|
4972 | #define NEED_DECLARATION_REALLOC 1
|
---|
4973 | EOF
|
---|
4974 |
|
---|
4975 | fi
|
---|
4976 |
|
---|
4977 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
---|
4978 | echo "configure:4979: checking whether free must be declared" >&5
|
---|
4979 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
---|
4980 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4981 | else
|
---|
4982 | cat > conftest.$ac_ext <<EOF
|
---|
4983 | #line 4984 "configure"
|
---|
4984 | #include "confdefs.h"
|
---|
4985 |
|
---|
4986 | #include <stdio.h>
|
---|
4987 | #ifdef HAVE_STRING_H
|
---|
4988 | #include <string.h>
|
---|
4989 | #else
|
---|
4990 | #ifdef HAVE_STRINGS_H
|
---|
4991 | #include <strings.h>
|
---|
4992 | #endif
|
---|
4993 | #endif
|
---|
4994 | #ifdef HAVE_STDLIB_H
|
---|
4995 | #include <stdlib.h>
|
---|
4996 | #endif
|
---|
4997 | #ifdef HAVE_UNISTD_H
|
---|
4998 | #include <unistd.h>
|
---|
4999 | #endif
|
---|
5000 | int main() {
|
---|
5001 | char *(*pfn) = (char *(*)) free
|
---|
5002 | ; return 0; }
|
---|
5003 | EOF
|
---|
5004 | if { (eval echo configure:5005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5005 | rm -rf conftest*
|
---|
5006 | bfd_cv_decl_needed_free=no
|
---|
5007 | else
|
---|
5008 | echo "configure: failed program was:" >&5
|
---|
5009 | cat conftest.$ac_ext >&5
|
---|
5010 | rm -rf conftest*
|
---|
5011 | bfd_cv_decl_needed_free=yes
|
---|
5012 | fi
|
---|
5013 | rm -f conftest*
|
---|
5014 | fi
|
---|
5015 |
|
---|
5016 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
---|
5017 | if test $bfd_cv_decl_needed_free = yes; then
|
---|
5018 | cat >> confdefs.h <<\EOF
|
---|
5019 | #define NEED_DECLARATION_FREE 1
|
---|
5020 | EOF
|
---|
5021 |
|
---|
5022 | fi
|
---|
5023 |
|
---|
5024 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
|
---|
5025 | echo "configure:5026: checking whether getenv must be declared" >&5
|
---|
5026 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
|
---|
5027 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5028 | else
|
---|
5029 | cat > conftest.$ac_ext <<EOF
|
---|
5030 | #line 5031 "configure"
|
---|
5031 | #include "confdefs.h"
|
---|
5032 |
|
---|
5033 | #include <stdio.h>
|
---|
5034 | #ifdef HAVE_STRING_H
|
---|
5035 | #include <string.h>
|
---|
5036 | #else
|
---|
5037 | #ifdef HAVE_STRINGS_H
|
---|
5038 | #include <strings.h>
|
---|
5039 | #endif
|
---|
5040 | #endif
|
---|
5041 | #ifdef HAVE_STDLIB_H
|
---|
5042 | #include <stdlib.h>
|
---|
5043 | #endif
|
---|
5044 | #ifdef HAVE_UNISTD_H
|
---|
5045 | #include <unistd.h>
|
---|
5046 | #endif
|
---|
5047 | int main() {
|
---|
5048 | char *(*pfn) = (char *(*)) getenv
|
---|
5049 | ; return 0; }
|
---|
5050 | EOF
|
---|
5051 | if { (eval echo configure:5052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5052 | rm -rf conftest*
|
---|
5053 | bfd_cv_decl_needed_getenv=no
|
---|
5054 | else
|
---|
5055 | echo "configure: failed program was:" >&5
|
---|
5056 | cat conftest.$ac_ext >&5
|
---|
5057 | rm -rf conftest*
|
---|
5058 | bfd_cv_decl_needed_getenv=yes
|
---|
5059 | fi
|
---|
5060 | rm -f conftest*
|
---|
5061 | fi
|
---|
5062 |
|
---|
5063 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
|
---|
5064 | if test $bfd_cv_decl_needed_getenv = yes; then
|
---|
5065 | cat >> confdefs.h <<\EOF
|
---|
5066 | #define NEED_DECLARATION_GETENV 1
|
---|
5067 | EOF
|
---|
5068 |
|
---|
5069 | fi
|
---|
5070 |
|
---|
5071 |
|
---|
5072 | # If we are configured native, pick a core file support file.
|
---|
5073 | COREFILE=
|
---|
5074 | COREFLAG=
|
---|
5075 | TRAD_HEADER=
|
---|
5076 | if test "${target}" = "${host}"; then
|
---|
5077 | case "${host}" in
|
---|
5078 | alpha*-*-freebsd*)
|
---|
5079 | COREFILE=''
|
---|
5080 | ;;
|
---|
5081 | alpha*-*-linux-gnu*)
|
---|
5082 | COREFILE=trad-core.lo
|
---|
5083 | TRAD_HEADER='"hosts/alphalinux.h"'
|
---|
5084 | ;;
|
---|
5085 | alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5086 | alpha*-*-*) COREFILE=osf-core.lo ;;
|
---|
5087 | arm-*-freebsd*) COREFILE='' ;;
|
---|
5088 | arm-*-riscix) COREFILE=trad-core.lo ;;
|
---|
5089 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
---|
5090 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
---|
5091 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
---|
5092 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
---|
5093 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
---|
5094 | i370-*-*)
|
---|
5095 | COREFILE=trad-core.lo
|
---|
5096 | TRAD_HEADER='"hosts/i370linux.h"'
|
---|
5097 | ;;
|
---|
5098 |
|
---|
5099 | i[3456]86-sequent-bsd*)
|
---|
5100 | COREFILE=trad-core.lo
|
---|
5101 | TRAD_HEADER='"hosts/symmetry.h"'
|
---|
5102 | ;;
|
---|
5103 | i[3456]86-sequent-sysv4*) ;;
|
---|
5104 | i[3456]86-sequent-sysv*)
|
---|
5105 | COREFILE=trad-core.lo
|
---|
5106 | TRAD_HEADER='"hosts/symmetry.h"'
|
---|
5107 | ;;
|
---|
5108 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
|
---|
5109 | COREFILE=trad-core.lo
|
---|
5110 | TRAD_HEADER='"hosts/i386bsd.h"'
|
---|
5111 | ;;
|
---|
5112 | i[3456]86-*-freebsd*)
|
---|
5113 | COREFILE=''
|
---|
5114 | TRAD_HEADER='"hosts/i386bsd.h"'
|
---|
5115 | ;;
|
---|
5116 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
|
---|
5117 | COREFILE=netbsd-core.lo
|
---|
5118 | ;;
|
---|
5119 | i[3456]86-esix-sysv3*)
|
---|
5120 | COREFILE=trad-core.lo
|
---|
5121 | TRAD_HEADER='"hosts/esix.h"'
|
---|
5122 | ;;
|
---|
5123 | i[3456]86-*-sco3.2v5*)
|
---|
5124 | COREFILE=sco5-core.lo
|
---|
5125 | ;;
|
---|
5126 | i[3456]86-*-sco* | i[3456]86-*-isc*)
|
---|
5127 | COREFILE=trad-core.lo
|
---|
5128 | TRAD_HEADER='"hosts/i386sco.h"'
|
---|
5129 | ;;
|
---|
5130 | i[3456]86-*-mach3*)
|
---|
5131 | COREFILE=trad-core.lo
|
---|
5132 | TRAD_HEADER='"hosts/i386mach3.h"'
|
---|
5133 | ;;
|
---|
5134 | i[3456]86-*-linux-gnu*)
|
---|
5135 | COREFILE=trad-core.lo
|
---|
5136 | TRAD_HEADER='"hosts/i386linux.h"'
|
---|
5137 | ;;
|
---|
5138 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
|
---|
5139 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
|
---|
5140 | i[3456]86-*-os2*)
|
---|
5141 | COREFILE=trad-core.lo
|
---|
5142 | cat >> confdefs.h <<\EOF
|
---|
5143 | #define TRAD_HEADER "hosts/i386emx.h"
|
---|
5144 | EOF
|
---|
5145 |
|
---|
5146 | ;;
|
---|
5147 | i860-*-mach3* | i860-*-osf1*)
|
---|
5148 | COREFILE=trad-core.lo
|
---|
5149 | TRAD_HEADER='"hosts/i860mach3.h"'
|
---|
5150 | ;;
|
---|
5151 | mips-dec-bsd*)
|
---|
5152 | COREFILE=trad-core.lo
|
---|
5153 | TRAD_HEADER='"hosts/mipsbsd.h"'
|
---|
5154 | ;;
|
---|
5155 | mips-dec-mach3*)
|
---|
5156 | COREFILE=trad-core.lo
|
---|
5157 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
---|
5158 | ;;
|
---|
5159 | mips-*-netbsd* | mips*-*-openbsd*)
|
---|
5160 | COREFILE=netbsd-core.lo
|
---|
5161 | ;;
|
---|
5162 | mips-dec-*)
|
---|
5163 | COREFILE=trad-core.lo
|
---|
5164 | TRAD_HEADER='"hosts/decstation.h"'
|
---|
5165 | ;;
|
---|
5166 | mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
---|
5167 | mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
---|
5168 | mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
---|
5169 | mips-*-mach3*)
|
---|
5170 | COREFILE=trad-core.lo
|
---|
5171 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
---|
5172 | ;;
|
---|
5173 | mips-*-sysv4*) ;;
|
---|
5174 | mips-*-sysv* | mips-*-riscos*)
|
---|
5175 | COREFILE=trad-core.lo
|
---|
5176 | TRAD_HEADER='"hosts/riscos.h"'
|
---|
5177 | ;;
|
---|
5178 | mips-sony-bsd*)
|
---|
5179 | COREFILE=trad-core.lo
|
---|
5180 | TRAD_HEADER='"hosts/news-mips.h"'
|
---|
5181 | ;;
|
---|
5182 | m68*-bull*-sysv*)
|
---|
5183 | COREFILE=trad-core.lo
|
---|
5184 | TRAD_HEADER='"hosts/dpx2.h"'
|
---|
5185 | ;;
|
---|
5186 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
---|
5187 | m68*-hp-bsd*)
|
---|
5188 | COREFILE=trad-core.lo
|
---|
5189 | TRAD_HEADER='"hosts/hp300bsd.h"'
|
---|
5190 | ;;
|
---|
5191 | m68*-*-linux-gnu*)
|
---|
5192 | COREFILE=trad-core.lo
|
---|
5193 | TRAD_HEADER='"hosts/m68klinux.h"'
|
---|
5194 | ;;
|
---|
5195 | m68*-motorola-sysv*)
|
---|
5196 | COREFILE=trad-core.lo
|
---|
5197 | TRAD_HEADER='"hosts/delta68.h"'
|
---|
5198 | ;;
|
---|
5199 | m68*-sony-*)
|
---|
5200 | COREFILE=trad-core.lo
|
---|
5201 | TRAD_HEADER='"hosts/news.h"'
|
---|
5202 | ;;
|
---|
5203 | m68*-*-netbsd* | m68*-*-openbsd*)
|
---|
5204 | COREFILE=netbsd-core.lo
|
---|
5205 | ;;
|
---|
5206 | m68*-apple-aux*)
|
---|
5207 | COREFILE=trad-core.lo
|
---|
5208 | TRAD_HEADER='"hosts/m68kaux.h"'
|
---|
5209 | ;;
|
---|
5210 | m88*-*-sysv4*) ;;
|
---|
5211 | m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
|
---|
5212 | m88*-*-mach3*)
|
---|
5213 | COREFILE=trad-core.lo
|
---|
5214 | TRAD_HEADER='"hosts/m88kmach3.h"'
|
---|
5215 | ;;
|
---|
5216 | ns32k-pc532-mach)
|
---|
5217 | COREFILE=trad-core.lo
|
---|
5218 | TRAD_HEADER='"hosts/pc532mach.h"'
|
---|
5219 | ;;
|
---|
5220 | ns32k-*-netbsd* | ns32k-*-openbsd*)
|
---|
5221 | COREFILE=netbsd-core.lo
|
---|
5222 | ;;
|
---|
5223 | rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
|
---|
5224 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
---|
5225 | COREFILE=rs6000-core.lo
|
---|
5226 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
---|
5227 | ;;
|
---|
5228 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
---|
5229 | rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
---|
5230 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
---|
5231 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
---|
5232 | powerpc-*-beos*) ;;
|
---|
5233 | powerpc-*-freebsd*) COREFILE='' ;;
|
---|
5234 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
---|
5235 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
---|
5236 | sparc-*-netbsd* | sparc-*-openbsd*)
|
---|
5237 | COREFILE=netbsd-core.lo
|
---|
5238 | ;;
|
---|
5239 | tahoe-*-*)
|
---|
5240 | COREFILE=trad-core.lo
|
---|
5241 | TRAD_HEADER='"hosts/tahoe.h"'
|
---|
5242 | ;;
|
---|
5243 | vax-*-ultrix2*)
|
---|
5244 | COREFILE=trad-core.lo
|
---|
5245 | TRAD_HEADER='"hosts/vaxult2.h"'
|
---|
5246 | ;;
|
---|
5247 | vax-*-ultrix*)
|
---|
5248 | COREFILE=trad-core.lo
|
---|
5249 | TRAD_HEADER='"hosts/vaxult2.h"'
|
---|
5250 | ;;
|
---|
5251 | vax-*-*)
|
---|
5252 | COREFILE=trad-core.lo
|
---|
5253 | TRAD_HEADER='"hosts/vaxbsd.h"'
|
---|
5254 | ;;
|
---|
5255 | esac
|
---|
5256 |
|
---|
5257 | case "$COREFILE" in
|
---|
5258 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
---|
5259 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
---|
5260 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
---|
5261 | irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
---|
5262 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
---|
5263 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
---|
5264 | osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
---|
5265 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
---|
5266 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
---|
5267 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
---|
5268 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
---|
5269 | esac
|
---|
5270 |
|
---|
5271 | # ELF corefile support has several flavors, but all of
|
---|
5272 | # them use something called <sys/procfs.h>
|
---|
5273 | for ac_hdr in sys/procfs.h
|
---|
5274 | do
|
---|
5275 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
5276 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
5277 | echo "configure:5278: checking for $ac_hdr" >&5
|
---|
5278 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
5279 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5280 | else
|
---|
5281 | cat > conftest.$ac_ext <<EOF
|
---|
5282 | #include <sys/types.h>
|
---|
5283 | #line 5284 "configure"
|
---|
5284 | #include "confdefs.h"
|
---|
5285 | #include <$ac_hdr>
|
---|
5286 | EOF
|
---|
5287 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
5288 | { (eval echo configure:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
5289 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
5290 | if test -z "$ac_err"; then
|
---|
5291 | rm -rf conftest*
|
---|
5292 | eval "ac_cv_header_$ac_safe=yes"
|
---|
5293 | else
|
---|
5294 | echo "$ac_err" >&5
|
---|
5295 | echo "configure: failed program was:" >&5
|
---|
5296 | cat conftest.$ac_ext >&5
|
---|
5297 | rm -rf conftest*
|
---|
5298 | eval "ac_cv_header_$ac_safe=no"
|
---|
5299 | fi
|
---|
5300 | rm -f conftest*
|
---|
5301 | fi
|
---|
5302 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
5303 | echo "$ac_t""yes" 1>&6
|
---|
5304 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
5305 | cat >> confdefs.h <<EOF
|
---|
5306 | #define $ac_tr_hdr 1
|
---|
5307 | EOF
|
---|
5308 |
|
---|
5309 | else
|
---|
5310 | echo "$ac_t""no" 1>&6
|
---|
5311 | fi
|
---|
5312 | done
|
---|
5313 |
|
---|
5314 | if test "$ac_cv_header_sys_procfs_h" = yes; then
|
---|
5315 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5316 | echo "configure:5317: checking for prstatus_t in sys/procfs.h" >&5
|
---|
5317 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
|
---|
5318 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5319 | else
|
---|
5320 | cat > conftest.$ac_ext <<EOF
|
---|
5321 | #line 5322 "configure"
|
---|
5322 | #include "confdefs.h"
|
---|
5323 |
|
---|
5324 | #define _SYSCALL32
|
---|
5325 | #include <sys/procfs.h>
|
---|
5326 | int main() {
|
---|
5327 | prstatus_t avar
|
---|
5328 | ; return 0; }
|
---|
5329 | EOF
|
---|
5330 | if { (eval echo configure:5331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5331 | rm -rf conftest*
|
---|
5332 | bfd_cv_have_sys_procfs_type_prstatus_t=yes
|
---|
5333 | else
|
---|
5334 | echo "configure: failed program was:" >&5
|
---|
5335 | cat conftest.$ac_ext >&5
|
---|
5336 | rm -rf conftest*
|
---|
5337 | bfd_cv_have_sys_procfs_type_prstatus_t=no
|
---|
5338 |
|
---|
5339 | fi
|
---|
5340 | rm -f conftest*
|
---|
5341 | fi
|
---|
5342 |
|
---|
5343 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
|
---|
5344 | cat >> confdefs.h <<\EOF
|
---|
5345 | #define HAVE_PRSTATUS_T 1
|
---|
5346 | EOF
|
---|
5347 |
|
---|
5348 | fi
|
---|
5349 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
|
---|
5350 |
|
---|
5351 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5352 | echo "configure:5353: checking for prstatus32_t in sys/procfs.h" >&5
|
---|
5353 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
|
---|
5354 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5355 | else
|
---|
5356 | cat > conftest.$ac_ext <<EOF
|
---|
5357 | #line 5358 "configure"
|
---|
5358 | #include "confdefs.h"
|
---|
5359 |
|
---|
5360 | #define _SYSCALL32
|
---|
5361 | #include <sys/procfs.h>
|
---|
5362 | int main() {
|
---|
5363 | prstatus32_t avar
|
---|
5364 | ; return 0; }
|
---|
5365 | EOF
|
---|
5366 | if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5367 | rm -rf conftest*
|
---|
5368 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes
|
---|
5369 | else
|
---|
5370 | echo "configure: failed program was:" >&5
|
---|
5371 | cat conftest.$ac_ext >&5
|
---|
5372 | rm -rf conftest*
|
---|
5373 | bfd_cv_have_sys_procfs_type_prstatus32_t=no
|
---|
5374 |
|
---|
5375 | fi
|
---|
5376 | rm -f conftest*
|
---|
5377 | fi
|
---|
5378 |
|
---|
5379 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
|
---|
5380 | cat >> confdefs.h <<\EOF
|
---|
5381 | #define HAVE_PRSTATUS32_T 1
|
---|
5382 | EOF
|
---|
5383 |
|
---|
5384 | fi
|
---|
5385 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
|
---|
5386 |
|
---|
5387 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
---|
5388 | echo "configure:5389: checking for prstatus_t.pr_who in sys/procfs.h" >&5
|
---|
5389 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
|
---|
5390 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5391 | else
|
---|
5392 | cat > conftest.$ac_ext <<EOF
|
---|
5393 | #line 5394 "configure"
|
---|
5394 | #include "confdefs.h"
|
---|
5395 |
|
---|
5396 | #define _SYSCALL32
|
---|
5397 | #include <sys/procfs.h>
|
---|
5398 | int main() {
|
---|
5399 | prstatus_t avar; void* aref = (void*) &avar.pr_who
|
---|
5400 | ; return 0; }
|
---|
5401 | EOF
|
---|
5402 | if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5403 | rm -rf conftest*
|
---|
5404 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
|
---|
5405 | else
|
---|
5406 | echo "configure: failed program was:" >&5
|
---|
5407 | cat conftest.$ac_ext >&5
|
---|
5408 | rm -rf conftest*
|
---|
5409 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
|
---|
5410 |
|
---|
5411 | fi
|
---|
5412 | rm -f conftest*
|
---|
5413 | fi
|
---|
5414 |
|
---|
5415 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
|
---|
5416 | cat >> confdefs.h <<\EOF
|
---|
5417 | #define HAVE_PRSTATUS_T_PR_WHO 1
|
---|
5418 | EOF
|
---|
5419 |
|
---|
5420 | fi
|
---|
5421 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
|
---|
5422 |
|
---|
5423 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
---|
5424 | echo "configure:5425: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
|
---|
5425 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
|
---|
5426 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5427 | else
|
---|
5428 | cat > conftest.$ac_ext <<EOF
|
---|
5429 | #line 5430 "configure"
|
---|
5430 | #include "confdefs.h"
|
---|
5431 |
|
---|
5432 | #define _SYSCALL32
|
---|
5433 | #include <sys/procfs.h>
|
---|
5434 | int main() {
|
---|
5435 | prstatus32_t avar; void* aref = (void*) &avar.pr_who
|
---|
5436 | ; return 0; }
|
---|
5437 | EOF
|
---|
5438 | if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5439 | rm -rf conftest*
|
---|
5440 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
|
---|
5441 | else
|
---|
5442 | echo "configure: failed program was:" >&5
|
---|
5443 | cat conftest.$ac_ext >&5
|
---|
5444 | rm -rf conftest*
|
---|
5445 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
|
---|
5446 |
|
---|
5447 | fi
|
---|
5448 | rm -f conftest*
|
---|
5449 | fi
|
---|
5450 |
|
---|
5451 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
|
---|
5452 | cat >> confdefs.h <<\EOF
|
---|
5453 | #define HAVE_PRSTATUS32_T_PR_WHO 1
|
---|
5454 | EOF
|
---|
5455 |
|
---|
5456 | fi
|
---|
5457 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
|
---|
5458 |
|
---|
5459 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5460 | echo "configure:5461: checking for pstatus_t in sys/procfs.h" >&5
|
---|
5461 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
---|
5462 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5463 | else
|
---|
5464 | cat > conftest.$ac_ext <<EOF
|
---|
5465 | #line 5466 "configure"
|
---|
5466 | #include "confdefs.h"
|
---|
5467 |
|
---|
5468 | #define _SYSCALL32
|
---|
5469 | #include <sys/procfs.h>
|
---|
5470 | int main() {
|
---|
5471 | pstatus_t avar
|
---|
5472 | ; return 0; }
|
---|
5473 | EOF
|
---|
5474 | if { (eval echo configure:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5475 | rm -rf conftest*
|
---|
5476 | bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
---|
5477 | else
|
---|
5478 | echo "configure: failed program was:" >&5
|
---|
5479 | cat conftest.$ac_ext >&5
|
---|
5480 | rm -rf conftest*
|
---|
5481 | bfd_cv_have_sys_procfs_type_pstatus_t=no
|
---|
5482 |
|
---|
5483 | fi
|
---|
5484 | rm -f conftest*
|
---|
5485 | fi
|
---|
5486 |
|
---|
5487 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
---|
5488 | cat >> confdefs.h <<\EOF
|
---|
5489 | #define HAVE_PSTATUS_T 1
|
---|
5490 | EOF
|
---|
5491 |
|
---|
5492 | fi
|
---|
5493 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
---|
5494 |
|
---|
5495 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5496 | echo "configure:5497: checking for pxstatus_t in sys/procfs.h" >&5
|
---|
5497 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
|
---|
5498 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5499 | else
|
---|
5500 | cat > conftest.$ac_ext <<EOF
|
---|
5501 | #line 5502 "configure"
|
---|
5502 | #include "confdefs.h"
|
---|
5503 |
|
---|
5504 | #define _SYSCALL32
|
---|
5505 | #include <sys/procfs.h>
|
---|
5506 | int main() {
|
---|
5507 | pxstatus_t avar
|
---|
5508 | ; return 0; }
|
---|
5509 | EOF
|
---|
5510 | if { (eval echo configure:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5511 | rm -rf conftest*
|
---|
5512 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes
|
---|
5513 | else
|
---|
5514 | echo "configure: failed program was:" >&5
|
---|
5515 | cat conftest.$ac_ext >&5
|
---|
5516 | rm -rf conftest*
|
---|
5517 | bfd_cv_have_sys_procfs_type_pxstatus_t=no
|
---|
5518 |
|
---|
5519 | fi
|
---|
5520 | rm -f conftest*
|
---|
5521 | fi
|
---|
5522 |
|
---|
5523 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
|
---|
5524 | cat >> confdefs.h <<\EOF
|
---|
5525 | #define HAVE_PXSTATUS_T 1
|
---|
5526 | EOF
|
---|
5527 |
|
---|
5528 | fi
|
---|
5529 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
|
---|
5530 |
|
---|
5531 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5532 | echo "configure:5533: checking for pstatus32_t in sys/procfs.h" >&5
|
---|
5533 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
|
---|
5534 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5535 | else
|
---|
5536 | cat > conftest.$ac_ext <<EOF
|
---|
5537 | #line 5538 "configure"
|
---|
5538 | #include "confdefs.h"
|
---|
5539 |
|
---|
5540 | #define _SYSCALL32
|
---|
5541 | #include <sys/procfs.h>
|
---|
5542 | int main() {
|
---|
5543 | pstatus32_t avar
|
---|
5544 | ; return 0; }
|
---|
5545 | EOF
|
---|
5546 | if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5547 | rm -rf conftest*
|
---|
5548 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes
|
---|
5549 | else
|
---|
5550 | echo "configure: failed program was:" >&5
|
---|
5551 | cat conftest.$ac_ext >&5
|
---|
5552 | rm -rf conftest*
|
---|
5553 | bfd_cv_have_sys_procfs_type_pstatus32_t=no
|
---|
5554 |
|
---|
5555 | fi
|
---|
5556 | rm -f conftest*
|
---|
5557 | fi
|
---|
5558 |
|
---|
5559 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
|
---|
5560 | cat >> confdefs.h <<\EOF
|
---|
5561 | #define HAVE_PSTATUS32_T 1
|
---|
5562 | EOF
|
---|
5563 |
|
---|
5564 | fi
|
---|
5565 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
|
---|
5566 |
|
---|
5567 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5568 | echo "configure:5569: checking for prpsinfo_t in sys/procfs.h" >&5
|
---|
5569 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
|
---|
5570 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5571 | else
|
---|
5572 | cat > conftest.$ac_ext <<EOF
|
---|
5573 | #line 5574 "configure"
|
---|
5574 | #include "confdefs.h"
|
---|
5575 |
|
---|
5576 | #define _SYSCALL32
|
---|
5577 | #include <sys/procfs.h>
|
---|
5578 | int main() {
|
---|
5579 | prpsinfo_t avar
|
---|
5580 | ; return 0; }
|
---|
5581 | EOF
|
---|
5582 | if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5583 | rm -rf conftest*
|
---|
5584 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
|
---|
5585 | else
|
---|
5586 | echo "configure: failed program was:" >&5
|
---|
5587 | cat conftest.$ac_ext >&5
|
---|
5588 | rm -rf conftest*
|
---|
5589 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no
|
---|
5590 |
|
---|
5591 | fi
|
---|
5592 | rm -f conftest*
|
---|
5593 | fi
|
---|
5594 |
|
---|
5595 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
|
---|
5596 | cat >> confdefs.h <<\EOF
|
---|
5597 | #define HAVE_PRPSINFO_T 1
|
---|
5598 | EOF
|
---|
5599 |
|
---|
5600 | fi
|
---|
5601 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
|
---|
5602 |
|
---|
5603 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5604 | echo "configure:5605: checking for prpsinfo32_t in sys/procfs.h" >&5
|
---|
5605 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
|
---|
5606 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5607 | else
|
---|
5608 | cat > conftest.$ac_ext <<EOF
|
---|
5609 | #line 5610 "configure"
|
---|
5610 | #include "confdefs.h"
|
---|
5611 |
|
---|
5612 | #define _SYSCALL32
|
---|
5613 | #include <sys/procfs.h>
|
---|
5614 | int main() {
|
---|
5615 | prpsinfo32_t avar
|
---|
5616 | ; return 0; }
|
---|
5617 | EOF
|
---|
5618 | if { (eval echo configure:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5619 | rm -rf conftest*
|
---|
5620 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
|
---|
5621 | else
|
---|
5622 | echo "configure: failed program was:" >&5
|
---|
5623 | cat conftest.$ac_ext >&5
|
---|
5624 | rm -rf conftest*
|
---|
5625 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
|
---|
5626 |
|
---|
5627 | fi
|
---|
5628 | rm -f conftest*
|
---|
5629 | fi
|
---|
5630 |
|
---|
5631 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
|
---|
5632 | cat >> confdefs.h <<\EOF
|
---|
5633 | #define HAVE_PRPSINFO32_T 1
|
---|
5634 | EOF
|
---|
5635 |
|
---|
5636 | fi
|
---|
5637 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
|
---|
5638 |
|
---|
5639 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5640 | echo "configure:5641: checking for psinfo_t in sys/procfs.h" >&5
|
---|
5641 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
|
---|
5642 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5643 | else
|
---|
5644 | cat > conftest.$ac_ext <<EOF
|
---|
5645 | #line 5646 "configure"
|
---|
5646 | #include "confdefs.h"
|
---|
5647 |
|
---|
5648 | #define _SYSCALL32
|
---|
5649 | #include <sys/procfs.h>
|
---|
5650 | int main() {
|
---|
5651 | psinfo_t avar
|
---|
5652 | ; return 0; }
|
---|
5653 | EOF
|
---|
5654 | if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5655 | rm -rf conftest*
|
---|
5656 | bfd_cv_have_sys_procfs_type_psinfo_t=yes
|
---|
5657 | else
|
---|
5658 | echo "configure: failed program was:" >&5
|
---|
5659 | cat conftest.$ac_ext >&5
|
---|
5660 | rm -rf conftest*
|
---|
5661 | bfd_cv_have_sys_procfs_type_psinfo_t=no
|
---|
5662 |
|
---|
5663 | fi
|
---|
5664 | rm -f conftest*
|
---|
5665 | fi
|
---|
5666 |
|
---|
5667 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
|
---|
5668 | cat >> confdefs.h <<\EOF
|
---|
5669 | #define HAVE_PSINFO_T 1
|
---|
5670 | EOF
|
---|
5671 |
|
---|
5672 | fi
|
---|
5673 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
|
---|
5674 |
|
---|
5675 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5676 | echo "configure:5677: checking for psinfo32_t in sys/procfs.h" >&5
|
---|
5677 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
|
---|
5678 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5679 | else
|
---|
5680 | cat > conftest.$ac_ext <<EOF
|
---|
5681 | #line 5682 "configure"
|
---|
5682 | #include "confdefs.h"
|
---|
5683 |
|
---|
5684 | #define _SYSCALL32
|
---|
5685 | #include <sys/procfs.h>
|
---|
5686 | int main() {
|
---|
5687 | psinfo32_t avar
|
---|
5688 | ; return 0; }
|
---|
5689 | EOF
|
---|
5690 | if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5691 | rm -rf conftest*
|
---|
5692 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes
|
---|
5693 | else
|
---|
5694 | echo "configure: failed program was:" >&5
|
---|
5695 | cat conftest.$ac_ext >&5
|
---|
5696 | rm -rf conftest*
|
---|
5697 | bfd_cv_have_sys_procfs_type_psinfo32_t=no
|
---|
5698 |
|
---|
5699 | fi
|
---|
5700 | rm -f conftest*
|
---|
5701 | fi
|
---|
5702 |
|
---|
5703 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
|
---|
5704 | cat >> confdefs.h <<\EOF
|
---|
5705 | #define HAVE_PSINFO32_T 1
|
---|
5706 | EOF
|
---|
5707 |
|
---|
5708 | fi
|
---|
5709 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
|
---|
5710 |
|
---|
5711 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5712 | echo "configure:5713: checking for lwpstatus_t in sys/procfs.h" >&5
|
---|
5713 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
|
---|
5714 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5715 | else
|
---|
5716 | cat > conftest.$ac_ext <<EOF
|
---|
5717 | #line 5718 "configure"
|
---|
5718 | #include "confdefs.h"
|
---|
5719 |
|
---|
5720 | #define _SYSCALL32
|
---|
5721 | #include <sys/procfs.h>
|
---|
5722 | int main() {
|
---|
5723 | lwpstatus_t avar
|
---|
5724 | ; return 0; }
|
---|
5725 | EOF
|
---|
5726 | if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5727 | rm -rf conftest*
|
---|
5728 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
|
---|
5729 | else
|
---|
5730 | echo "configure: failed program was:" >&5
|
---|
5731 | cat conftest.$ac_ext >&5
|
---|
5732 | rm -rf conftest*
|
---|
5733 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no
|
---|
5734 |
|
---|
5735 | fi
|
---|
5736 | rm -f conftest*
|
---|
5737 | fi
|
---|
5738 |
|
---|
5739 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
|
---|
5740 | cat >> confdefs.h <<\EOF
|
---|
5741 | #define HAVE_LWPSTATUS_T 1
|
---|
5742 | EOF
|
---|
5743 |
|
---|
5744 | fi
|
---|
5745 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
|
---|
5746 |
|
---|
5747 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5748 | echo "configure:5749: checking for lwpxstatus_t in sys/procfs.h" >&5
|
---|
5749 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
|
---|
5750 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5751 | else
|
---|
5752 | cat > conftest.$ac_ext <<EOF
|
---|
5753 | #line 5754 "configure"
|
---|
5754 | #include "confdefs.h"
|
---|
5755 |
|
---|
5756 | #define _SYSCALL32
|
---|
5757 | #include <sys/procfs.h>
|
---|
5758 | int main() {
|
---|
5759 | lwpxstatus_t avar
|
---|
5760 | ; return 0; }
|
---|
5761 | EOF
|
---|
5762 | if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5763 | rm -rf conftest*
|
---|
5764 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
|
---|
5765 | else
|
---|
5766 | echo "configure: failed program was:" >&5
|
---|
5767 | cat conftest.$ac_ext >&5
|
---|
5768 | rm -rf conftest*
|
---|
5769 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
|
---|
5770 |
|
---|
5771 | fi
|
---|
5772 | rm -f conftest*
|
---|
5773 | fi
|
---|
5774 |
|
---|
5775 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
|
---|
5776 | cat >> confdefs.h <<\EOF
|
---|
5777 | #define HAVE_LWPXSTATUS_T 1
|
---|
5778 | EOF
|
---|
5779 |
|
---|
5780 | fi
|
---|
5781 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
|
---|
5782 |
|
---|
5783 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
|
---|
5784 | echo "configure:5785: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
|
---|
5785 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
|
---|
5786 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5787 | else
|
---|
5788 | cat > conftest.$ac_ext <<EOF
|
---|
5789 | #line 5790 "configure"
|
---|
5790 | #include "confdefs.h"
|
---|
5791 |
|
---|
5792 | #define _SYSCALL32
|
---|
5793 | #include <sys/procfs.h>
|
---|
5794 | int main() {
|
---|
5795 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context
|
---|
5796 | ; return 0; }
|
---|
5797 | EOF
|
---|
5798 | if { (eval echo configure:5799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5799 | rm -rf conftest*
|
---|
5800 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
|
---|
5801 | else
|
---|
5802 | echo "configure: failed program was:" >&5
|
---|
5803 | cat conftest.$ac_ext >&5
|
---|
5804 | rm -rf conftest*
|
---|
5805 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
|
---|
5806 |
|
---|
5807 | fi
|
---|
5808 | rm -f conftest*
|
---|
5809 | fi
|
---|
5810 |
|
---|
5811 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
|
---|
5812 | cat >> confdefs.h <<\EOF
|
---|
5813 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
|
---|
5814 | EOF
|
---|
5815 |
|
---|
5816 | fi
|
---|
5817 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
|
---|
5818 |
|
---|
5819 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
|
---|
5820 | echo "configure:5821: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
|
---|
5821 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
|
---|
5822 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5823 | else
|
---|
5824 | cat > conftest.$ac_ext <<EOF
|
---|
5825 | #line 5826 "configure"
|
---|
5826 | #include "confdefs.h"
|
---|
5827 |
|
---|
5828 | #define _SYSCALL32
|
---|
5829 | #include <sys/procfs.h>
|
---|
5830 | int main() {
|
---|
5831 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
|
---|
5832 | ; return 0; }
|
---|
5833 | EOF
|
---|
5834 | if { (eval echo configure:5835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5835 | rm -rf conftest*
|
---|
5836 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
|
---|
5837 | else
|
---|
5838 | echo "configure: failed program was:" >&5
|
---|
5839 | cat conftest.$ac_ext >&5
|
---|
5840 | rm -rf conftest*
|
---|
5841 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
|
---|
5842 |
|
---|
5843 | fi
|
---|
5844 | rm -f conftest*
|
---|
5845 | fi
|
---|
5846 |
|
---|
5847 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
|
---|
5848 | cat >> confdefs.h <<\EOF
|
---|
5849 | #define HAVE_LWPSTATUS_T_PR_REG 1
|
---|
5850 | EOF
|
---|
5851 |
|
---|
5852 | fi
|
---|
5853 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
|
---|
5854 |
|
---|
5855 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
---|
5856 | echo "configure:5857: checking for win32_pstatus_t in sys/procfs.h" >&5
|
---|
5857 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
|
---|
5858 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5859 | else
|
---|
5860 | cat > conftest.$ac_ext <<EOF
|
---|
5861 | #line 5862 "configure"
|
---|
5862 | #include "confdefs.h"
|
---|
5863 |
|
---|
5864 | #define _SYSCALL32
|
---|
5865 | #include <sys/procfs.h>
|
---|
5866 | int main() {
|
---|
5867 | win32_pstatus_t avar
|
---|
5868 | ; return 0; }
|
---|
5869 | EOF
|
---|
5870 | if { (eval echo configure:5871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
5871 | rm -rf conftest*
|
---|
5872 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
|
---|
5873 | else
|
---|
5874 | echo "configure: failed program was:" >&5
|
---|
5875 | cat conftest.$ac_ext >&5
|
---|
5876 | rm -rf conftest*
|
---|
5877 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
|
---|
5878 |
|
---|
5879 | fi
|
---|
5880 | rm -f conftest*
|
---|
5881 | fi
|
---|
5882 |
|
---|
5883 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
|
---|
5884 | cat >> confdefs.h <<\EOF
|
---|
5885 | #define HAVE_WIN32_PSTATUS_T 1
|
---|
5886 | EOF
|
---|
5887 |
|
---|
5888 | fi
|
---|
5889 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
|
---|
5890 |
|
---|
5891 | fi
|
---|
5892 | fi
|
---|
5893 |
|
---|
5894 |
|
---|
5895 | if test -n "$TRAD_HEADER"; then
|
---|
5896 | cat >> confdefs.h <<EOF
|
---|
5897 | #define TRAD_HEADER $TRAD_HEADER
|
---|
5898 | EOF
|
---|
5899 |
|
---|
5900 | fi
|
---|
5901 |
|
---|
5902 | # Horrible hacks to build DLLs on Windows.
|
---|
5903 | WIN32LDFLAGS=
|
---|
5904 | WIN32LIBADD=
|
---|
5905 | case "${host}" in
|
---|
5906 | *-*-cygwin*)
|
---|
5907 | if test "$enable_shared" = "yes"; then
|
---|
5908 | WIN32LDFLAGS="-no-undefined"
|
---|
5909 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
---|
5910 | fi
|
---|
5911 | ;;
|
---|
5912 | esac
|
---|
5913 |
|
---|
5914 |
|
---|
5915 |
|
---|
5916 | # target stuff:
|
---|
5917 |
|
---|
5918 | # Canonicalize the secondary target names.
|
---|
5919 | if test -n "$enable_targets" ; then
|
---|
5920 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
---|
5921 | do
|
---|
5922 | result=`$ac_config_sub $targ 2>/dev/null`
|
---|
5923 | if test -n "$result" ; then
|
---|
5924 | canon_targets="$canon_targets $result"
|
---|
5925 | else
|
---|
5926 | # Allow targets that config.sub doesn't recognize, like "all".
|
---|
5927 | canon_targets="$canon_targets $targ"
|
---|
5928 | fi
|
---|
5929 | done
|
---|
5930 | fi
|
---|
5931 |
|
---|
5932 | all_targets=false
|
---|
5933 | defvec=
|
---|
5934 | selvecs=
|
---|
5935 | selarchs=
|
---|
5936 | TDEFINES=
|
---|
5937 | for targ in $target $canon_targets
|
---|
5938 | do
|
---|
5939 | if test "x$targ" = "xall"; then
|
---|
5940 | all_targets=true
|
---|
5941 | else
|
---|
5942 | . $srcdir/config.bfd
|
---|
5943 | if test "x$targ" = "x$target"; then
|
---|
5944 | defvec=$targ_defvec
|
---|
5945 | fi
|
---|
5946 | selvecs="$selvecs $targ_defvec $targ_selvecs"
|
---|
5947 | selarchs="$selarchs $targ_archs"
|
---|
5948 | TDEFINES="$TDEFINES $targ_cflags"
|
---|
5949 | fi
|
---|
5950 | done
|
---|
5951 |
|
---|
5952 |
|
---|
5953 | # This processing still needs to be done if we're to decide properly whether
|
---|
5954 | # 64-bit support needs to be compiled in. Currently, it will be included if
|
---|
5955 | # the default or any other explicitly requested target requires it; it
|
---|
5956 | # will not be included on a 32-bit host if no 64-bit target is requested, and
|
---|
5957 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
---|
5958 | # used.
|
---|
5959 |
|
---|
5960 | # uniq the default and selected vectors in all the configured targets.
|
---|
5961 | f=""
|
---|
5962 | for i in $selvecs ; do
|
---|
5963 | case " $f " in
|
---|
5964 | *" $i "*) ;;
|
---|
5965 | *) f="$f $i" ;;
|
---|
5966 | esac
|
---|
5967 | done
|
---|
5968 | selvecs="$f"
|
---|
5969 |
|
---|
5970 |
|
---|
5971 | # uniq the architectures in all the configured targets.
|
---|
5972 | f=""
|
---|
5973 | for i in $selarchs ; do
|
---|
5974 | case " $f " in
|
---|
5975 | *" $i "*) ;;
|
---|
5976 | *) f="$f $i" ;;
|
---|
5977 | esac
|
---|
5978 | done
|
---|
5979 | selarchs="$f"
|
---|
5980 |
|
---|
5981 | # Target backend .o files.
|
---|
5982 | tb=
|
---|
5983 |
|
---|
5984 | elf="elf.lo elflink.lo dwarf1.lo"
|
---|
5985 |
|
---|
5986 | for vec in $selvecs
|
---|
5987 | do
|
---|
5988 | case "$vec" in
|
---|
5989 | # This list is alphabetized to make it easy to compare
|
---|
5990 | # with the two vector lists in targets.c.
|
---|
5991 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
|
---|
5992 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
---|
5993 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
---|
5994 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
---|
5995 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
---|
5996 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5997 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5998 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
5999 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6000 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6001 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6002 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6003 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
---|
6004 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
---|
6005 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
---|
6006 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
---|
6007 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
---|
6008 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
---|
6009 | apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
---|
6010 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
---|
6011 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
---|
6012 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
|
---|
6013 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
|
---|
6014 | target64=true ;;
|
---|
6015 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
|
---|
6016 | target64=true ;;
|
---|
6017 | bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec)
|
---|
6018 | tb="$tb elf64-hppa.lo elf64.lo $elf"
|
---|
6019 | target64=true ;;
|
---|
6020 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
|
---|
6021 | target64=true ;;
|
---|
6022 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
|
---|
6023 | target64=true ;;
|
---|
6024 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
|
---|
6025 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
---|
6026 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
---|
6027 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
---|
6028 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
---|
6029 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
---|
6030 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
---|
6031 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
---|
6032 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
---|
6033 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6034 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
|
---|
6035 | target64=true ;;
|
---|
6036 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
---|
6037 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
---|
6038 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
---|
6039 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
---|
6040 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
---|
6041 | bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec)
|
---|
6042 | tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
---|
6043 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
---|
6044 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
---|
6045 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"
|
---|
6046 | target64=true ;;
|
---|
6047 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
---|
6048 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
---|
6049 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
---|
6050 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
---|
6051 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6052 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
|
---|
6053 | target64=true ;;
|
---|
6054 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
---|
6055 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
---|
6056 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
|
---|
6057 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
---|
6058 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
---|
6059 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
---|
6060 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
---|
6061 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
---|
6062 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
---|
6063 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
---|
6064 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
---|
6065 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
---|
6066 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
---|
6067 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
---|
6068 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
---|
6069 | bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
6070 | bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
---|
6071 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
---|
6072 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6073 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
---|
6074 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
---|
6075 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
|
---|
6076 | target64=true ;;
|
---|
6077 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
|
---|
6078 | target64=true ;;
|
---|
6079 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
|
---|
6080 | target64=true ;;
|
---|
6081 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
|
---|
6082 | target64=true ;;
|
---|
6083 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
|
---|
6084 | target64=true ;;
|
---|
6085 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
---|
6086 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
---|
6087 | cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
---|
6088 | demo_64_vec) tb="$tb demo64.lo aout64.lo"
|
---|
6089 | target64=true ;;
|
---|
6090 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
6091 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
6092 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
---|
6093 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
|
---|
6094 | target64=true ;;
|
---|
6095 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
---|
6096 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
---|
6097 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
---|
6098 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
---|
6099 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
---|
6100 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
---|
6101 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
---|
6102 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
---|
6103 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
---|
6104 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
---|
6105 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
---|
6106 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
---|
6107 | i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
---|
6108 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
---|
6109 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
---|
6110 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
---|
6111 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6112 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
---|
6113 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
---|
6114 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
---|
6115 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
---|
6116 | i386aout_emx_vec) tb="$tb i386aoutemx.lo aout32.lo " ;;
|
---|
6117 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
---|
6118 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
---|
6119 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
---|
6120 | ieee_vec) tb="$tb ieee.lo" ;;
|
---|
6121 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
---|
6122 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
---|
6123 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
---|
6124 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6125 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
|
---|
6126 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
---|
6127 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
---|
6128 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
---|
6129 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
---|
6130 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
---|
6131 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
---|
6132 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
---|
6133 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6134 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6135 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6136 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
---|
6137 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
---|
6138 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
---|
6139 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
|
---|
6140 | target64=true ;;
|
---|
6141 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
---|
6142 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
|
---|
6143 | target64=true ;;
|
---|
6144 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
---|
6145 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
---|
6146 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
---|
6147 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
---|
6148 | pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
|
---|
6149 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
---|
6150 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6151 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6152 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6153 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
---|
6154 | ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
---|
6155 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6156 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6157 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6158 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
---|
6159 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
---|
6160 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
---|
6161 | som_vec) tb="$tb som.lo" ;;
|
---|
6162 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
---|
6163 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
---|
6164 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
---|
6165 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
---|
6166 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
---|
6167 | sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
---|
6168 | srec_vec) tb="$tb srec.lo" ;;
|
---|
6169 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
---|
6170 | symbolsrec_vec) tb="$tb srec.lo" ;;
|
---|
6171 | tekhex_vec) tb="$tb tekhex.lo" ;;
|
---|
6172 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
---|
6173 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
---|
6174 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6175 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6176 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6177 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6178 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6179 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
---|
6180 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
---|
6181 | versados_vec) tb="$tb versados.lo" ;;
|
---|
6182 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
|
---|
6183 | target64=true ;;
|
---|
6184 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
|
---|
6185 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
---|
6186 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
---|
6187 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
|
---|
6188 |
|
---|
6189 | "") ;;
|
---|
6190 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
|
---|
6191 | esac
|
---|
6192 | done
|
---|
6193 |
|
---|
6194 | # Target architecture .o files.
|
---|
6195 | # A couple of CPUs use shorter file names to avoid problems on DOS
|
---|
6196 | # filesystems.
|
---|
6197 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
---|
6198 |
|
---|
6199 | # Weed out duplicate .o files.
|
---|
6200 | f=""
|
---|
6201 | for i in $tb ; do
|
---|
6202 | case " $f " in
|
---|
6203 | *" $i "*) ;;
|
---|
6204 | *) f="$f $i" ;;
|
---|
6205 | esac
|
---|
6206 | done
|
---|
6207 | tb="$f"
|
---|
6208 |
|
---|
6209 | f=""
|
---|
6210 | for i in $ta ; do
|
---|
6211 | case " $f " in
|
---|
6212 | *" $i "*) ;;
|
---|
6213 | *) f="$f $i" ;;
|
---|
6214 | esac
|
---|
6215 | done
|
---|
6216 | ta="$f"
|
---|
6217 |
|
---|
6218 | bfd_backends="$tb"
|
---|
6219 | bfd_machines="$ta"
|
---|
6220 |
|
---|
6221 | if test x${all_targets} = xtrue ; then
|
---|
6222 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
---|
6223 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
---|
6224 | selvecs=
|
---|
6225 | havevecs=
|
---|
6226 | selarchs=
|
---|
6227 | else # all_targets is true
|
---|
6228 | # Only set these if they will be nonempty, for the clever echo.
|
---|
6229 | havevecs=
|
---|
6230 | test -n "$selvecs" &&
|
---|
6231 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
---|
6232 | test -n "$selvecs" &&
|
---|
6233 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6234 | test -n "$selarchs" &&
|
---|
6235 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
---|
6236 | fi # all_targets is true
|
---|
6237 |
|
---|
6238 | case ${host64}-${target64}-${want64} in
|
---|
6239 | *true*)
|
---|
6240 | wordsize=64
|
---|
6241 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
---|
6242 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
|
---|
6243 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
|
---|
6244 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
|
---|
6245 | fi
|
---|
6246 | ;;
|
---|
6247 | false-false-false)
|
---|
6248 | wordsize=32
|
---|
6249 | all_backends='$(BFD32_BACKENDS)'
|
---|
6250 | ;;
|
---|
6251 | esac
|
---|
6252 |
|
---|
6253 |
|
---|
6254 |
|
---|
6255 |
|
---|
6256 |
|
---|
6257 |
|
---|
6258 | tdefaults=""
|
---|
6259 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
---|
6260 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
---|
6261 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
---|
6262 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
|
---|
6263 |
|
---|
6264 |
|
---|
6265 | for ac_hdr in unistd.h
|
---|
6266 | do
|
---|
6267 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
6268 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
6269 | echo "configure:6270: checking for $ac_hdr" >&5
|
---|
6270 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
6271 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6272 | else
|
---|
6273 | cat > conftest.$ac_ext <<EOF
|
---|
6274 | #include <sys/types.h>
|
---|
6275 | #line 6276 "configure"
|
---|
6276 | #include "confdefs.h"
|
---|
6277 | #include <$ac_hdr>
|
---|
6278 | EOF
|
---|
6279 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
6280 | { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
6281 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
6282 | if test -z "$ac_err"; then
|
---|
6283 | rm -rf conftest*
|
---|
6284 | eval "ac_cv_header_$ac_safe=yes"
|
---|
6285 | else
|
---|
6286 | echo "$ac_err" >&5
|
---|
6287 | echo "configure: failed program was:" >&5
|
---|
6288 | cat conftest.$ac_ext >&5
|
---|
6289 | rm -rf conftest*
|
---|
6290 | eval "ac_cv_header_$ac_safe=no"
|
---|
6291 | fi
|
---|
6292 | rm -f conftest*
|
---|
6293 | fi
|
---|
6294 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
6295 | echo "$ac_t""yes" 1>&6
|
---|
6296 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
6297 | cat >> confdefs.h <<EOF
|
---|
6298 | #define $ac_tr_hdr 1
|
---|
6299 | EOF
|
---|
6300 |
|
---|
6301 | else
|
---|
6302 | echo "$ac_t""no" 1>&6
|
---|
6303 | fi
|
---|
6304 | done
|
---|
6305 |
|
---|
6306 | for ac_func in getpagesize
|
---|
6307 | do
|
---|
6308 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6309 | echo "configure:6310: checking for $ac_func" >&5
|
---|
6310 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6311 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6312 | else
|
---|
6313 | cat > conftest.$ac_ext <<EOF
|
---|
6314 | #line 6315 "configure"
|
---|
6315 | #include "confdefs.h"
|
---|
6316 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6317 | which can conflict with char $ac_func(); below. */
|
---|
6318 | #include <assert.h>
|
---|
6319 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6320 | /* We use char because int might match the return type of a gcc2
|
---|
6321 | builtin and then its argument prototype would still apply. */
|
---|
6322 | char $ac_func();
|
---|
6323 |
|
---|
6324 | int main() {
|
---|
6325 |
|
---|
6326 | /* The GNU C library defines this for functions which it implements
|
---|
6327 | to always fail with ENOSYS. Some functions are actually named
|
---|
6328 | something starting with __ and the normal name is an alias. */
|
---|
6329 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6330 | choke me
|
---|
6331 | #else
|
---|
6332 | $ac_func();
|
---|
6333 | #endif
|
---|
6334 |
|
---|
6335 | ; return 0; }
|
---|
6336 | EOF
|
---|
6337 | if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6338 | rm -rf conftest*
|
---|
6339 | eval "ac_cv_func_$ac_func=yes"
|
---|
6340 | else
|
---|
6341 | echo "configure: failed program was:" >&5
|
---|
6342 | cat conftest.$ac_ext >&5
|
---|
6343 | rm -rf conftest*
|
---|
6344 | eval "ac_cv_func_$ac_func=no"
|
---|
6345 | fi
|
---|
6346 | rm -f conftest*
|
---|
6347 | fi
|
---|
6348 |
|
---|
6349 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6350 | echo "$ac_t""yes" 1>&6
|
---|
6351 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
6352 | cat >> confdefs.h <<EOF
|
---|
6353 | #define $ac_tr_func 1
|
---|
6354 | EOF
|
---|
6355 |
|
---|
6356 | else
|
---|
6357 | echo "$ac_t""no" 1>&6
|
---|
6358 | fi
|
---|
6359 | done
|
---|
6360 |
|
---|
6361 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
6362 | echo "configure:6363: checking for working mmap" >&5
|
---|
6363 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
6364 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6365 | else
|
---|
6366 | if test "$cross_compiling" = yes; then
|
---|
6367 | ac_cv_func_mmap_fixed_mapped=no
|
---|
6368 | else
|
---|
6369 | cat > conftest.$ac_ext <<EOF
|
---|
6370 | #line 6371 "configure"
|
---|
6371 | #include "confdefs.h"
|
---|
6372 |
|
---|
6373 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
6374 | Here is a matrix of mmap possibilities:
|
---|
6375 | mmap private not fixed
|
---|
6376 | mmap private fixed at somewhere currently unmapped
|
---|
6377 | mmap private fixed at somewhere already mapped
|
---|
6378 | mmap shared not fixed
|
---|
6379 | mmap shared fixed at somewhere currently unmapped
|
---|
6380 | mmap shared fixed at somewhere already mapped
|
---|
6381 | For private mappings, we should verify that changes cannot be read()
|
---|
6382 | back from the file, nor mmap's back from the file at a different
|
---|
6383 | address. (There have been systems where private was not correctly
|
---|
6384 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
6385 | VM page cache was not coherent with the filesystem buffer cache
|
---|
6386 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
6387 | For shared mappings, we should conversely verify that changes get
|
---|
6388 | propogated back to all the places they're supposed to be.
|
---|
6389 |
|
---|
6390 | Grep wants private fixed already mapped.
|
---|
6391 | The main things grep needs to know about mmap are:
|
---|
6392 | * does it exist and is it safe to write into the mmap'd area
|
---|
6393 | * how to use it (BSD variants) */
|
---|
6394 | #include <sys/types.h>
|
---|
6395 | #include <fcntl.h>
|
---|
6396 | #include <sys/mman.h>
|
---|
6397 |
|
---|
6398 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
6399 | #ifndef HAVE_GETPAGESIZE
|
---|
6400 | # ifdef HAVE_UNISTD_H
|
---|
6401 | # include <unistd.h>
|
---|
6402 | # endif
|
---|
6403 |
|
---|
6404 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
6405 | # ifndef HAVE_SYS_PARAM_H
|
---|
6406 | # define HAVE_SYS_PARAM_H 1
|
---|
6407 | # endif
|
---|
6408 |
|
---|
6409 | # ifdef _SC_PAGESIZE
|
---|
6410 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
6411 | # else /* no _SC_PAGESIZE */
|
---|
6412 | # ifdef HAVE_SYS_PARAM_H
|
---|
6413 | # include <sys/param.h>
|
---|
6414 | # ifdef EXEC_PAGESIZE
|
---|
6415 | # define getpagesize() EXEC_PAGESIZE
|
---|
6416 | # else /* no EXEC_PAGESIZE */
|
---|
6417 | # ifdef NBPG
|
---|
6418 | # define getpagesize() NBPG * CLSIZE
|
---|
6419 | # ifndef CLSIZE
|
---|
6420 | # define CLSIZE 1
|
---|
6421 | # endif /* no CLSIZE */
|
---|
6422 | # else /* no NBPG */
|
---|
6423 | # ifdef NBPC
|
---|
6424 | # define getpagesize() NBPC
|
---|
6425 | # else /* no NBPC */
|
---|
6426 | # ifdef PAGESIZE
|
---|
6427 | # define getpagesize() PAGESIZE
|
---|
6428 | # endif /* PAGESIZE */
|
---|
6429 | # endif /* no NBPC */
|
---|
6430 | # endif /* no NBPG */
|
---|
6431 | # endif /* no EXEC_PAGESIZE */
|
---|
6432 | # else /* no HAVE_SYS_PARAM_H */
|
---|
6433 | # define getpagesize() 8192 /* punt totally */
|
---|
6434 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
6435 | # endif /* no _SC_PAGESIZE */
|
---|
6436 |
|
---|
6437 | #endif /* no HAVE_GETPAGESIZE */
|
---|
6438 |
|
---|
6439 | #ifdef __cplusplus
|
---|
6440 | extern "C" { void *malloc(unsigned); }
|
---|
6441 | #else
|
---|
6442 | char *malloc();
|
---|
6443 | #endif
|
---|
6444 |
|
---|
6445 | int
|
---|
6446 | main()
|
---|
6447 | {
|
---|
6448 | char *data, *data2, *data3;
|
---|
6449 | int i, pagesize;
|
---|
6450 | int fd;
|
---|
6451 |
|
---|
6452 | pagesize = getpagesize();
|
---|
6453 |
|
---|
6454 | /*
|
---|
6455 | * First, make a file with some known garbage in it.
|
---|
6456 | */
|
---|
6457 | data = malloc(pagesize);
|
---|
6458 | if (!data)
|
---|
6459 | exit(1);
|
---|
6460 | for (i = 0; i < pagesize; ++i)
|
---|
6461 | *(data + i) = rand();
|
---|
6462 | umask(0);
|
---|
6463 | fd = creat("conftestmmap", 0600);
|
---|
6464 | if (fd < 0)
|
---|
6465 | exit(1);
|
---|
6466 | if (write(fd, data, pagesize) != pagesize)
|
---|
6467 | exit(1);
|
---|
6468 | close(fd);
|
---|
6469 |
|
---|
6470 | /*
|
---|
6471 | * Next, try to mmap the file at a fixed address which
|
---|
6472 | * already has something else allocated at it. If we can,
|
---|
6473 | * also make sure that we see the same garbage.
|
---|
6474 | */
|
---|
6475 | fd = open("conftestmmap", O_RDWR);
|
---|
6476 | if (fd < 0)
|
---|
6477 | exit(1);
|
---|
6478 | data2 = malloc(2 * pagesize);
|
---|
6479 | if (!data2)
|
---|
6480 | exit(1);
|
---|
6481 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
6482 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
6483 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
6484 | exit(1);
|
---|
6485 | for (i = 0; i < pagesize; ++i)
|
---|
6486 | if (*(data + i) != *(data2 + i))
|
---|
6487 | exit(1);
|
---|
6488 |
|
---|
6489 | /*
|
---|
6490 | * Finally, make sure that changes to the mapped area
|
---|
6491 | * do not percolate back to the file as seen by read().
|
---|
6492 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
6493 | */
|
---|
6494 | for (i = 0; i < pagesize; ++i)
|
---|
6495 | *(data2 + i) = *(data2 + i) + 1;
|
---|
6496 | data3 = malloc(pagesize);
|
---|
6497 | if (!data3)
|
---|
6498 | exit(1);
|
---|
6499 | if (read(fd, data3, pagesize) != pagesize)
|
---|
6500 | exit(1);
|
---|
6501 | for (i = 0; i < pagesize; ++i)
|
---|
6502 | if (*(data + i) != *(data3 + i))
|
---|
6503 | exit(1);
|
---|
6504 | close(fd);
|
---|
6505 | unlink("conftestmmap");
|
---|
6506 | exit(0);
|
---|
6507 | }
|
---|
6508 |
|
---|
6509 | EOF
|
---|
6510 | if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
6511 | then
|
---|
6512 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
6513 | else
|
---|
6514 | echo "configure: failed program was:" >&5
|
---|
6515 | cat conftest.$ac_ext >&5
|
---|
6516 | rm -fr conftest*
|
---|
6517 | ac_cv_func_mmap_fixed_mapped=no
|
---|
6518 | fi
|
---|
6519 | rm -fr conftest*
|
---|
6520 | fi
|
---|
6521 |
|
---|
6522 | fi
|
---|
6523 |
|
---|
6524 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
6525 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
6526 | cat >> confdefs.h <<\EOF
|
---|
6527 | #define HAVE_MMAP 1
|
---|
6528 | EOF
|
---|
6529 |
|
---|
6530 | fi
|
---|
6531 |
|
---|
6532 | for ac_func in madvise mprotect
|
---|
6533 | do
|
---|
6534 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
6535 | echo "configure:6536: checking for $ac_func" >&5
|
---|
6536 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
6537 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6538 | else
|
---|
6539 | cat > conftest.$ac_ext <<EOF
|
---|
6540 | #line 6541 "configure"
|
---|
6541 | #include "confdefs.h"
|
---|
6542 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6543 | which can conflict with char $ac_func(); below. */
|
---|
6544 | #include <assert.h>
|
---|
6545 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6546 | /* We use char because int might match the return type of a gcc2
|
---|
6547 | builtin and then its argument prototype would still apply. */
|
---|
6548 | char $ac_func();
|
---|
6549 |
|
---|
6550 | int main() {
|
---|
6551 |
|
---|
6552 | /* The GNU C library defines this for functions which it implements
|
---|
6553 | to always fail with ENOSYS. Some functions are actually named
|
---|
6554 | something starting with __ and the normal name is an alias. */
|
---|
6555 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6556 | choke me
|
---|
6557 | #else
|
---|
6558 | $ac_func();
|
---|
6559 | #endif
|
---|
6560 |
|
---|
6561 | ; return 0; }
|
---|
6562 | EOF
|
---|
6563 | if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
6564 | rm -rf conftest*
|
---|
6565 | eval "ac_cv_func_$ac_func=yes"
|
---|
6566 | else
|
---|
6567 | echo "configure: failed program was:" >&5
|
---|
6568 | cat conftest.$ac_ext >&5
|
---|
6569 | rm -rf conftest*
|
---|
6570 | eval "ac_cv_func_$ac_func=no"
|
---|
6571 | fi
|
---|
6572 | rm -f conftest*
|
---|
6573 | fi
|
---|
6574 |
|
---|
6575 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
6576 | echo "$ac_t""yes" 1>&6
|
---|
6577 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
6578 | cat >> confdefs.h <<EOF
|
---|
6579 | #define $ac_tr_func 1
|
---|
6580 | EOF
|
---|
6581 |
|
---|
6582 | else
|
---|
6583 | echo "$ac_t""no" 1>&6
|
---|
6584 | fi
|
---|
6585 | done
|
---|
6586 |
|
---|
6587 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
---|
6588 | true+yes ) cat >> confdefs.h <<\EOF
|
---|
6589 | #define USE_MMAP 1
|
---|
6590 | EOF
|
---|
6591 | ;;
|
---|
6592 | esac
|
---|
6593 |
|
---|
6594 | rm -f doc/config.status
|
---|
6595 | trap '' 1 2 15
|
---|
6596 | cat > confcache <<\EOF
|
---|
6597 | # This file is a shell script that caches the results of configure
|
---|
6598 | # tests run on this system so they can be shared between configure
|
---|
6599 | # scripts and configure runs. It is not useful on other systems.
|
---|
6600 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
6601 | #
|
---|
6602 | # By default, configure uses ./config.cache as the cache file,
|
---|
6603 | # creating it if it does not exist already. You can give configure
|
---|
6604 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
6605 | # what configure does when it calls configure scripts in
|
---|
6606 | # subdirectories, so they share the cache.
|
---|
6607 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
6608 | # config.status only pays attention to the cache file if you give it the
|
---|
6609 | # --recheck option to rerun configure.
|
---|
6610 | #
|
---|
6611 | EOF
|
---|
6612 | # The following way of writing the cache mishandles newlines in values,
|
---|
6613 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6614 | # So, don't put newlines in cache variables' values.
|
---|
6615 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6616 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6617 | (set) 2>&1 |
|
---|
6618 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
6619 | *ac_space=\ *)
|
---|
6620 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
6621 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
6622 | sed -n \
|
---|
6623 | -e "s/'/'\\\\''/g" \
|
---|
6624 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
6625 | ;;
|
---|
6626 | *)
|
---|
6627 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6628 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
6629 | ;;
|
---|
6630 | esac >> confcache
|
---|
6631 | if cmp -s $cache_file confcache; then
|
---|
6632 | :
|
---|
6633 | else
|
---|
6634 | if test -w $cache_file; then
|
---|
6635 | echo "updating cache $cache_file"
|
---|
6636 | cat confcache > $cache_file
|
---|
6637 | else
|
---|
6638 | echo "not updating unwritable cache $cache_file"
|
---|
6639 | fi
|
---|
6640 | fi
|
---|
6641 | rm -f confcache
|
---|
6642 |
|
---|
6643 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
6644 |
|
---|
6645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6646 | # Let make expand exec_prefix.
|
---|
6647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6648 |
|
---|
6649 | # Any assignment to VPATH causes Sun make to only execute
|
---|
6650 | # the first set of double-colon rules, so remove it if not needed.
|
---|
6651 | # If there is a colon in the path, we need to keep it.
|
---|
6652 | if test "x$srcdir" = x.; then
|
---|
6653 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
6654 | fi
|
---|
6655 |
|
---|
6656 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
6657 |
|
---|
6658 | DEFS=-DHAVE_CONFIG_H
|
---|
6659 |
|
---|
6660 | # Without the "./", some shells look in PATH for config.status.
|
---|
6661 | : ${CONFIG_STATUS=./config.status}
|
---|
6662 |
|
---|
6663 | echo creating $CONFIG_STATUS
|
---|
6664 | rm -f $CONFIG_STATUS
|
---|
6665 | cat > $CONFIG_STATUS <<EOF
|
---|
6666 | #! /bin/sh
|
---|
6667 | # Generated automatically by configure.
|
---|
6668 | # Run this file to recreate the current configuration.
|
---|
6669 | # This directory was configured as follows,
|
---|
6670 | EOF
|
---|
6671 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
6672 | cat >> $CONFIG_STATUS <<EOF
|
---|
6673 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
6674 | #
|
---|
6675 | # $0 $ac_configure_args
|
---|
6676 | #
|
---|
6677 | # Compiler output produced by configure, useful for debugging
|
---|
6678 | # configure, is in ./config.log if it exists.
|
---|
6679 |
|
---|
6680 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
6681 | for ac_option
|
---|
6682 | do
|
---|
6683 | case "\$ac_option" in
|
---|
6684 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
6685 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
6686 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
6687 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
6688 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
6689 | exit 0 ;;
|
---|
6690 | -help | --help | --hel | --he | --h)
|
---|
6691 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
6692 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
6693 | esac
|
---|
6694 | done
|
---|
6695 |
|
---|
6696 | ac_given_srcdir=$srcdir
|
---|
6697 | ac_given_INSTALL="$INSTALL"
|
---|
6698 | PATHIFS="$PATH_IFS"
|
---|
6699 |
|
---|
6700 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
6701 | EOF
|
---|
6702 | cat >> $CONFIG_STATUS <<EOF
|
---|
6703 |
|
---|
6704 | # Protect against being on the right side of a sed subst in config.status.
|
---|
6705 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
6706 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
6707 | $ac_vpsub
|
---|
6708 | $extrasub
|
---|
6709 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
6710 | s%@SHELL@%$SHELL%g
|
---|
6711 | s%@CFLAGS@%$CFLAGS%g
|
---|
6712 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
6713 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
6714 | s%@FFLAGS@%$FFLAGS%g
|
---|
6715 | s%@DEFS@%$DEFS%g
|
---|
6716 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
6717 | s%@LIBS@%$LIBS%g
|
---|
6718 | s%@exec_prefix@%$exec_prefix%g
|
---|
6719 | s%@prefix@%$prefix%g
|
---|
6720 | s%@program_transform_name@%$program_transform_name%g
|
---|
6721 | s%@bindir@%$bindir%g
|
---|
6722 | s%@sbindir@%$sbindir%g
|
---|
6723 | s%@libexecdir@%$libexecdir%g
|
---|
6724 | s%@datadir@%$datadir%g
|
---|
6725 | s%@sysconfdir@%$sysconfdir%g
|
---|
6726 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
6727 | s%@localstatedir@%$localstatedir%g
|
---|
6728 | s%@libdir@%$libdir%g
|
---|
6729 | s%@includedir@%$includedir%g
|
---|
6730 | s%@oldincludedir@%$oldincludedir%g
|
---|
6731 | s%@infodir@%$infodir%g
|
---|
6732 | s%@mandir@%$mandir%g
|
---|
6733 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
6734 | s%@EXEEXT@%$EXEEXT%g
|
---|
6735 | s%@host@%$host%g
|
---|
6736 | s%@host_alias@%$host_alias%g
|
---|
6737 | s%@host_cpu@%$host_cpu%g
|
---|
6738 | s%@host_vendor@%$host_vendor%g
|
---|
6739 | s%@host_os@%$host_os%g
|
---|
6740 | s%@target@%$target%g
|
---|
6741 | s%@target_alias@%$target_alias%g
|
---|
6742 | s%@target_cpu@%$target_cpu%g
|
---|
6743 | s%@target_vendor@%$target_vendor%g
|
---|
6744 | s%@target_os@%$target_os%g
|
---|
6745 | s%@build@%$build%g
|
---|
6746 | s%@build_alias@%$build_alias%g
|
---|
6747 | s%@build_cpu@%$build_cpu%g
|
---|
6748 | s%@build_vendor@%$build_vendor%g
|
---|
6749 | s%@build_os@%$build_os%g
|
---|
6750 | s%@CC@%$CC%g
|
---|
6751 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
6752 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
6753 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
6754 | s%@PACKAGE@%$PACKAGE%g
|
---|
6755 | s%@VERSION@%$VERSION%g
|
---|
6756 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
6757 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
6758 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
6759 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
6760 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
6761 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
6762 | s%@AR@%$AR%g
|
---|
6763 | s%@RANLIB@%$RANLIB%g
|
---|
6764 | s%@LN_S@%$LN_S%g
|
---|
6765 | s%@OBJEXT@%$OBJEXT%g
|
---|
6766 | s%@STRIP@%$STRIP%g
|
---|
6767 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
6768 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
6769 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
6770 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
6771 | s%@MAINT@%$MAINT%g
|
---|
6772 | s%@CPP@%$CPP%g
|
---|
6773 | s%@ALLOCA@%$ALLOCA%g
|
---|
6774 | s%@USE_NLS@%$USE_NLS%g
|
---|
6775 | s%@MSGFMT@%$MSGFMT%g
|
---|
6776 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
6777 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
6778 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
6779 | s%@CATALOGS@%$CATALOGS%g
|
---|
6780 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
6781 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
6782 | s%@GMOFILES@%$GMOFILES%g
|
---|
6783 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
6784 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
6785 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
6786 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
6787 | s%@POFILES@%$POFILES%g
|
---|
6788 | s%@POSUB@%$POSUB%g
|
---|
6789 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
6790 | s%@GT_NO@%$GT_NO%g
|
---|
6791 | s%@GT_YES@%$GT_YES%g
|
---|
6792 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
6793 | s%@l@%$l%g
|
---|
6794 | s%@HDEFINES@%$HDEFINES%g
|
---|
6795 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
|
---|
6796 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
|
---|
6797 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
|
---|
6798 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
|
---|
6799 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
---|
6800 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
---|
6801 | s%@COREFILE@%$COREFILE%g
|
---|
6802 | s%@COREFLAG@%$COREFLAG%g
|
---|
6803 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
---|
6804 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
---|
6805 | s%@TDEFINES@%$TDEFINES%g
|
---|
6806 | s%@wordsize@%$wordsize%g
|
---|
6807 | s%@all_backends@%$all_backends%g
|
---|
6808 | s%@bfd_backends@%$bfd_backends%g
|
---|
6809 | s%@bfd_machines@%$bfd_machines%g
|
---|
6810 | s%@tdefaults@%$tdefaults%g
|
---|
6811 |
|
---|
6812 | CEOF
|
---|
6813 | EOF
|
---|
6814 |
|
---|
6815 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6816 |
|
---|
6817 | # Split the substitutions into bite-sized pieces for seds with
|
---|
6818 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
6819 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
6820 | ac_file=1 # Number of current file.
|
---|
6821 | ac_beg=1 # First line for current file.
|
---|
6822 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
6823 | ac_more_lines=:
|
---|
6824 | ac_sed_cmds=""
|
---|
6825 | while $ac_more_lines; do
|
---|
6826 | if test $ac_beg -gt 1; then
|
---|
6827 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
6828 | else
|
---|
6829 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
6830 | fi
|
---|
6831 | if test ! -s conftest.s$ac_file; then
|
---|
6832 | ac_more_lines=false
|
---|
6833 | rm -f conftest.s$ac_file
|
---|
6834 | else
|
---|
6835 | if test -z "$ac_sed_cmds"; then
|
---|
6836 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
6837 | else
|
---|
6838 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
6839 | fi
|
---|
6840 | ac_file=`expr $ac_file + 1`
|
---|
6841 | ac_beg=$ac_end
|
---|
6842 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
6843 | fi
|
---|
6844 | done
|
---|
6845 | if test -z "$ac_sed_cmds"; then
|
---|
6846 | ac_sed_cmds=cat
|
---|
6847 | fi
|
---|
6848 | EOF
|
---|
6849 |
|
---|
6850 | cat >> $CONFIG_STATUS <<EOF
|
---|
6851 |
|
---|
6852 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
|
---|
6853 | EOF
|
---|
6854 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6855 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
6856 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
6857 | case "$ac_file" in
|
---|
6858 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
6859 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
6860 | *) ac_file_in="${ac_file}.in" ;;
|
---|
6861 | esac
|
---|
6862 |
|
---|
6863 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
6864 |
|
---|
6865 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
6866 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
6867 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
6868 | # The file is in a subdirectory.
|
---|
6869 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
6870 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
6871 | # A "../" for each directory in $ac_dir_suffix.
|
---|
6872 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
6873 | else
|
---|
6874 | ac_dir_suffix= ac_dots=
|
---|
6875 | fi
|
---|
6876 |
|
---|
6877 | case "$ac_given_srcdir" in
|
---|
6878 | .) srcdir=.
|
---|
6879 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
6880 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
6881 | /* | [A-Za-z]:*)
|
---|
6882 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
6883 | *) # Relative path.
|
---|
6884 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
6885 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
6886 | esac
|
---|
6887 |
|
---|
6888 | case "$ac_given_INSTALL" in
|
---|
6889 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
6890 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
6891 | esac
|
---|
6892 |
|
---|
6893 | echo creating "$ac_file"
|
---|
6894 | rm -f "$ac_file"
|
---|
6895 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
6896 | case "$ac_file" in
|
---|
6897 | *Makefile*) ac_comsub="1i\\
|
---|
6898 | # $configure_input" ;;
|
---|
6899 | *) ac_comsub= ;;
|
---|
6900 | esac
|
---|
6901 |
|
---|
6902 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
6903 | sed -e "$ac_comsub
|
---|
6904 | s%@configure_input@%$configure_input%g
|
---|
6905 | s%@srcdir@%$srcdir%g
|
---|
6906 | s%@top_srcdir@%$top_srcdir%g
|
---|
6907 | s%@INSTALL@%$INSTALL%g
|
---|
6908 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
6909 | fi; done
|
---|
6910 | rm -f conftest.s*
|
---|
6911 |
|
---|
6912 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
6913 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
6914 | #
|
---|
6915 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
6916 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
6917 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
6918 | ac_dC='\3'
|
---|
6919 | ac_dD='%g'
|
---|
6920 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
6921 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
6922 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
6923 | ac_uC=' '
|
---|
6924 | ac_uD='\4%g'
|
---|
6925 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
6926 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
6927 | ac_eB='$%\1#\2define\3'
|
---|
6928 | ac_eC=' '
|
---|
6929 | ac_eD='%g'
|
---|
6930 |
|
---|
6931 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
6932 | EOF
|
---|
6933 | cat >> $CONFIG_STATUS <<EOF
|
---|
6934 | CONFIG_HEADERS="config.h:config.in"
|
---|
6935 | EOF
|
---|
6936 | cat >> $CONFIG_STATUS <<\EOF
|
---|
6937 | fi
|
---|
6938 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
6939 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
6940 | case "$ac_file" in
|
---|
6941 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
6942 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
6943 | *) ac_file_in="${ac_file}.in" ;;
|
---|
6944 | esac
|
---|
6945 |
|
---|
6946 | echo creating $ac_file
|
---|
6947 |
|
---|
6948 | rm -f conftest.frag conftest.in conftest.out
|
---|
6949 | # kso the other way around might work better with drive letters and such.
|
---|
6950 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
6951 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
6952 | cat $ac_file_inputs > conftest.in
|
---|
6953 |
|
---|
6954 | EOF
|
---|
6955 |
|
---|
6956 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
6957 | # the proper values into config.h.in to produce config.h. And first:
|
---|
6958 | # Protect against being on the right side of a sed subst in config.status.
|
---|
6959 | # Protect against being in an unquoted here document in config.status.
|
---|
6960 | rm -f conftest.vals
|
---|
6961 | cat > conftest.hdr <<\EOF
|
---|
6962 | s/[\\&%]/\\&/g
|
---|
6963 | s%[\\$`]%\\&%g
|
---|
6964 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
6965 | s%ac_d%ac_u%gp
|
---|
6966 | s%ac_u%ac_e%gp
|
---|
6967 | EOF
|
---|
6968 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
6969 | rm -f conftest.hdr
|
---|
6970 |
|
---|
6971 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
6972 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
6973 | # on some systems where configure will not decide to define it.
|
---|
6974 | cat >> conftest.vals <<\EOF
|
---|
6975 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
6976 | EOF
|
---|
6977 |
|
---|
6978 | # Break up conftest.vals because some shells have a limit on
|
---|
6979 | # the size of here documents, and old seds have small limits too.
|
---|
6980 |
|
---|
6981 | rm -f conftest.tail
|
---|
6982 | while :
|
---|
6983 | do
|
---|
6984 | ac_lines=`grep -c . conftest.vals`
|
---|
6985 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
6986 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
6987 | # Write a limited-size here document to conftest.frag.
|
---|
6988 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
6989 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
6990 | echo 'CEOF
|
---|
6991 | sed -f conftest.frag conftest.in > conftest.out
|
---|
6992 | rm -f conftest.in
|
---|
6993 | mv conftest.out conftest.in
|
---|
6994 | ' >> $CONFIG_STATUS
|
---|
6995 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
6996 | rm -f conftest.vals
|
---|
6997 | mv conftest.tail conftest.vals
|
---|
6998 | done
|
---|
6999 | rm -f conftest.vals
|
---|
7000 |
|
---|
7001 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7002 | rm -f conftest.frag conftest.h
|
---|
7003 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
7004 | cat conftest.in >> conftest.h
|
---|
7005 | rm -f conftest.in
|
---|
7006 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
7007 | echo "$ac_file is unchanged"
|
---|
7008 | rm -f conftest.h
|
---|
7009 | else
|
---|
7010 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7011 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7012 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7013 | # The file is in a subdirectory.
|
---|
7014 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7015 | fi
|
---|
7016 | rm -f $ac_file
|
---|
7017 | mv conftest.h $ac_file
|
---|
7018 | fi
|
---|
7019 | fi; done
|
---|
7020 |
|
---|
7021 | EOF
|
---|
7022 | cat >> $CONFIG_STATUS <<EOF
|
---|
7023 |
|
---|
7024 |
|
---|
7025 | EOF
|
---|
7026 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7027 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
7028 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
|
---|
7029 | exit 0
|
---|
7030 | EOF
|
---|
7031 | chmod +x $CONFIG_STATUS
|
---|
7032 | rm -fr confdefs* $ac_clean_files
|
---|
7033 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
7034 |
|
---|
7035 |
|
---|