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