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