Commit | Line | Data |
---|---|---|
bb69a2b6 TT |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.12.1 | |
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 | --disable-nls do not use Native Language Support" | |
16 | ac_help="$ac_help | |
17 | --with-included-gettext use the GNU gettext library included here" | |
18 | ac_help="$ac_help | |
19 | --with-catgets use catgets functions if available" | |
20 | ||
21 | # Initialize some variables set by options. | |
22 | # The variables have the same names as the options, with | |
23 | # dashes changed to underlines. | |
24 | build=NONE | |
25 | cache_file=./config.cache | |
26 | exec_prefix=NONE | |
27 | host=NONE | |
28 | no_create= | |
29 | nonopt=NONE | |
30 | no_recursion= | |
31 | prefix=NONE | |
32 | program_prefix=NONE | |
33 | program_suffix=NONE | |
34 | program_transform_name=s,x,x, | |
35 | silent= | |
36 | site= | |
37 | srcdir= | |
38 | target=NONE | |
39 | verbose= | |
40 | x_includes=NONE | |
41 | x_libraries=NONE | |
42 | bindir='${exec_prefix}/bin' | |
43 | sbindir='${exec_prefix}/sbin' | |
44 | libexecdir='${exec_prefix}/libexec' | |
45 | datadir='${prefix}/share' | |
46 | sysconfdir='${prefix}/etc' | |
47 | sharedstatedir='${prefix}/com' | |
48 | localstatedir='${prefix}/var' | |
49 | libdir='${exec_prefix}/lib' | |
50 | includedir='${prefix}/include' | |
51 | oldincludedir='/usr/include' | |
52 | infodir='${prefix}/info' | |
53 | mandir='${prefix}/man' | |
54 | ||
55 | # Initialize some other variables. | |
56 | subdirs= | |
57 | MFLAGS= MAKEFLAGS= | |
58 | SHELL=${CONFIG_SHELL-/bin/sh} | |
59 | # Maximum number of lines to put in a shell here document. | |
60 | ac_max_here_lines=12 | |
61 | ||
62 | ac_prev= | |
63 | for ac_option | |
64 | do | |
65 | ||
66 | # If the previous option needs an argument, assign it. | |
67 | if test -n "$ac_prev"; then | |
68 | eval "$ac_prev=\$ac_option" | |
69 | ac_prev= | |
70 | continue | |
71 | fi | |
72 | ||
73 | case "$ac_option" in | |
74 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
75 | *) ac_optarg= ;; | |
76 | esac | |
77 | ||
78 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
79 | ||
80 | case "$ac_option" in | |
81 | ||
82 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
83 | ac_prev=bindir ;; | |
84 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
85 | bindir="$ac_optarg" ;; | |
86 | ||
87 | -build | --build | --buil | --bui | --bu) | |
88 | ac_prev=build ;; | |
89 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
90 | build="$ac_optarg" ;; | |
91 | ||
92 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
93 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
94 | ac_prev=cache_file ;; | |
95 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
96 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
97 | cache_file="$ac_optarg" ;; | |
98 | ||
99 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
100 | ac_prev=datadir ;; | |
101 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
102 | | --da=*) | |
103 | datadir="$ac_optarg" ;; | |
104 | ||
105 | -disable-* | --disable-*) | |
106 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
107 | # Reject names that are not valid shell variable names. | |
108 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
109 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
110 | fi | |
111 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
112 | eval "enable_${ac_feature}=no" ;; | |
113 | ||
114 | -enable-* | --enable-*) | |
115 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
116 | # Reject names that are not valid shell variable names. | |
117 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
118 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
119 | fi | |
120 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
121 | case "$ac_option" in | |
122 | *=*) ;; | |
123 | *) ac_optarg=yes ;; | |
124 | esac | |
125 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
126 | ||
127 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
128 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
129 | | --exec | --exe | --ex) | |
130 | ac_prev=exec_prefix ;; | |
131 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
132 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
133 | | --exec=* | --exe=* | --ex=*) | |
134 | exec_prefix="$ac_optarg" ;; | |
135 | ||
136 | -gas | --gas | --ga | --g) | |
137 | # Obsolete; use --with-gas. | |
138 | with_gas=yes ;; | |
139 | ||
140 | -help | --help | --hel | --he) | |
141 | # Omit some internal or obsolete options to make the list less imposing. | |
142 | # This message is too long to be a string in the A/UX 3.1 sh. | |
143 | cat << EOF | |
144 | Usage: configure [options] [host] | |
145 | Options: [defaults in brackets after descriptions] | |
146 | Configuration: | |
147 | --cache-file=FILE cache test results in FILE | |
148 | --help print this message | |
149 | --no-create do not create output files | |
150 | --quiet, --silent do not print \`checking...' messages | |
151 | --version print the version of autoconf that created configure | |
152 | Directory and file names: | |
153 | --prefix=PREFIX install architecture-independent files in PREFIX | |
154 | [$ac_default_prefix] | |
155 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
156 | [same as prefix] | |
157 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
158 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
159 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
160 | --datadir=DIR read-only architecture-independent data in DIR | |
161 | [PREFIX/share] | |
162 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
163 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
164 | [PREFIX/com] | |
165 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
166 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
167 | --includedir=DIR C header files in DIR [PREFIX/include] | |
168 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
169 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
170 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
171 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
172 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
173 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
174 | --program-transform-name=PROGRAM | |
175 | run sed PROGRAM on installed program names | |
176 | EOF | |
177 | cat << EOF | |
178 | Host type: | |
179 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
180 | --host=HOST configure for HOST [guessed] | |
181 | --target=TARGET configure for TARGET [TARGET=HOST] | |
182 | Features and packages: | |
183 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
184 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
185 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
186 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
187 | --x-includes=DIR X include files are in DIR | |
188 | --x-libraries=DIR X library files are in DIR | |
189 | EOF | |
190 | if test -n "$ac_help"; then | |
191 | echo "--enable and --with options recognized:$ac_help" | |
192 | fi | |
193 | exit 0 ;; | |
194 | ||
195 | -host | --host | --hos | --ho) | |
196 | ac_prev=host ;; | |
197 | -host=* | --host=* | --hos=* | --ho=*) | |
198 | host="$ac_optarg" ;; | |
199 | ||
200 | -includedir | --includedir | --includedi | --included | --include \ | |
201 | | --includ | --inclu | --incl | --inc) | |
202 | ac_prev=includedir ;; | |
203 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
204 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
205 | includedir="$ac_optarg" ;; | |
206 | ||
207 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
208 | ac_prev=infodir ;; | |
209 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
210 | infodir="$ac_optarg" ;; | |
211 | ||
212 | -libdir | --libdir | --libdi | --libd) | |
213 | ac_prev=libdir ;; | |
214 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
215 | libdir="$ac_optarg" ;; | |
216 | ||
217 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
218 | | --libexe | --libex | --libe) | |
219 | ac_prev=libexecdir ;; | |
220 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
221 | | --libexe=* | --libex=* | --libe=*) | |
222 | libexecdir="$ac_optarg" ;; | |
223 | ||
224 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
225 | | --localstate | --localstat | --localsta | --localst \ | |
226 | | --locals | --local | --loca | --loc | --lo) | |
227 | ac_prev=localstatedir ;; | |
228 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
229 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
230 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
231 | localstatedir="$ac_optarg" ;; | |
232 | ||
233 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
234 | ac_prev=mandir ;; | |
235 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
236 | mandir="$ac_optarg" ;; | |
237 | ||
238 | -nfp | --nfp | --nf) | |
239 | # Obsolete; use --without-fp. | |
240 | with_fp=no ;; | |
241 | ||
242 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
243 | | --no-cr | --no-c) | |
244 | no_create=yes ;; | |
245 | ||
246 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
247 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
248 | no_recursion=yes ;; | |
249 | ||
250 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
251 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
252 | | --oldin | --oldi | --old | --ol | --o) | |
253 | ac_prev=oldincludedir ;; | |
254 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
255 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
256 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
257 | oldincludedir="$ac_optarg" ;; | |
258 | ||
259 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
260 | ac_prev=prefix ;; | |
261 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
262 | prefix="$ac_optarg" ;; | |
263 | ||
264 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
265 | | --program-pre | --program-pr | --program-p) | |
266 | ac_prev=program_prefix ;; | |
267 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
268 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
269 | program_prefix="$ac_optarg" ;; | |
270 | ||
271 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
272 | | --program-suf | --program-su | --program-s) | |
273 | ac_prev=program_suffix ;; | |
274 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
275 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
276 | program_suffix="$ac_optarg" ;; | |
277 | ||
278 | -program-transform-name | --program-transform-name \ | |
279 | | --program-transform-nam | --program-transform-na \ | |
280 | | --program-transform-n | --program-transform- \ | |
281 | | --program-transform | --program-transfor \ | |
282 | | --program-transfo | --program-transf \ | |
283 | | --program-trans | --program-tran \ | |
284 | | --progr-tra | --program-tr | --program-t) | |
285 | ac_prev=program_transform_name ;; | |
286 | -program-transform-name=* | --program-transform-name=* \ | |
287 | | --program-transform-nam=* | --program-transform-na=* \ | |
288 | | --program-transform-n=* | --program-transform-=* \ | |
289 | | --program-transform=* | --program-transfor=* \ | |
290 | | --program-transfo=* | --program-transf=* \ | |
291 | | --program-trans=* | --program-tran=* \ | |
292 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
293 | program_transform_name="$ac_optarg" ;; | |
294 | ||
295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
296 | | -silent | --silent | --silen | --sile | --sil) | |
297 | silent=yes ;; | |
298 | ||
299 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
300 | ac_prev=sbindir ;; | |
301 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
302 | | --sbi=* | --sb=*) | |
303 | sbindir="$ac_optarg" ;; | |
304 | ||
305 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
306 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
307 | | --sharedst | --shareds | --shared | --share | --shar \ | |
308 | | --sha | --sh) | |
309 | ac_prev=sharedstatedir ;; | |
310 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
311 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
312 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
313 | | --sha=* | --sh=*) | |
314 | sharedstatedir="$ac_optarg" ;; | |
315 | ||
316 | -site | --site | --sit) | |
317 | ac_prev=site ;; | |
318 | -site=* | --site=* | --sit=*) | |
319 | site="$ac_optarg" ;; | |
320 | ||
321 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
322 | ac_prev=srcdir ;; | |
323 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
324 | srcdir="$ac_optarg" ;; | |
325 | ||
326 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
327 | | --syscon | --sysco | --sysc | --sys | --sy) | |
328 | ac_prev=sysconfdir ;; | |
329 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
330 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
331 | sysconfdir="$ac_optarg" ;; | |
332 | ||
333 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
334 | ac_prev=target ;; | |
335 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
336 | target="$ac_optarg" ;; | |
337 | ||
338 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
339 | verbose=yes ;; | |
340 | ||
341 | -version | --version | --versio | --versi | --vers) | |
342 | echo "configure generated by autoconf version 2.12.1" | |
343 | exit 0 ;; | |
344 | ||
345 | -with-* | --with-*) | |
346 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
347 | # Reject names that are not valid shell variable names. | |
348 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
349 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
350 | fi | |
351 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
352 | case "$ac_option" in | |
353 | *=*) ;; | |
354 | *) ac_optarg=yes ;; | |
355 | esac | |
356 | eval "with_${ac_package}='$ac_optarg'" ;; | |
357 | ||
358 | -without-* | --without-*) | |
359 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
360 | # Reject names that are not valid shell variable names. | |
361 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
363 | fi | |
364 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
365 | eval "with_${ac_package}=no" ;; | |
366 | ||
367 | --x) | |
368 | # Obsolete; use --with-x. | |
369 | with_x=yes ;; | |
370 | ||
371 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
372 | | --x-incl | --x-inc | --x-in | --x-i) | |
373 | ac_prev=x_includes ;; | |
374 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
375 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
376 | x_includes="$ac_optarg" ;; | |
377 | ||
378 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
379 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
380 | ac_prev=x_libraries ;; | |
381 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
382 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
383 | x_libraries="$ac_optarg" ;; | |
384 | ||
385 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
386 | ;; | |
387 | ||
388 | *) | |
389 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
390 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
391 | fi | |
392 | if test "x$nonopt" != xNONE; then | |
393 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
394 | fi | |
395 | nonopt="$ac_option" | |
396 | ;; | |
397 | ||
398 | esac | |
399 | done | |
400 | ||
401 | if test -n "$ac_prev"; then | |
402 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
403 | fi | |
404 | ||
405 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
406 | ||
407 | # File descriptor usage: | |
408 | # 0 standard input | |
409 | # 1 file creation | |
410 | # 2 errors and warnings | |
411 | # 3 some systems may open it to /dev/tty | |
412 | # 4 used on the Kubota Titan | |
413 | # 6 checking for... messages and results | |
414 | # 5 compiler messages saved in config.log | |
415 | if test "$silent" = yes; then | |
416 | exec 6>/dev/null | |
417 | else | |
418 | exec 6>&1 | |
419 | fi | |
420 | exec 5>./config.log | |
421 | ||
422 | echo "\ | |
423 | This file contains any messages produced by compilers while | |
424 | running configure, to aid debugging if configure makes a mistake. | |
425 | " 1>&5 | |
426 | ||
427 | # Strip out --no-create and --no-recursion so they do not pile up. | |
428 | # Also quote any args containing shell metacharacters. | |
429 | ac_configure_args= | |
430 | for ac_arg | |
431 | do | |
432 | case "$ac_arg" in | |
433 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
434 | | --no-cr | --no-c) ;; | |
435 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
436 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
437 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
438 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
439 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
440 | esac | |
441 | done | |
442 | ||
443 | # NLS nuisances. | |
444 | # Only set these to C if already set. These must not be set unconditionally | |
445 | # because not all systems understand e.g. LANG=C (notably SCO). | |
446 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
447 | # Non-C LC_CTYPE values break the ctype check. | |
448 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
449 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
450 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
451 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
452 | ||
453 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
454 | rm -rf conftest* confdefs.h | |
455 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
456 | echo > confdefs.h | |
457 | ||
458 | # A filename unique to this package, relative to the directory that | |
459 | # configure is in, which we can look for to find out if srcdir is correct. | |
460 | ac_unique_file=dgettext.c | |
461 | ||
462 | # Find the source files, if location was not specified. | |
463 | if test -z "$srcdir"; then | |
464 | ac_srcdir_defaulted=yes | |
465 | # Try the directory containing this script, then its parent. | |
466 | ac_prog=$0 | |
467 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
468 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
469 | srcdir=$ac_confdir | |
470 | if test ! -r $srcdir/$ac_unique_file; then | |
471 | srcdir=.. | |
472 | fi | |
473 | else | |
474 | ac_srcdir_defaulted=no | |
475 | fi | |
476 | if test ! -r $srcdir/$ac_unique_file; then | |
477 | if test "$ac_srcdir_defaulted" = yes; then | |
478 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
479 | else | |
480 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
481 | fi | |
482 | fi | |
483 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
484 | ||
485 | # Prefer explicitly selected file to automatically selected ones. | |
486 | if test -z "$CONFIG_SITE"; then | |
487 | if test "x$prefix" != xNONE; then | |
488 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
489 | else | |
490 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
491 | fi | |
492 | fi | |
493 | for ac_site_file in $CONFIG_SITE; do | |
494 | if test -r "$ac_site_file"; then | |
495 | echo "loading site script $ac_site_file" | |
496 | . "$ac_site_file" | |
497 | fi | |
498 | done | |
499 | ||
500 | if test -r "$cache_file"; then | |
501 | echo "loading cache $cache_file" | |
502 | . $cache_file | |
503 | else | |
504 | echo "creating cache $cache_file" | |
505 | > $cache_file | |
506 | fi | |
507 | ||
508 | ac_ext=c | |
509 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
510 | ac_cpp='$CPP $CPPFLAGS' | |
511 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
512 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
513 | cross_compiling=$ac_cv_prog_cc_cross | |
514 | ||
515 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
516 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
517 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
518 | ac_n= ac_c=' | |
519 | ' ac_t=' ' | |
520 | else | |
521 | ac_n=-n ac_c= ac_t= | |
522 | fi | |
523 | else | |
524 | ac_n= ac_c='\c' ac_t= | |
525 | fi | |
526 | ||
527 | ||
528 | ||
529 | ||
530 | ||
531 | ||
532 | ac_aux_dir= | |
533 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
534 | if test -f $ac_dir/install-sh; then | |
535 | ac_aux_dir=$ac_dir | |
536 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
537 | break | |
538 | elif test -f $ac_dir/install.sh; then | |
539 | ac_aux_dir=$ac_dir | |
540 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
541 | break | |
542 | fi | |
543 | done | |
544 | if test -z "$ac_aux_dir"; then | |
545 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
546 | fi | |
547 | ac_config_guess=$ac_aux_dir/config.guess | |
548 | ac_config_sub=$ac_aux_dir/config.sub | |
549 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
550 | ||
551 | # Find a good install program. We prefer a C program (faster), | |
552 | # so one script is as good as another. But avoid the broken or | |
553 | # incompatible versions: | |
554 | # SysV /etc/install, /usr/sbin/install | |
555 | # SunOS /usr/etc/install | |
556 | # IRIX /sbin/install | |
557 | # AIX /bin/install | |
558 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
559 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
560 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
561 | # ./install, which can be erroneously created by make from ./install.sh. | |
562 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
563 | echo "configure:564: checking for a BSD compatible install" >&5 | |
564 | if test -z "$INSTALL"; then | |
565 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
567 | else | |
568 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
569 | for ac_dir in $PATH; do | |
570 | # Account for people who put trailing slashes in PATH elements. | |
571 | case "$ac_dir/" in | |
572 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
573 | *) | |
574 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
575 | # Don't use installbsd from OSF since it installs stuff as root | |
576 | # by default. | |
577 | for ac_prog in ginstall scoinst install; do | |
578 | if test -f $ac_dir/$ac_prog; then | |
579 | if test $ac_prog = install && | |
580 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
581 | # AIX install. It has an incompatible calling convention. | |
582 | : | |
583 | else | |
584 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
585 | break 2 | |
586 | fi | |
587 | fi | |
588 | done | |
589 | ;; | |
590 | esac | |
591 | done | |
592 | IFS="$ac_save_IFS" | |
593 | ||
594 | fi | |
595 | if test "${ac_cv_path_install+set}" = set; then | |
596 | INSTALL="$ac_cv_path_install" | |
597 | else | |
598 | # As a last resort, use the slow shell script. We don't cache a | |
599 | # path for INSTALL within a source directory, because that will | |
600 | # break other packages using the cache if that directory is | |
601 | # removed, or if the path is relative. | |
602 | INSTALL="$ac_install_sh" | |
603 | fi | |
604 | fi | |
605 | echo "$ac_t""$INSTALL" 1>&6 | |
606 | ||
607 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
608 | # It thinks the first close brace ends the variable substitution. | |
609 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
610 | ||
611 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
612 | ||
613 | ||
614 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
615 | ||
616 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
617 | echo "configure:618: checking how to run the C preprocessor" >&5 | |
618 | # On Suns, sometimes $CPP names a directory. | |
619 | if test -n "$CPP" && test -d "$CPP"; then | |
620 | CPP= | |
621 | fi | |
622 | if test -z "$CPP"; then | |
623 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
625 | else | |
626 | # This must be in double quotes, not single quotes, because CPP may get | |
627 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
628 | CPP="${CC-cc} -E" | |
629 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
630 | # not just through cpp. | |
631 | cat > conftest.$ac_ext <<EOF | |
632 | #line 633 "configure" | |
633 | #include "confdefs.h" | |
634 | #include <assert.h> | |
635 | Syntax Error | |
636 | EOF | |
637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
638 | { (eval echo configure:639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
639 | ac_err=`grep -v '^ *+' conftest.out` | |
640 | if test -z "$ac_err"; then | |
641 | : | |
642 | else | |
643 | echo "$ac_err" >&5 | |
644 | echo "configure: failed program was:" >&5 | |
645 | cat conftest.$ac_ext >&5 | |
646 | rm -rf conftest* | |
647 | CPP="${CC-cc} -E -traditional-cpp" | |
648 | cat > conftest.$ac_ext <<EOF | |
649 | #line 650 "configure" | |
650 | #include "confdefs.h" | |
651 | #include <assert.h> | |
652 | Syntax Error | |
653 | EOF | |
654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
655 | { (eval echo configure:656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
656 | ac_err=`grep -v '^ *+' conftest.out` | |
657 | if test -z "$ac_err"; then | |
658 | : | |
659 | else | |
660 | echo "$ac_err" >&5 | |
661 | echo "configure: failed program was:" >&5 | |
662 | cat conftest.$ac_ext >&5 | |
663 | rm -rf conftest* | |
664 | CPP=/lib/cpp | |
665 | fi | |
666 | rm -f conftest* | |
667 | fi | |
668 | rm -f conftest* | |
669 | ac_cv_prog_CPP="$CPP" | |
670 | fi | |
671 | CPP="$ac_cv_prog_CPP" | |
672 | else | |
673 | ac_cv_prog_CPP="$CPP" | |
674 | fi | |
675 | echo "$ac_t""$CPP" 1>&6 | |
676 | ||
677 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
678 | echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
679 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
680 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
682 | else | |
683 | cat > conftestmake <<\EOF | |
684 | all: | |
685 | @echo 'ac_maketemp="${MAKE}"' | |
686 | EOF | |
687 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
688 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
689 | if test -n "$ac_maketemp"; then | |
690 | eval ac_cv_prog_make_${ac_make}_set=yes | |
691 | else | |
692 | eval ac_cv_prog_make_${ac_make}_set=no | |
693 | fi | |
694 | rm -f conftestmake | |
695 | fi | |
696 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
697 | echo "$ac_t""yes" 1>&6 | |
698 | SET_MAKE= | |
699 | else | |
700 | echo "$ac_t""no" 1>&6 | |
701 | SET_MAKE="MAKE=${MAKE-make}" | |
702 | fi | |
703 | ||
704 | # Extract the first word of "gcc", so it can be a program name with args. | |
705 | set dummy gcc; ac_word=$2 | |
706 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
707 | echo "configure:708: checking for $ac_word" >&5 | |
708 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
710 | else | |
711 | if test -n "$CC"; then | |
712 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
713 | else | |
714 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
715 | for ac_dir in $PATH; do | |
716 | test -z "$ac_dir" && ac_dir=. | |
717 | if test -f $ac_dir/$ac_word; then | |
718 | ac_cv_prog_CC="gcc" | |
719 | break | |
720 | fi | |
721 | done | |
722 | IFS="$ac_save_ifs" | |
723 | fi | |
724 | fi | |
725 | CC="$ac_cv_prog_CC" | |
726 | if test -n "$CC"; then | |
727 | echo "$ac_t""$CC" 1>&6 | |
728 | else | |
729 | echo "$ac_t""no" 1>&6 | |
730 | fi | |
731 | ||
732 | if test -z "$CC"; then | |
733 | # Extract the first word of "cc", so it can be a program name with args. | |
734 | set dummy cc; ac_word=$2 | |
735 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
736 | echo "configure:737: checking for $ac_word" >&5 | |
737 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
739 | else | |
740 | if test -n "$CC"; then | |
741 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
742 | else | |
743 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
744 | ac_prog_rejected=no | |
745 | for ac_dir in $PATH; do | |
746 | test -z "$ac_dir" && ac_dir=. | |
747 | if test -f $ac_dir/$ac_word; then | |
748 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
749 | ac_prog_rejected=yes | |
750 | continue | |
751 | fi | |
752 | ac_cv_prog_CC="cc" | |
753 | break | |
754 | fi | |
755 | done | |
756 | IFS="$ac_save_ifs" | |
757 | if test $ac_prog_rejected = yes; then | |
758 | # We found a bogon in the path, so make sure we never use it. | |
759 | set dummy $ac_cv_prog_CC | |
760 | shift | |
761 | if test $# -gt 0; then | |
762 | # We chose a different compiler from the bogus one. | |
763 | # However, it has the same basename, so the bogon will be chosen | |
764 | # first if we set CC to just the basename; use the full file name. | |
765 | shift | |
766 | set dummy "$ac_dir/$ac_word" "$@" | |
767 | shift | |
768 | ac_cv_prog_CC="$@" | |
769 | fi | |
770 | fi | |
771 | fi | |
772 | fi | |
773 | CC="$ac_cv_prog_CC" | |
774 | if test -n "$CC"; then | |
775 | echo "$ac_t""$CC" 1>&6 | |
776 | else | |
777 | echo "$ac_t""no" 1>&6 | |
778 | fi | |
779 | ||
780 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
781 | fi | |
782 | ||
783 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
784 | echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
785 | ||
786 | ac_ext=c | |
787 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
788 | ac_cpp='$CPP $CPPFLAGS' | |
789 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
790 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
791 | cross_compiling=$ac_cv_prog_cc_cross | |
792 | ||
793 | cat > conftest.$ac_ext <<EOF | |
794 | #line 795 "configure" | |
795 | #include "confdefs.h" | |
796 | main(){return(0);} | |
797 | EOF | |
798 | if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
799 | ac_cv_prog_cc_works=yes | |
800 | # If we can't run a trivial program, we are probably using a cross compiler. | |
801 | if (./conftest; exit) 2>/dev/null; then | |
802 | ac_cv_prog_cc_cross=no | |
803 | else | |
804 | ac_cv_prog_cc_cross=yes | |
805 | fi | |
806 | else | |
807 | echo "configure: failed program was:" >&5 | |
808 | cat conftest.$ac_ext >&5 | |
809 | ac_cv_prog_cc_works=no | |
810 | fi | |
811 | rm -fr conftest* | |
812 | ||
813 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
814 | if test $ac_cv_prog_cc_works = no; then | |
815 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
816 | fi | |
817 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
818 | echo "configure:819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
819 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
820 | cross_compiling=$ac_cv_prog_cc_cross | |
821 | ||
822 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
823 | echo "configure:824: checking whether we are using GNU C" >&5 | |
824 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
826 | else | |
827 | cat > conftest.c <<EOF | |
828 | #ifdef __GNUC__ | |
829 | yes; | |
830 | #endif | |
831 | EOF | |
832 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
833 | ac_cv_prog_gcc=yes | |
834 | else | |
835 | ac_cv_prog_gcc=no | |
836 | fi | |
837 | fi | |
838 | ||
839 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
840 | ||
841 | if test $ac_cv_prog_gcc = yes; then | |
842 | GCC=yes | |
843 | ac_test_CFLAGS="${CFLAGS+set}" | |
844 | ac_save_CFLAGS="$CFLAGS" | |
845 | CFLAGS= | |
846 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
847 | echo "configure:848: checking whether ${CC-cc} accepts -g" >&5 | |
848 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
850 | else | |
851 | echo 'void f(){}' > conftest.c | |
852 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
853 | ac_cv_prog_cc_g=yes | |
854 | else | |
855 | ac_cv_prog_cc_g=no | |
856 | fi | |
857 | rm -f conftest* | |
858 | ||
859 | fi | |
860 | ||
861 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
862 | if test "$ac_test_CFLAGS" = set; then | |
863 | CFLAGS="$ac_save_CFLAGS" | |
864 | elif test $ac_cv_prog_cc_g = yes; then | |
865 | CFLAGS="-g -O2" | |
866 | else | |
867 | CFLAGS="-O2" | |
868 | fi | |
869 | else | |
870 | GCC= | |
871 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
872 | fi | |
873 | ||
874 | # Extract the first word of "ranlib", so it can be a program name with args. | |
875 | set dummy ranlib; ac_word=$2 | |
876 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
877 | echo "configure:878: checking for $ac_word" >&5 | |
878 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
880 | else | |
881 | if test -n "$RANLIB"; then | |
882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
883 | else | |
884 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
885 | for ac_dir in $PATH; do | |
886 | test -z "$ac_dir" && ac_dir=. | |
887 | if test -f $ac_dir/$ac_word; then | |
888 | ac_cv_prog_RANLIB="ranlib" | |
889 | break | |
890 | fi | |
891 | done | |
892 | IFS="$ac_save_ifs" | |
893 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
894 | fi | |
895 | fi | |
896 | RANLIB="$ac_cv_prog_RANLIB" | |
897 | if test -n "$RANLIB"; then | |
898 | echo "$ac_t""$RANLIB" 1>&6 | |
899 | else | |
900 | echo "$ac_t""no" 1>&6 | |
901 | fi | |
902 | ||
903 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
904 | echo "configure:905: checking for POSIXized ISC" >&5 | |
905 | if test -d /etc/conf/kconfig.d && | |
906 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
907 | then | |
908 | echo "$ac_t""yes" 1>&6 | |
909 | ISC=yes # If later tests want to check for ISC. | |
910 | cat >> confdefs.h <<\EOF | |
911 | #define _POSIX_SOURCE 1 | |
912 | EOF | |
913 | ||
914 | if test "$GCC" = yes; then | |
915 | CC="$CC -posix" | |
916 | else | |
917 | CC="$CC -Xp" | |
918 | fi | |
919 | else | |
920 | echo "$ac_t""no" 1>&6 | |
921 | ISC= | |
922 | fi | |
923 | ||
924 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
925 | echo "configure:926: checking for ANSI C header files" >&5 | |
926 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
928 | else | |
929 | cat > conftest.$ac_ext <<EOF | |
930 | #line 931 "configure" | |
931 | #include "confdefs.h" | |
932 | #include <stdlib.h> | |
933 | #include <stdarg.h> | |
934 | #include <string.h> | |
935 | #include <float.h> | |
936 | EOF | |
937 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
938 | { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
939 | ac_err=`grep -v '^ *+' conftest.out` | |
940 | if test -z "$ac_err"; then | |
941 | rm -rf conftest* | |
942 | ac_cv_header_stdc=yes | |
943 | else | |
944 | echo "$ac_err" >&5 | |
945 | echo "configure: failed program was:" >&5 | |
946 | cat conftest.$ac_ext >&5 | |
947 | rm -rf conftest* | |
948 | ac_cv_header_stdc=no | |
949 | fi | |
950 | rm -f conftest* | |
951 | ||
952 | if test $ac_cv_header_stdc = yes; then | |
953 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
954 | cat > conftest.$ac_ext <<EOF | |
955 | #line 956 "configure" | |
956 | #include "confdefs.h" | |
957 | #include <string.h> | |
958 | EOF | |
959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
960 | egrep "memchr" >/dev/null 2>&1; then | |
961 | : | |
962 | else | |
963 | rm -rf conftest* | |
964 | ac_cv_header_stdc=no | |
965 | fi | |
966 | rm -f conftest* | |
967 | ||
968 | fi | |
969 | ||
970 | if test $ac_cv_header_stdc = yes; then | |
971 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
972 | cat > conftest.$ac_ext <<EOF | |
973 | #line 974 "configure" | |
974 | #include "confdefs.h" | |
975 | #include <stdlib.h> | |
976 | EOF | |
977 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
978 | egrep "free" >/dev/null 2>&1; then | |
979 | : | |
980 | else | |
981 | rm -rf conftest* | |
982 | ac_cv_header_stdc=no | |
983 | fi | |
984 | rm -f conftest* | |
985 | ||
986 | fi | |
987 | ||
988 | if test $ac_cv_header_stdc = yes; then | |
989 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
990 | if test "$cross_compiling" = yes; then | |
991 | : | |
992 | else | |
993 | cat > conftest.$ac_ext <<EOF | |
994 | #line 995 "configure" | |
995 | #include "confdefs.h" | |
996 | #include <ctype.h> | |
997 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
998 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
999 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1000 | int main () { int i; for (i = 0; i < 256; i++) | |
1001 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1002 | exit (0); } | |
1003 | ||
1004 | EOF | |
1005 | if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
1006 | then | |
1007 | : | |
1008 | else | |
1009 | echo "configure: failed program was:" >&5 | |
1010 | cat conftest.$ac_ext >&5 | |
1011 | rm -fr conftest* | |
1012 | ac_cv_header_stdc=no | |
1013 | fi | |
1014 | rm -fr conftest* | |
1015 | fi | |
1016 | ||
1017 | fi | |
1018 | fi | |
1019 | ||
1020 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1021 | if test $ac_cv_header_stdc = yes; then | |
1022 | cat >> confdefs.h <<\EOF | |
1023 | #define STDC_HEADERS 1 | |
1024 | EOF | |
1025 | ||
1026 | fi | |
1027 | ||
1028 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
1029 | echo "configure:1030: checking for working const" >&5 | |
1030 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
1031 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1032 | else | |
1033 | cat > conftest.$ac_ext <<EOF | |
1034 | #line 1035 "configure" | |
1035 | #include "confdefs.h" | |
1036 | ||
1037 | int main() { | |
1038 | ||
1039 | /* Ultrix mips cc rejects this. */ | |
1040 | typedef int charset[2]; const charset x; | |
1041 | /* SunOS 4.1.1 cc rejects this. */ | |
1042 | char const *const *ccp; | |
1043 | char **p; | |
1044 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1045 | struct point {int x, y;}; | |
1046 | static struct point const zero = {0,0}; | |
1047 | /* AIX XL C 1.02.0.0 rejects this. | |
1048 | It does not let you subtract one const X* pointer from another in an arm | |
1049 | of an if-expression whose if-part is not a constant expression */ | |
1050 | const char *g = "string"; | |
1051 | ccp = &g + (g ? g-g : 0); | |
1052 | /* HPUX 7.0 cc rejects these. */ | |
1053 | ++ccp; | |
1054 | p = (char**) ccp; | |
1055 | ccp = (char const *const *) p; | |
1056 | { /* SCO 3.2v4 cc rejects this. */ | |
1057 | char *t; | |
1058 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1059 | ||
1060 | *t++ = 0; | |
1061 | } | |
1062 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1063 | int x[] = {25, 17}; | |
1064 | const int *foo = &x[0]; | |
1065 | ++foo; | |
1066 | } | |
1067 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1068 | typedef const int *iptr; | |
1069 | iptr p = 0; | |
1070 | ++p; | |
1071 | } | |
1072 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1073 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1074 | struct s { int j; const int *ap[3]; }; | |
1075 | struct s *b; b->j = 5; | |
1076 | } | |
1077 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1078 | const int foo = 10; | |
1079 | } | |
1080 | ||
1081 | ; return 0; } | |
1082 | EOF | |
1083 | if { (eval echo configure:1084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1084 | rm -rf conftest* | |
1085 | ac_cv_c_const=yes | |
1086 | else | |
1087 | echo "configure: failed program was:" >&5 | |
1088 | cat conftest.$ac_ext >&5 | |
1089 | rm -rf conftest* | |
1090 | ac_cv_c_const=no | |
1091 | fi | |
1092 | rm -f conftest* | |
1093 | fi | |
1094 | ||
1095 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1096 | if test $ac_cv_c_const = no; then | |
1097 | cat >> confdefs.h <<\EOF | |
1098 | #define const | |
1099 | EOF | |
1100 | ||
1101 | fi | |
1102 | ||
1103 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
1104 | echo "configure:1105: checking for inline" >&5 | |
1105 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
1106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1107 | else | |
1108 | ac_cv_c_inline=no | |
1109 | for ac_kw in inline __inline__ __inline; do | |
1110 | cat > conftest.$ac_ext <<EOF | |
1111 | #line 1112 "configure" | |
1112 | #include "confdefs.h" | |
1113 | ||
1114 | int main() { | |
1115 | } $ac_kw foo() { | |
1116 | ; return 0; } | |
1117 | EOF | |
1118 | if { (eval echo configure:1119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1119 | rm -rf conftest* | |
1120 | ac_cv_c_inline=$ac_kw; break | |
1121 | else | |
1122 | echo "configure: failed program was:" >&5 | |
1123 | cat conftest.$ac_ext >&5 | |
1124 | fi | |
1125 | rm -f conftest* | |
1126 | done | |
1127 | ||
1128 | fi | |
1129 | ||
1130 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1131 | case "$ac_cv_c_inline" in | |
1132 | inline | yes) ;; | |
1133 | no) cat >> confdefs.h <<\EOF | |
1134 | #define inline | |
1135 | EOF | |
1136 | ;; | |
1137 | *) cat >> confdefs.h <<EOF | |
1138 | #define inline $ac_cv_c_inline | |
1139 | EOF | |
1140 | ;; | |
1141 | esac | |
1142 | ||
1143 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
1144 | echo "configure:1145: checking for off_t" >&5 | |
1145 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
1146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1147 | else | |
1148 | cat > conftest.$ac_ext <<EOF | |
1149 | #line 1150 "configure" | |
1150 | #include "confdefs.h" | |
1151 | #include <sys/types.h> | |
1152 | #if STDC_HEADERS | |
1153 | #include <stdlib.h> | |
1154 | #include <stddef.h> | |
1155 | #endif | |
1156 | EOF | |
1157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1158 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1159 | rm -rf conftest* | |
1160 | ac_cv_type_off_t=yes | |
1161 | else | |
1162 | rm -rf conftest* | |
1163 | ac_cv_type_off_t=no | |
1164 | fi | |
1165 | rm -f conftest* | |
1166 | ||
1167 | fi | |
1168 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
1169 | if test $ac_cv_type_off_t = no; then | |
1170 | cat >> confdefs.h <<\EOF | |
1171 | #define off_t long | |
1172 | EOF | |
1173 | ||
1174 | fi | |
1175 | ||
1176 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
1177 | echo "configure:1178: checking for size_t" >&5 | |
1178 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
1179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1180 | else | |
1181 | cat > conftest.$ac_ext <<EOF | |
1182 | #line 1183 "configure" | |
1183 | #include "confdefs.h" | |
1184 | #include <sys/types.h> | |
1185 | #if STDC_HEADERS | |
1186 | #include <stdlib.h> | |
1187 | #include <stddef.h> | |
1188 | #endif | |
1189 | EOF | |
1190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1191 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
1192 | rm -rf conftest* | |
1193 | ac_cv_type_size_t=yes | |
1194 | else | |
1195 | rm -rf conftest* | |
1196 | ac_cv_type_size_t=no | |
1197 | fi | |
1198 | rm -f conftest* | |
1199 | ||
1200 | fi | |
1201 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
1202 | if test $ac_cv_type_size_t = no; then | |
1203 | cat >> confdefs.h <<\EOF | |
1204 | #define size_t unsigned | |
1205 | EOF | |
1206 | ||
1207 | fi | |
1208 | ||
1209 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
1210 | # for constant arguments. Useless! | |
1211 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
1212 | echo "configure:1213: checking for working alloca.h" >&5 | |
1213 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | |
1214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1215 | else | |
1216 | cat > conftest.$ac_ext <<EOF | |
1217 | #line 1218 "configure" | |
1218 | #include "confdefs.h" | |
1219 | #include <alloca.h> | |
1220 | int main() { | |
1221 | char *p = alloca(2 * sizeof(int)); | |
1222 | ; return 0; } | |
1223 | EOF | |
1224 | if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1225 | rm -rf conftest* | |
1226 | ac_cv_header_alloca_h=yes | |
1227 | else | |
1228 | echo "configure: failed program was:" >&5 | |
1229 | cat conftest.$ac_ext >&5 | |
1230 | rm -rf conftest* | |
1231 | ac_cv_header_alloca_h=no | |
1232 | fi | |
1233 | rm -f conftest* | |
1234 | fi | |
1235 | ||
1236 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
1237 | if test $ac_cv_header_alloca_h = yes; then | |
1238 | cat >> confdefs.h <<\EOF | |
1239 | #define HAVE_ALLOCA_H 1 | |
1240 | EOF | |
1241 | ||
1242 | fi | |
1243 | ||
1244 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
1245 | echo "configure:1246: checking for alloca" >&5 | |
1246 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | |
1247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1248 | else | |
1249 | cat > conftest.$ac_ext <<EOF | |
1250 | #line 1251 "configure" | |
1251 | #include "confdefs.h" | |
1252 | ||
1253 | #ifdef __GNUC__ | |
1254 | # define alloca __builtin_alloca | |
1255 | #else | |
1256 | # if HAVE_ALLOCA_H | |
1257 | # include <alloca.h> | |
1258 | # else | |
1259 | # ifdef _AIX | |
1260 | #pragma alloca | |
1261 | # else | |
1262 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
1263 | char *alloca (); | |
1264 | # endif | |
1265 | # endif | |
1266 | # endif | |
1267 | #endif | |
1268 | ||
1269 | int main() { | |
1270 | char *p = (char *) alloca(1); | |
1271 | ; return 0; } | |
1272 | EOF | |
1273 | if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1274 | rm -rf conftest* | |
1275 | ac_cv_func_alloca_works=yes | |
1276 | else | |
1277 | echo "configure: failed program was:" >&5 | |
1278 | cat conftest.$ac_ext >&5 | |
1279 | rm -rf conftest* | |
1280 | ac_cv_func_alloca_works=no | |
1281 | fi | |
1282 | rm -f conftest* | |
1283 | fi | |
1284 | ||
1285 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
1286 | if test $ac_cv_func_alloca_works = yes; then | |
1287 | cat >> confdefs.h <<\EOF | |
1288 | #define HAVE_ALLOCA 1 | |
1289 | EOF | |
1290 | ||
1291 | fi | |
1292 | ||
1293 | if test $ac_cv_func_alloca_works = no; then | |
1294 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
1295 | # that cause trouble. Some versions do not even contain alloca or | |
1296 | # contain a buggy version. If you still want to use their alloca, | |
1297 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
1298 | ALLOCA=alloca.o | |
1299 | cat >> confdefs.h <<\EOF | |
1300 | #define C_ALLOCA 1 | |
1301 | EOF | |
1302 | ||
1303 | ||
1304 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
1305 | echo "configure:1306: checking whether alloca needs Cray hooks" >&5 | |
1306 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | |
1307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1308 | else | |
1309 | cat > conftest.$ac_ext <<EOF | |
1310 | #line 1311 "configure" | |
1311 | #include "confdefs.h" | |
1312 | #if defined(CRAY) && ! defined(CRAY2) | |
1313 | webecray | |
1314 | #else | |
1315 | wenotbecray | |
1316 | #endif | |
1317 | ||
1318 | EOF | |
1319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1320 | egrep "webecray" >/dev/null 2>&1; then | |
1321 | rm -rf conftest* | |
1322 | ac_cv_os_cray=yes | |
1323 | else | |
1324 | rm -rf conftest* | |
1325 | ac_cv_os_cray=no | |
1326 | fi | |
1327 | rm -f conftest* | |
1328 | ||
1329 | fi | |
1330 | ||
1331 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
1332 | if test $ac_cv_os_cray = yes; then | |
1333 | for ac_func in _getb67 GETB67 getb67; do | |
1334 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1335 | echo "configure:1336: checking for $ac_func" >&5 | |
1336 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1338 | else | |
1339 | cat > conftest.$ac_ext <<EOF | |
1340 | #line 1341 "configure" | |
1341 | #include "confdefs.h" | |
1342 | /* System header to define __stub macros and hopefully few prototypes, | |
1343 | which can conflict with char $ac_func(); below. */ | |
1344 | #include <assert.h> | |
1345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1346 | /* We use char because int might match the return type of a gcc2 | |
1347 | builtin and then its argument prototype would still apply. */ | |
1348 | char $ac_func(); | |
1349 | ||
1350 | int main() { | |
1351 | ||
1352 | /* The GNU C library defines this for functions which it implements | |
1353 | to always fail with ENOSYS. Some functions are actually named | |
1354 | something starting with __ and the normal name is an alias. */ | |
1355 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1356 | choke me | |
1357 | #else | |
1358 | $ac_func(); | |
1359 | #endif | |
1360 | ||
1361 | ; return 0; } | |
1362 | EOF | |
1363 | if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1364 | rm -rf conftest* | |
1365 | eval "ac_cv_func_$ac_func=yes" | |
1366 | else | |
1367 | echo "configure: failed program was:" >&5 | |
1368 | cat conftest.$ac_ext >&5 | |
1369 | rm -rf conftest* | |
1370 | eval "ac_cv_func_$ac_func=no" | |
1371 | fi | |
1372 | rm -f conftest* | |
1373 | fi | |
1374 | ||
1375 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1376 | echo "$ac_t""yes" 1>&6 | |
1377 | cat >> confdefs.h <<EOF | |
1378 | #define CRAY_STACKSEG_END $ac_func | |
1379 | EOF | |
1380 | ||
1381 | break | |
1382 | else | |
1383 | echo "$ac_t""no" 1>&6 | |
1384 | fi | |
1385 | ||
1386 | done | |
1387 | fi | |
1388 | ||
1389 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
1390 | echo "configure:1391: checking stack direction for C alloca" >&5 | |
1391 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | |
1392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1393 | else | |
1394 | if test "$cross_compiling" = yes; then | |
1395 | ac_cv_c_stack_direction=0 | |
1396 | else | |
1397 | cat > conftest.$ac_ext <<EOF | |
1398 | #line 1399 "configure" | |
1399 | #include "confdefs.h" | |
1400 | find_stack_direction () | |
1401 | { | |
1402 | static char *addr = 0; | |
1403 | auto char dummy; | |
1404 | if (addr == 0) | |
1405 | { | |
1406 | addr = &dummy; | |
1407 | return find_stack_direction (); | |
1408 | } | |
1409 | else | |
1410 | return (&dummy > addr) ? 1 : -1; | |
1411 | } | |
1412 | main () | |
1413 | { | |
1414 | exit (find_stack_direction() < 0); | |
1415 | } | |
1416 | EOF | |
1417 | if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
1418 | then | |
1419 | ac_cv_c_stack_direction=1 | |
1420 | else | |
1421 | echo "configure: failed program was:" >&5 | |
1422 | cat conftest.$ac_ext >&5 | |
1423 | rm -fr conftest* | |
1424 | ac_cv_c_stack_direction=-1 | |
1425 | fi | |
1426 | rm -fr conftest* | |
1427 | fi | |
1428 | ||
1429 | fi | |
1430 | ||
1431 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
1432 | cat >> confdefs.h <<EOF | |
1433 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
1434 | EOF | |
1435 | ||
1436 | fi | |
1437 | ||
1438 | for ac_hdr in unistd.h | |
1439 | do | |
1440 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1441 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1442 | echo "configure:1443: checking for $ac_hdr" >&5 | |
1443 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1445 | else | |
1446 | cat > conftest.$ac_ext <<EOF | |
1447 | #line 1448 "configure" | |
1448 | #include "confdefs.h" | |
1449 | #include <$ac_hdr> | |
1450 | EOF | |
1451 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1452 | { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1453 | ac_err=`grep -v '^ *+' conftest.out` | |
1454 | if test -z "$ac_err"; then | |
1455 | rm -rf conftest* | |
1456 | eval "ac_cv_header_$ac_safe=yes" | |
1457 | else | |
1458 | echo "$ac_err" >&5 | |
1459 | echo "configure: failed program was:" >&5 | |
1460 | cat conftest.$ac_ext >&5 | |
1461 | rm -rf conftest* | |
1462 | eval "ac_cv_header_$ac_safe=no" | |
1463 | fi | |
1464 | rm -f conftest* | |
1465 | fi | |
1466 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1467 | echo "$ac_t""yes" 1>&6 | |
1468 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1469 | cat >> confdefs.h <<EOF | |
1470 | #define $ac_tr_hdr 1 | |
1471 | EOF | |
1472 | ||
1473 | else | |
1474 | echo "$ac_t""no" 1>&6 | |
1475 | fi | |
1476 | done | |
1477 | ||
1478 | for ac_func in getpagesize | |
1479 | do | |
1480 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1481 | echo "configure:1482: checking for $ac_func" >&5 | |
1482 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1484 | else | |
1485 | cat > conftest.$ac_ext <<EOF | |
1486 | #line 1487 "configure" | |
1487 | #include "confdefs.h" | |
1488 | /* System header to define __stub macros and hopefully few prototypes, | |
1489 | which can conflict with char $ac_func(); below. */ | |
1490 | #include <assert.h> | |
1491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1492 | /* We use char because int might match the return type of a gcc2 | |
1493 | builtin and then its argument prototype would still apply. */ | |
1494 | char $ac_func(); | |
1495 | ||
1496 | int main() { | |
1497 | ||
1498 | /* The GNU C library defines this for functions which it implements | |
1499 | to always fail with ENOSYS. Some functions are actually named | |
1500 | something starting with __ and the normal name is an alias. */ | |
1501 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1502 | choke me | |
1503 | #else | |
1504 | $ac_func(); | |
1505 | #endif | |
1506 | ||
1507 | ; return 0; } | |
1508 | EOF | |
1509 | if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1510 | rm -rf conftest* | |
1511 | eval "ac_cv_func_$ac_func=yes" | |
1512 | else | |
1513 | echo "configure: failed program was:" >&5 | |
1514 | cat conftest.$ac_ext >&5 | |
1515 | rm -rf conftest* | |
1516 | eval "ac_cv_func_$ac_func=no" | |
1517 | fi | |
1518 | rm -f conftest* | |
1519 | fi | |
1520 | ||
1521 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1522 | echo "$ac_t""yes" 1>&6 | |
1523 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1524 | cat >> confdefs.h <<EOF | |
1525 | #define $ac_tr_func 1 | |
1526 | EOF | |
1527 | ||
1528 | else | |
1529 | echo "$ac_t""no" 1>&6 | |
1530 | fi | |
1531 | done | |
1532 | ||
1533 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
1534 | echo "configure:1535: checking for working mmap" >&5 | |
1535 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | |
1536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1537 | else | |
1538 | if test "$cross_compiling" = yes; then | |
1539 | ac_cv_func_mmap_fixed_mapped=no | |
1540 | else | |
1541 | cat > conftest.$ac_ext <<EOF | |
1542 | #line 1543 "configure" | |
1543 | #include "confdefs.h" | |
1544 | ||
1545 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
1546 | Here is a matrix of mmap possibilities: | |
1547 | mmap private not fixed | |
1548 | mmap private fixed at somewhere currently unmapped | |
1549 | mmap private fixed at somewhere already mapped | |
1550 | mmap shared not fixed | |
1551 | mmap shared fixed at somewhere currently unmapped | |
1552 | mmap shared fixed at somewhere already mapped | |
1553 | For private mappings, we should verify that changes cannot be read() | |
1554 | back from the file, nor mmap's back from the file at a different | |
1555 | address. (There have been systems where private was not correctly | |
1556 | implemented like the infamous i386 svr4.0, and systems where the | |
1557 | VM page cache was not coherent with the filesystem buffer cache | |
1558 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
1559 | For shared mappings, we should conversely verify that changes get | |
1560 | propogated back to all the places they're supposed to be. | |
1561 | ||
1562 | Grep wants private fixed already mapped. | |
1563 | The main things grep needs to know about mmap are: | |
1564 | * does it exist and is it safe to write into the mmap'd area | |
1565 | * how to use it (BSD variants) */ | |
1566 | #include <sys/types.h> | |
1567 | #include <fcntl.h> | |
1568 | #include <sys/mman.h> | |
1569 | ||
1570 | /* This mess was copied from the GNU getpagesize.h. */ | |
1571 | #ifndef HAVE_GETPAGESIZE | |
1572 | # ifdef HAVE_UNISTD_H | |
1573 | # include <unistd.h> | |
1574 | # endif | |
1575 | ||
1576 | /* Assume that all systems that can run configure have sys/param.h. */ | |
1577 | # ifndef HAVE_SYS_PARAM_H | |
1578 | # define HAVE_SYS_PARAM_H 1 | |
1579 | # endif | |
1580 | ||
1581 | # ifdef _SC_PAGESIZE | |
1582 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
1583 | # else /* no _SC_PAGESIZE */ | |
1584 | # ifdef HAVE_SYS_PARAM_H | |
1585 | # include <sys/param.h> | |
1586 | # ifdef EXEC_PAGESIZE | |
1587 | # define getpagesize() EXEC_PAGESIZE | |
1588 | # else /* no EXEC_PAGESIZE */ | |
1589 | # ifdef NBPG | |
1590 | # define getpagesize() NBPG * CLSIZE | |
1591 | # ifndef CLSIZE | |
1592 | # define CLSIZE 1 | |
1593 | # endif /* no CLSIZE */ | |
1594 | # else /* no NBPG */ | |
1595 | # ifdef NBPC | |
1596 | # define getpagesize() NBPC | |
1597 | # else /* no NBPC */ | |
1598 | # ifdef PAGESIZE | |
1599 | # define getpagesize() PAGESIZE | |
1600 | # endif /* PAGESIZE */ | |
1601 | # endif /* no NBPC */ | |
1602 | # endif /* no NBPG */ | |
1603 | # endif /* no EXEC_PAGESIZE */ | |
1604 | # else /* no HAVE_SYS_PARAM_H */ | |
1605 | # define getpagesize() 8192 /* punt totally */ | |
1606 | # endif /* no HAVE_SYS_PARAM_H */ | |
1607 | # endif /* no _SC_PAGESIZE */ | |
1608 | ||
1609 | #endif /* no HAVE_GETPAGESIZE */ | |
1610 | ||
1611 | #ifdef __cplusplus | |
1612 | extern "C" { void *malloc(unsigned); } | |
1613 | #else | |
1614 | char *malloc(); | |
1615 | #endif | |
1616 | ||
1617 | int | |
1618 | main() | |
1619 | { | |
1620 | char *data, *data2, *data3; | |
1621 | int i, pagesize; | |
1622 | int fd; | |
1623 | ||
1624 | pagesize = getpagesize(); | |
1625 | ||
1626 | /* | |
1627 | * First, make a file with some known garbage in it. | |
1628 | */ | |
1629 | data = malloc(pagesize); | |
1630 | if (!data) | |
1631 | exit(1); | |
1632 | for (i = 0; i < pagesize; ++i) | |
1633 | *(data + i) = rand(); | |
1634 | umask(0); | |
1635 | fd = creat("conftestmmap", 0600); | |
1636 | if (fd < 0) | |
1637 | exit(1); | |
1638 | if (write(fd, data, pagesize) != pagesize) | |
1639 | exit(1); | |
1640 | close(fd); | |
1641 | ||
1642 | /* | |
1643 | * Next, try to mmap the file at a fixed address which | |
1644 | * already has something else allocated at it. If we can, | |
1645 | * also make sure that we see the same garbage. | |
1646 | */ | |
1647 | fd = open("conftestmmap", O_RDWR); | |
1648 | if (fd < 0) | |
1649 | exit(1); | |
1650 | data2 = malloc(2 * pagesize); | |
1651 | if (!data2) | |
1652 | exit(1); | |
1653 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
1654 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
1655 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
1656 | exit(1); | |
1657 | for (i = 0; i < pagesize; ++i) | |
1658 | if (*(data + i) != *(data2 + i)) | |
1659 | exit(1); | |
1660 | ||
1661 | /* | |
1662 | * Finally, make sure that changes to the mapped area | |
1663 | * do not percolate back to the file as seen by read(). | |
1664 | * (This is a bug on some variants of i386 svr4.0.) | |
1665 | */ | |
1666 | for (i = 0; i < pagesize; ++i) | |
1667 | *(data2 + i) = *(data2 + i) + 1; | |
1668 | data3 = malloc(pagesize); | |
1669 | if (!data3) | |
1670 | exit(1); | |
1671 | if (read(fd, data3, pagesize) != pagesize) | |
1672 | exit(1); | |
1673 | for (i = 0; i < pagesize; ++i) | |
1674 | if (*(data + i) != *(data3 + i)) | |
1675 | exit(1); | |
1676 | close(fd); | |
1677 | unlink("conftestmmap"); | |
1678 | exit(0); | |
1679 | } | |
1680 | ||
1681 | EOF | |
1682 | if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
1683 | then | |
1684 | ac_cv_func_mmap_fixed_mapped=yes | |
1685 | else | |
1686 | echo "configure: failed program was:" >&5 | |
1687 | cat conftest.$ac_ext >&5 | |
1688 | rm -fr conftest* | |
1689 | ac_cv_func_mmap_fixed_mapped=no | |
1690 | fi | |
1691 | rm -fr conftest* | |
1692 | fi | |
1693 | ||
1694 | fi | |
1695 | ||
1696 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
1697 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
1698 | cat >> confdefs.h <<\EOF | |
1699 | #define HAVE_MMAP 1 | |
1700 | EOF | |
1701 | ||
1702 | fi | |
1703 | ||
1704 | ||
1705 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
1706 | unistd.h values.h sys/param.h | |
1707 | do | |
1708 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1709 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1710 | echo "configure:1711: checking for $ac_hdr" >&5 | |
1711 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1713 | else | |
1714 | cat > conftest.$ac_ext <<EOF | |
1715 | #line 1716 "configure" | |
1716 | #include "confdefs.h" | |
1717 | #include <$ac_hdr> | |
1718 | EOF | |
1719 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1720 | { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1721 | ac_err=`grep -v '^ *+' conftest.out` | |
1722 | if test -z "$ac_err"; then | |
1723 | rm -rf conftest* | |
1724 | eval "ac_cv_header_$ac_safe=yes" | |
1725 | else | |
1726 | echo "$ac_err" >&5 | |
1727 | echo "configure: failed program was:" >&5 | |
1728 | cat conftest.$ac_ext >&5 | |
1729 | rm -rf conftest* | |
1730 | eval "ac_cv_header_$ac_safe=no" | |
1731 | fi | |
1732 | rm -f conftest* | |
1733 | fi | |
1734 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1735 | echo "$ac_t""yes" 1>&6 | |
1736 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1737 | cat >> confdefs.h <<EOF | |
1738 | #define $ac_tr_hdr 1 | |
1739 | EOF | |
1740 | ||
1741 | else | |
1742 | echo "$ac_t""no" 1>&6 | |
1743 | fi | |
1744 | done | |
1745 | ||
1746 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
1747 | __argz_count __argz_stringify __argz_next | |
1748 | do | |
1749 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1750 | echo "configure:1751: checking for $ac_func" >&5 | |
1751 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1753 | else | |
1754 | cat > conftest.$ac_ext <<EOF | |
1755 | #line 1756 "configure" | |
1756 | #include "confdefs.h" | |
1757 | /* System header to define __stub macros and hopefully few prototypes, | |
1758 | which can conflict with char $ac_func(); below. */ | |
1759 | #include <assert.h> | |
1760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1761 | /* We use char because int might match the return type of a gcc2 | |
1762 | builtin and then its argument prototype would still apply. */ | |
1763 | char $ac_func(); | |
1764 | ||
1765 | int main() { | |
1766 | ||
1767 | /* The GNU C library defines this for functions which it implements | |
1768 | to always fail with ENOSYS. Some functions are actually named | |
1769 | something starting with __ and the normal name is an alias. */ | |
1770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1771 | choke me | |
1772 | #else | |
1773 | $ac_func(); | |
1774 | #endif | |
1775 | ||
1776 | ; return 0; } | |
1777 | EOF | |
1778 | if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1779 | rm -rf conftest* | |
1780 | eval "ac_cv_func_$ac_func=yes" | |
1781 | else | |
1782 | echo "configure: failed program was:" >&5 | |
1783 | cat conftest.$ac_ext >&5 | |
1784 | rm -rf conftest* | |
1785 | eval "ac_cv_func_$ac_func=no" | |
1786 | fi | |
1787 | rm -f conftest* | |
1788 | fi | |
1789 | ||
1790 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1791 | echo "$ac_t""yes" 1>&6 | |
1792 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1793 | cat >> confdefs.h <<EOF | |
1794 | #define $ac_tr_func 1 | |
1795 | EOF | |
1796 | ||
1797 | else | |
1798 | echo "$ac_t""no" 1>&6 | |
1799 | fi | |
1800 | done | |
1801 | ||
1802 | ||
1803 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
1804 | for ac_func in stpcpy | |
1805 | do | |
1806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1807 | echo "configure:1808: checking for $ac_func" >&5 | |
1808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1810 | else | |
1811 | cat > conftest.$ac_ext <<EOF | |
1812 | #line 1813 "configure" | |
1813 | #include "confdefs.h" | |
1814 | /* System header to define __stub macros and hopefully few prototypes, | |
1815 | which can conflict with char $ac_func(); below. */ | |
1816 | #include <assert.h> | |
1817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1818 | /* We use char because int might match the return type of a gcc2 | |
1819 | builtin and then its argument prototype would still apply. */ | |
1820 | char $ac_func(); | |
1821 | ||
1822 | int main() { | |
1823 | ||
1824 | /* The GNU C library defines this for functions which it implements | |
1825 | to always fail with ENOSYS. Some functions are actually named | |
1826 | something starting with __ and the normal name is an alias. */ | |
1827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1828 | choke me | |
1829 | #else | |
1830 | $ac_func(); | |
1831 | #endif | |
1832 | ||
1833 | ; return 0; } | |
1834 | EOF | |
1835 | if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1836 | rm -rf conftest* | |
1837 | eval "ac_cv_func_$ac_func=yes" | |
1838 | else | |
1839 | echo "configure: failed program was:" >&5 | |
1840 | cat conftest.$ac_ext >&5 | |
1841 | rm -rf conftest* | |
1842 | eval "ac_cv_func_$ac_func=no" | |
1843 | fi | |
1844 | rm -f conftest* | |
1845 | fi | |
1846 | ||
1847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1848 | echo "$ac_t""yes" 1>&6 | |
1849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
1850 | cat >> confdefs.h <<EOF | |
1851 | #define $ac_tr_func 1 | |
1852 | EOF | |
1853 | ||
1854 | else | |
1855 | echo "$ac_t""no" 1>&6 | |
1856 | fi | |
1857 | done | |
1858 | ||
1859 | fi | |
1860 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
1861 | cat >> confdefs.h <<\EOF | |
1862 | #define HAVE_STPCPY 1 | |
1863 | EOF | |
1864 | ||
1865 | fi | |
1866 | ||
1867 | if test $ac_cv_header_locale_h = yes; then | |
1868 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
1869 | echo "configure:1870: checking for LC_MESSAGES" >&5 | |
1870 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then | |
1871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1872 | else | |
1873 | cat > conftest.$ac_ext <<EOF | |
1874 | #line 1875 "configure" | |
1875 | #include "confdefs.h" | |
1876 | #include <locale.h> | |
1877 | int main() { | |
1878 | return LC_MESSAGES | |
1879 | ; return 0; } | |
1880 | EOF | |
1881 | if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1882 | rm -rf conftest* | |
1883 | am_cv_val_LC_MESSAGES=yes | |
1884 | else | |
1885 | echo "configure: failed program was:" >&5 | |
1886 | cat conftest.$ac_ext >&5 | |
1887 | rm -rf conftest* | |
1888 | am_cv_val_LC_MESSAGES=no | |
1889 | fi | |
1890 | rm -f conftest* | |
1891 | fi | |
1892 | ||
1893 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
1894 | if test $am_cv_val_LC_MESSAGES = yes; then | |
1895 | cat >> confdefs.h <<\EOF | |
1896 | #define HAVE_LC_MESSAGES 1 | |
1897 | EOF | |
1898 | ||
1899 | fi | |
1900 | fi | |
1901 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
1902 | echo "configure:1903: checking whether NLS is requested" >&5 | |
1903 | # Check whether --enable-nls or --disable-nls was given. | |
1904 | if test "${enable_nls+set}" = set; then | |
1905 | enableval="$enable_nls" | |
1906 | USE_NLS=$enableval | |
1907 | else | |
1908 | USE_NLS=yes | |
1909 | fi | |
1910 | ||
1911 | echo "$ac_t""$USE_NLS" 1>&6 | |
1912 | ||
1913 | ||
1914 | USE_INCLUDED_LIBINTL=no | |
1915 | ||
1916 | if test "$USE_NLS" = "yes"; then | |
1917 | cat >> confdefs.h <<\EOF | |
1918 | #define ENABLE_NLS 1 | |
1919 | EOF | |
1920 | ||
1921 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
1922 | echo "configure:1923: checking whether included gettext is requested" >&5 | |
1923 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
1924 | if test "${with_included_gettext+set}" = set; then | |
1925 | withval="$with_included_gettext" | |
1926 | nls_cv_force_use_gnu_gettext=$withval | |
1927 | else | |
1928 | nls_cv_force_use_gnu_gettext=no | |
1929 | fi | |
1930 | ||
1931 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
1932 | ||
1933 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
1934 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
1935 | nls_cv_header_intl= | |
1936 | nls_cv_header_libgt= | |
1937 | CATOBJEXT=NONE | |
1938 | ||
1939 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
1940 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
1941 | echo "configure:1942: checking for libintl.h" >&5 | |
1942 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1944 | else | |
1945 | cat > conftest.$ac_ext <<EOF | |
1946 | #line 1947 "configure" | |
1947 | #include "confdefs.h" | |
1948 | #include <libintl.h> | |
1949 | EOF | |
1950 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1951 | { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1952 | ac_err=`grep -v '^ *+' conftest.out` | |
1953 | if test -z "$ac_err"; then | |
1954 | rm -rf conftest* | |
1955 | eval "ac_cv_header_$ac_safe=yes" | |
1956 | else | |
1957 | echo "$ac_err" >&5 | |
1958 | echo "configure: failed program was:" >&5 | |
1959 | cat conftest.$ac_ext >&5 | |
1960 | rm -rf conftest* | |
1961 | eval "ac_cv_header_$ac_safe=no" | |
1962 | fi | |
1963 | rm -f conftest* | |
1964 | fi | |
1965 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1966 | echo "$ac_t""yes" 1>&6 | |
1967 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
1968 | echo "configure:1969: checking for gettext in libc" >&5 | |
1969 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then | |
1970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1971 | else | |
1972 | cat > conftest.$ac_ext <<EOF | |
1973 | #line 1974 "configure" | |
1974 | #include "confdefs.h" | |
1975 | #include <libintl.h> | |
1976 | int main() { | |
1977 | return (int) gettext ("") | |
1978 | ; return 0; } | |
1979 | EOF | |
1980 | if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1981 | rm -rf conftest* | |
1982 | gt_cv_func_gettext_libc=yes | |
1983 | else | |
1984 | echo "configure: failed program was:" >&5 | |
1985 | cat conftest.$ac_ext >&5 | |
1986 | rm -rf conftest* | |
1987 | gt_cv_func_gettext_libc=no | |
1988 | fi | |
1989 | rm -f conftest* | |
1990 | fi | |
1991 | ||
1992 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
1993 | ||
1994 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
1995 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
1996 | echo "configure:1997: checking for bindtextdomain in -lintl" >&5 | |
1997 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` | |
1998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2000 | else | |
2001 | ac_save_LIBS="$LIBS" | |
2002 | LIBS="-lintl $LIBS" | |
2003 | cat > conftest.$ac_ext <<EOF | |
2004 | #line 2005 "configure" | |
2005 | #include "confdefs.h" | |
2006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2007 | /* We use char because int might match the return type of a gcc2 | |
2008 | builtin and then its argument prototype would still apply. */ | |
2009 | char bindtextdomain(); | |
2010 | ||
2011 | int main() { | |
2012 | bindtextdomain() | |
2013 | ; return 0; } | |
2014 | EOF | |
2015 | if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2016 | rm -rf conftest* | |
2017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2018 | else | |
2019 | echo "configure: failed program was:" >&5 | |
2020 | cat conftest.$ac_ext >&5 | |
2021 | rm -rf conftest* | |
2022 | eval "ac_cv_lib_$ac_lib_var=no" | |
2023 | fi | |
2024 | rm -f conftest* | |
2025 | LIBS="$ac_save_LIBS" | |
2026 | ||
2027 | fi | |
2028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2029 | echo "$ac_t""yes" 1>&6 | |
2030 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
2031 | echo "configure:2032: checking for gettext in libintl" >&5 | |
2032 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then | |
2033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2034 | else | |
2035 | cat > conftest.$ac_ext <<EOF | |
2036 | #line 2037 "configure" | |
2037 | #include "confdefs.h" | |
2038 | ||
2039 | int main() { | |
2040 | return (int) gettext ("") | |
2041 | ; return 0; } | |
2042 | EOF | |
2043 | if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2044 | rm -rf conftest* | |
2045 | gt_cv_func_gettext_libintl=yes | |
2046 | else | |
2047 | echo "configure: failed program was:" >&5 | |
2048 | cat conftest.$ac_ext >&5 | |
2049 | rm -rf conftest* | |
2050 | gt_cv_func_gettext_libintl=no | |
2051 | fi | |
2052 | rm -f conftest* | |
2053 | fi | |
2054 | ||
2055 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
2056 | else | |
2057 | echo "$ac_t""no" 1>&6 | |
2058 | fi | |
2059 | ||
2060 | fi | |
2061 | ||
2062 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
2063 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
2064 | cat >> confdefs.h <<\EOF | |
2065 | #define HAVE_GETTEXT 1 | |
2066 | EOF | |
2067 | ||
2068 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2069 | set dummy msgfmt; ac_word=$2 | |
2070 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2071 | echo "configure:2072: checking for $ac_word" >&5 | |
2072 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | |
2073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2074 | else | |
2075 | case "$MSGFMT" in | |
2076 | /*) | |
2077 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
2078 | ;; | |
2079 | *) | |
2080 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2081 | for ac_dir in $PATH; do | |
2082 | test -z "$ac_dir" && ac_dir=. | |
2083 | if test -f $ac_dir/$ac_word; then | |
2084 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2085 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
2086 | break | |
2087 | fi | |
2088 | fi | |
2089 | done | |
2090 | IFS="$ac_save_ifs" | |
2091 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
2092 | ;; | |
2093 | esac | |
2094 | fi | |
2095 | MSGFMT="$ac_cv_path_MSGFMT" | |
2096 | if test -n "$MSGFMT"; then | |
2097 | echo "$ac_t""$MSGFMT" 1>&6 | |
2098 | else | |
2099 | echo "$ac_t""no" 1>&6 | |
2100 | fi | |
2101 | if test "$MSGFMT" != "no"; then | |
2102 | for ac_func in dcgettext | |
2103 | do | |
2104 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2105 | echo "configure:2106: checking for $ac_func" >&5 | |
2106 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
2107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2108 | else | |
2109 | cat > conftest.$ac_ext <<EOF | |
2110 | #line 2111 "configure" | |
2111 | #include "confdefs.h" | |
2112 | /* System header to define __stub macros and hopefully few prototypes, | |
2113 | which can conflict with char $ac_func(); below. */ | |
2114 | #include <assert.h> | |
2115 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2116 | /* We use char because int might match the return type of a gcc2 | |
2117 | builtin and then its argument prototype would still apply. */ | |
2118 | char $ac_func(); | |
2119 | ||
2120 | int main() { | |
2121 | ||
2122 | /* The GNU C library defines this for functions which it implements | |
2123 | to always fail with ENOSYS. Some functions are actually named | |
2124 | something starting with __ and the normal name is an alias. */ | |
2125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2126 | choke me | |
2127 | #else | |
2128 | $ac_func(); | |
2129 | #endif | |
2130 | ||
2131 | ; return 0; } | |
2132 | EOF | |
2133 | if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2134 | rm -rf conftest* | |
2135 | eval "ac_cv_func_$ac_func=yes" | |
2136 | else | |
2137 | echo "configure: failed program was:" >&5 | |
2138 | cat conftest.$ac_ext >&5 | |
2139 | rm -rf conftest* | |
2140 | eval "ac_cv_func_$ac_func=no" | |
2141 | fi | |
2142 | rm -f conftest* | |
2143 | fi | |
2144 | ||
2145 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2146 | echo "$ac_t""yes" 1>&6 | |
2147 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2148 | cat >> confdefs.h <<EOF | |
2149 | #define $ac_tr_func 1 | |
2150 | EOF | |
2151 | ||
2152 | else | |
2153 | echo "$ac_t""no" 1>&6 | |
2154 | fi | |
2155 | done | |
2156 | ||
2157 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
2158 | set dummy gmsgfmt; ac_word=$2 | |
2159 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2160 | echo "configure:2161: checking for $ac_word" >&5 | |
2161 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | |
2162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2163 | else | |
2164 | case "$GMSGFMT" in | |
2165 | /*) | |
2166 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2167 | ;; | |
2168 | ?:/*) | |
2169 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
2170 | ;; | |
2171 | *) | |
2172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2173 | for ac_dir in $PATH; do | |
2174 | test -z "$ac_dir" && ac_dir=. | |
2175 | if test -f $ac_dir/$ac_word; then | |
2176 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2177 | break | |
2178 | fi | |
2179 | done | |
2180 | IFS="$ac_save_ifs" | |
2181 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
2182 | ;; | |
2183 | esac | |
2184 | fi | |
2185 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2186 | if test -n "$GMSGFMT"; then | |
2187 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2188 | else | |
2189 | echo "$ac_t""no" 1>&6 | |
2190 | fi | |
2191 | ||
2192 | # Extract the first word of "xgettext", so it can be a program name with args. | |
2193 | set dummy xgettext; ac_word=$2 | |
2194 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2195 | echo "configure:2196: checking for $ac_word" >&5 | |
2196 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | |
2197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2198 | else | |
2199 | case "$XGETTEXT" in | |
2200 | /*) | |
2201 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
2202 | ;; | |
2203 | *) | |
2204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2205 | for ac_dir in $PATH; do | |
2206 | test -z "$ac_dir" && ac_dir=. | |
2207 | if test -f $ac_dir/$ac_word; then | |
2208 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
2209 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
2210 | break | |
2211 | fi | |
2212 | fi | |
2213 | done | |
2214 | IFS="$ac_save_ifs" | |
2215 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
2216 | ;; | |
2217 | esac | |
2218 | fi | |
2219 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
2220 | if test -n "$XGETTEXT"; then | |
2221 | echo "$ac_t""$XGETTEXT" 1>&6 | |
2222 | else | |
2223 | echo "$ac_t""no" 1>&6 | |
2224 | fi | |
2225 | ||
2226 | cat > conftest.$ac_ext <<EOF | |
2227 | #line 2228 "configure" | |
2228 | #include "confdefs.h" | |
2229 | ||
2230 | int main() { | |
2231 | extern int _nl_msg_cat_cntr; | |
2232 | return _nl_msg_cat_cntr | |
2233 | ; return 0; } | |
2234 | EOF | |
2235 | if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2236 | rm -rf conftest* | |
2237 | CATOBJEXT=.gmo | |
2238 | DATADIRNAME=share | |
2239 | else | |
2240 | echo "configure: failed program was:" >&5 | |
2241 | cat conftest.$ac_ext >&5 | |
2242 | rm -rf conftest* | |
2243 | CATOBJEXT=.mo | |
2244 | DATADIRNAME=lib | |
2245 | fi | |
2246 | rm -f conftest* | |
2247 | INSTOBJEXT=.mo | |
2248 | fi | |
2249 | fi | |
2250 | ||
2251 | else | |
2252 | echo "$ac_t""no" 1>&6 | |
2253 | fi | |
2254 | ||
2255 | ||
2256 | if test "$CATOBJEXT" = "NONE"; then | |
2257 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
2258 | echo "configure:2259: checking whether catgets can be used" >&5 | |
2259 | # Check whether --with-catgets or --without-catgets was given. | |
2260 | if test "${with_catgets+set}" = set; then | |
2261 | withval="$with_catgets" | |
2262 | nls_cv_use_catgets=$withval | |
2263 | else | |
2264 | nls_cv_use_catgets=no | |
2265 | fi | |
2266 | ||
2267 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
2268 | ||
2269 | if test "$nls_cv_use_catgets" = "yes"; then | |
2270 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
2271 | echo "configure:2272: checking for main in -li" >&5 | |
2272 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` | |
2273 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2275 | else | |
2276 | ac_save_LIBS="$LIBS" | |
2277 | LIBS="-li $LIBS" | |
2278 | cat > conftest.$ac_ext <<EOF | |
2279 | #line 2280 "configure" | |
2280 | #include "confdefs.h" | |
2281 | ||
2282 | int main() { | |
2283 | main() | |
2284 | ; return 0; } | |
2285 | EOF | |
2286 | if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2287 | rm -rf conftest* | |
2288 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2289 | else | |
2290 | echo "configure: failed program was:" >&5 | |
2291 | cat conftest.$ac_ext >&5 | |
2292 | rm -rf conftest* | |
2293 | eval "ac_cv_lib_$ac_lib_var=no" | |
2294 | fi | |
2295 | rm -f conftest* | |
2296 | LIBS="$ac_save_LIBS" | |
2297 | ||
2298 | fi | |
2299 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2300 | echo "$ac_t""yes" 1>&6 | |
2301 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2302 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2303 | cat >> confdefs.h <<EOF | |
2304 | #define $ac_tr_lib 1 | |
2305 | EOF | |
2306 | ||
2307 | LIBS="-li $LIBS" | |
2308 | ||
2309 | else | |
2310 | echo "$ac_t""no" 1>&6 | |
2311 | fi | |
2312 | ||
2313 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
2314 | echo "configure:2315: checking for catgets" >&5 | |
2315 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then | |
2316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2317 | else | |
2318 | cat > conftest.$ac_ext <<EOF | |
2319 | #line 2320 "configure" | |
2320 | #include "confdefs.h" | |
2321 | /* System header to define __stub macros and hopefully few prototypes, | |
2322 | which can conflict with char catgets(); below. */ | |
2323 | #include <assert.h> | |
2324 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2325 | /* We use char because int might match the return type of a gcc2 | |
2326 | builtin and then its argument prototype would still apply. */ | |
2327 | char catgets(); | |
2328 | ||
2329 | int main() { | |
2330 | ||
2331 | /* The GNU C library defines this for functions which it implements | |
2332 | to always fail with ENOSYS. Some functions are actually named | |
2333 | something starting with __ and the normal name is an alias. */ | |
2334 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
2335 | choke me | |
2336 | #else | |
2337 | catgets(); | |
2338 | #endif | |
2339 | ||
2340 | ; return 0; } | |
2341 | EOF | |
2342 | if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2343 | rm -rf conftest* | |
2344 | eval "ac_cv_func_catgets=yes" | |
2345 | else | |
2346 | echo "configure: failed program was:" >&5 | |
2347 | cat conftest.$ac_ext >&5 | |
2348 | rm -rf conftest* | |
2349 | eval "ac_cv_func_catgets=no" | |
2350 | fi | |
2351 | rm -f conftest* | |
2352 | fi | |
2353 | ||
2354 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
2355 | echo "$ac_t""yes" 1>&6 | |
2356 | cat >> confdefs.h <<\EOF | |
2357 | #define HAVE_CATGETS 1 | |
2358 | EOF | |
2359 | ||
2360 | INTLOBJS="\$(CATOBJS)" | |
2361 | # Extract the first word of "gencat", so it can be a program name with args. | |
2362 | set dummy gencat; ac_word=$2 | |
2363 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2364 | echo "configure:2365: checking for $ac_word" >&5 | |
2365 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then | |
2366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2367 | else | |
2368 | case "$GENCAT" in | |
2369 | /*) | |
2370 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
2371 | ;; | |
2372 | ?:/*) | |
2373 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
2374 | ;; | |
2375 | *) | |
2376 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2377 | for ac_dir in $PATH; do | |
2378 | test -z "$ac_dir" && ac_dir=. | |
2379 | if test -f $ac_dir/$ac_word; then | |
2380 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
2381 | break | |
2382 | fi | |
2383 | done | |
2384 | IFS="$ac_save_ifs" | |
2385 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
2386 | ;; | |
2387 | esac | |
2388 | fi | |
2389 | GENCAT="$ac_cv_path_GENCAT" | |
2390 | if test -n "$GENCAT"; then | |
2391 | echo "$ac_t""$GENCAT" 1>&6 | |
2392 | else | |
2393 | echo "$ac_t""no" 1>&6 | |
2394 | fi | |
2395 | if test "$GENCAT" != "no"; then | |
2396 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
2397 | set dummy gmsgfmt; ac_word=$2 | |
2398 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2399 | echo "configure:2400: checking for $ac_word" >&5 | |
2400 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | |
2401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2402 | else | |
2403 | case "$GMSGFMT" in | |
2404 | /*) | |
2405 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2406 | ;; | |
2407 | ?:/*) | |
2408 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
2409 | ;; | |
2410 | *) | |
2411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2412 | for ac_dir in $PATH; do | |
2413 | test -z "$ac_dir" && ac_dir=. | |
2414 | if test -f $ac_dir/$ac_word; then | |
2415 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2416 | break | |
2417 | fi | |
2418 | done | |
2419 | IFS="$ac_save_ifs" | |
2420 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
2421 | ;; | |
2422 | esac | |
2423 | fi | |
2424 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2425 | if test -n "$GMSGFMT"; then | |
2426 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2427 | else | |
2428 | echo "$ac_t""no" 1>&6 | |
2429 | fi | |
2430 | ||
2431 | if test "$GMSGFMT" = "no"; then | |
2432 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2433 | set dummy msgfmt; ac_word=$2 | |
2434 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2435 | echo "configure:2436: checking for $ac_word" >&5 | |
2436 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | |
2437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2438 | else | |
2439 | case "$GMSGFMT" in | |
2440 | /*) | |
2441 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2442 | ;; | |
2443 | *) | |
2444 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2445 | for ac_dir in $PATH; do | |
2446 | test -z "$ac_dir" && ac_dir=. | |
2447 | if test -f $ac_dir/$ac_word; then | |
2448 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2449 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2450 | break | |
2451 | fi | |
2452 | fi | |
2453 | done | |
2454 | IFS="$ac_save_ifs" | |
2455 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
2456 | ;; | |
2457 | esac | |
2458 | fi | |
2459 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2460 | if test -n "$GMSGFMT"; then | |
2461 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2462 | else | |
2463 | echo "$ac_t""no" 1>&6 | |
2464 | fi | |
2465 | ||
2466 | fi | |
2467 | # Extract the first word of "xgettext", so it can be a program name with args. | |
2468 | set dummy xgettext; ac_word=$2 | |
2469 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2470 | echo "configure:2471: checking for $ac_word" >&5 | |
2471 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | |
2472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2473 | else | |
2474 | case "$XGETTEXT" in | |
2475 | /*) | |
2476 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
2477 | ;; | |
2478 | *) | |
2479 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2480 | for ac_dir in $PATH; do | |
2481 | test -z "$ac_dir" && ac_dir=. | |
2482 | if test -f $ac_dir/$ac_word; then | |
2483 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
2484 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
2485 | break | |
2486 | fi | |
2487 | fi | |
2488 | done | |
2489 | IFS="$ac_save_ifs" | |
2490 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
2491 | ;; | |
2492 | esac | |
2493 | fi | |
2494 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
2495 | if test -n "$XGETTEXT"; then | |
2496 | echo "$ac_t""$XGETTEXT" 1>&6 | |
2497 | else | |
2498 | echo "$ac_t""no" 1>&6 | |
2499 | fi | |
2500 | ||
2501 | USE_INCLUDED_LIBINTL=yes | |
2502 | CATOBJEXT=.cat | |
2503 | INSTOBJEXT=.cat | |
2504 | DATADIRNAME=lib | |
2505 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
2506 | INTLLIBS=$INTLDEPS | |
2507 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
2508 | nls_cv_header_intl=intl/libintl.h | |
2509 | nls_cv_header_libgt=intl/libgettext.h | |
2510 | fi | |
2511 | else | |
2512 | echo "$ac_t""no" 1>&6 | |
2513 | fi | |
2514 | ||
2515 | fi | |
2516 | fi | |
2517 | ||
2518 | if test "$CATOBJEXT" = "NONE"; then | |
2519 | nls_cv_use_gnu_gettext=yes | |
2520 | fi | |
2521 | fi | |
2522 | ||
2523 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
2524 | INTLOBJS="\$(GETTOBJS)" | |
2525 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
2526 | set dummy msgfmt; ac_word=$2 | |
2527 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2528 | echo "configure:2529: checking for $ac_word" >&5 | |
2529 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | |
2530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2531 | else | |
2532 | case "$MSGFMT" in | |
2533 | /*) | |
2534 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
2535 | ;; | |
2536 | *) | |
2537 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2538 | for ac_dir in $PATH; do | |
2539 | test -z "$ac_dir" && ac_dir=. | |
2540 | if test -f $ac_dir/$ac_word; then | |
2541 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
2542 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
2543 | break | |
2544 | fi | |
2545 | fi | |
2546 | done | |
2547 | IFS="$ac_save_ifs" | |
2548 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
2549 | ;; | |
2550 | esac | |
2551 | fi | |
2552 | MSGFMT="$ac_cv_path_MSGFMT" | |
2553 | if test -n "$MSGFMT"; then | |
2554 | echo "$ac_t""$MSGFMT" 1>&6 | |
2555 | else | |
2556 | echo "$ac_t""no" 1>&6 | |
2557 | fi | |
2558 | ||
2559 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
2560 | set dummy gmsgfmt; ac_word=$2 | |
2561 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2562 | echo "configure:2563: checking for $ac_word" >&5 | |
2563 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | |
2564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2565 | else | |
2566 | case "$GMSGFMT" in | |
2567 | /*) | |
2568 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
2569 | ;; | |
2570 | ?:/*) | |
2571 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
2572 | ;; | |
2573 | *) | |
2574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2575 | for ac_dir in $PATH; do | |
2576 | test -z "$ac_dir" && ac_dir=. | |
2577 | if test -f $ac_dir/$ac_word; then | |
2578 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
2579 | break | |
2580 | fi | |
2581 | done | |
2582 | IFS="$ac_save_ifs" | |
2583 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
2584 | ;; | |
2585 | esac | |
2586 | fi | |
2587 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
2588 | if test -n "$GMSGFMT"; then | |
2589 | echo "$ac_t""$GMSGFMT" 1>&6 | |
2590 | else | |
2591 | echo "$ac_t""no" 1>&6 | |
2592 | fi | |
2593 | ||
2594 | # Extract the first word of "xgettext", so it can be a program name with args. | |
2595 | set dummy xgettext; ac_word=$2 | |
2596 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2597 | echo "configure:2598: checking for $ac_word" >&5 | |
2598 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | |
2599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2600 | else | |
2601 | case "$XGETTEXT" in | |
2602 | /*) | |
2603 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
2604 | ;; | |
2605 | *) | |
2606 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2607 | for ac_dir in $PATH; do | |
2608 | test -z "$ac_dir" && ac_dir=. | |
2609 | if test -f $ac_dir/$ac_word; then | |
2610 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
2611 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
2612 | break | |
2613 | fi | |
2614 | fi | |
2615 | done | |
2616 | IFS="$ac_save_ifs" | |
2617 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
2618 | ;; | |
2619 | esac | |
2620 | fi | |
2621 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
2622 | if test -n "$XGETTEXT"; then | |
2623 | echo "$ac_t""$XGETTEXT" 1>&6 | |
2624 | else | |
2625 | echo "$ac_t""no" 1>&6 | |
2626 | fi | |
2627 | ||
2628 | ||
2629 | USE_INCLUDED_LIBINTL=yes | |
2630 | CATOBJEXT=.gmo | |
2631 | INSTOBJEXT=.mo | |
2632 | DATADIRNAME=share | |
2633 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
2634 | INTLLIBS=$INTLDEPS | |
2635 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
2636 | nls_cv_header_intl=intl/libintl.h | |
2637 | nls_cv_header_libgt=intl/libgettext.h | |
2638 | fi | |
2639 | ||
2640 | if test "$XGETTEXT" != ":"; then | |
2641 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
2642 | : ; | |
2643 | else | |
2644 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
2645 | XGETTEXT=":" | |
2646 | fi | |
2647 | fi | |
2648 | ||
2649 | # We need to process the po/ directory. | |
2650 | POSUB=po | |
2651 | else | |
2652 | DATADIRNAME=share | |
2653 | nls_cv_header_intl=intl/libintl.h | |
2654 | nls_cv_header_libgt=intl/libgettext.h | |
2655 | fi | |
2656 | ||
2657 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
2658 | # because some of the sources are only built for this goal. | |
2659 | if test "$PACKAGE" = gettext; then | |
2660 | USE_NLS=yes | |
2661 | USE_INCLUDED_LIBINTL=yes | |
2662 | fi | |
2663 | ||
2664 | for lang in $ALL_LINGUAS; do | |
2665 | GMOFILES="$GMOFILES $lang.gmo" | |
2666 | POFILES="$POFILES $lang.po" | |
2667 | done | |
2668 | ||
2669 | ||
2670 | ||
2671 | ||
2672 | ||
2673 | ||
2674 | ||
2675 | ||
2676 | ||
2677 | ||
2678 | ||
2679 | ||
2680 | ||
2681 | ||
2682 | if test "x$CATOBJEXT" != "x"; then | |
2683 | if test "x$ALL_LINGUAS" = "x"; then | |
2684 | LINGUAS= | |
2685 | else | |
2686 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
2687 | echo "configure:2688: checking for catalogs to be installed" >&5 | |
2688 | NEW_LINGUAS= | |
2689 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
2690 | case "$ALL_LINGUAS" in | |
2691 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
2692 | esac | |
2693 | done | |
2694 | LINGUAS=$NEW_LINGUAS | |
2695 | echo "$ac_t""$LINGUAS" 1>&6 | |
2696 | fi | |
2697 | ||
2698 | if test -n "$LINGUAS"; then | |
2699 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
2700 | fi | |
2701 | fi | |
2702 | ||
2703 | if test $ac_cv_header_locale_h = yes; then | |
2704 | INCLUDE_LOCALE_H="#include <locale.h>" | |
2705 | else | |
2706 | INCLUDE_LOCALE_H="\ | |
2707 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
2708 | fi | |
2709 | ||
2710 | ||
2711 | if test -f $srcdir/po2tbl.sed.in; then | |
2712 | if test "$CATOBJEXT" = ".cat"; then | |
2713 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
2714 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
2715 | echo "configure:2716: checking for linux/version.h" >&5 | |
2716 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
2717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2718 | else | |
2719 | cat > conftest.$ac_ext <<EOF | |
2720 | #line 2721 "configure" | |
2721 | #include "confdefs.h" | |
2722 | #include <linux/version.h> | |
2723 | EOF | |
2724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2725 | { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2726 | ac_err=`grep -v '^ *+' conftest.out` | |
2727 | if test -z "$ac_err"; then | |
2728 | rm -rf conftest* | |
2729 | eval "ac_cv_header_$ac_safe=yes" | |
2730 | else | |
2731 | echo "$ac_err" >&5 | |
2732 | echo "configure: failed program was:" >&5 | |
2733 | cat conftest.$ac_ext >&5 | |
2734 | rm -rf conftest* | |
2735 | eval "ac_cv_header_$ac_safe=no" | |
2736 | fi | |
2737 | rm -f conftest* | |
2738 | fi | |
2739 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2740 | echo "$ac_t""yes" 1>&6 | |
2741 | msgformat=linux | |
2742 | else | |
2743 | echo "$ac_t""no" 1>&6 | |
2744 | msgformat=xopen | |
2745 | fi | |
2746 | ||
2747 | ||
2748 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
2749 | fi | |
2750 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
2751 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
2752 | fi | |
2753 | ||
2754 | if test "$PACKAGE" = "gettext"; then | |
2755 | GT_NO="#NO#" | |
2756 | GT_YES= | |
2757 | else | |
2758 | GT_NO= | |
2759 | GT_YES="#YES#" | |
2760 | fi | |
2761 | ||
2762 | ||
2763 | ||
2764 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
2765 | ||
2766 | ||
2767 | l= | |
2768 | ||
2769 | ||
2770 | if test -d $srcdir/po; then | |
2771 | test -d po || mkdir po | |
2772 | if test "x$srcdir" != "x."; then | |
2773 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
2774 | posrcprefix="$srcdir/" | |
2775 | else | |
2776 | posrcprefix="../$srcdir/" | |
2777 | fi | |
2778 | else | |
2779 | posrcprefix="../" | |
2780 | fi | |
2781 | rm -f po/POTFILES | |
2782 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
2783 | < $srcdir/po/POTFILES.in > po/POTFILES | |
2784 | fi | |
2785 | ||
2786 | ||
2787 | trap '' 1 2 15 | |
2788 | cat > confcache <<\EOF | |
2789 | # This file is a shell script that caches the results of configure | |
2790 | # tests run on this system so they can be shared between configure | |
2791 | # scripts and configure runs. It is not useful on other systems. | |
2792 | # If it contains results you don't want to keep, you may remove or edit it. | |
2793 | # | |
2794 | # By default, configure uses ./config.cache as the cache file, | |
2795 | # creating it if it does not exist already. You can give configure | |
2796 | # the --cache-file=FILE option to use a different cache file; that is | |
2797 | # what configure does when it calls configure scripts in | |
2798 | # subdirectories, so they share the cache. | |
2799 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2800 | # config.status only pays attention to the cache file if you give it the | |
2801 | # --recheck option to rerun configure. | |
2802 | # | |
2803 | EOF | |
2804 | # The following way of writing the cache mishandles newlines in values, | |
2805 | # but we know of no workaround that is simple, portable, and efficient. | |
2806 | # So, don't put newlines in cache variables' values. | |
2807 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
2808 | # and sets the high bit in the cache file unless we assign to the vars. | |
2809 | (set) 2>&1 | | |
2810 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in | |
2811 | *ac_space=\ *) | |
2812 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
2813 | # turns \\\\ into \\, and sed turns \\ into \). | |
2814 | sed -n \ | |
2815 | -e "s/'/'\\\\''/g" \ | |
2816 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2817 | ;; | |
2818 | *) | |
2819 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2820 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2821 | ;; | |
2822 | esac >> confcache | |
2823 | if cmp -s $cache_file confcache; then | |
2824 | : | |
2825 | else | |
2826 | if test -w $cache_file; then | |
2827 | echo "updating cache $cache_file" | |
2828 | cat confcache > $cache_file | |
2829 | else | |
2830 | echo "not updating unwritable cache $cache_file" | |
2831 | fi | |
2832 | fi | |
2833 | rm -f confcache | |
2834 | ||
2835 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
2836 | ||
2837 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2838 | # Let make expand exec_prefix. | |
2839 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2840 | ||
2841 | # Any assignment to VPATH causes Sun make to only execute | |
2842 | # the first set of double-colon rules, so remove it if not needed. | |
2843 | # If there is a colon in the path, we need to keep it. | |
2844 | if test "x$srcdir" = x.; then | |
2845 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2846 | fi | |
2847 | ||
2848 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2849 | ||
2850 | DEFS=-DHAVE_CONFIG_H | |
2851 | ||
2852 | # Without the "./", some shells look in PATH for config.status. | |
2853 | : ${CONFIG_STATUS=./config.status} | |
2854 | ||
2855 | echo creating $CONFIG_STATUS | |
2856 | rm -f $CONFIG_STATUS | |
2857 | cat > $CONFIG_STATUS <<EOF | |
2858 | #! /bin/sh | |
2859 | # Generated automatically by configure. | |
2860 | # Run this file to recreate the current configuration. | |
2861 | # This directory was configured as follows, | |
2862 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2863 | # | |
2864 | # $0 $ac_configure_args | |
2865 | # | |
2866 | # Compiler output produced by configure, useful for debugging | |
2867 | # configure, is in ./config.log if it exists. | |
2868 | ||
2869 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
2870 | for ac_option | |
2871 | do | |
2872 | case "\$ac_option" in | |
2873 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
2874 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
2875 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
2876 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
2877 | echo "$CONFIG_STATUS generated by autoconf version 2.12.1" | |
2878 | exit 0 ;; | |
2879 | -help | --help | --hel | --he | --h) | |
2880 | echo "\$ac_cs_usage"; exit 0 ;; | |
2881 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2882 | esac | |
2883 | done | |
2884 | ||
2885 | ac_given_srcdir=$srcdir | |
2886 | ac_given_INSTALL="$INSTALL" | |
2887 | ||
2888 | trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
2889 | EOF | |
2890 | cat >> $CONFIG_STATUS <<EOF | |
2891 | ||
2892 | # Protect against being on the right side of a sed subst in config.status. | |
2893 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2894 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
2895 | $ac_vpsub | |
2896 | $extrasub | |
2897 | s%@SHELL@%$SHELL%g | |
2898 | s%@CFLAGS@%$CFLAGS%g | |
2899 | s%@CPPFLAGS@%$CPPFLAGS%g | |
2900 | s%@CXXFLAGS@%$CXXFLAGS%g | |
2901 | s%@DEFS@%$DEFS%g | |
2902 | s%@LDFLAGS@%$LDFLAGS%g | |
2903 | s%@LIBS@%$LIBS%g | |
2904 | s%@exec_prefix@%$exec_prefix%g | |
2905 | s%@prefix@%$prefix%g | |
2906 | s%@program_transform_name@%$program_transform_name%g | |
2907 | s%@bindir@%$bindir%g | |
2908 | s%@sbindir@%$sbindir%g | |
2909 | s%@libexecdir@%$libexecdir%g | |
2910 | s%@datadir@%$datadir%g | |
2911 | s%@sysconfdir@%$sysconfdir%g | |
2912 | s%@sharedstatedir@%$sharedstatedir%g | |
2913 | s%@localstatedir@%$localstatedir%g | |
2914 | s%@libdir@%$libdir%g | |
2915 | s%@includedir@%$includedir%g | |
2916 | s%@oldincludedir@%$oldincludedir%g | |
2917 | s%@infodir@%$infodir%g | |
2918 | s%@mandir@%$mandir%g | |
2919 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2920 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2921 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
2922 | s%@SET_MAKE@%$SET_MAKE%g | |
2923 | s%@CC@%$CC%g | |
2924 | s%@RANLIB@%$RANLIB%g | |
2925 | s%@CPP@%$CPP%g | |
2926 | s%@ALLOCA@%$ALLOCA%g | |
2927 | s%@USE_NLS@%$USE_NLS%g | |
2928 | s%@MSGFMT@%$MSGFMT%g | |
2929 | s%@GMSGFMT@%$GMSGFMT%g | |
2930 | s%@XGETTEXT@%$XGETTEXT%g | |
2931 | s%@GENCAT@%$GENCAT%g | |
2932 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
2933 | s%@CATALOGS@%$CATALOGS%g | |
2934 | s%@CATOBJEXT@%$CATOBJEXT%g | |
2935 | s%@DATADIRNAME@%$DATADIRNAME%g | |
2936 | s%@GMOFILES@%$GMOFILES%g | |
2937 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
2938 | s%@INTLDEPS@%$INTLDEPS%g | |
2939 | s%@INTLLIBS@%$INTLLIBS%g | |
2940 | s%@INTLOBJS@%$INTLOBJS%g | |
2941 | s%@POFILES@%$POFILES%g | |
2942 | s%@POSUB@%$POSUB%g | |
2943 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
2944 | s%@GT_NO@%$GT_NO%g | |
2945 | s%@GT_YES@%$GT_YES%g | |
2946 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
2947 | s%@l@%$l%g | |
2948 | ||
2949 | CEOF | |
2950 | EOF | |
2951 | ||
2952 | cat >> $CONFIG_STATUS <<\EOF | |
2953 | ||
2954 | # Split the substitutions into bite-sized pieces for seds with | |
2955 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
2956 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
2957 | ac_file=1 # Number of current file. | |
2958 | ac_beg=1 # First line for current file. | |
2959 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
2960 | ac_more_lines=: | |
2961 | ac_sed_cmds="" | |
2962 | while $ac_more_lines; do | |
2963 | if test $ac_beg -gt 1; then | |
2964 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
2965 | else | |
2966 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
2967 | fi | |
2968 | if test ! -s conftest.s$ac_file; then | |
2969 | ac_more_lines=false | |
2970 | rm -f conftest.s$ac_file | |
2971 | else | |
2972 | if test -z "$ac_sed_cmds"; then | |
2973 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
2974 | else | |
2975 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
2976 | fi | |
2977 | ac_file=`expr $ac_file + 1` | |
2978 | ac_beg=$ac_end | |
2979 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
2980 | fi | |
2981 | done | |
2982 | if test -z "$ac_sed_cmds"; then | |
2983 | ac_sed_cmds=cat | |
2984 | fi | |
2985 | EOF | |
2986 | ||
2987 | cat >> $CONFIG_STATUS <<EOF | |
2988 | ||
2989 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | |
2990 | EOF | |
2991 | cat >> $CONFIG_STATUS <<\EOF | |
2992 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
2993 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
2994 | case "$ac_file" in | |
2995 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
2996 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2997 | *) ac_file_in="${ac_file}.in" ;; | |
2998 | esac | |
2999 | ||
3000 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
3001 | ||
3002 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3003 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3004 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3005 | # The file is in a subdirectory. | |
3006 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3007 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
3008 | # A "../" for each directory in $ac_dir_suffix. | |
3009 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
3010 | else | |
3011 | ac_dir_suffix= ac_dots= | |
3012 | fi | |
3013 | ||
3014 | case "$ac_given_srcdir" in | |
3015 | .) srcdir=. | |
3016 | if test -z "$ac_dots"; then top_srcdir=. | |
3017 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
3018 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
3019 | *) # Relative path. | |
3020 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
3021 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
3022 | esac | |
3023 | ||
3024 | case "$ac_given_INSTALL" in | |
3025 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
3026 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
3027 | esac | |
3028 | ||
3029 | echo creating "$ac_file" | |
3030 | rm -f "$ac_file" | |
3031 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
3032 | case "$ac_file" in | |
3033 | *Makefile*) ac_comsub="1i\\ | |
3034 | # $configure_input" ;; | |
3035 | *) ac_comsub= ;; | |
3036 | esac | |
3037 | ||
3038 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3039 | sed -e "$ac_comsub | |
3040 | s%@configure_input@%$configure_input%g | |
3041 | s%@srcdir@%$srcdir%g | |
3042 | s%@top_srcdir@%$top_srcdir%g | |
3043 | s%@INSTALL@%$INSTALL%g | |
3044 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
3045 | fi; done | |
3046 | rm -f conftest.s* | |
3047 | ||
3048 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
3049 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3050 | # | |
3051 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3052 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3053 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
3054 | ac_dC='\3' | |
3055 | ac_dD='%g' | |
3056 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
3057 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3058 | ac_uB='\([ ]\)%\1#\2define\3' | |
3059 | ac_uC=' ' | |
3060 | ac_uD='\4%g' | |
3061 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3062 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3063 | ac_eB='$%\1#\2define\3' | |
3064 | ac_eC=' ' | |
3065 | ac_eD='%g' | |
3066 | ||
3067 | if test "${CONFIG_HEADERS+set}" != set; then | |
3068 | EOF | |
3069 | cat >> $CONFIG_STATUS <<EOF | |
3070 | CONFIG_HEADERS="config.h" | |
3071 | EOF | |
3072 | cat >> $CONFIG_STATUS <<\EOF | |
3073 | fi | |
3074 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
3075 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3076 | case "$ac_file" in | |
3077 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
3078 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
3079 | *) ac_file_in="${ac_file}.in" ;; | |
3080 | esac | |
3081 | ||
3082 | echo creating $ac_file | |
3083 | ||
3084 | rm -f conftest.frag conftest.in conftest.out | |
3085 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
3086 | cat $ac_file_inputs > conftest.in | |
3087 | ||
3088 | EOF | |
3089 | ||
3090 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
3091 | # the proper values into config.h.in to produce config.h. And first: | |
3092 | # Protect against being on the right side of a sed subst in config.status. | |
3093 | # Protect against being in an unquoted here document in config.status. | |
3094 | rm -f conftest.vals | |
3095 | cat > conftest.hdr <<\EOF | |
3096 | s/[\\&%]/\\&/g | |
3097 | s%[\\$`]%\\&%g | |
3098 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
3099 | s%ac_d%ac_u%gp | |
3100 | s%ac_u%ac_e%gp | |
3101 | EOF | |
3102 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
3103 | rm -f conftest.hdr | |
3104 | ||
3105 | # This sed command replaces #undef with comments. This is necessary, for | |
3106 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3107 | # on some systems where configure will not decide to define it. | |
3108 | cat >> conftest.vals <<\EOF | |
3109 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
3110 | EOF | |
3111 | ||
3112 | # Break up conftest.vals because some shells have a limit on | |
3113 | # the size of here documents, and old seds have small limits too. | |
3114 | ||
3115 | rm -f conftest.tail | |
3116 | while : | |
3117 | do | |
3118 | ac_lines=`grep -c . conftest.vals` | |
3119 | # grep -c gives empty output for an empty file on some AIX systems. | |
3120 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
3121 | # Write a limited-size here document to conftest.frag. | |
3122 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
3123 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
3124 | echo 'CEOF | |
3125 | sed -f conftest.frag conftest.in > conftest.out | |
3126 | rm -f conftest.in | |
3127 | mv conftest.out conftest.in | |
3128 | ' >> $CONFIG_STATUS | |
3129 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
3130 | rm -f conftest.vals | |
3131 | mv conftest.tail conftest.vals | |
3132 | done | |
3133 | rm -f conftest.vals | |
3134 | ||
3135 | cat >> $CONFIG_STATUS <<\EOF | |
3136 | rm -f conftest.frag conftest.h | |
3137 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
3138 | cat conftest.in >> conftest.h | |
3139 | rm -f conftest.in | |
3140 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
3141 | echo "$ac_file is unchanged" | |
3142 | rm -f conftest.h | |
3143 | else | |
3144 | # Remove last slash and all that follows it. Not all systems have dirname. | |
3145 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
3146 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3147 | # The file is in a subdirectory. | |
3148 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
3149 | fi | |
3150 | rm -f $ac_file | |
3151 | mv conftest.h $ac_file | |
3152 | fi | |
3153 | fi; done | |
3154 | ||
3155 | EOF | |
3156 | cat >> $CONFIG_STATUS <<EOF | |
3157 | ||
3158 | ||
3159 | EOF | |
3160 | cat >> $CONFIG_STATUS <<\EOF | |
3161 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
3162 | ||
3163 | exit 0 | |
3164 | EOF | |
3165 | chmod +x $CONFIG_STATUS | |
3166 | rm -fr confdefs* $ac_clean_files | |
3167 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
3168 |