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