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-targets alternative target configurations"
|
---|
28 | ac_help="$ac_help
|
---|
29 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
---|
30 | ac_help="$ac_help
|
---|
31 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
---|
32 | ac_help="$ac_help
|
---|
33 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
34 | (and sometimes confusing) to the casual installer"
|
---|
35 | ac_help="$ac_help
|
---|
36 | --enable-install-libbfd controls installation of libbfd and related headers"
|
---|
37 | ac_help="$ac_help
|
---|
38 | --disable-nls do not use Native Language Support"
|
---|
39 | ac_help="$ac_help
|
---|
40 | --with-included-gettext use the GNU gettext library included here"
|
---|
41 | ac_help="$ac_help
|
---|
42 | --enable-cgen-maint[=dir] build cgen generated files"
|
---|
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=z8k-dis.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 | # We currently only use the version number for the name of any shared
|
---|
1062 | # library. For user convenience, we always use the same version
|
---|
1063 | # number that BFD is using.
|
---|
1064 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
---|
1065 |
|
---|
1066 | am__api_version="1.4"
|
---|
1067 | # Find a good install program. We prefer a C program (faster),
|
---|
1068 | # so one script is as good as another. But avoid the broken or
|
---|
1069 | # incompatible versions:
|
---|
1070 | # SysV /etc/install, /usr/sbin/install
|
---|
1071 | # SunOS /usr/etc/install
|
---|
1072 | # IRIX /sbin/install
|
---|
1073 | # AIX /bin/install
|
---|
1074 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1075 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1076 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1077 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1078 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1079 | echo "configure:1080: checking for a BSD compatible install" >&5
|
---|
1080 | if test -z "$INSTALL"; then
|
---|
1081 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1082 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1083 | else
|
---|
1084 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
1085 | for ac_dir in $PATH; do
|
---|
1086 | # Account for people who put trailing slashes in PATH elements.
|
---|
1087 | case "$ac_dir/" in
|
---|
1088 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1089 | # We reject the install program from OS/2 or W3.1
|
---|
1090 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
1091 | *)
|
---|
1092 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1093 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1094 | # by default.
|
---|
1095 | for ac_prog in ginstall scoinst install; do
|
---|
1096 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
1097 | if test $ac_prog = install &&
|
---|
1098 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1099 | # AIX install. It has an incompatible calling convention.
|
---|
1100 | :
|
---|
1101 | else
|
---|
1102 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
1103 | break 2
|
---|
1104 | fi
|
---|
1105 | fi
|
---|
1106 | done
|
---|
1107 | ;;
|
---|
1108 | esac
|
---|
1109 | done
|
---|
1110 | IFS="$ac_save_IFS"
|
---|
1111 |
|
---|
1112 | fi
|
---|
1113 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1114 | INSTALL="$ac_cv_path_install"
|
---|
1115 | else
|
---|
1116 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1117 | # path for INSTALL within a source directory, because that will
|
---|
1118 | # break other packages using the cache if that directory is
|
---|
1119 | # removed, or if the path is relative.
|
---|
1120 | INSTALL="$ac_install_sh"
|
---|
1121 | fi
|
---|
1122 | fi
|
---|
1123 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1124 |
|
---|
1125 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1126 | # It thinks the first close brace ends the variable substitution.
|
---|
1127 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1128 |
|
---|
1129 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1130 |
|
---|
1131 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1132 |
|
---|
1133 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
1134 | echo "configure:1135: checking whether build environment is sane" >&5
|
---|
1135 | # Just in case
|
---|
1136 | sleep 1
|
---|
1137 | echo timestamp > conftestfile
|
---|
1138 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1139 | # arguments. Must try -L first in case configure is actually a
|
---|
1140 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1141 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1142 | # directory).
|
---|
1143 | if (
|
---|
1144 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
1145 | if test "$*" = "X"; then
|
---|
1146 | # -L didn't work.
|
---|
1147 | set X `ls -t $srcdir/configure conftestfile`
|
---|
1148 | fi
|
---|
1149 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
1150 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
1151 |
|
---|
1152 | # If neither matched, then we have a broken ls. This can happen
|
---|
1153 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1154 | # broken ls alias from the environment. This has actually
|
---|
1155 | # happened. Such a system could not be considered "sane".
|
---|
1156 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1157 | alias in your environment" 1>&2; exit 1; }
|
---|
1158 | fi
|
---|
1159 |
|
---|
1160 | test "$2" = conftestfile
|
---|
1161 | )
|
---|
1162 | then
|
---|
1163 | # Ok.
|
---|
1164 | :
|
---|
1165 | else
|
---|
1166 | { echo "configure: error: newly created file is older than distributed files!
|
---|
1167 | Check your system clock" 1>&2; exit 1; }
|
---|
1168 | fi
|
---|
1169 | rm -f conftest*
|
---|
1170 | echo "$ac_t""yes" 1>&6
|
---|
1171 | if test "$program_transform_name" = s,x,x,; then
|
---|
1172 | program_transform_name=
|
---|
1173 | else
|
---|
1174 | # Double any \ or $. echo might interpret backslashes.
|
---|
1175 | cat <<\EOF_SED > conftestsed
|
---|
1176 | s,\\,\\\\,g; s,\$,$$,g
|
---|
1177 | EOF_SED
|
---|
1178 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
1179 | rm -f conftestsed
|
---|
1180 | fi
|
---|
1181 | test "$program_prefix" != NONE &&
|
---|
1182 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
1183 | # Use a double $ so make ignores it.
|
---|
1184 | test "$program_suffix" != NONE &&
|
---|
1185 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
1186 |
|
---|
1187 | # sed with no file args requires a program.
|
---|
1188 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
1189 |
|
---|
1190 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1191 | echo "configure:1192: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1192 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1193 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1194 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1195 | else
|
---|
1196 | cat > conftestmake <<\EOF
|
---|
1197 | all:
|
---|
1198 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1199 | EOF
|
---|
1200 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1201 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1202 | if test -n "$ac_maketemp"; then
|
---|
1203 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1204 | else
|
---|
1205 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1206 | fi
|
---|
1207 | rm -f conftestmake
|
---|
1208 | fi
|
---|
1209 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1210 | echo "$ac_t""yes" 1>&6
|
---|
1211 | SET_MAKE=
|
---|
1212 | else
|
---|
1213 | echo "$ac_t""no" 1>&6
|
---|
1214 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1215 | fi
|
---|
1216 |
|
---|
1217 |
|
---|
1218 | PACKAGE=opcodes
|
---|
1219 |
|
---|
1220 | VERSION=${BFD_VERSION}
|
---|
1221 |
|
---|
1222 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1223 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1224 | fi
|
---|
1225 | cat >> confdefs.h <<EOF
|
---|
1226 | #define PACKAGE "$PACKAGE"
|
---|
1227 | EOF
|
---|
1228 |
|
---|
1229 | cat >> confdefs.h <<EOF
|
---|
1230 | #define VERSION "$VERSION"
|
---|
1231 | EOF
|
---|
1232 |
|
---|
1233 |
|
---|
1234 |
|
---|
1235 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1236 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
|
---|
1237 | echo "configure:1238: checking for working aclocal-${am__api_version}" >&5
|
---|
1238 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1239 | # an executable is not found, even if stderr is redirected.
|
---|
1240 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1241 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
---|
1242 | ACLOCAL=aclocal-${am__api_version}
|
---|
1243 | echo "$ac_t""found" 1>&6
|
---|
1244 | else
|
---|
1245 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
|
---|
1246 | echo "$ac_t""missing" 1>&6
|
---|
1247 | fi
|
---|
1248 |
|
---|
1249 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1250 | echo "configure:1251: checking for working autoconf" >&5
|
---|
1251 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1252 | # an executable is not found, even if stderr is redirected.
|
---|
1253 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1254 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1255 | AUTOCONF=autoconf
|
---|
1256 | echo "$ac_t""found" 1>&6
|
---|
1257 | else
|
---|
1258 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1259 | echo "$ac_t""missing" 1>&6
|
---|
1260 | fi
|
---|
1261 |
|
---|
1262 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
|
---|
1263 | echo "configure:1264: checking for working automake-${am__api_version}" >&5
|
---|
1264 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1265 | # an executable is not found, even if stderr is redirected.
|
---|
1266 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1267 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
---|
1268 | AUTOMAKE=automake-${am__api_version}
|
---|
1269 | echo "$ac_t""found" 1>&6
|
---|
1270 | else
|
---|
1271 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
|
---|
1272 | echo "$ac_t""missing" 1>&6
|
---|
1273 | fi
|
---|
1274 |
|
---|
1275 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1276 | echo "configure:1277: checking for working autoheader" >&5
|
---|
1277 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1278 | # an executable is not found, even if stderr is redirected.
|
---|
1279 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1280 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1281 | AUTOHEADER=autoheader
|
---|
1282 | echo "$ac_t""found" 1>&6
|
---|
1283 | else
|
---|
1284 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1285 | echo "$ac_t""missing" 1>&6
|
---|
1286 | fi
|
---|
1287 |
|
---|
1288 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1289 | echo "configure:1290: checking for working makeinfo" >&5
|
---|
1290 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1291 | # an executable is not found, even if stderr is redirected.
|
---|
1292 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1293 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1294 | MAKEINFO=makeinfo
|
---|
1295 | echo "$ac_t""found" 1>&6
|
---|
1296 | else
|
---|
1297 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1298 | echo "$ac_t""missing" 1>&6
|
---|
1299 | fi
|
---|
1300 |
|
---|
1301 |
|
---|
1302 |
|
---|
1303 | if test $host != $build; then
|
---|
1304 | ac_tool_prefix=${host_alias}-
|
---|
1305 | else
|
---|
1306 | ac_tool_prefix=
|
---|
1307 | fi
|
---|
1308 |
|
---|
1309 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
---|
1310 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
---|
1311 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1312 | echo "configure:1313: checking for $ac_word" >&5
|
---|
1313 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
---|
1314 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1315 | else
|
---|
1316 | if test -n "$AR"; then
|
---|
1317 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
1318 | else
|
---|
1319 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1320 | ac_dummy="$PATH"
|
---|
1321 | for ac_dir in $ac_dummy; do
|
---|
1322 | test -z "$ac_dir" && ac_dir=.
|
---|
1323 | if test -f $ac_dir/$ac_word -o \
|
---|
1324 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1325 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
---|
1326 | break
|
---|
1327 | fi
|
---|
1328 | done
|
---|
1329 | IFS="$ac_save_ifs"
|
---|
1330 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
---|
1331 | fi
|
---|
1332 | fi
|
---|
1333 | AR="$ac_cv_prog_AR"
|
---|
1334 | if test -n "$AR"; then
|
---|
1335 | echo "$ac_t""$AR" 1>&6
|
---|
1336 | else
|
---|
1337 | echo "$ac_t""no" 1>&6
|
---|
1338 | fi
|
---|
1339 |
|
---|
1340 |
|
---|
1341 |
|
---|
1342 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1343 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1344 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1345 | echo "configure:1346: checking for $ac_word" >&5
|
---|
1346 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1347 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1348 | else
|
---|
1349 | if test -n "$RANLIB"; then
|
---|
1350 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1351 | else
|
---|
1352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1353 | ac_dummy="$PATH"
|
---|
1354 | for ac_dir in $ac_dummy; do
|
---|
1355 | test -z "$ac_dir" && ac_dir=.
|
---|
1356 | if test -f $ac_dir/$ac_word -o \
|
---|
1357 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1358 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1359 | break
|
---|
1360 | fi
|
---|
1361 | done
|
---|
1362 | IFS="$ac_save_ifs"
|
---|
1363 | fi
|
---|
1364 | fi
|
---|
1365 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1366 | if test -n "$RANLIB"; then
|
---|
1367 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1368 | else
|
---|
1369 | echo "$ac_t""no" 1>&6
|
---|
1370 | fi
|
---|
1371 |
|
---|
1372 |
|
---|
1373 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1374 | if test -n "$ac_tool_prefix"; then
|
---|
1375 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1376 | set dummy ranlib; ac_word=$2
|
---|
1377 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1378 | echo "configure:1379: checking for $ac_word" >&5
|
---|
1379 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1380 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1381 | else
|
---|
1382 | if test -n "$RANLIB"; then
|
---|
1383 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1384 | else
|
---|
1385 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1386 | ac_dummy="$PATH"
|
---|
1387 | for ac_dir in $ac_dummy; do
|
---|
1388 | test -z "$ac_dir" && ac_dir=.
|
---|
1389 | if test -f $ac_dir/$ac_word -o \
|
---|
1390 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1391 | ac_cv_prog_RANLIB="ranlib"
|
---|
1392 | break
|
---|
1393 | fi
|
---|
1394 | done
|
---|
1395 | IFS="$ac_save_ifs"
|
---|
1396 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1397 | fi
|
---|
1398 | fi
|
---|
1399 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1400 | if test -n "$RANLIB"; then
|
---|
1401 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1402 | else
|
---|
1403 | echo "$ac_t""no" 1>&6
|
---|
1404 | fi
|
---|
1405 |
|
---|
1406 | else
|
---|
1407 | RANLIB=":"
|
---|
1408 | fi
|
---|
1409 | fi
|
---|
1410 |
|
---|
1411 |
|
---|
1412 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1413 | if test "${enable_shared+set}" = set; then
|
---|
1414 | enableval="$enable_shared"
|
---|
1415 | p=${PACKAGE-default}
|
---|
1416 | case $enableval in
|
---|
1417 | yes) enable_shared=yes ;;
|
---|
1418 | no) enable_shared=no ;;
|
---|
1419 | *)
|
---|
1420 | enable_shared=no
|
---|
1421 | # Look at the argument we got. We use all the common list separators.
|
---|
1422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1423 | for pkg in $enableval; do
|
---|
1424 | if test "X$pkg" = "X$p"; then
|
---|
1425 | enable_shared=yes
|
---|
1426 | fi
|
---|
1427 | done
|
---|
1428 | IFS="$ac_save_ifs"
|
---|
1429 | ;;
|
---|
1430 | esac
|
---|
1431 | else
|
---|
1432 | enable_shared=no
|
---|
1433 | fi
|
---|
1434 |
|
---|
1435 |
|
---|
1436 | # Check whether --enable-static or --disable-static was given.
|
---|
1437 | if test "${enable_static+set}" = set; then
|
---|
1438 | enableval="$enable_static"
|
---|
1439 | p=${PACKAGE-default}
|
---|
1440 | case $enableval in
|
---|
1441 | yes) enable_static=yes ;;
|
---|
1442 | no) enable_static=no ;;
|
---|
1443 | *)
|
---|
1444 | enable_static=no
|
---|
1445 | # Look at the argument we got. We use all the common list separators.
|
---|
1446 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1447 | for pkg in $enableval; do
|
---|
1448 | if test "X$pkg" = "X$p"; then
|
---|
1449 | enable_static=yes
|
---|
1450 | fi
|
---|
1451 | done
|
---|
1452 | IFS="$ac_save_ifs"
|
---|
1453 | ;;
|
---|
1454 | esac
|
---|
1455 | else
|
---|
1456 | enable_static=yes
|
---|
1457 | fi
|
---|
1458 |
|
---|
1459 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1460 | if test "${enable_fast_install+set}" = set; then
|
---|
1461 | enableval="$enable_fast_install"
|
---|
1462 | p=${PACKAGE-default}
|
---|
1463 | case $enableval in
|
---|
1464 | yes) enable_fast_install=yes ;;
|
---|
1465 | no) enable_fast_install=no ;;
|
---|
1466 | *)
|
---|
1467 | enable_fast_install=no
|
---|
1468 | # Look at the argument we got. We use all the common list separators.
|
---|
1469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1470 | for pkg in $enableval; do
|
---|
1471 | if test "X$pkg" = "X$p"; then
|
---|
1472 | enable_fast_install=yes
|
---|
1473 | fi
|
---|
1474 | done
|
---|
1475 | IFS="$ac_save_ifs"
|
---|
1476 | ;;
|
---|
1477 | esac
|
---|
1478 | else
|
---|
1479 | enable_fast_install=yes
|
---|
1480 | fi
|
---|
1481 |
|
---|
1482 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1483 | if test "${with_gnu_ld+set}" = set; then
|
---|
1484 | withval="$with_gnu_ld"
|
---|
1485 | test "$withval" = no || with_gnu_ld=yes
|
---|
1486 | else
|
---|
1487 | with_gnu_ld=no
|
---|
1488 | fi
|
---|
1489 |
|
---|
1490 | ac_prog=ld
|
---|
1491 | if test "$GCC" = yes; then
|
---|
1492 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1493 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1494 | echo "configure:1495: checking for ld used by GCC" >&5
|
---|
1495 | case $host in
|
---|
1496 | *-*-mingw*)
|
---|
1497 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1498 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1499 | *)
|
---|
1500 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1501 | esac
|
---|
1502 | case $ac_prog in
|
---|
1503 | # Accept absolute paths.
|
---|
1504 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1505 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1506 | # Canonicalize the path of ld
|
---|
1507 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1508 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1509 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1510 | done
|
---|
1511 | test -z "$LD" && LD="$ac_prog"
|
---|
1512 | ;;
|
---|
1513 | "")
|
---|
1514 | # If it fails, then pretend we aren't using GCC.
|
---|
1515 | ac_prog=ld
|
---|
1516 | ;;
|
---|
1517 | *)
|
---|
1518 | # If it is relative, then search for the first ld in PATH.
|
---|
1519 | with_gnu_ld=unknown
|
---|
1520 | ;;
|
---|
1521 | esac
|
---|
1522 | elif test "$with_gnu_ld" = yes; then
|
---|
1523 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1524 | echo "configure:1525: checking for GNU ld" >&5
|
---|
1525 | else
|
---|
1526 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1527 | echo "configure:1528: checking for non-GNU ld" >&5
|
---|
1528 | fi
|
---|
1529 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
---|
1530 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1531 | else
|
---|
1532 | if test -z "$LD"; then
|
---|
1533 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1534 | for ac_dir in $PATH; do
|
---|
1535 | test -z "$ac_dir" && ac_dir=.
|
---|
1536 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1537 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1538 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1539 | # but apparently some GNU ld's only accept -v.
|
---|
1540 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1541 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1542 | test "$with_gnu_ld" != no && break
|
---|
1543 | else
|
---|
1544 | test "$with_gnu_ld" != yes && break
|
---|
1545 | fi
|
---|
1546 | fi
|
---|
1547 | done
|
---|
1548 | IFS="$ac_save_ifs"
|
---|
1549 | else
|
---|
1550 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1551 | fi
|
---|
1552 | fi
|
---|
1553 |
|
---|
1554 | LD="$lt_cv_path_LD"
|
---|
1555 | if test -n "$LD"; then
|
---|
1556 | echo "$ac_t""$LD" 1>&6
|
---|
1557 | else
|
---|
1558 | echo "$ac_t""no" 1>&6
|
---|
1559 | fi
|
---|
1560 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1561 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1562 | echo "configure:1563: checking if the linker ($LD) is GNU ld" >&5
|
---|
1563 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1564 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1565 | else
|
---|
1566 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1567 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1568 | lt_cv_prog_gnu_ld=yes
|
---|
1569 | else
|
---|
1570 | lt_cv_prog_gnu_ld=no
|
---|
1571 | fi
|
---|
1572 | fi
|
---|
1573 |
|
---|
1574 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
1575 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
1576 |
|
---|
1577 |
|
---|
1578 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1579 | echo "configure:1580: checking for $LD option to reload object files" >&5
|
---|
1580 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1581 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1582 | else
|
---|
1583 | lt_cv_ld_reload_flag='-r'
|
---|
1584 | fi
|
---|
1585 |
|
---|
1586 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1587 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1588 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1589 |
|
---|
1590 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1591 | echo "configure:1592: checking for BSD-compatible nm" >&5
|
---|
1592 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
---|
1593 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1594 | else
|
---|
1595 | if test -n "$NM"; then
|
---|
1596 | # Let the user override the test.
|
---|
1597 | lt_cv_path_NM="$NM"
|
---|
1598 | else
|
---|
1599 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1600 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1601 | test -z "$ac_dir" && ac_dir=.
|
---|
1602 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1603 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1604 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1605 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1606 | # nm: unknown option "B" ignored
|
---|
1607 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1608 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1609 | lt_cv_path_NM="$tmp_nm -B"
|
---|
1610 | break
|
---|
1611 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1612 | lt_cv_path_NM="$tmp_nm -p"
|
---|
1613 | break
|
---|
1614 | else
|
---|
1615 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1616 | continue # so that we can try to find one that supports BSD flags
|
---|
1617 | fi
|
---|
1618 | fi
|
---|
1619 | done
|
---|
1620 | IFS="$ac_save_ifs"
|
---|
1621 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
1622 | fi
|
---|
1623 | fi
|
---|
1624 |
|
---|
1625 | NM="$lt_cv_path_NM"
|
---|
1626 | echo "$ac_t""$NM" 1>&6
|
---|
1627 |
|
---|
1628 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1629 | echo "configure:1630: checking whether ln -s works" >&5
|
---|
1630 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1631 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1632 | else
|
---|
1633 | rm -f conftestdata
|
---|
1634 | if ln -s X conftestdata 2>/dev/null
|
---|
1635 | then
|
---|
1636 | rm -f conftestdata
|
---|
1637 | ac_cv_prog_LN_S="ln -s"
|
---|
1638 | else
|
---|
1639 | echo A > conftestdata;
|
---|
1640 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1641 | ac_cv_prog_LN_S=ln
|
---|
1642 | else
|
---|
1643 | ac_cv_prog_LN_S=cp
|
---|
1644 | fi
|
---|
1645 | fi
|
---|
1646 | rm -f conftestdata*
|
---|
1647 | fi
|
---|
1648 | LN_S="$ac_cv_prog_LN_S"
|
---|
1649 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1650 | echo "$ac_t""yes" 1>&6
|
---|
1651 | else
|
---|
1652 | echo "$ac_t""no" 1>&6
|
---|
1653 | fi
|
---|
1654 |
|
---|
1655 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1656 | echo "configure:1657: checking how to recognise dependant libraries" >&5
|
---|
1657 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1658 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1659 | else
|
---|
1660 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1661 | lt_cv_file_magic_test_file=
|
---|
1662 | lt_cv_deplibs_check_method='unknown'
|
---|
1663 | # Need to set the preceding variable on all platforms that support
|
---|
1664 | # interlibrary dependencies.
|
---|
1665 | # 'none' -- dependencies not supported.
|
---|
1666 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1667 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1668 | # 'test_compile' -- check by making test program.
|
---|
1669 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1670 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1671 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1672 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1673 |
|
---|
1674 | case $host_os in
|
---|
1675 | aix*)
|
---|
1676 | lt_cv_deplibs_check_method=pass_all
|
---|
1677 | ;;
|
---|
1678 |
|
---|
1679 | beos*)
|
---|
1680 | lt_cv_deplibs_check_method=pass_all
|
---|
1681 | ;;
|
---|
1682 |
|
---|
1683 | bsdi4*)
|
---|
1684 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1685 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1686 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1687 | ;;
|
---|
1688 |
|
---|
1689 | cygwin* | mingw* |pw32*)
|
---|
1690 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1691 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1692 | ;;
|
---|
1693 |
|
---|
1694 | darwin* | rhapsody*)
|
---|
1695 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
1696 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1697 | case "$host_os" in
|
---|
1698 | rhapsody* | darwin1.012)
|
---|
1699 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
---|
1700 | ;;
|
---|
1701 | *) # Darwin 1.3 on
|
---|
1702 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
---|
1703 | ;;
|
---|
1704 | esac
|
---|
1705 | ;;
|
---|
1706 |
|
---|
1707 | freebsd* )
|
---|
1708 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1709 | case $host_cpu in
|
---|
1710 | i*86 )
|
---|
1711 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1712 | # Let's accept both of them until this is cleared up.
|
---|
1713 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1714 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1715 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1716 | ;;
|
---|
1717 | esac
|
---|
1718 | else
|
---|
1719 | lt_cv_deplibs_check_method=pass_all
|
---|
1720 | fi
|
---|
1721 | ;;
|
---|
1722 |
|
---|
1723 | gnu*)
|
---|
1724 | lt_cv_deplibs_check_method=pass_all
|
---|
1725 | ;;
|
---|
1726 |
|
---|
1727 | hpux10.20*|hpux11*)
|
---|
1728 | case $host_cpu in
|
---|
1729 | hppa*)
|
---|
1730 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
1731 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1732 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1733 | ;;
|
---|
1734 | ia64*)
|
---|
1735 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
1736 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1737 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
1738 | ;;
|
---|
1739 | esac
|
---|
1740 | ;;
|
---|
1741 |
|
---|
1742 | irix5* | irix6*)
|
---|
1743 | case $host_os in
|
---|
1744 | irix5*)
|
---|
1745 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1746 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1747 | ;;
|
---|
1748 | *)
|
---|
1749 | case $LD in
|
---|
1750 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1751 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1752 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1753 | *) libmagic=never-match;;
|
---|
1754 | esac
|
---|
1755 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1756 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1757 | ;;
|
---|
1758 | esac
|
---|
1759 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1760 | lt_cv_deplibs_check_method=pass_all
|
---|
1761 | ;;
|
---|
1762 |
|
---|
1763 | # This must be Linux ELF.
|
---|
1764 | linux-gnu*)
|
---|
1765 | case $host_cpu in
|
---|
1766 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1767 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1768 | *)
|
---|
1769 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1770 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1771 | esac
|
---|
1772 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1773 | ;;
|
---|
1774 |
|
---|
1775 | netbsd*)
|
---|
1776 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1777 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
---|
1778 | else
|
---|
1779 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
---|
1780 | fi
|
---|
1781 | ;;
|
---|
1782 |
|
---|
1783 | newsos6)
|
---|
1784 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
1785 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1786 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
1787 | ;;
|
---|
1788 |
|
---|
1789 | os2*)
|
---|
1790 | lt_cv_deplibs_check_method=pass_all
|
---|
1791 | ;;
|
---|
1792 |
|
---|
1793 | osf3* | osf4* | osf5*)
|
---|
1794 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1795 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1796 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1797 | lt_cv_deplibs_check_method=pass_all
|
---|
1798 | ;;
|
---|
1799 |
|
---|
1800 | sco3.2v5*)
|
---|
1801 | lt_cv_deplibs_check_method=pass_all
|
---|
1802 | ;;
|
---|
1803 |
|
---|
1804 | solaris*)
|
---|
1805 | lt_cv_deplibs_check_method=pass_all
|
---|
1806 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1807 | ;;
|
---|
1808 |
|
---|
1809 | sysv5uw[78]* | sysv4*uw2*)
|
---|
1810 | lt_cv_deplibs_check_method=pass_all
|
---|
1811 | ;;
|
---|
1812 |
|
---|
1813 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1814 | case $host_vendor in
|
---|
1815 | ncr)
|
---|
1816 | lt_cv_deplibs_check_method=pass_all
|
---|
1817 | ;;
|
---|
1818 | motorola)
|
---|
1819 | 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]'
|
---|
1820 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1821 | ;;
|
---|
1822 | esac
|
---|
1823 | ;;
|
---|
1824 | esac
|
---|
1825 |
|
---|
1826 | fi
|
---|
1827 |
|
---|
1828 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1829 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1830 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1831 |
|
---|
1832 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1833 | echo "configure:1834: checking for object suffix" >&5
|
---|
1834 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1835 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1836 | else
|
---|
1837 | rm -f conftest*
|
---|
1838 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1839 | if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1840 | for ac_file in conftest.*; do
|
---|
1841 | case $ac_file in
|
---|
1842 | *.c) ;;
|
---|
1843 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1844 | esac
|
---|
1845 | done
|
---|
1846 | else
|
---|
1847 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1848 | fi
|
---|
1849 | rm -f conftest*
|
---|
1850 | fi
|
---|
1851 |
|
---|
1852 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1853 | OBJEXT=$ac_cv_objext
|
---|
1854 | ac_objext=$ac_cv_objext
|
---|
1855 |
|
---|
1856 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1857 |
|
---|
1858 | # Only perform the check for file, if the check method requires it
|
---|
1859 | case $deplibs_check_method in
|
---|
1860 | file_magic*)
|
---|
1861 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1862 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1863 | echo "configure:1864: checking for ${ac_tool_prefix}file" >&5
|
---|
1864 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1865 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1866 | else
|
---|
1867 | case $MAGIC_CMD in
|
---|
1868 | /*)
|
---|
1869 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1870 | ;;
|
---|
1871 | ?:/*)
|
---|
1872 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1873 | ;;
|
---|
1874 | *)
|
---|
1875 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1877 | ac_dummy="/usr/bin:$PATH"
|
---|
1878 | for ac_dir in $ac_dummy; do
|
---|
1879 | test -z "$ac_dir" && ac_dir=.
|
---|
1880 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1881 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1882 | if test -n "$file_magic_test_file"; then
|
---|
1883 | case $deplibs_check_method in
|
---|
1884 | "file_magic "*)
|
---|
1885 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1886 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1887 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1888 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1889 | :
|
---|
1890 | else
|
---|
1891 | cat <<EOF 1>&2
|
---|
1892 |
|
---|
1893 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1894 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1895 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1896 | *** as such. This will affect the creation of libtool libraries that
|
---|
1897 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1898 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1899 | *** may want to report the problem to your system manager and/or to
|
---|
1900 | *** bug-libtool@gnu.org
|
---|
1901 |
|
---|
1902 | EOF
|
---|
1903 | fi ;;
|
---|
1904 | esac
|
---|
1905 | fi
|
---|
1906 | break
|
---|
1907 | fi
|
---|
1908 | done
|
---|
1909 | IFS="$ac_save_ifs"
|
---|
1910 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1911 | ;;
|
---|
1912 | esac
|
---|
1913 | fi
|
---|
1914 |
|
---|
1915 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1916 | if test -n "$MAGIC_CMD"; then
|
---|
1917 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1918 | else
|
---|
1919 | echo "$ac_t""no" 1>&6
|
---|
1920 | fi
|
---|
1921 |
|
---|
1922 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1923 | if test -n "$ac_tool_prefix"; then
|
---|
1924 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1925 | echo "configure:1926: checking for file" >&5
|
---|
1926 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1927 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1928 | else
|
---|
1929 | case $MAGIC_CMD in
|
---|
1930 | /*)
|
---|
1931 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1932 | ;;
|
---|
1933 | ?:/*)
|
---|
1934 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1935 | ;;
|
---|
1936 | *)
|
---|
1937 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1939 | ac_dummy="/usr/bin:$PATH"
|
---|
1940 | for ac_dir in $ac_dummy; do
|
---|
1941 | test -z "$ac_dir" && ac_dir=.
|
---|
1942 | if test -f $ac_dir/file; then
|
---|
1943 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1944 | if test -n "$file_magic_test_file"; then
|
---|
1945 | case $deplibs_check_method in
|
---|
1946 | "file_magic "*)
|
---|
1947 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1948 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1949 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1950 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1951 | :
|
---|
1952 | else
|
---|
1953 | cat <<EOF 1>&2
|
---|
1954 |
|
---|
1955 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1956 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1957 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1958 | *** as such. This will affect the creation of libtool libraries that
|
---|
1959 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1960 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1961 | *** may want to report the problem to your system manager and/or to
|
---|
1962 | *** bug-libtool@gnu.org
|
---|
1963 |
|
---|
1964 | EOF
|
---|
1965 | fi ;;
|
---|
1966 | esac
|
---|
1967 | fi
|
---|
1968 | break
|
---|
1969 | fi
|
---|
1970 | done
|
---|
1971 | IFS="$ac_save_ifs"
|
---|
1972 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1973 | ;;
|
---|
1974 | esac
|
---|
1975 | fi
|
---|
1976 |
|
---|
1977 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1978 | if test -n "$MAGIC_CMD"; then
|
---|
1979 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1980 | else
|
---|
1981 | echo "$ac_t""no" 1>&6
|
---|
1982 | fi
|
---|
1983 |
|
---|
1984 | else
|
---|
1985 | MAGIC_CMD=:
|
---|
1986 | fi
|
---|
1987 | fi
|
---|
1988 |
|
---|
1989 | fi
|
---|
1990 | ;;
|
---|
1991 | esac
|
---|
1992 |
|
---|
1993 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1994 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1995 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1996 | echo "configure:1997: checking for $ac_word" >&5
|
---|
1997 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1998 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1999 | else
|
---|
2000 | if test -n "$RANLIB"; then
|
---|
2001 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2002 | else
|
---|
2003 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2004 | ac_dummy="$PATH"
|
---|
2005 | for ac_dir in $ac_dummy; do
|
---|
2006 | test -z "$ac_dir" && ac_dir=.
|
---|
2007 | if test -f $ac_dir/$ac_word -o \
|
---|
2008 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2009 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2010 | break
|
---|
2011 | fi
|
---|
2012 | done
|
---|
2013 | IFS="$ac_save_ifs"
|
---|
2014 | fi
|
---|
2015 | fi
|
---|
2016 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2017 | if test -n "$RANLIB"; then
|
---|
2018 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2019 | else
|
---|
2020 | echo "$ac_t""no" 1>&6
|
---|
2021 | fi
|
---|
2022 |
|
---|
2023 |
|
---|
2024 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2025 | if test -n "$ac_tool_prefix"; then
|
---|
2026 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2027 | set dummy ranlib; ac_word=$2
|
---|
2028 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2029 | echo "configure:2030: checking for $ac_word" >&5
|
---|
2030 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2031 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2032 | else
|
---|
2033 | if test -n "$RANLIB"; then
|
---|
2034 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2035 | else
|
---|
2036 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2037 | ac_dummy="$PATH"
|
---|
2038 | for ac_dir in $ac_dummy; do
|
---|
2039 | test -z "$ac_dir" && ac_dir=.
|
---|
2040 | if test -f $ac_dir/$ac_word -o \
|
---|
2041 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2042 | ac_cv_prog_RANLIB="ranlib"
|
---|
2043 | break
|
---|
2044 | fi
|
---|
2045 | done
|
---|
2046 | IFS="$ac_save_ifs"
|
---|
2047 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2048 | fi
|
---|
2049 | fi
|
---|
2050 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2051 | if test -n "$RANLIB"; then
|
---|
2052 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2053 | else
|
---|
2054 | echo "$ac_t""no" 1>&6
|
---|
2055 | fi
|
---|
2056 |
|
---|
2057 | else
|
---|
2058 | RANLIB=":"
|
---|
2059 | fi
|
---|
2060 | fi
|
---|
2061 |
|
---|
2062 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2063 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2065 | echo "configure:2066: checking for $ac_word" >&5
|
---|
2066 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2067 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2068 | else
|
---|
2069 | if test -n "$STRIP"; then
|
---|
2070 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2071 | else
|
---|
2072 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2073 | ac_dummy="$PATH"
|
---|
2074 | for ac_dir in $ac_dummy; do
|
---|
2075 | test -z "$ac_dir" && ac_dir=.
|
---|
2076 | if test -f $ac_dir/$ac_word -o \
|
---|
2077 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2078 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2079 | break
|
---|
2080 | fi
|
---|
2081 | done
|
---|
2082 | IFS="$ac_save_ifs"
|
---|
2083 | fi
|
---|
2084 | fi
|
---|
2085 | STRIP="$ac_cv_prog_STRIP"
|
---|
2086 | if test -n "$STRIP"; then
|
---|
2087 | echo "$ac_t""$STRIP" 1>&6
|
---|
2088 | else
|
---|
2089 | echo "$ac_t""no" 1>&6
|
---|
2090 | fi
|
---|
2091 |
|
---|
2092 |
|
---|
2093 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2094 | if test -n "$ac_tool_prefix"; then
|
---|
2095 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2096 | set dummy strip; ac_word=$2
|
---|
2097 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2098 | echo "configure:2099: checking for $ac_word" >&5
|
---|
2099 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2100 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2101 | else
|
---|
2102 | if test -n "$STRIP"; then
|
---|
2103 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2104 | else
|
---|
2105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2106 | ac_dummy="$PATH"
|
---|
2107 | for ac_dir in $ac_dummy; do
|
---|
2108 | test -z "$ac_dir" && ac_dir=.
|
---|
2109 | if test -f $ac_dir/$ac_word -o \
|
---|
2110 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2111 | ac_cv_prog_STRIP="strip"
|
---|
2112 | break
|
---|
2113 | fi
|
---|
2114 | done
|
---|
2115 | IFS="$ac_save_ifs"
|
---|
2116 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2117 | fi
|
---|
2118 | fi
|
---|
2119 | STRIP="$ac_cv_prog_STRIP"
|
---|
2120 | if test -n "$STRIP"; then
|
---|
2121 | echo "$ac_t""$STRIP" 1>&6
|
---|
2122 | else
|
---|
2123 | echo "$ac_t""no" 1>&6
|
---|
2124 | fi
|
---|
2125 |
|
---|
2126 | else
|
---|
2127 | STRIP=":"
|
---|
2128 | fi
|
---|
2129 | fi
|
---|
2130 |
|
---|
2131 |
|
---|
2132 | # Check for any special flags to pass to ltconfig.
|
---|
2133 | libtool_flags="--cache-file=$cache_file"
|
---|
2134 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2135 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2136 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2137 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2138 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2139 |
|
---|
2140 |
|
---|
2141 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2142 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2143 | enableval="$enable_libtool_lock"
|
---|
2144 | :
|
---|
2145 | fi
|
---|
2146 |
|
---|
2147 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2148 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2149 |
|
---|
2150 | # Check whether --with-pic or --without-pic was given.
|
---|
2151 | if test "${with_pic+set}" = set; then
|
---|
2152 | withval="$with_pic"
|
---|
2153 | pic_mode="$withval"
|
---|
2154 | else
|
---|
2155 | pic_mode=default
|
---|
2156 | fi
|
---|
2157 |
|
---|
2158 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2159 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2160 |
|
---|
2161 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2162 | # libtool support.
|
---|
2163 | case $host in
|
---|
2164 | *-*-irix6*)
|
---|
2165 | # Find out which ABI we are using.
|
---|
2166 | echo '#line 2167 "configure"' > conftest.$ac_ext
|
---|
2167 | if { (eval echo configure:2168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2168 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
---|
2169 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2170 | *32-bit*)
|
---|
2171 | LD="${LD-ld} -melf32bsmip"
|
---|
2172 | ;;
|
---|
2173 | *N32*)
|
---|
2174 | LD="${LD-ld} -melf32bmipn32"
|
---|
2175 | ;;
|
---|
2176 | *64-bit*)
|
---|
2177 | LD="${LD-ld} -melf64bmip"
|
---|
2178 | ;;
|
---|
2179 | esac
|
---|
2180 | else
|
---|
2181 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
2182 | *32-bit*)
|
---|
2183 | LD="${LD-ld} -32"
|
---|
2184 | ;;
|
---|
2185 | *N32*)
|
---|
2186 | LD="${LD-ld} -n32"
|
---|
2187 | ;;
|
---|
2188 | *64-bit*)
|
---|
2189 | LD="${LD-ld} -64"
|
---|
2190 | ;;
|
---|
2191 | esac
|
---|
2192 | fi
|
---|
2193 | fi
|
---|
2194 | rm -rf conftest*
|
---|
2195 | ;;
|
---|
2196 |
|
---|
2197 | ia64-*-hpux*)
|
---|
2198 | # Find out which ABI we are using.
|
---|
2199 | echo 'int i;' > conftest.$ac_ext
|
---|
2200 | if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2201 | case "`/usr/bin/file conftest.o`" in
|
---|
2202 | *ELF-32*)
|
---|
2203 | HPUX_IA64_MODE="32"
|
---|
2204 | ;;
|
---|
2205 | *ELF-64*)
|
---|
2206 | HPUX_IA64_MODE="64"
|
---|
2207 | ;;
|
---|
2208 | esac
|
---|
2209 | fi
|
---|
2210 | rm -rf conftest*
|
---|
2211 | ;;
|
---|
2212 |
|
---|
2213 | *-*-sco3.2v5*)
|
---|
2214 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2215 | SAVE_CFLAGS="$CFLAGS"
|
---|
2216 | CFLAGS="$CFLAGS -belf"
|
---|
2217 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2218 | echo "configure:2219: checking whether the C compiler needs -belf" >&5
|
---|
2219 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2220 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2221 | else
|
---|
2222 |
|
---|
2223 | ac_ext=c
|
---|
2224 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2225 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2226 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2227 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2228 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2229 |
|
---|
2230 | cat > conftest.$ac_ext <<EOF
|
---|
2231 | #line 2232 "configure"
|
---|
2232 | #include "confdefs.h"
|
---|
2233 |
|
---|
2234 | int main() {
|
---|
2235 |
|
---|
2236 | ; return 0; }
|
---|
2237 | EOF
|
---|
2238 | if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2239 | rm -rf conftest*
|
---|
2240 | lt_cv_cc_needs_belf=yes
|
---|
2241 | else
|
---|
2242 | echo "configure: failed program was:" >&5
|
---|
2243 | cat conftest.$ac_ext >&5
|
---|
2244 | rm -rf conftest*
|
---|
2245 | lt_cv_cc_needs_belf=no
|
---|
2246 | fi
|
---|
2247 | rm -f conftest*
|
---|
2248 | ac_ext=c
|
---|
2249 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2250 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2251 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2252 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2253 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2254 |
|
---|
2255 | fi
|
---|
2256 |
|
---|
2257 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2258 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2259 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2260 | CFLAGS="$SAVE_CFLAGS"
|
---|
2261 | fi
|
---|
2262 | ;;
|
---|
2263 |
|
---|
2264 |
|
---|
2265 | esac
|
---|
2266 |
|
---|
2267 |
|
---|
2268 | # Save cache, so that ltconfig can load it
|
---|
2269 | cat > confcache <<\EOF
|
---|
2270 | # This file is a shell script that caches the results of configure
|
---|
2271 | # tests run on this system so they can be shared between configure
|
---|
2272 | # scripts and configure runs. It is not useful on other systems.
|
---|
2273 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2274 | #
|
---|
2275 | # By default, configure uses ./config.cache as the cache file,
|
---|
2276 | # creating it if it does not exist already. You can give configure
|
---|
2277 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2278 | # what configure does when it calls configure scripts in
|
---|
2279 | # subdirectories, so they share the cache.
|
---|
2280 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2281 | # config.status only pays attention to the cache file if you give it the
|
---|
2282 | # --recheck option to rerun configure.
|
---|
2283 | #
|
---|
2284 | EOF
|
---|
2285 | # The following way of writing the cache mishandles newlines in values,
|
---|
2286 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2287 | # So, don't put newlines in cache variables' values.
|
---|
2288 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2289 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2290 | (set) 2>&1 |
|
---|
2291 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2292 | *ac_space=\ *)
|
---|
2293 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2294 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2295 | sed -n \
|
---|
2296 | -e "s/'/'\\\\''/g" \
|
---|
2297 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2298 | ;;
|
---|
2299 | *)
|
---|
2300 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2301 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2302 | ;;
|
---|
2303 | esac >> confcache
|
---|
2304 | if cmp -s $cache_file confcache; then
|
---|
2305 | :
|
---|
2306 | else
|
---|
2307 | if test -w $cache_file; then
|
---|
2308 | echo "updating cache $cache_file"
|
---|
2309 | cat confcache > $cache_file
|
---|
2310 | else
|
---|
2311 | echo "not updating unwritable cache $cache_file"
|
---|
2312 | fi
|
---|
2313 | fi
|
---|
2314 | rm -f confcache
|
---|
2315 |
|
---|
2316 |
|
---|
2317 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2318 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2319 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2320 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2321 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2322 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2323 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2324 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2325 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2326 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2327 |
|
---|
2328 | # Reload cache, that may have been modified by ltconfig
|
---|
2329 | if test -r "$cache_file"; then
|
---|
2330 | echo "loading cache $cache_file"
|
---|
2331 | . $cache_file
|
---|
2332 | else
|
---|
2333 | echo "creating cache $cache_file"
|
---|
2334 | > $cache_file
|
---|
2335 | fi
|
---|
2336 |
|
---|
2337 |
|
---|
2338 | # This can be used to rebuild libtool when needed
|
---|
2339 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2340 |
|
---|
2341 | # Always use our own libtool.
|
---|
2342 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2343 |
|
---|
2344 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2345 | # clobbered by the next message.
|
---|
2346 | exec 5>>./config.log
|
---|
2347 |
|
---|
2348 |
|
---|
2349 |
|
---|
2350 |
|
---|
2351 |
|
---|
2352 |
|
---|
2353 |
|
---|
2354 | # Check whether --enable-targets or --disable-targets was given.
|
---|
2355 | if test "${enable_targets+set}" = set; then
|
---|
2356 | enableval="$enable_targets"
|
---|
2357 | case "${enableval}" in
|
---|
2358 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
---|
2359 | ;;
|
---|
2360 | no) enable_targets= ;;
|
---|
2361 | *) enable_targets=$enableval ;;
|
---|
2362 | esac
|
---|
2363 | fi
|
---|
2364 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
---|
2365 | if test "${enable_commonbfdlib+set}" = set; then
|
---|
2366 | enableval="$enable_commonbfdlib"
|
---|
2367 | case "${enableval}" in
|
---|
2368 | yes) commonbfdlib=true ;;
|
---|
2369 | no) commonbfdlib=false ;;
|
---|
2370 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
|
---|
2371 | esac
|
---|
2372 | fi
|
---|
2373 |
|
---|
2374 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
---|
2375 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
2376 | if test "${enable_build_warnings+set}" = set; then
|
---|
2377 | enableval="$enable_build_warnings"
|
---|
2378 | case "${enableval}" in
|
---|
2379 | yes) ;;
|
---|
2380 | no) build_warnings="-w";;
|
---|
2381 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2382 | build_warnings="${build_warnings} ${t}";;
|
---|
2383 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
2384 | build_warnings="${t} ${build_warnings}";;
|
---|
2385 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
2386 | esac
|
---|
2387 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
2388 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
2389 | fi
|
---|
2390 | fi
|
---|
2391 | WARN_CFLAGS=""
|
---|
2392 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
---|
2393 | WARN_CFLAGS="${build_warnings}"
|
---|
2394 | fi
|
---|
2395 |
|
---|
2396 |
|
---|
2397 |
|
---|
2398 |
|
---|
2399 |
|
---|
2400 |
|
---|
2401 | if test -z "$target" ; then
|
---|
2402 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
---|
2403 | fi
|
---|
2404 |
|
---|
2405 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
2406 | echo "configure:2407: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
2407 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
2408 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
2409 | enableval="$enable_maintainer_mode"
|
---|
2410 | USE_MAINTAINER_MODE=$enableval
|
---|
2411 | else
|
---|
2412 | USE_MAINTAINER_MODE=no
|
---|
2413 | fi
|
---|
2414 |
|
---|
2415 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
2416 |
|
---|
2417 |
|
---|
2418 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
2419 | MAINTAINER_MODE_TRUE=
|
---|
2420 | MAINTAINER_MODE_FALSE='#'
|
---|
2421 | else
|
---|
2422 | MAINTAINER_MODE_TRUE='#'
|
---|
2423 | MAINTAINER_MODE_FALSE=
|
---|
2424 | fi
|
---|
2425 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
2426 |
|
---|
2427 |
|
---|
2428 | echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
|
---|
2429 | echo "configure:2430: checking whether to install libbfd" >&5
|
---|
2430 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
|
---|
2431 | if test "${enable_install_libbfd+set}" = set; then
|
---|
2432 | enableval="$enable_install_libbfd"
|
---|
2433 | install_libbfd_p=$enableval
|
---|
2434 | else
|
---|
2435 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
|
---|
2436 | install_libbfd_p=yes
|
---|
2437 | else
|
---|
2438 | install_libbfd_p=no
|
---|
2439 | fi
|
---|
2440 | fi
|
---|
2441 |
|
---|
2442 | echo "$ac_t""$install_libbfd_p" 1>&6
|
---|
2443 |
|
---|
2444 |
|
---|
2445 | if test $install_libbfd_p = yes; then
|
---|
2446 | INSTALL_LIBBFD_TRUE=
|
---|
2447 | INSTALL_LIBBFD_FALSE='#'
|
---|
2448 | else
|
---|
2449 | INSTALL_LIBBFD_TRUE='#'
|
---|
2450 | INSTALL_LIBBFD_FALSE=
|
---|
2451 | fi
|
---|
2452 | # libbfd.a is a host library containing target dependent code
|
---|
2453 | bfdlibdir='$(libdir)'
|
---|
2454 | bfdincludedir='$(includedir)'
|
---|
2455 | if test "${host}" != "${target}"; then
|
---|
2456 | bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
|
---|
2457 | bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
|
---|
2458 | fi
|
---|
2459 |
|
---|
2460 |
|
---|
2461 |
|
---|
2462 |
|
---|
2463 |
|
---|
2464 |
|
---|
2465 |
|
---|
2466 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
2467 | echo "configure:2468: checking for executable suffix" >&5
|
---|
2468 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
2469 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2470 | else
|
---|
2471 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
2472 | ac_cv_exeext=.exe
|
---|
2473 | else
|
---|
2474 | rm -f conftest*
|
---|
2475 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
2476 | ac_cv_exeext=
|
---|
2477 | if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
2478 | for file in conftest.*; do
|
---|
2479 | case $file in
|
---|
2480 | *.c | *.o | *.obj) ;;
|
---|
2481 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
2482 | esac
|
---|
2483 | done
|
---|
2484 | else
|
---|
2485 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
2486 | fi
|
---|
2487 | rm -f conftest*
|
---|
2488 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
2489 | fi
|
---|
2490 | fi
|
---|
2491 |
|
---|
2492 | EXEEXT=""
|
---|
2493 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
2494 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
2495 | ac_exeext=$EXEEXT
|
---|
2496 |
|
---|
2497 |
|
---|
2498 | # host-specific stuff:
|
---|
2499 |
|
---|
2500 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2501 | set dummy gcc; ac_word=$2
|
---|
2502 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2503 | echo "configure:2504: checking for $ac_word" >&5
|
---|
2504 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2505 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2506 | else
|
---|
2507 | if test -n "$CC"; then
|
---|
2508 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2509 | else
|
---|
2510 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2511 | ac_dummy="$PATH"
|
---|
2512 | for ac_dir in $ac_dummy; do
|
---|
2513 | test -z "$ac_dir" && ac_dir=.
|
---|
2514 | if test -f $ac_dir/$ac_word -o \
|
---|
2515 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2516 | ac_cv_prog_CC="gcc"
|
---|
2517 | break
|
---|
2518 | fi
|
---|
2519 | done
|
---|
2520 | IFS="$ac_save_ifs"
|
---|
2521 | fi
|
---|
2522 | fi
|
---|
2523 | CC="$ac_cv_prog_CC"
|
---|
2524 | if test -n "$CC"; then
|
---|
2525 | echo "$ac_t""$CC" 1>&6
|
---|
2526 | else
|
---|
2527 | echo "$ac_t""no" 1>&6
|
---|
2528 | fi
|
---|
2529 |
|
---|
2530 | if test -z "$CC"; then
|
---|
2531 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2532 | set dummy cc; ac_word=$2
|
---|
2533 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2534 | echo "configure:2535: checking for $ac_word" >&5
|
---|
2535 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2536 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2537 | else
|
---|
2538 | if test -n "$CC"; then
|
---|
2539 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2540 | else
|
---|
2541 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2542 | ac_prog_rejected=no
|
---|
2543 | ac_dummy="$PATH"
|
---|
2544 | for ac_dir in $ac_dummy; do
|
---|
2545 | test -z "$ac_dir" && ac_dir=.
|
---|
2546 | if test -f $ac_dir/$ac_word -o \
|
---|
2547 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2548 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
2549 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
2550 | ac_prog_rejected=yes
|
---|
2551 | continue
|
---|
2552 | fi
|
---|
2553 | ac_cv_prog_CC="cc"
|
---|
2554 | break
|
---|
2555 | fi
|
---|
2556 | done
|
---|
2557 | IFS="$ac_save_ifs"
|
---|
2558 | if test $ac_prog_rejected = yes; then
|
---|
2559 | # We found a bogon in the path, so make sure we never use it.
|
---|
2560 | set dummy $ac_cv_prog_CC
|
---|
2561 | shift
|
---|
2562 | if test $# -gt 0; then
|
---|
2563 | # We chose a different compiler from the bogus one.
|
---|
2564 | # However, it has the same basename, so the bogon will be chosen
|
---|
2565 | # first if we set CC to just the basename; use the full file name.
|
---|
2566 | shift
|
---|
2567 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
2568 | shift
|
---|
2569 | ac_cv_prog_CC="$@"
|
---|
2570 | fi
|
---|
2571 | fi
|
---|
2572 | fi
|
---|
2573 | fi
|
---|
2574 | CC="$ac_cv_prog_CC"
|
---|
2575 | if test -n "$CC"; then
|
---|
2576 | echo "$ac_t""$CC" 1>&6
|
---|
2577 | else
|
---|
2578 | echo "$ac_t""no" 1>&6
|
---|
2579 | fi
|
---|
2580 |
|
---|
2581 | if test -z "$CC"; then
|
---|
2582 | case "`uname -s`" in
|
---|
2583 | *win32* | *WIN32*)
|
---|
2584 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
2585 | set dummy cl; ac_word=$2
|
---|
2586 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2587 | echo "configure:2588: checking for $ac_word" >&5
|
---|
2588 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2589 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2590 | else
|
---|
2591 | if test -n "$CC"; then
|
---|
2592 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2593 | else
|
---|
2594 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2595 | ac_dummy="$PATH"
|
---|
2596 | for ac_dir in $ac_dummy; do
|
---|
2597 | test -z "$ac_dir" && ac_dir=.
|
---|
2598 | if test -f $ac_dir/$ac_word -o \
|
---|
2599 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2600 | ac_cv_prog_CC="cl"
|
---|
2601 | break
|
---|
2602 | fi
|
---|
2603 | done
|
---|
2604 | IFS="$ac_save_ifs"
|
---|
2605 | fi
|
---|
2606 | fi
|
---|
2607 | CC="$ac_cv_prog_CC"
|
---|
2608 | if test -n "$CC"; then
|
---|
2609 | echo "$ac_t""$CC" 1>&6
|
---|
2610 | else
|
---|
2611 | echo "$ac_t""no" 1>&6
|
---|
2612 | fi
|
---|
2613 | ;;
|
---|
2614 | esac
|
---|
2615 | fi
|
---|
2616 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2617 | fi
|
---|
2618 |
|
---|
2619 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2620 | echo "configure:2621: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2621 |
|
---|
2622 | ac_ext=c
|
---|
2623 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2624 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2625 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2626 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2627 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2628 |
|
---|
2629 | cat > conftest.$ac_ext << EOF
|
---|
2630 |
|
---|
2631 | #line 2632 "configure"
|
---|
2632 | #include "confdefs.h"
|
---|
2633 |
|
---|
2634 | main(){return(0);}
|
---|
2635 | EOF
|
---|
2636 | if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2637 | ac_cv_prog_cc_works=yes
|
---|
2638 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2639 | if (./conftest; exit) 2>/dev/null; then
|
---|
2640 | ac_cv_prog_cc_cross=no
|
---|
2641 | else
|
---|
2642 | ac_cv_prog_cc_cross=yes
|
---|
2643 | fi
|
---|
2644 | else
|
---|
2645 | echo "configure: failed program was:" >&5
|
---|
2646 | cat conftest.$ac_ext >&5
|
---|
2647 | ac_cv_prog_cc_works=no
|
---|
2648 | fi
|
---|
2649 | rm -fr conftest*
|
---|
2650 | ac_ext=c
|
---|
2651 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2652 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2653 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2654 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2655 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2656 |
|
---|
2657 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2658 | if test $ac_cv_prog_cc_works = no; then
|
---|
2659 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2660 | fi
|
---|
2661 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2662 | echo "configure:2663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2663 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2664 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2665 |
|
---|
2666 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2667 | echo "configure:2668: checking whether we are using GNU C" >&5
|
---|
2668 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2669 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2670 | else
|
---|
2671 | cat > conftest.c <<EOF
|
---|
2672 | #ifdef __GNUC__
|
---|
2673 | yes;
|
---|
2674 | #endif
|
---|
2675 | EOF
|
---|
2676 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2677 | ac_cv_prog_gcc=yes
|
---|
2678 | else
|
---|
2679 | ac_cv_prog_gcc=no
|
---|
2680 | fi
|
---|
2681 | fi
|
---|
2682 |
|
---|
2683 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2684 |
|
---|
2685 | if test $ac_cv_prog_gcc = yes; then
|
---|
2686 | GCC=yes
|
---|
2687 | else
|
---|
2688 | GCC=
|
---|
2689 | fi
|
---|
2690 |
|
---|
2691 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2692 | ac_save_CFLAGS="$CFLAGS"
|
---|
2693 | CFLAGS=
|
---|
2694 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2695 | echo "configure:2696: checking whether ${CC-cc} accepts -g" >&5
|
---|
2696 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2697 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2698 | else
|
---|
2699 | echo 'void f(){}' > conftest.c
|
---|
2700 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2701 | ac_cv_prog_cc_g=yes
|
---|
2702 | else
|
---|
2703 | ac_cv_prog_cc_g=no
|
---|
2704 | fi
|
---|
2705 | rm -f conftest*
|
---|
2706 |
|
---|
2707 | fi
|
---|
2708 |
|
---|
2709 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2710 | if test "$ac_test_CFLAGS" = set; then
|
---|
2711 | CFLAGS="$ac_save_CFLAGS"
|
---|
2712 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2713 | if test "$GCC" = yes; then
|
---|
2714 | CFLAGS="-g -O2"
|
---|
2715 | else
|
---|
2716 | CFLAGS="-g"
|
---|
2717 | fi
|
---|
2718 | else
|
---|
2719 | if test "$GCC" = yes; then
|
---|
2720 | CFLAGS="-O2"
|
---|
2721 | else
|
---|
2722 | CFLAGS=
|
---|
2723 | fi
|
---|
2724 | fi
|
---|
2725 |
|
---|
2726 |
|
---|
2727 | ALL_LINGUAS="fr sv es da de id pt_BR ro"
|
---|
2728 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2729 | echo "configure:2730: checking how to run the C preprocessor" >&5
|
---|
2730 | # On Suns, sometimes $CPP names a directory.
|
---|
2731 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2732 | CPP=
|
---|
2733 | fi
|
---|
2734 | if test -z "$CPP"; then
|
---|
2735 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2736 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2737 | else
|
---|
2738 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2739 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2740 | CPP="${CC-cc} -E"
|
---|
2741 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2742 | # not just through cpp.
|
---|
2743 | cat > conftest.$ac_ext <<EOF
|
---|
2744 | #include <sys/types.h>
|
---|
2745 | #line 2746 "configure"
|
---|
2746 | #include "confdefs.h"
|
---|
2747 | #include <assert.h>
|
---|
2748 | Syntax Error
|
---|
2749 | EOF
|
---|
2750 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2751 | { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2752 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2753 | if test -z "$ac_err"; then
|
---|
2754 | :
|
---|
2755 | else
|
---|
2756 | echo "$ac_err" >&5
|
---|
2757 | echo "configure: failed program was:" >&5
|
---|
2758 | cat conftest.$ac_ext >&5
|
---|
2759 | rm -rf conftest*
|
---|
2760 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2761 | cat > conftest.$ac_ext <<EOF
|
---|
2762 | #include <sys/types.h>
|
---|
2763 | #line 2764 "configure"
|
---|
2764 | #include "confdefs.h"
|
---|
2765 | #include <assert.h>
|
---|
2766 | Syntax Error
|
---|
2767 | EOF
|
---|
2768 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2769 | { (eval echo configure:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2770 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2771 | if test -z "$ac_err"; then
|
---|
2772 | :
|
---|
2773 | else
|
---|
2774 | echo "$ac_err" >&5
|
---|
2775 | echo "configure: failed program was:" >&5
|
---|
2776 | cat conftest.$ac_ext >&5
|
---|
2777 | rm -rf conftest*
|
---|
2778 | CPP="${CC-cc} -nologo -E"
|
---|
2779 | cat > conftest.$ac_ext <<EOF
|
---|
2780 | #include <sys/types.h>
|
---|
2781 | #line 2782 "configure"
|
---|
2782 | #include "confdefs.h"
|
---|
2783 | #include <assert.h>
|
---|
2784 | Syntax Error
|
---|
2785 | EOF
|
---|
2786 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2787 | { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2788 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2789 | if test -z "$ac_err"; then
|
---|
2790 | :
|
---|
2791 | else
|
---|
2792 | echo "$ac_err" >&5
|
---|
2793 | echo "configure: failed program was:" >&5
|
---|
2794 | cat conftest.$ac_ext >&5
|
---|
2795 | rm -rf conftest*
|
---|
2796 | CPP=/lib/cpp
|
---|
2797 | fi
|
---|
2798 | rm -f conftest*
|
---|
2799 | fi
|
---|
2800 | rm -f conftest*
|
---|
2801 | fi
|
---|
2802 | rm -f conftest*
|
---|
2803 | ac_cv_prog_CPP="$CPP"
|
---|
2804 | fi
|
---|
2805 | CPP="$ac_cv_prog_CPP"
|
---|
2806 | else
|
---|
2807 | ac_cv_prog_CPP="$CPP"
|
---|
2808 | fi
|
---|
2809 | echo "$ac_t""$CPP" 1>&6
|
---|
2810 |
|
---|
2811 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2812 | set dummy ranlib; ac_word=$2
|
---|
2813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2814 | echo "configure:2815: checking for $ac_word" >&5
|
---|
2815 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2816 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2817 | else
|
---|
2818 | if test -n "$RANLIB"; then
|
---|
2819 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2820 | else
|
---|
2821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2822 | ac_dummy="$PATH"
|
---|
2823 | for ac_dir in $ac_dummy; do
|
---|
2824 | test -z "$ac_dir" && ac_dir=.
|
---|
2825 | if test -f $ac_dir/$ac_word -o \
|
---|
2826 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2827 | ac_cv_prog_RANLIB="ranlib"
|
---|
2828 | break
|
---|
2829 | fi
|
---|
2830 | done
|
---|
2831 | IFS="$ac_save_ifs"
|
---|
2832 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2833 | fi
|
---|
2834 | fi
|
---|
2835 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2836 | if test -n "$RANLIB"; then
|
---|
2837 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2838 | else
|
---|
2839 | echo "$ac_t""no" 1>&6
|
---|
2840 | fi
|
---|
2841 |
|
---|
2842 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2843 | echo "configure:2844: checking for ANSI C header files" >&5
|
---|
2844 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2845 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2846 | else
|
---|
2847 | cat > conftest.$ac_ext <<EOF
|
---|
2848 | #include <sys/types.h>
|
---|
2849 | #line 2850 "configure"
|
---|
2850 | #include "confdefs.h"
|
---|
2851 | #include <stdlib.h>
|
---|
2852 | #include <stdarg.h>
|
---|
2853 | #include <string.h>
|
---|
2854 | #include <float.h>
|
---|
2855 | EOF
|
---|
2856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2857 | { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2858 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2859 | if test -z "$ac_err"; then
|
---|
2860 | rm -rf conftest*
|
---|
2861 | ac_cv_header_stdc=yes
|
---|
2862 | else
|
---|
2863 | echo "$ac_err" >&5
|
---|
2864 | echo "configure: failed program was:" >&5
|
---|
2865 | cat conftest.$ac_ext >&5
|
---|
2866 | rm -rf conftest*
|
---|
2867 | ac_cv_header_stdc=no
|
---|
2868 | fi
|
---|
2869 | rm -f conftest*
|
---|
2870 |
|
---|
2871 | if test $ac_cv_header_stdc = yes; then
|
---|
2872 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2873 | cat > conftest.$ac_ext <<EOF
|
---|
2874 | #line 2875 "configure"
|
---|
2875 | #include "confdefs.h"
|
---|
2876 | #include <string.h>
|
---|
2877 | EOF
|
---|
2878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2879 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2880 | :
|
---|
2881 | else
|
---|
2882 | rm -rf conftest*
|
---|
2883 | ac_cv_header_stdc=no
|
---|
2884 | fi
|
---|
2885 | rm -f conftest*
|
---|
2886 |
|
---|
2887 | fi
|
---|
2888 |
|
---|
2889 | if test $ac_cv_header_stdc = yes; then
|
---|
2890 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2891 | cat > conftest.$ac_ext <<EOF
|
---|
2892 | #line 2893 "configure"
|
---|
2893 | #include "confdefs.h"
|
---|
2894 | #include <stdlib.h>
|
---|
2895 | EOF
|
---|
2896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2897 | egrep "free" >/dev/null 2>&1; then
|
---|
2898 | :
|
---|
2899 | else
|
---|
2900 | rm -rf conftest*
|
---|
2901 | ac_cv_header_stdc=no
|
---|
2902 | fi
|
---|
2903 | rm -f conftest*
|
---|
2904 |
|
---|
2905 | fi
|
---|
2906 |
|
---|
2907 | if test $ac_cv_header_stdc = yes; then
|
---|
2908 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2909 | if test "$cross_compiling" = yes; then
|
---|
2910 | :
|
---|
2911 | else
|
---|
2912 | cat > conftest.$ac_ext <<EOF
|
---|
2913 | #line 2914 "configure"
|
---|
2914 | #include "confdefs.h"
|
---|
2915 | #include <ctype.h>
|
---|
2916 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2917 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2918 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2919 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2920 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2921 | exit (0); }
|
---|
2922 |
|
---|
2923 | EOF
|
---|
2924 | if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2925 | then
|
---|
2926 | :
|
---|
2927 | else
|
---|
2928 | echo "configure: failed program was:" >&5
|
---|
2929 | cat conftest.$ac_ext >&5
|
---|
2930 | rm -fr conftest*
|
---|
2931 | ac_cv_header_stdc=no
|
---|
2932 | fi
|
---|
2933 | rm -fr conftest*
|
---|
2934 | fi
|
---|
2935 |
|
---|
2936 | fi
|
---|
2937 | fi
|
---|
2938 |
|
---|
2939 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2940 | if test $ac_cv_header_stdc = yes; then
|
---|
2941 | cat >> confdefs.h <<\EOF
|
---|
2942 | #define STDC_HEADERS 1
|
---|
2943 | EOF
|
---|
2944 |
|
---|
2945 | fi
|
---|
2946 |
|
---|
2947 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2948 | echo "configure:2949: checking for working const" >&5
|
---|
2949 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2950 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2951 | else
|
---|
2952 | cat > conftest.$ac_ext <<EOF
|
---|
2953 | #line 2954 "configure"
|
---|
2954 | #include "confdefs.h"
|
---|
2955 |
|
---|
2956 | int main() {
|
---|
2957 |
|
---|
2958 | /* Ultrix mips cc rejects this. */
|
---|
2959 | typedef int charset[2]; const charset x;
|
---|
2960 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2961 | char const *const *ccp;
|
---|
2962 | char **p;
|
---|
2963 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2964 | struct point {int x, y;};
|
---|
2965 | static struct point const zero = {0,0};
|
---|
2966 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2967 | It does not let you subtract one const X* pointer from another in an arm
|
---|
2968 | of an if-expression whose if-part is not a constant expression */
|
---|
2969 | const char *g = "string";
|
---|
2970 | ccp = &g + (g ? g-g : 0);
|
---|
2971 | /* HPUX 7.0 cc rejects these. */
|
---|
2972 | ++ccp;
|
---|
2973 | p = (char**) ccp;
|
---|
2974 | ccp = (char const *const *) p;
|
---|
2975 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2976 | char *t;
|
---|
2977 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2978 |
|
---|
2979 | *t++ = 0;
|
---|
2980 | }
|
---|
2981 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2982 | int x[] = {25, 17};
|
---|
2983 | const int *foo = &x[0];
|
---|
2984 | ++foo;
|
---|
2985 | }
|
---|
2986 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2987 | typedef const int *iptr;
|
---|
2988 | iptr p = 0;
|
---|
2989 | ++p;
|
---|
2990 | }
|
---|
2991 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2992 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2993 | struct s { int j; const int *ap[3]; };
|
---|
2994 | struct s *b; b->j = 5;
|
---|
2995 | }
|
---|
2996 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2997 | const int foo = 10;
|
---|
2998 | }
|
---|
2999 |
|
---|
3000 | ; return 0; }
|
---|
3001 | EOF
|
---|
3002 | if { (eval echo configure:3003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3003 | rm -rf conftest*
|
---|
3004 | ac_cv_c_const=yes
|
---|
3005 | else
|
---|
3006 | echo "configure: failed program was:" >&5
|
---|
3007 | cat conftest.$ac_ext >&5
|
---|
3008 | rm -rf conftest*
|
---|
3009 | ac_cv_c_const=no
|
---|
3010 | fi
|
---|
3011 | rm -f conftest*
|
---|
3012 | fi
|
---|
3013 |
|
---|
3014 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
3015 | if test $ac_cv_c_const = no; then
|
---|
3016 | cat >> confdefs.h <<\EOF
|
---|
3017 | #define const
|
---|
3018 | EOF
|
---|
3019 |
|
---|
3020 | fi
|
---|
3021 |
|
---|
3022 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
3023 | echo "configure:3024: checking for inline" >&5
|
---|
3024 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
3025 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3026 | else
|
---|
3027 | ac_cv_c_inline=no
|
---|
3028 | for ac_kw in inline __inline__ __inline; do
|
---|
3029 | cat > conftest.$ac_ext <<EOF
|
---|
3030 | #line 3031 "configure"
|
---|
3031 | #include "confdefs.h"
|
---|
3032 |
|
---|
3033 | int main() {
|
---|
3034 | } $ac_kw foo() {
|
---|
3035 | ; return 0; }
|
---|
3036 | EOF
|
---|
3037 | if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3038 | rm -rf conftest*
|
---|
3039 | ac_cv_c_inline=$ac_kw; break
|
---|
3040 | else
|
---|
3041 | echo "configure: failed program was:" >&5
|
---|
3042 | cat conftest.$ac_ext >&5
|
---|
3043 | fi
|
---|
3044 | rm -f conftest*
|
---|
3045 | done
|
---|
3046 |
|
---|
3047 | fi
|
---|
3048 |
|
---|
3049 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
3050 | case "$ac_cv_c_inline" in
|
---|
3051 | inline | yes) ;;
|
---|
3052 | no) cat >> confdefs.h <<\EOF
|
---|
3053 | #define inline
|
---|
3054 | EOF
|
---|
3055 | ;;
|
---|
3056 | *) cat >> confdefs.h <<EOF
|
---|
3057 | #define inline $ac_cv_c_inline
|
---|
3058 | EOF
|
---|
3059 | ;;
|
---|
3060 | esac
|
---|
3061 |
|
---|
3062 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
3063 | echo "configure:3064: checking for off_t" >&5
|
---|
3064 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
3065 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3066 | else
|
---|
3067 | cat > conftest.$ac_ext <<EOF
|
---|
3068 | #line 3069 "configure"
|
---|
3069 | #include "confdefs.h"
|
---|
3070 | #include <sys/types.h>
|
---|
3071 | #if STDC_HEADERS
|
---|
3072 | #include <stdlib.h>
|
---|
3073 | #include <stddef.h>
|
---|
3074 | #endif
|
---|
3075 | EOF
|
---|
3076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3077 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3078 | rm -rf conftest*
|
---|
3079 | ac_cv_type_off_t=yes
|
---|
3080 | else
|
---|
3081 | rm -rf conftest*
|
---|
3082 | ac_cv_type_off_t=no
|
---|
3083 | fi
|
---|
3084 | rm -f conftest*
|
---|
3085 |
|
---|
3086 | fi
|
---|
3087 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
3088 | if test $ac_cv_type_off_t = no; then
|
---|
3089 | cat >> confdefs.h <<\EOF
|
---|
3090 | #define off_t long
|
---|
3091 | EOF
|
---|
3092 |
|
---|
3093 | fi
|
---|
3094 |
|
---|
3095 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
3096 | echo "configure:3097: checking for size_t" >&5
|
---|
3097 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
3098 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3099 | else
|
---|
3100 | cat > conftest.$ac_ext <<EOF
|
---|
3101 | #line 3102 "configure"
|
---|
3102 | #include "confdefs.h"
|
---|
3103 | #include <sys/types.h>
|
---|
3104 | #if STDC_HEADERS
|
---|
3105 | #include <stdlib.h>
|
---|
3106 | #include <stddef.h>
|
---|
3107 | #endif
|
---|
3108 | EOF
|
---|
3109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3110 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
3111 | rm -rf conftest*
|
---|
3112 | ac_cv_type_size_t=yes
|
---|
3113 | else
|
---|
3114 | rm -rf conftest*
|
---|
3115 | ac_cv_type_size_t=no
|
---|
3116 | fi
|
---|
3117 | rm -f conftest*
|
---|
3118 |
|
---|
3119 | fi
|
---|
3120 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
3121 | if test $ac_cv_type_size_t = no; then
|
---|
3122 | cat >> confdefs.h <<\EOF
|
---|
3123 | #define size_t unsigned
|
---|
3124 | EOF
|
---|
3125 |
|
---|
3126 | fi
|
---|
3127 |
|
---|
3128 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
3129 | # for constant arguments. Useless!
|
---|
3130 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
3131 | echo "configure:3132: checking for working alloca.h" >&5
|
---|
3132 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
3133 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3134 | else
|
---|
3135 | cat > conftest.$ac_ext <<EOF
|
---|
3136 | #line 3137 "configure"
|
---|
3137 | #include "confdefs.h"
|
---|
3138 | #include <alloca.h>
|
---|
3139 | int main() {
|
---|
3140 | char *p = alloca(2 * sizeof(int));
|
---|
3141 | ; return 0; }
|
---|
3142 | EOF
|
---|
3143 | if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3144 | rm -rf conftest*
|
---|
3145 | ac_cv_header_alloca_h=yes
|
---|
3146 | else
|
---|
3147 | echo "configure: failed program was:" >&5
|
---|
3148 | cat conftest.$ac_ext >&5
|
---|
3149 | rm -rf conftest*
|
---|
3150 | ac_cv_header_alloca_h=no
|
---|
3151 | fi
|
---|
3152 | rm -f conftest*
|
---|
3153 | fi
|
---|
3154 |
|
---|
3155 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
3156 | if test $ac_cv_header_alloca_h = yes; then
|
---|
3157 | cat >> confdefs.h <<\EOF
|
---|
3158 | #define HAVE_ALLOCA_H 1
|
---|
3159 | EOF
|
---|
3160 |
|
---|
3161 | fi
|
---|
3162 |
|
---|
3163 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
3164 | echo "configure:3165: checking for alloca" >&5
|
---|
3165 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
3166 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3167 | else
|
---|
3168 | cat > conftest.$ac_ext <<EOF
|
---|
3169 | #line 3170 "configure"
|
---|
3170 | #include "confdefs.h"
|
---|
3171 |
|
---|
3172 | #ifdef __GNUC__
|
---|
3173 | # define alloca __builtin_alloca
|
---|
3174 | #else
|
---|
3175 | # ifdef _MSC_VER
|
---|
3176 | # include <malloc.h>
|
---|
3177 | # define alloca _alloca
|
---|
3178 | # else
|
---|
3179 | # if HAVE_ALLOCA_H
|
---|
3180 | # include <alloca.h>
|
---|
3181 | # else
|
---|
3182 | # ifdef _AIX
|
---|
3183 | #pragma alloca
|
---|
3184 | # else
|
---|
3185 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
3186 | char *alloca ();
|
---|
3187 | # endif
|
---|
3188 | # endif
|
---|
3189 | # endif
|
---|
3190 | # endif
|
---|
3191 | #endif
|
---|
3192 |
|
---|
3193 | int main() {
|
---|
3194 | char *p = (char *) alloca(1);
|
---|
3195 | ; return 0; }
|
---|
3196 | EOF
|
---|
3197 | if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3198 | rm -rf conftest*
|
---|
3199 | ac_cv_func_alloca_works=yes
|
---|
3200 | else
|
---|
3201 | echo "configure: failed program was:" >&5
|
---|
3202 | cat conftest.$ac_ext >&5
|
---|
3203 | rm -rf conftest*
|
---|
3204 | ac_cv_func_alloca_works=no
|
---|
3205 | fi
|
---|
3206 | rm -f conftest*
|
---|
3207 | fi
|
---|
3208 |
|
---|
3209 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3210 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3211 | cat >> confdefs.h <<\EOF
|
---|
3212 | #define HAVE_ALLOCA 1
|
---|
3213 | EOF
|
---|
3214 |
|
---|
3215 | fi
|
---|
3216 |
|
---|
3217 | if test $ac_cv_func_alloca_works = no; then
|
---|
3218 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3219 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3220 | # contain a buggy version. If you still want to use their alloca,
|
---|
3221 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3222 | ALLOCA=alloca.${ac_objext}
|
---|
3223 | cat >> confdefs.h <<\EOF
|
---|
3224 | #define C_ALLOCA 1
|
---|
3225 | EOF
|
---|
3226 |
|
---|
3227 |
|
---|
3228 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3229 | echo "configure:3230: checking whether alloca needs Cray hooks" >&5
|
---|
3230 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3231 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3232 | else
|
---|
3233 | cat > conftest.$ac_ext <<EOF
|
---|
3234 | #line 3235 "configure"
|
---|
3235 | #include "confdefs.h"
|
---|
3236 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3237 | webecray
|
---|
3238 | #else
|
---|
3239 | wenotbecray
|
---|
3240 | #endif
|
---|
3241 |
|
---|
3242 | EOF
|
---|
3243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3244 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3245 | rm -rf conftest*
|
---|
3246 | ac_cv_os_cray=yes
|
---|
3247 | else
|
---|
3248 | rm -rf conftest*
|
---|
3249 | ac_cv_os_cray=no
|
---|
3250 | fi
|
---|
3251 | rm -f conftest*
|
---|
3252 |
|
---|
3253 | fi
|
---|
3254 |
|
---|
3255 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3256 | if test $ac_cv_os_cray = yes; then
|
---|
3257 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3258 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3259 | echo "configure:3260: checking for $ac_func" >&5
|
---|
3260 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3261 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3262 | else
|
---|
3263 | cat > conftest.$ac_ext <<EOF
|
---|
3264 | #line 3265 "configure"
|
---|
3265 | #include "confdefs.h"
|
---|
3266 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3267 | which can conflict with char $ac_func(); below. */
|
---|
3268 | #include <assert.h>
|
---|
3269 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3270 | /* We use char because int might match the return type of a gcc2
|
---|
3271 | builtin and then its argument prototype would still apply. */
|
---|
3272 | char $ac_func();
|
---|
3273 |
|
---|
3274 | int main() {
|
---|
3275 |
|
---|
3276 | /* The GNU C library defines this for functions which it implements
|
---|
3277 | to always fail with ENOSYS. Some functions are actually named
|
---|
3278 | something starting with __ and the normal name is an alias. */
|
---|
3279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3280 | choke me
|
---|
3281 | #else
|
---|
3282 | $ac_func();
|
---|
3283 | #endif
|
---|
3284 |
|
---|
3285 | ; return 0; }
|
---|
3286 | EOF
|
---|
3287 | if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3288 | rm -rf conftest*
|
---|
3289 | eval "ac_cv_func_$ac_func=yes"
|
---|
3290 | else
|
---|
3291 | echo "configure: failed program was:" >&5
|
---|
3292 | cat conftest.$ac_ext >&5
|
---|
3293 | rm -rf conftest*
|
---|
3294 | eval "ac_cv_func_$ac_func=no"
|
---|
3295 | fi
|
---|
3296 | rm -f conftest*
|
---|
3297 | fi
|
---|
3298 |
|
---|
3299 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3300 | echo "$ac_t""yes" 1>&6
|
---|
3301 | cat >> confdefs.h <<EOF
|
---|
3302 | #define CRAY_STACKSEG_END $ac_func
|
---|
3303 | EOF
|
---|
3304 |
|
---|
3305 | break
|
---|
3306 | else
|
---|
3307 | echo "$ac_t""no" 1>&6
|
---|
3308 | fi
|
---|
3309 |
|
---|
3310 | done
|
---|
3311 | fi
|
---|
3312 |
|
---|
3313 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3314 | echo "configure:3315: checking stack direction for C alloca" >&5
|
---|
3315 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3316 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3317 | else
|
---|
3318 | if test "$cross_compiling" = yes; then
|
---|
3319 | ac_cv_c_stack_direction=0
|
---|
3320 | else
|
---|
3321 | cat > conftest.$ac_ext <<EOF
|
---|
3322 | #line 3323 "configure"
|
---|
3323 | #include "confdefs.h"
|
---|
3324 | find_stack_direction ()
|
---|
3325 | {
|
---|
3326 | static char *addr = 0;
|
---|
3327 | auto char dummy;
|
---|
3328 | if (addr == 0)
|
---|
3329 | {
|
---|
3330 | addr = &dummy;
|
---|
3331 | return find_stack_direction ();
|
---|
3332 | }
|
---|
3333 | else
|
---|
3334 | return (&dummy > addr) ? 1 : -1;
|
---|
3335 | }
|
---|
3336 | main ()
|
---|
3337 | {
|
---|
3338 | exit (find_stack_direction() < 0);
|
---|
3339 | }
|
---|
3340 | EOF
|
---|
3341 | if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3342 | then
|
---|
3343 | ac_cv_c_stack_direction=1
|
---|
3344 | else
|
---|
3345 | echo "configure: failed program was:" >&5
|
---|
3346 | cat conftest.$ac_ext >&5
|
---|
3347 | rm -fr conftest*
|
---|
3348 | ac_cv_c_stack_direction=-1
|
---|
3349 | fi
|
---|
3350 | rm -fr conftest*
|
---|
3351 | fi
|
---|
3352 |
|
---|
3353 | fi
|
---|
3354 |
|
---|
3355 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3356 | cat >> confdefs.h <<EOF
|
---|
3357 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3358 | EOF
|
---|
3359 |
|
---|
3360 | fi
|
---|
3361 |
|
---|
3362 | for ac_hdr in unistd.h
|
---|
3363 | do
|
---|
3364 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3365 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3366 | echo "configure:3367: checking for $ac_hdr" >&5
|
---|
3367 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3368 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3369 | else
|
---|
3370 | cat > conftest.$ac_ext <<EOF
|
---|
3371 | #include <sys/types.h>
|
---|
3372 | #line 3373 "configure"
|
---|
3373 | #include "confdefs.h"
|
---|
3374 | #include <$ac_hdr>
|
---|
3375 | EOF
|
---|
3376 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3377 | { (eval echo configure:3378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3378 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3379 | if test -z "$ac_err"; then
|
---|
3380 | rm -rf conftest*
|
---|
3381 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3382 | else
|
---|
3383 | echo "$ac_err" >&5
|
---|
3384 | echo "configure: failed program was:" >&5
|
---|
3385 | cat conftest.$ac_ext >&5
|
---|
3386 | rm -rf conftest*
|
---|
3387 | eval "ac_cv_header_$ac_safe=no"
|
---|
3388 | fi
|
---|
3389 | rm -f conftest*
|
---|
3390 | fi
|
---|
3391 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3392 | echo "$ac_t""yes" 1>&6
|
---|
3393 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3394 | cat >> confdefs.h <<EOF
|
---|
3395 | #define $ac_tr_hdr 1
|
---|
3396 | EOF
|
---|
3397 |
|
---|
3398 | else
|
---|
3399 | echo "$ac_t""no" 1>&6
|
---|
3400 | fi
|
---|
3401 | done
|
---|
3402 |
|
---|
3403 | for ac_func in getpagesize
|
---|
3404 | do
|
---|
3405 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3406 | echo "configure:3407: checking for $ac_func" >&5
|
---|
3407 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3408 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3409 | else
|
---|
3410 | cat > conftest.$ac_ext <<EOF
|
---|
3411 | #line 3412 "configure"
|
---|
3412 | #include "confdefs.h"
|
---|
3413 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3414 | which can conflict with char $ac_func(); below. */
|
---|
3415 | #include <assert.h>
|
---|
3416 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3417 | /* We use char because int might match the return type of a gcc2
|
---|
3418 | builtin and then its argument prototype would still apply. */
|
---|
3419 | char $ac_func();
|
---|
3420 |
|
---|
3421 | int main() {
|
---|
3422 |
|
---|
3423 | /* The GNU C library defines this for functions which it implements
|
---|
3424 | to always fail with ENOSYS. Some functions are actually named
|
---|
3425 | something starting with __ and the normal name is an alias. */
|
---|
3426 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3427 | choke me
|
---|
3428 | #else
|
---|
3429 | $ac_func();
|
---|
3430 | #endif
|
---|
3431 |
|
---|
3432 | ; return 0; }
|
---|
3433 | EOF
|
---|
3434 | if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3435 | rm -rf conftest*
|
---|
3436 | eval "ac_cv_func_$ac_func=yes"
|
---|
3437 | else
|
---|
3438 | echo "configure: failed program was:" >&5
|
---|
3439 | cat conftest.$ac_ext >&5
|
---|
3440 | rm -rf conftest*
|
---|
3441 | eval "ac_cv_func_$ac_func=no"
|
---|
3442 | fi
|
---|
3443 | rm -f conftest*
|
---|
3444 | fi
|
---|
3445 |
|
---|
3446 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3447 | echo "$ac_t""yes" 1>&6
|
---|
3448 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3449 | cat >> confdefs.h <<EOF
|
---|
3450 | #define $ac_tr_func 1
|
---|
3451 | EOF
|
---|
3452 |
|
---|
3453 | else
|
---|
3454 | echo "$ac_t""no" 1>&6
|
---|
3455 | fi
|
---|
3456 | done
|
---|
3457 |
|
---|
3458 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3459 | echo "configure:3460: checking for working mmap" >&5
|
---|
3460 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3461 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3462 | else
|
---|
3463 | if test "$cross_compiling" = yes; then
|
---|
3464 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3465 | else
|
---|
3466 | cat > conftest.$ac_ext <<EOF
|
---|
3467 | #line 3468 "configure"
|
---|
3468 | #include "confdefs.h"
|
---|
3469 |
|
---|
3470 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3471 | Here is a matrix of mmap possibilities:
|
---|
3472 | mmap private not fixed
|
---|
3473 | mmap private fixed at somewhere currently unmapped
|
---|
3474 | mmap private fixed at somewhere already mapped
|
---|
3475 | mmap shared not fixed
|
---|
3476 | mmap shared fixed at somewhere currently unmapped
|
---|
3477 | mmap shared fixed at somewhere already mapped
|
---|
3478 | For private mappings, we should verify that changes cannot be read()
|
---|
3479 | back from the file, nor mmap's back from the file at a different
|
---|
3480 | address. (There have been systems where private was not correctly
|
---|
3481 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3482 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3483 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3484 | For shared mappings, we should conversely verify that changes get
|
---|
3485 | propogated back to all the places they're supposed to be.
|
---|
3486 |
|
---|
3487 | Grep wants private fixed already mapped.
|
---|
3488 | The main things grep needs to know about mmap are:
|
---|
3489 | * does it exist and is it safe to write into the mmap'd area
|
---|
3490 | * how to use it (BSD variants) */
|
---|
3491 | #include <sys/types.h>
|
---|
3492 | #include <fcntl.h>
|
---|
3493 | #include <sys/mman.h>
|
---|
3494 |
|
---|
3495 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3496 | #ifndef HAVE_GETPAGESIZE
|
---|
3497 | # ifdef HAVE_UNISTD_H
|
---|
3498 | # include <unistd.h>
|
---|
3499 | # endif
|
---|
3500 |
|
---|
3501 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3502 | # ifndef HAVE_SYS_PARAM_H
|
---|
3503 | # define HAVE_SYS_PARAM_H 1
|
---|
3504 | # endif
|
---|
3505 |
|
---|
3506 | # ifdef _SC_PAGESIZE
|
---|
3507 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3508 | # else /* no _SC_PAGESIZE */
|
---|
3509 | # ifdef HAVE_SYS_PARAM_H
|
---|
3510 | # include <sys/param.h>
|
---|
3511 | # ifdef EXEC_PAGESIZE
|
---|
3512 | # define getpagesize() EXEC_PAGESIZE
|
---|
3513 | # else /* no EXEC_PAGESIZE */
|
---|
3514 | # ifdef NBPG
|
---|
3515 | # define getpagesize() NBPG * CLSIZE
|
---|
3516 | # ifndef CLSIZE
|
---|
3517 | # define CLSIZE 1
|
---|
3518 | # endif /* no CLSIZE */
|
---|
3519 | # else /* no NBPG */
|
---|
3520 | # ifdef NBPC
|
---|
3521 | # define getpagesize() NBPC
|
---|
3522 | # else /* no NBPC */
|
---|
3523 | # ifdef PAGESIZE
|
---|
3524 | # define getpagesize() PAGESIZE
|
---|
3525 | # endif /* PAGESIZE */
|
---|
3526 | # endif /* no NBPC */
|
---|
3527 | # endif /* no NBPG */
|
---|
3528 | # endif /* no EXEC_PAGESIZE */
|
---|
3529 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3530 | # define getpagesize() 8192 /* punt totally */
|
---|
3531 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3532 | # endif /* no _SC_PAGESIZE */
|
---|
3533 |
|
---|
3534 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3535 |
|
---|
3536 | #ifdef __cplusplus
|
---|
3537 | extern "C" { void *malloc(unsigned); }
|
---|
3538 | #else
|
---|
3539 | char *malloc();
|
---|
3540 | #endif
|
---|
3541 |
|
---|
3542 | int
|
---|
3543 | main()
|
---|
3544 | {
|
---|
3545 | char *data, *data2, *data3;
|
---|
3546 | int i, pagesize;
|
---|
3547 | int fd;
|
---|
3548 |
|
---|
3549 | pagesize = getpagesize();
|
---|
3550 |
|
---|
3551 | /*
|
---|
3552 | * First, make a file with some known garbage in it.
|
---|
3553 | */
|
---|
3554 | data = malloc(pagesize);
|
---|
3555 | if (!data)
|
---|
3556 | exit(1);
|
---|
3557 | for (i = 0; i < pagesize; ++i)
|
---|
3558 | *(data + i) = rand();
|
---|
3559 | umask(0);
|
---|
3560 | fd = creat("conftestmmap", 0600);
|
---|
3561 | if (fd < 0)
|
---|
3562 | exit(1);
|
---|
3563 | if (write(fd, data, pagesize) != pagesize)
|
---|
3564 | exit(1);
|
---|
3565 | close(fd);
|
---|
3566 |
|
---|
3567 | /*
|
---|
3568 | * Next, try to mmap the file at a fixed address which
|
---|
3569 | * already has something else allocated at it. If we can,
|
---|
3570 | * also make sure that we see the same garbage.
|
---|
3571 | */
|
---|
3572 | fd = open("conftestmmap", O_RDWR);
|
---|
3573 | if (fd < 0)
|
---|
3574 | exit(1);
|
---|
3575 | data2 = malloc(2 * pagesize);
|
---|
3576 | if (!data2)
|
---|
3577 | exit(1);
|
---|
3578 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3579 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3580 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3581 | exit(1);
|
---|
3582 | for (i = 0; i < pagesize; ++i)
|
---|
3583 | if (*(data + i) != *(data2 + i))
|
---|
3584 | exit(1);
|
---|
3585 |
|
---|
3586 | /*
|
---|
3587 | * Finally, make sure that changes to the mapped area
|
---|
3588 | * do not percolate back to the file as seen by read().
|
---|
3589 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3590 | */
|
---|
3591 | for (i = 0; i < pagesize; ++i)
|
---|
3592 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3593 | data3 = malloc(pagesize);
|
---|
3594 | if (!data3)
|
---|
3595 | exit(1);
|
---|
3596 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3597 | exit(1);
|
---|
3598 | for (i = 0; i < pagesize; ++i)
|
---|
3599 | if (*(data + i) != *(data3 + i))
|
---|
3600 | exit(1);
|
---|
3601 | close(fd);
|
---|
3602 | unlink("conftestmmap");
|
---|
3603 | exit(0);
|
---|
3604 | }
|
---|
3605 |
|
---|
3606 | EOF
|
---|
3607 | if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3608 | then
|
---|
3609 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3610 | else
|
---|
3611 | echo "configure: failed program was:" >&5
|
---|
3612 | cat conftest.$ac_ext >&5
|
---|
3613 | rm -fr conftest*
|
---|
3614 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3615 | fi
|
---|
3616 | rm -fr conftest*
|
---|
3617 | fi
|
---|
3618 |
|
---|
3619 | fi
|
---|
3620 |
|
---|
3621 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3622 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3623 | cat >> confdefs.h <<\EOF
|
---|
3624 | #define HAVE_MMAP 1
|
---|
3625 | EOF
|
---|
3626 |
|
---|
3627 | fi
|
---|
3628 |
|
---|
3629 |
|
---|
3630 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3631 | unistd.h values.h sys/param.h
|
---|
3632 | do
|
---|
3633 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3634 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3635 | echo "configure:3636: checking for $ac_hdr" >&5
|
---|
3636 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3637 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3638 | else
|
---|
3639 | cat > conftest.$ac_ext <<EOF
|
---|
3640 | #include <sys/types.h>
|
---|
3641 | #line 3642 "configure"
|
---|
3642 | #include "confdefs.h"
|
---|
3643 | #include <$ac_hdr>
|
---|
3644 | EOF
|
---|
3645 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3646 | { (eval echo configure:3647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3647 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3648 | if test -z "$ac_err"; then
|
---|
3649 | rm -rf conftest*
|
---|
3650 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3651 | else
|
---|
3652 | echo "$ac_err" >&5
|
---|
3653 | echo "configure: failed program was:" >&5
|
---|
3654 | cat conftest.$ac_ext >&5
|
---|
3655 | rm -rf conftest*
|
---|
3656 | eval "ac_cv_header_$ac_safe=no"
|
---|
3657 | fi
|
---|
3658 | rm -f conftest*
|
---|
3659 | fi
|
---|
3660 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3661 | echo "$ac_t""yes" 1>&6
|
---|
3662 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3663 | cat >> confdefs.h <<EOF
|
---|
3664 | #define $ac_tr_hdr 1
|
---|
3665 | EOF
|
---|
3666 |
|
---|
3667 | else
|
---|
3668 | echo "$ac_t""no" 1>&6
|
---|
3669 | fi
|
---|
3670 | done
|
---|
3671 |
|
---|
3672 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3673 | __argz_count __argz_stringify __argz_next
|
---|
3674 | do
|
---|
3675 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3676 | echo "configure:3677: checking for $ac_func" >&5
|
---|
3677 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3678 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3679 | else
|
---|
3680 | cat > conftest.$ac_ext <<EOF
|
---|
3681 | #line 3682 "configure"
|
---|
3682 | #include "confdefs.h"
|
---|
3683 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3684 | which can conflict with char $ac_func(); below. */
|
---|
3685 | #include <assert.h>
|
---|
3686 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3687 | /* We use char because int might match the return type of a gcc2
|
---|
3688 | builtin and then its argument prototype would still apply. */
|
---|
3689 | char $ac_func();
|
---|
3690 |
|
---|
3691 | int main() {
|
---|
3692 |
|
---|
3693 | /* The GNU C library defines this for functions which it implements
|
---|
3694 | to always fail with ENOSYS. Some functions are actually named
|
---|
3695 | something starting with __ and the normal name is an alias. */
|
---|
3696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3697 | choke me
|
---|
3698 | #else
|
---|
3699 | $ac_func();
|
---|
3700 | #endif
|
---|
3701 |
|
---|
3702 | ; return 0; }
|
---|
3703 | EOF
|
---|
3704 | if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3705 | rm -rf conftest*
|
---|
3706 | eval "ac_cv_func_$ac_func=yes"
|
---|
3707 | else
|
---|
3708 | echo "configure: failed program was:" >&5
|
---|
3709 | cat conftest.$ac_ext >&5
|
---|
3710 | rm -rf conftest*
|
---|
3711 | eval "ac_cv_func_$ac_func=no"
|
---|
3712 | fi
|
---|
3713 | rm -f conftest*
|
---|
3714 | fi
|
---|
3715 |
|
---|
3716 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3717 | echo "$ac_t""yes" 1>&6
|
---|
3718 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3719 | cat >> confdefs.h <<EOF
|
---|
3720 | #define $ac_tr_func 1
|
---|
3721 | EOF
|
---|
3722 |
|
---|
3723 | else
|
---|
3724 | echo "$ac_t""no" 1>&6
|
---|
3725 | fi
|
---|
3726 | done
|
---|
3727 |
|
---|
3728 |
|
---|
3729 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3730 | for ac_func in stpcpy
|
---|
3731 | do
|
---|
3732 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3733 | echo "configure:3734: checking for $ac_func" >&5
|
---|
3734 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3735 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3736 | else
|
---|
3737 | cat > conftest.$ac_ext <<EOF
|
---|
3738 | #line 3739 "configure"
|
---|
3739 | #include "confdefs.h"
|
---|
3740 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3741 | which can conflict with char $ac_func(); below. */
|
---|
3742 | #include <assert.h>
|
---|
3743 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3744 | /* We use char because int might match the return type of a gcc2
|
---|
3745 | builtin and then its argument prototype would still apply. */
|
---|
3746 | char $ac_func();
|
---|
3747 |
|
---|
3748 | int main() {
|
---|
3749 |
|
---|
3750 | /* The GNU C library defines this for functions which it implements
|
---|
3751 | to always fail with ENOSYS. Some functions are actually named
|
---|
3752 | something starting with __ and the normal name is an alias. */
|
---|
3753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3754 | choke me
|
---|
3755 | #else
|
---|
3756 | $ac_func();
|
---|
3757 | #endif
|
---|
3758 |
|
---|
3759 | ; return 0; }
|
---|
3760 | EOF
|
---|
3761 | if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3762 | rm -rf conftest*
|
---|
3763 | eval "ac_cv_func_$ac_func=yes"
|
---|
3764 | else
|
---|
3765 | echo "configure: failed program was:" >&5
|
---|
3766 | cat conftest.$ac_ext >&5
|
---|
3767 | rm -rf conftest*
|
---|
3768 | eval "ac_cv_func_$ac_func=no"
|
---|
3769 | fi
|
---|
3770 | rm -f conftest*
|
---|
3771 | fi
|
---|
3772 |
|
---|
3773 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3774 | echo "$ac_t""yes" 1>&6
|
---|
3775 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3776 | cat >> confdefs.h <<EOF
|
---|
3777 | #define $ac_tr_func 1
|
---|
3778 | EOF
|
---|
3779 |
|
---|
3780 | else
|
---|
3781 | echo "$ac_t""no" 1>&6
|
---|
3782 | fi
|
---|
3783 | done
|
---|
3784 |
|
---|
3785 | fi
|
---|
3786 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3787 | cat >> confdefs.h <<\EOF
|
---|
3788 | #define HAVE_STPCPY 1
|
---|
3789 | EOF
|
---|
3790 |
|
---|
3791 | fi
|
---|
3792 |
|
---|
3793 | if test $ac_cv_header_locale_h = yes; then
|
---|
3794 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3795 | echo "configure:3796: checking for LC_MESSAGES" >&5
|
---|
3796 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3797 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3798 | else
|
---|
3799 | cat > conftest.$ac_ext <<EOF
|
---|
3800 | #line 3801 "configure"
|
---|
3801 | #include "confdefs.h"
|
---|
3802 | #include <locale.h>
|
---|
3803 | int main() {
|
---|
3804 | return LC_MESSAGES
|
---|
3805 | ; return 0; }
|
---|
3806 | EOF
|
---|
3807 | if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3808 | rm -rf conftest*
|
---|
3809 | am_cv_val_LC_MESSAGES=yes
|
---|
3810 | else
|
---|
3811 | echo "configure: failed program was:" >&5
|
---|
3812 | cat conftest.$ac_ext >&5
|
---|
3813 | rm -rf conftest*
|
---|
3814 | am_cv_val_LC_MESSAGES=no
|
---|
3815 | fi
|
---|
3816 | rm -f conftest*
|
---|
3817 | fi
|
---|
3818 |
|
---|
3819 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3820 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3821 | cat >> confdefs.h <<\EOF
|
---|
3822 | #define HAVE_LC_MESSAGES 1
|
---|
3823 | EOF
|
---|
3824 |
|
---|
3825 | fi
|
---|
3826 | fi
|
---|
3827 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3828 | echo "configure:3829: checking whether NLS is requested" >&5
|
---|
3829 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3830 | if test "${enable_nls+set}" = set; then
|
---|
3831 | enableval="$enable_nls"
|
---|
3832 | USE_NLS=$enableval
|
---|
3833 | else
|
---|
3834 | USE_NLS=yes
|
---|
3835 | fi
|
---|
3836 |
|
---|
3837 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3838 |
|
---|
3839 |
|
---|
3840 | USE_INCLUDED_LIBINTL=no
|
---|
3841 |
|
---|
3842 | if test "$USE_NLS" = "yes"; then
|
---|
3843 | cat >> confdefs.h <<\EOF
|
---|
3844 | #define ENABLE_NLS 1
|
---|
3845 | EOF
|
---|
3846 |
|
---|
3847 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3848 | echo "configure:3849: checking whether included gettext is requested" >&5
|
---|
3849 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3850 | if test "${with_included_gettext+set}" = set; then
|
---|
3851 | withval="$with_included_gettext"
|
---|
3852 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3853 | else
|
---|
3854 | nls_cv_force_use_gnu_gettext=no
|
---|
3855 | fi
|
---|
3856 |
|
---|
3857 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3858 |
|
---|
3859 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3860 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
|
---|
3861 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3862 | nls_cv_header_intl=
|
---|
3863 | nls_cv_header_libgt=
|
---|
3864 | CATOBJEXT=NONE
|
---|
3865 |
|
---|
3866 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3867 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3868 | echo "configure:3869: checking for libintl.h" >&5
|
---|
3869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3870 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3871 | else
|
---|
3872 | cat > conftest.$ac_ext <<EOF
|
---|
3873 | #include <sys/types.h>
|
---|
3874 | #line 3875 "configure"
|
---|
3875 | #include "confdefs.h"
|
---|
3876 | #include <libintl.h>
|
---|
3877 | EOF
|
---|
3878 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3879 | { (eval echo configure:3880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3880 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3881 | if test -z "$ac_err"; then
|
---|
3882 | rm -rf conftest*
|
---|
3883 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3884 | else
|
---|
3885 | echo "$ac_err" >&5
|
---|
3886 | echo "configure: failed program was:" >&5
|
---|
3887 | cat conftest.$ac_ext >&5
|
---|
3888 | rm -rf conftest*
|
---|
3889 | eval "ac_cv_header_$ac_safe=no"
|
---|
3890 | fi
|
---|
3891 | rm -f conftest*
|
---|
3892 | fi
|
---|
3893 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3894 | echo "$ac_t""yes" 1>&6
|
---|
3895 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3896 | echo "configure:3897: checking for gettext in libc" >&5
|
---|
3897 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3898 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3899 | else
|
---|
3900 | cat > conftest.$ac_ext <<EOF
|
---|
3901 | #line 3902 "configure"
|
---|
3902 | #include "confdefs.h"
|
---|
3903 | #include <libintl.h>
|
---|
3904 | int main() {
|
---|
3905 | return (int) gettext ("")
|
---|
3906 | ; return 0; }
|
---|
3907 | EOF
|
---|
3908 | if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3909 | rm -rf conftest*
|
---|
3910 | gt_cv_func_gettext_libc=yes
|
---|
3911 | else
|
---|
3912 | echo "configure: failed program was:" >&5
|
---|
3913 | cat conftest.$ac_ext >&5
|
---|
3914 | rm -rf conftest*
|
---|
3915 | gt_cv_func_gettext_libc=no
|
---|
3916 | fi
|
---|
3917 | rm -f conftest*
|
---|
3918 | fi
|
---|
3919 |
|
---|
3920 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3921 |
|
---|
3922 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3923 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3924 | echo "configure:3925: checking for bindtextdomain in -lintl" >&5
|
---|
3925 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3926 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3927 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3928 | else
|
---|
3929 | ac_save_LIBS="$LIBS"
|
---|
3930 | LIBS="-lintl $LIBS"
|
---|
3931 | cat > conftest.$ac_ext <<EOF
|
---|
3932 | #line 3933 "configure"
|
---|
3933 | #include "confdefs.h"
|
---|
3934 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3935 | /* We use char because int might match the return type of a gcc2
|
---|
3936 | builtin and then its argument prototype would still apply. */
|
---|
3937 | char bindtextdomain();
|
---|
3938 |
|
---|
3939 | int main() {
|
---|
3940 | bindtextdomain()
|
---|
3941 | ; return 0; }
|
---|
3942 | EOF
|
---|
3943 | if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3944 | rm -rf conftest*
|
---|
3945 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3946 | else
|
---|
3947 | echo "configure: failed program was:" >&5
|
---|
3948 | cat conftest.$ac_ext >&5
|
---|
3949 | rm -rf conftest*
|
---|
3950 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3951 | fi
|
---|
3952 | rm -f conftest*
|
---|
3953 | LIBS="$ac_save_LIBS"
|
---|
3954 |
|
---|
3955 | fi
|
---|
3956 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3957 | echo "$ac_t""yes" 1>&6
|
---|
3958 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3959 | echo "configure:3960: checking for gettext in libintl" >&5
|
---|
3960 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3961 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3962 | else
|
---|
3963 | ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
|
---|
3964 | cat > conftest.$ac_ext <<EOF
|
---|
3965 | #line 3966 "configure"
|
---|
3966 | #include "confdefs.h"
|
---|
3967 | #include <libintl.h>
|
---|
3968 | int main() {
|
---|
3969 | return (int) gettext ("")
|
---|
3970 | ; return 0; }
|
---|
3971 | EOF
|
---|
3972 | if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3973 | rm -rf conftest*
|
---|
3974 | gt_cv_func_gettext_libintl=yes
|
---|
3975 | else
|
---|
3976 | echo "configure: failed program was:" >&5
|
---|
3977 | cat conftest.$ac_ext >&5
|
---|
3978 | rm -rf conftest*
|
---|
3979 | gt_cv_func_gettext_libintl=no
|
---|
3980 | fi
|
---|
3981 | rm -f conftest*
|
---|
3982 | LIBS="$ac_save_LIBS";
|
---|
3983 | fi
|
---|
3984 |
|
---|
3985 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
3986 | else
|
---|
3987 | echo "$ac_t""no" 1>&6
|
---|
3988 | fi
|
---|
3989 |
|
---|
3990 | fi
|
---|
3991 |
|
---|
3992 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
3993 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
3994 | cat >> confdefs.h <<\EOF
|
---|
3995 | #define HAVE_GETTEXT 1
|
---|
3996 | EOF
|
---|
3997 |
|
---|
3998 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3999 | set dummy msgfmt; ac_word=$2
|
---|
4000 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4001 | echo "configure:4002: checking for $ac_word" >&5
|
---|
4002 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4003 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4004 | else
|
---|
4005 | case "$MSGFMT" in
|
---|
4006 | [/\\]*|[a-zA-Z]:*)
|
---|
4007 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4008 | ;;
|
---|
4009 | *)
|
---|
4010 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4011 | for ac_dir in $PATH; do
|
---|
4012 | test -z "$ac_dir" && ac_dir=.
|
---|
4013 | if test -f $ac_dir/$ac_word; then
|
---|
4014 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4015 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4016 | break
|
---|
4017 | fi
|
---|
4018 | fi
|
---|
4019 | ac_word_saved="$ac_word"
|
---|
4020 | ac_word=$ac_word$ac_cv_exeext
|
---|
4021 | if test -f $ac_dir/$ac_word; then
|
---|
4022 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4023 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4024 | break
|
---|
4025 | fi
|
---|
4026 | fi
|
---|
4027 | ac_word="$ac_word_saved"
|
---|
4028 | done
|
---|
4029 | IFS="$ac_save_ifs"
|
---|
4030 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
4031 | ;;
|
---|
4032 | esac
|
---|
4033 | fi
|
---|
4034 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4035 | if test -n "$MSGFMT"; then
|
---|
4036 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4037 | else
|
---|
4038 | echo "$ac_t""no" 1>&6
|
---|
4039 | fi
|
---|
4040 | if test "$MSGFMT" != "no"; then
|
---|
4041 | for ac_func in dcgettext
|
---|
4042 | do
|
---|
4043 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
4044 | echo "configure:4045: checking for $ac_func" >&5
|
---|
4045 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
4046 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4047 | else
|
---|
4048 | cat > conftest.$ac_ext <<EOF
|
---|
4049 | #line 4050 "configure"
|
---|
4050 | #include "confdefs.h"
|
---|
4051 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4052 | which can conflict with char $ac_func(); below. */
|
---|
4053 | #include <assert.h>
|
---|
4054 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4055 | /* We use char because int might match the return type of a gcc2
|
---|
4056 | builtin and then its argument prototype would still apply. */
|
---|
4057 | char $ac_func();
|
---|
4058 |
|
---|
4059 | int main() {
|
---|
4060 |
|
---|
4061 | /* The GNU C library defines this for functions which it implements
|
---|
4062 | to always fail with ENOSYS. Some functions are actually named
|
---|
4063 | something starting with __ and the normal name is an alias. */
|
---|
4064 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
4065 | choke me
|
---|
4066 | #else
|
---|
4067 | $ac_func();
|
---|
4068 | #endif
|
---|
4069 |
|
---|
4070 | ; return 0; }
|
---|
4071 | EOF
|
---|
4072 | if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4073 | rm -rf conftest*
|
---|
4074 | eval "ac_cv_func_$ac_func=yes"
|
---|
4075 | else
|
---|
4076 | echo "configure: failed program was:" >&5
|
---|
4077 | cat conftest.$ac_ext >&5
|
---|
4078 | rm -rf conftest*
|
---|
4079 | eval "ac_cv_func_$ac_func=no"
|
---|
4080 | fi
|
---|
4081 | rm -f conftest*
|
---|
4082 | fi
|
---|
4083 |
|
---|
4084 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
4085 | echo "$ac_t""yes" 1>&6
|
---|
4086 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
4087 | cat >> confdefs.h <<EOF
|
---|
4088 | #define $ac_tr_func 1
|
---|
4089 | EOF
|
---|
4090 |
|
---|
4091 | else
|
---|
4092 | echo "$ac_t""no" 1>&6
|
---|
4093 | fi
|
---|
4094 | done
|
---|
4095 |
|
---|
4096 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4097 | set dummy gmsgfmt; ac_word=$2
|
---|
4098 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4099 | echo "configure:4100: checking for $ac_word" >&5
|
---|
4100 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4101 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4102 | else
|
---|
4103 | case "$GMSGFMT" in
|
---|
4104 | [/\\]* | [a-zA-Z]:*)
|
---|
4105 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4106 | ;;
|
---|
4107 | ?:/*)
|
---|
4108 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4109 | ;;
|
---|
4110 | *)
|
---|
4111 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4112 | ac_dummy="$PATH"
|
---|
4113 | for ac_dir in $ac_dummy; do
|
---|
4114 | test -z "$ac_dir" && ac_dir=.
|
---|
4115 | if test -f $ac_dir/$ac_word; then
|
---|
4116 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4117 | break
|
---|
4118 | fi
|
---|
4119 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4120 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4121 | break
|
---|
4122 | fi
|
---|
4123 | done
|
---|
4124 | IFS="$ac_save_ifs"
|
---|
4125 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4126 | ;;
|
---|
4127 | esac
|
---|
4128 | fi
|
---|
4129 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4130 | if test -n "$GMSGFMT"; then
|
---|
4131 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4132 | else
|
---|
4133 | echo "$ac_t""no" 1>&6
|
---|
4134 | fi
|
---|
4135 |
|
---|
4136 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4137 | set dummy xgettext; 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_XGETTEXT'+set}'`\" = set"; then
|
---|
4141 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4142 | else
|
---|
4143 | case "$XGETTEXT" in
|
---|
4144 | [/\\]*|[a-zA-Z]:*)
|
---|
4145 | ac_cv_path_XGETTEXT="$XGETTEXT" # 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 '(HELP)'`"; then
|
---|
4153 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4154 | break
|
---|
4155 | fi
|
---|
4156 | fi
|
---|
4157 | ac_word_saved="$ac_word"
|
---|
4158 | ac_word=$ac_word$ac_cv_exeext
|
---|
4159 | if test -f $ac_dir/$ac_word; then
|
---|
4160 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4161 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4162 | break
|
---|
4163 | fi
|
---|
4164 | fi
|
---|
4165 | ac_word="$ac_word_saved"
|
---|
4166 | done
|
---|
4167 | IFS="$ac_save_ifs"
|
---|
4168 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4169 | ;;
|
---|
4170 | esac
|
---|
4171 | fi
|
---|
4172 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4173 | if test -n "$XGETTEXT"; then
|
---|
4174 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4175 | else
|
---|
4176 | echo "$ac_t""no" 1>&6
|
---|
4177 | fi
|
---|
4178 |
|
---|
4179 |
|
---|
4180 | cat > conftest.$ac_ext <<EOF
|
---|
4181 | #line 4182 "configure"
|
---|
4182 | #include "confdefs.h"
|
---|
4183 |
|
---|
4184 | int main() {
|
---|
4185 | extern int _nl_msg_cat_cntr;
|
---|
4186 | return _nl_msg_cat_cntr
|
---|
4187 | ; return 0; }
|
---|
4188 | EOF
|
---|
4189 | if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4190 | rm -rf conftest*
|
---|
4191 | CATOBJEXT=.gmo
|
---|
4192 | DATADIRNAME=share
|
---|
4193 | else
|
---|
4194 | echo "configure: failed program was:" >&5
|
---|
4195 | cat conftest.$ac_ext >&5
|
---|
4196 | rm -rf conftest*
|
---|
4197 | CATOBJEXT=.mo
|
---|
4198 | DATADIRNAME=lib
|
---|
4199 | fi
|
---|
4200 | rm -f conftest*
|
---|
4201 | INSTOBJEXT=.mo
|
---|
4202 | fi
|
---|
4203 | fi
|
---|
4204 |
|
---|
4205 | else
|
---|
4206 | echo "$ac_t""no" 1>&6
|
---|
4207 | fi
|
---|
4208 |
|
---|
4209 |
|
---|
4210 |
|
---|
4211 | if test "$CATOBJEXT" = "NONE"; then
|
---|
4212 | nls_cv_use_gnu_gettext=yes
|
---|
4213 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
|
---|
4214 | fi
|
---|
4215 | fi
|
---|
4216 |
|
---|
4217 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
4218 | INTLOBJS="\$(GETTOBJS)"
|
---|
4219 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
4220 | set dummy msgfmt; ac_word=$2
|
---|
4221 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4222 | echo "configure:4223: checking for $ac_word" >&5
|
---|
4223 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4224 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4225 | else
|
---|
4226 | case "$MSGFMT" in
|
---|
4227 | [/\\]*|[a-zA-Z]:*)
|
---|
4228 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4229 | ;;
|
---|
4230 | *)
|
---|
4231 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4232 | for ac_dir in $PATH; do
|
---|
4233 | test -z "$ac_dir" && ac_dir=.
|
---|
4234 | if test -f $ac_dir/$ac_word; then
|
---|
4235 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4236 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4237 | break
|
---|
4238 | fi
|
---|
4239 | fi
|
---|
4240 | ac_word_saved="$ac_word"
|
---|
4241 | ac_word=$ac_word$ac_cv_exeext
|
---|
4242 | if test -f $ac_dir/$ac_word; then
|
---|
4243 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4244 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4245 | break
|
---|
4246 | fi
|
---|
4247 | fi
|
---|
4248 | ac_word="$ac_word_saved"
|
---|
4249 | done
|
---|
4250 | IFS="$ac_save_ifs"
|
---|
4251 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4252 | ;;
|
---|
4253 | esac
|
---|
4254 | fi
|
---|
4255 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4256 | if test -n "$MSGFMT"; then
|
---|
4257 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4258 | else
|
---|
4259 | echo "$ac_t""no" 1>&6
|
---|
4260 | fi
|
---|
4261 |
|
---|
4262 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4263 | set dummy gmsgfmt; ac_word=$2
|
---|
4264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4265 | echo "configure:4266: checking for $ac_word" >&5
|
---|
4266 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4267 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4268 | else
|
---|
4269 | case "$GMSGFMT" in
|
---|
4270 | [/\\]* | [a-zA-Z]:*)
|
---|
4271 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4272 | ;;
|
---|
4273 | ?:/*)
|
---|
4274 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4275 | ;;
|
---|
4276 | *)
|
---|
4277 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4278 | ac_dummy="$PATH"
|
---|
4279 | for ac_dir in $ac_dummy; do
|
---|
4280 | test -z "$ac_dir" && ac_dir=.
|
---|
4281 | if test -f $ac_dir/$ac_word; then
|
---|
4282 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4283 | break
|
---|
4284 | fi
|
---|
4285 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4286 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4287 | break
|
---|
4288 | fi
|
---|
4289 | done
|
---|
4290 | IFS="$ac_save_ifs"
|
---|
4291 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4292 | ;;
|
---|
4293 | esac
|
---|
4294 | fi
|
---|
4295 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4296 | if test -n "$GMSGFMT"; then
|
---|
4297 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4298 | else
|
---|
4299 | echo "$ac_t""no" 1>&6
|
---|
4300 | fi
|
---|
4301 |
|
---|
4302 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4303 | set dummy xgettext; ac_word=$2
|
---|
4304 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4305 | echo "configure:4306: checking for $ac_word" >&5
|
---|
4306 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4307 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4308 | else
|
---|
4309 | case "$XGETTEXT" in
|
---|
4310 | [/\\]*|[a-zA-Z]:*)
|
---|
4311 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4312 | ;;
|
---|
4313 | *)
|
---|
4314 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4315 | for ac_dir in $PATH; do
|
---|
4316 | test -z "$ac_dir" && ac_dir=.
|
---|
4317 | if test -f $ac_dir/$ac_word; then
|
---|
4318 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4319 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4320 | break
|
---|
4321 | fi
|
---|
4322 | fi
|
---|
4323 | ac_word_saved="$ac_word"
|
---|
4324 | ac_word=$ac_word$ac_cv_exeext
|
---|
4325 | if test -f $ac_dir/$ac_word; then
|
---|
4326 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4327 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4328 | break
|
---|
4329 | fi
|
---|
4330 | fi
|
---|
4331 | ac_word="$ac_word_saved"
|
---|
4332 | done
|
---|
4333 | IFS="$ac_save_ifs"
|
---|
4334 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4335 | ;;
|
---|
4336 | esac
|
---|
4337 | fi
|
---|
4338 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4339 | if test -n "$XGETTEXT"; then
|
---|
4340 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4341 | else
|
---|
4342 | echo "$ac_t""no" 1>&6
|
---|
4343 | fi
|
---|
4344 |
|
---|
4345 |
|
---|
4346 | USE_INCLUDED_LIBINTL=yes
|
---|
4347 | CATOBJEXT=.gmo
|
---|
4348 | INSTOBJEXT=.mo
|
---|
4349 | DATADIRNAME=share
|
---|
4350 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4351 | INTLLIBS=$INTLDEPS
|
---|
4352 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4353 | nls_cv_header_intl=libintl.h
|
---|
4354 | nls_cv_header_libgt=libgettext.h
|
---|
4355 | fi
|
---|
4356 |
|
---|
4357 | if test "$XGETTEXT" != ":"; then
|
---|
4358 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4359 | : ;
|
---|
4360 | else
|
---|
4361 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4362 | XGETTEXT=":"
|
---|
4363 | fi
|
---|
4364 | fi
|
---|
4365 |
|
---|
4366 | # We need to process the po/ directory.
|
---|
4367 | POSUB=po
|
---|
4368 | else
|
---|
4369 | DATADIRNAME=share
|
---|
4370 | nls_cv_header_intl=libintl.h
|
---|
4371 | nls_cv_header_libgt=libgettext.h
|
---|
4372 | fi
|
---|
4373 |
|
---|
4374 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4375 | # because some of the sources are only built for this goal.
|
---|
4376 | if test "$PACKAGE" = gettext; then
|
---|
4377 | USE_NLS=yes
|
---|
4378 | USE_INCLUDED_LIBINTL=yes
|
---|
4379 | fi
|
---|
4380 |
|
---|
4381 | for lang in $ALL_LINGUAS; do
|
---|
4382 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4383 | POFILES="$POFILES $lang.po"
|
---|
4384 | done
|
---|
4385 |
|
---|
4386 |
|
---|
4387 |
|
---|
4388 |
|
---|
4389 |
|
---|
4390 |
|
---|
4391 |
|
---|
4392 |
|
---|
4393 |
|
---|
4394 |
|
---|
4395 |
|
---|
4396 |
|
---|
4397 |
|
---|
4398 |
|
---|
4399 | if test "x$CATOBJEXT" != "x"; then
|
---|
4400 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4401 | LINGUAS=
|
---|
4402 | else
|
---|
4403 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4404 | echo "configure:4405: checking for catalogs to be installed" >&5
|
---|
4405 | NEW_LINGUAS=
|
---|
4406 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4407 | case "$ALL_LINGUAS" in
|
---|
4408 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4409 | esac
|
---|
4410 | done
|
---|
4411 | LINGUAS=$NEW_LINGUAS
|
---|
4412 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4413 | fi
|
---|
4414 |
|
---|
4415 | if test -n "$LINGUAS"; then
|
---|
4416 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4417 | fi
|
---|
4418 | fi
|
---|
4419 |
|
---|
4420 | if test $ac_cv_header_locale_h = yes; then
|
---|
4421 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4422 | else
|
---|
4423 | INCLUDE_LOCALE_H="\
|
---|
4424 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4425 | fi
|
---|
4426 |
|
---|
4427 |
|
---|
4428 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4429 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4430 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4431 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4432 | echo "configure:4433: checking for linux/version.h" >&5
|
---|
4433 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4434 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4435 | else
|
---|
4436 | cat > conftest.$ac_ext <<EOF
|
---|
4437 | #include <sys/types.h>
|
---|
4438 | #line 4439 "configure"
|
---|
4439 | #include "confdefs.h"
|
---|
4440 | #include <linux/version.h>
|
---|
4441 | EOF
|
---|
4442 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4443 | { (eval echo configure:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4444 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4445 | if test -z "$ac_err"; then
|
---|
4446 | rm -rf conftest*
|
---|
4447 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4448 | else
|
---|
4449 | echo "$ac_err" >&5
|
---|
4450 | echo "configure: failed program was:" >&5
|
---|
4451 | cat conftest.$ac_ext >&5
|
---|
4452 | rm -rf conftest*
|
---|
4453 | eval "ac_cv_header_$ac_safe=no"
|
---|
4454 | fi
|
---|
4455 | rm -f conftest*
|
---|
4456 | fi
|
---|
4457 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4458 | echo "$ac_t""yes" 1>&6
|
---|
4459 | msgformat=linux
|
---|
4460 | else
|
---|
4461 | echo "$ac_t""no" 1>&6
|
---|
4462 | msgformat=xopen
|
---|
4463 | fi
|
---|
4464 |
|
---|
4465 |
|
---|
4466 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4467 | fi
|
---|
4468 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4469 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4470 | fi
|
---|
4471 |
|
---|
4472 | if test "$PACKAGE" = "gettext"; then
|
---|
4473 | GT_NO="#NO#"
|
---|
4474 | GT_YES=
|
---|
4475 | else
|
---|
4476 | GT_NO=
|
---|
4477 | GT_YES="#YES#"
|
---|
4478 | fi
|
---|
4479 |
|
---|
4480 |
|
---|
4481 |
|
---|
4482 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4483 |
|
---|
4484 |
|
---|
4485 | l=
|
---|
4486 |
|
---|
4487 |
|
---|
4488 | if test -f $srcdir/po/POTFILES.in; then
|
---|
4489 | test -d po || mkdir po
|
---|
4490 | if test "x$srcdir" != "x."; then
|
---|
4491 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
---|
4492 | posrcprefix="$srcdir/"
|
---|
4493 | else
|
---|
4494 | posrcprefix="../$srcdir/"
|
---|
4495 | fi
|
---|
4496 | else
|
---|
4497 | posrcprefix="../"
|
---|
4498 | fi
|
---|
4499 | rm -f po/POTFILES
|
---|
4500 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4501 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4502 | fi
|
---|
4503 |
|
---|
4504 |
|
---|
4505 | . ${srcdir}/../bfd/configure.host
|
---|
4506 |
|
---|
4507 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
---|
4508 | if test -z "$CC_FOR_BUILD"; then
|
---|
4509 | if test "x$cross_compiling" = "xno"; then
|
---|
4510 | CC_FOR_BUILD='$(CC)'
|
---|
4511 | else
|
---|
4512 | CC_FOR_BUILD=gcc
|
---|
4513 | fi
|
---|
4514 | fi
|
---|
4515 |
|
---|
4516 | # Also set EXEEXT_FOR_BUILD.
|
---|
4517 | if test "x$cross_compiling" = "xno"; then
|
---|
4518 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
---|
4519 | else
|
---|
4520 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
---|
4521 | echo "configure:4522: checking for build system executable suffix" >&5
|
---|
4522 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
---|
4523 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4524 | else
|
---|
4525 | rm -f conftest*
|
---|
4526 | echo 'int main () { return 0; }' > conftest.c
|
---|
4527 | bfd_cv_build_exeext=
|
---|
4528 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
---|
4529 | for file in conftest.*; do
|
---|
4530 | case $file in
|
---|
4531 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
---|
4532 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4533 | esac
|
---|
4534 | done
|
---|
4535 | rm -f conftest*
|
---|
4536 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
---|
4537 | fi
|
---|
4538 |
|
---|
4539 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
---|
4540 | EXEEXT_FOR_BUILD=""
|
---|
4541 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
---|
4542 | fi
|
---|
4543 |
|
---|
4544 |
|
---|
4545 |
|
---|
4546 | # Find a good install program. We prefer a C program (faster),
|
---|
4547 | # so one script is as good as another. But avoid the broken or
|
---|
4548 | # incompatible versions:
|
---|
4549 | # SysV /etc/install, /usr/sbin/install
|
---|
4550 | # SunOS /usr/etc/install
|
---|
4551 | # IRIX /sbin/install
|
---|
4552 | # AIX /bin/install
|
---|
4553 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4554 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4555 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4556 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4557 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
4558 | echo "configure:4559: checking for a BSD compatible install" >&5
|
---|
4559 | if test -z "$INSTALL"; then
|
---|
4560 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
4561 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4562 | else
|
---|
4563 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
4564 | for ac_dir in $PATH; do
|
---|
4565 | # Account for people who put trailing slashes in PATH elements.
|
---|
4566 | case "$ac_dir/" in
|
---|
4567 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
4568 | # We reject the install program from OS/2 or W3.1
|
---|
4569 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
4570 | *)
|
---|
4571 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4572 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4573 | # by default.
|
---|
4574 | for ac_prog in ginstall scoinst install; do
|
---|
4575 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
4576 | if test $ac_prog = install &&
|
---|
4577 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
4578 | # AIX install. It has an incompatible calling convention.
|
---|
4579 | :
|
---|
4580 | else
|
---|
4581 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
4582 | break 2
|
---|
4583 | fi
|
---|
4584 | fi
|
---|
4585 | done
|
---|
4586 | ;;
|
---|
4587 | esac
|
---|
4588 | done
|
---|
4589 | IFS="$ac_save_IFS"
|
---|
4590 |
|
---|
4591 | fi
|
---|
4592 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4593 | INSTALL="$ac_cv_path_install"
|
---|
4594 | else
|
---|
4595 | # As a last resort, use the slow shell script. We don't cache a
|
---|
4596 | # path for INSTALL within a source directory, because that will
|
---|
4597 | # break other packages using the cache if that directory is
|
---|
4598 | # removed, or if the path is relative.
|
---|
4599 | INSTALL="$ac_install_sh"
|
---|
4600 | fi
|
---|
4601 | fi
|
---|
4602 | echo "$ac_t""$INSTALL" 1>&6
|
---|
4603 |
|
---|
4604 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4605 | # It thinks the first close brace ends the variable substitution.
|
---|
4606 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4607 |
|
---|
4608 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
4609 |
|
---|
4610 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4611 |
|
---|
4612 |
|
---|
4613 | for ac_hdr in string.h strings.h stdlib.h
|
---|
4614 | do
|
---|
4615 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4616 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4617 | echo "configure:4618: checking for $ac_hdr" >&5
|
---|
4618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4619 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4620 | else
|
---|
4621 | cat > conftest.$ac_ext <<EOF
|
---|
4622 | #include <sys/types.h>
|
---|
4623 | #line 4624 "configure"
|
---|
4624 | #include "confdefs.h"
|
---|
4625 | #include <$ac_hdr>
|
---|
4626 | EOF
|
---|
4627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4628 | { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4630 | if test -z "$ac_err"; then
|
---|
4631 | rm -rf conftest*
|
---|
4632 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4633 | else
|
---|
4634 | echo "$ac_err" >&5
|
---|
4635 | echo "configure: failed program was:" >&5
|
---|
4636 | cat conftest.$ac_ext >&5
|
---|
4637 | rm -rf conftest*
|
---|
4638 | eval "ac_cv_header_$ac_safe=no"
|
---|
4639 | fi
|
---|
4640 | rm -f conftest*
|
---|
4641 | fi
|
---|
4642 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4643 | echo "$ac_t""yes" 1>&6
|
---|
4644 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4645 | cat >> confdefs.h <<EOF
|
---|
4646 | #define $ac_tr_hdr 1
|
---|
4647 | EOF
|
---|
4648 |
|
---|
4649 | else
|
---|
4650 | echo "$ac_t""no" 1>&6
|
---|
4651 | fi
|
---|
4652 | done
|
---|
4653 |
|
---|
4654 |
|
---|
4655 | cgen_maint=no
|
---|
4656 | cgendir='$(srcdir)/../cgen'
|
---|
4657 |
|
---|
4658 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
|
---|
4659 | if test "${enable_cgen_maint+set}" = set; then
|
---|
4660 | enableval="$enable_cgen_maint"
|
---|
4661 | case "${enableval}" in
|
---|
4662 | yes) cgen_maint=yes ;;
|
---|
4663 | no) cgen_maint=no ;;
|
---|
4664 | *)
|
---|
4665 | # argument is cgen install directory (not implemented yet).
|
---|
4666 | # Having a `share' directory might be more appropriate for the .scm,
|
---|
4667 | # .cpu, etc. files.
|
---|
4668 | cgen_maint=yes
|
---|
4669 | cgendir=${cgen_maint}/lib/cgen
|
---|
4670 | ;;
|
---|
4671 | esac
|
---|
4672 | fi
|
---|
4673 |
|
---|
4674 |
|
---|
4675 | if test x${cgen_maint} = xyes; then
|
---|
4676 | CGEN_MAINT_TRUE=
|
---|
4677 | CGEN_MAINT_FALSE='#'
|
---|
4678 | else
|
---|
4679 | CGEN_MAINT_TRUE='#'
|
---|
4680 | CGEN_MAINT_FALSE=
|
---|
4681 | fi
|
---|
4682 |
|
---|
4683 |
|
---|
4684 | using_cgen=no
|
---|
4685 |
|
---|
4686 | # Horrible hacks to build DLLs on Windows.
|
---|
4687 | WIN32LDFLAGS=
|
---|
4688 | WIN32LIBADD=
|
---|
4689 | case "${host}" in
|
---|
4690 | *-*-cygwin*)
|
---|
4691 | if test "$enable_shared" = "yes"; then
|
---|
4692 | WIN32LDFLAGS="-no-undefined"
|
---|
4693 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
|
---|
4694 | fi
|
---|
4695 | ;;
|
---|
4696 | *-*-os2*)
|
---|
4697 | if test "$enable_shared" = "yes"; then
|
---|
4698 | WIN32LDFLAGS="-no-undefined"
|
---|
4699 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty"
|
---|
4700 | # WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
|
---|
4701 | fi
|
---|
4702 | ;;
|
---|
4703 | esac
|
---|
4704 |
|
---|
4705 |
|
---|
4706 |
|
---|
4707 | # target-specific stuff:
|
---|
4708 |
|
---|
4709 | # Canonicalize the secondary target names.
|
---|
4710 | if test -n "$enable_targets" ; then
|
---|
4711 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
---|
4712 | do
|
---|
4713 | result=`$ac_config_sub $targ 2>/dev/null`
|
---|
4714 | if test -n "$result" ; then
|
---|
4715 | canon_targets="$canon_targets $result"
|
---|
4716 | else
|
---|
4717 | # Allow targets that config.sub doesn't recognize, like "all".
|
---|
4718 | canon_targets="$canon_targets $targ"
|
---|
4719 | fi
|
---|
4720 | done
|
---|
4721 | fi
|
---|
4722 |
|
---|
4723 | all_targets=false
|
---|
4724 | selarchs=
|
---|
4725 | for targ in $target $canon_targets
|
---|
4726 | do
|
---|
4727 | if test "x$targ" = "xall" ; then
|
---|
4728 | all_targets=true
|
---|
4729 | else
|
---|
4730 | . $srcdir/../bfd/config.bfd
|
---|
4731 | selarchs="$selarchs $targ_archs"
|
---|
4732 | fi
|
---|
4733 | done
|
---|
4734 |
|
---|
4735 | # Utility var, documents generic cgen support files.
|
---|
4736 |
|
---|
4737 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
|
---|
4738 |
|
---|
4739 | # We don't do any links based on the target system, just makefile config.
|
---|
4740 |
|
---|
4741 | if test x${all_targets} = xfalse ; then
|
---|
4742 |
|
---|
4743 | # Target architecture .o files.
|
---|
4744 | ta=
|
---|
4745 |
|
---|
4746 | for arch in $selarchs
|
---|
4747 | do
|
---|
4748 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
|
---|
4749 | archdefs="$archdefs -DARCH_$ad"
|
---|
4750 | case "$arch" in
|
---|
4751 | bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
|
---|
4752 | bfd_alliant_arch) ;;
|
---|
4753 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
|
---|
4754 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
|
---|
4755 | bfd_arm_arch) ta="$ta arm-dis.lo" ;;
|
---|
4756 | bfd_avr_arch) ta="$ta avr-dis.lo" ;;
|
---|
4757 | bfd_convex_arch) ;;
|
---|
4758 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
|
---|
4759 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
|
---|
4760 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
|
---|
4761 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
|
---|
4762 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
|
---|
4763 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
|
---|
4764 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
|
---|
4765 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
|
---|
4766 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
|
---|
4767 | bfd_i386_arch) ta="$ta i386-dis.lo" ;;
|
---|
4768 | bfd_i860_arch) ta="$ta i860-dis.lo" ;;
|
---|
4769 | bfd_i960_arch) ta="$ta i960-dis.lo" ;;
|
---|
4770 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
|
---|
4771 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
|
---|
4772 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
|
---|
4773 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
|
---|
4774 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
---|
4775 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
---|
4776 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
|
---|
4777 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
|
---|
4778 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
|
---|
4779 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
|
---|
4780 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
|
---|
4781 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
|
---|
4782 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
|
---|
4783 | bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
|
---|
4784 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
|
---|
4785 | bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
|
---|
4786 | bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
|
---|
4787 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
|
---|
4788 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
|
---|
4789 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
---|
4790 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
---|
4791 | bfd_pyramid_arch) ;;
|
---|
4792 | bfd_romp_arch) ;;
|
---|
4793 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
---|
4794 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
|
---|
4795 | bfd_sh_arch)
|
---|
4796 | # We can't decide what we want just from the CPU family.
|
---|
4797 | # We want SH5 support unless a specific version of sh is
|
---|
4798 | # specified, as in sh3-elf, sh3b-linux-gnu, etc.
|
---|
4799 | # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
|
---|
4800 | for t in $target $canon_targets; do
|
---|
4801 | case $t in
|
---|
4802 | all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
|
---|
4803 | sh-*-linux* | shl-*-linux*)
|
---|
4804 | ta="$ta sh64-dis.lo sh64-opc.lo"
|
---|
4805 | archdefs="$archdefs -DINCLUDE_SHMEDIA"
|
---|
4806 | break;;
|
---|
4807 | esac;
|
---|
4808 | done
|
---|
4809 | ta="$ta sh-dis.lo" ;;
|
---|
4810 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
|
---|
4811 | bfd_tahoe_arch) ;;
|
---|
4812 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
|
---|
4813 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
|
---|
4814 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
|
---|
4815 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
|
---|
4816 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
---|
4817 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
---|
4818 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
---|
4819 | bfd_vax_arch) ta="$ta vax-dis.lo" ;;
|
---|
4820 | bfd_w65_arch) ta="$ta w65-dis.lo" ;;
|
---|
4821 | bfd_we32k_arch) ;;
|
---|
4822 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
|
---|
4823 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
|
---|
4824 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
|
---|
4825 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
|
---|
4826 |
|
---|
4827 | "") ;;
|
---|
4828 | *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
|
---|
4829 | esac
|
---|
4830 | done
|
---|
4831 |
|
---|
4832 | if test $using_cgen = yes ; then
|
---|
4833 | ta="$ta $cgen_files"
|
---|
4834 | fi
|
---|
4835 |
|
---|
4836 | # Weed out duplicate .o files.
|
---|
4837 | f=""
|
---|
4838 | for i in $ta ; do
|
---|
4839 | case " $f " in
|
---|
4840 | *" $i "*) ;;
|
---|
4841 | *) f="$f $i" ;;
|
---|
4842 | esac
|
---|
4843 | done
|
---|
4844 | ta="$f"
|
---|
4845 |
|
---|
4846 | # And duplicate -D flags.
|
---|
4847 | f=""
|
---|
4848 | for i in $archdefs ; do
|
---|
4849 | case " $f " in
|
---|
4850 | *" $i "*) ;;
|
---|
4851 | *) f="$f $i" ;;
|
---|
4852 | esac
|
---|
4853 | done
|
---|
4854 | archdefs="$f"
|
---|
4855 |
|
---|
4856 | BFD_MACHINES="$ta"
|
---|
4857 |
|
---|
4858 | else # all_targets is true
|
---|
4859 | archdefs=-DARCH_all
|
---|
4860 | BFD_MACHINES='$(ALL_MACHINES)'
|
---|
4861 | fi
|
---|
4862 |
|
---|
4863 |
|
---|
4864 |
|
---|
4865 |
|
---|
4866 | trap '' 1 2 15
|
---|
4867 | cat > confcache <<\EOF
|
---|
4868 | # This file is a shell script that caches the results of configure
|
---|
4869 | # tests run on this system so they can be shared between configure
|
---|
4870 | # scripts and configure runs. It is not useful on other systems.
|
---|
4871 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
4872 | #
|
---|
4873 | # By default, configure uses ./config.cache as the cache file,
|
---|
4874 | # creating it if it does not exist already. You can give configure
|
---|
4875 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
4876 | # what configure does when it calls configure scripts in
|
---|
4877 | # subdirectories, so they share the cache.
|
---|
4878 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
4879 | # config.status only pays attention to the cache file if you give it the
|
---|
4880 | # --recheck option to rerun configure.
|
---|
4881 | #
|
---|
4882 | EOF
|
---|
4883 | # The following way of writing the cache mishandles newlines in values,
|
---|
4884 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
4885 | # So, don't put newlines in cache variables' values.
|
---|
4886 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
4887 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
4888 | (set) 2>&1 |
|
---|
4889 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
4890 | *ac_space=\ *)
|
---|
4891 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
4892 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
4893 | sed -n \
|
---|
4894 | -e "s/'/'\\\\''/g" \
|
---|
4895 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
4896 | ;;
|
---|
4897 | *)
|
---|
4898 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
4899 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
4900 | ;;
|
---|
4901 | esac >> confcache
|
---|
4902 | if cmp -s $cache_file confcache; then
|
---|
4903 | :
|
---|
4904 | else
|
---|
4905 | if test -w $cache_file; then
|
---|
4906 | echo "updating cache $cache_file"
|
---|
4907 | cat confcache > $cache_file
|
---|
4908 | else
|
---|
4909 | echo "not updating unwritable cache $cache_file"
|
---|
4910 | fi
|
---|
4911 | fi
|
---|
4912 | rm -f confcache
|
---|
4913 |
|
---|
4914 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
4915 |
|
---|
4916 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
4917 | # Let make expand exec_prefix.
|
---|
4918 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
4919 |
|
---|
4920 | # Any assignment to VPATH causes Sun make to only execute
|
---|
4921 | # the first set of double-colon rules, so remove it if not needed.
|
---|
4922 | # If there is a colon in the path, we need to keep it.
|
---|
4923 | if test "x$srcdir" = x.; then
|
---|
4924 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
4925 | fi
|
---|
4926 |
|
---|
4927 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
4928 |
|
---|
4929 | DEFS=-DHAVE_CONFIG_H
|
---|
4930 |
|
---|
4931 | # Without the "./", some shells look in PATH for config.status.
|
---|
4932 | : ${CONFIG_STATUS=./config.status}
|
---|
4933 |
|
---|
4934 | echo creating $CONFIG_STATUS
|
---|
4935 | rm -f $CONFIG_STATUS
|
---|
4936 | cat > $CONFIG_STATUS <<EOF
|
---|
4937 | #! /bin/sh
|
---|
4938 | # Generated automatically by configure.
|
---|
4939 | # Run this file to recreate the current configuration.
|
---|
4940 | # This directory was configured as follows,
|
---|
4941 | EOF
|
---|
4942 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
4943 | cat >> $CONFIG_STATUS <<EOF
|
---|
4944 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
4945 | #
|
---|
4946 | # $0 $ac_configure_args
|
---|
4947 | #
|
---|
4948 | # Compiler output produced by configure, useful for debugging
|
---|
4949 | # configure, is in ./config.log if it exists.
|
---|
4950 |
|
---|
4951 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
4952 | for ac_option
|
---|
4953 | do
|
---|
4954 | case "\$ac_option" in
|
---|
4955 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
4956 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
4957 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
4958 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
4959 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
4960 | exit 0 ;;
|
---|
4961 | -help | --help | --hel | --he | --h)
|
---|
4962 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
4963 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
4964 | esac
|
---|
4965 | done
|
---|
4966 |
|
---|
4967 | ac_given_srcdir=$srcdir
|
---|
4968 | ac_given_INSTALL="$INSTALL"
|
---|
4969 | PATHIFS="$PATH_IFS"
|
---|
4970 |
|
---|
4971 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
4972 | EOF
|
---|
4973 | cat >> $CONFIG_STATUS <<EOF
|
---|
4974 |
|
---|
4975 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4976 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
4977 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
4978 | $ac_vpsub
|
---|
4979 | $extrasub
|
---|
4980 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
4981 | s%@SHELL@%$SHELL%g
|
---|
4982 | s%@CFLAGS@%$CFLAGS%g
|
---|
4983 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
4984 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
4985 | s%@FFLAGS@%$FFLAGS%g
|
---|
4986 | s%@DEFS@%$DEFS%g
|
---|
4987 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
4988 | s%@LIBS@%$LIBS%g
|
---|
4989 | s%@exec_prefix@%$exec_prefix%g
|
---|
4990 | s%@prefix@%$prefix%g
|
---|
4991 | s%@program_transform_name@%$program_transform_name%g
|
---|
4992 | s%@bindir@%$bindir%g
|
---|
4993 | s%@sbindir@%$sbindir%g
|
---|
4994 | s%@libexecdir@%$libexecdir%g
|
---|
4995 | s%@datadir@%$datadir%g
|
---|
4996 | s%@sysconfdir@%$sysconfdir%g
|
---|
4997 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
4998 | s%@localstatedir@%$localstatedir%g
|
---|
4999 | s%@libdir@%$libdir%g
|
---|
5000 | s%@includedir@%$includedir%g
|
---|
5001 | s%@oldincludedir@%$oldincludedir%g
|
---|
5002 | s%@infodir@%$infodir%g
|
---|
5003 | s%@mandir@%$mandir%g
|
---|
5004 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
5005 | s%@EXEEXT@%$EXEEXT%g
|
---|
5006 | s%@host@%$host%g
|
---|
5007 | s%@host_alias@%$host_alias%g
|
---|
5008 | s%@host_cpu@%$host_cpu%g
|
---|
5009 | s%@host_vendor@%$host_vendor%g
|
---|
5010 | s%@host_os@%$host_os%g
|
---|
5011 | s%@target@%$target%g
|
---|
5012 | s%@target_alias@%$target_alias%g
|
---|
5013 | s%@target_cpu@%$target_cpu%g
|
---|
5014 | s%@target_vendor@%$target_vendor%g
|
---|
5015 | s%@target_os@%$target_os%g
|
---|
5016 | s%@build@%$build%g
|
---|
5017 | s%@build_alias@%$build_alias%g
|
---|
5018 | s%@build_cpu@%$build_cpu%g
|
---|
5019 | s%@build_vendor@%$build_vendor%g
|
---|
5020 | s%@build_os@%$build_os%g
|
---|
5021 | s%@CC@%$CC%g
|
---|
5022 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
5023 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
5024 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
5025 | s%@PACKAGE@%$PACKAGE%g
|
---|
5026 | s%@VERSION@%$VERSION%g
|
---|
5027 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
5028 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
5029 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
5030 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
5031 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
5032 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
5033 | s%@AR@%$AR%g
|
---|
5034 | s%@RANLIB@%$RANLIB%g
|
---|
5035 | s%@LN_S@%$LN_S%g
|
---|
5036 | s%@OBJEXT@%$OBJEXT%g
|
---|
5037 | s%@STRIP@%$STRIP%g
|
---|
5038 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
5039 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
5040 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
5041 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
5042 | s%@MAINT@%$MAINT%g
|
---|
5043 | s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
|
---|
5044 | s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
|
---|
5045 | s%@bfdlibdir@%$bfdlibdir%g
|
---|
5046 | s%@bfdincludedir@%$bfdincludedir%g
|
---|
5047 | s%@CPP@%$CPP%g
|
---|
5048 | s%@ALLOCA@%$ALLOCA%g
|
---|
5049 | s%@USE_NLS@%$USE_NLS%g
|
---|
5050 | s%@MSGFMT@%$MSGFMT%g
|
---|
5051 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
5052 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
5053 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
5054 | s%@CATALOGS@%$CATALOGS%g
|
---|
5055 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
5056 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
5057 | s%@GMOFILES@%$GMOFILES%g
|
---|
5058 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
5059 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
5060 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
5061 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
5062 | s%@POFILES@%$POFILES%g
|
---|
5063 | s%@POSUB@%$POSUB%g
|
---|
5064 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
5065 | s%@GT_NO@%$GT_NO%g
|
---|
5066 | s%@GT_YES@%$GT_YES%g
|
---|
5067 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
5068 | s%@l@%$l%g
|
---|
5069 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
---|
5070 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
---|
5071 | s%@HDEFINES@%$HDEFINES%g
|
---|
5072 | s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
|
---|
5073 | s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
|
---|
5074 | s%@cgendir@%$cgendir%g
|
---|
5075 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
---|
5076 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
---|
5077 | s%@archdefs@%$archdefs%g
|
---|
5078 | s%@BFD_MACHINES@%$BFD_MACHINES%g
|
---|
5079 |
|
---|
5080 | CEOF
|
---|
5081 | EOF
|
---|
5082 |
|
---|
5083 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5084 |
|
---|
5085 | # Split the substitutions into bite-sized pieces for seds with
|
---|
5086 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
5087 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
5088 | ac_file=1 # Number of current file.
|
---|
5089 | ac_beg=1 # First line for current file.
|
---|
5090 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
5091 | ac_more_lines=:
|
---|
5092 | ac_sed_cmds=""
|
---|
5093 | while $ac_more_lines; do
|
---|
5094 | if test $ac_beg -gt 1; then
|
---|
5095 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
5096 | else
|
---|
5097 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
5098 | fi
|
---|
5099 | if test ! -s conftest.s$ac_file; then
|
---|
5100 | ac_more_lines=false
|
---|
5101 | rm -f conftest.s$ac_file
|
---|
5102 | else
|
---|
5103 | if test -z "$ac_sed_cmds"; then
|
---|
5104 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
5105 | else
|
---|
5106 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
5107 | fi
|
---|
5108 | ac_file=`expr $ac_file + 1`
|
---|
5109 | ac_beg=$ac_end
|
---|
5110 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
5111 | fi
|
---|
5112 | done
|
---|
5113 | if test -z "$ac_sed_cmds"; then
|
---|
5114 | ac_sed_cmds=cat
|
---|
5115 | fi
|
---|
5116 | EOF
|
---|
5117 |
|
---|
5118 | cat >> $CONFIG_STATUS <<EOF
|
---|
5119 |
|
---|
5120 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
|
---|
5121 | EOF
|
---|
5122 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5123 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
5124 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5125 | case "$ac_file" in
|
---|
5126 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
5127 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
5128 | *) ac_file_in="${ac_file}.in" ;;
|
---|
5129 | esac
|
---|
5130 |
|
---|
5131 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
5132 |
|
---|
5133 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
5134 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
5135 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
5136 | # The file is in a subdirectory.
|
---|
5137 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
5138 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
5139 | # A "../" for each directory in $ac_dir_suffix.
|
---|
5140 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
5141 | else
|
---|
5142 | ac_dir_suffix= ac_dots=
|
---|
5143 | fi
|
---|
5144 |
|
---|
5145 | case "$ac_given_srcdir" in
|
---|
5146 | .) srcdir=.
|
---|
5147 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
5148 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
5149 | [/\\]* | [a-zA-Z]:*)
|
---|
5150 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
5151 | *) # Relative path.
|
---|
5152 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
5153 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
5154 | esac
|
---|
5155 |
|
---|
5156 | case "$ac_given_INSTALL" in
|
---|
5157 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
5158 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
5159 | esac
|
---|
5160 |
|
---|
5161 | echo creating "$ac_file"
|
---|
5162 | rm -f "$ac_file"
|
---|
5163 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
5164 | case "$ac_file" in
|
---|
5165 | *Makefile*) ac_comsub="1i\\
|
---|
5166 | # $configure_input" ;;
|
---|
5167 | *) ac_comsub= ;;
|
---|
5168 | esac
|
---|
5169 |
|
---|
5170 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
5171 | sed -e "$ac_comsub
|
---|
5172 | s%@configure_input@%$configure_input%g
|
---|
5173 | s%@srcdir@%$srcdir%g
|
---|
5174 | s%@top_srcdir@%$top_srcdir%g
|
---|
5175 | s%@INSTALL@%$INSTALL%g
|
---|
5176 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
5177 | fi; done
|
---|
5178 | rm -f conftest.s*
|
---|
5179 |
|
---|
5180 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
5181 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
5182 | #
|
---|
5183 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
5184 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
5185 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
5186 | ac_dC='\3'
|
---|
5187 | ac_dD='%g'
|
---|
5188 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
5189 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
5190 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
5191 | ac_uC=' '
|
---|
5192 | ac_uD='\4%g'
|
---|
5193 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
5194 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
5195 | ac_eB='$%\1#\2define\3'
|
---|
5196 | ac_eC=' '
|
---|
5197 | ac_eD='%g'
|
---|
5198 |
|
---|
5199 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
5200 | EOF
|
---|
5201 | cat >> $CONFIG_STATUS <<EOF
|
---|
5202 | CONFIG_HEADERS="config.h:config.in"
|
---|
5203 | EOF
|
---|
5204 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5205 | fi
|
---|
5206 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
5207 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5208 | case "$ac_file" in
|
---|
5209 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
5210 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
5211 | *) ac_file_in="${ac_file}.in" ;;
|
---|
5212 | esac
|
---|
5213 |
|
---|
5214 | echo creating $ac_file
|
---|
5215 |
|
---|
5216 | rm -f conftest.frag conftest.in conftest.out
|
---|
5217 | # kso the other way around might work better with drive letters and such.
|
---|
5218 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
5219 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
5220 | cat $ac_file_inputs > conftest.in
|
---|
5221 |
|
---|
5222 | EOF
|
---|
5223 |
|
---|
5224 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
5225 | # the proper values into config.h.in to produce config.h. And first:
|
---|
5226 | # Protect against being on the right side of a sed subst in config.status.
|
---|
5227 | # Protect against being in an unquoted here document in config.status.
|
---|
5228 | rm -f conftest.vals
|
---|
5229 | cat > conftest.hdr <<\EOF
|
---|
5230 | s/[\\&%]/\\&/g
|
---|
5231 | s%[\\$`]%\\&%g
|
---|
5232 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
5233 | s%ac_d%ac_u%gp
|
---|
5234 | s%ac_u%ac_e%gp
|
---|
5235 | EOF
|
---|
5236 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
5237 | rm -f conftest.hdr
|
---|
5238 |
|
---|
5239 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
5240 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
5241 | # on some systems where configure will not decide to define it.
|
---|
5242 | cat >> conftest.vals <<\EOF
|
---|
5243 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
5244 | EOF
|
---|
5245 |
|
---|
5246 | # Break up conftest.vals because some shells have a limit on
|
---|
5247 | # the size of here documents, and old seds have small limits too.
|
---|
5248 |
|
---|
5249 | rm -f conftest.tail
|
---|
5250 | while :
|
---|
5251 | do
|
---|
5252 | ac_lines=`grep -c . conftest.vals`
|
---|
5253 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
5254 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
5255 | # Write a limited-size here document to conftest.frag.
|
---|
5256 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
5257 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
5258 | echo 'CEOF
|
---|
5259 | sed -f conftest.frag conftest.in > conftest.out
|
---|
5260 | rm -f conftest.in
|
---|
5261 | mv conftest.out conftest.in
|
---|
5262 | ' >> $CONFIG_STATUS
|
---|
5263 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
5264 | rm -f conftest.vals
|
---|
5265 | mv conftest.tail conftest.vals
|
---|
5266 | done
|
---|
5267 | rm -f conftest.vals
|
---|
5268 |
|
---|
5269 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5270 | rm -f conftest.frag conftest.h
|
---|
5271 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
5272 | cat conftest.in >> conftest.h
|
---|
5273 | rm -f conftest.in
|
---|
5274 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
5275 | echo "$ac_file is unchanged"
|
---|
5276 | rm -f conftest.h
|
---|
5277 | else
|
---|
5278 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
5279 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
5280 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
5281 | # The file is in a subdirectory.
|
---|
5282 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
5283 | fi
|
---|
5284 | rm -f $ac_file
|
---|
5285 | mv conftest.h $ac_file
|
---|
5286 | fi
|
---|
5287 | fi; done
|
---|
5288 |
|
---|
5289 | EOF
|
---|
5290 | cat >> $CONFIG_STATUS <<EOF
|
---|
5291 |
|
---|
5292 |
|
---|
5293 | EOF
|
---|
5294 | cat >> $CONFIG_STATUS <<\EOF
|
---|
5295 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
5296 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
---|
5297 | exit 0
|
---|
5298 | EOF
|
---|
5299 | chmod +x $CONFIG_STATUS
|
---|
5300 | rm -fr confdefs* $ac_clean_files
|
---|
5301 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
5302 |
|
---|