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