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