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