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