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