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