1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
16 | (and sometimes confusing) to the casual installer" |
---|
17 | ac_help="$ac_help |
---|
18 | --with-gnome-includes Specify location of GNOME headers" |
---|
19 | ac_help="$ac_help |
---|
20 | --with-gnome-libs Specify location of GNOME libs" |
---|
21 | ac_help="$ac_help |
---|
22 | --with-gnome Specify prefix for GNOME files" |
---|
23 | ac_help="$ac_help |
---|
24 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
---|
25 | ac_help="$ac_help |
---|
26 | --enable-static[=PKGS] build static libraries [default=yes]" |
---|
27 | ac_help="$ac_help |
---|
28 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
---|
29 | ac_help="$ac_help |
---|
30 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
---|
31 | ac_help="$ac_help |
---|
32 | --disable-libtool-lock avoid locking (might break parallel builds)" |
---|
33 | ac_help="$ac_help |
---|
34 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
---|
35 | ac_help="$ac_help |
---|
36 | --enable-iso-c Try to warn if code is not ISO C " |
---|
37 | ac_help="$ac_help |
---|
38 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
---|
39 | ac_help="$ac_help |
---|
40 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
---|
41 | ac_help="$ac_help |
---|
42 | --disable-gtktest Do not try to compile and run a test GTK program" |
---|
43 | ac_help="$ac_help |
---|
44 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
---|
45 | ac_help="$ac_help |
---|
46 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
---|
47 | ac_help="$ac_help |
---|
48 | --disable-gtktest Do not try to compile and run a test GTK program" |
---|
49 | ac_help="$ac_help |
---|
50 | --disable-nls do not use Native Language Support" |
---|
51 | ac_help="$ac_help |
---|
52 | --with-catgets use catgets functions if available" |
---|
53 | ac_help="$ac_help |
---|
54 | --with-window-manager=NAME |
---|
55 | Specify default window manager" |
---|
56 | ac_help="$ac_help |
---|
57 | --with-gtkhtml=PREFIX Specify gtkhtml prefix" |
---|
58 | ac_help="$ac_help |
---|
59 | --with-gnome-print=PREFIX Specify gnome-print prefix" |
---|
60 | ac_help="$ac_help |
---|
61 | --enable-gtkhtml-help Use GtkHTML for the help browser" |
---|
62 | ac_help="$ac_help |
---|
63 | --with-kde-datadir=DIR Location of KDE data" |
---|
64 | ac_help="$ac_help |
---|
65 | --with-kde-docdir=DIR Location of KDE documentation" |
---|
66 | ac_help="$ac_help |
---|
67 | --enable-gtk-doc Use gtk-doc to build documentation [default=auto]" |
---|
68 | |
---|
69 | # Initialize some variables set by options. |
---|
70 | # The variables have the same names as the options, with |
---|
71 | # dashes changed to underlines. |
---|
72 | build=NONE |
---|
73 | cache_file=./config.cache |
---|
74 | exec_prefix=NONE |
---|
75 | host=NONE |
---|
76 | no_create= |
---|
77 | nonopt=NONE |
---|
78 | no_recursion= |
---|
79 | prefix=NONE |
---|
80 | program_prefix=NONE |
---|
81 | program_suffix=NONE |
---|
82 | program_transform_name=s,x,x, |
---|
83 | silent= |
---|
84 | site= |
---|
85 | srcdir= |
---|
86 | target=NONE |
---|
87 | verbose= |
---|
88 | x_includes=NONE |
---|
89 | x_libraries=NONE |
---|
90 | bindir='${exec_prefix}/bin' |
---|
91 | sbindir='${exec_prefix}/sbin' |
---|
92 | libexecdir='${exec_prefix}/libexec' |
---|
93 | datadir='${prefix}/share' |
---|
94 | sysconfdir='${prefix}/etc' |
---|
95 | sharedstatedir='${prefix}/com' |
---|
96 | localstatedir='${prefix}/var' |
---|
97 | libdir='${exec_prefix}/lib' |
---|
98 | includedir='${prefix}/include' |
---|
99 | oldincludedir='/usr/include' |
---|
100 | infodir='${prefix}/info' |
---|
101 | mandir='${prefix}/man' |
---|
102 | |
---|
103 | # Initialize some other variables. |
---|
104 | subdirs= |
---|
105 | MFLAGS= MAKEFLAGS= |
---|
106 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
107 | # Maximum number of lines to put in a shell here document. |
---|
108 | ac_max_here_lines=12 |
---|
109 | |
---|
110 | ac_prev= |
---|
111 | for ac_option |
---|
112 | do |
---|
113 | |
---|
114 | # If the previous option needs an argument, assign it. |
---|
115 | if test -n "$ac_prev"; then |
---|
116 | eval "$ac_prev=\$ac_option" |
---|
117 | ac_prev= |
---|
118 | continue |
---|
119 | fi |
---|
120 | |
---|
121 | case "$ac_option" in |
---|
122 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
123 | *) ac_optarg= ;; |
---|
124 | esac |
---|
125 | |
---|
126 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
127 | |
---|
128 | case "$ac_option" in |
---|
129 | |
---|
130 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
131 | ac_prev=bindir ;; |
---|
132 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
133 | bindir="$ac_optarg" ;; |
---|
134 | |
---|
135 | -build | --build | --buil | --bui | --bu) |
---|
136 | ac_prev=build ;; |
---|
137 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
138 | build="$ac_optarg" ;; |
---|
139 | |
---|
140 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
141 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
142 | ac_prev=cache_file ;; |
---|
143 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
144 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
145 | cache_file="$ac_optarg" ;; |
---|
146 | |
---|
147 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
148 | ac_prev=datadir ;; |
---|
149 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
150 | | --da=*) |
---|
151 | datadir="$ac_optarg" ;; |
---|
152 | |
---|
153 | -disable-* | --disable-*) |
---|
154 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
155 | # Reject names that are not valid shell variable names. |
---|
156 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
157 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
158 | fi |
---|
159 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
160 | eval "enable_${ac_feature}=no" ;; |
---|
161 | |
---|
162 | -enable-* | --enable-*) |
---|
163 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
164 | # Reject names that are not valid shell variable names. |
---|
165 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
166 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
167 | fi |
---|
168 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
169 | case "$ac_option" in |
---|
170 | *=*) ;; |
---|
171 | *) ac_optarg=yes ;; |
---|
172 | esac |
---|
173 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
174 | |
---|
175 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
176 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
177 | | --exec | --exe | --ex) |
---|
178 | ac_prev=exec_prefix ;; |
---|
179 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
180 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
181 | | --exec=* | --exe=* | --ex=*) |
---|
182 | exec_prefix="$ac_optarg" ;; |
---|
183 | |
---|
184 | -gas | --gas | --ga | --g) |
---|
185 | # Obsolete; use --with-gas. |
---|
186 | with_gas=yes ;; |
---|
187 | |
---|
188 | -help | --help | --hel | --he) |
---|
189 | # Omit some internal or obsolete options to make the list less imposing. |
---|
190 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
191 | cat << EOF |
---|
192 | Usage: configure [options] [host] |
---|
193 | Options: [defaults in brackets after descriptions] |
---|
194 | Configuration: |
---|
195 | --cache-file=FILE cache test results in FILE |
---|
196 | --help print this message |
---|
197 | --no-create do not create output files |
---|
198 | --quiet, --silent do not print \`checking...' messages |
---|
199 | --version print the version of autoconf that created configure |
---|
200 | Directory and file names: |
---|
201 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
202 | [$ac_default_prefix] |
---|
203 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
204 | [same as prefix] |
---|
205 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
206 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
207 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
208 | --datadir=DIR read-only architecture-independent data in DIR |
---|
209 | [PREFIX/share] |
---|
210 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
211 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
212 | [PREFIX/com] |
---|
213 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
214 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
215 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
216 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
217 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
218 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
219 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
220 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
221 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
222 | --program-transform-name=PROGRAM |
---|
223 | run sed PROGRAM on installed program names |
---|
224 | EOF |
---|
225 | cat << EOF |
---|
226 | Host type: |
---|
227 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
228 | --host=HOST configure for HOST [guessed] |
---|
229 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
230 | Features and packages: |
---|
231 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
232 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
233 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
234 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
235 | --x-includes=DIR X include files are in DIR |
---|
236 | --x-libraries=DIR X library files are in DIR |
---|
237 | EOF |
---|
238 | if test -n "$ac_help"; then |
---|
239 | echo "--enable and --with options recognized:$ac_help" |
---|
240 | fi |
---|
241 | exit 0 ;; |
---|
242 | |
---|
243 | -host | --host | --hos | --ho) |
---|
244 | ac_prev=host ;; |
---|
245 | -host=* | --host=* | --hos=* | --ho=*) |
---|
246 | host="$ac_optarg" ;; |
---|
247 | |
---|
248 | -includedir | --includedir | --includedi | --included | --include \ |
---|
249 | | --includ | --inclu | --incl | --inc) |
---|
250 | ac_prev=includedir ;; |
---|
251 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
252 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
253 | includedir="$ac_optarg" ;; |
---|
254 | |
---|
255 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
256 | ac_prev=infodir ;; |
---|
257 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
258 | infodir="$ac_optarg" ;; |
---|
259 | |
---|
260 | -libdir | --libdir | --libdi | --libd) |
---|
261 | ac_prev=libdir ;; |
---|
262 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
263 | libdir="$ac_optarg" ;; |
---|
264 | |
---|
265 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
266 | | --libexe | --libex | --libe) |
---|
267 | ac_prev=libexecdir ;; |
---|
268 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
269 | | --libexe=* | --libex=* | --libe=*) |
---|
270 | libexecdir="$ac_optarg" ;; |
---|
271 | |
---|
272 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
273 | | --localstate | --localstat | --localsta | --localst \ |
---|
274 | | --locals | --local | --loca | --loc | --lo) |
---|
275 | ac_prev=localstatedir ;; |
---|
276 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
277 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
278 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
279 | localstatedir="$ac_optarg" ;; |
---|
280 | |
---|
281 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
282 | ac_prev=mandir ;; |
---|
283 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
284 | mandir="$ac_optarg" ;; |
---|
285 | |
---|
286 | -nfp | --nfp | --nf) |
---|
287 | # Obsolete; use --without-fp. |
---|
288 | with_fp=no ;; |
---|
289 | |
---|
290 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
291 | | --no-cr | --no-c) |
---|
292 | no_create=yes ;; |
---|
293 | |
---|
294 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
295 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
296 | no_recursion=yes ;; |
---|
297 | |
---|
298 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
299 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
300 | | --oldin | --oldi | --old | --ol | --o) |
---|
301 | ac_prev=oldincludedir ;; |
---|
302 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
303 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
304 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
305 | oldincludedir="$ac_optarg" ;; |
---|
306 | |
---|
307 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
308 | ac_prev=prefix ;; |
---|
309 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
310 | prefix="$ac_optarg" ;; |
---|
311 | |
---|
312 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
313 | | --program-pre | --program-pr | --program-p) |
---|
314 | ac_prev=program_prefix ;; |
---|
315 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
316 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
317 | program_prefix="$ac_optarg" ;; |
---|
318 | |
---|
319 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
320 | | --program-suf | --program-su | --program-s) |
---|
321 | ac_prev=program_suffix ;; |
---|
322 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
323 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
324 | program_suffix="$ac_optarg" ;; |
---|
325 | |
---|
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 | ac_prev=program_transform_name ;; |
---|
334 | -program-transform-name=* | --program-transform-name=* \ |
---|
335 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
336 | | --program-transform-n=* | --program-transform-=* \ |
---|
337 | | --program-transform=* | --program-transfor=* \ |
---|
338 | | --program-transfo=* | --program-transf=* \ |
---|
339 | | --program-trans=* | --program-tran=* \ |
---|
340 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
341 | program_transform_name="$ac_optarg" ;; |
---|
342 | |
---|
343 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
344 | | -silent | --silent | --silen | --sile | --sil) |
---|
345 | silent=yes ;; |
---|
346 | |
---|
347 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
348 | ac_prev=sbindir ;; |
---|
349 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
350 | | --sbi=* | --sb=*) |
---|
351 | sbindir="$ac_optarg" ;; |
---|
352 | |
---|
353 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
354 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
355 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
356 | | --sha | --sh) |
---|
357 | ac_prev=sharedstatedir ;; |
---|
358 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
359 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
360 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
361 | | --sha=* | --sh=*) |
---|
362 | sharedstatedir="$ac_optarg" ;; |
---|
363 | |
---|
364 | -site | --site | --sit) |
---|
365 | ac_prev=site ;; |
---|
366 | -site=* | --site=* | --sit=*) |
---|
367 | site="$ac_optarg" ;; |
---|
368 | |
---|
369 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
370 | ac_prev=srcdir ;; |
---|
371 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
372 | srcdir="$ac_optarg" ;; |
---|
373 | |
---|
374 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
375 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
376 | ac_prev=sysconfdir ;; |
---|
377 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
378 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
379 | sysconfdir="$ac_optarg" ;; |
---|
380 | |
---|
381 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
382 | ac_prev=target ;; |
---|
383 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
384 | target="$ac_optarg" ;; |
---|
385 | |
---|
386 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
387 | verbose=yes ;; |
---|
388 | |
---|
389 | -version | --version | --versio | --versi | --vers) |
---|
390 | echo "configure generated by autoconf version 2.13" |
---|
391 | exit 0 ;; |
---|
392 | |
---|
393 | -with-* | --with-*) |
---|
394 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
395 | # Reject names that are not valid shell variable names. |
---|
396 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
397 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
398 | fi |
---|
399 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
400 | case "$ac_option" in |
---|
401 | *=*) ;; |
---|
402 | *) ac_optarg=yes ;; |
---|
403 | esac |
---|
404 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
405 | |
---|
406 | -without-* | --without-*) |
---|
407 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
408 | # Reject names that are not valid shell variable names. |
---|
409 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
410 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
411 | fi |
---|
412 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
413 | eval "with_${ac_package}=no" ;; |
---|
414 | |
---|
415 | --x) |
---|
416 | # Obsolete; use --with-x. |
---|
417 | with_x=yes ;; |
---|
418 | |
---|
419 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
420 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
421 | ac_prev=x_includes ;; |
---|
422 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
423 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
424 | x_includes="$ac_optarg" ;; |
---|
425 | |
---|
426 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
427 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
428 | ac_prev=x_libraries ;; |
---|
429 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
430 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
431 | x_libraries="$ac_optarg" ;; |
---|
432 | |
---|
433 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
434 | ;; |
---|
435 | |
---|
436 | *) |
---|
437 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
438 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
439 | fi |
---|
440 | if test "x$nonopt" != xNONE; then |
---|
441 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
442 | fi |
---|
443 | nonopt="$ac_option" |
---|
444 | ;; |
---|
445 | |
---|
446 | esac |
---|
447 | done |
---|
448 | |
---|
449 | if test -n "$ac_prev"; then |
---|
450 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
451 | fi |
---|
452 | |
---|
453 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
454 | |
---|
455 | # File descriptor usage: |
---|
456 | # 0 standard input |
---|
457 | # 1 file creation |
---|
458 | # 2 errors and warnings |
---|
459 | # 3 some systems may open it to /dev/tty |
---|
460 | # 4 used on the Kubota Titan |
---|
461 | # 6 checking for... messages and results |
---|
462 | # 5 compiler messages saved in config.log |
---|
463 | if test "$silent" = yes; then |
---|
464 | exec 6>/dev/null |
---|
465 | else |
---|
466 | exec 6>&1 |
---|
467 | fi |
---|
468 | exec 5>./config.log |
---|
469 | |
---|
470 | echo "\ |
---|
471 | This file contains any messages produced by compilers while |
---|
472 | running configure, to aid debugging if configure makes a mistake. |
---|
473 | " 1>&5 |
---|
474 | |
---|
475 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
476 | # Also quote any args containing shell metacharacters. |
---|
477 | ac_configure_args= |
---|
478 | for ac_arg |
---|
479 | do |
---|
480 | case "$ac_arg" in |
---|
481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
482 | | --no-cr | --no-c) ;; |
---|
483 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
484 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
485 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
486 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
487 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
488 | esac |
---|
489 | done |
---|
490 | |
---|
491 | # NLS nuisances. |
---|
492 | # Only set these to C if already set. These must not be set unconditionally |
---|
493 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
494 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
495 | # Non-C LC_CTYPE values break the ctype check. |
---|
496 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
497 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
498 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
499 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
500 | |
---|
501 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
502 | rm -rf conftest* confdefs.h |
---|
503 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
504 | echo > confdefs.h |
---|
505 | |
---|
506 | # A filename unique to this package, relative to the directory that |
---|
507 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
508 | ac_unique_file=panel |
---|
509 | |
---|
510 | # Find the source files, if location was not specified. |
---|
511 | if test -z "$srcdir"; then |
---|
512 | ac_srcdir_defaulted=yes |
---|
513 | # Try the directory containing this script, then its parent. |
---|
514 | ac_prog=$0 |
---|
515 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
516 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
517 | srcdir=$ac_confdir |
---|
518 | if test ! -r $srcdir/$ac_unique_file; then |
---|
519 | srcdir=.. |
---|
520 | fi |
---|
521 | else |
---|
522 | ac_srcdir_defaulted=no |
---|
523 | fi |
---|
524 | if test ! -r $srcdir/$ac_unique_file; then |
---|
525 | if test "$ac_srcdir_defaulted" = yes; then |
---|
526 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
527 | else |
---|
528 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
529 | fi |
---|
530 | fi |
---|
531 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
532 | |
---|
533 | # Prefer explicitly selected file to automatically selected ones. |
---|
534 | if test -z "$CONFIG_SITE"; then |
---|
535 | if test "x$prefix" != xNONE; then |
---|
536 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
537 | else |
---|
538 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
539 | fi |
---|
540 | fi |
---|
541 | for ac_site_file in $CONFIG_SITE; do |
---|
542 | if test -r "$ac_site_file"; then |
---|
543 | echo "loading site script $ac_site_file" |
---|
544 | . "$ac_site_file" |
---|
545 | fi |
---|
546 | done |
---|
547 | |
---|
548 | if test -r "$cache_file"; then |
---|
549 | echo "loading cache $cache_file" |
---|
550 | . $cache_file |
---|
551 | else |
---|
552 | echo "creating cache $cache_file" |
---|
553 | > $cache_file |
---|
554 | fi |
---|
555 | |
---|
556 | ac_ext=c |
---|
557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
558 | ac_cpp='$CPP $CPPFLAGS' |
---|
559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
561 | cross_compiling=$ac_cv_prog_cc_cross |
---|
562 | |
---|
563 | ac_exeext= |
---|
564 | ac_objext=o |
---|
565 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
566 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
567 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
568 | ac_n= ac_c=' |
---|
569 | ' ac_t=' ' |
---|
570 | else |
---|
571 | ac_n=-n ac_c= ac_t= |
---|
572 | fi |
---|
573 | else |
---|
574 | ac_n= ac_c='\c' ac_t= |
---|
575 | fi |
---|
576 | |
---|
577 | |
---|
578 | |
---|
579 | |
---|
580 | GTK_REQUIRED=1.2.5 |
---|
581 | GDK_PIXBUF_REQUIRED=0.7.0 |
---|
582 | LIBGLADE_REQUIRED=0.14 |
---|
583 | SCROLLKEEPER_REQUIRED=0.1.4 |
---|
584 | GNOME_LIBS_REQUIRED=1.0.59 |
---|
585 | ORBIT_REQUIRED=0.5.0 |
---|
586 | CONTROL_CENTER_REQUIRED=1.4.0 |
---|
587 | |
---|
588 | |
---|
589 | |
---|
590 | |
---|
591 | ac_aux_dir= |
---|
592 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
593 | if test -f $ac_dir/install-sh; then |
---|
594 | ac_aux_dir=$ac_dir |
---|
595 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
596 | break |
---|
597 | elif test -f $ac_dir/install.sh; then |
---|
598 | ac_aux_dir=$ac_dir |
---|
599 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
600 | break |
---|
601 | fi |
---|
602 | done |
---|
603 | if test -z "$ac_aux_dir"; then |
---|
604 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
605 | fi |
---|
606 | ac_config_guess=$ac_aux_dir/config.guess |
---|
607 | ac_config_sub=$ac_aux_dir/config.sub |
---|
608 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
609 | |
---|
610 | # Find a good install program. We prefer a C program (faster), |
---|
611 | # so one script is as good as another. But avoid the broken or |
---|
612 | # incompatible versions: |
---|
613 | # SysV /etc/install, /usr/sbin/install |
---|
614 | # SunOS /usr/etc/install |
---|
615 | # IRIX /sbin/install |
---|
616 | # AIX /bin/install |
---|
617 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
618 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
619 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
620 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
621 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
622 | echo "configure:623: checking for a BSD compatible install" >&5 |
---|
623 | if test -z "$INSTALL"; then |
---|
624 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
625 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
626 | else |
---|
627 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
628 | for ac_dir in $PATH; do |
---|
629 | # Account for people who put trailing slashes in PATH elements. |
---|
630 | case "$ac_dir/" in |
---|
631 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
632 | *) |
---|
633 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
634 | # Don't use installbsd from OSF since it installs stuff as root |
---|
635 | # by default. |
---|
636 | for ac_prog in ginstall scoinst install; do |
---|
637 | if test -f $ac_dir/$ac_prog; then |
---|
638 | if test $ac_prog = install && |
---|
639 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
640 | # AIX install. It has an incompatible calling convention. |
---|
641 | : |
---|
642 | else |
---|
643 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
644 | break 2 |
---|
645 | fi |
---|
646 | fi |
---|
647 | done |
---|
648 | ;; |
---|
649 | esac |
---|
650 | done |
---|
651 | IFS="$ac_save_IFS" |
---|
652 | |
---|
653 | fi |
---|
654 | if test "${ac_cv_path_install+set}" = set; then |
---|
655 | INSTALL="$ac_cv_path_install" |
---|
656 | else |
---|
657 | # As a last resort, use the slow shell script. We don't cache a |
---|
658 | # path for INSTALL within a source directory, because that will |
---|
659 | # break other packages using the cache if that directory is |
---|
660 | # removed, or if the path is relative. |
---|
661 | INSTALL="$ac_install_sh" |
---|
662 | fi |
---|
663 | fi |
---|
664 | echo "$ac_t""$INSTALL" 1>&6 |
---|
665 | |
---|
666 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
667 | # It thinks the first close brace ends the variable substitution. |
---|
668 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
669 | |
---|
670 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
671 | |
---|
672 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
673 | |
---|
674 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
675 | echo "configure:676: checking whether build environment is sane" >&5 |
---|
676 | # Just in case |
---|
677 | sleep 1 |
---|
678 | echo timestamp > conftestfile |
---|
679 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
680 | # arguments. Must try -L first in case configure is actually a |
---|
681 | # symlink; some systems play weird games with the mod time of symlinks |
---|
682 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
683 | # directory). |
---|
684 | if ( |
---|
685 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
686 | if test "$*" = "X"; then |
---|
687 | # -L didn't work. |
---|
688 | set X `ls -t $srcdir/configure conftestfile` |
---|
689 | fi |
---|
690 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
691 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
692 | |
---|
693 | # If neither matched, then we have a broken ls. This can happen |
---|
694 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
695 | # broken ls alias from the environment. This has actually |
---|
696 | # happened. Such a system could not be considered "sane". |
---|
697 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
698 | alias in your environment" 1>&2; exit 1; } |
---|
699 | fi |
---|
700 | |
---|
701 | test "$2" = conftestfile |
---|
702 | ) |
---|
703 | then |
---|
704 | # Ok. |
---|
705 | : |
---|
706 | else |
---|
707 | { echo "configure: error: newly created file is older than distributed files! |
---|
708 | Check your system clock" 1>&2; exit 1; } |
---|
709 | fi |
---|
710 | rm -f conftest* |
---|
711 | echo "$ac_t""yes" 1>&6 |
---|
712 | if test "$program_transform_name" = s,x,x,; then |
---|
713 | program_transform_name= |
---|
714 | else |
---|
715 | # Double any \ or $. echo might interpret backslashes. |
---|
716 | cat <<\EOF_SED > conftestsed |
---|
717 | s,\\,\\\\,g; s,\$,$$,g |
---|
718 | EOF_SED |
---|
719 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
720 | rm -f conftestsed |
---|
721 | fi |
---|
722 | test "$program_prefix" != NONE && |
---|
723 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
724 | # Use a double $ so make ignores it. |
---|
725 | test "$program_suffix" != NONE && |
---|
726 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
727 | |
---|
728 | # sed with no file args requires a program. |
---|
729 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
730 | |
---|
731 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
732 | echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
733 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
734 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
735 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
736 | else |
---|
737 | cat > conftestmake <<\EOF |
---|
738 | all: |
---|
739 | @echo 'ac_maketemp="${MAKE}"' |
---|
740 | EOF |
---|
741 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
742 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
743 | if test -n "$ac_maketemp"; then |
---|
744 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
745 | else |
---|
746 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
747 | fi |
---|
748 | rm -f conftestmake |
---|
749 | fi |
---|
750 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
751 | echo "$ac_t""yes" 1>&6 |
---|
752 | SET_MAKE= |
---|
753 | else |
---|
754 | echo "$ac_t""no" 1>&6 |
---|
755 | SET_MAKE="MAKE=${MAKE-make}" |
---|
756 | fi |
---|
757 | |
---|
758 | |
---|
759 | PACKAGE=gnome-core |
---|
760 | |
---|
761 | VERSION=1.4.0.4 |
---|
762 | |
---|
763 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
764 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
765 | fi |
---|
766 | cat >> confdefs.h <<EOF |
---|
767 | #define PACKAGE "$PACKAGE" |
---|
768 | EOF |
---|
769 | |
---|
770 | cat >> confdefs.h <<EOF |
---|
771 | #define VERSION "$VERSION" |
---|
772 | EOF |
---|
773 | |
---|
774 | |
---|
775 | |
---|
776 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
777 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
778 | echo "configure:779: checking for working aclocal" >&5 |
---|
779 | # Run test in a subshell; some versions of sh will print an error if |
---|
780 | # an executable is not found, even if stderr is redirected. |
---|
781 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
782 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
783 | ACLOCAL=aclocal |
---|
784 | echo "$ac_t""found" 1>&6 |
---|
785 | else |
---|
786 | ACLOCAL="$missing_dir/missing aclocal" |
---|
787 | echo "$ac_t""missing" 1>&6 |
---|
788 | fi |
---|
789 | |
---|
790 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
791 | echo "configure:792: checking for working autoconf" >&5 |
---|
792 | # Run test in a subshell; some versions of sh will print an error if |
---|
793 | # an executable is not found, even if stderr is redirected. |
---|
794 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
795 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
796 | AUTOCONF=autoconf |
---|
797 | echo "$ac_t""found" 1>&6 |
---|
798 | else |
---|
799 | AUTOCONF="$missing_dir/missing autoconf" |
---|
800 | echo "$ac_t""missing" 1>&6 |
---|
801 | fi |
---|
802 | |
---|
803 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
804 | echo "configure:805: checking for working automake" >&5 |
---|
805 | # Run test in a subshell; some versions of sh will print an error if |
---|
806 | # an executable is not found, even if stderr is redirected. |
---|
807 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
808 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
809 | AUTOMAKE=automake |
---|
810 | echo "$ac_t""found" 1>&6 |
---|
811 | else |
---|
812 | AUTOMAKE="$missing_dir/missing automake" |
---|
813 | echo "$ac_t""missing" 1>&6 |
---|
814 | fi |
---|
815 | |
---|
816 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
817 | echo "configure:818: checking for working autoheader" >&5 |
---|
818 | # Run test in a subshell; some versions of sh will print an error if |
---|
819 | # an executable is not found, even if stderr is redirected. |
---|
820 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
821 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
822 | AUTOHEADER=autoheader |
---|
823 | echo "$ac_t""found" 1>&6 |
---|
824 | else |
---|
825 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
826 | echo "$ac_t""missing" 1>&6 |
---|
827 | fi |
---|
828 | |
---|
829 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
830 | echo "configure:831: checking for working makeinfo" >&5 |
---|
831 | # Run test in a subshell; some versions of sh will print an error if |
---|
832 | # an executable is not found, even if stderr is redirected. |
---|
833 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
834 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
835 | MAKEINFO=makeinfo |
---|
836 | echo "$ac_t""found" 1>&6 |
---|
837 | else |
---|
838 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
839 | echo "$ac_t""missing" 1>&6 |
---|
840 | fi |
---|
841 | |
---|
842 | |
---|
843 | |
---|
844 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
845 | echo "configure:846: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
846 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
847 | if test "${enable_maintainer_mode+set}" = set; then |
---|
848 | enableval="$enable_maintainer_mode" |
---|
849 | USE_MAINTAINER_MODE=$enableval |
---|
850 | else |
---|
851 | USE_MAINTAINER_MODE=no |
---|
852 | fi |
---|
853 | |
---|
854 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
855 | |
---|
856 | |
---|
857 | if test $USE_MAINTAINER_MODE = yes; then |
---|
858 | MAINTAINER_MODE_TRUE= |
---|
859 | MAINTAINER_MODE_FALSE='#' |
---|
860 | else |
---|
861 | MAINTAINER_MODE_TRUE='#' |
---|
862 | MAINTAINER_MODE_FALSE= |
---|
863 | fi |
---|
864 | MAINT=$MAINTAINER_MODE_TRUE |
---|
865 | |
---|
866 | |
---|
867 | |
---|
868 | |
---|
869 | |
---|
870 | |
---|
871 | if test x = y; then |
---|
872 | INSIDE_GNOME_COMMON_TRUE= |
---|
873 | INSIDE_GNOME_COMMON_FALSE='#' |
---|
874 | else |
---|
875 | INSIDE_GNOME_COMMON_TRUE='#' |
---|
876 | INSIDE_GNOME_COMMON_FALSE= |
---|
877 | fi |
---|
878 | |
---|
879 | test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
---|
880 | |
---|
881 | for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done |
---|
882 | |
---|
883 | |
---|
884 | |
---|
885 | |
---|
886 | XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
887 | $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf' |
---|
888 | |
---|
889 | XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
890 | $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys' |
---|
891 | |
---|
892 | XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
893 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop' |
---|
894 | |
---|
895 | XML_I18N_MERGE_DIRECTORY_RULE='\%.directory : \%.directory.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
896 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.directory' |
---|
897 | |
---|
898 | # Always use our own xml-i18n-tools. |
---|
899 | XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract' |
---|
900 | |
---|
901 | XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge' |
---|
902 | |
---|
903 | XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update' |
---|
904 | |
---|
905 | XML_I18N_MERGE_SOUNDLIST_RULE='\%.soundlist : \%.soundlist.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
906 | $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.soundlist' |
---|
907 | |
---|
908 | # Extract the first word of "perl", so it can be a program name with args. |
---|
909 | set dummy perl; ac_word=$2 |
---|
910 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
911 | echo "configure:912: checking for $ac_word" >&5 |
---|
912 | if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then |
---|
913 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
914 | else |
---|
915 | case "$XML_I18N_TOOLS_PERL" in |
---|
916 | /*) |
---|
917 | ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path. |
---|
918 | ;; |
---|
919 | ?:/*) |
---|
920 | ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path. |
---|
921 | ;; |
---|
922 | *) |
---|
923 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
924 | ac_dummy="$PATH" |
---|
925 | for ac_dir in $ac_dummy; do |
---|
926 | test -z "$ac_dir" && ac_dir=. |
---|
927 | if test -f $ac_dir/$ac_word; then |
---|
928 | ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word" |
---|
929 | break |
---|
930 | fi |
---|
931 | done |
---|
932 | IFS="$ac_save_ifs" |
---|
933 | ;; |
---|
934 | esac |
---|
935 | fi |
---|
936 | XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL" |
---|
937 | if test -n "$XML_I18N_TOOLS_PERL"; then |
---|
938 | echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6 |
---|
939 | else |
---|
940 | echo "$ac_t""no" 1>&6 |
---|
941 | fi |
---|
942 | |
---|
943 | if test -z "$XML_I18N_TOOLS_PERL"; then |
---|
944 | { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; } |
---|
945 | fi |
---|
946 | if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then |
---|
947 | { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; } |
---|
948 | fi |
---|
949 | |
---|
950 | |
---|
951 | |
---|
952 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
953 | # clobbered by the next message. |
---|
954 | exec 5>>./config.log |
---|
955 | |
---|
956 | |
---|
957 | gnome_cv_use_gnome=yes |
---|
958 | |
---|
959 | |
---|
960 | |
---|
961 | |
---|
962 | |
---|
963 | |
---|
964 | |
---|
965 | |
---|
966 | |
---|
967 | |
---|
968 | |
---|
969 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
---|
970 | if test "${with_gnome_includes+set}" = set; then |
---|
971 | withval="$with_gnome_includes" |
---|
972 | |
---|
973 | CFLAGS="$CFLAGS -I$withval" |
---|
974 | |
---|
975 | fi |
---|
976 | |
---|
977 | |
---|
978 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
---|
979 | if test "${with_gnome_libs+set}" = set; then |
---|
980 | withval="$with_gnome_libs" |
---|
981 | |
---|
982 | LDFLAGS="$LDFLAGS -L$withval" |
---|
983 | gnome_prefix=$withval |
---|
984 | |
---|
985 | fi |
---|
986 | |
---|
987 | |
---|
988 | # Check whether --with-gnome or --without-gnome was given. |
---|
989 | if test "${with_gnome+set}" = set; then |
---|
990 | withval="$with_gnome" |
---|
991 | if test x$withval = xyes; then |
---|
992 | want_gnome=yes |
---|
993 | : |
---|
994 | else |
---|
995 | if test "x$withval" = xno; then |
---|
996 | want_gnome=no |
---|
997 | else |
---|
998 | want_gnome=yes |
---|
999 | LDFLAGS="$LDFLAGS -L$withval/lib" |
---|
1000 | CFLAGS="$CFLAGS -I$withval/include" |
---|
1001 | gnome_prefix=$withval/lib |
---|
1002 | fi |
---|
1003 | fi |
---|
1004 | else |
---|
1005 | want_gnome=yes |
---|
1006 | fi |
---|
1007 | |
---|
1008 | |
---|
1009 | if test "x$want_gnome" = xyes; then |
---|
1010 | |
---|
1011 | # Extract the first word of "gnome-config", so it can be a program name with args. |
---|
1012 | set dummy gnome-config; ac_word=$2 |
---|
1013 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1014 | echo "configure:1015: checking for $ac_word" >&5 |
---|
1015 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
---|
1016 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1017 | else |
---|
1018 | case "$GNOME_CONFIG" in |
---|
1019 | /*) |
---|
1020 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
---|
1021 | ;; |
---|
1022 | ?:/*) |
---|
1023 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
---|
1024 | ;; |
---|
1025 | *) |
---|
1026 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1027 | ac_dummy="$PATH" |
---|
1028 | for ac_dir in $ac_dummy; do |
---|
1029 | test -z "$ac_dir" && ac_dir=. |
---|
1030 | if test -f $ac_dir/$ac_word; then |
---|
1031 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
---|
1032 | break |
---|
1033 | fi |
---|
1034 | done |
---|
1035 | IFS="$ac_save_ifs" |
---|
1036 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
---|
1037 | ;; |
---|
1038 | esac |
---|
1039 | fi |
---|
1040 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
---|
1041 | if test -n "$GNOME_CONFIG"; then |
---|
1042 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
---|
1043 | else |
---|
1044 | echo "$ac_t""no" 1>&6 |
---|
1045 | fi |
---|
1046 | |
---|
1047 | if test "$GNOME_CONFIG" = "no"; then |
---|
1048 | no_gnome_config="yes" |
---|
1049 | else |
---|
1050 | echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 |
---|
1051 | echo "configure:1052: checking if $GNOME_CONFIG works" >&5 |
---|
1052 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
---|
1053 | echo "$ac_t""yes" 1>&6 |
---|
1054 | |
---|
1055 | |
---|
1056 | # Extract the first word of "orbit-config", so it can be a program name with args. |
---|
1057 | set dummy orbit-config; ac_word=$2 |
---|
1058 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1059 | echo "configure:1060: checking for $ac_word" >&5 |
---|
1060 | if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then |
---|
1061 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1062 | else |
---|
1063 | case "$ORBIT_CONFIG" in |
---|
1064 | /*) |
---|
1065 | ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path. |
---|
1066 | ;; |
---|
1067 | ?:/*) |
---|
1068 | ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path. |
---|
1069 | ;; |
---|
1070 | *) |
---|
1071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1072 | ac_dummy="$PATH" |
---|
1073 | for ac_dir in $ac_dummy; do |
---|
1074 | test -z "$ac_dir" && ac_dir=. |
---|
1075 | if test -f $ac_dir/$ac_word; then |
---|
1076 | ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word" |
---|
1077 | break |
---|
1078 | fi |
---|
1079 | done |
---|
1080 | IFS="$ac_save_ifs" |
---|
1081 | test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no" |
---|
1082 | ;; |
---|
1083 | esac |
---|
1084 | fi |
---|
1085 | ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG" |
---|
1086 | if test -n "$ORBIT_CONFIG"; then |
---|
1087 | echo "$ac_t""$ORBIT_CONFIG" 1>&6 |
---|
1088 | else |
---|
1089 | echo "$ac_t""no" 1>&6 |
---|
1090 | fi |
---|
1091 | |
---|
1092 | # Extract the first word of "orbit-idl", so it can be a program name with args. |
---|
1093 | set dummy orbit-idl; ac_word=$2 |
---|
1094 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1095 | echo "configure:1096: checking for $ac_word" >&5 |
---|
1096 | if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then |
---|
1097 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1098 | else |
---|
1099 | case "$ORBIT_IDL" in |
---|
1100 | /*) |
---|
1101 | ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path. |
---|
1102 | ;; |
---|
1103 | ?:/*) |
---|
1104 | ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path. |
---|
1105 | ;; |
---|
1106 | *) |
---|
1107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1108 | ac_dummy="$PATH" |
---|
1109 | for ac_dir in $ac_dummy; do |
---|
1110 | test -z "$ac_dir" && ac_dir=. |
---|
1111 | if test -f $ac_dir/$ac_word; then |
---|
1112 | ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word" |
---|
1113 | break |
---|
1114 | fi |
---|
1115 | done |
---|
1116 | IFS="$ac_save_ifs" |
---|
1117 | test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no" |
---|
1118 | ;; |
---|
1119 | esac |
---|
1120 | fi |
---|
1121 | ORBIT_IDL="$ac_cv_path_ORBIT_IDL" |
---|
1122 | if test -n "$ORBIT_IDL"; then |
---|
1123 | echo "$ac_t""$ORBIT_IDL" 1>&6 |
---|
1124 | else |
---|
1125 | echo "$ac_t""no" 1>&6 |
---|
1126 | fi |
---|
1127 | |
---|
1128 | echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6 |
---|
1129 | echo "configure:1130: checking for working ORBit environment" >&5 |
---|
1130 | if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then |
---|
1131 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1132 | else |
---|
1133 | |
---|
1134 | if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then |
---|
1135 | gnome_cv_orbit_found=no |
---|
1136 | else |
---|
1137 | gnome_cv_orbit_found=yes |
---|
1138 | fi |
---|
1139 | |
---|
1140 | fi |
---|
1141 | |
---|
1142 | echo "$ac_t""$gnome_cv_orbit_found" 1>&6 |
---|
1143 | |
---|
1144 | |
---|
1145 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1146 | HAVE_ORBIT_TRUE= |
---|
1147 | HAVE_ORBIT_FALSE='#' |
---|
1148 | else |
---|
1149 | HAVE_ORBIT_TRUE='#' |
---|
1150 | HAVE_ORBIT_FALSE= |
---|
1151 | fi |
---|
1152 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1153 | |
---|
1154 | ORBIT_CFLAGS=`orbit-config --cflags client server` |
---|
1155 | ORBIT_LIBS=`orbit-config --use-service=name --libs client server` |
---|
1156 | |
---|
1157 | |
---|
1158 | else |
---|
1159 | if test xfail = xfailure; then |
---|
1160 | { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; } |
---|
1161 | fi |
---|
1162 | fi |
---|
1163 | |
---|
1164 | echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6 |
---|
1165 | echo "configure:1166: checking for gnorba libraries" >&5 |
---|
1166 | if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then |
---|
1167 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1168 | else |
---|
1169 | |
---|
1170 | gnome_cv_gnorba_found=no |
---|
1171 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1172 | GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" |
---|
1173 | GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" |
---|
1174 | if test -n "$GNORBA_LIBS"; then |
---|
1175 | gnome_cv_gnorba_found=yes |
---|
1176 | fi |
---|
1177 | fi |
---|
1178 | |
---|
1179 | fi |
---|
1180 | |
---|
1181 | echo "$ac_t""$gnome_cv_gnorba_found" 1>&6 |
---|
1182 | |
---|
1183 | |
---|
1184 | if test x$gnome_cv_gnorba_found = xyes; then |
---|
1185 | HAVE_GNORBA_TRUE= |
---|
1186 | HAVE_GNORBA_FALSE='#' |
---|
1187 | else |
---|
1188 | HAVE_GNORBA_TRUE='#' |
---|
1189 | HAVE_GNORBA_FALSE= |
---|
1190 | fi |
---|
1191 | if test x$gnome_cv_orbit_found = xyes; then |
---|
1192 | |
---|
1193 | GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" |
---|
1194 | GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" |
---|
1195 | |
---|
1196 | |
---|
1197 | else |
---|
1198 | if test xfail = xfailure; then |
---|
1199 | { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; } |
---|
1200 | fi |
---|
1201 | fi |
---|
1202 | |
---|
1203 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`" |
---|
1204 | GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`" |
---|
1205 | GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`" |
---|
1206 | GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`" |
---|
1207 | ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`" |
---|
1208 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
---|
1209 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
---|
1210 | |
---|
1211 | else |
---|
1212 | echo "$ac_t""no" 1>&6 |
---|
1213 | no_gnome_config="yes" |
---|
1214 | fi |
---|
1215 | fi |
---|
1216 | |
---|
1217 | if test x$exec_prefix = xNONE; then |
---|
1218 | if test x$prefix = xNONE; then |
---|
1219 | gnome_prefix=$ac_default_prefix/lib |
---|
1220 | else |
---|
1221 | gnome_prefix=$prefix/lib |
---|
1222 | fi |
---|
1223 | else |
---|
1224 | gnome_prefix=`eval echo \`echo $libdir\`` |
---|
1225 | fi |
---|
1226 | |
---|
1227 | if test "$no_gnome_config" = "yes"; then |
---|
1228 | echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 |
---|
1229 | echo "configure:1230: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
---|
1230 | if test -f $gnome_prefix/gnomeConf.sh; then |
---|
1231 | echo "$ac_t""found" 1>&6 |
---|
1232 | echo "loading gnome configuration from" \ |
---|
1233 | "$gnome_prefix/gnomeConf.sh" |
---|
1234 | . $gnome_prefix/gnomeConf.sh |
---|
1235 | |
---|
1236 | else |
---|
1237 | echo "$ac_t""not found" 1>&6 |
---|
1238 | if test xfail = xfail; then |
---|
1239 | { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } |
---|
1240 | fi |
---|
1241 | fi |
---|
1242 | fi |
---|
1243 | fi |
---|
1244 | |
---|
1245 | if test -n "capplet"; then |
---|
1246 | n="capplet" |
---|
1247 | for i in $n; do |
---|
1248 | echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6 |
---|
1249 | echo "configure:1250: checking extra library \"$i\"" >&5 |
---|
1250 | case $i in |
---|
1251 | applets) |
---|
1252 | |
---|
1253 | GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets` |
---|
1254 | echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;; |
---|
1255 | docklets) |
---|
1256 | |
---|
1257 | GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets` |
---|
1258 | echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;; |
---|
1259 | capplet) |
---|
1260 | |
---|
1261 | GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet` |
---|
1262 | echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;; |
---|
1263 | *) |
---|
1264 | echo "$ac_t""unknown library" 1>&6 |
---|
1265 | esac |
---|
1266 | done |
---|
1267 | fi |
---|
1268 | |
---|
1269 | |
---|
1270 | |
---|
1271 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1272 | set dummy gcc; ac_word=$2 |
---|
1273 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1274 | echo "configure:1275: checking for $ac_word" >&5 |
---|
1275 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1276 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1277 | else |
---|
1278 | if test -n "$CC"; then |
---|
1279 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1280 | else |
---|
1281 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1282 | ac_dummy="$PATH" |
---|
1283 | for ac_dir in $ac_dummy; do |
---|
1284 | test -z "$ac_dir" && ac_dir=. |
---|
1285 | if test -f $ac_dir/$ac_word; then |
---|
1286 | ac_cv_prog_CC="gcc" |
---|
1287 | break |
---|
1288 | fi |
---|
1289 | done |
---|
1290 | IFS="$ac_save_ifs" |
---|
1291 | fi |
---|
1292 | fi |
---|
1293 | CC="$ac_cv_prog_CC" |
---|
1294 | if test -n "$CC"; then |
---|
1295 | echo "$ac_t""$CC" 1>&6 |
---|
1296 | else |
---|
1297 | echo "$ac_t""no" 1>&6 |
---|
1298 | fi |
---|
1299 | |
---|
1300 | if test -z "$CC"; then |
---|
1301 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1302 | set dummy cc; ac_word=$2 |
---|
1303 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1304 | echo "configure:1305: checking for $ac_word" >&5 |
---|
1305 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1306 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1307 | else |
---|
1308 | if test -n "$CC"; then |
---|
1309 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1310 | else |
---|
1311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1312 | ac_prog_rejected=no |
---|
1313 | ac_dummy="$PATH" |
---|
1314 | for ac_dir in $ac_dummy; do |
---|
1315 | test -z "$ac_dir" && ac_dir=. |
---|
1316 | if test -f $ac_dir/$ac_word; then |
---|
1317 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1318 | ac_prog_rejected=yes |
---|
1319 | continue |
---|
1320 | fi |
---|
1321 | ac_cv_prog_CC="cc" |
---|
1322 | break |
---|
1323 | fi |
---|
1324 | done |
---|
1325 | IFS="$ac_save_ifs" |
---|
1326 | if test $ac_prog_rejected = yes; then |
---|
1327 | # We found a bogon in the path, so make sure we never use it. |
---|
1328 | set dummy $ac_cv_prog_CC |
---|
1329 | shift |
---|
1330 | if test $# -gt 0; then |
---|
1331 | # We chose a different compiler from the bogus one. |
---|
1332 | # However, it has the same basename, so the bogon will be chosen |
---|
1333 | # first if we set CC to just the basename; use the full file name. |
---|
1334 | shift |
---|
1335 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1336 | shift |
---|
1337 | ac_cv_prog_CC="$@" |
---|
1338 | fi |
---|
1339 | fi |
---|
1340 | fi |
---|
1341 | fi |
---|
1342 | CC="$ac_cv_prog_CC" |
---|
1343 | if test -n "$CC"; then |
---|
1344 | echo "$ac_t""$CC" 1>&6 |
---|
1345 | else |
---|
1346 | echo "$ac_t""no" 1>&6 |
---|
1347 | fi |
---|
1348 | |
---|
1349 | if test -z "$CC"; then |
---|
1350 | case "`uname -s`" in |
---|
1351 | *win32* | *WIN32*) |
---|
1352 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1353 | set dummy cl; ac_word=$2 |
---|
1354 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1355 | echo "configure:1356: checking for $ac_word" >&5 |
---|
1356 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1357 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1358 | else |
---|
1359 | if test -n "$CC"; then |
---|
1360 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1361 | else |
---|
1362 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1363 | ac_dummy="$PATH" |
---|
1364 | for ac_dir in $ac_dummy; do |
---|
1365 | test -z "$ac_dir" && ac_dir=. |
---|
1366 | if test -f $ac_dir/$ac_word; then |
---|
1367 | ac_cv_prog_CC="cl" |
---|
1368 | break |
---|
1369 | fi |
---|
1370 | done |
---|
1371 | IFS="$ac_save_ifs" |
---|
1372 | fi |
---|
1373 | fi |
---|
1374 | CC="$ac_cv_prog_CC" |
---|
1375 | if test -n "$CC"; then |
---|
1376 | echo "$ac_t""$CC" 1>&6 |
---|
1377 | else |
---|
1378 | echo "$ac_t""no" 1>&6 |
---|
1379 | fi |
---|
1380 | ;; |
---|
1381 | esac |
---|
1382 | fi |
---|
1383 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1384 | fi |
---|
1385 | |
---|
1386 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1387 | echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1388 | |
---|
1389 | ac_ext=c |
---|
1390 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1391 | ac_cpp='$CPP $CPPFLAGS' |
---|
1392 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1393 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1394 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1395 | |
---|
1396 | cat > conftest.$ac_ext << EOF |
---|
1397 | |
---|
1398 | #line 1399 "configure" |
---|
1399 | #include "confdefs.h" |
---|
1400 | |
---|
1401 | main(){return(0);} |
---|
1402 | EOF |
---|
1403 | if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1404 | ac_cv_prog_cc_works=yes |
---|
1405 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1406 | if (./conftest; exit) 2>/dev/null; then |
---|
1407 | ac_cv_prog_cc_cross=no |
---|
1408 | else |
---|
1409 | ac_cv_prog_cc_cross=yes |
---|
1410 | fi |
---|
1411 | else |
---|
1412 | echo "configure: failed program was:" >&5 |
---|
1413 | cat conftest.$ac_ext >&5 |
---|
1414 | ac_cv_prog_cc_works=no |
---|
1415 | fi |
---|
1416 | rm -fr conftest* |
---|
1417 | ac_ext=c |
---|
1418 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1419 | ac_cpp='$CPP $CPPFLAGS' |
---|
1420 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1421 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1422 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1423 | |
---|
1424 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1425 | if test $ac_cv_prog_cc_works = no; then |
---|
1426 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1427 | fi |
---|
1428 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1429 | echo "configure:1430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1430 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1431 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1432 | |
---|
1433 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1434 | echo "configure:1435: checking whether we are using GNU C" >&5 |
---|
1435 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1436 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1437 | else |
---|
1438 | cat > conftest.c <<EOF |
---|
1439 | #ifdef __GNUC__ |
---|
1440 | yes; |
---|
1441 | #endif |
---|
1442 | EOF |
---|
1443 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1444 | ac_cv_prog_gcc=yes |
---|
1445 | else |
---|
1446 | ac_cv_prog_gcc=no |
---|
1447 | fi |
---|
1448 | fi |
---|
1449 | |
---|
1450 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1451 | |
---|
1452 | if test $ac_cv_prog_gcc = yes; then |
---|
1453 | GCC=yes |
---|
1454 | else |
---|
1455 | GCC= |
---|
1456 | fi |
---|
1457 | |
---|
1458 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1459 | ac_save_CFLAGS="$CFLAGS" |
---|
1460 | CFLAGS= |
---|
1461 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1462 | echo "configure:1463: checking whether ${CC-cc} accepts -g" >&5 |
---|
1463 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1464 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1465 | else |
---|
1466 | echo 'void f(){}' > conftest.c |
---|
1467 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1468 | ac_cv_prog_cc_g=yes |
---|
1469 | else |
---|
1470 | ac_cv_prog_cc_g=no |
---|
1471 | fi |
---|
1472 | rm -f conftest* |
---|
1473 | |
---|
1474 | fi |
---|
1475 | |
---|
1476 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1477 | if test "$ac_test_CFLAGS" = set; then |
---|
1478 | CFLAGS="$ac_save_CFLAGS" |
---|
1479 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1480 | if test "$GCC" = yes; then |
---|
1481 | CFLAGS="-g -O2" |
---|
1482 | else |
---|
1483 | CFLAGS="-g" |
---|
1484 | fi |
---|
1485 | else |
---|
1486 | if test "$GCC" = yes; then |
---|
1487 | CFLAGS="-O2" |
---|
1488 | else |
---|
1489 | CFLAGS= |
---|
1490 | fi |
---|
1491 | fi |
---|
1492 | |
---|
1493 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
---|
1494 | echo "configure:1495: checking for POSIXized ISC" >&5 |
---|
1495 | if test -d /etc/conf/kconfig.d && |
---|
1496 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
---|
1497 | then |
---|
1498 | echo "$ac_t""yes" 1>&6 |
---|
1499 | ISC=yes # If later tests want to check for ISC. |
---|
1500 | cat >> confdefs.h <<\EOF |
---|
1501 | #define _POSIX_SOURCE 1 |
---|
1502 | EOF |
---|
1503 | |
---|
1504 | if test "$GCC" = yes; then |
---|
1505 | CC="$CC -posix" |
---|
1506 | else |
---|
1507 | CC="$CC -Xp" |
---|
1508 | fi |
---|
1509 | else |
---|
1510 | echo "$ac_t""no" 1>&6 |
---|
1511 | ISC= |
---|
1512 | fi |
---|
1513 | |
---|
1514 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1515 | set dummy gcc; ac_word=$2 |
---|
1516 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1517 | echo "configure:1518: checking for $ac_word" >&5 |
---|
1518 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1519 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1520 | else |
---|
1521 | if test -n "$CC"; then |
---|
1522 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1523 | else |
---|
1524 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1525 | ac_dummy="$PATH" |
---|
1526 | for ac_dir in $ac_dummy; do |
---|
1527 | test -z "$ac_dir" && ac_dir=. |
---|
1528 | if test -f $ac_dir/$ac_word; then |
---|
1529 | ac_cv_prog_CC="gcc" |
---|
1530 | break |
---|
1531 | fi |
---|
1532 | done |
---|
1533 | IFS="$ac_save_ifs" |
---|
1534 | fi |
---|
1535 | fi |
---|
1536 | CC="$ac_cv_prog_CC" |
---|
1537 | if test -n "$CC"; then |
---|
1538 | echo "$ac_t""$CC" 1>&6 |
---|
1539 | else |
---|
1540 | echo "$ac_t""no" 1>&6 |
---|
1541 | fi |
---|
1542 | |
---|
1543 | if test -z "$CC"; then |
---|
1544 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1545 | set dummy cc; ac_word=$2 |
---|
1546 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1547 | echo "configure:1548: checking for $ac_word" >&5 |
---|
1548 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1549 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1550 | else |
---|
1551 | if test -n "$CC"; then |
---|
1552 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1553 | else |
---|
1554 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1555 | ac_prog_rejected=no |
---|
1556 | ac_dummy="$PATH" |
---|
1557 | for ac_dir in $ac_dummy; do |
---|
1558 | test -z "$ac_dir" && ac_dir=. |
---|
1559 | if test -f $ac_dir/$ac_word; then |
---|
1560 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
1561 | ac_prog_rejected=yes |
---|
1562 | continue |
---|
1563 | fi |
---|
1564 | ac_cv_prog_CC="cc" |
---|
1565 | break |
---|
1566 | fi |
---|
1567 | done |
---|
1568 | IFS="$ac_save_ifs" |
---|
1569 | if test $ac_prog_rejected = yes; then |
---|
1570 | # We found a bogon in the path, so make sure we never use it. |
---|
1571 | set dummy $ac_cv_prog_CC |
---|
1572 | shift |
---|
1573 | if test $# -gt 0; then |
---|
1574 | # We chose a different compiler from the bogus one. |
---|
1575 | # However, it has the same basename, so the bogon will be chosen |
---|
1576 | # first if we set CC to just the basename; use the full file name. |
---|
1577 | shift |
---|
1578 | set dummy "$ac_dir/$ac_word" "$@" |
---|
1579 | shift |
---|
1580 | ac_cv_prog_CC="$@" |
---|
1581 | fi |
---|
1582 | fi |
---|
1583 | fi |
---|
1584 | fi |
---|
1585 | CC="$ac_cv_prog_CC" |
---|
1586 | if test -n "$CC"; then |
---|
1587 | echo "$ac_t""$CC" 1>&6 |
---|
1588 | else |
---|
1589 | echo "$ac_t""no" 1>&6 |
---|
1590 | fi |
---|
1591 | |
---|
1592 | if test -z "$CC"; then |
---|
1593 | case "`uname -s`" in |
---|
1594 | *win32* | *WIN32*) |
---|
1595 | # Extract the first word of "cl", so it can be a program name with args. |
---|
1596 | set dummy cl; ac_word=$2 |
---|
1597 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1598 | echo "configure:1599: checking for $ac_word" >&5 |
---|
1599 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
1600 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1601 | else |
---|
1602 | if test -n "$CC"; then |
---|
1603 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1604 | else |
---|
1605 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1606 | ac_dummy="$PATH" |
---|
1607 | for ac_dir in $ac_dummy; do |
---|
1608 | test -z "$ac_dir" && ac_dir=. |
---|
1609 | if test -f $ac_dir/$ac_word; then |
---|
1610 | ac_cv_prog_CC="cl" |
---|
1611 | break |
---|
1612 | fi |
---|
1613 | done |
---|
1614 | IFS="$ac_save_ifs" |
---|
1615 | fi |
---|
1616 | fi |
---|
1617 | CC="$ac_cv_prog_CC" |
---|
1618 | if test -n "$CC"; then |
---|
1619 | echo "$ac_t""$CC" 1>&6 |
---|
1620 | else |
---|
1621 | echo "$ac_t""no" 1>&6 |
---|
1622 | fi |
---|
1623 | ;; |
---|
1624 | esac |
---|
1625 | fi |
---|
1626 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1627 | fi |
---|
1628 | |
---|
1629 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1630 | echo "configure:1631: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1631 | |
---|
1632 | ac_ext=c |
---|
1633 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1634 | ac_cpp='$CPP $CPPFLAGS' |
---|
1635 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1636 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1637 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1638 | |
---|
1639 | cat > conftest.$ac_ext << EOF |
---|
1640 | |
---|
1641 | #line 1642 "configure" |
---|
1642 | #include "confdefs.h" |
---|
1643 | |
---|
1644 | main(){return(0);} |
---|
1645 | EOF |
---|
1646 | if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1647 | ac_cv_prog_cc_works=yes |
---|
1648 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1649 | if (./conftest; exit) 2>/dev/null; then |
---|
1650 | ac_cv_prog_cc_cross=no |
---|
1651 | else |
---|
1652 | ac_cv_prog_cc_cross=yes |
---|
1653 | fi |
---|
1654 | else |
---|
1655 | echo "configure: failed program was:" >&5 |
---|
1656 | cat conftest.$ac_ext >&5 |
---|
1657 | ac_cv_prog_cc_works=no |
---|
1658 | fi |
---|
1659 | rm -fr conftest* |
---|
1660 | ac_ext=c |
---|
1661 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1662 | ac_cpp='$CPP $CPPFLAGS' |
---|
1663 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1664 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1665 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1666 | |
---|
1667 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1668 | if test $ac_cv_prog_cc_works = no; then |
---|
1669 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1670 | fi |
---|
1671 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1672 | echo "configure:1673: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1673 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1674 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1675 | |
---|
1676 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1677 | echo "configure:1678: checking whether we are using GNU C" >&5 |
---|
1678 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1679 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1680 | else |
---|
1681 | cat > conftest.c <<EOF |
---|
1682 | #ifdef __GNUC__ |
---|
1683 | yes; |
---|
1684 | #endif |
---|
1685 | EOF |
---|
1686 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1687 | ac_cv_prog_gcc=yes |
---|
1688 | else |
---|
1689 | ac_cv_prog_gcc=no |
---|
1690 | fi |
---|
1691 | fi |
---|
1692 | |
---|
1693 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1694 | |
---|
1695 | if test $ac_cv_prog_gcc = yes; then |
---|
1696 | GCC=yes |
---|
1697 | else |
---|
1698 | GCC= |
---|
1699 | fi |
---|
1700 | |
---|
1701 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1702 | ac_save_CFLAGS="$CFLAGS" |
---|
1703 | CFLAGS= |
---|
1704 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1705 | echo "configure:1706: checking whether ${CC-cc} accepts -g" >&5 |
---|
1706 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1707 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1708 | else |
---|
1709 | echo 'void f(){}' > conftest.c |
---|
1710 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1711 | ac_cv_prog_cc_g=yes |
---|
1712 | else |
---|
1713 | ac_cv_prog_cc_g=no |
---|
1714 | fi |
---|
1715 | rm -f conftest* |
---|
1716 | |
---|
1717 | fi |
---|
1718 | |
---|
1719 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1720 | if test "$ac_test_CFLAGS" = set; then |
---|
1721 | CFLAGS="$ac_save_CFLAGS" |
---|
1722 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1723 | if test "$GCC" = yes; then |
---|
1724 | CFLAGS="-g -O2" |
---|
1725 | else |
---|
1726 | CFLAGS="-g" |
---|
1727 | fi |
---|
1728 | else |
---|
1729 | if test "$GCC" = yes; then |
---|
1730 | CFLAGS="-O2" |
---|
1731 | else |
---|
1732 | CFLAGS= |
---|
1733 | fi |
---|
1734 | fi |
---|
1735 | |
---|
1736 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
1737 | echo "configure:1738: checking how to run the C preprocessor" >&5 |
---|
1738 | # On Suns, sometimes $CPP names a directory. |
---|
1739 | if test -n "$CPP" && test -d "$CPP"; then |
---|
1740 | CPP= |
---|
1741 | fi |
---|
1742 | if test -z "$CPP"; then |
---|
1743 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
1744 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1745 | else |
---|
1746 | # This must be in double quotes, not single quotes, because CPP may get |
---|
1747 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
1748 | CPP="${CC-cc} -E" |
---|
1749 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
1750 | # not just through cpp. |
---|
1751 | cat > conftest.$ac_ext <<EOF |
---|
1752 | #line 1753 "configure" |
---|
1753 | #include "confdefs.h" |
---|
1754 | #include <assert.h> |
---|
1755 | Syntax Error |
---|
1756 | EOF |
---|
1757 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1758 | { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1759 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1760 | if test -z "$ac_err"; then |
---|
1761 | : |
---|
1762 | else |
---|
1763 | echo "$ac_err" >&5 |
---|
1764 | echo "configure: failed program was:" >&5 |
---|
1765 | cat conftest.$ac_ext >&5 |
---|
1766 | rm -rf conftest* |
---|
1767 | CPP="${CC-cc} -E -traditional-cpp" |
---|
1768 | cat > conftest.$ac_ext <<EOF |
---|
1769 | #line 1770 "configure" |
---|
1770 | #include "confdefs.h" |
---|
1771 | #include <assert.h> |
---|
1772 | Syntax Error |
---|
1773 | EOF |
---|
1774 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1775 | { (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1776 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1777 | if test -z "$ac_err"; then |
---|
1778 | : |
---|
1779 | else |
---|
1780 | echo "$ac_err" >&5 |
---|
1781 | echo "configure: failed program was:" >&5 |
---|
1782 | cat conftest.$ac_ext >&5 |
---|
1783 | rm -rf conftest* |
---|
1784 | CPP="${CC-cc} -nologo -E" |
---|
1785 | cat > conftest.$ac_ext <<EOF |
---|
1786 | #line 1787 "configure" |
---|
1787 | #include "confdefs.h" |
---|
1788 | #include <assert.h> |
---|
1789 | Syntax Error |
---|
1790 | EOF |
---|
1791 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1792 | { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1793 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1794 | if test -z "$ac_err"; then |
---|
1795 | : |
---|
1796 | else |
---|
1797 | echo "$ac_err" >&5 |
---|
1798 | echo "configure: failed program was:" >&5 |
---|
1799 | cat conftest.$ac_ext >&5 |
---|
1800 | rm -rf conftest* |
---|
1801 | CPP=/lib/cpp |
---|
1802 | fi |
---|
1803 | rm -f conftest* |
---|
1804 | fi |
---|
1805 | rm -f conftest* |
---|
1806 | fi |
---|
1807 | rm -f conftest* |
---|
1808 | ac_cv_prog_CPP="$CPP" |
---|
1809 | fi |
---|
1810 | CPP="$ac_cv_prog_CPP" |
---|
1811 | else |
---|
1812 | ac_cv_prog_CPP="$CPP" |
---|
1813 | fi |
---|
1814 | echo "$ac_t""$CPP" 1>&6 |
---|
1815 | |
---|
1816 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
1817 | echo "configure:1818: checking for ANSI C header files" >&5 |
---|
1818 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
1819 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1820 | else |
---|
1821 | cat > conftest.$ac_ext <<EOF |
---|
1822 | #line 1823 "configure" |
---|
1823 | #include "confdefs.h" |
---|
1824 | #include <stdlib.h> |
---|
1825 | #include <stdarg.h> |
---|
1826 | #include <string.h> |
---|
1827 | #include <float.h> |
---|
1828 | EOF |
---|
1829 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1830 | { (eval echo configure:1831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1831 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1832 | if test -z "$ac_err"; then |
---|
1833 | rm -rf conftest* |
---|
1834 | ac_cv_header_stdc=yes |
---|
1835 | else |
---|
1836 | echo "$ac_err" >&5 |
---|
1837 | echo "configure: failed program was:" >&5 |
---|
1838 | cat conftest.$ac_ext >&5 |
---|
1839 | rm -rf conftest* |
---|
1840 | ac_cv_header_stdc=no |
---|
1841 | fi |
---|
1842 | rm -f conftest* |
---|
1843 | |
---|
1844 | if test $ac_cv_header_stdc = yes; then |
---|
1845 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
1846 | cat > conftest.$ac_ext <<EOF |
---|
1847 | #line 1848 "configure" |
---|
1848 | #include "confdefs.h" |
---|
1849 | #include <string.h> |
---|
1850 | EOF |
---|
1851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1852 | egrep "memchr" >/dev/null 2>&1; then |
---|
1853 | : |
---|
1854 | else |
---|
1855 | rm -rf conftest* |
---|
1856 | ac_cv_header_stdc=no |
---|
1857 | fi |
---|
1858 | rm -f conftest* |
---|
1859 | |
---|
1860 | fi |
---|
1861 | |
---|
1862 | if test $ac_cv_header_stdc = yes; then |
---|
1863 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
1864 | cat > conftest.$ac_ext <<EOF |
---|
1865 | #line 1866 "configure" |
---|
1866 | #include "confdefs.h" |
---|
1867 | #include <stdlib.h> |
---|
1868 | EOF |
---|
1869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1870 | egrep "free" >/dev/null 2>&1; then |
---|
1871 | : |
---|
1872 | else |
---|
1873 | rm -rf conftest* |
---|
1874 | ac_cv_header_stdc=no |
---|
1875 | fi |
---|
1876 | rm -f conftest* |
---|
1877 | |
---|
1878 | fi |
---|
1879 | |
---|
1880 | if test $ac_cv_header_stdc = yes; then |
---|
1881 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
1882 | if test "$cross_compiling" = yes; then |
---|
1883 | : |
---|
1884 | else |
---|
1885 | cat > conftest.$ac_ext <<EOF |
---|
1886 | #line 1887 "configure" |
---|
1887 | #include "confdefs.h" |
---|
1888 | #include <ctype.h> |
---|
1889 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
1890 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
1891 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
1892 | int main () { int i; for (i = 0; i < 256; i++) |
---|
1893 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
1894 | exit (0); } |
---|
1895 | |
---|
1896 | EOF |
---|
1897 | if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1898 | then |
---|
1899 | : |
---|
1900 | else |
---|
1901 | echo "configure: failed program was:" >&5 |
---|
1902 | cat conftest.$ac_ext >&5 |
---|
1903 | rm -fr conftest* |
---|
1904 | ac_cv_header_stdc=no |
---|
1905 | fi |
---|
1906 | rm -fr conftest* |
---|
1907 | fi |
---|
1908 | |
---|
1909 | fi |
---|
1910 | fi |
---|
1911 | |
---|
1912 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
1913 | if test $ac_cv_header_stdc = yes; then |
---|
1914 | cat >> confdefs.h <<\EOF |
---|
1915 | #define STDC_HEADERS 1 |
---|
1916 | EOF |
---|
1917 | |
---|
1918 | fi |
---|
1919 | |
---|
1920 | if test "$program_transform_name" = s,x,x,; then |
---|
1921 | program_transform_name= |
---|
1922 | else |
---|
1923 | # Double any \ or $. echo might interpret backslashes. |
---|
1924 | cat <<\EOF_SED > conftestsed |
---|
1925 | s,\\,\\\\,g; s,\$,$$,g |
---|
1926 | EOF_SED |
---|
1927 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
1928 | rm -f conftestsed |
---|
1929 | fi |
---|
1930 | test "$program_prefix" != NONE && |
---|
1931 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
1932 | # Use a double $ so make ignores it. |
---|
1933 | test "$program_suffix" != NONE && |
---|
1934 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
1935 | |
---|
1936 | # sed with no file args requires a program. |
---|
1937 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
1938 | |
---|
1939 | # Check whether --enable-shared or --disable-shared was given. |
---|
1940 | if test "${enable_shared+set}" = set; then |
---|
1941 | enableval="$enable_shared" |
---|
1942 | p=${PACKAGE-default} |
---|
1943 | case "$enableval" in |
---|
1944 | yes) enable_shared=yes ;; |
---|
1945 | no) enable_shared=no ;; |
---|
1946 | *) |
---|
1947 | enable_shared=no |
---|
1948 | # Look at the argument we got. We use all the common list separators. |
---|
1949 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1950 | for pkg in $enableval; do |
---|
1951 | if test "X$pkg" = "X$p"; then |
---|
1952 | enable_shared=yes |
---|
1953 | fi |
---|
1954 | done |
---|
1955 | IFS="$ac_save_ifs" |
---|
1956 | ;; |
---|
1957 | esac |
---|
1958 | else |
---|
1959 | enable_shared=yes |
---|
1960 | fi |
---|
1961 | |
---|
1962 | # Check whether --enable-static or --disable-static was given. |
---|
1963 | if test "${enable_static+set}" = set; then |
---|
1964 | enableval="$enable_static" |
---|
1965 | p=${PACKAGE-default} |
---|
1966 | case "$enableval" in |
---|
1967 | yes) enable_static=yes ;; |
---|
1968 | no) enable_static=no ;; |
---|
1969 | *) |
---|
1970 | enable_static=no |
---|
1971 | # Look at the argument we got. We use all the common list separators. |
---|
1972 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1973 | for pkg in $enableval; do |
---|
1974 | if test "X$pkg" = "X$p"; then |
---|
1975 | enable_static=yes |
---|
1976 | fi |
---|
1977 | done |
---|
1978 | IFS="$ac_save_ifs" |
---|
1979 | ;; |
---|
1980 | esac |
---|
1981 | else |
---|
1982 | enable_static=yes |
---|
1983 | fi |
---|
1984 | |
---|
1985 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
1986 | if test "${enable_fast_install+set}" = set; then |
---|
1987 | enableval="$enable_fast_install" |
---|
1988 | p=${PACKAGE-default} |
---|
1989 | case "$enableval" in |
---|
1990 | yes) enable_fast_install=yes ;; |
---|
1991 | no) enable_fast_install=no ;; |
---|
1992 | *) |
---|
1993 | enable_fast_install=no |
---|
1994 | # Look at the argument we got. We use all the common list separators. |
---|
1995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1996 | for pkg in $enableval; do |
---|
1997 | if test "X$pkg" = "X$p"; then |
---|
1998 | enable_fast_install=yes |
---|
1999 | fi |
---|
2000 | done |
---|
2001 | IFS="$ac_save_ifs" |
---|
2002 | ;; |
---|
2003 | esac |
---|
2004 | else |
---|
2005 | enable_fast_install=yes |
---|
2006 | fi |
---|
2007 | |
---|
2008 | |
---|
2009 | # Make sure we can run config.sub. |
---|
2010 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
2011 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
2012 | fi |
---|
2013 | |
---|
2014 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
2015 | echo "configure:2016: checking host system type" >&5 |
---|
2016 | |
---|
2017 | host_alias=$host |
---|
2018 | case "$host_alias" in |
---|
2019 | NONE) |
---|
2020 | case $nonopt in |
---|
2021 | NONE) |
---|
2022 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
2023 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
2024 | fi ;; |
---|
2025 | *) host_alias=$nonopt ;; |
---|
2026 | esac ;; |
---|
2027 | esac |
---|
2028 | |
---|
2029 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
2030 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2031 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2032 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2033 | echo "$ac_t""$host" 1>&6 |
---|
2034 | |
---|
2035 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
2036 | echo "configure:2037: checking build system type" >&5 |
---|
2037 | |
---|
2038 | build_alias=$build |
---|
2039 | case "$build_alias" in |
---|
2040 | NONE) |
---|
2041 | case $nonopt in |
---|
2042 | NONE) build_alias=$host_alias ;; |
---|
2043 | *) build_alias=$nonopt ;; |
---|
2044 | esac ;; |
---|
2045 | esac |
---|
2046 | |
---|
2047 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
2048 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
2049 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
2050 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
2051 | echo "$ac_t""$build" 1>&6 |
---|
2052 | |
---|
2053 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2054 | set dummy ranlib; ac_word=$2 |
---|
2055 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2056 | echo "configure:2057: checking for $ac_word" >&5 |
---|
2057 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
2058 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2059 | else |
---|
2060 | if test -n "$RANLIB"; then |
---|
2061 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2062 | else |
---|
2063 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2064 | ac_dummy="$PATH" |
---|
2065 | for ac_dir in $ac_dummy; do |
---|
2066 | test -z "$ac_dir" && ac_dir=. |
---|
2067 | if test -f $ac_dir/$ac_word; then |
---|
2068 | ac_cv_prog_RANLIB="ranlib" |
---|
2069 | break |
---|
2070 | fi |
---|
2071 | done |
---|
2072 | IFS="$ac_save_ifs" |
---|
2073 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
2074 | fi |
---|
2075 | fi |
---|
2076 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2077 | if test -n "$RANLIB"; then |
---|
2078 | echo "$ac_t""$RANLIB" 1>&6 |
---|
2079 | else |
---|
2080 | echo "$ac_t""no" 1>&6 |
---|
2081 | fi |
---|
2082 | |
---|
2083 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
2084 | if test "${with_gnu_ld+set}" = set; then |
---|
2085 | withval="$with_gnu_ld" |
---|
2086 | test "$withval" = no || with_gnu_ld=yes |
---|
2087 | else |
---|
2088 | with_gnu_ld=no |
---|
2089 | fi |
---|
2090 | |
---|
2091 | ac_prog=ld |
---|
2092 | if test "$ac_cv_prog_gcc" = yes; then |
---|
2093 | # Check if gcc -print-prog-name=ld gives a path. |
---|
2094 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
---|
2095 | echo "configure:2096: checking for ld used by GCC" >&5 |
---|
2096 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
---|
2097 | case "$ac_prog" in |
---|
2098 | # Accept absolute paths. |
---|
2099 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
2100 | re_direlt='/[^/][^/]*/\.\./' |
---|
2101 | # Canonicalize the path of ld |
---|
2102 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
2103 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
2104 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
2105 | done |
---|
2106 | test -z "$LD" && LD="$ac_prog" |
---|
2107 | ;; |
---|
2108 | "") |
---|
2109 | # If it fails, then pretend we aren't using GCC. |
---|
2110 | ac_prog=ld |
---|
2111 | ;; |
---|
2112 | *) |
---|
2113 | # If it is relative, then search for the first ld in PATH. |
---|
2114 | with_gnu_ld=unknown |
---|
2115 | ;; |
---|
2116 | esac |
---|
2117 | elif test "$with_gnu_ld" = yes; then |
---|
2118 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
---|
2119 | echo "configure:2120: checking for GNU ld" >&5 |
---|
2120 | else |
---|
2121 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
---|
2122 | echo "configure:2123: checking for non-GNU ld" >&5 |
---|
2123 | fi |
---|
2124 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
---|
2125 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2126 | else |
---|
2127 | if test -z "$LD"; then |
---|
2128 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
2129 | for ac_dir in $PATH; do |
---|
2130 | test -z "$ac_dir" && ac_dir=. |
---|
2131 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
2132 | ac_cv_path_LD="$ac_dir/$ac_prog" |
---|
2133 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
2134 | # but apparently some GNU ld's only accept -v. |
---|
2135 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
2136 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
2137 | test "$with_gnu_ld" != no && break |
---|
2138 | else |
---|
2139 | test "$with_gnu_ld" != yes && break |
---|
2140 | fi |
---|
2141 | fi |
---|
2142 | done |
---|
2143 | IFS="$ac_save_ifs" |
---|
2144 | else |
---|
2145 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
2146 | fi |
---|
2147 | fi |
---|
2148 | |
---|
2149 | LD="$ac_cv_path_LD" |
---|
2150 | if test -n "$LD"; then |
---|
2151 | echo "$ac_t""$LD" 1>&6 |
---|
2152 | else |
---|
2153 | echo "$ac_t""no" 1>&6 |
---|
2154 | fi |
---|
2155 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
---|
2156 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
---|
2157 | echo "configure:2158: checking if the linker ($LD) is GNU ld" >&5 |
---|
2158 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
---|
2159 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2160 | else |
---|
2161 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
2162 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
2163 | ac_cv_prog_gnu_ld=yes |
---|
2164 | else |
---|
2165 | ac_cv_prog_gnu_ld=no |
---|
2166 | fi |
---|
2167 | fi |
---|
2168 | |
---|
2169 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
---|
2170 | |
---|
2171 | |
---|
2172 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
---|
2173 | echo "configure:2174: checking for BSD-compatible nm" >&5 |
---|
2174 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
---|
2175 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2176 | else |
---|
2177 | if test -n "$NM"; then |
---|
2178 | # Let the user override the test. |
---|
2179 | ac_cv_path_NM="$NM" |
---|
2180 | else |
---|
2181 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
2182 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
2183 | test -z "$ac_dir" && ac_dir=. |
---|
2184 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
---|
2185 | # Check to see if the nm accepts a BSD-compat flag. |
---|
2186 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
2187 | # nm: unknown option "B" ignored |
---|
2188 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
2189 | ac_cv_path_NM="$ac_dir/nm -B" |
---|
2190 | break |
---|
2191 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
2192 | ac_cv_path_NM="$ac_dir/nm -p" |
---|
2193 | break |
---|
2194 | else |
---|
2195 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
---|
2196 | continue # so that we can try to find one that supports BSD flags |
---|
2197 | fi |
---|
2198 | fi |
---|
2199 | done |
---|
2200 | IFS="$ac_save_ifs" |
---|
2201 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
---|
2202 | fi |
---|
2203 | fi |
---|
2204 | |
---|
2205 | NM="$ac_cv_path_NM" |
---|
2206 | echo "$ac_t""$NM" 1>&6 |
---|
2207 | |
---|
2208 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
2209 | echo "configure:2210: checking whether ln -s works" >&5 |
---|
2210 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
2211 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2212 | else |
---|
2213 | rm -f conftestdata |
---|
2214 | if ln -s X conftestdata 2>/dev/null |
---|
2215 | then |
---|
2216 | rm -f conftestdata |
---|
2217 | ac_cv_prog_LN_S="ln -s" |
---|
2218 | else |
---|
2219 | ac_cv_prog_LN_S=ln |
---|
2220 | fi |
---|
2221 | fi |
---|
2222 | LN_S="$ac_cv_prog_LN_S" |
---|
2223 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
2224 | echo "$ac_t""yes" 1>&6 |
---|
2225 | else |
---|
2226 | echo "$ac_t""no" 1>&6 |
---|
2227 | fi |
---|
2228 | |
---|
2229 | |
---|
2230 | case "$target" in |
---|
2231 | NONE) lt_target="$host" ;; |
---|
2232 | *) lt_target="$target" ;; |
---|
2233 | esac |
---|
2234 | |
---|
2235 | # Check for any special flags to pass to ltconfig. |
---|
2236 | libtool_flags="--cache-file=$cache_file" |
---|
2237 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
---|
2238 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
---|
2239 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
---|
2240 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
---|
2241 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
---|
2242 | |
---|
2243 | |
---|
2244 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
2245 | if test "${enable_libtool_lock+set}" = set; then |
---|
2246 | enableval="$enable_libtool_lock" |
---|
2247 | : |
---|
2248 | fi |
---|
2249 | |
---|
2250 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
---|
2251 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
---|
2252 | |
---|
2253 | # Some flags need to be propagated to the compiler or linker for good |
---|
2254 | # libtool support. |
---|
2255 | case "$lt_target" in |
---|
2256 | *-*-irix6*) |
---|
2257 | # Find out which ABI we are using. |
---|
2258 | echo '#line 2259 "configure"' > conftest.$ac_ext |
---|
2259 | if { (eval echo configure:2260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2260 | case "`/usr/bin/file conftest.o`" in |
---|
2261 | *32-bit*) |
---|
2262 | LD="${LD-ld} -32" |
---|
2263 | ;; |
---|
2264 | *N32*) |
---|
2265 | LD="${LD-ld} -n32" |
---|
2266 | ;; |
---|
2267 | *64-bit*) |
---|
2268 | LD="${LD-ld} -64" |
---|
2269 | ;; |
---|
2270 | esac |
---|
2271 | fi |
---|
2272 | rm -rf conftest* |
---|
2273 | ;; |
---|
2274 | |
---|
2275 | *-*-sco3.2v5*) |
---|
2276 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
2277 | SAVE_CFLAGS="$CFLAGS" |
---|
2278 | CFLAGS="$CFLAGS -belf" |
---|
2279 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
---|
2280 | echo "configure:2281: checking whether the C compiler needs -belf" >&5 |
---|
2281 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
---|
2282 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2283 | else |
---|
2284 | cat > conftest.$ac_ext <<EOF |
---|
2285 | #line 2286 "configure" |
---|
2286 | #include "confdefs.h" |
---|
2287 | |
---|
2288 | int main() { |
---|
2289 | |
---|
2290 | ; return 0; } |
---|
2291 | EOF |
---|
2292 | if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2293 | rm -rf conftest* |
---|
2294 | lt_cv_cc_needs_belf=yes |
---|
2295 | else |
---|
2296 | echo "configure: failed program was:" >&5 |
---|
2297 | cat conftest.$ac_ext >&5 |
---|
2298 | rm -rf conftest* |
---|
2299 | lt_cv_cc_needs_belf=no |
---|
2300 | fi |
---|
2301 | rm -f conftest* |
---|
2302 | fi |
---|
2303 | |
---|
2304 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
---|
2305 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
2306 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
2307 | CFLAGS="$SAVE_CFLAGS" |
---|
2308 | fi |
---|
2309 | ;; |
---|
2310 | |
---|
2311 | |
---|
2312 | esac |
---|
2313 | |
---|
2314 | |
---|
2315 | # Save cache, so that ltconfig can load it |
---|
2316 | cat > confcache <<\EOF |
---|
2317 | # This file is a shell script that caches the results of configure |
---|
2318 | # tests run on this system so they can be shared between configure |
---|
2319 | # scripts and configure runs. It is not useful on other systems. |
---|
2320 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
2321 | # |
---|
2322 | # By default, configure uses ./config.cache as the cache file, |
---|
2323 | # creating it if it does not exist already. You can give configure |
---|
2324 | # the --cache-file=FILE option to use a different cache file; that is |
---|
2325 | # what configure does when it calls configure scripts in |
---|
2326 | # subdirectories, so they share the cache. |
---|
2327 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
2328 | # config.status only pays attention to the cache file if you give it the |
---|
2329 | # --recheck option to rerun configure. |
---|
2330 | # |
---|
2331 | EOF |
---|
2332 | # The following way of writing the cache mishandles newlines in values, |
---|
2333 | # but we know of no workaround that is simple, portable, and efficient. |
---|
2334 | # So, don't put newlines in cache variables' values. |
---|
2335 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
2336 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
2337 | (set) 2>&1 | |
---|
2338 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
2339 | *ac_space=\ *) |
---|
2340 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
2341 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
2342 | sed -n \ |
---|
2343 | -e "s/'/'\\\\''/g" \ |
---|
2344 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
2345 | ;; |
---|
2346 | *) |
---|
2347 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
2348 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
2349 | ;; |
---|
2350 | esac >> confcache |
---|
2351 | if cmp -s $cache_file confcache; then |
---|
2352 | : |
---|
2353 | else |
---|
2354 | if test -w $cache_file; then |
---|
2355 | echo "updating cache $cache_file" |
---|
2356 | cat confcache > $cache_file |
---|
2357 | else |
---|
2358 | echo "not updating unwritable cache $cache_file" |
---|
2359 | fi |
---|
2360 | fi |
---|
2361 | rm -f confcache |
---|
2362 | |
---|
2363 | |
---|
2364 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
---|
2365 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
---|
2366 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
---|
2367 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
---|
2368 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
---|
2369 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
---|
2370 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
---|
2371 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
---|
2372 | |
---|
2373 | # Reload cache, that may have been modified by ltconfig |
---|
2374 | if test -r "$cache_file"; then |
---|
2375 | echo "loading cache $cache_file" |
---|
2376 | . $cache_file |
---|
2377 | else |
---|
2378 | echo "creating cache $cache_file" |
---|
2379 | > $cache_file |
---|
2380 | fi |
---|
2381 | |
---|
2382 | |
---|
2383 | # This can be used to rebuild libtool when needed |
---|
2384 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
---|
2385 | |
---|
2386 | # Always use our own libtool. |
---|
2387 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
2388 | |
---|
2389 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
2390 | # clobbered by the next message. |
---|
2391 | exec 5>>./config.log |
---|
2392 | |
---|
2393 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
2394 | for ac_prog in flex lex |
---|
2395 | do |
---|
2396 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2397 | set dummy $ac_prog; ac_word=$2 |
---|
2398 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2399 | echo "configure:2400: checking for $ac_word" >&5 |
---|
2400 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
2401 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2402 | else |
---|
2403 | if test -n "$LEX"; then |
---|
2404 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
2405 | else |
---|
2406 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2407 | ac_dummy="$PATH" |
---|
2408 | for ac_dir in $ac_dummy; do |
---|
2409 | test -z "$ac_dir" && ac_dir=. |
---|
2410 | if test -f $ac_dir/$ac_word; then |
---|
2411 | ac_cv_prog_LEX="$ac_prog" |
---|
2412 | break |
---|
2413 | fi |
---|
2414 | done |
---|
2415 | IFS="$ac_save_ifs" |
---|
2416 | fi |
---|
2417 | fi |
---|
2418 | LEX="$ac_cv_prog_LEX" |
---|
2419 | if test -n "$LEX"; then |
---|
2420 | echo "$ac_t""$LEX" 1>&6 |
---|
2421 | else |
---|
2422 | echo "$ac_t""no" 1>&6 |
---|
2423 | fi |
---|
2424 | |
---|
2425 | test -n "$LEX" && break |
---|
2426 | done |
---|
2427 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
---|
2428 | |
---|
2429 | # Extract the first word of "flex", so it can be a program name with args. |
---|
2430 | set dummy flex; ac_word=$2 |
---|
2431 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2432 | echo "configure:2433: checking for $ac_word" >&5 |
---|
2433 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
2434 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2435 | else |
---|
2436 | if test -n "$LEX"; then |
---|
2437 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
2438 | else |
---|
2439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2440 | ac_dummy="$PATH" |
---|
2441 | for ac_dir in $ac_dummy; do |
---|
2442 | test -z "$ac_dir" && ac_dir=. |
---|
2443 | if test -f $ac_dir/$ac_word; then |
---|
2444 | ac_cv_prog_LEX="flex" |
---|
2445 | break |
---|
2446 | fi |
---|
2447 | done |
---|
2448 | IFS="$ac_save_ifs" |
---|
2449 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
---|
2450 | fi |
---|
2451 | fi |
---|
2452 | LEX="$ac_cv_prog_LEX" |
---|
2453 | if test -n "$LEX"; then |
---|
2454 | echo "$ac_t""$LEX" 1>&6 |
---|
2455 | else |
---|
2456 | echo "$ac_t""no" 1>&6 |
---|
2457 | fi |
---|
2458 | |
---|
2459 | if test -z "$LEXLIB" |
---|
2460 | then |
---|
2461 | case "$LEX" in |
---|
2462 | flex*) ac_lib=fl ;; |
---|
2463 | *) ac_lib=l ;; |
---|
2464 | esac |
---|
2465 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
---|
2466 | echo "configure:2467: checking for yywrap in -l$ac_lib" >&5 |
---|
2467 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
---|
2468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2469 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2470 | else |
---|
2471 | ac_save_LIBS="$LIBS" |
---|
2472 | LIBS="-l$ac_lib $LIBS" |
---|
2473 | cat > conftest.$ac_ext <<EOF |
---|
2474 | #line 2475 "configure" |
---|
2475 | #include "confdefs.h" |
---|
2476 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2477 | /* We use char because int might match the return type of a gcc2 |
---|
2478 | builtin and then its argument prototype would still apply. */ |
---|
2479 | char yywrap(); |
---|
2480 | |
---|
2481 | int main() { |
---|
2482 | yywrap() |
---|
2483 | ; return 0; } |
---|
2484 | EOF |
---|
2485 | if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2486 | rm -rf conftest* |
---|
2487 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2488 | else |
---|
2489 | echo "configure: failed program was:" >&5 |
---|
2490 | cat conftest.$ac_ext >&5 |
---|
2491 | rm -rf conftest* |
---|
2492 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2493 | fi |
---|
2494 | rm -f conftest* |
---|
2495 | LIBS="$ac_save_LIBS" |
---|
2496 | |
---|
2497 | fi |
---|
2498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2499 | echo "$ac_t""yes" 1>&6 |
---|
2500 | LEXLIB="-l$ac_lib" |
---|
2501 | else |
---|
2502 | echo "$ac_t""no" 1>&6 |
---|
2503 | fi |
---|
2504 | |
---|
2505 | fi |
---|
2506 | |
---|
2507 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 |
---|
2508 | echo "configure:2509: checking lex output file root" >&5 |
---|
2509 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
---|
2510 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2511 | else |
---|
2512 | # The minimal lex program is just a single line: %%. But some broken lexes |
---|
2513 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
---|
2514 | echo '%% |
---|
2515 | %%' | $LEX |
---|
2516 | if test -f lex.yy.c; then |
---|
2517 | ac_cv_prog_lex_root=lex.yy |
---|
2518 | elif test -f lexyy.c; then |
---|
2519 | ac_cv_prog_lex_root=lexyy |
---|
2520 | else |
---|
2521 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } |
---|
2522 | fi |
---|
2523 | fi |
---|
2524 | |
---|
2525 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 |
---|
2526 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
2527 | |
---|
2528 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 |
---|
2529 | echo "configure:2530: checking whether yytext is a pointer" >&5 |
---|
2530 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
---|
2531 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2532 | else |
---|
2533 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
2534 | # default is implementation-dependent. Figure out which it is, since |
---|
2535 | # not all implementations provide the %pointer and %array declarations. |
---|
2536 | ac_cv_prog_lex_yytext_pointer=no |
---|
2537 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
---|
2538 | ac_save_LIBS="$LIBS" |
---|
2539 | LIBS="$LIBS $LEXLIB" |
---|
2540 | cat > conftest.$ac_ext <<EOF |
---|
2541 | #line 2542 "configure" |
---|
2542 | #include "confdefs.h" |
---|
2543 | `cat $LEX_OUTPUT_ROOT.c` |
---|
2544 | int main() { |
---|
2545 | |
---|
2546 | ; return 0; } |
---|
2547 | EOF |
---|
2548 | if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2549 | rm -rf conftest* |
---|
2550 | ac_cv_prog_lex_yytext_pointer=yes |
---|
2551 | else |
---|
2552 | echo "configure: failed program was:" >&5 |
---|
2553 | cat conftest.$ac_ext >&5 |
---|
2554 | fi |
---|
2555 | rm -f conftest* |
---|
2556 | LIBS="$ac_save_LIBS" |
---|
2557 | rm -f "${LEX_OUTPUT_ROOT}.c" |
---|
2558 | |
---|
2559 | fi |
---|
2560 | |
---|
2561 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 |
---|
2562 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
2563 | cat >> confdefs.h <<\EOF |
---|
2564 | #define YYTEXT_POINTER 1 |
---|
2565 | EOF |
---|
2566 | |
---|
2567 | fi |
---|
2568 | |
---|
2569 | for ac_prog in 'bison -y' byacc |
---|
2570 | do |
---|
2571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2572 | set dummy $ac_prog; ac_word=$2 |
---|
2573 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2574 | echo "configure:2575: checking for $ac_word" >&5 |
---|
2575 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
---|
2576 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2577 | else |
---|
2578 | if test -n "$YACC"; then |
---|
2579 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
2580 | else |
---|
2581 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2582 | ac_dummy="$PATH" |
---|
2583 | for ac_dir in $ac_dummy; do |
---|
2584 | test -z "$ac_dir" && ac_dir=. |
---|
2585 | if test -f $ac_dir/$ac_word; then |
---|
2586 | ac_cv_prog_YACC="$ac_prog" |
---|
2587 | break |
---|
2588 | fi |
---|
2589 | done |
---|
2590 | IFS="$ac_save_ifs" |
---|
2591 | fi |
---|
2592 | fi |
---|
2593 | YACC="$ac_cv_prog_YACC" |
---|
2594 | if test -n "$YACC"; then |
---|
2595 | echo "$ac_t""$YACC" 1>&6 |
---|
2596 | else |
---|
2597 | echo "$ac_t""no" 1>&6 |
---|
2598 | fi |
---|
2599 | |
---|
2600 | test -n "$YACC" && break |
---|
2601 | done |
---|
2602 | test -n "$YACC" || YACC="yacc" |
---|
2603 | |
---|
2604 | for ac_prog in "xrdb" |
---|
2605 | do |
---|
2606 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2607 | set dummy $ac_prog; ac_word=$2 |
---|
2608 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2609 | echo "configure:2610: checking for $ac_word" >&5 |
---|
2610 | if eval "test \"`echo '$''{'ac_cv_path_PATH_TO_XRDB'+set}'`\" = set"; then |
---|
2611 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2612 | else |
---|
2613 | case "$PATH_TO_XRDB" in |
---|
2614 | /*) |
---|
2615 | ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a path. |
---|
2616 | ;; |
---|
2617 | ?:/*) |
---|
2618 | ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a dos path. |
---|
2619 | ;; |
---|
2620 | *) |
---|
2621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2622 | ac_dummy="$PATH" |
---|
2623 | for ac_dir in $ac_dummy; do |
---|
2624 | test -z "$ac_dir" && ac_dir=. |
---|
2625 | if test -f $ac_dir/$ac_word; then |
---|
2626 | ac_cv_path_PATH_TO_XRDB="$ac_dir/$ac_word" |
---|
2627 | break |
---|
2628 | fi |
---|
2629 | done |
---|
2630 | IFS="$ac_save_ifs" |
---|
2631 | ;; |
---|
2632 | esac |
---|
2633 | fi |
---|
2634 | PATH_TO_XRDB="$ac_cv_path_PATH_TO_XRDB" |
---|
2635 | if test -n "$PATH_TO_XRDB"; then |
---|
2636 | echo "$ac_t""$PATH_TO_XRDB" 1>&6 |
---|
2637 | else |
---|
2638 | echo "$ac_t""no" 1>&6 |
---|
2639 | fi |
---|
2640 | |
---|
2641 | test -n "$PATH_TO_XRDB" && break |
---|
2642 | done |
---|
2643 | |
---|
2644 | |
---|
2645 | |
---|
2646 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
---|
2647 | if test "${enable_compile_warnings+set}" = set; then |
---|
2648 | enableval="$enable_compile_warnings" |
---|
2649 | : |
---|
2650 | else |
---|
2651 | enable_compile_warnings=minimum |
---|
2652 | fi |
---|
2653 | |
---|
2654 | |
---|
2655 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
---|
2656 | echo "configure:2657: checking what warning flags to pass to the C compiler" >&5 |
---|
2657 | warnCFLAGS= |
---|
2658 | if test "x$GCC" != xyes; then |
---|
2659 | enable_compile_warnings=no |
---|
2660 | fi |
---|
2661 | |
---|
2662 | if test "x$enable_compile_warnings" != "xno"; then |
---|
2663 | if test "x$GCC" = "xyes"; then |
---|
2664 | case " $CFLAGS " in |
---|
2665 | *\ \ -Wall\ \ *) ;; |
---|
2666 | *) warnCFLAGS="-Wall -Wunused" ;; |
---|
2667 | esac |
---|
2668 | |
---|
2669 | ## -W is not all that useful. And it cannot be controlled |
---|
2670 | ## with individual -Wno-xxx flags, unlike -Wall |
---|
2671 | if test "x$enable_compile_warnings" = "xyes"; then |
---|
2672 | warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations" |
---|
2673 | fi |
---|
2674 | fi |
---|
2675 | fi |
---|
2676 | echo "$ac_t""$warnCFLAGS" 1>&6 |
---|
2677 | |
---|
2678 | # Check whether --enable-iso-c or --disable-iso-c was given. |
---|
2679 | if test "${enable_iso_c+set}" = set; then |
---|
2680 | enableval="$enable_iso_c" |
---|
2681 | : |
---|
2682 | else |
---|
2683 | enable_iso_c=no |
---|
2684 | fi |
---|
2685 | |
---|
2686 | |
---|
2687 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
---|
2688 | echo "configure:2689: checking what language compliance flags to pass to the C compiler" >&5 |
---|
2689 | complCFLAGS= |
---|
2690 | if test "x$enable_iso_c" != "xno"; then |
---|
2691 | if test "x$GCC" = "xyes"; then |
---|
2692 | case " $CFLAGS " in |
---|
2693 | *\ \ -ansi\ \ *) ;; |
---|
2694 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
---|
2695 | esac |
---|
2696 | |
---|
2697 | case " $CFLAGS " in |
---|
2698 | *\ \ -pedantic\ \ *) ;; |
---|
2699 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
---|
2700 | esac |
---|
2701 | fi |
---|
2702 | fi |
---|
2703 | echo "$ac_t""$complCFLAGS" 1>&6 |
---|
2704 | if test "x$cflags_set" != "xyes"; then |
---|
2705 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
---|
2706 | cflags_set=yes |
---|
2707 | |
---|
2708 | fi |
---|
2709 | |
---|
2710 | |
---|
2711 | |
---|
2712 | PTHREAD_LIB="" |
---|
2713 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
---|
2714 | echo "configure:2715: checking for pthread_create in -lpthread" >&5 |
---|
2715 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
2716 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2717 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2718 | else |
---|
2719 | ac_save_LIBS="$LIBS" |
---|
2720 | LIBS="-lpthread $LIBS" |
---|
2721 | cat > conftest.$ac_ext <<EOF |
---|
2722 | #line 2723 "configure" |
---|
2723 | #include "confdefs.h" |
---|
2724 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2725 | /* We use char because int might match the return type of a gcc2 |
---|
2726 | builtin and then its argument prototype would still apply. */ |
---|
2727 | char pthread_create(); |
---|
2728 | |
---|
2729 | int main() { |
---|
2730 | pthread_create() |
---|
2731 | ; return 0; } |
---|
2732 | EOF |
---|
2733 | if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2734 | rm -rf conftest* |
---|
2735 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2736 | else |
---|
2737 | echo "configure: failed program was:" >&5 |
---|
2738 | cat conftest.$ac_ext >&5 |
---|
2739 | rm -rf conftest* |
---|
2740 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2741 | fi |
---|
2742 | rm -f conftest* |
---|
2743 | LIBS="$ac_save_LIBS" |
---|
2744 | |
---|
2745 | fi |
---|
2746 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2747 | echo "$ac_t""yes" 1>&6 |
---|
2748 | PTHREAD_LIB="-lpthread" |
---|
2749 | else |
---|
2750 | echo "$ac_t""no" 1>&6 |
---|
2751 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
---|
2752 | echo "configure:2753: checking for pthread_create in -lpthreads" >&5 |
---|
2753 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
2754 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2755 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2756 | else |
---|
2757 | ac_save_LIBS="$LIBS" |
---|
2758 | LIBS="-lpthreads $LIBS" |
---|
2759 | cat > conftest.$ac_ext <<EOF |
---|
2760 | #line 2761 "configure" |
---|
2761 | #include "confdefs.h" |
---|
2762 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2763 | /* We use char because int might match the return type of a gcc2 |
---|
2764 | builtin and then its argument prototype would still apply. */ |
---|
2765 | char pthread_create(); |
---|
2766 | |
---|
2767 | int main() { |
---|
2768 | pthread_create() |
---|
2769 | ; return 0; } |
---|
2770 | EOF |
---|
2771 | if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2772 | rm -rf conftest* |
---|
2773 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2774 | else |
---|
2775 | echo "configure: failed program was:" >&5 |
---|
2776 | cat conftest.$ac_ext >&5 |
---|
2777 | rm -rf conftest* |
---|
2778 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2779 | fi |
---|
2780 | rm -f conftest* |
---|
2781 | LIBS="$ac_save_LIBS" |
---|
2782 | |
---|
2783 | fi |
---|
2784 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2785 | echo "$ac_t""yes" 1>&6 |
---|
2786 | PTHREAD_LIB="-lpthreads" |
---|
2787 | else |
---|
2788 | echo "$ac_t""no" 1>&6 |
---|
2789 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
---|
2790 | echo "configure:2791: checking for pthread_create in -lc_r" >&5 |
---|
2791 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
---|
2792 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2793 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2794 | else |
---|
2795 | ac_save_LIBS="$LIBS" |
---|
2796 | LIBS="-lc_r $LIBS" |
---|
2797 | cat > conftest.$ac_ext <<EOF |
---|
2798 | #line 2799 "configure" |
---|
2799 | #include "confdefs.h" |
---|
2800 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2801 | /* We use char because int might match the return type of a gcc2 |
---|
2802 | builtin and then its argument prototype would still apply. */ |
---|
2803 | char pthread_create(); |
---|
2804 | |
---|
2805 | int main() { |
---|
2806 | pthread_create() |
---|
2807 | ; return 0; } |
---|
2808 | EOF |
---|
2809 | if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2810 | rm -rf conftest* |
---|
2811 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2812 | else |
---|
2813 | echo "configure: failed program was:" >&5 |
---|
2814 | cat conftest.$ac_ext >&5 |
---|
2815 | rm -rf conftest* |
---|
2816 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2817 | fi |
---|
2818 | rm -f conftest* |
---|
2819 | LIBS="$ac_save_LIBS" |
---|
2820 | |
---|
2821 | fi |
---|
2822 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2823 | echo "$ac_t""yes" 1>&6 |
---|
2824 | PTHREAD_LIB="-lc_r" |
---|
2825 | else |
---|
2826 | echo "$ac_t""no" 1>&6 |
---|
2827 | echo $ac_n "checking for pthread_create""... $ac_c" 1>&6 |
---|
2828 | echo "configure:2829: checking for pthread_create" >&5 |
---|
2829 | if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then |
---|
2830 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2831 | else |
---|
2832 | cat > conftest.$ac_ext <<EOF |
---|
2833 | #line 2834 "configure" |
---|
2834 | #include "confdefs.h" |
---|
2835 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2836 | which can conflict with char pthread_create(); below. */ |
---|
2837 | #include <assert.h> |
---|
2838 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2839 | /* We use char because int might match the return type of a gcc2 |
---|
2840 | builtin and then its argument prototype would still apply. */ |
---|
2841 | char pthread_create(); |
---|
2842 | |
---|
2843 | int main() { |
---|
2844 | |
---|
2845 | /* The GNU C library defines this for functions which it implements |
---|
2846 | to always fail with ENOSYS. Some functions are actually named |
---|
2847 | something starting with __ and the normal name is an alias. */ |
---|
2848 | #if defined (__stub_pthread_create) || defined (__stub___pthread_create) |
---|
2849 | choke me |
---|
2850 | #else |
---|
2851 | pthread_create(); |
---|
2852 | #endif |
---|
2853 | |
---|
2854 | ; return 0; } |
---|
2855 | EOF |
---|
2856 | if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2857 | rm -rf conftest* |
---|
2858 | eval "ac_cv_func_pthread_create=yes" |
---|
2859 | else |
---|
2860 | echo "configure: failed program was:" >&5 |
---|
2861 | cat conftest.$ac_ext >&5 |
---|
2862 | rm -rf conftest* |
---|
2863 | eval "ac_cv_func_pthread_create=no" |
---|
2864 | fi |
---|
2865 | rm -f conftest* |
---|
2866 | fi |
---|
2867 | |
---|
2868 | if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then |
---|
2869 | echo "$ac_t""yes" 1>&6 |
---|
2870 | : |
---|
2871 | else |
---|
2872 | echo "$ac_t""no" 1>&6 |
---|
2873 | fi |
---|
2874 | |
---|
2875 | |
---|
2876 | fi |
---|
2877 | |
---|
2878 | |
---|
2879 | fi |
---|
2880 | |
---|
2881 | |
---|
2882 | fi |
---|
2883 | |
---|
2884 | |
---|
2885 | |
---|
2886 | |
---|
2887 | |
---|
2888 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
---|
2889 | if test "${with_gtk_prefix+set}" = set; then |
---|
2890 | withval="$with_gtk_prefix" |
---|
2891 | gtk_config_prefix="$withval" |
---|
2892 | else |
---|
2893 | gtk_config_prefix="" |
---|
2894 | fi |
---|
2895 | |
---|
2896 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
---|
2897 | if test "${with_gtk_exec_prefix+set}" = set; then |
---|
2898 | withval="$with_gtk_exec_prefix" |
---|
2899 | gtk_config_exec_prefix="$withval" |
---|
2900 | else |
---|
2901 | gtk_config_exec_prefix="" |
---|
2902 | fi |
---|
2903 | |
---|
2904 | # Check whether --enable-gtktest or --disable-gtktest was given. |
---|
2905 | if test "${enable_gtktest+set}" = set; then |
---|
2906 | enableval="$enable_gtktest" |
---|
2907 | : |
---|
2908 | else |
---|
2909 | enable_gtktest=yes |
---|
2910 | fi |
---|
2911 | |
---|
2912 | |
---|
2913 | for module in . |
---|
2914 | do |
---|
2915 | case "$module" in |
---|
2916 | gthread) |
---|
2917 | gtk_config_args="$gtk_config_args gthread" |
---|
2918 | ;; |
---|
2919 | esac |
---|
2920 | done |
---|
2921 | |
---|
2922 | if test x$gtk_config_exec_prefix != x ; then |
---|
2923 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
---|
2924 | if test x${GTK_CONFIG+set} != xset ; then |
---|
2925 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
---|
2926 | fi |
---|
2927 | fi |
---|
2928 | if test x$gtk_config_prefix != x ; then |
---|
2929 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
---|
2930 | if test x${GTK_CONFIG+set} != xset ; then |
---|
2931 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
---|
2932 | fi |
---|
2933 | fi |
---|
2934 | |
---|
2935 | # Extract the first word of "gtk-config", so it can be a program name with args. |
---|
2936 | set dummy gtk-config; ac_word=$2 |
---|
2937 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
2938 | echo "configure:2939: checking for $ac_word" >&5 |
---|
2939 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
---|
2940 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2941 | else |
---|
2942 | case "$GTK_CONFIG" in |
---|
2943 | /*) |
---|
2944 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
---|
2945 | ;; |
---|
2946 | ?:/*) |
---|
2947 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
---|
2948 | ;; |
---|
2949 | *) |
---|
2950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
2951 | ac_dummy="$PATH" |
---|
2952 | for ac_dir in $ac_dummy; do |
---|
2953 | test -z "$ac_dir" && ac_dir=. |
---|
2954 | if test -f $ac_dir/$ac_word; then |
---|
2955 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
---|
2956 | break |
---|
2957 | fi |
---|
2958 | done |
---|
2959 | IFS="$ac_save_ifs" |
---|
2960 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
---|
2961 | ;; |
---|
2962 | esac |
---|
2963 | fi |
---|
2964 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
---|
2965 | if test -n "$GTK_CONFIG"; then |
---|
2966 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
---|
2967 | else |
---|
2968 | echo "$ac_t""no" 1>&6 |
---|
2969 | fi |
---|
2970 | |
---|
2971 | min_gtk_version=1.2.0 |
---|
2972 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
---|
2973 | echo "configure:2974: checking for GTK - version >= $min_gtk_version" >&5 |
---|
2974 | no_gtk="" |
---|
2975 | if test "$GTK_CONFIG" = "no" ; then |
---|
2976 | no_gtk=yes |
---|
2977 | else |
---|
2978 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
---|
2979 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
---|
2980 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2981 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
2982 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2983 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
2984 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
2985 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
2986 | if test "x$enable_gtktest" = "xyes" ; then |
---|
2987 | ac_save_CFLAGS="$CFLAGS" |
---|
2988 | ac_save_LIBS="$LIBS" |
---|
2989 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
2990 | LIBS="$GTK_LIBS $LIBS" |
---|
2991 | rm -f conf.gtktest |
---|
2992 | if test "$cross_compiling" = yes; then |
---|
2993 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
2994 | else |
---|
2995 | cat > conftest.$ac_ext <<EOF |
---|
2996 | #line 2997 "configure" |
---|
2997 | #include "confdefs.h" |
---|
2998 | |
---|
2999 | #include <gtk/gtk.h> |
---|
3000 | #include <stdio.h> |
---|
3001 | #include <stdlib.h> |
---|
3002 | |
---|
3003 | int |
---|
3004 | main () |
---|
3005 | { |
---|
3006 | int major, minor, micro; |
---|
3007 | char *tmp_version; |
---|
3008 | |
---|
3009 | system ("touch conf.gtktest"); |
---|
3010 | |
---|
3011 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
3012 | tmp_version = g_strdup("$min_gtk_version"); |
---|
3013 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
3014 | printf("%s, bad version string\n", "$min_gtk_version"); |
---|
3015 | exit(1); |
---|
3016 | } |
---|
3017 | |
---|
3018 | if ((gtk_major_version != $gtk_config_major_version) || |
---|
3019 | (gtk_minor_version != $gtk_config_minor_version) || |
---|
3020 | (gtk_micro_version != $gtk_config_micro_version)) |
---|
3021 | { |
---|
3022 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
---|
3023 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
---|
3024 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3025 | printf ("*** was found! If gtk-config was correct, then it is best\n"); |
---|
3026 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
---|
3027 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
3028 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
3029 | printf("*** required on your system.\n"); |
---|
3030 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
---|
3031 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
---|
3032 | printf("*** before re-running configure\n"); |
---|
3033 | } |
---|
3034 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
---|
3035 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
---|
3036 | (gtk_minor_version != GTK_MINOR_VERSION) || |
---|
3037 | (gtk_micro_version != GTK_MICRO_VERSION)) |
---|
3038 | { |
---|
3039 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
---|
3040 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
---|
3041 | printf("*** library (version %d.%d.%d)\n", |
---|
3042 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3043 | } |
---|
3044 | #endif /* defined (GTK_MAJOR_VERSION) ... */ |
---|
3045 | else |
---|
3046 | { |
---|
3047 | if ((gtk_major_version > major) || |
---|
3048 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
---|
3049 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
---|
3050 | { |
---|
3051 | return 0; |
---|
3052 | } |
---|
3053 | else |
---|
3054 | { |
---|
3055 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
---|
3056 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3057 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
---|
3058 | major, minor, micro); |
---|
3059 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
---|
3060 | printf("***\n"); |
---|
3061 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
3062 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
---|
3063 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
3064 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
---|
3065 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
---|
3066 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
3067 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
3068 | } |
---|
3069 | } |
---|
3070 | return 1; |
---|
3071 | } |
---|
3072 | |
---|
3073 | EOF |
---|
3074 | if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3075 | then |
---|
3076 | : |
---|
3077 | else |
---|
3078 | echo "configure: failed program was:" >&5 |
---|
3079 | cat conftest.$ac_ext >&5 |
---|
3080 | rm -fr conftest* |
---|
3081 | no_gtk=yes |
---|
3082 | fi |
---|
3083 | rm -fr conftest* |
---|
3084 | fi |
---|
3085 | |
---|
3086 | CFLAGS="$ac_save_CFLAGS" |
---|
3087 | LIBS="$ac_save_LIBS" |
---|
3088 | fi |
---|
3089 | fi |
---|
3090 | if test "x$no_gtk" = x ; then |
---|
3091 | echo "$ac_t""yes" 1>&6 |
---|
3092 | : |
---|
3093 | else |
---|
3094 | echo "$ac_t""no" 1>&6 |
---|
3095 | if test "$GTK_CONFIG" = "no" ; then |
---|
3096 | echo "*** The gtk-config script installed by GTK could not be found" |
---|
3097 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
---|
3098 | echo "*** your path, or set the GTK_CONFIG environment variable to the" |
---|
3099 | echo "*** full path to gtk-config." |
---|
3100 | else |
---|
3101 | if test -f conf.gtktest ; then |
---|
3102 | : |
---|
3103 | else |
---|
3104 | echo "*** Could not run GTK test program, checking why..." |
---|
3105 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
3106 | LIBS="$LIBS $GTK_LIBS" |
---|
3107 | cat > conftest.$ac_ext <<EOF |
---|
3108 | #line 3109 "configure" |
---|
3109 | #include "confdefs.h" |
---|
3110 | |
---|
3111 | #include <gtk/gtk.h> |
---|
3112 | #include <stdio.h> |
---|
3113 | |
---|
3114 | int main() { |
---|
3115 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
---|
3116 | ; return 0; } |
---|
3117 | EOF |
---|
3118 | if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3119 | rm -rf conftest* |
---|
3120 | echo "*** The test program compiled, but did not run. This usually means" |
---|
3121 | echo "*** that the run-time linker is not finding GTK or finding the wrong" |
---|
3122 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
---|
3123 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
3124 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
3125 | echo "*** is required on your system" |
---|
3126 | echo "***" |
---|
3127 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
3128 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
3129 | echo "***" |
---|
3130 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
3131 | echo "*** came with the system with the command" |
---|
3132 | echo "***" |
---|
3133 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
3134 | else |
---|
3135 | echo "configure: failed program was:" >&5 |
---|
3136 | cat conftest.$ac_ext >&5 |
---|
3137 | rm -rf conftest* |
---|
3138 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
3139 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
---|
3140 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
---|
3141 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
---|
3142 | fi |
---|
3143 | rm -f conftest* |
---|
3144 | CFLAGS="$ac_save_CFLAGS" |
---|
3145 | LIBS="$ac_save_LIBS" |
---|
3146 | fi |
---|
3147 | fi |
---|
3148 | GTK_CFLAGS="" |
---|
3149 | GTK_LIBS="" |
---|
3150 | { echo "configure: error: GTK not installed" 1>&2; exit 1; } |
---|
3151 | fi |
---|
3152 | |
---|
3153 | |
---|
3154 | rm -f conf.gtktest |
---|
3155 | |
---|
3156 | CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" |
---|
3157 | |
---|
3158 | saved_ldflags="$LDFLAGS" |
---|
3159 | LDFLAGS="$LDFLAGS $GTK_LIBS" |
---|
3160 | |
---|
3161 | gnome_cv_passdown_x_libs="$GTK_LIBS" |
---|
3162 | gnome_cv_passdown_X_LIBS="$GTK_LIBS" |
---|
3163 | gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS" |
---|
3164 | gnome_cv_passdown_GTK_LIBS="$GTK_LIBS" |
---|
3165 | |
---|
3166 | LDFLAGS="$saved_ldflags $GTK_LIBS" |
---|
3167 | |
---|
3168 | USE_DEVGTK=true |
---|
3169 | |
---|
3170 | |
---|
3171 | GNOME_HAVE_SM=true |
---|
3172 | case "$GTK_LIBS" in |
---|
3173 | *-lSM*) |
---|
3174 | ;; |
---|
3175 | *) |
---|
3176 | echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6 |
---|
3177 | echo "configure:3178: checking for SmcSaveYourselfDone in -lSM" >&5 |
---|
3178 | ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'` |
---|
3179 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3180 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3181 | else |
---|
3182 | ac_save_LIBS="$LIBS" |
---|
3183 | LIBS="-lSM $x_libs -lICE $LIBS" |
---|
3184 | cat > conftest.$ac_ext <<EOF |
---|
3185 | #line 3186 "configure" |
---|
3186 | #include "confdefs.h" |
---|
3187 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3188 | /* We use char because int might match the return type of a gcc2 |
---|
3189 | builtin and then its argument prototype would still apply. */ |
---|
3190 | char SmcSaveYourselfDone(); |
---|
3191 | |
---|
3192 | int main() { |
---|
3193 | SmcSaveYourselfDone() |
---|
3194 | ; return 0; } |
---|
3195 | EOF |
---|
3196 | if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3197 | rm -rf conftest* |
---|
3198 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3199 | else |
---|
3200 | echo "configure: failed program was:" >&5 |
---|
3201 | cat conftest.$ac_ext >&5 |
---|
3202 | rm -rf conftest* |
---|
3203 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3204 | fi |
---|
3205 | rm -f conftest* |
---|
3206 | LIBS="$ac_save_LIBS" |
---|
3207 | |
---|
3208 | fi |
---|
3209 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3210 | echo "$ac_t""yes" 1>&6 |
---|
3211 | GTK_LIBS="-lSM -lICE $GTK_LIBS" |
---|
3212 | else |
---|
3213 | echo "$ac_t""no" 1>&6 |
---|
3214 | GNOME_HAVE_SM=false |
---|
3215 | fi |
---|
3216 | |
---|
3217 | ;; |
---|
3218 | esac |
---|
3219 | |
---|
3220 | if test "$GNOME_HAVE_SM" = true; then |
---|
3221 | for ac_hdr in X11/SM/SMlib.h |
---|
3222 | do |
---|
3223 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3224 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3225 | echo "configure:3226: checking for $ac_hdr" >&5 |
---|
3226 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3227 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3228 | else |
---|
3229 | cat > conftest.$ac_ext <<EOF |
---|
3230 | #line 3231 "configure" |
---|
3231 | #include "confdefs.h" |
---|
3232 | #include <$ac_hdr> |
---|
3233 | EOF |
---|
3234 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3235 | { (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3236 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3237 | if test -z "$ac_err"; then |
---|
3238 | rm -rf conftest* |
---|
3239 | eval "ac_cv_header_$ac_safe=yes" |
---|
3240 | else |
---|
3241 | echo "$ac_err" >&5 |
---|
3242 | echo "configure: failed program was:" >&5 |
---|
3243 | cat conftest.$ac_ext >&5 |
---|
3244 | rm -rf conftest* |
---|
3245 | eval "ac_cv_header_$ac_safe=no" |
---|
3246 | fi |
---|
3247 | rm -f conftest* |
---|
3248 | fi |
---|
3249 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3250 | echo "$ac_t""yes" 1>&6 |
---|
3251 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3252 | cat >> confdefs.h <<EOF |
---|
3253 | #define $ac_tr_hdr 1 |
---|
3254 | EOF |
---|
3255 | |
---|
3256 | else |
---|
3257 | echo "$ac_t""no" 1>&6 |
---|
3258 | GNOME_HAVE_SM=false |
---|
3259 | fi |
---|
3260 | done |
---|
3261 | |
---|
3262 | fi |
---|
3263 | |
---|
3264 | if test "$GNOME_HAVE_SM" = true; then |
---|
3265 | cat >> confdefs.h <<\EOF |
---|
3266 | #define HAVE_LIBSM 1 |
---|
3267 | EOF |
---|
3268 | |
---|
3269 | fi |
---|
3270 | |
---|
3271 | XPM_LIBS="" |
---|
3272 | echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6 |
---|
3273 | echo "configure:3274: checking for XpmFreeXpmImage in -lXpm" >&5 |
---|
3274 | ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'` |
---|
3275 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3276 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3277 | else |
---|
3278 | ac_save_LIBS="$LIBS" |
---|
3279 | LIBS="-lXpm $x_libs $LIBS" |
---|
3280 | cat > conftest.$ac_ext <<EOF |
---|
3281 | #line 3282 "configure" |
---|
3282 | #include "confdefs.h" |
---|
3283 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3284 | /* We use char because int might match the return type of a gcc2 |
---|
3285 | builtin and then its argument prototype would still apply. */ |
---|
3286 | char XpmFreeXpmImage(); |
---|
3287 | |
---|
3288 | int main() { |
---|
3289 | XpmFreeXpmImage() |
---|
3290 | ; return 0; } |
---|
3291 | EOF |
---|
3292 | if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3293 | rm -rf conftest* |
---|
3294 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3295 | else |
---|
3296 | echo "configure: failed program was:" >&5 |
---|
3297 | cat conftest.$ac_ext >&5 |
---|
3298 | rm -rf conftest* |
---|
3299 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3300 | fi |
---|
3301 | rm -f conftest* |
---|
3302 | LIBS="$ac_save_LIBS" |
---|
3303 | |
---|
3304 | fi |
---|
3305 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3306 | echo "$ac_t""yes" 1>&6 |
---|
3307 | XPM_LIBS="-lXpm" |
---|
3308 | else |
---|
3309 | echo "$ac_t""no" 1>&6 |
---|
3310 | fi |
---|
3311 | |
---|
3312 | |
---|
3313 | |
---|
3314 | |
---|
3315 | LDFLAGS="$saved_ldflags" |
---|
3316 | |
---|
3317 | |
---|
3318 | |
---|
3319 | |
---|
3320 | |
---|
3321 | # Extract the first word of "gnome-config", so it can be a program name with args. |
---|
3322 | set dummy gnome-config; ac_word=$2 |
---|
3323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3324 | echo "configure:3325: checking for $ac_word" >&5 |
---|
3325 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
---|
3326 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3327 | else |
---|
3328 | case "$GNOME_CONFIG" in |
---|
3329 | /*) |
---|
3330 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
---|
3331 | ;; |
---|
3332 | ?:/*) |
---|
3333 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
---|
3334 | ;; |
---|
3335 | *) |
---|
3336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3337 | ac_dummy="$PATH" |
---|
3338 | for ac_dir in $ac_dummy; do |
---|
3339 | test -z "$ac_dir" && ac_dir=. |
---|
3340 | if test -f $ac_dir/$ac_word; then |
---|
3341 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
---|
3342 | break |
---|
3343 | fi |
---|
3344 | done |
---|
3345 | IFS="$ac_save_ifs" |
---|
3346 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
---|
3347 | ;; |
---|
3348 | esac |
---|
3349 | fi |
---|
3350 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
---|
3351 | if test -n "$GNOME_CONFIG"; then |
---|
3352 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
---|
3353 | else |
---|
3354 | echo "$ac_t""no" 1>&6 |
---|
3355 | fi |
---|
3356 | |
---|
3357 | if test "$GNOME_CONFIG" = no; then |
---|
3358 | if test xfailure = xfailure; then |
---|
3359 | { echo "configure: error: Could not find gnome-config" 1>&2; exit 1; } |
---|
3360 | fi |
---|
3361 | fi |
---|
3362 | GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml` |
---|
3363 | |
---|
3364 | echo $ac_n "checking for xmlNewDoc in -lxml""... $ac_c" 1>&6 |
---|
3365 | echo "configure:3366: checking for xmlNewDoc in -lxml" >&5 |
---|
3366 | ac_lib_var=`echo xml'_'xmlNewDoc | sed 'y%./+-%__p_%'` |
---|
3367 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3368 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3369 | else |
---|
3370 | ac_save_LIBS="$LIBS" |
---|
3371 | LIBS="-lxml `$GNOME_CONFIG --libs xml` $LIBS" |
---|
3372 | cat > conftest.$ac_ext <<EOF |
---|
3373 | #line 3374 "configure" |
---|
3374 | #include "confdefs.h" |
---|
3375 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3376 | /* We use char because int might match the return type of a gcc2 |
---|
3377 | builtin and then its argument prototype would still apply. */ |
---|
3378 | char xmlNewDoc(); |
---|
3379 | |
---|
3380 | int main() { |
---|
3381 | xmlNewDoc() |
---|
3382 | ; return 0; } |
---|
3383 | EOF |
---|
3384 | if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3385 | rm -rf conftest* |
---|
3386 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3387 | else |
---|
3388 | echo "configure: failed program was:" >&5 |
---|
3389 | cat conftest.$ac_ext >&5 |
---|
3390 | rm -rf conftest* |
---|
3391 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3392 | fi |
---|
3393 | rm -f conftest* |
---|
3394 | LIBS="$ac_save_LIBS" |
---|
3395 | |
---|
3396 | fi |
---|
3397 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3398 | echo "$ac_t""yes" 1>&6 |
---|
3399 | |
---|
3400 | |
---|
3401 | GNOME_XML_LIB=`$GNOME_CONFIG --libs xml` |
---|
3402 | |
---|
3403 | else |
---|
3404 | echo "$ac_t""no" 1>&6 |
---|
3405 | |
---|
3406 | if test xfailure = xfailure; then |
---|
3407 | { echo "configure: error: Could not link sample xml program" 1>&2; exit 1; } |
---|
3408 | fi |
---|
3409 | |
---|
3410 | fi |
---|
3411 | |
---|
3412 | |
---|
3413 | |
---|
3414 | |
---|
3415 | |
---|
3416 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
---|
3417 | if test "${with_gtk_prefix+set}" = set; then |
---|
3418 | withval="$with_gtk_prefix" |
---|
3419 | gtk_config_prefix="$withval" |
---|
3420 | else |
---|
3421 | gtk_config_prefix="" |
---|
3422 | fi |
---|
3423 | |
---|
3424 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
---|
3425 | if test "${with_gtk_exec_prefix+set}" = set; then |
---|
3426 | withval="$with_gtk_exec_prefix" |
---|
3427 | gtk_config_exec_prefix="$withval" |
---|
3428 | else |
---|
3429 | gtk_config_exec_prefix="" |
---|
3430 | fi |
---|
3431 | |
---|
3432 | # Check whether --enable-gtktest or --disable-gtktest was given. |
---|
3433 | if test "${enable_gtktest+set}" = set; then |
---|
3434 | enableval="$enable_gtktest" |
---|
3435 | : |
---|
3436 | else |
---|
3437 | enable_gtktest=yes |
---|
3438 | fi |
---|
3439 | |
---|
3440 | |
---|
3441 | for module in . |
---|
3442 | do |
---|
3443 | case "$module" in |
---|
3444 | gthread) |
---|
3445 | gtk_config_args="$gtk_config_args gthread" |
---|
3446 | ;; |
---|
3447 | esac |
---|
3448 | done |
---|
3449 | |
---|
3450 | if test x$gtk_config_exec_prefix != x ; then |
---|
3451 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
---|
3452 | if test x${GTK_CONFIG+set} != xset ; then |
---|
3453 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
---|
3454 | fi |
---|
3455 | fi |
---|
3456 | if test x$gtk_config_prefix != x ; then |
---|
3457 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
---|
3458 | if test x${GTK_CONFIG+set} != xset ; then |
---|
3459 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
---|
3460 | fi |
---|
3461 | fi |
---|
3462 | |
---|
3463 | # Extract the first word of "gtk-config", so it can be a program name with args. |
---|
3464 | set dummy gtk-config; ac_word=$2 |
---|
3465 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
3466 | echo "configure:3467: checking for $ac_word" >&5 |
---|
3467 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
---|
3468 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3469 | else |
---|
3470 | case "$GTK_CONFIG" in |
---|
3471 | /*) |
---|
3472 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
---|
3473 | ;; |
---|
3474 | ?:/*) |
---|
3475 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
---|
3476 | ;; |
---|
3477 | *) |
---|
3478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
3479 | ac_dummy="$PATH" |
---|
3480 | for ac_dir in $ac_dummy; do |
---|
3481 | test -z "$ac_dir" && ac_dir=. |
---|
3482 | if test -f $ac_dir/$ac_word; then |
---|
3483 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
---|
3484 | break |
---|
3485 | fi |
---|
3486 | done |
---|
3487 | IFS="$ac_save_ifs" |
---|
3488 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
---|
3489 | ;; |
---|
3490 | esac |
---|
3491 | fi |
---|
3492 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
---|
3493 | if test -n "$GTK_CONFIG"; then |
---|
3494 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
---|
3495 | else |
---|
3496 | echo "$ac_t""no" 1>&6 |
---|
3497 | fi |
---|
3498 | |
---|
3499 | min_gtk_version=$GTK_REQUIRED |
---|
3500 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
---|
3501 | echo "configure:3502: checking for GTK - version >= $min_gtk_version" >&5 |
---|
3502 | no_gtk="" |
---|
3503 | if test "$GTK_CONFIG" = "no" ; then |
---|
3504 | no_gtk=yes |
---|
3505 | else |
---|
3506 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
---|
3507 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
---|
3508 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
3509 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
3510 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
3511 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
3512 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
3513 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
3514 | if test "x$enable_gtktest" = "xyes" ; then |
---|
3515 | ac_save_CFLAGS="$CFLAGS" |
---|
3516 | ac_save_LIBS="$LIBS" |
---|
3517 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
3518 | LIBS="$GTK_LIBS $LIBS" |
---|
3519 | rm -f conf.gtktest |
---|
3520 | if test "$cross_compiling" = yes; then |
---|
3521 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
3522 | else |
---|
3523 | cat > conftest.$ac_ext <<EOF |
---|
3524 | #line 3525 "configure" |
---|
3525 | #include "confdefs.h" |
---|
3526 | |
---|
3527 | #include <gtk/gtk.h> |
---|
3528 | #include <stdio.h> |
---|
3529 | #include <stdlib.h> |
---|
3530 | |
---|
3531 | int |
---|
3532 | main () |
---|
3533 | { |
---|
3534 | int major, minor, micro; |
---|
3535 | char *tmp_version; |
---|
3536 | |
---|
3537 | system ("touch conf.gtktest"); |
---|
3538 | |
---|
3539 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
3540 | tmp_version = g_strdup("$min_gtk_version"); |
---|
3541 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
3542 | printf("%s, bad version string\n", "$min_gtk_version"); |
---|
3543 | exit(1); |
---|
3544 | } |
---|
3545 | |
---|
3546 | if ((gtk_major_version != $gtk_config_major_version) || |
---|
3547 | (gtk_minor_version != $gtk_config_minor_version) || |
---|
3548 | (gtk_micro_version != $gtk_config_micro_version)) |
---|
3549 | { |
---|
3550 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
---|
3551 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
---|
3552 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3553 | printf ("*** was found! If gtk-config was correct, then it is best\n"); |
---|
3554 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
---|
3555 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
3556 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
3557 | printf("*** required on your system.\n"); |
---|
3558 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
---|
3559 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
---|
3560 | printf("*** before re-running configure\n"); |
---|
3561 | } |
---|
3562 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
---|
3563 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
---|
3564 | (gtk_minor_version != GTK_MINOR_VERSION) || |
---|
3565 | (gtk_micro_version != GTK_MICRO_VERSION)) |
---|
3566 | { |
---|
3567 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
---|
3568 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
---|
3569 | printf("*** library (version %d.%d.%d)\n", |
---|
3570 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3571 | } |
---|
3572 | #endif /* defined (GTK_MAJOR_VERSION) ... */ |
---|
3573 | else |
---|
3574 | { |
---|
3575 | if ((gtk_major_version > major) || |
---|
3576 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
---|
3577 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
---|
3578 | { |
---|
3579 | return 0; |
---|
3580 | } |
---|
3581 | else |
---|
3582 | { |
---|
3583 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
---|
3584 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
3585 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
---|
3586 | major, minor, micro); |
---|
3587 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
---|
3588 | printf("***\n"); |
---|
3589 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
3590 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
---|
3591 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
3592 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
---|
3593 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
---|
3594 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
3595 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
3596 | } |
---|
3597 | } |
---|
3598 | return 1; |
---|
3599 | } |
---|
3600 | |
---|
3601 | EOF |
---|
3602 | if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3603 | then |
---|
3604 | : |
---|
3605 | else |
---|
3606 | echo "configure: failed program was:" >&5 |
---|
3607 | cat conftest.$ac_ext >&5 |
---|
3608 | rm -fr conftest* |
---|
3609 | no_gtk=yes |
---|
3610 | fi |
---|
3611 | rm -fr conftest* |
---|
3612 | fi |
---|
3613 | |
---|
3614 | CFLAGS="$ac_save_CFLAGS" |
---|
3615 | LIBS="$ac_save_LIBS" |
---|
3616 | fi |
---|
3617 | fi |
---|
3618 | if test "x$no_gtk" = x ; then |
---|
3619 | echo "$ac_t""yes" 1>&6 |
---|
3620 | : |
---|
3621 | else |
---|
3622 | echo "$ac_t""no" 1>&6 |
---|
3623 | if test "$GTK_CONFIG" = "no" ; then |
---|
3624 | echo "*** The gtk-config script installed by GTK could not be found" |
---|
3625 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
---|
3626 | echo "*** your path, or set the GTK_CONFIG environment variable to the" |
---|
3627 | echo "*** full path to gtk-config." |
---|
3628 | else |
---|
3629 | if test -f conf.gtktest ; then |
---|
3630 | : |
---|
3631 | else |
---|
3632 | echo "*** Could not run GTK test program, checking why..." |
---|
3633 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
3634 | LIBS="$LIBS $GTK_LIBS" |
---|
3635 | cat > conftest.$ac_ext <<EOF |
---|
3636 | #line 3637 "configure" |
---|
3637 | #include "confdefs.h" |
---|
3638 | |
---|
3639 | #include <gtk/gtk.h> |
---|
3640 | #include <stdio.h> |
---|
3641 | |
---|
3642 | int main() { |
---|
3643 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
---|
3644 | ; return 0; } |
---|
3645 | EOF |
---|
3646 | if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3647 | rm -rf conftest* |
---|
3648 | echo "*** The test program compiled, but did not run. This usually means" |
---|
3649 | echo "*** that the run-time linker is not finding GTK or finding the wrong" |
---|
3650 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
---|
3651 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
3652 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
3653 | echo "*** is required on your system" |
---|
3654 | echo "***" |
---|
3655 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
3656 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
3657 | echo "***" |
---|
3658 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
3659 | echo "*** came with the system with the command" |
---|
3660 | echo "***" |
---|
3661 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
3662 | else |
---|
3663 | echo "configure: failed program was:" >&5 |
---|
3664 | cat conftest.$ac_ext >&5 |
---|
3665 | rm -rf conftest* |
---|
3666 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
3667 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
---|
3668 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
---|
3669 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
---|
3670 | fi |
---|
3671 | rm -f conftest* |
---|
3672 | CFLAGS="$ac_save_CFLAGS" |
---|
3673 | LIBS="$ac_save_LIBS" |
---|
3674 | fi |
---|
3675 | fi |
---|
3676 | GTK_CFLAGS="" |
---|
3677 | GTK_LIBS="" |
---|
3678 | |
---|
3679 | { echo "configure: error: Please upgrade your GTK+" 1>&2; exit 1; } |
---|
3680 | fi |
---|
3681 | |
---|
3682 | |
---|
3683 | rm -f conf.gtktest |
---|
3684 | |
---|
3685 | |
---|
3686 | |
---|
3687 | |
---|
3688 | CFLAGS_save=$CFLAGS |
---|
3689 | LIBS_save=$LIBS |
---|
3690 | CFLAGS=`gnome-config --cflags gnomeui` |
---|
3691 | LIBS=`gnome-config --libs gnomeui` |
---|
3692 | |
---|
3693 | echo $ac_n "checking for gnome_window_icon_set_default_from_file in -lgnomeui""... $ac_c" 1>&6 |
---|
3694 | echo "configure:3695: checking for gnome_window_icon_set_default_from_file in -lgnomeui" >&5 |
---|
3695 | ac_lib_var=`echo gnomeui'_'gnome_window_icon_set_default_from_file | sed 'y%./+-%__p_%'` |
---|
3696 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
3697 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3698 | else |
---|
3699 | ac_save_LIBS="$LIBS" |
---|
3700 | LIBS="-lgnomeui $LIBS" |
---|
3701 | cat > conftest.$ac_ext <<EOF |
---|
3702 | #line 3703 "configure" |
---|
3703 | #include "confdefs.h" |
---|
3704 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3705 | /* We use char because int might match the return type of a gcc2 |
---|
3706 | builtin and then its argument prototype would still apply. */ |
---|
3707 | char gnome_window_icon_set_default_from_file(); |
---|
3708 | |
---|
3709 | int main() { |
---|
3710 | gnome_window_icon_set_default_from_file() |
---|
3711 | ; return 0; } |
---|
3712 | EOF |
---|
3713 | if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3714 | rm -rf conftest* |
---|
3715 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
3716 | else |
---|
3717 | echo "configure: failed program was:" >&5 |
---|
3718 | cat conftest.$ac_ext >&5 |
---|
3719 | rm -rf conftest* |
---|
3720 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
3721 | fi |
---|
3722 | rm -f conftest* |
---|
3723 | LIBS="$ac_save_LIBS" |
---|
3724 | |
---|
3725 | fi |
---|
3726 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
3727 | echo "$ac_t""yes" 1>&6 |
---|
3728 | ac_tr_lib=HAVE_LIB`echo gnomeui | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
3729 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
3730 | cat >> confdefs.h <<EOF |
---|
3731 | #define $ac_tr_lib 1 |
---|
3732 | EOF |
---|
3733 | |
---|
3734 | LIBS="-lgnomeui $LIBS" |
---|
3735 | |
---|
3736 | else |
---|
3737 | echo "$ac_t""no" 1>&6 |
---|
3738 | |
---|
3739 | { echo "configure: error: gnome-libs 1.0.59 or higher is required." 1>&2; exit 1; } |
---|
3740 | fi |
---|
3741 | |
---|
3742 | |
---|
3743 | |
---|
3744 | |
---|
3745 | CFLAGS=$CFLAGS_save |
---|
3746 | LIBS=$LIBS_save |
---|
3747 | |
---|
3748 | |
---|
3749 | |
---|
3750 | if test "x" = "y"; then |
---|
3751 | FALSE_TRUE= |
---|
3752 | FALSE_FALSE='#' |
---|
3753 | else |
---|
3754 | FALSE_TRUE='#' |
---|
3755 | FALSE_FALSE= |
---|
3756 | fi |
---|
3757 | |
---|
3758 | ALL_LINGUAS="az bg ca cs da de el en_GB es et eu fi fr ga gl hu it ja ko lt lv nl nn no pl pt pt_BR ro ru sk sl sp sr sv ta tr uk wa zh_TW.Big5 zh_CN.GB2312" |
---|
3759 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
3760 | echo "configure:3761: checking for working const" >&5 |
---|
3761 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
3762 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3763 | else |
---|
3764 | cat > conftest.$ac_ext <<EOF |
---|
3765 | #line 3766 "configure" |
---|
3766 | #include "confdefs.h" |
---|
3767 | |
---|
3768 | int main() { |
---|
3769 | |
---|
3770 | /* Ultrix mips cc rejects this. */ |
---|
3771 | typedef int charset[2]; const charset x; |
---|
3772 | /* SunOS 4.1.1 cc rejects this. */ |
---|
3773 | char const *const *ccp; |
---|
3774 | char **p; |
---|
3775 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
3776 | struct point {int x, y;}; |
---|
3777 | static struct point const zero = {0,0}; |
---|
3778 | /* AIX XL C 1.02.0.0 rejects this. |
---|
3779 | It does not let you subtract one const X* pointer from another in an arm |
---|
3780 | of an if-expression whose if-part is not a constant expression */ |
---|
3781 | const char *g = "string"; |
---|
3782 | ccp = &g + (g ? g-g : 0); |
---|
3783 | /* HPUX 7.0 cc rejects these. */ |
---|
3784 | ++ccp; |
---|
3785 | p = (char**) ccp; |
---|
3786 | ccp = (char const *const *) p; |
---|
3787 | { /* SCO 3.2v4 cc rejects this. */ |
---|
3788 | char *t; |
---|
3789 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
3790 | |
---|
3791 | *t++ = 0; |
---|
3792 | } |
---|
3793 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
3794 | int x[] = {25, 17}; |
---|
3795 | const int *foo = &x[0]; |
---|
3796 | ++foo; |
---|
3797 | } |
---|
3798 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
3799 | typedef const int *iptr; |
---|
3800 | iptr p = 0; |
---|
3801 | ++p; |
---|
3802 | } |
---|
3803 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
3804 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
3805 | struct s { int j; const int *ap[3]; }; |
---|
3806 | struct s *b; b->j = 5; |
---|
3807 | } |
---|
3808 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
3809 | const int foo = 10; |
---|
3810 | } |
---|
3811 | |
---|
3812 | ; return 0; } |
---|
3813 | EOF |
---|
3814 | if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3815 | rm -rf conftest* |
---|
3816 | ac_cv_c_const=yes |
---|
3817 | else |
---|
3818 | echo "configure: failed program was:" >&5 |
---|
3819 | cat conftest.$ac_ext >&5 |
---|
3820 | rm -rf conftest* |
---|
3821 | ac_cv_c_const=no |
---|
3822 | fi |
---|
3823 | rm -f conftest* |
---|
3824 | fi |
---|
3825 | |
---|
3826 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
3827 | if test $ac_cv_c_const = no; then |
---|
3828 | cat >> confdefs.h <<\EOF |
---|
3829 | #define const |
---|
3830 | EOF |
---|
3831 | |
---|
3832 | fi |
---|
3833 | |
---|
3834 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
3835 | echo "configure:3836: checking for inline" >&5 |
---|
3836 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
3837 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3838 | else |
---|
3839 | ac_cv_c_inline=no |
---|
3840 | for ac_kw in inline __inline__ __inline; do |
---|
3841 | cat > conftest.$ac_ext <<EOF |
---|
3842 | #line 3843 "configure" |
---|
3843 | #include "confdefs.h" |
---|
3844 | |
---|
3845 | int main() { |
---|
3846 | } $ac_kw foo() { |
---|
3847 | ; return 0; } |
---|
3848 | EOF |
---|
3849 | if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3850 | rm -rf conftest* |
---|
3851 | ac_cv_c_inline=$ac_kw; break |
---|
3852 | else |
---|
3853 | echo "configure: failed program was:" >&5 |
---|
3854 | cat conftest.$ac_ext >&5 |
---|
3855 | fi |
---|
3856 | rm -f conftest* |
---|
3857 | done |
---|
3858 | |
---|
3859 | fi |
---|
3860 | |
---|
3861 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
3862 | case "$ac_cv_c_inline" in |
---|
3863 | inline | yes) ;; |
---|
3864 | no) cat >> confdefs.h <<\EOF |
---|
3865 | #define inline |
---|
3866 | EOF |
---|
3867 | ;; |
---|
3868 | *) cat >> confdefs.h <<EOF |
---|
3869 | #define inline $ac_cv_c_inline |
---|
3870 | EOF |
---|
3871 | ;; |
---|
3872 | esac |
---|
3873 | |
---|
3874 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
---|
3875 | echo "configure:3876: checking for off_t" >&5 |
---|
3876 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
---|
3877 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3878 | else |
---|
3879 | cat > conftest.$ac_ext <<EOF |
---|
3880 | #line 3881 "configure" |
---|
3881 | #include "confdefs.h" |
---|
3882 | #include <sys/types.h> |
---|
3883 | #if STDC_HEADERS |
---|
3884 | #include <stdlib.h> |
---|
3885 | #include <stddef.h> |
---|
3886 | #endif |
---|
3887 | EOF |
---|
3888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3889 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
3890 | rm -rf conftest* |
---|
3891 | ac_cv_type_off_t=yes |
---|
3892 | else |
---|
3893 | rm -rf conftest* |
---|
3894 | ac_cv_type_off_t=no |
---|
3895 | fi |
---|
3896 | rm -f conftest* |
---|
3897 | |
---|
3898 | fi |
---|
3899 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
---|
3900 | if test $ac_cv_type_off_t = no; then |
---|
3901 | cat >> confdefs.h <<\EOF |
---|
3902 | #define off_t long |
---|
3903 | EOF |
---|
3904 | |
---|
3905 | fi |
---|
3906 | |
---|
3907 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
3908 | echo "configure:3909: checking for size_t" >&5 |
---|
3909 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
3910 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3911 | else |
---|
3912 | cat > conftest.$ac_ext <<EOF |
---|
3913 | #line 3914 "configure" |
---|
3914 | #include "confdefs.h" |
---|
3915 | #include <sys/types.h> |
---|
3916 | #if STDC_HEADERS |
---|
3917 | #include <stdlib.h> |
---|
3918 | #include <stddef.h> |
---|
3919 | #endif |
---|
3920 | EOF |
---|
3921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3922 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
3923 | rm -rf conftest* |
---|
3924 | ac_cv_type_size_t=yes |
---|
3925 | else |
---|
3926 | rm -rf conftest* |
---|
3927 | ac_cv_type_size_t=no |
---|
3928 | fi |
---|
3929 | rm -f conftest* |
---|
3930 | |
---|
3931 | fi |
---|
3932 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
3933 | if test $ac_cv_type_size_t = no; then |
---|
3934 | cat >> confdefs.h <<\EOF |
---|
3935 | #define size_t unsigned |
---|
3936 | EOF |
---|
3937 | |
---|
3938 | fi |
---|
3939 | |
---|
3940 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
3941 | # for constant arguments. Useless! |
---|
3942 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
3943 | echo "configure:3944: checking for working alloca.h" >&5 |
---|
3944 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
3945 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3946 | else |
---|
3947 | cat > conftest.$ac_ext <<EOF |
---|
3948 | #line 3949 "configure" |
---|
3949 | #include "confdefs.h" |
---|
3950 | #include <alloca.h> |
---|
3951 | int main() { |
---|
3952 | char *p = alloca(2 * sizeof(int)); |
---|
3953 | ; return 0; } |
---|
3954 | EOF |
---|
3955 | if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3956 | rm -rf conftest* |
---|
3957 | ac_cv_header_alloca_h=yes |
---|
3958 | else |
---|
3959 | echo "configure: failed program was:" >&5 |
---|
3960 | cat conftest.$ac_ext >&5 |
---|
3961 | rm -rf conftest* |
---|
3962 | ac_cv_header_alloca_h=no |
---|
3963 | fi |
---|
3964 | rm -f conftest* |
---|
3965 | fi |
---|
3966 | |
---|
3967 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
3968 | if test $ac_cv_header_alloca_h = yes; then |
---|
3969 | cat >> confdefs.h <<\EOF |
---|
3970 | #define HAVE_ALLOCA_H 1 |
---|
3971 | EOF |
---|
3972 | |
---|
3973 | fi |
---|
3974 | |
---|
3975 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
3976 | echo "configure:3977: checking for alloca" >&5 |
---|
3977 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
3978 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3979 | else |
---|
3980 | cat > conftest.$ac_ext <<EOF |
---|
3981 | #line 3982 "configure" |
---|
3982 | #include "confdefs.h" |
---|
3983 | |
---|
3984 | #ifdef __GNUC__ |
---|
3985 | # define alloca __builtin_alloca |
---|
3986 | #else |
---|
3987 | # ifdef _MSC_VER |
---|
3988 | # include <malloc.h> |
---|
3989 | # define alloca _alloca |
---|
3990 | # else |
---|
3991 | # if HAVE_ALLOCA_H |
---|
3992 | # include <alloca.h> |
---|
3993 | # else |
---|
3994 | # ifdef _AIX |
---|
3995 | #pragma alloca |
---|
3996 | # else |
---|
3997 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
3998 | char *alloca (); |
---|
3999 | # endif |
---|
4000 | # endif |
---|
4001 | # endif |
---|
4002 | # endif |
---|
4003 | #endif |
---|
4004 | |
---|
4005 | int main() { |
---|
4006 | char *p = (char *) alloca(1); |
---|
4007 | ; return 0; } |
---|
4008 | EOF |
---|
4009 | if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4010 | rm -rf conftest* |
---|
4011 | ac_cv_func_alloca_works=yes |
---|
4012 | else |
---|
4013 | echo "configure: failed program was:" >&5 |
---|
4014 | cat conftest.$ac_ext >&5 |
---|
4015 | rm -rf conftest* |
---|
4016 | ac_cv_func_alloca_works=no |
---|
4017 | fi |
---|
4018 | rm -f conftest* |
---|
4019 | fi |
---|
4020 | |
---|
4021 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
4022 | if test $ac_cv_func_alloca_works = yes; then |
---|
4023 | cat >> confdefs.h <<\EOF |
---|
4024 | #define HAVE_ALLOCA 1 |
---|
4025 | EOF |
---|
4026 | |
---|
4027 | fi |
---|
4028 | |
---|
4029 | if test $ac_cv_func_alloca_works = no; then |
---|
4030 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4031 | # that cause trouble. Some versions do not even contain alloca or |
---|
4032 | # contain a buggy version. If you still want to use their alloca, |
---|
4033 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4034 | ALLOCA=alloca.${ac_objext} |
---|
4035 | cat >> confdefs.h <<\EOF |
---|
4036 | #define C_ALLOCA 1 |
---|
4037 | EOF |
---|
4038 | |
---|
4039 | |
---|
4040 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
4041 | echo "configure:4042: checking whether alloca needs Cray hooks" >&5 |
---|
4042 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
4043 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4044 | else |
---|
4045 | cat > conftest.$ac_ext <<EOF |
---|
4046 | #line 4047 "configure" |
---|
4047 | #include "confdefs.h" |
---|
4048 | #if defined(CRAY) && ! defined(CRAY2) |
---|
4049 | webecray |
---|
4050 | #else |
---|
4051 | wenotbecray |
---|
4052 | #endif |
---|
4053 | |
---|
4054 | EOF |
---|
4055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4056 | egrep "webecray" >/dev/null 2>&1; then |
---|
4057 | rm -rf conftest* |
---|
4058 | ac_cv_os_cray=yes |
---|
4059 | else |
---|
4060 | rm -rf conftest* |
---|
4061 | ac_cv_os_cray=no |
---|
4062 | fi |
---|
4063 | rm -f conftest* |
---|
4064 | |
---|
4065 | fi |
---|
4066 | |
---|
4067 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
4068 | if test $ac_cv_os_cray = yes; then |
---|
4069 | for ac_func in _getb67 GETB67 getb67; do |
---|
4070 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4071 | echo "configure:4072: checking for $ac_func" >&5 |
---|
4072 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4073 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4074 | else |
---|
4075 | cat > conftest.$ac_ext <<EOF |
---|
4076 | #line 4077 "configure" |
---|
4077 | #include "confdefs.h" |
---|
4078 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4079 | which can conflict with char $ac_func(); below. */ |
---|
4080 | #include <assert.h> |
---|
4081 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4082 | /* We use char because int might match the return type of a gcc2 |
---|
4083 | builtin and then its argument prototype would still apply. */ |
---|
4084 | char $ac_func(); |
---|
4085 | |
---|
4086 | int main() { |
---|
4087 | |
---|
4088 | /* The GNU C library defines this for functions which it implements |
---|
4089 | to always fail with ENOSYS. Some functions are actually named |
---|
4090 | something starting with __ and the normal name is an alias. */ |
---|
4091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4092 | choke me |
---|
4093 | #else |
---|
4094 | $ac_func(); |
---|
4095 | #endif |
---|
4096 | |
---|
4097 | ; return 0; } |
---|
4098 | EOF |
---|
4099 | if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4100 | rm -rf conftest* |
---|
4101 | eval "ac_cv_func_$ac_func=yes" |
---|
4102 | else |
---|
4103 | echo "configure: failed program was:" >&5 |
---|
4104 | cat conftest.$ac_ext >&5 |
---|
4105 | rm -rf conftest* |
---|
4106 | eval "ac_cv_func_$ac_func=no" |
---|
4107 | fi |
---|
4108 | rm -f conftest* |
---|
4109 | fi |
---|
4110 | |
---|
4111 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4112 | echo "$ac_t""yes" 1>&6 |
---|
4113 | cat >> confdefs.h <<EOF |
---|
4114 | #define CRAY_STACKSEG_END $ac_func |
---|
4115 | EOF |
---|
4116 | |
---|
4117 | break |
---|
4118 | else |
---|
4119 | echo "$ac_t""no" 1>&6 |
---|
4120 | fi |
---|
4121 | |
---|
4122 | done |
---|
4123 | fi |
---|
4124 | |
---|
4125 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
4126 | echo "configure:4127: checking stack direction for C alloca" >&5 |
---|
4127 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
4128 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4129 | else |
---|
4130 | if test "$cross_compiling" = yes; then |
---|
4131 | ac_cv_c_stack_direction=0 |
---|
4132 | else |
---|
4133 | cat > conftest.$ac_ext <<EOF |
---|
4134 | #line 4135 "configure" |
---|
4135 | #include "confdefs.h" |
---|
4136 | find_stack_direction () |
---|
4137 | { |
---|
4138 | static char *addr = 0; |
---|
4139 | auto char dummy; |
---|
4140 | if (addr == 0) |
---|
4141 | { |
---|
4142 | addr = &dummy; |
---|
4143 | return find_stack_direction (); |
---|
4144 | } |
---|
4145 | else |
---|
4146 | return (&dummy > addr) ? 1 : -1; |
---|
4147 | } |
---|
4148 | main () |
---|
4149 | { |
---|
4150 | exit (find_stack_direction() < 0); |
---|
4151 | } |
---|
4152 | EOF |
---|
4153 | if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4154 | then |
---|
4155 | ac_cv_c_stack_direction=1 |
---|
4156 | else |
---|
4157 | echo "configure: failed program was:" >&5 |
---|
4158 | cat conftest.$ac_ext >&5 |
---|
4159 | rm -fr conftest* |
---|
4160 | ac_cv_c_stack_direction=-1 |
---|
4161 | fi |
---|
4162 | rm -fr conftest* |
---|
4163 | fi |
---|
4164 | |
---|
4165 | fi |
---|
4166 | |
---|
4167 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
4168 | cat >> confdefs.h <<EOF |
---|
4169 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
4170 | EOF |
---|
4171 | |
---|
4172 | fi |
---|
4173 | |
---|
4174 | for ac_hdr in unistd.h |
---|
4175 | do |
---|
4176 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4177 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4178 | echo "configure:4179: checking for $ac_hdr" >&5 |
---|
4179 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4180 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4181 | else |
---|
4182 | cat > conftest.$ac_ext <<EOF |
---|
4183 | #line 4184 "configure" |
---|
4184 | #include "confdefs.h" |
---|
4185 | #include <$ac_hdr> |
---|
4186 | EOF |
---|
4187 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4188 | { (eval echo configure:4189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4189 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4190 | if test -z "$ac_err"; then |
---|
4191 | rm -rf conftest* |
---|
4192 | eval "ac_cv_header_$ac_safe=yes" |
---|
4193 | else |
---|
4194 | echo "$ac_err" >&5 |
---|
4195 | echo "configure: failed program was:" >&5 |
---|
4196 | cat conftest.$ac_ext >&5 |
---|
4197 | rm -rf conftest* |
---|
4198 | eval "ac_cv_header_$ac_safe=no" |
---|
4199 | fi |
---|
4200 | rm -f conftest* |
---|
4201 | fi |
---|
4202 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4203 | echo "$ac_t""yes" 1>&6 |
---|
4204 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4205 | cat >> confdefs.h <<EOF |
---|
4206 | #define $ac_tr_hdr 1 |
---|
4207 | EOF |
---|
4208 | |
---|
4209 | else |
---|
4210 | echo "$ac_t""no" 1>&6 |
---|
4211 | fi |
---|
4212 | done |
---|
4213 | |
---|
4214 | for ac_func in getpagesize |
---|
4215 | do |
---|
4216 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4217 | echo "configure:4218: checking for $ac_func" >&5 |
---|
4218 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4219 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4220 | else |
---|
4221 | cat > conftest.$ac_ext <<EOF |
---|
4222 | #line 4223 "configure" |
---|
4223 | #include "confdefs.h" |
---|
4224 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4225 | which can conflict with char $ac_func(); below. */ |
---|
4226 | #include <assert.h> |
---|
4227 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4228 | /* We use char because int might match the return type of a gcc2 |
---|
4229 | builtin and then its argument prototype would still apply. */ |
---|
4230 | char $ac_func(); |
---|
4231 | |
---|
4232 | int main() { |
---|
4233 | |
---|
4234 | /* The GNU C library defines this for functions which it implements |
---|
4235 | to always fail with ENOSYS. Some functions are actually named |
---|
4236 | something starting with __ and the normal name is an alias. */ |
---|
4237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4238 | choke me |
---|
4239 | #else |
---|
4240 | $ac_func(); |
---|
4241 | #endif |
---|
4242 | |
---|
4243 | ; return 0; } |
---|
4244 | EOF |
---|
4245 | if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4246 | rm -rf conftest* |
---|
4247 | eval "ac_cv_func_$ac_func=yes" |
---|
4248 | else |
---|
4249 | echo "configure: failed program was:" >&5 |
---|
4250 | cat conftest.$ac_ext >&5 |
---|
4251 | rm -rf conftest* |
---|
4252 | eval "ac_cv_func_$ac_func=no" |
---|
4253 | fi |
---|
4254 | rm -f conftest* |
---|
4255 | fi |
---|
4256 | |
---|
4257 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4258 | echo "$ac_t""yes" 1>&6 |
---|
4259 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4260 | cat >> confdefs.h <<EOF |
---|
4261 | #define $ac_tr_func 1 |
---|
4262 | EOF |
---|
4263 | |
---|
4264 | else |
---|
4265 | echo "$ac_t""no" 1>&6 |
---|
4266 | fi |
---|
4267 | done |
---|
4268 | |
---|
4269 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
4270 | echo "configure:4271: checking for working mmap" >&5 |
---|
4271 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
4272 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4273 | else |
---|
4274 | if test "$cross_compiling" = yes; then |
---|
4275 | ac_cv_func_mmap_fixed_mapped=no |
---|
4276 | else |
---|
4277 | cat > conftest.$ac_ext <<EOF |
---|
4278 | #line 4279 "configure" |
---|
4279 | #include "confdefs.h" |
---|
4280 | |
---|
4281 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
4282 | Here is a matrix of mmap possibilities: |
---|
4283 | mmap private not fixed |
---|
4284 | mmap private fixed at somewhere currently unmapped |
---|
4285 | mmap private fixed at somewhere already mapped |
---|
4286 | mmap shared not fixed |
---|
4287 | mmap shared fixed at somewhere currently unmapped |
---|
4288 | mmap shared fixed at somewhere already mapped |
---|
4289 | For private mappings, we should verify that changes cannot be read() |
---|
4290 | back from the file, nor mmap's back from the file at a different |
---|
4291 | address. (There have been systems where private was not correctly |
---|
4292 | implemented like the infamous i386 svr4.0, and systems where the |
---|
4293 | VM page cache was not coherent with the filesystem buffer cache |
---|
4294 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
4295 | For shared mappings, we should conversely verify that changes get |
---|
4296 | propogated back to all the places they're supposed to be. |
---|
4297 | |
---|
4298 | Grep wants private fixed already mapped. |
---|
4299 | The main things grep needs to know about mmap are: |
---|
4300 | * does it exist and is it safe to write into the mmap'd area |
---|
4301 | * how to use it (BSD variants) */ |
---|
4302 | #include <sys/types.h> |
---|
4303 | #include <fcntl.h> |
---|
4304 | #include <sys/mman.h> |
---|
4305 | |
---|
4306 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
4307 | #ifndef HAVE_GETPAGESIZE |
---|
4308 | # ifdef HAVE_UNISTD_H |
---|
4309 | # include <unistd.h> |
---|
4310 | # endif |
---|
4311 | |
---|
4312 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
4313 | # ifndef HAVE_SYS_PARAM_H |
---|
4314 | # define HAVE_SYS_PARAM_H 1 |
---|
4315 | # endif |
---|
4316 | |
---|
4317 | # ifdef _SC_PAGESIZE |
---|
4318 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
4319 | # else /* no _SC_PAGESIZE */ |
---|
4320 | # ifdef HAVE_SYS_PARAM_H |
---|
4321 | # include <sys/param.h> |
---|
4322 | # ifdef EXEC_PAGESIZE |
---|
4323 | # define getpagesize() EXEC_PAGESIZE |
---|
4324 | # else /* no EXEC_PAGESIZE */ |
---|
4325 | # ifdef NBPG |
---|
4326 | # define getpagesize() NBPG * CLSIZE |
---|
4327 | # ifndef CLSIZE |
---|
4328 | # define CLSIZE 1 |
---|
4329 | # endif /* no CLSIZE */ |
---|
4330 | # else /* no NBPG */ |
---|
4331 | # ifdef NBPC |
---|
4332 | # define getpagesize() NBPC |
---|
4333 | # else /* no NBPC */ |
---|
4334 | # ifdef PAGESIZE |
---|
4335 | # define getpagesize() PAGESIZE |
---|
4336 | # endif /* PAGESIZE */ |
---|
4337 | # endif /* no NBPC */ |
---|
4338 | # endif /* no NBPG */ |
---|
4339 | # endif /* no EXEC_PAGESIZE */ |
---|
4340 | # else /* no HAVE_SYS_PARAM_H */ |
---|
4341 | # define getpagesize() 8192 /* punt totally */ |
---|
4342 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
4343 | # endif /* no _SC_PAGESIZE */ |
---|
4344 | |
---|
4345 | #endif /* no HAVE_GETPAGESIZE */ |
---|
4346 | |
---|
4347 | #ifdef __cplusplus |
---|
4348 | extern "C" { void *malloc(unsigned); } |
---|
4349 | #else |
---|
4350 | char *malloc(); |
---|
4351 | #endif |
---|
4352 | |
---|
4353 | int |
---|
4354 | main() |
---|
4355 | { |
---|
4356 | char *data, *data2, *data3; |
---|
4357 | int i, pagesize; |
---|
4358 | int fd; |
---|
4359 | |
---|
4360 | pagesize = getpagesize(); |
---|
4361 | |
---|
4362 | /* |
---|
4363 | * First, make a file with some known garbage in it. |
---|
4364 | */ |
---|
4365 | data = malloc(pagesize); |
---|
4366 | if (!data) |
---|
4367 | exit(1); |
---|
4368 | for (i = 0; i < pagesize; ++i) |
---|
4369 | *(data + i) = rand(); |
---|
4370 | umask(0); |
---|
4371 | fd = creat("conftestmmap", 0600); |
---|
4372 | if (fd < 0) |
---|
4373 | exit(1); |
---|
4374 | if (write(fd, data, pagesize) != pagesize) |
---|
4375 | exit(1); |
---|
4376 | close(fd); |
---|
4377 | |
---|
4378 | /* |
---|
4379 | * Next, try to mmap the file at a fixed address which |
---|
4380 | * already has something else allocated at it. If we can, |
---|
4381 | * also make sure that we see the same garbage. |
---|
4382 | */ |
---|
4383 | fd = open("conftestmmap", O_RDWR); |
---|
4384 | if (fd < 0) |
---|
4385 | exit(1); |
---|
4386 | data2 = malloc(2 * pagesize); |
---|
4387 | if (!data2) |
---|
4388 | exit(1); |
---|
4389 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
4390 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
4391 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
4392 | exit(1); |
---|
4393 | for (i = 0; i < pagesize; ++i) |
---|
4394 | if (*(data + i) != *(data2 + i)) |
---|
4395 | exit(1); |
---|
4396 | |
---|
4397 | /* |
---|
4398 | * Finally, make sure that changes to the mapped area |
---|
4399 | * do not percolate back to the file as seen by read(). |
---|
4400 | * (This is a bug on some variants of i386 svr4.0.) |
---|
4401 | */ |
---|
4402 | for (i = 0; i < pagesize; ++i) |
---|
4403 | *(data2 + i) = *(data2 + i) + 1; |
---|
4404 | data3 = malloc(pagesize); |
---|
4405 | if (!data3) |
---|
4406 | exit(1); |
---|
4407 | if (read(fd, data3, pagesize) != pagesize) |
---|
4408 | exit(1); |
---|
4409 | for (i = 0; i < pagesize; ++i) |
---|
4410 | if (*(data + i) != *(data3 + i)) |
---|
4411 | exit(1); |
---|
4412 | close(fd); |
---|
4413 | unlink("conftestmmap"); |
---|
4414 | exit(0); |
---|
4415 | } |
---|
4416 | |
---|
4417 | EOF |
---|
4418 | if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4419 | then |
---|
4420 | ac_cv_func_mmap_fixed_mapped=yes |
---|
4421 | else |
---|
4422 | echo "configure: failed program was:" >&5 |
---|
4423 | cat conftest.$ac_ext >&5 |
---|
4424 | rm -fr conftest* |
---|
4425 | ac_cv_func_mmap_fixed_mapped=no |
---|
4426 | fi |
---|
4427 | rm -fr conftest* |
---|
4428 | fi |
---|
4429 | |
---|
4430 | fi |
---|
4431 | |
---|
4432 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
4433 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
4434 | cat >> confdefs.h <<\EOF |
---|
4435 | #define HAVE_MMAP 1 |
---|
4436 | EOF |
---|
4437 | |
---|
4438 | fi |
---|
4439 | |
---|
4440 | |
---|
4441 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
---|
4442 | unistd.h sys/param.h |
---|
4443 | do |
---|
4444 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4445 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4446 | echo "configure:4447: checking for $ac_hdr" >&5 |
---|
4447 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4448 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4449 | else |
---|
4450 | cat > conftest.$ac_ext <<EOF |
---|
4451 | #line 4452 "configure" |
---|
4452 | #include "confdefs.h" |
---|
4453 | #include <$ac_hdr> |
---|
4454 | EOF |
---|
4455 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4456 | { (eval echo configure:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4457 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4458 | if test -z "$ac_err"; then |
---|
4459 | rm -rf conftest* |
---|
4460 | eval "ac_cv_header_$ac_safe=yes" |
---|
4461 | else |
---|
4462 | echo "$ac_err" >&5 |
---|
4463 | echo "configure: failed program was:" >&5 |
---|
4464 | cat conftest.$ac_ext >&5 |
---|
4465 | rm -rf conftest* |
---|
4466 | eval "ac_cv_header_$ac_safe=no" |
---|
4467 | fi |
---|
4468 | rm -f conftest* |
---|
4469 | fi |
---|
4470 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4471 | echo "$ac_t""yes" 1>&6 |
---|
4472 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4473 | cat >> confdefs.h <<EOF |
---|
4474 | #define $ac_tr_hdr 1 |
---|
4475 | EOF |
---|
4476 | |
---|
4477 | else |
---|
4478 | echo "$ac_t""no" 1>&6 |
---|
4479 | fi |
---|
4480 | done |
---|
4481 | |
---|
4482 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
---|
4483 | strdup __argz_count __argz_stringify __argz_next |
---|
4484 | do |
---|
4485 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4486 | echo "configure:4487: checking for $ac_func" >&5 |
---|
4487 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4488 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4489 | else |
---|
4490 | cat > conftest.$ac_ext <<EOF |
---|
4491 | #line 4492 "configure" |
---|
4492 | #include "confdefs.h" |
---|
4493 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4494 | which can conflict with char $ac_func(); below. */ |
---|
4495 | #include <assert.h> |
---|
4496 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4497 | /* We use char because int might match the return type of a gcc2 |
---|
4498 | builtin and then its argument prototype would still apply. */ |
---|
4499 | char $ac_func(); |
---|
4500 | |
---|
4501 | int main() { |
---|
4502 | |
---|
4503 | /* The GNU C library defines this for functions which it implements |
---|
4504 | to always fail with ENOSYS. Some functions are actually named |
---|
4505 | something starting with __ and the normal name is an alias. */ |
---|
4506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4507 | choke me |
---|
4508 | #else |
---|
4509 | $ac_func(); |
---|
4510 | #endif |
---|
4511 | |
---|
4512 | ; return 0; } |
---|
4513 | EOF |
---|
4514 | if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4515 | rm -rf conftest* |
---|
4516 | eval "ac_cv_func_$ac_func=yes" |
---|
4517 | else |
---|
4518 | echo "configure: failed program was:" >&5 |
---|
4519 | cat conftest.$ac_ext >&5 |
---|
4520 | rm -rf conftest* |
---|
4521 | eval "ac_cv_func_$ac_func=no" |
---|
4522 | fi |
---|
4523 | rm -f conftest* |
---|
4524 | fi |
---|
4525 | |
---|
4526 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4527 | echo "$ac_t""yes" 1>&6 |
---|
4528 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4529 | cat >> confdefs.h <<EOF |
---|
4530 | #define $ac_tr_func 1 |
---|
4531 | EOF |
---|
4532 | |
---|
4533 | else |
---|
4534 | echo "$ac_t""no" 1>&6 |
---|
4535 | fi |
---|
4536 | done |
---|
4537 | |
---|
4538 | |
---|
4539 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
---|
4540 | for ac_func in stpcpy |
---|
4541 | do |
---|
4542 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4543 | echo "configure:4544: checking for $ac_func" >&5 |
---|
4544 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4545 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4546 | else |
---|
4547 | cat > conftest.$ac_ext <<EOF |
---|
4548 | #line 4549 "configure" |
---|
4549 | #include "confdefs.h" |
---|
4550 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4551 | which can conflict with char $ac_func(); below. */ |
---|
4552 | #include <assert.h> |
---|
4553 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4554 | /* We use char because int might match the return type of a gcc2 |
---|
4555 | builtin and then its argument prototype would still apply. */ |
---|
4556 | char $ac_func(); |
---|
4557 | |
---|
4558 | int main() { |
---|
4559 | |
---|
4560 | /* The GNU C library defines this for functions which it implements |
---|
4561 | to always fail with ENOSYS. Some functions are actually named |
---|
4562 | something starting with __ and the normal name is an alias. */ |
---|
4563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4564 | choke me |
---|
4565 | #else |
---|
4566 | $ac_func(); |
---|
4567 | #endif |
---|
4568 | |
---|
4569 | ; return 0; } |
---|
4570 | EOF |
---|
4571 | if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4572 | rm -rf conftest* |
---|
4573 | eval "ac_cv_func_$ac_func=yes" |
---|
4574 | else |
---|
4575 | echo "configure: failed program was:" >&5 |
---|
4576 | cat conftest.$ac_ext >&5 |
---|
4577 | rm -rf conftest* |
---|
4578 | eval "ac_cv_func_$ac_func=no" |
---|
4579 | fi |
---|
4580 | rm -f conftest* |
---|
4581 | fi |
---|
4582 | |
---|
4583 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4584 | echo "$ac_t""yes" 1>&6 |
---|
4585 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4586 | cat >> confdefs.h <<EOF |
---|
4587 | #define $ac_tr_func 1 |
---|
4588 | EOF |
---|
4589 | |
---|
4590 | else |
---|
4591 | echo "$ac_t""no" 1>&6 |
---|
4592 | fi |
---|
4593 | done |
---|
4594 | |
---|
4595 | fi |
---|
4596 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
---|
4597 | cat >> confdefs.h <<\EOF |
---|
4598 | #define HAVE_STPCPY 1 |
---|
4599 | EOF |
---|
4600 | |
---|
4601 | fi |
---|
4602 | |
---|
4603 | if test $ac_cv_header_locale_h = yes; then |
---|
4604 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
---|
4605 | echo "configure:4606: checking for LC_MESSAGES" >&5 |
---|
4606 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
---|
4607 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4608 | else |
---|
4609 | cat > conftest.$ac_ext <<EOF |
---|
4610 | #line 4611 "configure" |
---|
4611 | #include "confdefs.h" |
---|
4612 | #include <locale.h> |
---|
4613 | int main() { |
---|
4614 | return LC_MESSAGES |
---|
4615 | ; return 0; } |
---|
4616 | EOF |
---|
4617 | if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4618 | rm -rf conftest* |
---|
4619 | am_cv_val_LC_MESSAGES=yes |
---|
4620 | else |
---|
4621 | echo "configure: failed program was:" >&5 |
---|
4622 | cat conftest.$ac_ext >&5 |
---|
4623 | rm -rf conftest* |
---|
4624 | am_cv_val_LC_MESSAGES=no |
---|
4625 | fi |
---|
4626 | rm -f conftest* |
---|
4627 | fi |
---|
4628 | |
---|
4629 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
---|
4630 | if test $am_cv_val_LC_MESSAGES = yes; then |
---|
4631 | cat >> confdefs.h <<\EOF |
---|
4632 | #define HAVE_LC_MESSAGES 1 |
---|
4633 | EOF |
---|
4634 | |
---|
4635 | fi |
---|
4636 | fi |
---|
4637 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
---|
4638 | echo "configure:4639: checking whether NLS is requested" >&5 |
---|
4639 | # Check whether --enable-nls or --disable-nls was given. |
---|
4640 | if test "${enable_nls+set}" = set; then |
---|
4641 | enableval="$enable_nls" |
---|
4642 | USE_NLS=$enableval |
---|
4643 | else |
---|
4644 | USE_NLS=yes |
---|
4645 | fi |
---|
4646 | |
---|
4647 | echo "$ac_t""$USE_NLS" 1>&6 |
---|
4648 | |
---|
4649 | |
---|
4650 | USE_INCLUDED_LIBINTL=no |
---|
4651 | |
---|
4652 | if test "$USE_NLS" = "yes"; then |
---|
4653 | # AC_DEFINE(ENABLE_NLS) |
---|
4654 | # AC_MSG_CHECKING([whether included gettext is requested]) |
---|
4655 | # AC_ARG_WITH(included-gettext, |
---|
4656 | # [ --with-included-gettext use the GNU gettext library included here], |
---|
4657 | # nls_cv_force_use_gnu_gettext=$withval, |
---|
4658 | # nls_cv_force_use_gnu_gettext=no) |
---|
4659 | # AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) |
---|
4660 | nls_cv_force_use_gnu_gettext="no" |
---|
4661 | |
---|
4662 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
---|
4663 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
---|
4664 | nls_cv_header_intl= |
---|
4665 | nls_cv_header_libgt= |
---|
4666 | CATOBJEXT=NONE |
---|
4667 | |
---|
4668 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
---|
4669 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
---|
4670 | echo "configure:4671: checking for libintl.h" >&5 |
---|
4671 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4672 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4673 | else |
---|
4674 | cat > conftest.$ac_ext <<EOF |
---|
4675 | #line 4676 "configure" |
---|
4676 | #include "confdefs.h" |
---|
4677 | #include <libintl.h> |
---|
4678 | EOF |
---|
4679 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4680 | { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4681 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4682 | if test -z "$ac_err"; then |
---|
4683 | rm -rf conftest* |
---|
4684 | eval "ac_cv_header_$ac_safe=yes" |
---|
4685 | else |
---|
4686 | echo "$ac_err" >&5 |
---|
4687 | echo "configure: failed program was:" >&5 |
---|
4688 | cat conftest.$ac_ext >&5 |
---|
4689 | rm -rf conftest* |
---|
4690 | eval "ac_cv_header_$ac_safe=no" |
---|
4691 | fi |
---|
4692 | rm -f conftest* |
---|
4693 | fi |
---|
4694 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4695 | echo "$ac_t""yes" 1>&6 |
---|
4696 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
---|
4697 | echo "configure:4698: checking for gettext in libc" >&5 |
---|
4698 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
---|
4699 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4700 | else |
---|
4701 | cat > conftest.$ac_ext <<EOF |
---|
4702 | #line 4703 "configure" |
---|
4703 | #include "confdefs.h" |
---|
4704 | #include <libintl.h> |
---|
4705 | int main() { |
---|
4706 | return (int) gettext ("") |
---|
4707 | ; return 0; } |
---|
4708 | EOF |
---|
4709 | if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4710 | rm -rf conftest* |
---|
4711 | gt_cv_func_gettext_libc=yes |
---|
4712 | else |
---|
4713 | echo "configure: failed program was:" >&5 |
---|
4714 | cat conftest.$ac_ext >&5 |
---|
4715 | rm -rf conftest* |
---|
4716 | gt_cv_func_gettext_libc=no |
---|
4717 | fi |
---|
4718 | rm -f conftest* |
---|
4719 | fi |
---|
4720 | |
---|
4721 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
---|
4722 | |
---|
4723 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
---|
4724 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
---|
4725 | echo "configure:4726: checking for bindtextdomain in -lintl" >&5 |
---|
4726 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
---|
4727 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4728 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4729 | else |
---|
4730 | ac_save_LIBS="$LIBS" |
---|
4731 | LIBS="-lintl $LIBS" |
---|
4732 | cat > conftest.$ac_ext <<EOF |
---|
4733 | #line 4734 "configure" |
---|
4734 | #include "confdefs.h" |
---|
4735 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4736 | /* We use char because int might match the return type of a gcc2 |
---|
4737 | builtin and then its argument prototype would still apply. */ |
---|
4738 | char bindtextdomain(); |
---|
4739 | |
---|
4740 | int main() { |
---|
4741 | bindtextdomain() |
---|
4742 | ; return 0; } |
---|
4743 | EOF |
---|
4744 | if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4745 | rm -rf conftest* |
---|
4746 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4747 | else |
---|
4748 | echo "configure: failed program was:" >&5 |
---|
4749 | cat conftest.$ac_ext >&5 |
---|
4750 | rm -rf conftest* |
---|
4751 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4752 | fi |
---|
4753 | rm -f conftest* |
---|
4754 | LIBS="$ac_save_LIBS" |
---|
4755 | |
---|
4756 | fi |
---|
4757 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4758 | echo "$ac_t""yes" 1>&6 |
---|
4759 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
---|
4760 | echo "configure:4761: checking for gettext in libintl" >&5 |
---|
4761 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
---|
4762 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4763 | else |
---|
4764 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 |
---|
4765 | echo "configure:4766: checking for gettext in -lintl" >&5 |
---|
4766 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
---|
4767 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4768 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4769 | else |
---|
4770 | ac_save_LIBS="$LIBS" |
---|
4771 | LIBS="-lintl $LIBS" |
---|
4772 | cat > conftest.$ac_ext <<EOF |
---|
4773 | #line 4774 "configure" |
---|
4774 | #include "confdefs.h" |
---|
4775 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4776 | /* We use char because int might match the return type of a gcc2 |
---|
4777 | builtin and then its argument prototype would still apply. */ |
---|
4778 | char gettext(); |
---|
4779 | |
---|
4780 | int main() { |
---|
4781 | gettext() |
---|
4782 | ; return 0; } |
---|
4783 | EOF |
---|
4784 | if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4785 | rm -rf conftest* |
---|
4786 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4787 | else |
---|
4788 | echo "configure: failed program was:" >&5 |
---|
4789 | cat conftest.$ac_ext >&5 |
---|
4790 | rm -rf conftest* |
---|
4791 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4792 | fi |
---|
4793 | rm -f conftest* |
---|
4794 | LIBS="$ac_save_LIBS" |
---|
4795 | |
---|
4796 | fi |
---|
4797 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4798 | echo "$ac_t""yes" 1>&6 |
---|
4799 | gt_cv_func_gettext_libintl=yes |
---|
4800 | else |
---|
4801 | echo "$ac_t""no" 1>&6 |
---|
4802 | gt_cv_func_gettext_libintl=no |
---|
4803 | fi |
---|
4804 | |
---|
4805 | fi |
---|
4806 | |
---|
4807 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
---|
4808 | else |
---|
4809 | echo "$ac_t""no" 1>&6 |
---|
4810 | fi |
---|
4811 | |
---|
4812 | fi |
---|
4813 | |
---|
4814 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
---|
4815 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
4816 | cat >> confdefs.h <<\EOF |
---|
4817 | #define HAVE_GETTEXT 1 |
---|
4818 | EOF |
---|
4819 | |
---|
4820 | # Extract the first word of "msgfmt", so it can be a program name with args. |
---|
4821 | set dummy msgfmt; ac_word=$2 |
---|
4822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4823 | echo "configure:4824: checking for $ac_word" >&5 |
---|
4824 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
---|
4825 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4826 | else |
---|
4827 | case "$MSGFMT" in |
---|
4828 | /*) |
---|
4829 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
---|
4830 | ;; |
---|
4831 | *) |
---|
4832 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4833 | for ac_dir in $PATH; do |
---|
4834 | test -z "$ac_dir" && ac_dir=. |
---|
4835 | if test -f $ac_dir/$ac_word; then |
---|
4836 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
---|
4837 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
---|
4838 | break |
---|
4839 | fi |
---|
4840 | fi |
---|
4841 | done |
---|
4842 | IFS="$ac_save_ifs" |
---|
4843 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
---|
4844 | ;; |
---|
4845 | esac |
---|
4846 | fi |
---|
4847 | MSGFMT="$ac_cv_path_MSGFMT" |
---|
4848 | if test -n "$MSGFMT"; then |
---|
4849 | echo "$ac_t""$MSGFMT" 1>&6 |
---|
4850 | else |
---|
4851 | echo "$ac_t""no" 1>&6 |
---|
4852 | fi |
---|
4853 | if test "$MSGFMT" != "no"; then |
---|
4854 | for ac_func in dcgettext |
---|
4855 | do |
---|
4856 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
4857 | echo "configure:4858: checking for $ac_func" >&5 |
---|
4858 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
4859 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4860 | else |
---|
4861 | cat > conftest.$ac_ext <<EOF |
---|
4862 | #line 4863 "configure" |
---|
4863 | #include "confdefs.h" |
---|
4864 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4865 | which can conflict with char $ac_func(); below. */ |
---|
4866 | #include <assert.h> |
---|
4867 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4868 | /* We use char because int might match the return type of a gcc2 |
---|
4869 | builtin and then its argument prototype would still apply. */ |
---|
4870 | char $ac_func(); |
---|
4871 | |
---|
4872 | int main() { |
---|
4873 | |
---|
4874 | /* The GNU C library defines this for functions which it implements |
---|
4875 | to always fail with ENOSYS. Some functions are actually named |
---|
4876 | something starting with __ and the normal name is an alias. */ |
---|
4877 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4878 | choke me |
---|
4879 | #else |
---|
4880 | $ac_func(); |
---|
4881 | #endif |
---|
4882 | |
---|
4883 | ; return 0; } |
---|
4884 | EOF |
---|
4885 | if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4886 | rm -rf conftest* |
---|
4887 | eval "ac_cv_func_$ac_func=yes" |
---|
4888 | else |
---|
4889 | echo "configure: failed program was:" >&5 |
---|
4890 | cat conftest.$ac_ext >&5 |
---|
4891 | rm -rf conftest* |
---|
4892 | eval "ac_cv_func_$ac_func=no" |
---|
4893 | fi |
---|
4894 | rm -f conftest* |
---|
4895 | fi |
---|
4896 | |
---|
4897 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
4898 | echo "$ac_t""yes" 1>&6 |
---|
4899 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
4900 | cat >> confdefs.h <<EOF |
---|
4901 | #define $ac_tr_func 1 |
---|
4902 | EOF |
---|
4903 | |
---|
4904 | else |
---|
4905 | echo "$ac_t""no" 1>&6 |
---|
4906 | fi |
---|
4907 | done |
---|
4908 | |
---|
4909 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
---|
4910 | set dummy gmsgfmt; ac_word=$2 |
---|
4911 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4912 | echo "configure:4913: checking for $ac_word" >&5 |
---|
4913 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
---|
4914 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4915 | else |
---|
4916 | case "$GMSGFMT" in |
---|
4917 | /*) |
---|
4918 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
---|
4919 | ;; |
---|
4920 | ?:/*) |
---|
4921 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
---|
4922 | ;; |
---|
4923 | *) |
---|
4924 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
4925 | ac_dummy="$PATH" |
---|
4926 | for ac_dir in $ac_dummy; do |
---|
4927 | test -z "$ac_dir" && ac_dir=. |
---|
4928 | if test -f $ac_dir/$ac_word; then |
---|
4929 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
---|
4930 | break |
---|
4931 | fi |
---|
4932 | done |
---|
4933 | IFS="$ac_save_ifs" |
---|
4934 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
---|
4935 | ;; |
---|
4936 | esac |
---|
4937 | fi |
---|
4938 | GMSGFMT="$ac_cv_path_GMSGFMT" |
---|
4939 | if test -n "$GMSGFMT"; then |
---|
4940 | echo "$ac_t""$GMSGFMT" 1>&6 |
---|
4941 | else |
---|
4942 | echo "$ac_t""no" 1>&6 |
---|
4943 | fi |
---|
4944 | |
---|
4945 | # Extract the first word of "xgettext", so it can be a program name with args. |
---|
4946 | set dummy xgettext; ac_word=$2 |
---|
4947 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
4948 | echo "configure:4949: checking for $ac_word" >&5 |
---|
4949 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
---|
4950 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4951 | else |
---|
4952 | case "$XGETTEXT" in |
---|
4953 | /*) |
---|
4954 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
---|
4955 | ;; |
---|
4956 | *) |
---|
4957 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
4958 | for ac_dir in $PATH; do |
---|
4959 | test -z "$ac_dir" && ac_dir=. |
---|
4960 | if test -f $ac_dir/$ac_word; then |
---|
4961 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
---|
4962 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
---|
4963 | break |
---|
4964 | fi |
---|
4965 | fi |
---|
4966 | done |
---|
4967 | IFS="$ac_save_ifs" |
---|
4968 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
---|
4969 | ;; |
---|
4970 | esac |
---|
4971 | fi |
---|
4972 | XGETTEXT="$ac_cv_path_XGETTEXT" |
---|
4973 | if test -n "$XGETTEXT"; then |
---|
4974 | echo "$ac_t""$XGETTEXT" 1>&6 |
---|
4975 | else |
---|
4976 | echo "$ac_t""no" 1>&6 |
---|
4977 | fi |
---|
4978 | |
---|
4979 | cat > conftest.$ac_ext <<EOF |
---|
4980 | #line 4981 "configure" |
---|
4981 | #include "confdefs.h" |
---|
4982 | |
---|
4983 | int main() { |
---|
4984 | extern int _nl_msg_cat_cntr; |
---|
4985 | return _nl_msg_cat_cntr |
---|
4986 | ; return 0; } |
---|
4987 | EOF |
---|
4988 | if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4989 | rm -rf conftest* |
---|
4990 | CATOBJEXT=.gmo |
---|
4991 | DATADIRNAME=share |
---|
4992 | else |
---|
4993 | echo "configure: failed program was:" >&5 |
---|
4994 | cat conftest.$ac_ext >&5 |
---|
4995 | rm -rf conftest* |
---|
4996 | CATOBJEXT=.mo |
---|
4997 | DATADIRNAME=lib |
---|
4998 | fi |
---|
4999 | rm -f conftest* |
---|
5000 | INSTOBJEXT=.mo |
---|
5001 | fi |
---|
5002 | fi |
---|
5003 | |
---|
5004 | # Added by Martin Baulig 12/15/98 for libc5 systems |
---|
5005 | if test "$gt_cv_func_gettext_libc" != "yes" \ |
---|
5006 | && test "$gt_cv_func_gettext_libintl" = "yes"; then |
---|
5007 | INTLLIBS=-lintl |
---|
5008 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5009 | fi |
---|
5010 | |
---|
5011 | else |
---|
5012 | echo "$ac_t""no" 1>&6 |
---|
5013 | fi |
---|
5014 | |
---|
5015 | |
---|
5016 | if test "$CATOBJEXT" = "NONE"; then |
---|
5017 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 |
---|
5018 | echo "configure:5019: checking whether catgets can be used" >&5 |
---|
5019 | # Check whether --with-catgets or --without-catgets was given. |
---|
5020 | if test "${with_catgets+set}" = set; then |
---|
5021 | withval="$with_catgets" |
---|
5022 | nls_cv_use_catgets=$withval |
---|
5023 | else |
---|
5024 | nls_cv_use_catgets=no |
---|
5025 | fi |
---|
5026 | |
---|
5027 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 |
---|
5028 | |
---|
5029 | if test "$nls_cv_use_catgets" = "yes"; then |
---|
5030 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 |
---|
5031 | echo "configure:5032: checking for main in -li" >&5 |
---|
5032 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
---|
5033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5034 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5035 | else |
---|
5036 | ac_save_LIBS="$LIBS" |
---|
5037 | LIBS="-li $LIBS" |
---|
5038 | cat > conftest.$ac_ext <<EOF |
---|
5039 | #line 5040 "configure" |
---|
5040 | #include "confdefs.h" |
---|
5041 | |
---|
5042 | int main() { |
---|
5043 | main() |
---|
5044 | ; return 0; } |
---|
5045 | EOF |
---|
5046 | if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5047 | rm -rf conftest* |
---|
5048 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5049 | else |
---|
5050 | echo "configure: failed program was:" >&5 |
---|
5051 | cat conftest.$ac_ext >&5 |
---|
5052 | rm -rf conftest* |
---|
5053 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5054 | fi |
---|
5055 | rm -f conftest* |
---|
5056 | LIBS="$ac_save_LIBS" |
---|
5057 | |
---|
5058 | fi |
---|
5059 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5060 | echo "$ac_t""yes" 1>&6 |
---|
5061 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5062 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5063 | cat >> confdefs.h <<EOF |
---|
5064 | #define $ac_tr_lib 1 |
---|
5065 | EOF |
---|
5066 | |
---|
5067 | LIBS="-li $LIBS" |
---|
5068 | |
---|
5069 | else |
---|
5070 | echo "$ac_t""no" 1>&6 |
---|
5071 | fi |
---|
5072 | |
---|
5073 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 |
---|
5074 | echo "configure:5075: checking for catgets" >&5 |
---|
5075 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
---|
5076 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5077 | else |
---|
5078 | cat > conftest.$ac_ext <<EOF |
---|
5079 | #line 5080 "configure" |
---|
5080 | #include "confdefs.h" |
---|
5081 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5082 | which can conflict with char catgets(); below. */ |
---|
5083 | #include <assert.h> |
---|
5084 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5085 | /* We use char because int might match the return type of a gcc2 |
---|
5086 | builtin and then its argument prototype would still apply. */ |
---|
5087 | char catgets(); |
---|
5088 | |
---|
5089 | int main() { |
---|
5090 | |
---|
5091 | /* The GNU C library defines this for functions which it implements |
---|
5092 | to always fail with ENOSYS. Some functions are actually named |
---|
5093 | something starting with __ and the normal name is an alias. */ |
---|
5094 | #if defined (__stub_catgets) || defined (__stub___catgets) |
---|
5095 | choke me |
---|
5096 | #else |
---|
5097 | catgets(); |
---|
5098 | #endif |
---|
5099 | |
---|
5100 | ; return 0; } |
---|
5101 | EOF |
---|
5102 | if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5103 | rm -rf conftest* |
---|
5104 | eval "ac_cv_func_catgets=yes" |
---|
5105 | else |
---|
5106 | echo "configure: failed program was:" >&5 |
---|
5107 | cat conftest.$ac_ext >&5 |
---|
5108 | rm -rf conftest* |
---|
5109 | eval "ac_cv_func_catgets=no" |
---|
5110 | fi |
---|
5111 | rm -f conftest* |
---|
5112 | fi |
---|
5113 | |
---|
5114 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then |
---|
5115 | echo "$ac_t""yes" 1>&6 |
---|
5116 | cat >> confdefs.h <<\EOF |
---|
5117 | #define HAVE_CATGETS 1 |
---|
5118 | EOF |
---|
5119 | |
---|
5120 | INTLOBJS="\$(CATOBJS)" |
---|
5121 | # Extract the first word of "gencat", so it can be a program name with args. |
---|
5122 | set dummy gencat; ac_word=$2 |
---|
5123 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
5124 | echo "configure:5125: checking for $ac_word" >&5 |
---|
5125 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
---|
5126 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5127 | else |
---|
5128 | case "$GENCAT" in |
---|
5129 | /*) |
---|
5130 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. |
---|
5131 | ;; |
---|
5132 | ?:/*) |
---|
5133 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. |
---|
5134 | ;; |
---|
5135 | *) |
---|
5136 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
5137 | ac_dummy="$PATH" |
---|
5138 | for ac_dir in $ac_dummy; do |
---|
5139 | test -z "$ac_dir" && ac_dir=. |
---|
5140 | if test -f $ac_dir/$ac_word; then |
---|
5141 | ac_cv_path_GENCAT="$ac_dir/$ac_word" |
---|
5142 | break |
---|
5143 | fi |
---|
5144 | done |
---|
5145 | IFS="$ac_save_ifs" |
---|
5146 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" |
---|
5147 | ;; |
---|
5148 | esac |
---|
5149 | fi |
---|
5150 | GENCAT="$ac_cv_path_GENCAT" |
---|
5151 | if test -n "$GENCAT"; then |
---|
5152 | echo "$ac_t""$GENCAT" 1>&6 |
---|
5153 | else |
---|
5154 | echo "$ac_t""no" 1>&6 |
---|
5155 | fi |
---|
5156 | # if test "$GENCAT" != "no"; then |
---|
5157 | # AC_PATH_PROG(GMSGFMT, gmsgfmt, no) |
---|
5158 | # if test "$GMSGFMT" = "no"; then |
---|
5159 | # AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, |
---|
5160 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) |
---|
5161 | # fi |
---|
5162 | # AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
5163 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
5164 | # USE_INCLUDED_LIBINTL=yes |
---|
5165 | # CATOBJEXT=.cat |
---|
5166 | # INSTOBJEXT=.cat |
---|
5167 | # DATADIRNAME=lib |
---|
5168 | # INTLDEPS='$(top_builddir)/intl/libintl.a' |
---|
5169 | # INTLLIBS=$INTLDEPS |
---|
5170 | # LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5171 | # nls_cv_header_intl=intl/libintl.h |
---|
5172 | # nls_cv_header_libgt=intl/libgettext.h |
---|
5173 | # fi |
---|
5174 | |
---|
5175 | else |
---|
5176 | echo "$ac_t""no" 1>&6 |
---|
5177 | fi |
---|
5178 | |
---|
5179 | fi |
---|
5180 | fi |
---|
5181 | |
---|
5182 | if test "$CATOBJEXT" = "NONE"; then |
---|
5183 | nls_cv_use_gnu_gettext=yes |
---|
5184 | fi |
---|
5185 | fi |
---|
5186 | |
---|
5187 | if test "$nls_cv_use_gnu_gettext" != "yes"; then |
---|
5188 | cat >> confdefs.h <<\EOF |
---|
5189 | #define ENABLE_NLS 1 |
---|
5190 | EOF |
---|
5191 | |
---|
5192 | else |
---|
5193 | # Unset this variable since we use the non-zero value as a flag. |
---|
5194 | CATOBJEXT= |
---|
5195 | # dnl Mark actions used to generate GNU NLS library. |
---|
5196 | # INTLOBJS="\$(GETTOBJS)" |
---|
5197 | # AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
---|
5198 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) |
---|
5199 | # AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
---|
5200 | # AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
---|
5201 | # [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
---|
5202 | # AC_SUBST(MSGFMT) |
---|
5203 | # USE_INCLUDED_LIBINTL=yes |
---|
5204 | # CATOBJEXT=.gmo |
---|
5205 | # INSTOBJEXT=.mo |
---|
5206 | # DATADIRNAME=share |
---|
5207 | # INTLDEPS='$(top_builddir)/intl/libintl.a' |
---|
5208 | # INTLLIBS=$INTLDEPS |
---|
5209 | # LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
---|
5210 | # nls_cv_header_intl=intl/libintl.h |
---|
5211 | # nls_cv_header_libgt=intl/libgettext.h |
---|
5212 | fi |
---|
5213 | |
---|
5214 | if test "$XGETTEXT" != ":"; then |
---|
5215 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
---|
5216 | : ; |
---|
5217 | else |
---|
5218 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
---|
5219 | XGETTEXT=":" |
---|
5220 | fi |
---|
5221 | fi |
---|
5222 | |
---|
5223 | # We need to process the po/ directory. |
---|
5224 | POSUB=po |
---|
5225 | else |
---|
5226 | DATADIRNAME=share |
---|
5227 | nls_cv_header_intl=intl/libintl.h |
---|
5228 | nls_cv_header_libgt=intl/libgettext.h |
---|
5229 | fi |
---|
5230 | |
---|
5231 | |
---|
5232 | |
---|
5233 | |
---|
5234 | # # If this is used in GNU gettext we have to set USE_NLS to `yes' |
---|
5235 | # # because some of the sources are only built for this goal. |
---|
5236 | # if test "$PACKAGE" = gettext; then |
---|
5237 | # USE_NLS=yes |
---|
5238 | # USE_INCLUDED_LIBINTL=yes |
---|
5239 | # fi |
---|
5240 | |
---|
5241 | for lang in $ALL_LINGUAS; do |
---|
5242 | GMOFILES="$GMOFILES $lang.gmo" |
---|
5243 | POFILES="$POFILES $lang.po" |
---|
5244 | done |
---|
5245 | |
---|
5246 | |
---|
5247 | |
---|
5248 | |
---|
5249 | |
---|
5250 | |
---|
5251 | |
---|
5252 | |
---|
5253 | |
---|
5254 | |
---|
5255 | |
---|
5256 | |
---|
5257 | |
---|
5258 | |
---|
5259 | if test "x$CATOBJEXT" != "x"; then |
---|
5260 | if test "x$ALL_LINGUAS" = "x"; then |
---|
5261 | LINGUAS= |
---|
5262 | else |
---|
5263 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
---|
5264 | echo "configure:5265: checking for catalogs to be installed" >&5 |
---|
5265 | NEW_LINGUAS= |
---|
5266 | if test "x$LINGUAS" = "x"; then |
---|
5267 | LINGUAS=$ALL_LINGUAS |
---|
5268 | fi |
---|
5269 | for lang in $LINGUAS; do |
---|
5270 | case "$ALL_LINGUAS" in |
---|
5271 | *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
---|
5272 | esac |
---|
5273 | done |
---|
5274 | LINGUAS=$NEW_LINGUAS |
---|
5275 | echo "$ac_t""$LINGUAS" 1>&6 |
---|
5276 | fi |
---|
5277 | |
---|
5278 | if test -n "$LINGUAS"; then |
---|
5279 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
---|
5280 | fi |
---|
5281 | fi |
---|
5282 | |
---|
5283 | if test $ac_cv_header_locale_h = yes; then |
---|
5284 | INCLUDE_LOCALE_H="#include <locale.h>" |
---|
5285 | else |
---|
5286 | INCLUDE_LOCALE_H="\ |
---|
5287 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
---|
5288 | fi |
---|
5289 | |
---|
5290 | |
---|
5291 | test -d intl || mkdir intl |
---|
5292 | if test "$CATOBJEXT" = ".cat"; then |
---|
5293 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
---|
5294 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
---|
5295 | echo "configure:5296: checking for linux/version.h" >&5 |
---|
5296 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5297 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5298 | else |
---|
5299 | cat > conftest.$ac_ext <<EOF |
---|
5300 | #line 5301 "configure" |
---|
5301 | #include "confdefs.h" |
---|
5302 | #include <linux/version.h> |
---|
5303 | EOF |
---|
5304 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5305 | { (eval echo configure:5306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5306 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5307 | if test -z "$ac_err"; then |
---|
5308 | rm -rf conftest* |
---|
5309 | eval "ac_cv_header_$ac_safe=yes" |
---|
5310 | else |
---|
5311 | echo "$ac_err" >&5 |
---|
5312 | echo "configure: failed program was:" >&5 |
---|
5313 | cat conftest.$ac_ext >&5 |
---|
5314 | rm -rf conftest* |
---|
5315 | eval "ac_cv_header_$ac_safe=no" |
---|
5316 | fi |
---|
5317 | rm -f conftest* |
---|
5318 | fi |
---|
5319 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5320 | echo "$ac_t""yes" 1>&6 |
---|
5321 | msgformat=linux |
---|
5322 | else |
---|
5323 | echo "$ac_t""no" 1>&6 |
---|
5324 | msgformat=xopen |
---|
5325 | fi |
---|
5326 | |
---|
5327 | |
---|
5328 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed |
---|
5329 | fi |
---|
5330 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
---|
5331 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed |
---|
5332 | |
---|
5333 | if test "$PACKAGE" = "gettext"; then |
---|
5334 | GT_NO="#NO#" |
---|
5335 | GT_YES= |
---|
5336 | else |
---|
5337 | GT_NO= |
---|
5338 | GT_YES="#YES#" |
---|
5339 | fi |
---|
5340 | |
---|
5341 | |
---|
5342 | |
---|
5343 | MKINSTALLDIRS= |
---|
5344 | if test -n "$ac_aux_dir"; then |
---|
5345 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
---|
5346 | fi |
---|
5347 | if test -z "$MKINSTALLDIRS"; then |
---|
5348 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
---|
5349 | fi |
---|
5350 | |
---|
5351 | |
---|
5352 | l= |
---|
5353 | |
---|
5354 | |
---|
5355 | test -d po || mkdir po |
---|
5356 | if test "x$srcdir" != "x."; then |
---|
5357 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
---|
5358 | posrcprefix="$srcdir/" |
---|
5359 | else |
---|
5360 | posrcprefix="../$srcdir/" |
---|
5361 | fi |
---|
5362 | else |
---|
5363 | posrcprefix="../" |
---|
5364 | fi |
---|
5365 | rm -f po/POTFILES |
---|
5366 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
---|
5367 | < $srcdir/po/POTFILES.in > po/POTFILES |
---|
5368 | |
---|
5369 | # AM_GNOME_GETTEXT above substs $DATADIRNAME |
---|
5370 | # this is the directory where the *.{mo,gmo} files are installed |
---|
5371 | gnomelocaledir='${prefix}/share/locale' |
---|
5372 | |
---|
5373 | |
---|
5374 | |
---|
5375 | |
---|
5376 | |
---|
5377 | |
---|
5378 | for ac_hdr in dlfcn.h dl.h syslog.h tcpd.h |
---|
5379 | do |
---|
5380 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5381 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5382 | echo "configure:5383: checking for $ac_hdr" >&5 |
---|
5383 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5384 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5385 | else |
---|
5386 | cat > conftest.$ac_ext <<EOF |
---|
5387 | #line 5388 "configure" |
---|
5388 | #include "confdefs.h" |
---|
5389 | #include <$ac_hdr> |
---|
5390 | EOF |
---|
5391 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5392 | { (eval echo configure:5393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5393 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5394 | if test -z "$ac_err"; then |
---|
5395 | rm -rf conftest* |
---|
5396 | eval "ac_cv_header_$ac_safe=yes" |
---|
5397 | else |
---|
5398 | echo "$ac_err" >&5 |
---|
5399 | echo "configure: failed program was:" >&5 |
---|
5400 | cat conftest.$ac_ext >&5 |
---|
5401 | rm -rf conftest* |
---|
5402 | eval "ac_cv_header_$ac_safe=no" |
---|
5403 | fi |
---|
5404 | rm -f conftest* |
---|
5405 | fi |
---|
5406 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5407 | echo "$ac_t""yes" 1>&6 |
---|
5408 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5409 | cat >> confdefs.h <<EOF |
---|
5410 | #define $ac_tr_hdr 1 |
---|
5411 | EOF |
---|
5412 | |
---|
5413 | else |
---|
5414 | echo "$ac_t""no" 1>&6 |
---|
5415 | fi |
---|
5416 | done |
---|
5417 | |
---|
5418 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
5419 | echo "configure:5420: checking for dlopen in -ldl" >&5 |
---|
5420 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
5421 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5422 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5423 | else |
---|
5424 | ac_save_LIBS="$LIBS" |
---|
5425 | LIBS="-ldl $LIBS" |
---|
5426 | cat > conftest.$ac_ext <<EOF |
---|
5427 | #line 5428 "configure" |
---|
5428 | #include "confdefs.h" |
---|
5429 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5430 | /* We use char because int might match the return type of a gcc2 |
---|
5431 | builtin and then its argument prototype would still apply. */ |
---|
5432 | char dlopen(); |
---|
5433 | |
---|
5434 | int main() { |
---|
5435 | dlopen() |
---|
5436 | ; return 0; } |
---|
5437 | EOF |
---|
5438 | if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5439 | rm -rf conftest* |
---|
5440 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5441 | else |
---|
5442 | echo "configure: failed program was:" >&5 |
---|
5443 | cat conftest.$ac_ext >&5 |
---|
5444 | rm -rf conftest* |
---|
5445 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5446 | fi |
---|
5447 | rm -f conftest* |
---|
5448 | LIBS="$ac_save_LIBS" |
---|
5449 | |
---|
5450 | fi |
---|
5451 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5452 | echo "$ac_t""yes" 1>&6 |
---|
5453 | DL_LIB="-ldl" |
---|
5454 | else |
---|
5455 | echo "$ac_t""no" 1>&6 |
---|
5456 | |
---|
5457 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
---|
5458 | echo "configure:5459: checking for shl_load in -ldld" >&5 |
---|
5459 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
---|
5460 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5461 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5462 | else |
---|
5463 | ac_save_LIBS="$LIBS" |
---|
5464 | LIBS="-ldld $LIBS" |
---|
5465 | cat > conftest.$ac_ext <<EOF |
---|
5466 | #line 5467 "configure" |
---|
5467 | #include "confdefs.h" |
---|
5468 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5469 | /* We use char because int might match the return type of a gcc2 |
---|
5470 | builtin and then its argument prototype would still apply. */ |
---|
5471 | char shl_load(); |
---|
5472 | |
---|
5473 | int main() { |
---|
5474 | shl_load() |
---|
5475 | ; return 0; } |
---|
5476 | EOF |
---|
5477 | if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5478 | rm -rf conftest* |
---|
5479 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5480 | else |
---|
5481 | echo "configure: failed program was:" >&5 |
---|
5482 | cat conftest.$ac_ext >&5 |
---|
5483 | rm -rf conftest* |
---|
5484 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5485 | fi |
---|
5486 | rm -f conftest* |
---|
5487 | LIBS="$ac_save_LIBS" |
---|
5488 | |
---|
5489 | fi |
---|
5490 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5491 | echo "$ac_t""yes" 1>&6 |
---|
5492 | DL_LIB="-ldld" |
---|
5493 | else |
---|
5494 | echo "$ac_t""no" 1>&6 |
---|
5495 | |
---|
5496 | for ac_func in dlopen |
---|
5497 | do |
---|
5498 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
5499 | echo "configure:5500: checking for $ac_func" >&5 |
---|
5500 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
5501 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5502 | else |
---|
5503 | cat > conftest.$ac_ext <<EOF |
---|
5504 | #line 5505 "configure" |
---|
5505 | #include "confdefs.h" |
---|
5506 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5507 | which can conflict with char $ac_func(); below. */ |
---|
5508 | #include <assert.h> |
---|
5509 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5510 | /* We use char because int might match the return type of a gcc2 |
---|
5511 | builtin and then its argument prototype would still apply. */ |
---|
5512 | char $ac_func(); |
---|
5513 | |
---|
5514 | int main() { |
---|
5515 | |
---|
5516 | /* The GNU C library defines this for functions which it implements |
---|
5517 | to always fail with ENOSYS. Some functions are actually named |
---|
5518 | something starting with __ and the normal name is an alias. */ |
---|
5519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5520 | choke me |
---|
5521 | #else |
---|
5522 | $ac_func(); |
---|
5523 | #endif |
---|
5524 | |
---|
5525 | ; return 0; } |
---|
5526 | EOF |
---|
5527 | if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5528 | rm -rf conftest* |
---|
5529 | eval "ac_cv_func_$ac_func=yes" |
---|
5530 | else |
---|
5531 | echo "configure: failed program was:" >&5 |
---|
5532 | cat conftest.$ac_ext >&5 |
---|
5533 | rm -rf conftest* |
---|
5534 | eval "ac_cv_func_$ac_func=no" |
---|
5535 | fi |
---|
5536 | rm -f conftest* |
---|
5537 | fi |
---|
5538 | |
---|
5539 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
5540 | echo "$ac_t""yes" 1>&6 |
---|
5541 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
5542 | cat >> confdefs.h <<EOF |
---|
5543 | #define $ac_tr_func 1 |
---|
5544 | EOF |
---|
5545 | DL_LIB="" |
---|
5546 | else |
---|
5547 | echo "$ac_t""no" 1>&6 |
---|
5548 | { echo "configure: error: Dynamic linking is not available on this platform. Some |
---|
5549 | apps" 1>&2; exit 1; } |
---|
5550 | fi |
---|
5551 | done |
---|
5552 | |
---|
5553 | |
---|
5554 | fi |
---|
5555 | |
---|
5556 | fi |
---|
5557 | |
---|
5558 | |
---|
5559 | |
---|
5560 | for dir in `(IFS=:; for i in $PATH; do echo $i ; done)` ; do |
---|
5561 | if test -f $dir/orbit-idl ; then |
---|
5562 | orbit_prefix=`echo $dir | sed 's%/bin$%%' |sed 's%/bin/$%%'` |
---|
5563 | break |
---|
5564 | fi |
---|
5565 | done |
---|
5566 | |
---|
5567 | ORB_LIBS="$ORBIT_LIBS" |
---|
5568 | ORB_CFLAGS="$ORBIT_CFLAGS" |
---|
5569 | |
---|
5570 | |
---|
5571 | |
---|
5572 | |
---|
5573 | |
---|
5574 | echo $ac_n "checking for CApplet library""... $ac_c" 1>&6 |
---|
5575 | echo "configure:5576: checking for CApplet library" >&5 |
---|
5576 | vers=`$GNOME_CONFIG --modversion capplet` |
---|
5577 | case "x$vers" in |
---|
5578 | xcapplet-*) |
---|
5579 | echo "$ac_t""found" 1>&6 |
---|
5580 | ;; |
---|
5581 | *) |
---|
5582 | { echo "configure: error: Did not find CApplet library" 1>&2; exit 1; } |
---|
5583 | ;; |
---|
5584 | esac |
---|
5585 | |
---|
5586 | |
---|
5587 | |
---|
5588 | |
---|
5589 | echo $ac_n "checking for Configure Easter Egg version >= 3.14""... $ac_c" 1>&6 |
---|
5590 | echo "configure:5591: checking for Configure Easter Egg version >= 3.14" >&5 |
---|
5591 | echo "$ac_t""found" 1>&6 |
---|
5592 | |
---|
5593 | echo $ac_n "checking for GdkPixbuf library >= $GDK_PIXBUF_REQUIRED""... $ac_c" 1>&6 |
---|
5594 | echo "configure:5595: checking for GdkPixbuf library >= $GDK_PIXBUF_REQUIRED" >&5 |
---|
5595 | PIXBUF_CFLAGS=`$GNOME_CONFIG --cflags gdk_pixbuf` |
---|
5596 | PIXBUF_LIBS=`$GNOME_CONFIG --libs gdk_pixbuf` |
---|
5597 | if test "x$PIXBUF_CFLAGS" != x ; then |
---|
5598 | vers=`gdk-pixbuf-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` |
---|
5599 | if test "$vers" -ge 0007000; then |
---|
5600 | echo "$ac_t""found" 1>&6 |
---|
5601 | else |
---|
5602 | { echo "configure: error: You need at least GdkPixbuf version 0.7.0 for the panel" 1>&2; exit 1; } |
---|
5603 | fi |
---|
5604 | else |
---|
5605 | { echo "configure: error: Did not find GdkPixbuf installed" 1>&2; exit 1; } |
---|
5606 | fi |
---|
5607 | |
---|
5608 | |
---|
5609 | |
---|
5610 | |
---|
5611 | CANVAS_PIXBUF_CFLAGS=`$GNOME_CONFIG --cflags gnomecanvaspixbuf` |
---|
5612 | CANVAS_PIXBUF_LIBS=`$GNOME_CONFIG --libs gnomecanvaspixbuf` |
---|
5613 | |
---|
5614 | |
---|
5615 | if test "x$CANVAS_PIXBUF_CFLAGS" = x ; then |
---|
5616 | { echo "configure: error: GnomeCanvasPixbuf is required for gnome-about. |
---|
5617 | This is contained in the gdk-pixbuf module" 1>&2; exit 1; } |
---|
5618 | fi |
---|
5619 | |
---|
5620 | ZVT_LIBS=`$GNOME_CONFIG --libs zvt` |
---|
5621 | |
---|
5622 | |
---|
5623 | echo $ac_n "checking for Glade libraries >= $LIBGLADE_REQUIRED""... $ac_c" 1>&6 |
---|
5624 | echo "configure:5625: checking for Glade libraries >= $LIBGLADE_REQUIRED" >&5 |
---|
5625 | libglade_ok=no |
---|
5626 | if gnome-config --libs libglade > /dev/null 2>&1; then |
---|
5627 | verstxt=`gnome-config --modversion libglade` |
---|
5628 | vers=`echo "$verstxt" | awk -F. '{ printf "%d", $1 * 1000 + $2;}'` |
---|
5629 | if test "$vers" -ge 14; then |
---|
5630 | echo "$ac_t""$marker_ok found $verstxt" 1>&6 |
---|
5631 | libglade_ok=yes |
---|
5632 | else |
---|
5633 | echo "$ac_t""$marker_fail found only $verstxt" 1>&6 |
---|
5634 | fi |
---|
5635 | else |
---|
5636 | echo "$ac_t""$marker_fail not found" 1>&6 |
---|
5637 | fi |
---|
5638 | if test "$libglade_ok" = no; then |
---|
5639 | { echo "configure: error: You need at least libglade 0.14 for this version of gnome-core" 1>&2; exit 1; } |
---|
5640 | fi |
---|
5641 | unset libglade_ok |
---|
5642 | GT_LIBS="libglade zvt gnorba gnomeui" |
---|
5643 | GNOME_TERMINAL_LIBS=`gnome-config --libs $GT_LIBS` |
---|
5644 | GNOME_TERMINAL_CFLAGS=`gnome-config --cflags $GT_LIBS` |
---|
5645 | |
---|
5646 | |
---|
5647 | |
---|
5648 | |
---|
5649 | |
---|
5650 | |
---|
5651 | if test "$GNOME_HAVE_SM" = true; then |
---|
5652 | SESSION_TRUE= |
---|
5653 | SESSION_FALSE='#' |
---|
5654 | else |
---|
5655 | SESSION_TRUE='#' |
---|
5656 | SESSION_FALSE= |
---|
5657 | fi |
---|
5658 | |
---|
5659 | echo $ac_n "checking "whether to use TCP wrappers"""... $ac_c" 1>&6 |
---|
5660 | echo "configure:5661: checking "whether to use TCP wrappers"" >&5 |
---|
5661 | LIBWRAP_PATH="" |
---|
5662 | for I in $LDFLAGS $LIBS -L/usr/lib -L/usr/local/lib; do |
---|
5663 | case "$I" in |
---|
5664 | -L*) |
---|
5665 | THEFILE="`echo $I | sed -e 's,^-L,,'`" |
---|
5666 | echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5 |
---|
5667 | if test -f $THEFILE/libwrap.a; then |
---|
5668 | LIBWRAP_PATH="$THEFILE" |
---|
5669 | echo "Found in $LIBWRAP_PATH" 1>&5 |
---|
5670 | break |
---|
5671 | fi |
---|
5672 | esac |
---|
5673 | done |
---|
5674 | if test -n "$LIBWRAP_PATH"; then |
---|
5675 | echo "$ac_t""yes" 1>&6 |
---|
5676 | else |
---|
5677 | echo "$ac_t""no" 1>&6 |
---|
5678 | fi |
---|
5679 | |
---|
5680 | if test -n "$LIBWRAP_PATH"; then |
---|
5681 | nm $LIBWRAP_PATH/libwrap.* | grep 'T setenv' && LIBWRAP_PATH="" |
---|
5682 | if test -z "$LIBWRAP_PATH"; then |
---|
5683 | echo "*********************************************************" |
---|
5684 | echo " You have a broken TCP wrappers library (setenv included)" |
---|
5685 | echo " Please get the latest TCP wrappers package from your OS" |
---|
5686 | echo " vendor, or recompile TCP wrappers to not include a" |
---|
5687 | echo " setenv() implementation." |
---|
5688 | echo |
---|
5689 | echo "Not using TCP wrappers after all." |
---|
5690 | echo "*********************************************************" |
---|
5691 | fi |
---|
5692 | fi |
---|
5693 | if test "$ac_cv_header_syslog_h" != yes || test "$ac_cv_header_tcpd_h" != yes; then |
---|
5694 | echo "Resetting $LIBWRAP_PATH because syslog is $ac_cv_header_syslog_h and tcpd is $ac_cv_header_tcpd_h" 1>&5 |
---|
5695 | LIBWRAP_PATH="" |
---|
5696 | fi |
---|
5697 | |
---|
5698 | LIBWRAP_NSL= |
---|
5699 | if test -n "$LIBWRAP_PATH"; then |
---|
5700 | echo $ac_n "checking whether -lwrap requires -lnsl""... $ac_c" 1>&6 |
---|
5701 | echo "configure:5702: checking whether -lwrap requires -lnsl" >&5 |
---|
5702 | ORIG_LIBS="$LIBS" |
---|
5703 | LIBS="-L$LIBWRAP_PATH -lwrap $LIBS" |
---|
5704 | cat > conftest.$ac_ext <<EOF |
---|
5705 | #line 5706 "configure" |
---|
5706 | #include "confdefs.h" |
---|
5707 | |
---|
5708 | extern int hosts_access; |
---|
5709 | int allow_severity, deny_severity; |
---|
5710 | |
---|
5711 | int main() { |
---|
5712 | return hosts_access; |
---|
5713 | ; return 0; } |
---|
5714 | EOF |
---|
5715 | if { (eval echo configure:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5716 | : |
---|
5717 | else |
---|
5718 | echo "configure: failed program was:" >&5 |
---|
5719 | cat conftest.$ac_ext >&5 |
---|
5720 | rm -rf conftest* |
---|
5721 | |
---|
5722 | OLD_LIBS="$LIBS" |
---|
5723 | LIBS="$LIBS -lnsl" |
---|
5724 | cat > conftest.$ac_ext <<EOF |
---|
5725 | #line 5726 "configure" |
---|
5726 | #include "confdefs.h" |
---|
5727 | |
---|
5728 | extern int hosts_access; |
---|
5729 | int allow_severity, deny_severity; |
---|
5730 | |
---|
5731 | int main() { |
---|
5732 | return hosts_access; |
---|
5733 | ; return 0; } |
---|
5734 | EOF |
---|
5735 | if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5736 | rm -rf conftest* |
---|
5737 | LIBWRAP_NSL="-lnsl" |
---|
5738 | else |
---|
5739 | echo "configure: failed program was:" >&5 |
---|
5740 | cat conftest.$ac_ext >&5 |
---|
5741 | rm -rf conftest* |
---|
5742 | LIBWRAP_PATH="" |
---|
5743 | fi |
---|
5744 | rm -f conftest* |
---|
5745 | LIBS="$OLD_LIBS" |
---|
5746 | |
---|
5747 | fi |
---|
5748 | rm -f conftest* |
---|
5749 | LIBS="$ORIG_LIBS" |
---|
5750 | if test -n "$LIB_NSL"; then |
---|
5751 | echo "$ac_t""yes" 1>&6 |
---|
5752 | LIBS="$LIBS $LIB_NSL" |
---|
5753 | else |
---|
5754 | echo "$ac_t""no" 1>&6 |
---|
5755 | fi |
---|
5756 | fi |
---|
5757 | LIBWRAP_LIBS= |
---|
5758 | if test -n "$LIBWRAP_PATH"; then |
---|
5759 | LIBWRAP_LIBS="-L$LIBWRAP_PATH -lwrap $LIBWRAP_NSL" |
---|
5760 | cat >> confdefs.h <<\EOF |
---|
5761 | #define HAVE_HOSTS_ACCESS 1 |
---|
5762 | EOF |
---|
5763 | |
---|
5764 | fi |
---|
5765 | |
---|
5766 | |
---|
5767 | # Check whether --with-window-manager or --without-window-manager was given. |
---|
5768 | if test "${with_window_manager+set}" = set; then |
---|
5769 | withval="$with_window_manager" |
---|
5770 | |
---|
5771 | WINDOW_MANAGER="$with_window_manager" |
---|
5772 | else |
---|
5773 | |
---|
5774 | WINDOW_MANAGER=gnome-wm |
---|
5775 | fi |
---|
5776 | |
---|
5777 | |
---|
5778 | |
---|
5779 | |
---|
5780 | |
---|
5781 | # Check whether --with-gtkhtml or --without-gtkhtml was given. |
---|
5782 | if test "${with_gtkhtml+set}" = set; then |
---|
5783 | withval="$with_gtkhtml" |
---|
5784 | |
---|
5785 | GTK_HTML_PREFIX="$with_gtkhtml" |
---|
5786 | else |
---|
5787 | |
---|
5788 | GTK_HTML_PREFIX=`$GNOME_CONFIG --prefix` |
---|
5789 | fi |
---|
5790 | |
---|
5791 | |
---|
5792 | |
---|
5793 | # Check whether --with-gnome-print or --without-gnome-print was given. |
---|
5794 | if test "${with_gnome_print+set}" = set; then |
---|
5795 | withval="$with_gnome_print" |
---|
5796 | |
---|
5797 | GNOME_PRINT_PREFIX="$with_gnome_print" |
---|
5798 | else |
---|
5799 | |
---|
5800 | GNOME_PRINT_PREFIX=`$GNOME_CONFIG --prefix` |
---|
5801 | fi |
---|
5802 | |
---|
5803 | |
---|
5804 | |
---|
5805 | help_use_gtkhtml=false |
---|
5806 | |
---|
5807 | CPPFLAGS_save=$CPPFLAGS |
---|
5808 | LDFLAGS_save=$LDFLAGS |
---|
5809 | CPPFLAGS=`$GNOME_CONFIG --cflags gtkhtml` |
---|
5810 | LDFLAGS=`$GNOME_CONFIG --libs gtkhtml` |
---|
5811 | |
---|
5812 | lib_gtkhtml=false |
---|
5813 | echo $ac_n "checking for gtk_html_construct in -lgtkhtml""... $ac_c" 1>&6 |
---|
5814 | echo "configure:5815: checking for gtk_html_construct in -lgtkhtml" >&5 |
---|
5815 | ac_lib_var=`echo gtkhtml'_'gtk_html_construct | sed 'y%./+-%__p_%'` |
---|
5816 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5817 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5818 | else |
---|
5819 | ac_save_LIBS="$LIBS" |
---|
5820 | LIBS="-lgtkhtml $LIBS" |
---|
5821 | cat > conftest.$ac_ext <<EOF |
---|
5822 | #line 5823 "configure" |
---|
5823 | #include "confdefs.h" |
---|
5824 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5825 | /* We use char because int might match the return type of a gcc2 |
---|
5826 | builtin and then its argument prototype would still apply. */ |
---|
5827 | char gtk_html_construct(); |
---|
5828 | |
---|
5829 | int main() { |
---|
5830 | gtk_html_construct() |
---|
5831 | ; return 0; } |
---|
5832 | EOF |
---|
5833 | if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5834 | rm -rf conftest* |
---|
5835 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5836 | else |
---|
5837 | echo "configure: failed program was:" >&5 |
---|
5838 | cat conftest.$ac_ext >&5 |
---|
5839 | rm -rf conftest* |
---|
5840 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5841 | fi |
---|
5842 | rm -f conftest* |
---|
5843 | LIBS="$ac_save_LIBS" |
---|
5844 | |
---|
5845 | fi |
---|
5846 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5847 | echo "$ac_t""yes" 1>&6 |
---|
5848 | lib_gtkhtml=true |
---|
5849 | else |
---|
5850 | echo "$ac_t""no" 1>&6 |
---|
5851 | |
---|
5852 | echo "configure: warning: Recent enough GtkHTML library not found (using GtkXmHTML) |
---|
5853 | " 1>&2 |
---|
5854 | |
---|
5855 | fi |
---|
5856 | |
---|
5857 | |
---|
5858 | CPPFLAGS=$CPPFLAGS_save |
---|
5859 | LDFLAGS=$LDFLAGS_save |
---|
5860 | |
---|
5861 | # Check whether --enable-gtkhtml-help or --disable-gtkhtml-help was given. |
---|
5862 | if test "${enable_gtkhtml_help+set}" = set; then |
---|
5863 | enableval="$enable_gtkhtml_help" |
---|
5864 | gtkhtml_enabled="$enableval" |
---|
5865 | else |
---|
5866 | gtkhtml_enabled=no |
---|
5867 | fi |
---|
5868 | |
---|
5869 | |
---|
5870 | if test "x$gtkhtml_enabled" = "xyes" ; then |
---|
5871 | if test "x$lib_gtkhtml" = "xtrue" ; then |
---|
5872 | echo $ac_n "checking for static libgtkhtml""... $ac_c" 1>&6 |
---|
5873 | echo "configure:5874: checking for static libgtkhtml" >&5 |
---|
5874 | if test -e $GTK_HTML_PREFIX/lib/libgtkhtml.a ; then |
---|
5875 | echo "$ac_t""yes" 1>&6 |
---|
5876 | echo $ac_n "checking for static libgnomeprint""... $ac_c" 1>&6 |
---|
5877 | echo "configure:5878: checking for static libgnomeprint" >&5 |
---|
5878 | if test -e $GNOME_PRINT_PREFIX/lib/libgnomeprint.a ; then |
---|
5879 | echo "$ac_t""yes" 1>&6 |
---|
5880 | help_use_gtkhtml=true |
---|
5881 | else |
---|
5882 | echo "$ac_t""no" 1>&6 |
---|
5883 | fi |
---|
5884 | else |
---|
5885 | echo "$ac_t""no" 1>&6 |
---|
5886 | fi |
---|
5887 | fi |
---|
5888 | fi |
---|
5889 | |
---|
5890 | echo $ac_n "checking which HTML widget to use""... $ac_c" 1>&6 |
---|
5891 | echo "configure:5892: checking which HTML widget to use" >&5 |
---|
5892 | if test "x$help_use_gtkhtml" = "xtrue" ; then |
---|
5893 | echo "$ac_t""GtkHTML" 1>&6 |
---|
5894 | else |
---|
5895 | echo "$ac_t""GtkXmHTML" 1>&6 |
---|
5896 | fi |
---|
5897 | |
---|
5898 | |
---|
5899 | |
---|
5900 | if test x$help_use_gtkhtml = xtrue; then |
---|
5901 | HELP_USE_GTKHTML_TRUE= |
---|
5902 | HELP_USE_GTKHTML_FALSE='#' |
---|
5903 | else |
---|
5904 | HELP_USE_GTKHTML_TRUE='#' |
---|
5905 | HELP_USE_GTKHTML_FALSE= |
---|
5906 | fi |
---|
5907 | |
---|
5908 | oLIBS="$LIBS" |
---|
5909 | RES_LIBS= |
---|
5910 | # the following two are covered by X11 too. If inet_aton is found in |
---|
5911 | # plain libc, -lsocket or -lnsl, RES_LIBS will be empty. |
---|
5912 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
---|
5913 | echo "configure:5914: checking for connect" >&5 |
---|
5914 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
---|
5915 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5916 | else |
---|
5917 | cat > conftest.$ac_ext <<EOF |
---|
5918 | #line 5919 "configure" |
---|
5919 | #include "confdefs.h" |
---|
5920 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5921 | which can conflict with char connect(); below. */ |
---|
5922 | #include <assert.h> |
---|
5923 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5924 | /* We use char because int might match the return type of a gcc2 |
---|
5925 | builtin and then its argument prototype would still apply. */ |
---|
5926 | char connect(); |
---|
5927 | |
---|
5928 | int main() { |
---|
5929 | |
---|
5930 | /* The GNU C library defines this for functions which it implements |
---|
5931 | to always fail with ENOSYS. Some functions are actually named |
---|
5932 | something starting with __ and the normal name is an alias. */ |
---|
5933 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
5934 | choke me |
---|
5935 | #else |
---|
5936 | connect(); |
---|
5937 | #endif |
---|
5938 | |
---|
5939 | ; return 0; } |
---|
5940 | EOF |
---|
5941 | if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5942 | rm -rf conftest* |
---|
5943 | eval "ac_cv_func_connect=yes" |
---|
5944 | else |
---|
5945 | echo "configure: failed program was:" >&5 |
---|
5946 | cat conftest.$ac_ext >&5 |
---|
5947 | rm -rf conftest* |
---|
5948 | eval "ac_cv_func_connect=no" |
---|
5949 | fi |
---|
5950 | rm -f conftest* |
---|
5951 | fi |
---|
5952 | |
---|
5953 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
---|
5954 | echo "$ac_t""yes" 1>&6 |
---|
5955 | : |
---|
5956 | else |
---|
5957 | echo "$ac_t""no" 1>&6 |
---|
5958 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
---|
5959 | echo "configure:5960: checking for connect in -lsocket" >&5 |
---|
5960 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
---|
5961 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5962 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5963 | else |
---|
5964 | ac_save_LIBS="$LIBS" |
---|
5965 | LIBS="-lsocket $LIBS" |
---|
5966 | cat > conftest.$ac_ext <<EOF |
---|
5967 | #line 5968 "configure" |
---|
5968 | #include "confdefs.h" |
---|
5969 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5970 | /* We use char because int might match the return type of a gcc2 |
---|
5971 | builtin and then its argument prototype would still apply. */ |
---|
5972 | char connect(); |
---|
5973 | |
---|
5974 | int main() { |
---|
5975 | connect() |
---|
5976 | ; return 0; } |
---|
5977 | EOF |
---|
5978 | if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5979 | rm -rf conftest* |
---|
5980 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5981 | else |
---|
5982 | echo "configure: failed program was:" >&5 |
---|
5983 | cat conftest.$ac_ext >&5 |
---|
5984 | rm -rf conftest* |
---|
5985 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5986 | fi |
---|
5987 | rm -f conftest* |
---|
5988 | LIBS="$ac_save_LIBS" |
---|
5989 | |
---|
5990 | fi |
---|
5991 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5992 | echo "$ac_t""yes" 1>&6 |
---|
5993 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5994 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5995 | cat >> confdefs.h <<EOF |
---|
5996 | #define $ac_tr_lib 1 |
---|
5997 | EOF |
---|
5998 | |
---|
5999 | LIBS="-lsocket $LIBS" |
---|
6000 | |
---|
6001 | else |
---|
6002 | echo "$ac_t""no" 1>&6 |
---|
6003 | fi |
---|
6004 | |
---|
6005 | fi |
---|
6006 | |
---|
6007 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
6008 | echo "configure:6009: checking for gethostbyname" >&5 |
---|
6009 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
6010 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6011 | else |
---|
6012 | cat > conftest.$ac_ext <<EOF |
---|
6013 | #line 6014 "configure" |
---|
6014 | #include "confdefs.h" |
---|
6015 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6016 | which can conflict with char gethostbyname(); below. */ |
---|
6017 | #include <assert.h> |
---|
6018 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6019 | /* We use char because int might match the return type of a gcc2 |
---|
6020 | builtin and then its argument prototype would still apply. */ |
---|
6021 | char gethostbyname(); |
---|
6022 | |
---|
6023 | int main() { |
---|
6024 | |
---|
6025 | /* The GNU C library defines this for functions which it implements |
---|
6026 | to always fail with ENOSYS. Some functions are actually named |
---|
6027 | something starting with __ and the normal name is an alias. */ |
---|
6028 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
6029 | choke me |
---|
6030 | #else |
---|
6031 | gethostbyname(); |
---|
6032 | #endif |
---|
6033 | |
---|
6034 | ; return 0; } |
---|
6035 | EOF |
---|
6036 | if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6037 | rm -rf conftest* |
---|
6038 | eval "ac_cv_func_gethostbyname=yes" |
---|
6039 | else |
---|
6040 | echo "configure: failed program was:" >&5 |
---|
6041 | cat conftest.$ac_ext >&5 |
---|
6042 | rm -rf conftest* |
---|
6043 | eval "ac_cv_func_gethostbyname=no" |
---|
6044 | fi |
---|
6045 | rm -f conftest* |
---|
6046 | fi |
---|
6047 | |
---|
6048 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
6049 | echo "$ac_t""yes" 1>&6 |
---|
6050 | : |
---|
6051 | else |
---|
6052 | echo "$ac_t""no" 1>&6 |
---|
6053 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
6054 | echo "configure:6055: checking for gethostbyname in -lnsl" >&5 |
---|
6055 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
6056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6057 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6058 | else |
---|
6059 | ac_save_LIBS="$LIBS" |
---|
6060 | LIBS="-lnsl $LIBS" |
---|
6061 | cat > conftest.$ac_ext <<EOF |
---|
6062 | #line 6063 "configure" |
---|
6063 | #include "confdefs.h" |
---|
6064 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6065 | /* We use char because int might match the return type of a gcc2 |
---|
6066 | builtin and then its argument prototype would still apply. */ |
---|
6067 | char gethostbyname(); |
---|
6068 | |
---|
6069 | int main() { |
---|
6070 | gethostbyname() |
---|
6071 | ; return 0; } |
---|
6072 | EOF |
---|
6073 | if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6074 | rm -rf conftest* |
---|
6075 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6076 | else |
---|
6077 | echo "configure: failed program was:" >&5 |
---|
6078 | cat conftest.$ac_ext >&5 |
---|
6079 | rm -rf conftest* |
---|
6080 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6081 | fi |
---|
6082 | rm -f conftest* |
---|
6083 | LIBS="$ac_save_LIBS" |
---|
6084 | |
---|
6085 | fi |
---|
6086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6087 | echo "$ac_t""yes" 1>&6 |
---|
6088 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
6089 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
6090 | cat >> confdefs.h <<EOF |
---|
6091 | #define $ac_tr_lib 1 |
---|
6092 | EOF |
---|
6093 | |
---|
6094 | LIBS="-lnsl $LIBS" |
---|
6095 | |
---|
6096 | else |
---|
6097 | echo "$ac_t""no" 1>&6 |
---|
6098 | fi |
---|
6099 | |
---|
6100 | fi |
---|
6101 | |
---|
6102 | echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 |
---|
6103 | echo "configure:6104: checking for inet_aton" >&5 |
---|
6104 | if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then |
---|
6105 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6106 | else |
---|
6107 | cat > conftest.$ac_ext <<EOF |
---|
6108 | #line 6109 "configure" |
---|
6109 | #include "confdefs.h" |
---|
6110 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6111 | which can conflict with char inet_aton(); below. */ |
---|
6112 | #include <assert.h> |
---|
6113 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6114 | /* We use char because int might match the return type of a gcc2 |
---|
6115 | builtin and then its argument prototype would still apply. */ |
---|
6116 | char inet_aton(); |
---|
6117 | |
---|
6118 | int main() { |
---|
6119 | |
---|
6120 | /* The GNU C library defines this for functions which it implements |
---|
6121 | to always fail with ENOSYS. Some functions are actually named |
---|
6122 | something starting with __ and the normal name is an alias. */ |
---|
6123 | #if defined (__stub_inet_aton) || defined (__stub___inet_aton) |
---|
6124 | choke me |
---|
6125 | #else |
---|
6126 | inet_aton(); |
---|
6127 | #endif |
---|
6128 | |
---|
6129 | ; return 0; } |
---|
6130 | EOF |
---|
6131 | if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6132 | rm -rf conftest* |
---|
6133 | eval "ac_cv_func_inet_aton=yes" |
---|
6134 | else |
---|
6135 | echo "configure: failed program was:" >&5 |
---|
6136 | cat conftest.$ac_ext >&5 |
---|
6137 | rm -rf conftest* |
---|
6138 | eval "ac_cv_func_inet_aton=no" |
---|
6139 | fi |
---|
6140 | rm -f conftest* |
---|
6141 | fi |
---|
6142 | |
---|
6143 | if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then |
---|
6144 | echo "$ac_t""yes" 1>&6 |
---|
6145 | : |
---|
6146 | else |
---|
6147 | echo "$ac_t""no" 1>&6 |
---|
6148 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 |
---|
6149 | echo "configure:6150: checking for inet_aton in -lresolv" >&5 |
---|
6150 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
---|
6151 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6152 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6153 | else |
---|
6154 | ac_save_LIBS="$LIBS" |
---|
6155 | LIBS="-lresolv $LIBS" |
---|
6156 | cat > conftest.$ac_ext <<EOF |
---|
6157 | #line 6158 "configure" |
---|
6158 | #include "confdefs.h" |
---|
6159 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6160 | /* We use char because int might match the return type of a gcc2 |
---|
6161 | builtin and then its argument prototype would still apply. */ |
---|
6162 | char inet_aton(); |
---|
6163 | |
---|
6164 | int main() { |
---|
6165 | inet_aton() |
---|
6166 | ; return 0; } |
---|
6167 | EOF |
---|
6168 | if { (eval echo configure:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6169 | rm -rf conftest* |
---|
6170 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6171 | else |
---|
6172 | echo "configure: failed program was:" >&5 |
---|
6173 | cat conftest.$ac_ext >&5 |
---|
6174 | rm -rf conftest* |
---|
6175 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6176 | fi |
---|
6177 | rm -f conftest* |
---|
6178 | LIBS="$ac_save_LIBS" |
---|
6179 | |
---|
6180 | fi |
---|
6181 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6182 | echo "$ac_t""yes" 1>&6 |
---|
6183 | RES_LIBS="-lresolv" |
---|
6184 | else |
---|
6185 | echo "$ac_t""no" 1>&6 |
---|
6186 | fi |
---|
6187 | |
---|
6188 | fi |
---|
6189 | |
---|
6190 | |
---|
6191 | LIBS="$oLIBS" |
---|
6192 | |
---|
6193 | oLIBS="$LIBS" |
---|
6194 | LIBS="$GNOMEUI_LIBS $GNOME_LIBDIR $ZVT_LIBS" |
---|
6195 | echo $ac_n "checking for zvt_term_reset""... $ac_c" 1>&6 |
---|
6196 | echo "configure:6197: checking for zvt_term_reset" >&5 |
---|
6197 | if eval "test \"`echo '$''{'ac_cv_func_zvt_term_reset'+set}'`\" = set"; then |
---|
6198 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6199 | else |
---|
6200 | cat > conftest.$ac_ext <<EOF |
---|
6201 | #line 6202 "configure" |
---|
6202 | #include "confdefs.h" |
---|
6203 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6204 | which can conflict with char zvt_term_reset(); below. */ |
---|
6205 | #include <assert.h> |
---|
6206 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6207 | /* We use char because int might match the return type of a gcc2 |
---|
6208 | builtin and then its argument prototype would still apply. */ |
---|
6209 | char zvt_term_reset(); |
---|
6210 | |
---|
6211 | int main() { |
---|
6212 | |
---|
6213 | /* The GNU C library defines this for functions which it implements |
---|
6214 | to always fail with ENOSYS. Some functions are actually named |
---|
6215 | something starting with __ and the normal name is an alias. */ |
---|
6216 | #if defined (__stub_zvt_term_reset) || defined (__stub___zvt_term_reset) |
---|
6217 | choke me |
---|
6218 | #else |
---|
6219 | zvt_term_reset(); |
---|
6220 | #endif |
---|
6221 | |
---|
6222 | ; return 0; } |
---|
6223 | EOF |
---|
6224 | if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6225 | rm -rf conftest* |
---|
6226 | eval "ac_cv_func_zvt_term_reset=yes" |
---|
6227 | else |
---|
6228 | echo "configure: failed program was:" >&5 |
---|
6229 | cat conftest.$ac_ext >&5 |
---|
6230 | rm -rf conftest* |
---|
6231 | eval "ac_cv_func_zvt_term_reset=no" |
---|
6232 | fi |
---|
6233 | rm -f conftest* |
---|
6234 | fi |
---|
6235 | |
---|
6236 | if eval "test \"`echo '$ac_cv_func_'zvt_term_reset`\" = yes"; then |
---|
6237 | echo "$ac_t""yes" 1>&6 |
---|
6238 | cat >> confdefs.h <<\EOF |
---|
6239 | #define HAVE_ZVT_TERM_RESET 1 |
---|
6240 | EOF |
---|
6241 | |
---|
6242 | else |
---|
6243 | echo "$ac_t""no" 1>&6 |
---|
6244 | fi |
---|
6245 | |
---|
6246 | echo $ac_n "checking for zvt_term_set_del_is_del""... $ac_c" 1>&6 |
---|
6247 | echo "configure:6248: checking for zvt_term_set_del_is_del" >&5 |
---|
6248 | if eval "test \"`echo '$''{'ac_cv_func_zvt_term_set_del_is_del'+set}'`\" = set"; then |
---|
6249 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6250 | else |
---|
6251 | cat > conftest.$ac_ext <<EOF |
---|
6252 | #line 6253 "configure" |
---|
6253 | #include "confdefs.h" |
---|
6254 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6255 | which can conflict with char zvt_term_set_del_is_del(); below. */ |
---|
6256 | #include <assert.h> |
---|
6257 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6258 | /* We use char because int might match the return type of a gcc2 |
---|
6259 | builtin and then its argument prototype would still apply. */ |
---|
6260 | char zvt_term_set_del_is_del(); |
---|
6261 | |
---|
6262 | int main() { |
---|
6263 | |
---|
6264 | /* The GNU C library defines this for functions which it implements |
---|
6265 | to always fail with ENOSYS. Some functions are actually named |
---|
6266 | something starting with __ and the normal name is an alias. */ |
---|
6267 | #if defined (__stub_zvt_term_set_del_is_del) || defined (__stub___zvt_term_set_del_is_del) |
---|
6268 | choke me |
---|
6269 | #else |
---|
6270 | zvt_term_set_del_is_del(); |
---|
6271 | #endif |
---|
6272 | |
---|
6273 | ; return 0; } |
---|
6274 | EOF |
---|
6275 | if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6276 | rm -rf conftest* |
---|
6277 | eval "ac_cv_func_zvt_term_set_del_is_del=yes" |
---|
6278 | else |
---|
6279 | echo "configure: failed program was:" >&5 |
---|
6280 | cat conftest.$ac_ext >&5 |
---|
6281 | rm -rf conftest* |
---|
6282 | eval "ac_cv_func_zvt_term_set_del_is_del=no" |
---|
6283 | fi |
---|
6284 | rm -f conftest* |
---|
6285 | fi |
---|
6286 | |
---|
6287 | if eval "test \"`echo '$ac_cv_func_'zvt_term_set_del_is_del`\" = yes"; then |
---|
6288 | echo "$ac_t""yes" 1>&6 |
---|
6289 | cat >> confdefs.h <<\EOF |
---|
6290 | #define HAVE_ZVT_DEL_IS_DEL 1 |
---|
6291 | EOF |
---|
6292 | |
---|
6293 | else |
---|
6294 | echo "$ac_t""no" 1>&6 |
---|
6295 | fi |
---|
6296 | |
---|
6297 | LIBS="$oLIBS" |
---|
6298 | |
---|
6299 | oLIBS="$LIBS" |
---|
6300 | BZ_LIBS="" |
---|
6301 | echo $ac_n "checking for bzopen in -lbz2""... $ac_c" 1>&6 |
---|
6302 | echo "configure:6303: checking for bzopen in -lbz2" >&5 |
---|
6303 | ac_lib_var=`echo bz2'_'bzopen | sed 'y%./+-%__p_%'` |
---|
6304 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6305 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6306 | else |
---|
6307 | ac_save_LIBS="$LIBS" |
---|
6308 | LIBS="-lbz2 $LIBS" |
---|
6309 | cat > conftest.$ac_ext <<EOF |
---|
6310 | #line 6311 "configure" |
---|
6311 | #include "confdefs.h" |
---|
6312 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6313 | /* We use char because int might match the return type of a gcc2 |
---|
6314 | builtin and then its argument prototype would still apply. */ |
---|
6315 | char bzopen(); |
---|
6316 | |
---|
6317 | int main() { |
---|
6318 | bzopen() |
---|
6319 | ; return 0; } |
---|
6320 | EOF |
---|
6321 | if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6322 | rm -rf conftest* |
---|
6323 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6324 | else |
---|
6325 | echo "configure: failed program was:" >&5 |
---|
6326 | cat conftest.$ac_ext >&5 |
---|
6327 | rm -rf conftest* |
---|
6328 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6329 | fi |
---|
6330 | rm -f conftest* |
---|
6331 | LIBS="$ac_save_LIBS" |
---|
6332 | |
---|
6333 | fi |
---|
6334 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6335 | echo "$ac_t""yes" 1>&6 |
---|
6336 | |
---|
6337 | cat >> confdefs.h <<\EOF |
---|
6338 | #define HAVE_LIBBZ2 1 |
---|
6339 | EOF |
---|
6340 | |
---|
6341 | LIBS=$oLIBS |
---|
6342 | BZ_LIBS="-lbz2" |
---|
6343 | |
---|
6344 | else |
---|
6345 | echo "$ac_t""no" 1>&6 |
---|
6346 | echo $ac_n "checking for BZ2_bzopen in -lbz2""... $ac_c" 1>&6 |
---|
6347 | echo "configure:6348: checking for BZ2_bzopen in -lbz2" >&5 |
---|
6348 | ac_lib_var=`echo bz2'_'BZ2_bzopen | sed 'y%./+-%__p_%'` |
---|
6349 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
6350 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6351 | else |
---|
6352 | ac_save_LIBS="$LIBS" |
---|
6353 | LIBS="-lbz2 $LIBS" |
---|
6354 | cat > conftest.$ac_ext <<EOF |
---|
6355 | #line 6356 "configure" |
---|
6356 | #include "confdefs.h" |
---|
6357 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6358 | /* We use char because int might match the return type of a gcc2 |
---|
6359 | builtin and then its argument prototype would still apply. */ |
---|
6360 | char BZ2_bzopen(); |
---|
6361 | |
---|
6362 | int main() { |
---|
6363 | BZ2_bzopen() |
---|
6364 | ; return 0; } |
---|
6365 | EOF |
---|
6366 | if { (eval echo configure:6367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6367 | rm -rf conftest* |
---|
6368 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
6369 | else |
---|
6370 | echo "configure: failed program was:" >&5 |
---|
6371 | cat conftest.$ac_ext >&5 |
---|
6372 | rm -rf conftest* |
---|
6373 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
6374 | fi |
---|
6375 | rm -f conftest* |
---|
6376 | LIBS="$ac_save_LIBS" |
---|
6377 | |
---|
6378 | fi |
---|
6379 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
6380 | echo "$ac_t""yes" 1>&6 |
---|
6381 | |
---|
6382 | cat >> confdefs.h <<\EOF |
---|
6383 | #define HAVE_LIBBZ2 1 |
---|
6384 | EOF |
---|
6385 | |
---|
6386 | cat >> confdefs.h <<\EOF |
---|
6387 | #define HAVE_LIBBZ2_1_0 1 |
---|
6388 | EOF |
---|
6389 | |
---|
6390 | LIBS=$oLIBS |
---|
6391 | BZ_LIBS="-lbz2" |
---|
6392 | |
---|
6393 | else |
---|
6394 | echo "$ac_t""no" 1>&6 |
---|
6395 | echo "configure: warning: Recent enough BZ2 library not found. Help-Browser will not be able to read bzipped man/info pages" 1>&2 |
---|
6396 | |
---|
6397 | fi |
---|
6398 | |
---|
6399 | fi |
---|
6400 | |
---|
6401 | |
---|
6402 | |
---|
6403 | # Check whether --with-kde-datadir or --without-kde-datadir was given. |
---|
6404 | if test "${with_kde_datadir+set}" = set; then |
---|
6405 | withval="$with_kde_datadir" |
---|
6406 | : |
---|
6407 | fi |
---|
6408 | |
---|
6409 | |
---|
6410 | if test "x$with_kde_datadir" = x ; then |
---|
6411 | kde_datadir=/usr/share |
---|
6412 | else |
---|
6413 | kde_datadir=$with_kde_datadir |
---|
6414 | fi |
---|
6415 | |
---|
6416 | cat >> confdefs.h <<EOF |
---|
6417 | #define KDE_MENUDIR "$kde_datadir/applnk" |
---|
6418 | EOF |
---|
6419 | |
---|
6420 | cat >> confdefs.h <<EOF |
---|
6421 | #define KDE_ICONDIR "$kde_datadir/icons" |
---|
6422 | EOF |
---|
6423 | |
---|
6424 | cat >> confdefs.h <<EOF |
---|
6425 | #define KDE_MINI_ICONDIR "$kde_datadir/icons/mini" |
---|
6426 | EOF |
---|
6427 | |
---|
6428 | |
---|
6429 | # Check whether --with-kde-docdir or --without-kde-docdir was given. |
---|
6430 | if test "${with_kde_docdir+set}" = set; then |
---|
6431 | withval="$with_kde_docdir" |
---|
6432 | : |
---|
6433 | fi |
---|
6434 | |
---|
6435 | |
---|
6436 | if test "x$with_kde_docdir" = x ; then |
---|
6437 | kde_docdir=/usr/doc/kde |
---|
6438 | else |
---|
6439 | kde_docdir=$with_kde_docdir |
---|
6440 | fi |
---|
6441 | |
---|
6442 | cat >> confdefs.h <<EOF |
---|
6443 | #define KDE_DOCDIR "$kde_docdir" |
---|
6444 | EOF |
---|
6445 | |
---|
6446 | |
---|
6447 | # Extract the first word of "scrollkeeper-config", so it can be a program name with args. |
---|
6448 | set dummy scrollkeeper-config; ac_word=$2 |
---|
6449 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6450 | echo "configure:6451: checking for $ac_word" >&5 |
---|
6451 | if eval "test \"`echo '$''{'ac_cv_path_SCROLLKEEPER_CONFIG'+set}'`\" = set"; then |
---|
6452 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6453 | else |
---|
6454 | case "$SCROLLKEEPER_CONFIG" in |
---|
6455 | /*) |
---|
6456 | ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a path. |
---|
6457 | ;; |
---|
6458 | ?:/*) |
---|
6459 | ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a dos path. |
---|
6460 | ;; |
---|
6461 | *) |
---|
6462 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6463 | ac_dummy="$PATH" |
---|
6464 | for ac_dir in $ac_dummy; do |
---|
6465 | test -z "$ac_dir" && ac_dir=. |
---|
6466 | if test -f $ac_dir/$ac_word; then |
---|
6467 | ac_cv_path_SCROLLKEEPER_CONFIG="$ac_dir/$ac_word" |
---|
6468 | break |
---|
6469 | fi |
---|
6470 | done |
---|
6471 | IFS="$ac_save_ifs" |
---|
6472 | test -z "$ac_cv_path_SCROLLKEEPER_CONFIG" && ac_cv_path_SCROLLKEEPER_CONFIG="no" |
---|
6473 | ;; |
---|
6474 | esac |
---|
6475 | fi |
---|
6476 | SCROLLKEEPER_CONFIG="$ac_cv_path_SCROLLKEEPER_CONFIG" |
---|
6477 | if test -n "$SCROLLKEEPER_CONFIG"; then |
---|
6478 | echo "$ac_t""$SCROLLKEEPER_CONFIG" 1>&6 |
---|
6479 | else |
---|
6480 | echo "$ac_t""no" 1>&6 |
---|
6481 | fi |
---|
6482 | |
---|
6483 | if test x$SCROLLKEEPER_CONFIG = xno; then |
---|
6484 | { echo "configure: error: Couldn't find scrollkeeper-config" 1>&2; exit 1; } |
---|
6485 | fi |
---|
6486 | |
---|
6487 | |
---|
6488 | |
---|
6489 | |
---|
6490 | |
---|
6491 | # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args. |
---|
6492 | set dummy gtkdoc-mkdb; ac_word=$2 |
---|
6493 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
6494 | echo "configure:6495: checking for $ac_word" >&5 |
---|
6495 | if eval "test \"`echo '$''{'ac_cv_prog_GTKDOC'+set}'`\" = set"; then |
---|
6496 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6497 | else |
---|
6498 | if test -n "$GTKDOC"; then |
---|
6499 | ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test. |
---|
6500 | else |
---|
6501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
6502 | ac_dummy="$PATH" |
---|
6503 | for ac_dir in $ac_dummy; do |
---|
6504 | test -z "$ac_dir" && ac_dir=. |
---|
6505 | if test -f $ac_dir/$ac_word; then |
---|
6506 | ac_cv_prog_GTKDOC="true" |
---|
6507 | break |
---|
6508 | fi |
---|
6509 | done |
---|
6510 | IFS="$ac_save_ifs" |
---|
6511 | test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false" |
---|
6512 | fi |
---|
6513 | fi |
---|
6514 | GTKDOC="$ac_cv_prog_GTKDOC" |
---|
6515 | if test -n "$GTKDOC"; then |
---|
6516 | echo "$ac_t""$GTKDOC" 1>&6 |
---|
6517 | else |
---|
6518 | echo "$ac_t""no" 1>&6 |
---|
6519 | fi |
---|
6520 | |
---|
6521 | |
---|
6522 | |
---|
6523 | if $GTKDOC; then |
---|
6524 | HAVE_GTK_DOC_TRUE= |
---|
6525 | HAVE_GTK_DOC_FALSE='#' |
---|
6526 | else |
---|
6527 | HAVE_GTK_DOC_TRUE='#' |
---|
6528 | HAVE_GTK_DOC_FALSE= |
---|
6529 | fi |
---|
6530 | |
---|
6531 | |
---|
6532 | # Check whether --enable-gtk-doc or --disable-gtk-doc was given. |
---|
6533 | if test "${enable_gtk_doc+set}" = set; then |
---|
6534 | enableval="$enable_gtk_doc" |
---|
6535 | enable_gtk_doc="$enableval" |
---|
6536 | else |
---|
6537 | enable_gtk_doc=auto |
---|
6538 | fi |
---|
6539 | |
---|
6540 | |
---|
6541 | if test x$enable_gtk_doc = xauto ; then |
---|
6542 | if test x$GTKDOC = xtrue ; then |
---|
6543 | enable_gtk_doc=yes |
---|
6544 | else |
---|
6545 | enable_gtk_doc=no |
---|
6546 | fi |
---|
6547 | fi |
---|
6548 | |
---|
6549 | oLIBS="$LIBS" |
---|
6550 | LIBS="$GNOMEUI_LIBS $GNOME_LIBDIR" |
---|
6551 | for ac_func in _IceTransNoListen |
---|
6552 | do |
---|
6553 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
6554 | echo "configure:6555: checking for $ac_func" >&5 |
---|
6555 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
6556 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
6557 | else |
---|
6558 | cat > conftest.$ac_ext <<EOF |
---|
6559 | #line 6560 "configure" |
---|
6560 | #include "confdefs.h" |
---|
6561 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6562 | which can conflict with char $ac_func(); below. */ |
---|
6563 | #include <assert.h> |
---|
6564 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6565 | /* We use char because int might match the return type of a gcc2 |
---|
6566 | builtin and then its argument prototype would still apply. */ |
---|
6567 | char $ac_func(); |
---|
6568 | |
---|
6569 | int main() { |
---|
6570 | |
---|
6571 | /* The GNU C library defines this for functions which it implements |
---|
6572 | to always fail with ENOSYS. Some functions are actually named |
---|
6573 | something starting with __ and the normal name is an alias. */ |
---|
6574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6575 | choke me |
---|
6576 | #else |
---|
6577 | $ac_func(); |
---|
6578 | #endif |
---|
6579 | |
---|
6580 | ; return 0; } |
---|
6581 | EOF |
---|
6582 | if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
6583 | rm -rf conftest* |
---|
6584 | eval "ac_cv_func_$ac_func=yes" |
---|
6585 | else |
---|
6586 | echo "configure: failed program was:" >&5 |
---|
6587 | cat conftest.$ac_ext >&5 |
---|
6588 | rm -rf conftest* |
---|
6589 | eval "ac_cv_func_$ac_func=no" |
---|
6590 | fi |
---|
6591 | rm -f conftest* |
---|
6592 | fi |
---|
6593 | |
---|
6594 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
6595 | echo "$ac_t""yes" 1>&6 |
---|
6596 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
6597 | cat >> confdefs.h <<EOF |
---|
6598 | #define $ac_tr_func 1 |
---|
6599 | EOF |
---|
6600 | |
---|
6601 | else |
---|
6602 | echo "$ac_t""no" 1>&6 |
---|
6603 | fi |
---|
6604 | done |
---|
6605 | |
---|
6606 | LIBS="$oLIBS" |
---|
6607 | |
---|
6608 | uname_s=`uname -s` |
---|
6609 | if test "x$uname_s" = xSunOS; then |
---|
6610 | cat >> confdefs.h <<\EOF |
---|
6611 | #define DO_LIBICE_CHECK 1 |
---|
6612 | EOF |
---|
6613 | |
---|
6614 | fi |
---|
6615 | |
---|
6616 | |
---|
6617 | |
---|
6618 | if test x$enable_gtk_doc = xyes; then |
---|
6619 | ENABLE_GTK_DOC_TRUE= |
---|
6620 | ENABLE_GTK_DOC_FALSE='#' |
---|
6621 | else |
---|
6622 | ENABLE_GTK_DOC_TRUE='#' |
---|
6623 | ENABLE_GTK_DOC_FALSE= |
---|
6624 | fi |
---|
6625 | |
---|
6626 | ICONDIR=`eval echo "${datadir}/pixmaps"` |
---|
6627 | cat >> confdefs.h <<EOF |
---|
6628 | #define GNOME_ICONDIR "${ICONDIR}" |
---|
6629 | EOF |
---|
6630 | |
---|
6631 | |
---|
6632 | trap '' 1 2 15 |
---|
6633 | cat > confcache <<\EOF |
---|
6634 | # This file is a shell script that caches the results of configure |
---|
6635 | # tests run on this system so they can be shared between configure |
---|
6636 | # scripts and configure runs. It is not useful on other systems. |
---|
6637 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
6638 | # |
---|
6639 | # By default, configure uses ./config.cache as the cache file, |
---|
6640 | # creating it if it does not exist already. You can give configure |
---|
6641 | # the --cache-file=FILE option to use a different cache file; that is |
---|
6642 | # what configure does when it calls configure scripts in |
---|
6643 | # subdirectories, so they share the cache. |
---|
6644 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
6645 | # config.status only pays attention to the cache file if you give it the |
---|
6646 | # --recheck option to rerun configure. |
---|
6647 | # |
---|
6648 | EOF |
---|
6649 | # The following way of writing the cache mishandles newlines in values, |
---|
6650 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6651 | # So, don't put newlines in cache variables' values. |
---|
6652 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6653 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6654 | (set) 2>&1 | |
---|
6655 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6656 | *ac_space=\ *) |
---|
6657 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
6658 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
6659 | sed -n \ |
---|
6660 | -e "s/'/'\\\\''/g" \ |
---|
6661 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
6662 | ;; |
---|
6663 | *) |
---|
6664 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6665 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
6666 | ;; |
---|
6667 | esac >> confcache |
---|
6668 | if cmp -s $cache_file confcache; then |
---|
6669 | : |
---|
6670 | else |
---|
6671 | if test -w $cache_file; then |
---|
6672 | echo "updating cache $cache_file" |
---|
6673 | cat confcache > $cache_file |
---|
6674 | else |
---|
6675 | echo "not updating unwritable cache $cache_file" |
---|
6676 | fi |
---|
6677 | fi |
---|
6678 | rm -f confcache |
---|
6679 | |
---|
6680 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
6681 | |
---|
6682 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6683 | # Let make expand exec_prefix. |
---|
6684 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6685 | |
---|
6686 | # Any assignment to VPATH causes Sun make to only execute |
---|
6687 | # the first set of double-colon rules, so remove it if not needed. |
---|
6688 | # If there is a colon in the path, we need to keep it. |
---|
6689 | if test "x$srcdir" = x.; then |
---|
6690 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
6691 | fi |
---|
6692 | |
---|
6693 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
6694 | |
---|
6695 | DEFS=-DHAVE_CONFIG_H |
---|
6696 | |
---|
6697 | # Without the "./", some shells look in PATH for config.status. |
---|
6698 | : ${CONFIG_STATUS=./config.status} |
---|
6699 | |
---|
6700 | echo creating $CONFIG_STATUS |
---|
6701 | rm -f $CONFIG_STATUS |
---|
6702 | cat > $CONFIG_STATUS <<EOF |
---|
6703 | #! /bin/sh |
---|
6704 | # Generated automatically by configure. |
---|
6705 | # Run this file to recreate the current configuration. |
---|
6706 | # This directory was configured as follows, |
---|
6707 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
6708 | # |
---|
6709 | # $0 $ac_configure_args |
---|
6710 | # |
---|
6711 | # Compiler output produced by configure, useful for debugging |
---|
6712 | # configure, is in ./config.log if it exists. |
---|
6713 | |
---|
6714 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
6715 | for ac_option |
---|
6716 | do |
---|
6717 | case "\$ac_option" in |
---|
6718 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6719 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
6720 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
6721 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
6722 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
6723 | exit 0 ;; |
---|
6724 | -help | --help | --hel | --he | --h) |
---|
6725 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
6726 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
6727 | esac |
---|
6728 | done |
---|
6729 | |
---|
6730 | ac_given_srcdir=$srcdir |
---|
6731 | ac_given_INSTALL="$INSTALL" |
---|
6732 | |
---|
6733 | trap 'rm -fr `echo " |
---|
6734 | Makefile |
---|
6735 | gnome-core.spec |
---|
6736 | po/Makefile.in |
---|
6737 | macros/Makefile |
---|
6738 | panel/Makefile |
---|
6739 | panel/doc/Makefile |
---|
6740 | panel/help/Makefile |
---|
6741 | panel/help/C/Makefile |
---|
6742 | panel/help/de/Makefile |
---|
6743 | panel/help/it/Makefile |
---|
6744 | panel/help/ja/Makefile |
---|
6745 | applets/Makefile |
---|
6746 | applets/applet-dirs/Makefile |
---|
6747 | applets/gen_util/Makefile |
---|
6748 | applets/gen_util/help/Makefile |
---|
6749 | applets/gen_util/help/C/Makefile |
---|
6750 | applets/gen_util/help/C/clock/Makefile |
---|
6751 | applets/gen_util/help/C/mailcheck/Makefile |
---|
6752 | applets/gen_util/help/C/printer/Makefile |
---|
6753 | applets/gen_util/help/de/Makefile |
---|
6754 | applets/gen_util/help/no/Makefile |
---|
6755 | applets/gen_util/help/da/Makefile |
---|
6756 | applets/gen_util/help/da/clock/Makefile |
---|
6757 | applets/gen_util/help/da/mailcheck/Makefile |
---|
6758 | applets/gen_util/help/da/printer/Makefile |
---|
6759 | applets/gen_util/help/es/Makefile |
---|
6760 | applets/gen_util/help/es/printer/Makefile |
---|
6761 | applets/gen_util/help/it/Makefile |
---|
6762 | applets/gen_util/help/it/clock/Makefile |
---|
6763 | applets/gen_util/help/it/mailcheck/Makefile |
---|
6764 | applets/gen_util/help/it/printer/Makefile |
---|
6765 | applets/fish/Makefile |
---|
6766 | applets/fish/help/Makefile |
---|
6767 | applets/fish/help/C/Makefile |
---|
6768 | applets/fish/help/no/Makefile |
---|
6769 | applets/fish/help/da/Makefile |
---|
6770 | applets/fish/help/it/Makefile |
---|
6771 | applets/desk-guide/Makefile |
---|
6772 | applets/desk-guide/help/Makefile |
---|
6773 | applets/desk-guide/help/C/Makefile |
---|
6774 | applets/desk-guide/help/de/Makefile |
---|
6775 | applets/desk-guide/help/it/Makefile |
---|
6776 | applets/tasklist/Makefile |
---|
6777 | applets/tasklist/help/Makefile |
---|
6778 | applets/tasklist/help/C/Makefile |
---|
6779 | core-docs/Makefile |
---|
6780 | core-docs/fdl/Makefile |
---|
6781 | core-docs/fdl/C/Makefile |
---|
6782 | core-docs/gpl/Makefile |
---|
6783 | core-docs/gpl/C/Makefile |
---|
6784 | core-docs/lgpl/Makefile |
---|
6785 | core-docs/lgpl/C/Makefile |
---|
6786 | core-docs/gnome-feedback/Makefile |
---|
6787 | core-docs/gnome-feedback/C/Makefile |
---|
6788 | desktop-links/Makefile |
---|
6789 | gnome-terminal/Makefile |
---|
6790 | gnome-terminal/C/Makefile |
---|
6791 | gnome-terminal/de/Makefile |
---|
6792 | gnome-terminal/da/Makefile |
---|
6793 | gnome-terminal/es/Makefile |
---|
6794 | gnome-terminal/it/Makefile |
---|
6795 | gnome-terminal/no/Makefile |
---|
6796 | help-browser/Makefile |
---|
6797 | help-browser/gnome-man2html/Makefile |
---|
6798 | help-browser/gnome-info2html/Makefile |
---|
6799 | help-browser/help/Makefile |
---|
6800 | help-browser/help/C/Makefile |
---|
6801 | help-browser/help/ca/Makefile |
---|
6802 | help-browser/help/da/Makefile |
---|
6803 | help-browser/help/el/Makefile |
---|
6804 | help-browser/help/es/Makefile |
---|
6805 | help-browser/help/et/Makefile |
---|
6806 | help-browser/help/eu/Makefile |
---|
6807 | help-browser/help/hu/Makefile |
---|
6808 | help-browser/help/fr/Makefile |
---|
6809 | help-browser/help/gl/Makefile |
---|
6810 | help-browser/help/it/Makefile |
---|
6811 | help-browser/help/ja/Makefile |
---|
6812 | help-browser/help/ko/Makefile |
---|
6813 | help-browser/help/lt/Makefile |
---|
6814 | help-browser/help/no/Makefile |
---|
6815 | help-browser/help/uk/Makefile |
---|
6816 | help-browser/help/wa/Makefile |
---|
6817 | gnome-hint/Makefile |
---|
6818 | gnome-about/Makefile |
---|
6819 | gmenu/Makefile |
---|
6820 | gnome-edit/Makefile |
---|
6821 | idl/Makefile |
---|
6822 | pixmaps/Makefile |
---|
6823 | gsm/Makefile |
---|
6824 | gsm/help/Makefile |
---|
6825 | gsm/help/C/Makefile |
---|
6826 | gsm/help/ja/Makefile |
---|
6827 | gsm/default.session.5 |
---|
6828 | gsm/gnome-session.1 |
---|
6829 | smproxy/Makefile |
---|
6830 | intl/Makefile |
---|
6831 | omf-install/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
6832 | EOF |
---|
6833 | cat >> $CONFIG_STATUS <<EOF |
---|
6834 | |
---|
6835 | # Protect against being on the right side of a sed subst in config.status. |
---|
6836 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
6837 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
6838 | $ac_vpsub |
---|
6839 | $extrasub |
---|
6840 | s%@SHELL@%$SHELL%g |
---|
6841 | s%@CFLAGS@%$CFLAGS%g |
---|
6842 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
6843 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
6844 | s%@FFLAGS@%$FFLAGS%g |
---|
6845 | s%@DEFS@%$DEFS%g |
---|
6846 | s%@LDFLAGS@%$LDFLAGS%g |
---|
6847 | s%@LIBS@%$LIBS%g |
---|
6848 | s%@exec_prefix@%$exec_prefix%g |
---|
6849 | s%@prefix@%$prefix%g |
---|
6850 | s%@program_transform_name@%$program_transform_name%g |
---|
6851 | s%@bindir@%$bindir%g |
---|
6852 | s%@sbindir@%$sbindir%g |
---|
6853 | s%@libexecdir@%$libexecdir%g |
---|
6854 | s%@datadir@%$datadir%g |
---|
6855 | s%@sysconfdir@%$sysconfdir%g |
---|
6856 | s%@sharedstatedir@%$sharedstatedir%g |
---|
6857 | s%@localstatedir@%$localstatedir%g |
---|
6858 | s%@libdir@%$libdir%g |
---|
6859 | s%@includedir@%$includedir%g |
---|
6860 | s%@oldincludedir@%$oldincludedir%g |
---|
6861 | s%@infodir@%$infodir%g |
---|
6862 | s%@mandir@%$mandir%g |
---|
6863 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
6864 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
6865 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
6866 | s%@PACKAGE@%$PACKAGE%g |
---|
6867 | s%@VERSION@%$VERSION%g |
---|
6868 | s%@ACLOCAL@%$ACLOCAL%g |
---|
6869 | s%@AUTOCONF@%$AUTOCONF%g |
---|
6870 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
6871 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
6872 | s%@MAKEINFO@%$MAKEINFO%g |
---|
6873 | s%@SET_MAKE@%$SET_MAKE%g |
---|
6874 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
6875 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
6876 | s%@MAINT@%$MAINT%g |
---|
6877 | s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g |
---|
6878 | s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g |
---|
6879 | s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g |
---|
6880 | s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g |
---|
6881 | s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g |
---|
6882 | s%@XML_I18N_MERGE_DIRECTORY_RULE@%$XML_I18N_MERGE_DIRECTORY_RULE%g |
---|
6883 | s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g |
---|
6884 | s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g |
---|
6885 | s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g |
---|
6886 | s%@XML_I18N_MERGE_SOUNDLIST_RULE@%$XML_I18N_MERGE_SOUNDLIST_RULE%g |
---|
6887 | s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g |
---|
6888 | s%@GNOME_LIBS@%$GNOME_LIBS%g |
---|
6889 | s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g |
---|
6890 | s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g |
---|
6891 | s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g |
---|
6892 | s%@ZVT_LIBS@%$ZVT_LIBS%g |
---|
6893 | s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g |
---|
6894 | s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g |
---|
6895 | s%@GNOME_CONFIG@%$GNOME_CONFIG%g |
---|
6896 | s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g |
---|
6897 | s%@ORBIT_IDL@%$ORBIT_IDL%g |
---|
6898 | s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g |
---|
6899 | s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g |
---|
6900 | s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g |
---|
6901 | s%@ORBIT_LIBS@%$ORBIT_LIBS%g |
---|
6902 | s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g |
---|
6903 | s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g |
---|
6904 | s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g |
---|
6905 | s%@GNORBA_LIBS@%$GNORBA_LIBS%g |
---|
6906 | s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g |
---|
6907 | s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g |
---|
6908 | s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g |
---|
6909 | s%@CC@%$CC%g |
---|
6910 | s%@CPP@%$CPP%g |
---|
6911 | s%@host@%$host%g |
---|
6912 | s%@host_alias@%$host_alias%g |
---|
6913 | s%@host_cpu@%$host_cpu%g |
---|
6914 | s%@host_vendor@%$host_vendor%g |
---|
6915 | s%@host_os@%$host_os%g |
---|
6916 | s%@build@%$build%g |
---|
6917 | s%@build_alias@%$build_alias%g |
---|
6918 | s%@build_cpu@%$build_cpu%g |
---|
6919 | s%@build_vendor@%$build_vendor%g |
---|
6920 | s%@build_os@%$build_os%g |
---|
6921 | s%@RANLIB@%$RANLIB%g |
---|
6922 | s%@LN_S@%$LN_S%g |
---|
6923 | s%@LIBTOOL@%$LIBTOOL%g |
---|
6924 | s%@LEX@%$LEX%g |
---|
6925 | s%@LEXLIB@%$LEXLIB%g |
---|
6926 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g |
---|
6927 | s%@YACC@%$YACC%g |
---|
6928 | s%@PATH_TO_XRDB@%$PATH_TO_XRDB%g |
---|
6929 | s%@cflags_set@%$cflags_set%g |
---|
6930 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
---|
6931 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
---|
6932 | s%@GTK_LIBS@%$GTK_LIBS%g |
---|
6933 | s%@XPM_LIBS@%$XPM_LIBS%g |
---|
6934 | s%@PTHREAD_LIB@%$PTHREAD_LIB%g |
---|
6935 | s%@GNOME_XML_CFLAGS@%$GNOME_XML_CFLAGS%g |
---|
6936 | s%@GNOME_XML_LIB@%$GNOME_XML_LIB%g |
---|
6937 | s%@GTK_REQUIRED@%$GTK_REQUIRED%g |
---|
6938 | s%@GNOME_LIBS_REQUIRED@%$GNOME_LIBS_REQUIRED%g |
---|
6939 | s%@FALSE_TRUE@%$FALSE_TRUE%g |
---|
6940 | s%@FALSE_FALSE@%$FALSE_FALSE%g |
---|
6941 | s%@ALLOCA@%$ALLOCA%g |
---|
6942 | s%@USE_NLS@%$USE_NLS%g |
---|
6943 | s%@MSGFMT@%$MSGFMT%g |
---|
6944 | s%@GMSGFMT@%$GMSGFMT%g |
---|
6945 | s%@XGETTEXT@%$XGETTEXT%g |
---|
6946 | s%@GENCAT@%$GENCAT%g |
---|
6947 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
---|
6948 | s%@CATALOGS@%$CATALOGS%g |
---|
6949 | s%@CATOBJEXT@%$CATOBJEXT%g |
---|
6950 | s%@DATADIRNAME@%$DATADIRNAME%g |
---|
6951 | s%@GMOFILES@%$GMOFILES%g |
---|
6952 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
---|
6953 | s%@INTLDEPS@%$INTLDEPS%g |
---|
6954 | s%@INTLLIBS@%$INTLLIBS%g |
---|
6955 | s%@INTLOBJS@%$INTLOBJS%g |
---|
6956 | s%@POFILES@%$POFILES%g |
---|
6957 | s%@POSUB@%$POSUB%g |
---|
6958 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
---|
6959 | s%@GT_NO@%$GT_NO%g |
---|
6960 | s%@GT_YES@%$GT_YES%g |
---|
6961 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
---|
6962 | s%@l@%$l%g |
---|
6963 | s%@gnomelocaledir@%$gnomelocaledir%g |
---|
6964 | s%@DL_LIB@%$DL_LIB%g |
---|
6965 | s%@ORB_LIBS@%$ORB_LIBS%g |
---|
6966 | s%@ORB_CFLAGS@%$ORB_CFLAGS%g |
---|
6967 | s%@ORBIT_REQUIRED@%$ORBIT_REQUIRED%g |
---|
6968 | s%@CONTROL_CENTER_REQUIRED@%$CONTROL_CENTER_REQUIRED%g |
---|
6969 | s%@PIXBUF_CFLAGS@%$PIXBUF_CFLAGS%g |
---|
6970 | s%@PIXBUF_LIBS@%$PIXBUF_LIBS%g |
---|
6971 | s%@GDK_PIXBUF_REQUIRED@%$GDK_PIXBUF_REQUIRED%g |
---|
6972 | s%@CANVAS_PIXBUF_CFLAGS@%$CANVAS_PIXBUF_CFLAGS%g |
---|
6973 | s%@CANVAS_PIXBUF_LIBS@%$CANVAS_PIXBUF_LIBS%g |
---|
6974 | s%@GNOME_TERMINAL_LIBS@%$GNOME_TERMINAL_LIBS%g |
---|
6975 | s%@GNOME_TERMINAL_CFLAGS@%$GNOME_TERMINAL_CFLAGS%g |
---|
6976 | s%@LIBGLADE_REQUIRED@%$LIBGLADE_REQUIRED%g |
---|
6977 | s%@SESSION_TRUE@%$SESSION_TRUE%g |
---|
6978 | s%@SESSION_FALSE@%$SESSION_FALSE%g |
---|
6979 | s%@LIBWRAP_LIBS@%$LIBWRAP_LIBS%g |
---|
6980 | s%@WINDOW_MANAGER@%$WINDOW_MANAGER%g |
---|
6981 | s%@GTK_HTML_PREFIX@%$GTK_HTML_PREFIX%g |
---|
6982 | s%@GNOME_PRINT_PREFIX@%$GNOME_PRINT_PREFIX%g |
---|
6983 | s%@HELP_USE_GTKHTML_TRUE@%$HELP_USE_GTKHTML_TRUE%g |
---|
6984 | s%@HELP_USE_GTKHTML_FALSE@%$HELP_USE_GTKHTML_FALSE%g |
---|
6985 | s%@RES_LIBS@%$RES_LIBS%g |
---|
6986 | s%@BZ_LIBS@%$BZ_LIBS%g |
---|
6987 | s%@SCROLLKEEPER_CONFIG@%$SCROLLKEEPER_CONFIG%g |
---|
6988 | s%@SCROLLKEEPER_REQUIRED@%$SCROLLKEEPER_REQUIRED%g |
---|
6989 | s%@GTKDOC@%$GTKDOC%g |
---|
6990 | s%@HAVE_GTK_DOC_TRUE@%$HAVE_GTK_DOC_TRUE%g |
---|
6991 | s%@HAVE_GTK_DOC_FALSE@%$HAVE_GTK_DOC_FALSE%g |
---|
6992 | s%@HAVE_GTK_DOC@%$HAVE_GTK_DOC%g |
---|
6993 | s%@ENABLE_GTK_DOC_TRUE@%$ENABLE_GTK_DOC_TRUE%g |
---|
6994 | s%@ENABLE_GTK_DOC_FALSE@%$ENABLE_GTK_DOC_FALSE%g |
---|
6995 | |
---|
6996 | CEOF |
---|
6997 | EOF |
---|
6998 | |
---|
6999 | cat >> $CONFIG_STATUS <<\EOF |
---|
7000 | |
---|
7001 | # Split the substitutions into bite-sized pieces for seds with |
---|
7002 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
7003 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
7004 | ac_file=1 # Number of current file. |
---|
7005 | ac_beg=1 # First line for current file. |
---|
7006 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
7007 | ac_more_lines=: |
---|
7008 | ac_sed_cmds="" |
---|
7009 | while $ac_more_lines; do |
---|
7010 | if test $ac_beg -gt 1; then |
---|
7011 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
7012 | else |
---|
7013 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
7014 | fi |
---|
7015 | if test ! -s conftest.s$ac_file; then |
---|
7016 | ac_more_lines=false |
---|
7017 | rm -f conftest.s$ac_file |
---|
7018 | else |
---|
7019 | if test -z "$ac_sed_cmds"; then |
---|
7020 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
7021 | else |
---|
7022 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
7023 | fi |
---|
7024 | ac_file=`expr $ac_file + 1` |
---|
7025 | ac_beg=$ac_end |
---|
7026 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
7027 | fi |
---|
7028 | done |
---|
7029 | if test -z "$ac_sed_cmds"; then |
---|
7030 | ac_sed_cmds=cat |
---|
7031 | fi |
---|
7032 | EOF |
---|
7033 | |
---|
7034 | cat >> $CONFIG_STATUS <<EOF |
---|
7035 | |
---|
7036 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
7037 | gnome-core.spec |
---|
7038 | po/Makefile.in |
---|
7039 | macros/Makefile |
---|
7040 | panel/Makefile |
---|
7041 | panel/doc/Makefile |
---|
7042 | panel/help/Makefile |
---|
7043 | panel/help/C/Makefile |
---|
7044 | panel/help/de/Makefile |
---|
7045 | panel/help/it/Makefile |
---|
7046 | panel/help/ja/Makefile |
---|
7047 | applets/Makefile |
---|
7048 | applets/applet-dirs/Makefile |
---|
7049 | applets/gen_util/Makefile |
---|
7050 | applets/gen_util/help/Makefile |
---|
7051 | applets/gen_util/help/C/Makefile |
---|
7052 | applets/gen_util/help/C/clock/Makefile |
---|
7053 | applets/gen_util/help/C/mailcheck/Makefile |
---|
7054 | applets/gen_util/help/C/printer/Makefile |
---|
7055 | applets/gen_util/help/de/Makefile |
---|
7056 | applets/gen_util/help/no/Makefile |
---|
7057 | applets/gen_util/help/da/Makefile |
---|
7058 | applets/gen_util/help/da/clock/Makefile |
---|
7059 | applets/gen_util/help/da/mailcheck/Makefile |
---|
7060 | applets/gen_util/help/da/printer/Makefile |
---|
7061 | applets/gen_util/help/es/Makefile |
---|
7062 | applets/gen_util/help/es/printer/Makefile |
---|
7063 | applets/gen_util/help/it/Makefile |
---|
7064 | applets/gen_util/help/it/clock/Makefile |
---|
7065 | applets/gen_util/help/it/mailcheck/Makefile |
---|
7066 | applets/gen_util/help/it/printer/Makefile |
---|
7067 | applets/fish/Makefile |
---|
7068 | applets/fish/help/Makefile |
---|
7069 | applets/fish/help/C/Makefile |
---|
7070 | applets/fish/help/no/Makefile |
---|
7071 | applets/fish/help/da/Makefile |
---|
7072 | applets/fish/help/it/Makefile |
---|
7073 | applets/desk-guide/Makefile |
---|
7074 | applets/desk-guide/help/Makefile |
---|
7075 | applets/desk-guide/help/C/Makefile |
---|
7076 | applets/desk-guide/help/de/Makefile |
---|
7077 | applets/desk-guide/help/it/Makefile |
---|
7078 | applets/tasklist/Makefile |
---|
7079 | applets/tasklist/help/Makefile |
---|
7080 | applets/tasklist/help/C/Makefile |
---|
7081 | core-docs/Makefile |
---|
7082 | core-docs/fdl/Makefile |
---|
7083 | core-docs/fdl/C/Makefile |
---|
7084 | core-docs/gpl/Makefile |
---|
7085 | core-docs/gpl/C/Makefile |
---|
7086 | core-docs/lgpl/Makefile |
---|
7087 | core-docs/lgpl/C/Makefile |
---|
7088 | core-docs/gnome-feedback/Makefile |
---|
7089 | core-docs/gnome-feedback/C/Makefile |
---|
7090 | desktop-links/Makefile |
---|
7091 | gnome-terminal/Makefile |
---|
7092 | gnome-terminal/C/Makefile |
---|
7093 | gnome-terminal/de/Makefile |
---|
7094 | gnome-terminal/da/Makefile |
---|
7095 | gnome-terminal/es/Makefile |
---|
7096 | gnome-terminal/it/Makefile |
---|
7097 | gnome-terminal/no/Makefile |
---|
7098 | help-browser/Makefile |
---|
7099 | help-browser/gnome-man2html/Makefile |
---|
7100 | help-browser/gnome-info2html/Makefile |
---|
7101 | help-browser/help/Makefile |
---|
7102 | help-browser/help/C/Makefile |
---|
7103 | help-browser/help/ca/Makefile |
---|
7104 | help-browser/help/da/Makefile |
---|
7105 | help-browser/help/el/Makefile |
---|
7106 | help-browser/help/es/Makefile |
---|
7107 | help-browser/help/et/Makefile |
---|
7108 | help-browser/help/eu/Makefile |
---|
7109 | help-browser/help/hu/Makefile |
---|
7110 | help-browser/help/fr/Makefile |
---|
7111 | help-browser/help/gl/Makefile |
---|
7112 | help-browser/help/it/Makefile |
---|
7113 | help-browser/help/ja/Makefile |
---|
7114 | help-browser/help/ko/Makefile |
---|
7115 | help-browser/help/lt/Makefile |
---|
7116 | help-browser/help/no/Makefile |
---|
7117 | help-browser/help/uk/Makefile |
---|
7118 | help-browser/help/wa/Makefile |
---|
7119 | gnome-hint/Makefile |
---|
7120 | gnome-about/Makefile |
---|
7121 | gmenu/Makefile |
---|
7122 | gnome-edit/Makefile |
---|
7123 | idl/Makefile |
---|
7124 | pixmaps/Makefile |
---|
7125 | gsm/Makefile |
---|
7126 | gsm/help/Makefile |
---|
7127 | gsm/help/C/Makefile |
---|
7128 | gsm/help/ja/Makefile |
---|
7129 | gsm/default.session.5 |
---|
7130 | gsm/gnome-session.1 |
---|
7131 | smproxy/Makefile |
---|
7132 | intl/Makefile |
---|
7133 | omf-install/Makefile"} |
---|
7134 | EOF |
---|
7135 | cat >> $CONFIG_STATUS <<\EOF |
---|
7136 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
7137 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7138 | case "$ac_file" in |
---|
7139 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
7140 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
7141 | *) ac_file_in="${ac_file}.in" ;; |
---|
7142 | esac |
---|
7143 | |
---|
7144 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
7145 | |
---|
7146 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7147 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
7148 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
7149 | # The file is in a subdirectory. |
---|
7150 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
7151 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
7152 | # A "../" for each directory in $ac_dir_suffix. |
---|
7153 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
7154 | else |
---|
7155 | ac_dir_suffix= ac_dots= |
---|
7156 | fi |
---|
7157 | |
---|
7158 | case "$ac_given_srcdir" in |
---|
7159 | .) srcdir=. |
---|
7160 | if test -z "$ac_dots"; then top_srcdir=. |
---|
7161 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
7162 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
7163 | *) # Relative path. |
---|
7164 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
7165 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
7166 | esac |
---|
7167 | |
---|
7168 | case "$ac_given_INSTALL" in |
---|
7169 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
7170 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
7171 | esac |
---|
7172 | |
---|
7173 | echo creating "$ac_file" |
---|
7174 | rm -f "$ac_file" |
---|
7175 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
7176 | case "$ac_file" in |
---|
7177 | *Makefile*) ac_comsub="1i\\ |
---|
7178 | # $configure_input" ;; |
---|
7179 | *) ac_comsub= ;; |
---|
7180 | esac |
---|
7181 | |
---|
7182 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
7183 | sed -e "$ac_comsub |
---|
7184 | s%@configure_input@%$configure_input%g |
---|
7185 | s%@srcdir@%$srcdir%g |
---|
7186 | s%@top_srcdir@%$top_srcdir%g |
---|
7187 | s%@INSTALL@%$INSTALL%g |
---|
7188 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
7189 | fi; done |
---|
7190 | rm -f conftest.s* |
---|
7191 | |
---|
7192 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7193 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7194 | # |
---|
7195 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7196 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7197 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
7198 | ac_dC='\3' |
---|
7199 | ac_dD='%g' |
---|
7200 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
7201 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7202 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
7203 | ac_uC=' ' |
---|
7204 | ac_uD='\4%g' |
---|
7205 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7206 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7207 | ac_eB='$%\1#\2define\3' |
---|
7208 | ac_eC=' ' |
---|
7209 | ac_eD='%g' |
---|
7210 | |
---|
7211 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
7212 | EOF |
---|
7213 | cat >> $CONFIG_STATUS <<EOF |
---|
7214 | CONFIG_HEADERS="config.h" |
---|
7215 | EOF |
---|
7216 | cat >> $CONFIG_STATUS <<\EOF |
---|
7217 | fi |
---|
7218 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
7219 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7220 | case "$ac_file" in |
---|
7221 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
7222 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
7223 | *) ac_file_in="${ac_file}.in" ;; |
---|
7224 | esac |
---|
7225 | |
---|
7226 | echo creating $ac_file |
---|
7227 | |
---|
7228 | rm -f conftest.frag conftest.in conftest.out |
---|
7229 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
7230 | cat $ac_file_inputs > conftest.in |
---|
7231 | |
---|
7232 | EOF |
---|
7233 | |
---|
7234 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
7235 | # the proper values into config.h.in to produce config.h. And first: |
---|
7236 | # Protect against being on the right side of a sed subst in config.status. |
---|
7237 | # Protect against being in an unquoted here document in config.status. |
---|
7238 | rm -f conftest.vals |
---|
7239 | cat > conftest.hdr <<\EOF |
---|
7240 | s/[\\&%]/\\&/g |
---|
7241 | s%[\\$`]%\\&%g |
---|
7242 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
7243 | s%ac_d%ac_u%gp |
---|
7244 | s%ac_u%ac_e%gp |
---|
7245 | EOF |
---|
7246 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
7247 | rm -f conftest.hdr |
---|
7248 | |
---|
7249 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7250 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7251 | # on some systems where configure will not decide to define it. |
---|
7252 | cat >> conftest.vals <<\EOF |
---|
7253 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
7254 | EOF |
---|
7255 | |
---|
7256 | # Break up conftest.vals because some shells have a limit on |
---|
7257 | # the size of here documents, and old seds have small limits too. |
---|
7258 | |
---|
7259 | rm -f conftest.tail |
---|
7260 | while : |
---|
7261 | do |
---|
7262 | ac_lines=`grep -c . conftest.vals` |
---|
7263 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
7264 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
7265 | # Write a limited-size here document to conftest.frag. |
---|
7266 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
7267 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
7268 | echo 'CEOF |
---|
7269 | sed -f conftest.frag conftest.in > conftest.out |
---|
7270 | rm -f conftest.in |
---|
7271 | mv conftest.out conftest.in |
---|
7272 | ' >> $CONFIG_STATUS |
---|
7273 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
7274 | rm -f conftest.vals |
---|
7275 | mv conftest.tail conftest.vals |
---|
7276 | done |
---|
7277 | rm -f conftest.vals |
---|
7278 | |
---|
7279 | cat >> $CONFIG_STATUS <<\EOF |
---|
7280 | rm -f conftest.frag conftest.h |
---|
7281 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
7282 | cat conftest.in >> conftest.h |
---|
7283 | rm -f conftest.in |
---|
7284 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
7285 | echo "$ac_file is unchanged" |
---|
7286 | rm -f conftest.h |
---|
7287 | else |
---|
7288 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7289 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
7290 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
7291 | # The file is in a subdirectory. |
---|
7292 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
7293 | fi |
---|
7294 | rm -f $ac_file |
---|
7295 | mv conftest.h $ac_file |
---|
7296 | fi |
---|
7297 | fi; done |
---|
7298 | |
---|
7299 | EOF |
---|
7300 | |
---|
7301 | cat >> $CONFIG_STATUS <<EOF |
---|
7302 | ac_sources="$nls_cv_header_libgt" |
---|
7303 | ac_dests="$nls_cv_header_intl" |
---|
7304 | EOF |
---|
7305 | |
---|
7306 | cat >> $CONFIG_STATUS <<\EOF |
---|
7307 | srcdir=$ac_given_srcdir |
---|
7308 | while test -n "$ac_sources"; do |
---|
7309 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
---|
7310 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
---|
7311 | |
---|
7312 | echo "linking $srcdir/$ac_source to $ac_dest" |
---|
7313 | |
---|
7314 | if test ! -r $srcdir/$ac_source; then |
---|
7315 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
---|
7316 | fi |
---|
7317 | rm -f $ac_dest |
---|
7318 | |
---|
7319 | # Make relative symlinks. |
---|
7320 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
7321 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` |
---|
7322 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
---|
7323 | # The dest file is in a subdirectory. |
---|
7324 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" |
---|
7325 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
---|
7326 | # A "../" for each directory in $ac_dest_dir_suffix. |
---|
7327 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
7328 | else |
---|
7329 | ac_dest_dir_suffix= ac_dots= |
---|
7330 | fi |
---|
7331 | |
---|
7332 | case "$srcdir" in |
---|
7333 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; |
---|
7334 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; |
---|
7335 | esac |
---|
7336 | |
---|
7337 | # Make a symlink if possible; otherwise try a hard link. |
---|
7338 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
---|
7339 | ln $srcdir/$ac_source $ac_dest; then : |
---|
7340 | else |
---|
7341 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
---|
7342 | fi |
---|
7343 | done |
---|
7344 | EOF |
---|
7345 | cat >> $CONFIG_STATUS <<EOF |
---|
7346 | |
---|
7347 | XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL} |
---|
7348 | |
---|
7349 | |
---|
7350 | EOF |
---|
7351 | cat >> $CONFIG_STATUS <<\EOF |
---|
7352 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
7353 | |
---|
7354 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract; |
---|
7355 | chmod ugo+x xml-i18n-extract; |
---|
7356 | |
---|
7357 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge; |
---|
7358 | chmod ugo+x xml-i18n-merge; |
---|
7359 | |
---|
7360 | sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update; |
---|
7361 | chmod ugo+x xml-i18n-update; |
---|
7362 | |
---|
7363 | case "$CONFIG_FILES" in *po/Makefile.in*) |
---|
7364 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
---|
7365 | esac |
---|
7366 | |
---|
7367 | exit 0 |
---|
7368 | EOF |
---|
7369 | chmod +x $CONFIG_STATUS |
---|
7370 | rm -fr confdefs* $ac_clean_files |
---|
7371 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
7372 | |
---|