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