]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.12 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-x use the X Window System" | |
16 | ac_help="$ac_help | |
17 | **--with-shared create shared libraries" | |
18 | ac_help="$ac_help | |
19 | **--without-optimise create unoptimised code" | |
20 | ac_help="$ac_help | |
21 | **--with-debug_flag create code with DEBUG define set to 1" | |
22 | ac_help="$ac_help | |
23 | **--with-debug_info create code with debuging information included" | |
24 | ac_help="$ac_help | |
25 | **--with-mem_traing create code with memory tracing" | |
26 | ac_help="$ac_help | |
27 | **--with-profile create code with profiling information included" | |
28 | ac_help="$ac_help | |
29 | **--with-zlib use zlib (LZW comression)" | |
30 | ac_help="$ac_help | |
31 | **--with-gdk_imlib use Raster's gdk_imlib (Image library)" | |
32 | ac_help="$ac_help | |
33 | **--with-libpng use libpng (PNG image format)" | |
34 | ac_help="$ac_help | |
35 | **--with-threads use threads" | |
36 | ac_help="$ac_help | |
37 | **--with-opengl use opengl (OpenGL or Mesa)" | |
38 | ac_help="$ac_help | |
39 | **--with-storable use storable classes" | |
40 | ac_help="$ac_help | |
41 | **--with-autotrans use gettext automatic translation" | |
42 | ac_help="$ac_help | |
43 | **--with-afmfonts use Adobe Font Metric Font table" | |
44 | ac_help="$ac_help | |
45 | **--with-PS-normalized use normalized PS fonts" | |
46 | ac_help="$ac_help | |
47 | **--with-rpc use RPC" | |
48 | ac_help="$ac_help | |
49 | **--with-wxresources use wxresources" | |
50 | ac_help="$ac_help | |
51 | **--with-prologio use prologio" | |
52 | ac_help="$ac_help | |
53 | **--with-postscript use postscript-device-context" | |
54 | ac_help="$ac_help | |
53b28675 RR |
55 | **--with-wxconfig use wxconfig" |
56 | ac_help="$ac_help | |
c801d85f KB |
57 | **--with-metafile use metafile" |
58 | ac_help="$ac_help | |
59 | **--with-form use form" | |
60 | ac_help="$ac_help | |
61 | **--with-help use help" | |
62 | ac_help="$ac_help | |
63 | **--with-ipc use ipc" | |
64 | ac_help="$ac_help | |
65 | **--with-enhanceddialog use enhanced dialog" | |
66 | ac_help="$ac_help | |
67 | **--with-resources use resources" | |
68 | ac_help="$ac_help | |
69 | **--with-clipboard use clipboard" | |
70 | ac_help="$ac_help | |
71 | **--with-timedate use timedate" | |
72 | ac_help="$ac_help | |
73 | **--with-fraction use fraction" | |
74 | ac_help="$ac_help | |
75 | **--with-constraints use constraints" | |
76 | ac_help="$ac_help | |
77 | **--with-toolbar use toolbar" | |
78 | ac_help="$ac_help | |
79 | **--with-gauge use gauge" | |
80 | ac_help="$ac_help | |
81 | **--with-vlbox use virtual list box" | |
82 | ac_help="$ac_help | |
83 | **--with-scrollbar use scrollbar" | |
84 | ac_help="$ac_help | |
85 | **--with-docview use document view architecture" | |
86 | ac_help="$ac_help | |
87 | **--with-printarch use printing architecture" | |
88 | ac_help="$ac_help | |
89 | **--with-typetree use typetree" | |
90 | ac_help="$ac_help | |
91 | **--with-wxgraph use wxgraph" | |
92 | ac_help="$ac_help | |
93 | **--with-wxtree use wxtree" | |
94 | ac_help="$ac_help | |
95 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
96 | ac_help="$ac_help | |
97 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
98 | ||
99 | # Initialize some variables set by options. | |
100 | # The variables have the same names as the options, with | |
101 | # dashes changed to underlines. | |
102 | build=NONE | |
103 | cache_file=./config.cache | |
104 | exec_prefix=NONE | |
105 | host=NONE | |
106 | no_create= | |
107 | nonopt=NONE | |
108 | no_recursion= | |
109 | prefix=NONE | |
110 | program_prefix=NONE | |
111 | program_suffix=NONE | |
112 | program_transform_name=s,x,x, | |
113 | silent= | |
114 | site= | |
115 | srcdir= | |
116 | target=NONE | |
117 | verbose= | |
118 | x_includes=NONE | |
119 | x_libraries=NONE | |
120 | bindir='${exec_prefix}/bin' | |
121 | sbindir='${exec_prefix}/sbin' | |
122 | libexecdir='${exec_prefix}/libexec' | |
123 | datadir='${prefix}/share' | |
124 | sysconfdir='${prefix}/etc' | |
125 | sharedstatedir='${prefix}/com' | |
126 | localstatedir='${prefix}/var' | |
127 | libdir='${exec_prefix}/lib' | |
128 | includedir='${prefix}/include' | |
129 | oldincludedir='/usr/include' | |
130 | infodir='${prefix}/info' | |
131 | mandir='${prefix}/man' | |
132 | ||
133 | # Initialize some other variables. | |
134 | subdirs= | |
135 | MFLAGS= MAKEFLAGS= | |
136 | # Maximum number of lines to put in a shell here document. | |
137 | ac_max_here_lines=12 | |
138 | ||
139 | ac_prev= | |
140 | for ac_option | |
141 | do | |
142 | ||
143 | # If the previous option needs an argument, assign it. | |
144 | if test -n "$ac_prev"; then | |
145 | eval "$ac_prev=\$ac_option" | |
146 | ac_prev= | |
147 | continue | |
148 | fi | |
149 | ||
150 | case "$ac_option" in | |
151 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
152 | *) ac_optarg= ;; | |
153 | esac | |
154 | ||
155 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
156 | ||
157 | case "$ac_option" in | |
158 | ||
159 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
160 | ac_prev=bindir ;; | |
161 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
162 | bindir="$ac_optarg" ;; | |
163 | ||
164 | -build | --build | --buil | --bui | --bu) | |
165 | ac_prev=build ;; | |
166 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
167 | build="$ac_optarg" ;; | |
168 | ||
169 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
170 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
171 | ac_prev=cache_file ;; | |
172 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
173 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
174 | cache_file="$ac_optarg" ;; | |
175 | ||
176 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
177 | ac_prev=datadir ;; | |
178 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
179 | | --da=*) | |
180 | datadir="$ac_optarg" ;; | |
181 | ||
182 | -disable-* | --disable-*) | |
183 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
184 | # Reject names that are not valid shell variable names. | |
185 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
186 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
187 | fi | |
188 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
189 | eval "enable_${ac_feature}=no" ;; | |
190 | ||
191 | -enable-* | --enable-*) | |
192 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
193 | # Reject names that are not valid shell variable names. | |
194 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
195 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
196 | fi | |
197 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
198 | case "$ac_option" in | |
199 | *=*) ;; | |
200 | *) ac_optarg=yes ;; | |
201 | esac | |
202 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
203 | ||
204 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
205 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
206 | | --exec | --exe | --ex) | |
207 | ac_prev=exec_prefix ;; | |
208 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
209 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
210 | | --exec=* | --exe=* | --ex=*) | |
211 | exec_prefix="$ac_optarg" ;; | |
212 | ||
213 | -gas | --gas | --ga | --g) | |
214 | # Obsolete; use --with-gas. | |
215 | with_gas=yes ;; | |
216 | ||
217 | -help | --help | --hel | --he) | |
218 | # Omit some internal or obsolete options to make the list less imposing. | |
219 | # This message is too long to be a string in the A/UX 3.1 sh. | |
220 | cat << EOF | |
221 | Usage: configure [options] [host] | |
222 | Options: [defaults in brackets after descriptions] | |
223 | Configuration: | |
224 | --cache-file=FILE cache test results in FILE | |
225 | --help print this message | |
226 | --no-create do not create output files | |
227 | --quiet, --silent do not print \`checking...' messages | |
228 | --version print the version of autoconf that created configure | |
229 | Directory and file names: | |
230 | --prefix=PREFIX install architecture-independent files in PREFIX | |
231 | [$ac_default_prefix] | |
232 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
233 | [same as prefix] | |
234 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
235 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
236 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
237 | --datadir=DIR read-only architecture-independent data in DIR | |
238 | [PREFIX/share] | |
239 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
240 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
241 | [PREFIX/com] | |
242 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
243 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
244 | --includedir=DIR C header files in DIR [PREFIX/include] | |
245 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
246 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
247 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
248 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
249 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
250 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
251 | --program-transform-name=PROGRAM | |
252 | run sed PROGRAM on installed program names | |
253 | EOF | |
254 | cat << EOF | |
255 | Host type: | |
256 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
257 | --host=HOST configure for HOST [guessed] | |
258 | --target=TARGET configure for TARGET [TARGET=HOST] | |
259 | Features and packages: | |
260 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
261 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
262 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
263 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
264 | --x-includes=DIR X include files are in DIR | |
265 | --x-libraries=DIR X library files are in DIR | |
266 | EOF | |
267 | if test -n "$ac_help"; then | |
268 | echo "--enable and --with options recognized:$ac_help" | |
269 | fi | |
270 | exit 0 ;; | |
271 | ||
272 | -host | --host | --hos | --ho) | |
273 | ac_prev=host ;; | |
274 | -host=* | --host=* | --hos=* | --ho=*) | |
275 | host="$ac_optarg" ;; | |
276 | ||
277 | -includedir | --includedir | --includedi | --included | --include \ | |
278 | | --includ | --inclu | --incl | --inc) | |
279 | ac_prev=includedir ;; | |
280 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
281 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
282 | includedir="$ac_optarg" ;; | |
283 | ||
284 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
285 | ac_prev=infodir ;; | |
286 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
287 | infodir="$ac_optarg" ;; | |
288 | ||
289 | -libdir | --libdir | --libdi | --libd) | |
290 | ac_prev=libdir ;; | |
291 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
292 | libdir="$ac_optarg" ;; | |
293 | ||
294 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
295 | | --libexe | --libex | --libe) | |
296 | ac_prev=libexecdir ;; | |
297 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
298 | | --libexe=* | --libex=* | --libe=*) | |
299 | libexecdir="$ac_optarg" ;; | |
300 | ||
301 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
302 | | --localstate | --localstat | --localsta | --localst \ | |
303 | | --locals | --local | --loca | --loc | --lo) | |
304 | ac_prev=localstatedir ;; | |
305 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
306 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
307 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
308 | localstatedir="$ac_optarg" ;; | |
309 | ||
310 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
311 | ac_prev=mandir ;; | |
312 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
313 | mandir="$ac_optarg" ;; | |
314 | ||
315 | -nfp | --nfp | --nf) | |
316 | # Obsolete; use --without-fp. | |
317 | with_fp=no ;; | |
318 | ||
319 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
320 | | --no-cr | --no-c) | |
321 | no_create=yes ;; | |
322 | ||
323 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
324 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
325 | no_recursion=yes ;; | |
326 | ||
327 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
328 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
329 | | --oldin | --oldi | --old | --ol | --o) | |
330 | ac_prev=oldincludedir ;; | |
331 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
332 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
333 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
334 | oldincludedir="$ac_optarg" ;; | |
335 | ||
336 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
337 | ac_prev=prefix ;; | |
338 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
339 | prefix="$ac_optarg" ;; | |
340 | ||
341 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
342 | | --program-pre | --program-pr | --program-p) | |
343 | ac_prev=program_prefix ;; | |
344 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
345 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
346 | program_prefix="$ac_optarg" ;; | |
347 | ||
348 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
349 | | --program-suf | --program-su | --program-s) | |
350 | ac_prev=program_suffix ;; | |
351 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
352 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
353 | program_suffix="$ac_optarg" ;; | |
354 | ||
355 | -program-transform-name | --program-transform-name \ | |
356 | | --program-transform-nam | --program-transform-na \ | |
357 | | --program-transform-n | --program-transform- \ | |
358 | | --program-transform | --program-transfor \ | |
359 | | --program-transfo | --program-transf \ | |
360 | | --program-trans | --program-tran \ | |
361 | | --progr-tra | --program-tr | --program-t) | |
362 | ac_prev=program_transform_name ;; | |
363 | -program-transform-name=* | --program-transform-name=* \ | |
364 | | --program-transform-nam=* | --program-transform-na=* \ | |
365 | | --program-transform-n=* | --program-transform-=* \ | |
366 | | --program-transform=* | --program-transfor=* \ | |
367 | | --program-transfo=* | --program-transf=* \ | |
368 | | --program-trans=* | --program-tran=* \ | |
369 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
370 | program_transform_name="$ac_optarg" ;; | |
371 | ||
372 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
373 | | -silent | --silent | --silen | --sile | --sil) | |
374 | silent=yes ;; | |
375 | ||
376 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
377 | ac_prev=sbindir ;; | |
378 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
379 | | --sbi=* | --sb=*) | |
380 | sbindir="$ac_optarg" ;; | |
381 | ||
382 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
383 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
384 | | --sharedst | --shareds | --shared | --share | --shar \ | |
385 | | --sha | --sh) | |
386 | ac_prev=sharedstatedir ;; | |
387 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
388 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
389 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
390 | | --sha=* | --sh=*) | |
391 | sharedstatedir="$ac_optarg" ;; | |
392 | ||
393 | -site | --site | --sit) | |
394 | ac_prev=site ;; | |
395 | -site=* | --site=* | --sit=*) | |
396 | site="$ac_optarg" ;; | |
397 | ||
398 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
399 | ac_prev=srcdir ;; | |
400 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
401 | srcdir="$ac_optarg" ;; | |
402 | ||
403 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
404 | | --syscon | --sysco | --sysc | --sys | --sy) | |
405 | ac_prev=sysconfdir ;; | |
406 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
407 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
408 | sysconfdir="$ac_optarg" ;; | |
409 | ||
410 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
411 | ac_prev=target ;; | |
412 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
413 | target="$ac_optarg" ;; | |
414 | ||
415 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
416 | verbose=yes ;; | |
417 | ||
418 | -version | --version | --versio | --versi | --vers) | |
419 | echo "configure generated by autoconf version 2.12" | |
420 | exit 0 ;; | |
421 | ||
422 | -with-* | --with-*) | |
423 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
424 | # Reject names that are not valid shell variable names. | |
425 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
426 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
427 | fi | |
428 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
429 | case "$ac_option" in | |
430 | *=*) ;; | |
431 | *) ac_optarg=yes ;; | |
432 | esac | |
433 | eval "with_${ac_package}='$ac_optarg'" ;; | |
434 | ||
435 | -without-* | --without-*) | |
436 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
437 | # Reject names that are not valid shell variable names. | |
438 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
439 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
440 | fi | |
441 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
442 | eval "with_${ac_package}=no" ;; | |
443 | ||
444 | --x) | |
445 | # Obsolete; use --with-x. | |
446 | with_x=yes ;; | |
447 | ||
448 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
449 | | --x-incl | --x-inc | --x-in | --x-i) | |
450 | ac_prev=x_includes ;; | |
451 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
452 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
453 | x_includes="$ac_optarg" ;; | |
454 | ||
455 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
456 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
457 | ac_prev=x_libraries ;; | |
458 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
459 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
460 | x_libraries="$ac_optarg" ;; | |
461 | ||
462 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
463 | ;; | |
464 | ||
465 | *) | |
466 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
467 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
468 | fi | |
469 | if test "x$nonopt" != xNONE; then | |
470 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
471 | fi | |
472 | nonopt="$ac_option" | |
473 | ;; | |
474 | ||
475 | esac | |
476 | done | |
477 | ||
478 | if test -n "$ac_prev"; then | |
479 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
480 | fi | |
481 | ||
482 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
483 | ||
484 | # File descriptor usage: | |
485 | # 0 standard input | |
486 | # 1 file creation | |
487 | # 2 errors and warnings | |
488 | # 3 some systems may open it to /dev/tty | |
489 | # 4 used on the Kubota Titan | |
490 | # 6 checking for... messages and results | |
491 | # 5 compiler messages saved in config.log | |
492 | if test "$silent" = yes; then | |
493 | exec 6>/dev/null | |
494 | else | |
495 | exec 6>&1 | |
496 | fi | |
497 | exec 5>./config.log | |
498 | ||
499 | echo "\ | |
500 | This file contains any messages produced by compilers while | |
501 | running configure, to aid debugging if configure makes a mistake. | |
502 | " 1>&5 | |
503 | ||
504 | # Strip out --no-create and --no-recursion so they do not pile up. | |
505 | # Also quote any args containing shell metacharacters. | |
506 | ac_configure_args= | |
507 | for ac_arg | |
508 | do | |
509 | case "$ac_arg" in | |
510 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
511 | | --no-cr | --no-c) ;; | |
512 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
513 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
514 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
515 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
516 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
517 | esac | |
518 | done | |
519 | ||
520 | # NLS nuisances. | |
521 | # Only set these to C if already set. These must not be set unconditionally | |
522 | # because not all systems understand e.g. LANG=C (notably SCO). | |
523 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
524 | # Non-C LC_CTYPE values break the ctype check. | |
525 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
526 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
527 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
528 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
529 | ||
530 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
531 | rm -rf conftest* confdefs.h | |
532 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
533 | echo > confdefs.h | |
534 | ||
535 | # A filename unique to this package, relative to the directory that | |
536 | # configure is in, which we can look for to find out if srcdir is correct. | |
537 | ac_unique_file=configure.in | |
538 | ||
539 | # Find the source files, if location was not specified. | |
540 | if test -z "$srcdir"; then | |
541 | ac_srcdir_defaulted=yes | |
542 | # Try the directory containing this script, then its parent. | |
543 | ac_prog=$0 | |
544 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
545 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
546 | srcdir=$ac_confdir | |
547 | if test ! -r $srcdir/$ac_unique_file; then | |
548 | srcdir=.. | |
549 | fi | |
550 | else | |
551 | ac_srcdir_defaulted=no | |
552 | fi | |
553 | if test ! -r $srcdir/$ac_unique_file; then | |
554 | if test "$ac_srcdir_defaulted" = yes; then | |
555 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
556 | else | |
557 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
558 | fi | |
559 | fi | |
560 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
561 | ||
562 | # Prefer explicitly selected file to automatically selected ones. | |
563 | if test -z "$CONFIG_SITE"; then | |
564 | if test "x$prefix" != xNONE; then | |
565 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
566 | else | |
567 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
568 | fi | |
569 | fi | |
570 | for ac_site_file in $CONFIG_SITE; do | |
571 | if test -r "$ac_site_file"; then | |
572 | echo "loading site script $ac_site_file" | |
573 | . "$ac_site_file" | |
574 | fi | |
575 | done | |
576 | ||
577 | if test -r "$cache_file"; then | |
578 | echo "loading cache $cache_file" | |
579 | . $cache_file | |
580 | else | |
581 | echo "creating cache $cache_file" | |
582 | > $cache_file | |
583 | fi | |
584 | ||
585 | ac_ext=c | |
586 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
587 | ac_cpp='$CPP $CPPFLAGS' | |
588 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
589 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
590 | cross_compiling=$ac_cv_prog_cc_cross | |
591 | ||
592 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
593 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
594 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
595 | ac_n= ac_c=' | |
596 | ' ac_t=' ' | |
597 | else | |
598 | ac_n=-n ac_c= ac_t= | |
599 | fi | |
600 | else | |
601 | ac_n= ac_c='\c' ac_t= | |
602 | fi | |
603 | ||
604 | ||
605 | ||
606 | ||
607 | OS="${OSTYPE}" | |
608 | ||
609 | if test "x$OS" = "x"; then | |
610 | UNAME=`uname` | |
611 | { echo "configure: error: "The system variable OS has not been set" | |
612 | "please set is everytime befor compiling on this system" | |
613 | "A good example for this system would be:" | |
614 | "setenv OSTYPE $UNAME for csh as a SHELL" | |
615 | "EXPORT OSTYPE=$UNAME for sh as SHELL" | |
616 | "please set this and restart again." | |
617 | " 1>&2; exit 1; } | |
618 | fi | |
619 | ||
620 | ||
abe1d62e | 621 | cd ../.. |
c801d85f | 622 | WXBASEDIR=`pwd` |
abe1d62e | 623 | cd install/gtk |
c801d85f KB |
624 | |
625 | ||
626 | ||
627 | SEARCH_INCLUDE="\ | |
628 | /usr/Motif1.2/include \ | |
629 | \ | |
630 | /usr/X11R6/include \ | |
631 | /usr/X11R5/include \ | |
632 | /usr/X11R4/include \ | |
633 | \ | |
634 | /usr/include/X11R6 \ | |
635 | /usr/include/X11R5 \ | |
636 | /usr/include/X11R4 \ | |
637 | \ | |
638 | /usr/local/X11R6/include \ | |
639 | /usr/local/X11R5/include \ | |
640 | /usr/local/X11R4/include \ | |
641 | \ | |
642 | /usr/local/include/X11R6 \ | |
643 | /usr/local/include/X11R5 \ | |
644 | /usr/local/include/X11R4 \ | |
645 | \ | |
646 | /usr/X11/include \ | |
647 | /usr/include/X11 \ | |
648 | /usr/local/X11/include \ | |
649 | /usr/local/include/X11 \ | |
650 | \ | |
651 | /usr/X386/include \ | |
652 | /usr/x386/include \ | |
653 | /usr/XFree86/include/X11 \ | |
654 | \ | |
655 | /usr/include \ | |
656 | /usr/local/include \ | |
657 | /usr/local/include/gtk \ | |
658 | /usr/unsupported/include \ | |
659 | /usr/athena/include \ | |
660 | /usr/local/x11r5/include \ | |
661 | /usr/lpp/Xamples/include \ | |
662 | \ | |
663 | /usr/openwin/include \ | |
664 | /usr/openwin/share/include \ | |
665 | " | |
666 | ||
667 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \ | |
668 | " | |
669 | ||
670 | ||
671 | ||
672 | # Extract the first word of "gcc", so it can be a program name with args. | |
673 | set dummy gcc; ac_word=$2 | |
674 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
53b28675 | 675 | echo "configure:676: checking for $ac_word" >&5 |
c801d85f KB |
676 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
678 | else | |
679 | if test -n "$CC"; then | |
680 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
681 | else | |
682 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
683 | for ac_dir in $PATH; do | |
684 | test -z "$ac_dir" && ac_dir=. | |
685 | if test -f $ac_dir/$ac_word; then | |
686 | ac_cv_prog_CC="gcc" | |
687 | break | |
688 | fi | |
689 | done | |
690 | IFS="$ac_save_ifs" | |
691 | fi | |
692 | fi | |
693 | CC="$ac_cv_prog_CC" | |
694 | if test -n "$CC"; then | |
695 | echo "$ac_t""$CC" 1>&6 | |
696 | else | |
697 | echo "$ac_t""no" 1>&6 | |
698 | fi | |
699 | ||
700 | if test -z "$CC"; then | |
701 | # Extract the first word of "cc", so it can be a program name with args. | |
702 | set dummy cc; ac_word=$2 | |
703 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
53b28675 | 704 | echo "configure:705: checking for $ac_word" >&5 |
c801d85f KB |
705 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
706 | echo $ac_n "(cached) $ac_c" 1>&6 | |
707 | else | |
708 | if test -n "$CC"; then | |
709 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
710 | else | |
711 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
712 | ac_prog_rejected=no | |
713 | for ac_dir in $PATH; do | |
714 | test -z "$ac_dir" && ac_dir=. | |
715 | if test -f $ac_dir/$ac_word; then | |
716 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
717 | ac_prog_rejected=yes | |
718 | continue | |
719 | fi | |
720 | ac_cv_prog_CC="cc" | |
721 | break | |
722 | fi | |
723 | done | |
724 | IFS="$ac_save_ifs" | |
725 | if test $ac_prog_rejected = yes; then | |
726 | # We found a bogon in the path, so make sure we never use it. | |
727 | set dummy $ac_cv_prog_CC | |
728 | shift | |
729 | if test $# -gt 0; then | |
730 | # We chose a different compiler from the bogus one. | |
731 | # However, it has the same basename, so the bogon will be chosen | |
732 | # first if we set CC to just the basename; use the full file name. | |
733 | shift | |
734 | set dummy "$ac_dir/$ac_word" "$@" | |
735 | shift | |
736 | ac_cv_prog_CC="$@" | |
737 | fi | |
738 | fi | |
739 | fi | |
740 | fi | |
741 | CC="$ac_cv_prog_CC" | |
742 | if test -n "$CC"; then | |
743 | echo "$ac_t""$CC" 1>&6 | |
744 | else | |
745 | echo "$ac_t""no" 1>&6 | |
746 | fi | |
747 | ||
748 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
749 | fi | |
750 | ||
751 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
53b28675 | 752 | echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
c801d85f KB |
753 | |
754 | ac_ext=c | |
755 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
756 | ac_cpp='$CPP $CPPFLAGS' | |
757 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
758 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
759 | cross_compiling=$ac_cv_prog_cc_cross | |
760 | ||
761 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 762 | #line 763 "configure" |
c801d85f KB |
763 | #include "confdefs.h" |
764 | main(){return(0);} | |
765 | EOF | |
53b28675 | 766 | if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
767 | ac_cv_prog_cc_works=yes |
768 | # If we can't run a trivial program, we are probably using a cross compiler. | |
769 | if (./conftest; exit) 2>/dev/null; then | |
770 | ac_cv_prog_cc_cross=no | |
771 | else | |
772 | ac_cv_prog_cc_cross=yes | |
773 | fi | |
774 | else | |
775 | echo "configure: failed program was:" >&5 | |
776 | cat conftest.$ac_ext >&5 | |
777 | ac_cv_prog_cc_works=no | |
778 | fi | |
779 | rm -fr conftest* | |
780 | ||
781 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
782 | if test $ac_cv_prog_cc_works = no; then | |
783 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
784 | fi | |
785 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
53b28675 | 786 | echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c801d85f KB |
787 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
788 | cross_compiling=$ac_cv_prog_cc_cross | |
789 | ||
790 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
53b28675 | 791 | echo "configure:792: checking whether we are using GNU C" >&5 |
c801d85f KB |
792 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
794 | else | |
795 | cat > conftest.c <<EOF | |
796 | #ifdef __GNUC__ | |
797 | yes; | |
798 | #endif | |
799 | EOF | |
53b28675 | 800 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c801d85f KB |
801 | ac_cv_prog_gcc=yes |
802 | else | |
803 | ac_cv_prog_gcc=no | |
804 | fi | |
805 | fi | |
806 | ||
807 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
808 | ||
809 | if test $ac_cv_prog_gcc = yes; then | |
810 | GCC=yes | |
811 | ac_test_CFLAGS="${CFLAGS+set}" | |
812 | ac_save_CFLAGS="$CFLAGS" | |
813 | CFLAGS= | |
814 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
53b28675 | 815 | echo "configure:816: checking whether ${CC-cc} accepts -g" >&5 |
c801d85f KB |
816 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
818 | else | |
819 | echo 'void f(){}' > conftest.c | |
820 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
821 | ac_cv_prog_cc_g=yes | |
822 | else | |
823 | ac_cv_prog_cc_g=no | |
824 | fi | |
825 | rm -f conftest* | |
826 | ||
827 | fi | |
828 | ||
829 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
830 | if test "$ac_test_CFLAGS" = set; then | |
831 | CFLAGS="$ac_save_CFLAGS" | |
832 | elif test $ac_cv_prog_cc_g = yes; then | |
833 | CFLAGS="-g -O2" | |
834 | else | |
835 | CFLAGS="-O2" | |
836 | fi | |
837 | else | |
838 | GCC= | |
839 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
840 | fi | |
841 | ||
842 | ||
843 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
844 | ||
845 | if test "x$CC" != xcc; then | |
846 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 | |
53b28675 | 847 | echo "configure:848: checking whether $CC and cc understand -c and -o together" >&5 |
c801d85f KB |
848 | else |
849 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 | |
53b28675 | 850 | echo "configure:851: checking whether cc understands -c and -o together" >&5 |
c801d85f KB |
851 | fi |
852 | set dummy $CC; ac_cc="`echo $2 | | |
853 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" | |
854 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then | |
855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
856 | else | |
857 | echo 'foo(){}' > conftest.c | |
858 | # Make sure it works both with $CC and with simple cc. | |
859 | # We do the test twice because some compilers refuse to overwrite an | |
860 | # existing .o file with -o, though they will create one. | |
861 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' | |
53b28675 RR |
862 | if { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
863 | test -f conftest.o && { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
c801d85f KB |
864 | then |
865 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
866 | if test "x$CC" != xcc; then | |
867 | # Test first that cc exists at all. | |
53b28675 | 868 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
c801d85f | 869 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
53b28675 RR |
870 | if { (eval echo configure:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
871 | test -f conftest.o && { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
c801d85f KB |
872 | then |
873 | # cc works too. | |
874 | : | |
875 | else | |
876 | # cc exists but doesn't like -o. | |
877 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
878 | fi | |
879 | fi | |
880 | fi | |
881 | else | |
882 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
883 | fi | |
884 | rm -f conftest* | |
885 | ||
886 | fi | |
887 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
888 | echo "$ac_t""yes" 1>&6 | |
889 | else | |
890 | echo "$ac_t""no" 1>&6 | |
891 | cat >> confdefs.h <<\EOF | |
892 | #define NO_MINUS_C_MINUS_O 1 | |
893 | EOF | |
894 | ||
895 | fi | |
896 | ||
897 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
53b28675 | 898 | echo "configure:899: checking how to run the C preprocessor" >&5 |
c801d85f KB |
899 | # On Suns, sometimes $CPP names a directory. |
900 | if test -n "$CPP" && test -d "$CPP"; then | |
901 | CPP= | |
902 | fi | |
903 | if test -z "$CPP"; then | |
904 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
906 | else | |
907 | # This must be in double quotes, not single quotes, because CPP may get | |
908 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
909 | CPP="${CC-cc} -E" | |
910 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
911 | # not just through cpp. | |
912 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 913 | #line 914 "configure" |
c801d85f KB |
914 | #include "confdefs.h" |
915 | #include <assert.h> | |
916 | Syntax Error | |
917 | EOF | |
918 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 919 | { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
920 | ac_err=`grep -v '^ *+' conftest.out` |
921 | if test -z "$ac_err"; then | |
922 | : | |
923 | else | |
924 | echo "$ac_err" >&5 | |
925 | echo "configure: failed program was:" >&5 | |
926 | cat conftest.$ac_ext >&5 | |
927 | rm -rf conftest* | |
928 | CPP="${CC-cc} -E -traditional-cpp" | |
929 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 930 | #line 931 "configure" |
c801d85f KB |
931 | #include "confdefs.h" |
932 | #include <assert.h> | |
933 | Syntax Error | |
934 | EOF | |
935 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 936 | { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
937 | ac_err=`grep -v '^ *+' conftest.out` |
938 | if test -z "$ac_err"; then | |
939 | : | |
940 | else | |
941 | echo "$ac_err" >&5 | |
942 | echo "configure: failed program was:" >&5 | |
943 | cat conftest.$ac_ext >&5 | |
944 | rm -rf conftest* | |
945 | CPP=/lib/cpp | |
946 | fi | |
947 | rm -f conftest* | |
948 | fi | |
949 | rm -f conftest* | |
950 | ac_cv_prog_CPP="$CPP" | |
951 | fi | |
952 | CPP="$ac_cv_prog_CPP" | |
953 | else | |
954 | ac_cv_prog_CPP="$CPP" | |
955 | fi | |
956 | echo "$ac_t""$CPP" 1>&6 | |
957 | ||
958 | if test $ac_cv_prog_gcc = yes; then | |
959 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
53b28675 | 960 | echo "configure:961: checking whether ${CC-cc} needs -traditional" >&5 |
c801d85f KB |
961 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
963 | else | |
964 | ac_pattern="Autoconf.*'x'" | |
965 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 966 | #line 967 "configure" |
c801d85f KB |
967 | #include "confdefs.h" |
968 | #include <sgtty.h> | |
969 | Autoconf TIOCGETP | |
970 | EOF | |
971 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
972 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
973 | rm -rf conftest* | |
974 | ac_cv_prog_gcc_traditional=yes | |
975 | else | |
976 | rm -rf conftest* | |
977 | ac_cv_prog_gcc_traditional=no | |
978 | fi | |
979 | rm -f conftest* | |
980 | ||
981 | ||
982 | if test $ac_cv_prog_gcc_traditional = no; then | |
983 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 984 | #line 985 "configure" |
c801d85f KB |
985 | #include "confdefs.h" |
986 | #include <termio.h> | |
987 | Autoconf TCGETA | |
988 | EOF | |
989 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
990 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
991 | rm -rf conftest* | |
992 | ac_cv_prog_gcc_traditional=yes | |
993 | fi | |
994 | rm -f conftest* | |
995 | ||
996 | fi | |
997 | fi | |
998 | ||
999 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
1000 | if test $ac_cv_prog_gcc_traditional = yes; then | |
1001 | CC="$CC -traditional" | |
1002 | fi | |
1003 | fi | |
1004 | ||
1005 | ||
1006 | ||
1007 | ||
1008 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ | |
1009 | do | |
1010 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1011 | set dummy $ac_prog; ac_word=$2 | |
1012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
53b28675 | 1013 | echo "configure:1014: checking for $ac_word" >&5 |
c801d85f KB |
1014 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
1015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1016 | else | |
1017 | if test -n "$CXX"; then | |
1018 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1019 | else | |
1020 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1021 | for ac_dir in $PATH; do | |
1022 | test -z "$ac_dir" && ac_dir=. | |
1023 | if test -f $ac_dir/$ac_word; then | |
1024 | ac_cv_prog_CXX="$ac_prog" | |
1025 | break | |
1026 | fi | |
1027 | done | |
1028 | IFS="$ac_save_ifs" | |
1029 | fi | |
1030 | fi | |
1031 | CXX="$ac_cv_prog_CXX" | |
1032 | if test -n "$CXX"; then | |
1033 | echo "$ac_t""$CXX" 1>&6 | |
1034 | else | |
1035 | echo "$ac_t""no" 1>&6 | |
1036 | fi | |
1037 | ||
1038 | test -n "$CXX" && break | |
1039 | done | |
1040 | test -n "$CXX" || CXX="gcc" | |
1041 | ||
1042 | ||
1043 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
53b28675 | 1044 | echo "configure:1045: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
c801d85f KB |
1045 | |
1046 | ac_ext=C | |
1047 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1048 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1049 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1050 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1051 | cross_compiling=$ac_cv_prog_cxx_cross | |
1052 | ||
1053 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1054 | #line 1055 "configure" |
c801d85f KB |
1055 | #include "confdefs.h" |
1056 | main(){return(0);} | |
1057 | EOF | |
53b28675 | 1058 | if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1059 | ac_cv_prog_cxx_works=yes |
1060 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1061 | if (./conftest; exit) 2>/dev/null; then | |
1062 | ac_cv_prog_cxx_cross=no | |
1063 | else | |
1064 | ac_cv_prog_cxx_cross=yes | |
1065 | fi | |
1066 | else | |
1067 | echo "configure: failed program was:" >&5 | |
1068 | cat conftest.$ac_ext >&5 | |
1069 | ac_cv_prog_cxx_works=no | |
1070 | fi | |
1071 | rm -fr conftest* | |
1072 | ac_ext=c | |
1073 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1074 | ac_cpp='$CPP $CPPFLAGS' | |
1075 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1076 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1077 | cross_compiling=$ac_cv_prog_cc_cross | |
1078 | ||
1079 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
1080 | if test $ac_cv_prog_cxx_works = no; then | |
1081 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
1082 | fi | |
1083 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
53b28675 | 1084 | echo "configure:1085: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
c801d85f KB |
1085 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
1086 | cross_compiling=$ac_cv_prog_cxx_cross | |
1087 | ||
1088 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
53b28675 | 1089 | echo "configure:1090: checking whether we are using GNU C++" >&5 |
c801d85f KB |
1090 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
1091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1092 | else | |
1093 | cat > conftest.C <<EOF | |
1094 | #ifdef __GNUC__ | |
1095 | yes; | |
1096 | #endif | |
1097 | EOF | |
53b28675 | 1098 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
c801d85f KB |
1099 | ac_cv_prog_gxx=yes |
1100 | else | |
1101 | ac_cv_prog_gxx=no | |
1102 | fi | |
1103 | fi | |
1104 | ||
1105 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
1106 | ||
1107 | if test $ac_cv_prog_gxx = yes; then | |
1108 | GXX=yes | |
1109 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
1110 | ac_save_CXXFLAGS="$CXXFLAGS" | |
1111 | CXXFLAGS= | |
1112 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
53b28675 | 1113 | echo "configure:1114: checking whether ${CXX-g++} accepts -g" >&5 |
c801d85f KB |
1114 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
1115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1116 | else | |
1117 | echo 'void f(){}' > conftest.cc | |
1118 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
1119 | ac_cv_prog_cxx_g=yes | |
1120 | else | |
1121 | ac_cv_prog_cxx_g=no | |
1122 | fi | |
1123 | rm -f conftest* | |
1124 | ||
1125 | fi | |
1126 | ||
1127 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
1128 | if test "$ac_test_CXXFLAGS" = set; then | |
1129 | CXXFLAGS="$ac_save_CXXFLAGS" | |
1130 | elif test $ac_cv_prog_cxx_g = yes; then | |
1131 | CXXFLAGS="-g -O2" | |
1132 | else | |
1133 | CXXFLAGS="-O2" | |
1134 | fi | |
1135 | else | |
1136 | GXX= | |
1137 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
1138 | fi | |
1139 | ||
1140 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
53b28675 | 1141 | echo "configure:1142: checking how to run the C++ preprocessor" >&5 |
c801d85f KB |
1142 | if test -z "$CXXCPP"; then |
1143 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
1144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1145 | else | |
1146 | ac_ext=C | |
1147 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1148 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1149 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1150 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1151 | cross_compiling=$ac_cv_prog_cxx_cross | |
1152 | CXXCPP="${CXX-g++} -E" | |
1153 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1154 | #line 1155 "configure" |
c801d85f KB |
1155 | #include "confdefs.h" |
1156 | #include <stdlib.h> | |
1157 | EOF | |
1158 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 1159 | { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
1160 | ac_err=`grep -v '^ *+' conftest.out` |
1161 | if test -z "$ac_err"; then | |
1162 | : | |
1163 | else | |
1164 | echo "$ac_err" >&5 | |
1165 | echo "configure: failed program was:" >&5 | |
1166 | cat conftest.$ac_ext >&5 | |
1167 | rm -rf conftest* | |
1168 | CXXCPP=/lib/cpp | |
1169 | fi | |
1170 | rm -f conftest* | |
1171 | ac_cv_prog_CXXCPP="$CXXCPP" | |
1172 | ac_ext=c | |
1173 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1174 | ac_cpp='$CPP $CPPFLAGS' | |
1175 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1176 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1177 | cross_compiling=$ac_cv_prog_cc_cross | |
1178 | fi | |
1179 | fi | |
1180 | CXXCPP="$ac_cv_prog_CXXCPP" | |
1181 | echo "$ac_t""$CXXCPP" 1>&6 | |
1182 | ||
1183 | ||
1184 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
1185 | ||
1186 | ||
1187 | ||
1188 | # Extract the first word of "ranlib", so it can be a program name with args. | |
1189 | set dummy ranlib; ac_word=$2 | |
1190 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
53b28675 | 1191 | echo "configure:1192: checking for $ac_word" >&5 |
c801d85f KB |
1192 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1194 | else | |
1195 | if test -n "$RANLIB"; then | |
1196 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1197 | else | |
1198 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1199 | for ac_dir in $PATH; do | |
1200 | test -z "$ac_dir" && ac_dir=. | |
1201 | if test -f $ac_dir/$ac_word; then | |
1202 | ac_cv_prog_RANLIB="ranlib" | |
1203 | break | |
1204 | fi | |
1205 | done | |
1206 | IFS="$ac_save_ifs" | |
1207 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1208 | fi | |
1209 | fi | |
1210 | RANLIB="$ac_cv_prog_RANLIB" | |
1211 | if test -n "$RANLIB"; then | |
1212 | echo "$ac_t""$RANLIB" 1>&6 | |
1213 | else | |
1214 | echo "$ac_t""no" 1>&6 | |
1215 | fi | |
1216 | ||
1217 | ||
1218 | # Extract the first word of "ar", so it can be a program name with args. | |
1219 | set dummy ar; ac_word=$2 | |
1220 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
53b28675 | 1221 | echo "configure:1222: checking for $ac_word" >&5 |
c801d85f KB |
1222 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1224 | else | |
1225 | if test -n "$AR"; then | |
1226 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
1227 | else | |
1228 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1229 | for ac_dir in $PATH; do | |
1230 | test -z "$ac_dir" && ac_dir=. | |
1231 | if test -f $ac_dir/$ac_word; then | |
1232 | ac_cv_prog_AR="ar" | |
1233 | break | |
1234 | fi | |
1235 | done | |
1236 | IFS="$ac_save_ifs" | |
1237 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
1238 | fi | |
1239 | fi | |
1240 | AR="$ac_cv_prog_AR" | |
1241 | if test -n "$AR"; then | |
1242 | echo "$ac_t""$AR" 1>&6 | |
1243 | else | |
1244 | echo "$ac_t""no" 1>&6 | |
1245 | fi | |
1246 | ||
1247 | ||
1248 | ac_aux_dir= | |
1249 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1250 | if test -f $ac_dir/install-sh; then | |
1251 | ac_aux_dir=$ac_dir | |
1252 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1253 | break | |
1254 | elif test -f $ac_dir/install.sh; then | |
1255 | ac_aux_dir=$ac_dir | |
1256 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1257 | break | |
1258 | fi | |
1259 | done | |
1260 | if test -z "$ac_aux_dir"; then | |
1261 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
1262 | fi | |
1263 | ac_config_guess=$ac_aux_dir/config.guess | |
1264 | ac_config_sub=$ac_aux_dir/config.sub | |
1265 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
1266 | ||
1267 | # Find a good install program. We prefer a C program (faster), | |
1268 | # so one script is as good as another. But avoid the broken or | |
1269 | # incompatible versions: | |
1270 | # SysV /etc/install, /usr/sbin/install | |
1271 | # SunOS /usr/etc/install | |
1272 | # IRIX /sbin/install | |
1273 | # AIX /bin/install | |
1274 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1275 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1276 | # ./install, which can be erroneously created by make from ./install.sh. | |
1277 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
53b28675 | 1278 | echo "configure:1279: checking for a BSD compatible install" >&5 |
c801d85f KB |
1279 | if test -z "$INSTALL"; then |
1280 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1282 | else | |
1283 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1284 | for ac_dir in $PATH; do | |
1285 | # Account for people who put trailing slashes in PATH elements. | |
1286 | case "$ac_dir/" in | |
1287 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1288 | *) | |
1289 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1290 | for ac_prog in ginstall installbsd scoinst install; do | |
1291 | if test -f $ac_dir/$ac_prog; then | |
1292 | if test $ac_prog = install && | |
1293 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1294 | # AIX install. It has an incompatible calling convention. | |
1295 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1296 | : | |
1297 | else | |
1298 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1299 | break 2 | |
1300 | fi | |
1301 | fi | |
1302 | done | |
1303 | ;; | |
1304 | esac | |
1305 | done | |
1306 | IFS="$ac_save_IFS" | |
1307 | ||
1308 | fi | |
1309 | if test "${ac_cv_path_install+set}" = set; then | |
1310 | INSTALL="$ac_cv_path_install" | |
1311 | else | |
1312 | # As a last resort, use the slow shell script. We don't cache a | |
1313 | # path for INSTALL within a source directory, because that will | |
1314 | # break other packages using the cache if that directory is | |
1315 | # removed, or if the path is relative. | |
1316 | INSTALL="$ac_install_sh" | |
1317 | fi | |
1318 | fi | |
1319 | echo "$ac_t""$INSTALL" 1>&6 | |
1320 | ||
1321 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1322 | # It thinks the first close brace ends the variable substitution. | |
1323 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1324 | ||
1325 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1326 | ||
1327 | ||
1328 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
53b28675 | 1329 | echo "configure:1330: checking whether ln -s works" >&5 |
c801d85f KB |
1330 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1332 | else | |
1333 | rm -f conftestdata | |
1334 | if ln -s X conftestdata 2>/dev/null | |
1335 | then | |
1336 | rm -f conftestdata | |
1337 | ac_cv_prog_LN_S="ln -s" | |
1338 | else | |
1339 | ac_cv_prog_LN_S=ln | |
1340 | fi | |
1341 | fi | |
1342 | LN_S="$ac_cv_prog_LN_S" | |
1343 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1344 | echo "$ac_t""yes" 1>&6 | |
1345 | else | |
1346 | echo "$ac_t""no" 1>&6 | |
1347 | fi | |
1348 | ||
1349 | ||
1350 | for ac_prog in mawk gawk nawk awk | |
1351 | do | |
1352 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1353 | set dummy $ac_prog; ac_word=$2 | |
1354 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
53b28675 | 1355 | echo "configure:1356: checking for $ac_word" >&5 |
c801d85f KB |
1356 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1358 | else | |
1359 | if test -n "$AWK"; then | |
1360 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1361 | else | |
1362 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1363 | for ac_dir in $PATH; do | |
1364 | test -z "$ac_dir" && ac_dir=. | |
1365 | if test -f $ac_dir/$ac_word; then | |
1366 | ac_cv_prog_AWK="$ac_prog" | |
1367 | break | |
1368 | fi | |
1369 | done | |
1370 | IFS="$ac_save_ifs" | |
1371 | fi | |
1372 | fi | |
1373 | AWK="$ac_cv_prog_AWK" | |
1374 | if test -n "$AWK"; then | |
1375 | echo "$ac_t""$AWK" 1>&6 | |
1376 | else | |
1377 | echo "$ac_t""no" 1>&6 | |
1378 | fi | |
1379 | ||
1380 | test -n "$AWK" && break | |
1381 | done | |
1382 | ||
1383 | ||
1384 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
53b28675 | 1385 | echo "configure:1386: checking "make for VPATH support"" >&5 |
c801d85f KB |
1386 | cat - << EOF > confMake |
1387 | check : file | |
1388 | cp \$? \$@ | |
1389 | cp \$? final_file | |
1390 | EOF | |
1391 | ||
1392 | if test ! -d sub ; then | |
1393 | mkdir sub | |
1394 | fi | |
1395 | echo dummy > sub/file | |
1396 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
1397 | RESULT=$? | |
1398 | rm -f sub/file check final_file config.log confMake | |
1399 | rmdir sub | |
1400 | if test "$RESULT" = 0; then | |
1401 | echo "$ac_t""yes" 1>&6 | |
1402 | else | |
1403 | echo "$ac_t""no" 1>&6 | |
1404 | { echo "configure: error: You need a make-utility that is able to use the variable | |
1405 | VPATH correctly. | |
1406 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
1407 | fi | |
1408 | ||
1409 | ||
1410 | # If we find X, set shell vars x_includes and x_libraries to the | |
1411 | # paths, otherwise set no_x=yes. | |
1412 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
1413 | # --without-x overrides everything else, but does not touch the cache. | |
1414 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
53b28675 | 1415 | echo "configure:1416: checking for X" >&5 |
c801d85f KB |
1416 | |
1417 | # Check whether --with-x or --without-x was given. | |
1418 | if test "${with_x+set}" = set; then | |
1419 | withval="$with_x" | |
1420 | : | |
1421 | fi | |
1422 | ||
1423 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
1424 | if test "x$with_x" = xno; then | |
1425 | # The user explicitly disabled X. | |
1426 | have_x=disabled | |
1427 | else | |
1428 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
1429 | # Both variables are already set. | |
1430 | have_x=yes | |
1431 | else | |
1432 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
1433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1434 | else | |
1435 | # One or both of the vars are not set, and there is no cached value. | |
1436 | ac_x_includes=NO ac_x_libraries=NO | |
1437 | rm -fr conftestdir | |
1438 | if mkdir conftestdir; then | |
1439 | cd conftestdir | |
1440 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
1441 | cat > Imakefile <<'EOF' | |
1442 | acfindx: | |
1443 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
1444 | EOF | |
1445 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
1446 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1447 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
1448 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
1449 | for ac_extension in a so sl; do | |
1450 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1451 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1452 | ac_im_usrlibdir=$ac_im_libdir; break | |
1453 | fi | |
1454 | done | |
1455 | # Screen out bogus values from the imake configuration. They are | |
1456 | # bogus both because they are the default anyway, and because | |
1457 | # using them would break gcc on systems where it needs fixed includes. | |
1458 | case "$ac_im_incroot" in | |
1459 | /usr/include) ;; | |
1460 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1461 | esac | |
1462 | case "$ac_im_usrlibdir" in | |
1463 | /usr/lib | /lib) ;; | |
1464 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1465 | esac | |
1466 | fi | |
1467 | cd .. | |
1468 | rm -fr conftestdir | |
1469 | fi | |
1470 | ||
1471 | if test "$ac_x_includes" = NO; then | |
1472 | # Guess where to find include files, by looking for this one X11 .h file. | |
1473 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1474 | ||
1475 | # First, try using that file with no special directory specified. | |
1476 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1477 | #line 1478 "configure" |
c801d85f KB |
1478 | #include "confdefs.h" |
1479 | #include <$x_direct_test_include> | |
1480 | EOF | |
1481 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 1482 | { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
1483 | ac_err=`grep -v '^ *+' conftest.out` |
1484 | if test -z "$ac_err"; then | |
1485 | rm -rf conftest* | |
1486 | # We can compile using X headers with no special include directory. | |
1487 | ac_x_includes= | |
1488 | else | |
1489 | echo "$ac_err" >&5 | |
1490 | echo "configure: failed program was:" >&5 | |
1491 | cat conftest.$ac_ext >&5 | |
1492 | rm -rf conftest* | |
1493 | # Look for the header file in a standard set of common directories. | |
1494 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1495 | for ac_dir in \ | |
1496 | /usr/X11/include \ | |
1497 | /usr/X11R6/include \ | |
1498 | /usr/X11R5/include \ | |
1499 | /usr/X11R4/include \ | |
1500 | \ | |
1501 | /usr/include/X11 \ | |
1502 | /usr/include/X11R6 \ | |
1503 | /usr/include/X11R5 \ | |
1504 | /usr/include/X11R4 \ | |
1505 | \ | |
1506 | /usr/local/X11/include \ | |
1507 | /usr/local/X11R6/include \ | |
1508 | /usr/local/X11R5/include \ | |
1509 | /usr/local/X11R4/include \ | |
1510 | \ | |
1511 | /usr/local/include/X11 \ | |
1512 | /usr/local/include/X11R6 \ | |
1513 | /usr/local/include/X11R5 \ | |
1514 | /usr/local/include/X11R4 \ | |
1515 | \ | |
1516 | /usr/X386/include \ | |
1517 | /usr/x386/include \ | |
1518 | /usr/XFree86/include/X11 \ | |
1519 | \ | |
1520 | /usr/include \ | |
1521 | /usr/local/include \ | |
1522 | /usr/unsupported/include \ | |
1523 | /usr/athena/include \ | |
1524 | /usr/local/x11r5/include \ | |
1525 | /usr/lpp/Xamples/include \ | |
1526 | \ | |
1527 | /usr/openwin/include \ | |
1528 | /usr/openwin/share/include \ | |
1529 | ; \ | |
1530 | do | |
1531 | if test -r "$ac_dir/$x_direct_test_include"; then | |
1532 | ac_x_includes=$ac_dir | |
1533 | break | |
1534 | fi | |
1535 | done | |
1536 | fi | |
1537 | rm -f conftest* | |
1538 | fi # $ac_x_includes = NO | |
1539 | ||
1540 | if test "$ac_x_libraries" = NO; then | |
1541 | # Check for the libraries. | |
1542 | ||
1543 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
1544 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1545 | ||
1546 | # See if we find them without any special options. | |
1547 | # Don't add to $LIBS permanently. | |
1548 | ac_save_LIBS="$LIBS" | |
1549 | LIBS="-l$x_direct_test_library $LIBS" | |
1550 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1551 | #line 1552 "configure" |
c801d85f KB |
1552 | #include "confdefs.h" |
1553 | ||
1554 | int main() { | |
1555 | ${x_direct_test_function}() | |
1556 | ; return 0; } | |
1557 | EOF | |
53b28675 | 1558 | if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1559 | rm -rf conftest* |
1560 | LIBS="$ac_save_LIBS" | |
1561 | # We can link X programs with no special library path. | |
1562 | ac_x_libraries= | |
1563 | else | |
1564 | echo "configure: failed program was:" >&5 | |
1565 | cat conftest.$ac_ext >&5 | |
1566 | rm -rf conftest* | |
1567 | LIBS="$ac_save_LIBS" | |
1568 | # First see if replacing the include by lib works. | |
1569 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
1570 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
1571 | /usr/X11/lib \ | |
1572 | /usr/X11R6/lib \ | |
1573 | /usr/X11R5/lib \ | |
1574 | /usr/X11R4/lib \ | |
1575 | \ | |
1576 | /usr/lib/X11 \ | |
1577 | /usr/lib/X11R6 \ | |
1578 | /usr/lib/X11R5 \ | |
1579 | /usr/lib/X11R4 \ | |
1580 | \ | |
1581 | /usr/local/X11/lib \ | |
1582 | /usr/local/X11R6/lib \ | |
1583 | /usr/local/X11R5/lib \ | |
1584 | /usr/local/X11R4/lib \ | |
1585 | \ | |
1586 | /usr/local/lib/X11 \ | |
1587 | /usr/local/lib/X11R6 \ | |
1588 | /usr/local/lib/X11R5 \ | |
1589 | /usr/local/lib/X11R4 \ | |
1590 | \ | |
1591 | /usr/X386/lib \ | |
1592 | /usr/x386/lib \ | |
1593 | /usr/XFree86/lib/X11 \ | |
1594 | \ | |
1595 | /usr/lib \ | |
1596 | /usr/local/lib \ | |
1597 | /usr/unsupported/lib \ | |
1598 | /usr/athena/lib \ | |
1599 | /usr/local/x11r5/lib \ | |
1600 | /usr/lpp/Xamples/lib \ | |
1601 | /lib/usr/lib/X11 \ | |
1602 | \ | |
1603 | /usr/openwin/lib \ | |
1604 | /usr/openwin/share/lib \ | |
1605 | ; \ | |
1606 | do | |
1607 | for ac_extension in a so sl; do | |
1608 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
1609 | ac_x_libraries=$ac_dir | |
1610 | break 2 | |
1611 | fi | |
1612 | done | |
1613 | done | |
1614 | fi | |
1615 | rm -f conftest* | |
1616 | fi # $ac_x_libraries = NO | |
1617 | ||
1618 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
1619 | # Didn't find X anywhere. Cache the known absence of X. | |
1620 | ac_cv_have_x="have_x=no" | |
1621 | else | |
1622 | # Record where we found X for the cache. | |
1623 | ac_cv_have_x="have_x=yes \ | |
1624 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
1625 | fi | |
1626 | fi | |
1627 | fi | |
1628 | eval "$ac_cv_have_x" | |
1629 | fi # $with_x != no | |
1630 | ||
1631 | if test "$have_x" != yes; then | |
1632 | echo "$ac_t""$have_x" 1>&6 | |
1633 | no_x=yes | |
1634 | else | |
1635 | # If each of the values was on the command line, it overrides each guess. | |
1636 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
1637 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
1638 | # Update the cache value to reflect the command line values. | |
1639 | ac_cv_have_x="have_x=yes \ | |
1640 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
1641 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
1642 | fi | |
1643 | ||
1644 | if test "$no_x" = yes; then | |
1645 | # Not all programs may use this symbol, but it does not hurt to define it. | |
1646 | cat >> confdefs.h <<\EOF | |
1647 | #define X_DISPLAY_MISSING 1 | |
1648 | EOF | |
1649 | ||
1650 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
1651 | else | |
1652 | if test -n "$x_includes"; then | |
1653 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
1654 | fi | |
1655 | ||
1656 | # It would also be nice to do this for all -L options, not just this one. | |
1657 | if test -n "$x_libraries"; then | |
1658 | X_LIBS="$X_LIBS -L$x_libraries" | |
1659 | # For Solaris; some versions of Sun CC require a space after -R and | |
1660 | # others require no space. Words are not sufficient . . . . | |
1661 | case "`(uname -sr) 2>/dev/null`" in | |
1662 | "SunOS 5"*) | |
1663 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
53b28675 | 1664 | echo "configure:1665: checking whether -R must be followed by a space" >&5 |
c801d85f KB |
1665 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
1666 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1667 | #line 1668 "configure" |
c801d85f KB |
1668 | #include "confdefs.h" |
1669 | ||
1670 | int main() { | |
1671 | ||
1672 | ; return 0; } | |
1673 | EOF | |
53b28675 | 1674 | if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1675 | rm -rf conftest* |
1676 | ac_R_nospace=yes | |
1677 | else | |
1678 | echo "configure: failed program was:" >&5 | |
1679 | cat conftest.$ac_ext >&5 | |
1680 | rm -rf conftest* | |
1681 | ac_R_nospace=no | |
1682 | fi | |
1683 | rm -f conftest* | |
1684 | if test $ac_R_nospace = yes; then | |
1685 | echo "$ac_t""no" 1>&6 | |
1686 | X_LIBS="$X_LIBS -R$x_libraries" | |
1687 | else | |
1688 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
1689 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1690 | #line 1691 "configure" |
c801d85f KB |
1691 | #include "confdefs.h" |
1692 | ||
1693 | int main() { | |
1694 | ||
1695 | ; return 0; } | |
1696 | EOF | |
53b28675 | 1697 | if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1698 | rm -rf conftest* |
1699 | ac_R_space=yes | |
1700 | else | |
1701 | echo "configure: failed program was:" >&5 | |
1702 | cat conftest.$ac_ext >&5 | |
1703 | rm -rf conftest* | |
1704 | ac_R_space=no | |
1705 | fi | |
1706 | rm -f conftest* | |
1707 | if test $ac_R_space = yes; then | |
1708 | echo "$ac_t""yes" 1>&6 | |
1709 | X_LIBS="$X_LIBS -R $x_libraries" | |
1710 | else | |
1711 | echo "$ac_t""neither works" 1>&6 | |
1712 | fi | |
1713 | fi | |
1714 | LIBS="$ac_xsave_LIBS" | |
1715 | esac | |
1716 | fi | |
1717 | ||
1718 | # Check for system-dependent libraries X programs must link with. | |
1719 | # Do this before checking for the system-independent R6 libraries | |
1720 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
1721 | ||
1722 | if test "$ISC" = yes; then | |
1723 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
1724 | else | |
1725 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
1726 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
1727 | # the Alpha needs dnet_stub (dnet does not exist). | |
1728 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
53b28675 | 1729 | echo "configure:1730: checking for dnet_ntoa in -ldnet" >&5 |
c801d85f KB |
1730 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1733 | else | |
1734 | ac_save_LIBS="$LIBS" | |
1735 | LIBS="-ldnet $LIBS" | |
1736 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1737 | #line 1738 "configure" |
c801d85f KB |
1738 | #include "confdefs.h" |
1739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1740 | /* We use char because int might match the return type of a gcc2 | |
1741 | builtin and then its argument prototype would still apply. */ | |
1742 | char dnet_ntoa(); | |
1743 | ||
1744 | int main() { | |
1745 | dnet_ntoa() | |
1746 | ; return 0; } | |
1747 | EOF | |
53b28675 | 1748 | if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1749 | rm -rf conftest* |
1750 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1751 | else | |
1752 | echo "configure: failed program was:" >&5 | |
1753 | cat conftest.$ac_ext >&5 | |
1754 | rm -rf conftest* | |
1755 | eval "ac_cv_lib_$ac_lib_var=no" | |
1756 | fi | |
1757 | rm -f conftest* | |
1758 | LIBS="$ac_save_LIBS" | |
1759 | ||
1760 | fi | |
1761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1762 | echo "$ac_t""yes" 1>&6 | |
1763 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
1764 | else | |
1765 | echo "$ac_t""no" 1>&6 | |
1766 | fi | |
1767 | ||
1768 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
1769 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
53b28675 | 1770 | echo "configure:1771: checking for dnet_ntoa in -ldnet_stub" >&5 |
c801d85f KB |
1771 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
1772 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1774 | else | |
1775 | ac_save_LIBS="$LIBS" | |
1776 | LIBS="-ldnet_stub $LIBS" | |
1777 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1778 | #line 1779 "configure" |
c801d85f KB |
1779 | #include "confdefs.h" |
1780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1781 | /* We use char because int might match the return type of a gcc2 | |
1782 | builtin and then its argument prototype would still apply. */ | |
1783 | char dnet_ntoa(); | |
1784 | ||
1785 | int main() { | |
1786 | dnet_ntoa() | |
1787 | ; return 0; } | |
1788 | EOF | |
53b28675 | 1789 | if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1790 | rm -rf conftest* |
1791 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1792 | else | |
1793 | echo "configure: failed program was:" >&5 | |
1794 | cat conftest.$ac_ext >&5 | |
1795 | rm -rf conftest* | |
1796 | eval "ac_cv_lib_$ac_lib_var=no" | |
1797 | fi | |
1798 | rm -f conftest* | |
1799 | LIBS="$ac_save_LIBS" | |
1800 | ||
1801 | fi | |
1802 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1803 | echo "$ac_t""yes" 1>&6 | |
1804 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
1805 | else | |
1806 | echo "$ac_t""no" 1>&6 | |
1807 | fi | |
1808 | ||
1809 | fi | |
1810 | ||
1811 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
1812 | # to get the SysV transport functions. | |
1813 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
1814 | # needs -lnsl. | |
1815 | # The nsl library prevents programs from opening the X display | |
1816 | # on Irix 5.2, according to dickey@clark.net. | |
1817 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
53b28675 | 1818 | echo "configure:1819: checking for gethostbyname" >&5 |
c801d85f KB |
1819 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1821 | else | |
1822 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1823 | #line 1824 "configure" |
c801d85f KB |
1824 | #include "confdefs.h" |
1825 | /* System header to define __stub macros and hopefully few prototypes, | |
1826 | which can conflict with char gethostbyname(); below. */ | |
1827 | #include <assert.h> | |
1828 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1829 | /* We use char because int might match the return type of a gcc2 | |
1830 | builtin and then its argument prototype would still apply. */ | |
1831 | char gethostbyname(); | |
1832 | ||
1833 | int main() { | |
1834 | ||
1835 | /* The GNU C library defines this for functions which it implements | |
1836 | to always fail with ENOSYS. Some functions are actually named | |
1837 | something starting with __ and the normal name is an alias. */ | |
1838 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
1839 | choke me | |
1840 | #else | |
1841 | gethostbyname(); | |
1842 | #endif | |
1843 | ||
1844 | ; return 0; } | |
1845 | EOF | |
53b28675 | 1846 | if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1847 | rm -rf conftest* |
1848 | eval "ac_cv_func_gethostbyname=yes" | |
1849 | else | |
1850 | echo "configure: failed program was:" >&5 | |
1851 | cat conftest.$ac_ext >&5 | |
1852 | rm -rf conftest* | |
1853 | eval "ac_cv_func_gethostbyname=no" | |
1854 | fi | |
1855 | rm -f conftest* | |
1856 | fi | |
1857 | ||
1858 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
1859 | echo "$ac_t""yes" 1>&6 | |
1860 | : | |
1861 | else | |
1862 | echo "$ac_t""no" 1>&6 | |
1863 | fi | |
1864 | ||
1865 | if test $ac_cv_func_gethostbyname = no; then | |
1866 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
53b28675 | 1867 | echo "configure:1868: checking for gethostbyname in -lnsl" >&5 |
c801d85f KB |
1868 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
1869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1871 | else | |
1872 | ac_save_LIBS="$LIBS" | |
1873 | LIBS="-lnsl $LIBS" | |
1874 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1875 | #line 1876 "configure" |
c801d85f KB |
1876 | #include "confdefs.h" |
1877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1878 | /* We use char because int might match the return type of a gcc2 | |
1879 | builtin and then its argument prototype would still apply. */ | |
1880 | char gethostbyname(); | |
1881 | ||
1882 | int main() { | |
1883 | gethostbyname() | |
1884 | ; return 0; } | |
1885 | EOF | |
53b28675 | 1886 | if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1887 | rm -rf conftest* |
1888 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1889 | else | |
1890 | echo "configure: failed program was:" >&5 | |
1891 | cat conftest.$ac_ext >&5 | |
1892 | rm -rf conftest* | |
1893 | eval "ac_cv_lib_$ac_lib_var=no" | |
1894 | fi | |
1895 | rm -f conftest* | |
1896 | LIBS="$ac_save_LIBS" | |
1897 | ||
1898 | fi | |
1899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1900 | echo "$ac_t""yes" 1>&6 | |
1901 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
1902 | else | |
1903 | echo "$ac_t""no" 1>&6 | |
1904 | fi | |
1905 | ||
1906 | fi | |
1907 | ||
1908 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
1909 | # socket/setsockopt and other routines are undefined under SCO ODT | |
1910 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
1911 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
1912 | # gethostby* variants that don't use the nameserver (or something). | |
1913 | # -lsocket must be given before -lnsl if both are needed. | |
1914 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
1915 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
53b28675 | 1916 | echo "configure:1917: checking for connect" >&5 |
c801d85f KB |
1917 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
1918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1919 | else | |
1920 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1921 | #line 1922 "configure" |
c801d85f KB |
1922 | #include "confdefs.h" |
1923 | /* System header to define __stub macros and hopefully few prototypes, | |
1924 | which can conflict with char connect(); below. */ | |
1925 | #include <assert.h> | |
1926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1927 | /* We use char because int might match the return type of a gcc2 | |
1928 | builtin and then its argument prototype would still apply. */ | |
1929 | char connect(); | |
1930 | ||
1931 | int main() { | |
1932 | ||
1933 | /* The GNU C library defines this for functions which it implements | |
1934 | to always fail with ENOSYS. Some functions are actually named | |
1935 | something starting with __ and the normal name is an alias. */ | |
1936 | #if defined (__stub_connect) || defined (__stub___connect) | |
1937 | choke me | |
1938 | #else | |
1939 | connect(); | |
1940 | #endif | |
1941 | ||
1942 | ; return 0; } | |
1943 | EOF | |
53b28675 | 1944 | if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1945 | rm -rf conftest* |
1946 | eval "ac_cv_func_connect=yes" | |
1947 | else | |
1948 | echo "configure: failed program was:" >&5 | |
1949 | cat conftest.$ac_ext >&5 | |
1950 | rm -rf conftest* | |
1951 | eval "ac_cv_func_connect=no" | |
1952 | fi | |
1953 | rm -f conftest* | |
1954 | fi | |
1955 | ||
1956 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
1957 | echo "$ac_t""yes" 1>&6 | |
1958 | : | |
1959 | else | |
1960 | echo "$ac_t""no" 1>&6 | |
1961 | fi | |
1962 | ||
1963 | if test $ac_cv_func_connect = no; then | |
1964 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
53b28675 | 1965 | echo "configure:1966: checking for connect in -lsocket" >&5 |
c801d85f KB |
1966 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
1967 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1969 | else | |
1970 | ac_save_LIBS="$LIBS" | |
1971 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
1972 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 1973 | #line 1974 "configure" |
c801d85f KB |
1974 | #include "confdefs.h" |
1975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1976 | /* We use char because int might match the return type of a gcc2 | |
1977 | builtin and then its argument prototype would still apply. */ | |
1978 | char connect(); | |
1979 | ||
1980 | int main() { | |
1981 | connect() | |
1982 | ; return 0; } | |
1983 | EOF | |
53b28675 | 1984 | if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
1985 | rm -rf conftest* |
1986 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1987 | else | |
1988 | echo "configure: failed program was:" >&5 | |
1989 | cat conftest.$ac_ext >&5 | |
1990 | rm -rf conftest* | |
1991 | eval "ac_cv_lib_$ac_lib_var=no" | |
1992 | fi | |
1993 | rm -f conftest* | |
1994 | LIBS="$ac_save_LIBS" | |
1995 | ||
1996 | fi | |
1997 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1998 | echo "$ac_t""yes" 1>&6 | |
1999 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
2000 | else | |
2001 | echo "$ac_t""no" 1>&6 | |
2002 | fi | |
2003 | ||
2004 | fi | |
2005 | ||
2006 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
2007 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
53b28675 | 2008 | echo "configure:2009: checking for remove" >&5 |
c801d85f KB |
2009 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
2010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2011 | else | |
2012 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2013 | #line 2014 "configure" |
c801d85f KB |
2014 | #include "confdefs.h" |
2015 | /* System header to define __stub macros and hopefully few prototypes, | |
2016 | which can conflict with char remove(); below. */ | |
2017 | #include <assert.h> | |
2018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2019 | /* We use char because int might match the return type of a gcc2 | |
2020 | builtin and then its argument prototype would still apply. */ | |
2021 | char remove(); | |
2022 | ||
2023 | int main() { | |
2024 | ||
2025 | /* The GNU C library defines this for functions which it implements | |
2026 | to always fail with ENOSYS. Some functions are actually named | |
2027 | something starting with __ and the normal name is an alias. */ | |
2028 | #if defined (__stub_remove) || defined (__stub___remove) | |
2029 | choke me | |
2030 | #else | |
2031 | remove(); | |
2032 | #endif | |
2033 | ||
2034 | ; return 0; } | |
2035 | EOF | |
53b28675 | 2036 | if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2037 | rm -rf conftest* |
2038 | eval "ac_cv_func_remove=yes" | |
2039 | else | |
2040 | echo "configure: failed program was:" >&5 | |
2041 | cat conftest.$ac_ext >&5 | |
2042 | rm -rf conftest* | |
2043 | eval "ac_cv_func_remove=no" | |
2044 | fi | |
2045 | rm -f conftest* | |
2046 | fi | |
2047 | ||
2048 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
2049 | echo "$ac_t""yes" 1>&6 | |
2050 | : | |
2051 | else | |
2052 | echo "$ac_t""no" 1>&6 | |
2053 | fi | |
2054 | ||
2055 | if test $ac_cv_func_remove = no; then | |
2056 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
53b28675 | 2057 | echo "configure:2058: checking for remove in -lposix" >&5 |
c801d85f KB |
2058 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
2059 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2061 | else | |
2062 | ac_save_LIBS="$LIBS" | |
2063 | LIBS="-lposix $LIBS" | |
2064 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2065 | #line 2066 "configure" |
c801d85f KB |
2066 | #include "confdefs.h" |
2067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2068 | /* We use char because int might match the return type of a gcc2 | |
2069 | builtin and then its argument prototype would still apply. */ | |
2070 | char remove(); | |
2071 | ||
2072 | int main() { | |
2073 | remove() | |
2074 | ; return 0; } | |
2075 | EOF | |
53b28675 | 2076 | if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2077 | rm -rf conftest* |
2078 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2079 | else | |
2080 | echo "configure: failed program was:" >&5 | |
2081 | cat conftest.$ac_ext >&5 | |
2082 | rm -rf conftest* | |
2083 | eval "ac_cv_lib_$ac_lib_var=no" | |
2084 | fi | |
2085 | rm -f conftest* | |
2086 | LIBS="$ac_save_LIBS" | |
2087 | ||
2088 | fi | |
2089 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2090 | echo "$ac_t""yes" 1>&6 | |
2091 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
2092 | else | |
2093 | echo "$ac_t""no" 1>&6 | |
2094 | fi | |
2095 | ||
2096 | fi | |
2097 | ||
2098 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
2099 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
53b28675 | 2100 | echo "configure:2101: checking for shmat" >&5 |
c801d85f KB |
2101 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
2102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2103 | else | |
2104 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2105 | #line 2106 "configure" |
c801d85f KB |
2106 | #include "confdefs.h" |
2107 | /* System header to define __stub macros and hopefully few prototypes, | |
2108 | which can conflict with char shmat(); below. */ | |
2109 | #include <assert.h> | |
2110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2111 | /* We use char because int might match the return type of a gcc2 | |
2112 | builtin and then its argument prototype would still apply. */ | |
2113 | char shmat(); | |
2114 | ||
2115 | int main() { | |
2116 | ||
2117 | /* The GNU C library defines this for functions which it implements | |
2118 | to always fail with ENOSYS. Some functions are actually named | |
2119 | something starting with __ and the normal name is an alias. */ | |
2120 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
2121 | choke me | |
2122 | #else | |
2123 | shmat(); | |
2124 | #endif | |
2125 | ||
2126 | ; return 0; } | |
2127 | EOF | |
53b28675 | 2128 | if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2129 | rm -rf conftest* |
2130 | eval "ac_cv_func_shmat=yes" | |
2131 | else | |
2132 | echo "configure: failed program was:" >&5 | |
2133 | cat conftest.$ac_ext >&5 | |
2134 | rm -rf conftest* | |
2135 | eval "ac_cv_func_shmat=no" | |
2136 | fi | |
2137 | rm -f conftest* | |
2138 | fi | |
2139 | ||
2140 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
2141 | echo "$ac_t""yes" 1>&6 | |
2142 | : | |
2143 | else | |
2144 | echo "$ac_t""no" 1>&6 | |
2145 | fi | |
2146 | ||
2147 | if test $ac_cv_func_shmat = no; then | |
2148 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
53b28675 | 2149 | echo "configure:2150: checking for shmat in -lipc" >&5 |
c801d85f KB |
2150 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
2151 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2152 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2153 | else | |
2154 | ac_save_LIBS="$LIBS" | |
2155 | LIBS="-lipc $LIBS" | |
2156 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2157 | #line 2158 "configure" |
c801d85f KB |
2158 | #include "confdefs.h" |
2159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2160 | /* We use char because int might match the return type of a gcc2 | |
2161 | builtin and then its argument prototype would still apply. */ | |
2162 | char shmat(); | |
2163 | ||
2164 | int main() { | |
2165 | shmat() | |
2166 | ; return 0; } | |
2167 | EOF | |
53b28675 | 2168 | if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2169 | rm -rf conftest* |
2170 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2171 | else | |
2172 | echo "configure: failed program was:" >&5 | |
2173 | cat conftest.$ac_ext >&5 | |
2174 | rm -rf conftest* | |
2175 | eval "ac_cv_lib_$ac_lib_var=no" | |
2176 | fi | |
2177 | rm -f conftest* | |
2178 | LIBS="$ac_save_LIBS" | |
2179 | ||
2180 | fi | |
2181 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2182 | echo "$ac_t""yes" 1>&6 | |
2183 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
2184 | else | |
2185 | echo "$ac_t""no" 1>&6 | |
2186 | fi | |
2187 | ||
2188 | fi | |
2189 | fi | |
2190 | ||
2191 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
2192 | ac_save_LDFLAGS="$LDFLAGS" | |
2193 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
2194 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
2195 | # check for ICE first), but we must link in the order -lSM -lICE or | |
2196 | # we get undefined symbols. So assume we have SM if we have ICE. | |
2197 | # These have to be linked with before -lX11, unlike the other | |
2198 | # libraries we check for below, so use a different variable. | |
2199 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
2200 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
53b28675 | 2201 | echo "configure:2202: checking for IceConnectionNumber in -lICE" >&5 |
c801d85f KB |
2202 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
2203 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2205 | else | |
2206 | ac_save_LIBS="$LIBS" | |
2207 | LIBS="-lICE $LIBS" | |
2208 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2209 | #line 2210 "configure" |
c801d85f KB |
2210 | #include "confdefs.h" |
2211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2212 | /* We use char because int might match the return type of a gcc2 | |
2213 | builtin and then its argument prototype would still apply. */ | |
2214 | char IceConnectionNumber(); | |
2215 | ||
2216 | int main() { | |
2217 | IceConnectionNumber() | |
2218 | ; return 0; } | |
2219 | EOF | |
53b28675 | 2220 | if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2221 | rm -rf conftest* |
2222 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2223 | else | |
2224 | echo "configure: failed program was:" >&5 | |
2225 | cat conftest.$ac_ext >&5 | |
2226 | rm -rf conftest* | |
2227 | eval "ac_cv_lib_$ac_lib_var=no" | |
2228 | fi | |
2229 | rm -f conftest* | |
2230 | LIBS="$ac_save_LIBS" | |
2231 | ||
2232 | fi | |
2233 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2234 | echo "$ac_t""yes" 1>&6 | |
2235 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
2236 | else | |
2237 | echo "$ac_t""no" 1>&6 | |
2238 | fi | |
2239 | ||
2240 | LDFLAGS="$ac_save_LDFLAGS" | |
2241 | ||
2242 | fi | |
2243 | ||
2244 | ||
2245 | ac_header_dirent=no | |
2246 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
2247 | do | |
2248 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2249 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
53b28675 | 2250 | echo "configure:2251: checking for $ac_hdr that defines DIR" >&5 |
c801d85f KB |
2251 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
2252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2253 | else | |
2254 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2255 | #line 2256 "configure" |
c801d85f KB |
2256 | #include "confdefs.h" |
2257 | #include <sys/types.h> | |
2258 | #include <$ac_hdr> | |
2259 | int main() { | |
2260 | DIR *dirp = 0; | |
2261 | ; return 0; } | |
2262 | EOF | |
53b28675 | 2263 | if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2264 | rm -rf conftest* |
2265 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
2266 | else | |
2267 | echo "configure: failed program was:" >&5 | |
2268 | cat conftest.$ac_ext >&5 | |
2269 | rm -rf conftest* | |
2270 | eval "ac_cv_header_dirent_$ac_safe=no" | |
2271 | fi | |
2272 | rm -f conftest* | |
2273 | fi | |
2274 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
2275 | echo "$ac_t""yes" 1>&6 | |
2276 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2277 | cat >> confdefs.h <<EOF | |
2278 | #define $ac_tr_hdr 1 | |
2279 | EOF | |
2280 | ac_header_dirent=$ac_hdr; break | |
2281 | else | |
2282 | echo "$ac_t""no" 1>&6 | |
2283 | fi | |
2284 | done | |
2285 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2286 | if test $ac_header_dirent = dirent.h; then | |
2287 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
53b28675 | 2288 | echo "configure:2289: checking for opendir in -ldir" >&5 |
c801d85f KB |
2289 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
2290 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2292 | else | |
2293 | ac_save_LIBS="$LIBS" | |
2294 | LIBS="-ldir $LIBS" | |
2295 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2296 | #line 2297 "configure" |
c801d85f KB |
2297 | #include "confdefs.h" |
2298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2299 | /* We use char because int might match the return type of a gcc2 | |
2300 | builtin and then its argument prototype would still apply. */ | |
2301 | char opendir(); | |
2302 | ||
2303 | int main() { | |
2304 | opendir() | |
2305 | ; return 0; } | |
2306 | EOF | |
53b28675 | 2307 | if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2308 | rm -rf conftest* |
2309 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2310 | else | |
2311 | echo "configure: failed program was:" >&5 | |
2312 | cat conftest.$ac_ext >&5 | |
2313 | rm -rf conftest* | |
2314 | eval "ac_cv_lib_$ac_lib_var=no" | |
2315 | fi | |
2316 | rm -f conftest* | |
2317 | LIBS="$ac_save_LIBS" | |
2318 | ||
2319 | fi | |
2320 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2321 | echo "$ac_t""yes" 1>&6 | |
2322 | LIBS="$LIBS -ldir" | |
2323 | else | |
2324 | echo "$ac_t""no" 1>&6 | |
2325 | fi | |
2326 | ||
2327 | else | |
2328 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
53b28675 | 2329 | echo "configure:2330: checking for opendir in -lx" >&5 |
c801d85f KB |
2330 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
2331 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2333 | else | |
2334 | ac_save_LIBS="$LIBS" | |
2335 | LIBS="-lx $LIBS" | |
2336 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2337 | #line 2338 "configure" |
c801d85f KB |
2338 | #include "confdefs.h" |
2339 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2340 | /* We use char because int might match the return type of a gcc2 | |
2341 | builtin and then its argument prototype would still apply. */ | |
2342 | char opendir(); | |
2343 | ||
2344 | int main() { | |
2345 | opendir() | |
2346 | ; return 0; } | |
2347 | EOF | |
53b28675 | 2348 | if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
2349 | rm -rf conftest* |
2350 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2351 | else | |
2352 | echo "configure: failed program was:" >&5 | |
2353 | cat conftest.$ac_ext >&5 | |
2354 | rm -rf conftest* | |
2355 | eval "ac_cv_lib_$ac_lib_var=no" | |
2356 | fi | |
2357 | rm -f conftest* | |
2358 | LIBS="$ac_save_LIBS" | |
2359 | ||
2360 | fi | |
2361 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2362 | echo "$ac_t""yes" 1>&6 | |
2363 | LIBS="$LIBS -lx" | |
2364 | else | |
2365 | echo "$ac_t""no" 1>&6 | |
2366 | fi | |
2367 | ||
2368 | fi | |
2369 | ||
2370 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
53b28675 | 2371 | echo "configure:2372: checking for ANSI C header files" >&5 |
c801d85f KB |
2372 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2374 | else | |
2375 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2376 | #line 2377 "configure" |
c801d85f KB |
2377 | #include "confdefs.h" |
2378 | #include <stdlib.h> | |
2379 | #include <stdarg.h> | |
2380 | #include <string.h> | |
2381 | #include <float.h> | |
2382 | EOF | |
2383 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 2384 | { (eval echo configure:2385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2385 | ac_err=`grep -v '^ *+' conftest.out` |
2386 | if test -z "$ac_err"; then | |
2387 | rm -rf conftest* | |
2388 | ac_cv_header_stdc=yes | |
2389 | else | |
2390 | echo "$ac_err" >&5 | |
2391 | echo "configure: failed program was:" >&5 | |
2392 | cat conftest.$ac_ext >&5 | |
2393 | rm -rf conftest* | |
2394 | ac_cv_header_stdc=no | |
2395 | fi | |
2396 | rm -f conftest* | |
2397 | ||
2398 | if test $ac_cv_header_stdc = yes; then | |
2399 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2400 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2401 | #line 2402 "configure" |
c801d85f KB |
2402 | #include "confdefs.h" |
2403 | #include <string.h> | |
2404 | EOF | |
2405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2406 | egrep "memchr" >/dev/null 2>&1; then | |
2407 | : | |
2408 | else | |
2409 | rm -rf conftest* | |
2410 | ac_cv_header_stdc=no | |
2411 | fi | |
2412 | rm -f conftest* | |
2413 | ||
2414 | fi | |
2415 | ||
2416 | if test $ac_cv_header_stdc = yes; then | |
2417 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2418 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2419 | #line 2420 "configure" |
c801d85f KB |
2420 | #include "confdefs.h" |
2421 | #include <stdlib.h> | |
2422 | EOF | |
2423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2424 | egrep "free" >/dev/null 2>&1; then | |
2425 | : | |
2426 | else | |
2427 | rm -rf conftest* | |
2428 | ac_cv_header_stdc=no | |
2429 | fi | |
2430 | rm -f conftest* | |
2431 | ||
2432 | fi | |
2433 | ||
2434 | if test $ac_cv_header_stdc = yes; then | |
2435 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2436 | if test "$cross_compiling" = yes; then | |
2437 | : | |
2438 | else | |
2439 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2440 | #line 2441 "configure" |
c801d85f KB |
2441 | #include "confdefs.h" |
2442 | #include <ctype.h> | |
2443 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2444 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2445 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2446 | int main () { int i; for (i = 0; i < 256; i++) | |
2447 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2448 | exit (0); } | |
2449 | ||
2450 | EOF | |
53b28675 | 2451 | if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
2452 | then |
2453 | : | |
2454 | else | |
2455 | echo "configure: failed program was:" >&5 | |
2456 | cat conftest.$ac_ext >&5 | |
2457 | rm -fr conftest* | |
2458 | ac_cv_header_stdc=no | |
2459 | fi | |
2460 | rm -fr conftest* | |
2461 | fi | |
2462 | ||
2463 | fi | |
2464 | fi | |
2465 | ||
2466 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2467 | if test $ac_cv_header_stdc = yes; then | |
2468 | cat >> confdefs.h <<\EOF | |
2469 | #define STDC_HEADERS 1 | |
2470 | EOF | |
2471 | ||
2472 | fi | |
2473 | ||
2474 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
53b28675 | 2475 | echo "configure:2476: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
c801d85f KB |
2476 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2478 | else | |
2479 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2480 | #line 2481 "configure" |
c801d85f KB |
2481 | #include "confdefs.h" |
2482 | #include <sys/types.h> | |
2483 | #include <sys/wait.h> | |
2484 | #ifndef WEXITSTATUS | |
2485 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2486 | #endif | |
2487 | #ifndef WIFEXITED | |
2488 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2489 | #endif | |
2490 | int main() { | |
2491 | int s; | |
2492 | wait (&s); | |
2493 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2494 | ; return 0; } | |
2495 | EOF | |
53b28675 | 2496 | if { (eval echo configure:2497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2497 | rm -rf conftest* |
2498 | ac_cv_header_sys_wait_h=yes | |
2499 | else | |
2500 | echo "configure: failed program was:" >&5 | |
2501 | cat conftest.$ac_ext >&5 | |
2502 | rm -rf conftest* | |
2503 | ac_cv_header_sys_wait_h=no | |
2504 | fi | |
2505 | rm -f conftest* | |
2506 | fi | |
2507 | ||
2508 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2509 | if test $ac_cv_header_sys_wait_h = yes; then | |
2510 | cat >> confdefs.h <<\EOF | |
2511 | #define HAVE_SYS_WAIT_H 1 | |
2512 | EOF | |
2513 | ||
2514 | fi | |
2515 | ||
2516 | ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'` | |
2517 | echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6 | |
53b28675 | 2518 | echo "configure:2519: checking for fcntl.h" >&5 |
c801d85f KB |
2519 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2521 | else | |
2522 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2523 | #line 2524 "configure" |
c801d85f KB |
2524 | #include "confdefs.h" |
2525 | #include <fcntl.h> | |
2526 | EOF | |
2527 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 2528 | { (eval echo configure:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2529 | ac_err=`grep -v '^ *+' conftest.out` |
2530 | if test -z "$ac_err"; then | |
2531 | rm -rf conftest* | |
2532 | eval "ac_cv_header_$ac_safe=yes" | |
2533 | else | |
2534 | echo "$ac_err" >&5 | |
2535 | echo "configure: failed program was:" >&5 | |
2536 | cat conftest.$ac_ext >&5 | |
2537 | rm -rf conftest* | |
2538 | eval "ac_cv_header_$ac_safe=no" | |
2539 | fi | |
2540 | rm -f conftest* | |
2541 | fi | |
2542 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2543 | echo "$ac_t""yes" 1>&6 | |
2544 | : | |
2545 | else | |
2546 | echo "$ac_t""no" 1>&6 | |
2547 | fi | |
2548 | ||
2549 | ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'` | |
2550 | echo $ac_n "checking for limits.h""... $ac_c" 1>&6 | |
53b28675 | 2551 | echo "configure:2552: checking for limits.h" >&5 |
c801d85f KB |
2552 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2554 | else | |
2555 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2556 | #line 2557 "configure" |
c801d85f KB |
2557 | #include "confdefs.h" |
2558 | #include <limits.h> | |
2559 | EOF | |
2560 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 2561 | { (eval echo configure:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2562 | ac_err=`grep -v '^ *+' conftest.out` |
2563 | if test -z "$ac_err"; then | |
2564 | rm -rf conftest* | |
2565 | eval "ac_cv_header_$ac_safe=yes" | |
2566 | else | |
2567 | echo "$ac_err" >&5 | |
2568 | echo "configure: failed program was:" >&5 | |
2569 | cat conftest.$ac_ext >&5 | |
2570 | rm -rf conftest* | |
2571 | eval "ac_cv_header_$ac_safe=no" | |
2572 | fi | |
2573 | rm -f conftest* | |
2574 | fi | |
2575 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2576 | echo "$ac_t""yes" 1>&6 | |
2577 | : | |
2578 | else | |
2579 | echo "$ac_t""no" 1>&6 | |
2580 | fi | |
2581 | ||
2582 | ac_safe=`echo "sys/file.h" | sed 'y%./+-%__p_%'` | |
2583 | echo $ac_n "checking for sys/file.h""... $ac_c" 1>&6 | |
53b28675 | 2584 | echo "configure:2585: checking for sys/file.h" >&5 |
c801d85f KB |
2585 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2587 | else | |
2588 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2589 | #line 2590 "configure" |
c801d85f KB |
2590 | #include "confdefs.h" |
2591 | #include <sys/file.h> | |
2592 | EOF | |
2593 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 2594 | { (eval echo configure:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2595 | ac_err=`grep -v '^ *+' conftest.out` |
2596 | if test -z "$ac_err"; then | |
2597 | rm -rf conftest* | |
2598 | eval "ac_cv_header_$ac_safe=yes" | |
2599 | else | |
2600 | echo "$ac_err" >&5 | |
2601 | echo "configure: failed program was:" >&5 | |
2602 | cat conftest.$ac_ext >&5 | |
2603 | rm -rf conftest* | |
2604 | eval "ac_cv_header_$ac_safe=no" | |
2605 | fi | |
2606 | rm -f conftest* | |
2607 | fi | |
2608 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2609 | echo "$ac_t""yes" 1>&6 | |
2610 | : | |
2611 | else | |
2612 | echo "$ac_t""no" 1>&6 | |
2613 | fi | |
2614 | ||
2615 | ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'` | |
2616 | echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6 | |
53b28675 | 2617 | echo "configure:2618: checking for sys/time.h" >&5 |
c801d85f KB |
2618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2620 | else | |
2621 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2622 | #line 2623 "configure" |
c801d85f KB |
2623 | #include "confdefs.h" |
2624 | #include <sys/time.h> | |
2625 | EOF | |
2626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 2627 | { (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2628 | ac_err=`grep -v '^ *+' conftest.out` |
2629 | if test -z "$ac_err"; then | |
2630 | rm -rf conftest* | |
2631 | eval "ac_cv_header_$ac_safe=yes" | |
2632 | else | |
2633 | echo "$ac_err" >&5 | |
2634 | echo "configure: failed program was:" >&5 | |
2635 | cat conftest.$ac_ext >&5 | |
2636 | rm -rf conftest* | |
2637 | eval "ac_cv_header_$ac_safe=no" | |
2638 | fi | |
2639 | rm -f conftest* | |
2640 | fi | |
2641 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2642 | echo "$ac_t""yes" 1>&6 | |
2643 | : | |
2644 | else | |
2645 | echo "$ac_t""no" 1>&6 | |
2646 | fi | |
2647 | ||
2648 | ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` | |
2649 | echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 | |
53b28675 | 2650 | echo "configure:2651: checking for unistd.h" >&5 |
c801d85f KB |
2651 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2653 | else | |
2654 | cat > conftest.$ac_ext <<EOF | |
53b28675 | 2655 | #line 2656 "configure" |
c801d85f KB |
2656 | #include "confdefs.h" |
2657 | #include <unistd.h> | |
2658 | EOF | |
2659 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
53b28675 | 2660 | { (eval echo configure:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
c801d85f KB |
2661 | ac_err=`grep -v '^ *+' conftest.out` |
2662 | if test -z "$ac_err"; then | |
2663 | rm -rf conftest* | |
2664 | eval "ac_cv_header_$ac_safe=yes" | |
2665 | else | |
2666 | echo "$ac_err" >&5 | |
2667 | echo "configure: failed program was:" >&5 | |
2668 | cat conftest.$ac_ext >&5 | |
2669 | rm -rf conftest* | |
2670 | eval "ac_cv_header_$ac_safe=no" | |
2671 | fi | |
2672 | rm -f conftest* | |
2673 | fi | |
2674 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2675 | echo "$ac_t""yes" 1>&6 | |
2676 | : | |
2677 | else | |
2678 | echo "$ac_t""no" 1>&6 | |
2679 | fi | |
2680 | ||
7c351dad GL |
2681 | ac_safe=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'` |
2682 | echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6 | |
2683 | echo "configure:2684: checking for linux/joystick.h" >&5 | |
2684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
2685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2686 | else | |
2687 | cat > conftest.$ac_ext <<EOF | |
2688 | #line 2689 "configure" | |
2689 | #include "confdefs.h" | |
2690 | #include <linux/joystick.h> | |
2691 | EOF | |
2692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2693 | { (eval echo configure:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2694 | ac_err=`grep -v '^ *+' conftest.out` | |
2695 | if test -z "$ac_err"; then | |
2696 | rm -rf conftest* | |
2697 | eval "ac_cv_header_$ac_safe=yes" | |
2698 | else | |
2699 | echo "$ac_err" >&5 | |
2700 | echo "configure: failed program was:" >&5 | |
2701 | cat conftest.$ac_ext >&5 | |
2702 | rm -rf conftest* | |
2703 | eval "ac_cv_header_$ac_safe=no" | |
2704 | fi | |
2705 | rm -f conftest* | |
2706 | fi | |
2707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2708 | echo "$ac_t""yes" 1>&6 | |
2709 | : | |
2710 | else | |
2711 | echo "$ac_t""no" 1>&6 | |
2712 | fi | |
2713 | ||
2714 | GTK_JOYSTICK="" | |
8d31c138 | 2715 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then |
7c351dad GL |
2716 | GTK_JOYSTICK="gtk/joystick.cpp" |
2717 | fi | |
2718 | ||
c801d85f KB |
2719 | |
2720 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
7c351dad | 2721 | echo "configure:2722: checking for uid_t in sys/types.h" >&5 |
c801d85f KB |
2722 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
2723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2724 | else | |
2725 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2726 | #line 2727 "configure" |
c801d85f KB |
2727 | #include "confdefs.h" |
2728 | #include <sys/types.h> | |
2729 | EOF | |
2730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2731 | egrep "uid_t" >/dev/null 2>&1; then | |
2732 | rm -rf conftest* | |
2733 | ac_cv_type_uid_t=yes | |
2734 | else | |
2735 | rm -rf conftest* | |
2736 | ac_cv_type_uid_t=no | |
2737 | fi | |
2738 | rm -f conftest* | |
2739 | ||
2740 | fi | |
2741 | ||
2742 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
2743 | if test $ac_cv_type_uid_t = no; then | |
2744 | cat >> confdefs.h <<\EOF | |
2745 | #define uid_t int | |
2746 | EOF | |
2747 | ||
2748 | cat >> confdefs.h <<\EOF | |
2749 | #define gid_t int | |
2750 | EOF | |
2751 | ||
2752 | fi | |
2753 | ||
2754 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 | |
7c351dad | 2755 | echo "configure:2756: checking type of array argument to getgroups" >&5 |
c801d85f KB |
2756 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
2757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2758 | else | |
2759 | if test "$cross_compiling" = yes; then | |
2760 | ac_cv_type_getgroups=cross | |
2761 | else | |
2762 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2763 | #line 2764 "configure" |
c801d85f KB |
2764 | #include "confdefs.h" |
2765 | ||
2766 | /* Thanks to Mike Rendell for this test. */ | |
2767 | #include <sys/types.h> | |
2768 | #define NGID 256 | |
2769 | #undef MAX | |
2770 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
2771 | main() | |
2772 | { | |
2773 | gid_t gidset[NGID]; | |
2774 | int i, n; | |
2775 | union { gid_t gval; long lval; } val; | |
2776 | ||
2777 | val.lval = -1; | |
2778 | for (i = 0; i < NGID; i++) | |
2779 | gidset[i] = val.gval; | |
2780 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
2781 | gidset); | |
2782 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
2783 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
2784 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
2785 | } | |
2786 | ||
2787 | EOF | |
7c351dad | 2788 | if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
2789 | then |
2790 | ac_cv_type_getgroups=gid_t | |
2791 | else | |
2792 | echo "configure: failed program was:" >&5 | |
2793 | cat conftest.$ac_ext >&5 | |
2794 | rm -fr conftest* | |
2795 | ac_cv_type_getgroups=int | |
2796 | fi | |
2797 | rm -fr conftest* | |
2798 | fi | |
2799 | ||
2800 | if test $ac_cv_type_getgroups = cross; then | |
2801 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2802 | #line 2803 "configure" |
c801d85f KB |
2803 | #include "confdefs.h" |
2804 | #include <unistd.h> | |
2805 | EOF | |
2806 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2807 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
2808 | rm -rf conftest* | |
2809 | ac_cv_type_getgroups=gid_t | |
2810 | else | |
2811 | rm -rf conftest* | |
2812 | ac_cv_type_getgroups=int | |
2813 | fi | |
2814 | rm -f conftest* | |
2815 | ||
2816 | fi | |
2817 | fi | |
2818 | ||
2819 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 | |
2820 | cat >> confdefs.h <<EOF | |
2821 | #define GETGROUPS_T $ac_cv_type_getgroups | |
2822 | EOF | |
2823 | ||
2824 | ||
2825 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
7c351dad | 2826 | echo "configure:2827: checking for mode_t" >&5 |
c801d85f KB |
2827 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
2828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2829 | else | |
2830 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2831 | #line 2832 "configure" |
c801d85f KB |
2832 | #include "confdefs.h" |
2833 | #include <sys/types.h> | |
2834 | #if STDC_HEADERS | |
2835 | #include <stdlib.h> | |
2836 | #include <stddef.h> | |
2837 | #endif | |
2838 | EOF | |
2839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2840 | egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2841 | rm -rf conftest* | |
2842 | ac_cv_type_mode_t=yes | |
2843 | else | |
2844 | rm -rf conftest* | |
2845 | ac_cv_type_mode_t=no | |
2846 | fi | |
2847 | rm -f conftest* | |
2848 | ||
2849 | fi | |
2850 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
2851 | if test $ac_cv_type_mode_t = no; then | |
2852 | cat >> confdefs.h <<\EOF | |
2853 | #define mode_t int | |
2854 | EOF | |
2855 | ||
2856 | fi | |
2857 | ||
2858 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
7c351dad | 2859 | echo "configure:2860: checking for off_t" >&5 |
c801d85f KB |
2860 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2862 | else | |
2863 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2864 | #line 2865 "configure" |
c801d85f KB |
2865 | #include "confdefs.h" |
2866 | #include <sys/types.h> | |
2867 | #if STDC_HEADERS | |
2868 | #include <stdlib.h> | |
2869 | #include <stddef.h> | |
2870 | #endif | |
2871 | EOF | |
2872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2873 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2874 | rm -rf conftest* | |
2875 | ac_cv_type_off_t=yes | |
2876 | else | |
2877 | rm -rf conftest* | |
2878 | ac_cv_type_off_t=no | |
2879 | fi | |
2880 | rm -f conftest* | |
2881 | ||
2882 | fi | |
2883 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2884 | if test $ac_cv_type_off_t = no; then | |
2885 | cat >> confdefs.h <<\EOF | |
2886 | #define off_t long | |
2887 | EOF | |
2888 | ||
2889 | fi | |
2890 | ||
2891 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
7c351dad | 2892 | echo "configure:2893: checking for pid_t" >&5 |
c801d85f KB |
2893 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2895 | else | |
2896 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2897 | #line 2898 "configure" |
c801d85f KB |
2898 | #include "confdefs.h" |
2899 | #include <sys/types.h> | |
2900 | #if STDC_HEADERS | |
2901 | #include <stdlib.h> | |
2902 | #include <stddef.h> | |
2903 | #endif | |
2904 | EOF | |
2905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2906 | egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2907 | rm -rf conftest* | |
2908 | ac_cv_type_pid_t=yes | |
2909 | else | |
2910 | rm -rf conftest* | |
2911 | ac_cv_type_pid_t=no | |
2912 | fi | |
2913 | rm -f conftest* | |
2914 | ||
2915 | fi | |
2916 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2917 | if test $ac_cv_type_pid_t = no; then | |
2918 | cat >> confdefs.h <<\EOF | |
2919 | #define pid_t int | |
2920 | EOF | |
2921 | ||
2922 | fi | |
2923 | ||
2924 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
7c351dad | 2925 | echo "configure:2926: checking return type of signal handlers" >&5 |
c801d85f KB |
2926 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2928 | else | |
2929 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2930 | #line 2931 "configure" |
c801d85f KB |
2931 | #include "confdefs.h" |
2932 | #include <sys/types.h> | |
2933 | #include <signal.h> | |
2934 | #ifdef signal | |
2935 | #undef signal | |
2936 | #endif | |
2937 | #ifdef __cplusplus | |
2938 | extern "C" void (*signal (int, void (*)(int)))(int); | |
2939 | #else | |
2940 | void (*signal ()) (); | |
2941 | #endif | |
2942 | ||
2943 | int main() { | |
2944 | int i; | |
2945 | ; return 0; } | |
2946 | EOF | |
7c351dad | 2947 | if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
2948 | rm -rf conftest* |
2949 | ac_cv_type_signal=void | |
2950 | else | |
2951 | echo "configure: failed program was:" >&5 | |
2952 | cat conftest.$ac_ext >&5 | |
2953 | rm -rf conftest* | |
2954 | ac_cv_type_signal=int | |
2955 | fi | |
2956 | rm -f conftest* | |
2957 | fi | |
2958 | ||
2959 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2960 | cat >> confdefs.h <<EOF | |
2961 | #define RETSIGTYPE $ac_cv_type_signal | |
2962 | EOF | |
2963 | ||
2964 | ||
2965 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
7c351dad | 2966 | echo "configure:2967: checking for size_t" >&5 |
c801d85f KB |
2967 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2969 | else | |
2970 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 2971 | #line 2972 "configure" |
c801d85f KB |
2972 | #include "confdefs.h" |
2973 | #include <sys/types.h> | |
2974 | #if STDC_HEADERS | |
2975 | #include <stdlib.h> | |
2976 | #include <stddef.h> | |
2977 | #endif | |
2978 | EOF | |
2979 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2980 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2981 | rm -rf conftest* | |
2982 | ac_cv_type_size_t=yes | |
2983 | else | |
2984 | rm -rf conftest* | |
2985 | ac_cv_type_size_t=no | |
2986 | fi | |
2987 | rm -f conftest* | |
2988 | ||
2989 | fi | |
2990 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2991 | if test $ac_cv_type_size_t = no; then | |
2992 | cat >> confdefs.h <<\EOF | |
2993 | #define size_t unsigned | |
2994 | EOF | |
2995 | ||
2996 | fi | |
2997 | ||
2998 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
7c351dad | 2999 | echo "configure:3000: checking for uid_t in sys/types.h" >&5 |
c801d85f KB |
3000 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
3001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3002 | else | |
3003 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3004 | #line 3005 "configure" |
c801d85f KB |
3005 | #include "confdefs.h" |
3006 | #include <sys/types.h> | |
3007 | EOF | |
3008 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3009 | egrep "uid_t" >/dev/null 2>&1; then | |
3010 | rm -rf conftest* | |
3011 | ac_cv_type_uid_t=yes | |
3012 | else | |
3013 | rm -rf conftest* | |
3014 | ac_cv_type_uid_t=no | |
3015 | fi | |
3016 | rm -f conftest* | |
3017 | ||
3018 | fi | |
3019 | ||
3020 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
3021 | if test $ac_cv_type_uid_t = no; then | |
3022 | cat >> confdefs.h <<\EOF | |
3023 | #define uid_t int | |
3024 | EOF | |
3025 | ||
3026 | cat >> confdefs.h <<\EOF | |
3027 | #define gid_t int | |
3028 | EOF | |
3029 | ||
3030 | fi | |
3031 | ||
3032 | ||
3033 | ||
3034 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 | |
7c351dad | 3035 | echo "configure:3036: checking whether stat file-mode macros are broken" >&5 |
c801d85f KB |
3036 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
3037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3038 | else | |
3039 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3040 | #line 3041 "configure" |
c801d85f KB |
3041 | #include "confdefs.h" |
3042 | #include <sys/types.h> | |
3043 | #include <sys/stat.h> | |
3044 | ||
3045 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3046 | # if S_ISBLK (S_IFDIR) | |
3047 | You lose. | |
3048 | # endif | |
3049 | #endif | |
3050 | ||
3051 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3052 | # if S_ISBLK (S_IFCHR) | |
3053 | You lose. | |
3054 | # endif | |
3055 | #endif | |
3056 | ||
3057 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3058 | # if S_ISLNK (S_IFREG) | |
3059 | You lose. | |
3060 | # endif | |
3061 | #endif | |
3062 | ||
3063 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3064 | # if S_ISSOCK (S_IFREG) | |
3065 | You lose. | |
3066 | # endif | |
3067 | #endif | |
3068 | ||
3069 | EOF | |
3070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3071 | egrep "You lose" >/dev/null 2>&1; then | |
3072 | rm -rf conftest* | |
3073 | ac_cv_header_stat_broken=yes | |
3074 | else | |
3075 | rm -rf conftest* | |
3076 | ac_cv_header_stat_broken=no | |
3077 | fi | |
3078 | rm -f conftest* | |
3079 | ||
3080 | fi | |
3081 | ||
3082 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 | |
3083 | if test $ac_cv_header_stat_broken = yes; then | |
3084 | cat >> confdefs.h <<\EOF | |
3085 | #define STAT_MACROS_BROKEN 1 | |
3086 | EOF | |
3087 | ||
3088 | fi | |
3089 | ||
3090 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
7c351dad | 3091 | echo "configure:3092: checking whether time.h and sys/time.h may both be included" >&5 |
c801d85f KB |
3092 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
3093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3094 | else | |
3095 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3096 | #line 3097 "configure" |
c801d85f KB |
3097 | #include "confdefs.h" |
3098 | #include <sys/types.h> | |
3099 | #include <sys/time.h> | |
3100 | #include <time.h> | |
3101 | int main() { | |
3102 | struct tm *tp; | |
3103 | ; return 0; } | |
3104 | EOF | |
7c351dad | 3105 | if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3106 | rm -rf conftest* |
3107 | ac_cv_header_time=yes | |
3108 | else | |
3109 | echo "configure: failed program was:" >&5 | |
3110 | cat conftest.$ac_ext >&5 | |
3111 | rm -rf conftest* | |
3112 | ac_cv_header_time=no | |
3113 | fi | |
3114 | rm -f conftest* | |
3115 | fi | |
3116 | ||
3117 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
3118 | if test $ac_cv_header_time = yes; then | |
3119 | cat >> confdefs.h <<\EOF | |
3120 | #define TIME_WITH_SYS_TIME 1 | |
3121 | EOF | |
3122 | ||
3123 | fi | |
3124 | ||
3125 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | |
7c351dad | 3126 | echo "configure:3127: checking for st_blksize in struct stat" >&5 |
c801d85f KB |
3127 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
3128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3129 | else | |
3130 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3131 | #line 3132 "configure" |
c801d85f KB |
3132 | #include "confdefs.h" |
3133 | #include <sys/types.h> | |
3134 | #include <sys/stat.h> | |
3135 | int main() { | |
3136 | struct stat s; s.st_blksize; | |
3137 | ; return 0; } | |
3138 | EOF | |
7c351dad | 3139 | if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3140 | rm -rf conftest* |
3141 | ac_cv_struct_st_blksize=yes | |
3142 | else | |
3143 | echo "configure: failed program was:" >&5 | |
3144 | cat conftest.$ac_ext >&5 | |
3145 | rm -rf conftest* | |
3146 | ac_cv_struct_st_blksize=no | |
3147 | fi | |
3148 | rm -f conftest* | |
3149 | fi | |
3150 | ||
3151 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | |
3152 | if test $ac_cv_struct_st_blksize = yes; then | |
3153 | cat >> confdefs.h <<\EOF | |
3154 | #define HAVE_ST_BLKSIZE 1 | |
3155 | EOF | |
3156 | ||
3157 | fi | |
3158 | ||
3159 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 | |
7c351dad | 3160 | echo "configure:3161: checking for st_blocks in struct stat" >&5 |
c801d85f KB |
3161 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
3162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3163 | else | |
3164 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3165 | #line 3166 "configure" |
c801d85f KB |
3166 | #include "confdefs.h" |
3167 | #include <sys/types.h> | |
3168 | #include <sys/stat.h> | |
3169 | int main() { | |
3170 | struct stat s; s.st_blocks; | |
3171 | ; return 0; } | |
3172 | EOF | |
7c351dad | 3173 | if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3174 | rm -rf conftest* |
3175 | ac_cv_struct_st_blocks=yes | |
3176 | else | |
3177 | echo "configure: failed program was:" >&5 | |
3178 | cat conftest.$ac_ext >&5 | |
3179 | rm -rf conftest* | |
3180 | ac_cv_struct_st_blocks=no | |
3181 | fi | |
3182 | rm -f conftest* | |
3183 | fi | |
3184 | ||
3185 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 | |
3186 | if test $ac_cv_struct_st_blocks = yes; then | |
3187 | cat >> confdefs.h <<\EOF | |
3188 | #define HAVE_ST_BLOCKS 1 | |
3189 | EOF | |
3190 | ||
3191 | else | |
3192 | LIBOBJS="$LIBOBJS fileblocks.o" | |
3193 | fi | |
3194 | ||
3195 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 | |
7c351dad | 3196 | echo "configure:3197: checking for st_rdev in struct stat" >&5 |
c801d85f KB |
3197 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
3198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3199 | else | |
3200 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3201 | #line 3202 "configure" |
c801d85f KB |
3202 | #include "confdefs.h" |
3203 | #include <sys/types.h> | |
3204 | #include <sys/stat.h> | |
3205 | int main() { | |
3206 | struct stat s; s.st_rdev; | |
3207 | ; return 0; } | |
3208 | EOF | |
7c351dad | 3209 | if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3210 | rm -rf conftest* |
3211 | ac_cv_struct_st_rdev=yes | |
3212 | else | |
3213 | echo "configure: failed program was:" >&5 | |
3214 | cat conftest.$ac_ext >&5 | |
3215 | rm -rf conftest* | |
3216 | ac_cv_struct_st_rdev=no | |
3217 | fi | |
3218 | rm -f conftest* | |
3219 | fi | |
3220 | ||
3221 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | |
3222 | if test $ac_cv_struct_st_rdev = yes; then | |
3223 | cat >> confdefs.h <<\EOF | |
3224 | #define HAVE_ST_RDEV 1 | |
3225 | EOF | |
3226 | ||
3227 | fi | |
3228 | ||
3229 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
7c351dad | 3230 | echo "configure:3231: checking whether struct tm is in sys/time.h or time.h" >&5 |
c801d85f KB |
3231 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3233 | else | |
3234 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3235 | #line 3236 "configure" |
c801d85f KB |
3236 | #include "confdefs.h" |
3237 | #include <sys/types.h> | |
3238 | #include <time.h> | |
3239 | int main() { | |
3240 | struct tm *tp; tp->tm_sec; | |
3241 | ; return 0; } | |
3242 | EOF | |
7c351dad | 3243 | if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3244 | rm -rf conftest* |
3245 | ac_cv_struct_tm=time.h | |
3246 | else | |
3247 | echo "configure: failed program was:" >&5 | |
3248 | cat conftest.$ac_ext >&5 | |
3249 | rm -rf conftest* | |
3250 | ac_cv_struct_tm=sys/time.h | |
3251 | fi | |
3252 | rm -f conftest* | |
3253 | fi | |
3254 | ||
3255 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
3256 | if test $ac_cv_struct_tm = sys/time.h; then | |
3257 | cat >> confdefs.h <<\EOF | |
3258 | #define TM_IN_SYS_TIME 1 | |
3259 | EOF | |
3260 | ||
3261 | fi | |
3262 | ||
3263 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
7c351dad | 3264 | echo "configure:3265: checking for tm_zone in struct tm" >&5 |
c801d85f KB |
3265 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
3266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3267 | else | |
3268 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3269 | #line 3270 "configure" |
c801d85f KB |
3270 | #include "confdefs.h" |
3271 | #include <sys/types.h> | |
3272 | #include <$ac_cv_struct_tm> | |
3273 | int main() { | |
3274 | struct tm tm; tm.tm_zone; | |
3275 | ; return 0; } | |
3276 | EOF | |
7c351dad | 3277 | if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3278 | rm -rf conftest* |
3279 | ac_cv_struct_tm_zone=yes | |
3280 | else | |
3281 | echo "configure: failed program was:" >&5 | |
3282 | cat conftest.$ac_ext >&5 | |
3283 | rm -rf conftest* | |
3284 | ac_cv_struct_tm_zone=no | |
3285 | fi | |
3286 | rm -f conftest* | |
3287 | fi | |
3288 | ||
3289 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
3290 | if test "$ac_cv_struct_tm_zone" = yes; then | |
3291 | cat >> confdefs.h <<\EOF | |
3292 | #define HAVE_TM_ZONE 1 | |
3293 | EOF | |
3294 | ||
3295 | else | |
3296 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
7c351dad | 3297 | echo "configure:3298: checking for tzname" >&5 |
c801d85f KB |
3298 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3300 | else | |
3301 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3302 | #line 3303 "configure" |
c801d85f KB |
3303 | #include "confdefs.h" |
3304 | #include <time.h> | |
3305 | #ifndef tzname /* For SGI. */ | |
3306 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
3307 | #endif | |
3308 | int main() { | |
3309 | atoi(*tzname); | |
3310 | ; return 0; } | |
3311 | EOF | |
7c351dad | 3312 | if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
3313 | rm -rf conftest* |
3314 | ac_cv_var_tzname=yes | |
3315 | else | |
3316 | echo "configure: failed program was:" >&5 | |
3317 | cat conftest.$ac_ext >&5 | |
3318 | rm -rf conftest* | |
3319 | ac_cv_var_tzname=no | |
3320 | fi | |
3321 | rm -f conftest* | |
3322 | fi | |
3323 | ||
3324 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
3325 | if test $ac_cv_var_tzname = yes; then | |
3326 | cat >> confdefs.h <<\EOF | |
3327 | #define HAVE_TZNAME 1 | |
3328 | EOF | |
3329 | ||
3330 | fi | |
3331 | fi | |
3332 | ||
3333 | ||
3334 | ||
3335 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
7c351dad | 3336 | echo "configure:3337: checking for working const" >&5 |
c801d85f KB |
3337 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3339 | else | |
3340 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3341 | #line 3342 "configure" |
c801d85f KB |
3342 | #include "confdefs.h" |
3343 | ||
3344 | int main() { | |
3345 | ||
3346 | /* Ultrix mips cc rejects this. */ | |
3347 | typedef int charset[2]; const charset x; | |
3348 | /* SunOS 4.1.1 cc rejects this. */ | |
3349 | char const *const *ccp; | |
3350 | char **p; | |
3351 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3352 | struct point {int x, y;}; | |
3353 | static struct point const zero = {0,0}; | |
3354 | /* AIX XL C 1.02.0.0 rejects this. | |
3355 | It does not let you subtract one const X* pointer from another in an arm | |
3356 | of an if-expression whose if-part is not a constant expression */ | |
3357 | const char *g = "string"; | |
3358 | ccp = &g + (g ? g-g : 0); | |
3359 | /* HPUX 7.0 cc rejects these. */ | |
3360 | ++ccp; | |
3361 | p = (char**) ccp; | |
3362 | ccp = (char const *const *) p; | |
3363 | { /* SCO 3.2v4 cc rejects this. */ | |
3364 | char *t; | |
3365 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3366 | ||
3367 | *t++ = 0; | |
3368 | } | |
3369 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3370 | int x[] = {25, 17}; | |
3371 | const int *foo = &x[0]; | |
3372 | ++foo; | |
3373 | } | |
3374 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3375 | typedef const int *iptr; | |
3376 | iptr p = 0; | |
3377 | ++p; | |
3378 | } | |
3379 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3380 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3381 | struct s { int j; const int *ap[3]; }; | |
3382 | struct s *b; b->j = 5; | |
3383 | } | |
3384 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3385 | const int foo = 10; | |
3386 | } | |
3387 | ||
3388 | ; return 0; } | |
3389 | EOF | |
7c351dad | 3390 | if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3391 | rm -rf conftest* |
3392 | ac_cv_c_const=yes | |
3393 | else | |
3394 | echo "configure: failed program was:" >&5 | |
3395 | cat conftest.$ac_ext >&5 | |
3396 | rm -rf conftest* | |
3397 | ac_cv_c_const=no | |
3398 | fi | |
3399 | rm -f conftest* | |
3400 | fi | |
3401 | ||
3402 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3403 | if test $ac_cv_c_const = no; then | |
3404 | cat >> confdefs.h <<\EOF | |
3405 | #define const | |
3406 | EOF | |
3407 | ||
3408 | fi | |
3409 | ||
3410 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
7c351dad | 3411 | echo "configure:3412: checking for inline" >&5 |
c801d85f KB |
3412 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
3413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3414 | else | |
3415 | ac_cv_c_inline=no | |
3416 | for ac_kw in inline __inline__ __inline; do | |
3417 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3418 | #line 3419 "configure" |
c801d85f KB |
3419 | #include "confdefs.h" |
3420 | ||
3421 | int main() { | |
3422 | } $ac_kw foo() { | |
3423 | ; return 0; } | |
3424 | EOF | |
7c351dad | 3425 | if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3426 | rm -rf conftest* |
3427 | ac_cv_c_inline=$ac_kw; break | |
3428 | else | |
3429 | echo "configure: failed program was:" >&5 | |
3430 | cat conftest.$ac_ext >&5 | |
3431 | fi | |
3432 | rm -f conftest* | |
3433 | done | |
3434 | ||
3435 | fi | |
3436 | ||
3437 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
3438 | case "$ac_cv_c_inline" in | |
3439 | inline | yes) ;; | |
3440 | no) cat >> confdefs.h <<\EOF | |
3441 | #define inline | |
3442 | EOF | |
3443 | ;; | |
3444 | *) cat >> confdefs.h <<EOF | |
3445 | #define inline $ac_cv_c_inline | |
3446 | EOF | |
3447 | ;; | |
3448 | esac | |
3449 | ||
3450 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | |
7c351dad | 3451 | echo "configure:3452: checking whether char is unsigned" >&5 |
c801d85f KB |
3452 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
3453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3454 | else | |
3455 | if test "$GCC" = yes; then | |
3456 | # GCC predefines this symbol on systems where it applies. | |
3457 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3458 | #line 3459 "configure" |
c801d85f KB |
3459 | #include "confdefs.h" |
3460 | #ifdef __CHAR_UNSIGNED__ | |
3461 | yes | |
3462 | #endif | |
3463 | ||
3464 | EOF | |
3465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3466 | egrep "yes" >/dev/null 2>&1; then | |
3467 | rm -rf conftest* | |
3468 | ac_cv_c_char_unsigned=yes | |
3469 | else | |
3470 | rm -rf conftest* | |
3471 | ac_cv_c_char_unsigned=no | |
3472 | fi | |
3473 | rm -f conftest* | |
3474 | ||
3475 | else | |
3476 | if test "$cross_compiling" = yes; then | |
3477 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3478 | else | |
3479 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3480 | #line 3481 "configure" |
c801d85f KB |
3481 | #include "confdefs.h" |
3482 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ | |
3483 | #if !defined(__STDC__) || __STDC__ != 1 | |
3484 | #define volatile | |
3485 | #endif | |
3486 | main() { | |
3487 | volatile char c = 255; exit(c < 0); | |
3488 | } | |
3489 | EOF | |
7c351dad | 3490 | if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3491 | then |
3492 | ac_cv_c_char_unsigned=yes | |
3493 | else | |
3494 | echo "configure: failed program was:" >&5 | |
3495 | cat conftest.$ac_ext >&5 | |
3496 | rm -fr conftest* | |
3497 | ac_cv_c_char_unsigned=no | |
3498 | fi | |
3499 | rm -fr conftest* | |
3500 | fi | |
3501 | ||
3502 | fi | |
3503 | fi | |
3504 | ||
3505 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | |
3506 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
3507 | cat >> confdefs.h <<\EOF | |
3508 | #define __CHAR_UNSIGNED__ 1 | |
3509 | EOF | |
3510 | ||
3511 | fi | |
3512 | ||
3513 | echo $ac_n "checking for long double""... $ac_c" 1>&6 | |
7c351dad | 3514 | echo "configure:3515: checking for long double" >&5 |
c801d85f KB |
3515 | if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then |
3516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3517 | else | |
3518 | if test "$GCC" = yes; then | |
3519 | ac_cv_c_long_double=yes | |
3520 | else | |
3521 | if test "$cross_compiling" = yes; then | |
3522 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3523 | else | |
3524 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3525 | #line 3526 "configure" |
c801d85f KB |
3526 | #include "confdefs.h" |
3527 | int main() { | |
3528 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
3529 | long double foo = 0.0; | |
3530 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
3531 | exit(sizeof(long double) < sizeof(double)); } | |
3532 | EOF | |
7c351dad | 3533 | if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3534 | then |
3535 | ac_cv_c_long_double=yes | |
3536 | else | |
3537 | echo "configure: failed program was:" >&5 | |
3538 | cat conftest.$ac_ext >&5 | |
3539 | rm -fr conftest* | |
3540 | ac_cv_c_long_double=no | |
3541 | fi | |
3542 | rm -fr conftest* | |
3543 | fi | |
3544 | ||
3545 | fi | |
3546 | fi | |
3547 | ||
3548 | echo "$ac_t""$ac_cv_c_long_double" 1>&6 | |
3549 | if test $ac_cv_c_long_double = yes; then | |
3550 | cat >> confdefs.h <<\EOF | |
3551 | #define HAVE_LONG_DOUBLE 1 | |
3552 | EOF | |
3553 | ||
3554 | fi | |
3555 | ||
3556 | ||
3557 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
7c351dad | 3558 | echo "configure:3559: checking whether byte ordering is bigendian" >&5 |
c801d85f KB |
3559 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
3560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3561 | else | |
3562 | ac_cv_c_bigendian=unknown | |
3563 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3564 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3565 | #line 3566 "configure" |
c801d85f KB |
3566 | #include "confdefs.h" |
3567 | #include <sys/types.h> | |
3568 | #include <sys/param.h> | |
3569 | int main() { | |
3570 | ||
3571 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
3572 | bogus endian macros | |
3573 | #endif | |
3574 | ; return 0; } | |
3575 | EOF | |
7c351dad | 3576 | if { (eval echo configure:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3577 | rm -rf conftest* |
3578 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
3579 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3580 | #line 3581 "configure" |
c801d85f KB |
3581 | #include "confdefs.h" |
3582 | #include <sys/types.h> | |
3583 | #include <sys/param.h> | |
3584 | int main() { | |
3585 | ||
3586 | #if BYTE_ORDER != BIG_ENDIAN | |
3587 | not big endian | |
3588 | #endif | |
3589 | ; return 0; } | |
3590 | EOF | |
7c351dad | 3591 | if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c801d85f KB |
3592 | rm -rf conftest* |
3593 | ac_cv_c_bigendian=yes | |
3594 | else | |
3595 | echo "configure: failed program was:" >&5 | |
3596 | cat conftest.$ac_ext >&5 | |
3597 | rm -rf conftest* | |
3598 | ac_cv_c_bigendian=no | |
3599 | fi | |
3600 | rm -f conftest* | |
3601 | else | |
3602 | echo "configure: failed program was:" >&5 | |
3603 | cat conftest.$ac_ext >&5 | |
3604 | fi | |
3605 | rm -f conftest* | |
3606 | if test $ac_cv_c_bigendian = unknown; then | |
3607 | if test "$cross_compiling" = yes; then | |
3608 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3609 | else | |
3610 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3611 | #line 3612 "configure" |
c801d85f KB |
3612 | #include "confdefs.h" |
3613 | main () { | |
3614 | /* Are we little or big endian? From Harbison&Steele. */ | |
3615 | union | |
3616 | { | |
3617 | long l; | |
3618 | char c[sizeof (long)]; | |
3619 | } u; | |
3620 | u.l = 1; | |
3621 | exit (u.c[sizeof (long) - 1] == 1); | |
3622 | } | |
3623 | EOF | |
7c351dad | 3624 | if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3625 | then |
3626 | ac_cv_c_bigendian=no | |
3627 | else | |
3628 | echo "configure: failed program was:" >&5 | |
3629 | cat conftest.$ac_ext >&5 | |
3630 | rm -fr conftest* | |
3631 | ac_cv_c_bigendian=yes | |
3632 | fi | |
3633 | rm -fr conftest* | |
3634 | fi | |
3635 | ||
3636 | fi | |
3637 | fi | |
3638 | ||
3639 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
3640 | if test $ac_cv_c_bigendian = yes; then | |
3641 | cat >> confdefs.h <<\EOF | |
3642 | #define WORDS_BIGENDIAN 1 | |
3643 | EOF | |
3644 | ||
3645 | fi | |
3646 | ||
3647 | ||
3648 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
7c351dad | 3649 | echo "configure:3650: checking size of int *" >&5 |
c801d85f KB |
3650 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
3651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3652 | else | |
3653 | if test "$cross_compiling" = yes; then | |
3654 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3655 | else | |
3656 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3657 | #line 3658 "configure" |
c801d85f KB |
3658 | #include "confdefs.h" |
3659 | #include <stdio.h> | |
3660 | main() | |
3661 | { | |
3662 | FILE *f=fopen("conftestval", "w"); | |
3663 | if (!f) exit(1); | |
3664 | fprintf(f, "%d\n", sizeof(int *)); | |
3665 | exit(0); | |
3666 | } | |
3667 | EOF | |
7c351dad | 3668 | if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3669 | then |
3670 | ac_cv_sizeof_int_p=`cat conftestval` | |
3671 | else | |
3672 | echo "configure: failed program was:" >&5 | |
3673 | cat conftest.$ac_ext >&5 | |
3674 | rm -fr conftest* | |
3675 | ac_cv_sizeof_int_p=0 | |
3676 | fi | |
3677 | rm -fr conftest* | |
3678 | fi | |
3679 | ||
3680 | fi | |
3681 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
3682 | cat >> confdefs.h <<EOF | |
3683 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
3684 | EOF | |
3685 | ||
3686 | ||
3687 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
7c351dad | 3688 | echo "configure:3689: checking size of int" >&5 |
c801d85f KB |
3689 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
3690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3691 | else | |
3692 | if test "$cross_compiling" = yes; then | |
3693 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3694 | else | |
3695 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3696 | #line 3697 "configure" |
c801d85f KB |
3697 | #include "confdefs.h" |
3698 | #include <stdio.h> | |
3699 | main() | |
3700 | { | |
3701 | FILE *f=fopen("conftestval", "w"); | |
3702 | if (!f) exit(1); | |
3703 | fprintf(f, "%d\n", sizeof(int)); | |
3704 | exit(0); | |
3705 | } | |
3706 | EOF | |
7c351dad | 3707 | if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3708 | then |
3709 | ac_cv_sizeof_int=`cat conftestval` | |
3710 | else | |
3711 | echo "configure: failed program was:" >&5 | |
3712 | cat conftest.$ac_ext >&5 | |
3713 | rm -fr conftest* | |
3714 | ac_cv_sizeof_int=0 | |
3715 | fi | |
3716 | rm -fr conftest* | |
3717 | fi | |
3718 | ||
3719 | fi | |
3720 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
3721 | cat >> confdefs.h <<EOF | |
3722 | #define SIZEOF_INT $ac_cv_sizeof_int | |
3723 | EOF | |
3724 | ||
3725 | ||
3726 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
7c351dad | 3727 | echo "configure:3728: checking size of long" >&5 |
c801d85f KB |
3728 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
3729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3730 | else | |
3731 | if test "$cross_compiling" = yes; then | |
3732 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
3733 | else | |
3734 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 3735 | #line 3736 "configure" |
c801d85f KB |
3736 | #include "confdefs.h" |
3737 | #include <stdio.h> | |
3738 | main() | |
3739 | { | |
3740 | FILE *f=fopen("conftestval", "w"); | |
3741 | if (!f) exit(1); | |
3742 | fprintf(f, "%d\n", sizeof(long)); | |
3743 | exit(0); | |
3744 | } | |
3745 | EOF | |
7c351dad | 3746 | if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
3747 | then |
3748 | ac_cv_sizeof_long=`cat conftestval` | |
3749 | else | |
3750 | echo "configure: failed program was:" >&5 | |
3751 | cat conftest.$ac_ext >&5 | |
3752 | rm -fr conftest* | |
3753 | ac_cv_sizeof_long=0 | |
3754 | fi | |
3755 | rm -fr conftest* | |
3756 | fi | |
3757 | ||
3758 | fi | |
3759 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
3760 | cat >> confdefs.h <<EOF | |
3761 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
3762 | EOF | |
3763 | ||
3764 | ||
3765 | ||
3766 | ||
7c351dad GL |
3767 | UNIX_THREAD=gtk/threadno.cpp |
3768 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
3769 | echo "configure:3770: checking for pthread_create in -lpthread" >&5 | |
3770 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | |
3771 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3773 | else | |
3774 | ac_save_LIBS="$LIBS" | |
3775 | LIBS="-lpthread $LIBS" | |
3776 | cat > conftest.$ac_ext <<EOF | |
3777 | #line 3778 "configure" | |
3778 | #include "confdefs.h" | |
3779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3780 | /* We use char because int might match the return type of a gcc2 | |
3781 | builtin and then its argument prototype would still apply. */ | |
3782 | char pthread_create(); | |
3783 | ||
3784 | int main() { | |
3785 | pthread_create() | |
3786 | ; return 0; } | |
3787 | EOF | |
3788 | if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
3789 | rm -rf conftest* | |
3790 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3791 | else | |
3792 | echo "configure: failed program was:" >&5 | |
3793 | cat conftest.$ac_ext >&5 | |
3794 | rm -rf conftest* | |
3795 | eval "ac_cv_lib_$ac_lib_var=no" | |
3796 | fi | |
3797 | rm -f conftest* | |
3798 | LIBS="$ac_save_LIBS" | |
3799 | ||
3800 | fi | |
3801 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3802 | echo "$ac_t""yes" 1>&6 | |
3803 | UNIX_THREAD=gtk/threadpsx.cpp | |
3804 | else | |
3805 | echo "$ac_t""no" 1>&6 | |
3806 | fi | |
3807 | ||
3808 | ||
3809 | ||
3810 | ||
3811 | UNIX_THREAD="gtk/threadno.cpp" | |
3812 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
3813 | echo "configure:3814: checking for pthread_create in -lpthread" >&5 | |
3814 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | |
3815 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3817 | else | |
3818 | ac_save_LIBS="$LIBS" | |
3819 | LIBS="-lpthread $LIBS" | |
3820 | cat > conftest.$ac_ext <<EOF | |
3821 | #line 3822 "configure" | |
3822 | #include "confdefs.h" | |
3823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3824 | /* We use char because int might match the return type of a gcc2 | |
3825 | builtin and then its argument prototype would still apply. */ | |
3826 | char pthread_create(); | |
3827 | ||
3828 | int main() { | |
3829 | pthread_create() | |
3830 | ; return 0; } | |
3831 | EOF | |
3832 | if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
3833 | rm -rf conftest* | |
3834 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3835 | else | |
3836 | echo "configure: failed program was:" >&5 | |
3837 | cat conftest.$ac_ext >&5 | |
3838 | rm -rf conftest* | |
3839 | eval "ac_cv_lib_$ac_lib_var=no" | |
3840 | fi | |
3841 | rm -f conftest* | |
3842 | LIBS="$ac_save_LIBS" | |
3843 | ||
3844 | fi | |
3845 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3846 | echo "$ac_t""yes" 1>&6 | |
3847 | UNIX_THREAD="gtk/threadpsx.cpp" | |
3848 | else | |
3849 | echo "$ac_t""no" 1>&6 | |
3850 | fi | |
3851 | ||
3852 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 | |
3853 | echo "configure:3854: checking for pthread_create in -lpthreads" >&5 | |
3854 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` | |
3855 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3857 | else | |
3858 | ac_save_LIBS="$LIBS" | |
3859 | LIBS="-lpthreads $LIBS" | |
3860 | cat > conftest.$ac_ext <<EOF | |
3861 | #line 3862 "configure" | |
3862 | #include "confdefs.h" | |
3863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3864 | /* We use char because int might match the return type of a gcc2 | |
3865 | builtin and then its argument prototype would still apply. */ | |
3866 | char pthread_create(); | |
3867 | ||
3868 | int main() { | |
3869 | pthread_create() | |
3870 | ; return 0; } | |
3871 | EOF | |
3872 | if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
3873 | rm -rf conftest* | |
3874 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3875 | else | |
3876 | echo "configure: failed program was:" >&5 | |
3877 | cat conftest.$ac_ext >&5 | |
3878 | rm -rf conftest* | |
3879 | eval "ac_cv_lib_$ac_lib_var=no" | |
3880 | fi | |
3881 | rm -f conftest* | |
3882 | LIBS="$ac_save_LIBS" | |
3883 | ||
3884 | fi | |
3885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3886 | echo "$ac_t""yes" 1>&6 | |
3887 | UNIX_THREAD="gtk/threadpsx.cpp" | |
3888 | else | |
3889 | echo "$ac_t""no" 1>&6 | |
3890 | fi | |
3891 | ||
3892 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
3893 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
3894 | echo "configure:3895: checking for sys/prctl.h" >&5 | |
3895 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3897 | else | |
3898 | cat > conftest.$ac_ext <<EOF | |
3899 | #line 3900 "configure" | |
3900 | #include "confdefs.h" | |
3901 | #include <sys/prctl.h> | |
3902 | EOF | |
3903 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3904 | { (eval echo configure:3905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3905 | ac_err=`grep -v '^ *+' conftest.out` | |
3906 | if test -z "$ac_err"; then | |
3907 | rm -rf conftest* | |
3908 | eval "ac_cv_header_$ac_safe=yes" | |
3909 | else | |
3910 | echo "$ac_err" >&5 | |
3911 | echo "configure: failed program was:" >&5 | |
3912 | cat conftest.$ac_ext >&5 | |
3913 | rm -rf conftest* | |
3914 | eval "ac_cv_header_$ac_safe=no" | |
3915 | fi | |
3916 | rm -f conftest* | |
3917 | fi | |
3918 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3919 | echo "$ac_t""yes" 1>&6 | |
3920 | UNIX_THREAD="gtk/threadsgi.cpp" | |
3921 | else | |
3922 | echo "$ac_t""no" 1>&6 | |
3923 | fi | |
3924 | ||
3925 | ||
c801d85f KB |
3926 | |
3927 | echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
7c351dad | 3928 | echo "configure:3929: checking for long file names" >&5 |
c801d85f KB |
3929 | if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3931 | else | |
3932 | ac_cv_sys_long_file_names=yes | |
3933 | # Test for long file names in all the places we know might matter: | |
3934 | # . the current directory, where building will happen | |
3935 | # $prefix/lib where we will be installing things | |
3936 | # $exec_prefix/lib likewise | |
3937 | # eval it to expand exec_prefix. | |
3938 | # $TMPDIR if set, where it might want to write temporary files | |
3939 | # if $TMPDIR is not set: | |
3940 | # /tmp where it might want to write temporary files | |
3941 | # /var/tmp likewise | |
3942 | # /usr/tmp likewise | |
3943 | if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
3944 | ac_tmpdirs="$TMPDIR" | |
3945 | else | |
3946 | ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
3947 | fi | |
3948 | for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
3949 | test -d $ac_dir || continue | |
3950 | test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
3951 | (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
3952 | (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
3953 | val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
3954 | if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
3955 | ac_cv_sys_long_file_names=no | |
3956 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3957 | break | |
3958 | fi | |
3959 | rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3960 | done | |
3961 | fi | |
3962 | ||
3963 | echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
3964 | if test $ac_cv_sys_long_file_names = yes; then | |
3965 | cat >> confdefs.h <<\EOF | |
3966 | #define HAVE_LONG_FILE_NAMES 1 | |
3967 | EOF | |
3968 | ||
3969 | fi | |
3970 | ||
3971 | ||
3972 | ||
3973 | ||
3974 | for ac_prog in 'bison -y' byacc | |
3975 | do | |
3976 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3977 | set dummy $ac_prog; ac_word=$2 | |
3978 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7c351dad | 3979 | echo "configure:3980: checking for $ac_word" >&5 |
c801d85f KB |
3980 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
3981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3982 | else | |
3983 | if test -n "$YACC"; then | |
3984 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3985 | else | |
3986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3987 | for ac_dir in $PATH; do | |
3988 | test -z "$ac_dir" && ac_dir=. | |
3989 | if test -f $ac_dir/$ac_word; then | |
3990 | ac_cv_prog_YACC="$ac_prog" | |
3991 | break | |
3992 | fi | |
3993 | done | |
3994 | IFS="$ac_save_ifs" | |
3995 | fi | |
3996 | fi | |
3997 | YACC="$ac_cv_prog_YACC" | |
3998 | if test -n "$YACC"; then | |
3999 | echo "$ac_t""$YACC" 1>&6 | |
4000 | else | |
4001 | echo "$ac_t""no" 1>&6 | |
4002 | fi | |
4003 | ||
4004 | test -n "$YACC" && break | |
4005 | done | |
4006 | test -n "$YACC" || YACC="yacc" | |
4007 | ||
4008 | ||
4009 | # Extract the first word of "flex", so it can be a program name with args. | |
4010 | set dummy flex; ac_word=$2 | |
4011 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7c351dad | 4012 | echo "configure:4013: checking for $ac_word" >&5 |
c801d85f KB |
4013 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
4014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4015 | else | |
4016 | if test -n "$LEX"; then | |
4017 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4018 | else | |
4019 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4020 | for ac_dir in $PATH; do | |
4021 | test -z "$ac_dir" && ac_dir=. | |
4022 | if test -f $ac_dir/$ac_word; then | |
4023 | ac_cv_prog_LEX="flex" | |
4024 | break | |
4025 | fi | |
4026 | done | |
4027 | IFS="$ac_save_ifs" | |
4028 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
4029 | fi | |
4030 | fi | |
4031 | LEX="$ac_cv_prog_LEX" | |
4032 | if test -n "$LEX"; then | |
4033 | echo "$ac_t""$LEX" 1>&6 | |
4034 | else | |
4035 | echo "$ac_t""no" 1>&6 | |
4036 | fi | |
4037 | ||
4038 | if test -z "$LEXLIB" | |
4039 | then | |
4040 | case "$LEX" in | |
4041 | flex*) ac_lib=fl ;; | |
4042 | *) ac_lib=l ;; | |
4043 | esac | |
4044 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
7c351dad | 4045 | echo "configure:4046: checking for yywrap in -l$ac_lib" >&5 |
c801d85f KB |
4046 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
4047 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4049 | else | |
4050 | ac_save_LIBS="$LIBS" | |
4051 | LIBS="-l$ac_lib $LIBS" | |
4052 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 4053 | #line 4054 "configure" |
c801d85f KB |
4054 | #include "confdefs.h" |
4055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4056 | /* We use char because int might match the return type of a gcc2 | |
4057 | builtin and then its argument prototype would still apply. */ | |
4058 | char yywrap(); | |
4059 | ||
4060 | int main() { | |
4061 | yywrap() | |
4062 | ; return 0; } | |
4063 | EOF | |
7c351dad | 4064 | if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
4065 | rm -rf conftest* |
4066 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4067 | else | |
4068 | echo "configure: failed program was:" >&5 | |
4069 | cat conftest.$ac_ext >&5 | |
4070 | rm -rf conftest* | |
4071 | eval "ac_cv_lib_$ac_lib_var=no" | |
4072 | fi | |
4073 | rm -f conftest* | |
4074 | LIBS="$ac_save_LIBS" | |
4075 | ||
4076 | fi | |
4077 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4078 | echo "$ac_t""yes" 1>&6 | |
4079 | LEXLIB="-l$ac_lib" | |
4080 | else | |
4081 | echo "$ac_t""no" 1>&6 | |
4082 | fi | |
4083 | ||
4084 | fi | |
4085 | ||
4086 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | |
7c351dad | 4087 | echo "configure:4088: checking lex output file root" >&5 |
c801d85f KB |
4088 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
4089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4090 | else | |
4091 | # The minimal lex program is just a single line: %%. But some broken lexes | |
4092 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
4093 | echo '%% | |
4094 | %%' | $LEX | |
4095 | if test -f lex.yy.c; then | |
4096 | ac_cv_prog_lex_root=lex.yy | |
4097 | elif test -f lexyy.c; then | |
4098 | ac_cv_prog_lex_root=lexyy | |
4099 | else | |
4100 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | |
4101 | fi | |
4102 | fi | |
4103 | ||
4104 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | |
4105 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4106 | ||
4107 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | |
7c351dad | 4108 | echo "configure:4109: checking whether yytext is a pointer" >&5 |
c801d85f KB |
4109 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
4110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4111 | else | |
4112 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
4113 | # default is implementation-dependent. Figure out which it is, since | |
4114 | # not all implementations provide the %pointer and %array declarations. | |
4115 | ac_cv_prog_lex_yytext_pointer=no | |
4116 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
4117 | ac_save_LIBS="$LIBS" | |
4118 | LIBS="$LIBS $LEXLIB" | |
4119 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 4120 | #line 4121 "configure" |
c801d85f KB |
4121 | #include "confdefs.h" |
4122 | `cat $LEX_OUTPUT_ROOT.c` | |
4123 | int main() { | |
4124 | ||
4125 | ; return 0; } | |
4126 | EOF | |
7c351dad | 4127 | if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
c801d85f KB |
4128 | rm -rf conftest* |
4129 | ac_cv_prog_lex_yytext_pointer=yes | |
4130 | else | |
4131 | echo "configure: failed program was:" >&5 | |
4132 | cat conftest.$ac_ext >&5 | |
4133 | fi | |
4134 | rm -f conftest* | |
4135 | LIBS="$ac_save_LIBS" | |
4136 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
4137 | ||
4138 | fi | |
4139 | ||
4140 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | |
4141 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
4142 | cat >> confdefs.h <<\EOF | |
4143 | #define YYTEXT_POINTER 1 | |
4144 | EOF | |
4145 | ||
4146 | fi | |
4147 | ||
4148 | ||
4149 | ||
4150 | CHECK_INCLUDE="-I/usr/include $X_CFLAGS" | |
4151 | CHECK_LIB="-L/lib -L/usr/lib $X_LIBS" | |
4152 | ||
4153 | ||
4154 | ||
4155 | # Make sure we can run config.sub. | |
4156 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
4157 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
4158 | fi | |
4159 | ||
4160 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
7c351dad | 4161 | echo "configure:4162: checking host system type" >&5 |
c801d85f KB |
4162 | |
4163 | host_alias=$host | |
4164 | case "$host_alias" in | |
4165 | NONE) | |
4166 | case $nonopt in | |
4167 | NONE) | |
4168 | if host_alias=`$ac_config_guess`; then : | |
4169 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
4170 | fi ;; | |
4171 | *) host_alias=$nonopt ;; | |
4172 | esac ;; | |
4173 | esac | |
4174 | ||
4175 | host=`$ac_config_sub $host_alias` | |
4176 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
4177 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
4178 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
4179 | echo "$ac_t""$host" 1>&6 | |
4180 | ||
4181 | canonical=$host | |
4182 | configuration=$host_alias | |
4183 | ||
4184 | ||
4185 | USE_GTK=1 | |
4186 | USE_UNIX=1 | |
4187 | ||
4188 | TOOLKIT=GTK | |
4189 | TOOLKIT_DEF=__GTK__ | |
4190 | ||
4191 | USE_LINUX= | |
4192 | USE_SGI= | |
4193 | USE_HPUX= | |
4194 | USE_SYSV= | |
4195 | USE_SVR4= | |
4196 | USE_AIX= | |
4197 | USE_SUN= | |
4198 | USE_SOLARIS= | |
4199 | USE_SUNOS= | |
4200 | USE_ALPHA= | |
4201 | USE_OSF= | |
4202 | USE_BSD= | |
4203 | USE_FREEBSD= | |
4204 | USE_VMS= | |
4205 | USE_ULTRIX= | |
4206 | USE_DATA_GENERAL= | |
4207 | ||
4208 | case "${canonical}" in | |
4209 | *-hp-hpux* ) | |
4210 | USE_HPUX=1 | |
4211 | cat >> confdefs.h <<\EOF | |
4212 | #define __HPUX__ 1 | |
4213 | EOF | |
4214 | ||
4215 | ;; | |
4216 | *-*-linux* ) | |
4217 | USE_LINUX=1 | |
4218 | cat >> confdefs.h <<\EOF | |
4219 | #define __LINUX__ 1 | |
4220 | EOF | |
4221 | ||
4222 | ;; | |
4223 | *-*-irix5* | *-*-irix6* ) | |
4224 | USE_SGI=1 | |
4225 | USE_SVR4=1 | |
4226 | cat >> confdefs.h <<\EOF | |
4227 | #define __SGI__ 1 | |
4228 | EOF | |
4229 | ||
4230 | cat >> confdefs.h <<\EOF | |
4231 | #define __SVR4__ 1 | |
4232 | EOF | |
4233 | ||
4234 | ;; | |
4235 | *-*-solaris2* ) | |
4236 | USE_SUN=1 | |
4237 | USE_SOLARIS=1 | |
4238 | USE_SVR4=1 | |
4239 | cat >> confdefs.h <<\EOF | |
4240 | #define __SUN__ 1 | |
4241 | EOF | |
4242 | ||
4243 | cat >> confdefs.h <<\EOF | |
4244 | #define __SOLARIS__ 1 | |
4245 | EOF | |
4246 | ||
4247 | cat >> confdefs.h <<\EOF | |
4248 | #define __SVR4__ 1 | |
4249 | EOF | |
4250 | ||
4251 | ;; | |
4252 | *-*-sunos4* ) | |
4253 | USE_SUN=1 | |
4254 | USE_SUNOS=1 | |
4255 | USE_BSD=1 | |
4256 | cat >> confdefs.h <<\EOF | |
4257 | #define __SUN__ 1 | |
4258 | EOF | |
4259 | ||
4260 | cat >> confdefs.h <<\EOF | |
4261 | #define __SUNOS__ 1 | |
4262 | EOF | |
4263 | ||
4264 | cat >> confdefs.h <<\EOF | |
4265 | #define __BSD__ 1 | |
4266 | EOF | |
4267 | ||
4268 | ;; | |
4269 | *-*-freebsd* | *-*-netbsd*) | |
4270 | USE_BSD=1 | |
4271 | USE_FREEBSD=1 | |
4272 | cat >> confdefs.h <<\EOF | |
4273 | #define __FREEBSD__ 1 | |
4274 | EOF | |
4275 | ||
4276 | cat >> confdefs.h <<\EOF | |
4277 | #define __BSD__ 1 | |
4278 | EOF | |
4279 | ||
4280 | ;; | |
4281 | *-*-osf* ) | |
4282 | USE_ALPHA=1 | |
4283 | USE_OSF=1 | |
4284 | cat >> confdefs.h <<\EOF | |
4285 | #define __ALPHA__ 1 | |
4286 | EOF | |
4287 | ||
4288 | cat >> confdefs.h <<\EOF | |
4289 | #define __OSF__ 1 | |
4290 | EOF | |
4291 | ||
4292 | ;; | |
4293 | *-*-dgux5* ) | |
4294 | USE_ALPHA=1 | |
4295 | USE_SVR4=1 | |
4296 | cat >> confdefs.h <<\EOF | |
4297 | #define __ALPHA__ 1 | |
4298 | EOF | |
4299 | ||
4300 | cat >> confdefs.h <<\EOF | |
4301 | #define __SVR4__ 1 | |
4302 | EOF | |
4303 | ||
4304 | ;; | |
4305 | *-*-sysv5* ) | |
4306 | USE_SYSV=1 | |
4307 | USE_SVR4=1 | |
4308 | cat >> confdefs.h <<\EOF | |
4309 | #define __SYSV__ 1 | |
4310 | EOF | |
4311 | ||
4312 | cat >> confdefs.h <<\EOF | |
4313 | #define __SVR4__ 1 | |
4314 | EOF | |
4315 | ||
4316 | ;; | |
4317 | *-*-aix* ) | |
4318 | USE_AIX=1 | |
4319 | USE_SYSV=1 | |
4320 | USE_SVR4=1 | |
4321 | cat >> confdefs.h <<\EOF | |
4322 | #define __AIX__ 1 | |
4323 | EOF | |
4324 | ||
4325 | cat >> confdefs.h <<\EOF | |
4326 | #define __SYSV__ 1 | |
4327 | EOF | |
4328 | ||
4329 | cat >> confdefs.h <<\EOF | |
4330 | #define __SVR4__ 1 | |
4331 | EOF | |
4332 | ||
4333 | ;; | |
4334 | *) | |
4335 | { echo "configure: error: I don't know your system type." 1>&2; exit 1; } | |
4336 | esac | |
4337 | ||
4338 | ||
4339 | ||
4340 | rm -f ${OSTYPE}.system.cache.tmp | |
4341 | touch ${OSTYPE}.system.cache.tmp | |
4342 | touch ${OSTYPE}.system.cache | |
4343 | ||
4344 | ||
4345 | DEFAULT_USE_SHARED=0 | |
4346 | DEFAULT_USE_OPTIMISE=1 | |
4347 | DEFAULT_USE_PROFILE=0 | |
4348 | DEFAULT_USE_DEBUG_FLAG=0 | |
4349 | DEFAULT_USE_DEBUG_INFO=0 | |
4350 | DEFAULT_USE_MEM_TRACING=0 | |
4351 | ||
4352 | DEFAULT_USE_ZLIB=1 | |
4353 | DEFAULT_USE_GDK_IMLIB=1 | |
4354 | DEFAULT_USE_LIBPNG=1 | |
4355 | ||
4356 | DEFAULT_USE_STORABLE_CLASSES=1 | |
4357 | DEFAULT_USE_AUTOTRANS=1 | |
4358 | DEFAULT_USE_AFM_FOR_POSTSCRIPT=1 | |
4359 | DEFAULT_WX_NORMALIZED_PS_FONTS=1 | |
4360 | ||
4361 | DEFAULT_USE_IOSTREAMH=1 | |
4362 | ||
4363 | DEFAULT_USE_THREADS=0 | |
4364 | DEFAULT_USE_THREADS_SGI=0 | |
4365 | DEFAULT_USE_THREADS_POSIX=0 | |
4366 | DEFAULT_USE_OPENGL=0 | |
4367 | ||
53b28675 | 4368 | DEFAULT_USE_WXCONFIG=1 |
c801d85f KB |
4369 | DEFAULT_USE_POSTSCRIPT=1 |
4370 | DEFAULT_USE_IPC=1 | |
4371 | DEFAULT_USE_RESOURCES=1 | |
4372 | DEFAULT_USE_TIMEDATE=1 | |
4373 | DEFAULT_USE_FRACTION=1 | |
4374 | DEFAULT_USE_CONSTRAINTS=1 | |
4375 | DEFAULT_USE_TOOLBAR=1 | |
4376 | DEFAULT_USE_GAUGE=1 | |
4377 | DEFAULT_USE_SCROLLBAR=1 | |
4378 | DEFAULT_USE_DOC_VIEW_ARCHITECTURE=1 | |
4379 | DEFAULT_USE_PRINTING_ARCHITECTURE=1 | |
4380 | ||
4381 | DEFAULT_USE_METAFILE=0 | |
4382 | DEFAULT_USE_HELP=0 | |
4383 | DEFAULT_USE_CLIPBOARD=0 | |
4384 | DEFAULT_USE_VLBOX=0 | |
4385 | DEFAULT_USE_WXGRAPH=0 | |
4386 | DEFAULT_USE_WXTREE=0 | |
4387 | DEFAULT_USE_ENHANCED_DIALOG=0 | |
4388 | ||
4389 | DEFAULT_USE_FORM=0 | |
53b28675 | 4390 | DEFAULT_USE_PROLOGIO=1 |
c801d85f KB |
4391 | DEFAULT_USE_RPC=0 |
4392 | DEFAULT_USE_WX_RESOURCES=1 | |
4393 | ||
4394 | ||
4395 | ||
4396 | echo $ac_n "checking "for shared"""... $ac_c" 1>&6 | |
7c351dad | 4397 | echo "configure:4398: checking "for shared"" >&5 |
c801d85f KB |
4398 | # Check whether --with-shared or --without-shared was given. |
4399 | if test "${with_shared+set}" = set; then | |
4400 | withval="$with_shared" | |
4401 | if test "x$with_shared" = xyes; then | |
4402 | ac_cv_use_shared='USE_SHARED="1"' | |
4403 | else | |
4404 | ac_cv_use_shared='USE_SHARED="0"' | |
4405 | fi | |
4406 | else | |
4407 | ||
4408 | LINE=`grep "USE_SHARED" ${OSTYPE}.system.cache` | |
4409 | if test "x$LINE" != x ; then | |
4410 | eval "DEFAULT_$LINE" | |
4411 | fi | |
4412 | ac_cv_use_shared='USE_SHARED='$DEFAULT_USE_SHARED | |
4413 | ||
4414 | fi | |
4415 | ||
4416 | eval "$ac_cv_use_shared" | |
4417 | echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp | |
4418 | if test "$USE_SHARED" = 1; then | |
4419 | echo "$ac_t""yes" 1>&6 | |
4420 | else | |
4421 | echo "$ac_t""no" 1>&6 | |
4422 | fi | |
4423 | ||
4424 | ||
4425 | ||
4426 | echo $ac_n "checking "for optimise"""... $ac_c" 1>&6 | |
7c351dad | 4427 | echo "configure:4428: checking "for optimise"" >&5 |
c801d85f KB |
4428 | # Check whether --with-optimise or --without-optimise was given. |
4429 | if test "${with_optimise+set}" = set; then | |
4430 | withval="$with_optimise" | |
4431 | if test "x$with_optimise" = xyes; then | |
4432 | ac_cv_use_optimise='USE_OPTIMISE="1"' | |
4433 | else | |
4434 | ac_cv_use_optimise='USE_OPTIMISE="0"' | |
4435 | fi | |
4436 | else | |
4437 | ||
4438 | LINE=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache` | |
4439 | if test "x$LINE" != x ; then | |
4440 | eval "DEFAULT_$LINE" | |
4441 | fi | |
4442 | ac_cv_use_optimise='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE | |
4443 | ||
4444 | fi | |
4445 | ||
4446 | eval "$ac_cv_use_optimise" | |
4447 | echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp | |
4448 | if test "$USE_OPTIMISE" = 1; then | |
4449 | echo "$ac_t""yes" 1>&6 | |
4450 | else | |
4451 | echo "$ac_t""no" 1>&6 | |
4452 | fi | |
4453 | ||
4454 | ||
4455 | ||
4456 | echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6 | |
7c351dad | 4457 | echo "configure:4458: checking "for debug_flag"" >&5 |
c801d85f KB |
4458 | # Check whether --with-debug_flag or --without-debug_flag was given. |
4459 | if test "${with_debug_flag+set}" = set; then | |
4460 | withval="$with_debug_flag" | |
4461 | if test "x$with_debug_flag" = xyes; then | |
4462 | ac_cv_use_debug_flag='USE_DEBUG_FLAG="1"' | |
4463 | else | |
4464 | ac_cv_use_debug_flag='USE_DEBUG_FLAG="0"' | |
4465 | fi | |
4466 | else | |
4467 | ||
4468 | LINE=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | fi | |
4472 | ac_cv_use_debug_flag='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG | |
4473 | ||
4474 | fi | |
4475 | ||
4476 | eval "$ac_cv_use_debug_flag" | |
4477 | echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp | |
4478 | if test "$USE_DEBUG_FLAG" = 1; then | |
4479 | echo "$ac_t""yes" 1>&6 | |
4480 | else | |
4481 | echo "$ac_t""no" 1>&6 | |
4482 | fi | |
4483 | ||
4484 | ||
4485 | ||
4486 | echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6 | |
7c351dad | 4487 | echo "configure:4488: checking "for debug_info"" >&5 |
c801d85f KB |
4488 | # Check whether --with-debug_info or --without-debug_info was given. |
4489 | if test "${with_debug_info+set}" = set; then | |
4490 | withval="$with_debug_info" | |
4491 | if test "x$with_debug_info" = xyes; then | |
4492 | ac_cv_use_debug_info='USE_DEBUG_INFO="1"' | |
4493 | else | |
4494 | ac_cv_use_debug_info='USE_DEBUG_INFO="0"' | |
4495 | fi | |
4496 | else | |
4497 | ||
4498 | LINE=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache` | |
4499 | if test "x$LINE" != x ; then | |
4500 | eval "DEFAULT_$LINE" | |
4501 | fi | |
4502 | ac_cv_use_debug_info='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO | |
4503 | ||
4504 | fi | |
4505 | ||
4506 | eval "$ac_cv_use_debug_info" | |
4507 | echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp | |
4508 | if test "$USE_DEBUG_INFO" = 1; then | |
4509 | echo "$ac_t""yes" 1>&6 | |
4510 | else | |
4511 | echo "$ac_t""no" 1>&6 | |
4512 | fi | |
4513 | ||
4514 | ||
4515 | ||
4516 | echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6 | |
7c351dad | 4517 | echo "configure:4518: checking "for mem_tracing"" >&5 |
c801d85f KB |
4518 | # Check whether --with-mem_tracing or --without-mem_tracing was given. |
4519 | if test "${with_mem_tracing+set}" = set; then | |
4520 | withval="$with_mem_tracing" | |
4521 | if test "x$with_mem_tracing" = xyes; then | |
4522 | ac_cv_use_mem_tracing='USE_MEM_TRACING="1"' | |
4523 | else | |
4524 | ac_cv_use_mem_tracing='USE_MEM_TRACING="0"' | |
4525 | fi | |
4526 | else | |
4527 | ||
4528 | LINE=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache` | |
4529 | if test "x$LINE" != x ; then | |
4530 | eval "DEFAULT_$LINE" | |
4531 | fi | |
4532 | ac_cv_use_mem_tracing='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING | |
4533 | ||
4534 | fi | |
4535 | ||
4536 | eval "$ac_cv_use_mem_tracing" | |
4537 | echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp | |
4538 | if test "$USE_MEM_TRACING" = 1; then | |
4539 | echo "$ac_t""yes" 1>&6 | |
4540 | else | |
4541 | echo "$ac_t""no" 1>&6 | |
4542 | fi | |
4543 | ||
4544 | ||
4545 | ||
4546 | echo $ac_n "checking "for profile"""... $ac_c" 1>&6 | |
7c351dad | 4547 | echo "configure:4548: checking "for profile"" >&5 |
c801d85f KB |
4548 | # Check whether --with-profile or --without-profile was given. |
4549 | if test "${with_profile+set}" = set; then | |
4550 | withval="$with_profile" | |
4551 | if test "x$with_profile" = xyes; then | |
4552 | ac_cv_use_profile='USE_PROFILE="1"' | |
4553 | else | |
4554 | ac_cv_use_profile='USE_PROFILE="0"' | |
4555 | fi | |
4556 | else | |
4557 | ||
4558 | LINE=`grep "USE_PROFILE" ${OSTYPE}.system.cache` | |
4559 | if test "x$LINE" != x ; then | |
4560 | eval "DEFAULT_$LINE" | |
4561 | fi | |
4562 | ac_cv_use_profile='USE_PROFILE='$DEFAULT_USE_PROFILE | |
4563 | ||
4564 | fi | |
4565 | ||
4566 | eval "$ac_cv_use_profile" | |
4567 | echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp | |
4568 | if test "$USE_PROFILE" = 1; then | |
4569 | echo "$ac_t""yes" 1>&6 | |
4570 | else | |
4571 | echo "$ac_t""no" 1>&6 | |
4572 | fi | |
4573 | ||
4574 | ||
4575 | ||
4576 | ||
4577 | echo $ac_n "checking "for zlib"""... $ac_c" 1>&6 | |
7c351dad | 4578 | echo "configure:4579: checking "for zlib"" >&5 |
c801d85f KB |
4579 | # Check whether --with-zlib or --without-zlib was given. |
4580 | if test "${with_zlib+set}" = set; then | |
4581 | withval="$with_zlib" | |
4582 | if test "x$with_zlib" = xyes; then | |
4583 | ac_cv_use_zlib='USE_ZLIB="1"' | |
4584 | else | |
4585 | ac_cv_use_zlib='USE_ZLIB="0"' | |
4586 | fi | |
4587 | else | |
4588 | ||
4589 | LINE=`grep "USE_ZLIB" ${OSTYPE}.system.cache` | |
4590 | if test "x$LINE" != x ; then | |
4591 | eval "DEFAULT_$LINE" | |
4592 | fi | |
4593 | ac_cv_use_zlib='USE_ZLIB='$DEFAULT_USE_ZLIB | |
4594 | ||
4595 | fi | |
4596 | ||
4597 | eval "$ac_cv_use_zlib" | |
4598 | echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp | |
4599 | if test "$USE_ZLIB" = 1; then | |
4600 | echo "$ac_t""yes" 1>&6 | |
4601 | else | |
4602 | echo "$ac_t""no" 1>&6 | |
4603 | fi | |
4604 | ||
4605 | ||
4606 | ||
4607 | echo $ac_n "checking "for gdk_imlib"""... $ac_c" 1>&6 | |
7c351dad | 4608 | echo "configure:4609: checking "for gdk_imlib"" >&5 |
c801d85f KB |
4609 | # Check whether --with-gdk_imlib or --without-gdk_imlib was given. |
4610 | if test "${with_gdk_imlib+set}" = set; then | |
4611 | withval="$with_gdk_imlib" | |
4612 | if test "x$with_gdk_imlib" = xyes; then | |
4613 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB="1"' | |
4614 | else | |
4615 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB="0"' | |
4616 | fi | |
4617 | else | |
4618 | ||
4619 | LINE=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache` | |
4620 | if test "x$LINE" != x ; then | |
4621 | eval "DEFAULT_$LINE" | |
4622 | fi | |
4623 | ac_cv_use_gdk_imlib='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB | |
4624 | ||
4625 | fi | |
4626 | ||
4627 | eval "$ac_cv_use_gdk_imlib" | |
4628 | echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp | |
4629 | if test "$USE_GDK_IMLIB" = 1; then | |
4630 | echo "$ac_t""yes" 1>&6 | |
4631 | else | |
4632 | echo "$ac_t""no" 1>&6 | |
4633 | fi | |
4634 | ||
4635 | ||
4636 | ||
4637 | echo $ac_n "checking "for libpng"""... $ac_c" 1>&6 | |
7c351dad | 4638 | echo "configure:4639: checking "for libpng"" >&5 |
c801d85f KB |
4639 | # Check whether --with-libpng or --without-libpng was given. |
4640 | if test "${with_libpng+set}" = set; then | |
4641 | withval="$with_libpng" | |
4642 | if test "x$with_libpng" = xyes; then | |
4643 | ac_cv_use_libpng='USE_LIBPNG="1"' | |
4644 | else | |
4645 | ac_cv_use_libpng='USE_LIBPNG="0"' | |
4646 | fi | |
4647 | else | |
4648 | ||
4649 | LINE=`grep "USE_LIBPNG" ${OSTYPE}.system.cache` | |
4650 | if test "x$LINE" != x ; then | |
4651 | eval "DEFAULT_$LINE" | |
4652 | fi | |
4653 | ac_cv_use_libpng='USE_LIBPNG='$DEFAULT_USE_LIBPNG | |
4654 | ||
4655 | fi | |
4656 | ||
4657 | eval "$ac_cv_use_libpng" | |
4658 | echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp | |
4659 | if test "$USE_LIBPNG" = 1; then | |
4660 | echo "$ac_t""yes" 1>&6 | |
4661 | else | |
4662 | echo "$ac_t""no" 1>&6 | |
4663 | fi | |
4664 | ||
4665 | ||
4666 | ||
4667 | echo $ac_n "checking "for threads"""... $ac_c" 1>&6 | |
7c351dad | 4668 | echo "configure:4669: checking "for threads"" >&5 |
c801d85f KB |
4669 | # Check whether --with-threads or --without-threads was given. |
4670 | if test "${with_threads+set}" = set; then | |
4671 | withval="$with_threads" | |
4672 | if test "x$with_threads" = xyes; then | |
4673 | ac_cv_use_threads='USE_THREADS="1"' | |
4674 | else | |
4675 | ac_cv_use_threads='USE_THREADS="0"' | |
4676 | fi | |
4677 | else | |
4678 | ||
4679 | LINE=`grep "USE_THREADS" ${OSTYPE}.system.cache` | |
4680 | if test "x$LINE" != x ; then | |
4681 | eval "DEFAULT_$LINE" | |
4682 | fi | |
4683 | ac_cv_use_threads='USE_THREADS='$DEFAULT_USE_THREADS | |
4684 | ||
4685 | fi | |
4686 | ||
4687 | eval "$ac_cv_use_threads" | |
4688 | echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp | |
4689 | if test "$USE_THREADS" = 1; then | |
4690 | echo "$ac_t""yes" 1>&6 | |
4691 | else | |
4692 | echo "$ac_t""no" 1>&6 | |
4693 | fi | |
4694 | ||
4695 | ||
4696 | ||
4697 | echo $ac_n "checking "for opengl"""... $ac_c" 1>&6 | |
7c351dad | 4698 | echo "configure:4699: checking "for opengl"" >&5 |
c801d85f KB |
4699 | # Check whether --with-opengl or --without-opengl was given. |
4700 | if test "${with_opengl+set}" = set; then | |
4701 | withval="$with_opengl" | |
4702 | if test "x$with_opengl" = xyes; then | |
4703 | ac_cv_use_opengl='USE_OPENGL="1"' | |
4704 | else | |
4705 | ac_cv_use_opengl='USE_OPENGL="0"' | |
4706 | fi | |
4707 | else | |
4708 | ||
4709 | LINE=`grep "USE_OPENGL" ${OSTYPE}.system.cache` | |
4710 | if test "x$LINE" != x ; then | |
4711 | eval "DEFAULT_$LINE" | |
4712 | fi | |
4713 | ac_cv_use_opengl='USE_OPENGL='$DEFAULT_USE_OPENGL | |
4714 | ||
4715 | fi | |
4716 | ||
4717 | eval "$ac_cv_use_opengl" | |
4718 | echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp | |
4719 | if test "$USE_OPENGL" = 1; then | |
4720 | echo "$ac_t""yes" 1>&6 | |
4721 | else | |
4722 | echo "$ac_t""no" 1>&6 | |
4723 | fi | |
4724 | ||
4725 | ||
4726 | ||
4727 | ||
4728 | echo $ac_n "checking "for storable"""... $ac_c" 1>&6 | |
7c351dad | 4729 | echo "configure:4730: checking "for storable"" >&5 |
c801d85f KB |
4730 | # Check whether --with-storable or --without-storable was given. |
4731 | if test "${with_storable+set}" = set; then | |
4732 | withval="$with_storable" | |
4733 | if test "x$with_storable" = xyes; then | |
4734 | ac_cv_use_storable='USE_STORABLE_CLASSES="1"' | |
4735 | else | |
4736 | ac_cv_use_storable='USE_STORABLE_CLASSES="0"' | |
4737 | fi | |
4738 | else | |
4739 | ||
4740 | LINE=`grep "USE_STORABLE_CLASSES" ${OSTYPE}.system.cache` | |
4741 | if test "x$LINE" != x ; then | |
4742 | eval "DEFAULT_$LINE" | |
4743 | fi | |
4744 | ac_cv_use_storable='USE_STORABLE_CLASSES='$DEFAULT_USE_STORABLE_CLASSES | |
4745 | ||
4746 | fi | |
4747 | ||
4748 | eval "$ac_cv_use_storable" | |
4749 | echo $ac_cv_use_storable >> ${OSTYPE}.system.cache.tmp | |
4750 | if test "$USE_STORABLE_CLASSES" = 1; then | |
4751 | echo "$ac_t""yes" 1>&6 | |
4752 | else | |
4753 | echo "$ac_t""no" 1>&6 | |
4754 | fi | |
4755 | ||
4756 | ||
4757 | ||
4758 | echo $ac_n "checking "for autotrans"""... $ac_c" 1>&6 | |
7c351dad | 4759 | echo "configure:4760: checking "for autotrans"" >&5 |
c801d85f KB |
4760 | # Check whether --with-autotrans or --without-autotrans was given. |
4761 | if test "${with_autotrans+set}" = set; then | |
4762 | withval="$with_autotrans" | |
4763 | if test "x$with_autotrans" = xyes; then | |
4764 | ac_cv_use_autotrans='USE_AUTOTRANS="1"' | |
4765 | else | |
4766 | ac_cv_use_autotrans='USE_AUTOTRANS="0"' | |
4767 | fi | |
4768 | else | |
4769 | ||
4770 | LINE=`grep "USE_AUTOTRANS" ${OSTYPE}.system.cache` | |
4771 | if test "x$LINE" != x ; then | |
4772 | eval "DEFAULT_$LINE" | |
4773 | fi | |
4774 | ac_cv_use_autotrans='USE_AUTOTRANS='$DEFAULT_USE_AUTOTRANS | |
4775 | ||
4776 | fi | |
4777 | ||
4778 | eval "$ac_cv_use_autotrans" | |
4779 | echo $ac_cv_use_autotrans >> ${OSTYPE}.system.cache.tmp | |
4780 | if test "$USE_AUTOTRANS" = 1; then | |
4781 | echo "$ac_t""yes" 1>&6 | |
4782 | else | |
4783 | echo "$ac_t""no" 1>&6 | |
4784 | fi | |
4785 | ||
4786 | ||
4787 | ||
4788 | echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6 | |
7c351dad | 4789 | echo "configure:4790: checking "for afmfonts"" >&5 |
c801d85f KB |
4790 | # Check whether --with-afmfonts or --without-afmfonts was given. |
4791 | if test "${with_afmfonts+set}" = set; then | |
4792 | withval="$with_afmfonts" | |
4793 | if test "x$with_afmfonts" = xyes; then | |
4794 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="1"' | |
4795 | else | |
4796 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT="0"' | |
4797 | fi | |
4798 | else | |
4799 | ||
4800 | LINE=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache` | |
4801 | if test "x$LINE" != x ; then | |
4802 | eval "DEFAULT_$LINE" | |
4803 | fi | |
4804 | ac_cv_use_afmfonts='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT | |
4805 | ||
4806 | fi | |
4807 | ||
4808 | eval "$ac_cv_use_afmfonts" | |
4809 | echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp | |
4810 | if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then | |
4811 | echo "$ac_t""yes" 1>&6 | |
4812 | else | |
4813 | echo "$ac_t""no" 1>&6 | |
4814 | fi | |
4815 | ||
4816 | ||
4817 | ||
4818 | echo $ac_n "checking "for normalized"""... $ac_c" 1>&6 | |
7c351dad | 4819 | echo "configure:4820: checking "for normalized"" >&5 |
c801d85f KB |
4820 | # Check whether --with-normalized or --without-normalized was given. |
4821 | if test "${with_normalized+set}" = set; then | |
4822 | withval="$with_normalized" | |
4823 | if test "x$with_normalized" = xyes; then | |
4824 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"' | |
4825 | else | |
4826 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"' | |
4827 | fi | |
4828 | else | |
4829 | ||
4830 | LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache` | |
4831 | if test "x$LINE" != x ; then | |
4832 | eval "DEFAULT_$LINE" | |
4833 | fi | |
4834 | ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS | |
4835 | ||
4836 | fi | |
4837 | ||
4838 | eval "$ac_cv_use_normalized" | |
4839 | echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp | |
4840 | if test "$WX_NORMALIZED_PS_FONTS" = 1; then | |
4841 | echo "$ac_t""yes" 1>&6 | |
4842 | else | |
4843 | echo "$ac_t""no" 1>&6 | |
4844 | fi | |
4845 | ||
4846 | ||
4847 | ||
4848 | echo $ac_n "checking "for RPC"""... $ac_c" 1>&6 | |
7c351dad | 4849 | echo "configure:4850: checking "for RPC"" >&5 |
c801d85f KB |
4850 | # Check whether --with-rpc or --without-rpc was given. |
4851 | if test "${with_rpc+set}" = set; then | |
4852 | withval="$with_rpc" | |
4853 | if test "x$with_rpc" = xyes; then | |
4854 | ac_cv_use_rpc='USE_RPC="1"' | |
4855 | else | |
4856 | ac_cv_use_rpc='USE_RPC="0"' | |
4857 | fi | |
4858 | else | |
4859 | ||
4860 | LINE=`grep "USE_RPC" ${OSTYPE}.system.cache` | |
4861 | if test "x$LINE" != x ; then | |
4862 | eval "DEFAULT_$LINE" | |
4863 | fi | |
4864 | ac_cv_use_rpc='USE_RPC='$DEFAULT_USE_RPC | |
4865 | ||
4866 | fi | |
4867 | ||
4868 | eval "$ac_cv_use_rpc" | |
4869 | echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp | |
4870 | if test "$USE_RPC" = 1; then | |
4871 | echo "$ac_t""yes" 1>&6 | |
4872 | else | |
4873 | echo "$ac_t""no" 1>&6 | |
4874 | fi | |
4875 | ||
4876 | ||
4877 | ||
4878 | echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6 | |
7c351dad | 4879 | echo "configure:4880: checking "for wxresources"" >&5 |
c801d85f KB |
4880 | # Check whether --with-wxresources or --without-wxresources was given. |
4881 | if test "${with_wxresources+set}" = set; then | |
4882 | withval="$with_wxresources" | |
4883 | if test "x$with_wxresources" = xyes; then | |
4884 | ac_cv_use_wxresources='USE_WX_RESOURCES="1"' | |
4885 | else | |
4886 | ac_cv_use_wxresources='USE_WX_RESOURCES="0"' | |
4887 | fi | |
4888 | else | |
4889 | ||
4890 | LINE=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache` | |
4891 | if test "x$LINE" != x ; then | |
4892 | eval "DEFAULT_$LINE" | |
4893 | fi | |
4894 | ac_cv_use_wxresources='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES | |
4895 | ||
4896 | fi | |
4897 | ||
4898 | eval "$ac_cv_use_wxresources" | |
4899 | echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp | |
4900 | if test "$USE_WX_RESOURCES" = 1; then | |
4901 | echo "$ac_t""yes" 1>&6 | |
4902 | else | |
4903 | echo "$ac_t""no" 1>&6 | |
4904 | fi | |
4905 | ||
4906 | ||
4907 | ||
4908 | echo $ac_n "checking "for prologio"""... $ac_c" 1>&6 | |
7c351dad | 4909 | echo "configure:4910: checking "for prologio"" >&5 |
c801d85f KB |
4910 | # Check whether --with-prologio or --without-prologio was given. |
4911 | if test "${with_prologio+set}" = set; then | |
4912 | withval="$with_prologio" | |
4913 | if test "x$with_prologio" = xyes; then | |
4914 | ac_cv_use_prologio='USE_PROLOGIO="1"' | |
4915 | else | |
4916 | ac_cv_use_prologio='USE_PROLOGIO="0"' | |
4917 | fi | |
4918 | else | |
4919 | ||
4920 | LINE=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache` | |
4921 | if test "x$LINE" != x ; then | |
4922 | eval "DEFAULT_$LINE" | |
4923 | fi | |
4924 | ac_cv_use_prologio='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO | |
4925 | ||
4926 | fi | |
4927 | ||
4928 | eval "$ac_cv_use_prologio" | |
4929 | echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp | |
4930 | if test "$USE_PROLOGIO" = 1; then | |
4931 | echo "$ac_t""yes" 1>&6 | |
4932 | else | |
4933 | echo "$ac_t""no" 1>&6 | |
4934 | fi | |
4935 | ||
4936 | ||
4937 | ||
4938 | echo $ac_n "checking "for postscript"""... $ac_c" 1>&6 | |
7c351dad | 4939 | echo "configure:4940: checking "for postscript"" >&5 |
c801d85f KB |
4940 | # Check whether --with-postscript or --without-postscript was given. |
4941 | if test "${with_postscript+set}" = set; then | |
4942 | withval="$with_postscript" | |
4943 | if test "x$with_postscript" = xyes; then | |
4944 | ac_cv_use_postscript='USE_POSTSCRIPT="1"' | |
4945 | else | |
4946 | ac_cv_use_postscript='USE_POSTSCRIPT="0"' | |
4947 | fi | |
4948 | else | |
4949 | ||
4950 | LINE=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache` | |
4951 | if test "x$LINE" != x ; then | |
4952 | eval "DEFAULT_$LINE" | |
4953 | fi | |
4954 | ac_cv_use_postscript='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT | |
4955 | ||
4956 | fi | |
4957 | ||
4958 | eval "$ac_cv_use_postscript" | |
4959 | echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp | |
4960 | if test "$USE_POSTSCRIPT" = 1; then | |
4961 | echo "$ac_t""yes" 1>&6 | |
4962 | else | |
4963 | echo "$ac_t""no" 1>&6 | |
4964 | fi | |
4965 | ||
4966 | ||
4967 | ||
53b28675 | 4968 | echo $ac_n "checking "for wxconfig"""... $ac_c" 1>&6 |
7c351dad | 4969 | echo "configure:4970: checking "for wxconfig"" >&5 |
53b28675 RR |
4970 | # Check whether --with-wxconfig or --without-wxconfig was given. |
4971 | if test "${with_wxconfig+set}" = set; then | |
4972 | withval="$with_wxconfig" | |
4973 | if test "x$with_wxconfig" = xyes; then | |
4974 | ac_cv_use_wxconfig='USE_WXCONFIG="1"' | |
4975 | else | |
4976 | ac_cv_use_wxconfig='USE_WXCONFIG="0"' | |
4977 | fi | |
4978 | else | |
4979 | ||
4980 | LINE=`grep "USE_WXCONFIG" ${OSTYPE}.system.cache` | |
4981 | if test "x$LINE" != x ; then | |
4982 | eval "DEFAULT_$LINE" | |
4983 | fi | |
4984 | ac_cv_use_wxconfig='USE_WXCONFIG='$DEFAULT_USE_WXCONFIG | |
4985 | ||
4986 | fi | |
4987 | ||
4988 | eval "$ac_cv_use_wxconfig" | |
4989 | echo $ac_cv_use_wxconfig >> ${OSTYPE}.system.cache.tmp | |
4990 | if test "$USE_WXCONFIG" = 1; then | |
4991 | echo "$ac_t""yes" 1>&6 | |
4992 | else | |
4993 | echo "$ac_t""no" 1>&6 | |
4994 | fi | |
4995 | ||
4996 | ||
4997 | ||
c801d85f | 4998 | echo $ac_n "checking "for metafile"""... $ac_c" 1>&6 |
7c351dad | 4999 | echo "configure:5000: checking "for metafile"" >&5 |
c801d85f KB |
5000 | # Check whether --with-metafile or --without-metafile was given. |
5001 | if test "${with_metafile+set}" = set; then | |
5002 | withval="$with_metafile" | |
5003 | if test "x$with_metafile" = xyes; then | |
5004 | ac_cv_use_metafile='USE_METAFILE="1"' | |
5005 | else | |
5006 | ac_cv_use_metafile='USE_METAFILE="0"' | |
5007 | fi | |
5008 | else | |
5009 | ||
5010 | LINE=`grep "USE_METAFILE" ${OSTYPE}.system.cache` | |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | fi | |
5014 | ac_cv_use_metafile='USE_METAFILE='$DEFAULT_USE_METAFILE | |
5015 | ||
5016 | fi | |
5017 | ||
5018 | eval "$ac_cv_use_metafile" | |
5019 | echo $ac_cv_use_metafile >> ${OSTYPE}.system.cache.tmp | |
5020 | if test "$USE_METAFILE" = 1; then | |
5021 | echo "$ac_t""yes" 1>&6 | |
5022 | else | |
5023 | echo "$ac_t""no" 1>&6 | |
5024 | fi | |
5025 | ||
5026 | ||
5027 | ||
5028 | echo $ac_n "checking "for form"""... $ac_c" 1>&6 | |
7c351dad | 5029 | echo "configure:5030: checking "for form"" >&5 |
c801d85f KB |
5030 | # Check whether --with-form or --without-form was given. |
5031 | if test "${with_form+set}" = set; then | |
5032 | withval="$with_form" | |
5033 | if test "x$with_form" = xyes; then | |
5034 | ac_cv_use_form='USE_FORM="1"' | |
5035 | else | |
5036 | ac_cv_use_form='USE_FORM="0"' | |
5037 | fi | |
5038 | else | |
5039 | ||
5040 | LINE=`grep "USE_FORM" ${OSTYPE}.system.cache` | |
5041 | if test "x$LINE" != x ; then | |
5042 | eval "DEFAULT_$LINE" | |
5043 | fi | |
5044 | ac_cv_use_form='USE_FORM='$DEFAULT_USE_FORM | |
5045 | ||
5046 | fi | |
5047 | ||
5048 | eval "$ac_cv_use_form" | |
5049 | echo $ac_cv_use_form >> ${OSTYPE}.system.cache.tmp | |
5050 | if test "$USE_FORM" = 1; then | |
5051 | echo "$ac_t""yes" 1>&6 | |
5052 | else | |
5053 | echo "$ac_t""no" 1>&6 | |
5054 | fi | |
5055 | ||
5056 | ||
5057 | ||
5058 | echo $ac_n "checking "for help"""... $ac_c" 1>&6 | |
7c351dad | 5059 | echo "configure:5060: checking "for help"" >&5 |
c801d85f KB |
5060 | # Check whether --with-help or --without-help was given. |
5061 | if test "${with_help+set}" = set; then | |
5062 | withval="$with_help" | |
5063 | if test "x$with_help" = xyes; then | |
5064 | ac_cv_use_help='USE_HELP="1"' | |
5065 | else | |
5066 | ac_cv_use_help='USE_HELP="0"' | |
5067 | fi | |
5068 | else | |
5069 | ||
5070 | LINE=`grep "USE_HELP" ${OSTYPE}.system.cache` | |
5071 | if test "x$LINE" != x ; then | |
5072 | eval "DEFAULT_$LINE" | |
5073 | fi | |
5074 | ac_cv_use_help='USE_HELP='$DEFAULT_USE_HELP | |
5075 | ||
5076 | fi | |
5077 | ||
5078 | eval "$ac_cv_use_help" | |
5079 | echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp | |
5080 | if test "$USE_HELP" = 1; then | |
5081 | echo "$ac_t""yes" 1>&6 | |
5082 | else | |
5083 | echo "$ac_t""no" 1>&6 | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | ||
5088 | echo $ac_n "checking "for IPC"""... $ac_c" 1>&6 | |
7c351dad | 5089 | echo "configure:5090: checking "for IPC"" >&5 |
c801d85f KB |
5090 | # Check whether --with-ipc or --without-ipc was given. |
5091 | if test "${with_ipc+set}" = set; then | |
5092 | withval="$with_ipc" | |
5093 | if test "x$with_ipc" = xyes; then | |
5094 | ac_cv_use_ipc='USE_IPC="1"' | |
5095 | else | |
5096 | ac_cv_use_ipc='USE_IPC="0"' | |
5097 | fi | |
5098 | else | |
5099 | ||
5100 | LINE=`grep "USE_IPC" ${OSTYPE}.system.cache` | |
5101 | if test "x$LINE" != x ; then | |
5102 | eval "DEFAULT_$LINE" | |
5103 | fi | |
5104 | ac_cv_use_ipc='USE_IPC='$DEFAULT_USE_IPC | |
5105 | ||
5106 | fi | |
5107 | ||
5108 | eval "$ac_cv_use_ipc" | |
5109 | echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp | |
5110 | if test "$USE_IPC" = 1; then | |
5111 | echo "$ac_t""yes" 1>&6 | |
5112 | else | |
5113 | echo "$ac_t""no" 1>&6 | |
5114 | fi | |
5115 | ||
5116 | ||
5117 | ||
5118 | echo $ac_n "checking "for enhanced dialog"""... $ac_c" 1>&6 | |
7c351dad | 5119 | echo "configure:5120: checking "for enhanced dialog"" >&5 |
c801d85f KB |
5120 | # Check whether --with-enhanceddialog or --without-enhanceddialog was given. |
5121 | if test "${with_enhanceddialog+set}" = set; then | |
5122 | withval="$with_enhanceddialog" | |
5123 | if test "x$with_enhanceddialog" = xyes; then | |
5124 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="1"' | |
5125 | else | |
5126 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG="0"' | |
5127 | fi | |
5128 | else | |
5129 | ||
5130 | LINE=`grep "USE_ENHANCED_DIALOG" ${OSTYPE}.system.cache` | |
5131 | if test "x$LINE" != x ; then | |
5132 | eval "DEFAULT_$LINE" | |
5133 | fi | |
5134 | ac_cv_use_enhanceddialog='USE_ENHANCED_DIALOG='$DEFAULT_USE_ENHANCED_DIALOG | |
5135 | ||
5136 | fi | |
5137 | ||
5138 | eval "$ac_cv_use_enhanceddialog" | |
5139 | echo $ac_cv_use_enhanceddialog >> ${OSTYPE}.system.cache.tmp | |
5140 | if test "$USE_ENHANCED_DIALOG" = 1; then | |
5141 | echo "$ac_t""yes" 1>&6 | |
5142 | else | |
5143 | echo "$ac_t""no" 1>&6 | |
5144 | fi | |
5145 | ||
5146 | ||
5147 | ||
5148 | echo $ac_n "checking "for resources"""... $ac_c" 1>&6 | |
7c351dad | 5149 | echo "configure:5150: checking "for resources"" >&5 |
c801d85f KB |
5150 | # Check whether --with-resources or --without-resources was given. |
5151 | if test "${with_resources+set}" = set; then | |
5152 | withval="$with_resources" | |
5153 | if test "x$with_resources" = xyes; then | |
5154 | ac_cv_use_resources='USE_RESOURCES="1"' | |
5155 | else | |
5156 | ac_cv_use_resources='USE_RESOURCES="0"' | |
5157 | fi | |
5158 | else | |
5159 | ||
5160 | LINE=`grep "USE_RESOURCES" ${OSTYPE}.system.cache` | |
5161 | if test "x$LINE" != x ; then | |
5162 | eval "DEFAULT_$LINE" | |
5163 | fi | |
5164 | ac_cv_use_resources='USE_RESOURCES='$DEFAULT_USE_RESOURCES | |
5165 | ||
5166 | fi | |
5167 | ||
5168 | eval "$ac_cv_use_resources" | |
5169 | echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp | |
5170 | if test "$USE_RESOURCES" = 1; then | |
5171 | echo "$ac_t""yes" 1>&6 | |
5172 | else | |
5173 | echo "$ac_t""no" 1>&6 | |
5174 | fi | |
5175 | ||
5176 | ||
5177 | ||
5178 | echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6 | |
7c351dad | 5179 | echo "configure:5180: checking "for clipboard"" >&5 |
c801d85f KB |
5180 | # Check whether --with-clipboard or --without-clipboard was given. |
5181 | if test "${with_clipboard+set}" = set; then | |
5182 | withval="$with_clipboard" | |
5183 | if test "x$with_clipboard" = xyes; then | |
5184 | ac_cv_use_clipboard='USE_CLIPBOARD="1"' | |
5185 | else | |
5186 | ac_cv_use_clipboard='USE_CLIPBOARD="0"' | |
5187 | fi | |
5188 | else | |
5189 | ||
5190 | LINE=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache` | |
5191 | if test "x$LINE" != x ; then | |
5192 | eval "DEFAULT_$LINE" | |
5193 | fi | |
5194 | ac_cv_use_clipboard='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD | |
5195 | ||
5196 | fi | |
5197 | ||
5198 | eval "$ac_cv_use_clipboard" | |
5199 | echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp | |
5200 | if test "$USE_CLIPBOARD" = 1; then | |
5201 | echo "$ac_t""yes" 1>&6 | |
5202 | else | |
5203 | echo "$ac_t""no" 1>&6 | |
5204 | fi | |
5205 | ||
5206 | ||
5207 | ||
5208 | echo $ac_n "checking "for timedate"""... $ac_c" 1>&6 | |
7c351dad | 5209 | echo "configure:5210: checking "for timedate"" >&5 |
c801d85f KB |
5210 | # Check whether --with-timedate or --without-timedate was given. |
5211 | if test "${with_timedate+set}" = set; then | |
5212 | withval="$with_timedate" | |
5213 | if test "x$with_timedate" = xyes; then | |
5214 | ac_cv_use_timedate='USE_TIMEDATE="1"' | |
5215 | else | |
5216 | ac_cv_use_timedate='USE_TIMEDATE="0"' | |
5217 | fi | |
5218 | else | |
5219 | ||
5220 | LINE=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache` | |
5221 | if test "x$LINE" != x ; then | |
5222 | eval "DEFAULT_$LINE" | |
5223 | fi | |
5224 | ac_cv_use_timedate='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE | |
5225 | ||
5226 | fi | |
5227 | ||
5228 | eval "$ac_cv_use_timedate" | |
5229 | echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp | |
5230 | if test "$USE_TIMEDATE" = 1; then | |
5231 | echo "$ac_t""yes" 1>&6 | |
5232 | else | |
5233 | echo "$ac_t""no" 1>&6 | |
5234 | fi | |
5235 | ||
5236 | ||
5237 | ||
5238 | echo $ac_n "checking "for fraction"""... $ac_c" 1>&6 | |
7c351dad | 5239 | echo "configure:5240: checking "for fraction"" >&5 |
c801d85f KB |
5240 | # Check whether --with-fraction or --without-fraction was given. |
5241 | if test "${with_fraction+set}" = set; then | |
5242 | withval="$with_fraction" | |
5243 | if test "x$with_fraction" = xyes; then | |
5244 | ac_cv_use_fraction='USE_FRACTION="1"' | |
5245 | else | |
5246 | ac_cv_use_fraction='USE_FRACTION="0"' | |
5247 | fi | |
5248 | else | |
5249 | ||
5250 | LINE=`grep "USE_FRACTION" ${OSTYPE}.system.cache` | |
5251 | if test "x$LINE" != x ; then | |
5252 | eval "DEFAULT_$LINE" | |
5253 | fi | |
5254 | ac_cv_use_fraction='USE_FRACTION='$DEFAULT_USE_FRACTION | |
5255 | ||
5256 | fi | |
5257 | ||
5258 | eval "$ac_cv_use_fraction" | |
5259 | echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp | |
5260 | if test "$USE_FRACTION" = 1; then | |
5261 | echo "$ac_t""yes" 1>&6 | |
5262 | else | |
5263 | echo "$ac_t""no" 1>&6 | |
5264 | fi | |
5265 | ||
5266 | ||
5267 | ||
5268 | echo $ac_n "checking "for constrains"""... $ac_c" 1>&6 | |
7c351dad | 5269 | echo "configure:5270: checking "for constrains"" >&5 |
c801d85f KB |
5270 | # Check whether --with-constraints or --without-constraints was given. |
5271 | if test "${with_constraints+set}" = set; then | |
5272 | withval="$with_constraints" | |
5273 | if test "x$with_constraints" = xyes; then | |
5274 | ac_cv_use_constraints='USE_CONSTRAINTS="1"' | |
5275 | else | |
5276 | ac_cv_use_constraints='USE_CONSTRAINTS="0"' | |
5277 | fi | |
5278 | else | |
5279 | ||
5280 | LINE=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache` | |
5281 | if test "x$LINE" != x ; then | |
5282 | eval "DEFAULT_$LINE" | |
5283 | fi | |
5284 | ac_cv_use_constraints='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS | |
5285 | ||
5286 | fi | |
5287 | ||
5288 | eval "$ac_cv_use_constraints" | |
5289 | echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp | |
5290 | if test "$USE_CONSTRAINTS" = 1; then | |
5291 | echo "$ac_t""yes" 1>&6 | |
5292 | else | |
5293 | echo "$ac_t""no" 1>&6 | |
5294 | fi | |
5295 | ||
5296 | ||
5297 | ||
5298 | echo $ac_n "checking "for toolbar"""... $ac_c" 1>&6 | |
7c351dad | 5299 | echo "configure:5300: checking "for toolbar"" >&5 |
c801d85f KB |
5300 | # Check whether --with-toolbar or --without-toolbar was given. |
5301 | if test "${with_toolbar+set}" = set; then | |
5302 | withval="$with_toolbar" | |
5303 | if test "x$with_toolbar" = xyes; then | |
5304 | ac_cv_use_toolbar='USE_TOOLBAR="1"' | |
5305 | else | |
5306 | ac_cv_use_toolbar='USE_TOOLBAR="0"' | |
5307 | fi | |
5308 | else | |
5309 | ||
5310 | LINE=`grep "USE_TOOLBAR" ${OSTYPE}.system.cache` | |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | fi | |
5314 | ac_cv_use_toolbar='USE_TOOLBAR='$DEFAULT_USE_TOOLBAR | |
5315 | ||
5316 | fi | |
5317 | ||
5318 | eval "$ac_cv_use_toolbar" | |
5319 | echo $ac_cv_use_toolbar >> ${OSTYPE}.system.cache.tmp | |
5320 | if test "$USE_TOOLBAR" = 1; then | |
5321 | echo "$ac_t""yes" 1>&6 | |
5322 | else | |
5323 | echo "$ac_t""no" 1>&6 | |
5324 | fi | |
5325 | ||
5326 | ||
5327 | ||
5328 | echo $ac_n "checking "for gauge"""... $ac_c" 1>&6 | |
7c351dad | 5329 | echo "configure:5330: checking "for gauge"" >&5 |
c801d85f KB |
5330 | # Check whether --with-gauge or --without-gauge was given. |
5331 | if test "${with_gauge+set}" = set; then | |
5332 | withval="$with_gauge" | |
5333 | if test "x$with_gauge" = xyes; then | |
5334 | ac_cv_use_gauge='USE_GAUGE="1"' | |
5335 | else | |
5336 | ac_cv_use_gauge='USE_GAUGE="0"' | |
5337 | fi | |
5338 | else | |
5339 | ||
5340 | LINE=`grep "USE_GAUGE" ${OSTYPE}.system.cache` | |
5341 | if test "x$LINE" != x ; then | |
5342 | eval "DEFAULT_$LINE" | |
5343 | fi | |
5344 | ac_cv_use_gauge='USE_GAUGE='$DEFAULT_USE_GAUGE | |
5345 | ||
5346 | fi | |
5347 | ||
5348 | eval "$ac_cv_use_gauge" | |
5349 | echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp | |
5350 | if test "$USE_GAUGE" = 1; then | |
5351 | echo "$ac_t""yes" 1>&6 | |
5352 | else | |
5353 | echo "$ac_t""no" 1>&6 | |
5354 | fi | |
5355 | ||
5356 | ||
5357 | ||
5358 | echo $ac_n "checking "for vllist"""... $ac_c" 1>&6 | |
7c351dad | 5359 | echo "configure:5360: checking "for vllist"" >&5 |
c801d85f KB |
5360 | # Check whether --with-vllist or --without-vllist was given. |
5361 | if test "${with_vllist+set}" = set; then | |
5362 | withval="$with_vllist" | |
5363 | if test "x$with_vllist" = xyes; then | |
5364 | ac_cv_use_vllist='USE_VLBOX="1"' | |
5365 | else | |
5366 | ac_cv_use_vllist='USE_VLBOX="0"' | |
5367 | fi | |
5368 | else | |
5369 | ||
5370 | LINE=`grep "USE_VLBOX" ${OSTYPE}.system.cache` | |
5371 | if test "x$LINE" != x ; then | |
5372 | eval "DEFAULT_$LINE" | |
5373 | fi | |
5374 | ac_cv_use_vllist='USE_VLBOX='$DEFAULT_USE_VLBOX | |
5375 | ||
5376 | fi | |
5377 | ||
5378 | eval "$ac_cv_use_vllist" | |
5379 | echo $ac_cv_use_vllist >> ${OSTYPE}.system.cache.tmp | |
5380 | if test "$USE_VLBOX" = 1; then | |
5381 | echo "$ac_t""yes" 1>&6 | |
5382 | else | |
5383 | echo "$ac_t""no" 1>&6 | |
5384 | fi | |
5385 | ||
5386 | ||
5387 | ||
5388 | echo $ac_n "checking "for scrollbar"""... $ac_c" 1>&6 | |
7c351dad | 5389 | echo "configure:5390: checking "for scrollbar"" >&5 |
c801d85f KB |
5390 | # Check whether --with-scrollbar or --without-scrollbar was given. |
5391 | if test "${with_scrollbar+set}" = set; then | |
5392 | withval="$with_scrollbar" | |
5393 | if test "x$with_scrollbar" = xyes; then | |
5394 | ac_cv_use_scrollbar='USE_SCROLLBAR="1"' | |
5395 | else | |
5396 | ac_cv_use_scrollbar='USE_SCROLLBAR="0"' | |
5397 | fi | |
5398 | else | |
5399 | ||
5400 | LINE=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache` | |
5401 | if test "x$LINE" != x ; then | |
5402 | eval "DEFAULT_$LINE" | |
5403 | fi | |
5404 | ac_cv_use_scrollbar='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR | |
5405 | ||
5406 | fi | |
5407 | ||
5408 | eval "$ac_cv_use_scrollbar" | |
5409 | echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp | |
5410 | if test "$USE_SCROLLBAR" = 1; then | |
5411 | echo "$ac_t""yes" 1>&6 | |
5412 | else | |
5413 | echo "$ac_t""no" 1>&6 | |
5414 | fi | |
5415 | ||
5416 | ||
5417 | ||
5418 | echo $ac_n "checking "for docview"""... $ac_c" 1>&6 | |
7c351dad | 5419 | echo "configure:5420: checking "for docview"" >&5 |
c801d85f KB |
5420 | # Check whether --with-docview or --without-docview was given. |
5421 | if test "${with_docview+set}" = set; then | |
5422 | withval="$with_docview" | |
5423 | if test "x$with_docview" = xyes; then | |
5424 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="1"' | |
5425 | else | |
5426 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE="0"' | |
5427 | fi | |
5428 | else | |
5429 | ||
5430 | LINE=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache` | |
5431 | if test "x$LINE" != x ; then | |
5432 | eval "DEFAULT_$LINE" | |
5433 | fi | |
5434 | ac_cv_use_docview='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE | |
5435 | ||
5436 | fi | |
5437 | ||
5438 | eval "$ac_cv_use_docview" | |
5439 | echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp | |
5440 | if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then | |
5441 | echo "$ac_t""yes" 1>&6 | |
5442 | else | |
5443 | echo "$ac_t""no" 1>&6 | |
5444 | fi | |
5445 | ||
5446 | ||
5447 | ||
5448 | echo $ac_n "checking "for printarch"""... $ac_c" 1>&6 | |
7c351dad | 5449 | echo "configure:5450: checking "for printarch"" >&5 |
c801d85f KB |
5450 | # Check whether --with-printarch or --without-printarch was given. |
5451 | if test "${with_printarch+set}" = set; then | |
5452 | withval="$with_printarch" | |
5453 | if test "x$with_printarch" = xyes; then | |
5454 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="1"' | |
5455 | else | |
5456 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE="0"' | |
5457 | fi | |
5458 | else | |
5459 | ||
5460 | LINE=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache` | |
5461 | if test "x$LINE" != x ; then | |
5462 | eval "DEFAULT_$LINE" | |
5463 | fi | |
5464 | ac_cv_use_printarch='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE | |
5465 | ||
5466 | fi | |
5467 | ||
5468 | eval "$ac_cv_use_printarch" | |
5469 | echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp | |
5470 | if test "$USE_PRINTING_ARCHITECTURE" = 1; then | |
5471 | echo "$ac_t""yes" 1>&6 | |
5472 | else | |
5473 | echo "$ac_t""no" 1>&6 | |
5474 | fi | |
5475 | ||
5476 | ||
5477 | ||
5478 | echo $ac_n "checking "for typetree"""... $ac_c" 1>&6 | |
7c351dad | 5479 | echo "configure:5480: checking "for typetree"" >&5 |
c801d85f KB |
5480 | # Check whether --with-typetree or --without-typetree was given. |
5481 | if test "${with_typetree+set}" = set; then | |
5482 | withval="$with_typetree" | |
5483 | if test "x$with_typetree" = xyes; then | |
5484 | ac_cv_use_typetree='USE_TYPETREE="1"' | |
5485 | else | |
5486 | ac_cv_use_typetree='USE_TYPETREE="0"' | |
5487 | fi | |
5488 | else | |
5489 | ||
5490 | LINE=`grep "USE_TYPETREE" ${OSTYPE}.system.cache` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | fi | |
5494 | ac_cv_use_typetree='USE_TYPETREE='$DEFAULT_USE_TYPETREE | |
5495 | ||
5496 | fi | |
5497 | ||
5498 | eval "$ac_cv_use_typetree" | |
5499 | echo $ac_cv_use_typetree >> ${OSTYPE}.system.cache.tmp | |
5500 | if test "$USE_TYPETREE" = 1; then | |
5501 | echo "$ac_t""yes" 1>&6 | |
5502 | else | |
5503 | echo "$ac_t""no" 1>&6 | |
5504 | fi | |
5505 | ||
5506 | ||
5507 | ||
5508 | echo $ac_n "checking "for wxgraph"""... $ac_c" 1>&6 | |
7c351dad | 5509 | echo "configure:5510: checking "for wxgraph"" >&5 |
c801d85f KB |
5510 | # Check whether --with-wxgraph or --without-wxgraph was given. |
5511 | if test "${with_wxgraph+set}" = set; then | |
5512 | withval="$with_wxgraph" | |
5513 | if test "x$with_wxgraph" = xyes; then | |
5514 | ac_cv_use_wxgraph='USE_WXGRAPH="1"' | |
5515 | else | |
5516 | ac_cv_use_wxgraph='USE_WXGRAPH="0"' | |
5517 | fi | |
5518 | else | |
5519 | ||
5520 | LINE=`grep "USE_WXGRAPH" ${OSTYPE}.system.cache` | |
5521 | if test "x$LINE" != x ; then | |
5522 | eval "DEFAULT_$LINE" | |
5523 | fi | |
5524 | ac_cv_use_wxgraph='USE_WXGRAPH='$DEFAULT_USE_WXGRAPH | |
5525 | ||
5526 | fi | |
5527 | ||
5528 | eval "$ac_cv_use_wxgraph" | |
5529 | echo $ac_cv_use_wxgraph >> ${OSTYPE}.system.cache.tmp | |
5530 | if test "$USE_WXGRAPH" = 1; then | |
5531 | echo "$ac_t""yes" 1>&6 | |
5532 | else | |
5533 | echo "$ac_t""no" 1>&6 | |
5534 | fi | |
5535 | ||
5536 | ||
5537 | ||
5538 | echo $ac_n "checking "for wxtree"""... $ac_c" 1>&6 | |
7c351dad | 5539 | echo "configure:5540: checking "for wxtree"" >&5 |
c801d85f KB |
5540 | # Check whether --with-wxtree or --without-wxtree was given. |
5541 | if test "${with_wxtree+set}" = set; then | |
5542 | withval="$with_wxtree" | |
5543 | if test "x$with_wxtree" = xyes; then | |
5544 | ac_cv_use_wxtree='USE_WXTREE="1"' | |
5545 | else | |
5546 | ac_cv_use_wxtree='USE_WXTREE="0"' | |
5547 | fi | |
5548 | else | |
5549 | ||
5550 | LINE=`grep "USE_WXTREE" ${OSTYPE}.system.cache` | |
5551 | if test "x$LINE" != x ; then | |
5552 | eval "DEFAULT_$LINE" | |
5553 | fi | |
5554 | ac_cv_use_wxtree='USE_WXTREE='$DEFAULT_USE_WXTREE | |
5555 | ||
5556 | fi | |
5557 | ||
5558 | eval "$ac_cv_use_wxtree" | |
5559 | echo $ac_cv_use_wxtree >> ${OSTYPE}.system.cache.tmp | |
5560 | if test "$USE_WXTREE" = 1; then | |
5561 | echo "$ac_t""yes" 1>&6 | |
5562 | else | |
5563 | echo "$ac_t""no" 1>&6 | |
5564 | fi | |
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ZLIB=NONE | |
5570 | if test "$USE_ZLIB" = 1 ; then | |
5571 | ZLIB="ZLIB" | |
5572 | fi | |
5573 | ||
5574 | GDK_IMLIB=NONE | |
5575 | if test "$USE_GDK_IMLIB" = 1 ; then | |
5576 | GDK_IMLIB="GDK_IMLIB" | |
5577 | fi | |
5578 | ||
5579 | LIBPNG=NONE | |
5580 | if test "$USE_LIBPNG" = 1 ; then | |
5581 | LIBPNG="LIBPNG" | |
5582 | fi | |
5583 | ||
5584 | THREADS=NONE | |
5585 | THREADS_LINK= | |
5586 | if test "$USE_THREADS" = 1 ; then | |
5587 | case "$OS" in iris | IRIX | Irix5 | Irix6) | |
5588 | USE_THREADS_POSIX=0 | |
5589 | USE_THREADS_SGI=1 | |
5590 | ;; | |
5591 | *) | |
5592 | USE_THREADS_POSIX=1 | |
5593 | USE_THREADS_SGI=0 | |
5594 | THREADS_LINK=-lpthread | |
5595 | ;; | |
5596 | esac | |
5597 | THREADS="THREADS" | |
5598 | cat >> confdefs.h <<EOF | |
5599 | #define USE_THREADS $USE_THREADS | |
5600 | EOF | |
5601 | ||
5602 | cat >> confdefs.h <<EOF | |
5603 | #define USE_THREADS_SGI $USE_THREADS_SGI | |
5604 | EOF | |
5605 | ||
5606 | cat >> confdefs.h <<EOF | |
5607 | #define USE_THREADS_POSIX $USE_THREADS_POSIX | |
5608 | EOF | |
5609 | ||
5610 | fi | |
5611 | ||
5612 | ||
5613 | ||
5614 | STORABLE=NONE | |
5615 | if test "$USE_STORABLE_CLASSES" = 1 ; then | |
5616 | STORABLE="STORABLE" | |
5617 | cat >> confdefs.h <<EOF | |
5618 | #define USE_STORABLE_CLASSES $USE_STORABLE_CLASSES | |
5619 | EOF | |
5620 | ||
5621 | fi | |
5622 | ||
5623 | AUTOTRANS=NONE | |
5624 | if test "$USE_AUTOTRANS" = 1 ; then | |
5625 | AUTOTRANS="AUTOTRANS" | |
5626 | cat >> confdefs.h <<EOF | |
5627 | #define USE_AUTOTRANS $USE_AUTOTRANS | |
5628 | EOF | |
5629 | ||
5630 | fi | |
5631 | ||
5632 | DEBUG= | |
5633 | if test "$USE_DEBUG_INFO" = 1 ; then | |
5634 | DEBUG="-g" | |
5635 | fi | |
5636 | ||
5637 | ||
5638 | if test "$USE_DEBUG_FLAG" = 1 ; then | |
5639 | cat >> confdefs.h <<EOF | |
5640 | #define DEBUG $USE_DEBUG_FLAG | |
5641 | EOF | |
5642 | ||
5643 | fi | |
5644 | ||
5645 | if test "$USE_MEM_TRACING" = 1 ; then | |
5646 | cat >> confdefs.h <<EOF | |
5647 | #define USE_MEMORY_TRACING $USE_MEM_TRACING | |
5648 | EOF | |
5649 | ||
5650 | cat >> confdefs.h <<EOF | |
5651 | #define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING | |
5652 | EOF | |
5653 | ||
5654 | fi | |
5655 | ||
5656 | PROFILE= | |
5657 | if test "$USE_PROFILE" = 1 ; then | |
5658 | PROFILE="-pg" | |
5659 | fi | |
5660 | ||
5661 | ||
5662 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
5663 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
5664 | if test "$USE_OPTIMISE" = 0 ; then | |
5665 | OPTIMISE= | |
5666 | else | |
5667 | if test "$GCC" = yes ; then | |
5668 | OPTIMISE="-O2" | |
5669 | case "${canonical}" in | |
5670 | i586-*-*|i686-*-* ) | |
5671 | OPTIMISE="${OPTIMISE} " | |
5672 | ;; | |
5673 | esac | |
5674 | else | |
5675 | OPTIMISE="-O" | |
5676 | fi | |
5677 | fi | |
5678 | ||
5679 | ||
5680 | USE_IOSTREAMH=$DEFAULT_USE_IOSTREAMH | |
5681 | cat >> confdefs.h <<EOF | |
5682 | #define USE_IOSTREAMH $USE_IOSTREAMH | |
5683 | EOF | |
5684 | ||
5685 | ||
5686 | RPC=NONE | |
5687 | if test "$USE_RPC" = 1 ; then | |
5688 | RPC="RPC" | |
5689 | cat >> confdefs.h <<EOF | |
5690 | #define USE_RPC $USE_RPC | |
5691 | EOF | |
5692 | ||
5693 | fi | |
5694 | ||
5695 | ||
5696 | WXRESOURCES=NONE | |
5697 | if test "$USE_WX_RESOURCES" = 1 ; then | |
5698 | WXRESOURCES="WXRESOURCES" | |
5699 | cat >> confdefs.h <<EOF | |
5700 | #define USE_WX_RESOURCES $USE_WX_RESOURCES | |
5701 | EOF | |
5702 | ||
5703 | fi | |
5704 | ||
5705 | ||
5706 | PROLOGIO=NONE | |
5707 | PROLOGIOSRC=NONE | |
5708 | if test "$USE_PROLOGIO" = 1 ; then | |
5709 | PROLOGIO="PROLOGIO" | |
5710 | PROLOGIOSRC="PROLOGIOSRC" | |
5711 | cat >> confdefs.h <<EOF | |
5712 | #define USE_PROLOGIO 1 | |
5713 | EOF | |
5714 | ||
5715 | fi | |
5716 | ||
5717 | ||
5718 | ||
5719 | POSTSCRIPTDC=NONE | |
5720 | if test "$USE_POSTSCRIPT" = 1 ; then | |
5721 | POSTSCRIPTDC="POSTSCRIPTDC" | |
5722 | cat >> confdefs.h <<EOF | |
5723 | #define USE_POSTSCRIPT 1 | |
5724 | EOF | |
5725 | ||
5726 | fi | |
5727 | ||
5728 | ||
53b28675 RR |
5729 | if test "$USE_WXCONFIG" = 1 ; then |
5730 | cat >> confdefs.h <<EOF | |
5731 | #define USE_WXCONFIG $USE_WXCONFIG | |
5732 | EOF | |
5733 | ||
5734 | fi | |
5735 | ||
c801d85f KB |
5736 | METAFILE=NONE |
5737 | if test "$USE_METAFILE" = 1 ; then | |
5738 | METAFILE="METAFILE" | |
5739 | cat >> confdefs.h <<EOF | |
5740 | #define USE_METAFILE $USE_METAFILE | |
5741 | EOF | |
5742 | ||
5743 | fi | |
5744 | ||
5745 | ||
5746 | FORM=NONE | |
5747 | if test "$USE_FORM" = 1 ; then | |
5748 | FORM="FORM" | |
5749 | cat >> confdefs.h <<EOF | |
5750 | #define USE_FORM $USE_FORM | |
5751 | EOF | |
5752 | ||
5753 | fi | |
5754 | ||
5755 | ||
5756 | HELP=NONE | |
5757 | if test "$USE_HELP" = 1 ; then | |
5758 | HELP="HELP" | |
5759 | cat >> confdefs.h <<EOF | |
5760 | #define USE_HELP $USE_HELP | |
5761 | EOF | |
5762 | ||
5763 | fi | |
5764 | ||
5765 | ||
5766 | IPC=NONE | |
5767 | if test "$USE_IPC" = 1 ; then | |
5768 | IPC="IPC" | |
5769 | cat >> confdefs.h <<EOF | |
5770 | #define USE_IPC 1 | |
5771 | EOF | |
5772 | ||
5773 | fi | |
5774 | ||
5775 | ||
5776 | ENHDIALOGBOX=NONE | |
5777 | if test "$USE_ENHANCED_DIALOG" = 1 ; then | |
5778 | ENHDIALOGBOX="ENHDIALOGBOX" | |
5779 | cat >> confdefs.h <<EOF | |
5780 | #define USE_ENHANCED_DIALOG $USE_ENHANCED_DIALOG | |
5781 | EOF | |
5782 | ||
5783 | fi | |
5784 | ||
5785 | ||
5786 | XRESOURCES=NONE | |
5787 | if test "$USE_RESOURCES" = 1 ; then | |
5788 | XRESOURCES="XRESOURCES" | |
5789 | cat >> confdefs.h <<EOF | |
5790 | #define USE_RESOURCES $USE_RESOURCES | |
5791 | EOF | |
5792 | ||
5793 | fi | |
5794 | ||
5795 | ||
5796 | CLIPBOARD=NONE | |
5797 | if test "$USE_CLIPBOARD" = 1 ; then | |
5798 | CLIPBOARD="CLIPBOARD" | |
5799 | cat >> confdefs.h <<EOF | |
5800 | #define USE_CLIPBOARD $USE_CLIPBOARD | |
5801 | EOF | |
5802 | ||
5803 | fi | |
5804 | ||
5805 | ||
5806 | CONSTRAINTS=NONE | |
5807 | if test "$USE_CONSTRAINTS" = 1 ; then | |
5808 | CONSTRAINTS="CONSTRAINTS" | |
5809 | cat >> confdefs.h <<EOF | |
5810 | #define USE_CONSTRAINTS $USE_CONSTRAINTS | |
5811 | EOF | |
5812 | ||
5813 | fi | |
5814 | ||
5815 | ||
5816 | TIMEDATE=NONE | |
5817 | if test "$USE_TIMEDATE" = 1 ; then | |
5818 | TIMEDATE="TIMEDATE" | |
5819 | cat >> confdefs.h <<EOF | |
5820 | #define USE_TIMEDATE $USE_TIMEDATE | |
5821 | EOF | |
5822 | ||
5823 | fi | |
5824 | ||
5825 | ||
5826 | FRACTION=NONE | |
5827 | if test "$USE_FRACTION" = 1 ; then | |
5828 | FRACTION="FRACTION" | |
5829 | cat >> confdefs.h <<EOF | |
5830 | #define USE_FRACTION $USE_FRACTION | |
5831 | EOF | |
5832 | ||
5833 | fi | |
5834 | ||
5835 | ||
5836 | TOOLBAR=NONE | |
5837 | if test "$USE_TOOLBAR" = 1 ; then | |
5838 | TOOLBAR="TOOLBAR" | |
5839 | cat >> confdefs.h <<EOF | |
5840 | #define USE_TOOLBAR $USE_TOOLBAR | |
5841 | EOF | |
5842 | ||
5843 | cat >> confdefs.h <<EOF | |
5844 | #define USE_XT_TOOLBAR $USE_XT_TOOLBAR | |
5845 | EOF | |
5846 | ||
5847 | fi | |
5848 | ||
5849 | ||
5850 | GAUGE=NONE | |
5851 | if test "$USE_GAUGE" = 1 ; then | |
5852 | GAUGE="GAUGE" | |
5853 | ||
5854 | cat >> confdefs.h <<EOF | |
5855 | #define USE_GAUGE $USE_GAUGE | |
5856 | EOF | |
5857 | ||
5858 | fi | |
5859 | ||
5860 | VIRLISTBOX=NONE | |
5861 | if test "$USE_VLBOX" = 1 ; then | |
5862 | VIRTLISTBOX="VIRLISTBOX" | |
5863 | cat >> confdefs.h <<EOF | |
5864 | #define USE_VIRLISTBOX $USE_VIRLISTBOX | |
5865 | EOF | |
5866 | ||
5867 | fi | |
5868 | ||
5869 | ||
5870 | SCROLLBAR=NONE | |
5871 | if test "$USE_SCROLLBAR" = 1 ; then | |
5872 | SCROLLBAR="SCROLLBAR" | |
5873 | cat >> confdefs.h <<EOF | |
5874 | #define USE_SCROLLBAR $USE_SCROLLBAR | |
5875 | EOF | |
5876 | ||
5877 | fi | |
5878 | ||
5879 | ||
5880 | DOCVIEW=NONE | |
5881 | if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then | |
5882 | DOCVIEW="DOCVIEW" | |
5883 | cat >> confdefs.h <<EOF | |
5884 | #define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE | |
5885 | EOF | |
5886 | ||
5887 | fi | |
5888 | ||
5889 | ||
5890 | PRINTPREVIEW=NONE | |
5891 | if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then | |
5892 | PRINTPREVIEW="PRINTPREVIEW" | |
5893 | cat >> confdefs.h <<EOF | |
5894 | #define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE | |
5895 | EOF | |
5896 | ||
5897 | fi | |
5898 | ||
5899 | ||
5900 | TYPETREE=NONE | |
5901 | if test "$USE_TYPETREE" = 1 ; then | |
5902 | TYPETREE="TYPETREE" | |
5903 | cat >> confdefs.h <<EOF | |
5904 | #define USE_TYPETREE $USE_TYPETREE | |
5905 | EOF | |
5906 | ||
5907 | fi | |
5908 | ||
5909 | ||
5910 | WXGRAPH=NONE | |
5911 | if test "$USE_WXGRAPH" = 1 ; then | |
5912 | WXGRAPH="WXGRAPH" | |
5913 | cat >> confdefs.h <<EOF | |
5914 | #define USE_WXGRAPH $USE_WXGRAPH | |
5915 | EOF | |
5916 | ||
5917 | fi | |
5918 | ||
5919 | ||
5920 | WXTREE=NONE | |
5921 | if test "$USE_WXTREE" = 1 ; then | |
5922 | WXTREE="WXTREE" | |
5923 | cat >> confdefs.h <<EOF | |
5924 | #define USE_WXTREE $USE_WXTREE | |
5925 | EOF | |
5926 | ||
5927 | fi | |
5928 | ||
5929 | ||
5930 | GLCANVAS=NONE | |
5931 | if test "$USE_OPENGL" = 1 ; then | |
5932 | GLCANVAS="GLCANVAS" | |
5933 | fi | |
5934 | ||
5935 | cat >> confdefs.h <<EOF | |
5936 | #define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT | |
5937 | EOF | |
5938 | ||
5939 | ||
5940 | cat >> confdefs.h <<EOF | |
5941 | #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS | |
5942 | EOF | |
5943 | ||
5944 | ||
5945 | ||
5946 | if test "$USE_UNIX" = 1 ; then | |
5947 | cat >> confdefs.h <<\EOF | |
5948 | #define __UNIX__ 1 | |
5949 | EOF | |
5950 | ||
5951 | fi | |
5952 | ||
5953 | ||
5954 | GUI_TK_INCLUDE= | |
5955 | GUI_TK_LIBRARY= | |
5956 | GUI_TK_LINK= | |
5957 | ||
5958 | if test "$USE_GTK" = 1; then | |
5959 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
5960 | if test "${with_gtk_prefix+set}" = set; then | |
5961 | withval="$with_gtk_prefix" | |
5962 | gtk_config_prefix="$withval" | |
5963 | else | |
5964 | gtk_config_prefix="" | |
5965 | fi | |
5966 | ||
5967 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
5968 | if test "${with_gtk_exec_prefix+set}" = set; then | |
5969 | withval="$with_gtk_exec_prefix" | |
5970 | gtk_config_exec_prefix="$withval" | |
5971 | else | |
5972 | gtk_config_exec_prefix="" | |
5973 | fi | |
5974 | ||
5975 | ||
5976 | if test x$gtk_config_exec_prefix != x ; then | |
5977 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
5978 | if test x${GTK_CONFIG+set} != xset ; then | |
5979 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
5980 | fi | |
5981 | fi | |
5982 | if test x$gtk_config_prefix != x ; then | |
5983 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
5984 | if test x${GTK_CONFIG+set} != xset ; then | |
5985 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
5986 | fi | |
5987 | fi | |
5988 | ||
5989 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
5990 | set dummy gtk-config; ac_word=$2 | |
5991 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7c351dad | 5992 | echo "configure:5993: checking for $ac_word" >&5 |
c801d85f KB |
5993 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
5994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5995 | else | |
5996 | case "$GTK_CONFIG" in | |
5997 | /*) | |
5998 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
5999 | ;; | |
6000 | *) | |
6001 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6002 | for ac_dir in $PATH; do | |
6003 | test -z "$ac_dir" && ac_dir=. | |
6004 | if test -f $ac_dir/$ac_word; then | |
6005 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6006 | break | |
6007 | fi | |
6008 | done | |
6009 | IFS="$ac_save_ifs" | |
6010 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6011 | ;; | |
6012 | esac | |
6013 | fi | |
6014 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6015 | if test -n "$GTK_CONFIG"; then | |
6016 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6017 | else | |
6018 | echo "$ac_t""no" 1>&6 | |
6019 | fi | |
6020 | ||
6021 | min_gtk_version=0.99.7 | |
6022 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
7c351dad | 6023 | echo "configure:6024: checking for GTK - version >= $min_gtk_version" >&5 |
c801d85f KB |
6024 | no_gtk="" |
6025 | if test "$GTK_CONFIG" != "no" ; then | |
6026 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6027 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6028 | ac_save_CFLAGS="$CFLAGS" | |
6029 | ac_save_LIBS="$LIBS" | |
6030 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6031 | LIBS="$LIBS $GTK_LIBS" | |
6032 | if test "$cross_compiling" = yes; then | |
6033 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6034 | else | |
6035 | cat > conftest.$ac_ext <<EOF | |
7c351dad | 6036 | #line 6037 "configure" |
c801d85f KB |
6037 | #include "confdefs.h" |
6038 | ||
6039 | #include <gtk/gtk.h> | |
6040 | #include <stdio.h> | |
6041 | ||
6042 | int | |
6043 | main () | |
6044 | { | |
6045 | int major, minor, micro; | |
6046 | ||
6047 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6048 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6049 | exit(1); | |
6050 | } | |
6051 | ||
6052 | return !((gtk_major_version > major) || | |
6053 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6054 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6055 | } | |
6056 | ||
6057 | EOF | |
7c351dad | 6058 | if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
c801d85f KB |
6059 | then |
6060 | : | |
6061 | else | |
6062 | echo "configure: failed program was:" >&5 | |
6063 | cat conftest.$ac_ext >&5 | |
6064 | rm -fr conftest* | |
6065 | no_gtk=yes | |
6066 | fi | |
6067 | rm -fr conftest* | |
6068 | fi | |
6069 | ||
6070 | CFLAGS="$ac_save_CFLAGS" | |
6071 | LIBS="$ac_save_LIBS" | |
6072 | else | |
6073 | no_gtk=yes | |
6074 | fi | |
6075 | if test "x$no_gtk" = x ; then | |
6076 | echo "$ac_t""yes" 1>&6 | |
6077 | ||
6078 | GUI_TK_INCLUDE="$GTK_CFLAGS" | |
6079 | GUI_TK_LIBRARY="$GTK_LIBS" | |
6080 | ||
6081 | else | |
6082 | echo "$ac_t""no" 1>&6 | |
6083 | GTK_CFLAGS="" | |
6084 | GTK_LIBS="" | |
6085 | { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; } | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | ||
6090 | cat >> confdefs.h <<\EOF | |
6091 | #define __GTK__ 1 | |
6092 | EOF | |
6093 | ||
6094 | fi | |
6095 | ||
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
6101 | ||
6102 | ||
6103 | OPENGL_INCLUDE= | |
6104 | OPENGL_LIBRARY= | |
6105 | OPENGL_LINK= | |
6106 | ||
6107 | if test "$USE_OPENGL" = 1; then | |
6108 | echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6 | |
7c351dad | 6109 | echo "configure:6110: checking for OpenGL includes" >&5 |
c801d85f KB |
6110 | |
6111 | ac_find_includes= | |
6112 | for ac_dir in $SEARCH_INCLUDE; | |
6113 | do | |
6114 | if test -f "$ac_dir/GL/gl.h"; then | |
6115 | ac_find_includes=$ac_dir | |
6116 | break | |
6117 | fi | |
6118 | done | |
6119 | ||
6120 | if test "$ac_find_includes" != "" ; then | |
6121 | OPENGL_INCLUDE="-I$ac_find_includes" | |
6122 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6123 | echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6 | |
7c351dad | 6124 | echo "configure:6125: checking for OpenGL library" >&5 |
c801d85f KB |
6125 | |
6126 | ac_find_libraries= | |
6127 | for ac_dir in $SEARCH_LIB; | |
6128 | do | |
6129 | for ac_extension in a so sl; do | |
6130 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
6131 | ac_find_libraries=$ac_dir | |
6132 | break 2 | |
6133 | fi | |
6134 | done | |
6135 | done | |
6136 | ||
6137 | if test "$ac_find_libraries" != "" ; then | |
6138 | ||
6139 | ac_path_to_include=$ac_find_includes | |
6140 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
6141 | result=$? | |
6142 | if test $result = 0; then | |
6143 | ac_path_to_include="" | |
6144 | else | |
6145 | ac_path_to_include="-I$ac_find_includes" | |
6146 | fi | |
6147 | ||
6148 | ||
6149 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6150 | result=$? | |
6151 | if test $result = 0; then | |
6152 | ac_path_to_link="" | |
6153 | else | |
6154 | ac_path_to_link="-L$ac_find_libraries" | |
6155 | fi | |
6156 | ||
6157 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
6158 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
6159 | OPENGL_LIBRARY="$ac_path_to_link" | |
6160 | OPENGL_INCLUDE="$ac_path_to_include" | |
6161 | OPENGL_LINK="-lGL" | |
6162 | echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6 | |
6163 | else | |
6164 | ||
6165 | ac_find_libraries= | |
6166 | for ac_dir in $SEARCH_LIB; | |
6167 | do | |
6168 | for ac_extension in a so sl; do | |
6169 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6170 | ac_find_libraries=$ac_dir | |
6171 | break 2 | |
6172 | fi | |
6173 | done | |
6174 | done | |
6175 | ||
6176 | if test "$ac_find_libraries" != "" ; then | |
6177 | ||
6178 | ac_path_to_include=$ac_find_includes | |
6179 | echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
6180 | result=$? | |
6181 | if test $result = 0; then | |
6182 | ac_path_to_include="" | |
6183 | else | |
6184 | ac_path_to_include="-I$ac_find_includes" | |
6185 | fi | |
6186 | ||
6187 | ||
6188 | echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null | |
6189 | result=$? | |
6190 | if test $result = 0; then | |
6191 | ac_path_to_link="" | |
6192 | else | |
6193 | ac_path_to_link="-L$ac_find_libraries" | |
6194 | fi | |
6195 | ||
6196 | CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link" | |
6197 | CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include" | |
6198 | OPENGL_LIBRARY="$ac_path_to_link" | |
6199 | OPENGL_INCLUDE="$ac_path_to_include" | |
6200 | OPENGL_LINK="-lMesaGL" | |
6201 | echo "$ac_t""found MESA at $ac_find_libraries" 1>&6 | |
6202 | else | |
6203 | { echo "configure: error: no" 1>&2; exit 1; } | |
6204 | fi | |
6205 | fi | |
6206 | else | |
6207 | { echo "configure: error: no" 1>&2; exit 1; } | |
6208 | fi | |
6209 | fi | |
6210 | ||
6211 | if test "$USE_GDK_IMLIB" = 1; then | |
6212 | cat >> confdefs.h <<EOF | |
6213 | #define USE_GDK_IMLIB $USE_GDK_IMLIB | |
6214 | EOF | |
6215 | ||
6216 | fi | |
6217 | ||
6218 | if test "$USE_ZLIB" = 1; then | |
6219 | cat >> confdefs.h <<EOF | |
6220 | #define USE_ZLIB $USE_ZLIB | |
6221 | EOF | |
6222 | ||
6223 | fi | |
6224 | ||
6225 | if test "$USE_LIBPNG" = 1; then | |
6226 | cat >> confdefs.h <<EOF | |
6227 | #define USE_LIBPNG $USE_LIBPNG | |
6228 | EOF | |
6229 | ||
6230 | fi | |
6231 | ||
6232 | ||
6233 | ||
6234 | ||
6235 | USE_GLX=$USE_OPENGL | |
6236 | if test "$USE_OPENGL" != 1; then | |
6237 | OPENGL_LIBRARIES= | |
6238 | OPENGL_INCLUDE= | |
6239 | OPENGL_LINK= | |
6240 | GLCANVAS=NONE | |
6241 | fi | |
6242 | ||
6243 | cat >> confdefs.h <<EOF | |
6244 | #define USE_GLX $USE_GLX | |
6245 | EOF | |
6246 | ||
6247 | ||
6248 | ||
6249 | ||
6250 | ||
6251 | ||
6252 | ||
6253 | PICFLAGS= | |
6254 | CREATE_SHARED= | |
6255 | case "${canonical}" in | |
6256 | ||
6257 | *-hp-hpux* ) | |
6258 | if test "${CC}" != "gcc" ; then | |
6259 | CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE" | |
6260 | CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE" | |
6261 | PICFLAGS="+z" | |
6262 | else | |
6263 | PICFLAGS="-fPIC" | |
6264 | fi | |
6265 | LDFLAGS="-Wl,+s" | |
6266 | CREATE_SHARED=sharedHpux | |
6267 | ;; | |
6268 | ||
6269 | *-*-linux* ) | |
6270 | PICFLAGS=-fPIC | |
6271 | CREATE_SHARED=sharedLinux | |
6272 | ;; | |
6273 | ||
6274 | *-*-irix5* | *-*-irix6* ) | |
6275 | # PICFLAGS can remain empty, as pic is the default | |
6276 | LDFLAGS="-Wl,+s" | |
6277 | CREATE_SHARED=sharedIrix | |
6278 | cat >> confdefs.h <<\EOF | |
6279 | #define SVR4 1 | |
6280 | EOF | |
6281 | ||
6282 | ;; | |
6283 | ||
6284 | *-*-solaris2* ) | |
6285 | if test "${CC}" != "gcc" ; then | |
6286 | PICFLAGS="-KPIC" | |
6287 | else | |
6288 | PICFLAGS="-fPIC" | |
6289 | fi | |
6290 | CREATE_SHARED=sharedSolaris2 | |
6291 | cat >> confdefs.h <<\EOF | |
6292 | #define SVR4 1 | |
6293 | EOF | |
6294 | ||
6295 | ;; | |
6296 | ||
6297 | *-*-sunos4* ) | |
6298 | if test "${CC}" != "gcc" ; then | |
6299 | PICFLAGS="-PIC" | |
6300 | else | |
6301 | PICFLAGS="-fPIC" | |
6302 | fi | |
6303 | LDFLAGS="-Wl,+s" | |
6304 | CREATE_SHARED=sharedSunos4 | |
6305 | cat >> confdefs.h <<\EOF | |
6306 | #define BSD 1 | |
6307 | EOF | |
6308 | ||
6309 | ;; | |
6310 | ||
6311 | *-*-freebsd* | *-*-netbsd*) | |
6312 | PICFLAGS=-fPIC | |
6313 | CREATE_SHARED=sharedBsd | |
6314 | cat >> confdefs.h <<\EOF | |
6315 | #define BSD 1 | |
6316 | EOF | |
6317 | ||
6318 | ;; | |
6319 | ||
6320 | *-*-osf* ) | |
6321 | PICFLAGS="-fPIC" | |
6322 | CREATE_SHARED=sharedOSF | |
6323 | ;; | |
6324 | ||
6325 | *-*-dgux5* ) | |
6326 | if test "${CC}" != "gcc" ; then | |
6327 | PICFLAGS="-K PIC" | |
6328 | else | |
6329 | PICFLAGS="-fPIC" | |
6330 | fi | |
6331 | CREATE_SHARED=sharedDgux | |
6332 | cat >> confdefs.h <<\EOF | |
6333 | #define SVR4 1 | |
6334 | EOF | |
6335 | ||
6336 | ;; | |
6337 | ||
6338 | *-*-sysv5* ) | |
6339 | if test "${CC}" != "gcc" ; then | |
6340 | PICFLAGS="-K PIC" | |
6341 | else | |
6342 | PICFLAGS="-fPIC" | |
6343 | fi | |
6344 | CREATE_SHARED=sharedSysV | |
6345 | cat >> confdefs.h <<\EOF | |
6346 | #define SVR4 1 | |
6347 | EOF | |
6348 | ||
6349 | ;; | |
6350 | ||
6351 | *-*-aix* ) | |
6352 | if test "${CC}" != "gcc" ; then | |
6353 | PICFLAGS="-bM\:SRE" | |
6354 | else | |
6355 | PICFLAGS="-fPIC" | |
6356 | fi | |
6357 | CREATE_SHARED=sharedAIX | |
6358 | cat >> confdefs.h <<\EOF | |
6359 | #define SYSV 1 | |
6360 | EOF | |
6361 | ||
6362 | ;; | |
6363 | ||
6364 | *) | |
6365 | CREATE_SHARED= | |
6366 | PICFLAGS= | |
6367 | esac | |
6368 | ||
6369 | if test "x$GCC" = xyes; then | |
6370 | CFLAGS="${CFLAGS} -Wall" | |
6371 | fi | |
6372 | ||
6373 | if test "x$GXX" = xyes; then | |
6374 | CXXFLAGS="${CXXFLAGS} -Wall" | |
6375 | fi | |
6376 | ||
6377 | if test "$USE_SHARED" != 1; then | |
6378 | CREATE_SHARED= | |
6379 | PICFLAGS= | |
6380 | fi | |
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | echo $OS >> system.list | |
abe1d62e | 6388 | echo $OS >> ../../system.list |
c801d85f KB |
6389 | |
6390 | ||
6391 | trap '' 1 2 15 | |
6392 | cat > confcache <<\EOF | |
6393 | # This file is a shell script that caches the results of configure | |
6394 | # tests run on this system so they can be shared between configure | |
6395 | # scripts and configure runs. It is not useful on other systems. | |
6396 | # If it contains results you don't want to keep, you may remove or edit it. | |
6397 | # | |
6398 | # By default, configure uses ./config.cache as the cache file, | |
6399 | # creating it if it does not exist already. You can give configure | |
6400 | # the --cache-file=FILE option to use a different cache file; that is | |
6401 | # what configure does when it calls configure scripts in | |
6402 | # subdirectories, so they share the cache. | |
6403 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6404 | # config.status only pays attention to the cache file if you give it the | |
6405 | # --recheck option to rerun configure. | |
6406 | # | |
6407 | EOF | |
6408 | # The following way of writing the cache mishandles newlines in values, | |
6409 | # but we know of no workaround that is simple, portable, and efficient. | |
6410 | # So, don't put newlines in cache variables' values. | |
6411 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6412 | # and sets the high bit in the cache file unless we assign to the vars. | |
6413 | (set) 2>&1 | | |
6414 | case `(ac_space=' '; set) 2>&1` in | |
6415 | *ac_space=\ *) | |
6416 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6417 | # turns \\\\ into \\, and sed turns \\ into \). | |
6418 | sed -n \ | |
6419 | -e "s/'/'\\\\''/g" \ | |
6420 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6421 | ;; | |
6422 | *) | |
6423 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6424 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6425 | ;; | |
6426 | esac >> confcache | |
6427 | if cmp -s $cache_file confcache; then | |
6428 | : | |
6429 | else | |
6430 | if test -w $cache_file; then | |
6431 | echo "updating cache $cache_file" | |
6432 | cat confcache > $cache_file | |
6433 | else | |
6434 | echo "not updating unwritable cache $cache_file" | |
6435 | fi | |
6436 | fi | |
6437 | rm -f confcache | |
6438 | ||
6439 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6440 | ||
6441 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6442 | # Let make expand exec_prefix. | |
6443 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6444 | ||
6445 | # Any assignment to VPATH causes Sun make to only execute | |
6446 | # the first set of double-colon rules, so remove it if not needed. | |
6447 | # If there is a colon in the path, we need to keep it. | |
6448 | if test "x$srcdir" = x.; then | |
6449 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6450 | fi | |
6451 | ||
6452 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6453 | ||
6454 | DEFS=-DHAVE_CONFIG_H | |
6455 | ||
6456 | # Without the "./", some shells look in PATH for config.status. | |
6457 | : ${CONFIG_STATUS=./config.status} | |
6458 | ||
6459 | echo creating $CONFIG_STATUS | |
6460 | rm -f $CONFIG_STATUS | |
6461 | cat > $CONFIG_STATUS <<EOF | |
6462 | #! /bin/sh | |
6463 | # Generated automatically by configure. | |
6464 | # Run this file to recreate the current configuration. | |
6465 | # This directory was configured as follows, | |
6466 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6467 | # | |
6468 | # $0 $ac_configure_args | |
6469 | # | |
6470 | # Compiler output produced by configure, useful for debugging | |
6471 | # configure, is in ./config.log if it exists. | |
6472 | ||
6473 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6474 | for ac_option | |
6475 | do | |
6476 | case "\$ac_option" in | |
6477 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6478 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6479 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6480 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
6481 | echo "$CONFIG_STATUS generated by autoconf version 2.12" | |
6482 | exit 0 ;; | |
6483 | -help | --help | --hel | --he | --h) | |
6484 | echo "\$ac_cs_usage"; exit 0 ;; | |
6485 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6486 | esac | |
6487 | done | |
6488 | ||
6489 | ac_given_srcdir=$srcdir | |
6490 | ac_given_INSTALL="$INSTALL" | |
6491 | ||
abe1d62e | 6492 | trap 'rm -fr `echo "../../src/gtk/setup/substit ../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
c801d85f KB |
6493 | EOF |
6494 | cat >> $CONFIG_STATUS <<EOF | |
6495 | ||
6496 | # Protect against being on the right side of a sed subst in config.status. | |
6497 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6498 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
6499 | $ac_vpsub | |
6500 | $extrasub | |
6501 | s%@CFLAGS@%$CFLAGS%g | |
6502 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6503 | s%@CXXFLAGS@%$CXXFLAGS%g | |
6504 | s%@DEFS@%$DEFS%g | |
6505 | s%@LDFLAGS@%$LDFLAGS%g | |
6506 | s%@LIBS@%$LIBS%g | |
6507 | s%@exec_prefix@%$exec_prefix%g | |
6508 | s%@prefix@%$prefix%g | |
6509 | s%@program_transform_name@%$program_transform_name%g | |
6510 | s%@bindir@%$bindir%g | |
6511 | s%@sbindir@%$sbindir%g | |
6512 | s%@libexecdir@%$libexecdir%g | |
6513 | s%@datadir@%$datadir%g | |
6514 | s%@sysconfdir@%$sysconfdir%g | |
6515 | s%@sharedstatedir@%$sharedstatedir%g | |
6516 | s%@localstatedir@%$localstatedir%g | |
6517 | s%@libdir@%$libdir%g | |
6518 | s%@includedir@%$includedir%g | |
6519 | s%@oldincludedir@%$oldincludedir%g | |
6520 | s%@infodir@%$infodir%g | |
6521 | s%@mandir@%$mandir%g | |
6522 | s%@WXBASEDIR@%$WXBASEDIR%g | |
6523 | s%@CC@%$CC%g | |
6524 | s%@CPP@%$CPP%g | |
6525 | s%@CXX@%$CXX%g | |
6526 | s%@CXXCPP@%$CXXCPP%g | |
6527 | s%@RANLIB@%$RANLIB%g | |
6528 | s%@AR@%$AR%g | |
6529 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
6530 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
6531 | s%@LN_S@%$LN_S%g | |
6532 | s%@AWK@%$AWK%g | |
6533 | s%@X_CFLAGS@%$X_CFLAGS%g | |
6534 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
6535 | s%@X_LIBS@%$X_LIBS%g | |
6536 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
7c351dad | 6537 | s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g |
c801d85f | 6538 | s%@LIBOBJS@%$LIBOBJS%g |
7c351dad | 6539 | s%@UNIX_THREAD@%$UNIX_THREAD%g |
c801d85f KB |
6540 | s%@YACC@%$YACC%g |
6541 | s%@LEX@%$LEX%g | |
6542 | s%@LEXLIB@%$LEXLIB%g | |
6543 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | |
6544 | s%@host@%$host%g | |
6545 | s%@host_alias@%$host_alias%g | |
6546 | s%@host_cpu@%$host_cpu%g | |
6547 | s%@host_vendor@%$host_vendor%g | |
6548 | s%@host_os@%$host_os%g | |
6549 | s%@THREADS@%$THREADS%g | |
6550 | s%@THREADS_LINK@%$THREADS_LINK%g | |
6551 | s%@DEBUG@%$DEBUG%g | |
6552 | s%@PROFILE@%$PROFILE%g | |
6553 | s%@OPTIMISE@%$OPTIMISE%g | |
6554 | s%@RPC@%$RPC%g | |
6555 | s%@WXRESOURCES@%$WXRESOURCES%g | |
6556 | s%@PROLOGIO@%$PROLOGIO%g | |
6557 | s%@PROLOGIOSRC@%$PROLOGIOSRC%g | |
6558 | s%@POSTSCRIPTDC@%$POSTSCRIPTDC%g | |
6559 | s%@METAFILE@%$METAFILE%g | |
6560 | s%@FORM@%$FORM%g | |
6561 | s%@HELP@%$HELP%g | |
6562 | s%@IPC@%$IPC%g | |
6563 | s%@ENHDIALOGBOX@%$ENHDIALOGBOX%g | |
6564 | s%@XRESOURCES@%$XRESOURCES%g | |
6565 | s%@CLIPBOARD@%$CLIPBOARD%g | |
6566 | s%@CONSTRAINTS@%$CONSTRAINTS%g | |
6567 | s%@TIMEDATE@%$TIMEDATE%g | |
6568 | s%@FRACTION@%$FRACTION%g | |
6569 | s%@TOOLBAR@%$TOOLBAR%g | |
6570 | s%@GAUGE@%$GAUGE%g | |
6571 | s%@VIRLISTBOX@%$VIRLISTBOX%g | |
6572 | s%@SCROLLBAR@%$SCROLLBAR%g | |
6573 | s%@DOCVIEW@%$DOCVIEW%g | |
6574 | s%@PRINTPREVIEW@%$PRINTPREVIEW%g | |
6575 | s%@TYPETREE@%$TYPETREE%g | |
6576 | s%@WXGRAPH@%$WXGRAPH%g | |
6577 | s%@WXTREE@%$WXTREE%g | |
6578 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
6579 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
6580 | s%@GTK_LIBS@%$GTK_LIBS%g | |
6581 | s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g | |
6582 | s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g | |
6583 | s%@GUI_TK_LINK@%$GUI_TK_LINK%g | |
6584 | s%@TOOLKIT@%$TOOLKIT%g | |
6585 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
6586 | s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g | |
6587 | s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g | |
6588 | s%@OPENGL_LINK@%$OPENGL_LINK%g | |
6589 | s%@GLCANVAS@%$GLCANVAS%g | |
6590 | s%@OS@%$OS%g | |
6591 | s%@PICFLAGS@%$PICFLAGS%g | |
6592 | s%@CREATE_SHARED@%$CREATE_SHARED%g | |
6593 | ||
6594 | CEOF | |
6595 | EOF | |
6596 | ||
6597 | cat >> $CONFIG_STATUS <<\EOF | |
6598 | ||
6599 | # Split the substitutions into bite-sized pieces for seds with | |
6600 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6601 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6602 | ac_file=1 # Number of current file. | |
6603 | ac_beg=1 # First line for current file. | |
6604 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6605 | ac_more_lines=: | |
6606 | ac_sed_cmds="" | |
6607 | while $ac_more_lines; do | |
6608 | if test $ac_beg -gt 1; then | |
6609 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6610 | else | |
6611 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6612 | fi | |
6613 | if test ! -s conftest.s$ac_file; then | |
6614 | ac_more_lines=false | |
6615 | rm -f conftest.s$ac_file | |
6616 | else | |
6617 | if test -z "$ac_sed_cmds"; then | |
6618 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6619 | else | |
6620 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6621 | fi | |
6622 | ac_file=`expr $ac_file + 1` | |
6623 | ac_beg=$ac_end | |
6624 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6625 | fi | |
6626 | done | |
6627 | if test -z "$ac_sed_cmds"; then | |
6628 | ac_sed_cmds=cat | |
6629 | fi | |
6630 | EOF | |
6631 | ||
6632 | cat >> $CONFIG_STATUS <<EOF | |
6633 | ||
abe1d62e | 6634 | CONFIG_FILES=\${CONFIG_FILES-"../../src/gtk/setup/substit"} |
c801d85f KB |
6635 | EOF |
6636 | cat >> $CONFIG_STATUS <<\EOF | |
6637 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
6638 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6639 | case "$ac_file" in | |
6640 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6641 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6642 | *) ac_file_in="${ac_file}.in" ;; | |
6643 | esac | |
6644 | ||
6645 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
6646 | ||
6647 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6648 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6649 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6650 | # The file is in a subdirectory. | |
6651 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6652 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6653 | # A "../" for each directory in $ac_dir_suffix. | |
6654 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6655 | else | |
6656 | ac_dir_suffix= ac_dots= | |
6657 | fi | |
6658 | ||
6659 | case "$ac_given_srcdir" in | |
6660 | .) srcdir=. | |
6661 | if test -z "$ac_dots"; then top_srcdir=. | |
6662 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6663 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6664 | *) # Relative path. | |
6665 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6666 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6667 | esac | |
6668 | ||
6669 | case "$ac_given_INSTALL" in | |
6670 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6671 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6672 | esac | |
6673 | ||
6674 | echo creating "$ac_file" | |
6675 | rm -f "$ac_file" | |
6676 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6677 | case "$ac_file" in | |
6678 | *Makefile*) ac_comsub="1i\\ | |
6679 | # $configure_input" ;; | |
6680 | *) ac_comsub= ;; | |
6681 | esac | |
6682 | ||
6683 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6684 | sed -e "$ac_comsub | |
6685 | s%@configure_input@%$configure_input%g | |
6686 | s%@srcdir@%$srcdir%g | |
6687 | s%@top_srcdir@%$top_srcdir%g | |
6688 | s%@INSTALL@%$INSTALL%g | |
6689 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
6690 | fi; done | |
6691 | rm -f conftest.s* | |
6692 | ||
6693 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6694 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6695 | # | |
6696 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6697 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6698 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6699 | ac_dC='\3' | |
6700 | ac_dD='%g' | |
6701 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6702 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6703 | ac_uB='\([ ]\)%\1#\2define\3' | |
6704 | ac_uC=' ' | |
6705 | ac_uD='\4%g' | |
6706 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6707 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6708 | ac_eB='$%\1#\2define\3' | |
6709 | ac_eC=' ' | |
6710 | ac_eD='%g' | |
6711 | ||
6712 | if test "${CONFIG_HEADERS+set}" != set; then | |
6713 | EOF | |
6714 | cat >> $CONFIG_STATUS <<EOF | |
abe1d62e | 6715 | CONFIG_HEADERS="../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" |
c801d85f KB |
6716 | EOF |
6717 | cat >> $CONFIG_STATUS <<\EOF | |
6718 | fi | |
6719 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
6720 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6721 | case "$ac_file" in | |
6722 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
6723 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
6724 | *) ac_file_in="${ac_file}.in" ;; | |
6725 | esac | |
6726 | ||
6727 | echo creating $ac_file | |
6728 | ||
6729 | rm -f conftest.frag conftest.in conftest.out | |
6730 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
6731 | cat $ac_file_inputs > conftest.in | |
6732 | ||
6733 | EOF | |
6734 | ||
6735 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6736 | # the proper values into config.h.in to produce config.h. And first: | |
6737 | # Protect against being on the right side of a sed subst in config.status. | |
6738 | # Protect against being in an unquoted here document in config.status. | |
6739 | rm -f conftest.vals | |
6740 | cat > conftest.hdr <<\EOF | |
6741 | s/[\\&%]/\\&/g | |
6742 | s%[\\$`]%\\&%g | |
6743 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6744 | s%ac_d%ac_u%gp | |
6745 | s%ac_u%ac_e%gp | |
6746 | EOF | |
6747 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6748 | rm -f conftest.hdr | |
6749 | ||
6750 | # This sed command replaces #undef with comments. This is necessary, for | |
6751 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6752 | # on some systems where configure will not decide to define it. | |
6753 | cat >> conftest.vals <<\EOF | |
6754 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6755 | EOF | |
6756 | ||
6757 | # Break up conftest.vals because some shells have a limit on | |
6758 | # the size of here documents, and old seds have small limits too. | |
6759 | ||
6760 | rm -f conftest.tail | |
6761 | while : | |
6762 | do | |
6763 | ac_lines=`grep -c . conftest.vals` | |
6764 | # grep -c gives empty output for an empty file on some AIX systems. | |
6765 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6766 | # Write a limited-size here document to conftest.frag. | |
6767 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6768 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6769 | echo 'CEOF | |
6770 | sed -f conftest.frag conftest.in > conftest.out | |
6771 | rm -f conftest.in | |
6772 | mv conftest.out conftest.in | |
6773 | ' >> $CONFIG_STATUS | |
6774 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6775 | rm -f conftest.vals | |
6776 | mv conftest.tail conftest.vals | |
6777 | done | |
6778 | rm -f conftest.vals | |
6779 | ||
6780 | cat >> $CONFIG_STATUS <<\EOF | |
6781 | rm -f conftest.frag conftest.h | |
6782 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6783 | cat conftest.in >> conftest.h | |
6784 | rm -f conftest.in | |
6785 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6786 | echo "$ac_file is unchanged" | |
6787 | rm -f conftest.h | |
6788 | else | |
6789 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6790 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6791 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6792 | # The file is in a subdirectory. | |
6793 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6794 | fi | |
6795 | rm -f $ac_file | |
6796 | mv conftest.h $ac_file | |
6797 | fi | |
6798 | fi; done | |
6799 | ||
6800 | EOF | |
6801 | cat >> $CONFIG_STATUS <<EOF | |
6802 | ||
6803 | EOF | |
6804 | cat >> $CONFIG_STATUS <<\EOF | |
abe1d62e | 6805 | |
c801d85f KB |
6806 | exit 0 |
6807 | EOF | |
6808 | chmod +x $CONFIG_STATUS | |
6809 | rm -fr confdefs* $ac_clean_files | |
6810 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6811 | ||
6812 | ||
6813 | mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache | |
6814 |