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 | --disable-nls do not use Native Language Support"
|
---|
28 | ac_help="$ac_help
|
---|
29 | --with-included-gettext use the GNU gettext library included here"
|
---|
30 | ac_help="$ac_help
|
---|
31 | --enable-maintainer-mode enable make rules and dependencies not useful
|
---|
32 | (and sometimes confusing) to the casual installer"
|
---|
33 | ac_help="$ac_help
|
---|
34 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
---|
35 |
|
---|
36 | # Initialize some variables set by options.
|
---|
37 | # The variables have the same names as the options, with
|
---|
38 | # dashes changed to underlines.
|
---|
39 | build=NONE
|
---|
40 | cache_file=./config.cache
|
---|
41 | exec_prefix=NONE
|
---|
42 | host=NONE
|
---|
43 | no_create=
|
---|
44 | nonopt=NONE
|
---|
45 | no_recursion=
|
---|
46 | prefix=NONE
|
---|
47 | program_prefix=NONE
|
---|
48 | program_suffix=NONE
|
---|
49 | program_transform_name=s,x,x,
|
---|
50 | silent=
|
---|
51 | site=
|
---|
52 | srcdir=
|
---|
53 | target=NONE
|
---|
54 | verbose=
|
---|
55 | x_includes=NONE
|
---|
56 | x_libraries=NONE
|
---|
57 | bindir='${exec_prefix}/bin'
|
---|
58 | sbindir='${exec_prefix}/sbin'
|
---|
59 | libexecdir='${exec_prefix}/libexec'
|
---|
60 | datadir='${prefix}/share'
|
---|
61 | sysconfdir='${prefix}/etc'
|
---|
62 | sharedstatedir='${prefix}/com'
|
---|
63 | localstatedir='${prefix}/var'
|
---|
64 | libdir='${exec_prefix}/lib'
|
---|
65 | includedir='${prefix}/include'
|
---|
66 | oldincludedir='/usr/include'
|
---|
67 | infodir='${prefix}/info'
|
---|
68 | mandir='${prefix}/man'
|
---|
69 |
|
---|
70 | # Initialize some other variables.
|
---|
71 | subdirs=
|
---|
72 | MFLAGS= MAKEFLAGS=
|
---|
73 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
74 | # Maximum number of lines to put in a shell here document.
|
---|
75 | ac_max_here_lines=12
|
---|
76 |
|
---|
77 | ac_prev=
|
---|
78 | for ac_option
|
---|
79 | do
|
---|
80 |
|
---|
81 | # If the previous option needs an argument, assign it.
|
---|
82 | if test -n "$ac_prev"; then
|
---|
83 | eval "$ac_prev=\$ac_option"
|
---|
84 | ac_prev=
|
---|
85 | continue
|
---|
86 | fi
|
---|
87 |
|
---|
88 | case "$ac_option" in
|
---|
89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
90 | *) ac_optarg= ;;
|
---|
91 | esac
|
---|
92 |
|
---|
93 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
94 |
|
---|
95 | case "$ac_option" in
|
---|
96 |
|
---|
97 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
98 | ac_prev=bindir ;;
|
---|
99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
100 | bindir="$ac_optarg" ;;
|
---|
101 |
|
---|
102 | -build | --build | --buil | --bui | --bu)
|
---|
103 | ac_prev=build ;;
|
---|
104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
105 | build="$ac_optarg" ;;
|
---|
106 |
|
---|
107 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
109 | ac_prev=cache_file ;;
|
---|
110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
112 | cache_file="$ac_optarg" ;;
|
---|
113 |
|
---|
114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
115 | ac_prev=datadir ;;
|
---|
116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
117 | | --da=*)
|
---|
118 | datadir="$ac_optarg" ;;
|
---|
119 |
|
---|
120 | -disable-* | --disable-*)
|
---|
121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
122 | # Reject names that are not valid shell variable names.
|
---|
123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
125 | fi
|
---|
126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
127 | eval "enable_${ac_feature}=no" ;;
|
---|
128 |
|
---|
129 | -enable-* | --enable-*)
|
---|
130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
131 | # Reject names that are not valid shell variable names.
|
---|
132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
134 | fi
|
---|
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
136 | case "$ac_option" in
|
---|
137 | *=*) ;;
|
---|
138 | *) ac_optarg=yes ;;
|
---|
139 | esac
|
---|
140 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
141 |
|
---|
142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
144 | | --exec | --exe | --ex)
|
---|
145 | ac_prev=exec_prefix ;;
|
---|
146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
148 | | --exec=* | --exe=* | --ex=*)
|
---|
149 | exec_prefix="$ac_optarg" ;;
|
---|
150 |
|
---|
151 | -gas | --gas | --ga | --g)
|
---|
152 | # Obsolete; use --with-gas.
|
---|
153 | with_gas=yes ;;
|
---|
154 |
|
---|
155 | -help | --help | --hel | --he)
|
---|
156 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
157 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
158 | cat << EOF
|
---|
159 | Usage: configure [options] [host]
|
---|
160 | Options: [defaults in brackets after descriptions]
|
---|
161 | Configuration:
|
---|
162 | --cache-file=FILE cache test results in FILE
|
---|
163 | --help print this message
|
---|
164 | --no-create do not create output files
|
---|
165 | --quiet, --silent do not print \`checking...' messages
|
---|
166 | --version print the version of autoconf that created configure
|
---|
167 | Directory and file names:
|
---|
168 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
169 | [$ac_default_prefix]
|
---|
170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
171 | [same as prefix]
|
---|
172 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
175 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
176 | [PREFIX/share]
|
---|
177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
179 | [PREFIX/com]
|
---|
180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
182 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
184 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
185 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
186 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
187 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
188 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
189 | --program-transform-name=PROGRAM
|
---|
190 | run sed PROGRAM on installed program names
|
---|
191 | EOF
|
---|
192 | cat << EOF
|
---|
193 | Host type:
|
---|
194 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
195 | --host=HOST configure for HOST [guessed]
|
---|
196 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
197 | Features and packages:
|
---|
198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
202 | --x-includes=DIR X include files are in DIR
|
---|
203 | --x-libraries=DIR X library files are in DIR
|
---|
204 | EOF
|
---|
205 | if test -n "$ac_help"; then
|
---|
206 | echo "--enable and --with options recognized:$ac_help"
|
---|
207 | fi
|
---|
208 | exit 0 ;;
|
---|
209 |
|
---|
210 | -host | --host | --hos | --ho)
|
---|
211 | ac_prev=host ;;
|
---|
212 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
213 | host="$ac_optarg" ;;
|
---|
214 |
|
---|
215 | -includedir | --includedir | --includedi | --included | --include \
|
---|
216 | | --includ | --inclu | --incl | --inc)
|
---|
217 | ac_prev=includedir ;;
|
---|
218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
219 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
220 | includedir="$ac_optarg" ;;
|
---|
221 |
|
---|
222 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
223 | ac_prev=infodir ;;
|
---|
224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
225 | infodir="$ac_optarg" ;;
|
---|
226 |
|
---|
227 | -libdir | --libdir | --libdi | --libd)
|
---|
228 | ac_prev=libdir ;;
|
---|
229 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
230 | libdir="$ac_optarg" ;;
|
---|
231 |
|
---|
232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
233 | | --libexe | --libex | --libe)
|
---|
234 | ac_prev=libexecdir ;;
|
---|
235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
236 | | --libexe=* | --libex=* | --libe=*)
|
---|
237 | libexecdir="$ac_optarg" ;;
|
---|
238 |
|
---|
239 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
240 | | --localstate | --localstat | --localsta | --localst \
|
---|
241 | | --locals | --local | --loca | --loc | --lo)
|
---|
242 | ac_prev=localstatedir ;;
|
---|
243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
246 | localstatedir="$ac_optarg" ;;
|
---|
247 |
|
---|
248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
249 | ac_prev=mandir ;;
|
---|
250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
251 | mandir="$ac_optarg" ;;
|
---|
252 |
|
---|
253 | -nfp | --nfp | --nf)
|
---|
254 | # Obsolete; use --without-fp.
|
---|
255 | with_fp=no ;;
|
---|
256 |
|
---|
257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
258 | | --no-cr | --no-c)
|
---|
259 | no_create=yes ;;
|
---|
260 |
|
---|
261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
263 | no_recursion=yes ;;
|
---|
264 |
|
---|
265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
267 | | --oldin | --oldi | --old | --ol | --o)
|
---|
268 | ac_prev=oldincludedir ;;
|
---|
269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
272 | oldincludedir="$ac_optarg" ;;
|
---|
273 |
|
---|
274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
275 | ac_prev=prefix ;;
|
---|
276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
277 | prefix="$ac_optarg" ;;
|
---|
278 |
|
---|
279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
280 | | --program-pre | --program-pr | --program-p)
|
---|
281 | ac_prev=program_prefix ;;
|
---|
282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
284 | program_prefix="$ac_optarg" ;;
|
---|
285 |
|
---|
286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
287 | | --program-suf | --program-su | --program-s)
|
---|
288 | ac_prev=program_suffix ;;
|
---|
289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
291 | program_suffix="$ac_optarg" ;;
|
---|
292 |
|
---|
293 | -program-transform-name | --program-transform-name \
|
---|
294 | | --program-transform-nam | --program-transform-na \
|
---|
295 | | --program-transform-n | --program-transform- \
|
---|
296 | | --program-transform | --program-transfor \
|
---|
297 | | --program-transfo | --program-transf \
|
---|
298 | | --program-trans | --program-tran \
|
---|
299 | | --progr-tra | --program-tr | --program-t)
|
---|
300 | ac_prev=program_transform_name ;;
|
---|
301 | -program-transform-name=* | --program-transform-name=* \
|
---|
302 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
303 | | --program-transform-n=* | --program-transform-=* \
|
---|
304 | | --program-transform=* | --program-transfor=* \
|
---|
305 | | --program-transfo=* | --program-transf=* \
|
---|
306 | | --program-trans=* | --program-tran=* \
|
---|
307 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
308 | program_transform_name="$ac_optarg" ;;
|
---|
309 |
|
---|
310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
311 | | -silent | --silent | --silen | --sile | --sil)
|
---|
312 | silent=yes ;;
|
---|
313 |
|
---|
314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
315 | ac_prev=sbindir ;;
|
---|
316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
317 | | --sbi=* | --sb=*)
|
---|
318 | sbindir="$ac_optarg" ;;
|
---|
319 |
|
---|
320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
322 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
323 | | --sha | --sh)
|
---|
324 | ac_prev=sharedstatedir ;;
|
---|
325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
328 | | --sha=* | --sh=*)
|
---|
329 | sharedstatedir="$ac_optarg" ;;
|
---|
330 |
|
---|
331 | -site | --site | --sit)
|
---|
332 | ac_prev=site ;;
|
---|
333 | -site=* | --site=* | --sit=*)
|
---|
334 | site="$ac_optarg" ;;
|
---|
335 |
|
---|
336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
337 | ac_prev=srcdir ;;
|
---|
338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
339 | srcdir="$ac_optarg" ;;
|
---|
340 |
|
---|
341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
342 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
343 | ac_prev=sysconfdir ;;
|
---|
344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
346 | sysconfdir="$ac_optarg" ;;
|
---|
347 |
|
---|
348 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
349 | ac_prev=target ;;
|
---|
350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
351 | target="$ac_optarg" ;;
|
---|
352 |
|
---|
353 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
354 | verbose=yes ;;
|
---|
355 |
|
---|
356 | -version | --version | --versio | --versi | --vers)
|
---|
357 | echo "configure generated by autoconf version 2.13"
|
---|
358 | exit 0 ;;
|
---|
359 |
|
---|
360 | -with-* | --with-*)
|
---|
361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
362 | # Reject names that are not valid shell variable names.
|
---|
363 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
365 | fi
|
---|
366 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
367 | case "$ac_option" in
|
---|
368 | *=*) ;;
|
---|
369 | *) ac_optarg=yes ;;
|
---|
370 | esac
|
---|
371 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
372 |
|
---|
373 | -without-* | --without-*)
|
---|
374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
375 | # Reject names that are not valid shell variable names.
|
---|
376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
378 | fi
|
---|
379 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
380 | eval "with_${ac_package}=no" ;;
|
---|
381 |
|
---|
382 | --x)
|
---|
383 | # Obsolete; use --with-x.
|
---|
384 | with_x=yes ;;
|
---|
385 |
|
---|
386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
387 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
388 | ac_prev=x_includes ;;
|
---|
389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
391 | x_includes="$ac_optarg" ;;
|
---|
392 |
|
---|
393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
395 | ac_prev=x_libraries ;;
|
---|
396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
398 | x_libraries="$ac_optarg" ;;
|
---|
399 |
|
---|
400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
401 | ;;
|
---|
402 |
|
---|
403 | *)
|
---|
404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
405 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
406 | fi
|
---|
407 | if test "x$nonopt" != xNONE; then
|
---|
408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
409 | fi
|
---|
410 | nonopt="$ac_option"
|
---|
411 | ;;
|
---|
412 |
|
---|
413 | esac
|
---|
414 | done
|
---|
415 |
|
---|
416 | if test -n "$ac_prev"; then
|
---|
417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
418 | fi
|
---|
419 |
|
---|
420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
421 |
|
---|
422 | # File descriptor usage:
|
---|
423 | # 0 standard input
|
---|
424 | # 1 file creation
|
---|
425 | # 2 errors and warnings
|
---|
426 | # 3 some systems may open it to /dev/tty
|
---|
427 | # 4 used on the Kubota Titan
|
---|
428 | # 6 checking for... messages and results
|
---|
429 | # 5 compiler messages saved in config.log
|
---|
430 | if test "$silent" = yes; then
|
---|
431 | exec 6>/dev/null
|
---|
432 | else
|
---|
433 | exec 6>&1
|
---|
434 | fi
|
---|
435 | exec 5>./config.log
|
---|
436 |
|
---|
437 | echo "\
|
---|
438 | This file contains any messages produced by compilers while
|
---|
439 | running configure, to aid debugging if configure makes a mistake.
|
---|
440 | " 1>&5
|
---|
441 |
|
---|
442 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
443 | # Also quote any args containing shell metacharacters.
|
---|
444 | ac_configure_args=
|
---|
445 | for ac_arg
|
---|
446 | do
|
---|
447 | case "$ac_arg" in
|
---|
448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
449 | | --no-cr | --no-c) ;;
|
---|
450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
455 | esac
|
---|
456 | done
|
---|
457 |
|
---|
458 | # NLS nuisances.
|
---|
459 | # Only set these to C if already set. These must not be set unconditionally
|
---|
460 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
461 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
462 | # Non-C LC_CTYPE values break the ctype check.
|
---|
463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
464 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
465 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
466 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
467 |
|
---|
468 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
469 | rm -rf conftest* confdefs.h
|
---|
470 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
471 | echo > confdefs.h
|
---|
472 |
|
---|
473 | # A filename unique to this package, relative to the directory that
|
---|
474 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
475 | ac_unique_file=gprof.c
|
---|
476 |
|
---|
477 | # Find the source files, if location was not specified.
|
---|
478 | if test -z "$srcdir"; then
|
---|
479 | ac_srcdir_defaulted=yes
|
---|
480 | # Try the directory containing this script, then its parent.
|
---|
481 | ac_prog=$0
|
---|
482 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
483 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
484 | srcdir=$ac_confdir
|
---|
485 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
486 | srcdir=..
|
---|
487 | fi
|
---|
488 | else
|
---|
489 | ac_srcdir_defaulted=no
|
---|
490 | fi
|
---|
491 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
492 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
493 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
494 | else
|
---|
495 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
496 | fi
|
---|
497 | fi
|
---|
498 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
499 |
|
---|
500 | # Prefer explicitly selected file to automatically selected ones.
|
---|
501 | if test -z "$CONFIG_SITE"; then
|
---|
502 | if test "x$prefix" != xNONE; then
|
---|
503 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
504 | else
|
---|
505 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
506 | fi
|
---|
507 | fi
|
---|
508 | for ac_site_file in $CONFIG_SITE; do
|
---|
509 | if test -r "$ac_site_file"; then
|
---|
510 | echo "loading site script $ac_site_file"
|
---|
511 | . "$ac_site_file"
|
---|
512 | fi
|
---|
513 | done
|
---|
514 |
|
---|
515 | if test -r "$cache_file"; then
|
---|
516 | echo "loading cache $cache_file"
|
---|
517 | . $cache_file
|
---|
518 | else
|
---|
519 | echo "creating cache $cache_file"
|
---|
520 | > $cache_file
|
---|
521 | fi
|
---|
522 |
|
---|
523 | ac_ext=c
|
---|
524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
525 | ac_cpp='$CPP $CPPFLAGS'
|
---|
526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
528 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
529 |
|
---|
530 | ac_exeext=
|
---|
531 | ac_objext=o
|
---|
532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
533 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
535 | ac_n= ac_c='
|
---|
536 | ' ac_t=' '
|
---|
537 | else
|
---|
538 | ac_n=-n ac_c= ac_t=
|
---|
539 | fi
|
---|
540 | else
|
---|
541 | ac_n= ac_c='\c' ac_t=
|
---|
542 | fi
|
---|
543 |
|
---|
544 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
---|
545 | echo "configure:546: checking for path separator" >&5
|
---|
546 | # Filter path to get backslahes into forwardslashes
|
---|
547 | case "`uname -s 2> /dev/null`" in
|
---|
548 | OS/2)
|
---|
549 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
---|
550 | PATH_IFS=';'
|
---|
551 | ;;
|
---|
552 | *)
|
---|
553 | PATH_IFS=':'
|
---|
554 | ;;
|
---|
555 | esac
|
---|
556 | echo "$ac_t""${PATH_IFS}" 1>&6
|
---|
557 |
|
---|
558 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
559 | echo "configure:560: checking for Cygwin environment" >&5
|
---|
560 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
561 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
562 | else
|
---|
563 | cat > conftest.$ac_ext <<EOF
|
---|
564 | #line 565 "configure"
|
---|
565 | #include "confdefs.h"
|
---|
566 |
|
---|
567 | int main() {
|
---|
568 |
|
---|
569 | #ifndef __CYGWIN__
|
---|
570 | #define __CYGWIN__ __CYGWIN32__
|
---|
571 | #endif
|
---|
572 | return __CYGWIN__;
|
---|
573 | ; return 0; }
|
---|
574 | EOF
|
---|
575 | if { (eval echo configure:576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
576 | rm -rf conftest*
|
---|
577 | ac_cv_cygwin=yes
|
---|
578 | else
|
---|
579 | echo "configure: failed program was:" >&5
|
---|
580 | cat conftest.$ac_ext >&5
|
---|
581 | rm -rf conftest*
|
---|
582 | ac_cv_cygwin=no
|
---|
583 | fi
|
---|
584 | rm -f conftest*
|
---|
585 | rm -f conftest*
|
---|
586 | fi
|
---|
587 |
|
---|
588 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
589 | CYGWIN=
|
---|
590 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
591 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
592 | echo "configure:593: checking for mingw32 environment" >&5
|
---|
593 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
594 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
595 | else
|
---|
596 | cat > conftest.$ac_ext <<EOF
|
---|
597 | #line 598 "configure"
|
---|
598 | #include "confdefs.h"
|
---|
599 |
|
---|
600 | int main() {
|
---|
601 | return __MINGW32__;
|
---|
602 | ; return 0; }
|
---|
603 | EOF
|
---|
604 | if { (eval echo configure:605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
605 | rm -rf conftest*
|
---|
606 | ac_cv_mingw32=yes
|
---|
607 | else
|
---|
608 | echo "configure: failed program was:" >&5
|
---|
609 | cat conftest.$ac_ext >&5
|
---|
610 | rm -rf conftest*
|
---|
611 | ac_cv_mingw32=no
|
---|
612 | fi
|
---|
613 | rm -f conftest*
|
---|
614 | rm -f conftest*
|
---|
615 | fi
|
---|
616 |
|
---|
617 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
618 | MINGW32=
|
---|
619 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
620 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
---|
621 | echo "configure:622: checking for EMX/OS2 environment" >&5
|
---|
622 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
---|
623 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
624 | else
|
---|
625 | : ${CC=gcc.exe}
|
---|
626 | cat > conftest.$ac_ext <<EOF
|
---|
627 | #line 628 "configure"
|
---|
628 | #include "confdefs.h"
|
---|
629 |
|
---|
630 | int main() {
|
---|
631 | return __EMX__;
|
---|
632 | ; return 0; }
|
---|
633 | EOF
|
---|
634 | if { (eval echo configure:635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
635 | rm -rf conftest*
|
---|
636 | ac_cv_emxos2=yes
|
---|
637 | else
|
---|
638 | echo "configure: failed program was:" >&5
|
---|
639 | cat conftest.$ac_ext >&5
|
---|
640 | rm -rf conftest*
|
---|
641 | ac_cv_emxos2=no
|
---|
642 | fi
|
---|
643 | rm -f conftest*
|
---|
644 | rm -f conftest*
|
---|
645 | fi
|
---|
646 |
|
---|
647 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
---|
648 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
---|
649 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
650 | else
|
---|
651 | if test "$ac_cv_emxos2" = yes ; then
|
---|
652 | ac_cv_libpre=
|
---|
653 | else
|
---|
654 | ac_cv_libpre=lib
|
---|
655 | fi
|
---|
656 |
|
---|
657 | fi
|
---|
658 |
|
---|
659 | EMXOS2=
|
---|
660 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
---|
661 |
|
---|
662 |
|
---|
663 |
|
---|
664 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
665 | echo "configure:666: checking for executable suffix" >&5
|
---|
666 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
667 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
668 | else
|
---|
669 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
670 | ac_cv_exeext=.exe
|
---|
671 | else
|
---|
672 | rm -f conftest*
|
---|
673 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
674 | ac_cv_exeext=
|
---|
675 | if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
676 | for file in conftest.*; do
|
---|
677 | case $file in
|
---|
678 | *.c | *.o | *.obj) ;;
|
---|
679 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
680 | esac
|
---|
681 | done
|
---|
682 | else
|
---|
683 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
684 | fi
|
---|
685 | rm -f conftest*
|
---|
686 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
687 | fi
|
---|
688 | fi
|
---|
689 |
|
---|
690 | EXEEXT=""
|
---|
691 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
692 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
693 | ac_exeext=$EXEEXT
|
---|
694 |
|
---|
695 |
|
---|
696 |
|
---|
697 | ac_aux_dir=
|
---|
698 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
699 | if test -f $ac_dir/install-sh; then
|
---|
700 | ac_aux_dir=$ac_dir
|
---|
701 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
702 | break
|
---|
703 | elif test -f $ac_dir/install.sh; then
|
---|
704 | ac_aux_dir=$ac_dir
|
---|
705 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
706 | break
|
---|
707 | fi
|
---|
708 | done
|
---|
709 | if test -z "$ac_aux_dir"; then
|
---|
710 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
---|
711 | fi
|
---|
712 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
713 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
714 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
715 |
|
---|
716 |
|
---|
717 | # Do some error checking and defaulting for the host and target type.
|
---|
718 | # The inputs are:
|
---|
719 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
720 | #
|
---|
721 | # The rules are:
|
---|
722 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
723 | # same time.
|
---|
724 | # 2. Host defaults to nonopt.
|
---|
725 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
726 | # as determined by config.guess.
|
---|
727 | # 4. Target and build default to nonopt.
|
---|
728 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
729 |
|
---|
730 | # The aliases save the names the user supplied, while $host etc.
|
---|
731 | # will get canonicalized.
|
---|
732 | case $host---$target---$nonopt in
|
---|
733 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
734 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
735 | esac
|
---|
736 |
|
---|
737 |
|
---|
738 | # Make sure we can run config.sub.
|
---|
739 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
740 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
741 | fi
|
---|
742 |
|
---|
743 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
744 | echo "configure:745: checking host system type" >&5
|
---|
745 |
|
---|
746 | host_alias=$host
|
---|
747 | case "$host_alias" in
|
---|
748 | NONE)
|
---|
749 | case $nonopt in
|
---|
750 | NONE)
|
---|
751 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
752 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
753 | fi ;;
|
---|
754 | *) host_alias=$nonopt ;;
|
---|
755 | esac ;;
|
---|
756 | esac
|
---|
757 |
|
---|
758 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
759 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
760 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
761 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
762 | echo "$ac_t""$host" 1>&6
|
---|
763 |
|
---|
764 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
765 | echo "configure:766: checking target system type" >&5
|
---|
766 |
|
---|
767 | target_alias=$target
|
---|
768 | case "$target_alias" in
|
---|
769 | NONE)
|
---|
770 | case $nonopt in
|
---|
771 | NONE) target_alias=$host_alias ;;
|
---|
772 | *) target_alias=$nonopt ;;
|
---|
773 | esac ;;
|
---|
774 | esac
|
---|
775 |
|
---|
776 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
777 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
778 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
779 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
780 | echo "$ac_t""$target" 1>&6
|
---|
781 |
|
---|
782 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
783 | echo "configure:784: checking build system type" >&5
|
---|
784 |
|
---|
785 | build_alias=$build
|
---|
786 | case "$build_alias" in
|
---|
787 | NONE)
|
---|
788 | case $nonopt in
|
---|
789 | NONE) build_alias=$host_alias ;;
|
---|
790 | *) build_alias=$nonopt ;;
|
---|
791 | esac ;;
|
---|
792 | esac
|
---|
793 |
|
---|
794 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
795 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
796 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
797 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
798 | echo "$ac_t""$build" 1>&6
|
---|
799 |
|
---|
800 | test "$host_alias" != "$target_alias" &&
|
---|
801 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
802 | NONENONEs,x,x, &&
|
---|
803 | program_prefix=${target_alias}-
|
---|
804 |
|
---|
805 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
806 | set dummy gcc; ac_word=$2
|
---|
807 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
808 | echo "configure:809: checking for $ac_word" >&5
|
---|
809 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
810 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
811 | else
|
---|
812 | if test -n "$CC"; then
|
---|
813 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
814 | else
|
---|
815 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
816 | ac_dummy="$PATH"
|
---|
817 | for ac_dir in $ac_dummy; do
|
---|
818 | test -z "$ac_dir" && ac_dir=.
|
---|
819 | if test -f $ac_dir/$ac_word -o \
|
---|
820 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
821 | ac_cv_prog_CC="gcc"
|
---|
822 | break
|
---|
823 | fi
|
---|
824 | done
|
---|
825 | IFS="$ac_save_ifs"
|
---|
826 | fi
|
---|
827 | fi
|
---|
828 | CC="$ac_cv_prog_CC"
|
---|
829 | if test -n "$CC"; then
|
---|
830 | echo "$ac_t""$CC" 1>&6
|
---|
831 | else
|
---|
832 | echo "$ac_t""no" 1>&6
|
---|
833 | fi
|
---|
834 |
|
---|
835 | if test -z "$CC"; then
|
---|
836 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
837 | set dummy cc; ac_word=$2
|
---|
838 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
839 | echo "configure:840: checking for $ac_word" >&5
|
---|
840 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
841 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
842 | else
|
---|
843 | if test -n "$CC"; then
|
---|
844 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
845 | else
|
---|
846 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
847 | ac_prog_rejected=no
|
---|
848 | ac_dummy="$PATH"
|
---|
849 | for ac_dir in $ac_dummy; do
|
---|
850 | test -z "$ac_dir" && ac_dir=.
|
---|
851 | if test -f $ac_dir/$ac_word -o \
|
---|
852 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
853 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
854 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
855 | ac_prog_rejected=yes
|
---|
856 | continue
|
---|
857 | fi
|
---|
858 | ac_cv_prog_CC="cc"
|
---|
859 | break
|
---|
860 | fi
|
---|
861 | done
|
---|
862 | IFS="$ac_save_ifs"
|
---|
863 | if test $ac_prog_rejected = yes; then
|
---|
864 | # We found a bogon in the path, so make sure we never use it.
|
---|
865 | set dummy $ac_cv_prog_CC
|
---|
866 | shift
|
---|
867 | if test $# -gt 0; then
|
---|
868 | # We chose a different compiler from the bogus one.
|
---|
869 | # However, it has the same basename, so the bogon will be chosen
|
---|
870 | # first if we set CC to just the basename; use the full file name.
|
---|
871 | shift
|
---|
872 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
873 | shift
|
---|
874 | ac_cv_prog_CC="$@"
|
---|
875 | fi
|
---|
876 | fi
|
---|
877 | fi
|
---|
878 | fi
|
---|
879 | CC="$ac_cv_prog_CC"
|
---|
880 | if test -n "$CC"; then
|
---|
881 | echo "$ac_t""$CC" 1>&6
|
---|
882 | else
|
---|
883 | echo "$ac_t""no" 1>&6
|
---|
884 | fi
|
---|
885 |
|
---|
886 | if test -z "$CC"; then
|
---|
887 | case "`uname -s`" in
|
---|
888 | *win32* | *WIN32*)
|
---|
889 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
890 | set dummy cl; ac_word=$2
|
---|
891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
892 | echo "configure:893: checking for $ac_word" >&5
|
---|
893 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
894 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
895 | else
|
---|
896 | if test -n "$CC"; then
|
---|
897 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
898 | else
|
---|
899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
900 | ac_dummy="$PATH"
|
---|
901 | for ac_dir in $ac_dummy; do
|
---|
902 | test -z "$ac_dir" && ac_dir=.
|
---|
903 | if test -f $ac_dir/$ac_word -o \
|
---|
904 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
905 | ac_cv_prog_CC="cl"
|
---|
906 | break
|
---|
907 | fi
|
---|
908 | done
|
---|
909 | IFS="$ac_save_ifs"
|
---|
910 | fi
|
---|
911 | fi
|
---|
912 | CC="$ac_cv_prog_CC"
|
---|
913 | if test -n "$CC"; then
|
---|
914 | echo "$ac_t""$CC" 1>&6
|
---|
915 | else
|
---|
916 | echo "$ac_t""no" 1>&6
|
---|
917 | fi
|
---|
918 | ;;
|
---|
919 | esac
|
---|
920 | fi
|
---|
921 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
922 | fi
|
---|
923 |
|
---|
924 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
925 | echo "configure:926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
926 |
|
---|
927 | ac_ext=c
|
---|
928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
929 | ac_cpp='$CPP $CPPFLAGS'
|
---|
930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
932 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
933 |
|
---|
934 | cat > conftest.$ac_ext << EOF
|
---|
935 |
|
---|
936 | #line 937 "configure"
|
---|
937 | #include "confdefs.h"
|
---|
938 |
|
---|
939 | main(){return(0);}
|
---|
940 | EOF
|
---|
941 | if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
942 | ac_cv_prog_cc_works=yes
|
---|
943 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
944 | if (./conftest; exit) 2>/dev/null; then
|
---|
945 | ac_cv_prog_cc_cross=no
|
---|
946 | else
|
---|
947 | ac_cv_prog_cc_cross=yes
|
---|
948 | fi
|
---|
949 | else
|
---|
950 | echo "configure: failed program was:" >&5
|
---|
951 | cat conftest.$ac_ext >&5
|
---|
952 | ac_cv_prog_cc_works=no
|
---|
953 | fi
|
---|
954 | rm -fr conftest*
|
---|
955 | ac_ext=c
|
---|
956 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
957 | ac_cpp='$CPP $CPPFLAGS'
|
---|
958 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
959 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
960 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
961 |
|
---|
962 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
963 | if test $ac_cv_prog_cc_works = no; then
|
---|
964 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
965 | fi
|
---|
966 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
967 | echo "configure:968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
968 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
969 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
970 |
|
---|
971 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
972 | echo "configure:973: checking whether we are using GNU C" >&5
|
---|
973 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
974 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
975 | else
|
---|
976 | cat > conftest.c <<EOF
|
---|
977 | #ifdef __GNUC__
|
---|
978 | yes;
|
---|
979 | #endif
|
---|
980 | EOF
|
---|
981 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
982 | ac_cv_prog_gcc=yes
|
---|
983 | else
|
---|
984 | ac_cv_prog_gcc=no
|
---|
985 | fi
|
---|
986 | fi
|
---|
987 |
|
---|
988 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
989 |
|
---|
990 | if test $ac_cv_prog_gcc = yes; then
|
---|
991 | GCC=yes
|
---|
992 | else
|
---|
993 | GCC=
|
---|
994 | fi
|
---|
995 |
|
---|
996 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
997 | ac_save_CFLAGS="$CFLAGS"
|
---|
998 | CFLAGS=
|
---|
999 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1000 | echo "configure:1001: checking whether ${CC-cc} accepts -g" >&5
|
---|
1001 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1002 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1003 | else
|
---|
1004 | echo 'void f(){}' > conftest.c
|
---|
1005 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1006 | ac_cv_prog_cc_g=yes
|
---|
1007 | else
|
---|
1008 | ac_cv_prog_cc_g=no
|
---|
1009 | fi
|
---|
1010 | rm -f conftest*
|
---|
1011 |
|
---|
1012 | fi
|
---|
1013 |
|
---|
1014 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1015 | if test "$ac_test_CFLAGS" = set; then
|
---|
1016 | CFLAGS="$ac_save_CFLAGS"
|
---|
1017 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1018 | if test "$GCC" = yes; then
|
---|
1019 | CFLAGS="-g -O2"
|
---|
1020 | else
|
---|
1021 | CFLAGS="-g"
|
---|
1022 | fi
|
---|
1023 | else
|
---|
1024 | if test "$GCC" = yes; then
|
---|
1025 | CFLAGS="-O2"
|
---|
1026 | else
|
---|
1027 | CFLAGS=
|
---|
1028 | fi
|
---|
1029 | fi
|
---|
1030 |
|
---|
1031 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
---|
1032 | echo "configure:1033: checking for POSIXized ISC" >&5
|
---|
1033 | if test -d /etc/conf/kconfig.d &&
|
---|
1034 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
---|
1035 | then
|
---|
1036 | echo "$ac_t""yes" 1>&6
|
---|
1037 | ISC=yes # If later tests want to check for ISC.
|
---|
1038 | cat >> confdefs.h <<\EOF
|
---|
1039 | #define _POSIX_SOURCE 1
|
---|
1040 | EOF
|
---|
1041 |
|
---|
1042 | if test "$GCC" = yes; then
|
---|
1043 | CC="$CC -posix"
|
---|
1044 | else
|
---|
1045 | CC="$CC -Xp"
|
---|
1046 | fi
|
---|
1047 | else
|
---|
1048 | echo "$ac_t""no" 1>&6
|
---|
1049 | ISC=
|
---|
1050 | fi
|
---|
1051 |
|
---|
1052 |
|
---|
1053 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
---|
1054 | # Find a good install program. We prefer a C program (faster),
|
---|
1055 | # so one script is as good as another. But avoid the broken or
|
---|
1056 | # incompatible versions:
|
---|
1057 | # SysV /etc/install, /usr/sbin/install
|
---|
1058 | # SunOS /usr/etc/install
|
---|
1059 | # IRIX /sbin/install
|
---|
1060 | # AIX /bin/install
|
---|
1061 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1062 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1063 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1064 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1065 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
1066 | echo "configure:1067: checking for a BSD compatible install" >&5
|
---|
1067 | if test -z "$INSTALL"; then
|
---|
1068 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
1069 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1070 | else
|
---|
1071 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
1072 | for ac_dir in $PATH; do
|
---|
1073 | # Account for people who put trailing slashes in PATH elements.
|
---|
1074 | case "$ac_dir/" in
|
---|
1075 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
1076 | # We reject the install program from OS/2 or W3.1
|
---|
1077 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
1078 | *)
|
---|
1079 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1080 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1081 | # by default.
|
---|
1082 | for ac_prog in ginstall scoinst install; do
|
---|
1083 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
1084 | if test $ac_prog = install &&
|
---|
1085 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
1086 | # AIX install. It has an incompatible calling convention.
|
---|
1087 | :
|
---|
1088 | else
|
---|
1089 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
1090 | break 2
|
---|
1091 | fi
|
---|
1092 | fi
|
---|
1093 | done
|
---|
1094 | ;;
|
---|
1095 | esac
|
---|
1096 | done
|
---|
1097 | IFS="$ac_save_IFS"
|
---|
1098 |
|
---|
1099 | fi
|
---|
1100 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1101 | INSTALL="$ac_cv_path_install"
|
---|
1102 | else
|
---|
1103 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1104 | # path for INSTALL within a source directory, because that will
|
---|
1105 | # break other packages using the cache if that directory is
|
---|
1106 | # removed, or if the path is relative.
|
---|
1107 | INSTALL="$ac_install_sh"
|
---|
1108 | fi
|
---|
1109 | fi
|
---|
1110 | echo "$ac_t""$INSTALL" 1>&6
|
---|
1111 |
|
---|
1112 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1113 | # It thinks the first close brace ends the variable substitution.
|
---|
1114 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1115 |
|
---|
1116 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
1117 |
|
---|
1118 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1119 |
|
---|
1120 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
1121 | echo "configure:1122: checking whether build environment is sane" >&5
|
---|
1122 | # Just in case
|
---|
1123 | sleep 1
|
---|
1124 | echo timestamp > conftestfile
|
---|
1125 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1126 | # arguments. Must try -L first in case configure is actually a
|
---|
1127 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1128 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1129 | # directory).
|
---|
1130 | if (
|
---|
1131 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
1132 | if test "$*" = "X"; then
|
---|
1133 | # -L didn't work.
|
---|
1134 | set X `ls -t $srcdir/configure conftestfile`
|
---|
1135 | fi
|
---|
1136 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
1137 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
1138 |
|
---|
1139 | # If neither matched, then we have a broken ls. This can happen
|
---|
1140 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1141 | # broken ls alias from the environment. This has actually
|
---|
1142 | # happened. Such a system could not be considered "sane".
|
---|
1143 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1144 | alias in your environment" 1>&2; exit 1; }
|
---|
1145 | fi
|
---|
1146 |
|
---|
1147 | test "$2" = conftestfile
|
---|
1148 | )
|
---|
1149 | then
|
---|
1150 | # Ok.
|
---|
1151 | :
|
---|
1152 | else
|
---|
1153 | { echo "configure: error: newly created file is older than distributed files!
|
---|
1154 | Check your system clock" 1>&2; exit 1; }
|
---|
1155 | fi
|
---|
1156 | rm -f conftest*
|
---|
1157 | echo "$ac_t""yes" 1>&6
|
---|
1158 | if test "$program_transform_name" = s,x,x,; then
|
---|
1159 | program_transform_name=
|
---|
1160 | else
|
---|
1161 | # Double any \ or $. echo might interpret backslashes.
|
---|
1162 | cat <<\EOF_SED > conftestsed
|
---|
1163 | s,\\,\\\\,g; s,\$,$$,g
|
---|
1164 | EOF_SED
|
---|
1165 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
1166 | rm -f conftestsed
|
---|
1167 | fi
|
---|
1168 | test "$program_prefix" != NONE &&
|
---|
1169 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
1170 | # Use a double $ so make ignores it.
|
---|
1171 | test "$program_suffix" != NONE &&
|
---|
1172 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
1173 |
|
---|
1174 | # sed with no file args requires a program.
|
---|
1175 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
1176 |
|
---|
1177 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
1178 | echo "configure:1179: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
1179 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
1180 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
1181 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1182 | else
|
---|
1183 | cat > conftestmake <<\EOF
|
---|
1184 | all:
|
---|
1185 | @echo 'ac_maketemp="${MAKE}"'
|
---|
1186 | EOF
|
---|
1187 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1188 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
1189 | if test -n "$ac_maketemp"; then
|
---|
1190 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1191 | else
|
---|
1192 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1193 | fi
|
---|
1194 | rm -f conftestmake
|
---|
1195 | fi
|
---|
1196 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1197 | echo "$ac_t""yes" 1>&6
|
---|
1198 | SET_MAKE=
|
---|
1199 | else
|
---|
1200 | echo "$ac_t""no" 1>&6
|
---|
1201 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1202 | fi
|
---|
1203 |
|
---|
1204 |
|
---|
1205 | PACKAGE=gprof
|
---|
1206 |
|
---|
1207 | VERSION=${BFD_VERSION}
|
---|
1208 |
|
---|
1209 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
1210 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
1211 | fi
|
---|
1212 | cat >> confdefs.h <<EOF
|
---|
1213 | #define PACKAGE "$PACKAGE"
|
---|
1214 | EOF
|
---|
1215 |
|
---|
1216 | cat >> confdefs.h <<EOF
|
---|
1217 | #define VERSION "$VERSION"
|
---|
1218 | EOF
|
---|
1219 |
|
---|
1220 |
|
---|
1221 |
|
---|
1222 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
1223 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
1224 | echo "configure:1225: checking for working aclocal" >&5
|
---|
1225 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1226 | # an executable is not found, even if stderr is redirected.
|
---|
1227 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1228 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
1229 | ACLOCAL=aclocal
|
---|
1230 | echo "$ac_t""found" 1>&6
|
---|
1231 | else
|
---|
1232 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
1233 | echo "$ac_t""missing" 1>&6
|
---|
1234 | fi
|
---|
1235 |
|
---|
1236 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
1237 | echo "configure:1238: checking for working autoconf" >&5
|
---|
1238 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1239 | # an executable is not found, even if stderr is redirected.
|
---|
1240 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1241 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
1242 | AUTOCONF=autoconf
|
---|
1243 | echo "$ac_t""found" 1>&6
|
---|
1244 | else
|
---|
1245 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
1246 | echo "$ac_t""missing" 1>&6
|
---|
1247 | fi
|
---|
1248 |
|
---|
1249 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
1250 | echo "configure:1251: checking for working automake" >&5
|
---|
1251 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1252 | # an executable is not found, even if stderr is redirected.
|
---|
1253 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1254 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
1255 | AUTOMAKE=automake
|
---|
1256 | echo "$ac_t""found" 1>&6
|
---|
1257 | else
|
---|
1258 | AUTOMAKE="$missing_dir/missing automake"
|
---|
1259 | echo "$ac_t""missing" 1>&6
|
---|
1260 | fi
|
---|
1261 |
|
---|
1262 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
1263 | echo "configure:1264: checking for working autoheader" >&5
|
---|
1264 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1265 | # an executable is not found, even if stderr is redirected.
|
---|
1266 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1267 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
1268 | AUTOHEADER=autoheader
|
---|
1269 | echo "$ac_t""found" 1>&6
|
---|
1270 | else
|
---|
1271 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
1272 | echo "$ac_t""missing" 1>&6
|
---|
1273 | fi
|
---|
1274 |
|
---|
1275 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
1276 | echo "configure:1277: checking for working makeinfo" >&5
|
---|
1277 | # Run test in a subshell; some versions of sh will print an error if
|
---|
1278 | # an executable is not found, even if stderr is redirected.
|
---|
1279 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
1280 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
1281 | MAKEINFO=makeinfo
|
---|
1282 | echo "$ac_t""found" 1>&6
|
---|
1283 | else
|
---|
1284 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
1285 | echo "$ac_t""missing" 1>&6
|
---|
1286 | fi
|
---|
1287 |
|
---|
1288 |
|
---|
1289 |
|
---|
1290 | # Check whether --enable-shared or --disable-shared was given.
|
---|
1291 | if test "${enable_shared+set}" = set; then
|
---|
1292 | enableval="$enable_shared"
|
---|
1293 | p=${PACKAGE-default}
|
---|
1294 | case "$enableval" in
|
---|
1295 | yes) enable_shared=yes ;;
|
---|
1296 | no) enable_shared=no ;;
|
---|
1297 | *)
|
---|
1298 | enable_shared=no
|
---|
1299 | # Look at the argument we got. We use all the common list separators.
|
---|
1300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1301 | for pkg in $enableval; do
|
---|
1302 | if test "X$pkg" = "X$p"; then
|
---|
1303 | enable_shared=yes
|
---|
1304 | fi
|
---|
1305 | done
|
---|
1306 | IFS="$ac_save_ifs"
|
---|
1307 | ;;
|
---|
1308 | esac
|
---|
1309 | else
|
---|
1310 | enable_shared=yes
|
---|
1311 | fi
|
---|
1312 |
|
---|
1313 | # Check whether --enable-static or --disable-static was given.
|
---|
1314 | if test "${enable_static+set}" = set; then
|
---|
1315 | enableval="$enable_static"
|
---|
1316 | p=${PACKAGE-default}
|
---|
1317 | case "$enableval" in
|
---|
1318 | yes) enable_static=yes ;;
|
---|
1319 | no) enable_static=no ;;
|
---|
1320 | *)
|
---|
1321 | enable_static=no
|
---|
1322 | # Look at the argument we got. We use all the common list separators.
|
---|
1323 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1324 | for pkg in $enableval; do
|
---|
1325 | if test "X$pkg" = "X$p"; then
|
---|
1326 | enable_static=yes
|
---|
1327 | fi
|
---|
1328 | done
|
---|
1329 | IFS="$ac_save_ifs"
|
---|
1330 | ;;
|
---|
1331 | esac
|
---|
1332 | else
|
---|
1333 | enable_static=yes
|
---|
1334 | fi
|
---|
1335 |
|
---|
1336 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
1337 | if test "${enable_fast_install+set}" = set; then
|
---|
1338 | enableval="$enable_fast_install"
|
---|
1339 | p=${PACKAGE-default}
|
---|
1340 | case "$enableval" in
|
---|
1341 | yes) enable_fast_install=yes ;;
|
---|
1342 | no) enable_fast_install=no ;;
|
---|
1343 | *)
|
---|
1344 | enable_fast_install=no
|
---|
1345 | # Look at the argument we got. We use all the common list separators.
|
---|
1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
1347 | for pkg in $enableval; do
|
---|
1348 | if test "X$pkg" = "X$p"; then
|
---|
1349 | enable_fast_install=yes
|
---|
1350 | fi
|
---|
1351 | done
|
---|
1352 | IFS="$ac_save_ifs"
|
---|
1353 | ;;
|
---|
1354 | esac
|
---|
1355 | else
|
---|
1356 | enable_fast_install=yes
|
---|
1357 | fi
|
---|
1358 |
|
---|
1359 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
1360 | if test "${with_gnu_ld+set}" = set; then
|
---|
1361 | withval="$with_gnu_ld"
|
---|
1362 | test "$withval" = no || with_gnu_ld=yes
|
---|
1363 | else
|
---|
1364 | with_gnu_ld=no
|
---|
1365 | fi
|
---|
1366 |
|
---|
1367 | ac_prog=ld
|
---|
1368 | if test "$ac_cv_prog_gcc" = yes; then
|
---|
1369 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
1370 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
1371 | echo "configure:1372: checking for ld used by GCC" >&5
|
---|
1372 | case $host in
|
---|
1373 | *-*-mingw*)
|
---|
1374 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
1375 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
1376 | *)
|
---|
1377 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
1378 | esac
|
---|
1379 | case "$ac_prog" in
|
---|
1380 | # Accept absolute paths.
|
---|
1381 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
1382 | re_direlt='/[^/][^/]*/\.\./'
|
---|
1383 | # Canonicalize the path of ld
|
---|
1384 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
1385 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
1386 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
1387 | done
|
---|
1388 | test -z "$LD" && LD="$ac_prog"
|
---|
1389 | ;;
|
---|
1390 | "")
|
---|
1391 | # If it fails, then pretend we aren't using GCC.
|
---|
1392 | ac_prog=ld
|
---|
1393 | ;;
|
---|
1394 | *)
|
---|
1395 | # If it is relative, then search for the first ld in PATH.
|
---|
1396 | with_gnu_ld=unknown
|
---|
1397 | ;;
|
---|
1398 | esac
|
---|
1399 | elif test "$with_gnu_ld" = yes; then
|
---|
1400 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
1401 | echo "configure:1402: checking for GNU ld" >&5
|
---|
1402 | else
|
---|
1403 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
1404 | echo "configure:1405: checking for non-GNU ld" >&5
|
---|
1405 | fi
|
---|
1406 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
---|
1407 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1408 | else
|
---|
1409 | if test -z "$LD"; then
|
---|
1410 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1411 | for ac_dir in $PATH; do
|
---|
1412 | test -z "$ac_dir" && ac_dir=.
|
---|
1413 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
1414 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
---|
1415 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
1416 | # but apparently some GNU ld's only accept -v.
|
---|
1417 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
1418 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
1419 | test "$with_gnu_ld" != no && break
|
---|
1420 | else
|
---|
1421 | test "$with_gnu_ld" != yes && break
|
---|
1422 | fi
|
---|
1423 | fi
|
---|
1424 | done
|
---|
1425 | IFS="$ac_save_ifs"
|
---|
1426 | else
|
---|
1427 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
1428 | fi
|
---|
1429 | fi
|
---|
1430 |
|
---|
1431 | LD="$ac_cv_path_LD"
|
---|
1432 | if test -n "$LD"; then
|
---|
1433 | echo "$ac_t""$LD" 1>&6
|
---|
1434 | else
|
---|
1435 | echo "$ac_t""no" 1>&6
|
---|
1436 | fi
|
---|
1437 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
1438 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
1439 | echo "configure:1440: checking if the linker ($LD) is GNU ld" >&5
|
---|
1440 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
1441 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1442 | else
|
---|
1443 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
1444 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
1445 | ac_cv_prog_gnu_ld=yes
|
---|
1446 | else
|
---|
1447 | ac_cv_prog_gnu_ld=no
|
---|
1448 | fi
|
---|
1449 | fi
|
---|
1450 |
|
---|
1451 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
---|
1452 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
---|
1453 |
|
---|
1454 |
|
---|
1455 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
1456 | echo "configure:1457: checking for $LD option to reload object files" >&5
|
---|
1457 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
1458 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1459 | else
|
---|
1460 | lt_cv_ld_reload_flag='-r'
|
---|
1461 | fi
|
---|
1462 |
|
---|
1463 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
1464 | reload_flag=$lt_cv_ld_reload_flag
|
---|
1465 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
1466 |
|
---|
1467 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
1468 | echo "configure:1469: checking for BSD-compatible nm" >&5
|
---|
1469 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
---|
1470 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1471 | else
|
---|
1472 | if test -n "$NM"; then
|
---|
1473 | # Let the user override the test.
|
---|
1474 | ac_cv_path_NM="$NM"
|
---|
1475 | else
|
---|
1476 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
1477 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
1478 | test -z "$ac_dir" && ac_dir=.
|
---|
1479 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
1480 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
1481 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
1482 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
1483 | # nm: unknown option "B" ignored
|
---|
1484 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
1485 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
1486 | ac_cv_path_NM="$tmp_nm -B"
|
---|
1487 | break
|
---|
1488 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
1489 | ac_cv_path_NM="$tmp_nm -p"
|
---|
1490 | break
|
---|
1491 | else
|
---|
1492 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
1493 | continue # so that we can try to find one that supports BSD flags
|
---|
1494 | fi
|
---|
1495 | fi
|
---|
1496 | done
|
---|
1497 | IFS="$ac_save_ifs"
|
---|
1498 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
---|
1499 | fi
|
---|
1500 | fi
|
---|
1501 |
|
---|
1502 | NM="$ac_cv_path_NM"
|
---|
1503 | echo "$ac_t""$NM" 1>&6
|
---|
1504 |
|
---|
1505 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
1506 | echo "configure:1507: checking whether ln -s works" >&5
|
---|
1507 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
1508 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1509 | else
|
---|
1510 | rm -f conftestdata
|
---|
1511 | if ln -s X conftestdata 2>/dev/null
|
---|
1512 | then
|
---|
1513 | rm -f conftestdata
|
---|
1514 | ac_cv_prog_LN_S="ln -s"
|
---|
1515 | else
|
---|
1516 | echo A > conftestdata;
|
---|
1517 | if ln conftestdata conftestdata2 2>/dev/null; then
|
---|
1518 | ac_cv_prog_LN_S=ln
|
---|
1519 | else
|
---|
1520 | ac_cv_prog_LN_S=cp
|
---|
1521 | fi
|
---|
1522 | fi
|
---|
1523 | rm -f conftestdata*
|
---|
1524 | fi
|
---|
1525 | LN_S="$ac_cv_prog_LN_S"
|
---|
1526 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
1527 | echo "$ac_t""yes" 1>&6
|
---|
1528 | else
|
---|
1529 | echo "$ac_t""no" 1>&6
|
---|
1530 | fi
|
---|
1531 |
|
---|
1532 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
1533 | echo "configure:1534: checking how to recognise dependant libraries" >&5
|
---|
1534 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
1535 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1536 | else
|
---|
1537 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
1538 | lt_cv_file_magic_test_file=
|
---|
1539 | lt_cv_deplibs_check_method='unknown'
|
---|
1540 | # Need to set the preceding variable on all platforms that support
|
---|
1541 | # interlibrary dependencies.
|
---|
1542 | # 'none' -- dependencies not supported.
|
---|
1543 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
1544 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
1545 | # 'test_compile' -- check by making test program.
|
---|
1546 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
1547 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
1548 | # If you have `file' or equivalent on your system and you're not sure
|
---|
1549 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
1550 |
|
---|
1551 | case "$host_os" in
|
---|
1552 | aix4*)
|
---|
1553 | lt_cv_deplibs_check_method=pass_all
|
---|
1554 | ;;
|
---|
1555 |
|
---|
1556 | beos*)
|
---|
1557 | lt_cv_deplibs_check_method=pass_all
|
---|
1558 | ;;
|
---|
1559 |
|
---|
1560 | bsdi4*)
|
---|
1561 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
1562 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1563 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1564 | ;;
|
---|
1565 |
|
---|
1566 | cygwin* | mingw* |pw32*)
|
---|
1567 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
1568 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
1569 | ;;
|
---|
1570 |
|
---|
1571 | freebsd* )
|
---|
1572 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
1573 | case "$host_cpu" in
|
---|
1574 | i*86 )
|
---|
1575 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
1576 | # Let's accept both of them until this is cleared up.
|
---|
1577 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
1578 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1579 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
1580 | ;;
|
---|
1581 | esac
|
---|
1582 | else
|
---|
1583 | lt_cv_deplibs_check_method=pass_all
|
---|
1584 | fi
|
---|
1585 | ;;
|
---|
1586 |
|
---|
1587 | gnu*)
|
---|
1588 | lt_cv_deplibs_check_method=pass_all
|
---|
1589 | ;;
|
---|
1590 |
|
---|
1591 | hpux10.20*)
|
---|
1592 | # TODO: Does this work for hpux-11 too?
|
---|
1593 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
|
---|
1594 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
1595 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
1596 | ;;
|
---|
1597 |
|
---|
1598 | irix5* | irix6*)
|
---|
1599 | case "$host_os" in
|
---|
1600 | irix5*)
|
---|
1601 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1602 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
1603 | ;;
|
---|
1604 | *)
|
---|
1605 | case "$LD" in
|
---|
1606 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
1607 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
1608 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
1609 | *) libmagic=never-match;;
|
---|
1610 | esac
|
---|
1611 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1612 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
1613 | ;;
|
---|
1614 | esac
|
---|
1615 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
1616 | lt_cv_deplibs_check_method=pass_all
|
---|
1617 | ;;
|
---|
1618 |
|
---|
1619 | # This must be Linux ELF.
|
---|
1620 | linux-gnu*)
|
---|
1621 | case "$host_cpu" in
|
---|
1622 | alpha* | i*86 | powerpc* | sparc* | ia64* )
|
---|
1623 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
1624 | *)
|
---|
1625 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
1626 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
1627 | esac
|
---|
1628 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
1629 | ;;
|
---|
1630 |
|
---|
1631 | netbsd*)
|
---|
1632 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
|
---|
1633 | else
|
---|
1634 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
---|
1635 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
1636 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1637 | fi
|
---|
1638 | ;;
|
---|
1639 |
|
---|
1640 | osf3* | osf4* | osf5*)
|
---|
1641 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
1642 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
1643 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
1644 | lt_cv_deplibs_check_method=pass_all
|
---|
1645 | ;;
|
---|
1646 |
|
---|
1647 | sco3.2v5*)
|
---|
1648 | lt_cv_deplibs_check_method=pass_all
|
---|
1649 | ;;
|
---|
1650 |
|
---|
1651 | solaris*)
|
---|
1652 | lt_cv_deplibs_check_method=pass_all
|
---|
1653 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
1654 | ;;
|
---|
1655 |
|
---|
1656 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
1657 | case "$host_vendor" in
|
---|
1658 | ncr)
|
---|
1659 | lt_cv_deplibs_check_method=pass_all
|
---|
1660 | ;;
|
---|
1661 | motorola)
|
---|
1662 | 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]'
|
---|
1663 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
1664 | ;;
|
---|
1665 | esac
|
---|
1666 | ;;
|
---|
1667 | esac
|
---|
1668 |
|
---|
1669 | fi
|
---|
1670 |
|
---|
1671 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
1672 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
1673 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
1674 |
|
---|
1675 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
1676 | echo "configure:1677: checking for object suffix" >&5
|
---|
1677 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
1678 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1679 | else
|
---|
1680 | rm -f conftest*
|
---|
1681 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
1682 | if { (eval echo configure:1683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
1683 | for ac_file in conftest.*; do
|
---|
1684 | case $ac_file in
|
---|
1685 | *.c) ;;
|
---|
1686 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
1687 | esac
|
---|
1688 | done
|
---|
1689 | else
|
---|
1690 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
1691 | fi
|
---|
1692 | rm -f conftest*
|
---|
1693 | fi
|
---|
1694 |
|
---|
1695 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
1696 | OBJEXT=$ac_cv_objext
|
---|
1697 | ac_objext=$ac_cv_objext
|
---|
1698 |
|
---|
1699 | if test $host != $build; then
|
---|
1700 | ac_tool_prefix=${host_alias}-
|
---|
1701 | else
|
---|
1702 | ac_tool_prefix=
|
---|
1703 | fi
|
---|
1704 |
|
---|
1705 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
1706 |
|
---|
1707 | # Only perform the check for file, if the check method requires it
|
---|
1708 | case "$deplibs_check_method" in
|
---|
1709 | file_magic*)
|
---|
1710 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
1711 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
1712 | echo "configure:1713: checking for ${ac_tool_prefix}file" >&5
|
---|
1713 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1714 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1715 | else
|
---|
1716 | case "$MAGIC_CMD" in
|
---|
1717 | /*)
|
---|
1718 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1719 | ;;
|
---|
1720 | ?:/*)
|
---|
1721 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1722 | ;;
|
---|
1723 | *)
|
---|
1724 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1725 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1726 | ac_dummy="/usr/bin:$PATH"
|
---|
1727 | for ac_dir in $ac_dummy; do
|
---|
1728 | test -z "$ac_dir" && ac_dir=.
|
---|
1729 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
1730 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
1731 | if test -n "$file_magic_test_file"; then
|
---|
1732 | case "$deplibs_check_method" in
|
---|
1733 | "file_magic "*)
|
---|
1734 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1735 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1736 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1737 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1738 | :
|
---|
1739 | else
|
---|
1740 | cat <<EOF 1>&2
|
---|
1741 |
|
---|
1742 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1743 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1744 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1745 | *** as such. This will affect the creation of libtool libraries that
|
---|
1746 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1747 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1748 | *** may want to report the problem to your system manager and/or to
|
---|
1749 | *** bug-libtool@gnu.org
|
---|
1750 |
|
---|
1751 | EOF
|
---|
1752 | fi ;;
|
---|
1753 | esac
|
---|
1754 | fi
|
---|
1755 | break
|
---|
1756 | fi
|
---|
1757 | done
|
---|
1758 | IFS="$ac_save_ifs"
|
---|
1759 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1760 | ;;
|
---|
1761 | esac
|
---|
1762 | fi
|
---|
1763 |
|
---|
1764 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1765 | if test -n "$MAGIC_CMD"; then
|
---|
1766 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1767 | else
|
---|
1768 | echo "$ac_t""no" 1>&6
|
---|
1769 | fi
|
---|
1770 |
|
---|
1771 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
1772 | if test -n "$ac_tool_prefix"; then
|
---|
1773 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
1774 | echo "configure:1775: checking for file" >&5
|
---|
1775 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
1776 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1777 | else
|
---|
1778 | case "$MAGIC_CMD" in
|
---|
1779 | /*)
|
---|
1780 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
1781 | ;;
|
---|
1782 | ?:/*)
|
---|
1783 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
1784 | ;;
|
---|
1785 | *)
|
---|
1786 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
1787 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1788 | ac_dummy="/usr/bin:$PATH"
|
---|
1789 | for ac_dir in $ac_dummy; do
|
---|
1790 | test -z "$ac_dir" && ac_dir=.
|
---|
1791 | if test -f $ac_dir/file; then
|
---|
1792 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
1793 | if test -n "$file_magic_test_file"; then
|
---|
1794 | case "$deplibs_check_method" in
|
---|
1795 | "file_magic "*)
|
---|
1796 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
1797 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1798 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
1799 | egrep "$file_magic_regex" > /dev/null; then
|
---|
1800 | :
|
---|
1801 | else
|
---|
1802 | cat <<EOF 1>&2
|
---|
1803 |
|
---|
1804 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
1805 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
1806 | *** The result is that libtool may fail to recognize shared libraries
|
---|
1807 | *** as such. This will affect the creation of libtool libraries that
|
---|
1808 | *** depend on shared libraries, but programs linked with such libtool
|
---|
1809 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
1810 | *** may want to report the problem to your system manager and/or to
|
---|
1811 | *** bug-libtool@gnu.org
|
---|
1812 |
|
---|
1813 | EOF
|
---|
1814 | fi ;;
|
---|
1815 | esac
|
---|
1816 | fi
|
---|
1817 | break
|
---|
1818 | fi
|
---|
1819 | done
|
---|
1820 | IFS="$ac_save_ifs"
|
---|
1821 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
1822 | ;;
|
---|
1823 | esac
|
---|
1824 | fi
|
---|
1825 |
|
---|
1826 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
1827 | if test -n "$MAGIC_CMD"; then
|
---|
1828 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
1829 | else
|
---|
1830 | echo "$ac_t""no" 1>&6
|
---|
1831 | fi
|
---|
1832 |
|
---|
1833 | else
|
---|
1834 | MAGIC_CMD=:
|
---|
1835 | fi
|
---|
1836 | fi
|
---|
1837 |
|
---|
1838 | fi
|
---|
1839 | ;;
|
---|
1840 | esac
|
---|
1841 |
|
---|
1842 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
1843 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
1844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1845 | echo "configure:1846: checking for $ac_word" >&5
|
---|
1846 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1847 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1848 | else
|
---|
1849 | if test -n "$RANLIB"; then
|
---|
1850 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1851 | else
|
---|
1852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1853 | ac_dummy="$PATH"
|
---|
1854 | for ac_dir in $ac_dummy; do
|
---|
1855 | test -z "$ac_dir" && ac_dir=.
|
---|
1856 | if test -f $ac_dir/$ac_word -o \
|
---|
1857 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1858 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
1859 | break
|
---|
1860 | fi
|
---|
1861 | done
|
---|
1862 | IFS="$ac_save_ifs"
|
---|
1863 | fi
|
---|
1864 | fi
|
---|
1865 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1866 | if test -n "$RANLIB"; then
|
---|
1867 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1868 | else
|
---|
1869 | echo "$ac_t""no" 1>&6
|
---|
1870 | fi
|
---|
1871 |
|
---|
1872 |
|
---|
1873 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
1874 | if test -n "$ac_tool_prefix"; then
|
---|
1875 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
1876 | set dummy ranlib; ac_word=$2
|
---|
1877 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1878 | echo "configure:1879: checking for $ac_word" >&5
|
---|
1879 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
1880 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1881 | else
|
---|
1882 | if test -n "$RANLIB"; then
|
---|
1883 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
1884 | else
|
---|
1885 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1886 | ac_dummy="$PATH"
|
---|
1887 | for ac_dir in $ac_dummy; do
|
---|
1888 | test -z "$ac_dir" && ac_dir=.
|
---|
1889 | if test -f $ac_dir/$ac_word -o \
|
---|
1890 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1891 | ac_cv_prog_RANLIB="ranlib"
|
---|
1892 | break
|
---|
1893 | fi
|
---|
1894 | done
|
---|
1895 | IFS="$ac_save_ifs"
|
---|
1896 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
1897 | fi
|
---|
1898 | fi
|
---|
1899 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
1900 | if test -n "$RANLIB"; then
|
---|
1901 | echo "$ac_t""$RANLIB" 1>&6
|
---|
1902 | else
|
---|
1903 | echo "$ac_t""no" 1>&6
|
---|
1904 | fi
|
---|
1905 |
|
---|
1906 | else
|
---|
1907 | RANLIB=":"
|
---|
1908 | fi
|
---|
1909 | fi
|
---|
1910 |
|
---|
1911 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1912 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1913 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1914 | echo "configure:1915: checking for $ac_word" >&5
|
---|
1915 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1916 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1917 | else
|
---|
1918 | if test -n "$STRIP"; then
|
---|
1919 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1920 | else
|
---|
1921 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1922 | ac_dummy="$PATH"
|
---|
1923 | for ac_dir in $ac_dummy; do
|
---|
1924 | test -z "$ac_dir" && ac_dir=.
|
---|
1925 | if test -f $ac_dir/$ac_word -o \
|
---|
1926 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1927 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1928 | break
|
---|
1929 | fi
|
---|
1930 | done
|
---|
1931 | IFS="$ac_save_ifs"
|
---|
1932 | fi
|
---|
1933 | fi
|
---|
1934 | STRIP="$ac_cv_prog_STRIP"
|
---|
1935 | if test -n "$STRIP"; then
|
---|
1936 | echo "$ac_t""$STRIP" 1>&6
|
---|
1937 | else
|
---|
1938 | echo "$ac_t""no" 1>&6
|
---|
1939 | fi
|
---|
1940 |
|
---|
1941 |
|
---|
1942 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
1943 | if test -n "$ac_tool_prefix"; then
|
---|
1944 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
1945 | set dummy strip; ac_word=$2
|
---|
1946 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1947 | echo "configure:1948: checking for $ac_word" >&5
|
---|
1948 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
1949 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1950 | else
|
---|
1951 | if test -n "$STRIP"; then
|
---|
1952 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1953 | else
|
---|
1954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
1955 | ac_dummy="$PATH"
|
---|
1956 | for ac_dir in $ac_dummy; do
|
---|
1957 | test -z "$ac_dir" && ac_dir=.
|
---|
1958 | if test -f $ac_dir/$ac_word -o \
|
---|
1959 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
1960 | ac_cv_prog_STRIP="strip"
|
---|
1961 | break
|
---|
1962 | fi
|
---|
1963 | done
|
---|
1964 | IFS="$ac_save_ifs"
|
---|
1965 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
1966 | fi
|
---|
1967 | fi
|
---|
1968 | STRIP="$ac_cv_prog_STRIP"
|
---|
1969 | if test -n "$STRIP"; then
|
---|
1970 | echo "$ac_t""$STRIP" 1>&6
|
---|
1971 | else
|
---|
1972 | echo "$ac_t""no" 1>&6
|
---|
1973 | fi
|
---|
1974 |
|
---|
1975 | else
|
---|
1976 | STRIP=":"
|
---|
1977 | fi
|
---|
1978 | fi
|
---|
1979 |
|
---|
1980 |
|
---|
1981 | # Check for any special flags to pass to ltconfig.
|
---|
1982 | libtool_flags="--cache-file=$cache_file"
|
---|
1983 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
1984 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
1985 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
1986 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
1987 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
1988 |
|
---|
1989 |
|
---|
1990 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
1991 | if test "${enable_libtool_lock+set}" = set; then
|
---|
1992 | enableval="$enable_libtool_lock"
|
---|
1993 | :
|
---|
1994 | fi
|
---|
1995 |
|
---|
1996 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
1997 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
1998 |
|
---|
1999 | # Check whether --with-pic or --without-pic was given.
|
---|
2000 | if test "${with_pic+set}" = set; then
|
---|
2001 | withval="$with_pic"
|
---|
2002 | pic_mode="$withval"
|
---|
2003 | else
|
---|
2004 | pic_mode=default
|
---|
2005 | fi
|
---|
2006 |
|
---|
2007 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2008 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2009 |
|
---|
2010 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2011 | # libtool support.
|
---|
2012 | case "$host" in
|
---|
2013 | *-*-irix6*)
|
---|
2014 | # Find out which ABI we are using.
|
---|
2015 | echo '#line 2016 "configure"' > conftest.$ac_ext
|
---|
2016 | if { (eval echo configure:2017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2017 | case "`/usr/bin/file conftest.o`" in
|
---|
2018 | *32-bit*)
|
---|
2019 | LD="${LD-ld} -32"
|
---|
2020 | ;;
|
---|
2021 | *N32*)
|
---|
2022 | LD="${LD-ld} -n32"
|
---|
2023 | ;;
|
---|
2024 | *64-bit*)
|
---|
2025 | LD="${LD-ld} -64"
|
---|
2026 | ;;
|
---|
2027 | esac
|
---|
2028 | fi
|
---|
2029 | rm -rf conftest*
|
---|
2030 | ;;
|
---|
2031 |
|
---|
2032 | *-*-sco3.2v5*)
|
---|
2033 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2034 | SAVE_CFLAGS="$CFLAGS"
|
---|
2035 | CFLAGS="$CFLAGS -belf"
|
---|
2036 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2037 | echo "configure:2038: checking whether the C compiler needs -belf" >&5
|
---|
2038 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2039 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2040 | else
|
---|
2041 |
|
---|
2042 | ac_ext=c
|
---|
2043 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2044 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2045 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2046 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2047 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2048 |
|
---|
2049 | cat > conftest.$ac_ext <<EOF
|
---|
2050 | #line 2051 "configure"
|
---|
2051 | #include "confdefs.h"
|
---|
2052 |
|
---|
2053 | int main() {
|
---|
2054 |
|
---|
2055 | ; return 0; }
|
---|
2056 | EOF
|
---|
2057 | if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2058 | rm -rf conftest*
|
---|
2059 | lt_cv_cc_needs_belf=yes
|
---|
2060 | else
|
---|
2061 | echo "configure: failed program was:" >&5
|
---|
2062 | cat conftest.$ac_ext >&5
|
---|
2063 | rm -rf conftest*
|
---|
2064 | lt_cv_cc_needs_belf=no
|
---|
2065 | fi
|
---|
2066 | rm -f conftest*
|
---|
2067 | ac_ext=c
|
---|
2068 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2069 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2070 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2071 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2072 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2073 |
|
---|
2074 | fi
|
---|
2075 |
|
---|
2076 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2077 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2078 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2079 | CFLAGS="$SAVE_CFLAGS"
|
---|
2080 | fi
|
---|
2081 | ;;
|
---|
2082 |
|
---|
2083 |
|
---|
2084 | esac
|
---|
2085 |
|
---|
2086 |
|
---|
2087 | # Save cache, so that ltconfig can load it
|
---|
2088 | cat > confcache <<\EOF
|
---|
2089 | # This file is a shell script that caches the results of configure
|
---|
2090 | # tests run on this system so they can be shared between configure
|
---|
2091 | # scripts and configure runs. It is not useful on other systems.
|
---|
2092 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2093 | #
|
---|
2094 | # By default, configure uses ./config.cache as the cache file,
|
---|
2095 | # creating it if it does not exist already. You can give configure
|
---|
2096 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2097 | # what configure does when it calls configure scripts in
|
---|
2098 | # subdirectories, so they share the cache.
|
---|
2099 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2100 | # config.status only pays attention to the cache file if you give it the
|
---|
2101 | # --recheck option to rerun configure.
|
---|
2102 | #
|
---|
2103 | EOF
|
---|
2104 | # The following way of writing the cache mishandles newlines in values,
|
---|
2105 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
2106 | # So, don't put newlines in cache variables' values.
|
---|
2107 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
2108 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
2109 | (set) 2>&1 |
|
---|
2110 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
2111 | *ac_space=\ *)
|
---|
2112 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
2113 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
2114 | sed -n \
|
---|
2115 | -e "s/'/'\\\\''/g" \
|
---|
2116 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
2117 | ;;
|
---|
2118 | *)
|
---|
2119 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
2120 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
2121 | ;;
|
---|
2122 | esac >> confcache
|
---|
2123 | if cmp -s $cache_file confcache; then
|
---|
2124 | :
|
---|
2125 | else
|
---|
2126 | if test -w $cache_file; then
|
---|
2127 | echo "updating cache $cache_file"
|
---|
2128 | cat confcache > $cache_file
|
---|
2129 | else
|
---|
2130 | echo "not updating unwritable cache $cache_file"
|
---|
2131 | fi
|
---|
2132 | fi
|
---|
2133 | rm -f confcache
|
---|
2134 |
|
---|
2135 |
|
---|
2136 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
2137 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
2138 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
2139 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
2140 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
2141 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
2142 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
2143 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
2144 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
2145 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
2146 |
|
---|
2147 | # Reload cache, that may have been modified by ltconfig
|
---|
2148 | if test -r "$cache_file"; then
|
---|
2149 | echo "loading cache $cache_file"
|
---|
2150 | . $cache_file
|
---|
2151 | else
|
---|
2152 | echo "creating cache $cache_file"
|
---|
2153 | > $cache_file
|
---|
2154 | fi
|
---|
2155 |
|
---|
2156 |
|
---|
2157 | # This can be used to rebuild libtool when needed
|
---|
2158 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
2159 |
|
---|
2160 | # Always use our own libtool.
|
---|
2161 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
2162 |
|
---|
2163 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
2164 | # clobbered by the next message.
|
---|
2165 | exec 5>>./config.log
|
---|
2166 |
|
---|
2167 |
|
---|
2168 |
|
---|
2169 |
|
---|
2170 |
|
---|
2171 |
|
---|
2172 |
|
---|
2173 |
|
---|
2174 |
|
---|
2175 |
|
---|
2176 |
|
---|
2177 |
|
---|
2178 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2179 | set dummy gcc; ac_word=$2
|
---|
2180 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2181 | echo "configure:2182: checking for $ac_word" >&5
|
---|
2182 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2183 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2184 | else
|
---|
2185 | if test -n "$CC"; then
|
---|
2186 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2187 | else
|
---|
2188 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2189 | ac_dummy="$PATH"
|
---|
2190 | for ac_dir in $ac_dummy; do
|
---|
2191 | test -z "$ac_dir" && ac_dir=.
|
---|
2192 | if test -f $ac_dir/$ac_word -o \
|
---|
2193 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2194 | ac_cv_prog_CC="gcc"
|
---|
2195 | break
|
---|
2196 | fi
|
---|
2197 | done
|
---|
2198 | IFS="$ac_save_ifs"
|
---|
2199 | fi
|
---|
2200 | fi
|
---|
2201 | CC="$ac_cv_prog_CC"
|
---|
2202 | if test -n "$CC"; then
|
---|
2203 | echo "$ac_t""$CC" 1>&6
|
---|
2204 | else
|
---|
2205 | echo "$ac_t""no" 1>&6
|
---|
2206 | fi
|
---|
2207 |
|
---|
2208 | if test -z "$CC"; then
|
---|
2209 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2210 | set dummy cc; ac_word=$2
|
---|
2211 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2212 | echo "configure:2213: checking for $ac_word" >&5
|
---|
2213 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2214 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2215 | else
|
---|
2216 | if test -n "$CC"; then
|
---|
2217 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2218 | else
|
---|
2219 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2220 | ac_prog_rejected=no
|
---|
2221 | ac_dummy="$PATH"
|
---|
2222 | for ac_dir in $ac_dummy; do
|
---|
2223 | test -z "$ac_dir" && ac_dir=.
|
---|
2224 | if test -f $ac_dir/$ac_word -o \
|
---|
2225 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2226 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
---|
2227 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
---|
2228 | ac_prog_rejected=yes
|
---|
2229 | continue
|
---|
2230 | fi
|
---|
2231 | ac_cv_prog_CC="cc"
|
---|
2232 | break
|
---|
2233 | fi
|
---|
2234 | done
|
---|
2235 | IFS="$ac_save_ifs"
|
---|
2236 | if test $ac_prog_rejected = yes; then
|
---|
2237 | # We found a bogon in the path, so make sure we never use it.
|
---|
2238 | set dummy $ac_cv_prog_CC
|
---|
2239 | shift
|
---|
2240 | if test $# -gt 0; then
|
---|
2241 | # We chose a different compiler from the bogus one.
|
---|
2242 | # However, it has the same basename, so the bogon will be chosen
|
---|
2243 | # first if we set CC to just the basename; use the full file name.
|
---|
2244 | shift
|
---|
2245 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
2246 | shift
|
---|
2247 | ac_cv_prog_CC="$@"
|
---|
2248 | fi
|
---|
2249 | fi
|
---|
2250 | fi
|
---|
2251 | fi
|
---|
2252 | CC="$ac_cv_prog_CC"
|
---|
2253 | if test -n "$CC"; then
|
---|
2254 | echo "$ac_t""$CC" 1>&6
|
---|
2255 | else
|
---|
2256 | echo "$ac_t""no" 1>&6
|
---|
2257 | fi
|
---|
2258 |
|
---|
2259 | if test -z "$CC"; then
|
---|
2260 | case "`uname -s`" in
|
---|
2261 | *win32* | *WIN32*)
|
---|
2262 | # Extract the first word of "cl", so it can be a program name with args.
|
---|
2263 | set dummy cl; ac_word=$2
|
---|
2264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2265 | echo "configure:2266: checking for $ac_word" >&5
|
---|
2266 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
2267 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2268 | else
|
---|
2269 | if test -n "$CC"; then
|
---|
2270 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2271 | else
|
---|
2272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2273 | ac_dummy="$PATH"
|
---|
2274 | for ac_dir in $ac_dummy; do
|
---|
2275 | test -z "$ac_dir" && ac_dir=.
|
---|
2276 | if test -f $ac_dir/$ac_word -o \
|
---|
2277 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2278 | ac_cv_prog_CC="cl"
|
---|
2279 | break
|
---|
2280 | fi
|
---|
2281 | done
|
---|
2282 | IFS="$ac_save_ifs"
|
---|
2283 | fi
|
---|
2284 | fi
|
---|
2285 | CC="$ac_cv_prog_CC"
|
---|
2286 | if test -n "$CC"; then
|
---|
2287 | echo "$ac_t""$CC" 1>&6
|
---|
2288 | else
|
---|
2289 | echo "$ac_t""no" 1>&6
|
---|
2290 | fi
|
---|
2291 | ;;
|
---|
2292 | esac
|
---|
2293 | fi
|
---|
2294 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
2295 | fi
|
---|
2296 |
|
---|
2297 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
2298 | echo "configure:2299: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
2299 |
|
---|
2300 | ac_ext=c
|
---|
2301 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2302 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2303 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2304 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2305 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2306 |
|
---|
2307 | cat > conftest.$ac_ext << EOF
|
---|
2308 |
|
---|
2309 | #line 2310 "configure"
|
---|
2310 | #include "confdefs.h"
|
---|
2311 |
|
---|
2312 | main(){return(0);}
|
---|
2313 | EOF
|
---|
2314 | if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2315 | ac_cv_prog_cc_works=yes
|
---|
2316 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
2317 | if (./conftest; exit) 2>/dev/null; then
|
---|
2318 | ac_cv_prog_cc_cross=no
|
---|
2319 | else
|
---|
2320 | ac_cv_prog_cc_cross=yes
|
---|
2321 | fi
|
---|
2322 | else
|
---|
2323 | echo "configure: failed program was:" >&5
|
---|
2324 | cat conftest.$ac_ext >&5
|
---|
2325 | ac_cv_prog_cc_works=no
|
---|
2326 | fi
|
---|
2327 | rm -fr conftest*
|
---|
2328 | ac_ext=c
|
---|
2329 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2330 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2331 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2332 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2333 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2334 |
|
---|
2335 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
2336 | if test $ac_cv_prog_cc_works = no; then
|
---|
2337 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
2338 | fi
|
---|
2339 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
2340 | echo "configure:2341: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
2341 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
2342 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2343 |
|
---|
2344 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
2345 | echo "configure:2346: checking whether we are using GNU C" >&5
|
---|
2346 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
2347 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2348 | else
|
---|
2349 | cat > conftest.c <<EOF
|
---|
2350 | #ifdef __GNUC__
|
---|
2351 | yes;
|
---|
2352 | #endif
|
---|
2353 | EOF
|
---|
2354 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
2355 | ac_cv_prog_gcc=yes
|
---|
2356 | else
|
---|
2357 | ac_cv_prog_gcc=no
|
---|
2358 | fi
|
---|
2359 | fi
|
---|
2360 |
|
---|
2361 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
2362 |
|
---|
2363 | if test $ac_cv_prog_gcc = yes; then
|
---|
2364 | GCC=yes
|
---|
2365 | else
|
---|
2366 | GCC=
|
---|
2367 | fi
|
---|
2368 |
|
---|
2369 | ac_test_CFLAGS="${CFLAGS+set}"
|
---|
2370 | ac_save_CFLAGS="$CFLAGS"
|
---|
2371 | CFLAGS=
|
---|
2372 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
2373 | echo "configure:2374: checking whether ${CC-cc} accepts -g" >&5
|
---|
2374 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
2375 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2376 | else
|
---|
2377 | echo 'void f(){}' > conftest.c
|
---|
2378 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
2379 | ac_cv_prog_cc_g=yes
|
---|
2380 | else
|
---|
2381 | ac_cv_prog_cc_g=no
|
---|
2382 | fi
|
---|
2383 | rm -f conftest*
|
---|
2384 |
|
---|
2385 | fi
|
---|
2386 |
|
---|
2387 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
2388 | if test "$ac_test_CFLAGS" = set; then
|
---|
2389 | CFLAGS="$ac_save_CFLAGS"
|
---|
2390 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2391 | if test "$GCC" = yes; then
|
---|
2392 | CFLAGS="-g -O2"
|
---|
2393 | else
|
---|
2394 | CFLAGS="-g"
|
---|
2395 | fi
|
---|
2396 | else
|
---|
2397 | if test "$GCC" = yes; then
|
---|
2398 | CFLAGS="-O2"
|
---|
2399 | else
|
---|
2400 | CFLAGS=
|
---|
2401 | fi
|
---|
2402 | fi
|
---|
2403 |
|
---|
2404 | # Find a good install program. We prefer a C program (faster),
|
---|
2405 | # so one script is as good as another. But avoid the broken or
|
---|
2406 | # incompatible versions:
|
---|
2407 | # SysV /etc/install, /usr/sbin/install
|
---|
2408 | # SunOS /usr/etc/install
|
---|
2409 | # IRIX /sbin/install
|
---|
2410 | # AIX /bin/install
|
---|
2411 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2412 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2413 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2414 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2415 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
2416 | echo "configure:2417: checking for a BSD compatible install" >&5
|
---|
2417 | if test -z "$INSTALL"; then
|
---|
2418 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
2419 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2420 | else
|
---|
2421 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
---|
2422 | for ac_dir in $PATH; do
|
---|
2423 | # Account for people who put trailing slashes in PATH elements.
|
---|
2424 | case "$ac_dir/" in
|
---|
2425 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
2426 | # We reject the install program from OS/2 or W3.1
|
---|
2427 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
---|
2428 | *)
|
---|
2429 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2430 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2431 | # by default.
|
---|
2432 | for ac_prog in ginstall scoinst install; do
|
---|
2433 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
---|
2434 | if test $ac_prog = install &&
|
---|
2435 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
2436 | # AIX install. It has an incompatible calling convention.
|
---|
2437 | :
|
---|
2438 | else
|
---|
2439 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
---|
2440 | break 2
|
---|
2441 | fi
|
---|
2442 | fi
|
---|
2443 | done
|
---|
2444 | ;;
|
---|
2445 | esac
|
---|
2446 | done
|
---|
2447 | IFS="$ac_save_IFS"
|
---|
2448 |
|
---|
2449 | fi
|
---|
2450 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2451 | INSTALL="$ac_cv_path_install"
|
---|
2452 | else
|
---|
2453 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2454 | # path for INSTALL within a source directory, because that will
|
---|
2455 | # break other packages using the cache if that directory is
|
---|
2456 | # removed, or if the path is relative.
|
---|
2457 | INSTALL="$ac_install_sh"
|
---|
2458 | fi
|
---|
2459 | fi
|
---|
2460 | echo "$ac_t""$INSTALL" 1>&6
|
---|
2461 |
|
---|
2462 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2463 | # It thinks the first close brace ends the variable substitution.
|
---|
2464 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2465 |
|
---|
2466 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
2467 |
|
---|
2468 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2469 |
|
---|
2470 |
|
---|
2471 | for ac_func in setmode
|
---|
2472 | do
|
---|
2473 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
2474 | echo "configure:2475: checking for $ac_func" >&5
|
---|
2475 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
2476 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2477 | else
|
---|
2478 | cat > conftest.$ac_ext <<EOF
|
---|
2479 | #line 2480 "configure"
|
---|
2480 | #include "confdefs.h"
|
---|
2481 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
2482 | which can conflict with char $ac_func(); below. */
|
---|
2483 | #include <assert.h>
|
---|
2484 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
2485 | /* We use char because int might match the return type of a gcc2
|
---|
2486 | builtin and then its argument prototype would still apply. */
|
---|
2487 | char $ac_func();
|
---|
2488 |
|
---|
2489 | int main() {
|
---|
2490 |
|
---|
2491 | /* The GNU C library defines this for functions which it implements
|
---|
2492 | to always fail with ENOSYS. Some functions are actually named
|
---|
2493 | something starting with __ and the normal name is an alias. */
|
---|
2494 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
2495 | choke me
|
---|
2496 | #else
|
---|
2497 | $ac_func();
|
---|
2498 | #endif
|
---|
2499 |
|
---|
2500 | ; return 0; }
|
---|
2501 | EOF
|
---|
2502 | if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2503 | rm -rf conftest*
|
---|
2504 | eval "ac_cv_func_$ac_func=yes"
|
---|
2505 | else
|
---|
2506 | echo "configure: failed program was:" >&5
|
---|
2507 | cat conftest.$ac_ext >&5
|
---|
2508 | rm -rf conftest*
|
---|
2509 | eval "ac_cv_func_$ac_func=no"
|
---|
2510 | fi
|
---|
2511 | rm -f conftest*
|
---|
2512 | fi
|
---|
2513 |
|
---|
2514 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
2515 | echo "$ac_t""yes" 1>&6
|
---|
2516 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
2517 | cat >> confdefs.h <<EOF
|
---|
2518 | #define $ac_tr_func 1
|
---|
2519 | EOF
|
---|
2520 |
|
---|
2521 | else
|
---|
2522 | echo "$ac_t""no" 1>&6
|
---|
2523 | fi
|
---|
2524 | done
|
---|
2525 |
|
---|
2526 |
|
---|
2527 | ALL_LINGUAS=
|
---|
2528 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
2529 | echo "configure:2530: checking how to run the C preprocessor" >&5
|
---|
2530 | # On Suns, sometimes $CPP names a directory.
|
---|
2531 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2532 | CPP=
|
---|
2533 | fi
|
---|
2534 | if test -z "$CPP"; then
|
---|
2535 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
2536 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2537 | else
|
---|
2538 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
2539 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
2540 | CPP="${CC-cc} -E"
|
---|
2541 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2542 | # not just through cpp.
|
---|
2543 | cat > conftest.$ac_ext <<EOF
|
---|
2544 | #include <sys/types.h>
|
---|
2545 | #line 2546 "configure"
|
---|
2546 | #include "confdefs.h"
|
---|
2547 | #include <assert.h>
|
---|
2548 | Syntax Error
|
---|
2549 | EOF
|
---|
2550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2551 | { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2553 | if test -z "$ac_err"; then
|
---|
2554 | :
|
---|
2555 | else
|
---|
2556 | echo "$ac_err" >&5
|
---|
2557 | echo "configure: failed program was:" >&5
|
---|
2558 | cat conftest.$ac_ext >&5
|
---|
2559 | rm -rf conftest*
|
---|
2560 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
2561 | cat > conftest.$ac_ext <<EOF
|
---|
2562 | #include <sys/types.h>
|
---|
2563 | #line 2564 "configure"
|
---|
2564 | #include "confdefs.h"
|
---|
2565 | #include <assert.h>
|
---|
2566 | Syntax Error
|
---|
2567 | EOF
|
---|
2568 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2569 | { (eval echo configure:2570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2570 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2571 | if test -z "$ac_err"; then
|
---|
2572 | :
|
---|
2573 | else
|
---|
2574 | echo "$ac_err" >&5
|
---|
2575 | echo "configure: failed program was:" >&5
|
---|
2576 | cat conftest.$ac_ext >&5
|
---|
2577 | rm -rf conftest*
|
---|
2578 | CPP="${CC-cc} -nologo -E"
|
---|
2579 | cat > conftest.$ac_ext <<EOF
|
---|
2580 | #include <sys/types.h>
|
---|
2581 | #line 2582 "configure"
|
---|
2582 | #include "confdefs.h"
|
---|
2583 | #include <assert.h>
|
---|
2584 | Syntax Error
|
---|
2585 | EOF
|
---|
2586 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2587 | { (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2588 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2589 | if test -z "$ac_err"; then
|
---|
2590 | :
|
---|
2591 | else
|
---|
2592 | echo "$ac_err" >&5
|
---|
2593 | echo "configure: failed program was:" >&5
|
---|
2594 | cat conftest.$ac_ext >&5
|
---|
2595 | rm -rf conftest*
|
---|
2596 | CPP=/lib/cpp
|
---|
2597 | fi
|
---|
2598 | rm -f conftest*
|
---|
2599 | fi
|
---|
2600 | rm -f conftest*
|
---|
2601 | fi
|
---|
2602 | rm -f conftest*
|
---|
2603 | ac_cv_prog_CPP="$CPP"
|
---|
2604 | fi
|
---|
2605 | CPP="$ac_cv_prog_CPP"
|
---|
2606 | else
|
---|
2607 | ac_cv_prog_CPP="$CPP"
|
---|
2608 | fi
|
---|
2609 | echo "$ac_t""$CPP" 1>&6
|
---|
2610 |
|
---|
2611 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2612 | set dummy ranlib; ac_word=$2
|
---|
2613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2614 | echo "configure:2615: checking for $ac_word" >&5
|
---|
2615 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2616 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2617 | else
|
---|
2618 | if test -n "$RANLIB"; then
|
---|
2619 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2620 | else
|
---|
2621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
2622 | ac_dummy="$PATH"
|
---|
2623 | for ac_dir in $ac_dummy; do
|
---|
2624 | test -z "$ac_dir" && ac_dir=.
|
---|
2625 | if test -f $ac_dir/$ac_word -o \
|
---|
2626 | -f $ac_dir/$ac_word$ac_exeext ; then
|
---|
2627 | ac_cv_prog_RANLIB="ranlib"
|
---|
2628 | break
|
---|
2629 | fi
|
---|
2630 | done
|
---|
2631 | IFS="$ac_save_ifs"
|
---|
2632 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2633 | fi
|
---|
2634 | fi
|
---|
2635 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2636 | if test -n "$RANLIB"; then
|
---|
2637 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2638 | else
|
---|
2639 | echo "$ac_t""no" 1>&6
|
---|
2640 | fi
|
---|
2641 |
|
---|
2642 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
---|
2643 | echo "configure:2644: checking for ANSI C header files" >&5
|
---|
2644 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
---|
2645 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2646 | else
|
---|
2647 | cat > conftest.$ac_ext <<EOF
|
---|
2648 | #include <sys/types.h>
|
---|
2649 | #line 2650 "configure"
|
---|
2650 | #include "confdefs.h"
|
---|
2651 | #include <stdlib.h>
|
---|
2652 | #include <stdarg.h>
|
---|
2653 | #include <string.h>
|
---|
2654 | #include <float.h>
|
---|
2655 | EOF
|
---|
2656 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
2657 | { (eval echo configure:2658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
2658 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
2659 | if test -z "$ac_err"; then
|
---|
2660 | rm -rf conftest*
|
---|
2661 | ac_cv_header_stdc=yes
|
---|
2662 | else
|
---|
2663 | echo "$ac_err" >&5
|
---|
2664 | echo "configure: failed program was:" >&5
|
---|
2665 | cat conftest.$ac_ext >&5
|
---|
2666 | rm -rf conftest*
|
---|
2667 | ac_cv_header_stdc=no
|
---|
2668 | fi
|
---|
2669 | rm -f conftest*
|
---|
2670 |
|
---|
2671 | if test $ac_cv_header_stdc = yes; then
|
---|
2672 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2673 | cat > conftest.$ac_ext <<EOF
|
---|
2674 | #line 2675 "configure"
|
---|
2675 | #include "confdefs.h"
|
---|
2676 | #include <string.h>
|
---|
2677 | EOF
|
---|
2678 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2679 | egrep "memchr" >/dev/null 2>&1; then
|
---|
2680 | :
|
---|
2681 | else
|
---|
2682 | rm -rf conftest*
|
---|
2683 | ac_cv_header_stdc=no
|
---|
2684 | fi
|
---|
2685 | rm -f conftest*
|
---|
2686 |
|
---|
2687 | fi
|
---|
2688 |
|
---|
2689 | if test $ac_cv_header_stdc = yes; then
|
---|
2690 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2691 | cat > conftest.$ac_ext <<EOF
|
---|
2692 | #line 2693 "configure"
|
---|
2693 | #include "confdefs.h"
|
---|
2694 | #include <stdlib.h>
|
---|
2695 | EOF
|
---|
2696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2697 | egrep "free" >/dev/null 2>&1; then
|
---|
2698 | :
|
---|
2699 | else
|
---|
2700 | rm -rf conftest*
|
---|
2701 | ac_cv_header_stdc=no
|
---|
2702 | fi
|
---|
2703 | rm -f conftest*
|
---|
2704 |
|
---|
2705 | fi
|
---|
2706 |
|
---|
2707 | if test $ac_cv_header_stdc = yes; then
|
---|
2708 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2709 | if test "$cross_compiling" = yes; then
|
---|
2710 | :
|
---|
2711 | else
|
---|
2712 | cat > conftest.$ac_ext <<EOF
|
---|
2713 | #line 2714 "configure"
|
---|
2714 | #include "confdefs.h"
|
---|
2715 | #include <ctype.h>
|
---|
2716 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2717 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2719 | int main () { int i; for (i = 0; i < 256; i++)
|
---|
2720 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
---|
2721 | exit (0); }
|
---|
2722 |
|
---|
2723 | EOF
|
---|
2724 | if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
2725 | then
|
---|
2726 | :
|
---|
2727 | else
|
---|
2728 | echo "configure: failed program was:" >&5
|
---|
2729 | cat conftest.$ac_ext >&5
|
---|
2730 | rm -fr conftest*
|
---|
2731 | ac_cv_header_stdc=no
|
---|
2732 | fi
|
---|
2733 | rm -fr conftest*
|
---|
2734 | fi
|
---|
2735 |
|
---|
2736 | fi
|
---|
2737 | fi
|
---|
2738 |
|
---|
2739 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
---|
2740 | if test $ac_cv_header_stdc = yes; then
|
---|
2741 | cat >> confdefs.h <<\EOF
|
---|
2742 | #define STDC_HEADERS 1
|
---|
2743 | EOF
|
---|
2744 |
|
---|
2745 | fi
|
---|
2746 |
|
---|
2747 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
---|
2748 | echo "configure:2749: checking for working const" >&5
|
---|
2749 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
---|
2750 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2751 | else
|
---|
2752 | cat > conftest.$ac_ext <<EOF
|
---|
2753 | #line 2754 "configure"
|
---|
2754 | #include "confdefs.h"
|
---|
2755 |
|
---|
2756 | int main() {
|
---|
2757 |
|
---|
2758 | /* Ultrix mips cc rejects this. */
|
---|
2759 | typedef int charset[2]; const charset x;
|
---|
2760 | /* SunOS 4.1.1 cc rejects this. */
|
---|
2761 | char const *const *ccp;
|
---|
2762 | char **p;
|
---|
2763 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
2764 | struct point {int x, y;};
|
---|
2765 | static struct point const zero = {0,0};
|
---|
2766 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
2767 | It does not let you subtract one const X* pointer from another in an arm
|
---|
2768 | of an if-expression whose if-part is not a constant expression */
|
---|
2769 | const char *g = "string";
|
---|
2770 | ccp = &g + (g ? g-g : 0);
|
---|
2771 | /* HPUX 7.0 cc rejects these. */
|
---|
2772 | ++ccp;
|
---|
2773 | p = (char**) ccp;
|
---|
2774 | ccp = (char const *const *) p;
|
---|
2775 | { /* SCO 3.2v4 cc rejects this. */
|
---|
2776 | char *t;
|
---|
2777 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
2778 |
|
---|
2779 | *t++ = 0;
|
---|
2780 | }
|
---|
2781 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
2782 | int x[] = {25, 17};
|
---|
2783 | const int *foo = &x[0];
|
---|
2784 | ++foo;
|
---|
2785 | }
|
---|
2786 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
2787 | typedef const int *iptr;
|
---|
2788 | iptr p = 0;
|
---|
2789 | ++p;
|
---|
2790 | }
|
---|
2791 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
2792 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
2793 | struct s { int j; const int *ap[3]; };
|
---|
2794 | struct s *b; b->j = 5;
|
---|
2795 | }
|
---|
2796 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
2797 | const int foo = 10;
|
---|
2798 | }
|
---|
2799 |
|
---|
2800 | ; return 0; }
|
---|
2801 | EOF
|
---|
2802 | if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2803 | rm -rf conftest*
|
---|
2804 | ac_cv_c_const=yes
|
---|
2805 | else
|
---|
2806 | echo "configure: failed program was:" >&5
|
---|
2807 | cat conftest.$ac_ext >&5
|
---|
2808 | rm -rf conftest*
|
---|
2809 | ac_cv_c_const=no
|
---|
2810 | fi
|
---|
2811 | rm -f conftest*
|
---|
2812 | fi
|
---|
2813 |
|
---|
2814 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
---|
2815 | if test $ac_cv_c_const = no; then
|
---|
2816 | cat >> confdefs.h <<\EOF
|
---|
2817 | #define const
|
---|
2818 | EOF
|
---|
2819 |
|
---|
2820 | fi
|
---|
2821 |
|
---|
2822 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
---|
2823 | echo "configure:2824: checking for inline" >&5
|
---|
2824 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
---|
2825 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2826 | else
|
---|
2827 | ac_cv_c_inline=no
|
---|
2828 | for ac_kw in inline __inline__ __inline; do
|
---|
2829 | cat > conftest.$ac_ext <<EOF
|
---|
2830 | #line 2831 "configure"
|
---|
2831 | #include "confdefs.h"
|
---|
2832 |
|
---|
2833 | int main() {
|
---|
2834 | } $ac_kw foo() {
|
---|
2835 | ; return 0; }
|
---|
2836 | EOF
|
---|
2837 | if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2838 | rm -rf conftest*
|
---|
2839 | ac_cv_c_inline=$ac_kw; break
|
---|
2840 | else
|
---|
2841 | echo "configure: failed program was:" >&5
|
---|
2842 | cat conftest.$ac_ext >&5
|
---|
2843 | fi
|
---|
2844 | rm -f conftest*
|
---|
2845 | done
|
---|
2846 |
|
---|
2847 | fi
|
---|
2848 |
|
---|
2849 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
---|
2850 | case "$ac_cv_c_inline" in
|
---|
2851 | inline | yes) ;;
|
---|
2852 | no) cat >> confdefs.h <<\EOF
|
---|
2853 | #define inline
|
---|
2854 | EOF
|
---|
2855 | ;;
|
---|
2856 | *) cat >> confdefs.h <<EOF
|
---|
2857 | #define inline $ac_cv_c_inline
|
---|
2858 | EOF
|
---|
2859 | ;;
|
---|
2860 | esac
|
---|
2861 |
|
---|
2862 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
---|
2863 | echo "configure:2864: checking for off_t" >&5
|
---|
2864 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
---|
2865 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2866 | else
|
---|
2867 | cat > conftest.$ac_ext <<EOF
|
---|
2868 | #line 2869 "configure"
|
---|
2869 | #include "confdefs.h"
|
---|
2870 | #include <sys/types.h>
|
---|
2871 | #if STDC_HEADERS
|
---|
2872 | #include <stdlib.h>
|
---|
2873 | #include <stddef.h>
|
---|
2874 | #endif
|
---|
2875 | EOF
|
---|
2876 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2877 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
2878 | rm -rf conftest*
|
---|
2879 | ac_cv_type_off_t=yes
|
---|
2880 | else
|
---|
2881 | rm -rf conftest*
|
---|
2882 | ac_cv_type_off_t=no
|
---|
2883 | fi
|
---|
2884 | rm -f conftest*
|
---|
2885 |
|
---|
2886 | fi
|
---|
2887 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
---|
2888 | if test $ac_cv_type_off_t = no; then
|
---|
2889 | cat >> confdefs.h <<\EOF
|
---|
2890 | #define off_t long
|
---|
2891 | EOF
|
---|
2892 |
|
---|
2893 | fi
|
---|
2894 |
|
---|
2895 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
---|
2896 | echo "configure:2897: checking for size_t" >&5
|
---|
2897 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
---|
2898 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2899 | else
|
---|
2900 | cat > conftest.$ac_ext <<EOF
|
---|
2901 | #line 2902 "configure"
|
---|
2902 | #include "confdefs.h"
|
---|
2903 | #include <sys/types.h>
|
---|
2904 | #if STDC_HEADERS
|
---|
2905 | #include <stdlib.h>
|
---|
2906 | #include <stddef.h>
|
---|
2907 | #endif
|
---|
2908 | EOF
|
---|
2909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2910 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
---|
2911 | rm -rf conftest*
|
---|
2912 | ac_cv_type_size_t=yes
|
---|
2913 | else
|
---|
2914 | rm -rf conftest*
|
---|
2915 | ac_cv_type_size_t=no
|
---|
2916 | fi
|
---|
2917 | rm -f conftest*
|
---|
2918 |
|
---|
2919 | fi
|
---|
2920 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
---|
2921 | if test $ac_cv_type_size_t = no; then
|
---|
2922 | cat >> confdefs.h <<\EOF
|
---|
2923 | #define size_t unsigned
|
---|
2924 | EOF
|
---|
2925 |
|
---|
2926 | fi
|
---|
2927 |
|
---|
2928 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
2929 | # for constant arguments. Useless!
|
---|
2930 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
---|
2931 | echo "configure:2932: checking for working alloca.h" >&5
|
---|
2932 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
---|
2933 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2934 | else
|
---|
2935 | cat > conftest.$ac_ext <<EOF
|
---|
2936 | #line 2937 "configure"
|
---|
2937 | #include "confdefs.h"
|
---|
2938 | #include <alloca.h>
|
---|
2939 | int main() {
|
---|
2940 | char *p = alloca(2 * sizeof(int));
|
---|
2941 | ; return 0; }
|
---|
2942 | EOF
|
---|
2943 | if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2944 | rm -rf conftest*
|
---|
2945 | ac_cv_header_alloca_h=yes
|
---|
2946 | else
|
---|
2947 | echo "configure: failed program was:" >&5
|
---|
2948 | cat conftest.$ac_ext >&5
|
---|
2949 | rm -rf conftest*
|
---|
2950 | ac_cv_header_alloca_h=no
|
---|
2951 | fi
|
---|
2952 | rm -f conftest*
|
---|
2953 | fi
|
---|
2954 |
|
---|
2955 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
---|
2956 | if test $ac_cv_header_alloca_h = yes; then
|
---|
2957 | cat >> confdefs.h <<\EOF
|
---|
2958 | #define HAVE_ALLOCA_H 1
|
---|
2959 | EOF
|
---|
2960 |
|
---|
2961 | fi
|
---|
2962 |
|
---|
2963 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
---|
2964 | echo "configure:2965: checking for alloca" >&5
|
---|
2965 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
---|
2966 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2967 | else
|
---|
2968 | cat > conftest.$ac_ext <<EOF
|
---|
2969 | #line 2970 "configure"
|
---|
2970 | #include "confdefs.h"
|
---|
2971 |
|
---|
2972 | #ifdef __GNUC__
|
---|
2973 | # define alloca __builtin_alloca
|
---|
2974 | #else
|
---|
2975 | # ifdef _MSC_VER
|
---|
2976 | # include <malloc.h>
|
---|
2977 | # define alloca _alloca
|
---|
2978 | # else
|
---|
2979 | # if HAVE_ALLOCA_H
|
---|
2980 | # include <alloca.h>
|
---|
2981 | # else
|
---|
2982 | # ifdef _AIX
|
---|
2983 | #pragma alloca
|
---|
2984 | # else
|
---|
2985 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
2986 | char *alloca ();
|
---|
2987 | # endif
|
---|
2988 | # endif
|
---|
2989 | # endif
|
---|
2990 | # endif
|
---|
2991 | #endif
|
---|
2992 |
|
---|
2993 | int main() {
|
---|
2994 | char *p = (char *) alloca(1);
|
---|
2995 | ; return 0; }
|
---|
2996 | EOF
|
---|
2997 | if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2998 | rm -rf conftest*
|
---|
2999 | ac_cv_func_alloca_works=yes
|
---|
3000 | else
|
---|
3001 | echo "configure: failed program was:" >&5
|
---|
3002 | cat conftest.$ac_ext >&5
|
---|
3003 | rm -rf conftest*
|
---|
3004 | ac_cv_func_alloca_works=no
|
---|
3005 | fi
|
---|
3006 | rm -f conftest*
|
---|
3007 | fi
|
---|
3008 |
|
---|
3009 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
---|
3010 | if test $ac_cv_func_alloca_works = yes; then
|
---|
3011 | cat >> confdefs.h <<\EOF
|
---|
3012 | #define HAVE_ALLOCA 1
|
---|
3013 | EOF
|
---|
3014 |
|
---|
3015 | fi
|
---|
3016 |
|
---|
3017 | if test $ac_cv_func_alloca_works = no; then
|
---|
3018 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
3019 | # that cause trouble. Some versions do not even contain alloca or
|
---|
3020 | # contain a buggy version. If you still want to use their alloca,
|
---|
3021 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
3022 | ALLOCA=alloca.${ac_objext}
|
---|
3023 | cat >> confdefs.h <<\EOF
|
---|
3024 | #define C_ALLOCA 1
|
---|
3025 | EOF
|
---|
3026 |
|
---|
3027 |
|
---|
3028 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
---|
3029 | echo "configure:3030: checking whether alloca needs Cray hooks" >&5
|
---|
3030 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
---|
3031 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3032 | else
|
---|
3033 | cat > conftest.$ac_ext <<EOF
|
---|
3034 | #line 3035 "configure"
|
---|
3035 | #include "confdefs.h"
|
---|
3036 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
3037 | webecray
|
---|
3038 | #else
|
---|
3039 | wenotbecray
|
---|
3040 | #endif
|
---|
3041 |
|
---|
3042 | EOF
|
---|
3043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3044 | egrep "webecray" >/dev/null 2>&1; then
|
---|
3045 | rm -rf conftest*
|
---|
3046 | ac_cv_os_cray=yes
|
---|
3047 | else
|
---|
3048 | rm -rf conftest*
|
---|
3049 | ac_cv_os_cray=no
|
---|
3050 | fi
|
---|
3051 | rm -f conftest*
|
---|
3052 |
|
---|
3053 | fi
|
---|
3054 |
|
---|
3055 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
---|
3056 | if test $ac_cv_os_cray = yes; then
|
---|
3057 | for ac_func in _getb67 GETB67 getb67; do
|
---|
3058 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3059 | echo "configure:3060: checking for $ac_func" >&5
|
---|
3060 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3061 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3062 | else
|
---|
3063 | cat > conftest.$ac_ext <<EOF
|
---|
3064 | #line 3065 "configure"
|
---|
3065 | #include "confdefs.h"
|
---|
3066 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3067 | which can conflict with char $ac_func(); below. */
|
---|
3068 | #include <assert.h>
|
---|
3069 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3070 | /* We use char because int might match the return type of a gcc2
|
---|
3071 | builtin and then its argument prototype would still apply. */
|
---|
3072 | char $ac_func();
|
---|
3073 |
|
---|
3074 | int main() {
|
---|
3075 |
|
---|
3076 | /* The GNU C library defines this for functions which it implements
|
---|
3077 | to always fail with ENOSYS. Some functions are actually named
|
---|
3078 | something starting with __ and the normal name is an alias. */
|
---|
3079 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3080 | choke me
|
---|
3081 | #else
|
---|
3082 | $ac_func();
|
---|
3083 | #endif
|
---|
3084 |
|
---|
3085 | ; return 0; }
|
---|
3086 | EOF
|
---|
3087 | if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3088 | rm -rf conftest*
|
---|
3089 | eval "ac_cv_func_$ac_func=yes"
|
---|
3090 | else
|
---|
3091 | echo "configure: failed program was:" >&5
|
---|
3092 | cat conftest.$ac_ext >&5
|
---|
3093 | rm -rf conftest*
|
---|
3094 | eval "ac_cv_func_$ac_func=no"
|
---|
3095 | fi
|
---|
3096 | rm -f conftest*
|
---|
3097 | fi
|
---|
3098 |
|
---|
3099 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3100 | echo "$ac_t""yes" 1>&6
|
---|
3101 | cat >> confdefs.h <<EOF
|
---|
3102 | #define CRAY_STACKSEG_END $ac_func
|
---|
3103 | EOF
|
---|
3104 |
|
---|
3105 | break
|
---|
3106 | else
|
---|
3107 | echo "$ac_t""no" 1>&6
|
---|
3108 | fi
|
---|
3109 |
|
---|
3110 | done
|
---|
3111 | fi
|
---|
3112 |
|
---|
3113 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
---|
3114 | echo "configure:3115: checking stack direction for C alloca" >&5
|
---|
3115 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
---|
3116 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3117 | else
|
---|
3118 | if test "$cross_compiling" = yes; then
|
---|
3119 | ac_cv_c_stack_direction=0
|
---|
3120 | else
|
---|
3121 | cat > conftest.$ac_ext <<EOF
|
---|
3122 | #line 3123 "configure"
|
---|
3123 | #include "confdefs.h"
|
---|
3124 | find_stack_direction ()
|
---|
3125 | {
|
---|
3126 | static char *addr = 0;
|
---|
3127 | auto char dummy;
|
---|
3128 | if (addr == 0)
|
---|
3129 | {
|
---|
3130 | addr = &dummy;
|
---|
3131 | return find_stack_direction ();
|
---|
3132 | }
|
---|
3133 | else
|
---|
3134 | return (&dummy > addr) ? 1 : -1;
|
---|
3135 | }
|
---|
3136 | main ()
|
---|
3137 | {
|
---|
3138 | exit (find_stack_direction() < 0);
|
---|
3139 | }
|
---|
3140 | EOF
|
---|
3141 | if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3142 | then
|
---|
3143 | ac_cv_c_stack_direction=1
|
---|
3144 | else
|
---|
3145 | echo "configure: failed program was:" >&5
|
---|
3146 | cat conftest.$ac_ext >&5
|
---|
3147 | rm -fr conftest*
|
---|
3148 | ac_cv_c_stack_direction=-1
|
---|
3149 | fi
|
---|
3150 | rm -fr conftest*
|
---|
3151 | fi
|
---|
3152 |
|
---|
3153 | fi
|
---|
3154 |
|
---|
3155 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
---|
3156 | cat >> confdefs.h <<EOF
|
---|
3157 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
3158 | EOF
|
---|
3159 |
|
---|
3160 | fi
|
---|
3161 |
|
---|
3162 | for ac_hdr in unistd.h
|
---|
3163 | do
|
---|
3164 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3165 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3166 | echo "configure:3167: checking for $ac_hdr" >&5
|
---|
3167 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3168 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3169 | else
|
---|
3170 | cat > conftest.$ac_ext <<EOF
|
---|
3171 | #include <sys/types.h>
|
---|
3172 | #line 3173 "configure"
|
---|
3173 | #include "confdefs.h"
|
---|
3174 | #include <$ac_hdr>
|
---|
3175 | EOF
|
---|
3176 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3177 | { (eval echo configure:3178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3178 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3179 | if test -z "$ac_err"; then
|
---|
3180 | rm -rf conftest*
|
---|
3181 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3182 | else
|
---|
3183 | echo "$ac_err" >&5
|
---|
3184 | echo "configure: failed program was:" >&5
|
---|
3185 | cat conftest.$ac_ext >&5
|
---|
3186 | rm -rf conftest*
|
---|
3187 | eval "ac_cv_header_$ac_safe=no"
|
---|
3188 | fi
|
---|
3189 | rm -f conftest*
|
---|
3190 | fi
|
---|
3191 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3192 | echo "$ac_t""yes" 1>&6
|
---|
3193 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3194 | cat >> confdefs.h <<EOF
|
---|
3195 | #define $ac_tr_hdr 1
|
---|
3196 | EOF
|
---|
3197 |
|
---|
3198 | else
|
---|
3199 | echo "$ac_t""no" 1>&6
|
---|
3200 | fi
|
---|
3201 | done
|
---|
3202 |
|
---|
3203 | for ac_func in getpagesize
|
---|
3204 | do
|
---|
3205 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3206 | echo "configure:3207: checking for $ac_func" >&5
|
---|
3207 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3208 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3209 | else
|
---|
3210 | cat > conftest.$ac_ext <<EOF
|
---|
3211 | #line 3212 "configure"
|
---|
3212 | #include "confdefs.h"
|
---|
3213 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3214 | which can conflict with char $ac_func(); below. */
|
---|
3215 | #include <assert.h>
|
---|
3216 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3217 | /* We use char because int might match the return type of a gcc2
|
---|
3218 | builtin and then its argument prototype would still apply. */
|
---|
3219 | char $ac_func();
|
---|
3220 |
|
---|
3221 | int main() {
|
---|
3222 |
|
---|
3223 | /* The GNU C library defines this for functions which it implements
|
---|
3224 | to always fail with ENOSYS. Some functions are actually named
|
---|
3225 | something starting with __ and the normal name is an alias. */
|
---|
3226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3227 | choke me
|
---|
3228 | #else
|
---|
3229 | $ac_func();
|
---|
3230 | #endif
|
---|
3231 |
|
---|
3232 | ; return 0; }
|
---|
3233 | EOF
|
---|
3234 | if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3235 | rm -rf conftest*
|
---|
3236 | eval "ac_cv_func_$ac_func=yes"
|
---|
3237 | else
|
---|
3238 | echo "configure: failed program was:" >&5
|
---|
3239 | cat conftest.$ac_ext >&5
|
---|
3240 | rm -rf conftest*
|
---|
3241 | eval "ac_cv_func_$ac_func=no"
|
---|
3242 | fi
|
---|
3243 | rm -f conftest*
|
---|
3244 | fi
|
---|
3245 |
|
---|
3246 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3247 | echo "$ac_t""yes" 1>&6
|
---|
3248 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3249 | cat >> confdefs.h <<EOF
|
---|
3250 | #define $ac_tr_func 1
|
---|
3251 | EOF
|
---|
3252 |
|
---|
3253 | else
|
---|
3254 | echo "$ac_t""no" 1>&6
|
---|
3255 | fi
|
---|
3256 | done
|
---|
3257 |
|
---|
3258 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
---|
3259 | echo "configure:3260: checking for working mmap" >&5
|
---|
3260 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
---|
3261 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3262 | else
|
---|
3263 | if test "$cross_compiling" = yes; then
|
---|
3264 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3265 | else
|
---|
3266 | cat > conftest.$ac_ext <<EOF
|
---|
3267 | #line 3268 "configure"
|
---|
3268 | #include "confdefs.h"
|
---|
3269 |
|
---|
3270 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
---|
3271 | Here is a matrix of mmap possibilities:
|
---|
3272 | mmap private not fixed
|
---|
3273 | mmap private fixed at somewhere currently unmapped
|
---|
3274 | mmap private fixed at somewhere already mapped
|
---|
3275 | mmap shared not fixed
|
---|
3276 | mmap shared fixed at somewhere currently unmapped
|
---|
3277 | mmap shared fixed at somewhere already mapped
|
---|
3278 | For private mappings, we should verify that changes cannot be read()
|
---|
3279 | back from the file, nor mmap's back from the file at a different
|
---|
3280 | address. (There have been systems where private was not correctly
|
---|
3281 | implemented like the infamous i386 svr4.0, and systems where the
|
---|
3282 | VM page cache was not coherent with the filesystem buffer cache
|
---|
3283 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
---|
3284 | For shared mappings, we should conversely verify that changes get
|
---|
3285 | propogated back to all the places they're supposed to be.
|
---|
3286 |
|
---|
3287 | Grep wants private fixed already mapped.
|
---|
3288 | The main things grep needs to know about mmap are:
|
---|
3289 | * does it exist and is it safe to write into the mmap'd area
|
---|
3290 | * how to use it (BSD variants) */
|
---|
3291 | #include <sys/types.h>
|
---|
3292 | #include <fcntl.h>
|
---|
3293 | #include <sys/mman.h>
|
---|
3294 |
|
---|
3295 | /* This mess was copied from the GNU getpagesize.h. */
|
---|
3296 | #ifndef HAVE_GETPAGESIZE
|
---|
3297 | # ifdef HAVE_UNISTD_H
|
---|
3298 | # include <unistd.h>
|
---|
3299 | # endif
|
---|
3300 |
|
---|
3301 | /* Assume that all systems that can run configure have sys/param.h. */
|
---|
3302 | # ifndef HAVE_SYS_PARAM_H
|
---|
3303 | # define HAVE_SYS_PARAM_H 1
|
---|
3304 | # endif
|
---|
3305 |
|
---|
3306 | # ifdef _SC_PAGESIZE
|
---|
3307 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
---|
3308 | # else /* no _SC_PAGESIZE */
|
---|
3309 | # ifdef HAVE_SYS_PARAM_H
|
---|
3310 | # include <sys/param.h>
|
---|
3311 | # ifdef EXEC_PAGESIZE
|
---|
3312 | # define getpagesize() EXEC_PAGESIZE
|
---|
3313 | # else /* no EXEC_PAGESIZE */
|
---|
3314 | # ifdef NBPG
|
---|
3315 | # define getpagesize() NBPG * CLSIZE
|
---|
3316 | # ifndef CLSIZE
|
---|
3317 | # define CLSIZE 1
|
---|
3318 | # endif /* no CLSIZE */
|
---|
3319 | # else /* no NBPG */
|
---|
3320 | # ifdef NBPC
|
---|
3321 | # define getpagesize() NBPC
|
---|
3322 | # else /* no NBPC */
|
---|
3323 | # ifdef PAGESIZE
|
---|
3324 | # define getpagesize() PAGESIZE
|
---|
3325 | # endif /* PAGESIZE */
|
---|
3326 | # endif /* no NBPC */
|
---|
3327 | # endif /* no NBPG */
|
---|
3328 | # endif /* no EXEC_PAGESIZE */
|
---|
3329 | # else /* no HAVE_SYS_PARAM_H */
|
---|
3330 | # define getpagesize() 8192 /* punt totally */
|
---|
3331 | # endif /* no HAVE_SYS_PARAM_H */
|
---|
3332 | # endif /* no _SC_PAGESIZE */
|
---|
3333 |
|
---|
3334 | #endif /* no HAVE_GETPAGESIZE */
|
---|
3335 |
|
---|
3336 | #ifdef __cplusplus
|
---|
3337 | extern "C" { void *malloc(unsigned); }
|
---|
3338 | #else
|
---|
3339 | char *malloc();
|
---|
3340 | #endif
|
---|
3341 |
|
---|
3342 | int
|
---|
3343 | main()
|
---|
3344 | {
|
---|
3345 | char *data, *data2, *data3;
|
---|
3346 | int i, pagesize;
|
---|
3347 | int fd;
|
---|
3348 |
|
---|
3349 | pagesize = getpagesize();
|
---|
3350 |
|
---|
3351 | /*
|
---|
3352 | * First, make a file with some known garbage in it.
|
---|
3353 | */
|
---|
3354 | data = malloc(pagesize);
|
---|
3355 | if (!data)
|
---|
3356 | exit(1);
|
---|
3357 | for (i = 0; i < pagesize; ++i)
|
---|
3358 | *(data + i) = rand();
|
---|
3359 | umask(0);
|
---|
3360 | fd = creat("conftestmmap", 0600);
|
---|
3361 | if (fd < 0)
|
---|
3362 | exit(1);
|
---|
3363 | if (write(fd, data, pagesize) != pagesize)
|
---|
3364 | exit(1);
|
---|
3365 | close(fd);
|
---|
3366 |
|
---|
3367 | /*
|
---|
3368 | * Next, try to mmap the file at a fixed address which
|
---|
3369 | * already has something else allocated at it. If we can,
|
---|
3370 | * also make sure that we see the same garbage.
|
---|
3371 | */
|
---|
3372 | fd = open("conftestmmap", O_RDWR);
|
---|
3373 | if (fd < 0)
|
---|
3374 | exit(1);
|
---|
3375 | data2 = malloc(2 * pagesize);
|
---|
3376 | if (!data2)
|
---|
3377 | exit(1);
|
---|
3378 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
---|
3379 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
---|
3380 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
---|
3381 | exit(1);
|
---|
3382 | for (i = 0; i < pagesize; ++i)
|
---|
3383 | if (*(data + i) != *(data2 + i))
|
---|
3384 | exit(1);
|
---|
3385 |
|
---|
3386 | /*
|
---|
3387 | * Finally, make sure that changes to the mapped area
|
---|
3388 | * do not percolate back to the file as seen by read().
|
---|
3389 | * (This is a bug on some variants of i386 svr4.0.)
|
---|
3390 | */
|
---|
3391 | for (i = 0; i < pagesize; ++i)
|
---|
3392 | *(data2 + i) = *(data2 + i) + 1;
|
---|
3393 | data3 = malloc(pagesize);
|
---|
3394 | if (!data3)
|
---|
3395 | exit(1);
|
---|
3396 | if (read(fd, data3, pagesize) != pagesize)
|
---|
3397 | exit(1);
|
---|
3398 | for (i = 0; i < pagesize; ++i)
|
---|
3399 | if (*(data + i) != *(data3 + i))
|
---|
3400 | exit(1);
|
---|
3401 | close(fd);
|
---|
3402 | unlink("conftestmmap");
|
---|
3403 | exit(0);
|
---|
3404 | }
|
---|
3405 |
|
---|
3406 | EOF
|
---|
3407 | if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
3408 | then
|
---|
3409 | ac_cv_func_mmap_fixed_mapped=yes
|
---|
3410 | else
|
---|
3411 | echo "configure: failed program was:" >&5
|
---|
3412 | cat conftest.$ac_ext >&5
|
---|
3413 | rm -fr conftest*
|
---|
3414 | ac_cv_func_mmap_fixed_mapped=no
|
---|
3415 | fi
|
---|
3416 | rm -fr conftest*
|
---|
3417 | fi
|
---|
3418 |
|
---|
3419 | fi
|
---|
3420 |
|
---|
3421 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
---|
3422 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
---|
3423 | cat >> confdefs.h <<\EOF
|
---|
3424 | #define HAVE_MMAP 1
|
---|
3425 | EOF
|
---|
3426 |
|
---|
3427 | fi
|
---|
3428 |
|
---|
3429 |
|
---|
3430 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
---|
3431 | unistd.h values.h sys/param.h
|
---|
3432 | do
|
---|
3433 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
3434 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
3435 | echo "configure:3436: checking for $ac_hdr" >&5
|
---|
3436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3437 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3438 | else
|
---|
3439 | cat > conftest.$ac_ext <<EOF
|
---|
3440 | #include <sys/types.h>
|
---|
3441 | #line 3442 "configure"
|
---|
3442 | #include "confdefs.h"
|
---|
3443 | #include <$ac_hdr>
|
---|
3444 | EOF
|
---|
3445 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3446 | { (eval echo configure:3447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3447 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3448 | if test -z "$ac_err"; then
|
---|
3449 | rm -rf conftest*
|
---|
3450 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3451 | else
|
---|
3452 | echo "$ac_err" >&5
|
---|
3453 | echo "configure: failed program was:" >&5
|
---|
3454 | cat conftest.$ac_ext >&5
|
---|
3455 | rm -rf conftest*
|
---|
3456 | eval "ac_cv_header_$ac_safe=no"
|
---|
3457 | fi
|
---|
3458 | rm -f conftest*
|
---|
3459 | fi
|
---|
3460 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3461 | echo "$ac_t""yes" 1>&6
|
---|
3462 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
3463 | cat >> confdefs.h <<EOF
|
---|
3464 | #define $ac_tr_hdr 1
|
---|
3465 | EOF
|
---|
3466 |
|
---|
3467 | else
|
---|
3468 | echo "$ac_t""no" 1>&6
|
---|
3469 | fi
|
---|
3470 | done
|
---|
3471 |
|
---|
3472 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
---|
3473 | __argz_count __argz_stringify __argz_next
|
---|
3474 | do
|
---|
3475 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3476 | echo "configure:3477: checking for $ac_func" >&5
|
---|
3477 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3478 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3479 | else
|
---|
3480 | cat > conftest.$ac_ext <<EOF
|
---|
3481 | #line 3482 "configure"
|
---|
3482 | #include "confdefs.h"
|
---|
3483 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3484 | which can conflict with char $ac_func(); below. */
|
---|
3485 | #include <assert.h>
|
---|
3486 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3487 | /* We use char because int might match the return type of a gcc2
|
---|
3488 | builtin and then its argument prototype would still apply. */
|
---|
3489 | char $ac_func();
|
---|
3490 |
|
---|
3491 | int main() {
|
---|
3492 |
|
---|
3493 | /* The GNU C library defines this for functions which it implements
|
---|
3494 | to always fail with ENOSYS. Some functions are actually named
|
---|
3495 | something starting with __ and the normal name is an alias. */
|
---|
3496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3497 | choke me
|
---|
3498 | #else
|
---|
3499 | $ac_func();
|
---|
3500 | #endif
|
---|
3501 |
|
---|
3502 | ; return 0; }
|
---|
3503 | EOF
|
---|
3504 | if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3505 | rm -rf conftest*
|
---|
3506 | eval "ac_cv_func_$ac_func=yes"
|
---|
3507 | else
|
---|
3508 | echo "configure: failed program was:" >&5
|
---|
3509 | cat conftest.$ac_ext >&5
|
---|
3510 | rm -rf conftest*
|
---|
3511 | eval "ac_cv_func_$ac_func=no"
|
---|
3512 | fi
|
---|
3513 | rm -f conftest*
|
---|
3514 | fi
|
---|
3515 |
|
---|
3516 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3517 | echo "$ac_t""yes" 1>&6
|
---|
3518 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3519 | cat >> confdefs.h <<EOF
|
---|
3520 | #define $ac_tr_func 1
|
---|
3521 | EOF
|
---|
3522 |
|
---|
3523 | else
|
---|
3524 | echo "$ac_t""no" 1>&6
|
---|
3525 | fi
|
---|
3526 | done
|
---|
3527 |
|
---|
3528 |
|
---|
3529 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
---|
3530 | for ac_func in stpcpy
|
---|
3531 | do
|
---|
3532 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3533 | echo "configure:3534: checking for $ac_func" >&5
|
---|
3534 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3535 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3536 | else
|
---|
3537 | cat > conftest.$ac_ext <<EOF
|
---|
3538 | #line 3539 "configure"
|
---|
3539 | #include "confdefs.h"
|
---|
3540 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3541 | which can conflict with char $ac_func(); below. */
|
---|
3542 | #include <assert.h>
|
---|
3543 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3544 | /* We use char because int might match the return type of a gcc2
|
---|
3545 | builtin and then its argument prototype would still apply. */
|
---|
3546 | char $ac_func();
|
---|
3547 |
|
---|
3548 | int main() {
|
---|
3549 |
|
---|
3550 | /* The GNU C library defines this for functions which it implements
|
---|
3551 | to always fail with ENOSYS. Some functions are actually named
|
---|
3552 | something starting with __ and the normal name is an alias. */
|
---|
3553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3554 | choke me
|
---|
3555 | #else
|
---|
3556 | $ac_func();
|
---|
3557 | #endif
|
---|
3558 |
|
---|
3559 | ; return 0; }
|
---|
3560 | EOF
|
---|
3561 | if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3562 | rm -rf conftest*
|
---|
3563 | eval "ac_cv_func_$ac_func=yes"
|
---|
3564 | else
|
---|
3565 | echo "configure: failed program was:" >&5
|
---|
3566 | cat conftest.$ac_ext >&5
|
---|
3567 | rm -rf conftest*
|
---|
3568 | eval "ac_cv_func_$ac_func=no"
|
---|
3569 | fi
|
---|
3570 | rm -f conftest*
|
---|
3571 | fi
|
---|
3572 |
|
---|
3573 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3574 | echo "$ac_t""yes" 1>&6
|
---|
3575 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3576 | cat >> confdefs.h <<EOF
|
---|
3577 | #define $ac_tr_func 1
|
---|
3578 | EOF
|
---|
3579 |
|
---|
3580 | else
|
---|
3581 | echo "$ac_t""no" 1>&6
|
---|
3582 | fi
|
---|
3583 | done
|
---|
3584 |
|
---|
3585 | fi
|
---|
3586 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
---|
3587 | cat >> confdefs.h <<\EOF
|
---|
3588 | #define HAVE_STPCPY 1
|
---|
3589 | EOF
|
---|
3590 |
|
---|
3591 | fi
|
---|
3592 |
|
---|
3593 | if test $ac_cv_header_locale_h = yes; then
|
---|
3594 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
---|
3595 | echo "configure:3596: checking for LC_MESSAGES" >&5
|
---|
3596 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
---|
3597 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3598 | else
|
---|
3599 | cat > conftest.$ac_ext <<EOF
|
---|
3600 | #line 3601 "configure"
|
---|
3601 | #include "confdefs.h"
|
---|
3602 | #include <locale.h>
|
---|
3603 | int main() {
|
---|
3604 | return LC_MESSAGES
|
---|
3605 | ; return 0; }
|
---|
3606 | EOF
|
---|
3607 | if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3608 | rm -rf conftest*
|
---|
3609 | am_cv_val_LC_MESSAGES=yes
|
---|
3610 | else
|
---|
3611 | echo "configure: failed program was:" >&5
|
---|
3612 | cat conftest.$ac_ext >&5
|
---|
3613 | rm -rf conftest*
|
---|
3614 | am_cv_val_LC_MESSAGES=no
|
---|
3615 | fi
|
---|
3616 | rm -f conftest*
|
---|
3617 | fi
|
---|
3618 |
|
---|
3619 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
---|
3620 | if test $am_cv_val_LC_MESSAGES = yes; then
|
---|
3621 | cat >> confdefs.h <<\EOF
|
---|
3622 | #define HAVE_LC_MESSAGES 1
|
---|
3623 | EOF
|
---|
3624 |
|
---|
3625 | fi
|
---|
3626 | fi
|
---|
3627 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
---|
3628 | echo "configure:3629: checking whether NLS is requested" >&5
|
---|
3629 | # Check whether --enable-nls or --disable-nls was given.
|
---|
3630 | if test "${enable_nls+set}" = set; then
|
---|
3631 | enableval="$enable_nls"
|
---|
3632 | USE_NLS=$enableval
|
---|
3633 | else
|
---|
3634 | USE_NLS=yes
|
---|
3635 | fi
|
---|
3636 |
|
---|
3637 | echo "$ac_t""$USE_NLS" 1>&6
|
---|
3638 |
|
---|
3639 |
|
---|
3640 | USE_INCLUDED_LIBINTL=no
|
---|
3641 |
|
---|
3642 | if test "$USE_NLS" = "yes"; then
|
---|
3643 | cat >> confdefs.h <<\EOF
|
---|
3644 | #define ENABLE_NLS 1
|
---|
3645 | EOF
|
---|
3646 |
|
---|
3647 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
---|
3648 | echo "configure:3649: checking whether included gettext is requested" >&5
|
---|
3649 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
---|
3650 | if test "${with_included_gettext+set}" = set; then
|
---|
3651 | withval="$with_included_gettext"
|
---|
3652 | nls_cv_force_use_gnu_gettext=$withval
|
---|
3653 | else
|
---|
3654 | nls_cv_force_use_gnu_gettext=no
|
---|
3655 | fi
|
---|
3656 |
|
---|
3657 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
---|
3658 |
|
---|
3659 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
---|
3660 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
---|
3661 | nls_cv_header_intl=
|
---|
3662 | nls_cv_header_libgt=
|
---|
3663 | CATOBJEXT=NONE
|
---|
3664 |
|
---|
3665 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
---|
3666 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
---|
3667 | echo "configure:3668: checking for libintl.h" >&5
|
---|
3668 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
3669 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3670 | else
|
---|
3671 | cat > conftest.$ac_ext <<EOF
|
---|
3672 | #include <sys/types.h>
|
---|
3673 | #line 3674 "configure"
|
---|
3674 | #include "confdefs.h"
|
---|
3675 | #include <libintl.h>
|
---|
3676 | EOF
|
---|
3677 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
3678 | { (eval echo configure:3679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
3679 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
3680 | if test -z "$ac_err"; then
|
---|
3681 | rm -rf conftest*
|
---|
3682 | eval "ac_cv_header_$ac_safe=yes"
|
---|
3683 | else
|
---|
3684 | echo "$ac_err" >&5
|
---|
3685 | echo "configure: failed program was:" >&5
|
---|
3686 | cat conftest.$ac_ext >&5
|
---|
3687 | rm -rf conftest*
|
---|
3688 | eval "ac_cv_header_$ac_safe=no"
|
---|
3689 | fi
|
---|
3690 | rm -f conftest*
|
---|
3691 | fi
|
---|
3692 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
3693 | echo "$ac_t""yes" 1>&6
|
---|
3694 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
---|
3695 | echo "configure:3696: checking for gettext in libc" >&5
|
---|
3696 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
---|
3697 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3698 | else
|
---|
3699 | cat > conftest.$ac_ext <<EOF
|
---|
3700 | #line 3701 "configure"
|
---|
3701 | #include "confdefs.h"
|
---|
3702 | #include <libintl.h>
|
---|
3703 | int main() {
|
---|
3704 | return (int) gettext ("")
|
---|
3705 | ; return 0; }
|
---|
3706 | EOF
|
---|
3707 | if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3708 | rm -rf conftest*
|
---|
3709 | gt_cv_func_gettext_libc=yes
|
---|
3710 | else
|
---|
3711 | echo "configure: failed program was:" >&5
|
---|
3712 | cat conftest.$ac_ext >&5
|
---|
3713 | rm -rf conftest*
|
---|
3714 | gt_cv_func_gettext_libc=no
|
---|
3715 | fi
|
---|
3716 | rm -f conftest*
|
---|
3717 | fi
|
---|
3718 |
|
---|
3719 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
---|
3720 |
|
---|
3721 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
---|
3722 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
---|
3723 | echo "configure:3724: checking for bindtextdomain in -lintl" >&5
|
---|
3724 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
---|
3725 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3726 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3727 | else
|
---|
3728 | ac_save_LIBS="$LIBS"
|
---|
3729 | LIBS="-lintl $LIBS"
|
---|
3730 | cat > conftest.$ac_ext <<EOF
|
---|
3731 | #line 3732 "configure"
|
---|
3732 | #include "confdefs.h"
|
---|
3733 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3734 | /* We use char because int might match the return type of a gcc2
|
---|
3735 | builtin and then its argument prototype would still apply. */
|
---|
3736 | char bindtextdomain();
|
---|
3737 |
|
---|
3738 | int main() {
|
---|
3739 | bindtextdomain()
|
---|
3740 | ; return 0; }
|
---|
3741 | EOF
|
---|
3742 | if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3743 | rm -rf conftest*
|
---|
3744 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3745 | else
|
---|
3746 | echo "configure: failed program was:" >&5
|
---|
3747 | cat conftest.$ac_ext >&5
|
---|
3748 | rm -rf conftest*
|
---|
3749 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3750 | fi
|
---|
3751 | rm -f conftest*
|
---|
3752 | LIBS="$ac_save_LIBS"
|
---|
3753 |
|
---|
3754 | fi
|
---|
3755 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3756 | echo "$ac_t""yes" 1>&6
|
---|
3757 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
---|
3758 | echo "configure:3759: checking for gettext in libintl" >&5
|
---|
3759 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
---|
3760 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3761 | else
|
---|
3762 | cat > conftest.$ac_ext <<EOF
|
---|
3763 | #line 3764 "configure"
|
---|
3764 | #include "confdefs.h"
|
---|
3765 |
|
---|
3766 | int main() {
|
---|
3767 | return (int) gettext ("")
|
---|
3768 | ; return 0; }
|
---|
3769 | EOF
|
---|
3770 | if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3771 | rm -rf conftest*
|
---|
3772 | gt_cv_func_gettext_libintl=yes
|
---|
3773 | else
|
---|
3774 | echo "configure: failed program was:" >&5
|
---|
3775 | cat conftest.$ac_ext >&5
|
---|
3776 | rm -rf conftest*
|
---|
3777 | gt_cv_func_gettext_libintl=no
|
---|
3778 | fi
|
---|
3779 | rm -f conftest*
|
---|
3780 | fi
|
---|
3781 |
|
---|
3782 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
---|
3783 | else
|
---|
3784 | echo "$ac_t""no" 1>&6
|
---|
3785 | fi
|
---|
3786 |
|
---|
3787 | fi
|
---|
3788 |
|
---|
3789 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
---|
3790 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
---|
3791 | cat >> confdefs.h <<\EOF
|
---|
3792 | #define HAVE_GETTEXT 1
|
---|
3793 | EOF
|
---|
3794 |
|
---|
3795 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3796 | set dummy msgfmt; ac_word=$2
|
---|
3797 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3798 | echo "configure:3799: checking for $ac_word" >&5
|
---|
3799 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
3800 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3801 | else
|
---|
3802 | case "$MSGFMT" in
|
---|
3803 | /*)
|
---|
3804 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
3805 | ;;
|
---|
3806 | *)
|
---|
3807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
3808 | for ac_dir in $PATH; do
|
---|
3809 | test -z "$ac_dir" && ac_dir=.
|
---|
3810 | if test -f $ac_dir/$ac_word; then
|
---|
3811 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
3812 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
3813 | break
|
---|
3814 | fi
|
---|
3815 | fi
|
---|
3816 | done
|
---|
3817 | IFS="$ac_save_ifs"
|
---|
3818 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
---|
3819 | ;;
|
---|
3820 | esac
|
---|
3821 | fi
|
---|
3822 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
3823 | if test -n "$MSGFMT"; then
|
---|
3824 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
3825 | else
|
---|
3826 | echo "$ac_t""no" 1>&6
|
---|
3827 | fi
|
---|
3828 | if test "$MSGFMT" != "no"; then
|
---|
3829 | for ac_func in dcgettext
|
---|
3830 | do
|
---|
3831 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
---|
3832 | echo "configure:3833: checking for $ac_func" >&5
|
---|
3833 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
---|
3834 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3835 | else
|
---|
3836 | cat > conftest.$ac_ext <<EOF
|
---|
3837 | #line 3838 "configure"
|
---|
3838 | #include "confdefs.h"
|
---|
3839 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3840 | which can conflict with char $ac_func(); below. */
|
---|
3841 | #include <assert.h>
|
---|
3842 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3843 | /* We use char because int might match the return type of a gcc2
|
---|
3844 | builtin and then its argument prototype would still apply. */
|
---|
3845 | char $ac_func();
|
---|
3846 |
|
---|
3847 | int main() {
|
---|
3848 |
|
---|
3849 | /* The GNU C library defines this for functions which it implements
|
---|
3850 | to always fail with ENOSYS. Some functions are actually named
|
---|
3851 | something starting with __ and the normal name is an alias. */
|
---|
3852 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3853 | choke me
|
---|
3854 | #else
|
---|
3855 | $ac_func();
|
---|
3856 | #endif
|
---|
3857 |
|
---|
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_func_$ac_func=yes"
|
---|
3863 | else
|
---|
3864 | echo "configure: failed program was:" >&5
|
---|
3865 | cat conftest.$ac_ext >&5
|
---|
3866 | rm -rf conftest*
|
---|
3867 | eval "ac_cv_func_$ac_func=no"
|
---|
3868 | fi
|
---|
3869 | rm -f conftest*
|
---|
3870 | fi
|
---|
3871 |
|
---|
3872 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
---|
3873 | echo "$ac_t""yes" 1>&6
|
---|
3874 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
---|
3875 | cat >> confdefs.h <<EOF
|
---|
3876 | #define $ac_tr_func 1
|
---|
3877 | EOF
|
---|
3878 |
|
---|
3879 | else
|
---|
3880 | echo "$ac_t""no" 1>&6
|
---|
3881 | fi
|
---|
3882 | done
|
---|
3883 |
|
---|
3884 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
3885 | set dummy gmsgfmt; ac_word=$2
|
---|
3886 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3887 | echo "configure:3888: checking for $ac_word" >&5
|
---|
3888 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
3889 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3890 | else
|
---|
3891 | case "$GMSGFMT" in
|
---|
3892 | /* | [a-zA-Z]:*)
|
---|
3893 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
3894 | ;;
|
---|
3895 | ?:/*)
|
---|
3896 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
3897 | ;;
|
---|
3898 | *)
|
---|
3899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
3900 | ac_dummy="$PATH"
|
---|
3901 | for ac_dir in $ac_dummy; do
|
---|
3902 | test -z "$ac_dir" && ac_dir=.
|
---|
3903 | if test -f $ac_dir/$ac_word; then
|
---|
3904 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
3905 | break
|
---|
3906 | fi
|
---|
3907 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
3908 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
3909 | break
|
---|
3910 | fi
|
---|
3911 | done
|
---|
3912 | IFS="$ac_save_ifs"
|
---|
3913 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
3914 | ;;
|
---|
3915 | esac
|
---|
3916 | fi
|
---|
3917 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
3918 | if test -n "$GMSGFMT"; then
|
---|
3919 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
3920 | else
|
---|
3921 | echo "$ac_t""no" 1>&6
|
---|
3922 | fi
|
---|
3923 |
|
---|
3924 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
3925 | set dummy xgettext; ac_word=$2
|
---|
3926 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3927 | echo "configure:3928: checking for $ac_word" >&5
|
---|
3928 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
3929 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3930 | else
|
---|
3931 | case "$XGETTEXT" in
|
---|
3932 | /*)
|
---|
3933 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
3934 | ;;
|
---|
3935 | *)
|
---|
3936 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
3937 | for ac_dir in $PATH; do
|
---|
3938 | test -z "$ac_dir" && ac_dir=.
|
---|
3939 | if test -f $ac_dir/$ac_word; then
|
---|
3940 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
3941 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
3942 | break
|
---|
3943 | fi
|
---|
3944 | fi
|
---|
3945 | done
|
---|
3946 | IFS="$ac_save_ifs"
|
---|
3947 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
3948 | ;;
|
---|
3949 | esac
|
---|
3950 | fi
|
---|
3951 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
3952 | if test -n "$XGETTEXT"; then
|
---|
3953 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
3954 | else
|
---|
3955 | echo "$ac_t""no" 1>&6
|
---|
3956 | fi
|
---|
3957 |
|
---|
3958 | cat > conftest.$ac_ext <<EOF
|
---|
3959 | #line 3960 "configure"
|
---|
3960 | #include "confdefs.h"
|
---|
3961 |
|
---|
3962 | int main() {
|
---|
3963 | extern int _nl_msg_cat_cntr;
|
---|
3964 | return _nl_msg_cat_cntr
|
---|
3965 | ; return 0; }
|
---|
3966 | EOF
|
---|
3967 | if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3968 | rm -rf conftest*
|
---|
3969 | CATOBJEXT=.gmo
|
---|
3970 | DATADIRNAME=share
|
---|
3971 | else
|
---|
3972 | echo "configure: failed program was:" >&5
|
---|
3973 | cat conftest.$ac_ext >&5
|
---|
3974 | rm -rf conftest*
|
---|
3975 | CATOBJEXT=.mo
|
---|
3976 | DATADIRNAME=lib
|
---|
3977 | fi
|
---|
3978 | rm -f conftest*
|
---|
3979 | INSTOBJEXT=.mo
|
---|
3980 | fi
|
---|
3981 | fi
|
---|
3982 |
|
---|
3983 | else
|
---|
3984 | echo "$ac_t""no" 1>&6
|
---|
3985 | fi
|
---|
3986 |
|
---|
3987 |
|
---|
3988 |
|
---|
3989 | if test "$CATOBJEXT" = "NONE"; then
|
---|
3990 | nls_cv_use_gnu_gettext=yes
|
---|
3991 | fi
|
---|
3992 | fi
|
---|
3993 |
|
---|
3994 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
---|
3995 | INTLOBJS="\$(GETTOBJS)"
|
---|
3996 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3997 | set dummy msgfmt; ac_word=$2
|
---|
3998 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3999 | echo "configure:4000: checking for $ac_word" >&5
|
---|
4000 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
4001 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4002 | else
|
---|
4003 | case "$MSGFMT" in
|
---|
4004 | /*)
|
---|
4005 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
4006 | ;;
|
---|
4007 | *)
|
---|
4008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4009 | for ac_dir in $PATH; do
|
---|
4010 | test -z "$ac_dir" && ac_dir=.
|
---|
4011 | if test -f $ac_dir/$ac_word; then
|
---|
4012 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
---|
4013 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
4014 | break
|
---|
4015 | fi
|
---|
4016 | fi
|
---|
4017 | done
|
---|
4018 | IFS="$ac_save_ifs"
|
---|
4019 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
4020 | ;;
|
---|
4021 | esac
|
---|
4022 | fi
|
---|
4023 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
4024 | if test -n "$MSGFMT"; then
|
---|
4025 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
4026 | else
|
---|
4027 | echo "$ac_t""no" 1>&6
|
---|
4028 | fi
|
---|
4029 |
|
---|
4030 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
4031 | set dummy gmsgfmt; ac_word=$2
|
---|
4032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4033 | echo "configure:4034: checking for $ac_word" >&5
|
---|
4034 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
4035 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4036 | else
|
---|
4037 | case "$GMSGFMT" in
|
---|
4038 | /* | [a-zA-Z]:*)
|
---|
4039 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
4040 | ;;
|
---|
4041 | ?:/*)
|
---|
4042 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
4043 | ;;
|
---|
4044 | *)
|
---|
4045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
---|
4046 | ac_dummy="$PATH"
|
---|
4047 | for ac_dir in $ac_dummy; do
|
---|
4048 | test -z "$ac_dir" && ac_dir=.
|
---|
4049 | if test -f $ac_dir/$ac_word; then
|
---|
4050 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
4051 | break
|
---|
4052 | fi
|
---|
4053 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
---|
4054 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
---|
4055 | break
|
---|
4056 | fi
|
---|
4057 | done
|
---|
4058 | IFS="$ac_save_ifs"
|
---|
4059 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
4060 | ;;
|
---|
4061 | esac
|
---|
4062 | fi
|
---|
4063 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
4064 | if test -n "$GMSGFMT"; then
|
---|
4065 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
4066 | else
|
---|
4067 | echo "$ac_t""no" 1>&6
|
---|
4068 | fi
|
---|
4069 |
|
---|
4070 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
4071 | set dummy xgettext; ac_word=$2
|
---|
4072 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
4073 | echo "configure:4074: checking for $ac_word" >&5
|
---|
4074 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
4075 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4076 | else
|
---|
4077 | case "$XGETTEXT" in
|
---|
4078 | /*)
|
---|
4079 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
4080 | ;;
|
---|
4081 | *)
|
---|
4082 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
---|
4083 | for ac_dir in $PATH; do
|
---|
4084 | test -z "$ac_dir" && ac_dir=.
|
---|
4085 | if test -f $ac_dir/$ac_word; then
|
---|
4086 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
4087 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
4088 | break
|
---|
4089 | fi
|
---|
4090 | fi
|
---|
4091 | done
|
---|
4092 | IFS="$ac_save_ifs"
|
---|
4093 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
4094 | ;;
|
---|
4095 | esac
|
---|
4096 | fi
|
---|
4097 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
4098 | if test -n "$XGETTEXT"; then
|
---|
4099 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
4100 | else
|
---|
4101 | echo "$ac_t""no" 1>&6
|
---|
4102 | fi
|
---|
4103 |
|
---|
4104 |
|
---|
4105 | USE_INCLUDED_LIBINTL=yes
|
---|
4106 | CATOBJEXT=.gmo
|
---|
4107 | INSTOBJEXT=.mo
|
---|
4108 | DATADIRNAME=share
|
---|
4109 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
---|
4110 | INTLLIBS=$INTLDEPS
|
---|
4111 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
---|
4112 | nls_cv_header_intl=libintl.h
|
---|
4113 | nls_cv_header_libgt=libgettext.h
|
---|
4114 | fi
|
---|
4115 |
|
---|
4116 | if test "$XGETTEXT" != ":"; then
|
---|
4117 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
4118 | : ;
|
---|
4119 | else
|
---|
4120 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
4121 | XGETTEXT=":"
|
---|
4122 | fi
|
---|
4123 | fi
|
---|
4124 |
|
---|
4125 | # We need to process the po/ directory.
|
---|
4126 | POSUB=po
|
---|
4127 | else
|
---|
4128 | DATADIRNAME=share
|
---|
4129 | nls_cv_header_intl=libintl.h
|
---|
4130 | nls_cv_header_libgt=libgettext.h
|
---|
4131 | fi
|
---|
4132 |
|
---|
4133 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
---|
4134 | # because some of the sources are only built for this goal.
|
---|
4135 | if test "$PACKAGE" = gettext; then
|
---|
4136 | USE_NLS=yes
|
---|
4137 | USE_INCLUDED_LIBINTL=yes
|
---|
4138 | fi
|
---|
4139 |
|
---|
4140 | for lang in $ALL_LINGUAS; do
|
---|
4141 | GMOFILES="$GMOFILES $lang.gmo"
|
---|
4142 | POFILES="$POFILES $lang.po"
|
---|
4143 | done
|
---|
4144 |
|
---|
4145 |
|
---|
4146 |
|
---|
4147 |
|
---|
4148 |
|
---|
4149 |
|
---|
4150 |
|
---|
4151 |
|
---|
4152 |
|
---|
4153 |
|
---|
4154 |
|
---|
4155 |
|
---|
4156 |
|
---|
4157 |
|
---|
4158 | if test "x$CATOBJEXT" != "x"; then
|
---|
4159 | if test "x$ALL_LINGUAS" = "x"; then
|
---|
4160 | LINGUAS=
|
---|
4161 | else
|
---|
4162 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
---|
4163 | echo "configure:4164: checking for catalogs to be installed" >&5
|
---|
4164 | NEW_LINGUAS=
|
---|
4165 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
---|
4166 | case "$ALL_LINGUAS" in
|
---|
4167 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
---|
4168 | esac
|
---|
4169 | done
|
---|
4170 | LINGUAS=$NEW_LINGUAS
|
---|
4171 | echo "$ac_t""$LINGUAS" 1>&6
|
---|
4172 | fi
|
---|
4173 |
|
---|
4174 | if test -n "$LINGUAS"; then
|
---|
4175 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
---|
4176 | fi
|
---|
4177 | fi
|
---|
4178 |
|
---|
4179 | if test $ac_cv_header_locale_h = yes; then
|
---|
4180 | INCLUDE_LOCALE_H="#include <locale.h>"
|
---|
4181 | else
|
---|
4182 | INCLUDE_LOCALE_H="\
|
---|
4183 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
---|
4184 | fi
|
---|
4185 |
|
---|
4186 |
|
---|
4187 | if test -f $srcdir/po2tbl.sed.in; then
|
---|
4188 | if test "$CATOBJEXT" = ".cat"; then
|
---|
4189 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
---|
4190 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
---|
4191 | echo "configure:4192: checking for linux/version.h" >&5
|
---|
4192 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4193 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4194 | else
|
---|
4195 | cat > conftest.$ac_ext <<EOF
|
---|
4196 | #include <sys/types.h>
|
---|
4197 | #line 4198 "configure"
|
---|
4198 | #include "confdefs.h"
|
---|
4199 | #include <linux/version.h>
|
---|
4200 | EOF
|
---|
4201 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4202 | { (eval echo configure:4203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4203 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4204 | if test -z "$ac_err"; then
|
---|
4205 | rm -rf conftest*
|
---|
4206 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4207 | else
|
---|
4208 | echo "$ac_err" >&5
|
---|
4209 | echo "configure: failed program was:" >&5
|
---|
4210 | cat conftest.$ac_ext >&5
|
---|
4211 | rm -rf conftest*
|
---|
4212 | eval "ac_cv_header_$ac_safe=no"
|
---|
4213 | fi
|
---|
4214 | rm -f conftest*
|
---|
4215 | fi
|
---|
4216 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4217 | echo "$ac_t""yes" 1>&6
|
---|
4218 | msgformat=linux
|
---|
4219 | else
|
---|
4220 | echo "$ac_t""no" 1>&6
|
---|
4221 | msgformat=xopen
|
---|
4222 | fi
|
---|
4223 |
|
---|
4224 |
|
---|
4225 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
---|
4226 | fi
|
---|
4227 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
---|
4228 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
---|
4229 | fi
|
---|
4230 |
|
---|
4231 | if test "$PACKAGE" = "gettext"; then
|
---|
4232 | GT_NO="#NO#"
|
---|
4233 | GT_YES=
|
---|
4234 | else
|
---|
4235 | GT_NO=
|
---|
4236 | GT_YES="#YES#"
|
---|
4237 | fi
|
---|
4238 |
|
---|
4239 |
|
---|
4240 |
|
---|
4241 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
---|
4242 |
|
---|
4243 |
|
---|
4244 | l=
|
---|
4245 |
|
---|
4246 |
|
---|
4247 | if test -d $srcdir/po; then
|
---|
4248 | test -d po || mkdir po
|
---|
4249 | if test "x$srcdir" != "x."; then
|
---|
4250 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
---|
4251 | posrcprefix="$srcdir/"
|
---|
4252 | else
|
---|
4253 | posrcprefix="../$srcdir/"
|
---|
4254 | fi
|
---|
4255 | else
|
---|
4256 | posrcprefix="../"
|
---|
4257 | fi
|
---|
4258 | rm -f po/POTFILES
|
---|
4259 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
---|
4260 | < $srcdir/po/POTFILES.in > po/POTFILES
|
---|
4261 | fi
|
---|
4262 |
|
---|
4263 |
|
---|
4264 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
---|
4265 | echo "configure:4266: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
4266 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
---|
4267 | if test "${enable_maintainer_mode+set}" = set; then
|
---|
4268 | enableval="$enable_maintainer_mode"
|
---|
4269 | USE_MAINTAINER_MODE=$enableval
|
---|
4270 | else
|
---|
4271 | USE_MAINTAINER_MODE=no
|
---|
4272 | fi
|
---|
4273 |
|
---|
4274 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
---|
4275 |
|
---|
4276 |
|
---|
4277 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
4278 | MAINTAINER_MODE_TRUE=
|
---|
4279 | MAINTAINER_MODE_FALSE='#'
|
---|
4280 | else
|
---|
4281 | MAINTAINER_MODE_TRUE='#'
|
---|
4282 | MAINTAINER_MODE_FALSE=
|
---|
4283 | fi
|
---|
4284 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
4285 |
|
---|
4286 |
|
---|
4287 |
|
---|
4288 |
|
---|
4289 |
|
---|
4290 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
4291 | echo "configure:4292: checking for executable suffix" >&5
|
---|
4292 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
4293 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4294 | else
|
---|
4295 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
---|
4296 | ac_cv_exeext=.exe
|
---|
4297 | else
|
---|
4298 | rm -f conftest*
|
---|
4299 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
4300 | ac_cv_exeext=
|
---|
4301 | if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
4302 | for file in conftest.*; do
|
---|
4303 | case $file in
|
---|
4304 | *.c | *.o | *.obj) ;;
|
---|
4305 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
4306 | esac
|
---|
4307 | done
|
---|
4308 | else
|
---|
4309 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
4310 | fi
|
---|
4311 | rm -f conftest*
|
---|
4312 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
4313 | fi
|
---|
4314 | fi
|
---|
4315 |
|
---|
4316 | EXEEXT=""
|
---|
4317 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
4318 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
4319 | ac_exeext=$EXEEXT
|
---|
4320 |
|
---|
4321 |
|
---|
4322 | for ac_hdr in sys/gmon_out.h
|
---|
4323 | do
|
---|
4324 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
---|
4325 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
---|
4326 | echo "configure:4327: checking for $ac_hdr" >&5
|
---|
4327 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
---|
4328 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4329 | else
|
---|
4330 | cat > conftest.$ac_ext <<EOF
|
---|
4331 | #include <sys/types.h>
|
---|
4332 | #line 4333 "configure"
|
---|
4333 | #include "confdefs.h"
|
---|
4334 | #include <$ac_hdr>
|
---|
4335 | EOF
|
---|
4336 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4337 | { (eval echo configure:4338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4338 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4339 | if test -z "$ac_err"; then
|
---|
4340 | rm -rf conftest*
|
---|
4341 | eval "ac_cv_header_$ac_safe=yes"
|
---|
4342 | else
|
---|
4343 | echo "$ac_err" >&5
|
---|
4344 | echo "configure: failed program was:" >&5
|
---|
4345 | cat conftest.$ac_ext >&5
|
---|
4346 | rm -rf conftest*
|
---|
4347 | eval "ac_cv_header_$ac_safe=no"
|
---|
4348 | fi
|
---|
4349 | rm -f conftest*
|
---|
4350 | fi
|
---|
4351 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
---|
4352 | echo "$ac_t""yes" 1>&6
|
---|
4353 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
---|
4354 | cat >> confdefs.h <<EOF
|
---|
4355 | #define $ac_tr_hdr 1
|
---|
4356 | EOF
|
---|
4357 |
|
---|
4358 | else
|
---|
4359 | echo "$ac_t""no" 1>&6
|
---|
4360 | fi
|
---|
4361 | done
|
---|
4362 |
|
---|
4363 |
|
---|
4364 | echo $ac_n "checking the size of gmon pointers""... $ac_c" 1>&6
|
---|
4365 | echo "configure:4366: checking the size of gmon pointers" >&5
|
---|
4366 | if test "$cross_compiling" = yes; then
|
---|
4367 | gmon_ptr_size=4
|
---|
4368 | else
|
---|
4369 | cat > conftest.$ac_ext <<EOF
|
---|
4370 | #line 4371 "configure"
|
---|
4371 | #include "confdefs.h"
|
---|
4372 | #include <stdio.h>
|
---|
4373 | #include <stdlib.h>
|
---|
4374 | #if HAVE_SYS_GMON_OUT_H
|
---|
4375 | #include <sys/gmon_out.h>
|
---|
4376 | #endif
|
---|
4377 | main()
|
---|
4378 | {
|
---|
4379 | #if HAVE_SYS_GMON_OUT_H
|
---|
4380 | struct gmon_cg_arc_record arc;
|
---|
4381 | FILE *f=fopen("conftestval", "w");
|
---|
4382 | if (!f) exit(1);
|
---|
4383 | fprintf(f, "%d\n", sizeof(arc.from_pc));
|
---|
4384 | exit(0);
|
---|
4385 | #else
|
---|
4386 | FILE *f=fopen("conftestval", "w");
|
---|
4387 | if (!f) exit(1);
|
---|
4388 | fprintf(f, "%d\n", (int) sizeof(char *));
|
---|
4389 | exit(1);
|
---|
4390 | #endif
|
---|
4391 | }
|
---|
4392 | EOF
|
---|
4393 | if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
4394 | then
|
---|
4395 | gmon_ptr_size=`cat conftestval`
|
---|
4396 | else
|
---|
4397 | echo "configure: failed program was:" >&5
|
---|
4398 | cat conftest.$ac_ext >&5
|
---|
4399 | rm -fr conftest*
|
---|
4400 | gmon_ptr_size=4
|
---|
4401 | fi
|
---|
4402 | rm -fr conftest*
|
---|
4403 | fi
|
---|
4404 |
|
---|
4405 | echo "$ac_t""$gmon_ptr_size" 1>&6
|
---|
4406 |
|
---|
4407 | cat >> confdefs.h <<EOF
|
---|
4408 | #define GMON_PTR_SIZE $gmon_ptr_size
|
---|
4409 | EOF
|
---|
4410 |
|
---|
4411 |
|
---|
4412 | build_warnings="-W -Wall"
|
---|
4413 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
---|
4414 | if test "${enable_build_warnings+set}" = set; then
|
---|
4415 | enableval="$enable_build_warnings"
|
---|
4416 | case "${enableval}" in
|
---|
4417 | yes) ;;
|
---|
4418 | no) build_warnings="-w";;
|
---|
4419 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
4420 | build_warnings="${build_warnings} ${t}";;
|
---|
4421 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
---|
4422 | build_warnings="${t} ${build_warnings}";;
|
---|
4423 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
---|
4424 | esac
|
---|
4425 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
---|
4426 | echo "Setting warning flags = $build_warnings" 6>&1
|
---|
4427 | fi
|
---|
4428 | fi
|
---|
4429 | WARN_CFLAGS=""
|
---|
4430 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
---|
4431 | WARN_CFLAGS="${build_warnings}"
|
---|
4432 | fi
|
---|
4433 |
|
---|
4434 |
|
---|
4435 | trap '' 1 2 15
|
---|
4436 | cat > confcache <<\EOF
|
---|
4437 | # This file is a shell script that caches the results of configure
|
---|
4438 | # tests run on this system so they can be shared between configure
|
---|
4439 | # scripts and configure runs. It is not useful on other systems.
|
---|
4440 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
4441 | #
|
---|
4442 | # By default, configure uses ./config.cache as the cache file,
|
---|
4443 | # creating it if it does not exist already. You can give configure
|
---|
4444 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
4445 | # what configure does when it calls configure scripts in
|
---|
4446 | # subdirectories, so they share the cache.
|
---|
4447 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
4448 | # config.status only pays attention to the cache file if you give it the
|
---|
4449 | # --recheck option to rerun configure.
|
---|
4450 | #
|
---|
4451 | EOF
|
---|
4452 | # The following way of writing the cache mishandles newlines in values,
|
---|
4453 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
4454 | # So, don't put newlines in cache variables' values.
|
---|
4455 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
4456 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
4457 | (set) 2>&1 |
|
---|
4458 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
4459 | *ac_space=\ *)
|
---|
4460 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
4461 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
4462 | sed -n \
|
---|
4463 | -e "s/'/'\\\\''/g" \
|
---|
4464 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
4465 | ;;
|
---|
4466 | *)
|
---|
4467 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
4468 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
4469 | ;;
|
---|
4470 | esac >> confcache
|
---|
4471 | if cmp -s $cache_file confcache; then
|
---|
4472 | :
|
---|
4473 | else
|
---|
4474 | if test -w $cache_file; then
|
---|
4475 | echo "updating cache $cache_file"
|
---|
4476 | cat confcache > $cache_file
|
---|
4477 | else
|
---|
4478 | echo "not updating unwritable cache $cache_file"
|
---|
4479 | fi
|
---|
4480 | fi
|
---|
4481 | rm -f confcache
|
---|
4482 |
|
---|
4483 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
4484 |
|
---|
4485 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
4486 | # Let make expand exec_prefix.
|
---|
4487 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
4488 |
|
---|
4489 | # Any assignment to VPATH causes Sun make to only execute
|
---|
4490 | # the first set of double-colon rules, so remove it if not needed.
|
---|
4491 | # If there is a colon in the path, we need to keep it.
|
---|
4492 | if test "x$srcdir" = x.; then
|
---|
4493 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
4494 | fi
|
---|
4495 |
|
---|
4496 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
4497 |
|
---|
4498 | DEFS=-DHAVE_CONFIG_H
|
---|
4499 |
|
---|
4500 | # Without the "./", some shells look in PATH for config.status.
|
---|
4501 | : ${CONFIG_STATUS=./config.status}
|
---|
4502 |
|
---|
4503 | echo creating $CONFIG_STATUS
|
---|
4504 | rm -f $CONFIG_STATUS
|
---|
4505 | cat > $CONFIG_STATUS <<EOF
|
---|
4506 | #! /bin/sh
|
---|
4507 | # Generated automatically by configure.
|
---|
4508 | # Run this file to recreate the current configuration.
|
---|
4509 | # This directory was configured as follows,
|
---|
4510 | EOF
|
---|
4511 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
---|
4512 | cat >> $CONFIG_STATUS <<EOF
|
---|
4513 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
4514 | #
|
---|
4515 | # $0 $ac_configure_args
|
---|
4516 | #
|
---|
4517 | # Compiler output produced by configure, useful for debugging
|
---|
4518 | # configure, is in ./config.log if it exists.
|
---|
4519 |
|
---|
4520 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
4521 | for ac_option
|
---|
4522 | do
|
---|
4523 | case "\$ac_option" in
|
---|
4524 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
4525 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
4526 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
4527 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
4528 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
4529 | exit 0 ;;
|
---|
4530 | -help | --help | --hel | --he | --h)
|
---|
4531 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
4532 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
4533 | esac
|
---|
4534 | done
|
---|
4535 |
|
---|
4536 | ac_given_srcdir=$srcdir
|
---|
4537 | ac_given_INSTALL="$INSTALL"
|
---|
4538 | PATHIFS="$PATH_IFS"
|
---|
4539 |
|
---|
4540 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
4541 | EOF
|
---|
4542 | cat >> $CONFIG_STATUS <<EOF
|
---|
4543 |
|
---|
4544 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4545 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
4546 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
4547 | $ac_vpsub
|
---|
4548 | $extrasub
|
---|
4549 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
---|
4550 | s%@SHELL@%$SHELL%g
|
---|
4551 | s%@CFLAGS@%$CFLAGS%g
|
---|
4552 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
4553 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
4554 | s%@FFLAGS@%$FFLAGS%g
|
---|
4555 | s%@DEFS@%$DEFS%g
|
---|
4556 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
4557 | s%@LIBS@%$LIBS%g
|
---|
4558 | s%@exec_prefix@%$exec_prefix%g
|
---|
4559 | s%@prefix@%$prefix%g
|
---|
4560 | s%@program_transform_name@%$program_transform_name%g
|
---|
4561 | s%@bindir@%$bindir%g
|
---|
4562 | s%@sbindir@%$sbindir%g
|
---|
4563 | s%@libexecdir@%$libexecdir%g
|
---|
4564 | s%@datadir@%$datadir%g
|
---|
4565 | s%@sysconfdir@%$sysconfdir%g
|
---|
4566 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
4567 | s%@localstatedir@%$localstatedir%g
|
---|
4568 | s%@libdir@%$libdir%g
|
---|
4569 | s%@includedir@%$includedir%g
|
---|
4570 | s%@oldincludedir@%$oldincludedir%g
|
---|
4571 | s%@infodir@%$infodir%g
|
---|
4572 | s%@mandir@%$mandir%g
|
---|
4573 | s%@PATH_IFS@%$PATH_IFS%g
|
---|
4574 | s%@EXEEXT@%$EXEEXT%g
|
---|
4575 | s%@host@%$host%g
|
---|
4576 | s%@host_alias@%$host_alias%g
|
---|
4577 | s%@host_cpu@%$host_cpu%g
|
---|
4578 | s%@host_vendor@%$host_vendor%g
|
---|
4579 | s%@host_os@%$host_os%g
|
---|
4580 | s%@target@%$target%g
|
---|
4581 | s%@target_alias@%$target_alias%g
|
---|
4582 | s%@target_cpu@%$target_cpu%g
|
---|
4583 | s%@target_vendor@%$target_vendor%g
|
---|
4584 | s%@target_os@%$target_os%g
|
---|
4585 | s%@build@%$build%g
|
---|
4586 | s%@build_alias@%$build_alias%g
|
---|
4587 | s%@build_cpu@%$build_cpu%g
|
---|
4588 | s%@build_vendor@%$build_vendor%g
|
---|
4589 | s%@build_os@%$build_os%g
|
---|
4590 | s%@CC@%$CC%g
|
---|
4591 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
4592 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
4593 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
4594 | s%@PACKAGE@%$PACKAGE%g
|
---|
4595 | s%@VERSION@%$VERSION%g
|
---|
4596 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
4597 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
4598 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
4599 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
4600 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
4601 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
4602 | s%@LN_S@%$LN_S%g
|
---|
4603 | s%@OBJEXT@%$OBJEXT%g
|
---|
4604 | s%@RANLIB@%$RANLIB%g
|
---|
4605 | s%@STRIP@%$STRIP%g
|
---|
4606 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
4607 | s%@CPP@%$CPP%g
|
---|
4608 | s%@ALLOCA@%$ALLOCA%g
|
---|
4609 | s%@USE_NLS@%$USE_NLS%g
|
---|
4610 | s%@MSGFMT@%$MSGFMT%g
|
---|
4611 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
4612 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
4613 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
---|
4614 | s%@CATALOGS@%$CATALOGS%g
|
---|
4615 | s%@CATOBJEXT@%$CATOBJEXT%g
|
---|
4616 | s%@DATADIRNAME@%$DATADIRNAME%g
|
---|
4617 | s%@GMOFILES@%$GMOFILES%g
|
---|
4618 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
---|
4619 | s%@INTLDEPS@%$INTLDEPS%g
|
---|
4620 | s%@INTLLIBS@%$INTLLIBS%g
|
---|
4621 | s%@INTLOBJS@%$INTLOBJS%g
|
---|
4622 | s%@POFILES@%$POFILES%g
|
---|
4623 | s%@POSUB@%$POSUB%g
|
---|
4624 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
---|
4625 | s%@GT_NO@%$GT_NO%g
|
---|
4626 | s%@GT_YES@%$GT_YES%g
|
---|
4627 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
---|
4628 | s%@l@%$l%g
|
---|
4629 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
---|
4630 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
---|
4631 | s%@MAINT@%$MAINT%g
|
---|
4632 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
---|
4633 |
|
---|
4634 | CEOF
|
---|
4635 | EOF
|
---|
4636 |
|
---|
4637 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4638 |
|
---|
4639 | # Split the substitutions into bite-sized pieces for seds with
|
---|
4640 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
4641 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
4642 | ac_file=1 # Number of current file.
|
---|
4643 | ac_beg=1 # First line for current file.
|
---|
4644 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
4645 | ac_more_lines=:
|
---|
4646 | ac_sed_cmds=""
|
---|
4647 | while $ac_more_lines; do
|
---|
4648 | if test $ac_beg -gt 1; then
|
---|
4649 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
4650 | else
|
---|
4651 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
4652 | fi
|
---|
4653 | if test ! -s conftest.s$ac_file; then
|
---|
4654 | ac_more_lines=false
|
---|
4655 | rm -f conftest.s$ac_file
|
---|
4656 | else
|
---|
4657 | if test -z "$ac_sed_cmds"; then
|
---|
4658 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
4659 | else
|
---|
4660 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
4661 | fi
|
---|
4662 | ac_file=`expr $ac_file + 1`
|
---|
4663 | ac_beg=$ac_end
|
---|
4664 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
4665 | fi
|
---|
4666 | done
|
---|
4667 | if test -z "$ac_sed_cmds"; then
|
---|
4668 | ac_sed_cmds=cat
|
---|
4669 | fi
|
---|
4670 | EOF
|
---|
4671 |
|
---|
4672 | cat >> $CONFIG_STATUS <<EOF
|
---|
4673 |
|
---|
4674 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
|
---|
4675 | EOF
|
---|
4676 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4677 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
4678 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4679 | case "$ac_file" in
|
---|
4680 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
4681 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
4682 | *) ac_file_in="${ac_file}.in" ;;
|
---|
4683 | esac
|
---|
4684 |
|
---|
4685 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
4686 |
|
---|
4687 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
4688 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
4689 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
4690 | # The file is in a subdirectory.
|
---|
4691 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
4692 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
4693 | # A "../" for each directory in $ac_dir_suffix.
|
---|
4694 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
4695 | else
|
---|
4696 | ac_dir_suffix= ac_dots=
|
---|
4697 | fi
|
---|
4698 |
|
---|
4699 | case "$ac_given_srcdir" in
|
---|
4700 | .) srcdir=.
|
---|
4701 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
4702 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
4703 | /* | [A-Za-z]:*)
|
---|
4704 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
4705 | *) # Relative path.
|
---|
4706 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
4707 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
4708 | esac
|
---|
4709 |
|
---|
4710 | case "$ac_given_INSTALL" in
|
---|
4711 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
---|
4712 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
4713 | esac
|
---|
4714 |
|
---|
4715 | echo creating "$ac_file"
|
---|
4716 | rm -f "$ac_file"
|
---|
4717 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
4718 | case "$ac_file" in
|
---|
4719 | *Makefile*) ac_comsub="1i\\
|
---|
4720 | # $configure_input" ;;
|
---|
4721 | *) ac_comsub= ;;
|
---|
4722 | esac
|
---|
4723 |
|
---|
4724 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
---|
4725 | sed -e "$ac_comsub
|
---|
4726 | s%@configure_input@%$configure_input%g
|
---|
4727 | s%@srcdir@%$srcdir%g
|
---|
4728 | s%@top_srcdir@%$top_srcdir%g
|
---|
4729 | s%@INSTALL@%$INSTALL%g
|
---|
4730 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
4731 | fi; done
|
---|
4732 | rm -f conftest.s*
|
---|
4733 |
|
---|
4734 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
4735 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
4736 | #
|
---|
4737 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
4738 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
4739 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
4740 | ac_dC='\3'
|
---|
4741 | ac_dD='%g'
|
---|
4742 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
4743 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4744 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
4745 | ac_uC=' '
|
---|
4746 | ac_uD='\4%g'
|
---|
4747 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
4748 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4749 | ac_eB='$%\1#\2define\3'
|
---|
4750 | ac_eC=' '
|
---|
4751 | ac_eD='%g'
|
---|
4752 |
|
---|
4753 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
4754 | EOF
|
---|
4755 | cat >> $CONFIG_STATUS <<EOF
|
---|
4756 | CONFIG_HEADERS="gconfig.h:gconfig.in"
|
---|
4757 | EOF
|
---|
4758 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4759 | fi
|
---|
4760 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
4761 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4762 | case "$ac_file" in
|
---|
4763 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
4764 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
4765 | *) ac_file_in="${ac_file}.in" ;;
|
---|
4766 | esac
|
---|
4767 |
|
---|
4768 | echo creating $ac_file
|
---|
4769 |
|
---|
4770 | rm -f conftest.frag conftest.in conftest.out
|
---|
4771 | # kso the other way around might work better with drive letters and such.
|
---|
4772 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
4773 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
---|
4774 | cat $ac_file_inputs > conftest.in
|
---|
4775 |
|
---|
4776 | EOF
|
---|
4777 |
|
---|
4778 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
4779 | # the proper values into config.h.in to produce config.h. And first:
|
---|
4780 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4781 | # Protect against being in an unquoted here document in config.status.
|
---|
4782 | rm -f conftest.vals
|
---|
4783 | cat > conftest.hdr <<\EOF
|
---|
4784 | s/[\\&%]/\\&/g
|
---|
4785 | s%[\\$`]%\\&%g
|
---|
4786 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
4787 | s%ac_d%ac_u%gp
|
---|
4788 | s%ac_u%ac_e%gp
|
---|
4789 | EOF
|
---|
4790 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
4791 | rm -f conftest.hdr
|
---|
4792 |
|
---|
4793 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
4794 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
4795 | # on some systems where configure will not decide to define it.
|
---|
4796 | cat >> conftest.vals <<\EOF
|
---|
4797 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
4798 | EOF
|
---|
4799 |
|
---|
4800 | # Break up conftest.vals because some shells have a limit on
|
---|
4801 | # the size of here documents, and old seds have small limits too.
|
---|
4802 |
|
---|
4803 | rm -f conftest.tail
|
---|
4804 | while :
|
---|
4805 | do
|
---|
4806 | ac_lines=`grep -c . conftest.vals`
|
---|
4807 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
4808 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
4809 | # Write a limited-size here document to conftest.frag.
|
---|
4810 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
4811 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
4812 | echo 'CEOF
|
---|
4813 | sed -f conftest.frag conftest.in > conftest.out
|
---|
4814 | rm -f conftest.in
|
---|
4815 | mv conftest.out conftest.in
|
---|
4816 | ' >> $CONFIG_STATUS
|
---|
4817 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
4818 | rm -f conftest.vals
|
---|
4819 | mv conftest.tail conftest.vals
|
---|
4820 | done
|
---|
4821 | rm -f conftest.vals
|
---|
4822 |
|
---|
4823 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4824 | rm -f conftest.frag conftest.h
|
---|
4825 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
4826 | cat conftest.in >> conftest.h
|
---|
4827 | rm -f conftest.in
|
---|
4828 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
4829 | echo "$ac_file is unchanged"
|
---|
4830 | rm -f conftest.h
|
---|
4831 | else
|
---|
4832 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
4833 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
4834 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
4835 | # The file is in a subdirectory.
|
---|
4836 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
4837 | fi
|
---|
4838 | rm -f $ac_file
|
---|
4839 | mv conftest.h $ac_file
|
---|
4840 | fi
|
---|
4841 | fi; done
|
---|
4842 |
|
---|
4843 | EOF
|
---|
4844 | cat >> $CONFIG_STATUS <<EOF
|
---|
4845 |
|
---|
4846 |
|
---|
4847 | EOF
|
---|
4848 | cat >> $CONFIG_STATUS <<\EOF
|
---|
4849 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
4850 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
---|
4851 | exit 0
|
---|
4852 | EOF
|
---|
4853 | chmod +x $CONFIG_STATUS
|
---|
4854 | rm -fr confdefs* $ac_clean_files
|
---|
4855 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
4856 |
|
---|