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