]>
Commit | Line | Data |
---|---|---|
a16d3c04 KB |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | # Guess values for system-dependent variables and create Makefiles. | |
0709ee62 | 44 | # Generated automatically using autoconf version 2.13 |
a16d3c04 KB |
45 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
46 | # | |
47 | # This configure script is free software; the Free Software Foundation | |
48 | # gives unlimited permission to copy, distribute and modify it. | |
49 | ||
50 | # Defaults: | |
51 | ac_help= | |
52 | ac_default_prefix=/usr/local | |
53 | # Any additions from configure.in: | |
f7a11f8c RR |
54 | ac_help="$ac_help |
55 | --enable-gui use GUI classes" | |
a16d3c04 KB |
56 | ac_help="$ac_help |
57 | --with-gtk use GTK+" | |
58 | ac_help="$ac_help | |
59 | --with-motif use Motif/Lesstif" | |
60 | ac_help="$ac_help | |
61 | --with-wine use WINE" | |
62 | ac_help="$ac_help | |
63 | --with-cygwin use Cygwin for MS-Windows" | |
64 | ac_help="$ac_help | |
65 | --with-mingw use GCC Minimal MS-Windows" | |
66 | ac_help="$ac_help | |
67 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
68 | ac_help="$ac_help | |
69 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
70 | ac_help="$ac_help | |
71 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
72 | ac_help="$ac_help | |
73 | --with-zlib use zlib for LZW compression" | |
74 | ac_help="$ac_help | |
75 | --with-libpng use libpng (PNG image format)" | |
76 | ac_help="$ac_help | |
a16d3c04 KB |
77 | --with-libjpeg use libjpeg (JPEG file format)" |
78 | ac_help="$ac_help | |
79 | --with-opengl use OpenGL (or Mesa)" | |
80 | ac_help="$ac_help | |
81 | --with-odbc use the IODBC and wxODBC classes" | |
82 | ac_help="$ac_help | |
83 | --enable-shared create shared library code" | |
84 | ac_help="$ac_help | |
85 | --enable-optimise create optimised code" | |
86 | ac_help="$ac_help | |
87 | --enable-debug same as debug_flag and debug_info" | |
88 | ac_help="$ac_help | |
89 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
90 | ac_help="$ac_help | |
91 | --enable-debug_info create code with debugging information" | |
92 | ac_help="$ac_help | |
93 | --enable-debug_gdb create code with extra GDB debugging information" | |
94 | ac_help="$ac_help | |
95 | --enable-debug_cntxt use wxDebugContext" | |
96 | ac_help="$ac_help | |
97 | --enable-mem_tracing create code with memory tracing" | |
98 | ac_help="$ac_help | |
99 | --enable-profile create code with profiling information" | |
100 | ac_help="$ac_help | |
101 | --enable-no_rtti create code without RTTI information" | |
102 | ac_help="$ac_help | |
103 | --enable-no_exceptions create code without exceptions information" | |
104 | ac_help="$ac_help | |
105 | --enable-permissive compile code disregarding strict ANSI" | |
106 | ac_help="$ac_help | |
107 | --enable-no_deps create code without dependency information" | |
108 | ac_help="$ac_help | |
a16d3c04 KB |
109 | --enable-intl use internationalization system" |
110 | ac_help="$ac_help | |
111 | --enable-config use wxConfig (and derived) classes" | |
112 | ac_help="$ac_help | |
113 | --enable-sockets use socket/network classes" | |
114 | ac_help="$ac_help | |
1c8515f9 KB |
115 | --enable-dialupman use dialup network classes" |
116 | ac_help="$ac_help | |
a16d3c04 KB |
117 | --enable-ipc use interprocess communication (wxSocket etc.)" |
118 | ac_help="$ac_help | |
119 | --enable-apple_ieee use the Apple IEEE codec" | |
120 | ac_help="$ac_help | |
121 | --enable-timedate use date/time classes" | |
122 | ac_help="$ac_help | |
123 | --enable-wave use wxWave class" | |
124 | ac_help="$ac_help | |
125 | --enable-fraction use wxFraction class" | |
126 | ac_help="$ac_help | |
127 | --enable-dynlib use wxLibrary class for DLL loading" | |
128 | ac_help="$ac_help | |
129 | --enable-longlong use wxLongLong class" | |
130 | ac_help="$ac_help | |
131 | --enable-log use logging system" | |
132 | ac_help="$ac_help | |
133 | --enable-streams use wxStream etc classes" | |
134 | ac_help="$ac_help | |
135 | --enable-file use wxFile classes" | |
136 | ac_help="$ac_help | |
137 | --enable-textfile use wxTextFile classes" | |
138 | ac_help="$ac_help | |
139 | --enable-unicode compile wxString with Unicode support" | |
140 | ac_help="$ac_help | |
141 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
142 | ac_help="$ac_help | |
143 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
144 | ac_help="$ac_help | |
145 | --enable-joystick compile in joystick support (Linux only)" | |
146 | ac_help="$ac_help | |
147 | --enable-std_iostreams use standard C++ stream classes" | |
148 | ac_help="$ac_help | |
149 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
150 | ac_help="$ac_help | |
151 | --enable-fs_zip use virtual ZIP filesystems" | |
152 | ac_help="$ac_help | |
153 | --enable-zipstream use wxZipInputStream" | |
154 | ac_help="$ac_help | |
155 | --enable-threads use threads" | |
156 | ac_help="$ac_help | |
157 | --enable-serial use class serialization" | |
158 | ac_help="$ac_help | |
159 | --enable-docview use document view architecture" | |
160 | ac_help="$ac_help | |
161 | --enable-help use help (using external browser at present)" | |
162 | ac_help="$ac_help | |
163 | --enable-constraints use layout-constraints system" | |
164 | ac_help="$ac_help | |
165 | --enable-printarch use printing architecture" | |
166 | ac_help="$ac_help | |
167 | --enable-mdi use multiple document interface architecture" | |
168 | ac_help="$ac_help | |
169 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
170 | ac_help="$ac_help | |
171 | --enable-prologio use Prolog IO library" | |
172 | ac_help="$ac_help | |
173 | --enable-resources use wxWindows resources" | |
174 | ac_help="$ac_help | |
175 | --enable-xresources use X resources for save (default for gtk+)" | |
176 | ac_help="$ac_help | |
177 | --enable-clipboard use wxClipboard classes" | |
178 | ac_help="$ac_help | |
179 | --enable-dnd use Drag'n'Drop classes" | |
180 | ac_help="$ac_help | |
181 | --enable-wxtree make wxTree library" | |
182 | ac_help="$ac_help | |
183 | --enable-controls use all usual controls" | |
184 | ac_help="$ac_help | |
185 | --enable-accel use accelerators" | |
186 | ac_help="$ac_help | |
187 | --enable-caret use wxCaret class" | |
188 | ac_help="$ac_help | |
189 | --enable-bmpbutton use wxBitmapButton class" | |
190 | ac_help="$ac_help | |
191 | --enable-checkbox use wxCheckBox class" | |
192 | ac_help="$ac_help | |
193 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
194 | ac_help="$ac_help | |
195 | --enable-choice use wxChoice class" | |
196 | ac_help="$ac_help | |
197 | --enable-combobox use wxComboBox classes" | |
198 | ac_help="$ac_help | |
199 | --enable-gauge use wxGauge class" | |
200 | ac_help="$ac_help | |
201 | --enable-grid use wxGrid class" | |
202 | ac_help="$ac_help | |
2726c66d KB |
203 | --enable-newgrid use new wxGrid class" |
204 | ac_help="$ac_help | |
a16d3c04 KB |
205 | --enable-imaglist use wxImageList class" |
206 | ac_help="$ac_help | |
207 | --enable-listbox use wxListBox class" | |
208 | ac_help="$ac_help | |
209 | --enable-listctrl use wxListCtrl class" | |
210 | ac_help="$ac_help | |
211 | --enable-notebook use wxNotebook class" | |
212 | ac_help="$ac_help | |
213 | --enable-radiobox use wxRadioBox class" | |
214 | ac_help="$ac_help | |
215 | --enable-radiobtn use wxRadioButton class" | |
216 | ac_help="$ac_help | |
217 | --enable-sash use wxSashWindow class" | |
218 | ac_help="$ac_help | |
219 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
220 | ac_help="$ac_help | |
221 | --enable-slider use wxSlider class" | |
222 | ac_help="$ac_help | |
223 | --enable-spinbtn use wxSpinButton class" | |
224 | ac_help="$ac_help | |
225 | --enable-splitter use wxSplitterWindow class" | |
226 | ac_help="$ac_help | |
227 | --enable-statbmp use wxStaticBitmap class" | |
228 | ac_help="$ac_help | |
229 | --enable-statbox use wxStaticBox class" | |
230 | ac_help="$ac_help | |
231 | --enable-statline use wxStaticLine class" | |
232 | ac_help="$ac_help | |
233 | --enable-statusbar use wxStatusBar class" | |
234 | ac_help="$ac_help | |
235 | --enable-tabdialog use wxTabControl class" | |
236 | ac_help="$ac_help | |
237 | --enable-toolbar use wxToolBar class" | |
238 | ac_help="$ac_help | |
239 | --enable-treectrl use wxTreeCtrl class" | |
240 | ac_help="$ac_help | |
241 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
242 | ac_help="$ac_help | |
243 | --enable-dirdlg use wxDirDialog" | |
244 | ac_help="$ac_help | |
245 | --enable-textdlg use wxTextDialog" | |
246 | ac_help="$ac_help | |
247 | --enable-tipdlg use startup tips" | |
248 | ac_help="$ac_help | |
249 | --enable-progressdlg use wxProgressDialog" | |
250 | ac_help="$ac_help | |
251 | --enable-miniframe use wxMiniFrame class" | |
252 | ac_help="$ac_help | |
253 | --enable-html use wxHTML sub-library" | |
254 | ac_help="$ac_help | |
255 | --enable-tooltips use wxToolTip class" | |
256 | ac_help="$ac_help | |
257 | --enable-splines use spline drawing code" | |
258 | ac_help="$ac_help | |
259 | --enable-validators use wxValidator and derived classes" | |
260 | ac_help="$ac_help | |
261 | --enable-busyinfo use wxBusyInfo" | |
1c8515f9 KB |
262 | ac_help="$ac_help |
263 | --enable-gif use gif images (GIF file format)" | |
264 | ac_help="$ac_help | |
265 | --enable-pcx use pcx images (PCX file format)" | |
266 | ac_help="$ac_help | |
267 | --enable-pnm use pnm images (PNM file format)" | |
a16d3c04 KB |
268 | |
269 | # Initialize some variables set by options. | |
270 | # The variables have the same names as the options, with | |
271 | # dashes changed to underlines. | |
272 | build=NONE | |
273 | cache_file=./config.cache | |
274 | exec_prefix=NONE | |
275 | host=NONE | |
276 | no_create= | |
277 | nonopt=NONE | |
278 | no_recursion= | |
279 | prefix=NONE | |
280 | program_prefix=NONE | |
281 | program_suffix=NONE | |
282 | program_transform_name=s,x,x, | |
283 | silent= | |
284 | site= | |
285 | srcdir= | |
286 | target=NONE | |
287 | verbose= | |
288 | x_includes=NONE | |
289 | x_libraries=NONE | |
290 | bindir='${exec_prefix}/bin' | |
291 | sbindir='${exec_prefix}/sbin' | |
292 | libexecdir='${exec_prefix}/libexec' | |
293 | datadir='${prefix}/share' | |
294 | sysconfdir='${prefix}/etc' | |
295 | sharedstatedir='${prefix}/com' | |
296 | localstatedir='${prefix}/var' | |
297 | libdir='${exec_prefix}/lib' | |
298 | includedir='${prefix}/include' | |
299 | oldincludedir='/usr/include' | |
300 | infodir='${prefix}/info' | |
301 | mandir='${prefix}/man' | |
302 | ||
303 | # Initialize some other variables. | |
304 | subdirs= | |
305 | MFLAGS= MAKEFLAGS= | |
0709ee62 | 306 | SHELL=${CONFIG_SHELL-/bin/sh} |
a16d3c04 KB |
307 | # Maximum number of lines to put in a shell here document. |
308 | ac_max_here_lines=12 | |
309 | ||
310 | ac_prev= | |
311 | for ac_option | |
312 | do | |
313 | ||
314 | # If the previous option needs an argument, assign it. | |
315 | if test -n "$ac_prev"; then | |
316 | eval "$ac_prev=\$ac_option" | |
317 | ac_prev= | |
318 | continue | |
319 | fi | |
320 | ||
321 | case "$ac_option" in | |
322 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
323 | *) ac_optarg= ;; | |
324 | esac | |
325 | ||
326 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
327 | ||
328 | case "$ac_option" in | |
329 | ||
330 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
331 | ac_prev=bindir ;; | |
332 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
333 | bindir="$ac_optarg" ;; | |
334 | ||
335 | -build | --build | --buil | --bui | --bu) | |
336 | ac_prev=build ;; | |
337 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
338 | build="$ac_optarg" ;; | |
339 | ||
340 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
341 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
342 | ac_prev=cache_file ;; | |
343 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
344 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
345 | cache_file="$ac_optarg" ;; | |
346 | ||
347 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
348 | ac_prev=datadir ;; | |
349 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
350 | | --da=*) | |
351 | datadir="$ac_optarg" ;; | |
352 | ||
353 | -disable-* | --disable-*) | |
354 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
355 | # Reject names that are not valid shell variable names. | |
356 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
357 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
358 | fi | |
359 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
360 | eval "enable_${ac_feature}=no" ;; | |
361 | ||
362 | -enable-* | --enable-*) | |
363 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
364 | # Reject names that are not valid shell variable names. | |
365 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
366 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
367 | fi | |
368 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
369 | case "$ac_option" in | |
370 | *=*) ;; | |
371 | *) ac_optarg=yes ;; | |
372 | esac | |
373 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
374 | ||
375 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
376 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
377 | | --exec | --exe | --ex) | |
378 | ac_prev=exec_prefix ;; | |
379 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
380 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
381 | | --exec=* | --exe=* | --ex=*) | |
382 | exec_prefix="$ac_optarg" ;; | |
383 | ||
384 | -gas | --gas | --ga | --g) | |
385 | # Obsolete; use --with-gas. | |
386 | with_gas=yes ;; | |
387 | ||
388 | -help | --help | --hel | --he) | |
389 | # Omit some internal or obsolete options to make the list less imposing. | |
390 | # This message is too long to be a string in the A/UX 3.1 sh. | |
391 | cat << EOF | |
392 | Usage: configure [options] [host] | |
393 | Options: [defaults in brackets after descriptions] | |
394 | Configuration: | |
395 | --cache-file=FILE cache test results in FILE | |
396 | --help print this message | |
397 | --no-create do not create output files | |
398 | --quiet, --silent do not print \`checking...' messages | |
399 | --version print the version of autoconf that created configure | |
400 | Directory and file names: | |
401 | --prefix=PREFIX install architecture-independent files in PREFIX | |
402 | [$ac_default_prefix] | |
403 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
404 | [same as prefix] | |
405 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
406 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
407 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
408 | --datadir=DIR read-only architecture-independent data in DIR | |
409 | [PREFIX/share] | |
410 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
411 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
412 | [PREFIX/com] | |
413 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
414 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
415 | --includedir=DIR C header files in DIR [PREFIX/include] | |
416 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
417 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
418 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
419 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
420 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
421 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
422 | --program-transform-name=PROGRAM | |
423 | run sed PROGRAM on installed program names | |
424 | EOF | |
425 | cat << EOF | |
426 | Host type: | |
427 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
428 | --host=HOST configure for HOST [guessed] | |
429 | --target=TARGET configure for TARGET [TARGET=HOST] | |
430 | Features and packages: | |
431 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
432 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
433 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
434 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
435 | --x-includes=DIR X include files are in DIR | |
436 | --x-libraries=DIR X library files are in DIR | |
437 | EOF | |
438 | if test -n "$ac_help"; then | |
439 | echo "--enable and --with options recognized:$ac_help" | |
440 | fi | |
441 | exit 0 ;; | |
442 | ||
443 | -host | --host | --hos | --ho) | |
444 | ac_prev=host ;; | |
445 | -host=* | --host=* | --hos=* | --ho=*) | |
446 | host="$ac_optarg" ;; | |
447 | ||
448 | -includedir | --includedir | --includedi | --included | --include \ | |
449 | | --includ | --inclu | --incl | --inc) | |
450 | ac_prev=includedir ;; | |
451 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
452 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
453 | includedir="$ac_optarg" ;; | |
454 | ||
455 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
456 | ac_prev=infodir ;; | |
457 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
458 | infodir="$ac_optarg" ;; | |
459 | ||
460 | -libdir | --libdir | --libdi | --libd) | |
461 | ac_prev=libdir ;; | |
462 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
463 | libdir="$ac_optarg" ;; | |
464 | ||
465 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
466 | | --libexe | --libex | --libe) | |
467 | ac_prev=libexecdir ;; | |
468 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
469 | | --libexe=* | --libex=* | --libe=*) | |
470 | libexecdir="$ac_optarg" ;; | |
471 | ||
472 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
473 | | --localstate | --localstat | --localsta | --localst \ | |
474 | | --locals | --local | --loca | --loc | --lo) | |
475 | ac_prev=localstatedir ;; | |
476 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
477 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
478 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
479 | localstatedir="$ac_optarg" ;; | |
480 | ||
481 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
482 | ac_prev=mandir ;; | |
483 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
484 | mandir="$ac_optarg" ;; | |
485 | ||
486 | -nfp | --nfp | --nf) | |
487 | # Obsolete; use --without-fp. | |
488 | with_fp=no ;; | |
489 | ||
490 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
491 | | --no-cr | --no-c) | |
492 | no_create=yes ;; | |
493 | ||
494 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
495 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
496 | no_recursion=yes ;; | |
497 | ||
498 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
499 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
500 | | --oldin | --oldi | --old | --ol | --o) | |
501 | ac_prev=oldincludedir ;; | |
502 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
503 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
504 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
505 | oldincludedir="$ac_optarg" ;; | |
506 | ||
507 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
508 | ac_prev=prefix ;; | |
509 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
510 | prefix="$ac_optarg" ;; | |
511 | ||
512 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
513 | | --program-pre | --program-pr | --program-p) | |
514 | ac_prev=program_prefix ;; | |
515 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
516 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
517 | program_prefix="$ac_optarg" ;; | |
518 | ||
519 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
520 | | --program-suf | --program-su | --program-s) | |
521 | ac_prev=program_suffix ;; | |
522 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
523 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
524 | program_suffix="$ac_optarg" ;; | |
525 | ||
526 | -program-transform-name | --program-transform-name \ | |
527 | | --program-transform-nam | --program-transform-na \ | |
528 | | --program-transform-n | --program-transform- \ | |
529 | | --program-transform | --program-transfor \ | |
530 | | --program-transfo | --program-transf \ | |
531 | | --program-trans | --program-tran \ | |
532 | | --progr-tra | --program-tr | --program-t) | |
533 | ac_prev=program_transform_name ;; | |
534 | -program-transform-name=* | --program-transform-name=* \ | |
535 | | --program-transform-nam=* | --program-transform-na=* \ | |
536 | | --program-transform-n=* | --program-transform-=* \ | |
537 | | --program-transform=* | --program-transfor=* \ | |
538 | | --program-transfo=* | --program-transf=* \ | |
539 | | --program-trans=* | --program-tran=* \ | |
540 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
541 | program_transform_name="$ac_optarg" ;; | |
542 | ||
543 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
544 | | -silent | --silent | --silen | --sile | --sil) | |
545 | silent=yes ;; | |
546 | ||
547 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
548 | ac_prev=sbindir ;; | |
549 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
550 | | --sbi=* | --sb=*) | |
551 | sbindir="$ac_optarg" ;; | |
552 | ||
553 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
554 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
555 | | --sharedst | --shareds | --shared | --share | --shar \ | |
556 | | --sha | --sh) | |
557 | ac_prev=sharedstatedir ;; | |
558 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
559 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
560 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
561 | | --sha=* | --sh=*) | |
562 | sharedstatedir="$ac_optarg" ;; | |
563 | ||
564 | -site | --site | --sit) | |
565 | ac_prev=site ;; | |
566 | -site=* | --site=* | --sit=*) | |
567 | site="$ac_optarg" ;; | |
568 | ||
569 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
570 | ac_prev=srcdir ;; | |
571 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
572 | srcdir="$ac_optarg" ;; | |
573 | ||
574 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
575 | | --syscon | --sysco | --sysc | --sys | --sy) | |
576 | ac_prev=sysconfdir ;; | |
577 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
578 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
579 | sysconfdir="$ac_optarg" ;; | |
580 | ||
581 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
582 | ac_prev=target ;; | |
583 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
584 | target="$ac_optarg" ;; | |
585 | ||
586 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
587 | verbose=yes ;; | |
588 | ||
589 | -version | --version | --versio | --versi | --vers) | |
0709ee62 | 590 | echo "configure generated by autoconf version 2.13" |
a16d3c04 KB |
591 | exit 0 ;; |
592 | ||
593 | -with-* | --with-*) | |
594 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
595 | # Reject names that are not valid shell variable names. | |
596 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
597 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
598 | fi | |
599 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
600 | case "$ac_option" in | |
601 | *=*) ;; | |
602 | *) ac_optarg=yes ;; | |
603 | esac | |
604 | eval "with_${ac_package}='$ac_optarg'" ;; | |
605 | ||
606 | -without-* | --without-*) | |
607 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
608 | # Reject names that are not valid shell variable names. | |
609 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
610 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
611 | fi | |
612 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
613 | eval "with_${ac_package}=no" ;; | |
614 | ||
615 | --x) | |
616 | # Obsolete; use --with-x. | |
617 | with_x=yes ;; | |
618 | ||
619 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
620 | | --x-incl | --x-inc | --x-in | --x-i) | |
621 | ac_prev=x_includes ;; | |
622 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
623 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
624 | x_includes="$ac_optarg" ;; | |
625 | ||
626 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
627 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
628 | ac_prev=x_libraries ;; | |
629 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
630 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
631 | x_libraries="$ac_optarg" ;; | |
632 | ||
633 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
634 | ;; | |
635 | ||
636 | *) | |
637 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
638 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
639 | fi | |
640 | if test "x$nonopt" != xNONE; then | |
641 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
642 | fi | |
643 | nonopt="$ac_option" | |
644 | ;; | |
645 | ||
646 | esac | |
647 | done | |
648 | ||
649 | if test -n "$ac_prev"; then | |
650 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
651 | fi | |
652 | ||
653 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
654 | ||
655 | # File descriptor usage: | |
656 | # 0 standard input | |
657 | # 1 file creation | |
658 | # 2 errors and warnings | |
659 | # 3 some systems may open it to /dev/tty | |
660 | # 4 used on the Kubota Titan | |
661 | # 6 checking for... messages and results | |
662 | # 5 compiler messages saved in config.log | |
663 | if test "$silent" = yes; then | |
664 | exec 6>/dev/null | |
665 | else | |
666 | exec 6>&1 | |
667 | fi | |
668 | exec 5>./config.log | |
669 | ||
670 | echo "\ | |
671 | This file contains any messages produced by compilers while | |
672 | running configure, to aid debugging if configure makes a mistake. | |
673 | " 1>&5 | |
674 | ||
675 | # Strip out --no-create and --no-recursion so they do not pile up. | |
676 | # Also quote any args containing shell metacharacters. | |
677 | ac_configure_args= | |
678 | for ac_arg | |
679 | do | |
680 | case "$ac_arg" in | |
681 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
682 | | --no-cr | --no-c) ;; | |
683 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
684 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
685 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
686 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
687 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
688 | esac | |
689 | done | |
690 | ||
691 | # NLS nuisances. | |
692 | # Only set these to C if already set. These must not be set unconditionally | |
693 | # because not all systems understand e.g. LANG=C (notably SCO). | |
694 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
695 | # Non-C LC_CTYPE values break the ctype check. | |
696 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
697 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
698 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
699 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
700 | ||
701 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
702 | rm -rf conftest* confdefs.h | |
703 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
704 | echo > confdefs.h | |
705 | ||
706 | # A filename unique to this package, relative to the directory that | |
707 | # configure is in, which we can look for to find out if srcdir is correct. | |
708 | ac_unique_file=wx-config.in | |
709 | ||
710 | # Find the source files, if location was not specified. | |
711 | if test -z "$srcdir"; then | |
712 | ac_srcdir_defaulted=yes | |
713 | # Try the directory containing this script, then its parent. | |
714 | ac_prog=$0 | |
715 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
716 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
717 | srcdir=$ac_confdir | |
718 | if test ! -r $srcdir/$ac_unique_file; then | |
719 | srcdir=.. | |
720 | fi | |
721 | else | |
722 | ac_srcdir_defaulted=no | |
723 | fi | |
724 | if test ! -r $srcdir/$ac_unique_file; then | |
725 | if test "$ac_srcdir_defaulted" = yes; then | |
726 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
727 | else | |
728 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
729 | fi | |
730 | fi | |
731 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
732 | ||
733 | # Prefer explicitly selected file to automatically selected ones. | |
734 | if test -z "$CONFIG_SITE"; then | |
735 | if test "x$prefix" != xNONE; then | |
736 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
737 | else | |
738 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
739 | fi | |
740 | fi | |
741 | for ac_site_file in $CONFIG_SITE; do | |
742 | if test -r "$ac_site_file"; then | |
743 | echo "loading site script $ac_site_file" | |
744 | . "$ac_site_file" | |
745 | fi | |
746 | done | |
747 | ||
748 | if test -r "$cache_file"; then | |
749 | echo "loading cache $cache_file" | |
750 | . $cache_file | |
751 | else | |
752 | echo "creating cache $cache_file" | |
753 | > $cache_file | |
754 | fi | |
755 | ||
756 | ac_ext=c | |
757 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
758 | ac_cpp='$CPP $CPPFLAGS' | |
759 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 760 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
761 | cross_compiling=$ac_cv_prog_cc_cross |
762 | ||
0709ee62 VZ |
763 | ac_exeext= |
764 | ac_objext=o | |
a16d3c04 KB |
765 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
766 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
767 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
768 | ac_n= ac_c=' | |
769 | ' ac_t=' ' | |
770 | else | |
771 | ac_n=-n ac_c= ac_t= | |
772 | fi | |
773 | else | |
774 | ac_n= ac_c='\c' ac_t= | |
775 | fi | |
776 | ||
777 | ||
778 | ||
779 | ac_aux_dir= | |
780 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
781 | if test -f $ac_dir/install-sh; then | |
782 | ac_aux_dir=$ac_dir | |
783 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
784 | break | |
785 | elif test -f $ac_dir/install.sh; then | |
786 | ac_aux_dir=$ac_dir | |
787 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
788 | break | |
789 | fi | |
790 | done | |
791 | if test -z "$ac_aux_dir"; then | |
792 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
793 | fi | |
794 | ac_config_guess=$ac_aux_dir/config.guess | |
795 | ac_config_sub=$ac_aux_dir/config.sub | |
796 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
797 | ||
798 | ||
799 | # Do some error checking and defaulting for the host and target type. | |
800 | # The inputs are: | |
801 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
802 | # | |
803 | # The rules are: | |
804 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
805 | # same time. | |
806 | # 2. Host defaults to nonopt. | |
807 | # 3. If nonopt is not specified, then host defaults to the current host, | |
808 | # as determined by config.guess. | |
809 | # 4. Target and build default to nonopt. | |
810 | # 5. If nonopt is not specified, then target and build default to host. | |
811 | ||
812 | # The aliases save the names the user supplied, while $host etc. | |
813 | # will get canonicalized. | |
814 | case $host---$target---$nonopt in | |
815 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
816 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
817 | esac | |
818 | ||
819 | ||
820 | # Make sure we can run config.sub. | |
0709ee62 | 821 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
a16d3c04 KB |
822 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
823 | fi | |
824 | ||
825 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
d607e6c3 | 826 | echo "configure:827: checking host system type" >&5 |
a16d3c04 KB |
827 | |
828 | host_alias=$host | |
829 | case "$host_alias" in | |
830 | NONE) | |
831 | case $nonopt in | |
832 | NONE) | |
0709ee62 | 833 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
a16d3c04 KB |
834 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
835 | fi ;; | |
836 | *) host_alias=$nonopt ;; | |
837 | esac ;; | |
838 | esac | |
839 | ||
0709ee62 | 840 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
a16d3c04 KB |
841 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
842 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
843 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
844 | echo "$ac_t""$host" 1>&6 | |
845 | ||
846 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
d607e6c3 | 847 | echo "configure:848: checking target system type" >&5 |
a16d3c04 KB |
848 | |
849 | target_alias=$target | |
850 | case "$target_alias" in | |
851 | NONE) | |
852 | case $nonopt in | |
853 | NONE) target_alias=$host_alias ;; | |
854 | *) target_alias=$nonopt ;; | |
855 | esac ;; | |
856 | esac | |
857 | ||
0709ee62 | 858 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
a16d3c04 KB |
859 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
860 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
861 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
862 | echo "$ac_t""$target" 1>&6 | |
863 | ||
864 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
d607e6c3 | 865 | echo "configure:866: checking build system type" >&5 |
a16d3c04 KB |
866 | |
867 | build_alias=$build | |
868 | case "$build_alias" in | |
869 | NONE) | |
870 | case $nonopt in | |
871 | NONE) build_alias=$host_alias ;; | |
872 | *) build_alias=$nonopt ;; | |
873 | esac ;; | |
874 | esac | |
875 | ||
0709ee62 | 876 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
a16d3c04 KB |
877 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
878 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
879 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
880 | echo "$ac_t""$build" 1>&6 | |
881 | ||
882 | test "$host_alias" != "$target_alias" && | |
883 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
884 | NONENONEs,x,x, && | |
885 | program_prefix=${target_alias}- | |
886 | ||
887 | ||
888 | ||
889 | WX_MAJOR_VERSION_NUMBER=2 | |
890 | WX_MINOR_VERSION_NUMBER=1 | |
0709ee62 | 891 | WX_RELEASE_NUMBER=10 |
a16d3c04 KB |
892 | |
893 | WX_INTERFACE_AGE=0 | |
894 | WX_BINARY_AGE=0 | |
895 | ||
896 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
897 | ||
898 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
899 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
900 | WX_REVISION=$WX_INTERFACE_AGE | |
901 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
902 | ||
903 | ||
904 | USE_UNIX=1 | |
4882bf1b | 905 | USE_WIN32=0 |
a16d3c04 KB |
906 | USE_LINUX= |
907 | USE_SGI= | |
908 | USE_HPUX= | |
909 | USE_SYSV= | |
910 | USE_SVR4= | |
911 | USE_AIX= | |
912 | USE_SUN= | |
913 | USE_SOLARIS= | |
914 | USE_SUNOS= | |
915 | USE_ALPHA= | |
916 | USE_OSF= | |
917 | USE_BSD= | |
918 | USE_FREEBSD= | |
919 | USE_VMS= | |
920 | USE_ULTRIX= | |
921 | USE_CYGWIN= | |
922 | USE_MINGW= | |
923 | USE_DATA_GENERAL= | |
924 | ||
925 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" | |
926 | ||
927 | DEFAULT_wxUSE_GTK=0 | |
928 | DEFAULT_wxUSE_MOTIF=0 | |
929 | DEFAULT_wxUSE_MSW=0 | |
930 | DEFAULT_wxUSE_WINE=0 | |
931 | ||
932 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
933 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
934 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
935 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
936 | ||
937 | case "${host}" in | |
938 | *-hp-hpux* ) | |
939 | USE_HPUX=1 | |
940 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
941 | cat >> confdefs.h <<\EOF | |
942 | #define __HPUX__ 1 | |
943 | EOF | |
944 | ||
945 | ;; | |
946 | *-*-linux* ) | |
947 | USE_LINUX=1 | |
948 | cat >> confdefs.h <<\EOF | |
949 | #define __LINUX__ 1 | |
950 | EOF | |
951 | ||
952 | TMP=`uname -m` | |
953 | if test "x$TMP" = "xalpha"; then | |
954 | USE_ALPHA=1 | |
955 | cat >> confdefs.h <<\EOF | |
956 | #define __ALPHA__ 1 | |
957 | EOF | |
958 | ||
959 | fi | |
960 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
961 | ;; | |
962 | *-*-irix5* | *-*-irix6* ) | |
963 | USE_SGI=1 | |
964 | USE_SVR4=1 | |
965 | cat >> confdefs.h <<\EOF | |
966 | #define __SGI__ 1 | |
967 | EOF | |
968 | ||
969 | cat >> confdefs.h <<\EOF | |
970 | #define __SVR4__ 1 | |
971 | EOF | |
972 | ||
973 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
974 | ;; | |
975 | *-*-solaris2* ) | |
976 | USE_SUN=1 | |
977 | USE_SOLARIS=1 | |
978 | USE_SVR4=1 | |
979 | cat >> confdefs.h <<\EOF | |
980 | #define __SUN__ 1 | |
981 | EOF | |
982 | ||
983 | cat >> confdefs.h <<\EOF | |
984 | #define __SOLARIS__ 1 | |
985 | EOF | |
986 | ||
987 | cat >> confdefs.h <<\EOF | |
988 | #define __SVR4__ 1 | |
989 | EOF | |
990 | ||
991 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
992 | ;; | |
993 | *-*-sunos4* ) | |
994 | USE_SUN=1 | |
995 | USE_SUNOS=1 | |
996 | USE_BSD=1 | |
997 | cat >> confdefs.h <<\EOF | |
998 | #define __SUN__ 1 | |
999 | EOF | |
1000 | ||
1001 | cat >> confdefs.h <<\EOF | |
1002 | #define __SUNOS__ 1 | |
1003 | EOF | |
1004 | ||
1005 | cat >> confdefs.h <<\EOF | |
1006 | #define __BSD__ 1 | |
1007 | EOF | |
1008 | ||
1009 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1010 | ;; | |
1011 | *-*-freebsd* | *-*-netbsd*) | |
1012 | USE_BSD=1 | |
1013 | USE_FREEBSD=1 | |
1014 | cat >> confdefs.h <<\EOF | |
1015 | #define __FREEBSD__ 1 | |
1016 | EOF | |
1017 | ||
1018 | cat >> confdefs.h <<\EOF | |
1019 | #define __BSD__ 1 | |
1020 | EOF | |
1021 | ||
1022 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1023 | ;; | |
1024 | *-*-osf* ) | |
1025 | USE_ALPHA=1 | |
1026 | USE_OSF=1 | |
1027 | cat >> confdefs.h <<\EOF | |
1028 | #define __ALPHA__ 1 | |
1029 | EOF | |
1030 | ||
1031 | cat >> confdefs.h <<\EOF | |
1032 | #define __OSF__ 1 | |
1033 | EOF | |
1034 | ||
1035 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1036 | ;; | |
1037 | *-*-dgux5* ) | |
1038 | USE_ALPHA=1 | |
1039 | USE_SVR4=1 | |
1040 | cat >> confdefs.h <<\EOF | |
1041 | #define __ALPHA__ 1 | |
1042 | EOF | |
1043 | ||
1044 | cat >> confdefs.h <<\EOF | |
1045 | #define __SVR4__ 1 | |
1046 | EOF | |
1047 | ||
1048 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1049 | ;; | |
1050 | *-*-sysv5* ) | |
1051 | USE_SYSV=1 | |
1052 | USE_SVR4=1 | |
1053 | cat >> confdefs.h <<\EOF | |
1054 | #define __SYSV__ 1 | |
1055 | EOF | |
1056 | ||
1057 | cat >> confdefs.h <<\EOF | |
1058 | #define __SVR4__ 1 | |
1059 | EOF | |
1060 | ||
1061 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1062 | ;; | |
1063 | *-*-aix* ) | |
1064 | USE_AIX=1 | |
1065 | USE_SYSV=1 | |
1066 | USE_SVR4=1 | |
1067 | cat >> confdefs.h <<\EOF | |
1068 | #define __AIX__ 1 | |
1069 | EOF | |
1070 | ||
1071 | cat >> confdefs.h <<\EOF | |
1072 | #define __SYSV__ 1 | |
1073 | EOF | |
1074 | ||
1075 | cat >> confdefs.h <<\EOF | |
1076 | #define __SVR4__ 1 | |
1077 | EOF | |
1078 | ||
1079 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1080 | ;; | |
1081 | ||
1082 | *-*-cygwin32* ) | |
1083 | USE_UNIX=0 | |
4882bf1b | 1084 | USE_WIN32=1 |
a16d3c04 KB |
1085 | cat >> confdefs.h <<\EOF |
1086 | #define __WIN32__ 1 | |
1087 | EOF | |
1088 | ||
1089 | cat >> confdefs.h <<\EOF | |
1090 | #define __WIN95__ 1 | |
1091 | EOF | |
1092 | ||
1093 | cat >> confdefs.h <<\EOF | |
1094 | #define __WINDOWS__ 1 | |
1095 | EOF | |
1096 | ||
1097 | cat >> confdefs.h <<\EOF | |
1098 | #define __GNUWIN32__ 1 | |
1099 | EOF | |
1100 | ||
1101 | cat >> confdefs.h <<\EOF | |
1102 | #define STRICT 1 | |
1103 | EOF | |
1104 | ||
1105 | cat >> confdefs.h <<\EOF | |
1106 | #define WINVER 0x0400 | |
1107 | EOF | |
1108 | ||
1109 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1110 | ;; | |
1111 | *-*-mingw32* ) | |
1112 | USE_UNIX=0 | |
4882bf1b | 1113 | USE_WIN32=1 |
a16d3c04 KB |
1114 | cat >> confdefs.h <<\EOF |
1115 | #define __WIN32__ 1 | |
1116 | EOF | |
1117 | ||
1118 | cat >> confdefs.h <<\EOF | |
1119 | #define __WIN95__ 1 | |
1120 | EOF | |
1121 | ||
1122 | cat >> confdefs.h <<\EOF | |
1123 | #define __WINDOWS__ 1 | |
1124 | EOF | |
1125 | ||
1126 | cat >> confdefs.h <<\EOF | |
1127 | #define __GNUWIN32__ 1 | |
1128 | EOF | |
1129 | ||
1130 | cat >> confdefs.h <<\EOF | |
1131 | #define STRICT 1 | |
1132 | EOF | |
1133 | ||
1134 | cat >> confdefs.h <<\EOF | |
1135 | #define WINVER 0x0400 | |
1136 | EOF | |
1137 | ||
1138 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1139 | ;; | |
1140 | ||
1141 | *-pc-os2_emx ) | |
1142 | cat >> confdefs.h <<\EOF | |
1143 | #define __EMX__ 1 | |
1144 | EOF | |
1145 | ||
1146 | ;; | |
1147 | ||
1148 | *) | |
1149 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1150 | esac | |
1151 | ||
1152 | if test "$USE_UNIX" = 1 ; then | |
1153 | wxUSE_UNIX=yes | |
1154 | cat >> confdefs.h <<\EOF | |
1155 | #define __UNIX__ 1 | |
1156 | EOF | |
1157 | ||
1158 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1159 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1160 | fi | |
1161 | ||
1162 | if test "$USE_LINUX" = 1; then | |
1163 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
d607e6c3 | 1164 | echo "configure:1165: checking for gettext in -lc" >&5 |
a16d3c04 KB |
1165 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1166 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1168 | else | |
1169 | ac_save_LIBS="$LIBS" | |
1170 | LIBS="-lc $LIBS" | |
1171 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 1172 | #line 1173 "configure" |
a16d3c04 KB |
1173 | #include "confdefs.h" |
1174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1175 | /* We use char because int might match the return type of a gcc2 | |
1176 | builtin and then its argument prototype would still apply. */ | |
1177 | char gettext(); | |
1178 | ||
1179 | int main() { | |
1180 | gettext() | |
1181 | ; return 0; } | |
1182 | EOF | |
d607e6c3 | 1183 | if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
1184 | rm -rf conftest* |
1185 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1186 | else | |
1187 | echo "configure: failed program was:" >&5 | |
1188 | cat conftest.$ac_ext >&5 | |
1189 | rm -rf conftest* | |
1190 | eval "ac_cv_lib_$ac_lib_var=no" | |
1191 | fi | |
1192 | rm -f conftest* | |
1193 | LIBS="$ac_save_LIBS" | |
1194 | ||
1195 | fi | |
1196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1197 | echo "$ac_t""yes" 1>&6 | |
1198 | cat >> confdefs.h <<\EOF | |
1199 | #define wxHAVE_GLIBC2 1 | |
1200 | EOF | |
1201 | ||
1202 | else | |
1203 | echo "$ac_t""no" 1>&6 | |
1204 | fi | |
1205 | ||
1206 | fi | |
1207 | ||
1208 | ||
1209 | ||
1210 | ||
1211 | wx_arg_cache_file="configarg.cache" | |
1212 | echo "loading argument cache $wx_arg_cache_file" | |
1213 | rm -f ${wx_arg_cache_file}.tmp | |
1214 | touch ${wx_arg_cache_file}.tmp | |
1215 | touch ${wx_arg_cache_file} | |
1216 | ||
1217 | ||
1218 | DEBUG_CONFIGURE=0 | |
1219 | if test $DEBUG_CONFIGURE = 1; then | |
1220 | DEFAULT_wxUSE_THREADS=yes | |
1221 | ||
1222 | DEFAULT_wxUSE_SHARED=yes | |
1223 | DEFAULT_wxUSE_OPTIMISE=yes | |
1224 | DEFAULT_wxUSE_PROFILE=no | |
1225 | DEFAULT_wxUSE_NO_DEPS=no | |
1226 | DEFAULT_wxUSE_NO_RTTI=no | |
1227 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1228 | DEFAULT_wxUSE_PERMISSIVE=no | |
1229 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1230 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1231 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1232 | DEFAULT_wxUSE_MEM_TRACING=no | |
1233 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1234 | DEFAULT_wxUSE_DMALLOC=no | |
1235 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1236 | ||
1237 | DEFAULT_wxUSE_LOG=yes | |
1238 | ||
1239 | DEFAULT_wxUSE_GUI=yes | |
1240 | ||
1241 | DEFAULT_wxUSE_ZLIB=no | |
1242 | DEFAULT_wxUSE_LIBPNG=no | |
a16d3c04 KB |
1243 | DEFAULT_wxUSE_LIBJPEG=no |
1244 | DEFAULT_wxUSE_ODBC=no | |
1245 | ||
1246 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1247 | DEFAULT_wxUSE_FILE=no | |
1248 | DEFAULT_wxUSE_TEXTFILE=no | |
1249 | DEFAULT_wxUSE_TIMEDATE=no | |
1250 | DEFAULT_wxUSE_WAVE=no | |
1251 | DEFAULT_wxUSE_INTL=no | |
1252 | DEFAULT_wxUSE_CONFIG=no | |
1253 | DEFAULT_wxUSE_STREAMS=no | |
1254 | DEFAULT_wxUSE_SOCKETS=no | |
1c8515f9 | 1255 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
a16d3c04 KB |
1256 | DEFAULT_wxUSE_SERIAL=no |
1257 | DEFAULT_wxUSE_JOYSTICK=no | |
1258 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1259 | DEFAULT_wxUSE_LONGLONG=no | |
1260 | ||
1261 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1262 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1263 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1264 | ||
1265 | DEFAULT_wxUSE_X_RESOURCES=no | |
1266 | DEFAULT_wxUSE_CLIPBOARD=no | |
1267 | DEFAULT_wxUSE_TOOLTIPS=no | |
1268 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1269 | DEFAULT_wxUSE_SPLINES=no | |
1270 | ||
1271 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1272 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1273 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1274 | ||
1275 | DEFAULT_wxUSE_PROLOGIO=no | |
1276 | DEFAULT_wxUSE_RESOURCES=no | |
1277 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1278 | DEFAULT_wxUSE_IPC=no | |
1279 | DEFAULT_wxUSE_HELP=no | |
1280 | DEFAULT_wxUSE_WXTREE=no | |
1281 | DEFAULT_wxUSE_METAFILE=no | |
1282 | ||
1283 | DEFAULT_wxUSE_COMMONDLGS=no | |
1284 | DEFAULT_wxUSE_DIRDLG=no | |
1285 | DEFAULT_wxUSE_TEXTDLG=no | |
1286 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1287 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1288 | DEFAULT_wxUSE_MINIFRAME=no | |
1289 | DEFAULT_wxUSE_HTML=no | |
1290 | DEFAULT_wxUSE_FS_INET=no | |
1291 | DEFAULT_wxUSE_FS_ZIP=no | |
1292 | DEFAULT_wxUSE_BUSYINFO=no | |
1293 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1294 | DEFAULT_wxUSE_VALIDATORS=yes | |
1295 | ||
1296 | DEFAULT_wxUSE_ACCEL=no | |
1297 | DEFAULT_wxUSE_CARET=no | |
1298 | DEFAULT_wxUSE_BMPBUTTON=no | |
1299 | DEFAULT_wxUSE_CHECKBOX=no | |
1300 | DEFAULT_wxUSE_CHECKLST=no | |
1301 | DEFAULT_wxUSE_CHOICE=yes | |
1302 | DEFAULT_wxUSE_COMBOBOX=no | |
1303 | DEFAULT_wxUSE_GAUGE=no | |
1304 | DEFAULT_wxUSE_GRID=no | |
2726c66d | 1305 | DEFAULT_wxUSE_NEW_GRID=no |
a16d3c04 KB |
1306 | DEFAULT_wxUSE_IMAGLIST=no |
1307 | DEFAULT_wxUSE_LISTBOX=no | |
1308 | DEFAULT_wxUSE_LISTCTRL=no | |
1309 | DEFAULT_wxUSE_NOTEBOOK=no | |
1310 | DEFAULT_wxUSE_RADIOBOX=no | |
1311 | DEFAULT_wxUSE_RADIOBTN=no | |
1312 | DEFAULT_wxUSE_SASH=no | |
1313 | DEFAULT_wxUSE_SCROLLBAR=no | |
1314 | DEFAULT_wxUSE_SLIDER=no | |
1315 | DEFAULT_wxUSE_SPINBTN=no | |
1316 | DEFAULT_wxUSE_SPLITTER=no | |
1317 | DEFAULT_wxUSE_STATBMP=no | |
1318 | DEFAULT_wxUSE_STATBOX=no | |
1319 | DEFAULT_wxUSE_STATLINE=no | |
1320 | DEFAULT_wxUSE_STATUSBAR=yes | |
1321 | DEFAULT_wxUSE_TABDIALOG=no | |
1322 | DEFAULT_wxUSE_TOOLBAR=no | |
1323 | DEFAULT_wxUSE_TREECTRL=no | |
1324 | ||
1325 | DEFAULT_wxUSE_UNICODE=no | |
1326 | DEFAULT_wxUSE_WCSRTOMBS=no | |
f7a11f8c | 1327 | |
1c8515f9 KB |
1328 | DEFAULT_wxUSE_GIF=no |
1329 | DEFAULT_wxUSE_PCX=no | |
1330 | DEFAULT_wxUSE_PNM=no | |
a16d3c04 KB |
1331 | else |
1332 | DEFAULT_wxUSE_THREADS=yes | |
1333 | ||
1334 | DEFAULT_wxUSE_SHARED=yes | |
1335 | DEFAULT_wxUSE_OPTIMISE=yes | |
1336 | DEFAULT_wxUSE_PROFILE=no | |
1337 | DEFAULT_wxUSE_NO_DEPS=no | |
1338 | DEFAULT_wxUSE_NO_RTTI=no | |
1339 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1340 | DEFAULT_wxUSE_PERMISSIVE=no | |
1341 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1342 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1343 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1344 | DEFAULT_wxUSE_MEM_TRACING=no | |
1345 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1346 | DEFAULT_wxUSE_DMALLOC=no | |
1347 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1348 | ||
1349 | DEFAULT_wxUSE_LOG=yes | |
1350 | ||
1351 | DEFAULT_wxUSE_GUI=yes | |
1352 | ||
1353 | DEFAULT_wxUSE_ZLIB=yes | |
1354 | DEFAULT_wxUSE_LIBPNG=yes | |
a16d3c04 | 1355 | DEFAULT_wxUSE_LIBJPEG=yes |
2726c66d | 1356 | DEFAULT_wxUSE_ODBC=yes |
a16d3c04 KB |
1357 | |
1358 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1359 | DEFAULT_wxUSE_FILE=yes | |
1360 | DEFAULT_wxUSE_TEXTFILE=yes | |
1361 | DEFAULT_wxUSE_TIMEDATE=yes | |
1362 | DEFAULT_wxUSE_WAVE=no | |
1363 | DEFAULT_wxUSE_INTL=yes | |
1364 | DEFAULT_wxUSE_CONFIG=yes | |
1365 | DEFAULT_wxUSE_STREAMS=yes | |
1366 | DEFAULT_wxUSE_SOCKETS=yes | |
1c8515f9 | 1367 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
a16d3c04 KB |
1368 | DEFAULT_wxUSE_SERIAL=yes |
1369 | DEFAULT_wxUSE_JOYSTICK=yes | |
1370 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1371 | DEFAULT_wxUSE_LONGLONG=no | |
1372 | ||
1373 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1374 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1375 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1376 | ||
1377 | DEFAULT_wxUSE_X_RESOURCES=no | |
1378 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1379 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1380 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1381 | DEFAULT_wxUSE_SPLINES=yes | |
1382 | ||
1383 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1384 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1385 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1386 | ||
1387 | DEFAULT_wxUSE_PROLOGIO=yes | |
1388 | DEFAULT_wxUSE_RESOURCES=yes | |
1389 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1390 | DEFAULT_wxUSE_IPC=yes | |
1391 | DEFAULT_wxUSE_HELP=yes | |
1392 | DEFAULT_wxUSE_WXTREE=yes | |
1393 | DEFAULT_wxUSE_METAFILE=yes | |
1394 | ||
1395 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1396 | DEFAULT_wxUSE_DIRDLG=yes | |
1397 | DEFAULT_wxUSE_TEXTDLG=yes | |
1398 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1399 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1400 | DEFAULT_wxUSE_MINIFRAME=yes | |
1401 | DEFAULT_wxUSE_HTML=yes | |
1402 | DEFAULT_wxUSE_FS_INET=yes | |
1403 | DEFAULT_wxUSE_FS_ZIP=yes | |
1404 | DEFAULT_wxUSE_BUSYINFO=yes | |
1405 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1406 | DEFAULT_wxUSE_VALIDATORS=yes | |
1407 | ||
1408 | DEFAULT_wxUSE_ACCEL=yes | |
1409 | DEFAULT_wxUSE_CARET=yes | |
1410 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1411 | DEFAULT_wxUSE_CHECKBOX=yes | |
1412 | DEFAULT_wxUSE_CHECKLST=yes | |
1413 | DEFAULT_wxUSE_CHOICE=yes | |
1414 | DEFAULT_wxUSE_COMBOBOX=yes | |
1415 | DEFAULT_wxUSE_GAUGE=yes | |
1416 | DEFAULT_wxUSE_GRID=yes | |
2726c66d | 1417 | DEFAULT_wxUSE_NEW_GRID=yes |
a16d3c04 KB |
1418 | DEFAULT_wxUSE_IMAGLIST=yes |
1419 | DEFAULT_wxUSE_LISTBOX=yes | |
1420 | DEFAULT_wxUSE_LISTCTRL=yes | |
1421 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1422 | DEFAULT_wxUSE_RADIOBOX=yes | |
1423 | DEFAULT_wxUSE_RADIOBTN=yes | |
1424 | DEFAULT_wxUSE_SASH=yes | |
1425 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1426 | DEFAULT_wxUSE_SLIDER=yes | |
1427 | DEFAULT_wxUSE_SPINBTN=yes | |
1428 | DEFAULT_wxUSE_SPLITTER=yes | |
1429 | DEFAULT_wxUSE_STATBMP=yes | |
1430 | DEFAULT_wxUSE_STATBOX=yes | |
1431 | DEFAULT_wxUSE_STATLINE=yes | |
1432 | DEFAULT_wxUSE_STATUSBAR=yes | |
1433 | DEFAULT_wxUSE_TABDIALOG=no | |
1434 | DEFAULT_wxUSE_TOOLBAR=yes | |
1435 | DEFAULT_wxUSE_TREECTRL=yes | |
1436 | ||
1437 | DEFAULT_wxUSE_UNICODE=no | |
1438 | DEFAULT_wxUSE_WCSRTOMBS=no | |
f7a11f8c | 1439 | |
1c8515f9 KB |
1440 | DEFAULT_wxUSE_GIF=yes |
1441 | DEFAULT_wxUSE_PCX=yes | |
1442 | DEFAULT_wxUSE_PNM=yes | |
a16d3c04 KB |
1443 | fi |
1444 | ||
1445 | ||
1446 | ||
1447 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1448 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1449 | if test "x$LINE" != x ; then | |
1450 | has_toolkit_in_cache=1 | |
1451 | eval "DEFAULT_$LINE" | |
1452 | eval "CACHE_$toolkit=1" | |
1453 | fi | |
1454 | done | |
1455 | ||
f7a11f8c RR |
1456 | |
1457 | ||
1458 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
d607e6c3 | 1459 | echo "configure:1460: checking "for --enable-gui"" >&5 |
f7a11f8c RR |
1460 | no_cache=0 |
1461 | # Check whether --enable-gui or --disable-gui was given. | |
1462 | if test "${enable_gui+set}" = set; then | |
1463 | enableval="$enable_gui" | |
1464 | ||
1465 | if test "$enableval" = yes; then | |
1466 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1467 | else | |
1468 | ac_cv_use_gui='wxUSE_GUI=no' | |
1469 | fi | |
1470 | ||
1471 | else | |
1472 | ||
1473 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1474 | if test "x$LINE" != x ; then | |
1475 | eval "DEFAULT_$LINE" | |
1476 | else | |
1477 | no_cache=1 | |
1478 | fi | |
1479 | ||
1480 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1481 | ||
1482 | fi | |
1483 | ||
1484 | ||
1485 | eval "$ac_cv_use_gui" | |
1486 | if test "$no_cache" != 1; then | |
1487 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1488 | fi | |
1489 | ||
1490 | if test "$wxUSE_GUI" = yes; then | |
1491 | echo "$ac_t""yes" 1>&6 | |
1492 | else | |
1493 | echo "$ac_t""no" 1>&6 | |
1494 | fi | |
1495 | ||
1496 | ||
1497 | if test "$wxUSE_GUI" = "no"; then | |
1498 | DEFAULT_wxUSE_ZLIB=no | |
1499 | DEFAULT_wxUSE_LIBPNG=no | |
1500 | DEFAULT_wxUSE_LIBJPEG=no | |
1501 | DEFAULT_wxUSE_SOCKETS=no | |
1502 | DEFAULT_wxUSE_JOYSTICK=no | |
1503 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1504 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1505 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1506 | DEFAULT_wxUSE_X_RESOURCES=no | |
1507 | DEFAULT_wxUSE_CLIPBOARD=no | |
1508 | DEFAULT_wxUSE_TOOLTIPS=no | |
1509 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1510 | DEFAULT_wxUSE_SPLINES=no | |
1511 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1512 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1513 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1514 | DEFAULT_wxUSE_PROLOGIO=no | |
1515 | DEFAULT_wxUSE_RESOURCES=no | |
1516 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1517 | DEFAULT_wxUSE_IPC=no | |
1518 | DEFAULT_wxUSE_HELP=no | |
1519 | DEFAULT_wxUSE_WXTREE=no | |
1520 | DEFAULT_wxUSE_METAFILE=no | |
1521 | DEFAULT_wxUSE_COMMONDLGS=no | |
1522 | DEFAULT_wxUSE_DIRDLG=no | |
1523 | DEFAULT_wxUSE_TEXTDLG=no | |
1524 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1525 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1526 | DEFAULT_wxUSE_MINIFRAME=no | |
1527 | DEFAULT_wxUSE_HTML=no | |
1528 | DEFAULT_wxUSE_FS_INET=no | |
1529 | DEFAULT_wxUSE_FS_ZIP=no | |
1530 | DEFAULT_wxUSE_BUSYINFO=no | |
1531 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1532 | DEFAULT_wxUSE_VALIDATORS=yes | |
1533 | DEFAULT_wxUSE_ACCEL=no | |
1534 | DEFAULT_wxUSE_CARET=no | |
1535 | DEFAULT_wxUSE_BMPBUTTON=no | |
1536 | DEFAULT_wxUSE_CHECKBOX=no | |
1537 | DEFAULT_wxUSE_CHECKLST=no | |
1538 | DEFAULT_wxUSE_CHOICE=yes | |
1539 | DEFAULT_wxUSE_COMBOBOX=no | |
1540 | DEFAULT_wxUSE_GAUGE=no | |
1541 | DEFAULT_wxUSE_GRID=no | |
2726c66d | 1542 | DEFAULT_wxUSE_NEW_GRID=no |
f7a11f8c RR |
1543 | DEFAULT_wxUSE_IMAGLIST=no |
1544 | DEFAULT_wxUSE_LISTBOX=no | |
1545 | DEFAULT_wxUSE_LISTCTRL=no | |
1546 | DEFAULT_wxUSE_NOTEBOOK=no | |
1547 | DEFAULT_wxUSE_RADIOBOX=no | |
1548 | DEFAULT_wxUSE_RADIOBTN=no | |
1549 | DEFAULT_wxUSE_SASH=no | |
1550 | DEFAULT_wxUSE_SCROLLBAR=no | |
1551 | DEFAULT_wxUSE_SLIDER=no | |
1552 | DEFAULT_wxUSE_SPINBTN=no | |
1553 | DEFAULT_wxUSE_SPLITTER=no | |
1554 | DEFAULT_wxUSE_STATBMP=no | |
1555 | DEFAULT_wxUSE_STATBOX=no | |
1556 | DEFAULT_wxUSE_STATLINE=no | |
1557 | DEFAULT_wxUSE_STATUSBAR=yes | |
1558 | DEFAULT_wxUSE_TABDIALOG=no | |
1559 | DEFAULT_wxUSE_TOOLBAR=no | |
1560 | DEFAULT_wxUSE_TREECTRL=no | |
1561 | DEFAULT_wxUSE_GIF=no | |
1562 | DEFAULT_wxUSE_PCX=no | |
1563 | DEFAULT_wxUSE_PNM=no | |
1564 | fi | |
1565 | ||
a16d3c04 KB |
1566 | # Check whether --with-gtk or --without-gtk was given. |
1567 | if test "${with_gtk+set}" = set; then | |
1568 | withval="$with_gtk" | |
1569 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1570 | fi | |
1571 | ||
1572 | # Check whether --with-motif or --without-motif was given. | |
1573 | if test "${with_motif+set}" = set; then | |
1574 | withval="$with_motif" | |
1575 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1576 | fi | |
1577 | ||
1578 | # Check whether --with-wine or --without-wine was given. | |
1579 | if test "${with_wine+set}" = set; then | |
1580 | withval="$with_wine" | |
1581 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1582 | fi | |
1583 | ||
1584 | # Check whether --with-cygwin or --without-cygwin was given. | |
1585 | if test "${with_cygwin+set}" = set; then | |
1586 | withval="$with_cygwin" | |
1587 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1588 | fi | |
1589 | ||
1590 | # Check whether --with-mingw or --without-mingw was given. | |
1591 | if test "${with_mingw+set}" = set; then | |
1592 | withval="$with_mingw" | |
1593 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1594 | fi | |
1595 | ||
1596 | ||
1597 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1598 | if test "${with_gtk_prefix+set}" = set; then | |
1599 | withval="$with_gtk_prefix" | |
1600 | gtk_config_prefix="$withval" | |
1601 | else | |
1602 | gtk_config_prefix="" | |
1603 | fi | |
1604 | ||
1605 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1606 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1607 | withval="$with_gtk_exec_prefix" | |
1608 | gtk_config_exec_prefix="$withval" | |
1609 | else | |
1610 | gtk_config_exec_prefix="" | |
1611 | fi | |
1612 | ||
1613 | ||
1614 | ||
1615 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
d607e6c3 | 1616 | echo "configure:1617: checking "for --with-dmalloc"" >&5 |
a16d3c04 KB |
1617 | no_cache=0 |
1618 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1619 | if test "${with_dmalloc+set}" = set; then | |
1620 | withval="$with_dmalloc" | |
1621 | ||
1622 | if test "$withval" = yes; then | |
1623 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1624 | else | |
1625 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1626 | fi | |
1627 | ||
1628 | else | |
1629 | ||
1630 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1631 | if test "x$LINE" != x ; then | |
1632 | eval "DEFAULT_$LINE" | |
1633 | else | |
1634 | no_cache=1 | |
1635 | fi | |
1636 | ||
1637 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1638 | ||
1639 | fi | |
1640 | ||
1641 | ||
1642 | eval "$ac_cv_use_dmalloc" | |
1643 | if test "$no_cache" != 1; then | |
1644 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1645 | fi | |
1646 | ||
1647 | if test "$wxUSE_DMALLOC" = yes; then | |
1648 | echo "$ac_t""yes" 1>&6 | |
1649 | else | |
1650 | echo "$ac_t""no" 1>&6 | |
1651 | fi | |
1652 | ||
1653 | ||
1654 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
d607e6c3 | 1655 | echo "configure:1656: checking "for --with-zlib"" >&5 |
a16d3c04 KB |
1656 | no_cache=0 |
1657 | # Check whether --with-zlib or --without-zlib was given. | |
1658 | if test "${with_zlib+set}" = set; then | |
1659 | withval="$with_zlib" | |
1660 | ||
1661 | if test "$withval" = yes; then | |
1662 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1663 | else | |
1664 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1665 | fi | |
1666 | ||
1667 | else | |
1668 | ||
1669 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1670 | if test "x$LINE" != x ; then | |
1671 | eval "DEFAULT_$LINE" | |
1672 | else | |
1673 | no_cache=1 | |
1674 | fi | |
1675 | ||
1676 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1677 | ||
1678 | fi | |
1679 | ||
1680 | ||
1681 | eval "$ac_cv_use_zlib" | |
1682 | if test "$no_cache" != 1; then | |
1683 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1684 | fi | |
1685 | ||
1686 | if test "$wxUSE_ZLIB" = yes; then | |
1687 | echo "$ac_t""yes" 1>&6 | |
1688 | else | |
1689 | echo "$ac_t""no" 1>&6 | |
1690 | fi | |
1691 | ||
1692 | ||
1693 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
d607e6c3 | 1694 | echo "configure:1695: checking "for --with-libpng"" >&5 |
a16d3c04 KB |
1695 | no_cache=0 |
1696 | # Check whether --with-libpng or --without-libpng was given. | |
1697 | if test "${with_libpng+set}" = set; then | |
1698 | withval="$with_libpng" | |
1699 | ||
1700 | if test "$withval" = yes; then | |
1701 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1702 | else | |
1703 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1704 | fi | |
1705 | ||
1706 | else | |
1707 | ||
1708 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1709 | if test "x$LINE" != x ; then | |
1710 | eval "DEFAULT_$LINE" | |
1711 | else | |
1712 | no_cache=1 | |
1713 | fi | |
1714 | ||
1715 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1716 | ||
1717 | fi | |
1718 | ||
1719 | ||
1720 | eval "$ac_cv_use_libpng" | |
1721 | if test "$no_cache" != 1; then | |
1722 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1723 | fi | |
1724 | ||
1725 | if test "$wxUSE_LIBPNG" = yes; then | |
1726 | echo "$ac_t""yes" 1>&6 | |
1727 | else | |
1728 | echo "$ac_t""no" 1>&6 | |
1729 | fi | |
1730 | ||
1731 | ||
a16d3c04 | 1732 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
d607e6c3 | 1733 | echo "configure:1734: checking "for --with-libjpeg"" >&5 |
a16d3c04 KB |
1734 | no_cache=0 |
1735 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1736 | if test "${with_libjpeg+set}" = set; then | |
1737 | withval="$with_libjpeg" | |
1738 | ||
1739 | if test "$withval" = yes; then | |
1740 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1741 | else | |
1742 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1743 | fi | |
1744 | ||
1745 | else | |
1746 | ||
1747 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1748 | if test "x$LINE" != x ; then | |
1749 | eval "DEFAULT_$LINE" | |
1750 | else | |
1751 | no_cache=1 | |
1752 | fi | |
1753 | ||
1754 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1755 | ||
1756 | fi | |
1757 | ||
1758 | ||
1759 | eval "$ac_cv_use_libjpeg" | |
1760 | if test "$no_cache" != 1; then | |
1761 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1762 | fi | |
1763 | ||
1764 | if test "$wxUSE_LIBJPEG" = yes; then | |
1765 | echo "$ac_t""yes" 1>&6 | |
1766 | else | |
1767 | echo "$ac_t""no" 1>&6 | |
1768 | fi | |
1769 | ||
1770 | ||
1771 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
d607e6c3 | 1772 | echo "configure:1773: checking "for --with-opengl"" >&5 |
a16d3c04 KB |
1773 | no_cache=0 |
1774 | # Check whether --with-opengl or --without-opengl was given. | |
1775 | if test "${with_opengl+set}" = set; then | |
1776 | withval="$with_opengl" | |
1777 | ||
1778 | if test "$withval" = yes; then | |
1779 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1780 | else | |
1781 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1782 | fi | |
1783 | ||
1784 | else | |
1785 | ||
1786 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1787 | if test "x$LINE" != x ; then | |
1788 | eval "DEFAULT_$LINE" | |
1789 | else | |
1790 | no_cache=1 | |
1791 | fi | |
1792 | ||
1793 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1794 | ||
1795 | fi | |
1796 | ||
1797 | ||
1798 | eval "$ac_cv_use_opengl" | |
1799 | if test "$no_cache" != 1; then | |
1800 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1801 | fi | |
1802 | ||
1803 | if test "$wxUSE_OPENGL" = yes; then | |
1804 | echo "$ac_t""yes" 1>&6 | |
1805 | else | |
1806 | echo "$ac_t""no" 1>&6 | |
1807 | fi | |
1808 | ||
1809 | ||
1810 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
d607e6c3 | 1811 | echo "configure:1812: checking "for --with-odbc"" >&5 |
a16d3c04 KB |
1812 | no_cache=0 |
1813 | # Check whether --with-odbc or --without-odbc was given. | |
1814 | if test "${with_odbc+set}" = set; then | |
1815 | withval="$with_odbc" | |
1816 | ||
1817 | if test "$withval" = yes; then | |
1818 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1819 | else | |
1820 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1821 | fi | |
1822 | ||
1823 | else | |
1824 | ||
1825 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1826 | if test "x$LINE" != x ; then | |
1827 | eval "DEFAULT_$LINE" | |
1828 | else | |
1829 | no_cache=1 | |
1830 | fi | |
1831 | ||
1832 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1833 | ||
1834 | fi | |
1835 | ||
1836 | ||
1837 | eval "$ac_cv_use_odbc" | |
1838 | if test "$no_cache" != 1; then | |
1839 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1840 | fi | |
1841 | ||
1842 | if test "$wxUSE_ODBC" = yes; then | |
1843 | echo "$ac_t""yes" 1>&6 | |
1844 | else | |
1845 | echo "$ac_t""no" 1>&6 | |
1846 | fi | |
1847 | ||
1848 | ||
1849 | ||
1850 | ||
1851 | ||
1852 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
d607e6c3 | 1853 | echo "configure:1854: checking "for --enable-shared"" >&5 |
a16d3c04 KB |
1854 | no_cache=0 |
1855 | # Check whether --enable-shared or --disable-shared was given. | |
1856 | if test "${enable_shared+set}" = set; then | |
1857 | enableval="$enable_shared" | |
1858 | ||
1859 | if test "$enableval" = yes; then | |
1860 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1861 | else | |
1862 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1863 | fi | |
1864 | ||
1865 | else | |
1866 | ||
1867 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1868 | if test "x$LINE" != x ; then | |
1869 | eval "DEFAULT_$LINE" | |
1870 | else | |
1871 | no_cache=1 | |
1872 | fi | |
1873 | ||
1874 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1875 | ||
1876 | fi | |
1877 | ||
1878 | ||
1879 | eval "$ac_cv_use_shared" | |
1880 | if test "$no_cache" != 1; then | |
1881 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1882 | fi | |
1883 | ||
1884 | if test "$wxUSE_SHARED" = yes; then | |
1885 | echo "$ac_t""yes" 1>&6 | |
1886 | else | |
1887 | echo "$ac_t""no" 1>&6 | |
1888 | fi | |
1889 | ||
1890 | ||
1891 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
d607e6c3 | 1892 | echo "configure:1893: checking "for --enable-optimise"" >&5 |
a16d3c04 KB |
1893 | no_cache=0 |
1894 | # Check whether --enable-optimise or --disable-optimise was given. | |
1895 | if test "${enable_optimise+set}" = set; then | |
1896 | enableval="$enable_optimise" | |
1897 | ||
1898 | if test "$enableval" = yes; then | |
1899 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1900 | else | |
1901 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1902 | fi | |
1903 | ||
1904 | else | |
1905 | ||
1906 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1907 | if test "x$LINE" != x ; then | |
1908 | eval "DEFAULT_$LINE" | |
1909 | else | |
1910 | no_cache=1 | |
1911 | fi | |
1912 | ||
1913 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1914 | ||
1915 | fi | |
1916 | ||
1917 | ||
1918 | eval "$ac_cv_use_optimise" | |
1919 | if test "$no_cache" != 1; then | |
1920 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1921 | fi | |
1922 | ||
1923 | if test "$wxUSE_OPTIMISE" = yes; then | |
1924 | echo "$ac_t""yes" 1>&6 | |
1925 | else | |
1926 | echo "$ac_t""no" 1>&6 | |
1927 | fi | |
1928 | ||
1929 | ||
1930 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
d607e6c3 | 1931 | echo "configure:1932: checking "for --enable-debug"" >&5 |
a16d3c04 KB |
1932 | no_cache=0 |
1933 | # Check whether --enable-debug or --disable-debug was given. | |
1934 | if test "${enable_debug+set}" = set; then | |
1935 | enableval="$enable_debug" | |
1936 | ||
1937 | if test "$enableval" = yes; then | |
1938 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1939 | else | |
1940 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1941 | fi | |
1942 | ||
1943 | else | |
1944 | ||
1945 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1946 | if test "x$LINE" != x ; then | |
1947 | eval "DEFAULT_$LINE" | |
1948 | else | |
1949 | no_cache=1 | |
1950 | fi | |
1951 | ||
1952 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1953 | ||
1954 | fi | |
1955 | ||
1956 | ||
1957 | eval "$ac_cv_use_debug" | |
1958 | if test "$no_cache" != 1; then | |
1959 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1960 | fi | |
1961 | ||
1962 | if test "$wxUSE_DEBUG" = yes; then | |
1963 | echo "$ac_t""yes" 1>&6 | |
1964 | else | |
1965 | echo "$ac_t""no" 1>&6 | |
1966 | fi | |
1967 | ||
1968 | ||
1969 | if test "$wxUSE_DEBUG" = "yes"; then | |
1970 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1971 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1972 | elif test "$wxUSE_DEBUG" = "no"; then | |
1973 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1974 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1975 | fi | |
1976 | ||
1977 | ||
1978 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
d607e6c3 | 1979 | echo "configure:1980: checking "for --enable-debug_flag"" >&5 |
a16d3c04 KB |
1980 | no_cache=0 |
1981 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1982 | if test "${enable_debug_flag+set}" = set; then | |
1983 | enableval="$enable_debug_flag" | |
1984 | ||
1985 | if test "$enableval" = yes; then | |
1986 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1987 | else | |
1988 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1989 | fi | |
1990 | ||
1991 | else | |
1992 | ||
1993 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1994 | if test "x$LINE" != x ; then | |
1995 | eval "DEFAULT_$LINE" | |
1996 | else | |
1997 | no_cache=1 | |
1998 | fi | |
1999 | ||
2000 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2001 | ||
2002 | fi | |
2003 | ||
2004 | ||
2005 | eval "$ac_cv_use_debug_flag" | |
2006 | if test "$no_cache" != 1; then | |
2007 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2008 | fi | |
2009 | ||
2010 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2011 | echo "$ac_t""yes" 1>&6 | |
2012 | else | |
2013 | echo "$ac_t""no" 1>&6 | |
2014 | fi | |
2015 | ||
2016 | ||
2017 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
d607e6c3 | 2018 | echo "configure:2019: checking "for --enable-debug_info"" >&5 |
a16d3c04 KB |
2019 | no_cache=0 |
2020 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2021 | if test "${enable_debug_info+set}" = set; then | |
2022 | enableval="$enable_debug_info" | |
2023 | ||
2024 | if test "$enableval" = yes; then | |
2025 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2026 | else | |
2027 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2028 | fi | |
2029 | ||
2030 | else | |
2031 | ||
2032 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2033 | if test "x$LINE" != x ; then | |
2034 | eval "DEFAULT_$LINE" | |
2035 | else | |
2036 | no_cache=1 | |
2037 | fi | |
2038 | ||
2039 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2040 | ||
2041 | fi | |
2042 | ||
2043 | ||
2044 | eval "$ac_cv_use_debug_info" | |
2045 | if test "$no_cache" != 1; then | |
2046 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2047 | fi | |
2048 | ||
2049 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2050 | echo "$ac_t""yes" 1>&6 | |
2051 | else | |
2052 | echo "$ac_t""no" 1>&6 | |
2053 | fi | |
2054 | ||
2055 | ||
2056 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
d607e6c3 | 2057 | echo "configure:2058: checking "for --enable-debug_gdb"" >&5 |
a16d3c04 KB |
2058 | no_cache=0 |
2059 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2060 | if test "${enable_debug_gdb+set}" = set; then | |
2061 | enableval="$enable_debug_gdb" | |
2062 | ||
2063 | if test "$enableval" = yes; then | |
2064 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2065 | else | |
2066 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2067 | fi | |
2068 | ||
2069 | else | |
2070 | ||
2071 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2072 | if test "x$LINE" != x ; then | |
2073 | eval "DEFAULT_$LINE" | |
2074 | else | |
2075 | no_cache=1 | |
2076 | fi | |
2077 | ||
2078 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2079 | ||
2080 | fi | |
2081 | ||
2082 | ||
2083 | eval "$ac_cv_use_debug_gdb" | |
2084 | if test "$no_cache" != 1; then | |
2085 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2086 | fi | |
2087 | ||
2088 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2089 | echo "$ac_t""yes" 1>&6 | |
2090 | else | |
2091 | echo "$ac_t""no" 1>&6 | |
2092 | fi | |
2093 | ||
2094 | ||
2095 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
d607e6c3 | 2096 | echo "configure:2097: checking "for --enable-debug_cntxt"" >&5 |
a16d3c04 KB |
2097 | no_cache=0 |
2098 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2099 | if test "${enable_debug_cntxt+set}" = set; then | |
2100 | enableval="$enable_debug_cntxt" | |
2101 | ||
2102 | if test "$enableval" = yes; then | |
2103 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2104 | else | |
2105 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2106 | fi | |
2107 | ||
2108 | else | |
2109 | ||
2110 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2111 | if test "x$LINE" != x ; then | |
2112 | eval "DEFAULT_$LINE" | |
2113 | else | |
2114 | no_cache=1 | |
2115 | fi | |
2116 | ||
2117 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2118 | ||
2119 | fi | |
2120 | ||
2121 | ||
2122 | eval "$ac_cv_use_debug_cntxt" | |
2123 | if test "$no_cache" != 1; then | |
2124 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2125 | fi | |
2126 | ||
2127 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2128 | echo "$ac_t""yes" 1>&6 | |
2129 | else | |
2130 | echo "$ac_t""no" 1>&6 | |
2131 | fi | |
2132 | ||
2133 | ||
2134 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
d607e6c3 | 2135 | echo "configure:2136: checking "for --enable-mem_tracing"" >&5 |
a16d3c04 KB |
2136 | no_cache=0 |
2137 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2138 | if test "${enable_mem_tracing+set}" = set; then | |
2139 | enableval="$enable_mem_tracing" | |
2140 | ||
2141 | if test "$enableval" = yes; then | |
2142 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2143 | else | |
2144 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2145 | fi | |
2146 | ||
2147 | else | |
2148 | ||
2149 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2150 | if test "x$LINE" != x ; then | |
2151 | eval "DEFAULT_$LINE" | |
2152 | else | |
2153 | no_cache=1 | |
2154 | fi | |
2155 | ||
2156 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2157 | ||
2158 | fi | |
2159 | ||
2160 | ||
2161 | eval "$ac_cv_use_mem_tracing" | |
2162 | if test "$no_cache" != 1; then | |
2163 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2164 | fi | |
2165 | ||
2166 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2167 | echo "$ac_t""yes" 1>&6 | |
2168 | else | |
2169 | echo "$ac_t""no" 1>&6 | |
2170 | fi | |
2171 | ||
2172 | ||
2173 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
d607e6c3 | 2174 | echo "configure:2175: checking "for --enable-profile"" >&5 |
a16d3c04 KB |
2175 | no_cache=0 |
2176 | # Check whether --enable-profile or --disable-profile was given. | |
2177 | if test "${enable_profile+set}" = set; then | |
2178 | enableval="$enable_profile" | |
2179 | ||
2180 | if test "$enableval" = yes; then | |
2181 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2182 | else | |
2183 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2184 | fi | |
2185 | ||
2186 | else | |
2187 | ||
2188 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2189 | if test "x$LINE" != x ; then | |
2190 | eval "DEFAULT_$LINE" | |
2191 | else | |
2192 | no_cache=1 | |
2193 | fi | |
2194 | ||
2195 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2196 | ||
2197 | fi | |
2198 | ||
2199 | ||
2200 | eval "$ac_cv_use_profile" | |
2201 | if test "$no_cache" != 1; then | |
2202 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2203 | fi | |
2204 | ||
2205 | if test "$wxUSE_PROFILE" = yes; then | |
2206 | echo "$ac_t""yes" 1>&6 | |
2207 | else | |
2208 | echo "$ac_t""no" 1>&6 | |
2209 | fi | |
2210 | ||
2211 | ||
2212 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
d607e6c3 | 2213 | echo "configure:2214: checking "for --enable-no_rtti"" >&5 |
a16d3c04 KB |
2214 | no_cache=0 |
2215 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2216 | if test "${enable_no_rtti+set}" = set; then | |
2217 | enableval="$enable_no_rtti" | |
2218 | ||
2219 | if test "$enableval" = yes; then | |
2220 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2221 | else | |
2222 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2223 | fi | |
2224 | ||
2225 | else | |
2226 | ||
2227 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2228 | if test "x$LINE" != x ; then | |
2229 | eval "DEFAULT_$LINE" | |
2230 | else | |
2231 | no_cache=1 | |
2232 | fi | |
2233 | ||
2234 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2235 | ||
2236 | fi | |
2237 | ||
2238 | ||
2239 | eval "$ac_cv_use_no_rtti" | |
2240 | if test "$no_cache" != 1; then | |
2241 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2242 | fi | |
2243 | ||
2244 | if test "$wxUSE_NO_RTTI" = yes; then | |
2245 | echo "$ac_t""yes" 1>&6 | |
2246 | else | |
2247 | echo "$ac_t""no" 1>&6 | |
2248 | fi | |
2249 | ||
2250 | ||
2251 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
d607e6c3 | 2252 | echo "configure:2253: checking "for --enable-no_exceptions"" >&5 |
a16d3c04 KB |
2253 | no_cache=0 |
2254 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2255 | if test "${enable_no_exceptions+set}" = set; then | |
2256 | enableval="$enable_no_exceptions" | |
2257 | ||
2258 | if test "$enableval" = yes; then | |
2259 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2260 | else | |
2261 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2262 | fi | |
2263 | ||
2264 | else | |
2265 | ||
2266 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2267 | if test "x$LINE" != x ; then | |
2268 | eval "DEFAULT_$LINE" | |
2269 | else | |
2270 | no_cache=1 | |
2271 | fi | |
2272 | ||
2273 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2274 | ||
2275 | fi | |
2276 | ||
2277 | ||
2278 | eval "$ac_cv_use_no_exceptions" | |
2279 | if test "$no_cache" != 1; then | |
2280 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2281 | fi | |
2282 | ||
2283 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2284 | echo "$ac_t""yes" 1>&6 | |
2285 | else | |
2286 | echo "$ac_t""no" 1>&6 | |
2287 | fi | |
2288 | ||
2289 | ||
2290 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
d607e6c3 | 2291 | echo "configure:2292: checking "for --enable-permissive"" >&5 |
a16d3c04 KB |
2292 | no_cache=0 |
2293 | # Check whether --enable-permissive or --disable-permissive was given. | |
2294 | if test "${enable_permissive+set}" = set; then | |
2295 | enableval="$enable_permissive" | |
2296 | ||
2297 | if test "$enableval" = yes; then | |
2298 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2299 | else | |
2300 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2301 | fi | |
2302 | ||
2303 | else | |
2304 | ||
2305 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2306 | if test "x$LINE" != x ; then | |
2307 | eval "DEFAULT_$LINE" | |
2308 | else | |
2309 | no_cache=1 | |
2310 | fi | |
2311 | ||
2312 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2313 | ||
2314 | fi | |
2315 | ||
2316 | ||
2317 | eval "$ac_cv_use_permissive" | |
2318 | if test "$no_cache" != 1; then | |
2319 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2320 | fi | |
2321 | ||
2322 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2323 | echo "$ac_t""yes" 1>&6 | |
2324 | else | |
2325 | echo "$ac_t""no" 1>&6 | |
2326 | fi | |
2327 | ||
2328 | ||
2329 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
d607e6c3 | 2330 | echo "configure:2331: checking "for --enable-no_deps"" >&5 |
a16d3c04 KB |
2331 | no_cache=0 |
2332 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2333 | if test "${enable_no_deps+set}" = set; then | |
2334 | enableval="$enable_no_deps" | |
2335 | ||
2336 | if test "$enableval" = yes; then | |
2337 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2338 | else | |
2339 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2340 | fi | |
2341 | ||
2342 | else | |
2343 | ||
2344 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2345 | if test "x$LINE" != x ; then | |
2346 | eval "DEFAULT_$LINE" | |
2347 | else | |
2348 | no_cache=1 | |
2349 | fi | |
2350 | ||
2351 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2352 | ||
2353 | fi | |
2354 | ||
2355 | ||
2356 | eval "$ac_cv_use_no_deps" | |
2357 | if test "$no_cache" != 1; then | |
2358 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2359 | fi | |
2360 | ||
2361 | if test "$wxUSE_NO_DEPS" = yes; then | |
2362 | echo "$ac_t""yes" 1>&6 | |
2363 | else | |
2364 | echo "$ac_t""no" 1>&6 | |
2365 | fi | |
2366 | ||
2367 | ||
2368 | ||
2369 | ||
a16d3c04 | 2370 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 |
d607e6c3 | 2371 | echo "configure:2372: checking "for --enable-intl"" >&5 |
a16d3c04 KB |
2372 | no_cache=0 |
2373 | # Check whether --enable-intl or --disable-intl was given. | |
2374 | if test "${enable_intl+set}" = set; then | |
2375 | enableval="$enable_intl" | |
2376 | ||
2377 | if test "$enableval" = yes; then | |
2378 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2379 | else | |
2380 | ac_cv_use_intl='wxUSE_INTL=no' | |
2381 | fi | |
2382 | ||
2383 | else | |
2384 | ||
2385 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2386 | if test "x$LINE" != x ; then | |
2387 | eval "DEFAULT_$LINE" | |
2388 | else | |
2389 | no_cache=1 | |
2390 | fi | |
2391 | ||
2392 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2393 | ||
2394 | fi | |
2395 | ||
2396 | ||
2397 | eval "$ac_cv_use_intl" | |
2398 | if test "$no_cache" != 1; then | |
2399 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2400 | fi | |
2401 | ||
2402 | if test "$wxUSE_INTL" = yes; then | |
2403 | echo "$ac_t""yes" 1>&6 | |
2404 | else | |
2405 | echo "$ac_t""no" 1>&6 | |
2406 | fi | |
2407 | ||
2408 | ||
2409 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
d607e6c3 | 2410 | echo "configure:2411: checking "for --enable-config"" >&5 |
a16d3c04 KB |
2411 | no_cache=0 |
2412 | # Check whether --enable-config or --disable-config was given. | |
2413 | if test "${enable_config+set}" = set; then | |
2414 | enableval="$enable_config" | |
2415 | ||
2416 | if test "$enableval" = yes; then | |
2417 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2418 | else | |
2419 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2420 | fi | |
2421 | ||
2422 | else | |
2423 | ||
2424 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2425 | if test "x$LINE" != x ; then | |
2426 | eval "DEFAULT_$LINE" | |
2427 | else | |
2428 | no_cache=1 | |
2429 | fi | |
2430 | ||
2431 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2432 | ||
2433 | fi | |
2434 | ||
2435 | ||
2436 | eval "$ac_cv_use_config" | |
2437 | if test "$no_cache" != 1; then | |
2438 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2439 | fi | |
2440 | ||
2441 | if test "$wxUSE_CONFIG" = yes; then | |
2442 | echo "$ac_t""yes" 1>&6 | |
2443 | else | |
2444 | echo "$ac_t""no" 1>&6 | |
2445 | fi | |
2446 | ||
2447 | ||
2448 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
d607e6c3 | 2449 | echo "configure:2450: checking "for --enable-sockets"" >&5 |
a16d3c04 KB |
2450 | no_cache=0 |
2451 | # Check whether --enable-sockets or --disable-sockets was given. | |
2452 | if test "${enable_sockets+set}" = set; then | |
2453 | enableval="$enable_sockets" | |
2454 | ||
2455 | if test "$enableval" = yes; then | |
2456 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2457 | else | |
2458 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2459 | fi | |
2460 | ||
2461 | else | |
2462 | ||
2463 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2471 | ||
2472 | fi | |
2473 | ||
2474 | ||
2475 | eval "$ac_cv_use_sockets" | |
2476 | if test "$no_cache" != 1; then | |
2477 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2478 | fi | |
2479 | ||
2480 | if test "$wxUSE_SOCKETS" = yes; then | |
2481 | echo "$ac_t""yes" 1>&6 | |
2482 | else | |
2483 | echo "$ac_t""no" 1>&6 | |
2484 | fi | |
2485 | ||
2486 | ||
1c8515f9 | 2487 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 |
d607e6c3 | 2488 | echo "configure:2489: checking "for --enable-dialupman"" >&5 |
1c8515f9 KB |
2489 | no_cache=0 |
2490 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2491 | if test "${enable_dialupman+set}" = set; then | |
2492 | enableval="$enable_dialupman" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2496 | else | |
2497 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2510 | ||
2511 | fi | |
2512 | ||
2513 | ||
2514 | eval "$ac_cv_use_dialupman" | |
2515 | if test "$no_cache" != 1; then | |
2516 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2517 | fi | |
2518 | ||
2519 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2520 | echo "$ac_t""yes" 1>&6 | |
2521 | else | |
2522 | echo "$ac_t""no" 1>&6 | |
2523 | fi | |
2524 | ||
2525 | ||
a16d3c04 | 2526 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
d607e6c3 | 2527 | echo "configure:2528: checking "for --enable-ipc"" >&5 |
a16d3c04 KB |
2528 | no_cache=0 |
2529 | # Check whether --enable-ipc or --disable-ipc was given. | |
2530 | if test "${enable_ipc+set}" = set; then | |
2531 | enableval="$enable_ipc" | |
2532 | ||
2533 | if test "$enableval" = yes; then | |
2534 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2535 | else | |
2536 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2537 | fi | |
2538 | ||
2539 | else | |
2540 | ||
2541 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2542 | if test "x$LINE" != x ; then | |
2543 | eval "DEFAULT_$LINE" | |
2544 | else | |
2545 | no_cache=1 | |
2546 | fi | |
2547 | ||
2548 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2549 | ||
2550 | fi | |
2551 | ||
2552 | ||
2553 | eval "$ac_cv_use_ipc" | |
2554 | if test "$no_cache" != 1; then | |
2555 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2556 | fi | |
2557 | ||
2558 | if test "$wxUSE_IPC" = yes; then | |
2559 | echo "$ac_t""yes" 1>&6 | |
2560 | else | |
2561 | echo "$ac_t""no" 1>&6 | |
2562 | fi | |
2563 | ||
2564 | ||
2565 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
d607e6c3 | 2566 | echo "configure:2567: checking "for --enable-apple_ieee"" >&5 |
a16d3c04 KB |
2567 | no_cache=0 |
2568 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2569 | if test "${enable_apple_ieee+set}" = set; then | |
2570 | enableval="$enable_apple_ieee" | |
2571 | ||
2572 | if test "$enableval" = yes; then | |
2573 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2574 | else | |
2575 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2576 | fi | |
2577 | ||
2578 | else | |
2579 | ||
2580 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2581 | if test "x$LINE" != x ; then | |
2582 | eval "DEFAULT_$LINE" | |
2583 | else | |
2584 | no_cache=1 | |
2585 | fi | |
2586 | ||
2587 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2588 | ||
2589 | fi | |
2590 | ||
2591 | ||
2592 | eval "$ac_cv_use_apple_ieee" | |
2593 | if test "$no_cache" != 1; then | |
2594 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2595 | fi | |
2596 | ||
2597 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2598 | echo "$ac_t""yes" 1>&6 | |
2599 | else | |
2600 | echo "$ac_t""no" 1>&6 | |
2601 | fi | |
2602 | ||
2603 | ||
2604 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
d607e6c3 | 2605 | echo "configure:2606: checking "for --enable-timedate"" >&5 |
a16d3c04 KB |
2606 | no_cache=0 |
2607 | # Check whether --enable-timedate or --disable-timedate was given. | |
2608 | if test "${enable_timedate+set}" = set; then | |
2609 | enableval="$enable_timedate" | |
2610 | ||
2611 | if test "$enableval" = yes; then | |
2612 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2613 | else | |
2614 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2615 | fi | |
2616 | ||
2617 | else | |
2618 | ||
2619 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2620 | if test "x$LINE" != x ; then | |
2621 | eval "DEFAULT_$LINE" | |
2622 | else | |
2623 | no_cache=1 | |
2624 | fi | |
2625 | ||
2626 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2627 | ||
2628 | fi | |
2629 | ||
2630 | ||
2631 | eval "$ac_cv_use_timedate" | |
2632 | if test "$no_cache" != 1; then | |
2633 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2634 | fi | |
2635 | ||
2636 | if test "$wxUSE_TIMEDATE" = yes; then | |
2637 | echo "$ac_t""yes" 1>&6 | |
2638 | else | |
2639 | echo "$ac_t""no" 1>&6 | |
2640 | fi | |
2641 | ||
2642 | ||
2643 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
d607e6c3 | 2644 | echo "configure:2645: checking "for --enable-wave"" >&5 |
a16d3c04 KB |
2645 | no_cache=0 |
2646 | # Check whether --enable-wave or --disable-wave was given. | |
2647 | if test "${enable_wave+set}" = set; then | |
2648 | enableval="$enable_wave" | |
2649 | ||
2650 | if test "$enableval" = yes; then | |
2651 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2652 | else | |
2653 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2654 | fi | |
2655 | ||
2656 | else | |
2657 | ||
2658 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2659 | if test "x$LINE" != x ; then | |
2660 | eval "DEFAULT_$LINE" | |
2661 | else | |
2662 | no_cache=1 | |
2663 | fi | |
2664 | ||
2665 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2666 | ||
2667 | fi | |
2668 | ||
2669 | ||
2670 | eval "$ac_cv_use_wave" | |
2671 | if test "$no_cache" != 1; then | |
2672 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2673 | fi | |
2674 | ||
2675 | if test "$wxUSE_WAVE" = yes; then | |
2676 | echo "$ac_t""yes" 1>&6 | |
2677 | else | |
2678 | echo "$ac_t""no" 1>&6 | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
d607e6c3 | 2683 | echo "configure:2684: checking "for --enable-fraction"" >&5 |
a16d3c04 KB |
2684 | no_cache=0 |
2685 | # Check whether --enable-fraction or --disable-fraction was given. | |
2686 | if test "${enable_fraction+set}" = set; then | |
2687 | enableval="$enable_fraction" | |
2688 | ||
2689 | if test "$enableval" = yes; then | |
2690 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2691 | else | |
2692 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2693 | fi | |
2694 | ||
2695 | else | |
2696 | ||
2697 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2698 | if test "x$LINE" != x ; then | |
2699 | eval "DEFAULT_$LINE" | |
2700 | else | |
2701 | no_cache=1 | |
2702 | fi | |
2703 | ||
2704 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2705 | ||
2706 | fi | |
2707 | ||
2708 | ||
2709 | eval "$ac_cv_use_fraction" | |
2710 | if test "$no_cache" != 1; then | |
2711 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2712 | fi | |
2713 | ||
2714 | if test "$wxUSE_FRACTION" = yes; then | |
2715 | echo "$ac_t""yes" 1>&6 | |
2716 | else | |
2717 | echo "$ac_t""no" 1>&6 | |
2718 | fi | |
2719 | ||
2720 | ||
2721 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
d607e6c3 | 2722 | echo "configure:2723: checking "for --enable-dynlib"" >&5 |
a16d3c04 KB |
2723 | no_cache=0 |
2724 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2725 | if test "${enable_dynlib+set}" = set; then | |
2726 | enableval="$enable_dynlib" | |
2727 | ||
2728 | if test "$enableval" = yes; then | |
2729 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2730 | else | |
2731 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2732 | fi | |
2733 | ||
2734 | else | |
2735 | ||
2736 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2737 | if test "x$LINE" != x ; then | |
2738 | eval "DEFAULT_$LINE" | |
2739 | else | |
2740 | no_cache=1 | |
2741 | fi | |
2742 | ||
2743 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2744 | ||
2745 | fi | |
2746 | ||
2747 | ||
2748 | eval "$ac_cv_use_dynlib" | |
2749 | if test "$no_cache" != 1; then | |
2750 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2751 | fi | |
2752 | ||
2753 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2754 | echo "$ac_t""yes" 1>&6 | |
2755 | else | |
2756 | echo "$ac_t""no" 1>&6 | |
2757 | fi | |
2758 | ||
2759 | ||
2760 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
d607e6c3 | 2761 | echo "configure:2762: checking "for --enable-longlong"" >&5 |
a16d3c04 KB |
2762 | no_cache=0 |
2763 | # Check whether --enable-longlong or --disable-longlong was given. | |
2764 | if test "${enable_longlong+set}" = set; then | |
2765 | enableval="$enable_longlong" | |
2766 | ||
2767 | if test "$enableval" = yes; then | |
2768 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2769 | else | |
2770 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2771 | fi | |
2772 | ||
2773 | else | |
2774 | ||
2775 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2776 | if test "x$LINE" != x ; then | |
2777 | eval "DEFAULT_$LINE" | |
2778 | else | |
2779 | no_cache=1 | |
2780 | fi | |
2781 | ||
2782 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2783 | ||
2784 | fi | |
2785 | ||
2786 | ||
2787 | eval "$ac_cv_use_longlong" | |
2788 | if test "$no_cache" != 1; then | |
2789 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2790 | fi | |
2791 | ||
2792 | if test "$wxUSE_LONGLONG" = yes; then | |
2793 | echo "$ac_t""yes" 1>&6 | |
2794 | else | |
2795 | echo "$ac_t""no" 1>&6 | |
2796 | fi | |
2797 | ||
2798 | ||
2799 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
d607e6c3 | 2800 | echo "configure:2801: checking "for --enable-log"" >&5 |
a16d3c04 KB |
2801 | no_cache=0 |
2802 | # Check whether --enable-log or --disable-log was given. | |
2803 | if test "${enable_log+set}" = set; then | |
2804 | enableval="$enable_log" | |
2805 | ||
2806 | if test "$enableval" = yes; then | |
2807 | ac_cv_use_log='wxUSE_LOG=yes' | |
2808 | else | |
2809 | ac_cv_use_log='wxUSE_LOG=no' | |
2810 | fi | |
2811 | ||
2812 | else | |
2813 | ||
2814 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2815 | if test "x$LINE" != x ; then | |
2816 | eval "DEFAULT_$LINE" | |
2817 | else | |
2818 | no_cache=1 | |
2819 | fi | |
2820 | ||
2821 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2822 | ||
2823 | fi | |
2824 | ||
2825 | ||
2826 | eval "$ac_cv_use_log" | |
2827 | if test "$no_cache" != 1; then | |
2828 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2829 | fi | |
2830 | ||
2831 | if test "$wxUSE_LOG" = yes; then | |
2832 | echo "$ac_t""yes" 1>&6 | |
2833 | else | |
2834 | echo "$ac_t""no" 1>&6 | |
2835 | fi | |
2836 | ||
2837 | ||
2838 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
d607e6c3 | 2839 | echo "configure:2840: checking "for --enable-streams"" >&5 |
a16d3c04 KB |
2840 | no_cache=0 |
2841 | # Check whether --enable-streams or --disable-streams was given. | |
2842 | if test "${enable_streams+set}" = set; then | |
2843 | enableval="$enable_streams" | |
2844 | ||
2845 | if test "$enableval" = yes; then | |
2846 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2847 | else | |
2848 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2849 | fi | |
2850 | ||
2851 | else | |
2852 | ||
2853 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2854 | if test "x$LINE" != x ; then | |
2855 | eval "DEFAULT_$LINE" | |
2856 | else | |
2857 | no_cache=1 | |
2858 | fi | |
2859 | ||
2860 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2861 | ||
2862 | fi | |
2863 | ||
2864 | ||
2865 | eval "$ac_cv_use_streams" | |
2866 | if test "$no_cache" != 1; then | |
2867 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2868 | fi | |
2869 | ||
2870 | if test "$wxUSE_STREAMS" = yes; then | |
2871 | echo "$ac_t""yes" 1>&6 | |
2872 | else | |
2873 | echo "$ac_t""no" 1>&6 | |
2874 | fi | |
2875 | ||
2876 | ||
2877 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
d607e6c3 | 2878 | echo "configure:2879: checking "for --enable-file"" >&5 |
a16d3c04 KB |
2879 | no_cache=0 |
2880 | # Check whether --enable-file or --disable-file was given. | |
2881 | if test "${enable_file+set}" = set; then | |
2882 | enableval="$enable_file" | |
2883 | ||
2884 | if test "$enableval" = yes; then | |
2885 | ac_cv_use_file='wxUSE_FILE=yes' | |
2886 | else | |
2887 | ac_cv_use_file='wxUSE_FILE=no' | |
2888 | fi | |
2889 | ||
2890 | else | |
2891 | ||
2892 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2893 | if test "x$LINE" != x ; then | |
2894 | eval "DEFAULT_$LINE" | |
2895 | else | |
2896 | no_cache=1 | |
2897 | fi | |
2898 | ||
2899 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2900 | ||
2901 | fi | |
2902 | ||
2903 | ||
2904 | eval "$ac_cv_use_file" | |
2905 | if test "$no_cache" != 1; then | |
2906 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2907 | fi | |
2908 | ||
2909 | if test "$wxUSE_FILE" = yes; then | |
2910 | echo "$ac_t""yes" 1>&6 | |
2911 | else | |
2912 | echo "$ac_t""no" 1>&6 | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
d607e6c3 | 2917 | echo "configure:2918: checking "for --enable-textfile"" >&5 |
a16d3c04 KB |
2918 | no_cache=0 |
2919 | # Check whether --enable-textfile or --disable-textfile was given. | |
2920 | if test "${enable_textfile+set}" = set; then | |
2921 | enableval="$enable_textfile" | |
2922 | ||
2923 | if test "$enableval" = yes; then | |
2924 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2925 | else | |
2926 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2927 | fi | |
2928 | ||
2929 | else | |
2930 | ||
2931 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2932 | if test "x$LINE" != x ; then | |
2933 | eval "DEFAULT_$LINE" | |
2934 | else | |
2935 | no_cache=1 | |
2936 | fi | |
2937 | ||
2938 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2939 | ||
2940 | fi | |
2941 | ||
2942 | ||
2943 | eval "$ac_cv_use_textfile" | |
2944 | if test "$no_cache" != 1; then | |
2945 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2946 | fi | |
2947 | ||
2948 | if test "$wxUSE_TEXTFILE" = yes; then | |
2949 | echo "$ac_t""yes" 1>&6 | |
2950 | else | |
2951 | echo "$ac_t""no" 1>&6 | |
2952 | fi | |
2953 | ||
2954 | ||
2955 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
d607e6c3 | 2956 | echo "configure:2957: checking "for --enable-unicode"" >&5 |
a16d3c04 KB |
2957 | no_cache=0 |
2958 | # Check whether --enable-unicode or --disable-unicode was given. | |
2959 | if test "${enable_unicode+set}" = set; then | |
2960 | enableval="$enable_unicode" | |
2961 | ||
2962 | if test "$enableval" = yes; then | |
2963 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2964 | else | |
2965 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2966 | fi | |
2967 | ||
2968 | else | |
2969 | ||
2970 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2971 | if test "x$LINE" != x ; then | |
2972 | eval "DEFAULT_$LINE" | |
2973 | else | |
2974 | no_cache=1 | |
2975 | fi | |
2976 | ||
2977 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2978 | ||
2979 | fi | |
2980 | ||
2981 | ||
2982 | eval "$ac_cv_use_unicode" | |
2983 | if test "$no_cache" != 1; then | |
2984 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2985 | fi | |
2986 | ||
2987 | if test "$wxUSE_UNICODE" = yes; then | |
2988 | echo "$ac_t""yes" 1>&6 | |
2989 | else | |
2990 | echo "$ac_t""no" 1>&6 | |
2991 | fi | |
2992 | ||
2993 | ||
2994 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
d607e6c3 | 2995 | echo "configure:2996: checking "for --enable-wcsrtombs"" >&5 |
a16d3c04 KB |
2996 | no_cache=0 |
2997 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
2998 | if test "${enable_wcsrtombs+set}" = set; then | |
2999 | enableval="$enable_wcsrtombs" | |
3000 | ||
3001 | if test "$enableval" = yes; then | |
3002 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3003 | else | |
3004 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3005 | fi | |
3006 | ||
3007 | else | |
3008 | ||
3009 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3010 | if test "x$LINE" != x ; then | |
3011 | eval "DEFAULT_$LINE" | |
3012 | else | |
3013 | no_cache=1 | |
3014 | fi | |
3015 | ||
3016 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3017 | ||
3018 | fi | |
3019 | ||
3020 | ||
3021 | eval "$ac_cv_use_wcsrtombs" | |
3022 | if test "$no_cache" != 1; then | |
3023 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3024 | fi | |
3025 | ||
3026 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3027 | echo "$ac_t""yes" 1>&6 | |
3028 | else | |
3029 | echo "$ac_t""no" 1>&6 | |
3030 | fi | |
3031 | ||
3032 | ||
3033 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
d607e6c3 | 3034 | echo "configure:3035: checking "for --enable-wxprintfv"" >&5 |
a16d3c04 KB |
3035 | no_cache=0 |
3036 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3037 | if test "${enable_wxprintfv+set}" = set; then | |
3038 | enableval="$enable_wxprintfv" | |
3039 | ||
3040 | if test "$enableval" = yes; then | |
3041 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3042 | else | |
3043 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3044 | fi | |
3045 | ||
3046 | else | |
3047 | ||
3048 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3049 | if test "x$LINE" != x ; then | |
3050 | eval "DEFAULT_$LINE" | |
3051 | else | |
3052 | no_cache=1 | |
3053 | fi | |
3054 | ||
3055 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3056 | ||
3057 | fi | |
3058 | ||
3059 | ||
3060 | eval "$ac_cv_use_wxprintfv" | |
3061 | if test "$no_cache" != 1; then | |
3062 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3063 | fi | |
3064 | ||
3065 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3066 | echo "$ac_t""yes" 1>&6 | |
3067 | else | |
3068 | echo "$ac_t""no" 1>&6 | |
3069 | fi | |
3070 | ||
3071 | ||
3072 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
d607e6c3 | 3073 | echo "configure:3074: checking "for --enable-joystick"" >&5 |
a16d3c04 KB |
3074 | no_cache=0 |
3075 | # Check whether --enable-joystick or --disable-joystick was given. | |
3076 | if test "${enable_joystick+set}" = set; then | |
3077 | enableval="$enable_joystick" | |
3078 | ||
3079 | if test "$enableval" = yes; then | |
3080 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3081 | else | |
3082 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3083 | fi | |
3084 | ||
3085 | else | |
3086 | ||
3087 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3088 | if test "x$LINE" != x ; then | |
3089 | eval "DEFAULT_$LINE" | |
3090 | else | |
3091 | no_cache=1 | |
3092 | fi | |
3093 | ||
3094 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3095 | ||
3096 | fi | |
3097 | ||
3098 | ||
3099 | eval "$ac_cv_use_joystick" | |
3100 | if test "$no_cache" != 1; then | |
3101 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3102 | fi | |
3103 | ||
3104 | if test "$wxUSE_JOYSTICK" = yes; then | |
3105 | echo "$ac_t""yes" 1>&6 | |
3106 | else | |
3107 | echo "$ac_t""no" 1>&6 | |
3108 | fi | |
3109 | ||
3110 | ||
3111 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
d607e6c3 | 3112 | echo "configure:3113: checking "for --enable-std_iostreams"" >&5 |
a16d3c04 KB |
3113 | no_cache=0 |
3114 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3115 | if test "${enable_std_iostreams+set}" = set; then | |
3116 | enableval="$enable_std_iostreams" | |
3117 | ||
3118 | if test "$enableval" = yes; then | |
3119 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3120 | else | |
3121 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3122 | fi | |
3123 | ||
3124 | else | |
3125 | ||
3126 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3127 | if test "x$LINE" != x ; then | |
3128 | eval "DEFAULT_$LINE" | |
3129 | else | |
3130 | no_cache=1 | |
3131 | fi | |
3132 | ||
3133 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3134 | ||
3135 | fi | |
3136 | ||
3137 | ||
3138 | eval "$ac_cv_use_std_iostreams" | |
3139 | if test "$no_cache" != 1; then | |
3140 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3141 | fi | |
3142 | ||
3143 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3144 | echo "$ac_t""yes" 1>&6 | |
3145 | else | |
3146 | echo "$ac_t""no" 1>&6 | |
3147 | fi | |
3148 | ||
3149 | ||
3150 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
d607e6c3 | 3151 | echo "configure:3152: checking "for --enable-fs_inet"" >&5 |
a16d3c04 KB |
3152 | no_cache=0 |
3153 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3154 | if test "${enable_fs_inet+set}" = set; then | |
3155 | enableval="$enable_fs_inet" | |
3156 | ||
3157 | if test "$enableval" = yes; then | |
3158 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3159 | else | |
3160 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3161 | fi | |
3162 | ||
3163 | else | |
3164 | ||
3165 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3166 | if test "x$LINE" != x ; then | |
3167 | eval "DEFAULT_$LINE" | |
3168 | else | |
3169 | no_cache=1 | |
3170 | fi | |
3171 | ||
3172 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3173 | ||
3174 | fi | |
3175 | ||
3176 | ||
3177 | eval "$ac_cv_use_fs_inet" | |
3178 | if test "$no_cache" != 1; then | |
3179 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3180 | fi | |
3181 | ||
3182 | if test "$wxUSE_FS_INET" = yes; then | |
3183 | echo "$ac_t""yes" 1>&6 | |
3184 | else | |
3185 | echo "$ac_t""no" 1>&6 | |
3186 | fi | |
3187 | ||
3188 | ||
3189 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
d607e6c3 | 3190 | echo "configure:3191: checking "for --enable-fs_zip"" >&5 |
a16d3c04 KB |
3191 | no_cache=0 |
3192 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3193 | if test "${enable_fs_zip+set}" = set; then | |
3194 | enableval="$enable_fs_zip" | |
3195 | ||
3196 | if test "$enableval" = yes; then | |
3197 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3198 | else | |
3199 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3200 | fi | |
3201 | ||
3202 | else | |
3203 | ||
3204 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3205 | if test "x$LINE" != x ; then | |
3206 | eval "DEFAULT_$LINE" | |
3207 | else | |
3208 | no_cache=1 | |
3209 | fi | |
3210 | ||
3211 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3212 | ||
3213 | fi | |
3214 | ||
3215 | ||
3216 | eval "$ac_cv_use_fs_zip" | |
3217 | if test "$no_cache" != 1; then | |
3218 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3219 | fi | |
3220 | ||
3221 | if test "$wxUSE_FS_ZIP" = yes; then | |
3222 | echo "$ac_t""yes" 1>&6 | |
3223 | else | |
3224 | echo "$ac_t""no" 1>&6 | |
3225 | fi | |
3226 | ||
3227 | ||
3228 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
d607e6c3 | 3229 | echo "configure:3230: checking "for --enable-zipstream"" >&5 |
a16d3c04 KB |
3230 | no_cache=0 |
3231 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3232 | if test "${enable_zipstream+set}" = set; then | |
3233 | enableval="$enable_zipstream" | |
3234 | ||
3235 | if test "$enableval" = yes; then | |
3236 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3237 | else | |
3238 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3239 | fi | |
3240 | ||
3241 | else | |
3242 | ||
3243 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3244 | if test "x$LINE" != x ; then | |
3245 | eval "DEFAULT_$LINE" | |
3246 | else | |
3247 | no_cache=1 | |
3248 | fi | |
3249 | ||
3250 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3251 | ||
3252 | fi | |
3253 | ||
3254 | ||
3255 | eval "$ac_cv_use_zipstream" | |
3256 | if test "$no_cache" != 1; then | |
3257 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3258 | fi | |
3259 | ||
3260 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3261 | echo "$ac_t""yes" 1>&6 | |
3262 | else | |
3263 | echo "$ac_t""no" 1>&6 | |
3264 | fi | |
3265 | ||
3266 | ||
3267 | ||
3268 | ||
3269 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
d607e6c3 | 3270 | echo "configure:3271: checking "for --enable-threads"" >&5 |
a16d3c04 KB |
3271 | no_cache=0 |
3272 | # Check whether --enable-threads or --disable-threads was given. | |
3273 | if test "${enable_threads+set}" = set; then | |
3274 | enableval="$enable_threads" | |
3275 | ||
3276 | if test "$enableval" = yes; then | |
3277 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3278 | else | |
3279 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3280 | fi | |
3281 | ||
3282 | else | |
3283 | ||
3284 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3285 | if test "x$LINE" != x ; then | |
3286 | eval "DEFAULT_$LINE" | |
3287 | else | |
3288 | no_cache=1 | |
3289 | fi | |
3290 | ||
3291 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3292 | ||
3293 | fi | |
3294 | ||
3295 | ||
3296 | eval "$ac_cv_use_threads" | |
3297 | if test "$no_cache" != 1; then | |
3298 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3299 | fi | |
3300 | ||
3301 | if test "$wxUSE_THREADS" = yes; then | |
3302 | echo "$ac_t""yes" 1>&6 | |
3303 | else | |
3304 | echo "$ac_t""no" 1>&6 | |
3305 | fi | |
3306 | ||
3307 | ||
3308 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
d607e6c3 | 3309 | echo "configure:3310: checking "for --enable-serial"" >&5 |
a16d3c04 KB |
3310 | no_cache=0 |
3311 | # Check whether --enable-serial or --disable-serial was given. | |
3312 | if test "${enable_serial+set}" = set; then | |
3313 | enableval="$enable_serial" | |
3314 | ||
3315 | if test "$enableval" = yes; then | |
3316 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3317 | else | |
3318 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3319 | fi | |
3320 | ||
3321 | else | |
3322 | ||
3323 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3324 | if test "x$LINE" != x ; then | |
3325 | eval "DEFAULT_$LINE" | |
3326 | else | |
3327 | no_cache=1 | |
3328 | fi | |
3329 | ||
3330 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3331 | ||
3332 | fi | |
3333 | ||
3334 | ||
3335 | eval "$ac_cv_use_serial" | |
3336 | if test "$no_cache" != 1; then | |
3337 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3338 | fi | |
3339 | ||
3340 | if test "$wxUSE_SERIAL" = yes; then | |
3341 | echo "$ac_t""yes" 1>&6 | |
3342 | else | |
3343 | echo "$ac_t""no" 1>&6 | |
3344 | fi | |
3345 | ||
3346 | ||
3347 | ||
3348 | ||
3349 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
d607e6c3 | 3350 | echo "configure:3351: checking "for --enable-docview"" >&5 |
a16d3c04 KB |
3351 | no_cache=0 |
3352 | # Check whether --enable-docview or --disable-docview was given. | |
3353 | if test "${enable_docview+set}" = set; then | |
3354 | enableval="$enable_docview" | |
3355 | ||
3356 | if test "$enableval" = yes; then | |
3357 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3358 | else | |
3359 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3360 | fi | |
3361 | ||
3362 | else | |
3363 | ||
3364 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3365 | if test "x$LINE" != x ; then | |
3366 | eval "DEFAULT_$LINE" | |
3367 | else | |
3368 | no_cache=1 | |
3369 | fi | |
3370 | ||
3371 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3372 | ||
3373 | fi | |
3374 | ||
3375 | ||
3376 | eval "$ac_cv_use_docview" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3382 | echo "$ac_t""yes" 1>&6 | |
3383 | else | |
3384 | echo "$ac_t""no" 1>&6 | |
3385 | fi | |
3386 | ||
3387 | ||
3388 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
d607e6c3 | 3389 | echo "configure:3390: checking "for --enable-help"" >&5 |
a16d3c04 KB |
3390 | no_cache=0 |
3391 | # Check whether --enable-help or --disable-help was given. | |
3392 | if test "${enable_help+set}" = set; then | |
3393 | enableval="$enable_help" | |
3394 | ||
3395 | if test "$enableval" = yes; then | |
3396 | ac_cv_use_help='wxUSE_HELP=yes' | |
3397 | else | |
3398 | ac_cv_use_help='wxUSE_HELP=no' | |
3399 | fi | |
3400 | ||
3401 | else | |
3402 | ||
3403 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3404 | if test "x$LINE" != x ; then | |
3405 | eval "DEFAULT_$LINE" | |
3406 | else | |
3407 | no_cache=1 | |
3408 | fi | |
3409 | ||
3410 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3411 | ||
3412 | fi | |
3413 | ||
3414 | ||
3415 | eval "$ac_cv_use_help" | |
3416 | if test "$no_cache" != 1; then | |
3417 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3418 | fi | |
3419 | ||
3420 | if test "$wxUSE_HELP" = yes; then | |
3421 | echo "$ac_t""yes" 1>&6 | |
3422 | else | |
3423 | echo "$ac_t""no" 1>&6 | |
3424 | fi | |
3425 | ||
3426 | ||
3427 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
d607e6c3 | 3428 | echo "configure:3429: checking "for --enable-constraints"" >&5 |
a16d3c04 KB |
3429 | no_cache=0 |
3430 | # Check whether --enable-constraints or --disable-constraints was given. | |
3431 | if test "${enable_constraints+set}" = set; then | |
3432 | enableval="$enable_constraints" | |
3433 | ||
3434 | if test "$enableval" = yes; then | |
3435 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3436 | else | |
3437 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3438 | fi | |
3439 | ||
3440 | else | |
3441 | ||
3442 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3443 | if test "x$LINE" != x ; then | |
3444 | eval "DEFAULT_$LINE" | |
3445 | else | |
3446 | no_cache=1 | |
3447 | fi | |
3448 | ||
3449 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3450 | ||
3451 | fi | |
3452 | ||
3453 | ||
3454 | eval "$ac_cv_use_constraints" | |
3455 | if test "$no_cache" != 1; then | |
3456 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3457 | fi | |
3458 | ||
3459 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3460 | echo "$ac_t""yes" 1>&6 | |
3461 | else | |
3462 | echo "$ac_t""no" 1>&6 | |
3463 | fi | |
3464 | ||
3465 | ||
3466 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
d607e6c3 | 3467 | echo "configure:3468: checking "for --enable-printarch"" >&5 |
a16d3c04 KB |
3468 | no_cache=0 |
3469 | # Check whether --enable-printarch or --disable-printarch was given. | |
3470 | if test "${enable_printarch+set}" = set; then | |
3471 | enableval="$enable_printarch" | |
3472 | ||
3473 | if test "$enableval" = yes; then | |
3474 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3475 | else | |
3476 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3477 | fi | |
3478 | ||
3479 | else | |
3480 | ||
3481 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3482 | if test "x$LINE" != x ; then | |
3483 | eval "DEFAULT_$LINE" | |
3484 | else | |
3485 | no_cache=1 | |
3486 | fi | |
3487 | ||
3488 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3489 | ||
3490 | fi | |
3491 | ||
3492 | ||
3493 | eval "$ac_cv_use_printarch" | |
3494 | if test "$no_cache" != 1; then | |
3495 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3496 | fi | |
3497 | ||
3498 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3499 | echo "$ac_t""yes" 1>&6 | |
3500 | else | |
3501 | echo "$ac_t""no" 1>&6 | |
3502 | fi | |
3503 | ||
3504 | ||
3505 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
d607e6c3 | 3506 | echo "configure:3507: checking "for --enable-mdi"" >&5 |
a16d3c04 KB |
3507 | no_cache=0 |
3508 | # Check whether --enable-mdi or --disable-mdi was given. | |
3509 | if test "${enable_mdi+set}" = set; then | |
3510 | enableval="$enable_mdi" | |
3511 | ||
3512 | if test "$enableval" = yes; then | |
3513 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3514 | else | |
3515 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3516 | fi | |
3517 | ||
3518 | else | |
3519 | ||
3520 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3521 | if test "x$LINE" != x ; then | |
3522 | eval "DEFAULT_$LINE" | |
3523 | else | |
3524 | no_cache=1 | |
3525 | fi | |
3526 | ||
3527 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3528 | ||
3529 | fi | |
3530 | ||
3531 | ||
3532 | eval "$ac_cv_use_mdi" | |
3533 | if test "$no_cache" != 1; then | |
3534 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3535 | fi | |
3536 | ||
3537 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3538 | echo "$ac_t""yes" 1>&6 | |
3539 | else | |
3540 | echo "$ac_t""no" 1>&6 | |
3541 | fi | |
3542 | ||
3543 | ||
3544 | ||
3545 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
d607e6c3 | 3546 | echo "configure:3547: checking "for --enable-postscript"" >&5 |
a16d3c04 KB |
3547 | no_cache=0 |
3548 | # Check whether --enable-postscript or --disable-postscript was given. | |
3549 | if test "${enable_postscript+set}" = set; then | |
3550 | enableval="$enable_postscript" | |
3551 | ||
3552 | if test "$enableval" = yes; then | |
3553 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3554 | else | |
3555 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3556 | fi | |
3557 | ||
3558 | else | |
3559 | ||
3560 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3561 | if test "x$LINE" != x ; then | |
3562 | eval "DEFAULT_$LINE" | |
3563 | else | |
3564 | no_cache=1 | |
3565 | fi | |
3566 | ||
3567 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3568 | ||
3569 | fi | |
3570 | ||
3571 | ||
3572 | eval "$ac_cv_use_postscript" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3578 | echo "$ac_t""yes" 1>&6 | |
3579 | else | |
3580 | echo "$ac_t""no" 1>&6 | |
3581 | fi | |
3582 | ||
3583 | ||
3584 | ||
3585 | ||
3586 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
d607e6c3 | 3587 | echo "configure:3588: checking "for --enable-prologio"" >&5 |
a16d3c04 KB |
3588 | no_cache=0 |
3589 | # Check whether --enable-prologio or --disable-prologio was given. | |
3590 | if test "${enable_prologio+set}" = set; then | |
3591 | enableval="$enable_prologio" | |
3592 | ||
3593 | if test "$enableval" = yes; then | |
3594 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3595 | else | |
3596 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3597 | fi | |
3598 | ||
3599 | else | |
3600 | ||
3601 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3602 | if test "x$LINE" != x ; then | |
3603 | eval "DEFAULT_$LINE" | |
3604 | else | |
3605 | no_cache=1 | |
3606 | fi | |
3607 | ||
3608 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3609 | ||
3610 | fi | |
3611 | ||
3612 | ||
3613 | eval "$ac_cv_use_prologio" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_PROLOGIO" = yes; then | |
3619 | echo "$ac_t""yes" 1>&6 | |
3620 | else | |
3621 | echo "$ac_t""no" 1>&6 | |
3622 | fi | |
3623 | ||
3624 | ||
3625 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
d607e6c3 | 3626 | echo "configure:3627: checking "for --enable-resources"" >&5 |
a16d3c04 KB |
3627 | no_cache=0 |
3628 | # Check whether --enable-resources or --disable-resources was given. | |
3629 | if test "${enable_resources+set}" = set; then | |
3630 | enableval="$enable_resources" | |
3631 | ||
3632 | if test "$enableval" = yes; then | |
3633 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3634 | else | |
3635 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3636 | fi | |
3637 | ||
3638 | else | |
3639 | ||
3640 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3641 | if test "x$LINE" != x ; then | |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
3647 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | ||
3652 | eval "$ac_cv_use_resources" | |
3653 | if test "$no_cache" != 1; then | |
3654 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_RESOURCES" = yes; then | |
3658 | echo "$ac_t""yes" 1>&6 | |
3659 | else | |
3660 | echo "$ac_t""no" 1>&6 | |
3661 | fi | |
3662 | ||
3663 | ||
3664 | ||
3665 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
d607e6c3 | 3666 | echo "configure:3667: checking "for --enable-xresources"" >&5 |
a16d3c04 KB |
3667 | no_cache=0 |
3668 | # Check whether --enable-xresources or --disable-xresources was given. | |
3669 | if test "${enable_xresources+set}" = set; then | |
3670 | enableval="$enable_xresources" | |
3671 | ||
3672 | if test "$enableval" = yes; then | |
3673 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3674 | else | |
3675 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3676 | fi | |
3677 | ||
3678 | else | |
3679 | ||
3680 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3681 | if test "x$LINE" != x ; then | |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
3687 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3688 | ||
3689 | fi | |
3690 | ||
3691 | ||
3692 | eval "$ac_cv_use_xresources" | |
3693 | if test "$no_cache" != 1; then | |
3694 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3695 | fi | |
3696 | ||
3697 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3698 | echo "$ac_t""yes" 1>&6 | |
3699 | else | |
3700 | echo "$ac_t""no" 1>&6 | |
3701 | fi | |
3702 | ||
3703 | ||
3704 | ||
3705 | ||
3706 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
d607e6c3 | 3707 | echo "configure:3708: checking "for --enable-clipboard"" >&5 |
a16d3c04 KB |
3708 | no_cache=0 |
3709 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3710 | if test "${enable_clipboard+set}" = set; then | |
3711 | enableval="$enable_clipboard" | |
3712 | ||
3713 | if test "$enableval" = yes; then | |
3714 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3715 | else | |
3716 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3717 | fi | |
3718 | ||
3719 | else | |
3720 | ||
3721 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3722 | if test "x$LINE" != x ; then | |
3723 | eval "DEFAULT_$LINE" | |
3724 | else | |
3725 | no_cache=1 | |
3726 | fi | |
3727 | ||
3728 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3729 | ||
3730 | fi | |
3731 | ||
3732 | ||
3733 | eval "$ac_cv_use_clipboard" | |
3734 | if test "$no_cache" != 1; then | |
3735 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3736 | fi | |
3737 | ||
3738 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3739 | echo "$ac_t""yes" 1>&6 | |
3740 | else | |
3741 | echo "$ac_t""no" 1>&6 | |
3742 | fi | |
3743 | ||
3744 | ||
3745 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
d607e6c3 | 3746 | echo "configure:3747: checking "for --enable-dnd"" >&5 |
a16d3c04 KB |
3747 | no_cache=0 |
3748 | # Check whether --enable-dnd or --disable-dnd was given. | |
3749 | if test "${enable_dnd+set}" = set; then | |
3750 | enableval="$enable_dnd" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3754 | else | |
3755 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3768 | ||
3769 | fi | |
3770 | ||
3771 | ||
3772 | eval "$ac_cv_use_dnd" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3778 | echo "$ac_t""yes" 1>&6 | |
3779 | else | |
3780 | echo "$ac_t""no" 1>&6 | |
3781 | fi | |
3782 | ||
3783 | ||
3784 | ||
3785 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
d607e6c3 | 3786 | echo "configure:3787: checking "for --enable-wxtree"" >&5 |
a16d3c04 KB |
3787 | no_cache=0 |
3788 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3789 | if test "${enable_wxtree+set}" = set; then | |
3790 | enableval="$enable_wxtree" | |
3791 | ||
3792 | if test "$enableval" = yes; then | |
3793 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3794 | else | |
3795 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3796 | fi | |
3797 | ||
3798 | else | |
3799 | ||
3800 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3801 | if test "x$LINE" != x ; then | |
3802 | eval "DEFAULT_$LINE" | |
3803 | else | |
3804 | no_cache=1 | |
3805 | fi | |
3806 | ||
3807 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3808 | ||
3809 | fi | |
3810 | ||
3811 | ||
3812 | eval "$ac_cv_use_wxtree" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_WXTREE" = yes; then | |
3818 | echo "$ac_t""yes" 1>&6 | |
3819 | else | |
3820 | echo "$ac_t""no" 1>&6 | |
3821 | fi | |
3822 | ||
3823 | ||
3824 | ||
3825 | ||
3826 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
d607e6c3 | 3827 | echo "configure:3828: checking "for --enable-controls"" >&5 |
a16d3c04 KB |
3828 | no_cache=0 |
3829 | # Check whether --enable-controls or --disable-controls was given. | |
3830 | if test "${enable_controls+set}" = set; then | |
3831 | enableval="$enable_controls" | |
3832 | ||
3833 | if test "$enableval" = yes; then | |
3834 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3835 | else | |
3836 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3837 | fi | |
3838 | ||
3839 | else | |
3840 | ||
3841 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3849 | ||
3850 | fi | |
3851 | ||
3852 | ||
3853 | eval "$ac_cv_use_controls" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_CONTROLS" = yes; then | |
3859 | echo "$ac_t""yes" 1>&6 | |
3860 | else | |
3861 | echo "$ac_t""no" 1>&6 | |
3862 | fi | |
3863 | ||
3864 | ||
3865 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3866 | DEFAULT_wxUSE_ACCEL=yes | |
3867 | DEFAULT_wxUSE_CARET=yes | |
3868 | DEFAULT_wxUSE_COMBOBOX=yes | |
3869 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3870 | DEFAULT_wxUSE_CHECKBOX=yes | |
3871 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3872 | DEFAULT_wxUSE_CHOICE=yes | |
3873 | DEFAULT_wxUSE_GAUGE=yes | |
3874 | DEFAULT_wxUSE_GRID=yes | |
2726c66d | 3875 | DEFAULT_wxUSE_NEW_GRID=yes |
a16d3c04 KB |
3876 | DEFAULT_wxUSE_IMAGLIST=yes |
3877 | DEFAULT_wxUSE_LISTBOX=yes | |
3878 | DEFAULT_wxUSE_LISTCTRL=yes | |
3879 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3880 | DEFAULT_wxUSE_RADIOBOX=yes | |
3881 | DEFAULT_wxUSE_RADIOBTN=yes | |
3882 | DEFAULT_wxUSE_SASH=yes | |
3883 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3884 | DEFAULT_wxUSE_SLIDER=yes | |
3885 | DEFAULT_wxUSE_SPINBTN=yes | |
3886 | DEFAULT_wxUSE_SPLITTER=yes | |
3887 | DEFAULT_wxUSE_STATBMP=yes | |
3888 | DEFAULT_wxUSE_STATBOX=yes | |
3889 | DEFAULT_wxUSE_STATLINE=yes | |
3890 | DEFAULT_wxUSE_STATUSBAR=yes | |
3891 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3892 | DEFAULT_wxUSE_TOOLBAR=yes | |
3893 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3894 | DEFAULT_wxUSE_TREECTRL=yes | |
3895 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3896 | DEFAULT_wxUSE_ACCEL=no | |
3897 | DEFAULT_wxUSE_CARET=no | |
3898 | DEFAULT_wxUSE_COMBOBOX=no | |
3899 | DEFAULT_wxUSE_BMPBUTTON=no | |
3900 | DEFAULT_wxUSE_CHECKBOX=no | |
3901 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3902 | DEFAULT_wxUSE_CHOICE=no | |
3903 | DEFAULT_wxUSE_GAUGE=no | |
3904 | DEFAULT_wxUSE_GRID=no | |
2726c66d | 3905 | DEFAULT_wxUSE_NEW_GRID=no |
a16d3c04 KB |
3906 | DEFAULT_wxUSE_IMAGLIST=no |
3907 | DEFAULT_wxUSE_LISTBOX=no | |
3908 | DEFAULT_wxUSE_LISTCTRL=no | |
3909 | DEFAULT_wxUSE_NOTEBOOK=no | |
3910 | DEFAULT_wxUSE_RADIOBOX=no | |
3911 | DEFAULT_wxUSE_RADIOBTN=no | |
3912 | DEFAULT_wxUSE_SASH=no | |
3913 | DEFAULT_wxUSE_SCROLLBAR=no | |
3914 | DEFAULT_wxUSE_SLIDER=no | |
3915 | DEFAULT_wxUSE_SPINBTN=no | |
3916 | DEFAULT_wxUSE_SPLITTER=no | |
3917 | DEFAULT_wxUSE_STATBMP=no | |
3918 | DEFAULT_wxUSE_STATBOX=no | |
3919 | DEFAULT_wxUSE_STATLINE=no | |
3920 | DEFAULT_wxUSE_STATUSBAR=no | |
3921 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3922 | DEFAULT_wxUSE_TOOLBAR=no | |
3923 | DEFAULT_wxUSE_TOOLTIPS=no | |
3924 | DEFAULT_wxUSE_TREECTRL=no | |
3925 | fi | |
3926 | ||
3927 | ||
3928 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
d607e6c3 | 3929 | echo "configure:3930: checking "for --enable-accel"" >&5 |
a16d3c04 KB |
3930 | no_cache=0 |
3931 | # Check whether --enable-accel or --disable-accel was given. | |
3932 | if test "${enable_accel+set}" = set; then | |
3933 | enableval="$enable_accel" | |
3934 | ||
3935 | if test "$enableval" = yes; then | |
3936 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3937 | else | |
3938 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3939 | fi | |
3940 | ||
3941 | else | |
3942 | ||
3943 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3944 | if test "x$LINE" != x ; then | |
3945 | eval "DEFAULT_$LINE" | |
3946 | else | |
3947 | no_cache=1 | |
3948 | fi | |
3949 | ||
3950 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3951 | ||
3952 | fi | |
3953 | ||
3954 | ||
3955 | eval "$ac_cv_use_accel" | |
3956 | if test "$no_cache" != 1; then | |
3957 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3958 | fi | |
3959 | ||
3960 | if test "$wxUSE_ACCEL" = yes; then | |
3961 | echo "$ac_t""yes" 1>&6 | |
3962 | else | |
3963 | echo "$ac_t""no" 1>&6 | |
3964 | fi | |
3965 | ||
3966 | ||
3967 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
d607e6c3 | 3968 | echo "configure:3969: checking "for --enable-caret"" >&5 |
a16d3c04 KB |
3969 | no_cache=0 |
3970 | # Check whether --enable-caret or --disable-caret was given. | |
3971 | if test "${enable_caret+set}" = set; then | |
3972 | enableval="$enable_caret" | |
3973 | ||
3974 | if test "$enableval" = yes; then | |
3975 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3976 | else | |
3977 | ac_cv_use_caret='wxUSE_CARET=no' | |
3978 | fi | |
3979 | ||
3980 | else | |
3981 | ||
3982 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3983 | if test "x$LINE" != x ; then | |
3984 | eval "DEFAULT_$LINE" | |
3985 | else | |
3986 | no_cache=1 | |
3987 | fi | |
3988 | ||
3989 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3990 | ||
3991 | fi | |
3992 | ||
3993 | ||
3994 | eval "$ac_cv_use_caret" | |
3995 | if test "$no_cache" != 1; then | |
3996 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
3997 | fi | |
3998 | ||
3999 | if test "$wxUSE_CARET" = yes; then | |
4000 | echo "$ac_t""yes" 1>&6 | |
4001 | else | |
4002 | echo "$ac_t""no" 1>&6 | |
4003 | fi | |
4004 | ||
4005 | ||
4006 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
d607e6c3 | 4007 | echo "configure:4008: checking "for --enable-bmpbutton"" >&5 |
a16d3c04 KB |
4008 | no_cache=0 |
4009 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4010 | if test "${enable_bmpbutton+set}" = set; then | |
4011 | enableval="$enable_bmpbutton" | |
4012 | ||
4013 | if test "$enableval" = yes; then | |
4014 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4015 | else | |
4016 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4017 | fi | |
4018 | ||
4019 | else | |
4020 | ||
4021 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4022 | if test "x$LINE" != x ; then | |
4023 | eval "DEFAULT_$LINE" | |
4024 | else | |
4025 | no_cache=1 | |
4026 | fi | |
4027 | ||
4028 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4029 | ||
4030 | fi | |
4031 | ||
4032 | ||
4033 | eval "$ac_cv_use_bmpbutton" | |
4034 | if test "$no_cache" != 1; then | |
4035 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4036 | fi | |
4037 | ||
4038 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4039 | echo "$ac_t""yes" 1>&6 | |
4040 | else | |
4041 | echo "$ac_t""no" 1>&6 | |
4042 | fi | |
4043 | ||
4044 | ||
4045 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
d607e6c3 | 4046 | echo "configure:4047: checking "for --enable-checkbox"" >&5 |
a16d3c04 KB |
4047 | no_cache=0 |
4048 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4049 | if test "${enable_checkbox+set}" = set; then | |
4050 | enableval="$enable_checkbox" | |
4051 | ||
4052 | if test "$enableval" = yes; then | |
4053 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4054 | else | |
4055 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4056 | fi | |
4057 | ||
4058 | else | |
4059 | ||
4060 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4061 | if test "x$LINE" != x ; then | |
4062 | eval "DEFAULT_$LINE" | |
4063 | else | |
4064 | no_cache=1 | |
4065 | fi | |
4066 | ||
4067 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4068 | ||
4069 | fi | |
4070 | ||
4071 | ||
4072 | eval "$ac_cv_use_checkbox" | |
4073 | if test "$no_cache" != 1; then | |
4074 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4075 | fi | |
4076 | ||
4077 | if test "$wxUSE_CHECKBOX" = yes; then | |
4078 | echo "$ac_t""yes" 1>&6 | |
4079 | else | |
4080 | echo "$ac_t""no" 1>&6 | |
4081 | fi | |
4082 | ||
4083 | ||
4084 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
d607e6c3 | 4085 | echo "configure:4086: checking "for --enable-checklst"" >&5 |
a16d3c04 KB |
4086 | no_cache=0 |
4087 | # Check whether --enable-checklst or --disable-checklst was given. | |
4088 | if test "${enable_checklst+set}" = set; then | |
4089 | enableval="$enable_checklst" | |
4090 | ||
4091 | if test "$enableval" = yes; then | |
4092 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4093 | else | |
4094 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4095 | fi | |
4096 | ||
4097 | else | |
4098 | ||
4099 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4100 | if test "x$LINE" != x ; then | |
4101 | eval "DEFAULT_$LINE" | |
4102 | else | |
4103 | no_cache=1 | |
4104 | fi | |
4105 | ||
4106 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4107 | ||
4108 | fi | |
4109 | ||
4110 | ||
4111 | eval "$ac_cv_use_checklst" | |
4112 | if test "$no_cache" != 1; then | |
4113 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4114 | fi | |
4115 | ||
4116 | if test "$wxUSE_CHECKLST" = yes; then | |
4117 | echo "$ac_t""yes" 1>&6 | |
4118 | else | |
4119 | echo "$ac_t""no" 1>&6 | |
4120 | fi | |
4121 | ||
4122 | ||
4123 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
d607e6c3 | 4124 | echo "configure:4125: checking "for --enable-choice"" >&5 |
a16d3c04 KB |
4125 | no_cache=0 |
4126 | # Check whether --enable-choice or --disable-choice was given. | |
4127 | if test "${enable_choice+set}" = set; then | |
4128 | enableval="$enable_choice" | |
4129 | ||
4130 | if test "$enableval" = yes; then | |
4131 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4132 | else | |
4133 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4134 | fi | |
4135 | ||
4136 | else | |
4137 | ||
4138 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4139 | if test "x$LINE" != x ; then | |
4140 | eval "DEFAULT_$LINE" | |
4141 | else | |
4142 | no_cache=1 | |
4143 | fi | |
4144 | ||
4145 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4146 | ||
4147 | fi | |
4148 | ||
4149 | ||
4150 | eval "$ac_cv_use_choice" | |
4151 | if test "$no_cache" != 1; then | |
4152 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4153 | fi | |
4154 | ||
4155 | if test "$wxUSE_CHOICE" = yes; then | |
4156 | echo "$ac_t""yes" 1>&6 | |
4157 | else | |
4158 | echo "$ac_t""no" 1>&6 | |
4159 | fi | |
4160 | ||
4161 | ||
4162 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
d607e6c3 | 4163 | echo "configure:4164: checking "for --enable-combobox"" >&5 |
a16d3c04 KB |
4164 | no_cache=0 |
4165 | # Check whether --enable-combobox or --disable-combobox was given. | |
4166 | if test "${enable_combobox+set}" = set; then | |
4167 | enableval="$enable_combobox" | |
4168 | ||
4169 | if test "$enableval" = yes; then | |
4170 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4171 | else | |
4172 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4173 | fi | |
4174 | ||
4175 | else | |
4176 | ||
4177 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4178 | if test "x$LINE" != x ; then | |
4179 | eval "DEFAULT_$LINE" | |
4180 | else | |
4181 | no_cache=1 | |
4182 | fi | |
4183 | ||
4184 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4185 | ||
4186 | fi | |
4187 | ||
4188 | ||
4189 | eval "$ac_cv_use_combobox" | |
4190 | if test "$no_cache" != 1; then | |
4191 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4192 | fi | |
4193 | ||
4194 | if test "$wxUSE_COMBOBOX" = yes; then | |
4195 | echo "$ac_t""yes" 1>&6 | |
4196 | else | |
4197 | echo "$ac_t""no" 1>&6 | |
4198 | fi | |
4199 | ||
4200 | ||
4201 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
d607e6c3 | 4202 | echo "configure:4203: checking "for --enable-gauge"" >&5 |
a16d3c04 KB |
4203 | no_cache=0 |
4204 | # Check whether --enable-gauge or --disable-gauge was given. | |
4205 | if test "${enable_gauge+set}" = set; then | |
4206 | enableval="$enable_gauge" | |
4207 | ||
4208 | if test "$enableval" = yes; then | |
4209 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4210 | else | |
4211 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4212 | fi | |
4213 | ||
4214 | else | |
4215 | ||
4216 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4217 | if test "x$LINE" != x ; then | |
4218 | eval "DEFAULT_$LINE" | |
4219 | else | |
4220 | no_cache=1 | |
4221 | fi | |
4222 | ||
4223 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4224 | ||
4225 | fi | |
4226 | ||
4227 | ||
4228 | eval "$ac_cv_use_gauge" | |
4229 | if test "$no_cache" != 1; then | |
4230 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4231 | fi | |
4232 | ||
4233 | if test "$wxUSE_GAUGE" = yes; then | |
4234 | echo "$ac_t""yes" 1>&6 | |
4235 | else | |
4236 | echo "$ac_t""no" 1>&6 | |
4237 | fi | |
4238 | ||
4239 | ||
4240 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
d607e6c3 | 4241 | echo "configure:4242: checking "for --enable-grid"" >&5 |
a16d3c04 KB |
4242 | no_cache=0 |
4243 | # Check whether --enable-grid or --disable-grid was given. | |
4244 | if test "${enable_grid+set}" = set; then | |
4245 | enableval="$enable_grid" | |
4246 | ||
4247 | if test "$enableval" = yes; then | |
4248 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4249 | else | |
4250 | ac_cv_use_grid='wxUSE_GRID=no' | |
4251 | fi | |
4252 | ||
4253 | else | |
4254 | ||
4255 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4256 | if test "x$LINE" != x ; then | |
4257 | eval "DEFAULT_$LINE" | |
4258 | else | |
4259 | no_cache=1 | |
4260 | fi | |
4261 | ||
4262 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4263 | ||
4264 | fi | |
4265 | ||
4266 | ||
4267 | eval "$ac_cv_use_grid" | |
4268 | if test "$no_cache" != 1; then | |
4269 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4270 | fi | |
4271 | ||
4272 | if test "$wxUSE_GRID" = yes; then | |
4273 | echo "$ac_t""yes" 1>&6 | |
4274 | else | |
4275 | echo "$ac_t""no" 1>&6 | |
4276 | fi | |
4277 | ||
4278 | ||
2726c66d | 4279 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 |
d607e6c3 | 4280 | echo "configure:4281: checking "for --enable-newgrid"" >&5 |
2726c66d KB |
4281 | no_cache=0 |
4282 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4283 | if test "${enable_newgrid+set}" = set; then | |
4284 | enableval="$enable_newgrid" | |
4285 | ||
4286 | if test "$enableval" = yes; then | |
4287 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4288 | else | |
4289 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4290 | fi | |
4291 | ||
4292 | else | |
4293 | ||
4294 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4295 | if test "x$LINE" != x ; then | |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
4301 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4302 | ||
4303 | fi | |
4304 | ||
4305 | ||
4306 | eval "$ac_cv_use_newgrid" | |
4307 | if test "$no_cache" != 1; then | |
4308 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4309 | fi | |
4310 | ||
4311 | if test "$wxUSE_NEW_GRID" = yes; then | |
4312 | echo "$ac_t""yes" 1>&6 | |
4313 | else | |
4314 | echo "$ac_t""no" 1>&6 | |
4315 | fi | |
4316 | ||
4317 | ||
a16d3c04 | 4318 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 |
d607e6c3 | 4319 | echo "configure:4320: checking "for --enable-imaglist"" >&5 |
a16d3c04 KB |
4320 | no_cache=0 |
4321 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4322 | if test "${enable_imaglist+set}" = set; then | |
4323 | enableval="$enable_imaglist" | |
4324 | ||
4325 | if test "$enableval" = yes; then | |
4326 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4327 | else | |
4328 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4329 | fi | |
4330 | ||
4331 | else | |
4332 | ||
4333 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4334 | if test "x$LINE" != x ; then | |
4335 | eval "DEFAULT_$LINE" | |
4336 | else | |
4337 | no_cache=1 | |
4338 | fi | |
4339 | ||
4340 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4341 | ||
4342 | fi | |
4343 | ||
4344 | ||
4345 | eval "$ac_cv_use_imaglist" | |
4346 | if test "$no_cache" != 1; then | |
4347 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4348 | fi | |
4349 | ||
4350 | if test "$wxUSE_IMAGLIST" = yes; then | |
4351 | echo "$ac_t""yes" 1>&6 | |
4352 | else | |
4353 | echo "$ac_t""no" 1>&6 | |
4354 | fi | |
4355 | ||
4356 | ||
4357 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
d607e6c3 | 4358 | echo "configure:4359: checking "for --enable-listbox"" >&5 |
a16d3c04 KB |
4359 | no_cache=0 |
4360 | # Check whether --enable-listbox or --disable-listbox was given. | |
4361 | if test "${enable_listbox+set}" = set; then | |
4362 | enableval="$enable_listbox" | |
4363 | ||
4364 | if test "$enableval" = yes; then | |
4365 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4366 | else | |
4367 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4368 | fi | |
4369 | ||
4370 | else | |
4371 | ||
4372 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4373 | if test "x$LINE" != x ; then | |
4374 | eval "DEFAULT_$LINE" | |
4375 | else | |
4376 | no_cache=1 | |
4377 | fi | |
4378 | ||
4379 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4380 | ||
4381 | fi | |
4382 | ||
4383 | ||
4384 | eval "$ac_cv_use_listbox" | |
4385 | if test "$no_cache" != 1; then | |
4386 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4387 | fi | |
4388 | ||
4389 | if test "$wxUSE_LISTBOX" = yes; then | |
4390 | echo "$ac_t""yes" 1>&6 | |
4391 | else | |
4392 | echo "$ac_t""no" 1>&6 | |
4393 | fi | |
4394 | ||
4395 | ||
4396 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
d607e6c3 | 4397 | echo "configure:4398: checking "for --enable-listctrl"" >&5 |
a16d3c04 KB |
4398 | no_cache=0 |
4399 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4400 | if test "${enable_listctrl+set}" = set; then | |
4401 | enableval="$enable_listctrl" | |
4402 | ||
4403 | if test "$enableval" = yes; then | |
4404 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4405 | else | |
4406 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4407 | fi | |
4408 | ||
4409 | else | |
4410 | ||
4411 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4412 | if test "x$LINE" != x ; then | |
4413 | eval "DEFAULT_$LINE" | |
4414 | else | |
4415 | no_cache=1 | |
4416 | fi | |
4417 | ||
4418 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4419 | ||
4420 | fi | |
4421 | ||
4422 | ||
4423 | eval "$ac_cv_use_listctrl" | |
4424 | if test "$no_cache" != 1; then | |
4425 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4426 | fi | |
4427 | ||
4428 | if test "$wxUSE_LISTCTRL" = yes; then | |
4429 | echo "$ac_t""yes" 1>&6 | |
4430 | else | |
4431 | echo "$ac_t""no" 1>&6 | |
4432 | fi | |
4433 | ||
4434 | ||
4435 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
d607e6c3 | 4436 | echo "configure:4437: checking "for --enable-notebook"" >&5 |
a16d3c04 KB |
4437 | no_cache=0 |
4438 | # Check whether --enable-notebook or --disable-notebook was given. | |
4439 | if test "${enable_notebook+set}" = set; then | |
4440 | enableval="$enable_notebook" | |
4441 | ||
4442 | if test "$enableval" = yes; then | |
4443 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4444 | else | |
4445 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4446 | fi | |
4447 | ||
4448 | else | |
4449 | ||
4450 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4451 | if test "x$LINE" != x ; then | |
4452 | eval "DEFAULT_$LINE" | |
4453 | else | |
4454 | no_cache=1 | |
4455 | fi | |
4456 | ||
4457 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4458 | ||
4459 | fi | |
4460 | ||
4461 | ||
4462 | eval "$ac_cv_use_notebook" | |
4463 | if test "$no_cache" != 1; then | |
4464 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4465 | fi | |
4466 | ||
4467 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4468 | echo "$ac_t""yes" 1>&6 | |
4469 | else | |
4470 | echo "$ac_t""no" 1>&6 | |
4471 | fi | |
4472 | ||
4473 | ||
4474 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
d607e6c3 | 4475 | echo "configure:4476: checking "for --enable-radiobox"" >&5 |
a16d3c04 KB |
4476 | no_cache=0 |
4477 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4478 | if test "${enable_radiobox+set}" = set; then | |
4479 | enableval="$enable_radiobox" | |
4480 | ||
4481 | if test "$enableval" = yes; then | |
4482 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4483 | else | |
4484 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4485 | fi | |
4486 | ||
4487 | else | |
4488 | ||
4489 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4490 | if test "x$LINE" != x ; then | |
4491 | eval "DEFAULT_$LINE" | |
4492 | else | |
4493 | no_cache=1 | |
4494 | fi | |
4495 | ||
4496 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4497 | ||
4498 | fi | |
4499 | ||
4500 | ||
4501 | eval "$ac_cv_use_radiobox" | |
4502 | if test "$no_cache" != 1; then | |
4503 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4504 | fi | |
4505 | ||
4506 | if test "$wxUSE_RADIOBOX" = yes; then | |
4507 | echo "$ac_t""yes" 1>&6 | |
4508 | else | |
4509 | echo "$ac_t""no" 1>&6 | |
4510 | fi | |
4511 | ||
4512 | ||
4513 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
d607e6c3 | 4514 | echo "configure:4515: checking "for --enable-radiobtn"" >&5 |
a16d3c04 KB |
4515 | no_cache=0 |
4516 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4517 | if test "${enable_radiobtn+set}" = set; then | |
4518 | enableval="$enable_radiobtn" | |
4519 | ||
4520 | if test "$enableval" = yes; then | |
4521 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4522 | else | |
4523 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4524 | fi | |
4525 | ||
4526 | else | |
4527 | ||
4528 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4529 | if test "x$LINE" != x ; then | |
4530 | eval "DEFAULT_$LINE" | |
4531 | else | |
4532 | no_cache=1 | |
4533 | fi | |
4534 | ||
4535 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4536 | ||
4537 | fi | |
4538 | ||
4539 | ||
4540 | eval "$ac_cv_use_radiobtn" | |
4541 | if test "$no_cache" != 1; then | |
4542 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4543 | fi | |
4544 | ||
4545 | if test "$wxUSE_RADIOBTN" = yes; then | |
4546 | echo "$ac_t""yes" 1>&6 | |
4547 | else | |
4548 | echo "$ac_t""no" 1>&6 | |
4549 | fi | |
4550 | ||
4551 | ||
4552 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
d607e6c3 | 4553 | echo "configure:4554: checking "for --enable-sash"" >&5 |
a16d3c04 KB |
4554 | no_cache=0 |
4555 | # Check whether --enable-sash or --disable-sash was given. | |
4556 | if test "${enable_sash+set}" = set; then | |
4557 | enableval="$enable_sash" | |
4558 | ||
4559 | if test "$enableval" = yes; then | |
4560 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4561 | else | |
4562 | ac_cv_use_sash='wxUSE_SASH=no' | |
4563 | fi | |
4564 | ||
4565 | else | |
4566 | ||
4567 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4568 | if test "x$LINE" != x ; then | |
4569 | eval "DEFAULT_$LINE" | |
4570 | else | |
4571 | no_cache=1 | |
4572 | fi | |
4573 | ||
4574 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4575 | ||
4576 | fi | |
4577 | ||
4578 | ||
4579 | eval "$ac_cv_use_sash" | |
4580 | if test "$no_cache" != 1; then | |
4581 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4582 | fi | |
4583 | ||
4584 | if test "$wxUSE_SASH" = yes; then | |
4585 | echo "$ac_t""yes" 1>&6 | |
4586 | else | |
4587 | echo "$ac_t""no" 1>&6 | |
4588 | fi | |
4589 | ||
4590 | ||
4591 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
d607e6c3 | 4592 | echo "configure:4593: checking "for --enable-scrollbar"" >&5 |
a16d3c04 KB |
4593 | no_cache=0 |
4594 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4595 | if test "${enable_scrollbar+set}" = set; then | |
4596 | enableval="$enable_scrollbar" | |
4597 | ||
4598 | if test "$enableval" = yes; then | |
4599 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4600 | else | |
4601 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4602 | fi | |
4603 | ||
4604 | else | |
4605 | ||
4606 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4607 | if test "x$LINE" != x ; then | |
4608 | eval "DEFAULT_$LINE" | |
4609 | else | |
4610 | no_cache=1 | |
4611 | fi | |
4612 | ||
4613 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4614 | ||
4615 | fi | |
4616 | ||
4617 | ||
4618 | eval "$ac_cv_use_scrollbar" | |
4619 | if test "$no_cache" != 1; then | |
4620 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4621 | fi | |
4622 | ||
4623 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4624 | echo "$ac_t""yes" 1>&6 | |
4625 | else | |
4626 | echo "$ac_t""no" 1>&6 | |
4627 | fi | |
4628 | ||
4629 | ||
4630 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
d607e6c3 | 4631 | echo "configure:4632: checking "for --enable-slider"" >&5 |
a16d3c04 KB |
4632 | no_cache=0 |
4633 | # Check whether --enable-slider or --disable-slider was given. | |
4634 | if test "${enable_slider+set}" = set; then | |
4635 | enableval="$enable_slider" | |
4636 | ||
4637 | if test "$enableval" = yes; then | |
4638 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4639 | else | |
4640 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4641 | fi | |
4642 | ||
4643 | else | |
4644 | ||
4645 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4646 | if test "x$LINE" != x ; then | |
4647 | eval "DEFAULT_$LINE" | |
4648 | else | |
4649 | no_cache=1 | |
4650 | fi | |
4651 | ||
4652 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4653 | ||
4654 | fi | |
4655 | ||
4656 | ||
4657 | eval "$ac_cv_use_slider" | |
4658 | if test "$no_cache" != 1; then | |
4659 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4660 | fi | |
4661 | ||
4662 | if test "$wxUSE_SLIDER" = yes; then | |
4663 | echo "$ac_t""yes" 1>&6 | |
4664 | else | |
4665 | echo "$ac_t""no" 1>&6 | |
4666 | fi | |
4667 | ||
4668 | ||
4669 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
d607e6c3 | 4670 | echo "configure:4671: checking "for --enable-spinbtn"" >&5 |
a16d3c04 KB |
4671 | no_cache=0 |
4672 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4673 | if test "${enable_spinbtn+set}" = set; then | |
4674 | enableval="$enable_spinbtn" | |
4675 | ||
4676 | if test "$enableval" = yes; then | |
4677 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4678 | else | |
4679 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4680 | fi | |
4681 | ||
4682 | else | |
4683 | ||
4684 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4685 | if test "x$LINE" != x ; then | |
4686 | eval "DEFAULT_$LINE" | |
4687 | else | |
4688 | no_cache=1 | |
4689 | fi | |
4690 | ||
4691 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4692 | ||
4693 | fi | |
4694 | ||
4695 | ||
4696 | eval "$ac_cv_use_spinbtn" | |
4697 | if test "$no_cache" != 1; then | |
4698 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4699 | fi | |
4700 | ||
4701 | if test "$wxUSE_SPINBTN" = yes; then | |
4702 | echo "$ac_t""yes" 1>&6 | |
4703 | else | |
4704 | echo "$ac_t""no" 1>&6 | |
4705 | fi | |
4706 | ||
4707 | ||
4708 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
d607e6c3 | 4709 | echo "configure:4710: checking "for --enable-splitter"" >&5 |
a16d3c04 KB |
4710 | no_cache=0 |
4711 | # Check whether --enable-splitter or --disable-splitter was given. | |
4712 | if test "${enable_splitter+set}" = set; then | |
4713 | enableval="$enable_splitter" | |
4714 | ||
4715 | if test "$enableval" = yes; then | |
4716 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4717 | else | |
4718 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4719 | fi | |
4720 | ||
4721 | else | |
4722 | ||
4723 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
4730 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4731 | ||
4732 | fi | |
4733 | ||
4734 | ||
4735 | eval "$ac_cv_use_splitter" | |
4736 | if test "$no_cache" != 1; then | |
4737 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4738 | fi | |
4739 | ||
4740 | if test "$wxUSE_SPLITTER" = yes; then | |
4741 | echo "$ac_t""yes" 1>&6 | |
4742 | else | |
4743 | echo "$ac_t""no" 1>&6 | |
4744 | fi | |
4745 | ||
4746 | ||
4747 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
d607e6c3 | 4748 | echo "configure:4749: checking "for --enable-statbmp"" >&5 |
a16d3c04 KB |
4749 | no_cache=0 |
4750 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4751 | if test "${enable_statbmp+set}" = set; then | |
4752 | enableval="$enable_statbmp" | |
4753 | ||
4754 | if test "$enableval" = yes; then | |
4755 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4756 | else | |
4757 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4758 | fi | |
4759 | ||
4760 | else | |
4761 | ||
4762 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4763 | if test "x$LINE" != x ; then | |
4764 | eval "DEFAULT_$LINE" | |
4765 | else | |
4766 | no_cache=1 | |
4767 | fi | |
4768 | ||
4769 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4770 | ||
4771 | fi | |
4772 | ||
4773 | ||
4774 | eval "$ac_cv_use_statbmp" | |
4775 | if test "$no_cache" != 1; then | |
4776 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4777 | fi | |
4778 | ||
4779 | if test "$wxUSE_STATBMP" = yes; then | |
4780 | echo "$ac_t""yes" 1>&6 | |
4781 | else | |
4782 | echo "$ac_t""no" 1>&6 | |
4783 | fi | |
4784 | ||
4785 | ||
4786 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
d607e6c3 | 4787 | echo "configure:4788: checking "for --enable-statbox"" >&5 |
a16d3c04 KB |
4788 | no_cache=0 |
4789 | # Check whether --enable-statbox or --disable-statbox was given. | |
4790 | if test "${enable_statbox+set}" = set; then | |
4791 | enableval="$enable_statbox" | |
4792 | ||
4793 | if test "$enableval" = yes; then | |
4794 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4795 | else | |
4796 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4797 | fi | |
4798 | ||
4799 | else | |
4800 | ||
4801 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4802 | if test "x$LINE" != x ; then | |
4803 | eval "DEFAULT_$LINE" | |
4804 | else | |
4805 | no_cache=1 | |
4806 | fi | |
4807 | ||
4808 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4809 | ||
4810 | fi | |
4811 | ||
4812 | ||
4813 | eval "$ac_cv_use_statbox" | |
4814 | if test "$no_cache" != 1; then | |
4815 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4816 | fi | |
4817 | ||
4818 | if test "$wxUSE_STATBOX" = yes; then | |
4819 | echo "$ac_t""yes" 1>&6 | |
4820 | else | |
4821 | echo "$ac_t""no" 1>&6 | |
4822 | fi | |
4823 | ||
4824 | ||
4825 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
d607e6c3 | 4826 | echo "configure:4827: checking "for --enable-statline"" >&5 |
a16d3c04 KB |
4827 | no_cache=0 |
4828 | # Check whether --enable-statline or --disable-statline was given. | |
4829 | if test "${enable_statline+set}" = set; then | |
4830 | enableval="$enable_statline" | |
4831 | ||
4832 | if test "$enableval" = yes; then | |
4833 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4834 | else | |
4835 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4836 | fi | |
4837 | ||
4838 | else | |
4839 | ||
4840 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4841 | if test "x$LINE" != x ; then | |
4842 | eval "DEFAULT_$LINE" | |
4843 | else | |
4844 | no_cache=1 | |
4845 | fi | |
4846 | ||
4847 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4848 | ||
4849 | fi | |
4850 | ||
4851 | ||
4852 | eval "$ac_cv_use_statline" | |
4853 | if test "$no_cache" != 1; then | |
4854 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4855 | fi | |
4856 | ||
4857 | if test "$wxUSE_STATLINE" = yes; then | |
4858 | echo "$ac_t""yes" 1>&6 | |
4859 | else | |
4860 | echo "$ac_t""no" 1>&6 | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
d607e6c3 | 4865 | echo "configure:4866: checking "for --enable-statusbar"" >&5 |
a16d3c04 KB |
4866 | no_cache=0 |
4867 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4868 | if test "${enable_statusbar+set}" = set; then | |
4869 | enableval="$enable_statusbar" | |
4870 | ||
4871 | if test "$enableval" = yes; then | |
4872 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4873 | else | |
4874 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4875 | fi | |
4876 | ||
4877 | else | |
4878 | ||
4879 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4880 | if test "x$LINE" != x ; then | |
4881 | eval "DEFAULT_$LINE" | |
4882 | else | |
4883 | no_cache=1 | |
4884 | fi | |
4885 | ||
4886 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4887 | ||
4888 | fi | |
4889 | ||
4890 | ||
4891 | eval "$ac_cv_use_statusbar" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_STATUSBAR" = yes; then | |
4897 | echo "$ac_t""yes" 1>&6 | |
4898 | else | |
4899 | echo "$ac_t""no" 1>&6 | |
4900 | fi | |
4901 | ||
4902 | ||
4903 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
d607e6c3 | 4904 | echo "configure:4905: checking "for --enable-tabdialog"" >&5 |
a16d3c04 KB |
4905 | no_cache=0 |
4906 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4907 | if test "${enable_tabdialog+set}" = set; then | |
4908 | enableval="$enable_tabdialog" | |
4909 | ||
4910 | if test "$enableval" = yes; then | |
4911 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4912 | else | |
4913 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4914 | fi | |
4915 | ||
4916 | else | |
4917 | ||
4918 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4919 | if test "x$LINE" != x ; then | |
4920 | eval "DEFAULT_$LINE" | |
4921 | else | |
4922 | no_cache=1 | |
4923 | fi | |
4924 | ||
4925 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4926 | ||
4927 | fi | |
4928 | ||
4929 | ||
4930 | eval "$ac_cv_use_tabdialog" | |
4931 | if test "$no_cache" != 1; then | |
4932 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4933 | fi | |
4934 | ||
4935 | if test "$wxUSE_TABDIALOG" = yes; then | |
4936 | echo "$ac_t""yes" 1>&6 | |
4937 | else | |
4938 | echo "$ac_t""no" 1>&6 | |
4939 | fi | |
4940 | ||
4941 | ||
4942 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
d607e6c3 | 4943 | echo "configure:4944: checking "for --enable-toolbar"" >&5 |
a16d3c04 KB |
4944 | no_cache=0 |
4945 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4946 | if test "${enable_toolbar+set}" = set; then | |
4947 | enableval="$enable_toolbar" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4951 | else | |
4952 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
4965 | ||
4966 | fi | |
4967 | ||
4968 | ||
4969 | eval "$ac_cv_use_toolbar" | |
4970 | if test "$no_cache" != 1; then | |
4971 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
4972 | fi | |
4973 | ||
4974 | if test "$wxUSE_TOOLBAR" = yes; then | |
4975 | echo "$ac_t""yes" 1>&6 | |
4976 | else | |
4977 | echo "$ac_t""no" 1>&6 | |
4978 | fi | |
4979 | ||
4980 | ||
4981 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
d607e6c3 | 4982 | echo "configure:4983: checking "for --enable-treectrl"" >&5 |
a16d3c04 KB |
4983 | no_cache=0 |
4984 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
4985 | if test "${enable_treectrl+set}" = set; then | |
4986 | enableval="$enable_treectrl" | |
4987 | ||
4988 | if test "$enableval" = yes; then | |
4989 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
4990 | else | |
4991 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
4992 | fi | |
4993 | ||
4994 | else | |
4995 | ||
4996 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
4997 | if test "x$LINE" != x ; then | |
4998 | eval "DEFAULT_$LINE" | |
4999 | else | |
5000 | no_cache=1 | |
5001 | fi | |
5002 | ||
5003 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5004 | ||
5005 | fi | |
5006 | ||
5007 | ||
5008 | eval "$ac_cv_use_treectrl" | |
5009 | if test "$no_cache" != 1; then | |
5010 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5011 | fi | |
5012 | ||
5013 | if test "$wxUSE_TREECTRL" = yes; then | |
5014 | echo "$ac_t""yes" 1>&6 | |
5015 | else | |
5016 | echo "$ac_t""no" 1>&6 | |
5017 | fi | |
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
d607e6c3 | 5023 | echo "configure:5024: checking "for --enable-commondlg"" >&5 |
a16d3c04 KB |
5024 | no_cache=0 |
5025 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5026 | if test "${enable_commondlg+set}" = set; then | |
5027 | enableval="$enable_commondlg" | |
5028 | ||
5029 | if test "$enableval" = yes; then | |
5030 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5031 | else | |
5032 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5033 | fi | |
5034 | ||
5035 | else | |
5036 | ||
5037 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5038 | if test "x$LINE" != x ; then | |
5039 | eval "DEFAULT_$LINE" | |
5040 | else | |
5041 | no_cache=1 | |
5042 | fi | |
5043 | ||
5044 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5045 | ||
5046 | fi | |
5047 | ||
5048 | ||
5049 | eval "$ac_cv_use_commondlg" | |
5050 | if test "$no_cache" != 1; then | |
5051 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5052 | fi | |
5053 | ||
5054 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5055 | echo "$ac_t""yes" 1>&6 | |
5056 | else | |
5057 | echo "$ac_t""no" 1>&6 | |
5058 | fi | |
5059 | ||
5060 | ||
5061 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
d607e6c3 | 5062 | echo "configure:5063: checking "for --enable-dirdlg"" >&5 |
a16d3c04 KB |
5063 | no_cache=0 |
5064 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5065 | if test "${enable_dirdlg+set}" = set; then | |
5066 | enableval="$enable_dirdlg" | |
5067 | ||
5068 | if test "$enableval" = yes; then | |
5069 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5070 | else | |
5071 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5072 | fi | |
5073 | ||
5074 | else | |
5075 | ||
5076 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5077 | if test "x$LINE" != x ; then | |
5078 | eval "DEFAULT_$LINE" | |
5079 | else | |
5080 | no_cache=1 | |
5081 | fi | |
5082 | ||
5083 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5084 | ||
5085 | fi | |
5086 | ||
5087 | ||
5088 | eval "$ac_cv_use_dirdlg" | |
5089 | if test "$no_cache" != 1; then | |
5090 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5091 | fi | |
5092 | ||
5093 | if test "$wxUSE_DIRDLG" = yes; then | |
5094 | echo "$ac_t""yes" 1>&6 | |
5095 | else | |
5096 | echo "$ac_t""no" 1>&6 | |
5097 | fi | |
5098 | ||
5099 | ||
5100 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
d607e6c3 | 5101 | echo "configure:5102: checking "for --enable-textdlg"" >&5 |
a16d3c04 KB |
5102 | no_cache=0 |
5103 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5104 | if test "${enable_textdlg+set}" = set; then | |
5105 | enableval="$enable_textdlg" | |
5106 | ||
5107 | if test "$enableval" = yes; then | |
5108 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5109 | else | |
5110 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5111 | fi | |
5112 | ||
5113 | else | |
5114 | ||
5115 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5116 | if test "x$LINE" != x ; then | |
5117 | eval "DEFAULT_$LINE" | |
5118 | else | |
5119 | no_cache=1 | |
5120 | fi | |
5121 | ||
5122 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5123 | ||
5124 | fi | |
5125 | ||
5126 | ||
5127 | eval "$ac_cv_use_textdlg" | |
5128 | if test "$no_cache" != 1; then | |
5129 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5130 | fi | |
5131 | ||
5132 | if test "$wxUSE_TEXTDLG" = yes; then | |
5133 | echo "$ac_t""yes" 1>&6 | |
5134 | else | |
5135 | echo "$ac_t""no" 1>&6 | |
5136 | fi | |
5137 | ||
5138 | ||
5139 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
d607e6c3 | 5140 | echo "configure:5141: checking "for --enable-tipdlg"" >&5 |
a16d3c04 KB |
5141 | no_cache=0 |
5142 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5143 | if test "${enable_tipdlg+set}" = set; then | |
5144 | enableval="$enable_tipdlg" | |
5145 | ||
5146 | if test "$enableval" = yes; then | |
5147 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5148 | else | |
5149 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5150 | fi | |
5151 | ||
5152 | else | |
5153 | ||
5154 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5155 | if test "x$LINE" != x ; then | |
5156 | eval "DEFAULT_$LINE" | |
5157 | else | |
5158 | no_cache=1 | |
5159 | fi | |
5160 | ||
5161 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5162 | ||
5163 | fi | |
5164 | ||
5165 | ||
5166 | eval "$ac_cv_use_tipdlg" | |
5167 | if test "$no_cache" != 1; then | |
5168 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5169 | fi | |
5170 | ||
5171 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5172 | echo "$ac_t""yes" 1>&6 | |
5173 | else | |
5174 | echo "$ac_t""no" 1>&6 | |
5175 | fi | |
5176 | ||
5177 | ||
5178 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
d607e6c3 | 5179 | echo "configure:5180: checking "for --enable-progressdlg"" >&5 |
a16d3c04 KB |
5180 | no_cache=0 |
5181 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5182 | if test "${enable_progressdlg+set}" = set; then | |
5183 | enableval="$enable_progressdlg" | |
5184 | ||
5185 | if test "$enableval" = yes; then | |
5186 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5187 | else | |
5188 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5189 | fi | |
5190 | ||
5191 | else | |
5192 | ||
5193 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5194 | if test "x$LINE" != x ; then | |
5195 | eval "DEFAULT_$LINE" | |
5196 | else | |
5197 | no_cache=1 | |
5198 | fi | |
5199 | ||
5200 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5201 | ||
5202 | fi | |
5203 | ||
5204 | ||
5205 | eval "$ac_cv_use_progressdlg" | |
5206 | if test "$no_cache" != 1; then | |
5207 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5208 | fi | |
5209 | ||
5210 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5211 | echo "$ac_t""yes" 1>&6 | |
5212 | else | |
5213 | echo "$ac_t""no" 1>&6 | |
5214 | fi | |
5215 | ||
5216 | ||
5217 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
d607e6c3 | 5218 | echo "configure:5219: checking "for --enable-miniframe"" >&5 |
a16d3c04 KB |
5219 | no_cache=0 |
5220 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5221 | if test "${enable_miniframe+set}" = set; then | |
5222 | enableval="$enable_miniframe" | |
5223 | ||
5224 | if test "$enableval" = yes; then | |
5225 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5226 | else | |
5227 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5228 | fi | |
5229 | ||
5230 | else | |
5231 | ||
5232 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5233 | if test "x$LINE" != x ; then | |
5234 | eval "DEFAULT_$LINE" | |
5235 | else | |
5236 | no_cache=1 | |
5237 | fi | |
5238 | ||
5239 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5240 | ||
5241 | fi | |
5242 | ||
5243 | ||
5244 | eval "$ac_cv_use_miniframe" | |
5245 | if test "$no_cache" != 1; then | |
5246 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5247 | fi | |
5248 | ||
5249 | if test "$wxUSE_MINIFRAME" = yes; then | |
5250 | echo "$ac_t""yes" 1>&6 | |
5251 | else | |
5252 | echo "$ac_t""no" 1>&6 | |
5253 | fi | |
5254 | ||
5255 | ||
5256 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
d607e6c3 | 5257 | echo "configure:5258: checking "for --enable-html"" >&5 |
a16d3c04 KB |
5258 | no_cache=0 |
5259 | # Check whether --enable-html or --disable-html was given. | |
5260 | if test "${enable_html+set}" = set; then | |
5261 | enableval="$enable_html" | |
5262 | ||
5263 | if test "$enableval" = yes; then | |
5264 | ac_cv_use_html='wxUSE_HTML=yes' | |
5265 | else | |
5266 | ac_cv_use_html='wxUSE_HTML=no' | |
5267 | fi | |
5268 | ||
5269 | else | |
5270 | ||
5271 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5272 | if test "x$LINE" != x ; then | |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
5278 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5279 | ||
5280 | fi | |
5281 | ||
5282 | ||
5283 | eval "$ac_cv_use_html" | |
5284 | if test "$no_cache" != 1; then | |
5285 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5286 | fi | |
5287 | ||
5288 | if test "$wxUSE_HTML" = yes; then | |
5289 | echo "$ac_t""yes" 1>&6 | |
5290 | else | |
5291 | echo "$ac_t""no" 1>&6 | |
5292 | fi | |
5293 | ||
5294 | ||
5295 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
d607e6c3 | 5296 | echo "configure:5297: checking "for --enable-tooltips"" >&5 |
a16d3c04 KB |
5297 | no_cache=0 |
5298 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5299 | if test "${enable_tooltips+set}" = set; then | |
5300 | enableval="$enable_tooltips" | |
5301 | ||
5302 | if test "$enableval" = yes; then | |
5303 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5304 | else | |
5305 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5306 | fi | |
5307 | ||
5308 | else | |
5309 | ||
5310 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5318 | ||
5319 | fi | |
5320 | ||
5321 | ||
5322 | eval "$ac_cv_use_tooltips" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5328 | echo "$ac_t""yes" 1>&6 | |
5329 | else | |
5330 | echo "$ac_t""no" 1>&6 | |
5331 | fi | |
5332 | ||
5333 | ||
5334 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
d607e6c3 | 5335 | echo "configure:5336: checking "for --enable-splines"" >&5 |
a16d3c04 KB |
5336 | no_cache=0 |
5337 | # Check whether --enable-splines or --disable-splines was given. | |
5338 | if test "${enable_splines+set}" = set; then | |
5339 | enableval="$enable_splines" | |
5340 | ||
5341 | if test "$enableval" = yes; then | |
5342 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5343 | else | |
5344 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5345 | fi | |
5346 | ||
5347 | else | |
5348 | ||
5349 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5357 | ||
5358 | fi | |
5359 | ||
5360 | ||
5361 | eval "$ac_cv_use_splines" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_SPLINES" = yes; then | |
5367 | echo "$ac_t""yes" 1>&6 | |
5368 | else | |
5369 | echo "$ac_t""no" 1>&6 | |
5370 | fi | |
5371 | ||
5372 | ||
5373 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
d607e6c3 | 5374 | echo "configure:5375: checking "for --enable-validators"" >&5 |
a16d3c04 KB |
5375 | no_cache=0 |
5376 | # Check whether --enable-validators or --disable-validators was given. | |
5377 | if test "${enable_validators+set}" = set; then | |
5378 | enableval="$enable_validators" | |
5379 | ||
5380 | if test "$enableval" = yes; then | |
5381 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5382 | else | |
5383 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5384 | fi | |
5385 | ||
5386 | else | |
5387 | ||
5388 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5396 | ||
5397 | fi | |
5398 | ||
5399 | ||
5400 | eval "$ac_cv_use_validators" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_VALIDATORS" = yes; then | |
5406 | echo "$ac_t""yes" 1>&6 | |
5407 | else | |
5408 | echo "$ac_t""no" 1>&6 | |
5409 | fi | |
5410 | ||
5411 | ||
5412 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
d607e6c3 | 5413 | echo "configure:5414: checking "for --enable-busyinfo"" >&5 |
a16d3c04 KB |
5414 | no_cache=0 |
5415 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5416 | if test "${enable_busyinfo+set}" = set; then | |
5417 | enableval="$enable_busyinfo" | |
5418 | ||
5419 | if test "$enableval" = yes; then | |
5420 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5421 | else | |
5422 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5423 | fi | |
5424 | ||
5425 | else | |
5426 | ||
5427 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5428 | if test "x$LINE" != x ; then | |
5429 | eval "DEFAULT_$LINE" | |
5430 | else | |
5431 | no_cache=1 | |
5432 | fi | |
5433 | ||
5434 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5435 | ||
5436 | fi | |
5437 | ||
5438 | ||
5439 | eval "$ac_cv_use_busyinfo" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_BUSYINFO" = yes; then | |
5445 | echo "$ac_t""yes" 1>&6 | |
5446 | else | |
5447 | echo "$ac_t""no" 1>&6 | |
5448 | fi | |
5449 | ||
5450 | ||
5451 | ||
1c8515f9 KB |
5452 | |
5453 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
d607e6c3 | 5454 | echo "configure:5455: checking "for --enable-gif"" >&5 |
1c8515f9 KB |
5455 | no_cache=0 |
5456 | # Check whether --enable-gif or --disable-gif was given. | |
5457 | if test "${enable_gif+set}" = set; then | |
5458 | enableval="$enable_gif" | |
5459 | ||
5460 | if test "$enableval" = yes; then | |
5461 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5462 | else | |
5463 | ac_cv_use_gif='wxUSE_GIF=no' | |
5464 | fi | |
5465 | ||
5466 | else | |
5467 | ||
5468 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5469 | if test "x$LINE" != x ; then | |
5470 | eval "DEFAULT_$LINE" | |
5471 | else | |
5472 | no_cache=1 | |
5473 | fi | |
5474 | ||
5475 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5476 | ||
5477 | fi | |
5478 | ||
5479 | ||
5480 | eval "$ac_cv_use_gif" | |
5481 | if test "$no_cache" != 1; then | |
5482 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5483 | fi | |
5484 | ||
5485 | if test "$wxUSE_GIF" = yes; then | |
5486 | echo "$ac_t""yes" 1>&6 | |
5487 | else | |
5488 | echo "$ac_t""no" 1>&6 | |
5489 | fi | |
5490 | ||
5491 | ||
5492 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
d607e6c3 | 5493 | echo "configure:5494: checking "for --enable-pcx"" >&5 |
1c8515f9 KB |
5494 | no_cache=0 |
5495 | # Check whether --enable-pcx or --disable-pcx was given. | |
5496 | if test "${enable_pcx+set}" = set; then | |
5497 | enableval="$enable_pcx" | |
5498 | ||
5499 | if test "$enableval" = yes; then | |
5500 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5501 | else | |
5502 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5503 | fi | |
5504 | ||
5505 | else | |
5506 | ||
5507 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5508 | if test "x$LINE" != x ; then | |
5509 | eval "DEFAULT_$LINE" | |
5510 | else | |
5511 | no_cache=1 | |
5512 | fi | |
5513 | ||
5514 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5515 | ||
5516 | fi | |
5517 | ||
5518 | ||
5519 | eval "$ac_cv_use_pcx" | |
5520 | if test "$no_cache" != 1; then | |
5521 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5522 | fi | |
5523 | ||
5524 | if test "$wxUSE_PCX" = yes; then | |
5525 | echo "$ac_t""yes" 1>&6 | |
5526 | else | |
5527 | echo "$ac_t""no" 1>&6 | |
5528 | fi | |
5529 | ||
5530 | ||
5531 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
d607e6c3 | 5532 | echo "configure:5533: checking "for --enable-pnm"" >&5 |
1c8515f9 KB |
5533 | no_cache=0 |
5534 | # Check whether --enable-pnm or --disable-pnm was given. | |
5535 | if test "${enable_pnm+set}" = set; then | |
5536 | enableval="$enable_pnm" | |
5537 | ||
5538 | if test "$enableval" = yes; then | |
5539 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5540 | else | |
5541 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5542 | fi | |
5543 | ||
5544 | else | |
5545 | ||
5546 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5547 | if test "x$LINE" != x ; then | |
5548 | eval "DEFAULT_$LINE" | |
5549 | else | |
5550 | no_cache=1 | |
5551 | fi | |
5552 | ||
5553 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5554 | ||
5555 | fi | |
5556 | ||
5557 | ||
5558 | eval "$ac_cv_use_pnm" | |
5559 | if test "$no_cache" != 1; then | |
5560 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5561 | fi | |
5562 | ||
5563 | if test "$wxUSE_PNM" = yes; then | |
5564 | echo "$ac_t""yes" 1>&6 | |
5565 | else | |
5566 | echo "$ac_t""no" 1>&6 | |
5567 | fi | |
5568 | ||
5569 | ||
5570 | ||
a16d3c04 KB |
5571 | echo "saving argument cache $wx_arg_cache_file" |
5572 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5573 | ||
5574 | ||
5575 | ||
5576 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
d607e6c3 | 5577 | echo "configure:5578: checking for toolkit" >&5 |
f7a11f8c RR |
5578 | |
5579 | if test "$wxUSE_GUI" = "yes"; then | |
a16d3c04 KB |
5580 | |
5581 | if test "$TOOLKIT_GIVEN" = 1; then | |
5582 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5583 | var=wxUSE_$toolkit | |
5584 | eval "value=\$${var}" | |
5585 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5586 | done | |
5587 | else | |
5588 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5589 | if test "$has_toolkit_in_cache" != 1; then | |
5590 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5591 | else | |
5592 | var=DEFAULT_wxUSE_$toolkit | |
5593 | fi | |
5594 | eval "wxUSE_$toolkit=\$${var}" | |
5595 | done | |
5596 | fi | |
5597 | ||
5598 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5599 | ||
5600 | case "$NUM_TOOLKITS" in | |
5601 | 1) | |
5602 | ;; | |
5603 | 0) | |
5604 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5605 | ;; | |
5606 | *) | |
5607 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5608 | esac | |
5609 | ||
5610 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5611 | var=wxUSE_$toolkit | |
5612 | eval "value=\$${var}" | |
5613 | if test "x$value" != x; then | |
5614 | cache_var=CACHE_$toolkit | |
5615 | eval "cache=\$${cache_var}" | |
5616 | if test "$cache" = 1; then | |
5617 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5618 | fi | |
5619 | if test "$value" = 1; then | |
5620 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5621 | fi | |
5622 | fi | |
5623 | done | |
5624 | ||
f7a11f8c RR |
5625 | else |
5626 | echo "$ac_t""base only" 1>&6 | |
5627 | fi | |
5628 | ||
a16d3c04 KB |
5629 | |
5630 | cat > confcache <<\EOF | |
5631 | # This file is a shell script that caches the results of configure | |
5632 | # tests run on this system so they can be shared between configure | |
5633 | # scripts and configure runs. It is not useful on other systems. | |
5634 | # If it contains results you don't want to keep, you may remove or edit it. | |
5635 | # | |
5636 | # By default, configure uses ./config.cache as the cache file, | |
5637 | # creating it if it does not exist already. You can give configure | |
5638 | # the --cache-file=FILE option to use a different cache file; that is | |
5639 | # what configure does when it calls configure scripts in | |
5640 | # subdirectories, so they share the cache. | |
5641 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5642 | # config.status only pays attention to the cache file if you give it the | |
5643 | # --recheck option to rerun configure. | |
5644 | # | |
5645 | EOF | |
5646 | # The following way of writing the cache mishandles newlines in values, | |
5647 | # but we know of no workaround that is simple, portable, and efficient. | |
5648 | # So, don't put newlines in cache variables' values. | |
5649 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5650 | # and sets the high bit in the cache file unless we assign to the vars. | |
5651 | (set) 2>&1 | | |
0709ee62 | 5652 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
5653 | *ac_space=\ *) |
5654 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5655 | # turns \\\\ into \\, and sed turns \\ into \). | |
5656 | sed -n \ | |
5657 | -e "s/'/'\\\\''/g" \ | |
5658 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5659 | ;; | |
5660 | *) | |
5661 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5662 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5663 | ;; | |
5664 | esac >> confcache | |
5665 | if cmp -s $cache_file confcache; then | |
5666 | : | |
5667 | else | |
5668 | if test -w $cache_file; then | |
5669 | echo "updating cache $cache_file" | |
5670 | cat confcache > $cache_file | |
5671 | else | |
5672 | echo "not updating unwritable cache $cache_file" | |
5673 | fi | |
5674 | fi | |
5675 | rm -f confcache | |
5676 | ||
5677 | ||
5678 | if eval "test $host != $build"; then | |
5679 | if eval "test $host_alias != NONE"; then | |
1c8515f9 KB |
5680 | CC=$host_alias-gcc |
5681 | CXX=$host_alias-c++ | |
a16d3c04 KB |
5682 | AR=$host_alias-ar |
5683 | RANLIB=$host_alias-ranlib | |
1c8515f9 KB |
5684 | DLLTOOL=$host_alias-dlltool |
5685 | LD=$host_alias-ld | |
a16d3c04 KB |
5686 | NM=$host_alias-nm |
5687 | STRIP=$host_alias-strip | |
5688 | fi | |
5689 | fi | |
5690 | ||
5691 | # Extract the first word of "gcc", so it can be a program name with args. | |
5692 | set dummy gcc; ac_word=$2 | |
5693 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 5694 | echo "configure:5695: checking for $ac_word" >&5 |
a16d3c04 KB |
5695 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5697 | else | |
5698 | if test -n "$CC"; then | |
5699 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5700 | else | |
0709ee62 VZ |
5701 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5702 | ac_dummy="$PATH" | |
5703 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
5704 | test -z "$ac_dir" && ac_dir=. |
5705 | if test -f $ac_dir/$ac_word; then | |
5706 | ac_cv_prog_CC="gcc" | |
5707 | break | |
5708 | fi | |
5709 | done | |
5710 | IFS="$ac_save_ifs" | |
5711 | fi | |
5712 | fi | |
5713 | CC="$ac_cv_prog_CC" | |
5714 | if test -n "$CC"; then | |
5715 | echo "$ac_t""$CC" 1>&6 | |
5716 | else | |
5717 | echo "$ac_t""no" 1>&6 | |
5718 | fi | |
5719 | ||
5720 | if test -z "$CC"; then | |
5721 | # Extract the first word of "cc", so it can be a program name with args. | |
5722 | set dummy cc; ac_word=$2 | |
5723 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 5724 | echo "configure:5725: checking for $ac_word" >&5 |
a16d3c04 KB |
5725 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5727 | else | |
5728 | if test -n "$CC"; then | |
5729 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5730 | else | |
0709ee62 | 5731 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
a16d3c04 | 5732 | ac_prog_rejected=no |
0709ee62 VZ |
5733 | ac_dummy="$PATH" |
5734 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
5735 | test -z "$ac_dir" && ac_dir=. |
5736 | if test -f $ac_dir/$ac_word; then | |
5737 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5738 | ac_prog_rejected=yes | |
5739 | continue | |
5740 | fi | |
5741 | ac_cv_prog_CC="cc" | |
5742 | break | |
5743 | fi | |
5744 | done | |
5745 | IFS="$ac_save_ifs" | |
5746 | if test $ac_prog_rejected = yes; then | |
5747 | # We found a bogon in the path, so make sure we never use it. | |
5748 | set dummy $ac_cv_prog_CC | |
5749 | shift | |
5750 | if test $# -gt 0; then | |
5751 | # We chose a different compiler from the bogus one. | |
5752 | # However, it has the same basename, so the bogon will be chosen | |
5753 | # first if we set CC to just the basename; use the full file name. | |
5754 | shift | |
5755 | set dummy "$ac_dir/$ac_word" "$@" | |
5756 | shift | |
5757 | ac_cv_prog_CC="$@" | |
5758 | fi | |
5759 | fi | |
5760 | fi | |
5761 | fi | |
5762 | CC="$ac_cv_prog_CC" | |
5763 | if test -n "$CC"; then | |
5764 | echo "$ac_t""$CC" 1>&6 | |
5765 | else | |
5766 | echo "$ac_t""no" 1>&6 | |
5767 | fi | |
5768 | ||
0709ee62 VZ |
5769 | if test -z "$CC"; then |
5770 | case "`uname -s`" in | |
5771 | *win32* | *WIN32*) | |
5772 | # Extract the first word of "cl", so it can be a program name with args. | |
5773 | set dummy cl; ac_word=$2 | |
5774 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 5775 | echo "configure:5776: checking for $ac_word" >&5 |
0709ee62 VZ |
5776 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5778 | else | |
5779 | if test -n "$CC"; then | |
5780 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5781 | else | |
5782 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5783 | ac_dummy="$PATH" | |
5784 | for ac_dir in $ac_dummy; do | |
5785 | test -z "$ac_dir" && ac_dir=. | |
5786 | if test -f $ac_dir/$ac_word; then | |
5787 | ac_cv_prog_CC="cl" | |
5788 | break | |
5789 | fi | |
5790 | done | |
5791 | IFS="$ac_save_ifs" | |
5792 | fi | |
5793 | fi | |
5794 | CC="$ac_cv_prog_CC" | |
5795 | if test -n "$CC"; then | |
5796 | echo "$ac_t""$CC" 1>&6 | |
5797 | else | |
5798 | echo "$ac_t""no" 1>&6 | |
5799 | fi | |
5800 | ;; | |
5801 | esac | |
5802 | fi | |
a16d3c04 KB |
5803 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5804 | fi | |
5805 | ||
5806 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d607e6c3 | 5807 | echo "configure:5808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
a16d3c04 KB |
5808 | |
5809 | ac_ext=c | |
5810 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5811 | ac_cpp='$CPP $CPPFLAGS' | |
5812 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 5813 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
5814 | cross_compiling=$ac_cv_prog_cc_cross |
5815 | ||
0709ee62 VZ |
5816 | cat > conftest.$ac_ext << EOF |
5817 | ||
d607e6c3 | 5818 | #line 5819 "configure" |
a16d3c04 | 5819 | #include "confdefs.h" |
0709ee62 | 5820 | |
a16d3c04 KB |
5821 | main(){return(0);} |
5822 | EOF | |
d607e6c3 | 5823 | if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
5824 | ac_cv_prog_cc_works=yes |
5825 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5826 | if (./conftest; exit) 2>/dev/null; then | |
5827 | ac_cv_prog_cc_cross=no | |
5828 | else | |
5829 | ac_cv_prog_cc_cross=yes | |
5830 | fi | |
5831 | else | |
5832 | echo "configure: failed program was:" >&5 | |
5833 | cat conftest.$ac_ext >&5 | |
5834 | ac_cv_prog_cc_works=no | |
5835 | fi | |
5836 | rm -fr conftest* | |
0709ee62 VZ |
5837 | ac_ext=c |
5838 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5839 | ac_cpp='$CPP $CPPFLAGS' | |
5840 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5841 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5842 | cross_compiling=$ac_cv_prog_cc_cross | |
a16d3c04 KB |
5843 | |
5844 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5845 | if test $ac_cv_prog_cc_works = no; then | |
5846 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5847 | fi | |
5848 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d607e6c3 | 5849 | echo "configure:5850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a16d3c04 KB |
5850 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
5851 | cross_compiling=$ac_cv_prog_cc_cross | |
5852 | ||
5853 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d607e6c3 | 5854 | echo "configure:5855: checking whether we are using GNU C" >&5 |
a16d3c04 KB |
5855 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
5856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5857 | else | |
5858 | cat > conftest.c <<EOF | |
5859 | #ifdef __GNUC__ | |
5860 | yes; | |
5861 | #endif | |
5862 | EOF | |
d607e6c3 | 5863 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a16d3c04 KB |
5864 | ac_cv_prog_gcc=yes |
5865 | else | |
5866 | ac_cv_prog_gcc=no | |
5867 | fi | |
5868 | fi | |
5869 | ||
5870 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5871 | ||
5872 | if test $ac_cv_prog_gcc = yes; then | |
5873 | GCC=yes | |
0709ee62 VZ |
5874 | else |
5875 | GCC= | |
5876 | fi | |
5877 | ||
5878 | ac_test_CFLAGS="${CFLAGS+set}" | |
5879 | ac_save_CFLAGS="$CFLAGS" | |
5880 | CFLAGS= | |
5881 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d607e6c3 | 5882 | echo "configure:5883: checking whether ${CC-cc} accepts -g" >&5 |
a16d3c04 KB |
5883 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
5884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5885 | else | |
5886 | echo 'void f(){}' > conftest.c | |
5887 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
5888 | ac_cv_prog_cc_g=yes | |
5889 | else | |
5890 | ac_cv_prog_cc_g=no | |
5891 | fi | |
5892 | rm -f conftest* | |
5893 | ||
5894 | fi | |
5895 | ||
5896 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
0709ee62 VZ |
5897 | if test "$ac_test_CFLAGS" = set; then |
5898 | CFLAGS="$ac_save_CFLAGS" | |
5899 | elif test $ac_cv_prog_cc_g = yes; then | |
5900 | if test "$GCC" = yes; then | |
a16d3c04 KB |
5901 | CFLAGS="-g -O2" |
5902 | else | |
0709ee62 | 5903 | CFLAGS="-g" |
fa3e4baf | 5904 | fi |
2726c66d | 5905 | else |
0709ee62 VZ |
5906 | if test "$GCC" = yes; then |
5907 | CFLAGS="-O2" | |
5908 | else | |
5909 | CFLAGS= | |
5910 | fi | |
a16d3c04 KB |
5911 | fi |
5912 | ||
5913 | ||
5914 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
5915 | ||
5916 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
d607e6c3 | 5917 | echo "configure:5918: checking how to run the C preprocessor" >&5 |
a16d3c04 KB |
5918 | # On Suns, sometimes $CPP names a directory. |
5919 | if test -n "$CPP" && test -d "$CPP"; then | |
5920 | CPP= | |
5921 | fi | |
5922 | if test -z "$CPP"; then | |
5923 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
5924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5925 | else | |
5926 | # This must be in double quotes, not single quotes, because CPP may get | |
5927 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
5928 | CPP="${CC-cc} -E" | |
5929 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5930 | # not just through cpp. | |
5931 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 5932 | #line 5933 "configure" |
a16d3c04 KB |
5933 | #include "confdefs.h" |
5934 | #include <assert.h> | |
5935 | Syntax Error | |
5936 | EOF | |
5937 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 5938 | { (eval echo configure:5939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 5939 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
5940 | if test -z "$ac_err"; then |
5941 | : | |
5942 | else | |
5943 | echo "$ac_err" >&5 | |
5944 | echo "configure: failed program was:" >&5 | |
5945 | cat conftest.$ac_ext >&5 | |
5946 | rm -rf conftest* | |
5947 | CPP="${CC-cc} -E -traditional-cpp" | |
5948 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 5949 | #line 5950 "configure" |
fa3e4baf KB |
5950 | #include "confdefs.h" |
5951 | #include <assert.h> | |
5952 | Syntax Error | |
5953 | EOF | |
5954 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 5955 | { (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 VZ |
5956 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5957 | if test -z "$ac_err"; then | |
5958 | : | |
5959 | else | |
5960 | echo "$ac_err" >&5 | |
5961 | echo "configure: failed program was:" >&5 | |
5962 | cat conftest.$ac_ext >&5 | |
5963 | rm -rf conftest* | |
5964 | CPP="${CC-cc} -nologo -E" | |
5965 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 5966 | #line 5967 "configure" |
0709ee62 VZ |
5967 | #include "confdefs.h" |
5968 | #include <assert.h> | |
5969 | Syntax Error | |
5970 | EOF | |
5971 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 5972 | { (eval echo configure:5973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 5973 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
5974 | if test -z "$ac_err"; then |
5975 | : | |
5976 | else | |
5977 | echo "$ac_err" >&5 | |
5978 | echo "configure: failed program was:" >&5 | |
5979 | cat conftest.$ac_ext >&5 | |
5980 | rm -rf conftest* | |
5981 | CPP=/lib/cpp | |
5982 | fi | |
5983 | rm -f conftest* | |
5984 | fi | |
0709ee62 VZ |
5985 | rm -f conftest* |
5986 | fi | |
a16d3c04 KB |
5987 | rm -f conftest* |
5988 | ac_cv_prog_CPP="$CPP" | |
5989 | fi | |
5990 | CPP="$ac_cv_prog_CPP" | |
5991 | else | |
5992 | ac_cv_prog_CPP="$CPP" | |
5993 | fi | |
5994 | echo "$ac_t""$CPP" 1>&6 | |
5995 | ||
5996 | ||
5997 | if test $ac_cv_prog_gcc = yes; then | |
5998 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d607e6c3 | 5999 | echo "configure:6000: checking whether ${CC-cc} needs -traditional" >&5 |
a16d3c04 KB |
6000 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6002 | else | |
6003 | ac_pattern="Autoconf.*'x'" | |
6004 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 6005 | #line 6006 "configure" |
a16d3c04 KB |
6006 | #include "confdefs.h" |
6007 | #include <sgtty.h> | |
6008 | Autoconf TIOCGETP | |
6009 | EOF | |
6010 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6011 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6012 | rm -rf conftest* | |
6013 | ac_cv_prog_gcc_traditional=yes | |
6014 | else | |
6015 | rm -rf conftest* | |
6016 | ac_cv_prog_gcc_traditional=no | |
6017 | fi | |
6018 | rm -f conftest* | |
6019 | ||
6020 | ||
6021 | if test $ac_cv_prog_gcc_traditional = no; then | |
6022 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 6023 | #line 6024 "configure" |
a16d3c04 KB |
6024 | #include "confdefs.h" |
6025 | #include <termio.h> | |
6026 | Autoconf TCGETA | |
6027 | EOF | |
6028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6029 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6030 | rm -rf conftest* | |
6031 | ac_cv_prog_gcc_traditional=yes | |
6032 | fi | |
6033 | rm -f conftest* | |
6034 | ||
6035 | fi | |
6036 | fi | |
6037 | ||
6038 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6039 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6040 | CC="$CC -traditional" | |
6041 | fi | |
6042 | fi | |
6043 | ||
6044 | ||
6045 | ||
6046 | ac_ext=C | |
6047 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6048 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6049 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6050 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6051 | cross_compiling=$ac_cv_prog_cxx_cross |
6052 | ||
6053 | ||
0709ee62 | 6054 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
a16d3c04 KB |
6055 | do |
6056 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6057 | set dummy $ac_prog; ac_word=$2 | |
6058 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6059 | echo "configure:6060: checking for $ac_word" >&5 |
a16d3c04 KB |
6060 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6062 | else | |
6063 | if test -n "$CXX"; then | |
6064 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6065 | else | |
0709ee62 VZ |
6066 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6067 | ac_dummy="$PATH" | |
6068 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6069 | test -z "$ac_dir" && ac_dir=. |
6070 | if test -f $ac_dir/$ac_word; then | |
6071 | ac_cv_prog_CXX="$ac_prog" | |
6072 | break | |
6073 | fi | |
6074 | done | |
6075 | IFS="$ac_save_ifs" | |
6076 | fi | |
6077 | fi | |
6078 | CXX="$ac_cv_prog_CXX" | |
6079 | if test -n "$CXX"; then | |
6080 | echo "$ac_t""$CXX" 1>&6 | |
6081 | else | |
6082 | echo "$ac_t""no" 1>&6 | |
6083 | fi | |
6084 | ||
6085 | test -n "$CXX" && break | |
6086 | done | |
6087 | test -n "$CXX" || CXX="gcc" | |
6088 | ||
6089 | ||
6090 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d607e6c3 | 6091 | echo "configure:6092: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a16d3c04 KB |
6092 | |
6093 | ac_ext=C | |
6094 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6095 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6096 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6097 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6098 | cross_compiling=$ac_cv_prog_cxx_cross |
6099 | ||
0709ee62 VZ |
6100 | cat > conftest.$ac_ext << EOF |
6101 | ||
d607e6c3 | 6102 | #line 6103 "configure" |
a16d3c04 | 6103 | #include "confdefs.h" |
0709ee62 VZ |
6104 | |
6105 | int main(){return(0);} | |
a16d3c04 | 6106 | EOF |
d607e6c3 | 6107 | if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
6108 | ac_cv_prog_cxx_works=yes |
6109 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6110 | if (./conftest; exit) 2>/dev/null; then | |
6111 | ac_cv_prog_cxx_cross=no | |
6112 | else | |
6113 | ac_cv_prog_cxx_cross=yes | |
6114 | fi | |
6115 | else | |
6116 | echo "configure: failed program was:" >&5 | |
6117 | cat conftest.$ac_ext >&5 | |
6118 | ac_cv_prog_cxx_works=no | |
6119 | fi | |
6120 | rm -fr conftest* | |
0709ee62 VZ |
6121 | ac_ext=C |
6122 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6123 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6124 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6125 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6126 | cross_compiling=$ac_cv_prog_cxx_cross | |
a16d3c04 KB |
6127 | |
6128 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6129 | if test $ac_cv_prog_cxx_works = no; then | |
6130 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6131 | fi | |
6132 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d607e6c3 | 6133 | echo "configure:6134: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a16d3c04 KB |
6134 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6135 | cross_compiling=$ac_cv_prog_cxx_cross | |
6136 | ||
6137 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d607e6c3 | 6138 | echo "configure:6139: checking whether we are using GNU C++" >&5 |
a16d3c04 KB |
6139 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6141 | else | |
6142 | cat > conftest.C <<EOF | |
6143 | #ifdef __GNUC__ | |
6144 | yes; | |
6145 | #endif | |
6146 | EOF | |
d607e6c3 | 6147 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a16d3c04 KB |
6148 | ac_cv_prog_gxx=yes |
6149 | else | |
6150 | ac_cv_prog_gxx=no | |
6151 | fi | |
6152 | fi | |
6153 | ||
6154 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6155 | ||
6156 | if test $ac_cv_prog_gxx = yes; then | |
6157 | GXX=yes | |
0709ee62 VZ |
6158 | else |
6159 | GXX= | |
6160 | fi | |
6161 | ||
6162 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6163 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6164 | CXXFLAGS= | |
6165 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
d607e6c3 | 6166 | echo "configure:6167: checking whether ${CXX-g++} accepts -g" >&5 |
a16d3c04 KB |
6167 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6169 | else | |
6170 | echo 'void f(){}' > conftest.cc | |
6171 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6172 | ac_cv_prog_cxx_g=yes | |
6173 | else | |
6174 | ac_cv_prog_cxx_g=no | |
6175 | fi | |
6176 | rm -f conftest* | |
6177 | ||
6178 | fi | |
6179 | ||
6180 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
0709ee62 VZ |
6181 | if test "$ac_test_CXXFLAGS" = set; then |
6182 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6183 | elif test $ac_cv_prog_cxx_g = yes; then | |
6184 | if test "$GXX" = yes; then | |
a16d3c04 KB |
6185 | CXXFLAGS="-g -O2" |
6186 | else | |
0709ee62 | 6187 | CXXFLAGS="-g" |
fa3e4baf | 6188 | fi |
2726c66d | 6189 | else |
0709ee62 VZ |
6190 | if test "$GXX" = yes; then |
6191 | CXXFLAGS="-O2" | |
6192 | else | |
6193 | CXXFLAGS= | |
6194 | fi | |
a16d3c04 KB |
6195 | fi |
6196 | ||
6197 | ||
6198 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
d607e6c3 | 6199 | echo "configure:6200: checking how to run the C++ preprocessor" >&5 |
a16d3c04 KB |
6200 | if test -z "$CXXCPP"; then |
6201 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6203 | else | |
6204 | ac_ext=C | |
6205 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6206 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6207 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6208 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6209 | cross_compiling=$ac_cv_prog_cxx_cross |
6210 | CXXCPP="${CXX-g++} -E" | |
6211 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 6212 | #line 6213 "configure" |
a16d3c04 KB |
6213 | #include "confdefs.h" |
6214 | #include <stdlib.h> | |
6215 | EOF | |
6216 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 6217 | { (eval echo configure:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 6218 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
6219 | if test -z "$ac_err"; then |
6220 | : | |
6221 | else | |
6222 | echo "$ac_err" >&5 | |
6223 | echo "configure: failed program was:" >&5 | |
6224 | cat conftest.$ac_ext >&5 | |
6225 | rm -rf conftest* | |
6226 | CXXCPP=/lib/cpp | |
6227 | fi | |
6228 | rm -f conftest* | |
6229 | ac_cv_prog_CXXCPP="$CXXCPP" | |
0709ee62 VZ |
6230 | ac_ext=C |
6231 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6232 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6233 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6234 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6235 | cross_compiling=$ac_cv_prog_cxx_cross | |
a16d3c04 KB |
6236 | fi |
6237 | fi | |
6238 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6239 | echo "$ac_t""$CXXCPP" 1>&6 | |
6240 | ||
6241 | ||
6242 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6243 | ||
6244 | ac_ext=c | |
6245 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6246 | ac_cpp='$CPP $CPPFLAGS' | |
6247 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 6248 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
6249 | cross_compiling=$ac_cv_prog_cc_cross |
6250 | ||
6251 | ||
6252 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6253 | set dummy ranlib; ac_word=$2 | |
6254 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6255 | echo "configure:6256: checking for $ac_word" >&5 |
a16d3c04 KB |
6256 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6258 | else | |
6259 | if test -n "$RANLIB"; then | |
6260 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6261 | else | |
0709ee62 VZ |
6262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6263 | ac_dummy="$PATH" | |
6264 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6265 | test -z "$ac_dir" && ac_dir=. |
6266 | if test -f $ac_dir/$ac_word; then | |
6267 | ac_cv_prog_RANLIB="ranlib" | |
6268 | break | |
6269 | fi | |
6270 | done | |
6271 | IFS="$ac_save_ifs" | |
6272 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6273 | fi | |
6274 | fi | |
6275 | RANLIB="$ac_cv_prog_RANLIB" | |
6276 | if test -n "$RANLIB"; then | |
6277 | echo "$ac_t""$RANLIB" 1>&6 | |
6278 | else | |
6279 | echo "$ac_t""no" 1>&6 | |
6280 | fi | |
6281 | ||
6282 | ||
6283 | # Extract the first word of "ar", so it can be a program name with args. | |
6284 | set dummy ar; ac_word=$2 | |
6285 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6286 | echo "configure:6287: checking for $ac_word" >&5 |
a16d3c04 KB |
6287 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6289 | else | |
6290 | if test -n "$AR"; then | |
6291 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6292 | else | |
0709ee62 VZ |
6293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6294 | ac_dummy="$PATH" | |
6295 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6296 | test -z "$ac_dir" && ac_dir=. |
6297 | if test -f $ac_dir/$ac_word; then | |
6298 | ac_cv_prog_AR="ar" | |
6299 | break | |
6300 | fi | |
6301 | done | |
6302 | IFS="$ac_save_ifs" | |
6303 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6304 | fi | |
6305 | fi | |
6306 | AR="$ac_cv_prog_AR" | |
6307 | if test -n "$AR"; then | |
6308 | echo "$ac_t""$AR" 1>&6 | |
6309 | else | |
6310 | echo "$ac_t""no" 1>&6 | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | # Find a good install program. We prefer a C program (faster), | |
6315 | # so one script is as good as another. But avoid the broken or | |
6316 | # incompatible versions: | |
6317 | # SysV /etc/install, /usr/sbin/install | |
6318 | # SunOS /usr/etc/install | |
6319 | # IRIX /sbin/install | |
6320 | # AIX /bin/install | |
0709ee62 | 6321 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
a16d3c04 KB |
6322 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
6323 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6324 | # ./install, which can be erroneously created by make from ./install.sh. | |
6325 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
d607e6c3 | 6326 | echo "configure:6327: checking for a BSD compatible install" >&5 |
a16d3c04 KB |
6327 | if test -z "$INSTALL"; then |
6328 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6329 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6330 | else | |
0709ee62 | 6331 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
a16d3c04 KB |
6332 | for ac_dir in $PATH; do |
6333 | # Account for people who put trailing slashes in PATH elements. | |
6334 | case "$ac_dir/" in | |
6335 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6336 | *) | |
6337 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
0709ee62 VZ |
6338 | # Don't use installbsd from OSF since it installs stuff as root |
6339 | # by default. | |
6340 | for ac_prog in ginstall scoinst install; do | |
a16d3c04 KB |
6341 | if test -f $ac_dir/$ac_prog; then |
6342 | if test $ac_prog = install && | |
6343 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6344 | # AIX install. It has an incompatible calling convention. | |
6345 | : | |
6346 | else | |
6347 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6348 | break 2 | |
6349 | fi | |
6350 | fi | |
6351 | done | |
6352 | ;; | |
6353 | esac | |
6354 | done | |
6355 | IFS="$ac_save_IFS" | |
6356 | ||
6357 | fi | |
6358 | if test "${ac_cv_path_install+set}" = set; then | |
6359 | INSTALL="$ac_cv_path_install" | |
6360 | else | |
6361 | # As a last resort, use the slow shell script. We don't cache a | |
6362 | # path for INSTALL within a source directory, because that will | |
6363 | # break other packages using the cache if that directory is | |
6364 | # removed, or if the path is relative. | |
6365 | INSTALL="$ac_install_sh" | |
6366 | fi | |
6367 | fi | |
6368 | echo "$ac_t""$INSTALL" 1>&6 | |
6369 | ||
6370 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6371 | # It thinks the first close brace ends the variable substitution. | |
6372 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6373 | ||
0709ee62 VZ |
6374 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
6375 | ||
a16d3c04 KB |
6376 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6377 | ||
6378 | ||
6379 | # Extract the first word of "strip", so it can be a program name with args. | |
6380 | set dummy strip; ac_word=$2 | |
6381 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6382 | echo "configure:6383: checking for $ac_word" >&5 |
a16d3c04 KB |
6383 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6385 | else | |
6386 | if test -n "$STRIP"; then | |
6387 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6388 | else | |
0709ee62 VZ |
6389 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6390 | ac_dummy="$PATH" | |
6391 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6392 | test -z "$ac_dir" && ac_dir=. |
6393 | if test -f $ac_dir/$ac_word; then | |
6394 | ac_cv_prog_STRIP="strip" | |
6395 | break | |
6396 | fi | |
6397 | done | |
6398 | IFS="$ac_save_ifs" | |
6399 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6400 | fi | |
6401 | fi | |
6402 | STRIP="$ac_cv_prog_STRIP" | |
6403 | if test -n "$STRIP"; then | |
6404 | echo "$ac_t""$STRIP" 1>&6 | |
6405 | else | |
6406 | echo "$ac_t""no" 1>&6 | |
6407 | fi | |
6408 | ||
6409 | ||
6410 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
d607e6c3 | 6411 | echo "configure:6412: checking "make for VPATH support"" >&5 |
a16d3c04 KB |
6412 | cat - << EOF > confMake |
6413 | check : file | |
6414 | cp \$? \$@ | |
6415 | cp \$? final_file | |
6416 | EOF | |
6417 | ||
6418 | if test ! -d sub ; then | |
6419 | mkdir sub | |
6420 | fi | |
6421 | echo dummy > sub/file | |
6422 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6423 | RESULT=$? | |
6424 | rm -f sub/file check final_file confMake | |
6425 | rmdir sub | |
6426 | if test "$RESULT" = 0; then | |
6427 | echo "$ac_t""yes" 1>&6 | |
6428 | else | |
6429 | echo "$ac_t""no" 1>&6 | |
6430 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6431 | VPATH correctly. | |
6432 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6433 | fi | |
6434 | ||
6435 | for ac_prog in 'bison -y' byacc | |
6436 | do | |
6437 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6438 | set dummy $ac_prog; ac_word=$2 | |
6439 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6440 | echo "configure:6441: checking for $ac_word" >&5 |
a16d3c04 KB |
6441 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6443 | else | |
6444 | if test -n "$YACC"; then | |
6445 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6446 | else | |
0709ee62 VZ |
6447 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6448 | ac_dummy="$PATH" | |
6449 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6450 | test -z "$ac_dir" && ac_dir=. |
6451 | if test -f $ac_dir/$ac_word; then | |
6452 | ac_cv_prog_YACC="$ac_prog" | |
6453 | break | |
6454 | fi | |
6455 | done | |
6456 | IFS="$ac_save_ifs" | |
6457 | fi | |
6458 | fi | |
6459 | YACC="$ac_cv_prog_YACC" | |
6460 | if test -n "$YACC"; then | |
6461 | echo "$ac_t""$YACC" 1>&6 | |
6462 | else | |
6463 | echo "$ac_t""no" 1>&6 | |
6464 | fi | |
6465 | ||
6466 | test -n "$YACC" && break | |
6467 | done | |
6468 | test -n "$YACC" || YACC="yacc" | |
6469 | ||
6470 | ||
6471 | # Extract the first word of "flex", so it can be a program name with args. | |
6472 | set dummy flex; ac_word=$2 | |
6473 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6474 | echo "configure:6475: checking for $ac_word" >&5 |
a16d3c04 KB |
6475 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6477 | else | |
6478 | if test -n "$LEX"; then | |
6479 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6480 | else | |
0709ee62 VZ |
6481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6482 | ac_dummy="$PATH" | |
6483 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6484 | test -z "$ac_dir" && ac_dir=. |
6485 | if test -f $ac_dir/$ac_word; then | |
6486 | ac_cv_prog_LEX="flex" | |
6487 | break | |
6488 | fi | |
6489 | done | |
6490 | IFS="$ac_save_ifs" | |
6491 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6492 | fi | |
6493 | fi | |
6494 | LEX="$ac_cv_prog_LEX" | |
6495 | if test -n "$LEX"; then | |
6496 | echo "$ac_t""$LEX" 1>&6 | |
6497 | else | |
6498 | echo "$ac_t""no" 1>&6 | |
6499 | fi | |
6500 | ||
6501 | if test -z "$LEXLIB" | |
6502 | then | |
6503 | case "$LEX" in | |
6504 | flex*) ac_lib=fl ;; | |
6505 | *) ac_lib=l ;; | |
6506 | esac | |
6507 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d607e6c3 | 6508 | echo "configure:6509: checking for yywrap in -l$ac_lib" >&5 |
a16d3c04 KB |
6509 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6512 | else | |
6513 | ac_save_LIBS="$LIBS" | |
6514 | LIBS="-l$ac_lib $LIBS" | |
6515 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 6516 | #line 6517 "configure" |
a16d3c04 KB |
6517 | #include "confdefs.h" |
6518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6519 | /* We use char because int might match the return type of a gcc2 | |
6520 | builtin and then its argument prototype would still apply. */ | |
6521 | char yywrap(); | |
6522 | ||
6523 | int main() { | |
6524 | yywrap() | |
6525 | ; return 0; } | |
6526 | EOF | |
d607e6c3 | 6527 | if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
6528 | rm -rf conftest* |
6529 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6530 | else | |
6531 | echo "configure: failed program was:" >&5 | |
6532 | cat conftest.$ac_ext >&5 | |
6533 | rm -rf conftest* | |
6534 | eval "ac_cv_lib_$ac_lib_var=no" | |
6535 | fi | |
6536 | rm -f conftest* | |
6537 | LIBS="$ac_save_LIBS" | |
6538 | ||
6539 | fi | |
6540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6541 | echo "$ac_t""yes" 1>&6 | |
6542 | LEXLIB="-l$ac_lib" | |
6543 | else | |
6544 | echo "$ac_t""no" 1>&6 | |
6545 | fi | |
6546 | ||
6547 | fi | |
6548 | ||
6549 | ||
6550 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
d607e6c3 | 6551 | echo "configure:6552: checking whether ln -s works" >&5 |
a16d3c04 KB |
6552 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6554 | else | |
6555 | rm -f conftestdata | |
6556 | if ln -s X conftestdata 2>/dev/null | |
6557 | then | |
6558 | rm -f conftestdata | |
6559 | ac_cv_prog_LN_S="ln -s" | |
6560 | else | |
6561 | ac_cv_prog_LN_S=ln | |
6562 | fi | |
6563 | fi | |
6564 | LN_S="$ac_cv_prog_LN_S" | |
6565 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6566 | echo "$ac_t""yes" 1>&6 | |
6567 | else | |
6568 | echo "$ac_t""no" 1>&6 | |
6569 | fi | |
6570 | ||
6571 | ||
6572 | ||
6573 | SEARCH_INCLUDE="\ | |
6574 | /usr/Motif-1.2/include \ | |
6575 | /usr/Motif-2.1/include \ | |
6576 | \ | |
6577 | /usr/include/Motif1.2 \ | |
6578 | /opt/xpm/include/X11 \ | |
6579 | /opt/GBxpm/include/ \ | |
6580 | /opt/GBxpm/X11/include/ \ | |
6581 | \ | |
6582 | /usr/Motif1.2/include \ | |
6583 | /usr/dt/include \ | |
6584 | /usr/include/Xm \ | |
6585 | \ | |
6586 | /usr/X11R6/include \ | |
6587 | /usr/X11R5/include \ | |
6588 | /usr/X11R4/include \ | |
6589 | \ | |
6590 | /usr/X11R6/lib \ | |
6591 | /usr/X11R5/lib \ | |
6592 | /usr/X11R4/lib \ | |
6593 | \ | |
6594 | /usr/include/X11R6 \ | |
6595 | /usr/include/X11R5 \ | |
6596 | /usr/include/X11R4 \ | |
6597 | \ | |
6598 | /usr/local/X11R6/include \ | |
6599 | /usr/local/X11R5/include \ | |
6600 | /usr/local/X11R4/include \ | |
6601 | \ | |
6602 | /usr/local/include/X11R6 \ | |
6603 | /usr/local/include/X11R5 \ | |
6604 | /usr/local/include/X11R4 \ | |
6605 | \ | |
6606 | /usr/X11/include \ | |
6607 | /usr/include/X11 \ | |
6608 | /usr/local/X11/include \ | |
6609 | /usr/local/include/X11 \ | |
6610 | \ | |
6611 | /usr/X386/include \ | |
6612 | /usr/x386/include \ | |
6613 | /usr/XFree86/include/X11 \ | |
6614 | \ | |
6615 | /usr/include \ | |
6616 | /usr/local/include \ | |
6617 | \ | |
6618 | /usr/include/gtk \ | |
6619 | /usr/local/include/gtk \ | |
6620 | /usr/include/glib \ | |
6621 | /usr/local/include/glib \ | |
6622 | \ | |
6623 | /usr/include/qt \ | |
6624 | /usr/local/include/qt \ | |
6625 | \ | |
6626 | /usr/include/windows \ | |
6627 | /usr/include/wine \ | |
6628 | /usr/local/include/wine \ | |
6629 | \ | |
6630 | /usr/unsupported/include \ | |
6631 | /usr/athena/include \ | |
6632 | /usr/local/x11r5/include \ | |
6633 | /usr/lpp/Xamples/include \ | |
6634 | \ | |
6635 | /usr/openwin/include \ | |
6636 | /usr/openwin/share/include \ | |
6637 | " | |
6638 | ||
6639 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6640 | ||
6641 | ||
6642 | cat > confcache <<\EOF | |
6643 | # This file is a shell script that caches the results of configure | |
6644 | # tests run on this system so they can be shared between configure | |
6645 | # scripts and configure runs. It is not useful on other systems. | |
6646 | # If it contains results you don't want to keep, you may remove or edit it. | |
6647 | # | |
6648 | # By default, configure uses ./config.cache as the cache file, | |
6649 | # creating it if it does not exist already. You can give configure | |
6650 | # the --cache-file=FILE option to use a different cache file; that is | |
6651 | # what configure does when it calls configure scripts in | |
6652 | # subdirectories, so they share the cache. | |
6653 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6654 | # config.status only pays attention to the cache file if you give it the | |
6655 | # --recheck option to rerun configure. | |
6656 | # | |
6657 | EOF | |
6658 | # The following way of writing the cache mishandles newlines in values, | |
6659 | # but we know of no workaround that is simple, portable, and efficient. | |
6660 | # So, don't put newlines in cache variables' values. | |
6661 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6662 | # and sets the high bit in the cache file unless we assign to the vars. | |
6663 | (set) 2>&1 | | |
0709ee62 | 6664 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
6665 | *ac_space=\ *) |
6666 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6667 | # turns \\\\ into \\, and sed turns \\ into \). | |
6668 | sed -n \ | |
6669 | -e "s/'/'\\\\''/g" \ | |
6670 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6671 | ;; | |
6672 | *) | |
6673 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6674 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6675 | ;; | |
6676 | esac >> confcache | |
6677 | if cmp -s $cache_file confcache; then | |
6678 | : | |
6679 | else | |
6680 | if test -w $cache_file; then | |
6681 | echo "updating cache $cache_file" | |
6682 | cat confcache > $cache_file | |
6683 | else | |
6684 | echo "not updating unwritable cache $cache_file" | |
6685 | fi | |
6686 | fi | |
6687 | rm -f confcache | |
6688 | ||
6689 | ||
6690 | ||
f7a11f8c RR |
6691 | if test "$wxUSE_GUI" = "yes"; then |
6692 | ||
a16d3c04 KB |
6693 | TOOLKIT= |
6694 | TOOLKIT_INCLUDE= | |
6695 | ||
6696 | GUIOBJS= | |
6697 | COMMONOBJS= | |
6698 | GENERICOBJS= | |
6699 | ||
6700 | GUI_TK_LIBRARY= | |
6701 | GUI_TK_LINK= | |
6702 | ||
6703 | WXGTK12= | |
6704 | ||
6705 | WXWINE= | |
6706 | ||
1c8515f9 | 6707 | PROGRAM_EXT= |
a16d3c04 KB |
6708 | |
6709 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6710 | if test "$cross_compiling" = "yes" ; then | |
f7a11f8c | 6711 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 |
a16d3c04 | 6712 | else |
f7a11f8c | 6713 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 |
d607e6c3 | 6714 | echo "configure:6715: checking for Windows headers" >&5 |
f7a11f8c | 6715 | |
a16d3c04 KB |
6716 | ac_find_includes= |
6717 | for ac_dir in $SEARCH_INCLUDE; | |
6718 | do | |
6719 | if test -f "$ac_dir/windows.h"; then | |
6720 | ac_find_includes=$ac_dir | |
6721 | break | |
6722 | fi | |
6723 | done | |
6724 | ||
f7a11f8c | 6725 | if test "$ac_find_includes" != "" ; then |
a16d3c04 KB |
6726 | echo "$ac_t""found $ac_find_includes" 1>&6 |
6727 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
f7a11f8c | 6728 | else |
a16d3c04 KB |
6729 | echo "$ac_t""no" 1>&6 |
6730 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
1c8515f9 | 6731 | fi |
a16d3c04 | 6732 | fi |
1c8515f9 | 6733 | |
a16d3c04 | 6734 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
be4c1d33 VZ |
6735 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" |
6736 | ||
6737 | if test "$wxUSE_MINGW" = 1; then | |
6738 | LDFLAGS="$LDFLAGS -mwindows" | |
6739 | fi | |
a16d3c04 KB |
6740 | |
6741 | TOOLKIT=MSW | |
1c8515f9 | 6742 | |
f7a11f8c RR |
6743 | GUIOBJS="\$(MSW_GUIOBJS)" |
6744 | GUIHEADERS="\$(MSW_HEADERS)" | |
6745 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6746 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
a16d3c04 KB |
6747 | UNIXOBJS= |
6748 | GUIDIST=MSW_DIST | |
6749 | PROGRAM_EXT=.exe | |
6750 | fi | |
6751 | ||
6752 | if test "$wxUSE_GTK" = 1; then | |
6753 | ||
6754 | if test x$gtk_config_exec_prefix != x ; then | |
6755 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6756 | if test x${GTK_CONFIG+set} != xset ; then | |
6757 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6758 | fi | |
6759 | fi | |
6760 | if test x$gtk_config_prefix != x ; then | |
6761 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6762 | if test x${GTK_CONFIG+set} != xset ; then | |
6763 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6764 | fi | |
6765 | fi | |
6766 | ||
6767 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6768 | set dummy gtk-config; ac_word=$2 | |
6769 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d607e6c3 | 6770 | echo "configure:6771: checking for $ac_word" >&5 |
a16d3c04 KB |
6771 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6773 | else | |
6774 | case "$GTK_CONFIG" in | |
6775 | /*) | |
6776 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6777 | ;; | |
0709ee62 VZ |
6778 | ?:/*) |
6779 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
a16d3c04 | 6780 | ;; |
a16d3c04 | 6781 | *) |
0709ee62 VZ |
6782 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6783 | ac_dummy="$PATH" | |
6784 | for ac_dir in $ac_dummy; do | |
a16d3c04 KB |
6785 | test -z "$ac_dir" && ac_dir=. |
6786 | if test -f $ac_dir/$ac_word; then | |
6787 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6788 | break | |
6789 | fi | |
6790 | done | |
6791 | IFS="$ac_save_ifs" | |
6792 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6793 | ;; | |
6794 | esac | |
6795 | fi | |
6796 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6797 | if test -n "$GTK_CONFIG"; then | |
6798 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6799 | else | |
6800 | echo "$ac_t""no" 1>&6 | |
6801 | fi | |
6802 | ||
0709ee62 | 6803 | min_gtk_version=1.2.1 |
a16d3c04 | 6804 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d607e6c3 | 6805 | echo "configure:6806: checking for GTK - version >= $min_gtk_version" >&5 |
a16d3c04 KB |
6806 | no_gtk="" |
6807 | if test "$GTK_CONFIG" != "no" ; then | |
6808 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6809 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6810 | ac_save_CFLAGS="$CFLAGS" | |
6811 | ac_save_LIBS="$LIBS" | |
6812 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6813 | LIBS="$LIBS $GTK_LIBS" | |
6814 | if test "$cross_compiling" = yes; then | |
6815 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6816 | else | |
6817 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 6818 | #line 6819 "configure" |
a16d3c04 KB |
6819 | #include "confdefs.h" |
6820 | ||
6821 | #include <gtk/gtk.h> | |
6822 | #include <stdio.h> | |
6823 | ||
6824 | int | |
6825 | main () | |
6826 | { | |
6827 | int major, minor, micro; | |
6828 | ||
6829 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6830 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6831 | exit(1); | |
6832 | } | |
6833 | ||
6834 | if (gtk_minor_version == 1) return FALSE; | |
6835 | ||
6836 | return !((gtk_major_version > major) || | |
f7a11f8c RR |
6837 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
6838 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
a16d3c04 KB |
6839 | } |
6840 | ||
6841 | EOF | |
d607e6c3 | 6842 | if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
6843 | then |
6844 | : | |
6845 | else | |
6846 | echo "configure: failed program was:" >&5 | |
6847 | cat conftest.$ac_ext >&5 | |
6848 | rm -fr conftest* | |
6849 | no_gtk=yes | |
6850 | fi | |
6851 | rm -fr conftest* | |
6852 | fi | |
6853 | ||
6854 | CFLAGS="$ac_save_CFLAGS" | |
6855 | LIBS="$ac_save_LIBS" | |
6856 | else | |
6857 | no_gtk=yes | |
6858 | fi | |
6859 | if test "x$no_gtk" = x ; then | |
6860 | echo "$ac_t""yes" 1>&6 | |
0709ee62 | 6861 | WXGTK12=1 |
a16d3c04 KB |
6862 | else |
6863 | echo "$ac_t""no" 1>&6 | |
6864 | GTK_CFLAGS="" | |
6865 | GTK_LIBS="" | |
0709ee62 | 6866 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } |
a16d3c04 KB |
6867 | fi |
6868 | ||
6869 | ||
6870 | ||
a16d3c04 KB |
6871 | |
6872 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
f7a11f8c | 6873 | GUI_TK_LIBRARY="$GTK_LIBS" |
a16d3c04 | 6874 | TOOLKIT=GTK |
1c8515f9 | 6875 | |
f7a11f8c RR |
6876 | GUIOBJS="\$(GTK_GUIOBJS)" |
6877 | GUIHEADERS="\$(GTK_HEADERS)" | |
6878 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
6879 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
6880 | GUIDEPS="\$(GTK_GUIDEPS)" | |
6881 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
6882 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
6883 | UNIXOBJS="\$(UNIX_OBJS)" | |
a16d3c04 KB |
6884 | GUIDIST=GTK_DIST |
6885 | fi | |
6886 | ||
6887 | if test "$wxUSE_WINE" = 1; then | |
6888 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
d607e6c3 | 6889 | echo "configure:6890: checking for WINE includes" >&5 |
a16d3c04 KB |
6890 | |
6891 | ac_find_includes= | |
6892 | for ac_dir in $SEARCH_INCLUDE; | |
6893 | do | |
6894 | if test -f "$ac_dir/windows.h"; then | |
6895 | ac_find_includes=$ac_dir | |
6896 | break | |
6897 | fi | |
6898 | done | |
6899 | ||
6900 | if test "$ac_find_includes" != "" ; then | |
6901 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6902 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6903 | else | |
6904 | echo "$ac_t""no" 1>&6 | |
6905 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6906 | fi | |
6907 | ||
6908 | XPM_LINK="" | |
6909 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d607e6c3 | 6910 | echo "configure:6911: checking for Xpm library" >&5 |
a16d3c04 KB |
6911 | |
6912 | ac_find_libraries= | |
6913 | for ac_dir in $SEARCH_LIB; | |
6914 | do | |
6915 | for ac_extension in a so sl; do | |
6916 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
6917 | ac_find_libraries=$ac_dir | |
6918 | break 2 | |
6919 | fi | |
6920 | done | |
6921 | done | |
6922 | ||
6923 | if test "$ac_find_libraries" != "" ; then | |
6924 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
6925 | XPM_LINK="-lXpm" | |
6926 | cat >> confdefs.h <<\EOF | |
6927 | #define wxHAVE_LIB_XPM 1 | |
6928 | EOF | |
6929 | ||
6930 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6931 | else | |
6932 | echo "$ac_t""no" 1>&6 | |
6933 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
6934 | fi | |
1c8515f9 | 6935 | |
a16d3c04 KB |
6936 | MESA_LINK="" |
6937 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
d607e6c3 | 6938 | echo "configure:6939: checking for Mesa library" >&5 |
a16d3c04 KB |
6939 | |
6940 | ac_find_libraries= | |
6941 | for ac_dir in $SEARCH_LIB; | |
6942 | do | |
6943 | for ac_extension in a so sl; do | |
6944 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6945 | ac_find_libraries=$ac_dir | |
6946 | break 2 | |
6947 | fi | |
6948 | done | |
6949 | done | |
6950 | ||
6951 | if test "$ac_find_libraries" != "" ; then | |
6952 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
6953 | MESA_LINK="-lMesaGL" | |
6954 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6955 | else | |
6956 | { echo "configure: error: no" 1>&2; exit 1; } | |
6957 | fi | |
6958 | ||
f7a11f8c | 6959 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" |
a16d3c04 KB |
6960 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
6961 | WXWINE=1 | |
6962 | TOOLKIT=MSW | |
1c8515f9 | 6963 | |
f7a11f8c RR |
6964 | GUIHEADERS="\$(MSW_HEADERS)" |
6965 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6966 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6967 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6968 | GUIDEPS="\$(MSW_GUIDEPS)" | |
6969 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
6970 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
6971 | UNIXOBJS="\$(UNIX_OBJS)" | |
a16d3c04 KB |
6972 | GUIDIST=MSW_DIST |
6973 | fi | |
6974 | ||
6975 | if test "$wxUSE_MOTIF" = 1; then | |
d607e6c3 VZ |
6976 | echo $ac_n "checking for X11 headers""... $ac_c" 1>&6 |
6977 | echo "configure:6978: checking for X11 headers" >&5 | |
6978 | ||
6979 | ac_find_includes= | |
6980 | for ac_dir in $SEARCH_INCLUDE; | |
6981 | do | |
6982 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
6983 | ac_find_includes=$ac_dir | |
6984 | break | |
6985 | fi | |
6986 | done | |
a16d3c04 | 6987 | |
d607e6c3 VZ |
6988 | if test "$ac_find_includes" != "" ; then |
6989 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6990 | else | |
6991 | echo "$ac_t""no" 1>&6 | |
6992 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
6993 | fi | |
6994 | ||
6995 | echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6 | |
6996 | echo "configure:6997: checking for X11 libraries" >&5 | |
6997 | ||
6998 | ac_find_libraries= | |
6999 | for ac_dir in $SEARCH_LIB; | |
7000 | do | |
a16d3c04 | 7001 | for ac_extension in a so sl; do |
d607e6c3 VZ |
7002 | if test -f "$ac_dir/libX11.$ac_extension"; then |
7003 | ac_find_libraries=$ac_dir | |
7004 | break 2 | |
a16d3c04 KB |
7005 | fi |
7006 | done | |
d607e6c3 VZ |
7007 | done |
7008 | ||
7009 | if test "$ac_find_libraries" != "" ; then | |
7010 | ||
7011 | ac_path_to_include=$ac_find_includes | |
7012 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7013 | result=$? | |
7014 | if test $result = 0; then | |
7015 | ac_path_to_include="" | |
7016 | else | |
7017 | ac_path_to_include="-I$ac_find_includes" | |
a16d3c04 | 7018 | fi |
a16d3c04 | 7019 | |
d607e6c3 VZ |
7020 | |
7021 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7022 | result=$? | |
7023 | if test $result = 0; then | |
7024 | ac_path_to_link="" | |
7025 | else | |
7026 | ac_path_to_link="-L$ac_find_libraries" | |
7027 | fi | |
a16d3c04 | 7028 | |
d607e6c3 VZ |
7029 | |
7030 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7031 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7032 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7033 | else | |
7034 | echo "$ac_t""no" 1>&6 | |
7035 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
7036 | fi | |
7037 | ||
7038 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
7039 | echo "configure:7040: checking for Motif/Lesstif headers" >&5 | |
7040 | ||
7041 | ac_find_includes= | |
7042 | for ac_dir in $SEARCH_INCLUDE; | |
a16d3c04 | 7043 | do |
d607e6c3 VZ |
7044 | if test -f "$ac_dir/Xm/Xm.h"; then |
7045 | ac_find_includes=$ac_dir | |
a16d3c04 KB |
7046 | break |
7047 | fi | |
7048 | done | |
a16d3c04 | 7049 | |
d607e6c3 VZ |
7050 | if test "$ac_find_includes" != "" ; then |
7051 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7052 | else | |
7053 | echo "$ac_t""no" 1>&6 | |
7054 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
7055 | fi | |
7056 | ||
7057 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
7058 | echo "configure:7059: checking for Motif/Lesstif library" >&5 | |
7059 | ||
7060 | ac_find_libraries= | |
7061 | for ac_dir in $SEARCH_LIB; | |
7062 | do | |
7063 | for ac_extension in a so sl; do | |
7064 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
7065 | ac_find_libraries=$ac_dir | |
7066 | break 2 | |
7067 | fi | |
7068 | done | |
7069 | done | |
7070 | ||
7071 | if test "$ac_find_libraries" != "" ; then | |
7072 | ||
7073 | ac_path_to_include=$ac_find_includes | |
7074 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7075 | result=$? | |
7076 | if test $result = 0; then | |
7077 | ac_path_to_include="" | |
7078 | else | |
7079 | ac_path_to_include="-I$ac_find_includes" | |
7080 | fi | |
a16d3c04 | 7081 | |
d607e6c3 VZ |
7082 | |
7083 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7084 | result=$? | |
7085 | if test $result = 0; then | |
7086 | ac_path_to_link="" | |
7087 | else | |
7088 | ac_path_to_link="-L$ac_find_libraries" | |
7089 | fi | |
a16d3c04 | 7090 | |
a16d3c04 | 7091 | |
d607e6c3 VZ |
7092 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
7093 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7094 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7095 | else | |
7096 | echo "$ac_t""no" 1>&6 | |
7097 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
a16d3c04 | 7098 | fi |
d607e6c3 VZ |
7099 | |
7100 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
7101 | echo "configure:7102: checking for Xt library" >&5 | |
7102 | ||
7103 | ac_find_libraries= | |
7104 | for ac_dir in $SEARCH_LIB; | |
7105 | do | |
7106 | for ac_extension in a so sl; do | |
7107 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
7108 | ac_find_libraries=$ac_dir | |
7109 | break 2 | |
7110 | fi | |
7111 | done | |
a16d3c04 | 7112 | done |
a16d3c04 | 7113 | |
d607e6c3 VZ |
7114 | if test "$ac_find_libraries" != "" ; then |
7115 | ||
7116 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7117 | result=$? | |
7118 | if test $result = 0; then | |
7119 | ac_path_to_link="" | |
7120 | else | |
7121 | ac_path_to_link="-L$ac_find_libraries" | |
a16d3c04 | 7122 | fi |
a16d3c04 | 7123 | |
d607e6c3 VZ |
7124 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
7125 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7126 | else | |
7127 | echo "$ac_t""no" 1>&6 | |
7128 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
7129 | fi | |
a16d3c04 | 7130 | |
d607e6c3 VZ |
7131 | XPM_LINK="" |
7132 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
7133 | echo "configure:7134: checking for Xpm library" >&5 | |
7134 | ||
7135 | ac_find_libraries= | |
7136 | for ac_dir in $SEARCH_LIB; | |
7137 | do | |
7138 | for ac_extension in a so sl; do | |
7139 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7140 | ac_find_libraries=$ac_dir | |
7141 | break 2 | |
7142 | fi | |
7143 | done | |
7144 | done | |
a16d3c04 | 7145 | |
d607e6c3 VZ |
7146 | if test "$ac_find_libraries" != "" ; then |
7147 | ||
7148 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7149 | result=$? | |
7150 | if test $result = 0; then | |
7151 | ac_path_to_link="" | |
7152 | else | |
7153 | ac_path_to_link="-L$ac_find_libraries" | |
a16d3c04 KB |
7154 | fi |
7155 | ||
d607e6c3 VZ |
7156 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
7157 | XPM_LINK="-lXpm " | |
7158 | cat >> confdefs.h <<\EOF | |
7159 | #define wxHAVE_LIB_XPM 1 | |
7160 | EOF | |
a16d3c04 | 7161 | |
d607e6c3 VZ |
7162 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
7163 | else | |
7164 | echo "$ac_t""no" 1>&6 | |
7165 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7166 | fi | |
a16d3c04 | 7167 | |
d607e6c3 VZ |
7168 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm" |
7169 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7170 | TOOLKIT=MOTIF | |
7171 | ||
7172 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
7173 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
7174 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
7175 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" | |
7176 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
7177 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
7178 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" | |
7179 | UNIXOBJS="\$(UNIX_OBJS)" | |
7180 | GUIDIST=MOTIF_DIST | |
a16d3c04 KB |
7181 | fi |
7182 | ||
7183 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
7184 | ||
7185 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
7186 | ||
7187 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
7188 | ||
a0c79abb | 7189 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)" |
f7a11f8c RR |
7190 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" |
7191 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
7192 | else | |
7193 | ||
7194 | ALL_OBJECTS="\$(BASE_OBJS)" | |
7195 | ALL_DEPFILES="\${BASE_DEPS}" | |
7196 | ALL_HEADERS="\${BASE_HEADERS}" | |
7197 | ||
7198 | WX_LIBRARY="wxbase" | |
7199 | fi | |
a16d3c04 | 7200 | |
f7a11f8c | 7201 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" |
a16d3c04 | 7202 | |
f7a11f8c | 7203 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" |
a16d3c04 | 7204 | |
f7a11f8c RR |
7205 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
7206 | ||
7207 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
7208 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
7209 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
a16d3c04 KB |
7210 | |
7211 | SHARED_LD= | |
7212 | PIC_FLAG= | |
2726c66d KB |
7213 | WX_ALL= |
7214 | WX_ALL_INSTALLED= | |
a16d3c04 KB |
7215 | |
7216 | if test "$wxUSE_SHARED" = "yes"; then | |
7217 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
7218 | ||
2726c66d KB |
7219 | case "${host}" in |
7220 | *-hp-hpux* ) | |
7221 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
7222 | SHARED_LD="${CXX} -b -o" | |
7223 | PIC_FLAG="+Z" | |
7224 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
7225 | ;; | |
7226 | *-*-linux* ) | |
7227 | SHARED_LD="${CC} -shared -o" | |
7228 | PIC_FLAG="-fPIC" | |
7229 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7230 | WX_ALL="CREATE_LINKS" | |
7231 | ;; | |
7232 | *-*-irix5* | *-*-irix6* ) | |
7233 | if test "$GCC" = yes ; then | |
7234 | SHARED_LD="${CC} -shared -o" | |
7235 | PIC_FLAG="-fPIC" | |
7236 | else | |
7237 | SHARED_LD="${CXX} -shared -o" | |
7238 | fi | |
7239 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7240 | WX_ALL="CREATE_LINKS" | |
7241 | ;; | |
7242 | *-*-solaris2* ) | |
7243 | if test "$GCC" = yes ; then | |
7244 | SHARED_LD="${CC} -shared -o" | |
7245 | PIC_FLAG="-fPIC" | |
7246 | else | |
7247 | SHARED_LD="${CXX} -G -o" | |
7248 | PIC_FLAG="PIC" | |
7249 | fi | |
7250 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7251 | WX_ALL="CREATE_LINKS" | |
7252 | ;; | |
7253 | *-*-sunos4* ) | |
7254 | SHARED_LD="${CC} -shared -o" | |
7255 | PIC_FLAG="-fPIC" | |
7256 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7257 | WX_ALL="CREATE_LINKS" | |
7258 | ;; | |
7259 | *-*-freebsd* | *-*-netbsd*) | |
7260 | SHARED_LD="${CC} -shared -o" | |
7261 | PIC_FLAG="-fPIC" | |
7262 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7263 | WX_ALL="CREATE_LINKS" | |
7264 | ;; | |
7265 | *-*-osf* ) | |
7266 | SHARED_LD="${CXX} -shared -o" | |
7267 | PIC_FLAG="-fPIC" | |
7268 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7269 | WX_ALL="CREATE_LINKS" | |
7270 | ;; | |
7271 | *-*-dgux5* ) | |
7272 | SHARED_LD="${CXX} -shared -o" | |
7273 | PIC_FLAG="-fPIC" | |
7274 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7275 | WX_ALL="CREATE_LINKS" | |
7276 | ;; | |
7277 | *-*-sysv5* ) | |
7278 | SHARED_LD="${CC} -shared -o" | |
7279 | PIC_FLAG="-fPIC" | |
7280 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7281 | WX_ALL="CREATE_LINKS" | |
7282 | ;; | |
7283 | *-*-aix* ) | |
7284 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
7285 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
7286 | ;; | |
7287 | *-*-cygwin32* ) | |
7288 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7289 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
7290 | ;; | |
7291 | *-*-mingw32* ) | |
7292 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7293 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
7294 | ;; | |
7295 | *-pc-os2_emx ) | |
7296 | ;; | |
7297 | *) | |
7298 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
7299 | esac | |
a16d3c04 KB |
7300 | |
7301 | else | |
7302 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
2726c66d | 7303 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" |
a16d3c04 KB |
7304 | fi |
7305 | ||
7306 | ||
7307 | for ac_hdr in strings.h | |
7308 | do | |
7309 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7310 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 7311 | echo "configure:7312: checking for $ac_hdr" >&5 |
a16d3c04 KB |
7312 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7313 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7314 | else | |
7315 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7316 | #line 7317 "configure" |
a16d3c04 KB |
7317 | #include "confdefs.h" |
7318 | #include <$ac_hdr> | |
7319 | EOF | |
7320 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7321 | { (eval echo configure:7322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7322 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7323 | if test -z "$ac_err"; then |
7324 | rm -rf conftest* | |
7325 | eval "ac_cv_header_$ac_safe=yes" | |
7326 | else | |
7327 | echo "$ac_err" >&5 | |
7328 | echo "configure: failed program was:" >&5 | |
7329 | cat conftest.$ac_ext >&5 | |
7330 | rm -rf conftest* | |
7331 | eval "ac_cv_header_$ac_safe=no" | |
7332 | fi | |
7333 | rm -f conftest* | |
7334 | fi | |
7335 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7336 | echo "$ac_t""yes" 1>&6 | |
7337 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7338 | cat >> confdefs.h <<EOF | |
7339 | #define $ac_tr_hdr 1 | |
7340 | EOF | |
7341 | ||
7342 | else | |
7343 | echo "$ac_t""no" 1>&6 | |
7344 | fi | |
7345 | done | |
7346 | ||
7347 | for ac_hdr in unistd.h | |
7348 | do | |
7349 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7350 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 7351 | echo "configure:7352: checking for $ac_hdr" >&5 |
a16d3c04 KB |
7352 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7354 | else | |
7355 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7356 | #line 7357 "configure" |
a16d3c04 KB |
7357 | #include "confdefs.h" |
7358 | #include <$ac_hdr> | |
7359 | EOF | |
7360 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7361 | { (eval echo configure:7362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7362 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7363 | if test -z "$ac_err"; then |
7364 | rm -rf conftest* | |
7365 | eval "ac_cv_header_$ac_safe=yes" | |
7366 | else | |
7367 | echo "$ac_err" >&5 | |
7368 | echo "configure: failed program was:" >&5 | |
7369 | cat conftest.$ac_ext >&5 | |
7370 | rm -rf conftest* | |
7371 | eval "ac_cv_header_$ac_safe=no" | |
7372 | fi | |
7373 | rm -f conftest* | |
7374 | fi | |
7375 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7376 | echo "$ac_t""yes" 1>&6 | |
7377 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7378 | cat >> confdefs.h <<EOF | |
7379 | #define $ac_tr_hdr 1 | |
7380 | EOF | |
7381 | ||
7382 | else | |
7383 | echo "$ac_t""no" 1>&6 | |
7384 | fi | |
7385 | done | |
7386 | ||
7387 | for ac_hdr in wchar.h | |
7388 | do | |
7389 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7390 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 7391 | echo "configure:7392: checking for $ac_hdr" >&5 |
a16d3c04 KB |
7392 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7394 | else | |
7395 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7396 | #line 7397 "configure" |
a16d3c04 KB |
7397 | #include "confdefs.h" |
7398 | #include <$ac_hdr> | |
7399 | EOF | |
7400 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7401 | { (eval echo configure:7402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7402 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7403 | if test -z "$ac_err"; then |
7404 | rm -rf conftest* | |
7405 | eval "ac_cv_header_$ac_safe=yes" | |
7406 | else | |
7407 | echo "$ac_err" >&5 | |
7408 | echo "configure: failed program was:" >&5 | |
7409 | cat conftest.$ac_ext >&5 | |
7410 | rm -rf conftest* | |
7411 | eval "ac_cv_header_$ac_safe=no" | |
7412 | fi | |
7413 | rm -f conftest* | |
7414 | fi | |
7415 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7416 | echo "$ac_t""yes" 1>&6 | |
7417 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7418 | cat >> confdefs.h <<EOF | |
7419 | #define $ac_tr_hdr 1 | |
7420 | EOF | |
7421 | ||
7422 | else | |
7423 | echo "$ac_t""no" 1>&6 | |
7424 | fi | |
7425 | done | |
7426 | ||
7427 | for ac_hdr in wcstr.h | |
7428 | do | |
7429 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7430 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 7431 | echo "configure:7432: checking for $ac_hdr" >&5 |
a16d3c04 KB |
7432 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7434 | else | |
7435 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7436 | #line 7437 "configure" |
a16d3c04 KB |
7437 | #include "confdefs.h" |
7438 | #include <$ac_hdr> | |
7439 | EOF | |
7440 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7441 | { (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7442 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7443 | if test -z "$ac_err"; then |
7444 | rm -rf conftest* | |
7445 | eval "ac_cv_header_$ac_safe=yes" | |
7446 | else | |
7447 | echo "$ac_err" >&5 | |
7448 | echo "configure: failed program was:" >&5 | |
7449 | cat conftest.$ac_ext >&5 | |
7450 | rm -rf conftest* | |
7451 | eval "ac_cv_header_$ac_safe=no" | |
7452 | fi | |
7453 | rm -f conftest* | |
7454 | fi | |
7455 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7456 | echo "$ac_t""yes" 1>&6 | |
7457 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7458 | cat >> confdefs.h <<EOF | |
7459 | #define $ac_tr_hdr 1 | |
7460 | EOF | |
7461 | ||
7462 | else | |
7463 | echo "$ac_t""no" 1>&6 | |
7464 | fi | |
7465 | done | |
7466 | ||
7467 | for ac_hdr in fnmatch.h | |
7468 | do | |
7469 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7470 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 7471 | echo "configure:7472: checking for $ac_hdr" >&5 |
a16d3c04 KB |
7472 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7474 | else | |
7475 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7476 | #line 7477 "configure" |
a16d3c04 KB |
7477 | #include "confdefs.h" |
7478 | #include <$ac_hdr> | |
7479 | EOF | |
7480 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7481 | { (eval echo configure:7482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7482 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7483 | if test -z "$ac_err"; then |
7484 | rm -rf conftest* | |
7485 | eval "ac_cv_header_$ac_safe=yes" | |
7486 | else | |
7487 | echo "$ac_err" >&5 | |
7488 | echo "configure: failed program was:" >&5 | |
7489 | cat conftest.$ac_ext >&5 | |
7490 | rm -rf conftest* | |
7491 | eval "ac_cv_header_$ac_safe=no" | |
7492 | fi | |
7493 | rm -f conftest* | |
7494 | fi | |
7495 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7496 | echo "$ac_t""yes" 1>&6 | |
7497 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7498 | cat >> confdefs.h <<EOF | |
7499 | #define $ac_tr_hdr 1 | |
7500 | EOF | |
7501 | ||
7502 | else | |
7503 | echo "$ac_t""no" 1>&6 | |
7504 | fi | |
7505 | done | |
7506 | ||
f7a11f8c RR |
7507 | |
7508 | if test "$wxUSE_GUI" = "yes"; then | |
7509 | for ac_hdr in X11/XKBlib.h | |
a16d3c04 KB |
7510 | do |
7511 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7512 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 7513 | echo "configure:7514: checking for $ac_hdr" >&5 |
a16d3c04 KB |
7514 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7516 | else | |
7517 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7518 | #line 7519 "configure" |
a16d3c04 KB |
7519 | #include "confdefs.h" |
7520 | #include <$ac_hdr> | |
7521 | EOF | |
7522 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7523 | { (eval echo configure:7524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7524 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7525 | if test -z "$ac_err"; then |
7526 | rm -rf conftest* | |
7527 | eval "ac_cv_header_$ac_safe=yes" | |
7528 | else | |
7529 | echo "$ac_err" >&5 | |
7530 | echo "configure: failed program was:" >&5 | |
7531 | cat conftest.$ac_ext >&5 | |
7532 | rm -rf conftest* | |
7533 | eval "ac_cv_header_$ac_safe=no" | |
7534 | fi | |
7535 | rm -f conftest* | |
7536 | fi | |
7537 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7538 | echo "$ac_t""yes" 1>&6 | |
7539 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7540 | cat >> confdefs.h <<EOF | |
7541 | #define $ac_tr_hdr 1 | |
7542 | EOF | |
7543 | ||
7544 | else | |
7545 | echo "$ac_t""no" 1>&6 | |
7546 | fi | |
7547 | done | |
7548 | ||
f7a11f8c | 7549 | fi |
a16d3c04 KB |
7550 | |
7551 | ||
7552 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d607e6c3 | 7553 | echo "configure:7554: checking for ANSI C header files" >&5 |
a16d3c04 KB |
7554 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
7555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7556 | else | |
7557 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7558 | #line 7559 "configure" |
a16d3c04 KB |
7559 | #include "confdefs.h" |
7560 | #include <stdlib.h> | |
7561 | #include <stdarg.h> | |
7562 | #include <string.h> | |
7563 | #include <float.h> | |
7564 | EOF | |
7565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 7566 | { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 7567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
7568 | if test -z "$ac_err"; then |
7569 | rm -rf conftest* | |
7570 | ac_cv_header_stdc=yes | |
7571 | else | |
7572 | echo "$ac_err" >&5 | |
7573 | echo "configure: failed program was:" >&5 | |
7574 | cat conftest.$ac_ext >&5 | |
7575 | rm -rf conftest* | |
7576 | ac_cv_header_stdc=no | |
7577 | fi | |
7578 | rm -f conftest* | |
7579 | ||
7580 | if test $ac_cv_header_stdc = yes; then | |
7581 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7582 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7583 | #line 7584 "configure" |
a16d3c04 KB |
7584 | #include "confdefs.h" |
7585 | #include <string.h> | |
7586 | EOF | |
7587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7588 | egrep "memchr" >/dev/null 2>&1; then | |
7589 | : | |
7590 | else | |
7591 | rm -rf conftest* | |
7592 | ac_cv_header_stdc=no | |
7593 | fi | |
7594 | rm -f conftest* | |
7595 | ||
7596 | fi | |
7597 | ||
7598 | if test $ac_cv_header_stdc = yes; then | |
7599 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7600 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7601 | #line 7602 "configure" |
a16d3c04 KB |
7602 | #include "confdefs.h" |
7603 | #include <stdlib.h> | |
7604 | EOF | |
7605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7606 | egrep "free" >/dev/null 2>&1; then | |
7607 | : | |
7608 | else | |
7609 | rm -rf conftest* | |
7610 | ac_cv_header_stdc=no | |
7611 | fi | |
7612 | rm -f conftest* | |
7613 | ||
7614 | fi | |
7615 | ||
7616 | if test $ac_cv_header_stdc = yes; then | |
7617 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7618 | if test "$cross_compiling" = yes; then | |
7619 | : | |
7620 | else | |
7621 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7622 | #line 7623 "configure" |
a16d3c04 KB |
7623 | #include "confdefs.h" |
7624 | #include <ctype.h> | |
7625 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7626 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7627 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7628 | int main () { int i; for (i = 0; i < 256; i++) | |
7629 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
7630 | exit (0); } | |
7631 | ||
7632 | EOF | |
d607e6c3 | 7633 | if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
7634 | then |
7635 | : | |
7636 | else | |
7637 | echo "configure: failed program was:" >&5 | |
7638 | cat conftest.$ac_ext >&5 | |
7639 | rm -fr conftest* | |
7640 | ac_cv_header_stdc=no | |
7641 | fi | |
7642 | rm -fr conftest* | |
7643 | fi | |
7644 | ||
7645 | fi | |
7646 | fi | |
7647 | ||
7648 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
7649 | if test $ac_cv_header_stdc = yes; then | |
7650 | cat >> confdefs.h <<\EOF | |
7651 | #define STDC_HEADERS 1 | |
7652 | EOF | |
7653 | ||
7654 | fi | |
7655 | ||
7656 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
d607e6c3 | 7657 | echo "configure:7658: checking for mode_t" >&5 |
a16d3c04 KB |
7658 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
7659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7660 | else | |
7661 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7662 | #line 7663 "configure" |
a16d3c04 KB |
7663 | #include "confdefs.h" |
7664 | #include <sys/types.h> | |
7665 | #if STDC_HEADERS | |
7666 | #include <stdlib.h> | |
7667 | #include <stddef.h> | |
7668 | #endif | |
7669 | EOF | |
7670 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 7671 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
7672 | rm -rf conftest* |
7673 | ac_cv_type_mode_t=yes | |
7674 | else | |
7675 | rm -rf conftest* | |
7676 | ac_cv_type_mode_t=no | |
7677 | fi | |
7678 | rm -f conftest* | |
7679 | ||
7680 | fi | |
7681 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
7682 | if test $ac_cv_type_mode_t = no; then | |
7683 | cat >> confdefs.h <<\EOF | |
7684 | #define mode_t int | |
7685 | EOF | |
7686 | ||
7687 | fi | |
7688 | ||
7689 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
d607e6c3 | 7690 | echo "configure:7691: checking for off_t" >&5 |
a16d3c04 KB |
7691 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
7692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7693 | else | |
7694 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7695 | #line 7696 "configure" |
a16d3c04 KB |
7696 | #include "confdefs.h" |
7697 | #include <sys/types.h> | |
7698 | #if STDC_HEADERS | |
7699 | #include <stdlib.h> | |
7700 | #include <stddef.h> | |
7701 | #endif | |
7702 | EOF | |
7703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 7704 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
7705 | rm -rf conftest* |
7706 | ac_cv_type_off_t=yes | |
7707 | else | |
7708 | rm -rf conftest* | |
7709 | ac_cv_type_off_t=no | |
7710 | fi | |
7711 | rm -f conftest* | |
7712 | ||
7713 | fi | |
7714 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
7715 | if test $ac_cv_type_off_t = no; then | |
7716 | cat >> confdefs.h <<\EOF | |
7717 | #define off_t long | |
7718 | EOF | |
7719 | ||
7720 | fi | |
7721 | ||
7722 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
d607e6c3 | 7723 | echo "configure:7724: checking for pid_t" >&5 |
a16d3c04 KB |
7724 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7726 | else | |
7727 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7728 | #line 7729 "configure" |
a16d3c04 KB |
7729 | #include "confdefs.h" |
7730 | #include <sys/types.h> | |
7731 | #if STDC_HEADERS | |
7732 | #include <stdlib.h> | |
7733 | #include <stddef.h> | |
7734 | #endif | |
7735 | EOF | |
7736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 7737 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
7738 | rm -rf conftest* |
7739 | ac_cv_type_pid_t=yes | |
7740 | else | |
7741 | rm -rf conftest* | |
7742 | ac_cv_type_pid_t=no | |
7743 | fi | |
7744 | rm -f conftest* | |
7745 | ||
7746 | fi | |
7747 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
7748 | if test $ac_cv_type_pid_t = no; then | |
7749 | cat >> confdefs.h <<\EOF | |
7750 | #define pid_t int | |
7751 | EOF | |
7752 | ||
7753 | fi | |
7754 | ||
7755 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
d607e6c3 | 7756 | echo "configure:7757: checking for size_t" >&5 |
a16d3c04 KB |
7757 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
7758 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7759 | else | |
7760 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7761 | #line 7762 "configure" |
a16d3c04 KB |
7762 | #include "confdefs.h" |
7763 | #include <sys/types.h> | |
7764 | #if STDC_HEADERS | |
7765 | #include <stdlib.h> | |
7766 | #include <stddef.h> | |
7767 | #endif | |
7768 | EOF | |
7769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
0709ee62 | 7770 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
a16d3c04 KB |
7771 | rm -rf conftest* |
7772 | ac_cv_type_size_t=yes | |
7773 | else | |
7774 | rm -rf conftest* | |
7775 | ac_cv_type_size_t=no | |
7776 | fi | |
7777 | rm -f conftest* | |
7778 | ||
7779 | fi | |
7780 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
7781 | if test $ac_cv_type_size_t = no; then | |
7782 | cat >> confdefs.h <<\EOF | |
7783 | #define size_t unsigned | |
7784 | EOF | |
7785 | ||
7786 | fi | |
7787 | ||
7788 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
d607e6c3 | 7789 | echo "configure:7790: checking for uid_t in sys/types.h" >&5 |
a16d3c04 KB |
7790 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
7791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7792 | else | |
7793 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7794 | #line 7795 "configure" |
a16d3c04 KB |
7795 | #include "confdefs.h" |
7796 | #include <sys/types.h> | |
7797 | EOF | |
7798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7799 | egrep "uid_t" >/dev/null 2>&1; then | |
7800 | rm -rf conftest* | |
7801 | ac_cv_type_uid_t=yes | |
7802 | else | |
7803 | rm -rf conftest* | |
7804 | ac_cv_type_uid_t=no | |
7805 | fi | |
7806 | rm -f conftest* | |
7807 | ||
7808 | fi | |
7809 | ||
7810 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
7811 | if test $ac_cv_type_uid_t = no; then | |
7812 | cat >> confdefs.h <<\EOF | |
7813 | #define uid_t int | |
7814 | EOF | |
7815 | ||
7816 | cat >> confdefs.h <<\EOF | |
7817 | #define gid_t int | |
7818 | EOF | |
7819 | ||
7820 | fi | |
7821 | ||
7822 | ||
7823 | ||
7824 | ||
7825 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d607e6c3 | 7826 | echo "configure:7827: checking for working const" >&5 |
a16d3c04 KB |
7827 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
7828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7829 | else | |
7830 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7831 | #line 7832 "configure" |
a16d3c04 KB |
7832 | #include "confdefs.h" |
7833 | ||
7834 | int main() { | |
7835 | ||
7836 | /* Ultrix mips cc rejects this. */ | |
7837 | typedef int charset[2]; const charset x; | |
7838 | /* SunOS 4.1.1 cc rejects this. */ | |
7839 | char const *const *ccp; | |
7840 | char **p; | |
7841 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
7842 | struct point {int x, y;}; | |
7843 | static struct point const zero = {0,0}; | |
7844 | /* AIX XL C 1.02.0.0 rejects this. | |
7845 | It does not let you subtract one const X* pointer from another in an arm | |
7846 | of an if-expression whose if-part is not a constant expression */ | |
7847 | const char *g = "string"; | |
7848 | ccp = &g + (g ? g-g : 0); | |
7849 | /* HPUX 7.0 cc rejects these. */ | |
7850 | ++ccp; | |
7851 | p = (char**) ccp; | |
7852 | ccp = (char const *const *) p; | |
7853 | { /* SCO 3.2v4 cc rejects this. */ | |
7854 | char *t; | |
7855 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7856 | ||
7857 | *t++ = 0; | |
7858 | } | |
7859 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7860 | int x[] = {25, 17}; | |
7861 | const int *foo = &x[0]; | |
7862 | ++foo; | |
7863 | } | |
7864 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7865 | typedef const int *iptr; | |
7866 | iptr p = 0; | |
7867 | ++p; | |
7868 | } | |
7869 | { /* AIX XL C 1.02.0.0 rejects this saying | |
7870 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7871 | struct s { int j; const int *ap[3]; }; | |
7872 | struct s *b; b->j = 5; | |
7873 | } | |
7874 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7875 | const int foo = 10; | |
7876 | } | |
7877 | ||
7878 | ; return 0; } | |
7879 | EOF | |
d607e6c3 | 7880 | if { (eval echo configure:7881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
7881 | rm -rf conftest* |
7882 | ac_cv_c_const=yes | |
7883 | else | |
7884 | echo "configure: failed program was:" >&5 | |
7885 | cat conftest.$ac_ext >&5 | |
7886 | rm -rf conftest* | |
7887 | ac_cv_c_const=no | |
7888 | fi | |
7889 | rm -f conftest* | |
7890 | fi | |
7891 | ||
7892 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
7893 | if test $ac_cv_c_const = no; then | |
7894 | cat >> confdefs.h <<\EOF | |
7895 | #define const | |
7896 | EOF | |
7897 | ||
7898 | fi | |
7899 | ||
7900 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
d607e6c3 | 7901 | echo "configure:7902: checking for inline" >&5 |
a16d3c04 KB |
7902 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
7903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7904 | else | |
7905 | ac_cv_c_inline=no | |
7906 | for ac_kw in inline __inline__ __inline; do | |
7907 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7908 | #line 7909 "configure" |
a16d3c04 KB |
7909 | #include "confdefs.h" |
7910 | ||
7911 | int main() { | |
7912 | } $ac_kw foo() { | |
7913 | ; return 0; } | |
7914 | EOF | |
d607e6c3 | 7915 | if { (eval echo configure:7916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
7916 | rm -rf conftest* |
7917 | ac_cv_c_inline=$ac_kw; break | |
7918 | else | |
7919 | echo "configure: failed program was:" >&5 | |
7920 | cat conftest.$ac_ext >&5 | |
7921 | fi | |
7922 | rm -f conftest* | |
7923 | done | |
7924 | ||
7925 | fi | |
7926 | ||
7927 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
7928 | case "$ac_cv_c_inline" in | |
7929 | inline | yes) ;; | |
7930 | no) cat >> confdefs.h <<\EOF | |
7931 | #define inline | |
7932 | EOF | |
7933 | ;; | |
7934 | *) cat >> confdefs.h <<EOF | |
7935 | #define inline $ac_cv_c_inline | |
7936 | EOF | |
7937 | ;; | |
7938 | esac | |
7939 | ||
7940 | ||
7941 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
d607e6c3 | 7942 | echo "configure:7943: checking size of char" >&5 |
a16d3c04 KB |
7943 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
7944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7945 | else | |
7946 | if test "$cross_compiling" = yes; then | |
7947 | ac_cv_sizeof_char=1 | |
7948 | else | |
7949 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7950 | #line 7951 "configure" |
a16d3c04 KB |
7951 | #include "confdefs.h" |
7952 | #include <stdio.h> | |
7953 | main() | |
7954 | { | |
7955 | FILE *f=fopen("conftestval", "w"); | |
7956 | if (!f) exit(1); | |
7957 | fprintf(f, "%d\n", sizeof(char)); | |
7958 | exit(0); | |
7959 | } | |
7960 | EOF | |
d607e6c3 | 7961 | if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
7962 | then |
7963 | ac_cv_sizeof_char=`cat conftestval` | |
7964 | else | |
7965 | echo "configure: failed program was:" >&5 | |
7966 | cat conftest.$ac_ext >&5 | |
7967 | rm -fr conftest* | |
7968 | ac_cv_sizeof_char=0 | |
7969 | fi | |
7970 | rm -fr conftest* | |
7971 | fi | |
7972 | ||
7973 | fi | |
7974 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
7975 | cat >> confdefs.h <<EOF | |
7976 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
7977 | EOF | |
7978 | ||
7979 | ||
7980 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
d607e6c3 | 7981 | echo "configure:7982: checking size of short" >&5 |
a16d3c04 KB |
7982 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
7983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7984 | else | |
7985 | if test "$cross_compiling" = yes; then | |
7986 | ac_cv_sizeof_short=2 | |
7987 | else | |
7988 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 7989 | #line 7990 "configure" |
a16d3c04 KB |
7990 | #include "confdefs.h" |
7991 | #include <stdio.h> | |
7992 | main() | |
7993 | { | |
7994 | FILE *f=fopen("conftestval", "w"); | |
7995 | if (!f) exit(1); | |
7996 | fprintf(f, "%d\n", sizeof(short)); | |
7997 | exit(0); | |
7998 | } | |
7999 | EOF | |
d607e6c3 | 8000 | if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8001 | then |
8002 | ac_cv_sizeof_short=`cat conftestval` | |
8003 | else | |
8004 | echo "configure: failed program was:" >&5 | |
8005 | cat conftest.$ac_ext >&5 | |
8006 | rm -fr conftest* | |
8007 | ac_cv_sizeof_short=0 | |
8008 | fi | |
8009 | rm -fr conftest* | |
8010 | fi | |
8011 | ||
8012 | fi | |
8013 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
8014 | cat >> confdefs.h <<EOF | |
8015 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
8016 | EOF | |
8017 | ||
8018 | ||
8019 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
d607e6c3 | 8020 | echo "configure:8021: checking size of int *" >&5 |
a16d3c04 KB |
8021 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
8022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8023 | else | |
8024 | if test "$cross_compiling" = yes; then | |
8025 | ac_cv_sizeof_int_p=4 | |
8026 | else | |
8027 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8028 | #line 8029 "configure" |
a16d3c04 KB |
8029 | #include "confdefs.h" |
8030 | #include <stdio.h> | |
8031 | main() | |
8032 | { | |
8033 | FILE *f=fopen("conftestval", "w"); | |
8034 | if (!f) exit(1); | |
8035 | fprintf(f, "%d\n", sizeof(int *)); | |
8036 | exit(0); | |
8037 | } | |
8038 | EOF | |
d607e6c3 | 8039 | if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8040 | then |
8041 | ac_cv_sizeof_int_p=`cat conftestval` | |
8042 | else | |
8043 | echo "configure: failed program was:" >&5 | |
8044 | cat conftest.$ac_ext >&5 | |
8045 | rm -fr conftest* | |
8046 | ac_cv_sizeof_int_p=0 | |
8047 | fi | |
8048 | rm -fr conftest* | |
8049 | fi | |
8050 | ||
8051 | fi | |
8052 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
8053 | cat >> confdefs.h <<EOF | |
8054 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
8055 | EOF | |
8056 | ||
8057 | ||
8058 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d607e6c3 | 8059 | echo "configure:8060: checking size of int" >&5 |
a16d3c04 KB |
8060 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
8061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8062 | else | |
8063 | if test "$cross_compiling" = yes; then | |
8064 | ac_cv_sizeof_int=4 | |
8065 | else | |
8066 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8067 | #line 8068 "configure" |
a16d3c04 KB |
8068 | #include "confdefs.h" |
8069 | #include <stdio.h> | |
8070 | main() | |
8071 | { | |
8072 | FILE *f=fopen("conftestval", "w"); | |
8073 | if (!f) exit(1); | |
8074 | fprintf(f, "%d\n", sizeof(int)); | |
8075 | exit(0); | |
8076 | } | |
8077 | EOF | |
d607e6c3 | 8078 | if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8079 | then |
8080 | ac_cv_sizeof_int=`cat conftestval` | |
8081 | else | |
8082 | echo "configure: failed program was:" >&5 | |
8083 | cat conftest.$ac_ext >&5 | |
8084 | rm -fr conftest* | |
8085 | ac_cv_sizeof_int=0 | |
8086 | fi | |
8087 | rm -fr conftest* | |
8088 | fi | |
8089 | ||
8090 | fi | |
8091 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
8092 | cat >> confdefs.h <<EOF | |
8093 | #define SIZEOF_INT $ac_cv_sizeof_int | |
8094 | EOF | |
8095 | ||
8096 | ||
8097 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d607e6c3 | 8098 | echo "configure:8099: checking size of long" >&5 |
a16d3c04 KB |
8099 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
8100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8101 | else | |
8102 | if test "$cross_compiling" = yes; then | |
8103 | ac_cv_sizeof_long=4 | |
8104 | else | |
8105 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8106 | #line 8107 "configure" |
a16d3c04 KB |
8107 | #include "confdefs.h" |
8108 | #include <stdio.h> | |
8109 | main() | |
8110 | { | |
8111 | FILE *f=fopen("conftestval", "w"); | |
8112 | if (!f) exit(1); | |
8113 | fprintf(f, "%d\n", sizeof(long)); | |
8114 | exit(0); | |
8115 | } | |
8116 | EOF | |
d607e6c3 | 8117 | if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8118 | then |
8119 | ac_cv_sizeof_long=`cat conftestval` | |
8120 | else | |
8121 | echo "configure: failed program was:" >&5 | |
8122 | cat conftest.$ac_ext >&5 | |
8123 | rm -fr conftest* | |
8124 | ac_cv_sizeof_long=0 | |
8125 | fi | |
8126 | rm -fr conftest* | |
8127 | fi | |
8128 | ||
8129 | fi | |
8130 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
8131 | cat >> confdefs.h <<EOF | |
8132 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
8133 | EOF | |
8134 | ||
8135 | ||
8136 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
d607e6c3 | 8137 | echo "configure:8138: checking size of long long" >&5 |
a16d3c04 KB |
8138 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
8139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8140 | else | |
8141 | if test "$cross_compiling" = yes; then | |
8142 | ac_cv_sizeof_long_long=0 | |
8143 | else | |
8144 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8145 | #line 8146 "configure" |
a16d3c04 KB |
8146 | #include "confdefs.h" |
8147 | #include <stdio.h> | |
8148 | main() | |
8149 | { | |
8150 | FILE *f=fopen("conftestval", "w"); | |
8151 | if (!f) exit(1); | |
8152 | fprintf(f, "%d\n", sizeof(long long)); | |
8153 | exit(0); | |
8154 | } | |
8155 | EOF | |
d607e6c3 | 8156 | if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8157 | then |
8158 | ac_cv_sizeof_long_long=`cat conftestval` | |
8159 | else | |
8160 | echo "configure: failed program was:" >&5 | |
8161 | cat conftest.$ac_ext >&5 | |
8162 | rm -fr conftest* | |
8163 | ac_cv_sizeof_long_long=0 | |
8164 | fi | |
8165 | rm -fr conftest* | |
8166 | fi | |
8167 | ||
8168 | fi | |
8169 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
8170 | cat >> confdefs.h <<EOF | |
8171 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
8172 | EOF | |
8173 | ||
8174 | ||
8175 | ||
8176 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
d607e6c3 | 8177 | echo "configure:8178: checking whether byte ordering is bigendian" >&5 |
a16d3c04 KB |
8178 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
8179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8180 | else | |
8181 | ac_cv_c_bigendian=unknown | |
8182 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8183 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8184 | #line 8185 "configure" |
a16d3c04 KB |
8185 | #include "confdefs.h" |
8186 | #include <sys/types.h> | |
8187 | #include <sys/param.h> | |
8188 | int main() { | |
8189 | ||
8190 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
8191 | bogus endian macros | |
8192 | #endif | |
8193 | ; return 0; } | |
8194 | EOF | |
d607e6c3 | 8195 | if { (eval echo configure:8196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8196 | rm -rf conftest* |
8197 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8198 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8199 | #line 8200 "configure" |
a16d3c04 KB |
8200 | #include "confdefs.h" |
8201 | #include <sys/types.h> | |
8202 | #include <sys/param.h> | |
8203 | int main() { | |
8204 | ||
8205 | #if BYTE_ORDER != BIG_ENDIAN | |
8206 | not big endian | |
8207 | #endif | |
8208 | ; return 0; } | |
8209 | EOF | |
d607e6c3 | 8210 | if { (eval echo configure:8211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8211 | rm -rf conftest* |
8212 | ac_cv_c_bigendian=yes | |
8213 | else | |
8214 | echo "configure: failed program was:" >&5 | |
8215 | cat conftest.$ac_ext >&5 | |
8216 | rm -rf conftest* | |
8217 | ac_cv_c_bigendian=no | |
8218 | fi | |
8219 | rm -f conftest* | |
8220 | else | |
8221 | echo "configure: failed program was:" >&5 | |
8222 | cat conftest.$ac_ext >&5 | |
8223 | fi | |
8224 | rm -f conftest* | |
8225 | if test $ac_cv_c_bigendian = unknown; then | |
8226 | if test "$cross_compiling" = yes; then | |
8227 | ac_cv_c_bigendian=unknown | |
8228 | else | |
8229 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8230 | #line 8231 "configure" |
a16d3c04 KB |
8231 | #include "confdefs.h" |
8232 | main () { | |
8233 | /* Are we little or big endian? From Harbison&Steele. */ | |
8234 | union | |
8235 | { | |
8236 | long l; | |
8237 | char c[sizeof (long)]; | |
8238 | } u; | |
8239 | u.l = 1; | |
8240 | exit (u.c[sizeof (long) - 1] == 1); | |
8241 | } | |
8242 | EOF | |
d607e6c3 | 8243 | if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8244 | then |
8245 | ac_cv_c_bigendian=no | |
8246 | else | |
8247 | echo "configure: failed program was:" >&5 | |
8248 | cat conftest.$ac_ext >&5 | |
8249 | rm -fr conftest* | |
8250 | ac_cv_c_bigendian=yes | |
8251 | fi | |
8252 | rm -fr conftest* | |
8253 | fi | |
8254 | ||
8255 | fi | |
8256 | fi | |
8257 | ||
8258 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
8259 | if test $ac_cv_c_bigendian = unknown; then | |
8260 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 | |
8261 | fi | |
8262 | if test $ac_cv_c_bigendian = yes; then | |
8263 | cat >> confdefs.h <<\EOF | |
8264 | #define WORDS_BIGENDIAN 1 | |
8265 | EOF | |
8266 | ||
8267 | fi | |
8268 | ||
8269 | ||
8270 | ||
8271 | if test "$cross_compiling" = "yes"; then | |
8272 | cat >> confdefs.h <<\EOF | |
8273 | #define wxUSE_IOSTREAMH 1 | |
8274 | EOF | |
8275 | ||
8276 | else | |
8277 | ||
8278 | ac_ext=C | |
8279 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8280 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8281 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8282 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8283 | cross_compiling=$ac_cv_prog_cxx_cross |
8284 | ||
8285 | ||
8286 | for ac_hdr in iostream | |
8287 | do | |
8288 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8289 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 8290 | echo "configure:8291: checking for $ac_hdr" >&5 |
a16d3c04 KB |
8291 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8293 | else | |
8294 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8295 | #line 8296 "configure" |
a16d3c04 KB |
8296 | #include "confdefs.h" |
8297 | #include <$ac_hdr> | |
8298 | EOF | |
8299 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 8300 | { (eval echo configure:8301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 8301 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
8302 | if test -z "$ac_err"; then |
8303 | rm -rf conftest* | |
8304 | eval "ac_cv_header_$ac_safe=yes" | |
8305 | else | |
8306 | echo "$ac_err" >&5 | |
8307 | echo "configure: failed program was:" >&5 | |
8308 | cat conftest.$ac_ext >&5 | |
8309 | rm -rf conftest* | |
8310 | eval "ac_cv_header_$ac_safe=no" | |
8311 | fi | |
8312 | rm -f conftest* | |
8313 | fi | |
8314 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8315 | echo "$ac_t""yes" 1>&6 | |
8316 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8317 | cat >> confdefs.h <<EOF | |
8318 | #define $ac_tr_hdr 1 | |
8319 | EOF | |
8320 | ||
8321 | else | |
8322 | echo "$ac_t""no" 1>&6 | |
8323 | fi | |
8324 | done | |
8325 | ||
8326 | ||
8327 | if test "x$HAVE_IOSTREAM" = x ; then | |
8328 | cat >> confdefs.h <<\EOF | |
8329 | #define wxUSE_IOSTREAMH 1 | |
8330 | EOF | |
8331 | ||
8332 | else | |
8333 | : | |
8334 | fi | |
8335 | ||
8336 | ac_ext=c | |
8337 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8338 | ac_cpp='$CPP $CPPFLAGS' | |
8339 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8340 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8341 | cross_compiling=$ac_cv_prog_cc_cross |
8342 | ||
8343 | fi | |
8344 | ||
8345 | ||
8346 | ||
8347 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
d607e6c3 | 8348 | echo "configure:8349: checking if C++ compiler supports bool" >&5 |
a16d3c04 KB |
8349 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
8350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8351 | else | |
8352 | ||
8353 | ||
8354 | ac_ext=C | |
8355 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8357 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8358 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8359 | cross_compiling=$ac_cv_prog_cxx_cross |
8360 | ||
8361 | ||
8362 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8363 | #line 8364 "configure" |
a16d3c04 KB |
8364 | #include "confdefs.h" |
8365 | ||
8366 | ||
8367 | int main() { | |
8368 | ||
8369 | bool b = true; | |
8370 | ||
8371 | return 0; | |
8372 | ||
8373 | ; return 0; } | |
8374 | EOF | |
d607e6c3 | 8375 | if { (eval echo configure:8376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8376 | rm -rf conftest* |
8377 | ||
8378 | cat >> confdefs.h <<\EOF | |
8379 | #define HAVE_BOOL 1 | |
8380 | EOF | |
8381 | ||
8382 | wx_cv_cpp_bool=yes | |
8383 | ||
8384 | else | |
8385 | echo "configure: failed program was:" >&5 | |
8386 | cat conftest.$ac_ext >&5 | |
8387 | rm -rf conftest* | |
8388 | ||
8389 | wx_cv_cpp_bool=no | |
8390 | ||
8391 | ||
8392 | fi | |
8393 | rm -f conftest* | |
8394 | ||
8395 | ac_ext=c | |
8396 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8397 | ac_cpp='$CPP $CPPFLAGS' | |
8398 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8399 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8400 | cross_compiling=$ac_cv_prog_cc_cross |
8401 | ||
8402 | ||
8403 | fi | |
8404 | ||
8405 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
8406 | ||
8407 | if test "$wx_cv_cpp_bool" = "yes"; then | |
8408 | cat >> confdefs.h <<\EOF | |
8409 | #define HAVE_BOOL 1 | |
8410 | EOF | |
8411 | ||
8412 | fi | |
8413 | ||
8414 | ||
8415 | ||
8416 | echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6 | |
d607e6c3 | 8417 | echo "configure:8418: checking if size_t and int are different types" >&5 |
a16d3c04 KB |
8418 | if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then |
8419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8420 | else | |
8421 | ||
8422 | ||
8423 | ac_ext=C | |
8424 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8425 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8426 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8427 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8428 | cross_compiling=$ac_cv_prog_cxx_cross |
8429 | ||
8430 | ||
8431 | if test "$cross_compiling" = yes; then | |
8432 | wx_cv_cpp_sizet_not_int=no | |
8433 | ||
8434 | else | |
8435 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8436 | #line 8437 "configure" |
a16d3c04 KB |
8437 | #include "confdefs.h" |
8438 | #ifdef __cplusplus | |
8439 | extern "C" void exit(int); | |
8440 | #endif | |
8441 | ||
8442 | #include <stdlib.h> | |
8443 | ||
8444 | class S | |
8445 | { | |
8446 | public: | |
8447 | S(char *s) { m_s = s; } | |
8448 | ||
8449 | char operator[](size_t n) const { return m_s[n]; } | |
8450 | char operator[](int n) const { return m_s[n]; } | |
8451 | ||
8452 | private: | |
8453 | char *m_s; | |
8454 | }; | |
8455 | ||
8456 | int main() | |
8457 | { | |
8458 | S s("dummy"); | |
8459 | size_t n1 = 2; | |
8460 | int n2 = 3; | |
8461 | ||
8462 | return s[n1] == s[n2]; | |
8463 | } | |
8464 | ||
8465 | EOF | |
d607e6c3 | 8466 | if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8467 | then |
8468 | cat >> confdefs.h <<\EOF | |
8469 | #define wxUSE_SIZE_T_STRING_OPERATOR 1 | |
8470 | EOF | |
8471 | wx_cv_cpp_sizet_not_int=yes | |
8472 | else | |
8473 | echo "configure: failed program was:" >&5 | |
8474 | cat conftest.$ac_ext >&5 | |
8475 | rm -fr conftest* | |
8476 | wx_cv_cpp_sizet_not_int=no | |
8477 | fi | |
8478 | rm -fr conftest* | |
8479 | fi | |
8480 | ||
8481 | ||
8482 | ac_ext=c | |
8483 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8484 | ac_cpp='$CPP $CPPFLAGS' | |
8485 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8486 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8487 | cross_compiling=$ac_cv_prog_cc_cross |
8488 | ||
8489 | ||
8490 | fi | |
8491 | ||
8492 | echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6 | |
8493 | ||
8494 | ||
8495 | ||
8496 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 | |
d607e6c3 | 8497 | echo "configure:8498: checking if you need GNU extensions" >&5 |
a16d3c04 KB |
8498 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
8499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8500 | else | |
8501 | ||
8502 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8503 | #line 8504 "configure" |
a16d3c04 KB |
8504 | #include "confdefs.h" |
8505 | #include <features.h> | |
8506 | int main() { | |
8507 | ||
8508 | ||
8509 | #ifndef __GNU_LIBRARY__ | |
8510 | Compile error wanted | |
8511 | #endif | |
8512 | ||
8513 | ||
8514 | ; return 0; } | |
8515 | EOF | |
d607e6c3 | 8516 | if { (eval echo configure:8517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
8517 | rm -rf conftest* |
8518 | wx_cv_gnu_extensions=yes | |
8519 | else | |
8520 | echo "configure: failed program was:" >&5 | |
8521 | cat conftest.$ac_ext >&5 | |
8522 | rm -rf conftest* | |
8523 | wx_cv_gnu_extensions=no | |
8524 | fi | |
8525 | rm -f conftest* | |
8526 | ||
8527 | fi | |
8528 | ||
8529 | ||
8530 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
8531 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
8532 | cat >> confdefs.h <<EOF | |
8533 | #define _GNU_SOURCE 1 | |
8534 | EOF | |
8535 | ||
8536 | fi | |
8537 | ||
8538 | ||
8539 | ||
8540 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
d607e6c3 | 8541 | echo "configure:8542: checking for wcslen in -lc" >&5 |
a16d3c04 KB |
8542 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
8543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8545 | else | |
8546 | ac_save_LIBS="$LIBS" | |
8547 | LIBS="-lc $LIBS" | |
8548 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8549 | #line 8550 "configure" |
a16d3c04 KB |
8550 | #include "confdefs.h" |
8551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8552 | /* We use char because int might match the return type of a gcc2 | |
8553 | builtin and then its argument prototype would still apply. */ | |
8554 | char wcslen(); | |
8555 | ||
8556 | int main() { | |
8557 | wcslen() | |
8558 | ; return 0; } | |
8559 | EOF | |
d607e6c3 | 8560 | if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8561 | rm -rf conftest* |
8562 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8563 | else | |
8564 | echo "configure: failed program was:" >&5 | |
8565 | cat conftest.$ac_ext >&5 | |
8566 | rm -rf conftest* | |
8567 | eval "ac_cv_lib_$ac_lib_var=no" | |
8568 | fi | |
8569 | rm -f conftest* | |
8570 | LIBS="$ac_save_LIBS" | |
8571 | ||
8572 | fi | |
8573 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8574 | echo "$ac_t""yes" 1>&6 | |
8575 | ||
8576 | cat >> confdefs.h <<\EOF | |
8577 | #define HAVE_WCSLEN 1 | |
8578 | EOF | |
8579 | ||
8580 | WCHAR_LINK="" | |
8581 | ||
8582 | else | |
8583 | echo "$ac_t""no" 1>&6 | |
8584 | ||
8585 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
d607e6c3 | 8586 | echo "configure:8587: checking for wcslen in -lw" >&5 |
a16d3c04 KB |
8587 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
8588 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8590 | else | |
8591 | ac_save_LIBS="$LIBS" | |
8592 | LIBS="-lw $LIBS" | |
8593 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8594 | #line 8595 "configure" |
a16d3c04 KB |
8595 | #include "confdefs.h" |
8596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8597 | /* We use char because int might match the return type of a gcc2 | |
8598 | builtin and then its argument prototype would still apply. */ | |
8599 | char wcslen(); | |
8600 | ||
8601 | int main() { | |
8602 | wcslen() | |
8603 | ; return 0; } | |
8604 | EOF | |
d607e6c3 | 8605 | if { (eval echo configure:8606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8606 | rm -rf conftest* |
8607 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8608 | else | |
8609 | echo "configure: failed program was:" >&5 | |
8610 | cat conftest.$ac_ext >&5 | |
8611 | rm -rf conftest* | |
8612 | eval "ac_cv_lib_$ac_lib_var=no" | |
8613 | fi | |
8614 | rm -f conftest* | |
8615 | LIBS="$ac_save_LIBS" | |
8616 | ||
8617 | fi | |
8618 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8619 | echo "$ac_t""yes" 1>&6 | |
8620 | ||
8621 | cat >> confdefs.h <<\EOF | |
8622 | #define HAVE_WCSLEN 1 | |
8623 | EOF | |
8624 | ||
8625 | WCHAR_LINK="-lw" | |
8626 | ||
8627 | else | |
8628 | echo "$ac_t""no" 1>&6 | |
8629 | fi | |
8630 | ||
8631 | ||
8632 | fi | |
8633 | ||
8634 | ||
8635 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
d607e6c3 | 8636 | echo "configure:8637: checking for vprintf" >&5 |
a16d3c04 KB |
8637 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
8638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8639 | else | |
8640 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8641 | #line 8642 "configure" |
a16d3c04 KB |
8642 | #include "confdefs.h" |
8643 | /* System header to define __stub macros and hopefully few prototypes, | |
8644 | which can conflict with char vprintf(); below. */ | |
8645 | #include <assert.h> | |
8646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8647 | /* We use char because int might match the return type of a gcc2 | |
8648 | builtin and then its argument prototype would still apply. */ | |
8649 | char vprintf(); | |
8650 | ||
8651 | int main() { | |
8652 | ||
8653 | /* The GNU C library defines this for functions which it implements | |
8654 | to always fail with ENOSYS. Some functions are actually named | |
8655 | something starting with __ and the normal name is an alias. */ | |
8656 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
8657 | choke me | |
8658 | #else | |
2726c66d | 8659 | vprintf(); |
a16d3c04 KB |
8660 | #endif |
8661 | ||
8662 | ; return 0; } | |
8663 | EOF | |
d607e6c3 | 8664 | if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8665 | rm -rf conftest* |
8666 | eval "ac_cv_func_vprintf=yes" | |
8667 | else | |
8668 | echo "configure: failed program was:" >&5 | |
8669 | cat conftest.$ac_ext >&5 | |
8670 | rm -rf conftest* | |
8671 | eval "ac_cv_func_vprintf=no" | |
8672 | fi | |
8673 | rm -f conftest* | |
8674 | fi | |
8675 | ||
8676 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
8677 | echo "$ac_t""yes" 1>&6 | |
8678 | cat >> confdefs.h <<\EOF | |
8679 | #define HAVE_VPRINTF 1 | |
8680 | EOF | |
8681 | ||
8682 | else | |
8683 | echo "$ac_t""no" 1>&6 | |
8684 | fi | |
8685 | ||
8686 | if test "$ac_cv_func_vprintf" != yes; then | |
8687 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d607e6c3 | 8688 | echo "configure:8689: checking for _doprnt" >&5 |
a16d3c04 KB |
8689 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
8690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8691 | else | |
8692 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8693 | #line 8694 "configure" |
a16d3c04 KB |
8694 | #include "confdefs.h" |
8695 | /* System header to define __stub macros and hopefully few prototypes, | |
8696 | which can conflict with char _doprnt(); below. */ | |
8697 | #include <assert.h> | |
8698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8699 | /* We use char because int might match the return type of a gcc2 | |
8700 | builtin and then its argument prototype would still apply. */ | |
8701 | char _doprnt(); | |
8702 | ||
8703 | int main() { | |
8704 | ||
8705 | /* The GNU C library defines this for functions which it implements | |
8706 | to always fail with ENOSYS. Some functions are actually named | |
8707 | something starting with __ and the normal name is an alias. */ | |
8708 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
8709 | choke me | |
8710 | #else | |
2726c66d | 8711 | _doprnt(); |
a16d3c04 KB |
8712 | #endif |
8713 | ||
8714 | ; return 0; } | |
8715 | EOF | |
d607e6c3 | 8716 | if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8717 | rm -rf conftest* |
8718 | eval "ac_cv_func__doprnt=yes" | |
8719 | else | |
8720 | echo "configure: failed program was:" >&5 | |
8721 | cat conftest.$ac_ext >&5 | |
8722 | rm -rf conftest* | |
8723 | eval "ac_cv_func__doprnt=no" | |
8724 | fi | |
8725 | rm -f conftest* | |
8726 | fi | |
8727 | ||
8728 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
8729 | echo "$ac_t""yes" 1>&6 | |
8730 | cat >> confdefs.h <<\EOF | |
8731 | #define HAVE_DOPRNT 1 | |
8732 | EOF | |
8733 | ||
8734 | else | |
8735 | echo "$ac_t""no" 1>&6 | |
8736 | fi | |
8737 | ||
8738 | fi | |
8739 | ||
8740 | ||
8741 | for ac_func in vsnprintf | |
8742 | do | |
8743 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 8744 | echo "configure:8745: checking for $ac_func" >&5 |
a16d3c04 KB |
8745 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8747 | else | |
8748 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8749 | #line 8750 "configure" |
a16d3c04 KB |
8750 | #include "confdefs.h" |
8751 | /* System header to define __stub macros and hopefully few prototypes, | |
8752 | which can conflict with char $ac_func(); below. */ | |
8753 | #include <assert.h> | |
8754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8755 | /* We use char because int might match the return type of a gcc2 | |
8756 | builtin and then its argument prototype would still apply. */ | |
8757 | char $ac_func(); | |
8758 | ||
8759 | int main() { | |
8760 | ||
8761 | /* The GNU C library defines this for functions which it implements | |
8762 | to always fail with ENOSYS. Some functions are actually named | |
8763 | something starting with __ and the normal name is an alias. */ | |
8764 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8765 | choke me | |
8766 | #else | |
2726c66d | 8767 | $ac_func(); |
a16d3c04 KB |
8768 | #endif |
8769 | ||
8770 | ; return 0; } | |
8771 | EOF | |
d607e6c3 | 8772 | if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8773 | rm -rf conftest* |
8774 | eval "ac_cv_func_$ac_func=yes" | |
8775 | else | |
8776 | echo "configure: failed program was:" >&5 | |
8777 | cat conftest.$ac_ext >&5 | |
8778 | rm -rf conftest* | |
8779 | eval "ac_cv_func_$ac_func=no" | |
8780 | fi | |
8781 | rm -f conftest* | |
8782 | fi | |
8783 | ||
8784 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8785 | echo "$ac_t""yes" 1>&6 | |
8786 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8787 | cat >> confdefs.h <<EOF | |
8788 | #define $ac_tr_func 1 | |
8789 | EOF | |
8790 | cat >> confdefs.h <<\EOF | |
8791 | #define HAVE_VSNPRINTF 1 | |
8792 | EOF | |
8793 | ||
8794 | else | |
8795 | echo "$ac_t""no" 1>&6 | |
8796 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
8797 | ||
8798 | fi | |
8799 | done | |
8800 | ||
8801 | ||
8802 | ||
8803 | ac_ext=C | |
8804 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8805 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8806 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8807 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8808 | cross_compiling=$ac_cv_prog_cxx_cross |
8809 | ||
8810 | ||
8811 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
d607e6c3 | 8812 | echo "configure:8813: checking for vsscanf" >&5 |
a16d3c04 KB |
8813 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
8814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8815 | else | |
8816 | ||
8817 | if test "$cross_compiling" = yes; then | |
8818 | wx_cv_func_vsscanf=no | |
8819 | ||
8820 | else | |
8821 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8822 | #line 8823 "configure" |
a16d3c04 KB |
8823 | #include "confdefs.h" |
8824 | #ifdef __cplusplus | |
8825 | extern "C" void exit(int); | |
8826 | #endif | |
8827 | ||
8828 | #include <stdio.h> | |
8829 | #include <stdarg.h> | |
8830 | ||
8831 | int try_vsscanf(const char *format, ...) | |
8832 | { | |
8833 | va_list ap; | |
8834 | va_start(ap, format); | |
8835 | ||
8836 | vsscanf("17", format, ap); | |
8837 | ||
8838 | va_end(ap); | |
8839 | } | |
8840 | ||
8841 | int main() | |
8842 | { | |
8843 | int i; | |
8844 | try_vsscanf("%d", &i); | |
8845 | return i == 17 ? 0 : 1; | |
8846 | } | |
8847 | ||
8848 | EOF | |
d607e6c3 | 8849 | if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a16d3c04 KB |
8850 | then |
8851 | ||
8852 | cat >> confdefs.h <<\EOF | |
8853 | #define HAVE_VSSCANF 1 | |
8854 | EOF | |
8855 | ||
8856 | wx_cv_func_vsscanf=yes | |
8857 | ||
8858 | else | |
8859 | echo "configure: failed program was:" >&5 | |
8860 | cat conftest.$ac_ext >&5 | |
8861 | rm -fr conftest* | |
8862 | wx_cv_func_vsscanf=no | |
8863 | fi | |
8864 | rm -fr conftest* | |
8865 | fi | |
8866 | ||
8867 | ||
8868 | fi | |
8869 | ||
8870 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
8871 | ||
8872 | ac_ext=c | |
8873 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8874 | ac_cpp='$CPP $CPPFLAGS' | |
8875 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 8876 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
8877 | cross_compiling=$ac_cv_prog_cc_cross |
8878 | ||
8879 | ||
a0c79abb VZ |
8880 | if test "$USE_UNIX" = 1; then |
8881 | ||
a16d3c04 KB |
8882 | for ac_func in vfork |
8883 | do | |
8884 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 8885 | echo "configure:8886: checking for $ac_func" >&5 |
a16d3c04 KB |
8886 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8888 | else | |
8889 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8890 | #line 8891 "configure" |
a16d3c04 KB |
8891 | #include "confdefs.h" |
8892 | /* System header to define __stub macros and hopefully few prototypes, | |
8893 | which can conflict with char $ac_func(); below. */ | |
8894 | #include <assert.h> | |
8895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8896 | /* We use char because int might match the return type of a gcc2 | |
8897 | builtin and then its argument prototype would still apply. */ | |
8898 | char $ac_func(); | |
8899 | ||
8900 | int main() { | |
8901 | ||
8902 | /* The GNU C library defines this for functions which it implements | |
8903 | to always fail with ENOSYS. Some functions are actually named | |
8904 | something starting with __ and the normal name is an alias. */ | |
8905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8906 | choke me | |
8907 | #else | |
2726c66d | 8908 | $ac_func(); |
a16d3c04 KB |
8909 | #endif |
8910 | ||
8911 | ; return 0; } | |
8912 | EOF | |
d607e6c3 | 8913 | if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8914 | rm -rf conftest* |
8915 | eval "ac_cv_func_$ac_func=yes" | |
8916 | else | |
8917 | echo "configure: failed program was:" >&5 | |
8918 | cat conftest.$ac_ext >&5 | |
8919 | rm -rf conftest* | |
8920 | eval "ac_cv_func_$ac_func=no" | |
8921 | fi | |
8922 | rm -f conftest* | |
8923 | fi | |
8924 | ||
8925 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8926 | echo "$ac_t""yes" 1>&6 | |
8927 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8928 | cat >> confdefs.h <<EOF | |
8929 | #define $ac_tr_func 1 | |
8930 | EOF | |
8931 | ||
8932 | else | |
8933 | echo "$ac_t""no" 1>&6 | |
8934 | fi | |
8935 | done | |
8936 | ||
8937 | ||
8938 | POSIX4_LINK= | |
8939 | for ac_func in nanosleep | |
8940 | do | |
8941 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 8942 | echo "configure:8943: checking for $ac_func" >&5 |
a16d3c04 KB |
8943 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8945 | else | |
8946 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 8947 | #line 8948 "configure" |
a16d3c04 KB |
8948 | #include "confdefs.h" |
8949 | /* System header to define __stub macros and hopefully few prototypes, | |
8950 | which can conflict with char $ac_func(); below. */ | |
8951 | #include <assert.h> | |
8952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8953 | /* We use char because int might match the return type of a gcc2 | |
8954 | builtin and then its argument prototype would still apply. */ | |
8955 | char $ac_func(); | |
8956 | ||
8957 | int main() { | |
8958 | ||
8959 | /* The GNU C library defines this for functions which it implements | |
8960 | to always fail with ENOSYS. Some functions are actually named | |
8961 | something starting with __ and the normal name is an alias. */ | |
8962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8963 | choke me | |
8964 | #else | |
2726c66d | 8965 | $ac_func(); |
a16d3c04 KB |
8966 | #endif |
8967 | ||
8968 | ; return 0; } | |
8969 | EOF | |
d607e6c3 | 8970 | if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
8971 | rm -rf conftest* |
8972 | eval "ac_cv_func_$ac_func=yes" | |
8973 | else | |
8974 | echo "configure: failed program was:" >&5 | |
8975 | cat conftest.$ac_ext >&5 | |
8976 | rm -rf conftest* | |
8977 | eval "ac_cv_func_$ac_func=no" | |
8978 | fi | |
8979 | rm -f conftest* | |
8980 | fi | |
8981 | ||
8982 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8983 | echo "$ac_t""yes" 1>&6 | |
8984 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8985 | cat >> confdefs.h <<EOF | |
8986 | #define $ac_tr_func 1 | |
8987 | EOF | |
8988 | cat >> confdefs.h <<\EOF | |
8989 | #define HAVE_NANOSLEEP 1 | |
8990 | EOF | |
8991 | ||
8992 | else | |
8993 | echo "$ac_t""no" 1>&6 | |
8994 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
d607e6c3 | 8995 | echo "configure:8996: checking for nanosleep in -lposix4" >&5 |
a16d3c04 KB |
8996 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
8997 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8999 | else | |
9000 | ac_save_LIBS="$LIBS" | |
9001 | LIBS="-lposix4 $LIBS" | |
9002 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9003 | #line 9004 "configure" |
a16d3c04 KB |
9004 | #include "confdefs.h" |
9005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9006 | /* We use char because int might match the return type of a gcc2 | |
9007 | builtin and then its argument prototype would still apply. */ | |
9008 | char nanosleep(); | |
9009 | ||
9010 | int main() { | |
9011 | nanosleep() | |
9012 | ; return 0; } | |
9013 | EOF | |
d607e6c3 | 9014 | if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9015 | rm -rf conftest* |
9016 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9017 | else | |
9018 | echo "configure: failed program was:" >&5 | |
9019 | cat conftest.$ac_ext >&5 | |
9020 | rm -rf conftest* | |
9021 | eval "ac_cv_lib_$ac_lib_var=no" | |
9022 | fi | |
9023 | rm -f conftest* | |
9024 | LIBS="$ac_save_LIBS" | |
9025 | ||
9026 | fi | |
9027 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9028 | echo "$ac_t""yes" 1>&6 | |
9029 | ||
9030 | cat >> confdefs.h <<\EOF | |
9031 | #define HAVE_NANOSLEEP 1 | |
9032 | EOF | |
9033 | ||
9034 | POSIX4_LINK="-lposix4" | |
9035 | ||
9036 | else | |
9037 | echo "$ac_t""no" 1>&6 | |
9038 | ||
9039 | for ac_func in usleep | |
9040 | do | |
9041 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 9042 | echo "configure:9043: checking for $ac_func" >&5 |
a16d3c04 KB |
9043 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9045 | else | |
9046 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9047 | #line 9048 "configure" |
a16d3c04 KB |
9048 | #include "confdefs.h" |
9049 | /* System header to define __stub macros and hopefully few prototypes, | |
9050 | which can conflict with char $ac_func(); below. */ | |
9051 | #include <assert.h> | |
9052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9053 | /* We use char because int might match the return type of a gcc2 | |
9054 | builtin and then its argument prototype would still apply. */ | |
9055 | char $ac_func(); | |
9056 | ||
9057 | int main() { | |
9058 | ||
9059 | /* The GNU C library defines this for functions which it implements | |
9060 | to always fail with ENOSYS. Some functions are actually named | |
9061 | something starting with __ and the normal name is an alias. */ | |
9062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9063 | choke me | |
9064 | #else | |
2726c66d | 9065 | $ac_func(); |
a16d3c04 KB |
9066 | #endif |
9067 | ||
9068 | ; return 0; } | |
9069 | EOF | |
d607e6c3 | 9070 | if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9071 | rm -rf conftest* |
9072 | eval "ac_cv_func_$ac_func=yes" | |
9073 | else | |
9074 | echo "configure: failed program was:" >&5 | |
9075 | cat conftest.$ac_ext >&5 | |
9076 | rm -rf conftest* | |
9077 | eval "ac_cv_func_$ac_func=no" | |
9078 | fi | |
9079 | rm -f conftest* | |
9080 | fi | |
9081 | ||
9082 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9083 | echo "$ac_t""yes" 1>&6 | |
9084 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9085 | cat >> confdefs.h <<EOF | |
9086 | #define $ac_tr_func 1 | |
9087 | EOF | |
9088 | cat >> confdefs.h <<\EOF | |
9089 | #define HAVE_USLEEP 1 | |
9090 | EOF | |
9091 | ||
9092 | else | |
9093 | echo "$ac_t""no" 1>&6 | |
9094 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
9095 | fi | |
9096 | done | |
9097 | ||
9098 | ||
9099 | fi | |
9100 | ||
9101 | ||
9102 | fi | |
9103 | done | |
9104 | ||
9105 | ||
9106 | for ac_func in uname gethostname | |
9107 | do | |
9108 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 9109 | echo "configure:9110: checking for $ac_func" >&5 |
a16d3c04 KB |
9110 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9112 | else | |
9113 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9114 | #line 9115 "configure" |
a16d3c04 KB |
9115 | #include "confdefs.h" |
9116 | /* System header to define __stub macros and hopefully few prototypes, | |
9117 | which can conflict with char $ac_func(); below. */ | |
9118 | #include <assert.h> | |
9119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9120 | /* We use char because int might match the return type of a gcc2 | |
9121 | builtin and then its argument prototype would still apply. */ | |
9122 | char $ac_func(); | |
9123 | ||
9124 | int main() { | |
9125 | ||
9126 | /* The GNU C library defines this for functions which it implements | |
9127 | to always fail with ENOSYS. Some functions are actually named | |
9128 | something starting with __ and the normal name is an alias. */ | |
9129 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9130 | choke me | |
9131 | #else | |
2726c66d | 9132 | $ac_func(); |
a16d3c04 KB |
9133 | #endif |
9134 | ||
9135 | ; return 0; } | |
9136 | EOF | |
d607e6c3 | 9137 | if { (eval echo configure:9138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9138 | rm -rf conftest* |
9139 | eval "ac_cv_func_$ac_func=yes" | |
9140 | else | |
9141 | echo "configure: failed program was:" >&5 | |
9142 | cat conftest.$ac_ext >&5 | |
9143 | rm -rf conftest* | |
9144 | eval "ac_cv_func_$ac_func=no" | |
9145 | fi | |
9146 | rm -f conftest* | |
9147 | fi | |
9148 | ||
9149 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9150 | echo "$ac_t""yes" 1>&6 | |
9151 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9152 | cat >> confdefs.h <<EOF | |
9153 | #define $ac_tr_func 1 | |
9154 | EOF | |
9155 | break | |
9156 | else | |
9157 | echo "$ac_t""no" 1>&6 | |
9158 | fi | |
9159 | done | |
9160 | ||
9161 | ||
f7a11f8c RR |
9162 | for ac_func in strtok_r |
9163 | do | |
9164 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 9165 | echo "configure:9166: checking for $ac_func" >&5 |
f7a11f8c RR |
9166 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9168 | else | |
9169 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9170 | #line 9171 "configure" |
f7a11f8c RR |
9171 | #include "confdefs.h" |
9172 | /* System header to define __stub macros and hopefully few prototypes, | |
9173 | which can conflict with char $ac_func(); below. */ | |
9174 | #include <assert.h> | |
9175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9176 | /* We use char because int might match the return type of a gcc2 | |
9177 | builtin and then its argument prototype would still apply. */ | |
9178 | char $ac_func(); | |
f7a11f8c RR |
9179 | |
9180 | int main() { | |
9181 | ||
9182 | /* The GNU C library defines this for functions which it implements | |
9183 | to always fail with ENOSYS. Some functions are actually named | |
9184 | something starting with __ and the normal name is an alias. */ | |
9185 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9186 | choke me | |
9187 | #else | |
2726c66d | 9188 | $ac_func(); |
f7a11f8c RR |
9189 | #endif |
9190 | ||
9191 | ; return 0; } | |
9192 | EOF | |
d607e6c3 | 9193 | if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f7a11f8c RR |
9194 | rm -rf conftest* |
9195 | eval "ac_cv_func_$ac_func=yes" | |
9196 | else | |
9197 | echo "configure: failed program was:" >&5 | |
9198 | cat conftest.$ac_ext >&5 | |
9199 | rm -rf conftest* | |
9200 | eval "ac_cv_func_$ac_func=no" | |
9201 | fi | |
9202 | rm -f conftest* | |
9203 | fi | |
9204 | ||
9205 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9206 | echo "$ac_t""yes" 1>&6 | |
9207 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9208 | cat >> confdefs.h <<EOF | |
9209 | #define $ac_tr_func 1 | |
9210 | EOF | |
9211 | ||
9212 | else | |
9213 | echo "$ac_t""no" 1>&6 | |
9214 | fi | |
9215 | done | |
9216 | ||
9217 | ||
a16d3c04 KB |
9218 | for ac_func in inet_addr |
9219 | do | |
9220 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 9221 | echo "configure:9222: checking for $ac_func" >&5 |
a16d3c04 KB |
9222 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9224 | else | |
9225 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9226 | #line 9227 "configure" |
a16d3c04 KB |
9227 | #include "confdefs.h" |
9228 | /* System header to define __stub macros and hopefully few prototypes, | |
9229 | which can conflict with char $ac_func(); below. */ | |
9230 | #include <assert.h> | |
9231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9232 | /* We use char because int might match the return type of a gcc2 | |
9233 | builtin and then its argument prototype would still apply. */ | |
9234 | char $ac_func(); | |
9235 | ||
9236 | int main() { | |
9237 | ||
9238 | /* The GNU C library defines this for functions which it implements | |
9239 | to always fail with ENOSYS. Some functions are actually named | |
9240 | something starting with __ and the normal name is an alias. */ | |
9241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9242 | choke me | |
9243 | #else | |
2726c66d | 9244 | $ac_func(); |
a16d3c04 KB |
9245 | #endif |
9246 | ||
9247 | ; return 0; } | |
9248 | EOF | |
d607e6c3 | 9249 | if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9250 | rm -rf conftest* |
9251 | eval "ac_cv_func_$ac_func=yes" | |
9252 | else | |
9253 | echo "configure: failed program was:" >&5 | |
9254 | cat conftest.$ac_ext >&5 | |
9255 | rm -rf conftest* | |
9256 | eval "ac_cv_func_$ac_func=no" | |
9257 | fi | |
9258 | rm -f conftest* | |
9259 | fi | |
9260 | ||
9261 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9262 | echo "$ac_t""yes" 1>&6 | |
9263 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9264 | cat >> confdefs.h <<EOF | |
9265 | #define $ac_tr_func 1 | |
9266 | EOF | |
9267 | ||
9268 | else | |
9269 | echo "$ac_t""no" 1>&6 | |
9270 | fi | |
9271 | done | |
9272 | ||
9273 | for ac_func in inet_aton | |
9274 | do | |
9275 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 9276 | echo "configure:9277: checking for $ac_func" >&5 |
a16d3c04 KB |
9277 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9279 | else | |
9280 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9281 | #line 9282 "configure" |
a16d3c04 KB |
9282 | #include "confdefs.h" |
9283 | /* System header to define __stub macros and hopefully few prototypes, | |
9284 | which can conflict with char $ac_func(); below. */ | |
9285 | #include <assert.h> | |
9286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9287 | /* We use char because int might match the return type of a gcc2 | |
9288 | builtin and then its argument prototype would still apply. */ | |
9289 | char $ac_func(); | |
9290 | ||
9291 | int main() { | |
9292 | ||
9293 | /* The GNU C library defines this for functions which it implements | |
9294 | to always fail with ENOSYS. Some functions are actually named | |
9295 | something starting with __ and the normal name is an alias. */ | |
9296 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9297 | choke me | |
9298 | #else | |
2726c66d | 9299 | $ac_func(); |
a16d3c04 KB |
9300 | #endif |
9301 | ||
9302 | ; return 0; } | |
9303 | EOF | |
d607e6c3 | 9304 | if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9305 | rm -rf conftest* |
9306 | eval "ac_cv_func_$ac_func=yes" | |
9307 | else | |
9308 | echo "configure: failed program was:" >&5 | |
9309 | cat conftest.$ac_ext >&5 | |
9310 | rm -rf conftest* | |
9311 | eval "ac_cv_func_$ac_func=no" | |
9312 | fi | |
9313 | rm -f conftest* | |
9314 | fi | |
9315 | ||
9316 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9317 | echo "$ac_t""yes" 1>&6 | |
9318 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9319 | cat >> confdefs.h <<EOF | |
9320 | #define $ac_tr_func 1 | |
9321 | EOF | |
9322 | ||
9323 | else | |
9324 | echo "$ac_t""no" 1>&6 | |
9325 | fi | |
9326 | done | |
9327 | ||
9328 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 | |
d607e6c3 | 9329 | echo "configure:9330: checking for inet_aton in -lresolv" >&5 |
a16d3c04 KB |
9330 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
9331 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9333 | else | |
9334 | ac_save_LIBS="$LIBS" | |
9335 | LIBS="-lresolv $LIBS" | |
9336 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9337 | #line 9338 "configure" |
a16d3c04 KB |
9338 | #include "confdefs.h" |
9339 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9340 | /* We use char because int might match the return type of a gcc2 | |
9341 | builtin and then its argument prototype would still apply. */ | |
9342 | char inet_aton(); | |
9343 | ||
9344 | int main() { | |
9345 | inet_aton() | |
9346 | ; return 0; } | |
9347 | EOF | |
d607e6c3 | 9348 | if { (eval echo configure:9349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9349 | rm -rf conftest* |
9350 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9351 | else | |
9352 | echo "configure: failed program was:" >&5 | |
9353 | cat conftest.$ac_ext >&5 | |
9354 | rm -rf conftest* | |
9355 | eval "ac_cv_lib_$ac_lib_var=no" | |
9356 | fi | |
9357 | rm -f conftest* | |
9358 | LIBS="$ac_save_LIBS" | |
9359 | ||
9360 | fi | |
9361 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9362 | echo "$ac_t""yes" 1>&6 | |
9363 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
9364 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
9365 | cat >> confdefs.h <<EOF | |
9366 | #define $ac_tr_lib 1 | |
9367 | EOF | |
9368 | ||
9369 | LIBS="-lresolv $LIBS" | |
9370 | ||
9371 | else | |
9372 | echo "$ac_t""no" 1>&6 | |
9373 | fi | |
9374 | ||
9375 | ||
a0c79abb VZ |
9376 | fi |
9377 | ||
a16d3c04 KB |
9378 | |
9379 | cat > confcache <<\EOF | |
9380 | # This file is a shell script that caches the results of configure | |
9381 | # tests run on this system so they can be shared between configure | |
9382 | # scripts and configure runs. It is not useful on other systems. | |
9383 | # If it contains results you don't want to keep, you may remove or edit it. | |
9384 | # | |
9385 | # By default, configure uses ./config.cache as the cache file, | |
9386 | # creating it if it does not exist already. You can give configure | |
9387 | # the --cache-file=FILE option to use a different cache file; that is | |
9388 | # what configure does when it calls configure scripts in | |
9389 | # subdirectories, so they share the cache. | |
9390 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9391 | # config.status only pays attention to the cache file if you give it the | |
9392 | # --recheck option to rerun configure. | |
9393 | # | |
9394 | EOF | |
9395 | # The following way of writing the cache mishandles newlines in values, | |
9396 | # but we know of no workaround that is simple, portable, and efficient. | |
9397 | # So, don't put newlines in cache variables' values. | |
9398 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9399 | # and sets the high bit in the cache file unless we assign to the vars. | |
9400 | (set) 2>&1 | | |
0709ee62 | 9401 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
9402 | *ac_space=\ *) |
9403 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9404 | # turns \\\\ into \\, and sed turns \\ into \). | |
9405 | sed -n \ | |
9406 | -e "s/'/'\\\\''/g" \ | |
9407 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9408 | ;; | |
9409 | *) | |
9410 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9411 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9412 | ;; | |
9413 | esac >> confcache | |
9414 | if cmp -s $cache_file confcache; then | |
9415 | : | |
9416 | else | |
9417 | if test -w $cache_file; then | |
9418 | echo "updating cache $cache_file" | |
9419 | cat confcache > $cache_file | |
9420 | else | |
9421 | echo "not updating unwritable cache $cache_file" | |
9422 | fi | |
9423 | fi | |
9424 | rm -f confcache | |
9425 | ||
9426 | ||
9427 | ||
9428 | if test "$USE_UNIX" = 1; then | |
9429 | ||
9430 | ||
9431 | THREADS_LINK="" | |
9432 | THREADS_OBJ="" | |
9433 | ||
9434 | if test "$wxUSE_THREADS" = "yes" ; then | |
9435 | if test "$wxUSE_WINE" = 1 ; then | |
9436 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
9437 | wxUSE_THREADS="no" | |
9438 | fi | |
9439 | fi | |
9440 | ||
9441 | if test "$wxUSE_THREADS" = "yes" ; then | |
1c8515f9 | 9442 | |
a16d3c04 | 9443 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
d607e6c3 | 9444 | echo "configure:9445: checking for pthread_create in -lpthread" >&5 |
a16d3c04 KB |
9445 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
9446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9448 | else | |
9449 | ac_save_LIBS="$LIBS" | |
9450 | LIBS="-lpthread $LIBS" | |
9451 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9452 | #line 9453 "configure" |
a16d3c04 KB |
9453 | #include "confdefs.h" |
9454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9455 | /* We use char because int might match the return type of a gcc2 | |
9456 | builtin and then its argument prototype would still apply. */ | |
9457 | char pthread_create(); | |
9458 | ||
9459 | int main() { | |
9460 | pthread_create() | |
9461 | ; return 0; } | |
9462 | EOF | |
d607e6c3 | 9463 | if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9464 | rm -rf conftest* |
9465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9466 | else | |
9467 | echo "configure: failed program was:" >&5 | |
9468 | cat conftest.$ac_ext >&5 | |
9469 | rm -rf conftest* | |
9470 | eval "ac_cv_lib_$ac_lib_var=no" | |
9471 | fi | |
9472 | rm -f conftest* | |
9473 | LIBS="$ac_save_LIBS" | |
9474 | ||
9475 | fi | |
9476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9477 | echo "$ac_t""yes" 1>&6 | |
9478 | ||
9479 | THREADS_OBJ="threadpsx.lo" | |
9480 | THREADS_LINK="pthread" | |
9481 | ||
9482 | else | |
9483 | echo "$ac_t""no" 1>&6 | |
9484 | ||
9485 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
d607e6c3 | 9486 | echo "configure:9487: checking for pthread_create in -lc_r" >&5 |
a16d3c04 KB |
9487 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
9488 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9490 | else | |
9491 | ac_save_LIBS="$LIBS" | |
9492 | LIBS="-lc_r $LIBS" | |
9493 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9494 | #line 9495 "configure" |
a16d3c04 KB |
9495 | #include "confdefs.h" |
9496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9497 | /* We use char because int might match the return type of a gcc2 | |
9498 | builtin and then its argument prototype would still apply. */ | |
9499 | char pthread_create(); | |
9500 | ||
9501 | int main() { | |
9502 | pthread_create() | |
9503 | ; return 0; } | |
9504 | EOF | |
d607e6c3 | 9505 | if { (eval echo configure:9506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9506 | rm -rf conftest* |
9507 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9508 | else | |
9509 | echo "configure: failed program was:" >&5 | |
9510 | cat conftest.$ac_ext >&5 | |
9511 | rm -rf conftest* | |
9512 | eval "ac_cv_lib_$ac_lib_var=no" | |
9513 | fi | |
9514 | rm -f conftest* | |
9515 | LIBS="$ac_save_LIBS" | |
9516 | ||
9517 | fi | |
9518 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9519 | echo "$ac_t""yes" 1>&6 | |
9520 | ||
9521 | THREADS_OBJ="threadpsx.lo" | |
9522 | THREADS_LINK="c_r" | |
9523 | ||
9524 | else | |
9525 | echo "$ac_t""no" 1>&6 | |
9526 | ||
9527 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
9528 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d607e6c3 | 9529 | echo "configure:9530: checking for sys/prctl.h" >&5 |
a16d3c04 KB |
9530 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9532 | else | |
9533 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9534 | #line 9535 "configure" |
a16d3c04 KB |
9535 | #include "confdefs.h" |
9536 | #include <sys/prctl.h> | |
9537 | EOF | |
9538 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 9539 | { (eval echo configure:9540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 9540 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
9541 | if test -z "$ac_err"; then |
9542 | rm -rf conftest* | |
9543 | eval "ac_cv_header_$ac_safe=yes" | |
9544 | else | |
9545 | echo "$ac_err" >&5 | |
9546 | echo "configure: failed program was:" >&5 | |
9547 | cat conftest.$ac_ext >&5 | |
9548 | rm -rf conftest* | |
9549 | eval "ac_cv_header_$ac_safe=no" | |
9550 | fi | |
9551 | rm -f conftest* | |
9552 | fi | |
9553 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9554 | echo "$ac_t""yes" 1>&6 | |
9555 | ||
9556 | THREADS_OBJ="threadsgi.lo" | |
9557 | ||
9558 | else | |
9559 | echo "$ac_t""no" 1>&6 | |
9560 | fi | |
9561 | ||
9562 | ||
9563 | fi | |
9564 | ||
9565 | ||
9566 | fi | |
9567 | ||
9568 | ||
9569 | if test -z "$THREADS_OBJ" ; then | |
9570 | wxUSE_THREADS=no | |
9571 | echo "configure: warning: No thread support on this system" 1>&2 | |
9572 | fi | |
9573 | fi | |
9574 | ||
9575 | if test "$wxUSE_THREADS" = "yes" ; then | |
9576 | ||
9577 | for ac_hdr in sched.h | |
9578 | do | |
9579 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9580 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 9581 | echo "configure:9582: checking for $ac_hdr" >&5 |
a16d3c04 KB |
9582 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9584 | else | |
9585 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9586 | #line 9587 "configure" |
a16d3c04 KB |
9587 | #include "confdefs.h" |
9588 | #include <$ac_hdr> | |
9589 | EOF | |
9590 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 9591 | { (eval echo configure:9592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 9592 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
9593 | if test -z "$ac_err"; then |
9594 | rm -rf conftest* | |
9595 | eval "ac_cv_header_$ac_safe=yes" | |
9596 | else | |
9597 | echo "$ac_err" >&5 | |
9598 | echo "configure: failed program was:" >&5 | |
9599 | cat conftest.$ac_ext >&5 | |
9600 | rm -rf conftest* | |
9601 | eval "ac_cv_header_$ac_safe=no" | |
9602 | fi | |
9603 | rm -f conftest* | |
9604 | fi | |
9605 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9606 | echo "$ac_t""yes" 1>&6 | |
9607 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9608 | cat >> confdefs.h <<EOF | |
9609 | #define $ac_tr_hdr 1 | |
9610 | EOF | |
9611 | ||
9612 | else | |
9613 | echo "$ac_t""no" 1>&6 | |
9614 | fi | |
9615 | done | |
9616 | ||
9617 | ||
9618 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d607e6c3 | 9619 | echo "configure:9620: checking for sched_yield in -l$THREADS_LINK" >&5 |
a16d3c04 KB |
9620 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
9621 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9623 | else | |
9624 | ac_save_LIBS="$LIBS" | |
9625 | LIBS="-l$THREADS_LINK $LIBS" | |
9626 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9627 | #line 9628 "configure" |
a16d3c04 KB |
9628 | #include "confdefs.h" |
9629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9630 | /* We use char because int might match the return type of a gcc2 | |
9631 | builtin and then its argument prototype would still apply. */ | |
9632 | char sched_yield(); | |
9633 | ||
9634 | int main() { | |
9635 | sched_yield() | |
9636 | ; return 0; } | |
9637 | EOF | |
d607e6c3 | 9638 | if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9639 | rm -rf conftest* |
9640 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9641 | else | |
9642 | echo "configure: failed program was:" >&5 | |
9643 | cat conftest.$ac_ext >&5 | |
9644 | rm -rf conftest* | |
9645 | eval "ac_cv_lib_$ac_lib_var=no" | |
9646 | fi | |
9647 | rm -f conftest* | |
9648 | LIBS="$ac_save_LIBS" | |
9649 | ||
9650 | fi | |
9651 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9652 | echo "$ac_t""yes" 1>&6 | |
9653 | cat >> confdefs.h <<\EOF | |
9654 | #define HAVE_SCHED_YIELD 1 | |
9655 | EOF | |
9656 | ||
9657 | else | |
9658 | echo "$ac_t""no" 1>&6 | |
9659 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
d607e6c3 | 9660 | echo "configure:9661: checking for sched_yield in -l"posix4"" >&5 |
a16d3c04 KB |
9661 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
9662 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9664 | else | |
9665 | ac_save_LIBS="$LIBS" | |
9666 | LIBS="-l"posix4" $LIBS" | |
9667 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9668 | #line 9669 "configure" |
a16d3c04 KB |
9669 | #include "confdefs.h" |
9670 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9671 | /* We use char because int might match the return type of a gcc2 | |
9672 | builtin and then its argument prototype would still apply. */ | |
9673 | char sched_yield(); | |
9674 | ||
9675 | int main() { | |
9676 | sched_yield() | |
9677 | ; return 0; } | |
9678 | EOF | |
d607e6c3 | 9679 | if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9680 | rm -rf conftest* |
9681 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9682 | else | |
9683 | echo "configure: failed program was:" >&5 | |
9684 | cat conftest.$ac_ext >&5 | |
9685 | rm -rf conftest* | |
9686 | eval "ac_cv_lib_$ac_lib_var=no" | |
9687 | fi | |
9688 | rm -f conftest* | |
9689 | LIBS="$ac_save_LIBS" | |
9690 | ||
9691 | fi | |
9692 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9693 | echo "$ac_t""yes" 1>&6 | |
9694 | cat >> confdefs.h <<\EOF | |
9695 | #define HAVE_SCHED_YIELD 1 | |
9696 | EOF | |
9697 | POSIX4_LINK="-lposix4" | |
9698 | else | |
9699 | echo "$ac_t""no" 1>&6 | |
9700 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
9701 | ||
9702 | fi | |
9703 | ||
9704 | ||
9705 | fi | |
9706 | ||
9707 | ||
9708 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d607e6c3 | 9709 | echo "configure:9710: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
a16d3c04 KB |
9710 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
9711 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9713 | else | |
9714 | ac_save_LIBS="$LIBS" | |
9715 | LIBS="-l$THREADS_LINK $LIBS" | |
9716 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9717 | #line 9718 "configure" |
a16d3c04 KB |
9718 | #include "confdefs.h" |
9719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9720 | /* We use char because int might match the return type of a gcc2 | |
9721 | builtin and then its argument prototype would still apply. */ | |
9722 | char pthread_attr_getschedpolicy(); | |
9723 | ||
9724 | int main() { | |
9725 | pthread_attr_getschedpolicy() | |
9726 | ; return 0; } | |
9727 | EOF | |
d607e6c3 | 9728 | if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9729 | rm -rf conftest* |
9730 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9731 | else | |
9732 | echo "configure: failed program was:" >&5 | |
9733 | cat conftest.$ac_ext >&5 | |
9734 | rm -rf conftest* | |
9735 | eval "ac_cv_lib_$ac_lib_var=no" | |
9736 | fi | |
9737 | rm -f conftest* | |
9738 | LIBS="$ac_save_LIBS" | |
9739 | ||
9740 | fi | |
9741 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9742 | echo "$ac_t""yes" 1>&6 | |
9743 | cat >> confdefs.h <<\EOF | |
9744 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
9745 | EOF | |
9746 | ||
9747 | else | |
9748 | echo "$ac_t""no" 1>&6 | |
9749 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
d607e6c3 | 9750 | echo "configure:9751: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
a16d3c04 KB |
9751 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
9752 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9754 | else | |
9755 | ac_save_LIBS="$LIBS" | |
9756 | LIBS="-l"posix4" $LIBS" | |
9757 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9758 | #line 9759 "configure" |
a16d3c04 KB |
9759 | #include "confdefs.h" |
9760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9761 | /* We use char because int might match the return type of a gcc2 | |
9762 | builtin and then its argument prototype would still apply. */ | |
9763 | char pthread_attr_getschedpolicy(); | |
9764 | ||
9765 | int main() { | |
9766 | pthread_attr_getschedpolicy() | |
9767 | ; return 0; } | |
9768 | EOF | |
d607e6c3 | 9769 | if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9770 | rm -rf conftest* |
9771 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9772 | else | |
9773 | echo "configure: failed program was:" >&5 | |
9774 | cat conftest.$ac_ext >&5 | |
9775 | rm -rf conftest* | |
9776 | eval "ac_cv_lib_$ac_lib_var=no" | |
9777 | fi | |
9778 | rm -f conftest* | |
9779 | LIBS="$ac_save_LIBS" | |
9780 | ||
9781 | fi | |
9782 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9783 | echo "$ac_t""yes" 1>&6 | |
9784 | cat >> confdefs.h <<\EOF | |
9785 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
9786 | EOF | |
9787 | POSIX4_LINK="-lposix4" | |
9788 | else | |
9789 | echo "$ac_t""no" 1>&6 | |
9790 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
9791 | ||
9792 | fi | |
9793 | ||
9794 | ||
9795 | fi | |
9796 | ||
9797 | ||
9798 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d607e6c3 | 9799 | echo "configure:9800: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
a16d3c04 KB |
9800 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
9801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9803 | else | |
9804 | ac_save_LIBS="$LIBS" | |
9805 | LIBS="-l$THREADS_LINK $LIBS" | |
9806 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9807 | #line 9808 "configure" |
a16d3c04 KB |
9808 | #include "confdefs.h" |
9809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9810 | /* We use char because int might match the return type of a gcc2 | |
9811 | builtin and then its argument prototype would still apply. */ | |
9812 | char pthread_cancel(); | |
9813 | ||
9814 | int main() { | |
9815 | pthread_cancel() | |
9816 | ; return 0; } | |
9817 | EOF | |
d607e6c3 | 9818 | if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
9819 | rm -rf conftest* |
9820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9821 | else | |
9822 | echo "configure: failed program was:" >&5 | |
9823 | cat conftest.$ac_ext >&5 | |
9824 | rm -rf conftest* | |
9825 | eval "ac_cv_lib_$ac_lib_var=no" | |
9826 | fi | |
9827 | rm -f conftest* | |
9828 | LIBS="$ac_save_LIBS" | |
9829 | ||
9830 | fi | |
9831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9832 | echo "$ac_t""yes" 1>&6 | |
9833 | cat >> confdefs.h <<\EOF | |
9834 | #define HAVE_PTHREAD_CANCEL 1 | |
9835 | EOF | |
9836 | ||
9837 | else | |
9838 | echo "$ac_t""no" 1>&6 | |
9839 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
9840 | fi | |
9841 | ||
9842 | ||
9843 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
d607e6c3 | 9844 | echo "configure:9845: checking for pthread_cleanup_push/pop" >&5 |
a16d3c04 KB |
9845 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
9846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9847 | else | |
9848 | ||
9849 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 9850 | #line 9851 "configure" |
a16d3c04 KB |
9851 | #include "confdefs.h" |
9852 | #include <pthread.h> | |
9853 | int main() { | |
9854 | ||
9855 | pthread_cleanup_push(NULL, NULL); | |
9856 | pthread_cleanup_pop(0); | |
9857 | ||
9858 | ; return 0; } | |
9859 | EOF | |
d607e6c3 | 9860 | if { (eval echo configure:9861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
9861 | rm -rf conftest* |
9862 | ||
9863 | wx_cv_func_pthread_cleanup_push=yes | |
9864 | cat >> confdefs.h <<\EOF | |
9865 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
9866 | EOF | |
9867 | ||
9868 | ||
9869 | else | |
9870 | echo "configure: failed program was:" >&5 | |
9871 | cat conftest.$ac_ext >&5 | |
9872 | rm -rf conftest* | |
9873 | ||
9874 | wx_cv_func_pthread_cleanup_push=no | |
9875 | ||
9876 | fi | |
9877 | rm -f conftest* | |
9878 | ||
9879 | fi | |
9880 | ||
9881 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
9882 | ||
9883 | THREADS_LINK="-l$THREADS_LINK" | |
9884 | fi | |
9885 | ||
9886 | fi | |
9887 | ||
9888 | if test "$wxUSE_THREADS" = "yes"; then | |
9889 | cat >> confdefs.h <<\EOF | |
9890 | #define wxUSE_THREADS 1 | |
9891 | EOF | |
9892 | ||
9893 | ||
9894 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
9895 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
9896 | ||
9897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
9898 | fi | |
9899 | ||
9900 | if test "$WXGTK12" = 1 ; then | |
9901 | cat >> confdefs.h <<EOF | |
9902 | #define __WXGTK12__ $WXGTK12 | |
9903 | EOF | |
9904 | ||
9905 | fi | |
9906 | ||
9907 | if test "$WXWINE" = 1 ; then | |
9908 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
9909 | fi | |
9910 | ||
9911 | if test "$wxUSE_CYGWIN" = 1 ; then | |
9912 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
9913 | fi | |
9914 | ||
9915 | WXDEBUG= | |
9916 | ||
9917 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
9918 | WXDEBUG="-g" | |
9919 | wxUSE_OPTIMISE=no | |
9920 | fi | |
9921 | ||
9922 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
9923 | wxUSE_DEBUG_INFO=yes | |
9924 | WXDEBUG="-ggdb" | |
9925 | fi | |
9926 | ||
9927 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
9928 | cat >> confdefs.h <<\EOF | |
9929 | #define WXDEBUG 1 | |
9930 | EOF | |
9931 | ||
9932 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
9933 | else | |
9934 | if test "$wxUSE_GTK" = 1 ; then | |
9935 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
9936 | fi | |
9937 | fi | |
9938 | ||
9939 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
9940 | cat >> confdefs.h <<\EOF | |
9941 | #define wxUSE_MEMORY_TRACING 1 | |
9942 | EOF | |
9943 | ||
9944 | cat >> confdefs.h <<\EOF | |
9945 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
9946 | EOF | |
9947 | ||
9948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
9949 | fi | |
9950 | ||
9951 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
9952 | DMALLOC_LINK="-ldmalloc" | |
9953 | fi | |
9954 | ||
9955 | PROFILE= | |
9956 | if test "$wxUSE_PROFILE" = "yes" ; then | |
9957 | PROFILE="-pg" | |
9958 | fi | |
9959 | ||
9960 | DEP_INFO_FLAGS= | |
9961 | if test "$GCC" = yes ; then | |
9962 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
f7a11f8c | 9963 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" |
a16d3c04 KB |
9964 | fi |
9965 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
f7a11f8c | 9966 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" |
a16d3c04 KB |
9967 | fi |
9968 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
9969 | CFLAGS="${CFLAGS} -fpermissive" | |
9970 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
9971 | fi | |
9972 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
9973 | DEP_INFO_FLAGS="-MMD" | |
9974 | fi | |
1c8515f9 KB |
9975 | fi |
9976 | ||
9977 | ||
a16d3c04 KB |
9978 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
9979 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
9980 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
9981 | OPTIMISE= | |
9982 | else | |
9983 | if test "$GCC" = yes ; then | |
9984 | OPTIMISE="-O2" | |
9985 | case "${host}" in | |
9986 | i586-*-*|i686-*-* ) | |
9987 | OPTIMISE="${OPTIMISE} " | |
9988 | ;; | |
9989 | esac | |
9990 | else | |
9991 | OPTIMISE="-O" | |
9992 | fi | |
9993 | fi | |
9994 | ||
9995 | ||
9996 | ZLIB_INCLUDE= | |
9997 | if test "$wxUSE_ZLIB" = "yes" ; then | |
9998 | cat >> confdefs.h <<\EOF | |
9999 | #define wxUSE_ZLIB 1 | |
10000 | EOF | |
10001 | ||
10002 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
10003 | fi | |
10004 | ||
10005 | PNG_INCLUDE= | |
10006 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10007 | cat >> confdefs.h <<\EOF | |
10008 | #define wxUSE_LIBPNG 1 | |
10009 | EOF | |
10010 | ||
10011 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
10012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
10013 | fi | |
10014 | ||
a16d3c04 KB |
10015 | JPEG_INCLUDE= |
10016 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
10017 | cat >> confdefs.h <<\EOF | |
10018 | #define wxUSE_LIBJPEG 1 | |
10019 | EOF | |
10020 | ||
10021 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10022 | fi | |
10023 | ||
10024 | if test "$wxUSE_OPENGL" = "yes"; then | |
10025 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10026 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
d607e6c3 | 10027 | echo "configure:10028: checking for GL/gl.h" >&5 |
a16d3c04 KB |
10028 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10030 | else | |
10031 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10032 | #line 10033 "configure" |
a16d3c04 KB |
10033 | #include "confdefs.h" |
10034 | #include <GL/gl.h> | |
10035 | EOF | |
10036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 10037 | { (eval echo configure:10038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 10038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
10039 | if test -z "$ac_err"; then |
10040 | rm -rf conftest* | |
10041 | eval "ac_cv_header_$ac_safe=yes" | |
10042 | else | |
10043 | echo "$ac_err" >&5 | |
10044 | echo "configure: failed program was:" >&5 | |
10045 | cat conftest.$ac_ext >&5 | |
10046 | rm -rf conftest* | |
10047 | eval "ac_cv_header_$ac_safe=no" | |
10048 | fi | |
10049 | rm -f conftest* | |
10050 | fi | |
10051 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10052 | echo "$ac_t""yes" 1>&6 | |
10053 | ||
10054 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
d607e6c3 | 10055 | echo "configure:10056: checking for glInitNames in -lGL" >&5 |
a16d3c04 KB |
10056 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
10057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10059 | else | |
10060 | ac_save_LIBS="$LIBS" | |
10061 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
10062 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10063 | #line 10064 "configure" |
a16d3c04 KB |
10064 | #include "confdefs.h" |
10065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10066 | /* We use char because int might match the return type of a gcc2 | |
10067 | builtin and then its argument prototype would still apply. */ | |
10068 | char glInitNames(); | |
10069 | ||
10070 | int main() { | |
10071 | glInitNames() | |
10072 | ; return 0; } | |
10073 | EOF | |
d607e6c3 | 10074 | if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10075 | rm -rf conftest* |
10076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10077 | else | |
10078 | echo "configure: failed program was:" >&5 | |
10079 | cat conftest.$ac_ext >&5 | |
10080 | rm -rf conftest* | |
10081 | eval "ac_cv_lib_$ac_lib_var=no" | |
10082 | fi | |
10083 | rm -f conftest* | |
10084 | LIBS="$ac_save_LIBS" | |
10085 | ||
10086 | fi | |
10087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10088 | echo "$ac_t""yes" 1>&6 | |
10089 | ||
10090 | OPENGL_LINK="-lGL" | |
10091 | cat >> confdefs.h <<\EOF | |
10092 | #define wxUSE_OPENGL 1 | |
10093 | EOF | |
10094 | ||
10095 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10096 | ||
10097 | else | |
10098 | echo "$ac_t""no" 1>&6 | |
10099 | ||
10100 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
d607e6c3 | 10101 | echo "configure:10102: checking for glInitNames in -lMesaGL" >&5 |
a16d3c04 KB |
10102 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
10103 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10105 | else | |
10106 | ac_save_LIBS="$LIBS" | |
10107 | LIBS="-lMesaGL $LIBS" | |
10108 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10109 | #line 10110 "configure" |
a16d3c04 KB |
10110 | #include "confdefs.h" |
10111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10112 | /* We use char because int might match the return type of a gcc2 | |
10113 | builtin and then its argument prototype would still apply. */ | |
10114 | char glInitNames(); | |
10115 | ||
10116 | int main() { | |
10117 | glInitNames() | |
10118 | ; return 0; } | |
10119 | EOF | |
d607e6c3 | 10120 | if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10121 | rm -rf conftest* |
10122 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10123 | else | |
10124 | echo "configure: failed program was:" >&5 | |
10125 | cat conftest.$ac_ext >&5 | |
10126 | rm -rf conftest* | |
10127 | eval "ac_cv_lib_$ac_lib_var=no" | |
10128 | fi | |
10129 | rm -f conftest* | |
10130 | LIBS="$ac_save_LIBS" | |
10131 | ||
10132 | fi | |
10133 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10134 | echo "$ac_t""yes" 1>&6 | |
10135 | ||
10136 | OPENGL_LINK="-lMesaGL" | |
10137 | cat >> confdefs.h <<\EOF | |
10138 | #define wxUSE_OPENGL 1 | |
10139 | EOF | |
10140 | ||
10141 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10142 | ||
10143 | else | |
10144 | echo "$ac_t""no" 1>&6 | |
10145 | wxUSE_OPENGL=0 | |
10146 | fi | |
10147 | ||
10148 | ||
10149 | fi | |
10150 | ||
10151 | ||
10152 | else | |
10153 | echo "$ac_t""no" 1>&6 | |
10154 | wxUSE_OPENGL=0 | |
10155 | fi | |
10156 | ||
10157 | fi | |
10158 | ||
10159 | ||
10160 | if test "$wxUSE_GUI" = "yes"; then | |
10161 | cat >> confdefs.h <<\EOF | |
10162 | #define wxUSE_GUI 1 | |
10163 | EOF | |
10164 | ||
10165 | ||
10166 | else | |
10167 | cat >> confdefs.h <<\EOF | |
10168 | #define wxUSE_NOGUI 1 | |
10169 | EOF | |
10170 | ||
10171 | fi | |
10172 | ||
10173 | ||
10174 | if test "$wxUSE_UNIX" = "yes"; then | |
10175 | cat >> confdefs.h <<\EOF | |
10176 | #define wxUSE_UNIX 1 | |
10177 | EOF | |
10178 | ||
10179 | fi | |
10180 | ||
10181 | ||
10182 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
10183 | cat >> confdefs.h <<\EOF | |
10184 | #define wxUSE_APPLE_IEEE 1 | |
10185 | EOF | |
10186 | ||
10187 | fi | |
10188 | ||
10189 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
10190 | cat >> confdefs.h <<\EOF | |
10191 | #define wxUSE_TIMEDATE 1 | |
10192 | EOF | |
10193 | ||
10194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
10195 | fi | |
10196 | ||
10197 | if test "$wxUSE_WAVE" = "yes"; then | |
10198 | cat >> confdefs.h <<\EOF | |
10199 | #define wxUSE_WAVE 1 | |
10200 | EOF | |
10201 | ||
10202 | fi | |
10203 | ||
10204 | if test "$wxUSE_FILE" = "yes"; then | |
10205 | cat >> confdefs.h <<\EOF | |
10206 | #define wxUSE_FILE 1 | |
10207 | EOF | |
10208 | ||
10209 | fi | |
10210 | ||
10211 | if test "$wxUSE_FS_INET" = "yes"; then | |
10212 | cat >> confdefs.h <<\EOF | |
10213 | #define wxUSE_FS_INET 1 | |
10214 | EOF | |
10215 | ||
10216 | fi | |
10217 | ||
10218 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
10219 | cat >> confdefs.h <<\EOF | |
10220 | #define wxUSE_FS_ZIP 1 | |
10221 | EOF | |
10222 | ||
10223 | fi | |
10224 | ||
10225 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
10226 | cat >> confdefs.h <<\EOF | |
10227 | #define wxUSE_ZIPSTREAM 1 | |
10228 | EOF | |
10229 | ||
10230 | fi | |
10231 | ||
10232 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
10233 | cat >> confdefs.h <<\EOF | |
10234 | #define wxUSE_BUSYINFO 1 | |
10235 | EOF | |
10236 | ||
10237 | fi | |
10238 | ||
10239 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
10240 | cat >> confdefs.h <<\EOF | |
10241 | #define wxUSE_STD_IOSTREAM 1 | |
10242 | EOF | |
10243 | ||
10244 | fi | |
10245 | ||
10246 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
10247 | if test "$wxUSE_FILE" != "yes"; then | |
10248 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
10249 | else | |
10250 | cat >> confdefs.h <<\EOF | |
10251 | #define wxUSE_TEXTFILE 1 | |
10252 | EOF | |
10253 | ||
10254 | fi | |
10255 | fi | |
10256 | ||
10257 | if test "$wxUSE_CONFIG" = "yes" ; then | |
10258 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
10259 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
10260 | else | |
10261 | cat >> confdefs.h <<\EOF | |
10262 | #define wxUSE_CONFIG 1 | |
10263 | EOF | |
10264 | ||
10265 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
10266 | fi | |
10267 | fi | |
10268 | ||
10269 | if test "$wxUSE_INTL" = "yes" ; then | |
10270 | if test "$wxUSE_FILE" != "yes"; then | |
10271 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
10272 | else | |
10273 | cat >> confdefs.h <<\EOF | |
10274 | #define wxUSE_INTL 1 | |
10275 | EOF | |
10276 | ||
10277 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
10278 | fi | |
10279 | fi | |
10280 | ||
10281 | if test "$wxUSE_LOG" = "yes"; then | |
10282 | cat >> confdefs.h <<\EOF | |
10283 | #define wxUSE_LOG 1 | |
10284 | EOF | |
10285 | ||
10286 | fi | |
10287 | ||
10288 | if test "$wxUSE_LONGLONG" = "yes"; then | |
10289 | cat >> confdefs.h <<\EOF | |
10290 | #define wxUSE_LONGLONG 1 | |
10291 | EOF | |
10292 | ||
10293 | fi | |
10294 | ||
10295 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
2726c66d | 10296 | cat >> confdefs.h <<\EOF |
a16d3c04 KB |
10297 | #define wxUSE_SOCKETS 1 |
10298 | EOF | |
10299 | ||
2726c66d KB |
10300 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" |
10301 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
a16d3c04 KB |
10302 | fi |
10303 | ||
1c8515f9 KB |
10304 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
10305 | cat >> confdefs.h <<\EOF | |
10306 | #define wxUSE_DIALUP_MANAGER 1 | |
10307 | EOF | |
10308 | ||
10309 | fi | |
10310 | ||
a16d3c04 KB |
10311 | if test "$wxUSE_STREAMS" = "yes" ; then |
10312 | cat >> confdefs.h <<\EOF | |
10313 | #define wxUSE_STREAMS 1 | |
10314 | EOF | |
10315 | ||
10316 | fi | |
10317 | ||
10318 | if test "$wxUSE_SERIAL" = "yes" ; then | |
10319 | cat >> confdefs.h <<\EOF | |
10320 | #define wxUSE_SERIAL 1 | |
10321 | EOF | |
10322 | ||
10323 | fi | |
10324 | ||
10325 | ||
10326 | if test "$wxUSE_SOCKETS" = "yes"; then | |
10327 | ||
10328 | ac_ext=C | |
10329 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10330 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10331 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 10332 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
10333 | cross_compiling=$ac_cv_prog_cxx_cross |
10334 | ||
10335 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
d607e6c3 | 10336 | echo "configure:10337: checking the type of the third argument of getsockname" >&5 |
a16d3c04 | 10337 | cat > conftest.$ac_ext <<EOF |
d607e6c3 | 10338 | #line 10339 "configure" |
a16d3c04 KB |
10339 | #include "confdefs.h" |
10340 | #include <sys/socket.h> | |
10341 | int main() { | |
9e92b089 | 10342 | socklen_t len; getsockname(0, 0, &len); |
a16d3c04 KB |
10343 | ; return 0; } |
10344 | EOF | |
d607e6c3 | 10345 | if { (eval echo configure:10346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
10346 | rm -rf conftest* |
10347 | cat >> confdefs.h <<\EOF | |
10348 | #define SOCKLEN_T socklen_t | |
10349 | EOF | |
10350 | echo "$ac_t""socklen_t" 1>&6 | |
10351 | else | |
10352 | echo "configure: failed program was:" >&5 | |
10353 | cat conftest.$ac_ext >&5 | |
10354 | rm -rf conftest* | |
10355 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10356 | #line 10357 "configure" |
a16d3c04 KB |
10357 | #include "confdefs.h" |
10358 | #include <sys/socket.h> | |
10359 | int main() { | |
9e92b089 | 10360 | size_t len; getsockname(0, 0, &len); |
a16d3c04 KB |
10361 | ; return 0; } |
10362 | EOF | |
d607e6c3 | 10363 | if { (eval echo configure:10364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
10364 | rm -rf conftest* |
10365 | cat >> confdefs.h <<\EOF | |
10366 | #define SOCKLEN_T size_t | |
10367 | EOF | |
10368 | echo "$ac_t""size_t" 1>&6 | |
10369 | else | |
10370 | echo "configure: failed program was:" >&5 | |
10371 | cat conftest.$ac_ext >&5 | |
10372 | rm -rf conftest* | |
10373 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10374 | #line 10375 "configure" |
a16d3c04 KB |
10375 | #include "confdefs.h" |
10376 | #include <sys/socket.h> | |
10377 | int main() { | |
9e92b089 | 10378 | int len; getsockname(0, 0, &len); |
a16d3c04 KB |
10379 | ; return 0; } |
10380 | EOF | |
d607e6c3 | 10381 | if { (eval echo configure:10382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a16d3c04 KB |
10382 | rm -rf conftest* |
10383 | cat >> confdefs.h <<\EOF | |
10384 | #define SOCKLEN_T int | |
10385 | EOF | |
10386 | echo "$ac_t""int" 1>&6 | |
10387 | else | |
10388 | echo "configure: failed program was:" >&5 | |
10389 | cat conftest.$ac_ext >&5 | |
10390 | rm -rf conftest* | |
10391 | echo "$ac_t""unknown" 1>&6 | |
10392 | ||
10393 | fi | |
10394 | rm -f conftest* | |
10395 | ||
10396 | fi | |
10397 | rm -f conftest* | |
10398 | ||
10399 | fi | |
10400 | rm -f conftest* | |
10401 | ac_ext=c | |
10402 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10403 | ac_cpp='$CPP $CPPFLAGS' | |
10404 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
0709ee62 | 10405 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
a16d3c04 KB |
10406 | cross_compiling=$ac_cv_prog_cc_cross |
10407 | ||
10408 | fi | |
10409 | ||
10410 | ||
10411 | if test "$wxUSE_JOYSTICK" = 1; then | |
10412 | for ac_hdr in linux/joystick.h | |
10413 | do | |
10414 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10415 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 10416 | echo "configure:10417: checking for $ac_hdr" >&5 |
a16d3c04 KB |
10417 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10419 | else | |
10420 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10421 | #line 10422 "configure" |
a16d3c04 KB |
10422 | #include "confdefs.h" |
10423 | #include <$ac_hdr> | |
10424 | EOF | |
10425 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 10426 | { (eval echo configure:10427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0709ee62 | 10427 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a16d3c04 KB |
10428 | if test -z "$ac_err"; then |
10429 | rm -rf conftest* | |
10430 | eval "ac_cv_header_$ac_safe=yes" | |
10431 | else | |
10432 | echo "$ac_err" >&5 | |
10433 | echo "configure: failed program was:" >&5 | |
10434 | cat conftest.$ac_ext >&5 | |
10435 | rm -rf conftest* | |
10436 | eval "ac_cv_header_$ac_safe=no" | |
10437 | fi | |
10438 | rm -f conftest* | |
10439 | fi | |
10440 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10441 | echo "$ac_t""yes" 1>&6 | |
10442 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10443 | cat >> confdefs.h <<EOF | |
10444 | #define $ac_tr_hdr 1 | |
10445 | EOF | |
10446 | ||
10447 | else | |
10448 | echo "$ac_t""no" 1>&6 | |
10449 | fi | |
10450 | done | |
10451 | ||
10452 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
10453 | cat >> confdefs.h <<\EOF | |
10454 | #define wxUSE_JOYSTICK 1 | |
10455 | EOF | |
10456 | ||
10457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10458 | fi | |
10459 | fi | |
10460 | ||
10461 | ||
10462 | HAVE_DL_FUNCS=0 | |
10463 | HAVE_SHL_FUNCS=0 | |
10464 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
2726c66d | 10465 | for ac_func in dlopen |
a16d3c04 KB |
10466 | do |
10467 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 10468 | echo "configure:10469: checking for $ac_func" >&5 |
a16d3c04 KB |
10469 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10471 | else | |
10472 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10473 | #line 10474 "configure" |
a16d3c04 KB |
10474 | #include "confdefs.h" |
10475 | /* System header to define __stub macros and hopefully few prototypes, | |
10476 | which can conflict with char $ac_func(); below. */ | |
10477 | #include <assert.h> | |
10478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10479 | /* We use char because int might match the return type of a gcc2 | |
10480 | builtin and then its argument prototype would still apply. */ | |
10481 | char $ac_func(); | |
10482 | ||
10483 | int main() { | |
10484 | ||
10485 | /* The GNU C library defines this for functions which it implements | |
10486 | to always fail with ENOSYS. Some functions are actually named | |
10487 | something starting with __ and the normal name is an alias. */ | |
10488 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10489 | choke me | |
10490 | #else | |
2726c66d | 10491 | $ac_func(); |
a16d3c04 KB |
10492 | #endif |
10493 | ||
10494 | ; return 0; } | |
10495 | EOF | |
d607e6c3 | 10496 | if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10497 | rm -rf conftest* |
10498 | eval "ac_cv_func_$ac_func=yes" | |
10499 | else | |
10500 | echo "configure: failed program was:" >&5 | |
10501 | cat conftest.$ac_ext >&5 | |
10502 | rm -rf conftest* | |
10503 | eval "ac_cv_func_$ac_func=no" | |
10504 | fi | |
10505 | rm -f conftest* | |
10506 | fi | |
10507 | ||
10508 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10509 | echo "$ac_t""yes" 1>&6 | |
10510 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10511 | cat >> confdefs.h <<EOF | |
10512 | #define $ac_tr_func 1 | |
10513 | EOF | |
2726c66d KB |
10514 | |
10515 | cat >> confdefs.h <<\EOF | |
a16d3c04 KB |
10516 | #define HAVE_DLOPEN 1 |
10517 | EOF | |
2726c66d KB |
10518 | |
10519 | HAVE_DL_FUNCS=1 | |
10520 | ||
a16d3c04 KB |
10521 | else |
10522 | echo "$ac_t""no" 1>&6 | |
10523 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d607e6c3 | 10524 | echo "configure:10525: checking for dlopen in -ldl" >&5 |
a16d3c04 KB |
10525 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
10526 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10528 | else | |
10529 | ac_save_LIBS="$LIBS" | |
10530 | LIBS="-ldl $LIBS" | |
10531 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10532 | #line 10533 "configure" |
a16d3c04 KB |
10533 | #include "confdefs.h" |
10534 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10535 | /* We use char because int might match the return type of a gcc2 | |
10536 | builtin and then its argument prototype would still apply. */ | |
10537 | char dlopen(); | |
10538 | ||
10539 | int main() { | |
10540 | dlopen() | |
10541 | ; return 0; } | |
10542 | EOF | |
d607e6c3 | 10543 | if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10544 | rm -rf conftest* |
10545 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10546 | else | |
10547 | echo "configure: failed program was:" >&5 | |
10548 | cat conftest.$ac_ext >&5 | |
10549 | rm -rf conftest* | |
10550 | eval "ac_cv_lib_$ac_lib_var=no" | |
10551 | fi | |
10552 | rm -f conftest* | |
10553 | LIBS="$ac_save_LIBS" | |
10554 | ||
10555 | fi | |
10556 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10557 | echo "$ac_t""yes" 1>&6 | |
2726c66d KB |
10558 | |
10559 | cat >> confdefs.h <<\EOF | |
a16d3c04 KB |
10560 | #define HAVE_DLOPEN 1 |
10561 | EOF | |
2726c66d KB |
10562 | |
10563 | HAVE_DL_FUNCS=1 | |
10564 | LIBS="$LIBS -ldl" | |
10565 | ||
a16d3c04 KB |
10566 | else |
10567 | echo "$ac_t""no" 1>&6 | |
a16d3c04 | 10568 | |
2726c66d | 10569 | for ac_func in shl_load |
a16d3c04 KB |
10570 | do |
10571 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d607e6c3 | 10572 | echo "configure:10573: checking for $ac_func" >&5 |
a16d3c04 KB |
10573 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10575 | else | |
10576 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10577 | #line 10578 "configure" |
a16d3c04 KB |
10578 | #include "confdefs.h" |
10579 | /* System header to define __stub macros and hopefully few prototypes, | |
10580 | which can conflict with char $ac_func(); below. */ | |
10581 | #include <assert.h> | |
10582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10583 | /* We use char because int might match the return type of a gcc2 | |
10584 | builtin and then its argument prototype would still apply. */ | |
10585 | char $ac_func(); | |
10586 | ||
10587 | int main() { | |
10588 | ||
10589 | /* The GNU C library defines this for functions which it implements | |
10590 | to always fail with ENOSYS. Some functions are actually named | |
10591 | something starting with __ and the normal name is an alias. */ | |
10592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10593 | choke me | |
10594 | #else | |
2726c66d | 10595 | $ac_func(); |
a16d3c04 KB |
10596 | #endif |
10597 | ||
10598 | ; return 0; } | |
10599 | EOF | |
d607e6c3 | 10600 | if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a16d3c04 KB |
10601 | rm -rf conftest* |
10602 | eval "ac_cv_func_$ac_func=yes" | |
10603 | else | |
10604 | echo "configure: failed program was:" >&5 | |
10605 | cat conftest.$ac_ext >&5 | |
10606 | rm -rf conftest* | |
10607 | eval "ac_cv_func_$ac_func=no" | |
10608 | fi | |
10609 | rm -f conftest* | |
10610 | fi | |
10611 | ||
10612 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10613 | echo "$ac_t""yes" 1>&6 | |
10614 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10615 | cat >> confdefs.h <<EOF | |
10616 | #define $ac_tr_func 1 | |
10617 | EOF | |
2726c66d KB |
10618 | |
10619 | cat >> confdefs.h <<\EOF | |
a16d3c04 KB |
10620 | #define HAVE_SHL_LOAD 1 |
10621 | EOF | |
2726c66d KB |
10622 | |
10623 | HAVE_SHL_FUNCS=1 | |
10624 | ||
a16d3c04 KB |
10625 | else |
10626 | echo "$ac_t""no" 1>&6 | |
10627 | fi | |
10628 | done | |
10629 | ||
2726c66d KB |
10630 | |
10631 | fi | |
10632 | ||
10633 | ||
10634 | fi | |
10635 | done | |
10636 | ||
a16d3c04 KB |
10637 | |
10638 | if test "$HAVE_DL_FUNCS" = 0; then | |
2726c66d KB |
10639 | if test "$HAVE_SHL_FUNCS" = 0; then |
10640 | if test "$USE_UNIX" = 1; then | |
10641 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
10642 | wxUSE_ODBC=no | |
10643 | wxUSE_DYNLIB_CLASS=no | |
10644 | else | |
10645 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
10646 | fi | |
f7a11f8c | 10647 | fi |
a16d3c04 KB |
10648 | fi |
10649 | fi | |
10650 | ||
10651 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
10652 | cat >> confdefs.h <<\EOF | |
10653 | #define wxUSE_DYNLIB_CLASS 1 | |
10654 | EOF | |
10655 | ||
10656 | fi | |
10657 | ||
10658 | ||
10659 | if test "$wxUSE_UNICODE" = "yes" ; then | |
10660 | cat >> confdefs.h <<\EOF | |
10661 | #define wxUSE_UNICODE 1 | |
10662 | EOF | |
10663 | ||
10664 | fi | |
10665 | ||
10666 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
10667 | cat >> confdefs.h <<\EOF | |
10668 | #define wxUSE_WCSRTOMBS 1 | |
10669 | EOF | |
10670 | ||
10671 | fi | |
10672 | ||
10673 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
10674 | cat >> confdefs.h <<\EOF | |
10675 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
10676 | EOF | |
10677 | ||
10678 | fi | |
10679 | ||
10680 | ||
10681 | IODBC_C_SRC="" | |
10682 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0c79abb | 10683 | cat >> confdefs.h <<\EOF |
a16d3c04 KB |
10684 | #define wxUSE_ODBC 1 |
10685 | EOF | |
10686 | ||
a0c79abb VZ |
10687 | WXODBCFLAG="-D_IODBC_" |
10688 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10689 | IODBCOBJS="\$(IODBC_OBJS)" | |
10690 | else | |
10691 | IODBCOBJS= | |
a16d3c04 KB |
10692 | fi |
10693 | ||
10694 | ||
10695 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
10696 | cat >> confdefs.h <<\EOF | |
10697 | #define wxUSE_POSTSCRIPT 1 | |
10698 | EOF | |
10699 | ||
10700 | fi | |
10701 | ||
10702 | cat >> confdefs.h <<\EOF | |
10703 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
10704 | EOF | |
10705 | ||
10706 | ||
10707 | cat >> confdefs.h <<\EOF | |
10708 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
10709 | EOF | |
10710 | ||
10711 | ||
10712 | ||
10713 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
10714 | cat >> confdefs.h <<\EOF | |
10715 | #define wxUSE_CONSTRAINTS 1 | |
10716 | EOF | |
10717 | ||
10718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
10719 | fi | |
10720 | ||
10721 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
10722 | cat >> confdefs.h <<\EOF | |
10723 | #define wxUSE_MDI_ARCHITECTURE 1 | |
10724 | EOF | |
10725 | ||
10726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
10727 | fi | |
10728 | ||
10729 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
10730 | cat >> confdefs.h <<\EOF | |
10731 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
10732 | EOF | |
10733 | ||
10734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
10735 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
10736 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
10737 | fi | |
10738 | fi | |
10739 | ||
10740 | if test "$wxUSE_HELP" = "yes"; then | |
10741 | cat >> confdefs.h <<\EOF | |
10742 | #define wxUSE_HELP 1 | |
10743 | EOF | |
10744 | ||
10745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
10746 | fi | |
10747 | ||
10748 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
10749 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
10750 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
10751 | else | |
10752 | cat >> confdefs.h <<\EOF | |
10753 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
10754 | EOF | |
10755 | ||
10756 | fi | |
10757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
10758 | fi | |
10759 | ||
10760 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
10761 | cat >> confdefs.h <<\EOF | |
10762 | #define wxUSE_PROLOGIO 1 | |
10763 | EOF | |
10764 | ||
10765 | fi | |
10766 | ||
10767 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
10768 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
10769 | cat >> confdefs.h <<\EOF | |
10770 | #define wxUSE_RESOURCES 1 | |
10771 | EOF | |
10772 | ||
10773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
10774 | else | |
10775 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
10776 | fi | |
10777 | fi | |
10778 | ||
10779 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
10780 | cat >> confdefs.h <<\EOF | |
10781 | #define wxUSE_X_RESOURCES 1 | |
10782 | EOF | |
10783 | ||
10784 | fi | |
10785 | ||
10786 | ||
10787 | if test "$wxUSE_IPC" = "yes"; then | |
10788 | cat >> confdefs.h <<\EOF | |
10789 | #define wxUSE_IPC 1 | |
10790 | EOF | |
10791 | ||
10792 | fi | |
10793 | ||
10794 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
10795 | cat >> confdefs.h <<\EOF | |
10796 | #define wxUSE_CLIPBOARD 1 | |
10797 | EOF | |
10798 | ||
10799 | fi | |
10800 | ||
10801 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
10802 | if test "$wxUSE_GTK" = 1; then | |
10803 | if test "$WXGTK12" != 1; then | |
10804 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
f7a11f8c | 10805 | wxUSE_DRAG_AND_DROP=no |
a16d3c04 KB |
10806 | fi |
10807 | fi | |
10808 | ||
10809 | if test "$wxUSE_MOTIF" = 1; then | |
10810 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
f7a11f8c | 10811 | wxUSE_DRAG_AND_DROP=no |
a16d3c04 KB |
10812 | fi |
10813 | ||
4882bf1b VZ |
10814 | if test "$USE_WIN32" = 1; then |
10815 | for ac_hdr in ole2.h | |
10816 | do | |
10817 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10818 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d607e6c3 | 10819 | echo "configure:10820: checking for $ac_hdr" >&5 |
4882bf1b VZ |
10820 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10822 | else | |
10823 | cat > conftest.$ac_ext <<EOF | |
d607e6c3 | 10824 | #line 10825 "configure" |
4882bf1b VZ |
10825 | #include "confdefs.h" |
10826 | #include <$ac_hdr> | |
10827 | EOF | |
10828 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d607e6c3 | 10829 | { (eval echo configure:10830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4882bf1b VZ |
10830 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10831 | if test -z "$ac_err"; then | |
10832 | rm -rf conftest* | |
10833 | eval "ac_cv_header_$ac_safe=yes" | |
10834 | else | |
10835 | echo "$ac_err" >&5 | |
10836 | echo "configure: failed program was:" >&5 | |
10837 | cat conftest.$ac_ext >&5 | |
10838 | rm -rf conftest* | |
10839 | eval "ac_cv_header_$ac_safe=no" | |
10840 | fi | |
10841 | rm -f conftest* | |
10842 | fi | |
10843 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10844 | echo "$ac_t""yes" 1>&6 | |
10845 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10846 | cat >> confdefs.h <<EOF | |
10847 | #define $ac_tr_hdr 1 | |
10848 | EOF | |
10849 | ||
10850 | else | |
10851 | echo "$ac_t""no" 1>&6 | |
10852 | fi | |
10853 | done | |
10854 | ||
10855 | if test "x$HAVE_OLE2_H" = x ; then | |
10856 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
10857 | wxUSE_DRAG_AND_DROP=no | |
10858 | fi | |
10859 | fi | |
10860 | ||
a16d3c04 KB |
10861 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
10862 | cat >> confdefs.h <<\EOF | |
10863 | #define wxUSE_DRAG_AND_DROP 1 | |
10864 | EOF | |
10865 | ||
10866 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
10867 | fi | |
4882bf1b | 10868 | |
a16d3c04 KB |
10869 | fi |
10870 | ||
10871 | if test "$wxUSE_SPLINES" = "yes" ; then | |
10872 | cat >> confdefs.h <<\EOF | |
10873 | #define wxUSE_SPLINES 1 | |
10874 | EOF | |
10875 | ||
10876 | fi | |
10877 | ||
10878 | ||
10879 | if test "$wxUSE_ACCEL" = "yes"; then | |
10880 | cat >> confdefs.h <<\EOF | |
10881 | #define wxUSE_ACCEL 1 | |
10882 | EOF | |
10883 | ||
10884 | fi | |
10885 | ||
10886 | if test "$wxUSE_CARET" = "yes"; then | |
10887 | cat >> confdefs.h <<\EOF | |
10888 | #define wxUSE_CARET 1 | |
10889 | EOF | |
10890 | ||
10891 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
10892 | fi | |
10893 | ||
10894 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
10895 | cat >> confdefs.h <<\EOF | |
10896 | #define wxUSE_COMBOBOX 1 | |
10897 | EOF | |
10898 | ||
10899 | fi | |
10900 | ||
10901 | if test "$wxUSE_CHOICE" = "yes"; then | |
10902 | cat >> confdefs.h <<\EOF | |
10903 | #define wxUSE_CHOICE 1 | |
10904 | EOF | |
10905 | ||
10906 | fi | |
10907 | ||
10908 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
10909 | cat >> confdefs.h <<\EOF | |
10910 | #define wxUSE_BMPBUTTON 1 | |
10911 | EOF | |
10912 | ||
10913 | fi | |
10914 | ||
10915 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
10916 | cat >> confdefs.h <<\EOF | |
10917 | #define wxUSE_CHECKBOX 1 | |
10918 | EOF | |
10919 | ||
10920 | fi | |
10921 | ||
10922 | if test "$wxUSE_CHECKLST" = "yes"; then | |
10923 | cat >> confdefs.h <<\EOF | |
10924 | #define wxUSE_CHECKLISTBOX 1 | |
10925 | EOF | |
10926 | ||
10927 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
10928 | fi | |
10929 | ||
10930 | if test "$wxUSE_GAUGE" = "yes"; then | |
10931 | cat >> confdefs.h <<\EOF | |
10932 | #define wxUSE_GAUGE 1 | |
10933 | EOF | |
10934 | ||
10935 | fi | |
10936 | ||
10937 | if test "$wxUSE_GRID" = "yes"; then | |
10938 | cat >> confdefs.h <<\EOF | |
10939 | #define wxUSE_GRID 1 | |
10940 | EOF | |
10941 | ||
10942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
10943 | fi | |
10944 | ||
2726c66d KB |
10945 | if test "$wxUSE_NEW_GRID" = "yes"; then |
10946 | cat >> confdefs.h <<\EOF | |
10947 | #define wxUSE_NEW_GRID 1 | |
10948 | EOF | |
10949 | ||
10950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
10951 | fi | |
10952 | ||
a16d3c04 KB |
10953 | if test "$wxUSE_IMAGLIST" = "yes"; then |
10954 | cat >> confdefs.h <<\EOF | |
10955 | #define wxUSE_IMAGLIST 1 | |
10956 | EOF | |
10957 | ||
10958 | fi | |
10959 | ||
10960 | if test "$wxUSE_LISTBOX" = "yes"; then | |
10961 | cat >> confdefs.h <<\EOF | |
10962 | #define wxUSE_LISTBOX 1 | |
10963 | EOF | |
10964 | ||
10965 | fi | |
10966 | ||
10967 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
10968 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
10969 | cat >> confdefs.h <<\EOF | |
10970 | #define wxUSE_LISTCTRL 1 | |
10971 | EOF | |
10972 | ||
10973 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
10974 | else | |
10975 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
10976 | fi | |
10977 | fi | |
10978 | ||
10979 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
10980 | cat >> confdefs.h <<\EOF | |
10981 | #define wxUSE_NOTEBOOK 1 | |
10982 | EOF | |
10983 | ||
10984 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
10985 | fi | |
10986 | ||
10987 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
10988 | cat >> confdefs.h <<\EOF | |
10989 | #define wxUSE_RADIOBOX 1 | |
10990 | EOF | |
10991 | ||
10992 | fi | |
10993 | ||
10994 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
10995 | cat >> confdefs.h <<\EOF | |
10996 | #define wxUSE_RADIOBTN 1 | |
10997 | EOF | |
10998 | ||
10999 | fi | |
11000 | ||
11001 | if test "$wxUSE_SASH" = "yes"; then | |
11002 | cat >> confdefs.h <<\EOF | |
11003 | #define wxUSE_SASH 1 | |
11004 | EOF | |
11005 | ||
11006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
11007 | fi | |
11008 | ||
11009 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
11010 | cat >> confdefs.h <<\EOF | |
11011 | #define wxUSE_SCROLLBAR 1 | |
11012 | EOF | |
11013 | ||
11014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" | |
11015 | fi | |
11016 | ||
11017 | if test "$wxUSE_SLIDER" = "yes"; then | |
11018 | cat >> confdefs.h <<\EOF | |
11019 | #define wxUSE_SLIDER 1 | |
11020 | EOF | |
11021 | ||
11022 | fi | |
11023 | ||
11024 | if test "$wxUSE_SPINBTN" = "yes"; then | |
11025 | cat >> confdefs.h <<\EOF | |
11026 | #define wxUSE_SPINBTN 1 | |
11027 | EOF | |
11028 | ||
11029 | fi | |
11030 | ||
11031 | if test "$wxUSE_SPLITTER" = "yes"; then | |
11032 | cat >> confdefs.h <<\EOF | |
11033 | #define wxUSE_SPLITTER 1 | |
11034 | EOF | |
11035 | ||
11036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
11037 | fi | |
11038 | ||
11039 | if test "$wxUSE_STATBMP" = "yes"; then | |
11040 | cat >> confdefs.h <<\EOF | |
11041 | #define wxUSE_STATBMP 1 | |
11042 | EOF | |
11043 | ||
11044 | fi | |
11045 | ||
11046 | if test "$wxUSE_STATBOX" = "yes"; then | |
11047 | cat >> confdefs.h <<\EOF | |
11048 | #define wxUSE_STATBOX 1 | |
11049 | EOF | |
11050 | ||
11051 | fi | |
11052 | ||
11053 | if test "$wxUSE_STATLINE" = "yes"; then | |
11054 | if test "$wxUSE_WINE" = 1 ; then | |
11055 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
11056 | else | |
f7a11f8c | 11057 | cat >> confdefs.h <<\EOF |
a16d3c04 KB |
11058 | #define wxUSE_STATLINE 1 |
11059 | EOF | |
11060 | ||
11061 | fi | |
11062 | fi | |
11063 | ||
11064 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
11065 | cat >> confdefs.h <<\EOF | |
11066 | #define wxUSE_STATUSBAR 1 | |
11067 | EOF | |
11068 | ||
11069 | fi | |
11070 | ||
11071 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
11072 | cat >> confdefs.h <<\EOF | |
11073 | #define wxUSE_TAB_DIALOG 1 | |
11074 | EOF | |
11075 | ||
11076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
11077 | fi | |
11078 | ||
11079 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
11080 | cat >> confdefs.h <<\EOF | |
11081 | #define wxUSE_TOOLBAR 1 | |
11082 | EOF | |
11083 | ||
11084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
11085 | fi | |
11086 | ||
11087 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
11088 | if test "$wxUSE_MOTIF" = 1; then | |
11089 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
11090 | else | |
11091 | if test "$wxUSE_WINE" = 1; then | |
11092 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
11093 | else | |
11094 | cat >> confdefs.h <<\EOF | |
11095 | #define wxUSE_TOOLTIPS 1 | |
11096 | EOF | |
11097 | ||
11098 | fi | |
11099 | fi | |
11100 | fi | |
11101 | ||
11102 | if test "$wxUSE_TREECTRL" = "yes"; then | |
11103 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11104 | cat >> confdefs.h <<\EOF | |
11105 | #define wxUSE_TREECTRL 1 | |
11106 | EOF | |
11107 | ||
11108 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
11109 | else | |
11110 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
11111 | fi | |
11112 | fi | |
11113 | ||
11114 | ||
11115 | ||
11116 | if test "$wxUSE_METAFILE" = "yes"; then | |
11117 | cat >> confdefs.h <<\EOF | |
11118 | #define wxUSE_METAFILE 1 | |
11119 | EOF | |
11120 | ||
11121 | fi | |
11122 | ||
11123 | if test "$wxUSE_DIRDLG" = "yes"; then | |
11124 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11125 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
11126 | else | |
11127 | if test "$wxUSE_TREECTRL" != "yes"; then | |
11128 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
11129 | else | |
11130 | cat >> confdefs.h <<\EOF | |
11131 | #define wxUSE_DIRDLG 1 | |
11132 | EOF | |
11133 | ||
11134 | fi | |
11135 | fi | |
11136 | fi | |
11137 | ||
11138 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
11139 | cat >> confdefs.h <<\EOF | |
11140 | #define wxUSE_TEXTDLG 1 | |
11141 | EOF | |
11142 | ||
11143 | fi | |
11144 | ||
11145 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
11146 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11147 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
11148 | else | |
11149 | cat >> confdefs.h <<\EOF | |
11150 | #define wxUSE_STARTUP_TIPS 1 | |
11151 | EOF | |
11152 | ||
11153 | fi | |
11154 | fi | |
11155 | ||
11156 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
11157 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11158 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
11159 | else | |
11160 | cat >> confdefs.h <<\EOF | |
11161 | #define wxUSE_PROGRESSDLG 1 | |
11162 | EOF | |
11163 | ||
11164 | fi | |
11165 | fi | |
11166 | ||
11167 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
11168 | cat >> confdefs.h <<\EOF | |
11169 | #define wxUSE_MINIFRAME 1 | |
11170 | EOF | |
11171 | ||
11172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
11173 | fi | |
11174 | ||
11175 | if test "$wxUSE_HTML" = "yes"; then | |
11176 | cat >> confdefs.h <<\EOF | |
11177 | #define wxUSE_HTML 1 | |
11178 | EOF | |
11179 | ||
11180 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
11181 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
11182 | fi | |
11183 | ||
11184 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
11185 | cat >> confdefs.h <<\EOF | |
11186 | #define wxUSE_VALIDATORS 1 | |
11187 | EOF | |
11188 | ||
11189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
11190 | fi | |
11191 | ||
1c8515f9 KB |
11192 | if test "$wxUSE_GIF" = "yes" ; then |
11193 | cat >> confdefs.h <<\EOF | |
11194 | #define wxUSE_GIF 1 | |
11195 | EOF | |
11196 | ||
11197 | fi | |
11198 | ||
11199 | if test "$wxUSE_PCX" = "yes" ; then | |
11200 | cat >> confdefs.h <<\EOF | |
11201 | #define wxUSE_PCX 1 | |
11202 | EOF | |
11203 | ||
11204 | fi | |
11205 | ||
11206 | if test "$wxUSE_PNM" = "yes" ; then | |
11207 | cat >> confdefs.h <<\EOF | |
11208 | #define wxUSE_PNM 1 | |
11209 | EOF | |
11210 | ||
11211 | fi | |
11212 | ||
a16d3c04 KB |
11213 | |
11214 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
11215 | ||
2726c66d | 11216 | EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
f7a11f8c RR |
11217 | if test "$wxUSE_GUI" = "yes"; then |
11218 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
11219 | fi | |
a16d3c04 KB |
11220 | |
11221 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
11222 | ||
11223 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE" | |
11224 | ||
11225 | if test "$GXX" = yes ; then | |
11226 | CXXWARNINGS="-Wall" | |
11227 | fi | |
2726c66d | 11228 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
a16d3c04 KB |
11229 | |
11230 | CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS" | |
11231 | CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
11232 | CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS" | |
11233 | ||
11234 | if test "$wxUSE_GUI" = "yes"; then | |
11235 | ||
11236 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
11237 | forty fractal image wxpoem" | |
f7a11f8c RR |
11238 | else |
11239 | SAMPLES_SUBDIRS="" | |
a16d3c04 KB |
11240 | fi |
11241 | ||
11242 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | ||
11285 | ||
11286 | ||
f7a11f8c RR |
11287 | |
11288 | ||
11289 | ||
11290 | ||
a16d3c04 KB |
11291 | |
11292 | ||
11293 | ||
a0c79abb | 11294 | |
a16d3c04 KB |
11295 | |
11296 | ||
11297 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
d607e6c3 | 11298 | echo "configure:11299: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a16d3c04 KB |
11299 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
11300 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
11301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11302 | else | |
11303 | cat > conftestmake <<\EOF | |
11304 | all: | |
11305 | @echo 'ac_maketemp="${MAKE}"' | |
11306 | EOF | |
11307 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11308 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
11309 | if test -n "$ac_maketemp"; then | |
11310 | eval ac_cv_prog_make_${ac_make}_set=yes | |
11311 | else | |
11312 | eval ac_cv_prog_make_${ac_make}_set=no | |
11313 | fi | |
11314 | rm -f conftestmake | |
11315 | fi | |
11316 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
11317 | echo "$ac_t""yes" 1>&6 | |
11318 | SET_MAKE= | |
11319 | else | |
11320 | echo "$ac_t""no" 1>&6 | |
11321 | SET_MAKE="MAKE=${MAKE-make}" | |
11322 | fi | |
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
11328 | GL_TOOLKIT_DIR="win" | |
11329 | else | |
11330 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
11331 | fi | |
11332 | ||
11333 | ||
11334 | trap '' 1 2 15 | |
11335 | cat > confcache <<\EOF | |
11336 | # This file is a shell script that caches the results of configure | |
11337 | # tests run on this system so they can be shared between configure | |
11338 | # scripts and configure runs. It is not useful on other systems. | |
11339 | # If it contains results you don't want to keep, you may remove or edit it. | |
11340 | # | |
11341 | # By default, configure uses ./config.cache as the cache file, | |
11342 | # creating it if it does not exist already. You can give configure | |
11343 | # the --cache-file=FILE option to use a different cache file; that is | |
11344 | # what configure does when it calls configure scripts in | |
11345 | # subdirectories, so they share the cache. | |
11346 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11347 | # config.status only pays attention to the cache file if you give it the | |
11348 | # --recheck option to rerun configure. | |
11349 | # | |
11350 | EOF | |
11351 | # The following way of writing the cache mishandles newlines in values, | |
11352 | # but we know of no workaround that is simple, portable, and efficient. | |
11353 | # So, don't put newlines in cache variables' values. | |
11354 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11355 | # and sets the high bit in the cache file unless we assign to the vars. | |
11356 | (set) 2>&1 | | |
0709ee62 | 11357 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
a16d3c04 KB |
11358 | *ac_space=\ *) |
11359 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11360 | # turns \\\\ into \\, and sed turns \\ into \). | |
11361 | sed -n \ | |
11362 | -e "s/'/'\\\\''/g" \ | |
11363 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11364 | ;; | |
11365 | *) | |
11366 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11367 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11368 | ;; | |
11369 | esac >> confcache | |
11370 | if cmp -s $cache_file confcache; then | |
11371 | : | |
11372 | else | |
11373 | if test -w $cache_file; then | |
11374 | echo "updating cache $cache_file" | |
11375 | cat confcache > $cache_file | |
11376 | else | |
11377 | echo "not updating unwritable cache $cache_file" | |
11378 | fi | |
11379 | fi | |
11380 | rm -f confcache | |
11381 | ||
11382 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
11383 | ||
11384 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11385 | # Let make expand exec_prefix. | |
11386 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11387 | ||
11388 | # Any assignment to VPATH causes Sun make to only execute | |
11389 | # the first set of double-colon rules, so remove it if not needed. | |
11390 | # If there is a colon in the path, we need to keep it. | |
11391 | if test "x$srcdir" = x.; then | |
11392 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
11393 | fi | |
11394 | ||
11395 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
11396 | ||
11397 | DEFS=-DHAVE_CONFIG_H | |
11398 | ||
11399 | # Without the "./", some shells look in PATH for config.status. | |
11400 | : ${CONFIG_STATUS=./config.status} | |
11401 | ||
11402 | echo creating $CONFIG_STATUS | |
11403 | rm -f $CONFIG_STATUS | |
11404 | cat > $CONFIG_STATUS <<EOF | |
11405 | #! /bin/sh | |
11406 | # Generated automatically by configure. | |
11407 | # Run this file to recreate the current configuration. | |
11408 | # This directory was configured as follows, | |
11409 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11410 | # | |
11411 | # $0 $ac_configure_args | |
11412 | # | |
11413 | # Compiler output produced by configure, useful for debugging | |
11414 | # configure, is in ./config.log if it exists. | |
11415 | ||
11416 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
11417 | for ac_option | |
11418 | do | |
11419 | case "\$ac_option" in | |
11420 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11421 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
11422 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
11423 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
0709ee62 | 11424 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
a16d3c04 KB |
11425 | exit 0 ;; |
11426 | -help | --help | --hel | --he | --h) | |
11427 | echo "\$ac_cs_usage"; exit 0 ;; | |
11428 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
11429 | esac | |
11430 | done | |
11431 | ||
11432 | ac_given_srcdir=$srcdir | |
11433 | ac_given_INSTALL="$INSTALL" | |
11434 | ||
11435 | trap 'rm -fr `echo " | |
11436 | wx-config | |
f7a11f8c RR |
11437 | src/make.env |
11438 | src/makeprog.env | |
11439 | src/makelib.env | |
a16d3c04 KB |
11440 | Makefile |
11441 | samples/Makefile | |
11442 | samples/bombs/Makefile | |
11443 | samples/caret/Makefile | |
11444 | samples/checklst/Makefile | |
11445 | samples/config/Makefile | |
11446 | samples/controls/Makefile | |
2726c66d | 11447 | samples/db/Makefile |
f7a11f8c RR |
11448 | samples/dialogs/Makefile |
11449 | samples/docview/Makefile | |
11450 | samples/docvwmdi/Makefile | |
11451 | samples/dnd/Makefile | |
11452 | samples/drawing/Makefile | |
0709ee62 VZ |
11453 | samples/forty/Makefile |
11454 | samples/fractal/Makefile | |
f7a11f8c RR |
11455 | samples/image/Makefile |
11456 | samples/internat/Makefile | |
11457 | samples/layout/Makefile | |
11458 | samples/listctrl/Makefile | |
11459 | samples/mdi/Makefile | |
11460 | samples/minifram/Makefile | |
2726c66d KB |
11461 | samples/minimal/Makefile |
11462 | samples/nettest/Makefile | |
11463 | samples/newgrid/Makefile | |
f7a11f8c | 11464 | samples/notebook/Makefile |
0709ee62 | 11465 | samples/png/Makefile |
a16d3c04 | 11466 | samples/printing/Makefile |
2726c66d KB |
11467 | samples/proplist/Makefile |
11468 | samples/richedit/Makefile | |
0709ee62 | 11469 | samples/resource/Makefile |
f7a11f8c RR |
11470 | samples/sashtest/Makefile |
11471 | samples/scroll/Makefile | |
11472 | samples/splitter/Makefile | |
11473 | samples/text/Makefile | |
11474 | samples/thread/Makefile | |
11475 | samples/toolbar/Makefile | |
11476 | samples/treectrl/Makefile | |
11477 | samples/typetest/Makefile | |
11478 | samples/validate/Makefile | |
11479 | samples/wxpoem/Makefile | |
11480 | samples/wxsocket/Makefile | |
11481 | samples/wizard/Makefile | |
11482 | samples/html/Makefile | |
11483 | samples/html/about/Makefile | |
11484 | samples/html/help/Makefile | |
11485 | samples/html/printing/Makefile | |
11486 | samples/html/test/Makefile | |
11487 | samples/html/zip/Makefile | |
11488 | samples/html/virtual/Makefile | |
11489 | samples/html/widget/Makefile | |
11490 | utils/Makefile | |
11491 | utils/wxMMedia2/Makefile | |
11492 | utils/wxMMedia2/lib/Makefile | |
11493 | utils/wxMMedia2/sample/Makefile | |
11494 | utils/glcanvas/Makefile | |
11495 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
11496 | utils/ogl/Makefile | |
11497 | utils/ogl/src/Makefile | |
a16d3c04 KB |
11498 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
11499 | EOF | |
11500 | cat >> $CONFIG_STATUS <<EOF | |
11501 | ||
11502 | # Protect against being on the right side of a sed subst in config.status. | |
11503 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
11504 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
11505 | $ac_vpsub | |
11506 | $extrasub | |
0709ee62 | 11507 | s%@SHELL@%$SHELL%g |
a16d3c04 KB |
11508 | s%@CFLAGS@%$CFLAGS%g |
11509 | s%@CPPFLAGS@%$CPPFLAGS%g | |
11510 | s%@CXXFLAGS@%$CXXFLAGS%g | |
0709ee62 | 11511 | s%@FFLAGS@%$FFLAGS%g |
a16d3c04 KB |
11512 | s%@DEFS@%$DEFS%g |
11513 | s%@LDFLAGS@%$LDFLAGS%g | |
11514 | s%@LIBS@%$LIBS%g | |
11515 | s%@exec_prefix@%$exec_prefix%g | |
11516 | s%@prefix@%$prefix%g | |
11517 | s%@program_transform_name@%$program_transform_name%g | |
11518 | s%@bindir@%$bindir%g | |
11519 | s%@sbindir@%$sbindir%g | |
11520 | s%@libexecdir@%$libexecdir%g | |
11521 | s%@datadir@%$datadir%g | |
11522 | s%@sysconfdir@%$sysconfdir%g | |
11523 | s%@sharedstatedir@%$sharedstatedir%g | |
11524 | s%@localstatedir@%$localstatedir%g | |
11525 | s%@libdir@%$libdir%g | |
11526 | s%@includedir@%$includedir%g | |
11527 | s%@oldincludedir@%$oldincludedir%g | |
11528 | s%@infodir@%$infodir%g | |
11529 | s%@mandir@%$mandir%g | |
11530 | s%@host@%$host%g | |
11531 | s%@host_alias@%$host_alias%g | |
11532 | s%@host_cpu@%$host_cpu%g | |
11533 | s%@host_vendor@%$host_vendor%g | |
11534 | s%@host_os@%$host_os%g | |
11535 | s%@target@%$target%g | |
11536 | s%@target_alias@%$target_alias%g | |
11537 | s%@target_cpu@%$target_cpu%g | |
11538 | s%@target_vendor@%$target_vendor%g | |
11539 | s%@target_os@%$target_os%g | |
11540 | s%@build@%$build%g | |
11541 | s%@build_alias@%$build_alias%g | |
11542 | s%@build_cpu@%$build_cpu%g | |
11543 | s%@build_vendor@%$build_vendor%g | |
11544 | s%@build_os@%$build_os%g | |
11545 | s%@CC@%$CC%g | |
11546 | s%@CPP@%$CPP%g | |
11547 | s%@CXX@%$CXX%g | |
11548 | s%@CXXCPP@%$CXXCPP%g | |
11549 | s%@RANLIB@%$RANLIB%g | |
11550 | s%@AR@%$AR%g | |
11551 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
0709ee62 | 11552 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
a16d3c04 KB |
11553 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
11554 | s%@STRIP@%$STRIP%g | |
11555 | s%@YACC@%$YACC%g | |
11556 | s%@LEX@%$LEX%g | |
11557 | s%@LEXLIB@%$LEXLIB%g | |
11558 | s%@LN_S@%$LN_S%g | |
11559 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
11560 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
11561 | s%@GTK_LIBS@%$GTK_LIBS%g | |
a16d3c04 KB |
11562 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
11563 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
11564 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
11565 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
11566 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
11567 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
11568 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
11569 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
11570 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
11571 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
11572 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
11573 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
2726c66d KB |
11574 | s%@WX_ALL@%$WX_ALL%g |
11575 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
a16d3c04 KB |
11576 | s%@SHARED_LD@%$SHARED_LD%g |
11577 | s%@PIC_FLAG@%$PIC_FLAG%g | |
11578 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
11579 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
11580 | s%@TOOLKIT@%$TOOLKIT%g | |
11581 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
11582 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
11583 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
11584 | s%@GUIHEADERS@%$GUIHEADERS%g | |
11585 | s%@GUIOBJS@%$GUIOBJS%g | |
11586 | s%@COMMONOBJS@%$COMMONOBJS%g | |
11587 | s%@GENERICOBJS@%$GENERICOBJS%g | |
11588 | s%@GUIDEPS@%$GUIDEPS%g | |
11589 | s%@COMMONDEPS@%$COMMONDEPS%g | |
11590 | s%@GENERICDEPS@%$GENERICDEPS%g | |
a0c79abb | 11591 | s%@IODBCOBJS@%$IODBCOBJS%g |
a16d3c04 | 11592 | s%@UNIXOBJS@%$UNIXOBJS%g |
f7a11f8c RR |
11593 | s%@UNIXDEPS@%$UNIXDEPS%g |
11594 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
11595 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
11596 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
a16d3c04 KB |
11597 | s%@GUIDIST@%$GUIDIST%g |
11598 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
11599 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
11600 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
11601 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
11602 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
11603 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
11604 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
11605 | s%@LD_LIBS@%$LD_LIBS%g | |
11606 | s%@SET_MAKE@%$SET_MAKE%g | |
11607 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
11608 | ||
11609 | CEOF | |
11610 | EOF | |
11611 | ||
11612 | cat >> $CONFIG_STATUS <<\EOF | |
11613 | ||
11614 | # Split the substitutions into bite-sized pieces for seds with | |
11615 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11616 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
11617 | ac_file=1 # Number of current file. | |
11618 | ac_beg=1 # First line for current file. | |
11619 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
11620 | ac_more_lines=: | |
11621 | ac_sed_cmds="" | |
11622 | while $ac_more_lines; do | |
11623 | if test $ac_beg -gt 1; then | |
11624 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
11625 | else | |
11626 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
11627 | fi | |
11628 | if test ! -s conftest.s$ac_file; then | |
11629 | ac_more_lines=false | |
11630 | rm -f conftest.s$ac_file | |
11631 | else | |
11632 | if test -z "$ac_sed_cmds"; then | |
11633 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
11634 | else | |
11635 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
11636 | fi | |
11637 | ac_file=`expr $ac_file + 1` | |
11638 | ac_beg=$ac_end | |
11639 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
11640 | fi | |
11641 | done | |
11642 | if test -z "$ac_sed_cmds"; then | |
11643 | ac_sed_cmds=cat | |
11644 | fi | |
11645 | EOF | |
11646 | ||
11647 | cat >> $CONFIG_STATUS <<EOF | |
11648 | ||
11649 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
f7a11f8c RR |
11650 | src/make.env |
11651 | src/makeprog.env | |
11652 | src/makelib.env | |
a16d3c04 KB |
11653 | Makefile |
11654 | samples/Makefile | |
11655 | samples/bombs/Makefile | |
11656 | samples/caret/Makefile | |
11657 | samples/checklst/Makefile | |
11658 | samples/config/Makefile | |
11659 | samples/controls/Makefile | |
2726c66d | 11660 | samples/db/Makefile |
f7a11f8c RR |
11661 | samples/dialogs/Makefile |
11662 | samples/docview/Makefile | |
11663 | samples/docvwmdi/Makefile | |
11664 | samples/dnd/Makefile | |
11665 | samples/drawing/Makefile | |
0709ee62 VZ |
11666 | samples/forty/Makefile |
11667 | samples/fractal/Makefile | |
f7a11f8c RR |
11668 | samples/image/Makefile |
11669 | samples/internat/Makefile | |
11670 | samples/layout/Makefile | |
11671 | samples/listctrl/Makefile | |
11672 | samples/mdi/Makefile | |
11673 | samples/minifram/Makefile | |
2726c66d KB |
11674 | samples/minimal/Makefile |
11675 | samples/nettest/Makefile | |
11676 | samples/newgrid/Makefile | |
f7a11f8c | 11677 | samples/notebook/Makefile |
0709ee62 | 11678 | samples/png/Makefile |
a16d3c04 | 11679 | samples/printing/Makefile |
2726c66d KB |
11680 | samples/proplist/Makefile |
11681 | samples/richedit/Makefile | |
0709ee62 | 11682 | samples/resource/Makefile |
f7a11f8c RR |
11683 | samples/sashtest/Makefile |
11684 | samples/scroll/Makefile | |
11685 | samples/splitter/Makefile | |
11686 | samples/text/Makefile | |
11687 | samples/thread/Makefile | |
11688 | samples/toolbar/Makefile | |
11689 | samples/treectrl/Makefile | |
11690 | samples/typetest/Makefile | |
11691 | samples/validate/Makefile | |
11692 | samples/wxpoem/Makefile | |
11693 | samples/wxsocket/Makefile | |
11694 | samples/wizard/Makefile | |
11695 | samples/html/Makefile | |
11696 | samples/html/about/Makefile | |
11697 | samples/html/help/Makefile | |
11698 | samples/html/printing/Makefile | |
11699 | samples/html/test/Makefile | |
11700 | samples/html/zip/Makefile | |
11701 | samples/html/virtual/Makefile | |
11702 | samples/html/widget/Makefile | |
11703 | utils/Makefile | |
11704 | utils/wxMMedia2/Makefile | |
11705 | utils/wxMMedia2/lib/Makefile | |
11706 | utils/wxMMedia2/sample/Makefile | |
11707 | utils/glcanvas/Makefile | |
11708 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
11709 | utils/ogl/Makefile | |
11710 | utils/ogl/src/Makefile | |
a16d3c04 KB |
11711 | "} |
11712 | EOF | |
11713 | cat >> $CONFIG_STATUS <<\EOF | |
11714 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
11715 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11716 | case "$ac_file" in | |
11717 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
11718 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
11719 | *) ac_file_in="${ac_file}.in" ;; | |
11720 | esac | |
11721 | ||
11722 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
11723 | ||
11724 | # Remove last slash and all that follows it. Not all systems have dirname. | |
11725 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
11726 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
11727 | # The file is in a subdirectory. | |
11728 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
11729 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
11730 | # A "../" for each directory in $ac_dir_suffix. | |
11731 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
11732 | else | |
11733 | ac_dir_suffix= ac_dots= | |
11734 | fi | |
11735 | ||
11736 | case "$ac_given_srcdir" in | |
11737 | .) srcdir=. | |
11738 | if test -z "$ac_dots"; then top_srcdir=. | |
11739 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
11740 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
11741 | *) # Relative path. | |
11742 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
11743 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
11744 | esac | |
11745 | ||
11746 | case "$ac_given_INSTALL" in | |
11747 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
11748 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
11749 | esac | |
11750 | ||
11751 | echo creating "$ac_file" | |
11752 | rm -f "$ac_file" | |
11753 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
11754 | case "$ac_file" in | |
11755 | *Makefile*) ac_comsub="1i\\ | |
11756 | # $configure_input" ;; | |
11757 | *) ac_comsub= ;; | |
11758 | esac | |
11759 | ||
11760 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
11761 | sed -e "$ac_comsub | |
11762 | s%@configure_input@%$configure_input%g | |
11763 | s%@srcdir@%$srcdir%g | |
11764 | s%@top_srcdir@%$top_srcdir%g | |
11765 | s%@INSTALL@%$INSTALL%g | |
11766 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
11767 | fi; done | |
11768 | rm -f conftest.s* | |
11769 | ||
11770 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
11771 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
11772 | # | |
11773 | # ac_d sets the value in "#define NAME VALUE" lines. | |
11774 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
11775 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
11776 | ac_dC='\3' | |
11777 | ac_dD='%g' | |
11778 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
11779 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
11780 | ac_uB='\([ ]\)%\1#\2define\3' | |
11781 | ac_uC=' ' | |
11782 | ac_uD='\4%g' | |
11783 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
11784 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
11785 | ac_eB='$%\1#\2define\3' | |
11786 | ac_eC=' ' | |
11787 | ac_eD='%g' | |
11788 | ||
11789 | if test "${CONFIG_HEADERS+set}" != set; then | |
11790 | EOF | |
11791 | cat >> $CONFIG_STATUS <<EOF | |
11792 | CONFIG_HEADERS="setup.h:setup.h.in" | |
11793 | EOF | |
11794 | cat >> $CONFIG_STATUS <<\EOF | |
11795 | fi | |
11796 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
11797 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11798 | case "$ac_file" in | |
11799 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
11800 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
11801 | *) ac_file_in="${ac_file}.in" ;; | |
11802 | esac | |
11803 | ||
11804 | echo creating $ac_file | |
11805 | ||
11806 | rm -f conftest.frag conftest.in conftest.out | |
11807 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
11808 | cat $ac_file_inputs > conftest.in | |
11809 | ||
11810 | EOF | |
11811 | ||
11812 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
11813 | # the proper values into config.h.in to produce config.h. And first: | |
11814 | # Protect against being on the right side of a sed subst in config.status. | |
11815 | # Protect against being in an unquoted here document in config.status. | |
11816 | rm -f conftest.vals | |
11817 | cat > conftest.hdr <<\EOF | |
11818 | s/[\\&%]/\\&/g | |
11819 | s%[\\$`]%\\&%g | |
11820 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
11821 | s%ac_d%ac_u%gp | |
11822 | s%ac_u%ac_e%gp | |
11823 | EOF | |
11824 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
11825 | rm -f conftest.hdr | |
11826 | ||
11827 | # This sed command replaces #undef with comments. This is necessary, for | |
11828 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
11829 | # on some systems where configure will not decide to define it. | |
11830 | cat >> conftest.vals <<\EOF | |
11831 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
11832 | EOF | |
11833 | ||
11834 | # Break up conftest.vals because some shells have a limit on | |
11835 | # the size of here documents, and old seds have small limits too. | |
11836 | ||
11837 | rm -f conftest.tail | |
11838 | while : | |
11839 | do | |
11840 | ac_lines=`grep -c . conftest.vals` | |
11841 | # grep -c gives empty output for an empty file on some AIX systems. | |
11842 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
11843 | # Write a limited-size here document to conftest.frag. | |
11844 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
11845 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
11846 | echo 'CEOF | |
11847 | sed -f conftest.frag conftest.in > conftest.out | |
11848 | rm -f conftest.in | |
11849 | mv conftest.out conftest.in | |
11850 | ' >> $CONFIG_STATUS | |
11851 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
11852 | rm -f conftest.vals | |
11853 | mv conftest.tail conftest.vals | |
11854 | done | |
11855 | rm -f conftest.vals | |
11856 | ||
11857 | cat >> $CONFIG_STATUS <<\EOF | |
11858 | rm -f conftest.frag conftest.h | |
11859 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
11860 | cat conftest.in >> conftest.h | |
11861 | rm -f conftest.in | |
11862 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
11863 | echo "$ac_file is unchanged" | |
11864 | rm -f conftest.h | |
11865 | else | |
11866 | # Remove last slash and all that follows it. Not all systems have dirname. | |
11867 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
11868 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
11869 | # The file is in a subdirectory. | |
11870 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
11871 | fi | |
11872 | rm -f $ac_file | |
11873 | mv conftest.h $ac_file | |
11874 | fi | |
11875 | fi; done | |
11876 | ||
11877 | EOF | |
11878 | cat >> $CONFIG_STATUS <<EOF | |
11879 | ||
11880 | LN_S="${ac_cv_prog_LN_S}" | |
11881 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
11882 | ||
11883 | ||
11884 | EOF | |
11885 | cat >> $CONFIG_STATUS <<\EOF | |
11886 | ||
11887 | chmod +x wx-config | |
f7a11f8c RR |
11888 | if test ! -d include; then |
11889 | mkdir include | |
11890 | fi | |
11891 | if test ! -d include/wx; then | |
11892 | mkdir include/wx | |
11893 | fi | |
11894 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
11895 | mkdir include/wx/${TOOLKIT_DIR} | |
11896 | fi | |
11897 | cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
a16d3c04 KB |
11898 | |
11899 | exit 0 | |
11900 | EOF | |
11901 | chmod +x $CONFIG_STATUS | |
11902 | rm -fr confdefs* $ac_clean_files | |
11903 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
11904 | ||
11905 |