]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | # aclocal.m4 generated automatically by aclocal 1.6 -*- Autoconf -*- | |
7 | ||
8 | # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 | |
9 | # Free Software Foundation, Inc. | |
10 | # This file is free software; the Free Software Foundation | |
11 | # gives unlimited permission to copy and/or distribute it, | |
12 | # with or without modifications, as long as this notice is preserved. | |
13 | ||
14 | # This program is distributed in the hope that it will be useful, | |
15 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
16 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
17 | # PARTICULAR PURPOSE. | |
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 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | # Configure paths for GTK+ | |
59 | # Owen Taylor 1997-2001 | |
60 | ||
61 | ||
62 | ||
63 | # Configure paths for GTK+ | |
64 | # Owen Taylor 97-11-3 | |
65 | ||
66 | ||
67 | ||
68 | # Guess values for system-dependent variables and create Makefiles. | |
69 | # Generated automatically using autoconf version 2.13 | |
70 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
71 | # | |
72 | # This configure script is free software; the Free Software Foundation | |
73 | # gives unlimited permission to copy, distribute and modify it. | |
74 | ||
75 | # Defaults: | |
76 | ac_help= | |
77 | ac_default_prefix=/usr/local | |
78 | # Any additions from configure.in: | |
79 | ac_help="$ac_help | |
80 | --enable-gui use GUI classes" | |
81 | ac_help="$ac_help | |
82 | --enable-universal use wxWindows GUI controls instead of native ones" | |
83 | ac_help="$ac_help | |
84 | --with-gtk use GTK+" | |
85 | ac_help="$ac_help | |
86 | --with-motif use Motif/Lesstif" | |
87 | ac_help="$ac_help | |
88 | --with-mac use Mac OS X" | |
89 | ac_help="$ac_help | |
90 | --with-wine use WINE" | |
91 | ac_help="$ac_help | |
92 | --with-msw use MS-Windows" | |
93 | ac_help="$ac_help | |
94 | --with-pm use OS/2 Presentation Manager" | |
95 | ac_help="$ac_help | |
96 | --with-mgl use SciTech MGL" | |
97 | ac_help="$ac_help | |
98 | --with-microwin use MicroWindows" | |
99 | ac_help="$ac_help | |
100 | --with-x11 use X11" | |
101 | ac_help="$ac_help | |
102 | --enable-nanox use NanoX" | |
103 | ac_help="$ac_help | |
104 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
105 | ac_help="$ac_help | |
106 | --with-libpng use libpng (PNG image format)" | |
107 | ac_help="$ac_help | |
108 | --with-libjpeg use libjpeg (JPEG file format)" | |
109 | ac_help="$ac_help | |
110 | --with-libtiff use libtiff (TIFF file format)" | |
111 | ac_help="$ac_help | |
112 | --with-opengl use OpenGL (or Mesa)" | |
113 | ac_help="$ac_help | |
114 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
115 | ac_help="$ac_help | |
116 | --with-regex enable support for wxRegEx class" | |
117 | ac_help="$ac_help | |
118 | --with-zlib use zlib for LZW compression" | |
119 | ac_help="$ac_help | |
120 | --with-odbc use the IODBC and wxODBC classes" | |
121 | ac_help="$ac_help | |
122 | --enable-shared create shared library code" | |
123 | ac_help="$ac_help | |
124 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
125 | ac_help="$ac_help | |
126 | --enable-optimise create optimised code" | |
127 | ac_help="$ac_help | |
128 | --enable-debug same as debug_flag and debug_info" | |
129 | ac_help="$ac_help | |
130 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
131 | ac_help="$ac_help | |
132 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
133 | ac_help="$ac_help | |
134 | --enable-debug_info create code with debugging information" | |
135 | ac_help="$ac_help | |
136 | --enable-debug_gdb create code with extra GDB debugging information" | |
137 | ac_help="$ac_help | |
138 | --enable-debug_cntxt use wxDebugContext" | |
139 | ac_help="$ac_help | |
140 | --enable-mem_tracing create code with memory tracing" | |
141 | ac_help="$ac_help | |
142 | --enable-profile create code with profiling information" | |
143 | ac_help="$ac_help | |
144 | --enable-no_rtti create code without RTTI information" | |
145 | ac_help="$ac_help | |
146 | --enable-no_exceptions create code without C++ exceptions handling" | |
147 | ac_help="$ac_help | |
148 | --enable-permissive compile code disregarding strict ANSI" | |
149 | ac_help="$ac_help | |
150 | --enable-no_deps create code without dependency information" | |
151 | ac_help="$ac_help | |
152 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
153 | ac_help="$ac_help | |
154 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
155 | ac_help="$ac_help | |
156 | --enable-intl use internationalization system" | |
157 | ac_help="$ac_help | |
158 | --enable-config use wxConfig (and derived) classes" | |
159 | ac_help="$ac_help | |
160 | --enable-protocols use wxProtocol and derived classes" | |
161 | ac_help="$ac_help | |
162 | --enable-ftp use wxFTP (requires wxProtocol" | |
163 | ac_help="$ac_help | |
164 | --enable-http use wxHTTP (requires wxProtocol" | |
165 | ac_help="$ac_help | |
166 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
167 | ac_help="$ac_help | |
168 | --enable-sockets use socket/network classes" | |
169 | ac_help="$ac_help | |
170 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
171 | ac_help="$ac_help | |
172 | --enable-cmdline use wxCmdLineParser class" | |
173 | ac_help="$ac_help | |
174 | --enable-datetime use wxDateTime class" | |
175 | ac_help="$ac_help | |
176 | --enable-timedate use obsolete wxDate/wxTime classes" | |
177 | ac_help="$ac_help | |
178 | --enable-stopwatch use wxStopWatch class" | |
179 | ac_help="$ac_help | |
180 | --enable-dialupman use dialup network classes" | |
181 | ac_help="$ac_help | |
182 | --enable-apple_ieee use the Apple IEEE codec" | |
183 | ac_help="$ac_help | |
184 | --enable-timer use wxTimer class" | |
185 | ac_help="$ac_help | |
186 | --enable-wave use wxWave class" | |
187 | ac_help="$ac_help | |
188 | --enable-fraction use wxFraction class" | |
189 | ac_help="$ac_help | |
190 | --enable-dynlib use wxLibrary class for DLL loading" | |
191 | ac_help="$ac_help | |
192 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
193 | ac_help="$ac_help | |
194 | --enable-longlong use wxLongLong class" | |
195 | ac_help="$ac_help | |
196 | --enable-geometry use geometry class" | |
197 | ac_help="$ac_help | |
198 | --enable-log use logging system" | |
199 | ac_help="$ac_help | |
200 | --enable-streams use wxStream etc classes" | |
201 | ac_help="$ac_help | |
202 | --enable-file use wxFile classes" | |
203 | ac_help="$ac_help | |
204 | --enable-ffile use wxFFile classes" | |
205 | ac_help="$ac_help | |
206 | --enable-textbuf use wxTextBuffer class" | |
207 | ac_help="$ac_help | |
208 | --enable-textfile use wxTextFile class" | |
209 | ac_help="$ac_help | |
210 | --enable-fontmap use font encodings conversion classes" | |
211 | ac_help="$ac_help | |
212 | --enable-unicode compile wxString with Unicode support" | |
213 | ac_help="$ac_help | |
214 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
215 | ac_help="$ac_help | |
216 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
217 | ac_help="$ac_help | |
218 | --enable-std_iostreams use standard C++ stream classes" | |
219 | ac_help="$ac_help | |
220 | --enable-filesystem use virtual file systems classes" | |
221 | ac_help="$ac_help | |
222 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
223 | ac_help="$ac_help | |
224 | --enable-fs_zip use virtual ZIP filesystems" | |
225 | ac_help="$ac_help | |
226 | --enable-zipstream use wxZipInputStream" | |
227 | ac_help="$ac_help | |
228 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
229 | ac_help="$ac_help | |
230 | --enable-snglinst use wxSingleInstanceChecker class" | |
231 | ac_help="$ac_help | |
232 | --enable-mimetype use wxMimeTypesManager" | |
233 | ac_help="$ac_help | |
234 | --enable-sysoptions use wxSystemOptions" | |
235 | ac_help="$ac_help | |
236 | --enable-url use wxURL class" | |
237 | ac_help="$ac_help | |
238 | --enable-protocol use wxProtocol class" | |
239 | ac_help="$ac_help | |
240 | --enable-protocol-http HTTP support in wxProtocol" | |
241 | ac_help="$ac_help | |
242 | --enable-protocol-ftp FTP support in wxProtocol" | |
243 | ac_help="$ac_help | |
244 | --enable-protocol-file FILE support in wxProtocol" | |
245 | ac_help="$ac_help | |
246 | --enable-threads use threads" | |
247 | ac_help="$ac_help | |
248 | --enable-docview use document view architecture" | |
249 | ac_help="$ac_help | |
250 | --enable-help use help subsystem" | |
251 | ac_help="$ac_help | |
252 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
253 | ac_help="$ac_help | |
254 | --enable-html use wxHTML sub-library" | |
255 | ac_help="$ac_help | |
256 | --enable-htmlhelp use wxHTML-based help" | |
257 | ac_help="$ac_help | |
258 | --enable-constraints use layout-constraints system" | |
259 | ac_help="$ac_help | |
260 | --enable-printarch use printing architecture" | |
261 | ac_help="$ac_help | |
262 | --enable-mdi use multiple document interface architecture" | |
263 | ac_help="$ac_help | |
264 | --enable-loggui use standard GUI logger" | |
265 | ac_help="$ac_help | |
266 | --enable-logwin use wxLogWindow" | |
267 | ac_help="$ac_help | |
268 | --enable-logdialog use wxLogDialog" | |
269 | ac_help="$ac_help | |
270 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
271 | ac_help="$ac_help | |
272 | --enable-prologio use Prolog IO library" | |
273 | ac_help="$ac_help | |
274 | --enable-resources use wxWindows resources" | |
275 | ac_help="$ac_help | |
276 | --enable-xresources use X resources for save (default for gtk+)" | |
277 | ac_help="$ac_help | |
278 | --enable-clipboard use wxClipboard classes" | |
279 | ac_help="$ac_help | |
280 | --enable-dnd use Drag'n'Drop classes" | |
281 | ac_help="$ac_help | |
282 | --enable-metafile use win32 metafiles" | |
283 | ac_help="$ac_help | |
284 | --enable-treelayout use wxTreeLayout classes" | |
285 | ac_help="$ac_help | |
286 | --enable-controls use all usual controls" | |
287 | ac_help="$ac_help | |
288 | --enable-accel use accelerators" | |
289 | ac_help="$ac_help | |
290 | --enable-button use wxButton class" | |
291 | ac_help="$ac_help | |
292 | --enable-bmpbutton use wxBitmapButton class" | |
293 | ac_help="$ac_help | |
294 | --enable-calendar use wxCalendarCtrl class" | |
295 | ac_help="$ac_help | |
296 | --enable-caret use wxCaret class" | |
297 | ac_help="$ac_help | |
298 | --enable-checkbox use wxCheckBox class" | |
299 | ac_help="$ac_help | |
300 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
301 | ac_help="$ac_help | |
302 | --enable-choice use wxChoice class" | |
303 | ac_help="$ac_help | |
304 | --enable-combobox use wxComboBox classes" | |
305 | ac_help="$ac_help | |
306 | --enable-gauge use wxGauge class" | |
307 | ac_help="$ac_help | |
308 | --enable-grid use wxGrid class" | |
309 | ac_help="$ac_help | |
310 | --enable-newgrid use new wxGrid class" | |
311 | ac_help="$ac_help | |
312 | --enable-imaglist use wxImageList class" | |
313 | ac_help="$ac_help | |
314 | --enable-listbox use wxListBox class" | |
315 | ac_help="$ac_help | |
316 | --enable-listctrl use wxListCtrl class" | |
317 | ac_help="$ac_help | |
318 | --enable-notebook use wxNotebook class" | |
319 | ac_help="$ac_help | |
320 | --enable-propsheet use wxPropertySheet class" | |
321 | ac_help="$ac_help | |
322 | --enable-radiobox use wxRadioBox class" | |
323 | ac_help="$ac_help | |
324 | --enable-radiobtn use wxRadioButton class" | |
325 | ac_help="$ac_help | |
326 | --enable-sash use wxSashWindow class" | |
327 | ac_help="$ac_help | |
328 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
329 | ac_help="$ac_help | |
330 | --enable-slider use wxSlider class" | |
331 | ac_help="$ac_help | |
332 | --enable-spinbtn use wxSpinButton class" | |
333 | ac_help="$ac_help | |
334 | --enable-spinctrl use wxSpinCtrl class" | |
335 | ac_help="$ac_help | |
336 | --enable-splitter use wxSplitterWindow class" | |
337 | ac_help="$ac_help | |
338 | --enable-statbmp use wxStaticBitmap class" | |
339 | ac_help="$ac_help | |
340 | --enable-statbox use wxStaticBox class" | |
341 | ac_help="$ac_help | |
342 | --enable-statline use wxStaticLine class" | |
343 | ac_help="$ac_help | |
344 | --enable-stattext use wxStaticText class" | |
345 | ac_help="$ac_help | |
346 | --enable-statusbar use wxStatusBar class" | |
347 | ac_help="$ac_help | |
348 | --enable-tabdialog use wxTabControl class" | |
349 | ac_help="$ac_help | |
350 | --enable-textctrl use wxTextCtrl class" | |
351 | ac_help="$ac_help | |
352 | --enable-togglebtn use wxToggleButton class" | |
353 | ac_help="$ac_help | |
354 | --enable-toolbar use wxToolBar class" | |
355 | ac_help="$ac_help | |
356 | --enable-tbarnative use native wxToolBar class" | |
357 | ac_help="$ac_help | |
358 | --enable-tbarsmpl use wxToolBarSimple class" | |
359 | ac_help="$ac_help | |
360 | --enable-treectrl use wxTreeCtrl class" | |
361 | ac_help="$ac_help | |
362 | --enable-tipwindow use wxTipWindow class" | |
363 | ac_help="$ac_help | |
364 | --enable-popupwin use wxPopUpWindow class" | |
365 | ac_help="$ac_help | |
366 | --enable-commondlg use all common dialogs" | |
367 | ac_help="$ac_help | |
368 | --enable-choicedlg use wxChoiceDialog" | |
369 | ac_help="$ac_help | |
370 | --enable-coldlg use wxColourDialog" | |
371 | ac_help="$ac_help | |
372 | --enable-filedlg use wxFileDialog" | |
373 | ac_help="$ac_help | |
374 | --enable-finddlg use wxFindReplaceDialog" | |
375 | ac_help="$ac_help | |
376 | --enable-fontdlg use wxFontDialog" | |
377 | ac_help="$ac_help | |
378 | --enable-dirdlg use wxDirDialog" | |
379 | ac_help="$ac_help | |
380 | --enable-msgdlg use wxMessageDialog" | |
381 | ac_help="$ac_help | |
382 | --enable-numberdlg use wxNumberEntryDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-splash use wxSplashScreen" | |
385 | ac_help="$ac_help | |
386 | --enable-textdlg use wxTextDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-tipdlg use startup tips" | |
389 | ac_help="$ac_help | |
390 | --enable-progressdlg use wxProgressDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-wizarddlg use wxWizard" | |
393 | ac_help="$ac_help | |
394 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
395 | ac_help="$ac_help | |
396 | --enable-miniframe use wxMiniFrame class" | |
397 | ac_help="$ac_help | |
398 | --enable-tooltips use wxToolTip class" | |
399 | ac_help="$ac_help | |
400 | --enable-splines use spline drawing code" | |
401 | ac_help="$ac_help | |
402 | --enable-validators use wxValidator and derived classes" | |
403 | ac_help="$ac_help | |
404 | --enable-busyinfo use wxBusyInfo" | |
405 | ac_help="$ac_help | |
406 | --enable-joystick use wxJoystick (Linux only)" | |
407 | ac_help="$ac_help | |
408 | --enable-metafiles use wxMetaFile (Windows only)" | |
409 | ac_help="$ac_help | |
410 | --enable-dragimage use wxDragImage" | |
411 | ac_help="$ac_help | |
412 | --enable-palette use wxPalette class" | |
413 | ac_help="$ac_help | |
414 | --enable-image use wxImage class" | |
415 | ac_help="$ac_help | |
416 | --enable-gif use gif images (GIF file format)" | |
417 | ac_help="$ac_help | |
418 | --enable-pcx use pcx images (PCX file format)" | |
419 | ac_help="$ac_help | |
420 | --enable-iff use iff images (IFF file format)" | |
421 | ac_help="$ac_help | |
422 | --enable-pnm use pnm images (PNM file format)" | |
423 | ac_help="$ac_help | |
424 | --enable-xpm use xpm images (XPM file format)" | |
425 | ac_help="$ac_help | |
426 | --enable-icocur use Windows ICO and CUR formats" | |
427 | ac_help="$ac_help | |
428 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
429 | ac_help="$ac_help | |
430 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
431 | ac_help="$ac_help | |
432 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
433 | ac_help="$ac_help | |
434 | --disable-gtktest Do not try to compile and run a test GTK program" | |
435 | ac_help="$ac_help | |
436 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
437 | ac_help="$ac_help | |
438 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
439 | ac_help="$ac_help | |
440 | --disable-gtktest Do not try to compile and run a test GTK program" | |
441 | ac_help="$ac_help | |
442 | --with-x use the X Window System" | |
443 | ac_help="$ac_help | |
444 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
445 | ||
446 | # Initialize some variables set by options. | |
447 | # The variables have the same names as the options, with | |
448 | # dashes changed to underlines. | |
449 | build=NONE | |
450 | cache_file=./config.cache | |
451 | exec_prefix=NONE | |
452 | host=NONE | |
453 | no_create= | |
454 | nonopt=NONE | |
455 | no_recursion= | |
456 | prefix=NONE | |
457 | program_prefix=NONE | |
458 | program_suffix=NONE | |
459 | program_transform_name=s,x,x, | |
460 | silent= | |
461 | site= | |
462 | srcdir= | |
463 | target=NONE | |
464 | verbose= | |
465 | x_includes=NONE | |
466 | x_libraries=NONE | |
467 | bindir='${exec_prefix}/bin' | |
468 | sbindir='${exec_prefix}/sbin' | |
469 | libexecdir='${exec_prefix}/libexec' | |
470 | datadir='${prefix}/share' | |
471 | sysconfdir='${prefix}/etc' | |
472 | sharedstatedir='${prefix}/com' | |
473 | localstatedir='${prefix}/var' | |
474 | libdir='${exec_prefix}/lib' | |
475 | includedir='${prefix}/include' | |
476 | oldincludedir='/usr/include' | |
477 | infodir='${prefix}/info' | |
478 | mandir='${prefix}/man' | |
479 | ||
480 | # Initialize some other variables. | |
481 | subdirs= | |
482 | MFLAGS= MAKEFLAGS= | |
483 | SHELL=${CONFIG_SHELL-/bin/sh} | |
484 | # Maximum number of lines to put in a shell here document. | |
485 | ac_max_here_lines=12 | |
486 | ||
487 | ac_prev= | |
488 | for ac_option | |
489 | do | |
490 | ||
491 | # If the previous option needs an argument, assign it. | |
492 | if test -n "$ac_prev"; then | |
493 | eval "$ac_prev=\$ac_option" | |
494 | ac_prev= | |
495 | continue | |
496 | fi | |
497 | ||
498 | case "$ac_option" in | |
499 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
500 | *) ac_optarg= ;; | |
501 | esac | |
502 | ||
503 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
504 | ||
505 | case "$ac_option" in | |
506 | ||
507 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
508 | ac_prev=bindir ;; | |
509 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
510 | bindir="$ac_optarg" ;; | |
511 | ||
512 | -build | --build | --buil | --bui | --bu) | |
513 | ac_prev=build ;; | |
514 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
515 | build="$ac_optarg" ;; | |
516 | ||
517 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
518 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
519 | ac_prev=cache_file ;; | |
520 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
521 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
522 | cache_file="$ac_optarg" ;; | |
523 | ||
524 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
525 | ac_prev=datadir ;; | |
526 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
527 | | --da=*) | |
528 | datadir="$ac_optarg" ;; | |
529 | ||
530 | -disable-* | --disable-*) | |
531 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
532 | # Reject names that are not valid shell variable names. | |
533 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
534 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
535 | fi | |
536 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
537 | eval "enable_${ac_feature}=no" ;; | |
538 | ||
539 | -enable-* | --enable-*) | |
540 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
541 | # Reject names that are not valid shell variable names. | |
542 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
543 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
544 | fi | |
545 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
546 | case "$ac_option" in | |
547 | *=*) ;; | |
548 | *) ac_optarg=yes ;; | |
549 | esac | |
550 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
551 | ||
552 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
553 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
554 | | --exec | --exe | --ex) | |
555 | ac_prev=exec_prefix ;; | |
556 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
557 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
558 | | --exec=* | --exe=* | --ex=*) | |
559 | exec_prefix="$ac_optarg" ;; | |
560 | ||
561 | -gas | --gas | --ga | --g) | |
562 | # Obsolete; use --with-gas. | |
563 | with_gas=yes ;; | |
564 | ||
565 | -help | --help | --hel | --he) | |
566 | # Omit some internal or obsolete options to make the list less imposing. | |
567 | # This message is too long to be a string in the A/UX 3.1 sh. | |
568 | cat << EOF | |
569 | Usage: configure [options] [host] | |
570 | Options: [defaults in brackets after descriptions] | |
571 | Configuration: | |
572 | --cache-file=FILE cache test results in FILE | |
573 | --help print this message | |
574 | --no-create do not create output files | |
575 | --quiet, --silent do not print \`checking...' messages | |
576 | --version print the version of autoconf that created configure | |
577 | Directory and file names: | |
578 | --prefix=PREFIX install architecture-independent files in PREFIX | |
579 | [$ac_default_prefix] | |
580 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
581 | [same as prefix] | |
582 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
583 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
584 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
585 | --datadir=DIR read-only architecture-independent data in DIR | |
586 | [PREFIX/share] | |
587 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
588 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
589 | [PREFIX/com] | |
590 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
591 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
592 | --includedir=DIR C header files in DIR [PREFIX/include] | |
593 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
594 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
595 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
596 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
597 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
598 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
599 | --program-transform-name=PROGRAM | |
600 | run sed PROGRAM on installed program names | |
601 | EOF | |
602 | cat << EOF | |
603 | Host type: | |
604 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
605 | --host=HOST configure for HOST [guessed] | |
606 | --target=TARGET configure for TARGET [TARGET=HOST] | |
607 | Features and packages: | |
608 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
609 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
610 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
611 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
612 | --x-includes=DIR X include files are in DIR | |
613 | --x-libraries=DIR X library files are in DIR | |
614 | EOF | |
615 | if test -n "$ac_help"; then | |
616 | echo "--enable and --with options recognized:$ac_help" | |
617 | fi | |
618 | exit 0 ;; | |
619 | ||
620 | -host | --host | --hos | --ho) | |
621 | ac_prev=host ;; | |
622 | -host=* | --host=* | --hos=* | --ho=*) | |
623 | host="$ac_optarg" ;; | |
624 | ||
625 | -includedir | --includedir | --includedi | --included | --include \ | |
626 | | --includ | --inclu | --incl | --inc) | |
627 | ac_prev=includedir ;; | |
628 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
629 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
630 | includedir="$ac_optarg" ;; | |
631 | ||
632 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
633 | ac_prev=infodir ;; | |
634 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
635 | infodir="$ac_optarg" ;; | |
636 | ||
637 | -libdir | --libdir | --libdi | --libd) | |
638 | ac_prev=libdir ;; | |
639 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
640 | libdir="$ac_optarg" ;; | |
641 | ||
642 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
643 | | --libexe | --libex | --libe) | |
644 | ac_prev=libexecdir ;; | |
645 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
646 | | --libexe=* | --libex=* | --libe=*) | |
647 | libexecdir="$ac_optarg" ;; | |
648 | ||
649 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
650 | | --localstate | --localstat | --localsta | --localst \ | |
651 | | --locals | --local | --loca | --loc | --lo) | |
652 | ac_prev=localstatedir ;; | |
653 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
654 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
655 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
656 | localstatedir="$ac_optarg" ;; | |
657 | ||
658 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
659 | ac_prev=mandir ;; | |
660 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
661 | mandir="$ac_optarg" ;; | |
662 | ||
663 | -nfp | --nfp | --nf) | |
664 | # Obsolete; use --without-fp. | |
665 | with_fp=no ;; | |
666 | ||
667 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
668 | | --no-cr | --no-c) | |
669 | no_create=yes ;; | |
670 | ||
671 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
672 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
673 | no_recursion=yes ;; | |
674 | ||
675 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
676 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
677 | | --oldin | --oldi | --old | --ol | --o) | |
678 | ac_prev=oldincludedir ;; | |
679 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
680 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
681 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
682 | oldincludedir="$ac_optarg" ;; | |
683 | ||
684 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
685 | ac_prev=prefix ;; | |
686 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
687 | prefix="$ac_optarg" ;; | |
688 | ||
689 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
690 | | --program-pre | --program-pr | --program-p) | |
691 | ac_prev=program_prefix ;; | |
692 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
693 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
694 | program_prefix="$ac_optarg" ;; | |
695 | ||
696 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
697 | | --program-suf | --program-su | --program-s) | |
698 | ac_prev=program_suffix ;; | |
699 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
700 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
701 | program_suffix="$ac_optarg" ;; | |
702 | ||
703 | -program-transform-name | --program-transform-name \ | |
704 | | --program-transform-nam | --program-transform-na \ | |
705 | | --program-transform-n | --program-transform- \ | |
706 | | --program-transform | --program-transfor \ | |
707 | | --program-transfo | --program-transf \ | |
708 | | --program-trans | --program-tran \ | |
709 | | --progr-tra | --program-tr | --program-t) | |
710 | ac_prev=program_transform_name ;; | |
711 | -program-transform-name=* | --program-transform-name=* \ | |
712 | | --program-transform-nam=* | --program-transform-na=* \ | |
713 | | --program-transform-n=* | --program-transform-=* \ | |
714 | | --program-transform=* | --program-transfor=* \ | |
715 | | --program-transfo=* | --program-transf=* \ | |
716 | | --program-trans=* | --program-tran=* \ | |
717 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
718 | program_transform_name="$ac_optarg" ;; | |
719 | ||
720 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
721 | | -silent | --silent | --silen | --sile | --sil) | |
722 | silent=yes ;; | |
723 | ||
724 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
725 | ac_prev=sbindir ;; | |
726 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
727 | | --sbi=* | --sb=*) | |
728 | sbindir="$ac_optarg" ;; | |
729 | ||
730 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
731 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
732 | | --sharedst | --shareds | --shared | --share | --shar \ | |
733 | | --sha | --sh) | |
734 | ac_prev=sharedstatedir ;; | |
735 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
736 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
737 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
738 | | --sha=* | --sh=*) | |
739 | sharedstatedir="$ac_optarg" ;; | |
740 | ||
741 | -site | --site | --sit) | |
742 | ac_prev=site ;; | |
743 | -site=* | --site=* | --sit=*) | |
744 | site="$ac_optarg" ;; | |
745 | ||
746 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
747 | ac_prev=srcdir ;; | |
748 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
749 | srcdir="$ac_optarg" ;; | |
750 | ||
751 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
752 | | --syscon | --sysco | --sysc | --sys | --sy) | |
753 | ac_prev=sysconfdir ;; | |
754 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
755 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
756 | sysconfdir="$ac_optarg" ;; | |
757 | ||
758 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
759 | ac_prev=target ;; | |
760 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
761 | target="$ac_optarg" ;; | |
762 | ||
763 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
764 | verbose=yes ;; | |
765 | ||
766 | -version | --version | --versio | --versi | --vers) | |
767 | echo "configure generated by autoconf version 2.13" | |
768 | exit 0 ;; | |
769 | ||
770 | -with-* | --with-*) | |
771 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
772 | # Reject names that are not valid shell variable names. | |
773 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
774 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
775 | fi | |
776 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
777 | case "$ac_option" in | |
778 | *=*) ;; | |
779 | *) ac_optarg=yes ;; | |
780 | esac | |
781 | eval "with_${ac_package}='$ac_optarg'" ;; | |
782 | ||
783 | -without-* | --without-*) | |
784 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
785 | # Reject names that are not valid shell variable names. | |
786 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
787 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
788 | fi | |
789 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
790 | eval "with_${ac_package}=no" ;; | |
791 | ||
792 | --x) | |
793 | # Obsolete; use --with-x. | |
794 | with_x=yes ;; | |
795 | ||
796 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
797 | | --x-incl | --x-inc | --x-in | --x-i) | |
798 | ac_prev=x_includes ;; | |
799 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
800 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
801 | x_includes="$ac_optarg" ;; | |
802 | ||
803 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
804 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
805 | ac_prev=x_libraries ;; | |
806 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
807 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
808 | x_libraries="$ac_optarg" ;; | |
809 | ||
810 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
811 | ;; | |
812 | ||
813 | *) | |
814 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
815 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
816 | fi | |
817 | if test "x$nonopt" != xNONE; then | |
818 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
819 | fi | |
820 | nonopt="$ac_option" | |
821 | ;; | |
822 | ||
823 | esac | |
824 | done | |
825 | ||
826 | if test -n "$ac_prev"; then | |
827 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
828 | fi | |
829 | ||
830 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
831 | ||
832 | # File descriptor usage: | |
833 | # 0 standard input | |
834 | # 1 file creation | |
835 | # 2 errors and warnings | |
836 | # 3 some systems may open it to /dev/tty | |
837 | # 4 used on the Kubota Titan | |
838 | # 6 checking for... messages and results | |
839 | # 5 compiler messages saved in config.log | |
840 | if test "$silent" = yes; then | |
841 | exec 6>/dev/null | |
842 | else | |
843 | exec 6>&1 | |
844 | fi | |
845 | exec 5>./config.log | |
846 | ||
847 | echo "\ | |
848 | This file contains any messages produced by compilers while | |
849 | running configure, to aid debugging if configure makes a mistake. | |
850 | " 1>&5 | |
851 | ||
852 | # Strip out --no-create and --no-recursion so they do not pile up. | |
853 | # Also quote any args containing shell metacharacters. | |
854 | ac_configure_args= | |
855 | for ac_arg | |
856 | do | |
857 | case "$ac_arg" in | |
858 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
859 | | --no-cr | --no-c) ;; | |
860 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
861 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
862 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
863 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
864 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
865 | esac | |
866 | done | |
867 | ||
868 | # NLS nuisances. | |
869 | # Only set these to C if already set. These must not be set unconditionally | |
870 | # because not all systems understand e.g. LANG=C (notably SCO). | |
871 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
872 | # Non-C LC_CTYPE values break the ctype check. | |
873 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
874 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
875 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
876 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
877 | ||
878 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
879 | rm -rf conftest* confdefs.h | |
880 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
881 | echo > confdefs.h | |
882 | ||
883 | # A filename unique to this package, relative to the directory that | |
884 | # configure is in, which we can look for to find out if srcdir is correct. | |
885 | ac_unique_file=wx-config.in | |
886 | ||
887 | # Find the source files, if location was not specified. | |
888 | if test -z "$srcdir"; then | |
889 | ac_srcdir_defaulted=yes | |
890 | # Try the directory containing this script, then its parent. | |
891 | ac_prog=$0 | |
892 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
893 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
894 | srcdir=$ac_confdir | |
895 | if test ! -r $srcdir/$ac_unique_file; then | |
896 | srcdir=.. | |
897 | fi | |
898 | else | |
899 | ac_srcdir_defaulted=no | |
900 | fi | |
901 | if test ! -r $srcdir/$ac_unique_file; then | |
902 | if test "$ac_srcdir_defaulted" = yes; then | |
903 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
904 | else | |
905 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
906 | fi | |
907 | fi | |
908 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
909 | ||
910 | # Prefer explicitly selected file to automatically selected ones. | |
911 | if test -z "$CONFIG_SITE"; then | |
912 | if test "x$prefix" != xNONE; then | |
913 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
914 | else | |
915 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
916 | fi | |
917 | fi | |
918 | for ac_site_file in $CONFIG_SITE; do | |
919 | if test -r "$ac_site_file"; then | |
920 | echo "loading site script $ac_site_file" | |
921 | . "$ac_site_file" | |
922 | fi | |
923 | done | |
924 | ||
925 | if test -r "$cache_file"; then | |
926 | echo "loading cache $cache_file" | |
927 | . $cache_file | |
928 | else | |
929 | echo "creating cache $cache_file" | |
930 | > $cache_file | |
931 | fi | |
932 | ||
933 | ac_ext=c | |
934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
935 | ac_cpp='$CPP $CPPFLAGS' | |
936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
938 | cross_compiling=$ac_cv_prog_cc_cross | |
939 | ||
940 | ac_exeext= | |
941 | ac_objext=o | |
942 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
943 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
944 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
945 | ac_n= ac_c=' | |
946 | ' ac_t=' ' | |
947 | else | |
948 | ac_n=-n ac_c= ac_t= | |
949 | fi | |
950 | else | |
951 | ac_n= ac_c='\c' ac_t= | |
952 | fi | |
953 | ||
954 | ||
955 | ||
956 | ac_aux_dir= | |
957 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
958 | if test -f $ac_dir/install-sh; then | |
959 | ac_aux_dir=$ac_dir | |
960 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
961 | break | |
962 | elif test -f $ac_dir/install.sh; then | |
963 | ac_aux_dir=$ac_dir | |
964 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
965 | break | |
966 | fi | |
967 | done | |
968 | if test -z "$ac_aux_dir"; then | |
969 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
970 | fi | |
971 | ac_config_guess=$ac_aux_dir/config.guess | |
972 | ac_config_sub=$ac_aux_dir/config.sub | |
973 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
974 | ||
975 | ||
976 | # Do some error checking and defaulting for the host and target type. | |
977 | # The inputs are: | |
978 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
979 | # | |
980 | # The rules are: | |
981 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
982 | # same time. | |
983 | # 2. Host defaults to nonopt. | |
984 | # 3. If nonopt is not specified, then host defaults to the current host, | |
985 | # as determined by config.guess. | |
986 | # 4. Target and build default to nonopt. | |
987 | # 5. If nonopt is not specified, then target and build default to host. | |
988 | ||
989 | # The aliases save the names the user supplied, while $host etc. | |
990 | # will get canonicalized. | |
991 | case $host---$target---$nonopt in | |
992 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
993 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
994 | esac | |
995 | ||
996 | ||
997 | # Make sure we can run config.sub. | |
998 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
999 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1000 | fi | |
1001 | ||
1002 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1003 | echo "configure:1004: checking host system type" >&5 | |
1004 | ||
1005 | host_alias=$host | |
1006 | case "$host_alias" in | |
1007 | NONE) | |
1008 | case $nonopt in | |
1009 | NONE) | |
1010 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1011 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1012 | fi ;; | |
1013 | *) host_alias=$nonopt ;; | |
1014 | esac ;; | |
1015 | esac | |
1016 | ||
1017 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1018 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1019 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1020 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1021 | echo "$ac_t""$host" 1>&6 | |
1022 | ||
1023 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1024 | echo "configure:1025: checking target system type" >&5 | |
1025 | ||
1026 | target_alias=$target | |
1027 | case "$target_alias" in | |
1028 | NONE) | |
1029 | case $nonopt in | |
1030 | NONE) target_alias=$host_alias ;; | |
1031 | *) target_alias=$nonopt ;; | |
1032 | esac ;; | |
1033 | esac | |
1034 | ||
1035 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1036 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1037 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1038 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1039 | echo "$ac_t""$target" 1>&6 | |
1040 | ||
1041 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1042 | echo "configure:1043: checking build system type" >&5 | |
1043 | ||
1044 | build_alias=$build | |
1045 | case "$build_alias" in | |
1046 | NONE) | |
1047 | case $nonopt in | |
1048 | NONE) build_alias=$host_alias ;; | |
1049 | *) build_alias=$nonopt ;; | |
1050 | esac ;; | |
1051 | esac | |
1052 | ||
1053 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1054 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1055 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1056 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1057 | echo "$ac_t""$build" 1>&6 | |
1058 | ||
1059 | test "$host_alias" != "$target_alias" && | |
1060 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1061 | NONENONEs,x,x, && | |
1062 | program_prefix=${target_alias}- | |
1063 | ||
1064 | ||
1065 | ||
1066 | WX_MAJOR_VERSION_NUMBER=2 | |
1067 | WX_MINOR_VERSION_NUMBER=3 | |
1068 | WX_RELEASE_NUMBER=3 | |
1069 | ||
1070 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1071 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1072 | ||
1073 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1074 | ||
1075 | WX_CURRENT=2 | |
1076 | WX_REVISION=0 | |
1077 | WX_AGE=0 | |
1078 | ||
1079 | ||
1080 | ||
1081 | USE_UNIX=1 | |
1082 | USE_WIN32=0 | |
1083 | USE_DOS=0 | |
1084 | USE_BEOS=0 | |
1085 | USE_MAC=0 | |
1086 | ||
1087 | USE_LINUX= | |
1088 | USE_SGI= | |
1089 | USE_HPUX= | |
1090 | USE_SYSV= | |
1091 | USE_SVR4= | |
1092 | USE_AIX= | |
1093 | USE_SUN= | |
1094 | USE_SOLARIS= | |
1095 | USE_SUNOS= | |
1096 | USE_ALPHA= | |
1097 | USE_OSF= | |
1098 | USE_BSD= | |
1099 | USE_DARWIN= | |
1100 | USE_FREEBSD= | |
1101 | USE_OPENBSD= | |
1102 | USE_NETBSD= | |
1103 | USE_VMS= | |
1104 | USE_ULTRIX= | |
1105 | USE_DATA_GENERAL= | |
1106 | ||
1107 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1108 | ||
1109 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" | |
1110 | ||
1111 | DEFAULT_wxUSE_GTK=0 | |
1112 | DEFAULT_wxUSE_MAC=0 | |
1113 | DEFAULT_wxUSE_MGL=0 | |
1114 | DEFAULT_wxUSE_MICROWIN=0 | |
1115 | DEFAULT_wxUSE_MOTIF=0 | |
1116 | DEFAULT_wxUSE_MSW=0 | |
1117 | DEFAULT_wxUSE_PM=0 | |
1118 | DEFAULT_wxUSE_WINE=0 | |
1119 | DEFAULT_wxUSE_X11=0 | |
1120 | ||
1121 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1122 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1123 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1124 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1125 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1126 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1127 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1128 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
1129 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1130 | ||
1131 | PROGRAM_EXT= | |
1132 | SO_SUFFIX=so | |
1133 | ||
1134 | case "${host}" in | |
1135 | *-hp-hpux* ) | |
1136 | USE_HPUX=1 | |
1137 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1138 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1139 | SO_SUFFIX=sl | |
1140 | cat >> confdefs.h <<\EOF | |
1141 | #define __HPUX__ 1 | |
1142 | EOF | |
1143 | ||
1144 | ;; | |
1145 | *-*-linux* ) | |
1146 | USE_LINUX=1 | |
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define __LINUX__ 1 | |
1149 | EOF | |
1150 | ||
1151 | TMP=`uname -m` | |
1152 | if test "x$TMP" = "xalpha"; then | |
1153 | USE_ALPHA=1 | |
1154 | cat >> confdefs.h <<\EOF | |
1155 | #define __ALPHA__ 1 | |
1156 | EOF | |
1157 | ||
1158 | fi | |
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-irix5* | *-*-irix6* ) | |
1162 | USE_SGI=1 | |
1163 | USE_SVR4=1 | |
1164 | cat >> confdefs.h <<\EOF | |
1165 | #define __SGI__ 1 | |
1166 | EOF | |
1167 | ||
1168 | cat >> confdefs.h <<\EOF | |
1169 | #define __SVR4__ 1 | |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1173 | ;; | |
1174 | *-*-solaris2* ) | |
1175 | USE_SUN=1 | |
1176 | USE_SOLARIS=1 | |
1177 | USE_SVR4=1 | |
1178 | cat >> confdefs.h <<\EOF | |
1179 | #define __SUN__ 1 | |
1180 | EOF | |
1181 | ||
1182 | cat >> confdefs.h <<\EOF | |
1183 | #define __SOLARIS__ 1 | |
1184 | EOF | |
1185 | ||
1186 | cat >> confdefs.h <<\EOF | |
1187 | #define __SVR4__ 1 | |
1188 | EOF | |
1189 | ||
1190 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1191 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1192 | ;; | |
1193 | *-*-sunos4* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SUNOS=1 | |
1196 | USE_BSD=1 | |
1197 | cat >> confdefs.h <<\EOF | |
1198 | #define __SUN__ 1 | |
1199 | EOF | |
1200 | ||
1201 | cat >> confdefs.h <<\EOF | |
1202 | #define __SUNOS__ 1 | |
1203 | EOF | |
1204 | ||
1205 | cat >> confdefs.h <<\EOF | |
1206 | #define __BSD__ 1 | |
1207 | EOF | |
1208 | ||
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1210 | ;; | |
1211 | *-*-freebsd*) | |
1212 | USE_BSD=1 | |
1213 | USE_FREEBSD=1 | |
1214 | cat >> confdefs.h <<\EOF | |
1215 | #define __FREEBSD__ 1 | |
1216 | EOF | |
1217 | ||
1218 | cat >> confdefs.h <<\EOF | |
1219 | #define __BSD__ 1 | |
1220 | EOF | |
1221 | ||
1222 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1223 | ;; | |
1224 | *-*-openbsd*) | |
1225 | USE_BSD=1 | |
1226 | USE_OPENBSD=1 | |
1227 | cat >> confdefs.h <<\EOF | |
1228 | #define __FREEBSD__ 1 | |
1229 | EOF | |
1230 | ||
1231 | cat >> confdefs.h <<\EOF | |
1232 | #define __OPENBSD__ 1 | |
1233 | EOF | |
1234 | ||
1235 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1236 | ;; | |
1237 | *-*-netbsd*) | |
1238 | USE_BSD=1 | |
1239 | USE_NETBSD=1 | |
1240 | cat >> confdefs.h <<\EOF | |
1241 | #define __FREEBSD__ 1 | |
1242 | EOF | |
1243 | ||
1244 | cat >> confdefs.h <<\EOF | |
1245 | #define __NETBSD__ 1 | |
1246 | EOF | |
1247 | ||
1248 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1249 | ;; | |
1250 | *-*-osf* ) | |
1251 | USE_ALPHA=1 | |
1252 | USE_OSF=1 | |
1253 | cat >> confdefs.h <<\EOF | |
1254 | #define __ALPHA__ 1 | |
1255 | EOF | |
1256 | ||
1257 | cat >> confdefs.h <<\EOF | |
1258 | #define __OSF__ 1 | |
1259 | EOF | |
1260 | ||
1261 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1262 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1263 | ;; | |
1264 | *-*-dgux5* ) | |
1265 | USE_ALPHA=1 | |
1266 | USE_SVR4=1 | |
1267 | cat >> confdefs.h <<\EOF | |
1268 | #define __ALPHA__ 1 | |
1269 | EOF | |
1270 | ||
1271 | cat >> confdefs.h <<\EOF | |
1272 | #define __SVR4__ 1 | |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1276 | ;; | |
1277 | *-*-sysv5* ) | |
1278 | USE_SYSV=1 | |
1279 | USE_SVR4=1 | |
1280 | cat >> confdefs.h <<\EOF | |
1281 | #define __SYSV__ 1 | |
1282 | EOF | |
1283 | ||
1284 | cat >> confdefs.h <<\EOF | |
1285 | #define __SVR4__ 1 | |
1286 | EOF | |
1287 | ||
1288 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1289 | ;; | |
1290 | *-*-aix* ) | |
1291 | USE_AIX=1 | |
1292 | USE_SYSV=1 | |
1293 | USE_SVR4=1 | |
1294 | cat >> confdefs.h <<\EOF | |
1295 | #define __AIX__ 1 | |
1296 | EOF | |
1297 | ||
1298 | cat >> confdefs.h <<\EOF | |
1299 | #define __SYSV__ 1 | |
1300 | EOF | |
1301 | ||
1302 | cat >> confdefs.h <<\EOF | |
1303 | #define __SVR4__ 1 | |
1304 | EOF | |
1305 | ||
1306 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1307 | ;; | |
1308 | ||
1309 | *-*-cygwin* | *-*-mingw32* ) | |
1310 | USE_UNIX=0 | |
1311 | USE_WIN32=1 | |
1312 | SO_SUFFIX=dll | |
1313 | cat >> confdefs.h <<\EOF | |
1314 | #define __WIN32__ 1 | |
1315 | EOF | |
1316 | ||
1317 | cat >> confdefs.h <<\EOF | |
1318 | #define __WIN95__ 1 | |
1319 | EOF | |
1320 | ||
1321 | cat >> confdefs.h <<\EOF | |
1322 | #define __WINDOWS__ 1 | |
1323 | EOF | |
1324 | ||
1325 | cat >> confdefs.h <<\EOF | |
1326 | #define __GNUWIN32__ 1 | |
1327 | EOF | |
1328 | ||
1329 | cat >> confdefs.h <<\EOF | |
1330 | #define STRICT 1 | |
1331 | EOF | |
1332 | ||
1333 | cat >> confdefs.h <<\EOF | |
1334 | #define WINVER 0x0400 | |
1335 | EOF | |
1336 | ||
1337 | PROGRAM_EXT=".exe" | |
1338 | RESCOMP=windres | |
1339 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1340 | ;; | |
1341 | ||
1342 | *-pc-msdosdjgpp ) | |
1343 | USE_UNIX=0 | |
1344 | USE_DOS=1 | |
1345 | cat >> confdefs.h <<\EOF | |
1346 | #define __DOS__ 1 | |
1347 | EOF | |
1348 | ||
1349 | PROGRAM_EXT=".exe" | |
1350 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1351 | ;; | |
1352 | ||
1353 | *-pc-os2_emx | *-pc-os2-emx ) | |
1354 | cat >> confdefs.h <<\EOF | |
1355 | #define __EMX__ 1 | |
1356 | EOF | |
1357 | ||
1358 | PROGRAM_EXT=".exe" | |
1359 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1360 | LIBS="$LIBS -lstdcpp" | |
1361 | ;; | |
1362 | ||
1363 | powerpc-*-darwin* ) | |
1364 | USE_BSD=1 | |
1365 | USE_DARWIN=1 | |
1366 | SO_SUFFIX=dylib | |
1367 | cat >> confdefs.h <<\EOF | |
1368 | #define __BSD__ 1 | |
1369 | EOF | |
1370 | ||
1371 | cat >> confdefs.h <<\EOF | |
1372 | #define __DARWIN__ 1 | |
1373 | EOF | |
1374 | ||
1375 | cat >> confdefs.h <<\EOF | |
1376 | #define __POWERPC__ 1 | |
1377 | EOF | |
1378 | ||
1379 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1380 | ;; | |
1381 | ||
1382 | *-*-beos* ) | |
1383 | USE_BEOS=1 | |
1384 | cat >> confdefs.h <<\EOF | |
1385 | #define __BEOS__ 1 | |
1386 | EOF | |
1387 | ||
1388 | ;; | |
1389 | ||
1390 | *) | |
1391 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1392 | esac | |
1393 | ||
1394 | if test "$USE_UNIX" = 1 ; then | |
1395 | wxUSE_UNIX=yes | |
1396 | cat >> confdefs.h <<\EOF | |
1397 | #define __UNIX__ 1 | |
1398 | EOF | |
1399 | ||
1400 | fi | |
1401 | ||
1402 | ||
1403 | ||
1404 | ||
1405 | wx_arg_cache_file="configarg.cache" | |
1406 | echo "loading argument cache $wx_arg_cache_file" | |
1407 | rm -f ${wx_arg_cache_file}.tmp | |
1408 | touch ${wx_arg_cache_file}.tmp | |
1409 | touch ${wx_arg_cache_file} | |
1410 | ||
1411 | ||
1412 | DEBUG_CONFIGURE=0 | |
1413 | if test $DEBUG_CONFIGURE = 1; then | |
1414 | DEFAULT_wxUSE_UNIVERSAL=no | |
1415 | ||
1416 | DEFAULT_wxUSE_NANOX=no | |
1417 | ||
1418 | DEFAULT_wxUSE_THREADS=yes | |
1419 | ||
1420 | DEFAULT_wxUSE_SHARED=yes | |
1421 | DEFAULT_wxUSE_SONAME=no | |
1422 | DEFAULT_wxUSE_OPTIMISE=no | |
1423 | DEFAULT_wxUSE_PROFILE=no | |
1424 | DEFAULT_wxUSE_NO_DEPS=no | |
1425 | DEFAULT_wxUSE_NO_RTTI=no | |
1426 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1427 | DEFAULT_wxUSE_PERMISSIVE=no | |
1428 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1429 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1430 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1431 | DEFAULT_wxUSE_MEM_TRACING=no | |
1432 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1433 | DEFAULT_wxUSE_DMALLOC=no | |
1434 | DEFAULT_wxUSE_PRECOMP=no | |
1435 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1436 | ||
1437 | DEFAULT_wxUSE_LOG=yes | |
1438 | DEFAULT_wxUSE_LOGWINDOW=no | |
1439 | DEFAULT_wxUSE_LOGGUI=no | |
1440 | DEFAULT_wxUSE_LOGDIALOG=no | |
1441 | ||
1442 | DEFAULT_wxUSE_GUI=yes | |
1443 | DEFAULT_wxUSE_CONTROLS=no | |
1444 | ||
1445 | DEFAULT_wxUSE_REGEX=no | |
1446 | DEFAULT_wxUSE_ZLIB=no | |
1447 | DEFAULT_wxUSE_LIBPNG=no | |
1448 | DEFAULT_wxUSE_LIBJPEG=no | |
1449 | DEFAULT_wxUSE_LIBTIFF=no | |
1450 | DEFAULT_wxUSE_ODBC=no | |
1451 | DEFAULT_wxUSE_OPENGL=no | |
1452 | ||
1453 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
1454 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
1455 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1456 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
1457 | DEFAULT_wxUSE_DATETIME=no | |
1458 | DEFAULT_wxUSE_TIMEDATE=no | |
1459 | DEFAULT_wxUSE_TIMER=no | |
1460 | DEFAULT_wxUSE_STOPWATCH=no | |
1461 | DEFAULT_wxUSE_FILE=no | |
1462 | DEFAULT_wxUSE_FFILE=no | |
1463 | DEFAULT_wxUSE_TEXTBUFFER=no | |
1464 | DEFAULT_wxUSE_TEXTFILE=no | |
1465 | DEFAULT_wxUSE_WAVE=no | |
1466 | DEFAULT_wxUSE_INTL=no | |
1467 | DEFAULT_wxUSE_CONFIG=no | |
1468 | DEFAULT_wxUSE_FONTMAP=no | |
1469 | DEFAULT_wxUSE_STREAMS=no | |
1470 | DEFAULT_wxUSE_SOCKETS=no | |
1471 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1472 | DEFAULT_wxUSE_JOYSTICK=no | |
1473 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1474 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
1475 | DEFAULT_wxUSE_LONGLONG=no | |
1476 | DEFAULT_wxUSE_GEOMETRY=no | |
1477 | ||
1478 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1479 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1480 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1481 | ||
1482 | DEFAULT_wxUSE_X_RESOURCES=no | |
1483 | DEFAULT_wxUSE_CLIPBOARD=no | |
1484 | DEFAULT_wxUSE_TOOLTIPS=no | |
1485 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1486 | DEFAULT_wxUSE_DRAGIMAGE=no | |
1487 | DEFAULT_wxUSE_SPLINES=no | |
1488 | ||
1489 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1490 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1491 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1492 | ||
1493 | DEFAULT_wxUSE_PROLOGIO=no | |
1494 | DEFAULT_wxUSE_RESOURCES=no | |
1495 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1496 | DEFAULT_wxUSE_IPC=no | |
1497 | DEFAULT_wxUSE_HELP=no | |
1498 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
1499 | DEFAULT_wxUSE_WXHTML_HELP=no | |
1500 | DEFAULT_wxUSE_TREELAYOUT=no | |
1501 | DEFAULT_wxUSE_METAFILE=no | |
1502 | DEFAULT_wxUSE_MIMETYPE=no | |
1503 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
1504 | DEFAULT_wxUSE_PROTOCOL=no | |
1505 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1506 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1507 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1508 | DEFAULT_wxUSE_URL=no | |
1509 | ||
1510 | DEFAULT_wxUSE_COMMONDLGS=no | |
1511 | DEFAULT_wxUSE_CHOICEDLG=no | |
1512 | DEFAULT_wxUSE_COLOURDLG=no | |
1513 | DEFAULT_wxUSE_DIRDLG=no | |
1514 | DEFAULT_wxUSE_FILEDLG=no | |
1515 | DEFAULT_wxUSE_FINDREPLDLG=no | |
1516 | DEFAULT_wxUSE_FONTDLG=no | |
1517 | DEFAULT_wxUSE_MSGDLG=no | |
1518 | DEFAULT_wxUSE_NUMBERDLG=no | |
1519 | DEFAULT_wxUSE_TEXTDLG=no | |
1520 | DEFAULT_wxUSE_SPLASH=no | |
1521 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1522 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1523 | DEFAULT_wxUSE_WIZARDDLG=no | |
1524 | ||
1525 | DEFAULT_wxUSE_MENUS=no | |
1526 | DEFAULT_wxUSE_MINIFRAME=no | |
1527 | DEFAULT_wxUSE_HTML=no | |
1528 | DEFAULT_wxUSE_FILESYSTEM=no | |
1529 | DEFAULT_wxUSE_FS_INET=no | |
1530 | DEFAULT_wxUSE_FS_ZIP=no | |
1531 | DEFAULT_wxUSE_BUSYINFO=no | |
1532 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1533 | DEFAULT_wxUSE_VALIDATORS=no | |
1534 | ||
1535 | DEFAULT_wxUSE_ACCEL=no | |
1536 | DEFAULT_wxUSE_BUTTON=no | |
1537 | DEFAULT_wxUSE_BMPBUTTON=no | |
1538 | DEFAULT_wxUSE_CALCTRL=no | |
1539 | DEFAULT_wxUSE_CARET=no | |
1540 | DEFAULT_wxUSE_CHECKBOX=no | |
1541 | DEFAULT_wxUSE_CHECKLST=no | |
1542 | DEFAULT_wxUSE_CHOICE=no | |
1543 | DEFAULT_wxUSE_COMBOBOX=no | |
1544 | DEFAULT_wxUSE_GAUGE=no | |
1545 | DEFAULT_wxUSE_GRID=no | |
1546 | DEFAULT_wxUSE_NEW_GRID=no | |
1547 | DEFAULT_wxUSE_IMAGLIST=no | |
1548 | DEFAULT_wxUSE_LISTBOX=no | |
1549 | DEFAULT_wxUSE_LISTCTRL=no | |
1550 | DEFAULT_wxUSE_NOTEBOOK=no | |
1551 | DEFAULT_wxUSE_PROPSHEET=no | |
1552 | DEFAULT_wxUSE_RADIOBOX=no | |
1553 | DEFAULT_wxUSE_RADIOBTN=no | |
1554 | DEFAULT_wxUSE_SASH=no | |
1555 | DEFAULT_wxUSE_SCROLLBAR=no | |
1556 | DEFAULT_wxUSE_SLIDER=no | |
1557 | DEFAULT_wxUSE_SPINBTN=no | |
1558 | DEFAULT_wxUSE_SPINCTRL=no | |
1559 | DEFAULT_wxUSE_SPLITTER=no | |
1560 | DEFAULT_wxUSE_STATBMP=no | |
1561 | DEFAULT_wxUSE_STATBOX=no | |
1562 | DEFAULT_wxUSE_STATLINE=no | |
1563 | DEFAULT_wxUSE_STATTEXT=no | |
1564 | DEFAULT_wxUSE_STATUSBAR=yes | |
1565 | DEFAULT_wxUSE_TABDIALOG=no | |
1566 | DEFAULT_wxUSE_TEXTCTRL=no | |
1567 | DEFAULT_wxUSE_TOGGLEBTN=no | |
1568 | DEFAULT_wxUSE_TOOLBAR=no | |
1569 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
1570 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
1571 | DEFAULT_wxUSE_TREECTRL=no | |
1572 | DEFAULT_wxUSE_POPUPWIN=no | |
1573 | DEFAULT_wxUSE_TIPWINDOW=no | |
1574 | ||
1575 | DEFAULT_wxUSE_UNICODE=no | |
1576 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
1577 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1578 | ||
1579 | DEFAULT_wxUSE_PALETTE=no | |
1580 | DEFAULT_wxUSE_IMAGE=no | |
1581 | DEFAULT_wxUSE_GIF=no | |
1582 | DEFAULT_wxUSE_PCX=no | |
1583 | DEFAULT_wxUSE_PNM=no | |
1584 | DEFAULT_wxUSE_IFF=no | |
1585 | DEFAULT_wxUSE_XPM=no | |
1586 | DEFAULT_wxUSE_ICO_CUR=no | |
1587 | else | |
1588 | DEFAULT_wxUSE_UNIVERSAL=no | |
1589 | ||
1590 | DEFAULT_wxUSE_NANOX=no | |
1591 | ||
1592 | DEFAULT_wxUSE_THREADS=yes | |
1593 | ||
1594 | DEFAULT_wxUSE_SHARED=yes | |
1595 | DEFAULT_wxUSE_SONAME=no | |
1596 | DEFAULT_wxUSE_OPTIMISE=yes | |
1597 | DEFAULT_wxUSE_PROFILE=no | |
1598 | DEFAULT_wxUSE_NO_DEPS=no | |
1599 | DEFAULT_wxUSE_NO_RTTI=no | |
1600 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1601 | DEFAULT_wxUSE_PERMISSIVE=no | |
1602 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1603 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1604 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1605 | DEFAULT_wxUSE_MEM_TRACING=no | |
1606 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1607 | DEFAULT_wxUSE_DMALLOC=no | |
1608 | DEFAULT_wxUSE_PRECOMP=no | |
1609 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1610 | ||
1611 | DEFAULT_wxUSE_LOG=yes | |
1612 | DEFAULT_wxUSE_LOGWINDOW=yes | |
1613 | DEFAULT_wxUSE_LOGGUI=yes | |
1614 | DEFAULT_wxUSE_LOGDIALOG=yes | |
1615 | ||
1616 | DEFAULT_wxUSE_GUI=yes | |
1617 | ||
1618 | DEFAULT_wxUSE_REGEX=yes | |
1619 | DEFAULT_wxUSE_ZLIB=yes | |
1620 | DEFAULT_wxUSE_LIBPNG=yes | |
1621 | DEFAULT_wxUSE_LIBJPEG=yes | |
1622 | DEFAULT_wxUSE_LIBTIFF=yes | |
1623 | DEFAULT_wxUSE_ODBC=no | |
1624 | DEFAULT_wxUSE_OPENGL=no | |
1625 | ||
1626 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
1627 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
1628 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1629 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
1630 | DEFAULT_wxUSE_DATETIME=yes | |
1631 | DEFAULT_wxUSE_TIMEDATE=no | |
1632 | DEFAULT_wxUSE_TIMER=yes | |
1633 | DEFAULT_wxUSE_STOPWATCH=yes | |
1634 | DEFAULT_wxUSE_FILE=yes | |
1635 | DEFAULT_wxUSE_FFILE=yes | |
1636 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
1637 | DEFAULT_wxUSE_TEXTFILE=yes | |
1638 | DEFAULT_wxUSE_WAVE=no | |
1639 | DEFAULT_wxUSE_INTL=yes | |
1640 | DEFAULT_wxUSE_CONFIG=yes | |
1641 | DEFAULT_wxUSE_FONTMAP=yes | |
1642 | DEFAULT_wxUSE_STREAMS=yes | |
1643 | DEFAULT_wxUSE_SOCKETS=yes | |
1644 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1645 | DEFAULT_wxUSE_JOYSTICK=yes | |
1646 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1647 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
1648 | DEFAULT_wxUSE_LONGLONG=yes | |
1649 | DEFAULT_wxUSE_GEOMETRY=yes | |
1650 | ||
1651 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1652 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1653 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1654 | ||
1655 | DEFAULT_wxUSE_X_RESOURCES=no | |
1656 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1657 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1658 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1659 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
1660 | DEFAULT_wxUSE_SPLINES=yes | |
1661 | ||
1662 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1663 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1664 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1665 | ||
1666 | DEFAULT_wxUSE_PROLOGIO=yes | |
1667 | DEFAULT_wxUSE_RESOURCES=yes | |
1668 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1669 | DEFAULT_wxUSE_IPC=yes | |
1670 | DEFAULT_wxUSE_HELP=yes | |
1671 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
1672 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
1673 | DEFAULT_wxUSE_TREELAYOUT=yes | |
1674 | DEFAULT_wxUSE_METAFILE=yes | |
1675 | DEFAULT_wxUSE_MIMETYPE=yes | |
1676 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
1677 | DEFAULT_wxUSE_PROTOCOL=yes | |
1678 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1679 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1680 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1681 | DEFAULT_wxUSE_URL=yes | |
1682 | ||
1683 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1684 | DEFAULT_wxUSE_CHOICEDLG=yes | |
1685 | DEFAULT_wxUSE_COLOURDLG=yes | |
1686 | DEFAULT_wxUSE_DIRDLG=yes | |
1687 | DEFAULT_wxUSE_FILEDLG=yes | |
1688 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
1689 | DEFAULT_wxUSE_FONTDLG=yes | |
1690 | DEFAULT_wxUSE_MSGDLG=yes | |
1691 | DEFAULT_wxUSE_NUMBERDLG=yes | |
1692 | DEFAULT_wxUSE_TEXTDLG=yes | |
1693 | DEFAULT_wxUSE_SPLASH=yes | |
1694 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1695 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1696 | DEFAULT_wxUSE_WIZARDDLG=yes | |
1697 | ||
1698 | DEFAULT_wxUSE_MENUS=yes | |
1699 | DEFAULT_wxUSE_MINIFRAME=yes | |
1700 | DEFAULT_wxUSE_HTML=yes | |
1701 | DEFAULT_wxUSE_FILESYSTEM=yes | |
1702 | DEFAULT_wxUSE_FS_INET=yes | |
1703 | DEFAULT_wxUSE_FS_ZIP=yes | |
1704 | DEFAULT_wxUSE_BUSYINFO=yes | |
1705 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1706 | DEFAULT_wxUSE_VALIDATORS=yes | |
1707 | ||
1708 | DEFAULT_wxUSE_ACCEL=yes | |
1709 | DEFAULT_wxUSE_BUTTON=yes | |
1710 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1711 | DEFAULT_wxUSE_CALCTRL=yes | |
1712 | DEFAULT_wxUSE_CARET=yes | |
1713 | DEFAULT_wxUSE_CHECKBOX=yes | |
1714 | DEFAULT_wxUSE_CHECKLST=yes | |
1715 | DEFAULT_wxUSE_CHOICE=yes | |
1716 | DEFAULT_wxUSE_COMBOBOX=yes | |
1717 | DEFAULT_wxUSE_GAUGE=yes | |
1718 | DEFAULT_wxUSE_GRID=yes | |
1719 | DEFAULT_wxUSE_NEW_GRID=yes | |
1720 | DEFAULT_wxUSE_IMAGLIST=yes | |
1721 | DEFAULT_wxUSE_LISTBOX=yes | |
1722 | DEFAULT_wxUSE_LISTCTRL=yes | |
1723 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1724 | DEFAULT_wxUSE_PROPSHEET=yes | |
1725 | DEFAULT_wxUSE_RADIOBOX=yes | |
1726 | DEFAULT_wxUSE_RADIOBTN=yes | |
1727 | DEFAULT_wxUSE_SASH=yes | |
1728 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1729 | DEFAULT_wxUSE_SLIDER=yes | |
1730 | DEFAULT_wxUSE_SPINBTN=yes | |
1731 | DEFAULT_wxUSE_SPINCTRL=yes | |
1732 | DEFAULT_wxUSE_SPLITTER=yes | |
1733 | DEFAULT_wxUSE_STATBMP=yes | |
1734 | DEFAULT_wxUSE_STATBOX=yes | |
1735 | DEFAULT_wxUSE_STATLINE=yes | |
1736 | DEFAULT_wxUSE_STATTEXT=yes | |
1737 | DEFAULT_wxUSE_STATUSBAR=yes | |
1738 | DEFAULT_wxUSE_TABDIALOG=no | |
1739 | DEFAULT_wxUSE_TEXTCTRL=yes | |
1740 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
1741 | DEFAULT_wxUSE_TOOLBAR=yes | |
1742 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
1743 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
1744 | DEFAULT_wxUSE_TREECTRL=yes | |
1745 | DEFAULT_wxUSE_POPUPWIN=yes | |
1746 | DEFAULT_wxUSE_TIPWINDOW=yes | |
1747 | ||
1748 | DEFAULT_wxUSE_UNICODE=no | |
1749 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
1750 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1751 | ||
1752 | DEFAULT_wxUSE_PALETTE=yes | |
1753 | DEFAULT_wxUSE_IMAGE=yes | |
1754 | DEFAULT_wxUSE_GIF=yes | |
1755 | DEFAULT_wxUSE_PCX=yes | |
1756 | DEFAULT_wxUSE_IFF=no | |
1757 | DEFAULT_wxUSE_PNM=yes | |
1758 | DEFAULT_wxUSE_XPM=yes | |
1759 | DEFAULT_wxUSE_ICO_CUR=yes | |
1760 | fi | |
1761 | ||
1762 | ||
1763 | ||
1764 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1765 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1766 | if test "x$LINE" != x ; then | |
1767 | has_toolkit_in_cache=1 | |
1768 | eval "DEFAULT_$LINE" | |
1769 | eval "CACHE_$toolkit=1" | |
1770 | fi | |
1771 | done | |
1772 | ||
1773 | ||
1774 | ||
1775 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1776 | echo "configure:1777: checking for --enable-gui" >&5 | |
1777 | no_cache=0 | |
1778 | # Check whether --enable-gui or --disable-gui was given. | |
1779 | if test "${enable_gui+set}" = set; then | |
1780 | enableval="$enable_gui" | |
1781 | ||
1782 | if test "$enableval" = yes; then | |
1783 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1784 | else | |
1785 | ac_cv_use_gui='wxUSE_GUI=no' | |
1786 | fi | |
1787 | ||
1788 | else | |
1789 | ||
1790 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1791 | if test "x$LINE" != x ; then | |
1792 | eval "DEFAULT_$LINE" | |
1793 | else | |
1794 | no_cache=1 | |
1795 | fi | |
1796 | ||
1797 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1798 | ||
1799 | fi | |
1800 | ||
1801 | ||
1802 | eval "$ac_cv_use_gui" | |
1803 | if test "$no_cache" != 1; then | |
1804 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1805 | fi | |
1806 | ||
1807 | if test "$wxUSE_GUI" = yes; then | |
1808 | echo "$ac_t""yes" 1>&6 | |
1809 | else | |
1810 | echo "$ac_t""no" 1>&6 | |
1811 | fi | |
1812 | ||
1813 | ||
1814 | if test "$wxUSE_GUI" = "yes"; then | |
1815 | ||
1816 | ||
1817 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
1818 | echo "configure:1819: checking for --enable-universal" >&5 | |
1819 | no_cache=0 | |
1820 | # Check whether --enable-universal or --disable-universal was given. | |
1821 | if test "${enable_universal+set}" = set; then | |
1822 | enableval="$enable_universal" | |
1823 | ||
1824 | if test "$enableval" = yes; then | |
1825 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1826 | else | |
1827 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1828 | fi | |
1829 | ||
1830 | else | |
1831 | ||
1832 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1833 | if test "x$LINE" != x ; then | |
1834 | eval "DEFAULT_$LINE" | |
1835 | else | |
1836 | no_cache=1 | |
1837 | fi | |
1838 | ||
1839 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1840 | ||
1841 | fi | |
1842 | ||
1843 | ||
1844 | eval "$ac_cv_use_universal" | |
1845 | if test "$no_cache" != 1; then | |
1846 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1847 | fi | |
1848 | ||
1849 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1850 | echo "$ac_t""yes" 1>&6 | |
1851 | else | |
1852 | echo "$ac_t""no" 1>&6 | |
1853 | fi | |
1854 | ||
1855 | # Check whether --with-gtk or --without-gtk was given. | |
1856 | if test "${with_gtk+set}" = set; then | |
1857 | withval="$with_gtk" | |
1858 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1859 | fi | |
1860 | ||
1861 | # Check whether --with-motif or --without-motif was given. | |
1862 | if test "${with_motif+set}" = set; then | |
1863 | withval="$with_motif" | |
1864 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1865 | fi | |
1866 | ||
1867 | # Check whether --with-mac or --without-mac was given. | |
1868 | if test "${with_mac+set}" = set; then | |
1869 | withval="$with_mac" | |
1870 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1871 | fi | |
1872 | ||
1873 | # Check whether --with-wine or --without-wine was given. | |
1874 | if test "${with_wine+set}" = set; then | |
1875 | withval="$with_wine" | |
1876 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1877 | fi | |
1878 | ||
1879 | # Check whether --with-msw or --without-msw was given. | |
1880 | if test "${with_msw+set}" = set; then | |
1881 | withval="$with_msw" | |
1882 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
1883 | fi | |
1884 | ||
1885 | # Check whether --with-pm or --without-pm was given. | |
1886 | if test "${with_pm+set}" = set; then | |
1887 | withval="$with_pm" | |
1888 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1889 | fi | |
1890 | ||
1891 | # Check whether --with-mgl or --without-mgl was given. | |
1892 | if test "${with_mgl+set}" = set; then | |
1893 | withval="$with_mgl" | |
1894 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1895 | fi | |
1896 | ||
1897 | # Check whether --with-microwin or --without-microwin was given. | |
1898 | if test "${with_microwin+set}" = set; then | |
1899 | withval="$with_microwin" | |
1900 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1901 | fi | |
1902 | ||
1903 | # Check whether --with-x11 or --without-x11 was given. | |
1904 | if test "${with_x11+set}" = set; then | |
1905 | withval="$with_x11" | |
1906 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
1907 | fi | |
1908 | ||
1909 | ||
1910 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
1911 | echo "configure:1912: checking for --enable-nanox" >&5 | |
1912 | no_cache=0 | |
1913 | # Check whether --enable-nanox or --disable-nanox was given. | |
1914 | if test "${enable_nanox+set}" = set; then | |
1915 | enableval="$enable_nanox" | |
1916 | ||
1917 | if test "$enableval" = yes; then | |
1918 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
1919 | else | |
1920 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
1921 | fi | |
1922 | ||
1923 | else | |
1924 | ||
1925 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1926 | if test "x$LINE" != x ; then | |
1927 | eval "DEFAULT_$LINE" | |
1928 | else | |
1929 | no_cache=1 | |
1930 | fi | |
1931 | ||
1932 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
1933 | ||
1934 | fi | |
1935 | ||
1936 | ||
1937 | eval "$ac_cv_use_nanox" | |
1938 | if test "$no_cache" != 1; then | |
1939 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
1940 | fi | |
1941 | ||
1942 | if test "$wxUSE_NANOX" = yes; then | |
1943 | echo "$ac_t""yes" 1>&6 | |
1944 | else | |
1945 | echo "$ac_t""no" 1>&6 | |
1946 | fi | |
1947 | ||
1948 | ||
1949 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
1950 | if test "${enable_gtk2+set}" = set; then | |
1951 | enableval="$enable_gtk2" | |
1952 | wxUSE_GTK2="yes" | |
1953 | else | |
1954 | wxUSE_GTK2="no" | |
1955 | fi | |
1956 | ||
1957 | ||
1958 | ||
1959 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 | |
1960 | echo "configure:1961: checking for --with-libpng" >&5 | |
1961 | no_cache=0 | |
1962 | # Check whether --with-libpng or --without-libpng was given. | |
1963 | if test "${with_libpng+set}" = set; then | |
1964 | withval="$with_libpng" | |
1965 | ||
1966 | if test "$withval" = yes; then | |
1967 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1968 | elif test "$withval" = no; then | |
1969 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1970 | elif test "$withval" = sys; then | |
1971 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1972 | elif test "$withval" = builtin; then | |
1973 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
1974 | else | |
1975 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1976 | fi | |
1977 | ||
1978 | else | |
1979 | ||
1980 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1981 | if test "x$LINE" != x ; then | |
1982 | eval "DEFAULT_$LINE" | |
1983 | else | |
1984 | no_cache=1 | |
1985 | fi | |
1986 | ||
1987 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1988 | ||
1989 | fi | |
1990 | ||
1991 | ||
1992 | eval "$ac_cv_use_libpng" | |
1993 | if test "$no_cache" != 1; then | |
1994 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1995 | fi | |
1996 | ||
1997 | if test "$wxUSE_LIBPNG" = yes; then | |
1998 | echo "$ac_t""yes" 1>&6 | |
1999 | elif test "$wxUSE_LIBPNG" = no; then | |
2000 | echo "$ac_t""no" 1>&6 | |
2001 | elif test "$wxUSE_LIBPNG" = sys; then | |
2002 | echo "$ac_t""system version" 1>&6 | |
2003 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2004 | echo "$ac_t""builtin version" 1>&6 | |
2005 | else | |
2006 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2007 | fi | |
2008 | ||
2009 | ||
2010 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 | |
2011 | echo "configure:2012: checking for --with-libjpeg" >&5 | |
2012 | no_cache=0 | |
2013 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2014 | if test "${with_libjpeg+set}" = set; then | |
2015 | withval="$with_libjpeg" | |
2016 | ||
2017 | if test "$withval" = yes; then | |
2018 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2019 | elif test "$withval" = no; then | |
2020 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2021 | elif test "$withval" = sys; then | |
2022 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2023 | elif test "$withval" = builtin; then | |
2024 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2025 | else | |
2026 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2027 | fi | |
2028 | ||
2029 | else | |
2030 | ||
2031 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2032 | if test "x$LINE" != x ; then | |
2033 | eval "DEFAULT_$LINE" | |
2034 | else | |
2035 | no_cache=1 | |
2036 | fi | |
2037 | ||
2038 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2039 | ||
2040 | fi | |
2041 | ||
2042 | ||
2043 | eval "$ac_cv_use_libjpeg" | |
2044 | if test "$no_cache" != 1; then | |
2045 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2046 | fi | |
2047 | ||
2048 | if test "$wxUSE_LIBJPEG" = yes; then | |
2049 | echo "$ac_t""yes" 1>&6 | |
2050 | elif test "$wxUSE_LIBJPEG" = no; then | |
2051 | echo "$ac_t""no" 1>&6 | |
2052 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2053 | echo "$ac_t""system version" 1>&6 | |
2054 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2055 | echo "$ac_t""builtin version" 1>&6 | |
2056 | else | |
2057 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2058 | fi | |
2059 | ||
2060 | ||
2061 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 | |
2062 | echo "configure:2063: checking for --with-libtiff" >&5 | |
2063 | no_cache=0 | |
2064 | # Check whether --with-libtiff or --without-libtiff was given. | |
2065 | if test "${with_libtiff+set}" = set; then | |
2066 | withval="$with_libtiff" | |
2067 | ||
2068 | if test "$withval" = yes; then | |
2069 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2070 | elif test "$withval" = no; then | |
2071 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2072 | elif test "$withval" = sys; then | |
2073 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2074 | elif test "$withval" = builtin; then | |
2075 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2076 | else | |
2077 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2078 | fi | |
2079 | ||
2080 | else | |
2081 | ||
2082 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2083 | if test "x$LINE" != x ; then | |
2084 | eval "DEFAULT_$LINE" | |
2085 | else | |
2086 | no_cache=1 | |
2087 | fi | |
2088 | ||
2089 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2090 | ||
2091 | fi | |
2092 | ||
2093 | ||
2094 | eval "$ac_cv_use_libtiff" | |
2095 | if test "$no_cache" != 1; then | |
2096 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2097 | fi | |
2098 | ||
2099 | if test "$wxUSE_LIBTIFF" = yes; then | |
2100 | echo "$ac_t""yes" 1>&6 | |
2101 | elif test "$wxUSE_LIBTIFF" = no; then | |
2102 | echo "$ac_t""no" 1>&6 | |
2103 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2104 | echo "$ac_t""system version" 1>&6 | |
2105 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2106 | echo "$ac_t""builtin version" 1>&6 | |
2107 | else | |
2108 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2109 | fi | |
2110 | ||
2111 | ||
2112 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 | |
2113 | echo "configure:2114: checking for --with-opengl" >&5 | |
2114 | no_cache=0 | |
2115 | # Check whether --with-opengl or --without-opengl was given. | |
2116 | if test "${with_opengl+set}" = set; then | |
2117 | withval="$with_opengl" | |
2118 | ||
2119 | if test "$withval" = yes; then | |
2120 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
2121 | else | |
2122 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
2123 | fi | |
2124 | ||
2125 | else | |
2126 | ||
2127 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
2128 | if test "x$LINE" != x ; then | |
2129 | eval "DEFAULT_$LINE" | |
2130 | else | |
2131 | no_cache=1 | |
2132 | fi | |
2133 | ||
2134 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
2135 | ||
2136 | fi | |
2137 | ||
2138 | ||
2139 | eval "$ac_cv_use_opengl" | |
2140 | if test "$no_cache" != 1; then | |
2141 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
2142 | fi | |
2143 | ||
2144 | if test "$wxUSE_OPENGL" = yes; then | |
2145 | echo "$ac_t""yes" 1>&6 | |
2146 | else | |
2147 | echo "$ac_t""no" 1>&6 | |
2148 | fi | |
2149 | ||
2150 | ||
2151 | fi | |
2152 | ||
2153 | ||
2154 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 | |
2155 | echo "configure:2156: checking for --with-dmalloc" >&5 | |
2156 | no_cache=0 | |
2157 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
2158 | if test "${with_dmalloc+set}" = set; then | |
2159 | withval="$with_dmalloc" | |
2160 | ||
2161 | if test "$withval" = yes; then | |
2162 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
2163 | else | |
2164 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
2165 | fi | |
2166 | ||
2167 | else | |
2168 | ||
2169 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
2170 | if test "x$LINE" != x ; then | |
2171 | eval "DEFAULT_$LINE" | |
2172 | else | |
2173 | no_cache=1 | |
2174 | fi | |
2175 | ||
2176 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
2177 | ||
2178 | fi | |
2179 | ||
2180 | ||
2181 | eval "$ac_cv_use_dmalloc" | |
2182 | if test "$no_cache" != 1; then | |
2183 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
2184 | fi | |
2185 | ||
2186 | if test "$wxUSE_DMALLOC" = yes; then | |
2187 | echo "$ac_t""yes" 1>&6 | |
2188 | else | |
2189 | echo "$ac_t""no" 1>&6 | |
2190 | fi | |
2191 | ||
2192 | ||
2193 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 | |
2194 | echo "configure:2195: checking for --with-regex" >&5 | |
2195 | no_cache=0 | |
2196 | # Check whether --with-regex or --without-regex was given. | |
2197 | if test "${with_regex+set}" = set; then | |
2198 | withval="$with_regex" | |
2199 | ||
2200 | if test "$withval" = yes; then | |
2201 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2202 | elif test "$withval" = no; then | |
2203 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2204 | elif test "$withval" = sys; then | |
2205 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2206 | elif test "$withval" = builtin; then | |
2207 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
2208 | else | |
2209 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2210 | fi | |
2211 | ||
2212 | else | |
2213 | ||
2214 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2215 | if test "x$LINE" != x ; then | |
2216 | eval "DEFAULT_$LINE" | |
2217 | else | |
2218 | no_cache=1 | |
2219 | fi | |
2220 | ||
2221 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2222 | ||
2223 | fi | |
2224 | ||
2225 | ||
2226 | eval "$ac_cv_use_regex" | |
2227 | if test "$no_cache" != 1; then | |
2228 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2229 | fi | |
2230 | ||
2231 | if test "$wxUSE_REGEX" = yes; then | |
2232 | echo "$ac_t""yes" 1>&6 | |
2233 | elif test "$wxUSE_REGEX" = no; then | |
2234 | echo "$ac_t""no" 1>&6 | |
2235 | elif test "$wxUSE_REGEX" = sys; then | |
2236 | echo "$ac_t""system version" 1>&6 | |
2237 | elif test "$wxUSE_REGEX" = builtin; then | |
2238 | echo "$ac_t""builtin version" 1>&6 | |
2239 | else | |
2240 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2241 | fi | |
2242 | ||
2243 | ||
2244 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 | |
2245 | echo "configure:2246: checking for --with-zlib" >&5 | |
2246 | no_cache=0 | |
2247 | # Check whether --with-zlib or --without-zlib was given. | |
2248 | if test "${with_zlib+set}" = set; then | |
2249 | withval="$with_zlib" | |
2250 | ||
2251 | if test "$withval" = yes; then | |
2252 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
2253 | elif test "$withval" = no; then | |
2254 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
2255 | elif test "$withval" = sys; then | |
2256 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2257 | elif test "$withval" = builtin; then | |
2258 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
2259 | else | |
2260 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2261 | fi | |
2262 | ||
2263 | else | |
2264 | ||
2265 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
2266 | if test "x$LINE" != x ; then | |
2267 | eval "DEFAULT_$LINE" | |
2268 | else | |
2269 | no_cache=1 | |
2270 | fi | |
2271 | ||
2272 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
2273 | ||
2274 | fi | |
2275 | ||
2276 | ||
2277 | eval "$ac_cv_use_zlib" | |
2278 | if test "$no_cache" != 1; then | |
2279 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
2280 | fi | |
2281 | ||
2282 | if test "$wxUSE_ZLIB" = yes; then | |
2283 | echo "$ac_t""yes" 1>&6 | |
2284 | elif test "$wxUSE_ZLIB" = no; then | |
2285 | echo "$ac_t""no" 1>&6 | |
2286 | elif test "$wxUSE_ZLIB" = sys; then | |
2287 | echo "$ac_t""system version" 1>&6 | |
2288 | elif test "$wxUSE_ZLIB" = builtin; then | |
2289 | echo "$ac_t""builtin version" 1>&6 | |
2290 | else | |
2291 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2292 | fi | |
2293 | ||
2294 | ||
2295 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 | |
2296 | echo "configure:2297: checking for --with-odbc" >&5 | |
2297 | no_cache=0 | |
2298 | # Check whether --with-odbc or --without-odbc was given. | |
2299 | if test "${with_odbc+set}" = set; then | |
2300 | withval="$with_odbc" | |
2301 | ||
2302 | if test "$withval" = yes; then | |
2303 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2304 | else | |
2305 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2306 | fi | |
2307 | ||
2308 | else | |
2309 | ||
2310 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2311 | if test "x$LINE" != x ; then | |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
2317 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2318 | ||
2319 | fi | |
2320 | ||
2321 | ||
2322 | eval "$ac_cv_use_odbc" | |
2323 | if test "$no_cache" != 1; then | |
2324 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2325 | fi | |
2326 | ||
2327 | if test "$wxUSE_ODBC" = yes; then | |
2328 | echo "$ac_t""yes" 1>&6 | |
2329 | else | |
2330 | echo "$ac_t""no" 1>&6 | |
2331 | fi | |
2332 | ||
2333 | ||
2334 | ||
2335 | ||
2336 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2337 | echo "configure:2338: checking for --enable-shared" >&5 | |
2338 | no_cache=0 | |
2339 | # Check whether --enable-shared or --disable-shared was given. | |
2340 | if test "${enable_shared+set}" = set; then | |
2341 | enableval="$enable_shared" | |
2342 | ||
2343 | if test "$enableval" = yes; then | |
2344 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2345 | else | |
2346 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2347 | fi | |
2348 | ||
2349 | else | |
2350 | ||
2351 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2352 | if test "x$LINE" != x ; then | |
2353 | eval "DEFAULT_$LINE" | |
2354 | else | |
2355 | no_cache=1 | |
2356 | fi | |
2357 | ||
2358 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2359 | ||
2360 | fi | |
2361 | ||
2362 | ||
2363 | eval "$ac_cv_use_shared" | |
2364 | if test "$no_cache" != 1; then | |
2365 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2366 | fi | |
2367 | ||
2368 | if test "$wxUSE_SHARED" = yes; then | |
2369 | echo "$ac_t""yes" 1>&6 | |
2370 | else | |
2371 | echo "$ac_t""no" 1>&6 | |
2372 | fi | |
2373 | ||
2374 | ||
2375 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 | |
2376 | echo "configure:2377: checking for --enable-soname" >&5 | |
2377 | no_cache=0 | |
2378 | # Check whether --enable-soname or --disable-soname was given. | |
2379 | if test "${enable_soname+set}" = set; then | |
2380 | enableval="$enable_soname" | |
2381 | ||
2382 | if test "$enableval" = yes; then | |
2383 | ac_cv_use_soname='wxUSE_SONAME=yes' | |
2384 | else | |
2385 | ac_cv_use_soname='wxUSE_SONAME=no' | |
2386 | fi | |
2387 | ||
2388 | else | |
2389 | ||
2390 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` | |
2391 | if test "x$LINE" != x ; then | |
2392 | eval "DEFAULT_$LINE" | |
2393 | else | |
2394 | no_cache=1 | |
2395 | fi | |
2396 | ||
2397 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME | |
2398 | ||
2399 | fi | |
2400 | ||
2401 | ||
2402 | eval "$ac_cv_use_soname" | |
2403 | if test "$no_cache" != 1; then | |
2404 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp | |
2405 | fi | |
2406 | ||
2407 | if test "$wxUSE_SONAME" = yes; then | |
2408 | echo "$ac_t""yes" 1>&6 | |
2409 | else | |
2410 | echo "$ac_t""no" 1>&6 | |
2411 | fi | |
2412 | ||
2413 | ||
2414 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 | |
2415 | echo "configure:2416: checking for --enable-optimise" >&5 | |
2416 | no_cache=0 | |
2417 | # Check whether --enable-optimise or --disable-optimise was given. | |
2418 | if test "${enable_optimise+set}" = set; then | |
2419 | enableval="$enable_optimise" | |
2420 | ||
2421 | if test "$enableval" = yes; then | |
2422 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2423 | else | |
2424 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2425 | fi | |
2426 | ||
2427 | else | |
2428 | ||
2429 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2430 | if test "x$LINE" != x ; then | |
2431 | eval "DEFAULT_$LINE" | |
2432 | else | |
2433 | no_cache=1 | |
2434 | fi | |
2435 | ||
2436 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2437 | ||
2438 | fi | |
2439 | ||
2440 | ||
2441 | eval "$ac_cv_use_optimise" | |
2442 | if test "$no_cache" != 1; then | |
2443 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2444 | fi | |
2445 | ||
2446 | if test "$wxUSE_OPTIMISE" = yes; then | |
2447 | echo "$ac_t""yes" 1>&6 | |
2448 | else | |
2449 | echo "$ac_t""no" 1>&6 | |
2450 | fi | |
2451 | ||
2452 | ||
2453 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 | |
2454 | echo "configure:2455: checking for --enable-debug" >&5 | |
2455 | no_cache=0 | |
2456 | # Check whether --enable-debug or --disable-debug was given. | |
2457 | if test "${enable_debug+set}" = set; then | |
2458 | enableval="$enable_debug" | |
2459 | ||
2460 | if test "$enableval" = yes; then | |
2461 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2462 | else | |
2463 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2464 | fi | |
2465 | ||
2466 | else | |
2467 | ||
2468 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2469 | if test "x$LINE" != x ; then | |
2470 | eval "DEFAULT_$LINE" | |
2471 | else | |
2472 | no_cache=1 | |
2473 | fi | |
2474 | ||
2475 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2476 | ||
2477 | fi | |
2478 | ||
2479 | ||
2480 | eval "$ac_cv_use_debug" | |
2481 | if test "$no_cache" != 1; then | |
2482 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2483 | fi | |
2484 | ||
2485 | if test "$wxUSE_DEBUG" = yes; then | |
2486 | echo "$ac_t""yes" 1>&6 | |
2487 | else | |
2488 | echo "$ac_t""no" 1>&6 | |
2489 | fi | |
2490 | ||
2491 | ||
2492 | ||
2493 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
2494 | echo "configure:2495: checking for --enable-precomp" >&5 | |
2495 | no_cache=0 | |
2496 | # Check whether --enable-precomp or --disable-precomp was given. | |
2497 | if test "${enable_precomp+set}" = set; then | |
2498 | enableval="$enable_precomp" | |
2499 | ||
2500 | if test "$enableval" = yes; then | |
2501 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2502 | else | |
2503 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2504 | fi | |
2505 | ||
2506 | else | |
2507 | ||
2508 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2516 | ||
2517 | fi | |
2518 | ||
2519 | ||
2520 | eval "$ac_cv_use_precomp" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_PRECOMP" = yes; then | |
2526 | echo "$ac_t""yes" 1>&6 | |
2527 | else | |
2528 | echo "$ac_t""no" 1>&6 | |
2529 | fi | |
2530 | ||
2531 | ||
2532 | if test "$wxUSE_DEBUG" = "yes"; then | |
2533 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2534 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2535 | elif test "$wxUSE_DEBUG" = "no"; then | |
2536 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2537 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2538 | fi | |
2539 | ||
2540 | ||
2541 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2542 | echo "configure:2543: checking for --enable-debug_flag" >&5 | |
2543 | no_cache=0 | |
2544 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2545 | if test "${enable_debug_flag+set}" = set; then | |
2546 | enableval="$enable_debug_flag" | |
2547 | ||
2548 | if test "$enableval" = yes; then | |
2549 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2550 | else | |
2551 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2552 | fi | |
2553 | ||
2554 | else | |
2555 | ||
2556 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2557 | if test "x$LINE" != x ; then | |
2558 | eval "DEFAULT_$LINE" | |
2559 | else | |
2560 | no_cache=1 | |
2561 | fi | |
2562 | ||
2563 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2564 | ||
2565 | fi | |
2566 | ||
2567 | ||
2568 | eval "$ac_cv_use_debug_flag" | |
2569 | if test "$no_cache" != 1; then | |
2570 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2571 | fi | |
2572 | ||
2573 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2574 | echo "$ac_t""yes" 1>&6 | |
2575 | else | |
2576 | echo "$ac_t""no" 1>&6 | |
2577 | fi | |
2578 | ||
2579 | ||
2580 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 | |
2581 | echo "configure:2582: checking for --enable-debug_info" >&5 | |
2582 | no_cache=0 | |
2583 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2584 | if test "${enable_debug_info+set}" = set; then | |
2585 | enableval="$enable_debug_info" | |
2586 | ||
2587 | if test "$enableval" = yes; then | |
2588 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2589 | else | |
2590 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2591 | fi | |
2592 | ||
2593 | else | |
2594 | ||
2595 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2596 | if test "x$LINE" != x ; then | |
2597 | eval "DEFAULT_$LINE" | |
2598 | else | |
2599 | no_cache=1 | |
2600 | fi | |
2601 | ||
2602 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2603 | ||
2604 | fi | |
2605 | ||
2606 | ||
2607 | eval "$ac_cv_use_debug_info" | |
2608 | if test "$no_cache" != 1; then | |
2609 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2610 | fi | |
2611 | ||
2612 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2613 | echo "$ac_t""yes" 1>&6 | |
2614 | else | |
2615 | echo "$ac_t""no" 1>&6 | |
2616 | fi | |
2617 | ||
2618 | ||
2619 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 | |
2620 | echo "configure:2621: checking for --enable-debug_gdb" >&5 | |
2621 | no_cache=0 | |
2622 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2623 | if test "${enable_debug_gdb+set}" = set; then | |
2624 | enableval="$enable_debug_gdb" | |
2625 | ||
2626 | if test "$enableval" = yes; then | |
2627 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2628 | else | |
2629 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2630 | fi | |
2631 | ||
2632 | else | |
2633 | ||
2634 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2635 | if test "x$LINE" != x ; then | |
2636 | eval "DEFAULT_$LINE" | |
2637 | else | |
2638 | no_cache=1 | |
2639 | fi | |
2640 | ||
2641 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2642 | ||
2643 | fi | |
2644 | ||
2645 | ||
2646 | eval "$ac_cv_use_debug_gdb" | |
2647 | if test "$no_cache" != 1; then | |
2648 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2649 | fi | |
2650 | ||
2651 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2652 | echo "$ac_t""yes" 1>&6 | |
2653 | else | |
2654 | echo "$ac_t""no" 1>&6 | |
2655 | fi | |
2656 | ||
2657 | ||
2658 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 | |
2659 | echo "configure:2660: checking for --enable-debug_cntxt" >&5 | |
2660 | no_cache=0 | |
2661 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2662 | if test "${enable_debug_cntxt+set}" = set; then | |
2663 | enableval="$enable_debug_cntxt" | |
2664 | ||
2665 | if test "$enableval" = yes; then | |
2666 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2667 | else | |
2668 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2669 | fi | |
2670 | ||
2671 | else | |
2672 | ||
2673 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2674 | if test "x$LINE" != x ; then | |
2675 | eval "DEFAULT_$LINE" | |
2676 | else | |
2677 | no_cache=1 | |
2678 | fi | |
2679 | ||
2680 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2681 | ||
2682 | fi | |
2683 | ||
2684 | ||
2685 | eval "$ac_cv_use_debug_cntxt" | |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2691 | echo "$ac_t""yes" 1>&6 | |
2692 | else | |
2693 | echo "$ac_t""no" 1>&6 | |
2694 | fi | |
2695 | ||
2696 | ||
2697 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 | |
2698 | echo "configure:2699: checking for --enable-mem_tracing" >&5 | |
2699 | no_cache=0 | |
2700 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2701 | if test "${enable_mem_tracing+set}" = set; then | |
2702 | enableval="$enable_mem_tracing" | |
2703 | ||
2704 | if test "$enableval" = yes; then | |
2705 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2706 | else | |
2707 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2708 | fi | |
2709 | ||
2710 | else | |
2711 | ||
2712 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2713 | if test "x$LINE" != x ; then | |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
2719 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2720 | ||
2721 | fi | |
2722 | ||
2723 | ||
2724 | eval "$ac_cv_use_mem_tracing" | |
2725 | if test "$no_cache" != 1; then | |
2726 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2727 | fi | |
2728 | ||
2729 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2730 | echo "$ac_t""yes" 1>&6 | |
2731 | else | |
2732 | echo "$ac_t""no" 1>&6 | |
2733 | fi | |
2734 | ||
2735 | ||
2736 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 | |
2737 | echo "configure:2738: checking for --enable-profile" >&5 | |
2738 | no_cache=0 | |
2739 | # Check whether --enable-profile or --disable-profile was given. | |
2740 | if test "${enable_profile+set}" = set; then | |
2741 | enableval="$enable_profile" | |
2742 | ||
2743 | if test "$enableval" = yes; then | |
2744 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2745 | else | |
2746 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2747 | fi | |
2748 | ||
2749 | else | |
2750 | ||
2751 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2752 | if test "x$LINE" != x ; then | |
2753 | eval "DEFAULT_$LINE" | |
2754 | else | |
2755 | no_cache=1 | |
2756 | fi | |
2757 | ||
2758 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2759 | ||
2760 | fi | |
2761 | ||
2762 | ||
2763 | eval "$ac_cv_use_profile" | |
2764 | if test "$no_cache" != 1; then | |
2765 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2766 | fi | |
2767 | ||
2768 | if test "$wxUSE_PROFILE" = yes; then | |
2769 | echo "$ac_t""yes" 1>&6 | |
2770 | else | |
2771 | echo "$ac_t""no" 1>&6 | |
2772 | fi | |
2773 | ||
2774 | ||
2775 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 | |
2776 | echo "configure:2777: checking for --enable-no_rtti" >&5 | |
2777 | no_cache=0 | |
2778 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2779 | if test "${enable_no_rtti+set}" = set; then | |
2780 | enableval="$enable_no_rtti" | |
2781 | ||
2782 | if test "$enableval" = yes; then | |
2783 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2784 | else | |
2785 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2786 | fi | |
2787 | ||
2788 | else | |
2789 | ||
2790 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2791 | if test "x$LINE" != x ; then | |
2792 | eval "DEFAULT_$LINE" | |
2793 | else | |
2794 | no_cache=1 | |
2795 | fi | |
2796 | ||
2797 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2798 | ||
2799 | fi | |
2800 | ||
2801 | ||
2802 | eval "$ac_cv_use_no_rtti" | |
2803 | if test "$no_cache" != 1; then | |
2804 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2805 | fi | |
2806 | ||
2807 | if test "$wxUSE_NO_RTTI" = yes; then | |
2808 | echo "$ac_t""yes" 1>&6 | |
2809 | else | |
2810 | echo "$ac_t""no" 1>&6 | |
2811 | fi | |
2812 | ||
2813 | ||
2814 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 | |
2815 | echo "configure:2816: checking for --enable-no_exceptions" >&5 | |
2816 | no_cache=0 | |
2817 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2818 | if test "${enable_no_exceptions+set}" = set; then | |
2819 | enableval="$enable_no_exceptions" | |
2820 | ||
2821 | if test "$enableval" = yes; then | |
2822 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2823 | else | |
2824 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2825 | fi | |
2826 | ||
2827 | else | |
2828 | ||
2829 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2830 | if test "x$LINE" != x ; then | |
2831 | eval "DEFAULT_$LINE" | |
2832 | else | |
2833 | no_cache=1 | |
2834 | fi | |
2835 | ||
2836 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2837 | ||
2838 | fi | |
2839 | ||
2840 | ||
2841 | eval "$ac_cv_use_no_exceptions" | |
2842 | if test "$no_cache" != 1; then | |
2843 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2844 | fi | |
2845 | ||
2846 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2847 | echo "$ac_t""yes" 1>&6 | |
2848 | else | |
2849 | echo "$ac_t""no" 1>&6 | |
2850 | fi | |
2851 | ||
2852 | ||
2853 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 | |
2854 | echo "configure:2855: checking for --enable-permissive" >&5 | |
2855 | no_cache=0 | |
2856 | # Check whether --enable-permissive or --disable-permissive was given. | |
2857 | if test "${enable_permissive+set}" = set; then | |
2858 | enableval="$enable_permissive" | |
2859 | ||
2860 | if test "$enableval" = yes; then | |
2861 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2862 | else | |
2863 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2864 | fi | |
2865 | ||
2866 | else | |
2867 | ||
2868 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2869 | if test "x$LINE" != x ; then | |
2870 | eval "DEFAULT_$LINE" | |
2871 | else | |
2872 | no_cache=1 | |
2873 | fi | |
2874 | ||
2875 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2876 | ||
2877 | fi | |
2878 | ||
2879 | ||
2880 | eval "$ac_cv_use_permissive" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2886 | echo "$ac_t""yes" 1>&6 | |
2887 | else | |
2888 | echo "$ac_t""no" 1>&6 | |
2889 | fi | |
2890 | ||
2891 | ||
2892 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 | |
2893 | echo "configure:2894: checking for --enable-no_deps" >&5 | |
2894 | no_cache=0 | |
2895 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2896 | if test "${enable_no_deps+set}" = set; then | |
2897 | enableval="$enable_no_deps" | |
2898 | ||
2899 | if test "$enableval" = yes; then | |
2900 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2901 | else | |
2902 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2903 | fi | |
2904 | ||
2905 | else | |
2906 | ||
2907 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2908 | if test "x$LINE" != x ; then | |
2909 | eval "DEFAULT_$LINE" | |
2910 | else | |
2911 | no_cache=1 | |
2912 | fi | |
2913 | ||
2914 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2915 | ||
2916 | fi | |
2917 | ||
2918 | ||
2919 | eval "$ac_cv_use_no_deps" | |
2920 | if test "$no_cache" != 1; then | |
2921 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2922 | fi | |
2923 | ||
2924 | if test "$wxUSE_NO_DEPS" = yes; then | |
2925 | echo "$ac_t""yes" 1>&6 | |
2926 | else | |
2927 | echo "$ac_t""no" 1>&6 | |
2928 | fi | |
2929 | ||
2930 | ||
2931 | ||
2932 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 | |
2933 | echo "configure:2934: checking for --enable-compat20" >&5 | |
2934 | no_cache=0 | |
2935 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2936 | if test "${enable_compat20+set}" = set; then | |
2937 | enableval="$enable_compat20" | |
2938 | ||
2939 | if test "$enableval" = yes; then | |
2940 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2941 | else | |
2942 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2943 | fi | |
2944 | ||
2945 | else | |
2946 | ||
2947 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2948 | if test "x$LINE" != x ; then | |
2949 | eval "DEFAULT_$LINE" | |
2950 | else | |
2951 | no_cache=1 | |
2952 | fi | |
2953 | ||
2954 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2955 | ||
2956 | fi | |
2957 | ||
2958 | ||
2959 | eval "$ac_cv_use_compat20" | |
2960 | if test "$no_cache" != 1; then | |
2961 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2962 | fi | |
2963 | ||
2964 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2965 | echo "$ac_t""yes" 1>&6 | |
2966 | else | |
2967 | echo "$ac_t""no" 1>&6 | |
2968 | fi | |
2969 | ||
2970 | ||
2971 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
2972 | echo "configure:2973: checking for --enable-compat22" >&5 | |
2973 | no_cache=0 | |
2974 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2975 | if test "${enable_compat22+set}" = set; then | |
2976 | enableval="$enable_compat22" | |
2977 | ||
2978 | if test "$enableval" = yes; then | |
2979 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2980 | else | |
2981 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2982 | fi | |
2983 | ||
2984 | else | |
2985 | ||
2986 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | ||
2998 | eval "$ac_cv_use_compat22" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3004 | echo "$ac_t""yes" 1>&6 | |
3005 | else | |
3006 | echo "$ac_t""no" 1>&6 | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | ||
3011 | ||
3012 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3013 | echo "configure:3014: checking for --enable-intl" >&5 | |
3014 | no_cache=0 | |
3015 | # Check whether --enable-intl or --disable-intl was given. | |
3016 | if test "${enable_intl+set}" = set; then | |
3017 | enableval="$enable_intl" | |
3018 | ||
3019 | if test "$enableval" = yes; then | |
3020 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3021 | else | |
3022 | ac_cv_use_intl='wxUSE_INTL=no' | |
3023 | fi | |
3024 | ||
3025 | else | |
3026 | ||
3027 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
3035 | ||
3036 | fi | |
3037 | ||
3038 | ||
3039 | eval "$ac_cv_use_intl" | |
3040 | if test "$no_cache" != 1; then | |
3041 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3042 | fi | |
3043 | ||
3044 | if test "$wxUSE_INTL" = yes; then | |
3045 | echo "$ac_t""yes" 1>&6 | |
3046 | else | |
3047 | echo "$ac_t""no" 1>&6 | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 | |
3052 | echo "configure:3053: checking for --enable-config" >&5 | |
3053 | no_cache=0 | |
3054 | # Check whether --enable-config or --disable-config was given. | |
3055 | if test "${enable_config+set}" = set; then | |
3056 | enableval="$enable_config" | |
3057 | ||
3058 | if test "$enableval" = yes; then | |
3059 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3060 | else | |
3061 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3062 | fi | |
3063 | ||
3064 | else | |
3065 | ||
3066 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
3074 | ||
3075 | fi | |
3076 | ||
3077 | ||
3078 | eval "$ac_cv_use_config" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$wxUSE_CONFIG" = yes; then | |
3084 | echo "$ac_t""yes" 1>&6 | |
3085 | else | |
3086 | echo "$ac_t""no" 1>&6 | |
3087 | fi | |
3088 | ||
3089 | ||
3090 | ||
3091 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 | |
3092 | echo "configure:3093: checking for --enable-protocols" >&5 | |
3093 | no_cache=0 | |
3094 | # Check whether --enable-protocols or --disable-protocols was given. | |
3095 | if test "${enable_protocols+set}" = set; then | |
3096 | enableval="$enable_protocols" | |
3097 | ||
3098 | if test "$enableval" = yes; then | |
3099 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3100 | else | |
3101 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3102 | fi | |
3103 | ||
3104 | else | |
3105 | ||
3106 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3107 | if test "x$LINE" != x ; then | |
3108 | eval "DEFAULT_$LINE" | |
3109 | else | |
3110 | no_cache=1 | |
3111 | fi | |
3112 | ||
3113 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3114 | ||
3115 | fi | |
3116 | ||
3117 | ||
3118 | eval "$ac_cv_use_protocols" | |
3119 | if test "$no_cache" != 1; then | |
3120 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3121 | fi | |
3122 | ||
3123 | if test "$wxUSE_PROTOCOL" = yes; then | |
3124 | echo "$ac_t""yes" 1>&6 | |
3125 | else | |
3126 | echo "$ac_t""no" 1>&6 | |
3127 | fi | |
3128 | ||
3129 | ||
3130 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
3131 | echo "configure:3132: checking for --enable-ftp" >&5 | |
3132 | no_cache=0 | |
3133 | # Check whether --enable-ftp or --disable-ftp was given. | |
3134 | if test "${enable_ftp+set}" = set; then | |
3135 | enableval="$enable_ftp" | |
3136 | ||
3137 | if test "$enableval" = yes; then | |
3138 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3139 | else | |
3140 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3141 | fi | |
3142 | ||
3143 | else | |
3144 | ||
3145 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3146 | if test "x$LINE" != x ; then | |
3147 | eval "DEFAULT_$LINE" | |
3148 | else | |
3149 | no_cache=1 | |
3150 | fi | |
3151 | ||
3152 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3153 | ||
3154 | fi | |
3155 | ||
3156 | ||
3157 | eval "$ac_cv_use_ftp" | |
3158 | if test "$no_cache" != 1; then | |
3159 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3160 | fi | |
3161 | ||
3162 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3163 | echo "$ac_t""yes" 1>&6 | |
3164 | else | |
3165 | echo "$ac_t""no" 1>&6 | |
3166 | fi | |
3167 | ||
3168 | ||
3169 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
3170 | echo "configure:3171: checking for --enable-http" >&5 | |
3171 | no_cache=0 | |
3172 | # Check whether --enable-http or --disable-http was given. | |
3173 | if test "${enable_http+set}" = set; then | |
3174 | enableval="$enable_http" | |
3175 | ||
3176 | if test "$enableval" = yes; then | |
3177 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3178 | else | |
3179 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3180 | fi | |
3181 | ||
3182 | else | |
3183 | ||
3184 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3185 | if test "x$LINE" != x ; then | |
3186 | eval "DEFAULT_$LINE" | |
3187 | else | |
3188 | no_cache=1 | |
3189 | fi | |
3190 | ||
3191 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3192 | ||
3193 | fi | |
3194 | ||
3195 | ||
3196 | eval "$ac_cv_use_http" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3202 | echo "$ac_t""yes" 1>&6 | |
3203 | else | |
3204 | echo "$ac_t""no" 1>&6 | |
3205 | fi | |
3206 | ||
3207 | ||
3208 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
3209 | echo "configure:3210: checking for --enable-fileproto" >&5 | |
3210 | no_cache=0 | |
3211 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3212 | if test "${enable_fileproto+set}" = set; then | |
3213 | enableval="$enable_fileproto" | |
3214 | ||
3215 | if test "$enableval" = yes; then | |
3216 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3217 | else | |
3218 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3219 | fi | |
3220 | ||
3221 | else | |
3222 | ||
3223 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3224 | if test "x$LINE" != x ; then | |
3225 | eval "DEFAULT_$LINE" | |
3226 | else | |
3227 | no_cache=1 | |
3228 | fi | |
3229 | ||
3230 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3231 | ||
3232 | fi | |
3233 | ||
3234 | ||
3235 | eval "$ac_cv_use_fileproto" | |
3236 | if test "$no_cache" != 1; then | |
3237 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3238 | fi | |
3239 | ||
3240 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3241 | echo "$ac_t""yes" 1>&6 | |
3242 | else | |
3243 | echo "$ac_t""no" 1>&6 | |
3244 | fi | |
3245 | ||
3246 | ||
3247 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 | |
3248 | echo "configure:3249: checking for --enable-sockets" >&5 | |
3249 | no_cache=0 | |
3250 | # Check whether --enable-sockets or --disable-sockets was given. | |
3251 | if test "${enable_sockets+set}" = set; then | |
3252 | enableval="$enable_sockets" | |
3253 | ||
3254 | if test "$enableval" = yes; then | |
3255 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3256 | else | |
3257 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3258 | fi | |
3259 | ||
3260 | else | |
3261 | ||
3262 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
3263 | if test "x$LINE" != x ; then | |
3264 | eval "DEFAULT_$LINE" | |
3265 | else | |
3266 | no_cache=1 | |
3267 | fi | |
3268 | ||
3269 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
3270 | ||
3271 | fi | |
3272 | ||
3273 | ||
3274 | eval "$ac_cv_use_sockets" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_SOCKETS" = yes; then | |
3280 | echo "$ac_t""yes" 1>&6 | |
3281 | else | |
3282 | echo "$ac_t""no" 1>&6 | |
3283 | fi | |
3284 | ||
3285 | ||
3286 | ||
3287 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3288 | echo "configure:3289: checking for --enable-ipc" >&5 | |
3289 | no_cache=0 | |
3290 | # Check whether --enable-ipc or --disable-ipc was given. | |
3291 | if test "${enable_ipc+set}" = set; then | |
3292 | enableval="$enable_ipc" | |
3293 | ||
3294 | if test "$enableval" = yes; then | |
3295 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
3296 | else | |
3297 | ac_cv_use_ipc='wxUSE_IPC=no' | |
3298 | fi | |
3299 | ||
3300 | else | |
3301 | ||
3302 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
3303 | if test "x$LINE" != x ; then | |
3304 | eval "DEFAULT_$LINE" | |
3305 | else | |
3306 | no_cache=1 | |
3307 | fi | |
3308 | ||
3309 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
3310 | ||
3311 | fi | |
3312 | ||
3313 | ||
3314 | eval "$ac_cv_use_ipc" | |
3315 | if test "$no_cache" != 1; then | |
3316 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
3317 | fi | |
3318 | ||
3319 | if test "$wxUSE_IPC" = yes; then | |
3320 | echo "$ac_t""yes" 1>&6 | |
3321 | else | |
3322 | echo "$ac_t""no" 1>&6 | |
3323 | fi | |
3324 | ||
3325 | ||
3326 | ||
3327 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 | |
3328 | echo "configure:3329: checking for --enable-cmdline" >&5 | |
3329 | no_cache=0 | |
3330 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3331 | if test "${enable_cmdline+set}" = set; then | |
3332 | enableval="$enable_cmdline" | |
3333 | ||
3334 | if test "$enableval" = yes; then | |
3335 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3336 | else | |
3337 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3338 | fi | |
3339 | ||
3340 | else | |
3341 | ||
3342 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3343 | if test "x$LINE" != x ; then | |
3344 | eval "DEFAULT_$LINE" | |
3345 | else | |
3346 | no_cache=1 | |
3347 | fi | |
3348 | ||
3349 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3350 | ||
3351 | fi | |
3352 | ||
3353 | ||
3354 | eval "$ac_cv_use_cmdline" | |
3355 | if test "$no_cache" != 1; then | |
3356 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3357 | fi | |
3358 | ||
3359 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3360 | echo "$ac_t""yes" 1>&6 | |
3361 | else | |
3362 | echo "$ac_t""no" 1>&6 | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3367 | echo "configure:3368: checking for --enable-datetime" >&5 | |
3368 | no_cache=0 | |
3369 | # Check whether --enable-datetime or --disable-datetime was given. | |
3370 | if test "${enable_datetime+set}" = set; then | |
3371 | enableval="$enable_datetime" | |
3372 | ||
3373 | if test "$enableval" = yes; then | |
3374 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3375 | else | |
3376 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3377 | fi | |
3378 | ||
3379 | else | |
3380 | ||
3381 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3382 | if test "x$LINE" != x ; then | |
3383 | eval "DEFAULT_$LINE" | |
3384 | else | |
3385 | no_cache=1 | |
3386 | fi | |
3387 | ||
3388 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3389 | ||
3390 | fi | |
3391 | ||
3392 | ||
3393 | eval "$ac_cv_use_datetime" | |
3394 | if test "$no_cache" != 1; then | |
3395 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3396 | fi | |
3397 | ||
3398 | if test "$wxUSE_DATETIME" = yes; then | |
3399 | echo "$ac_t""yes" 1>&6 | |
3400 | else | |
3401 | echo "$ac_t""no" 1>&6 | |
3402 | fi | |
3403 | ||
3404 | ||
3405 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3406 | echo "configure:3407: checking for --enable-timedate" >&5 | |
3407 | no_cache=0 | |
3408 | # Check whether --enable-timedate or --disable-timedate was given. | |
3409 | if test "${enable_timedate+set}" = set; then | |
3410 | enableval="$enable_timedate" | |
3411 | ||
3412 | if test "$enableval" = yes; then | |
3413 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3414 | else | |
3415 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3416 | fi | |
3417 | ||
3418 | else | |
3419 | ||
3420 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3421 | if test "x$LINE" != x ; then | |
3422 | eval "DEFAULT_$LINE" | |
3423 | else | |
3424 | no_cache=1 | |
3425 | fi | |
3426 | ||
3427 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3428 | ||
3429 | fi | |
3430 | ||
3431 | ||
3432 | eval "$ac_cv_use_timedate" | |
3433 | if test "$no_cache" != 1; then | |
3434 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3435 | fi | |
3436 | ||
3437 | if test "$wxUSE_TIMEDATE" = yes; then | |
3438 | echo "$ac_t""yes" 1>&6 | |
3439 | else | |
3440 | echo "$ac_t""no" 1>&6 | |
3441 | fi | |
3442 | ||
3443 | ||
3444 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3445 | echo "configure:3446: checking for --enable-stopwatch" >&5 | |
3446 | no_cache=0 | |
3447 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3448 | if test "${enable_stopwatch+set}" = set; then | |
3449 | enableval="$enable_stopwatch" | |
3450 | ||
3451 | if test "$enableval" = yes; then | |
3452 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3453 | else | |
3454 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3467 | ||
3468 | fi | |
3469 | ||
3470 | ||
3471 | eval "$ac_cv_use_stopwatch" | |
3472 | if test "$no_cache" != 1; then | |
3473 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3474 | fi | |
3475 | ||
3476 | if test "$wxUSE_STOPWATCH" = yes; then | |
3477 | echo "$ac_t""yes" 1>&6 | |
3478 | else | |
3479 | echo "$ac_t""no" 1>&6 | |
3480 | fi | |
3481 | ||
3482 | ||
3483 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 | |
3484 | echo "configure:3485: checking for --enable-dialupman" >&5 | |
3485 | no_cache=0 | |
3486 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
3487 | if test "${enable_dialupman+set}" = set; then | |
3488 | enableval="$enable_dialupman" | |
3489 | ||
3490 | if test "$enableval" = yes; then | |
3491 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
3492 | else | |
3493 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
3494 | fi | |
3495 | ||
3496 | else | |
3497 | ||
3498 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
3499 | if test "x$LINE" != x ; then | |
3500 | eval "DEFAULT_$LINE" | |
3501 | else | |
3502 | no_cache=1 | |
3503 | fi | |
3504 | ||
3505 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
3506 | ||
3507 | fi | |
3508 | ||
3509 | ||
3510 | eval "$ac_cv_use_dialupman" | |
3511 | if test "$no_cache" != 1; then | |
3512 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
3513 | fi | |
3514 | ||
3515 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
3516 | echo "$ac_t""yes" 1>&6 | |
3517 | else | |
3518 | echo "$ac_t""no" 1>&6 | |
3519 | fi | |
3520 | ||
3521 | ||
3522 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 | |
3523 | echo "configure:3524: checking for --enable-apple_ieee" >&5 | |
3524 | no_cache=0 | |
3525 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3526 | if test "${enable_apple_ieee+set}" = set; then | |
3527 | enableval="$enable_apple_ieee" | |
3528 | ||
3529 | if test "$enableval" = yes; then | |
3530 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3531 | else | |
3532 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3533 | fi | |
3534 | ||
3535 | else | |
3536 | ||
3537 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
3538 | if test "x$LINE" != x ; then | |
3539 | eval "DEFAULT_$LINE" | |
3540 | else | |
3541 | no_cache=1 | |
3542 | fi | |
3543 | ||
3544 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
3545 | ||
3546 | fi | |
3547 | ||
3548 | ||
3549 | eval "$ac_cv_use_apple_ieee" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
3555 | echo "$ac_t""yes" 1>&6 | |
3556 | else | |
3557 | echo "$ac_t""no" 1>&6 | |
3558 | fi | |
3559 | ||
3560 | ||
3561 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 | |
3562 | echo "configure:3563: checking for --enable-timer" >&5 | |
3563 | no_cache=0 | |
3564 | # Check whether --enable-timer or --disable-timer was given. | |
3565 | if test "${enable_timer+set}" = set; then | |
3566 | enableval="$enable_timer" | |
3567 | ||
3568 | if test "$enableval" = yes; then | |
3569 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
3570 | else | |
3571 | ac_cv_use_timer='wxUSE_TIMER=no' | |
3572 | fi | |
3573 | ||
3574 | else | |
3575 | ||
3576 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
3577 | if test "x$LINE" != x ; then | |
3578 | eval "DEFAULT_$LINE" | |
3579 | else | |
3580 | no_cache=1 | |
3581 | fi | |
3582 | ||
3583 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
3584 | ||
3585 | fi | |
3586 | ||
3587 | ||
3588 | eval "$ac_cv_use_timer" | |
3589 | if test "$no_cache" != 1; then | |
3590 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
3591 | fi | |
3592 | ||
3593 | if test "$wxUSE_TIMER" = yes; then | |
3594 | echo "$ac_t""yes" 1>&6 | |
3595 | else | |
3596 | echo "$ac_t""no" 1>&6 | |
3597 | fi | |
3598 | ||
3599 | ||
3600 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 | |
3601 | echo "configure:3602: checking for --enable-wave" >&5 | |
3602 | no_cache=0 | |
3603 | # Check whether --enable-wave or --disable-wave was given. | |
3604 | if test "${enable_wave+set}" = set; then | |
3605 | enableval="$enable_wave" | |
3606 | ||
3607 | if test "$enableval" = yes; then | |
3608 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3609 | else | |
3610 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3611 | fi | |
3612 | ||
3613 | else | |
3614 | ||
3615 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
3616 | if test "x$LINE" != x ; then | |
3617 | eval "DEFAULT_$LINE" | |
3618 | else | |
3619 | no_cache=1 | |
3620 | fi | |
3621 | ||
3622 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
3623 | ||
3624 | fi | |
3625 | ||
3626 | ||
3627 | eval "$ac_cv_use_wave" | |
3628 | if test "$no_cache" != 1; then | |
3629 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3630 | fi | |
3631 | ||
3632 | if test "$wxUSE_WAVE" = yes; then | |
3633 | echo "$ac_t""yes" 1>&6 | |
3634 | else | |
3635 | echo "$ac_t""no" 1>&6 | |
3636 | fi | |
3637 | ||
3638 | ||
3639 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 | |
3640 | echo "configure:3641: checking for --enable-fraction" >&5 | |
3641 | no_cache=0 | |
3642 | # Check whether --enable-fraction or --disable-fraction was given. | |
3643 | if test "${enable_fraction+set}" = set; then | |
3644 | enableval="$enable_fraction" | |
3645 | ||
3646 | if test "$enableval" = yes; then | |
3647 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3648 | else | |
3649 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3650 | fi | |
3651 | ||
3652 | else | |
3653 | ||
3654 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
3655 | if test "x$LINE" != x ; then | |
3656 | eval "DEFAULT_$LINE" | |
3657 | else | |
3658 | no_cache=1 | |
3659 | fi | |
3660 | ||
3661 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
3662 | ||
3663 | fi | |
3664 | ||
3665 | ||
3666 | eval "$ac_cv_use_fraction" | |
3667 | if test "$no_cache" != 1; then | |
3668 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_FRACTION" = yes; then | |
3672 | echo "$ac_t""yes" 1>&6 | |
3673 | else | |
3674 | echo "$ac_t""no" 1>&6 | |
3675 | fi | |
3676 | ||
3677 | ||
3678 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 | |
3679 | echo "configure:3680: checking for --enable-dynlib" >&5 | |
3680 | no_cache=0 | |
3681 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3682 | if test "${enable_dynlib+set}" = set; then | |
3683 | enableval="$enable_dynlib" | |
3684 | ||
3685 | if test "$enableval" = yes; then | |
3686 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3687 | else | |
3688 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3689 | fi | |
3690 | ||
3691 | else | |
3692 | ||
3693 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
3694 | if test "x$LINE" != x ; then | |
3695 | eval "DEFAULT_$LINE" | |
3696 | else | |
3697 | no_cache=1 | |
3698 | fi | |
3699 | ||
3700 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
3701 | ||
3702 | fi | |
3703 | ||
3704 | ||
3705 | eval "$ac_cv_use_dynlib" | |
3706 | if test "$no_cache" != 1; then | |
3707 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3708 | fi | |
3709 | ||
3710 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
3711 | echo "$ac_t""yes" 1>&6 | |
3712 | else | |
3713 | echo "$ac_t""no" 1>&6 | |
3714 | fi | |
3715 | ||
3716 | ||
3717 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 | |
3718 | echo "configure:3719: checking for --enable-dynamicloader" >&5 | |
3719 | no_cache=0 | |
3720 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3721 | if test "${enable_dynamicloader+set}" = set; then | |
3722 | enableval="$enable_dynamicloader" | |
3723 | ||
3724 | if test "$enableval" = yes; then | |
3725 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3726 | else | |
3727 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3728 | fi | |
3729 | ||
3730 | else | |
3731 | ||
3732 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3733 | if test "x$LINE" != x ; then | |
3734 | eval "DEFAULT_$LINE" | |
3735 | else | |
3736 | no_cache=1 | |
3737 | fi | |
3738 | ||
3739 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3740 | ||
3741 | fi | |
3742 | ||
3743 | ||
3744 | eval "$ac_cv_use_dynamicloader" | |
3745 | if test "$no_cache" != 1; then | |
3746 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3747 | fi | |
3748 | ||
3749 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3750 | echo "$ac_t""yes" 1>&6 | |
3751 | else | |
3752 | echo "$ac_t""no" 1>&6 | |
3753 | fi | |
3754 | ||
3755 | ||
3756 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 | |
3757 | echo "configure:3758: checking for --enable-longlong" >&5 | |
3758 | no_cache=0 | |
3759 | # Check whether --enable-longlong or --disable-longlong was given. | |
3760 | if test "${enable_longlong+set}" = set; then | |
3761 | enableval="$enable_longlong" | |
3762 | ||
3763 | if test "$enableval" = yes; then | |
3764 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3765 | else | |
3766 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3767 | fi | |
3768 | ||
3769 | else | |
3770 | ||
3771 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
3772 | if test "x$LINE" != x ; then | |
3773 | eval "DEFAULT_$LINE" | |
3774 | else | |
3775 | no_cache=1 | |
3776 | fi | |
3777 | ||
3778 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
3779 | ||
3780 | fi | |
3781 | ||
3782 | ||
3783 | eval "$ac_cv_use_longlong" | |
3784 | if test "$no_cache" != 1; then | |
3785 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3786 | fi | |
3787 | ||
3788 | if test "$wxUSE_LONGLONG" = yes; then | |
3789 | echo "$ac_t""yes" 1>&6 | |
3790 | else | |
3791 | echo "$ac_t""no" 1>&6 | |
3792 | fi | |
3793 | ||
3794 | ||
3795 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 | |
3796 | echo "configure:3797: checking for --enable-geometry" >&5 | |
3797 | no_cache=0 | |
3798 | # Check whether --enable-geometry or --disable-geometry was given. | |
3799 | if test "${enable_geometry+set}" = set; then | |
3800 | enableval="$enable_geometry" | |
3801 | ||
3802 | if test "$enableval" = yes; then | |
3803 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3804 | else | |
3805 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3806 | fi | |
3807 | ||
3808 | else | |
3809 | ||
3810 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3811 | if test "x$LINE" != x ; then | |
3812 | eval "DEFAULT_$LINE" | |
3813 | else | |
3814 | no_cache=1 | |
3815 | fi | |
3816 | ||
3817 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3818 | ||
3819 | fi | |
3820 | ||
3821 | ||
3822 | eval "$ac_cv_use_geometry" | |
3823 | if test "$no_cache" != 1; then | |
3824 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3825 | fi | |
3826 | ||
3827 | if test "$wxUSE_GEOMETRY" = yes; then | |
3828 | echo "$ac_t""yes" 1>&6 | |
3829 | else | |
3830 | echo "$ac_t""no" 1>&6 | |
3831 | fi | |
3832 | ||
3833 | ||
3834 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 | |
3835 | echo "configure:3836: checking for --enable-log" >&5 | |
3836 | no_cache=0 | |
3837 | # Check whether --enable-log or --disable-log was given. | |
3838 | if test "${enable_log+set}" = set; then | |
3839 | enableval="$enable_log" | |
3840 | ||
3841 | if test "$enableval" = yes; then | |
3842 | ac_cv_use_log='wxUSE_LOG=yes' | |
3843 | else | |
3844 | ac_cv_use_log='wxUSE_LOG=no' | |
3845 | fi | |
3846 | ||
3847 | else | |
3848 | ||
3849 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3850 | if test "x$LINE" != x ; then | |
3851 | eval "DEFAULT_$LINE" | |
3852 | else | |
3853 | no_cache=1 | |
3854 | fi | |
3855 | ||
3856 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3857 | ||
3858 | fi | |
3859 | ||
3860 | ||
3861 | eval "$ac_cv_use_log" | |
3862 | if test "$no_cache" != 1; then | |
3863 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3864 | fi | |
3865 | ||
3866 | if test "$wxUSE_LOG" = yes; then | |
3867 | echo "$ac_t""yes" 1>&6 | |
3868 | else | |
3869 | echo "$ac_t""no" 1>&6 | |
3870 | fi | |
3871 | ||
3872 | ||
3873 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 | |
3874 | echo "configure:3875: checking for --enable-streams" >&5 | |
3875 | no_cache=0 | |
3876 | # Check whether --enable-streams or --disable-streams was given. | |
3877 | if test "${enable_streams+set}" = set; then | |
3878 | enableval="$enable_streams" | |
3879 | ||
3880 | if test "$enableval" = yes; then | |
3881 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3882 | else | |
3883 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3884 | fi | |
3885 | ||
3886 | else | |
3887 | ||
3888 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3889 | if test "x$LINE" != x ; then | |
3890 | eval "DEFAULT_$LINE" | |
3891 | else | |
3892 | no_cache=1 | |
3893 | fi | |
3894 | ||
3895 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3896 | ||
3897 | fi | |
3898 | ||
3899 | ||
3900 | eval "$ac_cv_use_streams" | |
3901 | if test "$no_cache" != 1; then | |
3902 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3903 | fi | |
3904 | ||
3905 | if test "$wxUSE_STREAMS" = yes; then | |
3906 | echo "$ac_t""yes" 1>&6 | |
3907 | else | |
3908 | echo "$ac_t""no" 1>&6 | |
3909 | fi | |
3910 | ||
3911 | ||
3912 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 | |
3913 | echo "configure:3914: checking for --enable-file" >&5 | |
3914 | no_cache=0 | |
3915 | # Check whether --enable-file or --disable-file was given. | |
3916 | if test "${enable_file+set}" = set; then | |
3917 | enableval="$enable_file" | |
3918 | ||
3919 | if test "$enableval" = yes; then | |
3920 | ac_cv_use_file='wxUSE_FILE=yes' | |
3921 | else | |
3922 | ac_cv_use_file='wxUSE_FILE=no' | |
3923 | fi | |
3924 | ||
3925 | else | |
3926 | ||
3927 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3928 | if test "x$LINE" != x ; then | |
3929 | eval "DEFAULT_$LINE" | |
3930 | else | |
3931 | no_cache=1 | |
3932 | fi | |
3933 | ||
3934 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3935 | ||
3936 | fi | |
3937 | ||
3938 | ||
3939 | eval "$ac_cv_use_file" | |
3940 | if test "$no_cache" != 1; then | |
3941 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3942 | fi | |
3943 | ||
3944 | if test "$wxUSE_FILE" = yes; then | |
3945 | echo "$ac_t""yes" 1>&6 | |
3946 | else | |
3947 | echo "$ac_t""no" 1>&6 | |
3948 | fi | |
3949 | ||
3950 | ||
3951 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 | |
3952 | echo "configure:3953: checking for --enable-ffile" >&5 | |
3953 | no_cache=0 | |
3954 | # Check whether --enable-ffile or --disable-ffile was given. | |
3955 | if test "${enable_ffile+set}" = set; then | |
3956 | enableval="$enable_ffile" | |
3957 | ||
3958 | if test "$enableval" = yes; then | |
3959 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
3960 | else | |
3961 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
3962 | fi | |
3963 | ||
3964 | else | |
3965 | ||
3966 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
3967 | if test "x$LINE" != x ; then | |
3968 | eval "DEFAULT_$LINE" | |
3969 | else | |
3970 | no_cache=1 | |
3971 | fi | |
3972 | ||
3973 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
3974 | ||
3975 | fi | |
3976 | ||
3977 | ||
3978 | eval "$ac_cv_use_ffile" | |
3979 | if test "$no_cache" != 1; then | |
3980 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
3981 | fi | |
3982 | ||
3983 | if test "$wxUSE_FFILE" = yes; then | |
3984 | echo "$ac_t""yes" 1>&6 | |
3985 | else | |
3986 | echo "$ac_t""no" 1>&6 | |
3987 | fi | |
3988 | ||
3989 | ||
3990 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 | |
3991 | echo "configure:3992: checking for --enable-textbuf" >&5 | |
3992 | no_cache=0 | |
3993 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3994 | if test "${enable_textbuf+set}" = set; then | |
3995 | enableval="$enable_textbuf" | |
3996 | ||
3997 | if test "$enableval" = yes; then | |
3998 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3999 | else | |
4000 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4001 | fi | |
4002 | ||
4003 | else | |
4004 | ||
4005 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4006 | if test "x$LINE" != x ; then | |
4007 | eval "DEFAULT_$LINE" | |
4008 | else | |
4009 | no_cache=1 | |
4010 | fi | |
4011 | ||
4012 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4013 | ||
4014 | fi | |
4015 | ||
4016 | ||
4017 | eval "$ac_cv_use_textbuf" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4023 | echo "$ac_t""yes" 1>&6 | |
4024 | else | |
4025 | echo "$ac_t""no" 1>&6 | |
4026 | fi | |
4027 | ||
4028 | ||
4029 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 | |
4030 | echo "configure:4031: checking for --enable-textfile" >&5 | |
4031 | no_cache=0 | |
4032 | # Check whether --enable-textfile or --disable-textfile was given. | |
4033 | if test "${enable_textfile+set}" = set; then | |
4034 | enableval="$enable_textfile" | |
4035 | ||
4036 | if test "$enableval" = yes; then | |
4037 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
4038 | else | |
4039 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
4040 | fi | |
4041 | ||
4042 | else | |
4043 | ||
4044 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
4045 | if test "x$LINE" != x ; then | |
4046 | eval "DEFAULT_$LINE" | |
4047 | else | |
4048 | no_cache=1 | |
4049 | fi | |
4050 | ||
4051 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
4052 | ||
4053 | fi | |
4054 | ||
4055 | ||
4056 | eval "$ac_cv_use_textfile" | |
4057 | if test "$no_cache" != 1; then | |
4058 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
4059 | fi | |
4060 | ||
4061 | if test "$wxUSE_TEXTFILE" = yes; then | |
4062 | echo "$ac_t""yes" 1>&6 | |
4063 | else | |
4064 | echo "$ac_t""no" 1>&6 | |
4065 | fi | |
4066 | ||
4067 | ||
4068 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 | |
4069 | echo "configure:4070: checking for --enable-fontmap" >&5 | |
4070 | no_cache=0 | |
4071 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4072 | if test "${enable_fontmap+set}" = set; then | |
4073 | enableval="$enable_fontmap" | |
4074 | ||
4075 | if test "$enableval" = yes; then | |
4076 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4077 | else | |
4078 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4079 | fi | |
4080 | ||
4081 | else | |
4082 | ||
4083 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4084 | if test "x$LINE" != x ; then | |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
4090 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
4091 | ||
4092 | fi | |
4093 | ||
4094 | ||
4095 | eval "$ac_cv_use_fontmap" | |
4096 | if test "$no_cache" != 1; then | |
4097 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
4098 | fi | |
4099 | ||
4100 | if test "$wxUSE_FONTMAP" = yes; then | |
4101 | echo "$ac_t""yes" 1>&6 | |
4102 | else | |
4103 | echo "$ac_t""no" 1>&6 | |
4104 | fi | |
4105 | ||
4106 | ||
4107 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 | |
4108 | echo "configure:4109: checking for --enable-unicode" >&5 | |
4109 | no_cache=0 | |
4110 | # Check whether --enable-unicode or --disable-unicode was given. | |
4111 | if test "${enable_unicode+set}" = set; then | |
4112 | enableval="$enable_unicode" | |
4113 | ||
4114 | if test "$enableval" = yes; then | |
4115 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4116 | else | |
4117 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4118 | fi | |
4119 | ||
4120 | else | |
4121 | ||
4122 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4123 | if test "x$LINE" != x ; then | |
4124 | eval "DEFAULT_$LINE" | |
4125 | else | |
4126 | no_cache=1 | |
4127 | fi | |
4128 | ||
4129 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4130 | ||
4131 | fi | |
4132 | ||
4133 | ||
4134 | eval "$ac_cv_use_unicode" | |
4135 | if test "$no_cache" != 1; then | |
4136 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4137 | fi | |
4138 | ||
4139 | if test "$wxUSE_UNICODE" = yes; then | |
4140 | echo "$ac_t""yes" 1>&6 | |
4141 | else | |
4142 | echo "$ac_t""no" 1>&6 | |
4143 | fi | |
4144 | ||
4145 | ||
4146 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 | |
4147 | echo "configure:4148: checking for --enable-mslu" >&5 | |
4148 | no_cache=0 | |
4149 | # Check whether --enable-mslu or --disable-mslu was given. | |
4150 | if test "${enable_mslu+set}" = set; then | |
4151 | enableval="$enable_mslu" | |
4152 | ||
4153 | if test "$enableval" = yes; then | |
4154 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4155 | else | |
4156 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4157 | fi | |
4158 | ||
4159 | else | |
4160 | ||
4161 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4169 | ||
4170 | fi | |
4171 | ||
4172 | ||
4173 | eval "$ac_cv_use_mslu" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4179 | echo "$ac_t""yes" 1>&6 | |
4180 | else | |
4181 | echo "$ac_t""no" 1>&6 | |
4182 | fi | |
4183 | ||
4184 | ||
4185 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
4186 | echo "configure:4187: checking for --enable-wxprintfv" >&5 | |
4187 | no_cache=0 | |
4188 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4189 | if test "${enable_wxprintfv+set}" = set; then | |
4190 | enableval="$enable_wxprintfv" | |
4191 | ||
4192 | if test "$enableval" = yes; then | |
4193 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
4194 | else | |
4195 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4196 | fi | |
4197 | ||
4198 | else | |
4199 | ||
4200 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
4201 | if test "x$LINE" != x ; then | |
4202 | eval "DEFAULT_$LINE" | |
4203 | else | |
4204 | no_cache=1 | |
4205 | fi | |
4206 | ||
4207 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
4208 | ||
4209 | fi | |
4210 | ||
4211 | ||
4212 | eval "$ac_cv_use_wxprintfv" | |
4213 | if test "$no_cache" != 1; then | |
4214 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4215 | fi | |
4216 | ||
4217 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
4218 | echo "$ac_t""yes" 1>&6 | |
4219 | else | |
4220 | echo "$ac_t""no" 1>&6 | |
4221 | fi | |
4222 | ||
4223 | ||
4224 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 | |
4225 | echo "configure:4226: checking for --enable-std_iostreams" >&5 | |
4226 | no_cache=0 | |
4227 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4228 | if test "${enable_std_iostreams+set}" = set; then | |
4229 | enableval="$enable_std_iostreams" | |
4230 | ||
4231 | if test "$enableval" = yes; then | |
4232 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4233 | else | |
4234 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4235 | fi | |
4236 | ||
4237 | else | |
4238 | ||
4239 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
4240 | if test "x$LINE" != x ; then | |
4241 | eval "DEFAULT_$LINE" | |
4242 | else | |
4243 | no_cache=1 | |
4244 | fi | |
4245 | ||
4246 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
4247 | ||
4248 | fi | |
4249 | ||
4250 | ||
4251 | eval "$ac_cv_use_std_iostreams" | |
4252 | if test "$no_cache" != 1; then | |
4253 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4254 | fi | |
4255 | ||
4256 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
4257 | echo "$ac_t""yes" 1>&6 | |
4258 | else | |
4259 | echo "$ac_t""no" 1>&6 | |
4260 | fi | |
4261 | ||
4262 | ||
4263 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 | |
4264 | echo "configure:4265: checking for --enable-filesystem" >&5 | |
4265 | no_cache=0 | |
4266 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4267 | if test "${enable_filesystem+set}" = set; then | |
4268 | enableval="$enable_filesystem" | |
4269 | ||
4270 | if test "$enableval" = yes; then | |
4271 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4272 | else | |
4273 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4274 | fi | |
4275 | ||
4276 | else | |
4277 | ||
4278 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4286 | ||
4287 | fi | |
4288 | ||
4289 | ||
4290 | eval "$ac_cv_use_filesystem" | |
4291 | if test "$no_cache" != 1; then | |
4292 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4293 | fi | |
4294 | ||
4295 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4296 | echo "$ac_t""yes" 1>&6 | |
4297 | else | |
4298 | echo "$ac_t""no" 1>&6 | |
4299 | fi | |
4300 | ||
4301 | ||
4302 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 | |
4303 | echo "configure:4304: checking for --enable-fs_inet" >&5 | |
4304 | no_cache=0 | |
4305 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4306 | if test "${enable_fs_inet+set}" = set; then | |
4307 | enableval="$enable_fs_inet" | |
4308 | ||
4309 | if test "$enableval" = yes; then | |
4310 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4311 | else | |
4312 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4313 | fi | |
4314 | ||
4315 | else | |
4316 | ||
4317 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
4318 | if test "x$LINE" != x ; then | |
4319 | eval "DEFAULT_$LINE" | |
4320 | else | |
4321 | no_cache=1 | |
4322 | fi | |
4323 | ||
4324 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
4325 | ||
4326 | fi | |
4327 | ||
4328 | ||
4329 | eval "$ac_cv_use_fs_inet" | |
4330 | if test "$no_cache" != 1; then | |
4331 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4332 | fi | |
4333 | ||
4334 | if test "$wxUSE_FS_INET" = yes; then | |
4335 | echo "$ac_t""yes" 1>&6 | |
4336 | else | |
4337 | echo "$ac_t""no" 1>&6 | |
4338 | fi | |
4339 | ||
4340 | ||
4341 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 | |
4342 | echo "configure:4343: checking for --enable-fs_zip" >&5 | |
4343 | no_cache=0 | |
4344 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4345 | if test "${enable_fs_zip+set}" = set; then | |
4346 | enableval="$enable_fs_zip" | |
4347 | ||
4348 | if test "$enableval" = yes; then | |
4349 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4350 | else | |
4351 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4352 | fi | |
4353 | ||
4354 | else | |
4355 | ||
4356 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
4357 | if test "x$LINE" != x ; then | |
4358 | eval "DEFAULT_$LINE" | |
4359 | else | |
4360 | no_cache=1 | |
4361 | fi | |
4362 | ||
4363 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
4364 | ||
4365 | fi | |
4366 | ||
4367 | ||
4368 | eval "$ac_cv_use_fs_zip" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_FS_ZIP" = yes; then | |
4374 | echo "$ac_t""yes" 1>&6 | |
4375 | else | |
4376 | echo "$ac_t""no" 1>&6 | |
4377 | fi | |
4378 | ||
4379 | ||
4380 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 | |
4381 | echo "configure:4382: checking for --enable-zipstream" >&5 | |
4382 | no_cache=0 | |
4383 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4384 | if test "${enable_zipstream+set}" = set; then | |
4385 | enableval="$enable_zipstream" | |
4386 | ||
4387 | if test "$enableval" = yes; then | |
4388 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4389 | else | |
4390 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4391 | fi | |
4392 | ||
4393 | else | |
4394 | ||
4395 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
4396 | if test "x$LINE" != x ; then | |
4397 | eval "DEFAULT_$LINE" | |
4398 | else | |
4399 | no_cache=1 | |
4400 | fi | |
4401 | ||
4402 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
4403 | ||
4404 | fi | |
4405 | ||
4406 | ||
4407 | eval "$ac_cv_use_zipstream" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
4413 | echo "$ac_t""yes" 1>&6 | |
4414 | else | |
4415 | echo "$ac_t""no" 1>&6 | |
4416 | fi | |
4417 | ||
4418 | ||
4419 | ||
4420 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
4421 | echo "configure:4422: checking for --enable-catch_segvs" >&5 | |
4422 | no_cache=0 | |
4423 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4424 | if test "${enable_catch_segvs+set}" = set; then | |
4425 | enableval="$enable_catch_segvs" | |
4426 | ||
4427 | if test "$enableval" = yes; then | |
4428 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4429 | else | |
4430 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4431 | fi | |
4432 | ||
4433 | else | |
4434 | ||
4435 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4436 | if test "x$LINE" != x ; then | |
4437 | eval "DEFAULT_$LINE" | |
4438 | else | |
4439 | no_cache=1 | |
4440 | fi | |
4441 | ||
4442 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4443 | ||
4444 | fi | |
4445 | ||
4446 | ||
4447 | eval "$ac_cv_use_catch_segvs" | |
4448 | if test "$no_cache" != 1; then | |
4449 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4450 | fi | |
4451 | ||
4452 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4453 | echo "$ac_t""yes" 1>&6 | |
4454 | else | |
4455 | echo "$ac_t""no" 1>&6 | |
4456 | fi | |
4457 | ||
4458 | ||
4459 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 | |
4460 | echo "configure:4461: checking for --enable-snglinst" >&5 | |
4461 | no_cache=0 | |
4462 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4463 | if test "${enable_snglinst+set}" = set; then | |
4464 | enableval="$enable_snglinst" | |
4465 | ||
4466 | if test "$enableval" = yes; then | |
4467 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4468 | else | |
4469 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4470 | fi | |
4471 | ||
4472 | else | |
4473 | ||
4474 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
4475 | if test "x$LINE" != x ; then | |
4476 | eval "DEFAULT_$LINE" | |
4477 | else | |
4478 | no_cache=1 | |
4479 | fi | |
4480 | ||
4481 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4482 | ||
4483 | fi | |
4484 | ||
4485 | ||
4486 | eval "$ac_cv_use_snglinst" | |
4487 | if test "$no_cache" != 1; then | |
4488 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4489 | fi | |
4490 | ||
4491 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
4492 | echo "$ac_t""yes" 1>&6 | |
4493 | else | |
4494 | echo "$ac_t""no" 1>&6 | |
4495 | fi | |
4496 | ||
4497 | ||
4498 | ||
4499 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 | |
4500 | echo "configure:4501: checking for --enable-mimetype" >&5 | |
4501 | no_cache=0 | |
4502 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4503 | if test "${enable_mimetype+set}" = set; then | |
4504 | enableval="$enable_mimetype" | |
4505 | ||
4506 | if test "$enableval" = yes; then | |
4507 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4508 | else | |
4509 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4510 | fi | |
4511 | ||
4512 | else | |
4513 | ||
4514 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4515 | if test "x$LINE" != x ; then | |
4516 | eval "DEFAULT_$LINE" | |
4517 | else | |
4518 | no_cache=1 | |
4519 | fi | |
4520 | ||
4521 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4522 | ||
4523 | fi | |
4524 | ||
4525 | ||
4526 | eval "$ac_cv_use_mimetype" | |
4527 | if test "$no_cache" != 1; then | |
4528 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4529 | fi | |
4530 | ||
4531 | if test "$wxUSE_MIMETYPE" = yes; then | |
4532 | echo "$ac_t""yes" 1>&6 | |
4533 | else | |
4534 | echo "$ac_t""no" 1>&6 | |
4535 | fi | |
4536 | ||
4537 | ||
4538 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 | |
4539 | echo "configure:4540: checking for --enable-system_options" >&5 | |
4540 | no_cache=0 | |
4541 | # Check whether --enable-system_options or --disable-system_options was given. | |
4542 | if test "${enable_system_options+set}" = set; then | |
4543 | enableval="$enable_system_options" | |
4544 | ||
4545 | if test "$enableval" = yes; then | |
4546 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4547 | else | |
4548 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4549 | fi | |
4550 | ||
4551 | else | |
4552 | ||
4553 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4554 | if test "x$LINE" != x ; then | |
4555 | eval "DEFAULT_$LINE" | |
4556 | else | |
4557 | no_cache=1 | |
4558 | fi | |
4559 | ||
4560 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4561 | ||
4562 | fi | |
4563 | ||
4564 | ||
4565 | eval "$ac_cv_use_system_options" | |
4566 | if test "$no_cache" != 1; then | |
4567 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4568 | fi | |
4569 | ||
4570 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4571 | echo "$ac_t""yes" 1>&6 | |
4572 | else | |
4573 | echo "$ac_t""no" 1>&6 | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | ||
4578 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 | |
4579 | echo "configure:4580: checking for --enable-url" >&5 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-url or --disable-url was given. | |
4582 | if test "${enable_url+set}" = set; then | |
4583 | enableval="$enable_url" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_url='wxUSE_URL=yes' | |
4587 | else | |
4588 | ac_cv_use_url='wxUSE_URL=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4601 | ||
4602 | fi | |
4603 | ||
4604 | ||
4605 | eval "$ac_cv_use_url" | |
4606 | if test "$no_cache" != 1; then | |
4607 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4608 | fi | |
4609 | ||
4610 | if test "$wxUSE_URL" = yes; then | |
4611 | echo "$ac_t""yes" 1>&6 | |
4612 | else | |
4613 | echo "$ac_t""no" 1>&6 | |
4614 | fi | |
4615 | ||
4616 | ||
4617 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
4618 | echo "configure:4619: checking for --enable-protocol" >&5 | |
4619 | no_cache=0 | |
4620 | # Check whether --enable-protocol or --disable-protocol was given. | |
4621 | if test "${enable_protocol+set}" = set; then | |
4622 | enableval="$enable_protocol" | |
4623 | ||
4624 | if test "$enableval" = yes; then | |
4625 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4626 | else | |
4627 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4628 | fi | |
4629 | ||
4630 | else | |
4631 | ||
4632 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4633 | if test "x$LINE" != x ; then | |
4634 | eval "DEFAULT_$LINE" | |
4635 | else | |
4636 | no_cache=1 | |
4637 | fi | |
4638 | ||
4639 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4640 | ||
4641 | fi | |
4642 | ||
4643 | ||
4644 | eval "$ac_cv_use_protocol" | |
4645 | if test "$no_cache" != 1; then | |
4646 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4647 | fi | |
4648 | ||
4649 | if test "$wxUSE_PROTOCOL" = yes; then | |
4650 | echo "$ac_t""yes" 1>&6 | |
4651 | else | |
4652 | echo "$ac_t""no" 1>&6 | |
4653 | fi | |
4654 | ||
4655 | ||
4656 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
4657 | echo "configure:4658: checking for --enable-protocol_http" >&5 | |
4658 | no_cache=0 | |
4659 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4660 | if test "${enable_protocol_http+set}" = set; then | |
4661 | enableval="$enable_protocol_http" | |
4662 | ||
4663 | if test "$enableval" = yes; then | |
4664 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4665 | else | |
4666 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4667 | fi | |
4668 | ||
4669 | else | |
4670 | ||
4671 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4672 | if test "x$LINE" != x ; then | |
4673 | eval "DEFAULT_$LINE" | |
4674 | else | |
4675 | no_cache=1 | |
4676 | fi | |
4677 | ||
4678 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4679 | ||
4680 | fi | |
4681 | ||
4682 | ||
4683 | eval "$ac_cv_use_protocol_http" | |
4684 | if test "$no_cache" != 1; then | |
4685 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4686 | fi | |
4687 | ||
4688 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4689 | echo "$ac_t""yes" 1>&6 | |
4690 | else | |
4691 | echo "$ac_t""no" 1>&6 | |
4692 | fi | |
4693 | ||
4694 | ||
4695 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
4696 | echo "configure:4697: checking for --enable-protocol_ftp" >&5 | |
4697 | no_cache=0 | |
4698 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4699 | if test "${enable_protocol_ftp+set}" = set; then | |
4700 | enableval="$enable_protocol_ftp" | |
4701 | ||
4702 | if test "$enableval" = yes; then | |
4703 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4704 | else | |
4705 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4706 | fi | |
4707 | ||
4708 | else | |
4709 | ||
4710 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4711 | if test "x$LINE" != x ; then | |
4712 | eval "DEFAULT_$LINE" | |
4713 | else | |
4714 | no_cache=1 | |
4715 | fi | |
4716 | ||
4717 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4718 | ||
4719 | fi | |
4720 | ||
4721 | ||
4722 | eval "$ac_cv_use_protocol_ftp" | |
4723 | if test "$no_cache" != 1; then | |
4724 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4725 | fi | |
4726 | ||
4727 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4728 | echo "$ac_t""yes" 1>&6 | |
4729 | else | |
4730 | echo "$ac_t""no" 1>&6 | |
4731 | fi | |
4732 | ||
4733 | ||
4734 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
4735 | echo "configure:4736: checking for --enable-protocol_file" >&5 | |
4736 | no_cache=0 | |
4737 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4738 | if test "${enable_protocol_file+set}" = set; then | |
4739 | enableval="$enable_protocol_file" | |
4740 | ||
4741 | if test "$enableval" = yes; then | |
4742 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4743 | else | |
4744 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4745 | fi | |
4746 | ||
4747 | else | |
4748 | ||
4749 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4750 | if test "x$LINE" != x ; then | |
4751 | eval "DEFAULT_$LINE" | |
4752 | else | |
4753 | no_cache=1 | |
4754 | fi | |
4755 | ||
4756 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4757 | ||
4758 | fi | |
4759 | ||
4760 | ||
4761 | eval "$ac_cv_use_protocol_file" | |
4762 | if test "$no_cache" != 1; then | |
4763 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4764 | fi | |
4765 | ||
4766 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4767 | echo "$ac_t""yes" 1>&6 | |
4768 | else | |
4769 | echo "$ac_t""no" 1>&6 | |
4770 | fi | |
4771 | ||
4772 | ||
4773 | ||
4774 | ||
4775 | ||
4776 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4777 | echo "configure:4778: checking for --enable-threads" >&5 | |
4778 | no_cache=0 | |
4779 | # Check whether --enable-threads or --disable-threads was given. | |
4780 | if test "${enable_threads+set}" = set; then | |
4781 | enableval="$enable_threads" | |
4782 | ||
4783 | if test "$enableval" = yes; then | |
4784 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4785 | else | |
4786 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4787 | fi | |
4788 | ||
4789 | else | |
4790 | ||
4791 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
4792 | if test "x$LINE" != x ; then | |
4793 | eval "DEFAULT_$LINE" | |
4794 | else | |
4795 | no_cache=1 | |
4796 | fi | |
4797 | ||
4798 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
4799 | ||
4800 | fi | |
4801 | ||
4802 | ||
4803 | eval "$ac_cv_use_threads" | |
4804 | if test "$no_cache" != 1; then | |
4805 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4806 | fi | |
4807 | ||
4808 | if test "$wxUSE_THREADS" = yes; then | |
4809 | echo "$ac_t""yes" 1>&6 | |
4810 | else | |
4811 | echo "$ac_t""no" 1>&6 | |
4812 | fi | |
4813 | ||
4814 | ||
4815 | if test "$wxUSE_GUI" = "yes"; then | |
4816 | ||
4817 | ||
4818 | ||
4819 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4820 | echo "configure:4821: checking for --enable-docview" >&5 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-docview or --disable-docview was given. | |
4823 | if test "${enable_docview+set}" = set; then | |
4824 | enableval="$enable_docview" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4828 | else | |
4829 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
4842 | ||
4843 | fi | |
4844 | ||
4845 | ||
4846 | eval "$ac_cv_use_docview" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
4852 | echo "$ac_t""yes" 1>&6 | |
4853 | else | |
4854 | echo "$ac_t""no" 1>&6 | |
4855 | fi | |
4856 | ||
4857 | ||
4858 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 | |
4859 | echo "configure:4860: checking for --enable-help" >&5 | |
4860 | no_cache=0 | |
4861 | # Check whether --enable-help or --disable-help was given. | |
4862 | if test "${enable_help+set}" = set; then | |
4863 | enableval="$enable_help" | |
4864 | ||
4865 | if test "$enableval" = yes; then | |
4866 | ac_cv_use_help='wxUSE_HELP=yes' | |
4867 | else | |
4868 | ac_cv_use_help='wxUSE_HELP=no' | |
4869 | fi | |
4870 | ||
4871 | else | |
4872 | ||
4873 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
4874 | if test "x$LINE" != x ; then | |
4875 | eval "DEFAULT_$LINE" | |
4876 | else | |
4877 | no_cache=1 | |
4878 | fi | |
4879 | ||
4880 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
4881 | ||
4882 | fi | |
4883 | ||
4884 | ||
4885 | eval "$ac_cv_use_help" | |
4886 | if test "$no_cache" != 1; then | |
4887 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4888 | fi | |
4889 | ||
4890 | if test "$wxUSE_HELP" = yes; then | |
4891 | echo "$ac_t""yes" 1>&6 | |
4892 | else | |
4893 | echo "$ac_t""no" 1>&6 | |
4894 | fi | |
4895 | ||
4896 | ||
4897 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 | |
4898 | echo "configure:4899: checking for --enable-mshtmlhelp" >&5 | |
4899 | no_cache=0 | |
4900 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4901 | if test "${enable_mshtmlhelp+set}" = set; then | |
4902 | enableval="$enable_mshtmlhelp" | |
4903 | ||
4904 | if test "$enableval" = yes; then | |
4905 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4906 | else | |
4907 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4908 | fi | |
4909 | ||
4910 | else | |
4911 | ||
4912 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4913 | if test "x$LINE" != x ; then | |
4914 | eval "DEFAULT_$LINE" | |
4915 | else | |
4916 | no_cache=1 | |
4917 | fi | |
4918 | ||
4919 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4920 | ||
4921 | fi | |
4922 | ||
4923 | ||
4924 | eval "$ac_cv_use_mshtmlhelp" | |
4925 | if test "$no_cache" != 1; then | |
4926 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4927 | fi | |
4928 | ||
4929 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4930 | echo "$ac_t""yes" 1>&6 | |
4931 | else | |
4932 | echo "$ac_t""no" 1>&6 | |
4933 | fi | |
4934 | ||
4935 | ||
4936 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 | |
4937 | echo "configure:4938: checking for --enable-html" >&5 | |
4938 | no_cache=0 | |
4939 | # Check whether --enable-html or --disable-html was given. | |
4940 | if test "${enable_html+set}" = set; then | |
4941 | enableval="$enable_html" | |
4942 | ||
4943 | if test "$enableval" = yes; then | |
4944 | ac_cv_use_html='wxUSE_HTML=yes' | |
4945 | else | |
4946 | ac_cv_use_html='wxUSE_HTML=no' | |
4947 | fi | |
4948 | ||
4949 | else | |
4950 | ||
4951 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4952 | if test "x$LINE" != x ; then | |
4953 | eval "DEFAULT_$LINE" | |
4954 | else | |
4955 | no_cache=1 | |
4956 | fi | |
4957 | ||
4958 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4959 | ||
4960 | fi | |
4961 | ||
4962 | ||
4963 | eval "$ac_cv_use_html" | |
4964 | if test "$no_cache" != 1; then | |
4965 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4966 | fi | |
4967 | ||
4968 | if test "$wxUSE_HTML" = yes; then | |
4969 | echo "$ac_t""yes" 1>&6 | |
4970 | else | |
4971 | echo "$ac_t""no" 1>&6 | |
4972 | fi | |
4973 | ||
4974 | ||
4975 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
4976 | echo "configure:4977: checking for --enable-htmlhelp" >&5 | |
4977 | no_cache=0 | |
4978 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4979 | if test "${enable_htmlhelp+set}" = set; then | |
4980 | enableval="$enable_htmlhelp" | |
4981 | ||
4982 | if test "$enableval" = yes; then | |
4983 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4984 | else | |
4985 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4986 | fi | |
4987 | ||
4988 | else | |
4989 | ||
4990 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4991 | if test "x$LINE" != x ; then | |
4992 | eval "DEFAULT_$LINE" | |
4993 | else | |
4994 | no_cache=1 | |
4995 | fi | |
4996 | ||
4997 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4998 | ||
4999 | fi | |
5000 | ||
5001 | ||
5002 | eval "$ac_cv_use_htmlhelp" | |
5003 | if test "$no_cache" != 1; then | |
5004 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5005 | fi | |
5006 | ||
5007 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5008 | echo "$ac_t""yes" 1>&6 | |
5009 | else | |
5010 | echo "$ac_t""no" 1>&6 | |
5011 | fi | |
5012 | ||
5013 | ||
5014 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 | |
5015 | echo "configure:5016: checking for --enable-constraints" >&5 | |
5016 | no_cache=0 | |
5017 | # Check whether --enable-constraints or --disable-constraints was given. | |
5018 | if test "${enable_constraints+set}" = set; then | |
5019 | enableval="$enable_constraints" | |
5020 | ||
5021 | if test "$enableval" = yes; then | |
5022 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5023 | else | |
5024 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5025 | fi | |
5026 | ||
5027 | else | |
5028 | ||
5029 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
5030 | if test "x$LINE" != x ; then | |
5031 | eval "DEFAULT_$LINE" | |
5032 | else | |
5033 | no_cache=1 | |
5034 | fi | |
5035 | ||
5036 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
5037 | ||
5038 | fi | |
5039 | ||
5040 | ||
5041 | eval "$ac_cv_use_constraints" | |
5042 | if test "$no_cache" != 1; then | |
5043 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5044 | fi | |
5045 | ||
5046 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
5047 | echo "$ac_t""yes" 1>&6 | |
5048 | else | |
5049 | echo "$ac_t""no" 1>&6 | |
5050 | fi | |
5051 | ||
5052 | ||
5053 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 | |
5054 | echo "configure:5055: checking for --enable-printarch" >&5 | |
5055 | no_cache=0 | |
5056 | # Check whether --enable-printarch or --disable-printarch was given. | |
5057 | if test "${enable_printarch+set}" = set; then | |
5058 | enableval="$enable_printarch" | |
5059 | ||
5060 | if test "$enableval" = yes; then | |
5061 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5062 | else | |
5063 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5064 | fi | |
5065 | ||
5066 | else | |
5067 | ||
5068 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
5069 | if test "x$LINE" != x ; then | |
5070 | eval "DEFAULT_$LINE" | |
5071 | else | |
5072 | no_cache=1 | |
5073 | fi | |
5074 | ||
5075 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
5076 | ||
5077 | fi | |
5078 | ||
5079 | ||
5080 | eval "$ac_cv_use_printarch" | |
5081 | if test "$no_cache" != 1; then | |
5082 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5083 | fi | |
5084 | ||
5085 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
5086 | echo "$ac_t""yes" 1>&6 | |
5087 | else | |
5088 | echo "$ac_t""no" 1>&6 | |
5089 | fi | |
5090 | ||
5091 | ||
5092 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 | |
5093 | echo "configure:5094: checking for --enable-mdi" >&5 | |
5094 | no_cache=0 | |
5095 | # Check whether --enable-mdi or --disable-mdi was given. | |
5096 | if test "${enable_mdi+set}" = set; then | |
5097 | enableval="$enable_mdi" | |
5098 | ||
5099 | if test "$enableval" = yes; then | |
5100 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5101 | else | |
5102 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5103 | fi | |
5104 | ||
5105 | else | |
5106 | ||
5107 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
5108 | if test "x$LINE" != x ; then | |
5109 | eval "DEFAULT_$LINE" | |
5110 | else | |
5111 | no_cache=1 | |
5112 | fi | |
5113 | ||
5114 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
5115 | ||
5116 | fi | |
5117 | ||
5118 | ||
5119 | eval "$ac_cv_use_mdi" | |
5120 | if test "$no_cache" != 1; then | |
5121 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5122 | fi | |
5123 | ||
5124 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
5125 | echo "$ac_t""yes" 1>&6 | |
5126 | else | |
5127 | echo "$ac_t""no" 1>&6 | |
5128 | fi | |
5129 | ||
5130 | ||
5131 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 | |
5132 | echo "configure:5133: checking for --enable-loggui" >&5 | |
5133 | no_cache=0 | |
5134 | # Check whether --enable-loggui or --disable-loggui was given. | |
5135 | if test "${enable_loggui+set}" = set; then | |
5136 | enableval="$enable_loggui" | |
5137 | ||
5138 | if test "$enableval" = yes; then | |
5139 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5140 | else | |
5141 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5142 | fi | |
5143 | ||
5144 | else | |
5145 | ||
5146 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5147 | if test "x$LINE" != x ; then | |
5148 | eval "DEFAULT_$LINE" | |
5149 | else | |
5150 | no_cache=1 | |
5151 | fi | |
5152 | ||
5153 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5154 | ||
5155 | fi | |
5156 | ||
5157 | ||
5158 | eval "$ac_cv_use_loggui" | |
5159 | if test "$no_cache" != 1; then | |
5160 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5161 | fi | |
5162 | ||
5163 | if test "$wxUSE_LOGGUI" = yes; then | |
5164 | echo "$ac_t""yes" 1>&6 | |
5165 | else | |
5166 | echo "$ac_t""no" 1>&6 | |
5167 | fi | |
5168 | ||
5169 | ||
5170 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
5171 | echo "configure:5172: checking for --enable-logwin" >&5 | |
5172 | no_cache=0 | |
5173 | # Check whether --enable-logwin or --disable-logwin was given. | |
5174 | if test "${enable_logwin+set}" = set; then | |
5175 | enableval="$enable_logwin" | |
5176 | ||
5177 | if test "$enableval" = yes; then | |
5178 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5179 | else | |
5180 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5181 | fi | |
5182 | ||
5183 | else | |
5184 | ||
5185 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5186 | if test "x$LINE" != x ; then | |
5187 | eval "DEFAULT_$LINE" | |
5188 | else | |
5189 | no_cache=1 | |
5190 | fi | |
5191 | ||
5192 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5193 | ||
5194 | fi | |
5195 | ||
5196 | ||
5197 | eval "$ac_cv_use_logwin" | |
5198 | if test "$no_cache" != 1; then | |
5199 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5200 | fi | |
5201 | ||
5202 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5203 | echo "$ac_t""yes" 1>&6 | |
5204 | else | |
5205 | echo "$ac_t""no" 1>&6 | |
5206 | fi | |
5207 | ||
5208 | ||
5209 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 | |
5210 | echo "configure:5211: checking for --enable-logdialog" >&5 | |
5211 | no_cache=0 | |
5212 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5213 | if test "${enable_logdialog+set}" = set; then | |
5214 | enableval="$enable_logdialog" | |
5215 | ||
5216 | if test "$enableval" = yes; then | |
5217 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5218 | else | |
5219 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5220 | fi | |
5221 | ||
5222 | else | |
5223 | ||
5224 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5225 | if test "x$LINE" != x ; then | |
5226 | eval "DEFAULT_$LINE" | |
5227 | else | |
5228 | no_cache=1 | |
5229 | fi | |
5230 | ||
5231 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5232 | ||
5233 | fi | |
5234 | ||
5235 | ||
5236 | eval "$ac_cv_use_logdialog" | |
5237 | if test "$no_cache" != 1; then | |
5238 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5239 | fi | |
5240 | ||
5241 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5242 | echo "$ac_t""yes" 1>&6 | |
5243 | else | |
5244 | echo "$ac_t""no" 1>&6 | |
5245 | fi | |
5246 | ||
5247 | ||
5248 | ||
5249 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 | |
5250 | echo "configure:5251: checking for --enable-postscript" >&5 | |
5251 | no_cache=0 | |
5252 | # Check whether --enable-postscript or --disable-postscript was given. | |
5253 | if test "${enable_postscript+set}" = set; then | |
5254 | enableval="$enable_postscript" | |
5255 | ||
5256 | if test "$enableval" = yes; then | |
5257 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5258 | else | |
5259 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5260 | fi | |
5261 | ||
5262 | else | |
5263 | ||
5264 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
5272 | ||
5273 | fi | |
5274 | ||
5275 | ||
5276 | eval "$ac_cv_use_postscript" | |
5277 | if test "$no_cache" != 1; then | |
5278 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5279 | fi | |
5280 | ||
5281 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
5282 | echo "$ac_t""yes" 1>&6 | |
5283 | else | |
5284 | echo "$ac_t""no" 1>&6 | |
5285 | fi | |
5286 | ||
5287 | ||
5288 | ||
5289 | ||
5290 | ||
5291 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
5292 | echo "configure:5293: checking for --enable-prologio" >&5 | |
5293 | no_cache=0 | |
5294 | # Check whether --enable-prologio or --disable-prologio was given. | |
5295 | if test "${enable_prologio+set}" = set; then | |
5296 | enableval="$enable_prologio" | |
5297 | ||
5298 | if test "$enableval" = yes; then | |
5299 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5300 | else | |
5301 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5302 | fi | |
5303 | ||
5304 | else | |
5305 | ||
5306 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
5307 | if test "x$LINE" != x ; then | |
5308 | eval "DEFAULT_$LINE" | |
5309 | else | |
5310 | no_cache=1 | |
5311 | fi | |
5312 | ||
5313 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
5314 | ||
5315 | fi | |
5316 | ||
5317 | ||
5318 | eval "$ac_cv_use_prologio" | |
5319 | if test "$no_cache" != 1; then | |
5320 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5321 | fi | |
5322 | ||
5323 | if test "$wxUSE_PROLOGIO" = yes; then | |
5324 | echo "$ac_t""yes" 1>&6 | |
5325 | else | |
5326 | echo "$ac_t""no" 1>&6 | |
5327 | fi | |
5328 | ||
5329 | ||
5330 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 | |
5331 | echo "configure:5332: checking for --enable-resources" >&5 | |
5332 | no_cache=0 | |
5333 | # Check whether --enable-resources or --disable-resources was given. | |
5334 | if test "${enable_resources+set}" = set; then | |
5335 | enableval="$enable_resources" | |
5336 | ||
5337 | if test "$enableval" = yes; then | |
5338 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5339 | else | |
5340 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5341 | fi | |
5342 | ||
5343 | else | |
5344 | ||
5345 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
5346 | if test "x$LINE" != x ; then | |
5347 | eval "DEFAULT_$LINE" | |
5348 | else | |
5349 | no_cache=1 | |
5350 | fi | |
5351 | ||
5352 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
5353 | ||
5354 | fi | |
5355 | ||
5356 | ||
5357 | eval "$ac_cv_use_resources" | |
5358 | if test "$no_cache" != 1; then | |
5359 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5360 | fi | |
5361 | ||
5362 | if test "$wxUSE_RESOURCES" = yes; then | |
5363 | echo "$ac_t""yes" 1>&6 | |
5364 | else | |
5365 | echo "$ac_t""no" 1>&6 | |
5366 | fi | |
5367 | ||
5368 | ||
5369 | ||
5370 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
5371 | echo "configure:5372: checking for --enable-xresources" >&5 | |
5372 | no_cache=0 | |
5373 | # Check whether --enable-xresources or --disable-xresources was given. | |
5374 | if test "${enable_xresources+set}" = set; then | |
5375 | enableval="$enable_xresources" | |
5376 | ||
5377 | if test "$enableval" = yes; then | |
5378 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5379 | else | |
5380 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5381 | fi | |
5382 | ||
5383 | else | |
5384 | ||
5385 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
5386 | if test "x$LINE" != x ; then | |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
5392 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
5393 | ||
5394 | fi | |
5395 | ||
5396 | ||
5397 | eval "$ac_cv_use_xresources" | |
5398 | if test "$no_cache" != 1; then | |
5399 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5400 | fi | |
5401 | ||
5402 | if test "$wxUSE_X_RESOURCES" = yes; then | |
5403 | echo "$ac_t""yes" 1>&6 | |
5404 | else | |
5405 | echo "$ac_t""no" 1>&6 | |
5406 | fi | |
5407 | ||
5408 | ||
5409 | ||
5410 | ||
5411 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
5412 | echo "configure:5413: checking for --enable-clipboard" >&5 | |
5413 | no_cache=0 | |
5414 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5415 | if test "${enable_clipboard+set}" = set; then | |
5416 | enableval="$enable_clipboard" | |
5417 | ||
5418 | if test "$enableval" = yes; then | |
5419 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5420 | else | |
5421 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5422 | fi | |
5423 | ||
5424 | else | |
5425 | ||
5426 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
5427 | if test "x$LINE" != x ; then | |
5428 | eval "DEFAULT_$LINE" | |
5429 | else | |
5430 | no_cache=1 | |
5431 | fi | |
5432 | ||
5433 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
5434 | ||
5435 | fi | |
5436 | ||
5437 | ||
5438 | eval "$ac_cv_use_clipboard" | |
5439 | if test "$no_cache" != 1; then | |
5440 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5441 | fi | |
5442 | ||
5443 | if test "$wxUSE_CLIPBOARD" = yes; then | |
5444 | echo "$ac_t""yes" 1>&6 | |
5445 | else | |
5446 | echo "$ac_t""no" 1>&6 | |
5447 | fi | |
5448 | ||
5449 | ||
5450 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 | |
5451 | echo "configure:5452: checking for --enable-dnd" >&5 | |
5452 | no_cache=0 | |
5453 | # Check whether --enable-dnd or --disable-dnd was given. | |
5454 | if test "${enable_dnd+set}" = set; then | |
5455 | enableval="$enable_dnd" | |
5456 | ||
5457 | if test "$enableval" = yes; then | |
5458 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5459 | else | |
5460 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5461 | fi | |
5462 | ||
5463 | else | |
5464 | ||
5465 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
5466 | if test "x$LINE" != x ; then | |
5467 | eval "DEFAULT_$LINE" | |
5468 | else | |
5469 | no_cache=1 | |
5470 | fi | |
5471 | ||
5472 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
5473 | ||
5474 | fi | |
5475 | ||
5476 | ||
5477 | eval "$ac_cv_use_dnd" | |
5478 | if test "$no_cache" != 1; then | |
5479 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5480 | fi | |
5481 | ||
5482 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
5483 | echo "$ac_t""yes" 1>&6 | |
5484 | else | |
5485 | echo "$ac_t""no" 1>&6 | |
5486 | fi | |
5487 | ||
5488 | ||
5489 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
5490 | echo "configure:5491: checking for --enable-metafile" >&5 | |
5491 | no_cache=0 | |
5492 | # Check whether --enable-metafile or --disable-metafile was given. | |
5493 | if test "${enable_metafile+set}" = set; then | |
5494 | enableval="$enable_metafile" | |
5495 | ||
5496 | if test "$enableval" = yes; then | |
5497 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5498 | else | |
5499 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5500 | fi | |
5501 | ||
5502 | else | |
5503 | ||
5504 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
5505 | if test "x$LINE" != x ; then | |
5506 | eval "DEFAULT_$LINE" | |
5507 | else | |
5508 | no_cache=1 | |
5509 | fi | |
5510 | ||
5511 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
5512 | ||
5513 | fi | |
5514 | ||
5515 | ||
5516 | eval "$ac_cv_use_metafile" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_METAFILE" = yes; then | |
5522 | echo "$ac_t""yes" 1>&6 | |
5523 | else | |
5524 | echo "$ac_t""no" 1>&6 | |
5525 | fi | |
5526 | ||
5527 | ||
5528 | ||
5529 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 | |
5530 | echo "configure:5531: checking for --enable-treelayout" >&5 | |
5531 | no_cache=0 | |
5532 | # Check whether --enable-treelayout or --disable-treelayout was given. | |
5533 | if test "${enable_treelayout+set}" = set; then | |
5534 | enableval="$enable_treelayout" | |
5535 | ||
5536 | if test "$enableval" = yes; then | |
5537 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' | |
5538 | else | |
5539 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' | |
5540 | fi | |
5541 | ||
5542 | else | |
5543 | ||
5544 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` | |
5545 | if test "x$LINE" != x ; then | |
5546 | eval "DEFAULT_$LINE" | |
5547 | else | |
5548 | no_cache=1 | |
5549 | fi | |
5550 | ||
5551 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT | |
5552 | ||
5553 | fi | |
5554 | ||
5555 | ||
5556 | eval "$ac_cv_use_treelayout" | |
5557 | if test "$no_cache" != 1; then | |
5558 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp | |
5559 | fi | |
5560 | ||
5561 | if test "$wxUSE_TREELAYOUT" = yes; then | |
5562 | echo "$ac_t""yes" 1>&6 | |
5563 | else | |
5564 | echo "$ac_t""no" 1>&6 | |
5565 | fi | |
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
5571 | echo "configure:5572: checking for --enable-controls" >&5 | |
5572 | no_cache=0 | |
5573 | # Check whether --enable-controls or --disable-controls was given. | |
5574 | if test "${enable_controls+set}" = set; then | |
5575 | enableval="$enable_controls" | |
5576 | ||
5577 | if test "$enableval" = yes; then | |
5578 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5579 | else | |
5580 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5581 | fi | |
5582 | ||
5583 | else | |
5584 | ||
5585 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
5586 | if test "x$LINE" != x ; then | |
5587 | eval "DEFAULT_$LINE" | |
5588 | else | |
5589 | no_cache=1 | |
5590 | fi | |
5591 | ||
5592 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
5593 | ||
5594 | fi | |
5595 | ||
5596 | ||
5597 | eval "$ac_cv_use_controls" | |
5598 | if test "$no_cache" != 1; then | |
5599 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5600 | fi | |
5601 | ||
5602 | if test "$wxUSE_CONTROLS" = yes; then | |
5603 | echo "$ac_t""yes" 1>&6 | |
5604 | else | |
5605 | echo "$ac_t""no" 1>&6 | |
5606 | fi | |
5607 | ||
5608 | ||
5609 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5610 | DEFAULT_wxUSE_ACCEL=yes | |
5611 | DEFAULT_wxUSE_BMPBUTTON=yes | |
5612 | DEFAULT_wxUSE_BUTTON=yes | |
5613 | DEFAULT_wxUSE_CALCTRL=no | |
5614 | DEFAULT_wxUSE_CARET=yes | |
5615 | DEFAULT_wxUSE_COMBOBOX=yes | |
5616 | DEFAULT_wxUSE_CHECKBOX=yes | |
5617 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5618 | DEFAULT_wxUSE_CHOICE=yes | |
5619 | DEFAULT_wxUSE_GAUGE=yes | |
5620 | DEFAULT_wxUSE_GRID=yes | |
5621 | DEFAULT_wxUSE_NEW_GRID=yes | |
5622 | DEFAULT_wxUSE_IMAGLIST=yes | |
5623 | DEFAULT_wxUSE_LISTBOX=yes | |
5624 | DEFAULT_wxUSE_LISTCTRL=yes | |
5625 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5626 | DEFAULT_wxUSE_PROPSHEET=yes | |
5627 | DEFAULT_wxUSE_RADIOBOX=yes | |
5628 | DEFAULT_wxUSE_RADIOBTN=yes | |
5629 | DEFAULT_wxUSE_SASH=yes | |
5630 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5631 | DEFAULT_wxUSE_SLIDER=yes | |
5632 | DEFAULT_wxUSE_SPINBTN=yes | |
5633 | DEFAULT_wxUSE_SPINCTRL=yes | |
5634 | DEFAULT_wxUSE_SPLITTER=yes | |
5635 | DEFAULT_wxUSE_STATBMP=yes | |
5636 | DEFAULT_wxUSE_STATBOX=yes | |
5637 | DEFAULT_wxUSE_STATLINE=yes | |
5638 | DEFAULT_wxUSE_STATUSBAR=yes | |
5639 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
5640 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
5641 | DEFAULT_wxUSE_TOOLBAR=yes | |
5642 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
5643 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
5644 | DEFAULT_wxUSE_TOOLTIPS=yes | |
5645 | DEFAULT_wxUSE_TREECTRL=yes | |
5646 | DEFAULT_wxUSE_POPUPWIN=yes | |
5647 | DEFAULT_wxUSE_TIPWINDOW=yes | |
5648 | elif test "$wxUSE_CONTROLS" = "no"; then | |
5649 | DEFAULT_wxUSE_ACCEL=no | |
5650 | DEFAULT_wxUSE_BMPBUTTON=no | |
5651 | DEFAULT_wxUSE_BUTTON=no | |
5652 | DEFAULT_wxUSE_CALCTRL=no | |
5653 | DEFAULT_wxUSE_CARET=no | |
5654 | DEFAULT_wxUSE_COMBOBOX=no | |
5655 | DEFAULT_wxUSE_CHECKBOX=no | |
5656 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5657 | DEFAULT_wxUSE_CHOICE=no | |
5658 | DEFAULT_wxUSE_GAUGE=no | |
5659 | DEFAULT_wxUSE_GRID=no | |
5660 | DEFAULT_wxUSE_NEW_GRID=no | |
5661 | DEFAULT_wxUSE_IMAGLIST=no | |
5662 | DEFAULT_wxUSE_LISTBOX=no | |
5663 | DEFAULT_wxUSE_LISTCTRL=no | |
5664 | DEFAULT_wxUSE_NOTEBOOK=no | |
5665 | DEFAULT_wxUSE_PROPSHEET=no | |
5666 | DEFAULT_wxUSE_RADIOBOX=no | |
5667 | DEFAULT_wxUSE_RADIOBTN=no | |
5668 | DEFAULT_wxUSE_SASH=no | |
5669 | DEFAULT_wxUSE_SCROLLBAR=no | |
5670 | DEFAULT_wxUSE_SLIDER=no | |
5671 | DEFAULT_wxUSE_SPINBTN=no | |
5672 | DEFAULT_wxUSE_SPINCTRL=no | |
5673 | DEFAULT_wxUSE_SPLITTER=no | |
5674 | DEFAULT_wxUSE_STATBMP=no | |
5675 | DEFAULT_wxUSE_STATBOX=no | |
5676 | DEFAULT_wxUSE_STATLINE=no | |
5677 | DEFAULT_wxUSE_STATUSBAR=no | |
5678 | DEFAULT_wxUSE_TAB_DIALOG=no | |
5679 | DEFAULT_wxUSE_TOGGLEBTN=no | |
5680 | DEFAULT_wxUSE_TOOLBAR=no | |
5681 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5682 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
5683 | DEFAULT_wxUSE_TOOLTIPS=no | |
5684 | DEFAULT_wxUSE_TREECTRL=no | |
5685 | DEFAULT_wxUSE_POPUPWIN=no | |
5686 | DEFAULT_wxUSE_TIPWINDOW=no | |
5687 | fi | |
5688 | ||
5689 | ||
5690 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
5691 | echo "configure:5692: checking for --enable-accel" >&5 | |
5692 | no_cache=0 | |
5693 | # Check whether --enable-accel or --disable-accel was given. | |
5694 | if test "${enable_accel+set}" = set; then | |
5695 | enableval="$enable_accel" | |
5696 | ||
5697 | if test "$enableval" = yes; then | |
5698 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5699 | else | |
5700 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5701 | fi | |
5702 | ||
5703 | else | |
5704 | ||
5705 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
5706 | if test "x$LINE" != x ; then | |
5707 | eval "DEFAULT_$LINE" | |
5708 | else | |
5709 | no_cache=1 | |
5710 | fi | |
5711 | ||
5712 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
5713 | ||
5714 | fi | |
5715 | ||
5716 | ||
5717 | eval "$ac_cv_use_accel" | |
5718 | if test "$no_cache" != 1; then | |
5719 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5720 | fi | |
5721 | ||
5722 | if test "$wxUSE_ACCEL" = yes; then | |
5723 | echo "$ac_t""yes" 1>&6 | |
5724 | else | |
5725 | echo "$ac_t""no" 1>&6 | |
5726 | fi | |
5727 | ||
5728 | ||
5729 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 | |
5730 | echo "configure:5731: checking for --enable-button" >&5 | |
5731 | no_cache=0 | |
5732 | # Check whether --enable-button or --disable-button was given. | |
5733 | if test "${enable_button+set}" = set; then | |
5734 | enableval="$enable_button" | |
5735 | ||
5736 | if test "$enableval" = yes; then | |
5737 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
5738 | else | |
5739 | ac_cv_use_button='wxUSE_BUTTON=no' | |
5740 | fi | |
5741 | ||
5742 | else | |
5743 | ||
5744 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
5745 | if test "x$LINE" != x ; then | |
5746 | eval "DEFAULT_$LINE" | |
5747 | else | |
5748 | no_cache=1 | |
5749 | fi | |
5750 | ||
5751 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
5752 | ||
5753 | fi | |
5754 | ||
5755 | ||
5756 | eval "$ac_cv_use_button" | |
5757 | if test "$no_cache" != 1; then | |
5758 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
5759 | fi | |
5760 | ||
5761 | if test "$wxUSE_BUTTON" = yes; then | |
5762 | echo "$ac_t""yes" 1>&6 | |
5763 | else | |
5764 | echo "$ac_t""no" 1>&6 | |
5765 | fi | |
5766 | ||
5767 | ||
5768 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 | |
5769 | echo "configure:5770: checking for --enable-bmpbutton" >&5 | |
5770 | no_cache=0 | |
5771 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5772 | if test "${enable_bmpbutton+set}" = set; then | |
5773 | enableval="$enable_bmpbutton" | |
5774 | ||
5775 | if test "$enableval" = yes; then | |
5776 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5777 | else | |
5778 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5779 | fi | |
5780 | ||
5781 | else | |
5782 | ||
5783 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
5784 | if test "x$LINE" != x ; then | |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
5790 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
5791 | ||
5792 | fi | |
5793 | ||
5794 | ||
5795 | eval "$ac_cv_use_bmpbutton" | |
5796 | if test "$no_cache" != 1; then | |
5797 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5798 | fi | |
5799 | ||
5800 | if test "$wxUSE_BMPBUTTON" = yes; then | |
5801 | echo "$ac_t""yes" 1>&6 | |
5802 | else | |
5803 | echo "$ac_t""no" 1>&6 | |
5804 | fi | |
5805 | ||
5806 | ||
5807 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 | |
5808 | echo "configure:5809: checking for --enable-calendar" >&5 | |
5809 | no_cache=0 | |
5810 | # Check whether --enable-calendar or --disable-calendar was given. | |
5811 | if test "${enable_calendar+set}" = set; then | |
5812 | enableval="$enable_calendar" | |
5813 | ||
5814 | if test "$enableval" = yes; then | |
5815 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5816 | else | |
5817 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5818 | fi | |
5819 | ||
5820 | else | |
5821 | ||
5822 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5823 | if test "x$LINE" != x ; then | |
5824 | eval "DEFAULT_$LINE" | |
5825 | else | |
5826 | no_cache=1 | |
5827 | fi | |
5828 | ||
5829 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5830 | ||
5831 | fi | |
5832 | ||
5833 | ||
5834 | eval "$ac_cv_use_calendar" | |
5835 | if test "$no_cache" != 1; then | |
5836 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5837 | fi | |
5838 | ||
5839 | if test "$wxUSE_CALCTRL" = yes; then | |
5840 | echo "$ac_t""yes" 1>&6 | |
5841 | else | |
5842 | echo "$ac_t""no" 1>&6 | |
5843 | fi | |
5844 | ||
5845 | ||
5846 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
5847 | echo "configure:5848: checking for --enable-caret" >&5 | |
5848 | no_cache=0 | |
5849 | # Check whether --enable-caret or --disable-caret was given. | |
5850 | if test "${enable_caret+set}" = set; then | |
5851 | enableval="$enable_caret" | |
5852 | ||
5853 | if test "$enableval" = yes; then | |
5854 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5855 | else | |
5856 | ac_cv_use_caret='wxUSE_CARET=no' | |
5857 | fi | |
5858 | ||
5859 | else | |
5860 | ||
5861 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5862 | if test "x$LINE" != x ; then | |
5863 | eval "DEFAULT_$LINE" | |
5864 | else | |
5865 | no_cache=1 | |
5866 | fi | |
5867 | ||
5868 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5869 | ||
5870 | fi | |
5871 | ||
5872 | ||
5873 | eval "$ac_cv_use_caret" | |
5874 | if test "$no_cache" != 1; then | |
5875 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5876 | fi | |
5877 | ||
5878 | if test "$wxUSE_CARET" = yes; then | |
5879 | echo "$ac_t""yes" 1>&6 | |
5880 | else | |
5881 | echo "$ac_t""no" 1>&6 | |
5882 | fi | |
5883 | ||
5884 | ||
5885 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 | |
5886 | echo "configure:5887: checking for --enable-checkbox" >&5 | |
5887 | no_cache=0 | |
5888 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5889 | if test "${enable_checkbox+set}" = set; then | |
5890 | enableval="$enable_checkbox" | |
5891 | ||
5892 | if test "$enableval" = yes; then | |
5893 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5894 | else | |
5895 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5896 | fi | |
5897 | ||
5898 | else | |
5899 | ||
5900 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
5908 | ||
5909 | fi | |
5910 | ||
5911 | ||
5912 | eval "$ac_cv_use_checkbox" | |
5913 | if test "$no_cache" != 1; then | |
5914 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5915 | fi | |
5916 | ||
5917 | if test "$wxUSE_CHECKBOX" = yes; then | |
5918 | echo "$ac_t""yes" 1>&6 | |
5919 | else | |
5920 | echo "$ac_t""no" 1>&6 | |
5921 | fi | |
5922 | ||
5923 | ||
5924 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 | |
5925 | echo "configure:5926: checking for --enable-checklst" >&5 | |
5926 | no_cache=0 | |
5927 | # Check whether --enable-checklst or --disable-checklst was given. | |
5928 | if test "${enable_checklst+set}" = set; then | |
5929 | enableval="$enable_checklst" | |
5930 | ||
5931 | if test "$enableval" = yes; then | |
5932 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5933 | else | |
5934 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5935 | fi | |
5936 | ||
5937 | else | |
5938 | ||
5939 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
5940 | if test "x$LINE" != x ; then | |
5941 | eval "DEFAULT_$LINE" | |
5942 | else | |
5943 | no_cache=1 | |
5944 | fi | |
5945 | ||
5946 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
5947 | ||
5948 | fi | |
5949 | ||
5950 | ||
5951 | eval "$ac_cv_use_checklst" | |
5952 | if test "$no_cache" != 1; then | |
5953 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5954 | fi | |
5955 | ||
5956 | if test "$wxUSE_CHECKLST" = yes; then | |
5957 | echo "$ac_t""yes" 1>&6 | |
5958 | else | |
5959 | echo "$ac_t""no" 1>&6 | |
5960 | fi | |
5961 | ||
5962 | ||
5963 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 | |
5964 | echo "configure:5965: checking for --enable-choice" >&5 | |
5965 | no_cache=0 | |
5966 | # Check whether --enable-choice or --disable-choice was given. | |
5967 | if test "${enable_choice+set}" = set; then | |
5968 | enableval="$enable_choice" | |
5969 | ||
5970 | if test "$enableval" = yes; then | |
5971 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5972 | else | |
5973 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5974 | fi | |
5975 | ||
5976 | else | |
5977 | ||
5978 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
5979 | if test "x$LINE" != x ; then | |
5980 | eval "DEFAULT_$LINE" | |
5981 | else | |
5982 | no_cache=1 | |
5983 | fi | |
5984 | ||
5985 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
5986 | ||
5987 | fi | |
5988 | ||
5989 | ||
5990 | eval "$ac_cv_use_choice" | |
5991 | if test "$no_cache" != 1; then | |
5992 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5993 | fi | |
5994 | ||
5995 | if test "$wxUSE_CHOICE" = yes; then | |
5996 | echo "$ac_t""yes" 1>&6 | |
5997 | else | |
5998 | echo "$ac_t""no" 1>&6 | |
5999 | fi | |
6000 | ||
6001 | ||
6002 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 | |
6003 | echo "configure:6004: checking for --enable-combobox" >&5 | |
6004 | no_cache=0 | |
6005 | # Check whether --enable-combobox or --disable-combobox was given. | |
6006 | if test "${enable_combobox+set}" = set; then | |
6007 | enableval="$enable_combobox" | |
6008 | ||
6009 | if test "$enableval" = yes; then | |
6010 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6011 | else | |
6012 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6013 | fi | |
6014 | ||
6015 | else | |
6016 | ||
6017 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
6018 | if test "x$LINE" != x ; then | |
6019 | eval "DEFAULT_$LINE" | |
6020 | else | |
6021 | no_cache=1 | |
6022 | fi | |
6023 | ||
6024 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
6025 | ||
6026 | fi | |
6027 | ||
6028 | ||
6029 | eval "$ac_cv_use_combobox" | |
6030 | if test "$no_cache" != 1; then | |
6031 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6032 | fi | |
6033 | ||
6034 | if test "$wxUSE_COMBOBOX" = yes; then | |
6035 | echo "$ac_t""yes" 1>&6 | |
6036 | else | |
6037 | echo "$ac_t""no" 1>&6 | |
6038 | fi | |
6039 | ||
6040 | ||
6041 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 | |
6042 | echo "configure:6043: checking for --enable-gauge" >&5 | |
6043 | no_cache=0 | |
6044 | # Check whether --enable-gauge or --disable-gauge was given. | |
6045 | if test "${enable_gauge+set}" = set; then | |
6046 | enableval="$enable_gauge" | |
6047 | ||
6048 | if test "$enableval" = yes; then | |
6049 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6050 | else | |
6051 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6052 | fi | |
6053 | ||
6054 | else | |
6055 | ||
6056 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
6057 | if test "x$LINE" != x ; then | |
6058 | eval "DEFAULT_$LINE" | |
6059 | else | |
6060 | no_cache=1 | |
6061 | fi | |
6062 | ||
6063 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
6064 | ||
6065 | fi | |
6066 | ||
6067 | ||
6068 | eval "$ac_cv_use_gauge" | |
6069 | if test "$no_cache" != 1; then | |
6070 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6071 | fi | |
6072 | ||
6073 | if test "$wxUSE_GAUGE" = yes; then | |
6074 | echo "$ac_t""yes" 1>&6 | |
6075 | else | |
6076 | echo "$ac_t""no" 1>&6 | |
6077 | fi | |
6078 | ||
6079 | ||
6080 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 | |
6081 | echo "configure:6082: checking for --enable-grid" >&5 | |
6082 | no_cache=0 | |
6083 | # Check whether --enable-grid or --disable-grid was given. | |
6084 | if test "${enable_grid+set}" = set; then | |
6085 | enableval="$enable_grid" | |
6086 | ||
6087 | if test "$enableval" = yes; then | |
6088 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6089 | else | |
6090 | ac_cv_use_grid='wxUSE_GRID=no' | |
6091 | fi | |
6092 | ||
6093 | else | |
6094 | ||
6095 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
6096 | if test "x$LINE" != x ; then | |
6097 | eval "DEFAULT_$LINE" | |
6098 | else | |
6099 | no_cache=1 | |
6100 | fi | |
6101 | ||
6102 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
6103 | ||
6104 | fi | |
6105 | ||
6106 | ||
6107 | eval "$ac_cv_use_grid" | |
6108 | if test "$no_cache" != 1; then | |
6109 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6110 | fi | |
6111 | ||
6112 | if test "$wxUSE_GRID" = yes; then | |
6113 | echo "$ac_t""yes" 1>&6 | |
6114 | else | |
6115 | echo "$ac_t""no" 1>&6 | |
6116 | fi | |
6117 | ||
6118 | ||
6119 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 | |
6120 | echo "configure:6121: checking for --enable-newgrid" >&5 | |
6121 | no_cache=0 | |
6122 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6123 | if test "${enable_newgrid+set}" = set; then | |
6124 | enableval="$enable_newgrid" | |
6125 | ||
6126 | if test "$enableval" = yes; then | |
6127 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6128 | else | |
6129 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6130 | fi | |
6131 | ||
6132 | else | |
6133 | ||
6134 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
6135 | if test "x$LINE" != x ; then | |
6136 | eval "DEFAULT_$LINE" | |
6137 | else | |
6138 | no_cache=1 | |
6139 | fi | |
6140 | ||
6141 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
6142 | ||
6143 | fi | |
6144 | ||
6145 | ||
6146 | eval "$ac_cv_use_newgrid" | |
6147 | if test "$no_cache" != 1; then | |
6148 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6149 | fi | |
6150 | ||
6151 | if test "$wxUSE_NEW_GRID" = yes; then | |
6152 | echo "$ac_t""yes" 1>&6 | |
6153 | else | |
6154 | echo "$ac_t""no" 1>&6 | |
6155 | fi | |
6156 | ||
6157 | ||
6158 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 | |
6159 | echo "configure:6160: checking for --enable-imaglist" >&5 | |
6160 | no_cache=0 | |
6161 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6162 | if test "${enable_imaglist+set}" = set; then | |
6163 | enableval="$enable_imaglist" | |
6164 | ||
6165 | if test "$enableval" = yes; then | |
6166 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6167 | else | |
6168 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6169 | fi | |
6170 | ||
6171 | else | |
6172 | ||
6173 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
6174 | if test "x$LINE" != x ; then | |
6175 | eval "DEFAULT_$LINE" | |
6176 | else | |
6177 | no_cache=1 | |
6178 | fi | |
6179 | ||
6180 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
6181 | ||
6182 | fi | |
6183 | ||
6184 | ||
6185 | eval "$ac_cv_use_imaglist" | |
6186 | if test "$no_cache" != 1; then | |
6187 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6188 | fi | |
6189 | ||
6190 | if test "$wxUSE_IMAGLIST" = yes; then | |
6191 | echo "$ac_t""yes" 1>&6 | |
6192 | else | |
6193 | echo "$ac_t""no" 1>&6 | |
6194 | fi | |
6195 | ||
6196 | ||
6197 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 | |
6198 | echo "configure:6199: checking for --enable-listbox" >&5 | |
6199 | no_cache=0 | |
6200 | # Check whether --enable-listbox or --disable-listbox was given. | |
6201 | if test "${enable_listbox+set}" = set; then | |
6202 | enableval="$enable_listbox" | |
6203 | ||
6204 | if test "$enableval" = yes; then | |
6205 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6206 | else | |
6207 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6208 | fi | |
6209 | ||
6210 | else | |
6211 | ||
6212 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
6213 | if test "x$LINE" != x ; then | |
6214 | eval "DEFAULT_$LINE" | |
6215 | else | |
6216 | no_cache=1 | |
6217 | fi | |
6218 | ||
6219 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
6220 | ||
6221 | fi | |
6222 | ||
6223 | ||
6224 | eval "$ac_cv_use_listbox" | |
6225 | if test "$no_cache" != 1; then | |
6226 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6227 | fi | |
6228 | ||
6229 | if test "$wxUSE_LISTBOX" = yes; then | |
6230 | echo "$ac_t""yes" 1>&6 | |
6231 | else | |
6232 | echo "$ac_t""no" 1>&6 | |
6233 | fi | |
6234 | ||
6235 | ||
6236 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 | |
6237 | echo "configure:6238: checking for --enable-listctrl" >&5 | |
6238 | no_cache=0 | |
6239 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6240 | if test "${enable_listctrl+set}" = set; then | |
6241 | enableval="$enable_listctrl" | |
6242 | ||
6243 | if test "$enableval" = yes; then | |
6244 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6245 | else | |
6246 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6247 | fi | |
6248 | ||
6249 | else | |
6250 | ||
6251 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
6252 | if test "x$LINE" != x ; then | |
6253 | eval "DEFAULT_$LINE" | |
6254 | else | |
6255 | no_cache=1 | |
6256 | fi | |
6257 | ||
6258 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
6259 | ||
6260 | fi | |
6261 | ||
6262 | ||
6263 | eval "$ac_cv_use_listctrl" | |
6264 | if test "$no_cache" != 1; then | |
6265 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6266 | fi | |
6267 | ||
6268 | if test "$wxUSE_LISTCTRL" = yes; then | |
6269 | echo "$ac_t""yes" 1>&6 | |
6270 | else | |
6271 | echo "$ac_t""no" 1>&6 | |
6272 | fi | |
6273 | ||
6274 | ||
6275 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 | |
6276 | echo "configure:6277: checking for --enable-notebook" >&5 | |
6277 | no_cache=0 | |
6278 | # Check whether --enable-notebook or --disable-notebook was given. | |
6279 | if test "${enable_notebook+set}" = set; then | |
6280 | enableval="$enable_notebook" | |
6281 | ||
6282 | if test "$enableval" = yes; then | |
6283 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6284 | else | |
6285 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6286 | fi | |
6287 | ||
6288 | else | |
6289 | ||
6290 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
6291 | if test "x$LINE" != x ; then | |
6292 | eval "DEFAULT_$LINE" | |
6293 | else | |
6294 | no_cache=1 | |
6295 | fi | |
6296 | ||
6297 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
6298 | ||
6299 | fi | |
6300 | ||
6301 | ||
6302 | eval "$ac_cv_use_notebook" | |
6303 | if test "$no_cache" != 1; then | |
6304 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6305 | fi | |
6306 | ||
6307 | if test "$wxUSE_NOTEBOOK" = yes; then | |
6308 | echo "$ac_t""yes" 1>&6 | |
6309 | else | |
6310 | echo "$ac_t""no" 1>&6 | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 | |
6315 | echo "configure:6316: checking for --enable-propsheet" >&5 | |
6316 | no_cache=0 | |
6317 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6318 | if test "${enable_propsheet+set}" = set; then | |
6319 | enableval="$enable_propsheet" | |
6320 | ||
6321 | if test "$enableval" = yes; then | |
6322 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6323 | else | |
6324 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6325 | fi | |
6326 | ||
6327 | else | |
6328 | ||
6329 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6330 | if test "x$LINE" != x ; then | |
6331 | eval "DEFAULT_$LINE" | |
6332 | else | |
6333 | no_cache=1 | |
6334 | fi | |
6335 | ||
6336 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6337 | ||
6338 | fi | |
6339 | ||
6340 | ||
6341 | eval "$ac_cv_use_propsheet" | |
6342 | if test "$no_cache" != 1; then | |
6343 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6344 | fi | |
6345 | ||
6346 | if test "$wxUSE_PROPSHEET" = yes; then | |
6347 | echo "$ac_t""yes" 1>&6 | |
6348 | else | |
6349 | echo "$ac_t""no" 1>&6 | |
6350 | fi | |
6351 | ||
6352 | ||
6353 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 | |
6354 | echo "configure:6355: checking for --enable-radiobox" >&5 | |
6355 | no_cache=0 | |
6356 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6357 | if test "${enable_radiobox+set}" = set; then | |
6358 | enableval="$enable_radiobox" | |
6359 | ||
6360 | if test "$enableval" = yes; then | |
6361 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6362 | else | |
6363 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6364 | fi | |
6365 | ||
6366 | else | |
6367 | ||
6368 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
6369 | if test "x$LINE" != x ; then | |
6370 | eval "DEFAULT_$LINE" | |
6371 | else | |
6372 | no_cache=1 | |
6373 | fi | |
6374 | ||
6375 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
6376 | ||
6377 | fi | |
6378 | ||
6379 | ||
6380 | eval "$ac_cv_use_radiobox" | |
6381 | if test "$no_cache" != 1; then | |
6382 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6383 | fi | |
6384 | ||
6385 | if test "$wxUSE_RADIOBOX" = yes; then | |
6386 | echo "$ac_t""yes" 1>&6 | |
6387 | else | |
6388 | echo "$ac_t""no" 1>&6 | |
6389 | fi | |
6390 | ||
6391 | ||
6392 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 | |
6393 | echo "configure:6394: checking for --enable-radiobtn" >&5 | |
6394 | no_cache=0 | |
6395 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6396 | if test "${enable_radiobtn+set}" = set; then | |
6397 | enableval="$enable_radiobtn" | |
6398 | ||
6399 | if test "$enableval" = yes; then | |
6400 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6401 | else | |
6402 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6403 | fi | |
6404 | ||
6405 | else | |
6406 | ||
6407 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
6408 | if test "x$LINE" != x ; then | |
6409 | eval "DEFAULT_$LINE" | |
6410 | else | |
6411 | no_cache=1 | |
6412 | fi | |
6413 | ||
6414 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
6415 | ||
6416 | fi | |
6417 | ||
6418 | ||
6419 | eval "$ac_cv_use_radiobtn" | |
6420 | if test "$no_cache" != 1; then | |
6421 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6422 | fi | |
6423 | ||
6424 | if test "$wxUSE_RADIOBTN" = yes; then | |
6425 | echo "$ac_t""yes" 1>&6 | |
6426 | else | |
6427 | echo "$ac_t""no" 1>&6 | |
6428 | fi | |
6429 | ||
6430 | ||
6431 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 | |
6432 | echo "configure:6433: checking for --enable-sash" >&5 | |
6433 | no_cache=0 | |
6434 | # Check whether --enable-sash or --disable-sash was given. | |
6435 | if test "${enable_sash+set}" = set; then | |
6436 | enableval="$enable_sash" | |
6437 | ||
6438 | if test "$enableval" = yes; then | |
6439 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6440 | else | |
6441 | ac_cv_use_sash='wxUSE_SASH=no' | |
6442 | fi | |
6443 | ||
6444 | else | |
6445 | ||
6446 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
6454 | ||
6455 | fi | |
6456 | ||
6457 | ||
6458 | eval "$ac_cv_use_sash" | |
6459 | if test "$no_cache" != 1; then | |
6460 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6461 | fi | |
6462 | ||
6463 | if test "$wxUSE_SASH" = yes; then | |
6464 | echo "$ac_t""yes" 1>&6 | |
6465 | else | |
6466 | echo "$ac_t""no" 1>&6 | |
6467 | fi | |
6468 | ||
6469 | ||
6470 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 | |
6471 | echo "configure:6472: checking for --enable-scrollbar" >&5 | |
6472 | no_cache=0 | |
6473 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6474 | if test "${enable_scrollbar+set}" = set; then | |
6475 | enableval="$enable_scrollbar" | |
6476 | ||
6477 | if test "$enableval" = yes; then | |
6478 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6479 | else | |
6480 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6481 | fi | |
6482 | ||
6483 | else | |
6484 | ||
6485 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
6486 | if test "x$LINE" != x ; then | |
6487 | eval "DEFAULT_$LINE" | |
6488 | else | |
6489 | no_cache=1 | |
6490 | fi | |
6491 | ||
6492 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
6493 | ||
6494 | fi | |
6495 | ||
6496 | ||
6497 | eval "$ac_cv_use_scrollbar" | |
6498 | if test "$no_cache" != 1; then | |
6499 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6500 | fi | |
6501 | ||
6502 | if test "$wxUSE_SCROLLBAR" = yes; then | |
6503 | echo "$ac_t""yes" 1>&6 | |
6504 | else | |
6505 | echo "$ac_t""no" 1>&6 | |
6506 | fi | |
6507 | ||
6508 | ||
6509 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 | |
6510 | echo "configure:6511: checking for --enable-slider" >&5 | |
6511 | no_cache=0 | |
6512 | # Check whether --enable-slider or --disable-slider was given. | |
6513 | if test "${enable_slider+set}" = set; then | |
6514 | enableval="$enable_slider" | |
6515 | ||
6516 | if test "$enableval" = yes; then | |
6517 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6518 | else | |
6519 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6520 | fi | |
6521 | ||
6522 | else | |
6523 | ||
6524 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
6525 | if test "x$LINE" != x ; then | |
6526 | eval "DEFAULT_$LINE" | |
6527 | else | |
6528 | no_cache=1 | |
6529 | fi | |
6530 | ||
6531 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
6532 | ||
6533 | fi | |
6534 | ||
6535 | ||
6536 | eval "$ac_cv_use_slider" | |
6537 | if test "$no_cache" != 1; then | |
6538 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6539 | fi | |
6540 | ||
6541 | if test "$wxUSE_SLIDER" = yes; then | |
6542 | echo "$ac_t""yes" 1>&6 | |
6543 | else | |
6544 | echo "$ac_t""no" 1>&6 | |
6545 | fi | |
6546 | ||
6547 | ||
6548 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 | |
6549 | echo "configure:6550: checking for --enable-spinbtn" >&5 | |
6550 | no_cache=0 | |
6551 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6552 | if test "${enable_spinbtn+set}" = set; then | |
6553 | enableval="$enable_spinbtn" | |
6554 | ||
6555 | if test "$enableval" = yes; then | |
6556 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6557 | else | |
6558 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6559 | fi | |
6560 | ||
6561 | else | |
6562 | ||
6563 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
6564 | if test "x$LINE" != x ; then | |
6565 | eval "DEFAULT_$LINE" | |
6566 | else | |
6567 | no_cache=1 | |
6568 | fi | |
6569 | ||
6570 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
6571 | ||
6572 | fi | |
6573 | ||
6574 | ||
6575 | eval "$ac_cv_use_spinbtn" | |
6576 | if test "$no_cache" != 1; then | |
6577 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6578 | fi | |
6579 | ||
6580 | if test "$wxUSE_SPINBTN" = yes; then | |
6581 | echo "$ac_t""yes" 1>&6 | |
6582 | else | |
6583 | echo "$ac_t""no" 1>&6 | |
6584 | fi | |
6585 | ||
6586 | ||
6587 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 | |
6588 | echo "configure:6589: checking for --enable-spinctrl" >&5 | |
6589 | no_cache=0 | |
6590 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6591 | if test "${enable_spinctrl+set}" = set; then | |
6592 | enableval="$enable_spinctrl" | |
6593 | ||
6594 | if test "$enableval" = yes; then | |
6595 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6596 | else | |
6597 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6598 | fi | |
6599 | ||
6600 | else | |
6601 | ||
6602 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
6603 | if test "x$LINE" != x ; then | |
6604 | eval "DEFAULT_$LINE" | |
6605 | else | |
6606 | no_cache=1 | |
6607 | fi | |
6608 | ||
6609 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
6610 | ||
6611 | fi | |
6612 | ||
6613 | ||
6614 | eval "$ac_cv_use_spinctrl" | |
6615 | if test "$no_cache" != 1; then | |
6616 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6617 | fi | |
6618 | ||
6619 | if test "$wxUSE_SPINCTRL" = yes; then | |
6620 | echo "$ac_t""yes" 1>&6 | |
6621 | else | |
6622 | echo "$ac_t""no" 1>&6 | |
6623 | fi | |
6624 | ||
6625 | ||
6626 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 | |
6627 | echo "configure:6628: checking for --enable-splitter" >&5 | |
6628 | no_cache=0 | |
6629 | # Check whether --enable-splitter or --disable-splitter was given. | |
6630 | if test "${enable_splitter+set}" = set; then | |
6631 | enableval="$enable_splitter" | |
6632 | ||
6633 | if test "$enableval" = yes; then | |
6634 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6635 | else | |
6636 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6637 | fi | |
6638 | ||
6639 | else | |
6640 | ||
6641 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
6642 | if test "x$LINE" != x ; then | |
6643 | eval "DEFAULT_$LINE" | |
6644 | else | |
6645 | no_cache=1 | |
6646 | fi | |
6647 | ||
6648 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
6649 | ||
6650 | fi | |
6651 | ||
6652 | ||
6653 | eval "$ac_cv_use_splitter" | |
6654 | if test "$no_cache" != 1; then | |
6655 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6656 | fi | |
6657 | ||
6658 | if test "$wxUSE_SPLITTER" = yes; then | |
6659 | echo "$ac_t""yes" 1>&6 | |
6660 | else | |
6661 | echo "$ac_t""no" 1>&6 | |
6662 | fi | |
6663 | ||
6664 | ||
6665 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 | |
6666 | echo "configure:6667: checking for --enable-statbmp" >&5 | |
6667 | no_cache=0 | |
6668 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6669 | if test "${enable_statbmp+set}" = set; then | |
6670 | enableval="$enable_statbmp" | |
6671 | ||
6672 | if test "$enableval" = yes; then | |
6673 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6674 | else | |
6675 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6676 | fi | |
6677 | ||
6678 | else | |
6679 | ||
6680 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
6681 | if test "x$LINE" != x ; then | |
6682 | eval "DEFAULT_$LINE" | |
6683 | else | |
6684 | no_cache=1 | |
6685 | fi | |
6686 | ||
6687 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
6688 | ||
6689 | fi | |
6690 | ||
6691 | ||
6692 | eval "$ac_cv_use_statbmp" | |
6693 | if test "$no_cache" != 1; then | |
6694 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6695 | fi | |
6696 | ||
6697 | if test "$wxUSE_STATBMP" = yes; then | |
6698 | echo "$ac_t""yes" 1>&6 | |
6699 | else | |
6700 | echo "$ac_t""no" 1>&6 | |
6701 | fi | |
6702 | ||
6703 | ||
6704 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 | |
6705 | echo "configure:6706: checking for --enable-statbox" >&5 | |
6706 | no_cache=0 | |
6707 | # Check whether --enable-statbox or --disable-statbox was given. | |
6708 | if test "${enable_statbox+set}" = set; then | |
6709 | enableval="$enable_statbox" | |
6710 | ||
6711 | if test "$enableval" = yes; then | |
6712 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6713 | else | |
6714 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6715 | fi | |
6716 | ||
6717 | else | |
6718 | ||
6719 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
6720 | if test "x$LINE" != x ; then | |
6721 | eval "DEFAULT_$LINE" | |
6722 | else | |
6723 | no_cache=1 | |
6724 | fi | |
6725 | ||
6726 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
6727 | ||
6728 | fi | |
6729 | ||
6730 | ||
6731 | eval "$ac_cv_use_statbox" | |
6732 | if test "$no_cache" != 1; then | |
6733 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6734 | fi | |
6735 | ||
6736 | if test "$wxUSE_STATBOX" = yes; then | |
6737 | echo "$ac_t""yes" 1>&6 | |
6738 | else | |
6739 | echo "$ac_t""no" 1>&6 | |
6740 | fi | |
6741 | ||
6742 | ||
6743 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 | |
6744 | echo "configure:6745: checking for --enable-statline" >&5 | |
6745 | no_cache=0 | |
6746 | # Check whether --enable-statline or --disable-statline was given. | |
6747 | if test "${enable_statline+set}" = set; then | |
6748 | enableval="$enable_statline" | |
6749 | ||
6750 | if test "$enableval" = yes; then | |
6751 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6752 | else | |
6753 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6754 | fi | |
6755 | ||
6756 | else | |
6757 | ||
6758 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
6759 | if test "x$LINE" != x ; then | |
6760 | eval "DEFAULT_$LINE" | |
6761 | else | |
6762 | no_cache=1 | |
6763 | fi | |
6764 | ||
6765 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
6766 | ||
6767 | fi | |
6768 | ||
6769 | ||
6770 | eval "$ac_cv_use_statline" | |
6771 | if test "$no_cache" != 1; then | |
6772 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6773 | fi | |
6774 | ||
6775 | if test "$wxUSE_STATLINE" = yes; then | |
6776 | echo "$ac_t""yes" 1>&6 | |
6777 | else | |
6778 | echo "$ac_t""no" 1>&6 | |
6779 | fi | |
6780 | ||
6781 | ||
6782 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 | |
6783 | echo "configure:6784: checking for --enable-stattext" >&5 | |
6784 | no_cache=0 | |
6785 | # Check whether --enable-stattext or --disable-stattext was given. | |
6786 | if test "${enable_stattext+set}" = set; then | |
6787 | enableval="$enable_stattext" | |
6788 | ||
6789 | if test "$enableval" = yes; then | |
6790 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6791 | else | |
6792 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6793 | fi | |
6794 | ||
6795 | else | |
6796 | ||
6797 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6798 | if test "x$LINE" != x ; then | |
6799 | eval "DEFAULT_$LINE" | |
6800 | else | |
6801 | no_cache=1 | |
6802 | fi | |
6803 | ||
6804 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6805 | ||
6806 | fi | |
6807 | ||
6808 | ||
6809 | eval "$ac_cv_use_stattext" | |
6810 | if test "$no_cache" != 1; then | |
6811 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6812 | fi | |
6813 | ||
6814 | if test "$wxUSE_STATTEXT" = yes; then | |
6815 | echo "$ac_t""yes" 1>&6 | |
6816 | else | |
6817 | echo "$ac_t""no" 1>&6 | |
6818 | fi | |
6819 | ||
6820 | ||
6821 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 | |
6822 | echo "configure:6823: checking for --enable-statusbar" >&5 | |
6823 | no_cache=0 | |
6824 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6825 | if test "${enable_statusbar+set}" = set; then | |
6826 | enableval="$enable_statusbar" | |
6827 | ||
6828 | if test "$enableval" = yes; then | |
6829 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6830 | else | |
6831 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6832 | fi | |
6833 | ||
6834 | else | |
6835 | ||
6836 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
6837 | if test "x$LINE" != x ; then | |
6838 | eval "DEFAULT_$LINE" | |
6839 | else | |
6840 | no_cache=1 | |
6841 | fi | |
6842 | ||
6843 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
6844 | ||
6845 | fi | |
6846 | ||
6847 | ||
6848 | eval "$ac_cv_use_statusbar" | |
6849 | if test "$no_cache" != 1; then | |
6850 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6851 | fi | |
6852 | ||
6853 | if test "$wxUSE_STATUSBAR" = yes; then | |
6854 | echo "$ac_t""yes" 1>&6 | |
6855 | else | |
6856 | echo "$ac_t""no" 1>&6 | |
6857 | fi | |
6858 | ||
6859 | ||
6860 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 | |
6861 | echo "configure:6862: checking for --enable-tabdialog" >&5 | |
6862 | no_cache=0 | |
6863 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6864 | if test "${enable_tabdialog+set}" = set; then | |
6865 | enableval="$enable_tabdialog" | |
6866 | ||
6867 | if test "$enableval" = yes; then | |
6868 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6869 | else | |
6870 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6871 | fi | |
6872 | ||
6873 | else | |
6874 | ||
6875 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
6876 | if test "x$LINE" != x ; then | |
6877 | eval "DEFAULT_$LINE" | |
6878 | else | |
6879 | no_cache=1 | |
6880 | fi | |
6881 | ||
6882 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
6883 | ||
6884 | fi | |
6885 | ||
6886 | ||
6887 | eval "$ac_cv_use_tabdialog" | |
6888 | if test "$no_cache" != 1; then | |
6889 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6890 | fi | |
6891 | ||
6892 | if test "$wxUSE_TABDIALOG" = yes; then | |
6893 | echo "$ac_t""yes" 1>&6 | |
6894 | else | |
6895 | echo "$ac_t""no" 1>&6 | |
6896 | fi | |
6897 | ||
6898 | ||
6899 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 | |
6900 | echo "configure:6901: checking for --enable-textctrl" >&5 | |
6901 | no_cache=0 | |
6902 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6903 | if test "${enable_textctrl+set}" = set; then | |
6904 | enableval="$enable_textctrl" | |
6905 | ||
6906 | if test "$enableval" = yes; then | |
6907 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6908 | else | |
6909 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6910 | fi | |
6911 | ||
6912 | else | |
6913 | ||
6914 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6915 | if test "x$LINE" != x ; then | |
6916 | eval "DEFAULT_$LINE" | |
6917 | else | |
6918 | no_cache=1 | |
6919 | fi | |
6920 | ||
6921 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6922 | ||
6923 | fi | |
6924 | ||
6925 | ||
6926 | eval "$ac_cv_use_textctrl" | |
6927 | if test "$no_cache" != 1; then | |
6928 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6929 | fi | |
6930 | ||
6931 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6932 | echo "$ac_t""yes" 1>&6 | |
6933 | else | |
6934 | echo "$ac_t""no" 1>&6 | |
6935 | fi | |
6936 | ||
6937 | ||
6938 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 | |
6939 | echo "configure:6940: checking for --enable-togglebtn" >&5 | |
6940 | no_cache=0 | |
6941 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6942 | if test "${enable_togglebtn+set}" = set; then | |
6943 | enableval="$enable_togglebtn" | |
6944 | ||
6945 | if test "$enableval" = yes; then | |
6946 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6947 | else | |
6948 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6949 | fi | |
6950 | ||
6951 | else | |
6952 | ||
6953 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
6954 | if test "x$LINE" != x ; then | |
6955 | eval "DEFAULT_$LINE" | |
6956 | else | |
6957 | no_cache=1 | |
6958 | fi | |
6959 | ||
6960 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
6961 | ||
6962 | fi | |
6963 | ||
6964 | ||
6965 | eval "$ac_cv_use_togglebtn" | |
6966 | if test "$no_cache" != 1; then | |
6967 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
6971 | echo "$ac_t""yes" 1>&6 | |
6972 | else | |
6973 | echo "$ac_t""no" 1>&6 | |
6974 | fi | |
6975 | ||
6976 | ||
6977 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 | |
6978 | echo "configure:6979: checking for --enable-toolbar" >&5 | |
6979 | no_cache=0 | |
6980 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6981 | if test "${enable_toolbar+set}" = set; then | |
6982 | enableval="$enable_toolbar" | |
6983 | ||
6984 | if test "$enableval" = yes; then | |
6985 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6986 | else | |
6987 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6988 | fi | |
6989 | ||
6990 | else | |
6991 | ||
6992 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
6993 | if test "x$LINE" != x ; then | |
6994 | eval "DEFAULT_$LINE" | |
6995 | else | |
6996 | no_cache=1 | |
6997 | fi | |
6998 | ||
6999 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
7000 | ||
7001 | fi | |
7002 | ||
7003 | ||
7004 | eval "$ac_cv_use_toolbar" | |
7005 | if test "$no_cache" != 1; then | |
7006 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7007 | fi | |
7008 | ||
7009 | if test "$wxUSE_TOOLBAR" = yes; then | |
7010 | echo "$ac_t""yes" 1>&6 | |
7011 | else | |
7012 | echo "$ac_t""no" 1>&6 | |
7013 | fi | |
7014 | ||
7015 | ||
7016 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 | |
7017 | echo "configure:7018: checking for --enable-tbarnative" >&5 | |
7018 | no_cache=0 | |
7019 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7020 | if test "${enable_tbarnative+set}" = set; then | |
7021 | enableval="$enable_tbarnative" | |
7022 | ||
7023 | if test "$enableval" = yes; then | |
7024 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7025 | else | |
7026 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7027 | fi | |
7028 | ||
7029 | else | |
7030 | ||
7031 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
7032 | if test "x$LINE" != x ; then | |
7033 | eval "DEFAULT_$LINE" | |
7034 | else | |
7035 | no_cache=1 | |
7036 | fi | |
7037 | ||
7038 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
7039 | ||
7040 | fi | |
7041 | ||
7042 | ||
7043 | eval "$ac_cv_use_tbarnative" | |
7044 | if test "$no_cache" != 1; then | |
7045 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7046 | fi | |
7047 | ||
7048 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
7049 | echo "$ac_t""yes" 1>&6 | |
7050 | else | |
7051 | echo "$ac_t""no" 1>&6 | |
7052 | fi | |
7053 | ||
7054 | ||
7055 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 | |
7056 | echo "configure:7057: checking for --enable-tbarsmpl" >&5 | |
7057 | no_cache=0 | |
7058 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7059 | if test "${enable_tbarsmpl+set}" = set; then | |
7060 | enableval="$enable_tbarsmpl" | |
7061 | ||
7062 | if test "$enableval" = yes; then | |
7063 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7064 | else | |
7065 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7066 | fi | |
7067 | ||
7068 | else | |
7069 | ||
7070 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
7071 | if test "x$LINE" != x ; then | |
7072 | eval "DEFAULT_$LINE" | |
7073 | else | |
7074 | no_cache=1 | |
7075 | fi | |
7076 | ||
7077 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
7078 | ||
7079 | fi | |
7080 | ||
7081 | ||
7082 | eval "$ac_cv_use_tbarsmpl" | |
7083 | if test "$no_cache" != 1; then | |
7084 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7085 | fi | |
7086 | ||
7087 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
7088 | echo "$ac_t""yes" 1>&6 | |
7089 | else | |
7090 | echo "$ac_t""no" 1>&6 | |
7091 | fi | |
7092 | ||
7093 | ||
7094 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 | |
7095 | echo "configure:7096: checking for --enable-treectrl" >&5 | |
7096 | no_cache=0 | |
7097 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7098 | if test "${enable_treectrl+set}" = set; then | |
7099 | enableval="$enable_treectrl" | |
7100 | ||
7101 | if test "$enableval" = yes; then | |
7102 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7103 | else | |
7104 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7105 | fi | |
7106 | ||
7107 | else | |
7108 | ||
7109 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
7110 | if test "x$LINE" != x ; then | |
7111 | eval "DEFAULT_$LINE" | |
7112 | else | |
7113 | no_cache=1 | |
7114 | fi | |
7115 | ||
7116 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
7117 | ||
7118 | fi | |
7119 | ||
7120 | ||
7121 | eval "$ac_cv_use_treectrl" | |
7122 | if test "$no_cache" != 1; then | |
7123 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7124 | fi | |
7125 | ||
7126 | if test "$wxUSE_TREECTRL" = yes; then | |
7127 | echo "$ac_t""yes" 1>&6 | |
7128 | else | |
7129 | echo "$ac_t""no" 1>&6 | |
7130 | fi | |
7131 | ||
7132 | ||
7133 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 | |
7134 | echo "configure:7135: checking for --enable-tipwindow" >&5 | |
7135 | no_cache=0 | |
7136 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7137 | if test "${enable_tipwindow+set}" = set; then | |
7138 | enableval="$enable_tipwindow" | |
7139 | ||
7140 | if test "$enableval" = yes; then | |
7141 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7142 | else | |
7143 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7144 | fi | |
7145 | ||
7146 | else | |
7147 | ||
7148 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7149 | if test "x$LINE" != x ; then | |
7150 | eval "DEFAULT_$LINE" | |
7151 | else | |
7152 | no_cache=1 | |
7153 | fi | |
7154 | ||
7155 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7156 | ||
7157 | fi | |
7158 | ||
7159 | ||
7160 | eval "$ac_cv_use_tipwindow" | |
7161 | if test "$no_cache" != 1; then | |
7162 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7163 | fi | |
7164 | ||
7165 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7166 | echo "$ac_t""yes" 1>&6 | |
7167 | else | |
7168 | echo "$ac_t""no" 1>&6 | |
7169 | fi | |
7170 | ||
7171 | ||
7172 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 | |
7173 | echo "configure:7174: checking for --enable-popupwin" >&5 | |
7174 | no_cache=0 | |
7175 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7176 | if test "${enable_popupwin+set}" = set; then | |
7177 | enableval="$enable_popupwin" | |
7178 | ||
7179 | if test "$enableval" = yes; then | |
7180 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7181 | else | |
7182 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7183 | fi | |
7184 | ||
7185 | else | |
7186 | ||
7187 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7188 | if test "x$LINE" != x ; then | |
7189 | eval "DEFAULT_$LINE" | |
7190 | else | |
7191 | no_cache=1 | |
7192 | fi | |
7193 | ||
7194 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7195 | ||
7196 | fi | |
7197 | ||
7198 | ||
7199 | eval "$ac_cv_use_popupwin" | |
7200 | if test "$no_cache" != 1; then | |
7201 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7202 | fi | |
7203 | ||
7204 | if test "$wxUSE_POPUPWIN" = yes; then | |
7205 | echo "$ac_t""yes" 1>&6 | |
7206 | else | |
7207 | echo "$ac_t""no" 1>&6 | |
7208 | fi | |
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
7214 | echo "configure:7215: checking for --enable-commondlg" >&5 | |
7215 | no_cache=0 | |
7216 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7217 | if test "${enable_commondlg+set}" = set; then | |
7218 | enableval="$enable_commondlg" | |
7219 | ||
7220 | if test "$enableval" = yes; then | |
7221 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7222 | else | |
7223 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7224 | fi | |
7225 | ||
7226 | else | |
7227 | ||
7228 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7229 | if test "x$LINE" != x ; then | |
7230 | eval "DEFAULT_$LINE" | |
7231 | else | |
7232 | no_cache=1 | |
7233 | fi | |
7234 | ||
7235 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7236 | ||
7237 | fi | |
7238 | ||
7239 | ||
7240 | eval "$ac_cv_use_commondlg" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7246 | echo "$ac_t""yes" 1>&6 | |
7247 | else | |
7248 | echo "$ac_t""no" 1>&6 | |
7249 | fi | |
7250 | ||
7251 | ||
7252 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
7253 | echo "configure:7254: checking for --enable-choicedlg" >&5 | |
7254 | no_cache=0 | |
7255 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7256 | if test "${enable_choicedlg+set}" = set; then | |
7257 | enableval="$enable_choicedlg" | |
7258 | ||
7259 | if test "$enableval" = yes; then | |
7260 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7261 | else | |
7262 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7263 | fi | |
7264 | ||
7265 | else | |
7266 | ||
7267 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7268 | if test "x$LINE" != x ; then | |
7269 | eval "DEFAULT_$LINE" | |
7270 | else | |
7271 | no_cache=1 | |
7272 | fi | |
7273 | ||
7274 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7275 | ||
7276 | fi | |
7277 | ||
7278 | ||
7279 | eval "$ac_cv_use_choicedlg" | |
7280 | if test "$no_cache" != 1; then | |
7281 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7282 | fi | |
7283 | ||
7284 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7285 | echo "$ac_t""yes" 1>&6 | |
7286 | else | |
7287 | echo "$ac_t""no" 1>&6 | |
7288 | fi | |
7289 | ||
7290 | ||
7291 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
7292 | echo "configure:7293: checking for --enable-coldlg" >&5 | |
7293 | no_cache=0 | |
7294 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7295 | if test "${enable_coldlg+set}" = set; then | |
7296 | enableval="$enable_coldlg" | |
7297 | ||
7298 | if test "$enableval" = yes; then | |
7299 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7300 | else | |
7301 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7302 | fi | |
7303 | ||
7304 | else | |
7305 | ||
7306 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7307 | if test "x$LINE" != x ; then | |
7308 | eval "DEFAULT_$LINE" | |
7309 | else | |
7310 | no_cache=1 | |
7311 | fi | |
7312 | ||
7313 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7314 | ||
7315 | fi | |
7316 | ||
7317 | ||
7318 | eval "$ac_cv_use_coldlg" | |
7319 | if test "$no_cache" != 1; then | |
7320 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7321 | fi | |
7322 | ||
7323 | if test "$wxUSE_COLOURDLG" = yes; then | |
7324 | echo "$ac_t""yes" 1>&6 | |
7325 | else | |
7326 | echo "$ac_t""no" 1>&6 | |
7327 | fi | |
7328 | ||
7329 | ||
7330 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
7331 | echo "configure:7332: checking for --enable-filedlg" >&5 | |
7332 | no_cache=0 | |
7333 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7334 | if test "${enable_filedlg+set}" = set; then | |
7335 | enableval="$enable_filedlg" | |
7336 | ||
7337 | if test "$enableval" = yes; then | |
7338 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7339 | else | |
7340 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7341 | fi | |
7342 | ||
7343 | else | |
7344 | ||
7345 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7346 | if test "x$LINE" != x ; then | |
7347 | eval "DEFAULT_$LINE" | |
7348 | else | |
7349 | no_cache=1 | |
7350 | fi | |
7351 | ||
7352 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7353 | ||
7354 | fi | |
7355 | ||
7356 | ||
7357 | eval "$ac_cv_use_filedlg" | |
7358 | if test "$no_cache" != 1; then | |
7359 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7360 | fi | |
7361 | ||
7362 | if test "$wxUSE_FILEDLG" = yes; then | |
7363 | echo "$ac_t""yes" 1>&6 | |
7364 | else | |
7365 | echo "$ac_t""no" 1>&6 | |
7366 | fi | |
7367 | ||
7368 | ||
7369 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 | |
7370 | echo "configure:7371: checking for --enable-finddlg" >&5 | |
7371 | no_cache=0 | |
7372 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
7373 | if test "${enable_finddlg+set}" = set; then | |
7374 | enableval="$enable_finddlg" | |
7375 | ||
7376 | if test "$enableval" = yes; then | |
7377 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
7378 | else | |
7379 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
7380 | fi | |
7381 | ||
7382 | else | |
7383 | ||
7384 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7385 | if test "x$LINE" != x ; then | |
7386 | eval "DEFAULT_$LINE" | |
7387 | else | |
7388 | no_cache=1 | |
7389 | fi | |
7390 | ||
7391 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
7392 | ||
7393 | fi | |
7394 | ||
7395 | ||
7396 | eval "$ac_cv_use_finddlg" | |
7397 | if test "$no_cache" != 1; then | |
7398 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
7399 | fi | |
7400 | ||
7401 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7402 | echo "$ac_t""yes" 1>&6 | |
7403 | else | |
7404 | echo "$ac_t""no" 1>&6 | |
7405 | fi | |
7406 | ||
7407 | ||
7408 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
7409 | echo "configure:7410: checking for --enable-fontdlg" >&5 | |
7410 | no_cache=0 | |
7411 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7412 | if test "${enable_fontdlg+set}" = set; then | |
7413 | enableval="$enable_fontdlg" | |
7414 | ||
7415 | if test "$enableval" = yes; then | |
7416 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7417 | else | |
7418 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7419 | fi | |
7420 | ||
7421 | else | |
7422 | ||
7423 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7424 | if test "x$LINE" != x ; then | |
7425 | eval "DEFAULT_$LINE" | |
7426 | else | |
7427 | no_cache=1 | |
7428 | fi | |
7429 | ||
7430 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7431 | ||
7432 | fi | |
7433 | ||
7434 | ||
7435 | eval "$ac_cv_use_fontdlg" | |
7436 | if test "$no_cache" != 1; then | |
7437 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7438 | fi | |
7439 | ||
7440 | if test "$wxUSE_FONTDLG" = yes; then | |
7441 | echo "$ac_t""yes" 1>&6 | |
7442 | else | |
7443 | echo "$ac_t""no" 1>&6 | |
7444 | fi | |
7445 | ||
7446 | ||
7447 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
7448 | echo "configure:7449: checking for --enable-dirdlg" >&5 | |
7449 | no_cache=0 | |
7450 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7451 | if test "${enable_dirdlg+set}" = set; then | |
7452 | enableval="$enable_dirdlg" | |
7453 | ||
7454 | if test "$enableval" = yes; then | |
7455 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7456 | else | |
7457 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7458 | fi | |
7459 | ||
7460 | else | |
7461 | ||
7462 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7463 | if test "x$LINE" != x ; then | |
7464 | eval "DEFAULT_$LINE" | |
7465 | else | |
7466 | no_cache=1 | |
7467 | fi | |
7468 | ||
7469 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7470 | ||
7471 | fi | |
7472 | ||
7473 | ||
7474 | eval "$ac_cv_use_dirdlg" | |
7475 | if test "$no_cache" != 1; then | |
7476 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
7477 | fi | |
7478 | ||
7479 | if test "$wxUSE_DIRDLG" = yes; then | |
7480 | echo "$ac_t""yes" 1>&6 | |
7481 | else | |
7482 | echo "$ac_t""no" 1>&6 | |
7483 | fi | |
7484 | ||
7485 | ||
7486 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 | |
7487 | echo "configure:7488: checking for --enable-msgdlg" >&5 | |
7488 | no_cache=0 | |
7489 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
7490 | if test "${enable_msgdlg+set}" = set; then | |
7491 | enableval="$enable_msgdlg" | |
7492 | ||
7493 | if test "$enableval" = yes; then | |
7494 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
7495 | else | |
7496 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
7497 | fi | |
7498 | ||
7499 | else | |
7500 | ||
7501 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
7502 | if test "x$LINE" != x ; then | |
7503 | eval "DEFAULT_$LINE" | |
7504 | else | |
7505 | no_cache=1 | |
7506 | fi | |
7507 | ||
7508 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
7509 | ||
7510 | fi | |
7511 | ||
7512 | ||
7513 | eval "$ac_cv_use_msgdlg" | |
7514 | if test "$no_cache" != 1; then | |
7515 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
7516 | fi | |
7517 | ||
7518 | if test "$wxUSE_MSGDLG" = yes; then | |
7519 | echo "$ac_t""yes" 1>&6 | |
7520 | else | |
7521 | echo "$ac_t""no" 1>&6 | |
7522 | fi | |
7523 | ||
7524 | ||
7525 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 | |
7526 | echo "configure:7527: checking for --enable-numberdlg" >&5 | |
7527 | no_cache=0 | |
7528 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
7529 | if test "${enable_numberdlg+set}" = set; then | |
7530 | enableval="$enable_numberdlg" | |
7531 | ||
7532 | if test "$enableval" = yes; then | |
7533 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
7534 | else | |
7535 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
7536 | fi | |
7537 | ||
7538 | else | |
7539 | ||
7540 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
7541 | if test "x$LINE" != x ; then | |
7542 | eval "DEFAULT_$LINE" | |
7543 | else | |
7544 | no_cache=1 | |
7545 | fi | |
7546 | ||
7547 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
7548 | ||
7549 | fi | |
7550 | ||
7551 | ||
7552 | eval "$ac_cv_use_numberdlg" | |
7553 | if test "$no_cache" != 1; then | |
7554 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
7555 | fi | |
7556 | ||
7557 | if test "$wxUSE_NUMBERDLG" = yes; then | |
7558 | echo "$ac_t""yes" 1>&6 | |
7559 | else | |
7560 | echo "$ac_t""no" 1>&6 | |
7561 | fi | |
7562 | ||
7563 | ||
7564 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 | |
7565 | echo "configure:7566: checking for --enable-splash" >&5 | |
7566 | no_cache=0 | |
7567 | # Check whether --enable-splash or --disable-splash was given. | |
7568 | if test "${enable_splash+set}" = set; then | |
7569 | enableval="$enable_splash" | |
7570 | ||
7571 | if test "$enableval" = yes; then | |
7572 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7573 | else | |
7574 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7575 | fi | |
7576 | ||
7577 | else | |
7578 | ||
7579 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7580 | if test "x$LINE" != x ; then | |
7581 | eval "DEFAULT_$LINE" | |
7582 | else | |
7583 | no_cache=1 | |
7584 | fi | |
7585 | ||
7586 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7587 | ||
7588 | fi | |
7589 | ||
7590 | ||
7591 | eval "$ac_cv_use_splash" | |
7592 | if test "$no_cache" != 1; then | |
7593 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7594 | fi | |
7595 | ||
7596 | if test "$wxUSE_SPLASH" = yes; then | |
7597 | echo "$ac_t""yes" 1>&6 | |
7598 | else | |
7599 | echo "$ac_t""no" 1>&6 | |
7600 | fi | |
7601 | ||
7602 | ||
7603 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 | |
7604 | echo "configure:7605: checking for --enable-textdlg" >&5 | |
7605 | no_cache=0 | |
7606 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7607 | if test "${enable_textdlg+set}" = set; then | |
7608 | enableval="$enable_textdlg" | |
7609 | ||
7610 | if test "$enableval" = yes; then | |
7611 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7612 | else | |
7613 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7614 | fi | |
7615 | ||
7616 | else | |
7617 | ||
7618 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
7619 | if test "x$LINE" != x ; then | |
7620 | eval "DEFAULT_$LINE" | |
7621 | else | |
7622 | no_cache=1 | |
7623 | fi | |
7624 | ||
7625 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
7626 | ||
7627 | fi | |
7628 | ||
7629 | ||
7630 | eval "$ac_cv_use_textdlg" | |
7631 | if test "$no_cache" != 1; then | |
7632 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7633 | fi | |
7634 | ||
7635 | if test "$wxUSE_TEXTDLG" = yes; then | |
7636 | echo "$ac_t""yes" 1>&6 | |
7637 | else | |
7638 | echo "$ac_t""no" 1>&6 | |
7639 | fi | |
7640 | ||
7641 | ||
7642 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 | |
7643 | echo "configure:7644: checking for --enable-tipdlg" >&5 | |
7644 | no_cache=0 | |
7645 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7646 | if test "${enable_tipdlg+set}" = set; then | |
7647 | enableval="$enable_tipdlg" | |
7648 | ||
7649 | if test "$enableval" = yes; then | |
7650 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7651 | else | |
7652 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7653 | fi | |
7654 | ||
7655 | else | |
7656 | ||
7657 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
7658 | if test "x$LINE" != x ; then | |
7659 | eval "DEFAULT_$LINE" | |
7660 | else | |
7661 | no_cache=1 | |
7662 | fi | |
7663 | ||
7664 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
7665 | ||
7666 | fi | |
7667 | ||
7668 | ||
7669 | eval "$ac_cv_use_tipdlg" | |
7670 | if test "$no_cache" != 1; then | |
7671 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7672 | fi | |
7673 | ||
7674 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
7675 | echo "$ac_t""yes" 1>&6 | |
7676 | else | |
7677 | echo "$ac_t""no" 1>&6 | |
7678 | fi | |
7679 | ||
7680 | ||
7681 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 | |
7682 | echo "configure:7683: checking for --enable-progressdlg" >&5 | |
7683 | no_cache=0 | |
7684 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7685 | if test "${enable_progressdlg+set}" = set; then | |
7686 | enableval="$enable_progressdlg" | |
7687 | ||
7688 | if test "$enableval" = yes; then | |
7689 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7690 | else | |
7691 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7692 | fi | |
7693 | ||
7694 | else | |
7695 | ||
7696 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
7697 | if test "x$LINE" != x ; then | |
7698 | eval "DEFAULT_$LINE" | |
7699 | else | |
7700 | no_cache=1 | |
7701 | fi | |
7702 | ||
7703 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
7704 | ||
7705 | fi | |
7706 | ||
7707 | ||
7708 | eval "$ac_cv_use_progressdlg" | |
7709 | if test "$no_cache" != 1; then | |
7710 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7711 | fi | |
7712 | ||
7713 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
7714 | echo "$ac_t""yes" 1>&6 | |
7715 | else | |
7716 | echo "$ac_t""no" 1>&6 | |
7717 | fi | |
7718 | ||
7719 | ||
7720 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 | |
7721 | echo "configure:7722: checking for --enable-wizarddlg" >&5 | |
7722 | no_cache=0 | |
7723 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7724 | if test "${enable_wizarddlg+set}" = set; then | |
7725 | enableval="$enable_wizarddlg" | |
7726 | ||
7727 | if test "$enableval" = yes; then | |
7728 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7729 | else | |
7730 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7731 | fi | |
7732 | ||
7733 | else | |
7734 | ||
7735 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7736 | if test "x$LINE" != x ; then | |
7737 | eval "DEFAULT_$LINE" | |
7738 | else | |
7739 | no_cache=1 | |
7740 | fi | |
7741 | ||
7742 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7743 | ||
7744 | fi | |
7745 | ||
7746 | ||
7747 | eval "$ac_cv_use_wizarddlg" | |
7748 | if test "$no_cache" != 1; then | |
7749 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7750 | fi | |
7751 | ||
7752 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7753 | echo "$ac_t""yes" 1>&6 | |
7754 | else | |
7755 | echo "$ac_t""no" 1>&6 | |
7756 | fi | |
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 | |
7762 | echo "configure:7763: checking for --enable-menus" >&5 | |
7763 | no_cache=0 | |
7764 | # Check whether --enable-menus or --disable-menus was given. | |
7765 | if test "${enable_menus+set}" = set; then | |
7766 | enableval="$enable_menus" | |
7767 | ||
7768 | if test "$enableval" = yes; then | |
7769 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7770 | else | |
7771 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7772 | fi | |
7773 | ||
7774 | else | |
7775 | ||
7776 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7777 | if test "x$LINE" != x ; then | |
7778 | eval "DEFAULT_$LINE" | |
7779 | else | |
7780 | no_cache=1 | |
7781 | fi | |
7782 | ||
7783 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7784 | ||
7785 | fi | |
7786 | ||
7787 | ||
7788 | eval "$ac_cv_use_menus" | |
7789 | if test "$no_cache" != 1; then | |
7790 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7791 | fi | |
7792 | ||
7793 | if test "$wxUSE_MENUS" = yes; then | |
7794 | echo "$ac_t""yes" 1>&6 | |
7795 | else | |
7796 | echo "$ac_t""no" 1>&6 | |
7797 | fi | |
7798 | ||
7799 | ||
7800 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 | |
7801 | echo "configure:7802: checking for --enable-miniframe" >&5 | |
7802 | no_cache=0 | |
7803 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7804 | if test "${enable_miniframe+set}" = set; then | |
7805 | enableval="$enable_miniframe" | |
7806 | ||
7807 | if test "$enableval" = yes; then | |
7808 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7809 | else | |
7810 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7811 | fi | |
7812 | ||
7813 | else | |
7814 | ||
7815 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
7816 | if test "x$LINE" != x ; then | |
7817 | eval "DEFAULT_$LINE" | |
7818 | else | |
7819 | no_cache=1 | |
7820 | fi | |
7821 | ||
7822 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
7823 | ||
7824 | fi | |
7825 | ||
7826 | ||
7827 | eval "$ac_cv_use_miniframe" | |
7828 | if test "$no_cache" != 1; then | |
7829 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7830 | fi | |
7831 | ||
7832 | if test "$wxUSE_MINIFRAME" = yes; then | |
7833 | echo "$ac_t""yes" 1>&6 | |
7834 | else | |
7835 | echo "$ac_t""no" 1>&6 | |
7836 | fi | |
7837 | ||
7838 | ||
7839 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 | |
7840 | echo "configure:7841: checking for --enable-tooltips" >&5 | |
7841 | no_cache=0 | |
7842 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7843 | if test "${enable_tooltips+set}" = set; then | |
7844 | enableval="$enable_tooltips" | |
7845 | ||
7846 | if test "$enableval" = yes; then | |
7847 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7848 | else | |
7849 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7850 | fi | |
7851 | ||
7852 | else | |
7853 | ||
7854 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
7855 | if test "x$LINE" != x ; then | |
7856 | eval "DEFAULT_$LINE" | |
7857 | else | |
7858 | no_cache=1 | |
7859 | fi | |
7860 | ||
7861 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
7862 | ||
7863 | fi | |
7864 | ||
7865 | ||
7866 | eval "$ac_cv_use_tooltips" | |
7867 | if test "$no_cache" != 1; then | |
7868 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7869 | fi | |
7870 | ||
7871 | if test "$wxUSE_TOOLTIPS" = yes; then | |
7872 | echo "$ac_t""yes" 1>&6 | |
7873 | else | |
7874 | echo "$ac_t""no" 1>&6 | |
7875 | fi | |
7876 | ||
7877 | ||
7878 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 | |
7879 | echo "configure:7880: checking for --enable-splines" >&5 | |
7880 | no_cache=0 | |
7881 | # Check whether --enable-splines or --disable-splines was given. | |
7882 | if test "${enable_splines+set}" = set; then | |
7883 | enableval="$enable_splines" | |
7884 | ||
7885 | if test "$enableval" = yes; then | |
7886 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7887 | else | |
7888 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7889 | fi | |
7890 | ||
7891 | else | |
7892 | ||
7893 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
7894 | if test "x$LINE" != x ; then | |
7895 | eval "DEFAULT_$LINE" | |
7896 | else | |
7897 | no_cache=1 | |
7898 | fi | |
7899 | ||
7900 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
7901 | ||
7902 | fi | |
7903 | ||
7904 | ||
7905 | eval "$ac_cv_use_splines" | |
7906 | if test "$no_cache" != 1; then | |
7907 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7908 | fi | |
7909 | ||
7910 | if test "$wxUSE_SPLINES" = yes; then | |
7911 | echo "$ac_t""yes" 1>&6 | |
7912 | else | |
7913 | echo "$ac_t""no" 1>&6 | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 | |
7918 | echo "configure:7919: checking for --enable-validators" >&5 | |
7919 | no_cache=0 | |
7920 | # Check whether --enable-validators or --disable-validators was given. | |
7921 | if test "${enable_validators+set}" = set; then | |
7922 | enableval="$enable_validators" | |
7923 | ||
7924 | if test "$enableval" = yes; then | |
7925 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7926 | else | |
7927 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7928 | fi | |
7929 | ||
7930 | else | |
7931 | ||
7932 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
7933 | if test "x$LINE" != x ; then | |
7934 | eval "DEFAULT_$LINE" | |
7935 | else | |
7936 | no_cache=1 | |
7937 | fi | |
7938 | ||
7939 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
7940 | ||
7941 | fi | |
7942 | ||
7943 | ||
7944 | eval "$ac_cv_use_validators" | |
7945 | if test "$no_cache" != 1; then | |
7946 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7947 | fi | |
7948 | ||
7949 | if test "$wxUSE_VALIDATORS" = yes; then | |
7950 | echo "$ac_t""yes" 1>&6 | |
7951 | else | |
7952 | echo "$ac_t""no" 1>&6 | |
7953 | fi | |
7954 | ||
7955 | ||
7956 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 | |
7957 | echo "configure:7958: checking for --enable-busyinfo" >&5 | |
7958 | no_cache=0 | |
7959 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7960 | if test "${enable_busyinfo+set}" = set; then | |
7961 | enableval="$enable_busyinfo" | |
7962 | ||
7963 | if test "$enableval" = yes; then | |
7964 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7965 | else | |
7966 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7967 | fi | |
7968 | ||
7969 | else | |
7970 | ||
7971 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
7972 | if test "x$LINE" != x ; then | |
7973 | eval "DEFAULT_$LINE" | |
7974 | else | |
7975 | no_cache=1 | |
7976 | fi | |
7977 | ||
7978 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
7979 | ||
7980 | fi | |
7981 | ||
7982 | ||
7983 | eval "$ac_cv_use_busyinfo" | |
7984 | if test "$no_cache" != 1; then | |
7985 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7986 | fi | |
7987 | ||
7988 | if test "$wxUSE_BUSYINFO" = yes; then | |
7989 | echo "$ac_t""yes" 1>&6 | |
7990 | else | |
7991 | echo "$ac_t""no" 1>&6 | |
7992 | fi | |
7993 | ||
7994 | ||
7995 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 | |
7996 | echo "configure:7997: checking for --enable-joystick" >&5 | |
7997 | no_cache=0 | |
7998 | # Check whether --enable-joystick or --disable-joystick was given. | |
7999 | if test "${enable_joystick+set}" = set; then | |
8000 | enableval="$enable_joystick" | |
8001 | ||
8002 | if test "$enableval" = yes; then | |
8003 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8004 | else | |
8005 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8006 | fi | |
8007 | ||
8008 | else | |
8009 | ||
8010 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
8011 | if test "x$LINE" != x ; then | |
8012 | eval "DEFAULT_$LINE" | |
8013 | else | |
8014 | no_cache=1 | |
8015 | fi | |
8016 | ||
8017 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
8018 | ||
8019 | fi | |
8020 | ||
8021 | ||
8022 | eval "$ac_cv_use_joystick" | |
8023 | if test "$no_cache" != 1; then | |
8024 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8025 | fi | |
8026 | ||
8027 | if test "$wxUSE_JOYSTICK" = yes; then | |
8028 | echo "$ac_t""yes" 1>&6 | |
8029 | else | |
8030 | echo "$ac_t""no" 1>&6 | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
8035 | echo "configure:8036: checking for --enable-metafile" >&5 | |
8036 | no_cache=0 | |
8037 | # Check whether --enable-metafile or --disable-metafile was given. | |
8038 | if test "${enable_metafile+set}" = set; then | |
8039 | enableval="$enable_metafile" | |
8040 | ||
8041 | if test "$enableval" = yes; then | |
8042 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8043 | else | |
8044 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8045 | fi | |
8046 | ||
8047 | else | |
8048 | ||
8049 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8050 | if test "x$LINE" != x ; then | |
8051 | eval "DEFAULT_$LINE" | |
8052 | else | |
8053 | no_cache=1 | |
8054 | fi | |
8055 | ||
8056 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8057 | ||
8058 | fi | |
8059 | ||
8060 | ||
8061 | eval "$ac_cv_use_metafile" | |
8062 | if test "$no_cache" != 1; then | |
8063 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8064 | fi | |
8065 | ||
8066 | if test "$wxUSE_METAFILE" = yes; then | |
8067 | echo "$ac_t""yes" 1>&6 | |
8068 | else | |
8069 | echo "$ac_t""no" 1>&6 | |
8070 | fi | |
8071 | ||
8072 | ||
8073 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 | |
8074 | echo "configure:8075: checking for --enable-dragimage" >&5 | |
8075 | no_cache=0 | |
8076 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8077 | if test "${enable_dragimage+set}" = set; then | |
8078 | enableval="$enable_dragimage" | |
8079 | ||
8080 | if test "$enableval" = yes; then | |
8081 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8082 | else | |
8083 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8084 | fi | |
8085 | ||
8086 | else | |
8087 | ||
8088 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8089 | if test "x$LINE" != x ; then | |
8090 | eval "DEFAULT_$LINE" | |
8091 | else | |
8092 | no_cache=1 | |
8093 | fi | |
8094 | ||
8095 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8096 | ||
8097 | fi | |
8098 | ||
8099 | ||
8100 | eval "$ac_cv_use_dragimage" | |
8101 | if test "$no_cache" != 1; then | |
8102 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8103 | fi | |
8104 | ||
8105 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8106 | echo "$ac_t""yes" 1>&6 | |
8107 | else | |
8108 | echo "$ac_t""no" 1>&6 | |
8109 | fi | |
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 | |
8115 | echo "configure:8116: checking for --enable-palette" >&5 | |
8116 | no_cache=0 | |
8117 | # Check whether --enable-palette or --disable-palette was given. | |
8118 | if test "${enable_palette+set}" = set; then | |
8119 | enableval="$enable_palette" | |
8120 | ||
8121 | if test "$enableval" = yes; then | |
8122 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8123 | else | |
8124 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8125 | fi | |
8126 | ||
8127 | else | |
8128 | ||
8129 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8130 | if test "x$LINE" != x ; then | |
8131 | eval "DEFAULT_$LINE" | |
8132 | else | |
8133 | no_cache=1 | |
8134 | fi | |
8135 | ||
8136 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8137 | ||
8138 | fi | |
8139 | ||
8140 | ||
8141 | eval "$ac_cv_use_palette" | |
8142 | if test "$no_cache" != 1; then | |
8143 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8144 | fi | |
8145 | ||
8146 | if test "$wxUSE_PALETTE" = yes; then | |
8147 | echo "$ac_t""yes" 1>&6 | |
8148 | else | |
8149 | echo "$ac_t""no" 1>&6 | |
8150 | fi | |
8151 | ||
8152 | ||
8153 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
8154 | echo "configure:8155: checking for --enable-image" >&5 | |
8155 | no_cache=0 | |
8156 | # Check whether --enable-image or --disable-image was given. | |
8157 | if test "${enable_image+set}" = set; then | |
8158 | enableval="$enable_image" | |
8159 | ||
8160 | if test "$enableval" = yes; then | |
8161 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8162 | else | |
8163 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8164 | fi | |
8165 | ||
8166 | else | |
8167 | ||
8168 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
8169 | if test "x$LINE" != x ; then | |
8170 | eval "DEFAULT_$LINE" | |
8171 | else | |
8172 | no_cache=1 | |
8173 | fi | |
8174 | ||
8175 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
8176 | ||
8177 | fi | |
8178 | ||
8179 | ||
8180 | eval "$ac_cv_use_image" | |
8181 | if test "$no_cache" != 1; then | |
8182 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8183 | fi | |
8184 | ||
8185 | if test "$wxUSE_IMAGE" = yes; then | |
8186 | echo "$ac_t""yes" 1>&6 | |
8187 | else | |
8188 | echo "$ac_t""no" 1>&6 | |
8189 | fi | |
8190 | ||
8191 | ||
8192 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 | |
8193 | echo "configure:8194: checking for --enable-gif" >&5 | |
8194 | no_cache=0 | |
8195 | # Check whether --enable-gif or --disable-gif was given. | |
8196 | if test "${enable_gif+set}" = set; then | |
8197 | enableval="$enable_gif" | |
8198 | ||
8199 | if test "$enableval" = yes; then | |
8200 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8201 | else | |
8202 | ac_cv_use_gif='wxUSE_GIF=no' | |
8203 | fi | |
8204 | ||
8205 | else | |
8206 | ||
8207 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
8208 | if test "x$LINE" != x ; then | |
8209 | eval "DEFAULT_$LINE" | |
8210 | else | |
8211 | no_cache=1 | |
8212 | fi | |
8213 | ||
8214 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
8215 | ||
8216 | fi | |
8217 | ||
8218 | ||
8219 | eval "$ac_cv_use_gif" | |
8220 | if test "$no_cache" != 1; then | |
8221 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8222 | fi | |
8223 | ||
8224 | if test "$wxUSE_GIF" = yes; then | |
8225 | echo "$ac_t""yes" 1>&6 | |
8226 | else | |
8227 | echo "$ac_t""no" 1>&6 | |
8228 | fi | |
8229 | ||
8230 | ||
8231 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 | |
8232 | echo "configure:8233: checking for --enable-pcx" >&5 | |
8233 | no_cache=0 | |
8234 | # Check whether --enable-pcx or --disable-pcx was given. | |
8235 | if test "${enable_pcx+set}" = set; then | |
8236 | enableval="$enable_pcx" | |
8237 | ||
8238 | if test "$enableval" = yes; then | |
8239 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8240 | else | |
8241 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8242 | fi | |
8243 | ||
8244 | else | |
8245 | ||
8246 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
8247 | if test "x$LINE" != x ; then | |
8248 | eval "DEFAULT_$LINE" | |
8249 | else | |
8250 | no_cache=1 | |
8251 | fi | |
8252 | ||
8253 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
8254 | ||
8255 | fi | |
8256 | ||
8257 | ||
8258 | eval "$ac_cv_use_pcx" | |
8259 | if test "$no_cache" != 1; then | |
8260 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8261 | fi | |
8262 | ||
8263 | if test "$wxUSE_PCX" = yes; then | |
8264 | echo "$ac_t""yes" 1>&6 | |
8265 | else | |
8266 | echo "$ac_t""no" 1>&6 | |
8267 | fi | |
8268 | ||
8269 | ||
8270 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 | |
8271 | echo "configure:8272: checking for --enable-iff" >&5 | |
8272 | no_cache=0 | |
8273 | # Check whether --enable-iff or --disable-iff was given. | |
8274 | if test "${enable_iff+set}" = set; then | |
8275 | enableval="$enable_iff" | |
8276 | ||
8277 | if test "$enableval" = yes; then | |
8278 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8279 | else | |
8280 | ac_cv_use_iff='wxUSE_IFF=no' | |
8281 | fi | |
8282 | ||
8283 | else | |
8284 | ||
8285 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8286 | if test "x$LINE" != x ; then | |
8287 | eval "DEFAULT_$LINE" | |
8288 | else | |
8289 | no_cache=1 | |
8290 | fi | |
8291 | ||
8292 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8293 | ||
8294 | fi | |
8295 | ||
8296 | ||
8297 | eval "$ac_cv_use_iff" | |
8298 | if test "$no_cache" != 1; then | |
8299 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8300 | fi | |
8301 | ||
8302 | if test "$wxUSE_IFF" = yes; then | |
8303 | echo "$ac_t""yes" 1>&6 | |
8304 | else | |
8305 | echo "$ac_t""no" 1>&6 | |
8306 | fi | |
8307 | ||
8308 | ||
8309 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 | |
8310 | echo "configure:8311: checking for --enable-pnm" >&5 | |
8311 | no_cache=0 | |
8312 | # Check whether --enable-pnm or --disable-pnm was given. | |
8313 | if test "${enable_pnm+set}" = set; then | |
8314 | enableval="$enable_pnm" | |
8315 | ||
8316 | if test "$enableval" = yes; then | |
8317 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8318 | else | |
8319 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8320 | fi | |
8321 | ||
8322 | else | |
8323 | ||
8324 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
8325 | if test "x$LINE" != x ; then | |
8326 | eval "DEFAULT_$LINE" | |
8327 | else | |
8328 | no_cache=1 | |
8329 | fi | |
8330 | ||
8331 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
8332 | ||
8333 | fi | |
8334 | ||
8335 | ||
8336 | eval "$ac_cv_use_pnm" | |
8337 | if test "$no_cache" != 1; then | |
8338 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8339 | fi | |
8340 | ||
8341 | if test "$wxUSE_PNM" = yes; then | |
8342 | echo "$ac_t""yes" 1>&6 | |
8343 | else | |
8344 | echo "$ac_t""no" 1>&6 | |
8345 | fi | |
8346 | ||
8347 | ||
8348 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 | |
8349 | echo "configure:8350: checking for --enable-xpm" >&5 | |
8350 | no_cache=0 | |
8351 | # Check whether --enable-xpm or --disable-xpm was given. | |
8352 | if test "${enable_xpm+set}" = set; then | |
8353 | enableval="$enable_xpm" | |
8354 | ||
8355 | if test "$enableval" = yes; then | |
8356 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
8357 | else | |
8358 | ac_cv_use_xpm='wxUSE_XPM=no' | |
8359 | fi | |
8360 | ||
8361 | else | |
8362 | ||
8363 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
8364 | if test "x$LINE" != x ; then | |
8365 | eval "DEFAULT_$LINE" | |
8366 | else | |
8367 | no_cache=1 | |
8368 | fi | |
8369 | ||
8370 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
8371 | ||
8372 | fi | |
8373 | ||
8374 | ||
8375 | eval "$ac_cv_use_xpm" | |
8376 | if test "$no_cache" != 1; then | |
8377 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
8378 | fi | |
8379 | ||
8380 | if test "$wxUSE_XPM" = yes; then | |
8381 | echo "$ac_t""yes" 1>&6 | |
8382 | else | |
8383 | echo "$ac_t""no" 1>&6 | |
8384 | fi | |
8385 | ||
8386 | ||
8387 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 | |
8388 | echo "configure:8389: checking for --enable-ico_cur" >&5 | |
8389 | no_cache=0 | |
8390 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
8391 | if test "${enable_ico_cur+set}" = set; then | |
8392 | enableval="$enable_ico_cur" | |
8393 | ||
8394 | if test "$enableval" = yes; then | |
8395 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
8396 | else | |
8397 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
8398 | fi | |
8399 | ||
8400 | else | |
8401 | ||
8402 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8403 | if test "x$LINE" != x ; then | |
8404 | eval "DEFAULT_$LINE" | |
8405 | else | |
8406 | no_cache=1 | |
8407 | fi | |
8408 | ||
8409 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
8410 | ||
8411 | fi | |
8412 | ||
8413 | ||
8414 | eval "$ac_cv_use_ico_cur" | |
8415 | if test "$no_cache" != 1; then | |
8416 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
8417 | fi | |
8418 | ||
8419 | if test "$wxUSE_ICO_CUR" = yes; then | |
8420 | echo "$ac_t""yes" 1>&6 | |
8421 | else | |
8422 | echo "$ac_t""no" 1>&6 | |
8423 | fi | |
8424 | ||
8425 | ||
8426 | fi | |
8427 | ||
8428 | case "${host}" in | |
8429 | *-pc-os2_emx | *-pc-os2-emx ) | |
8430 | LEX_STEM="lexyy" | |
8431 | ;; | |
8432 | *) | |
8433 | PATH_IFS=':' | |
8434 | LEX_STEM="lex.yy" | |
8435 | ;; | |
8436 | esac | |
8437 | ||
8438 | ||
8439 | ||
8440 | echo "saving argument cache $wx_arg_cache_file" | |
8441 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
8442 | ||
8443 | ||
8444 | ||
8445 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
8446 | echo "configure:8447: checking for toolkit" >&5 | |
8447 | ||
8448 | if test "$wxUSE_GUI" = "yes"; then | |
8449 | ||
8450 | if test "$USE_BEOS" = 1; then | |
8451 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8452 | fi | |
8453 | ||
8454 | if test "$TOOLKIT_GIVEN" = 1; then | |
8455 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8456 | var=wxUSE_$toolkit | |
8457 | eval "value=\$${var}" | |
8458 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8459 | done | |
8460 | else | |
8461 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8462 | if test "$has_toolkit_in_cache" != 1; then | |
8463 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8464 | else | |
8465 | var=DEFAULT_wxUSE_$toolkit | |
8466 | fi | |
8467 | eval "wxUSE_$toolkit=\$${var}" | |
8468 | done | |
8469 | fi | |
8470 | ||
8471 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ | |
8472 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` | |
8473 | ||
8474 | case "${host}" in | |
8475 | *-pc-os2_emx | *-pc-os2-emx ) | |
8476 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8477 | esac | |
8478 | ||
8479 | case "$NUM_TOOLKITS" in | |
8480 | 1) | |
8481 | ;; | |
8482 | 0) | |
8483 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8484 | ;; | |
8485 | *) | |
8486 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8487 | esac | |
8488 | ||
8489 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8490 | var=wxUSE_$toolkit | |
8491 | eval "value=\$${var}" | |
8492 | if test "x$value" != x; then | |
8493 | cache_var=CACHE_$toolkit | |
8494 | eval "cache=\$${cache_var}" | |
8495 | if test "$cache" = 1; then | |
8496 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8497 | fi | |
8498 | if test "$value" = 1; then | |
8499 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8500 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8501 | fi | |
8502 | fi | |
8503 | done | |
8504 | else | |
8505 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 | |
8506 | fi | |
8507 | ||
8508 | ||
8509 | cat > confcache <<\EOF | |
8510 | # This file is a shell script that caches the results of configure | |
8511 | # tests run on this system so they can be shared between configure | |
8512 | # scripts and configure runs. It is not useful on other systems. | |
8513 | # If it contains results you don't want to keep, you may remove or edit it. | |
8514 | # | |
8515 | # By default, configure uses ./config.cache as the cache file, | |
8516 | # creating it if it does not exist already. You can give configure | |
8517 | # the --cache-file=FILE option to use a different cache file; that is | |
8518 | # what configure does when it calls configure scripts in | |
8519 | # subdirectories, so they share the cache. | |
8520 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8521 | # config.status only pays attention to the cache file if you give it the | |
8522 | # --recheck option to rerun configure. | |
8523 | # | |
8524 | EOF | |
8525 | # The following way of writing the cache mishandles newlines in values, | |
8526 | # but we know of no workaround that is simple, portable, and efficient. | |
8527 | # So, don't put newlines in cache variables' values. | |
8528 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8529 | # and sets the high bit in the cache file unless we assign to the vars. | |
8530 | (set) 2>&1 | | |
8531 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8532 | *ac_space=\ *) | |
8533 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8534 | # turns \\\\ into \\, and sed turns \\ into \). | |
8535 | sed -n \ | |
8536 | -e "s/'/'\\\\''/g" \ | |
8537 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8538 | ;; | |
8539 | *) | |
8540 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8541 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8542 | ;; | |
8543 | esac >> confcache | |
8544 | if cmp -s $cache_file confcache; then | |
8545 | : | |
8546 | else | |
8547 | if test -w $cache_file; then | |
8548 | echo "updating cache $cache_file" | |
8549 | cat confcache > $cache_file | |
8550 | else | |
8551 | echo "not updating unwritable cache $cache_file" | |
8552 | fi | |
8553 | fi | |
8554 | rm -f confcache | |
8555 | ||
8556 | ||
8557 | if test "$build" != "$host" ; then | |
8558 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
8559 | CC=$host_alias-gcc | |
8560 | CXX=$host_alias-c++ | |
8561 | AR=$host_alias-ar | |
8562 | RANLIB=$host_alias-ranlib | |
8563 | DLLTOOL=$host_alias-dlltool | |
8564 | RESCOMP=$host_alias-windres | |
8565 | LD=$host_alias-ld | |
8566 | NM=$host_alias-nm | |
8567 | STRIP=$host_alias-strip | |
8568 | else | |
8569 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8570 | fi | |
8571 | fi | |
8572 | ||
8573 | CFLAGS=${CFLAGS:=} | |
8574 | # Extract the first word of "gcc", so it can be a program name with args. | |
8575 | set dummy gcc; ac_word=$2 | |
8576 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8577 | echo "configure:8578: checking for $ac_word" >&5 | |
8578 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8580 | else | |
8581 | if test -n "$CC"; then | |
8582 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8583 | else | |
8584 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8585 | ac_dummy="$PATH" | |
8586 | for ac_dir in $ac_dummy; do | |
8587 | test -z "$ac_dir" && ac_dir=. | |
8588 | if test -f $ac_dir/$ac_word; then | |
8589 | ac_cv_prog_CC="gcc" | |
8590 | break | |
8591 | fi | |
8592 | done | |
8593 | IFS="$ac_save_ifs" | |
8594 | fi | |
8595 | fi | |
8596 | CC="$ac_cv_prog_CC" | |
8597 | if test -n "$CC"; then | |
8598 | echo "$ac_t""$CC" 1>&6 | |
8599 | else | |
8600 | echo "$ac_t""no" 1>&6 | |
8601 | fi | |
8602 | ||
8603 | if test -z "$CC"; then | |
8604 | # Extract the first word of "cc", so it can be a program name with args. | |
8605 | set dummy cc; ac_word=$2 | |
8606 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8607 | echo "configure:8608: checking for $ac_word" >&5 | |
8608 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8610 | else | |
8611 | if test -n "$CC"; then | |
8612 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8613 | else | |
8614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8615 | ac_prog_rejected=no | |
8616 | ac_dummy="$PATH" | |
8617 | for ac_dir in $ac_dummy; do | |
8618 | test -z "$ac_dir" && ac_dir=. | |
8619 | if test -f $ac_dir/$ac_word; then | |
8620 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8621 | ac_prog_rejected=yes | |
8622 | continue | |
8623 | fi | |
8624 | ac_cv_prog_CC="cc" | |
8625 | break | |
8626 | fi | |
8627 | done | |
8628 | IFS="$ac_save_ifs" | |
8629 | if test $ac_prog_rejected = yes; then | |
8630 | # We found a bogon in the path, so make sure we never use it. | |
8631 | set dummy $ac_cv_prog_CC | |
8632 | shift | |
8633 | if test $# -gt 0; then | |
8634 | # We chose a different compiler from the bogus one. | |
8635 | # However, it has the same basename, so the bogon will be chosen | |
8636 | # first if we set CC to just the basename; use the full file name. | |
8637 | shift | |
8638 | set dummy "$ac_dir/$ac_word" "$@" | |
8639 | shift | |
8640 | ac_cv_prog_CC="$@" | |
8641 | fi | |
8642 | fi | |
8643 | fi | |
8644 | fi | |
8645 | CC="$ac_cv_prog_CC" | |
8646 | if test -n "$CC"; then | |
8647 | echo "$ac_t""$CC" 1>&6 | |
8648 | else | |
8649 | echo "$ac_t""no" 1>&6 | |
8650 | fi | |
8651 | ||
8652 | if test -z "$CC"; then | |
8653 | case "`uname -s`" in | |
8654 | *win32* | *WIN32*) | |
8655 | # Extract the first word of "cl", so it can be a program name with args. | |
8656 | set dummy cl; ac_word=$2 | |
8657 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8658 | echo "configure:8659: checking for $ac_word" >&5 | |
8659 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8661 | else | |
8662 | if test -n "$CC"; then | |
8663 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8664 | else | |
8665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8666 | ac_dummy="$PATH" | |
8667 | for ac_dir in $ac_dummy; do | |
8668 | test -z "$ac_dir" && ac_dir=. | |
8669 | if test -f $ac_dir/$ac_word; then | |
8670 | ac_cv_prog_CC="cl" | |
8671 | break | |
8672 | fi | |
8673 | done | |
8674 | IFS="$ac_save_ifs" | |
8675 | fi | |
8676 | fi | |
8677 | CC="$ac_cv_prog_CC" | |
8678 | if test -n "$CC"; then | |
8679 | echo "$ac_t""$CC" 1>&6 | |
8680 | else | |
8681 | echo "$ac_t""no" 1>&6 | |
8682 | fi | |
8683 | ;; | |
8684 | esac | |
8685 | fi | |
8686 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
8687 | fi | |
8688 | ||
8689 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8690 | echo "configure:8691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
8691 | ||
8692 | ac_ext=c | |
8693 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8694 | ac_cpp='$CPP $CPPFLAGS' | |
8695 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8696 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8697 | cross_compiling=$ac_cv_prog_cc_cross | |
8698 | ||
8699 | cat > conftest.$ac_ext << EOF | |
8700 | ||
8701 | #line 8702 "configure" | |
8702 | #include "confdefs.h" | |
8703 | ||
8704 | main(){return(0);} | |
8705 | EOF | |
8706 | if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8707 | ac_cv_prog_cc_works=yes | |
8708 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8709 | if (./conftest; exit) 2>/dev/null; then | |
8710 | ac_cv_prog_cc_cross=no | |
8711 | else | |
8712 | ac_cv_prog_cc_cross=yes | |
8713 | fi | |
8714 | else | |
8715 | echo "configure: failed program was:" >&5 | |
8716 | cat conftest.$ac_ext >&5 | |
8717 | ac_cv_prog_cc_works=no | |
8718 | fi | |
8719 | rm -fr conftest* | |
8720 | ac_ext=c | |
8721 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8722 | ac_cpp='$CPP $CPPFLAGS' | |
8723 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8724 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8725 | cross_compiling=$ac_cv_prog_cc_cross | |
8726 | ||
8727 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8728 | if test $ac_cv_prog_cc_works = no; then | |
8729 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8730 | fi | |
8731 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8732 | echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
8733 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
8734 | cross_compiling=$ac_cv_prog_cc_cross | |
8735 | ||
8736 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
8737 | echo "configure:8738: checking whether we are using GNU C" >&5 | |
8738 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
8739 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8740 | else | |
8741 | cat > conftest.c <<EOF | |
8742 | #ifdef __GNUC__ | |
8743 | yes; | |
8744 | #endif | |
8745 | EOF | |
8746 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
8747 | ac_cv_prog_gcc=yes | |
8748 | else | |
8749 | ac_cv_prog_gcc=no | |
8750 | fi | |
8751 | fi | |
8752 | ||
8753 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
8754 | ||
8755 | if test $ac_cv_prog_gcc = yes; then | |
8756 | GCC=yes | |
8757 | else | |
8758 | GCC= | |
8759 | fi | |
8760 | ||
8761 | ac_test_CFLAGS="${CFLAGS+set}" | |
8762 | ac_save_CFLAGS="$CFLAGS" | |
8763 | CFLAGS= | |
8764 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8765 | echo "configure:8766: checking whether ${CC-cc} accepts -g" >&5 | |
8766 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
8767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8768 | else | |
8769 | echo 'void f(){}' > conftest.c | |
8770 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
8771 | ac_cv_prog_cc_g=yes | |
8772 | else | |
8773 | ac_cv_prog_cc_g=no | |
8774 | fi | |
8775 | rm -f conftest* | |
8776 | ||
8777 | fi | |
8778 | ||
8779 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
8780 | if test "$ac_test_CFLAGS" = set; then | |
8781 | CFLAGS="$ac_save_CFLAGS" | |
8782 | elif test $ac_cv_prog_cc_g = yes; then | |
8783 | if test "$GCC" = yes; then | |
8784 | CFLAGS="-g -O2" | |
8785 | else | |
8786 | CFLAGS="-g" | |
8787 | fi | |
8788 | else | |
8789 | if test "$GCC" = yes; then | |
8790 | CFLAGS="-O2" | |
8791 | else | |
8792 | CFLAGS= | |
8793 | fi | |
8794 | fi | |
8795 | ||
8796 | ||
8797 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
8798 | echo "configure:8799: checking how to run the C preprocessor" >&5 | |
8799 | # On Suns, sometimes $CPP names a directory. | |
8800 | if test -n "$CPP" && test -d "$CPP"; then | |
8801 | CPP= | |
8802 | fi | |
8803 | if test -z "$CPP"; then | |
8804 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
8805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8806 | else | |
8807 | # This must be in double quotes, not single quotes, because CPP may get | |
8808 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8809 | CPP="${CC-cc} -E" | |
8810 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8811 | # not just through cpp. | |
8812 | cat > conftest.$ac_ext <<EOF | |
8813 | #line 8814 "configure" | |
8814 | #include "confdefs.h" | |
8815 | #include <assert.h> | |
8816 | Syntax Error | |
8817 | EOF | |
8818 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8819 | { (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8820 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8821 | if test -z "$ac_err"; then | |
8822 | : | |
8823 | else | |
8824 | echo "$ac_err" >&5 | |
8825 | echo "configure: failed program was:" >&5 | |
8826 | cat conftest.$ac_ext >&5 | |
8827 | rm -rf conftest* | |
8828 | CPP="${CC-cc} -E -traditional-cpp" | |
8829 | cat > conftest.$ac_ext <<EOF | |
8830 | #line 8831 "configure" | |
8831 | #include "confdefs.h" | |
8832 | #include <assert.h> | |
8833 | Syntax Error | |
8834 | EOF | |
8835 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8836 | { (eval echo configure:8837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8837 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8838 | if test -z "$ac_err"; then | |
8839 | : | |
8840 | else | |
8841 | echo "$ac_err" >&5 | |
8842 | echo "configure: failed program was:" >&5 | |
8843 | cat conftest.$ac_ext >&5 | |
8844 | rm -rf conftest* | |
8845 | CPP="${CC-cc} -nologo -E" | |
8846 | cat > conftest.$ac_ext <<EOF | |
8847 | #line 8848 "configure" | |
8848 | #include "confdefs.h" | |
8849 | #include <assert.h> | |
8850 | Syntax Error | |
8851 | EOF | |
8852 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8853 | { (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8854 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8855 | if test -z "$ac_err"; then | |
8856 | : | |
8857 | else | |
8858 | echo "$ac_err" >&5 | |
8859 | echo "configure: failed program was:" >&5 | |
8860 | cat conftest.$ac_ext >&5 | |
8861 | rm -rf conftest* | |
8862 | CPP=/lib/cpp | |
8863 | fi | |
8864 | rm -f conftest* | |
8865 | fi | |
8866 | rm -f conftest* | |
8867 | fi | |
8868 | rm -f conftest* | |
8869 | ac_cv_prog_CPP="$CPP" | |
8870 | fi | |
8871 | CPP="$ac_cv_prog_CPP" | |
8872 | else | |
8873 | ac_cv_prog_CPP="$CPP" | |
8874 | fi | |
8875 | echo "$ac_t""$CPP" 1>&6 | |
8876 | ||
8877 | if test $ac_cv_prog_gcc = yes; then | |
8878 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8879 | echo "configure:8880: checking whether ${CC-cc} needs -traditional" >&5 | |
8880 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
8881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8882 | else | |
8883 | ac_pattern="Autoconf.*'x'" | |
8884 | cat > conftest.$ac_ext <<EOF | |
8885 | #line 8886 "configure" | |
8886 | #include "confdefs.h" | |
8887 | #include <sgtty.h> | |
8888 | Autoconf TIOCGETP | |
8889 | EOF | |
8890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8891 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8892 | rm -rf conftest* | |
8893 | ac_cv_prog_gcc_traditional=yes | |
8894 | else | |
8895 | rm -rf conftest* | |
8896 | ac_cv_prog_gcc_traditional=no | |
8897 | fi | |
8898 | rm -f conftest* | |
8899 | ||
8900 | ||
8901 | if test $ac_cv_prog_gcc_traditional = no; then | |
8902 | cat > conftest.$ac_ext <<EOF | |
8903 | #line 8904 "configure" | |
8904 | #include "confdefs.h" | |
8905 | #include <termio.h> | |
8906 | Autoconf TCGETA | |
8907 | EOF | |
8908 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8909 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8910 | rm -rf conftest* | |
8911 | ac_cv_prog_gcc_traditional=yes | |
8912 | fi | |
8913 | rm -f conftest* | |
8914 | ||
8915 | fi | |
8916 | fi | |
8917 | ||
8918 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
8919 | if test $ac_cv_prog_gcc_traditional = yes; then | |
8920 | CC="$CC -traditional" | |
8921 | fi | |
8922 | fi | |
8923 | ||
8924 | ||
8925 | ||
8926 | ac_ext=C | |
8927 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8928 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8929 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8930 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8931 | cross_compiling=$ac_cv_prog_cxx_cross | |
8932 | ||
8933 | ||
8934 | CXXFLAGS=${CXXFLAGS:=} | |
8935 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8936 | do | |
8937 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8938 | set dummy $ac_prog; ac_word=$2 | |
8939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8940 | echo "configure:8941: checking for $ac_word" >&5 | |
8941 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
8942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8943 | else | |
8944 | if test -n "$CXX"; then | |
8945 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8946 | else | |
8947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8948 | ac_dummy="$PATH" | |
8949 | for ac_dir in $ac_dummy; do | |
8950 | test -z "$ac_dir" && ac_dir=. | |
8951 | if test -f $ac_dir/$ac_word; then | |
8952 | ac_cv_prog_CXX="$ac_prog" | |
8953 | break | |
8954 | fi | |
8955 | done | |
8956 | IFS="$ac_save_ifs" | |
8957 | fi | |
8958 | fi | |
8959 | CXX="$ac_cv_prog_CXX" | |
8960 | if test -n "$CXX"; then | |
8961 | echo "$ac_t""$CXX" 1>&6 | |
8962 | else | |
8963 | echo "$ac_t""no" 1>&6 | |
8964 | fi | |
8965 | ||
8966 | test -n "$CXX" && break | |
8967 | done | |
8968 | test -n "$CXX" || CXX="gcc" | |
8969 | ||
8970 | ||
8971 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8972 | echo "configure:8973: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
8973 | ||
8974 | ac_ext=C | |
8975 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8977 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8978 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8979 | cross_compiling=$ac_cv_prog_cxx_cross | |
8980 | ||
8981 | cat > conftest.$ac_ext << EOF | |
8982 | ||
8983 | #line 8984 "configure" | |
8984 | #include "confdefs.h" | |
8985 | ||
8986 | int main(){return(0);} | |
8987 | EOF | |
8988 | if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8989 | ac_cv_prog_cxx_works=yes | |
8990 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8991 | if (./conftest; exit) 2>/dev/null; then | |
8992 | ac_cv_prog_cxx_cross=no | |
8993 | else | |
8994 | ac_cv_prog_cxx_cross=yes | |
8995 | fi | |
8996 | else | |
8997 | echo "configure: failed program was:" >&5 | |
8998 | cat conftest.$ac_ext >&5 | |
8999 | ac_cv_prog_cxx_works=no | |
9000 | fi | |
9001 | rm -fr conftest* | |
9002 | ac_ext=C | |
9003 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9004 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9005 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9006 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9007 | cross_compiling=$ac_cv_prog_cxx_cross | |
9008 | ||
9009 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9010 | if test $ac_cv_prog_cxx_works = no; then | |
9011 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9012 | fi | |
9013 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9014 | echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
9015 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
9016 | cross_compiling=$ac_cv_prog_cxx_cross | |
9017 | ||
9018 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
9019 | echo "configure:9020: checking whether we are using GNU C++" >&5 | |
9020 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
9021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9022 | else | |
9023 | cat > conftest.C <<EOF | |
9024 | #ifdef __GNUC__ | |
9025 | yes; | |
9026 | #endif | |
9027 | EOF | |
9028 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
9029 | ac_cv_prog_gxx=yes | |
9030 | else | |
9031 | ac_cv_prog_gxx=no | |
9032 | fi | |
9033 | fi | |
9034 | ||
9035 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
9036 | ||
9037 | if test $ac_cv_prog_gxx = yes; then | |
9038 | GXX=yes | |
9039 | else | |
9040 | GXX= | |
9041 | fi | |
9042 | ||
9043 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
9044 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9045 | CXXFLAGS= | |
9046 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9047 | echo "configure:9048: checking whether ${CXX-g++} accepts -g" >&5 | |
9048 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
9049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9050 | else | |
9051 | echo 'void f(){}' > conftest.cc | |
9052 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
9053 | ac_cv_prog_cxx_g=yes | |
9054 | else | |
9055 | ac_cv_prog_cxx_g=no | |
9056 | fi | |
9057 | rm -f conftest* | |
9058 | ||
9059 | fi | |
9060 | ||
9061 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
9062 | if test "$ac_test_CXXFLAGS" = set; then | |
9063 | CXXFLAGS="$ac_save_CXXFLAGS" | |
9064 | elif test $ac_cv_prog_cxx_g = yes; then | |
9065 | if test "$GXX" = yes; then | |
9066 | CXXFLAGS="-g -O2" | |
9067 | else | |
9068 | CXXFLAGS="-g" | |
9069 | fi | |
9070 | else | |
9071 | if test "$GXX" = yes; then | |
9072 | CXXFLAGS="-O2" | |
9073 | else | |
9074 | CXXFLAGS= | |
9075 | fi | |
9076 | fi | |
9077 | ||
9078 | ||
9079 | ac_ext=c | |
9080 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9081 | ac_cpp='$CPP $CPPFLAGS' | |
9082 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9083 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9084 | cross_compiling=$ac_cv_prog_cc_cross | |
9085 | ||
9086 | ||
9087 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9088 | set dummy ranlib; ac_word=$2 | |
9089 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9090 | echo "configure:9091: checking for $ac_word" >&5 | |
9091 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
9092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9093 | else | |
9094 | if test -n "$RANLIB"; then | |
9095 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9096 | else | |
9097 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9098 | ac_dummy="$PATH" | |
9099 | for ac_dir in $ac_dummy; do | |
9100 | test -z "$ac_dir" && ac_dir=. | |
9101 | if test -f $ac_dir/$ac_word; then | |
9102 | ac_cv_prog_RANLIB="ranlib" | |
9103 | break | |
9104 | fi | |
9105 | done | |
9106 | IFS="$ac_save_ifs" | |
9107 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
9108 | fi | |
9109 | fi | |
9110 | RANLIB="$ac_cv_prog_RANLIB" | |
9111 | if test -n "$RANLIB"; then | |
9112 | echo "$ac_t""$RANLIB" 1>&6 | |
9113 | else | |
9114 | echo "$ac_t""no" 1>&6 | |
9115 | fi | |
9116 | ||
9117 | ||
9118 | # Extract the first word of "ar", so it can be a program name with args. | |
9119 | set dummy ar; ac_word=$2 | |
9120 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9121 | echo "configure:9122: checking for $ac_word" >&5 | |
9122 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
9123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9124 | else | |
9125 | if test -n "$AR"; then | |
9126 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9127 | else | |
9128 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9129 | ac_dummy="$PATH" | |
9130 | for ac_dir in $ac_dummy; do | |
9131 | test -z "$ac_dir" && ac_dir=. | |
9132 | if test -f $ac_dir/$ac_word; then | |
9133 | ac_cv_prog_AR="ar" | |
9134 | break | |
9135 | fi | |
9136 | done | |
9137 | IFS="$ac_save_ifs" | |
9138 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
9139 | fi | |
9140 | fi | |
9141 | AR="$ac_cv_prog_AR" | |
9142 | if test -n "$AR"; then | |
9143 | echo "$ac_t""$AR" 1>&6 | |
9144 | else | |
9145 | echo "$ac_t""no" 1>&6 | |
9146 | fi | |
9147 | ||
9148 | ||
9149 | # Find a good install program. We prefer a C program (faster), | |
9150 | # so one script is as good as another. But avoid the broken or | |
9151 | # incompatible versions: | |
9152 | # SysV /etc/install, /usr/sbin/install | |
9153 | # SunOS /usr/etc/install | |
9154 | # IRIX /sbin/install | |
9155 | # AIX /bin/install | |
9156 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9157 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9158 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9159 | # ./install, which can be erroneously created by make from ./install.sh. | |
9160 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
9161 | echo "configure:9162: checking for a BSD compatible install" >&5 | |
9162 | if test -z "$INSTALL"; then | |
9163 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
9164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9165 | else | |
9166 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9167 | for ac_dir in $PATH; do | |
9168 | # Account for people who put trailing slashes in PATH elements. | |
9169 | case "$ac_dir/" in | |
9170 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9171 | *) | |
9172 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9173 | # Don't use installbsd from OSF since it installs stuff as root | |
9174 | # by default. | |
9175 | for ac_prog in ginstall scoinst install; do | |
9176 | if test -f $ac_dir/$ac_prog; then | |
9177 | if test $ac_prog = install && | |
9178 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9179 | # AIX install. It has an incompatible calling convention. | |
9180 | : | |
9181 | else | |
9182 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9183 | break 2 | |
9184 | fi | |
9185 | fi | |
9186 | done | |
9187 | ;; | |
9188 | esac | |
9189 | done | |
9190 | IFS="$ac_save_IFS" | |
9191 | ||
9192 | fi | |
9193 | if test "${ac_cv_path_install+set}" = set; then | |
9194 | INSTALL="$ac_cv_path_install" | |
9195 | else | |
9196 | # As a last resort, use the slow shell script. We don't cache a | |
9197 | # path for INSTALL within a source directory, because that will | |
9198 | # break other packages using the cache if that directory is | |
9199 | # removed, or if the path is relative. | |
9200 | INSTALL="$ac_install_sh" | |
9201 | fi | |
9202 | fi | |
9203 | echo "$ac_t""$INSTALL" 1>&6 | |
9204 | ||
9205 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9206 | # It thinks the first close brace ends the variable substitution. | |
9207 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9208 | ||
9209 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
9210 | ||
9211 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9212 | ||
9213 | case "${host}" in | |
9214 | ||
9215 | powerpc-*-darwin* ) | |
9216 | INSTALL_PROGRAM="cp -fp" | |
9217 | INSTALL_DATA="cp -fp" | |
9218 | ;; | |
9219 | *) | |
9220 | ;; | |
9221 | esac | |
9222 | ||
9223 | # Extract the first word of "strip", so it can be a program name with args. | |
9224 | set dummy strip; ac_word=$2 | |
9225 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9226 | echo "configure:9227: checking for $ac_word" >&5 | |
9227 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
9228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9229 | else | |
9230 | if test -n "$STRIP"; then | |
9231 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9232 | else | |
9233 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9234 | ac_dummy="$PATH" | |
9235 | for ac_dir in $ac_dummy; do | |
9236 | test -z "$ac_dir" && ac_dir=. | |
9237 | if test -f $ac_dir/$ac_word; then | |
9238 | ac_cv_prog_STRIP="strip" | |
9239 | break | |
9240 | fi | |
9241 | done | |
9242 | IFS="$ac_save_ifs" | |
9243 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
9244 | fi | |
9245 | fi | |
9246 | STRIP="$ac_cv_prog_STRIP" | |
9247 | if test -n "$STRIP"; then | |
9248 | echo "$ac_t""$STRIP" 1>&6 | |
9249 | else | |
9250 | echo "$ac_t""no" 1>&6 | |
9251 | fi | |
9252 | ||
9253 | ||
9254 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 | |
9255 | echo "configure:9256: checking if make is GNU make" >&5 | |
9256 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then | |
9257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9258 | else | |
9259 | ||
9260 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9261 | egrep -s GNU > /dev/null); then | |
9262 | wx_cv_prog_makeisgnu="yes" | |
9263 | else | |
9264 | wx_cv_prog_makeisgnu="no" | |
9265 | fi | |
9266 | ||
9267 | fi | |
9268 | ||
9269 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9270 | ||
9271 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9272 | IF_GNU_MAKE="" | |
9273 | else | |
9274 | IF_GNU_MAKE="#" | |
9275 | fi | |
9276 | ||
9277 | ||
9278 | ||
9279 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
9280 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 | |
9281 | echo "configure:9282: checking if make supports VPATH" >&5 | |
9282 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then | |
9283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9284 | else | |
9285 | ||
9286 | cat - << EOF > confMake | |
9287 | check : file | |
9288 | cp \$? \$@ | |
9289 | cp \$? final_file | |
9290 | EOF | |
9291 | ||
9292 | if test ! -d sub ; then | |
9293 | mkdir sub | |
9294 | fi | |
9295 | echo dummy > sub/file | |
9296 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
9297 | RESULT=$? | |
9298 | rm -f sub/file check final_file confMake | |
9299 | rmdir sub | |
9300 | if test "$RESULT" = 0; then | |
9301 | wx_cv_prog_makevpath="yes" | |
9302 | else | |
9303 | wx_cv_prog_makevpath="no" | |
9304 | fi | |
9305 | ||
9306 | fi | |
9307 | ||
9308 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9309 | ||
9310 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9311 | { echo "configure: error: | |
9312 | You need a make-utility that is able to use the variable | |
9313 | VPATH correctly. | |
9314 | If your version of make does not support VPATH correctly, | |
9315 | please install GNU-make (possibly as gmake), and start | |
9316 | configure with the following command: | |
9317 | export MAKE=gmake; ./configure for sh-type shells | |
9318 | setenv MAKE gmake; ./configure for csh-type shells | |
9319 | Also please do remember to use gmake in this case every time | |
9320 | you are trying to compile. | |
9321 | " 1>&2; exit 1; } | |
9322 | fi fi | |
9323 | for ac_prog in 'bison -y' byacc | |
9324 | do | |
9325 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9326 | set dummy $ac_prog; ac_word=$2 | |
9327 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9328 | echo "configure:9329: checking for $ac_word" >&5 | |
9329 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
9330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9331 | else | |
9332 | if test -n "$YACC"; then | |
9333 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9334 | else | |
9335 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9336 | ac_dummy="$PATH" | |
9337 | for ac_dir in $ac_dummy; do | |
9338 | test -z "$ac_dir" && ac_dir=. | |
9339 | if test -f $ac_dir/$ac_word; then | |
9340 | ac_cv_prog_YACC="$ac_prog" | |
9341 | break | |
9342 | fi | |
9343 | done | |
9344 | IFS="$ac_save_ifs" | |
9345 | fi | |
9346 | fi | |
9347 | YACC="$ac_cv_prog_YACC" | |
9348 | if test -n "$YACC"; then | |
9349 | echo "$ac_t""$YACC" 1>&6 | |
9350 | else | |
9351 | echo "$ac_t""no" 1>&6 | |
9352 | fi | |
9353 | ||
9354 | test -n "$YACC" && break | |
9355 | done | |
9356 | test -n "$YACC" || YACC="yacc" | |
9357 | ||
9358 | ||
9359 | # Extract the first word of "flex", so it can be a program name with args. | |
9360 | set dummy flex; ac_word=$2 | |
9361 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9362 | echo "configure:9363: checking for $ac_word" >&5 | |
9363 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
9364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9365 | else | |
9366 | if test -n "$LEX"; then | |
9367 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9368 | else | |
9369 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9370 | ac_dummy="$PATH" | |
9371 | for ac_dir in $ac_dummy; do | |
9372 | test -z "$ac_dir" && ac_dir=. | |
9373 | if test -f $ac_dir/$ac_word; then | |
9374 | ac_cv_prog_LEX="flex" | |
9375 | break | |
9376 | fi | |
9377 | done | |
9378 | IFS="$ac_save_ifs" | |
9379 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
9380 | fi | |
9381 | fi | |
9382 | LEX="$ac_cv_prog_LEX" | |
9383 | if test -n "$LEX"; then | |
9384 | echo "$ac_t""$LEX" 1>&6 | |
9385 | else | |
9386 | echo "$ac_t""no" 1>&6 | |
9387 | fi | |
9388 | ||
9389 | if test -z "$LEXLIB" | |
9390 | then | |
9391 | case "$LEX" in | |
9392 | flex*) ac_lib=fl ;; | |
9393 | *) ac_lib=l ;; | |
9394 | esac | |
9395 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9396 | echo "configure:9397: checking for yywrap in -l$ac_lib" >&5 | |
9397 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
9398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9400 | else | |
9401 | ac_save_LIBS="$LIBS" | |
9402 | LIBS="-l$ac_lib $LIBS" | |
9403 | cat > conftest.$ac_ext <<EOF | |
9404 | #line 9405 "configure" | |
9405 | #include "confdefs.h" | |
9406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9407 | /* We use char because int might match the return type of a gcc2 | |
9408 | builtin and then its argument prototype would still apply. */ | |
9409 | char yywrap(); | |
9410 | ||
9411 | int main() { | |
9412 | yywrap() | |
9413 | ; return 0; } | |
9414 | EOF | |
9415 | if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9416 | rm -rf conftest* | |
9417 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9418 | else | |
9419 | echo "configure: failed program was:" >&5 | |
9420 | cat conftest.$ac_ext >&5 | |
9421 | rm -rf conftest* | |
9422 | eval "ac_cv_lib_$ac_lib_var=no" | |
9423 | fi | |
9424 | rm -f conftest* | |
9425 | LIBS="$ac_save_LIBS" | |
9426 | ||
9427 | fi | |
9428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9429 | echo "$ac_t""yes" 1>&6 | |
9430 | LEXLIB="-l$ac_lib" | |
9431 | else | |
9432 | echo "$ac_t""no" 1>&6 | |
9433 | fi | |
9434 | ||
9435 | fi | |
9436 | ||
9437 | ||
9438 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
9439 | echo "configure:9440: checking whether ln -s works" >&5 | |
9440 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
9441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9442 | else | |
9443 | rm -f conftestdata | |
9444 | if ln -s X conftestdata 2>/dev/null | |
9445 | then | |
9446 | rm -f conftestdata | |
9447 | ac_cv_prog_LN_S="ln -s" | |
9448 | else | |
9449 | ac_cv_prog_LN_S=ln | |
9450 | fi | |
9451 | fi | |
9452 | LN_S="$ac_cv_prog_LN_S" | |
9453 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9454 | echo "$ac_t""yes" 1>&6 | |
9455 | else | |
9456 | echo "$ac_t""no" 1>&6 | |
9457 | fi | |
9458 | ||
9459 | ||
9460 | ||
9461 | SEARCH_INCLUDE="\ | |
9462 | /usr/local/include \ | |
9463 | \ | |
9464 | /usr/Motif-1.2/include \ | |
9465 | /usr/Motif-2.1/include \ | |
9466 | \ | |
9467 | /usr/include/Motif1.2 \ | |
9468 | /opt/xpm/include/X11 \ | |
9469 | /opt/GBxpm/include/ \ | |
9470 | /opt/GBxpm/X11/include/ \ | |
9471 | \ | |
9472 | /usr/Motif1.2/include \ | |
9473 | /usr/dt/include \ | |
9474 | /usr/openwin/include \ | |
9475 | \ | |
9476 | /usr/include/Xm \ | |
9477 | \ | |
9478 | /usr/X11R6/include \ | |
9479 | /usr/X11R6.4/include \ | |
9480 | /usr/X11R5/include \ | |
9481 | /usr/X11R4/include \ | |
9482 | \ | |
9483 | /usr/include/X11R6 \ | |
9484 | /usr/include/X11R5 \ | |
9485 | /usr/include/X11R4 \ | |
9486 | \ | |
9487 | /usr/local/X11R6/include \ | |
9488 | /usr/local/X11R5/include \ | |
9489 | /usr/local/X11R4/include \ | |
9490 | \ | |
9491 | /usr/local/include/X11R6 \ | |
9492 | /usr/local/include/X11R5 \ | |
9493 | /usr/local/include/X11R4 \ | |
9494 | \ | |
9495 | /usr/X11/include \ | |
9496 | /usr/include/X11 \ | |
9497 | /usr/local/X11/include \ | |
9498 | /usr/local/include/X11 \ | |
9499 | \ | |
9500 | /usr/X386/include \ | |
9501 | /usr/x386/include \ | |
9502 | /usr/XFree86/include/X11 \ | |
9503 | \ | |
9504 | X:/XFree86/include \ | |
9505 | X:/XFree86/include/X11 \ | |
9506 | \ | |
9507 | /usr/include/gtk \ | |
9508 | /usr/local/include/gtk \ | |
9509 | /usr/include/glib \ | |
9510 | /usr/local/include/glib \ | |
9511 | \ | |
9512 | /usr/include/qt \ | |
9513 | /usr/local/include/qt \ | |
9514 | \ | |
9515 | /usr/include/windows \ | |
9516 | /usr/include/wine \ | |
9517 | /usr/local/include/wine \ | |
9518 | \ | |
9519 | /usr/unsupported/include \ | |
9520 | /usr/athena/include \ | |
9521 | /usr/local/x11r5/include \ | |
9522 | /usr/lpp/Xamples/include \ | |
9523 | \ | |
9524 | /usr/openwin/share/include \ | |
9525 | \ | |
9526 | /usr/include" | |
9527 | ||
9528 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9529 | ||
9530 | ||
9531 | cat > confcache <<\EOF | |
9532 | # This file is a shell script that caches the results of configure | |
9533 | # tests run on this system so they can be shared between configure | |
9534 | # scripts and configure runs. It is not useful on other systems. | |
9535 | # If it contains results you don't want to keep, you may remove or edit it. | |
9536 | # | |
9537 | # By default, configure uses ./config.cache as the cache file, | |
9538 | # creating it if it does not exist already. You can give configure | |
9539 | # the --cache-file=FILE option to use a different cache file; that is | |
9540 | # what configure does when it calls configure scripts in | |
9541 | # subdirectories, so they share the cache. | |
9542 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9543 | # config.status only pays attention to the cache file if you give it the | |
9544 | # --recheck option to rerun configure. | |
9545 | # | |
9546 | EOF | |
9547 | # The following way of writing the cache mishandles newlines in values, | |
9548 | # but we know of no workaround that is simple, portable, and efficient. | |
9549 | # So, don't put newlines in cache variables' values. | |
9550 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9551 | # and sets the high bit in the cache file unless we assign to the vars. | |
9552 | (set) 2>&1 | | |
9553 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9554 | *ac_space=\ *) | |
9555 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9556 | # turns \\\\ into \\, and sed turns \\ into \). | |
9557 | sed -n \ | |
9558 | -e "s/'/'\\\\''/g" \ | |
9559 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9560 | ;; | |
9561 | *) | |
9562 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9563 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9564 | ;; | |
9565 | esac >> confcache | |
9566 | if cmp -s $cache_file confcache; then | |
9567 | : | |
9568 | else | |
9569 | if test -w $cache_file; then | |
9570 | echo "updating cache $cache_file" | |
9571 | cat confcache > $cache_file | |
9572 | else | |
9573 | echo "not updating unwritable cache $cache_file" | |
9574 | fi | |
9575 | fi | |
9576 | rm -f confcache | |
9577 | ||
9578 | ||
9579 | if test "$USE_LINUX" = 1; then | |
9580 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
9581 | echo "configure:9582: checking for glibc 2.1 or later" >&5 | |
9582 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then | |
9583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9584 | else | |
9585 | ||
9586 | cat > conftest.$ac_ext <<EOF | |
9587 | #line 9588 "configure" | |
9588 | #include "confdefs.h" | |
9589 | #include <features.h> | |
9590 | int main() { | |
9591 | ||
9592 | #if !__GLIBC_PREREQ(2, 1) | |
9593 | #error not glibc2.1 | |
9594 | #endif | |
9595 | ||
9596 | ; return 0; } | |
9597 | EOF | |
9598 | if { (eval echo configure:9599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9599 | rm -rf conftest* | |
9600 | ||
9601 | wx_cv_lib_glibc21=yes | |
9602 | ||
9603 | else | |
9604 | echo "configure: failed program was:" >&5 | |
9605 | cat conftest.$ac_ext >&5 | |
9606 | rm -rf conftest* | |
9607 | ||
9608 | wx_cv_lib_glibc21=no | |
9609 | ||
9610 | ||
9611 | fi | |
9612 | rm -f conftest* | |
9613 | ||
9614 | fi | |
9615 | ||
9616 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
9617 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
9618 | cat >> confdefs.h <<\EOF | |
9619 | #define wxHAVE_GLIBC2 1 | |
9620 | EOF | |
9621 | ||
9622 | fi | |
9623 | fi | |
9624 | ||
9625 | ||
9626 | ||
9627 | REGEX_INCLUDE= | |
9628 | if test "$wxUSE_REGEX" != "no"; then | |
9629 | cat >> confdefs.h <<\EOF | |
9630 | #define wxUSE_REGEX 1 | |
9631 | EOF | |
9632 | ||
9633 | ||
9634 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9635 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
9636 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
9637 | echo "configure:9638: checking for regex.h" >&5 | |
9638 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9640 | else | |
9641 | cat > conftest.$ac_ext <<EOF | |
9642 | #line 9643 "configure" | |
9643 | #include "confdefs.h" | |
9644 | #include <regex.h> | |
9645 | EOF | |
9646 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9647 | { (eval echo configure:9648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9648 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9649 | if test -z "$ac_err"; then | |
9650 | rm -rf conftest* | |
9651 | eval "ac_cv_header_$ac_safe=yes" | |
9652 | else | |
9653 | echo "$ac_err" >&5 | |
9654 | echo "configure: failed program was:" >&5 | |
9655 | cat conftest.$ac_ext >&5 | |
9656 | rm -rf conftest* | |
9657 | eval "ac_cv_header_$ac_safe=no" | |
9658 | fi | |
9659 | rm -f conftest* | |
9660 | fi | |
9661 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9662 | echo "$ac_t""yes" 1>&6 | |
9663 | for ac_func in regcomp | |
9664 | do | |
9665 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9666 | echo "configure:9667: checking for $ac_func" >&5 | |
9667 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9669 | else | |
9670 | cat > conftest.$ac_ext <<EOF | |
9671 | #line 9672 "configure" | |
9672 | #include "confdefs.h" | |
9673 | /* System header to define __stub macros and hopefully few prototypes, | |
9674 | which can conflict with char $ac_func(); below. */ | |
9675 | #include <assert.h> | |
9676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9677 | /* We use char because int might match the return type of a gcc2 | |
9678 | builtin and then its argument prototype would still apply. */ | |
9679 | char $ac_func(); | |
9680 | ||
9681 | int main() { | |
9682 | ||
9683 | /* The GNU C library defines this for functions which it implements | |
9684 | to always fail with ENOSYS. Some functions are actually named | |
9685 | something starting with __ and the normal name is an alias. */ | |
9686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9687 | choke me | |
9688 | #else | |
9689 | $ac_func(); | |
9690 | #endif | |
9691 | ||
9692 | ; return 0; } | |
9693 | EOF | |
9694 | if { (eval echo configure:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9695 | rm -rf conftest* | |
9696 | eval "ac_cv_func_$ac_func=yes" | |
9697 | else | |
9698 | echo "configure: failed program was:" >&5 | |
9699 | cat conftest.$ac_ext >&5 | |
9700 | rm -rf conftest* | |
9701 | eval "ac_cv_func_$ac_func=no" | |
9702 | fi | |
9703 | rm -f conftest* | |
9704 | fi | |
9705 | ||
9706 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9707 | echo "$ac_t""yes" 1>&6 | |
9708 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9709 | cat >> confdefs.h <<EOF | |
9710 | #define $ac_tr_func 1 | |
9711 | EOF | |
9712 | ||
9713 | else | |
9714 | echo "$ac_t""no" 1>&6 | |
9715 | fi | |
9716 | done | |
9717 | ||
9718 | else | |
9719 | echo "$ac_t""no" 1>&6 | |
9720 | fi | |
9721 | ||
9722 | ||
9723 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
9724 | if test "$wxUSE_REGEX" = "sys" ; then | |
9725 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9726 | else | |
9727 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
9728 | wxUSE_REGEX=builtin | |
9729 | fi | |
9730 | else | |
9731 | wxUSE_REGEX=sys | |
9732 | fi | |
9733 | fi | |
9734 | ||
9735 | if test "$wxUSE_REGEX" = "builtin" ; then | |
9736 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9737 | fi | |
9738 | fi | |
9739 | ||
9740 | ||
9741 | ZLIB_INCLUDE= | |
9742 | ZLIB_LINK= | |
9743 | if test "$wxUSE_ZLIB" != "no" ; then | |
9744 | cat >> confdefs.h <<\EOF | |
9745 | #define wxUSE_ZLIB 1 | |
9746 | EOF | |
9747 | ||
9748 | ||
9749 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
9750 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9751 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
9752 | echo "configure:9753: checking for zlib.h" >&5 | |
9753 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9755 | else | |
9756 | cat > conftest.$ac_ext <<EOF | |
9757 | #line 9758 "configure" | |
9758 | #include "confdefs.h" | |
9759 | #include <zlib.h> | |
9760 | EOF | |
9761 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9762 | { (eval echo configure:9763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9763 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9764 | if test -z "$ac_err"; then | |
9765 | rm -rf conftest* | |
9766 | eval "ac_cv_header_$ac_safe=yes" | |
9767 | else | |
9768 | echo "$ac_err" >&5 | |
9769 | echo "configure: failed program was:" >&5 | |
9770 | cat conftest.$ac_ext >&5 | |
9771 | rm -rf conftest* | |
9772 | eval "ac_cv_header_$ac_safe=no" | |
9773 | fi | |
9774 | rm -f conftest* | |
9775 | fi | |
9776 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9777 | echo "$ac_t""yes" 1>&6 | |
9778 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
9779 | echo "configure:9780: checking for deflate in -lz" >&5 | |
9780 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
9781 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9783 | else | |
9784 | ac_save_LIBS="$LIBS" | |
9785 | LIBS="-lz $LIBS" | |
9786 | cat > conftest.$ac_ext <<EOF | |
9787 | #line 9788 "configure" | |
9788 | #include "confdefs.h" | |
9789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9790 | /* We use char because int might match the return type of a gcc2 | |
9791 | builtin and then its argument prototype would still apply. */ | |
9792 | char deflate(); | |
9793 | ||
9794 | int main() { | |
9795 | deflate() | |
9796 | ; return 0; } | |
9797 | EOF | |
9798 | if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9799 | rm -rf conftest* | |
9800 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9801 | else | |
9802 | echo "configure: failed program was:" >&5 | |
9803 | cat conftest.$ac_ext >&5 | |
9804 | rm -rf conftest* | |
9805 | eval "ac_cv_lib_$ac_lib_var=no" | |
9806 | fi | |
9807 | rm -f conftest* | |
9808 | LIBS="$ac_save_LIBS" | |
9809 | ||
9810 | fi | |
9811 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9812 | echo "$ac_t""yes" 1>&6 | |
9813 | ZLIB_LINK=" -lz" | |
9814 | else | |
9815 | echo "$ac_t""no" 1>&6 | |
9816 | fi | |
9817 | ||
9818 | else | |
9819 | echo "$ac_t""no" 1>&6 | |
9820 | fi | |
9821 | ||
9822 | ||
9823 | if test "x$ZLIB_LINK" = "x" ; then | |
9824 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9825 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9826 | else | |
9827 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
9828 | wxUSE_ZLIB=builtin | |
9829 | fi | |
9830 | else | |
9831 | wxUSE_ZLIB=sys | |
9832 | fi | |
9833 | fi | |
9834 | ||
9835 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9836 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9837 | fi | |
9838 | fi | |
9839 | ||
9840 | ||
9841 | PNG_INCLUDE= | |
9842 | PNG_LINK= | |
9843 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9844 | cat >> confdefs.h <<\EOF | |
9845 | #define wxUSE_LIBPNG 1 | |
9846 | EOF | |
9847 | ||
9848 | ||
9849 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9850 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9851 | wxUSE_LIBPNG=sys | |
9852 | fi | |
9853 | ||
9854 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
9855 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
9856 | wxUSE_LIBPNG=builtin | |
9857 | fi | |
9858 | ||
9859 | if test "$wxUSE_MGL" != 1 ; then | |
9860 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9861 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9862 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
9863 | echo "configure:9864: checking for png.h" >&5 | |
9864 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9866 | else | |
9867 | cat > conftest.$ac_ext <<EOF | |
9868 | #line 9869 "configure" | |
9869 | #include "confdefs.h" | |
9870 | #include <png.h> | |
9871 | EOF | |
9872 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9873 | { (eval echo configure:9874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9874 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9875 | if test -z "$ac_err"; then | |
9876 | rm -rf conftest* | |
9877 | eval "ac_cv_header_$ac_safe=yes" | |
9878 | else | |
9879 | echo "$ac_err" >&5 | |
9880 | echo "configure: failed program was:" >&5 | |
9881 | cat conftest.$ac_ext >&5 | |
9882 | rm -rf conftest* | |
9883 | eval "ac_cv_header_$ac_safe=no" | |
9884 | fi | |
9885 | rm -f conftest* | |
9886 | fi | |
9887 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9888 | echo "$ac_t""yes" 1>&6 | |
9889 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
9890 | echo "configure:9891: checking for png_check_sig in -lpng" >&5 | |
9891 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
9892 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9894 | else | |
9895 | ac_save_LIBS="$LIBS" | |
9896 | LIBS="-lpng -lz -lm $LIBS" | |
9897 | cat > conftest.$ac_ext <<EOF | |
9898 | #line 9899 "configure" | |
9899 | #include "confdefs.h" | |
9900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9901 | /* We use char because int might match the return type of a gcc2 | |
9902 | builtin and then its argument prototype would still apply. */ | |
9903 | char png_check_sig(); | |
9904 | ||
9905 | int main() { | |
9906 | png_check_sig() | |
9907 | ; return 0; } | |
9908 | EOF | |
9909 | if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9910 | rm -rf conftest* | |
9911 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9912 | else | |
9913 | echo "configure: failed program was:" >&5 | |
9914 | cat conftest.$ac_ext >&5 | |
9915 | rm -rf conftest* | |
9916 | eval "ac_cv_lib_$ac_lib_var=no" | |
9917 | fi | |
9918 | rm -f conftest* | |
9919 | LIBS="$ac_save_LIBS" | |
9920 | ||
9921 | fi | |
9922 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9923 | echo "$ac_t""yes" 1>&6 | |
9924 | PNG_LINK=" -lpng" | |
9925 | else | |
9926 | echo "$ac_t""no" 1>&6 | |
9927 | fi | |
9928 | ||
9929 | ||
9930 | else | |
9931 | echo "$ac_t""no" 1>&6 | |
9932 | fi | |
9933 | ||
9934 | ||
9935 | if test "x$PNG_LINK" = "x" ; then | |
9936 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9937 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9938 | else | |
9939 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9940 | wxUSE_LIBPNG=builtin | |
9941 | fi | |
9942 | else | |
9943 | wxUSE_LIBPNG=yes | |
9944 | fi | |
9945 | fi | |
9946 | fi | |
9947 | ||
9948 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
9949 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
9950 | fi | |
9951 | ||
9952 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
9953 | fi | |
9954 | ||
9955 | ||
9956 | JPEG_INCLUDE= | |
9957 | JPEG_LINK= | |
9958 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9959 | cat >> confdefs.h <<\EOF | |
9960 | #define wxUSE_LIBJPEG 1 | |
9961 | EOF | |
9962 | ||
9963 | ||
9964 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
9965 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9966 | wxUSE_LIBJPEG=sys | |
9967 | fi | |
9968 | ||
9969 | if test "$wxUSE_MGL" != 1 ; then | |
9970 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9971 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
9972 | echo "configure:9973: checking for jpeglib.h" >&5 | |
9973 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
9974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9975 | else | |
9976 | cat > conftest.$ac_ext <<EOF | |
9977 | #line 9978 "configure" | |
9978 | #include "confdefs.h" | |
9979 | ||
9980 | #undef HAVE_STDLIB_H | |
9981 | #include <stdio.h> | |
9982 | #include <jpeglib.h> | |
9983 | ||
9984 | int main() { | |
9985 | ||
9986 | ||
9987 | ; return 0; } | |
9988 | EOF | |
9989 | if { (eval echo configure:9990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9990 | rm -rf conftest* | |
9991 | ac_cv_header_jpeglib_h=yes | |
9992 | else | |
9993 | echo "configure: failed program was:" >&5 | |
9994 | cat conftest.$ac_ext >&5 | |
9995 | rm -rf conftest* | |
9996 | ac_cv_header_jpeglib_h=no | |
9997 | ||
9998 | fi | |
9999 | rm -f conftest* | |
10000 | ||
10001 | fi | |
10002 | ||
10003 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
10004 | ||
10005 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
10006 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
10007 | echo "configure:10008: checking for jpeg_read_header in -ljpeg" >&5 | |
10008 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
10009 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10011 | else | |
10012 | ac_save_LIBS="$LIBS" | |
10013 | LIBS="-ljpeg $LIBS" | |
10014 | cat > conftest.$ac_ext <<EOF | |
10015 | #line 10016 "configure" | |
10016 | #include "confdefs.h" | |
10017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10018 | /* We use char because int might match the return type of a gcc2 | |
10019 | builtin and then its argument prototype would still apply. */ | |
10020 | char jpeg_read_header(); | |
10021 | ||
10022 | int main() { | |
10023 | jpeg_read_header() | |
10024 | ; return 0; } | |
10025 | EOF | |
10026 | if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10027 | rm -rf conftest* | |
10028 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10029 | else | |
10030 | echo "configure: failed program was:" >&5 | |
10031 | cat conftest.$ac_ext >&5 | |
10032 | rm -rf conftest* | |
10033 | eval "ac_cv_lib_$ac_lib_var=no" | |
10034 | fi | |
10035 | rm -f conftest* | |
10036 | LIBS="$ac_save_LIBS" | |
10037 | ||
10038 | fi | |
10039 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10040 | echo "$ac_t""yes" 1>&6 | |
10041 | JPEG_LINK=" -ljpeg" | |
10042 | else | |
10043 | echo "$ac_t""no" 1>&6 | |
10044 | fi | |
10045 | ||
10046 | fi | |
10047 | ||
10048 | if test "x$JPEG_LINK" = "x" ; then | |
10049 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10050 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10051 | else | |
10052 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10053 | wxUSE_LIBJPEG=builtin | |
10054 | fi | |
10055 | else | |
10056 | wxUSE_LIBJPEG=sys | |
10057 | fi | |
10058 | fi | |
10059 | fi | |
10060 | ||
10061 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10062 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10063 | fi | |
10064 | fi | |
10065 | ||
10066 | ||
10067 | TIFF_INCLUDE= | |
10068 | TIFF_LINK= | |
10069 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10070 | cat >> confdefs.h <<\EOF | |
10071 | #define wxUSE_LIBTIFF 1 | |
10072 | EOF | |
10073 | ||
10074 | ||
10075 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10076 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10077 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
10078 | echo "configure:10079: checking for tiffio.h" >&5 | |
10079 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10081 | else | |
10082 | cat > conftest.$ac_ext <<EOF | |
10083 | #line 10084 "configure" | |
10084 | #include "confdefs.h" | |
10085 | #include <tiffio.h> | |
10086 | EOF | |
10087 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10088 | { (eval echo configure:10089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10089 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10090 | if test -z "$ac_err"; then | |
10091 | rm -rf conftest* | |
10092 | eval "ac_cv_header_$ac_safe=yes" | |
10093 | else | |
10094 | echo "$ac_err" >&5 | |
10095 | echo "configure: failed program was:" >&5 | |
10096 | cat conftest.$ac_ext >&5 | |
10097 | rm -rf conftest* | |
10098 | eval "ac_cv_header_$ac_safe=no" | |
10099 | fi | |
10100 | rm -f conftest* | |
10101 | fi | |
10102 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10103 | echo "$ac_t""yes" 1>&6 | |
10104 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
10105 | echo "configure:10106: checking for TIFFError in -ltiff" >&5 | |
10106 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
10107 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10109 | else | |
10110 | ac_save_LIBS="$LIBS" | |
10111 | LIBS="-ltiff -lm $LIBS" | |
10112 | cat > conftest.$ac_ext <<EOF | |
10113 | #line 10114 "configure" | |
10114 | #include "confdefs.h" | |
10115 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10116 | /* We use char because int might match the return type of a gcc2 | |
10117 | builtin and then its argument prototype would still apply. */ | |
10118 | char TIFFError(); | |
10119 | ||
10120 | int main() { | |
10121 | TIFFError() | |
10122 | ; return 0; } | |
10123 | EOF | |
10124 | if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10125 | rm -rf conftest* | |
10126 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10127 | else | |
10128 | echo "configure: failed program was:" >&5 | |
10129 | cat conftest.$ac_ext >&5 | |
10130 | rm -rf conftest* | |
10131 | eval "ac_cv_lib_$ac_lib_var=no" | |
10132 | fi | |
10133 | rm -f conftest* | |
10134 | LIBS="$ac_save_LIBS" | |
10135 | ||
10136 | fi | |
10137 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10138 | echo "$ac_t""yes" 1>&6 | |
10139 | TIFF_LINK=" -ltiff" | |
10140 | else | |
10141 | echo "$ac_t""no" 1>&6 | |
10142 | fi | |
10143 | ||
10144 | ||
10145 | else | |
10146 | echo "$ac_t""no" 1>&6 | |
10147 | fi | |
10148 | ||
10149 | ||
10150 | if test "x$TIFF_LINK" = "x" ; then | |
10151 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10152 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10153 | else | |
10154 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 | |
10155 | wxUSE_LIBTIFF=builtin | |
10156 | fi | |
10157 | else | |
10158 | wxUSE_LIBTIFF=sys | |
10159 | fi | |
10160 | fi | |
10161 | ||
10162 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10163 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10164 | fi | |
10165 | fi | |
10166 | ||
10167 | ||
10168 | AFMINSTALL= | |
10169 | ||
10170 | TOOLKIT= | |
10171 | TOOLKIT_INCLUDE= | |
10172 | WIDGET_SET= | |
10173 | ||
10174 | if test "$USE_WIN32" = 1 ; then | |
10175 | for ac_hdr in w32api.h | |
10176 | do | |
10177 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10178 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10179 | echo "configure:10180: checking for $ac_hdr" >&5 | |
10180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10182 | else | |
10183 | cat > conftest.$ac_ext <<EOF | |
10184 | #line 10185 "configure" | |
10185 | #include "confdefs.h" | |
10186 | #include <$ac_hdr> | |
10187 | EOF | |
10188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10189 | { (eval echo configure:10190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10191 | if test -z "$ac_err"; then | |
10192 | rm -rf conftest* | |
10193 | eval "ac_cv_header_$ac_safe=yes" | |
10194 | else | |
10195 | echo "$ac_err" >&5 | |
10196 | echo "configure: failed program was:" >&5 | |
10197 | cat conftest.$ac_ext >&5 | |
10198 | rm -rf conftest* | |
10199 | eval "ac_cv_header_$ac_safe=no" | |
10200 | fi | |
10201 | rm -f conftest* | |
10202 | fi | |
10203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10204 | echo "$ac_t""yes" 1>&6 | |
10205 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10206 | cat >> confdefs.h <<EOF | |
10207 | #define $ac_tr_hdr 1 | |
10208 | EOF | |
10209 | ||
10210 | else | |
10211 | echo "$ac_t""no" 1>&6 | |
10212 | fi | |
10213 | done | |
10214 | ||
10215 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10216 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
10217 | echo "configure:10218: checking for windows.h" >&5 | |
10218 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10220 | else | |
10221 | cat > conftest.$ac_ext <<EOF | |
10222 | #line 10223 "configure" | |
10223 | #include "confdefs.h" | |
10224 | #include <windows.h> | |
10225 | EOF | |
10226 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10227 | { (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10228 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10229 | if test -z "$ac_err"; then | |
10230 | rm -rf conftest* | |
10231 | eval "ac_cv_header_$ac_safe=yes" | |
10232 | else | |
10233 | echo "$ac_err" >&5 | |
10234 | echo "configure: failed program was:" >&5 | |
10235 | cat conftest.$ac_ext >&5 | |
10236 | rm -rf conftest* | |
10237 | eval "ac_cv_header_$ac_safe=no" | |
10238 | fi | |
10239 | rm -f conftest* | |
10240 | fi | |
10241 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10242 | echo "$ac_t""yes" 1>&6 | |
10243 | : | |
10244 | else | |
10245 | echo "$ac_t""no" 1>&6 | |
10246 | ||
10247 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10248 | ||
10249 | fi | |
10250 | ||
10251 | ||
10252 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
10253 | echo "configure:10254: checking if w32api has good enough MSIE support" >&5 | |
10254 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then | |
10255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10256 | else | |
10257 | ||
10258 | cat > conftest.$ac_ext <<EOF | |
10259 | #line 10260 "configure" | |
10260 | #include "confdefs.h" | |
10261 | #include <w32api.h> | |
10262 | int main() { | |
10263 | ||
10264 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10265 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10266 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10267 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10268 | ||
10269 | #if !wxCHECK_W32API_VERSION(1,1) | |
10270 | #error You need w32api 1.1 or newer | |
10271 | #endif | |
10272 | ||
10273 | ; return 0; } | |
10274 | EOF | |
10275 | if { (eval echo configure:10276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10276 | rm -rf conftest* | |
10277 | ||
10278 | wx_cv_w32api_win32_ie=yes | |
10279 | ||
10280 | else | |
10281 | echo "configure: failed program was:" >&5 | |
10282 | cat conftest.$ac_ext >&5 | |
10283 | rm -rf conftest* | |
10284 | ||
10285 | wx_cv_w32api_win32_ie=no | |
10286 | ||
10287 | fi | |
10288 | rm -f conftest* | |
10289 | ||
10290 | fi | |
10291 | ||
10292 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
10293 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10294 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10295 | fi | |
10296 | ||
10297 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10298 | ||
10299 | case "${host}" in | |
10300 | *-*-cygwin* ) | |
10301 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10302 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10303 | esac | |
10304 | ||
10305 | if test "$wxUSE_ODBC" = "yes" ; then | |
10306 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
10307 | fi | |
10308 | ||
10309 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
10310 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10311 | fi | |
10312 | ||
10313 | if test "$wxUSE_GUI" = "yes"; then | |
10314 | USE_GUI=1 | |
10315 | ||
10316 | GUI_TK_LIBRARY= | |
10317 | ||
10318 | WXGTK12= | |
10319 | WXGTK127= | |
10320 | WXGTK20= | |
10321 | ||
10322 | if test "$wxUSE_MSW" = 1 ; then | |
10323 | TOOLKIT=MSW | |
10324 | GUIDIST=MSW_DIST | |
10325 | ||
10326 | case "${host}" in | |
10327 | *-*-mingw32* ) | |
10328 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
10329 | esac | |
10330 | fi | |
10331 | ||
10332 | if test "$wxUSE_GTK" = 1; then | |
10333 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
10334 | echo "configure:10335: checking for GTK+ version" >&5 | |
10335 | ||
10336 | gtk_version_cached=1 | |
10337 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10339 | else | |
10340 | ||
10341 | gtk_version_cached=0 | |
10342 | echo "$ac_t""" 1>&6 | |
10343 | ||
10344 | GTK_MODULES= | |
10345 | if test "$wxUSE_THREADS" = "yes"; then | |
10346 | GTK_MODULES=gthread | |
10347 | fi | |
10348 | ||
10349 | wx_cv_lib_gtk= | |
10350 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10351 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10352 | if test "${enable_gtktest+set}" = set; then | |
10353 | enableval="$enable_gtktest" | |
10354 | : | |
10355 | else | |
10356 | enable_gtktest=yes | |
10357 | fi | |
10358 | ||
10359 | ||
10360 | pkg_config_args=gtk+-2.0 | |
10361 | for module in . $GTK_MODULES | |
10362 | do | |
10363 | case "$module" in | |
10364 | gthread) | |
10365 | pkg_config_args="$pkg_config_args gthread-2.0" | |
10366 | ;; | |
10367 | esac | |
10368 | done | |
10369 | ||
10370 | no_gtk="" | |
10371 | ||
10372 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10373 | set dummy pkg-config; ac_word=$2 | |
10374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
10375 | echo "configure:10376: checking for $ac_word" >&5 | |
10376 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
10377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10378 | else | |
10379 | case "$PKG_CONFIG" in | |
10380 | /*) | |
10381 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10382 | ;; | |
10383 | ?:/*) | |
10384 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
10385 | ;; | |
10386 | *) | |
10387 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
10388 | ac_dummy="$PATH" | |
10389 | for ac_dir in $ac_dummy; do | |
10390 | test -z "$ac_dir" && ac_dir=. | |
10391 | if test -f $ac_dir/$ac_word; then | |
10392 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
10393 | break | |
10394 | fi | |
10395 | done | |
10396 | IFS="$ac_save_ifs" | |
10397 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10398 | ;; | |
10399 | esac | |
10400 | fi | |
10401 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10402 | if test -n "$PKG_CONFIG"; then | |
10403 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
10404 | else | |
10405 | echo "$ac_t""no" 1>&6 | |
10406 | fi | |
10407 | ||
10408 | ||
10409 | if test x$PKG_CONFIG != xno ; then | |
10410 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
10411 | : | |
10412 | else | |
10413 | echo *** pkg-config too old; version 0.7 or better required. | |
10414 | no_gtk=yes | |
10415 | PKG_CONFIG=no | |
10416 | fi | |
10417 | else | |
10418 | no_gtk=yes | |
10419 | fi | |
10420 | ||
10421 | min_gtk_version=2.0.0 | |
10422 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
10423 | echo "configure:10424: checking for GTK+ - version >= $min_gtk_version" >&5 | |
10424 | ||
10425 | if test x$PKG_CONFIG != xno ; then | |
10426 | ## don't try to run the test against uninstalled libtool libs | |
10427 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
10428 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
10429 | enable_gtktest=no | |
10430 | fi | |
10431 | ||
10432 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
10433 | : | |
10434 | else | |
10435 | no_gtk=yes | |
10436 | fi | |
10437 | fi | |
10438 | ||
10439 | if test x"$no_gtk" = x ; then | |
10440 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
10441 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
10442 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
10443 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10444 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
10445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10446 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
10447 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10448 | if test "x$enable_gtktest" = "xyes" ; then | |
10449 | ac_save_CFLAGS="$CFLAGS" | |
10450 | ac_save_LIBS="$LIBS" | |
10451 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10452 | LIBS="$GTK_LIBS $LIBS" | |
10453 | rm -f conf.gtktest | |
10454 | if test "$cross_compiling" = yes; then | |
10455 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10456 | else | |
10457 | cat > conftest.$ac_ext <<EOF | |
10458 | #line 10459 "configure" | |
10459 | #include "confdefs.h" | |
10460 | ||
10461 | #include <gtk/gtk.h> | |
10462 | #include <stdio.h> | |
10463 | #include <stdlib.h> | |
10464 | ||
10465 | int | |
10466 | main () | |
10467 | { | |
10468 | int major, minor, micro; | |
10469 | char *tmp_version; | |
10470 | ||
10471 | system ("touch conf.gtktest"); | |
10472 | ||
10473 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10474 | tmp_version = g_strdup("$min_gtk_version"); | |
10475 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10476 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10477 | exit(1); | |
10478 | } | |
10479 | ||
10480 | if ((gtk_major_version != $gtk_config_major_version) || | |
10481 | (gtk_minor_version != $gtk_config_minor_version) || | |
10482 | (gtk_micro_version != $gtk_config_micro_version)) | |
10483 | { | |
10484 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10485 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10486 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10487 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
10488 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10489 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10490 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10491 | printf("*** required on your system.\n"); | |
10492 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
10493 | printf("*** to point to the correct configuration files\n"); | |
10494 | } | |
10495 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10496 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10497 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10498 | { | |
10499 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10500 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10501 | printf("*** library (version %d.%d.%d)\n", | |
10502 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10503 | } | |
10504 | else | |
10505 | { | |
10506 | if ((gtk_major_version > major) || | |
10507 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10508 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10509 | { | |
10510 | return 0; | |
10511 | } | |
10512 | else | |
10513 | { | |
10514 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10515 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10516 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10517 | major, minor, micro); | |
10518 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10519 | printf("***\n"); | |
10520 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10521 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
10522 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10523 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
10524 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
10525 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10526 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10527 | } | |
10528 | } | |
10529 | return 1; | |
10530 | } | |
10531 | ||
10532 | EOF | |
10533 | if { (eval echo configure:10534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10534 | then | |
10535 | : | |
10536 | else | |
10537 | echo "configure: failed program was:" >&5 | |
10538 | cat conftest.$ac_ext >&5 | |
10539 | rm -fr conftest* | |
10540 | no_gtk=yes | |
10541 | fi | |
10542 | rm -fr conftest* | |
10543 | fi | |
10544 | ||
10545 | CFLAGS="$ac_save_CFLAGS" | |
10546 | LIBS="$ac_save_LIBS" | |
10547 | fi | |
10548 | fi | |
10549 | if test "x$no_gtk" = x ; then | |
10550 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
10551 | wx_cv_lib_gtk=2.0 | |
10552 | else | |
10553 | echo "$ac_t""no" 1>&6 | |
10554 | if test "$PKG_CONFIG" = "no" ; then | |
10555 | echo "*** A new enough version of pkg-config was not found." | |
10556 | echo "*** See http://pkgconfig.sourceforge.net" | |
10557 | else | |
10558 | if test -f conf.gtktest ; then | |
10559 | : | |
10560 | else | |
10561 | echo "*** Could not run GTK+ test program, checking why..." | |
10562 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10563 | LIBS="$LIBS $GTK_LIBS" | |
10564 | cat > conftest.$ac_ext <<EOF | |
10565 | #line 10566 "configure" | |
10566 | #include "confdefs.h" | |
10567 | ||
10568 | #include <gtk/gtk.h> | |
10569 | #include <stdio.h> | |
10570 | ||
10571 | int main() { | |
10572 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10573 | ; return 0; } | |
10574 | EOF | |
10575 | if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10576 | rm -rf conftest* | |
10577 | echo "*** The test program compiled, but did not run. This usually means" | |
10578 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
10579 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
10580 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10581 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10582 | echo "*** is required on your system" | |
10583 | echo "***" | |
10584 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10585 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10586 | else | |
10587 | echo "configure: failed program was:" >&5 | |
10588 | cat conftest.$ac_ext >&5 | |
10589 | rm -rf conftest* | |
10590 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10591 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
10592 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
10593 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
10594 | fi | |
10595 | rm -f conftest* | |
10596 | CFLAGS="$ac_save_CFLAGS" | |
10597 | LIBS="$ac_save_LIBS" | |
10598 | fi | |
10599 | fi | |
10600 | GTK_CFLAGS="" | |
10601 | GTK_LIBS="" | |
10602 | : | |
10603 | fi | |
10604 | ||
10605 | ||
10606 | rm -f conf.gtktest | |
10607 | ||
10608 | fi | |
10609 | ||
10610 | if test -z "$wx_cv_lib_gtk"; then | |
10611 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10612 | if test "${with_gtk_prefix+set}" = set; then | |
10613 | withval="$with_gtk_prefix" | |
10614 | gtk_config_prefix="$withval" | |
10615 | else | |
10616 | gtk_config_prefix="" | |
10617 | fi | |
10618 | ||
10619 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10620 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10621 | withval="$with_gtk_exec_prefix" | |
10622 | gtk_config_exec_prefix="$withval" | |
10623 | else | |
10624 | gtk_config_exec_prefix="" | |
10625 | fi | |
10626 | ||
10627 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10628 | if test "${enable_gtktest+set}" = set; then | |
10629 | enableval="$enable_gtktest" | |
10630 | : | |
10631 | else | |
10632 | enable_gtktest=yes | |
10633 | fi | |
10634 | ||
10635 | ||
10636 | for module in . $GTK_MODULES | |
10637 | do | |
10638 | case "$module" in | |
10639 | gthread) | |
10640 | gtk_config_args="$gtk_config_args gthread" | |
10641 | ;; | |
10642 | esac | |
10643 | done | |
10644 | ||
10645 | if test x$gtk_config_exec_prefix != x ; then | |
10646 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10647 | if test x${GTK_CONFIG+set} != xset ; then | |
10648 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10649 | fi | |
10650 | fi | |
10651 | if test x$gtk_config_prefix != x ; then | |
10652 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10653 | if test x${GTK_CONFIG+set} != xset ; then | |
10654 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10655 | fi | |
10656 | fi | |
10657 | ||
10658 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10659 | set dummy gtk-config; ac_word=$2 | |
10660 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
10661 | echo "configure:10662: checking for $ac_word" >&5 | |
10662 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
10663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10664 | else | |
10665 | case "$GTK_CONFIG" in | |
10666 | /*) | |
10667 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
10668 | ;; | |
10669 | ?:/*) | |
10670 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10671 | ;; | |
10672 | *) | |
10673 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
10674 | ac_dummy="$PATH" | |
10675 | for ac_dir in $ac_dummy; do | |
10676 | test -z "$ac_dir" && ac_dir=. | |
10677 | if test -f $ac_dir/$ac_word; then | |
10678 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10679 | break | |
10680 | fi | |
10681 | done | |
10682 | IFS="$ac_save_ifs" | |
10683 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
10684 | ;; | |
10685 | esac | |
10686 | fi | |
10687 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
10688 | if test -n "$GTK_CONFIG"; then | |
10689 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
10690 | else | |
10691 | echo "$ac_t""no" 1>&6 | |
10692 | fi | |
10693 | ||
10694 | min_gtk_version=1.2.7 | |
10695 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
10696 | echo "configure:10697: checking for GTK - version >= $min_gtk_version" >&5 | |
10697 | no_gtk="" | |
10698 | if test "$GTK_CONFIG" = "no" ; then | |
10699 | no_gtk=yes | |
10700 | else | |
10701 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10702 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10703 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10704 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10705 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10706 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10707 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10708 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10709 | if test "x$enable_gtktest" = "xyes" ; then | |
10710 | ac_save_CFLAGS="$CFLAGS" | |
10711 | ac_save_LIBS="$LIBS" | |
10712 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10713 | LIBS="$GTK_LIBS $LIBS" | |
10714 | rm -f conf.gtktest | |
10715 | if test "$cross_compiling" = yes; then | |
10716 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10717 | else | |
10718 | cat > conftest.$ac_ext <<EOF | |
10719 | #line 10720 "configure" | |
10720 | #include "confdefs.h" | |
10721 | ||
10722 | #include <gtk/gtk.h> | |
10723 | #include <stdio.h> | |
10724 | #include <stdlib.h> | |
10725 | ||
10726 | int | |
10727 | main () | |
10728 | { | |
10729 | int major, minor, micro; | |
10730 | char *tmp_version; | |
10731 | ||
10732 | system ("touch conf.gtktest"); | |
10733 | ||
10734 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10735 | tmp_version = g_strdup("$min_gtk_version"); | |
10736 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10737 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10738 | exit(1); | |
10739 | } | |
10740 | ||
10741 | if ((gtk_major_version != $gtk_config_major_version) || | |
10742 | (gtk_minor_version != $gtk_config_minor_version) || | |
10743 | (gtk_micro_version != $gtk_config_micro_version)) | |
10744 | { | |
10745 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10746 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10747 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10748 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10749 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10750 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10751 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10752 | printf("*** required on your system.\n"); | |
10753 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10754 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10755 | printf("*** before re-running configure\n"); | |
10756 | } | |
10757 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10758 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10759 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10760 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10761 | { | |
10762 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10763 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10764 | printf("*** library (version %d.%d.%d)\n", | |
10765 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10766 | } | |
10767 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10768 | else | |
10769 | { | |
10770 | if ((gtk_major_version > major) || | |
10771 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10772 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10773 | { | |
10774 | return 0; | |
10775 | } | |
10776 | else | |
10777 | { | |
10778 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10779 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10780 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10781 | major, minor, micro); | |
10782 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10783 | printf("***\n"); | |
10784 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10785 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10786 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10787 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10788 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10789 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10790 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10791 | } | |
10792 | } | |
10793 | return 1; | |
10794 | } | |
10795 | ||
10796 | EOF | |
10797 | if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10798 | then | |
10799 | : | |
10800 | else | |
10801 | echo "configure: failed program was:" >&5 | |
10802 | cat conftest.$ac_ext >&5 | |
10803 | rm -fr conftest* | |
10804 | no_gtk=yes | |
10805 | fi | |
10806 | rm -fr conftest* | |
10807 | fi | |
10808 | ||
10809 | CFLAGS="$ac_save_CFLAGS" | |
10810 | LIBS="$ac_save_LIBS" | |
10811 | fi | |
10812 | fi | |
10813 | if test "x$no_gtk" = x ; then | |
10814 | echo "$ac_t""yes" 1>&6 | |
10815 | wx_cv_lib_gtk=1.2.7 | |
10816 | else | |
10817 | echo "$ac_t""no" 1>&6 | |
10818 | if test "$GTK_CONFIG" = "no" ; then | |
10819 | echo "*** The gtk-config script installed by GTK could not be found" | |
10820 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10821 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10822 | echo "*** full path to gtk-config." | |
10823 | else | |
10824 | if test -f conf.gtktest ; then | |
10825 | : | |
10826 | else | |
10827 | echo "*** Could not run GTK test program, checking why..." | |
10828 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10829 | LIBS="$LIBS $GTK_LIBS" | |
10830 | cat > conftest.$ac_ext <<EOF | |
10831 | #line 10832 "configure" | |
10832 | #include "confdefs.h" | |
10833 | ||
10834 | #include <gtk/gtk.h> | |
10835 | #include <stdio.h> | |
10836 | ||
10837 | int main() { | |
10838 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10839 | ; return 0; } | |
10840 | EOF | |
10841 | if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10842 | rm -rf conftest* | |
10843 | echo "*** The test program compiled, but did not run. This usually means" | |
10844 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10845 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10846 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10847 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10848 | echo "*** is required on your system" | |
10849 | echo "***" | |
10850 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10851 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10852 | echo "***" | |
10853 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10854 | echo "*** came with the system with the command" | |
10855 | echo "***" | |
10856 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10857 | else | |
10858 | echo "configure: failed program was:" >&5 | |
10859 | cat conftest.$ac_ext >&5 | |
10860 | rm -rf conftest* | |
10861 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10862 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10863 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10864 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10865 | fi | |
10866 | rm -f conftest* | |
10867 | CFLAGS="$ac_save_CFLAGS" | |
10868 | LIBS="$ac_save_LIBS" | |
10869 | fi | |
10870 | fi | |
10871 | GTK_CFLAGS="" | |
10872 | GTK_LIBS="" | |
10873 | : | |
10874 | fi | |
10875 | ||
10876 | ||
10877 | rm -f conf.gtktest | |
10878 | ||
10879 | fi | |
10880 | ||
10881 | if test -z "$wx_cv_lib_gtk"; then | |
10882 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10883 | if test "${with_gtk_prefix+set}" = set; then | |
10884 | withval="$with_gtk_prefix" | |
10885 | gtk_config_prefix="$withval" | |
10886 | else | |
10887 | gtk_config_prefix="" | |
10888 | fi | |
10889 | ||
10890 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10891 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10892 | withval="$with_gtk_exec_prefix" | |
10893 | gtk_config_exec_prefix="$withval" | |
10894 | else | |
10895 | gtk_config_exec_prefix="" | |
10896 | fi | |
10897 | ||
10898 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10899 | if test "${enable_gtktest+set}" = set; then | |
10900 | enableval="$enable_gtktest" | |
10901 | : | |
10902 | else | |
10903 | enable_gtktest=yes | |
10904 | fi | |
10905 | ||
10906 | ||
10907 | for module in . $GTK_MODULES | |
10908 | do | |
10909 | case "$module" in | |
10910 | gthread) | |
10911 | gtk_config_args="$gtk_config_args gthread" | |
10912 | ;; | |
10913 | esac | |
10914 | done | |
10915 | ||
10916 | if test x$gtk_config_exec_prefix != x ; then | |
10917 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10918 | if test x${GTK_CONFIG+set} != xset ; then | |
10919 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10920 | fi | |
10921 | fi | |
10922 | if test x$gtk_config_prefix != x ; then | |
10923 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10924 | if test x${GTK_CONFIG+set} != xset ; then | |
10925 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10926 | fi | |
10927 | fi | |
10928 | ||
10929 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10930 | set dummy gtk-config; ac_word=$2 | |
10931 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
10932 | echo "configure:10933: checking for $ac_word" >&5 | |
10933 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
10934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10935 | else | |
10936 | case "$GTK_CONFIG" in | |
10937 | /*) | |
10938 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
10939 | ;; | |
10940 | ?:/*) | |
10941 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10942 | ;; | |
10943 | *) | |
10944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
10945 | ac_dummy="$PATH" | |
10946 | for ac_dir in $ac_dummy; do | |
10947 | test -z "$ac_dir" && ac_dir=. | |
10948 | if test -f $ac_dir/$ac_word; then | |
10949 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10950 | break | |
10951 | fi | |
10952 | done | |
10953 | IFS="$ac_save_ifs" | |
10954 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
10955 | ;; | |
10956 | esac | |
10957 | fi | |
10958 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
10959 | if test -n "$GTK_CONFIG"; then | |
10960 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
10961 | else | |
10962 | echo "$ac_t""no" 1>&6 | |
10963 | fi | |
10964 | ||
10965 | min_gtk_version=1.2.3 | |
10966 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
10967 | echo "configure:10968: checking for GTK - version >= $min_gtk_version" >&5 | |
10968 | no_gtk="" | |
10969 | if test "$GTK_CONFIG" = "no" ; then | |
10970 | no_gtk=yes | |
10971 | else | |
10972 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10973 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10974 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10975 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10976 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10977 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10978 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10979 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10980 | if test "x$enable_gtktest" = "xyes" ; then | |
10981 | ac_save_CFLAGS="$CFLAGS" | |
10982 | ac_save_LIBS="$LIBS" | |
10983 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10984 | LIBS="$GTK_LIBS $LIBS" | |
10985 | rm -f conf.gtktest | |
10986 | if test "$cross_compiling" = yes; then | |
10987 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10988 | else | |
10989 | cat > conftest.$ac_ext <<EOF | |
10990 | #line 10991 "configure" | |
10991 | #include "confdefs.h" | |
10992 | ||
10993 | #include <gtk/gtk.h> | |
10994 | #include <stdio.h> | |
10995 | #include <stdlib.h> | |
10996 | ||
10997 | int | |
10998 | main () | |
10999 | { | |
11000 | int major, minor, micro; | |
11001 | char *tmp_version; | |
11002 | ||
11003 | system ("touch conf.gtktest"); | |
11004 | ||
11005 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
11006 | tmp_version = g_strdup("$min_gtk_version"); | |
11007 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11008 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11009 | exit(1); | |
11010 | } | |
11011 | ||
11012 | if ((gtk_major_version != $gtk_config_major_version) || | |
11013 | (gtk_minor_version != $gtk_config_minor_version) || | |
11014 | (gtk_micro_version != $gtk_config_micro_version)) | |
11015 | { | |
11016 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11017 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11018 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11019 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11020 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11021 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11022 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11023 | printf("*** required on your system.\n"); | |
11024 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11025 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11026 | printf("*** before re-running configure\n"); | |
11027 | } | |
11028 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11029 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11030 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11031 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11032 | { | |
11033 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11034 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11035 | printf("*** library (version %d.%d.%d)\n", | |
11036 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11037 | } | |
11038 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11039 | else | |
11040 | { | |
11041 | if ((gtk_major_version > major) || | |
11042 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11043 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11044 | { | |
11045 | return 0; | |
11046 | } | |
11047 | else | |
11048 | { | |
11049 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11050 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11051 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11052 | major, minor, micro); | |
11053 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11054 | printf("***\n"); | |
11055 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11056 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11057 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11058 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11059 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11060 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11061 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11062 | } | |
11063 | } | |
11064 | return 1; | |
11065 | } | |
11066 | ||
11067 | EOF | |
11068 | if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11069 | then | |
11070 | : | |
11071 | else | |
11072 | echo "configure: failed program was:" >&5 | |
11073 | cat conftest.$ac_ext >&5 | |
11074 | rm -fr conftest* | |
11075 | no_gtk=yes | |
11076 | fi | |
11077 | rm -fr conftest* | |
11078 | fi | |
11079 | ||
11080 | CFLAGS="$ac_save_CFLAGS" | |
11081 | LIBS="$ac_save_LIBS" | |
11082 | fi | |
11083 | fi | |
11084 | if test "x$no_gtk" = x ; then | |
11085 | echo "$ac_t""yes" 1>&6 | |
11086 | wx_cv_lib_gtk=1.2.3 | |
11087 | else | |
11088 | echo "$ac_t""no" 1>&6 | |
11089 | if test "$GTK_CONFIG" = "no" ; then | |
11090 | echo "*** The gtk-config script installed by GTK could not be found" | |
11091 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11092 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11093 | echo "*** full path to gtk-config." | |
11094 | else | |
11095 | if test -f conf.gtktest ; then | |
11096 | : | |
11097 | else | |
11098 | echo "*** Could not run GTK test program, checking why..." | |
11099 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11100 | LIBS="$LIBS $GTK_LIBS" | |
11101 | cat > conftest.$ac_ext <<EOF | |
11102 | #line 11103 "configure" | |
11103 | #include "confdefs.h" | |
11104 | ||
11105 | #include <gtk/gtk.h> | |
11106 | #include <stdio.h> | |
11107 | ||
11108 | int main() { | |
11109 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11110 | ; return 0; } | |
11111 | EOF | |
11112 | if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11113 | rm -rf conftest* | |
11114 | echo "*** The test program compiled, but did not run. This usually means" | |
11115 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11116 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11117 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11118 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11119 | echo "*** is required on your system" | |
11120 | echo "***" | |
11121 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11122 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11123 | echo "***" | |
11124 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11125 | echo "*** came with the system with the command" | |
11126 | echo "***" | |
11127 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11128 | else | |
11129 | echo "configure: failed program was:" >&5 | |
11130 | cat conftest.$ac_ext >&5 | |
11131 | rm -rf conftest* | |
11132 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11133 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11134 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11135 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11136 | fi | |
11137 | rm -f conftest* | |
11138 | CFLAGS="$ac_save_CFLAGS" | |
11139 | LIBS="$ac_save_LIBS" | |
11140 | fi | |
11141 | fi | |
11142 | GTK_CFLAGS="" | |
11143 | GTK_LIBS="" | |
11144 | : | |
11145 | fi | |
11146 | ||
11147 | ||
11148 | rm -f conf.gtktest | |
11149 | ||
11150 | fi | |
11151 | ||
11152 | if test -z "$wx_cv_lib_gtk"; then | |
11153 | wx_cv_lib_gtk=none | |
11154 | else | |
11155 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11156 | wx_cv_libs_gtk=$GTK_LIBS | |
11157 | fi | |
11158 | ||
11159 | ||
11160 | fi | |
11161 | ||
11162 | ||
11163 | if test "$gtk_version_cached" = 1; then | |
11164 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
11165 | fi | |
11166 | ||
11167 | case "$wx_cv_lib_gtk" in | |
11168 | 2.0) WXGTK20=1 | |
11169 | ;; | |
11170 | 1.2.7) WXGTK127=1 | |
11171 | WXGTK12=1 | |
11172 | ;; | |
11173 | 1.2.3) WXGTK12=1 | |
11174 | ;; | |
11175 | *) { echo "configure: error: | |
11176 | Please check that gtk-config is in path, the directory | |
11177 | where GTK+ libraries are installed (returned by | |
11178 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11179 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11180 | " 1>&2; exit 1; } | |
11181 | ;; | |
11182 | esac | |
11183 | ||
11184 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
11185 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
11186 | ||
11187 | AFMINSTALL=afminstall | |
11188 | TOOLKIT=GTK | |
11189 | GUIDIST=GTK_DIST | |
11190 | ||
11191 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
11192 | echo "configure:11193: checking for gdk_im_open in -lgdk" >&5 | |
11193 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
11194 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11196 | else | |
11197 | ac_save_LIBS="$LIBS" | |
11198 | LIBS="-lgdk $LIBS" | |
11199 | cat > conftest.$ac_ext <<EOF | |
11200 | #line 11201 "configure" | |
11201 | #include "confdefs.h" | |
11202 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11203 | /* We use char because int might match the return type of a gcc2 | |
11204 | builtin and then its argument prototype would still apply. */ | |
11205 | char gdk_im_open(); | |
11206 | ||
11207 | int main() { | |
11208 | gdk_im_open() | |
11209 | ; return 0; } | |
11210 | EOF | |
11211 | if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11212 | rm -rf conftest* | |
11213 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11214 | else | |
11215 | echo "configure: failed program was:" >&5 | |
11216 | cat conftest.$ac_ext >&5 | |
11217 | rm -rf conftest* | |
11218 | eval "ac_cv_lib_$ac_lib_var=no" | |
11219 | fi | |
11220 | rm -f conftest* | |
11221 | LIBS="$ac_save_LIBS" | |
11222 | ||
11223 | fi | |
11224 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11225 | echo "$ac_t""yes" 1>&6 | |
11226 | cat >> confdefs.h <<\EOF | |
11227 | #define HAVE_XIM 1 | |
11228 | EOF | |
11229 | ||
11230 | else | |
11231 | echo "$ac_t""no" 1>&6 | |
11232 | fi | |
11233 | ||
11234 | fi | |
11235 | ||
11236 | if test "$wxUSE_MGL" = 1; then | |
11237 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
11238 | echo "configure:11239: checking for SciTech MGL library" >&5 | |
11239 | if test "x$MGL_ROOT" = x ; then | |
11240 | echo "$ac_t""not found" 1>&6 | |
11241 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11242 | else | |
11243 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11244 | fi | |
11245 | ||
11246 | case "${host}" in | |
11247 | *-*-linux* ) | |
11248 | mgl_os=linux/gcc/glibc | |
11249 | ;; | |
11250 | *-pc-msdosdjgpp ) | |
11251 | mgl_os=dos32/dj2 | |
11252 | ;; | |
11253 | *) | |
11254 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11255 | esac | |
11256 | ||
11257 | mgl_lib_type="" | |
11258 | ||
11259 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
11260 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
11261 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
11262 | mgl_lib_type=debug | |
11263 | fi | |
11264 | fi | |
11265 | if test "x$mgl_lib_type" = x ; then | |
11266 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
11267 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
11268 | mgl_lib_type=release | |
11269 | else | |
11270 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11271 | fi | |
11272 | fi | |
11273 | ||
11274 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
11275 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
11276 | ||
11277 | AFMINSTALL=afminstall | |
11278 | TOOLKIT=MGL | |
11279 | GUIDIST=MGL_DIST | |
11280 | fi | |
11281 | ||
11282 | if test "$wxUSE_MICROWIN" = 1; then | |
11283 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
11284 | echo "configure:11285: checking for MicroWindows" >&5 | |
11285 | if test "x$MICROWINDOWS" = x ; then | |
11286 | echo "$ac_t""not found" 1>&6 | |
11287 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11288 | else | |
11289 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11290 | fi | |
11291 | ||
11292 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11293 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11294 | else | |
11295 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11296 | fi | |
11297 | ||
11298 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11299 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11300 | ||
11301 | AFMINSTALL=afminstall | |
11302 | TOOLKIT=MICROWIN | |
11303 | GUIDIST=MICROWIN_DIST | |
11304 | ||
11305 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11306 | fi | |
11307 | ||
11308 | if test "$wxUSE_X11" = 1; then | |
11309 | # If we find X, set shell vars x_includes and x_libraries to the | |
11310 | # paths, otherwise set no_x=yes. | |
11311 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11312 | # --without-x overrides everything else, but does not touch the cache. | |
11313 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
11314 | echo "configure:11315: checking for X" >&5 | |
11315 | ||
11316 | # Check whether --with-x or --without-x was given. | |
11317 | if test "${with_x+set}" = set; then | |
11318 | withval="$with_x" | |
11319 | : | |
11320 | fi | |
11321 | ||
11322 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
11323 | if test "x$with_x" = xno; then | |
11324 | # The user explicitly disabled X. | |
11325 | have_x=disabled | |
11326 | else | |
11327 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11328 | # Both variables are already set. | |
11329 | have_x=yes | |
11330 | else | |
11331 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
11332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11333 | else | |
11334 | # One or both of the vars are not set, and there is no cached value. | |
11335 | ac_x_includes=NO ac_x_libraries=NO | |
11336 | rm -fr conftestdir | |
11337 | if mkdir conftestdir; then | |
11338 | cd conftestdir | |
11339 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
11340 | cat > Imakefile <<'EOF' | |
11341 | acfindx: | |
11342 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11343 | EOF | |
11344 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11345 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11346 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11347 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
11348 | for ac_extension in a so sl; do | |
11349 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
11350 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
11351 | ac_im_usrlibdir=$ac_im_libdir; break | |
11352 | fi | |
11353 | done | |
11354 | # Screen out bogus values from the imake configuration. They are | |
11355 | # bogus both because they are the default anyway, and because | |
11356 | # using them would break gcc on systems where it needs fixed includes. | |
11357 | case "$ac_im_incroot" in | |
11358 | /usr/include) ;; | |
11359 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
11360 | esac | |
11361 | case "$ac_im_usrlibdir" in | |
11362 | /usr/lib | /lib) ;; | |
11363 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
11364 | esac | |
11365 | fi | |
11366 | cd .. | |
11367 | rm -fr conftestdir | |
11368 | fi | |
11369 | ||
11370 | if test "$ac_x_includes" = NO; then | |
11371 | # Guess where to find include files, by looking for this one X11 .h file. | |
11372 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11373 | ||
11374 | # First, try using that file with no special directory specified. | |
11375 | cat > conftest.$ac_ext <<EOF | |
11376 | #line 11377 "configure" | |
11377 | #include "confdefs.h" | |
11378 | #include <$x_direct_test_include> | |
11379 | EOF | |
11380 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11381 | { (eval echo configure:11382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11382 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11383 | if test -z "$ac_err"; then | |
11384 | rm -rf conftest* | |
11385 | # We can compile using X headers with no special include directory. | |
11386 | ac_x_includes= | |
11387 | else | |
11388 | echo "$ac_err" >&5 | |
11389 | echo "configure: failed program was:" >&5 | |
11390 | cat conftest.$ac_ext >&5 | |
11391 | rm -rf conftest* | |
11392 | # Look for the header file in a standard set of common directories. | |
11393 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11394 | for ac_dir in \ | |
11395 | /usr/X11/include \ | |
11396 | /usr/X11R6/include \ | |
11397 | /usr/X11R5/include \ | |
11398 | /usr/X11R4/include \ | |
11399 | \ | |
11400 | /usr/include/X11 \ | |
11401 | /usr/include/X11R6 \ | |
11402 | /usr/include/X11R5 \ | |
11403 | /usr/include/X11R4 \ | |
11404 | \ | |
11405 | /usr/local/X11/include \ | |
11406 | /usr/local/X11R6/include \ | |
11407 | /usr/local/X11R5/include \ | |
11408 | /usr/local/X11R4/include \ | |
11409 | \ | |
11410 | /usr/local/include/X11 \ | |
11411 | /usr/local/include/X11R6 \ | |
11412 | /usr/local/include/X11R5 \ | |
11413 | /usr/local/include/X11R4 \ | |
11414 | \ | |
11415 | /usr/X386/include \ | |
11416 | /usr/x386/include \ | |
11417 | /usr/XFree86/include/X11 \ | |
11418 | \ | |
11419 | /usr/include \ | |
11420 | /usr/local/include \ | |
11421 | /usr/unsupported/include \ | |
11422 | /usr/athena/include \ | |
11423 | /usr/local/x11r5/include \ | |
11424 | /usr/lpp/Xamples/include \ | |
11425 | \ | |
11426 | /usr/openwin/include \ | |
11427 | /usr/openwin/share/include \ | |
11428 | ; \ | |
11429 | do | |
11430 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11431 | ac_x_includes=$ac_dir | |
11432 | break | |
11433 | fi | |
11434 | done | |
11435 | fi | |
11436 | rm -f conftest* | |
11437 | fi # $ac_x_includes = NO | |
11438 | ||
11439 | if test "$ac_x_libraries" = NO; then | |
11440 | # Check for the libraries. | |
11441 | ||
11442 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11443 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11444 | ||
11445 | # See if we find them without any special options. | |
11446 | # Don't add to $LIBS permanently. | |
11447 | ac_save_LIBS="$LIBS" | |
11448 | LIBS="-l$x_direct_test_library $LIBS" | |
11449 | cat > conftest.$ac_ext <<EOF | |
11450 | #line 11451 "configure" | |
11451 | #include "confdefs.h" | |
11452 | ||
11453 | int main() { | |
11454 | ${x_direct_test_function}() | |
11455 | ; return 0; } | |
11456 | EOF | |
11457 | if { (eval echo configure:11458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11458 | rm -rf conftest* | |
11459 | LIBS="$ac_save_LIBS" | |
11460 | # We can link X programs with no special library path. | |
11461 | ac_x_libraries= | |
11462 | else | |
11463 | echo "configure: failed program was:" >&5 | |
11464 | cat conftest.$ac_ext >&5 | |
11465 | rm -rf conftest* | |
11466 | LIBS="$ac_save_LIBS" | |
11467 | # First see if replacing the include by lib works. | |
11468 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11469 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11470 | /usr/X11/lib \ | |
11471 | /usr/X11R6/lib \ | |
11472 | /usr/X11R5/lib \ | |
11473 | /usr/X11R4/lib \ | |
11474 | \ | |
11475 | /usr/lib/X11 \ | |
11476 | /usr/lib/X11R6 \ | |
11477 | /usr/lib/X11R5 \ | |
11478 | /usr/lib/X11R4 \ | |
11479 | \ | |
11480 | /usr/local/X11/lib \ | |
11481 | /usr/local/X11R6/lib \ | |
11482 | /usr/local/X11R5/lib \ | |
11483 | /usr/local/X11R4/lib \ | |
11484 | \ | |
11485 | /usr/local/lib/X11 \ | |
11486 | /usr/local/lib/X11R6 \ | |
11487 | /usr/local/lib/X11R5 \ | |
11488 | /usr/local/lib/X11R4 \ | |
11489 | \ | |
11490 | /usr/X386/lib \ | |
11491 | /usr/x386/lib \ | |
11492 | /usr/XFree86/lib/X11 \ | |
11493 | \ | |
11494 | /usr/lib \ | |
11495 | /usr/local/lib \ | |
11496 | /usr/unsupported/lib \ | |
11497 | /usr/athena/lib \ | |
11498 | /usr/local/x11r5/lib \ | |
11499 | /usr/lpp/Xamples/lib \ | |
11500 | /lib/usr/lib/X11 \ | |
11501 | \ | |
11502 | /usr/openwin/lib \ | |
11503 | /usr/openwin/share/lib \ | |
11504 | ; \ | |
11505 | do | |
11506 | for ac_extension in a so sl; do | |
11507 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
11508 | ac_x_libraries=$ac_dir | |
11509 | break 2 | |
11510 | fi | |
11511 | done | |
11512 | done | |
11513 | fi | |
11514 | rm -f conftest* | |
11515 | fi # $ac_x_libraries = NO | |
11516 | ||
11517 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
11518 | # Didn't find X anywhere. Cache the known absence of X. | |
11519 | ac_cv_have_x="have_x=no" | |
11520 | else | |
11521 | # Record where we found X for the cache. | |
11522 | ac_cv_have_x="have_x=yes \ | |
11523 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11524 | fi | |
11525 | fi | |
11526 | fi | |
11527 | eval "$ac_cv_have_x" | |
11528 | fi # $with_x != no | |
11529 | ||
11530 | if test "$have_x" != yes; then | |
11531 | echo "$ac_t""$have_x" 1>&6 | |
11532 | no_x=yes | |
11533 | else | |
11534 | # If each of the values was on the command line, it overrides each guess. | |
11535 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11536 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11537 | # Update the cache value to reflect the command line values. | |
11538 | ac_cv_have_x="have_x=yes \ | |
11539 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
11540 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
11541 | fi | |
11542 | ||
11543 | if test "$no_x" = yes; then | |
11544 | # Not all programs may use this symbol, but it does not hurt to define it. | |
11545 | cat >> confdefs.h <<\EOF | |
11546 | #define X_DISPLAY_MISSING 1 | |
11547 | EOF | |
11548 | ||
11549 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
11550 | else | |
11551 | if test -n "$x_includes"; then | |
11552 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
11553 | fi | |
11554 | ||
11555 | # It would also be nice to do this for all -L options, not just this one. | |
11556 | if test -n "$x_libraries"; then | |
11557 | X_LIBS="$X_LIBS -L$x_libraries" | |
11558 | # For Solaris; some versions of Sun CC require a space after -R and | |
11559 | # others require no space. Words are not sufficient . . . . | |
11560 | case "`(uname -sr) 2>/dev/null`" in | |
11561 | "SunOS 5"*) | |
11562 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
11563 | echo "configure:11564: checking whether -R must be followed by a space" >&5 | |
11564 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
11565 | cat > conftest.$ac_ext <<EOF | |
11566 | #line 11567 "configure" | |
11567 | #include "confdefs.h" | |
11568 | ||
11569 | int main() { | |
11570 | ||
11571 | ; return 0; } | |
11572 | EOF | |
11573 | if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11574 | rm -rf conftest* | |
11575 | ac_R_nospace=yes | |
11576 | else | |
11577 | echo "configure: failed program was:" >&5 | |
11578 | cat conftest.$ac_ext >&5 | |
11579 | rm -rf conftest* | |
11580 | ac_R_nospace=no | |
11581 | fi | |
11582 | rm -f conftest* | |
11583 | if test $ac_R_nospace = yes; then | |
11584 | echo "$ac_t""no" 1>&6 | |
11585 | X_LIBS="$X_LIBS -R$x_libraries" | |
11586 | else | |
11587 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
11588 | cat > conftest.$ac_ext <<EOF | |
11589 | #line 11590 "configure" | |
11590 | #include "confdefs.h" | |
11591 | ||
11592 | int main() { | |
11593 | ||
11594 | ; return 0; } | |
11595 | EOF | |
11596 | if { (eval echo configure:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11597 | rm -rf conftest* | |
11598 | ac_R_space=yes | |
11599 | else | |
11600 | echo "configure: failed program was:" >&5 | |
11601 | cat conftest.$ac_ext >&5 | |
11602 | rm -rf conftest* | |
11603 | ac_R_space=no | |
11604 | fi | |
11605 | rm -f conftest* | |
11606 | if test $ac_R_space = yes; then | |
11607 | echo "$ac_t""yes" 1>&6 | |
11608 | X_LIBS="$X_LIBS -R $x_libraries" | |
11609 | else | |
11610 | echo "$ac_t""neither works" 1>&6 | |
11611 | fi | |
11612 | fi | |
11613 | LIBS="$ac_xsave_LIBS" | |
11614 | esac | |
11615 | fi | |
11616 | ||
11617 | # Check for system-dependent libraries X programs must link with. | |
11618 | # Do this before checking for the system-independent R6 libraries | |
11619 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11620 | ||
11621 | if test "$ISC" = yes; then | |
11622 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11623 | else | |
11624 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
11625 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
11626 | # the Alpha needs dnet_stub (dnet does not exist). | |
11627 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
11628 | echo "configure:11629: checking for dnet_ntoa in -ldnet" >&5 | |
11629 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
11630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11632 | else | |
11633 | ac_save_LIBS="$LIBS" | |
11634 | LIBS="-ldnet $LIBS" | |
11635 | cat > conftest.$ac_ext <<EOF | |
11636 | #line 11637 "configure" | |
11637 | #include "confdefs.h" | |
11638 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11639 | /* We use char because int might match the return type of a gcc2 | |
11640 | builtin and then its argument prototype would still apply. */ | |
11641 | char dnet_ntoa(); | |
11642 | ||
11643 | int main() { | |
11644 | dnet_ntoa() | |
11645 | ; return 0; } | |
11646 | EOF | |
11647 | if { (eval echo configure:11648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11648 | rm -rf conftest* | |
11649 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11650 | else | |
11651 | echo "configure: failed program was:" >&5 | |
11652 | cat conftest.$ac_ext >&5 | |
11653 | rm -rf conftest* | |
11654 | eval "ac_cv_lib_$ac_lib_var=no" | |
11655 | fi | |
11656 | rm -f conftest* | |
11657 | LIBS="$ac_save_LIBS" | |
11658 | ||
11659 | fi | |
11660 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11661 | echo "$ac_t""yes" 1>&6 | |
11662 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
11663 | else | |
11664 | echo "$ac_t""no" 1>&6 | |
11665 | fi | |
11666 | ||
11667 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
11668 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
11669 | echo "configure:11670: checking for dnet_ntoa in -ldnet_stub" >&5 | |
11670 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
11671 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11673 | else | |
11674 | ac_save_LIBS="$LIBS" | |
11675 | LIBS="-ldnet_stub $LIBS" | |
11676 | cat > conftest.$ac_ext <<EOF | |
11677 | #line 11678 "configure" | |
11678 | #include "confdefs.h" | |
11679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11680 | /* We use char because int might match the return type of a gcc2 | |
11681 | builtin and then its argument prototype would still apply. */ | |
11682 | char dnet_ntoa(); | |
11683 | ||
11684 | int main() { | |
11685 | dnet_ntoa() | |
11686 | ; return 0; } | |
11687 | EOF | |
11688 | if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11689 | rm -rf conftest* | |
11690 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11691 | else | |
11692 | echo "configure: failed program was:" >&5 | |
11693 | cat conftest.$ac_ext >&5 | |
11694 | rm -rf conftest* | |
11695 | eval "ac_cv_lib_$ac_lib_var=no" | |
11696 | fi | |
11697 | rm -f conftest* | |
11698 | LIBS="$ac_save_LIBS" | |
11699 | ||
11700 | fi | |
11701 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11702 | echo "$ac_t""yes" 1>&6 | |
11703 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
11704 | else | |
11705 | echo "$ac_t""no" 1>&6 | |
11706 | fi | |
11707 | ||
11708 | fi | |
11709 | ||
11710 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11711 | # to get the SysV transport functions. | |
11712 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
11713 | # needs -lnsl. | |
11714 | # The nsl library prevents programs from opening the X display | |
11715 | # on Irix 5.2, according to dickey@clark.net. | |
11716 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
11717 | echo "configure:11718: checking for gethostbyname" >&5 | |
11718 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
11719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11720 | else | |
11721 | cat > conftest.$ac_ext <<EOF | |
11722 | #line 11723 "configure" | |
11723 | #include "confdefs.h" | |
11724 | /* System header to define __stub macros and hopefully few prototypes, | |
11725 | which can conflict with char gethostbyname(); below. */ | |
11726 | #include <assert.h> | |
11727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11728 | /* We use char because int might match the return type of a gcc2 | |
11729 | builtin and then its argument prototype would still apply. */ | |
11730 | char gethostbyname(); | |
11731 | ||
11732 | int main() { | |
11733 | ||
11734 | /* The GNU C library defines this for functions which it implements | |
11735 | to always fail with ENOSYS. Some functions are actually named | |
11736 | something starting with __ and the normal name is an alias. */ | |
11737 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11738 | choke me | |
11739 | #else | |
11740 | gethostbyname(); | |
11741 | #endif | |
11742 | ||
11743 | ; return 0; } | |
11744 | EOF | |
11745 | if { (eval echo configure:11746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11746 | rm -rf conftest* | |
11747 | eval "ac_cv_func_gethostbyname=yes" | |
11748 | else | |
11749 | echo "configure: failed program was:" >&5 | |
11750 | cat conftest.$ac_ext >&5 | |
11751 | rm -rf conftest* | |
11752 | eval "ac_cv_func_gethostbyname=no" | |
11753 | fi | |
11754 | rm -f conftest* | |
11755 | fi | |
11756 | ||
11757 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11758 | echo "$ac_t""yes" 1>&6 | |
11759 | : | |
11760 | else | |
11761 | echo "$ac_t""no" 1>&6 | |
11762 | fi | |
11763 | ||
11764 | if test $ac_cv_func_gethostbyname = no; then | |
11765 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
11766 | echo "configure:11767: checking for gethostbyname in -lnsl" >&5 | |
11767 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
11768 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11770 | else | |
11771 | ac_save_LIBS="$LIBS" | |
11772 | LIBS="-lnsl $LIBS" | |
11773 | cat > conftest.$ac_ext <<EOF | |
11774 | #line 11775 "configure" | |
11775 | #include "confdefs.h" | |
11776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11777 | /* We use char because int might match the return type of a gcc2 | |
11778 | builtin and then its argument prototype would still apply. */ | |
11779 | char gethostbyname(); | |
11780 | ||
11781 | int main() { | |
11782 | gethostbyname() | |
11783 | ; return 0; } | |
11784 | EOF | |
11785 | if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11786 | rm -rf conftest* | |
11787 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11788 | else | |
11789 | echo "configure: failed program was:" >&5 | |
11790 | cat conftest.$ac_ext >&5 | |
11791 | rm -rf conftest* | |
11792 | eval "ac_cv_lib_$ac_lib_var=no" | |
11793 | fi | |
11794 | rm -f conftest* | |
11795 | LIBS="$ac_save_LIBS" | |
11796 | ||
11797 | fi | |
11798 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11799 | echo "$ac_t""yes" 1>&6 | |
11800 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
11801 | else | |
11802 | echo "$ac_t""no" 1>&6 | |
11803 | fi | |
11804 | ||
11805 | fi | |
11806 | ||
11807 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
11808 | # socket/setsockopt and other routines are undefined under SCO ODT | |
11809 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
11810 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
11811 | # gethostby* variants that don't use the nameserver (or something). | |
11812 | # -lsocket must be given before -lnsl if both are needed. | |
11813 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
11814 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
11815 | echo "configure:11816: checking for connect" >&5 | |
11816 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
11817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11818 | else | |
11819 | cat > conftest.$ac_ext <<EOF | |
11820 | #line 11821 "configure" | |
11821 | #include "confdefs.h" | |
11822 | /* System header to define __stub macros and hopefully few prototypes, | |
11823 | which can conflict with char connect(); below. */ | |
11824 | #include <assert.h> | |
11825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11826 | /* We use char because int might match the return type of a gcc2 | |
11827 | builtin and then its argument prototype would still apply. */ | |
11828 | char connect(); | |
11829 | ||
11830 | int main() { | |
11831 | ||
11832 | /* The GNU C library defines this for functions which it implements | |
11833 | to always fail with ENOSYS. Some functions are actually named | |
11834 | something starting with __ and the normal name is an alias. */ | |
11835 | #if defined (__stub_connect) || defined (__stub___connect) | |
11836 | choke me | |
11837 | #else | |
11838 | connect(); | |
11839 | #endif | |
11840 | ||
11841 | ; return 0; } | |
11842 | EOF | |
11843 | if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11844 | rm -rf conftest* | |
11845 | eval "ac_cv_func_connect=yes" | |
11846 | else | |
11847 | echo "configure: failed program was:" >&5 | |
11848 | cat conftest.$ac_ext >&5 | |
11849 | rm -rf conftest* | |
11850 | eval "ac_cv_func_connect=no" | |
11851 | fi | |
11852 | rm -f conftest* | |
11853 | fi | |
11854 | ||
11855 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11856 | echo "$ac_t""yes" 1>&6 | |
11857 | : | |
11858 | else | |
11859 | echo "$ac_t""no" 1>&6 | |
11860 | fi | |
11861 | ||
11862 | if test $ac_cv_func_connect = no; then | |
11863 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
11864 | echo "configure:11865: checking for connect in -lsocket" >&5 | |
11865 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
11866 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11868 | else | |
11869 | ac_save_LIBS="$LIBS" | |
11870 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
11871 | cat > conftest.$ac_ext <<EOF | |
11872 | #line 11873 "configure" | |
11873 | #include "confdefs.h" | |
11874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11875 | /* We use char because int might match the return type of a gcc2 | |
11876 | builtin and then its argument prototype would still apply. */ | |
11877 | char connect(); | |
11878 | ||
11879 | int main() { | |
11880 | connect() | |
11881 | ; return 0; } | |
11882 | EOF | |
11883 | if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11884 | rm -rf conftest* | |
11885 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11886 | else | |
11887 | echo "configure: failed program was:" >&5 | |
11888 | cat conftest.$ac_ext >&5 | |
11889 | rm -rf conftest* | |
11890 | eval "ac_cv_lib_$ac_lib_var=no" | |
11891 | fi | |
11892 | rm -f conftest* | |
11893 | LIBS="$ac_save_LIBS" | |
11894 | ||
11895 | fi | |
11896 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11897 | echo "$ac_t""yes" 1>&6 | |
11898 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
11899 | else | |
11900 | echo "$ac_t""no" 1>&6 | |
11901 | fi | |
11902 | ||
11903 | fi | |
11904 | ||
11905 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
11906 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
11907 | echo "configure:11908: checking for remove" >&5 | |
11908 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
11909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11910 | else | |
11911 | cat > conftest.$ac_ext <<EOF | |
11912 | #line 11913 "configure" | |
11913 | #include "confdefs.h" | |
11914 | /* System header to define __stub macros and hopefully few prototypes, | |
11915 | which can conflict with char remove(); below. */ | |
11916 | #include <assert.h> | |
11917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11918 | /* We use char because int might match the return type of a gcc2 | |
11919 | builtin and then its argument prototype would still apply. */ | |
11920 | char remove(); | |
11921 | ||
11922 | int main() { | |
11923 | ||
11924 | /* The GNU C library defines this for functions which it implements | |
11925 | to always fail with ENOSYS. Some functions are actually named | |
11926 | something starting with __ and the normal name is an alias. */ | |
11927 | #if defined (__stub_remove) || defined (__stub___remove) | |
11928 | choke me | |
11929 | #else | |
11930 | remove(); | |
11931 | #endif | |
11932 | ||
11933 | ; return 0; } | |
11934 | EOF | |
11935 | if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11936 | rm -rf conftest* | |
11937 | eval "ac_cv_func_remove=yes" | |
11938 | else | |
11939 | echo "configure: failed program was:" >&5 | |
11940 | cat conftest.$ac_ext >&5 | |
11941 | rm -rf conftest* | |
11942 | eval "ac_cv_func_remove=no" | |
11943 | fi | |
11944 | rm -f conftest* | |
11945 | fi | |
11946 | ||
11947 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11948 | echo "$ac_t""yes" 1>&6 | |
11949 | : | |
11950 | else | |
11951 | echo "$ac_t""no" 1>&6 | |
11952 | fi | |
11953 | ||
11954 | if test $ac_cv_func_remove = no; then | |
11955 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
11956 | echo "configure:11957: checking for remove in -lposix" >&5 | |
11957 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
11958 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11960 | else | |
11961 | ac_save_LIBS="$LIBS" | |
11962 | LIBS="-lposix $LIBS" | |
11963 | cat > conftest.$ac_ext <<EOF | |
11964 | #line 11965 "configure" | |
11965 | #include "confdefs.h" | |
11966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11967 | /* We use char because int might match the return type of a gcc2 | |
11968 | builtin and then its argument prototype would still apply. */ | |
11969 | char remove(); | |
11970 | ||
11971 | int main() { | |
11972 | remove() | |
11973 | ; return 0; } | |
11974 | EOF | |
11975 | if { (eval echo configure:11976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11976 | rm -rf conftest* | |
11977 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11978 | else | |
11979 | echo "configure: failed program was:" >&5 | |
11980 | cat conftest.$ac_ext >&5 | |
11981 | rm -rf conftest* | |
11982 | eval "ac_cv_lib_$ac_lib_var=no" | |
11983 | fi | |
11984 | rm -f conftest* | |
11985 | LIBS="$ac_save_LIBS" | |
11986 | ||
11987 | fi | |
11988 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11989 | echo "$ac_t""yes" 1>&6 | |
11990 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
11991 | else | |
11992 | echo "$ac_t""no" 1>&6 | |
11993 | fi | |
11994 | ||
11995 | fi | |
11996 | ||
11997 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
11998 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
11999 | echo "configure:12000: checking for shmat" >&5 | |
12000 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
12001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12002 | else | |
12003 | cat > conftest.$ac_ext <<EOF | |
12004 | #line 12005 "configure" | |
12005 | #include "confdefs.h" | |
12006 | /* System header to define __stub macros and hopefully few prototypes, | |
12007 | which can conflict with char shmat(); below. */ | |
12008 | #include <assert.h> | |
12009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12010 | /* We use char because int might match the return type of a gcc2 | |
12011 | builtin and then its argument prototype would still apply. */ | |
12012 | char shmat(); | |
12013 | ||
12014 | int main() { | |
12015 | ||
12016 | /* The GNU C library defines this for functions which it implements | |
12017 | to always fail with ENOSYS. Some functions are actually named | |
12018 | something starting with __ and the normal name is an alias. */ | |
12019 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12020 | choke me | |
12021 | #else | |
12022 | shmat(); | |
12023 | #endif | |
12024 | ||
12025 | ; return 0; } | |
12026 | EOF | |
12027 | if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12028 | rm -rf conftest* | |
12029 | eval "ac_cv_func_shmat=yes" | |
12030 | else | |
12031 | echo "configure: failed program was:" >&5 | |
12032 | cat conftest.$ac_ext >&5 | |
12033 | rm -rf conftest* | |
12034 | eval "ac_cv_func_shmat=no" | |
12035 | fi | |
12036 | rm -f conftest* | |
12037 | fi | |
12038 | ||
12039 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12040 | echo "$ac_t""yes" 1>&6 | |
12041 | : | |
12042 | else | |
12043 | echo "$ac_t""no" 1>&6 | |
12044 | fi | |
12045 | ||
12046 | if test $ac_cv_func_shmat = no; then | |
12047 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
12048 | echo "configure:12049: checking for shmat in -lipc" >&5 | |
12049 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
12050 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12052 | else | |
12053 | ac_save_LIBS="$LIBS" | |
12054 | LIBS="-lipc $LIBS" | |
12055 | cat > conftest.$ac_ext <<EOF | |
12056 | #line 12057 "configure" | |
12057 | #include "confdefs.h" | |
12058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12059 | /* We use char because int might match the return type of a gcc2 | |
12060 | builtin and then its argument prototype would still apply. */ | |
12061 | char shmat(); | |
12062 | ||
12063 | int main() { | |
12064 | shmat() | |
12065 | ; return 0; } | |
12066 | EOF | |
12067 | if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12068 | rm -rf conftest* | |
12069 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12070 | else | |
12071 | echo "configure: failed program was:" >&5 | |
12072 | cat conftest.$ac_ext >&5 | |
12073 | rm -rf conftest* | |
12074 | eval "ac_cv_lib_$ac_lib_var=no" | |
12075 | fi | |
12076 | rm -f conftest* | |
12077 | LIBS="$ac_save_LIBS" | |
12078 | ||
12079 | fi | |
12080 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12081 | echo "$ac_t""yes" 1>&6 | |
12082 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12083 | else | |
12084 | echo "$ac_t""no" 1>&6 | |
12085 | fi | |
12086 | ||
12087 | fi | |
12088 | fi | |
12089 | ||
12090 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12091 | ac_save_LDFLAGS="$LDFLAGS" | |
12092 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12093 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12094 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12095 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12096 | # These have to be linked with before -lX11, unlike the other | |
12097 | # libraries we check for below, so use a different variable. | |
12098 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12099 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
12100 | echo "configure:12101: checking for IceConnectionNumber in -lICE" >&5 | |
12101 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
12102 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12104 | else | |
12105 | ac_save_LIBS="$LIBS" | |
12106 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12107 | cat > conftest.$ac_ext <<EOF | |
12108 | #line 12109 "configure" | |
12109 | #include "confdefs.h" | |
12110 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12111 | /* We use char because int might match the return type of a gcc2 | |
12112 | builtin and then its argument prototype would still apply. */ | |
12113 | char IceConnectionNumber(); | |
12114 | ||
12115 | int main() { | |
12116 | IceConnectionNumber() | |
12117 | ; return 0; } | |
12118 | EOF | |
12119 | if { (eval echo configure:12120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12120 | rm -rf conftest* | |
12121 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12122 | else | |
12123 | echo "configure: failed program was:" >&5 | |
12124 | cat conftest.$ac_ext >&5 | |
12125 | rm -rf conftest* | |
12126 | eval "ac_cv_lib_$ac_lib_var=no" | |
12127 | fi | |
12128 | rm -f conftest* | |
12129 | LIBS="$ac_save_LIBS" | |
12130 | ||
12131 | fi | |
12132 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12133 | echo "$ac_t""yes" 1>&6 | |
12134 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12135 | else | |
12136 | echo "$ac_t""no" 1>&6 | |
12137 | fi | |
12138 | ||
12139 | LDFLAGS="$ac_save_LDFLAGS" | |
12140 | ||
12141 | fi | |
12142 | ||
12143 | ||
12144 | if test "$no_x" = "yes"; then | |
12145 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12146 | fi | |
12147 | ||
12148 | GUI_TK_LIBRARY="$X_LIBS" | |
12149 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12150 | AFMINSTALL=afminstall | |
12151 | COMPILED_X_PROGRAM=0 | |
12152 | ||
12153 | if test "$wxUSE_NANOX" = "yes"; then | |
12154 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
12155 | echo "configure:12156: checking for MicroWindows/NanoX distribution" >&5 | |
12156 | if test "x$MICROWIN" = x ; then | |
12157 | echo "$ac_t""not found" 1>&6 | |
12158 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
12159 | else | |
12160 | echo "$ac_t""$MICROWIN" 1>&6 | |
12161 | cat >> confdefs.h <<\EOF | |
12162 | #define wxUSE_NANOX 1 | |
12163 | EOF | |
12164 | ||
12165 | fi | |
12166 | fi | |
12167 | ||
12168 | xpm_link= | |
12169 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
12170 | echo "configure:12171: checking for Xpm library" >&5 | |
12171 | ||
12172 | ac_find_libraries= | |
12173 | for ac_dir in $SEARCH_LIB; | |
12174 | do | |
12175 | for ac_extension in a so sl dylib; do | |
12176 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12177 | ac_find_libraries=$ac_dir | |
12178 | break 2 | |
12179 | fi | |
12180 | done | |
12181 | done | |
12182 | ||
12183 | if test "$ac_find_libraries" != "" ; then | |
12184 | ||
12185 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
12186 | result=$? | |
12187 | if test $result = 0; then | |
12188 | ac_path_to_link="" | |
12189 | else | |
12190 | ac_path_to_link=" -L$ac_find_libraries" | |
12191 | fi | |
12192 | ||
12193 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
12194 | xpm_link=" -lXpm" | |
12195 | cat >> confdefs.h <<\EOF | |
12196 | #define wxHAVE_LIB_XPM 1 | |
12197 | EOF | |
12198 | ||
12199 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12200 | else | |
12201 | cat > conftest.$ac_ext <<EOF | |
12202 | #line 12203 "configure" | |
12203 | #include "confdefs.h" | |
12204 | ||
12205 | #include <X11/xpm.h> | |
12206 | ||
12207 | int main() { | |
12208 | ||
12209 | int version; | |
12210 | version = XpmLibraryVersion(); | |
12211 | ||
12212 | ; return 0; } | |
12213 | EOF | |
12214 | if { (eval echo configure:12215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12215 | rm -rf conftest* | |
12216 | ||
12217 | xpm_link=" -lXpm" | |
12218 | cat >> confdefs.h <<\EOF | |
12219 | #define wxHAVE_LIB_XPM 1 | |
12220 | EOF | |
12221 | ||
12222 | echo "$ac_t""found in default search path" 1>&6 | |
12223 | COMPILED_X_PROGRAM=0 | |
12224 | ||
12225 | else | |
12226 | echo "configure: failed program was:" >&5 | |
12227 | cat conftest.$ac_ext >&5 | |
12228 | rm -rf conftest* | |
12229 | ||
12230 | echo "$ac_t""no" 1>&6 | |
12231 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12232 | ||
12233 | ||
12234 | fi | |
12235 | rm -f conftest* | |
12236 | fi | |
12237 | ||
12238 | if test "$wxUSE_NANOX" = "yes"; then | |
12239 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
12240 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
12241 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
12242 | else | |
12243 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
12244 | fi | |
12245 | ||
12246 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
12247 | TOOLKIT=X11 | |
12248 | GUIDIST=X11_DIST | |
12249 | fi | |
12250 | ||
12251 | if test "$wxUSE_WINE" = 1; then | |
12252 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
12253 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
12254 | echo "configure:12255: checking for windows.h" >&5 | |
12255 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12257 | else | |
12258 | cat > conftest.$ac_ext <<EOF | |
12259 | #line 12260 "configure" | |
12260 | #include "confdefs.h" | |
12261 | #include <windows.h> | |
12262 | EOF | |
12263 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12264 | { (eval echo configure:12265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12265 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12266 | if test -z "$ac_err"; then | |
12267 | rm -rf conftest* | |
12268 | eval "ac_cv_header_$ac_safe=yes" | |
12269 | else | |
12270 | echo "$ac_err" >&5 | |
12271 | echo "configure: failed program was:" >&5 | |
12272 | cat conftest.$ac_ext >&5 | |
12273 | rm -rf conftest* | |
12274 | eval "ac_cv_header_$ac_safe=no" | |
12275 | fi | |
12276 | rm -f conftest* | |
12277 | fi | |
12278 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12279 | echo "$ac_t""yes" 1>&6 | |
12280 | : | |
12281 | else | |
12282 | echo "$ac_t""no" 1>&6 | |
12283 | ||
12284 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
12285 | ||
12286 | fi | |
12287 | ||
12288 | ||
12289 | xpm_link= | |
12290 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
12291 | echo "configure:12292: checking for Xpm library" >&5 | |
12292 | ||
12293 | ac_find_libraries= | |
12294 | for ac_dir in $SEARCH_LIB; | |
12295 | do | |
12296 | for ac_extension in a so sl dylib; do | |
12297 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
12298 | ac_find_libraries=$ac_dir | |
12299 | break 2 | |
12300 | fi | |
12301 | done | |
12302 | done | |
12303 | ||
12304 | if test "$ac_find_libraries" != "" ; then | |
12305 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
12306 | xpm_link=" -lXpm" | |
12307 | cat >> confdefs.h <<\EOF | |
12308 | #define wxHAVE_LIB_XPM 1 | |
12309 | EOF | |
12310 | ||
12311 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12312 | else | |
12313 | echo "$ac_t""no" 1>&6 | |
12314 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12315 | fi | |
12316 | ||
12317 | mesa_link= | |
12318 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
12319 | echo "configure:12320: checking for Mesa library" >&5 | |
12320 | ||
12321 | ac_find_libraries= | |
12322 | for ac_dir in $SEARCH_LIB; | |
12323 | do | |
12324 | for ac_extension in a so sl dylib; do | |
12325 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12326 | ac_find_libraries=$ac_dir | |
12327 | break 2 | |
12328 | fi | |
12329 | done | |
12330 | done | |
12331 | ||
12332 | if test "$ac_find_libraries" != "" ; then | |
12333 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
12334 | mesa_link=" -lMesaGL" | |
12335 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
12336 | else | |
12337 | { echo "configure: error: no" 1>&2; exit 1; } | |
12338 | fi | |
12339 | ||
12340 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
12341 | TOOLKIT=MSW | |
12342 | GUIDIST=MSW_DIST | |
12343 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
12344 | fi | |
12345 | ||
12346 | if test "$wxUSE_MOTIF" = 1; then | |
12347 | if test "$no_x" = yes; then | |
12348 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12349 | cat >> confdefs.h <<\EOF | |
12350 | #define X_DISPLAY_MISSING 1 | |
12351 | EOF | |
12352 | ||
12353 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12354 | else | |
12355 | if test -n "$x_includes"; then | |
12356 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12357 | fi | |
12358 | ||
12359 | # It would also be nice to do this for all -L options, not just this one. | |
12360 | if test -n "$x_libraries"; then | |
12361 | X_LIBS="$X_LIBS -L$x_libraries" | |
12362 | # For Solaris; some versions of Sun CC require a space after -R and | |
12363 | # others require no space. Words are not sufficient . . . . | |
12364 | case "`(uname -sr) 2>/dev/null`" in | |
12365 | "SunOS 5"*) | |
12366 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
12367 | echo "configure:12368: checking whether -R must be followed by a space" >&5 | |
12368 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
12369 | cat > conftest.$ac_ext <<EOF | |
12370 | #line 12371 "configure" | |
12371 | #include "confdefs.h" | |
12372 | ||
12373 | int main() { | |
12374 | ||
12375 | ; return 0; } | |
12376 | EOF | |
12377 | if { (eval echo configure:12378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12378 | rm -rf conftest* | |
12379 | ac_R_nospace=yes | |
12380 | else | |
12381 | echo "configure: failed program was:" >&5 | |
12382 | cat conftest.$ac_ext >&5 | |
12383 | rm -rf conftest* | |
12384 | ac_R_nospace=no | |
12385 | fi | |
12386 | rm -f conftest* | |
12387 | if test $ac_R_nospace = yes; then | |
12388 | echo "$ac_t""no" 1>&6 | |
12389 | X_LIBS="$X_LIBS -R$x_libraries" | |
12390 | else | |
12391 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12392 | cat > conftest.$ac_ext <<EOF | |
12393 | #line 12394 "configure" | |
12394 | #include "confdefs.h" | |
12395 | ||
12396 | int main() { | |
12397 | ||
12398 | ; return 0; } | |
12399 | EOF | |
12400 | if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12401 | rm -rf conftest* | |
12402 | ac_R_space=yes | |
12403 | else | |
12404 | echo "configure: failed program was:" >&5 | |
12405 | cat conftest.$ac_ext >&5 | |
12406 | rm -rf conftest* | |
12407 | ac_R_space=no | |
12408 | fi | |
12409 | rm -f conftest* | |
12410 | if test $ac_R_space = yes; then | |
12411 | echo "$ac_t""yes" 1>&6 | |
12412 | X_LIBS="$X_LIBS -R $x_libraries" | |
12413 | else | |
12414 | echo "$ac_t""neither works" 1>&6 | |
12415 | fi | |
12416 | fi | |
12417 | LIBS="$ac_xsave_LIBS" | |
12418 | esac | |
12419 | fi | |
12420 | ||
12421 | # Check for system-dependent libraries X programs must link with. | |
12422 | # Do this before checking for the system-independent R6 libraries | |
12423 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12424 | ||
12425 | if test "$ISC" = yes; then | |
12426 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12427 | else | |
12428 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
12429 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
12430 | # the Alpha needs dnet_stub (dnet does not exist). | |
12431 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
12432 | echo "configure:12433: checking for dnet_ntoa in -ldnet" >&5 | |
12433 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
12434 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12436 | else | |
12437 | ac_save_LIBS="$LIBS" | |
12438 | LIBS="-ldnet $LIBS" | |
12439 | cat > conftest.$ac_ext <<EOF | |
12440 | #line 12441 "configure" | |
12441 | #include "confdefs.h" | |
12442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12443 | /* We use char because int might match the return type of a gcc2 | |
12444 | builtin and then its argument prototype would still apply. */ | |
12445 | char dnet_ntoa(); | |
12446 | ||
12447 | int main() { | |
12448 | dnet_ntoa() | |
12449 | ; return 0; } | |
12450 | EOF | |
12451 | if { (eval echo configure:12452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12452 | rm -rf conftest* | |
12453 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12454 | else | |
12455 | echo "configure: failed program was:" >&5 | |
12456 | cat conftest.$ac_ext >&5 | |
12457 | rm -rf conftest* | |
12458 | eval "ac_cv_lib_$ac_lib_var=no" | |
12459 | fi | |
12460 | rm -f conftest* | |
12461 | LIBS="$ac_save_LIBS" | |
12462 | ||
12463 | fi | |
12464 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12465 | echo "$ac_t""yes" 1>&6 | |
12466 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
12467 | else | |
12468 | echo "$ac_t""no" 1>&6 | |
12469 | fi | |
12470 | ||
12471 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
12472 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
12473 | echo "configure:12474: checking for dnet_ntoa in -ldnet_stub" >&5 | |
12474 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
12475 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12477 | else | |
12478 | ac_save_LIBS="$LIBS" | |
12479 | LIBS="-ldnet_stub $LIBS" | |
12480 | cat > conftest.$ac_ext <<EOF | |
12481 | #line 12482 "configure" | |
12482 | #include "confdefs.h" | |
12483 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12484 | /* We use char because int might match the return type of a gcc2 | |
12485 | builtin and then its argument prototype would still apply. */ | |
12486 | char dnet_ntoa(); | |
12487 | ||
12488 | int main() { | |
12489 | dnet_ntoa() | |
12490 | ; return 0; } | |
12491 | EOF | |
12492 | if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12493 | rm -rf conftest* | |
12494 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12495 | else | |
12496 | echo "configure: failed program was:" >&5 | |
12497 | cat conftest.$ac_ext >&5 | |
12498 | rm -rf conftest* | |
12499 | eval "ac_cv_lib_$ac_lib_var=no" | |
12500 | fi | |
12501 | rm -f conftest* | |
12502 | LIBS="$ac_save_LIBS" | |
12503 | ||
12504 | fi | |
12505 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12506 | echo "$ac_t""yes" 1>&6 | |
12507 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
12508 | else | |
12509 | echo "$ac_t""no" 1>&6 | |
12510 | fi | |
12511 | ||
12512 | fi | |
12513 | ||
12514 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
12515 | # to get the SysV transport functions. | |
12516 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
12517 | # needs -lnsl. | |
12518 | # The nsl library prevents programs from opening the X display | |
12519 | # on Irix 5.2, according to dickey@clark.net. | |
12520 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
12521 | echo "configure:12522: checking for gethostbyname" >&5 | |
12522 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
12523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12524 | else | |
12525 | cat > conftest.$ac_ext <<EOF | |
12526 | #line 12527 "configure" | |
12527 | #include "confdefs.h" | |
12528 | /* System header to define __stub macros and hopefully few prototypes, | |
12529 | which can conflict with char gethostbyname(); below. */ | |
12530 | #include <assert.h> | |
12531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12532 | /* We use char because int might match the return type of a gcc2 | |
12533 | builtin and then its argument prototype would still apply. */ | |
12534 | char gethostbyname(); | |
12535 | ||
12536 | int main() { | |
12537 | ||
12538 | /* The GNU C library defines this for functions which it implements | |
12539 | to always fail with ENOSYS. Some functions are actually named | |
12540 | something starting with __ and the normal name is an alias. */ | |
12541 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
12542 | choke me | |
12543 | #else | |
12544 | gethostbyname(); | |
12545 | #endif | |
12546 | ||
12547 | ; return 0; } | |
12548 | EOF | |
12549 | if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12550 | rm -rf conftest* | |
12551 | eval "ac_cv_func_gethostbyname=yes" | |
12552 | else | |
12553 | echo "configure: failed program was:" >&5 | |
12554 | cat conftest.$ac_ext >&5 | |
12555 | rm -rf conftest* | |
12556 | eval "ac_cv_func_gethostbyname=no" | |
12557 | fi | |
12558 | rm -f conftest* | |
12559 | fi | |
12560 | ||
12561 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
12562 | echo "$ac_t""yes" 1>&6 | |
12563 | : | |
12564 | else | |
12565 | echo "$ac_t""no" 1>&6 | |
12566 | fi | |
12567 | ||
12568 | if test $ac_cv_func_gethostbyname = no; then | |
12569 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
12570 | echo "configure:12571: checking for gethostbyname in -lnsl" >&5 | |
12571 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
12572 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12574 | else | |
12575 | ac_save_LIBS="$LIBS" | |
12576 | LIBS="-lnsl $LIBS" | |
12577 | cat > conftest.$ac_ext <<EOF | |
12578 | #line 12579 "configure" | |
12579 | #include "confdefs.h" | |
12580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12581 | /* We use char because int might match the return type of a gcc2 | |
12582 | builtin and then its argument prototype would still apply. */ | |
12583 | char gethostbyname(); | |
12584 | ||
12585 | int main() { | |
12586 | gethostbyname() | |
12587 | ; return 0; } | |
12588 | EOF | |
12589 | if { (eval echo configure:12590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12590 | rm -rf conftest* | |
12591 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12592 | else | |
12593 | echo "configure: failed program was:" >&5 | |
12594 | cat conftest.$ac_ext >&5 | |
12595 | rm -rf conftest* | |
12596 | eval "ac_cv_lib_$ac_lib_var=no" | |
12597 | fi | |
12598 | rm -f conftest* | |
12599 | LIBS="$ac_save_LIBS" | |
12600 | ||
12601 | fi | |
12602 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12603 | echo "$ac_t""yes" 1>&6 | |
12604 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12605 | else | |
12606 | echo "$ac_t""no" 1>&6 | |
12607 | fi | |
12608 | ||
12609 | fi | |
12610 | ||
12611 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12612 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12613 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
12614 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
12615 | # gethostby* variants that don't use the nameserver (or something). | |
12616 | # -lsocket must be given before -lnsl if both are needed. | |
12617 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12618 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
12619 | echo "configure:12620: checking for connect" >&5 | |
12620 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
12621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12622 | else | |
12623 | cat > conftest.$ac_ext <<EOF | |
12624 | #line 12625 "configure" | |
12625 | #include "confdefs.h" | |
12626 | /* System header to define __stub macros and hopefully few prototypes, | |
12627 | which can conflict with char connect(); below. */ | |
12628 | #include <assert.h> | |
12629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12630 | /* We use char because int might match the return type of a gcc2 | |
12631 | builtin and then its argument prototype would still apply. */ | |
12632 | char connect(); | |
12633 | ||
12634 | int main() { | |
12635 | ||
12636 | /* The GNU C library defines this for functions which it implements | |
12637 | to always fail with ENOSYS. Some functions are actually named | |
12638 | something starting with __ and the normal name is an alias. */ | |
12639 | #if defined (__stub_connect) || defined (__stub___connect) | |
12640 | choke me | |
12641 | #else | |
12642 | connect(); | |
12643 | #endif | |
12644 | ||
12645 | ; return 0; } | |
12646 | EOF | |
12647 | if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12648 | rm -rf conftest* | |
12649 | eval "ac_cv_func_connect=yes" | |
12650 | else | |
12651 | echo "configure: failed program was:" >&5 | |
12652 | cat conftest.$ac_ext >&5 | |
12653 | rm -rf conftest* | |
12654 | eval "ac_cv_func_connect=no" | |
12655 | fi | |
12656 | rm -f conftest* | |
12657 | fi | |
12658 | ||
12659 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12660 | echo "$ac_t""yes" 1>&6 | |
12661 | : | |
12662 | else | |
12663 | echo "$ac_t""no" 1>&6 | |
12664 | fi | |
12665 | ||
12666 | if test $ac_cv_func_connect = no; then | |
12667 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
12668 | echo "configure:12669: checking for connect in -lsocket" >&5 | |
12669 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
12670 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12672 | else | |
12673 | ac_save_LIBS="$LIBS" | |
12674 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
12675 | cat > conftest.$ac_ext <<EOF | |
12676 | #line 12677 "configure" | |
12677 | #include "confdefs.h" | |
12678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12679 | /* We use char because int might match the return type of a gcc2 | |
12680 | builtin and then its argument prototype would still apply. */ | |
12681 | char connect(); | |
12682 | ||
12683 | int main() { | |
12684 | connect() | |
12685 | ; return 0; } | |
12686 | EOF | |
12687 | if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12688 | rm -rf conftest* | |
12689 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12690 | else | |
12691 | echo "configure: failed program was:" >&5 | |
12692 | cat conftest.$ac_ext >&5 | |
12693 | rm -rf conftest* | |
12694 | eval "ac_cv_lib_$ac_lib_var=no" | |
12695 | fi | |
12696 | rm -f conftest* | |
12697 | LIBS="$ac_save_LIBS" | |
12698 | ||
12699 | fi | |
12700 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12701 | echo "$ac_t""yes" 1>&6 | |
12702 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
12703 | else | |
12704 | echo "$ac_t""no" 1>&6 | |
12705 | fi | |
12706 | ||
12707 | fi | |
12708 | ||
12709 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
12710 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
12711 | echo "configure:12712: checking for remove" >&5 | |
12712 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
12713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12714 | else | |
12715 | cat > conftest.$ac_ext <<EOF | |
12716 | #line 12717 "configure" | |
12717 | #include "confdefs.h" | |
12718 | /* System header to define __stub macros and hopefully few prototypes, | |
12719 | which can conflict with char remove(); below. */ | |
12720 | #include <assert.h> | |
12721 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12722 | /* We use char because int might match the return type of a gcc2 | |
12723 | builtin and then its argument prototype would still apply. */ | |
12724 | char remove(); | |
12725 | ||
12726 | int main() { | |
12727 | ||
12728 | /* The GNU C library defines this for functions which it implements | |
12729 | to always fail with ENOSYS. Some functions are actually named | |
12730 | something starting with __ and the normal name is an alias. */ | |
12731 | #if defined (__stub_remove) || defined (__stub___remove) | |
12732 | choke me | |
12733 | #else | |
12734 | remove(); | |
12735 | #endif | |
12736 | ||
12737 | ; return 0; } | |
12738 | EOF | |
12739 | if { (eval echo configure:12740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12740 | rm -rf conftest* | |
12741 | eval "ac_cv_func_remove=yes" | |
12742 | else | |
12743 | echo "configure: failed program was:" >&5 | |
12744 | cat conftest.$ac_ext >&5 | |
12745 | rm -rf conftest* | |
12746 | eval "ac_cv_func_remove=no" | |
12747 | fi | |
12748 | rm -f conftest* | |
12749 | fi | |
12750 | ||
12751 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12752 | echo "$ac_t""yes" 1>&6 | |
12753 | : | |
12754 | else | |
12755 | echo "$ac_t""no" 1>&6 | |
12756 | fi | |
12757 | ||
12758 | if test $ac_cv_func_remove = no; then | |
12759 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
12760 | echo "configure:12761: checking for remove in -lposix" >&5 | |
12761 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
12762 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12764 | else | |
12765 | ac_save_LIBS="$LIBS" | |
12766 | LIBS="-lposix $LIBS" | |
12767 | cat > conftest.$ac_ext <<EOF | |
12768 | #line 12769 "configure" | |
12769 | #include "confdefs.h" | |
12770 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12771 | /* We use char because int might match the return type of a gcc2 | |
12772 | builtin and then its argument prototype would still apply. */ | |
12773 | char remove(); | |
12774 | ||
12775 | int main() { | |
12776 | remove() | |
12777 | ; return 0; } | |
12778 | EOF | |
12779 | if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12780 | rm -rf conftest* | |
12781 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12782 | else | |
12783 | echo "configure: failed program was:" >&5 | |
12784 | cat conftest.$ac_ext >&5 | |
12785 | rm -rf conftest* | |
12786 | eval "ac_cv_lib_$ac_lib_var=no" | |
12787 | fi | |
12788 | rm -f conftest* | |
12789 | LIBS="$ac_save_LIBS" | |
12790 | ||
12791 | fi | |
12792 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12793 | echo "$ac_t""yes" 1>&6 | |
12794 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
12795 | else | |
12796 | echo "$ac_t""no" 1>&6 | |
12797 | fi | |
12798 | ||
12799 | fi | |
12800 | ||
12801 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
12802 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
12803 | echo "configure:12804: checking for shmat" >&5 | |
12804 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
12805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12806 | else | |
12807 | cat > conftest.$ac_ext <<EOF | |
12808 | #line 12809 "configure" | |
12809 | #include "confdefs.h" | |
12810 | /* System header to define __stub macros and hopefully few prototypes, | |
12811 | which can conflict with char shmat(); below. */ | |
12812 | #include <assert.h> | |
12813 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12814 | /* We use char because int might match the return type of a gcc2 | |
12815 | builtin and then its argument prototype would still apply. */ | |
12816 | char shmat(); | |
12817 | ||
12818 | int main() { | |
12819 | ||
12820 | /* The GNU C library defines this for functions which it implements | |
12821 | to always fail with ENOSYS. Some functions are actually named | |
12822 | something starting with __ and the normal name is an alias. */ | |
12823 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12824 | choke me | |
12825 | #else | |
12826 | shmat(); | |
12827 | #endif | |
12828 | ||
12829 | ; return 0; } | |
12830 | EOF | |
12831 | if { (eval echo configure:12832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12832 | rm -rf conftest* | |
12833 | eval "ac_cv_func_shmat=yes" | |
12834 | else | |
12835 | echo "configure: failed program was:" >&5 | |
12836 | cat conftest.$ac_ext >&5 | |
12837 | rm -rf conftest* | |
12838 | eval "ac_cv_func_shmat=no" | |
12839 | fi | |
12840 | rm -f conftest* | |
12841 | fi | |
12842 | ||
12843 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12844 | echo "$ac_t""yes" 1>&6 | |
12845 | : | |
12846 | else | |
12847 | echo "$ac_t""no" 1>&6 | |
12848 | fi | |
12849 | ||
12850 | if test $ac_cv_func_shmat = no; then | |
12851 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
12852 | echo "configure:12853: checking for shmat in -lipc" >&5 | |
12853 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
12854 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12856 | else | |
12857 | ac_save_LIBS="$LIBS" | |
12858 | LIBS="-lipc $LIBS" | |
12859 | cat > conftest.$ac_ext <<EOF | |
12860 | #line 12861 "configure" | |
12861 | #include "confdefs.h" | |
12862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12863 | /* We use char because int might match the return type of a gcc2 | |
12864 | builtin and then its argument prototype would still apply. */ | |
12865 | char shmat(); | |
12866 | ||
12867 | int main() { | |
12868 | shmat() | |
12869 | ; return 0; } | |
12870 | EOF | |
12871 | if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12872 | rm -rf conftest* | |
12873 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12874 | else | |
12875 | echo "configure: failed program was:" >&5 | |
12876 | cat conftest.$ac_ext >&5 | |
12877 | rm -rf conftest* | |
12878 | eval "ac_cv_lib_$ac_lib_var=no" | |
12879 | fi | |
12880 | rm -f conftest* | |
12881 | LIBS="$ac_save_LIBS" | |
12882 | ||
12883 | fi | |
12884 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12885 | echo "$ac_t""yes" 1>&6 | |
12886 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
12887 | else | |
12888 | echo "$ac_t""no" 1>&6 | |
12889 | fi | |
12890 | ||
12891 | fi | |
12892 | fi | |
12893 | ||
12894 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
12895 | ac_save_LDFLAGS="$LDFLAGS" | |
12896 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
12897 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12898 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12899 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12900 | # These have to be linked with before -lX11, unlike the other | |
12901 | # libraries we check for below, so use a different variable. | |
12902 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
12903 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
12904 | echo "configure:12905: checking for IceConnectionNumber in -lICE" >&5 | |
12905 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
12906 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12908 | else | |
12909 | ac_save_LIBS="$LIBS" | |
12910 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
12911 | cat > conftest.$ac_ext <<EOF | |
12912 | #line 12913 "configure" | |
12913 | #include "confdefs.h" | |
12914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12915 | /* We use char because int might match the return type of a gcc2 | |
12916 | builtin and then its argument prototype would still apply. */ | |
12917 | char IceConnectionNumber(); | |
12918 | ||
12919 | int main() { | |
12920 | IceConnectionNumber() | |
12921 | ; return 0; } | |
12922 | EOF | |
12923 | if { (eval echo configure:12924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12924 | rm -rf conftest* | |
12925 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12926 | else | |
12927 | echo "configure: failed program was:" >&5 | |
12928 | cat conftest.$ac_ext >&5 | |
12929 | rm -rf conftest* | |
12930 | eval "ac_cv_lib_$ac_lib_var=no" | |
12931 | fi | |
12932 | rm -f conftest* | |
12933 | LIBS="$ac_save_LIBS" | |
12934 | ||
12935 | fi | |
12936 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12937 | echo "$ac_t""yes" 1>&6 | |
12938 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
12939 | else | |
12940 | echo "$ac_t""no" 1>&6 | |
12941 | fi | |
12942 | ||
12943 | LDFLAGS="$ac_save_LDFLAGS" | |
12944 | ||
12945 | fi | |
12946 | ||
12947 | ||
12948 | if test "$no_x" = "yes"; then | |
12949 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12950 | fi | |
12951 | ||
12952 | GUI_TK_LIBRARY="$X_LIBS" | |
12953 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
12954 | AFMINSTALL=afminstall | |
12955 | COMPILED_X_PROGRAM=0 | |
12956 | ||
12957 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
12958 | echo "configure:12959: checking for Motif/Lesstif headers" >&5 | |
12959 | ||
12960 | ac_find_includes= | |
12961 | for ac_dir in $SEARCH_INCLUDE; | |
12962 | do | |
12963 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12964 | ac_find_includes=$ac_dir | |
12965 | break | |
12966 | fi | |
12967 | done | |
12968 | ||
12969 | if test "$ac_find_includes" != "" ; then | |
12970 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12971 | else | |
12972 | cat > conftest.$ac_ext <<EOF | |
12973 | #line 12974 "configure" | |
12974 | #include "confdefs.h" | |
12975 | ||
12976 | #include <Xm/Xm.h> | |
12977 | ||
12978 | int main() { | |
12979 | ||
12980 | int version; | |
12981 | version = xmUseVersion; | |
12982 | ||
12983 | ; return 0; } | |
12984 | EOF | |
12985 | if { (eval echo configure:12986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12986 | rm -rf conftest* | |
12987 | ||
12988 | echo "$ac_t""found in default search path" 1>&6 | |
12989 | COMPILED_X_PROGRAM=1 | |
12990 | ||
12991 | else | |
12992 | echo "configure: failed program was:" >&5 | |
12993 | cat conftest.$ac_ext >&5 | |
12994 | rm -rf conftest* | |
12995 | ||
12996 | echo "$ac_t""no" 1>&6 | |
12997 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12998 | ||
12999 | ||
13000 | fi | |
13001 | rm -f conftest* | |
13002 | fi | |
13003 | ||
13004 | if test "$COMPILED_X_PROGRAM" = 0; then | |
13005 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
13006 | echo "configure:13007: checking for Motif/Lesstif library" >&5 | |
13007 | ||
13008 | ac_find_libraries= | |
13009 | for ac_dir in $SEARCH_LIB; | |
13010 | do | |
13011 | for ac_extension in a so sl dylib; do | |
13012 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
13013 | ac_find_libraries=$ac_dir | |
13014 | break 2 | |
13015 | fi | |
13016 | done | |
13017 | done | |
13018 | ||
13019 | if test "$ac_find_libraries" != "" ; then | |
13020 | ||
13021 | ac_path_to_include=$ac_find_includes | |
13022 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
13023 | result=$? | |
13024 | if test $result = 0; then | |
13025 | ac_path_to_include="" | |
13026 | else | |
13027 | ac_path_to_include=" -I$ac_find_includes" | |
13028 | fi | |
13029 | ||
13030 | ||
13031 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13032 | result=$? | |
13033 | if test $result = 0; then | |
13034 | ac_path_to_link="" | |
13035 | else | |
13036 | ac_path_to_link=" -L$ac_find_libraries" | |
13037 | fi | |
13038 | ||
13039 | ||
13040 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13041 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
13042 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13043 | else | |
13044 | cat > conftest.$ac_ext <<EOF | |
13045 | #line 13046 "configure" | |
13046 | #include "confdefs.h" | |
13047 | ||
13048 | #include <Xm/Xm.h> | |
13049 | ||
13050 | int main() { | |
13051 | ||
13052 | int version; | |
13053 | version = xmUseVersion; | |
13054 | ||
13055 | ; return 0; } | |
13056 | EOF | |
13057 | if { (eval echo configure:13058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13058 | rm -rf conftest* | |
13059 | ||
13060 | echo "$ac_t""found in default search path" 1>&6 | |
13061 | COMPILED_X_PROGRAM=1 | |
13062 | ||
13063 | else | |
13064 | echo "configure: failed program was:" >&5 | |
13065 | cat conftest.$ac_ext >&5 | |
13066 | rm -rf conftest* | |
13067 | ||
13068 | echo "$ac_t""no" 1>&6 | |
13069 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
13070 | ||
13071 | ||
13072 | fi | |
13073 | rm -f conftest* | |
13074 | fi | |
13075 | fi | |
13076 | ||
13077 | xpm_link= | |
13078 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
13079 | echo "configure:13080: checking for Xpm library" >&5 | |
13080 | ||
13081 | ac_find_libraries= | |
13082 | for ac_dir in $SEARCH_LIB; | |
13083 | do | |
13084 | for ac_extension in a so sl dylib; do | |
13085 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13086 | ac_find_libraries=$ac_dir | |
13087 | break 2 | |
13088 | fi | |
13089 | done | |
13090 | done | |
13091 | ||
13092 | if test "$ac_find_libraries" != "" ; then | |
13093 | ||
13094 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13095 | result=$? | |
13096 | if test $result = 0; then | |
13097 | ac_path_to_link="" | |
13098 | else | |
13099 | ac_path_to_link=" -L$ac_find_libraries" | |
13100 | fi | |
13101 | ||
13102 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13103 | xpm_link=" -lXpm" | |
13104 | cat >> confdefs.h <<\EOF | |
13105 | #define wxHAVE_LIB_XPM 1 | |
13106 | EOF | |
13107 | ||
13108 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13109 | else | |
13110 | cat > conftest.$ac_ext <<EOF | |
13111 | #line 13112 "configure" | |
13112 | #include "confdefs.h" | |
13113 | ||
13114 | #include <X11/xpm.h> | |
13115 | ||
13116 | int main() { | |
13117 | ||
13118 | int version; | |
13119 | version = XpmLibraryVersion(); | |
13120 | ||
13121 | ; return 0; } | |
13122 | EOF | |
13123 | if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13124 | rm -rf conftest* | |
13125 | ||
13126 | xpm_link=" -lXpm" | |
13127 | cat >> confdefs.h <<\EOF | |
13128 | #define wxHAVE_LIB_XPM 1 | |
13129 | EOF | |
13130 | ||
13131 | echo "$ac_t""found in default search path" 1>&6 | |
13132 | COMPILED_X_PROGRAM=0 | |
13133 | ||
13134 | else | |
13135 | echo "configure: failed program was:" >&5 | |
13136 | cat conftest.$ac_ext >&5 | |
13137 | rm -rf conftest* | |
13138 | ||
13139 | echo "$ac_t""no" 1>&6 | |
13140 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13141 | ||
13142 | ||
13143 | fi | |
13144 | rm -f conftest* | |
13145 | fi | |
13146 | ||
13147 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
13148 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
13149 | TOOLKIT=MOTIF | |
13150 | GUIDIST=MOTIF_DIST | |
13151 | fi | |
13152 | ||
13153 | if test "$wxUSE_MAC" = 1; then | |
13154 | if test "$wxUSE_PRECOMP" = "yes"; then | |
13155 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
13156 | else | |
13157 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
13158 | fi | |
13159 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
13160 | CFLAGS="$CFLAGS -fpascal-strings" | |
13161 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
13162 | ||
13163 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
13164 | TOOLKIT=MAC | |
13165 | GUIDIST=MACX_DIST | |
13166 | fi | |
13167 | ||
13168 | if test "$wxUSE_PM" = 1; then | |
13169 | TOOLKIT=PM | |
13170 | GUIDIST=GTK_DIST | |
13171 | fi | |
13172 | ||
13173 | if test "$TOOLKIT" = "PM" ; then | |
13174 | TOOLKIT_DIR="os2" | |
13175 | else | |
13176 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
13177 | fi | |
13178 | ||
13179 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
13180 | ||
13181 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
13182 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
13183 | ||
13184 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
13185 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
13186 | ||
13187 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
13188 | if test "$wxUSE_X11" = 1; then | |
13189 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
13190 | else | |
13191 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13192 | fi | |
13193 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
13194 | WIDGET_SET=univ | |
13195 | else | |
13196 | ALL_OBJECTS="\$(GUIOBJS)" | |
13197 | ALL_SOURCES="\$(ALL_SOURCES)" | |
13198 | ALL_HEADERS="\$(ALL_HEADERS)" | |
13199 | fi | |
13200 | ||
13201 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
13202 | ||
13203 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
13204 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
13205 | fi | |
13206 | ||
13207 | if test "$wxUSE_HTML" = "yes"; then | |
13208 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
13209 | fi | |
13210 | ||
13211 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
13212 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
13213 | fi | |
13214 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
13215 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
13216 | fi | |
13217 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
13218 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
13219 | fi | |
13220 | ||
13221 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
13222 | DISTDIR="wx\$(TOOLKIT)" | |
13223 | else | |
13224 | USE_GUI=0 | |
13225 | ||
13226 | TOOLKIT_DIR="base" | |
13227 | ||
13228 | if test "$USE_WIN32" = 1 ; then | |
13229 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
13230 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
13231 | ||
13232 | TOOLKIT="MSW" | |
13233 | else | |
13234 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
13235 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
13236 | fi | |
13237 | ||
13238 | ALL_SOURCES="\$(ALL_SOURCES)" | |
13239 | ALL_HEADERS="\$(ALL_HEADERS)" | |
13240 | ||
13241 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
13242 | ||
13243 | GUIDIST="BASE_DIST" | |
13244 | DISTDIR="wxBase" | |
13245 | fi | |
13246 | ||
13247 | ||
13248 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
13249 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
13250 | fi | |
13251 | ||
13252 | if test "$wxUSE_REGEX" = "builtin" ; then | |
13253 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
13254 | fi | |
13255 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
13256 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
13257 | fi | |
13258 | ||
13259 | ||
13260 | if test "$wxUSE_OPENGL" = "yes"; then | |
13261 | if test "$wxUSE_MAC" = 1; then | |
13262 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
13263 | elif test "$wxUSE_MSW" = 1; then | |
13264 | OPENGL_LIBS="-lopengl32 -lglu32" | |
13265 | else | |
13266 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
13267 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
13268 | echo "configure:13269: checking for GL/gl.h" >&5 | |
13269 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13271 | else | |
13272 | cat > conftest.$ac_ext <<EOF | |
13273 | #line 13274 "configure" | |
13274 | #include "confdefs.h" | |
13275 | #include <GL/gl.h> | |
13276 | EOF | |
13277 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13278 | { (eval echo configure:13279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13279 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13280 | if test -z "$ac_err"; then | |
13281 | rm -rf conftest* | |
13282 | eval "ac_cv_header_$ac_safe=yes" | |
13283 | else | |
13284 | echo "$ac_err" >&5 | |
13285 | echo "configure: failed program was:" >&5 | |
13286 | cat conftest.$ac_ext >&5 | |
13287 | rm -rf conftest* | |
13288 | eval "ac_cv_header_$ac_safe=no" | |
13289 | fi | |
13290 | rm -f conftest* | |
13291 | fi | |
13292 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13293 | echo "$ac_t""yes" 1>&6 | |
13294 | ||
13295 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
13296 | echo "configure:13297: checking for -lGL" >&5 | |
13297 | ||
13298 | ac_find_libraries= | |
13299 | for ac_dir in $SEARCH_LIB; | |
13300 | do | |
13301 | for ac_extension in a so sl dylib; do | |
13302 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
13303 | ac_find_libraries=$ac_dir | |
13304 | break 2 | |
13305 | fi | |
13306 | done | |
13307 | done | |
13308 | ||
13309 | if test "$ac_find_libraries" != "" ; then | |
13310 | ||
13311 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13312 | result=$? | |
13313 | if test $result = 0; then | |
13314 | ac_path_to_link="" | |
13315 | else | |
13316 | ac_path_to_link=" -L$ac_find_libraries" | |
13317 | fi | |
13318 | ||
13319 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
13320 | LDFLAGS_GL="$LDFLAGS" | |
13321 | else | |
13322 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13323 | fi | |
13324 | OPENGL_LIBS="-lGL -lGLU" | |
13325 | echo "$ac_t""yes" 1>&6 | |
13326 | else | |
13327 | echo "$ac_t""no" 1>&6 | |
13328 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
13329 | echo "configure:13330: checking for -lMesaGL" >&5 | |
13330 | ||
13331 | ac_find_libraries= | |
13332 | for ac_dir in $SEARCH_LIB; | |
13333 | do | |
13334 | for ac_extension in a so sl dylib; do | |
13335 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13336 | ac_find_libraries=$ac_dir | |
13337 | break 2 | |
13338 | fi | |
13339 | done | |
13340 | done | |
13341 | ||
13342 | if test "$ac_find_libraries" != "" ; then | |
13343 | ||
13344 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
13345 | result=$? | |
13346 | if test $result = 0; then | |
13347 | ac_path_to_link="" | |
13348 | else | |
13349 | ac_path_to_link=" -L$ac_find_libraries" | |
13350 | fi | |
13351 | ||
13352 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
13353 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
13354 | echo "$ac_t""yes" 1>&6 | |
13355 | else | |
13356 | echo "$ac_t""no" 1>&6 | |
13357 | fi | |
13358 | fi | |
13359 | ||
13360 | else | |
13361 | echo "$ac_t""no" 1>&6 | |
13362 | fi | |
13363 | ||
13364 | ||
13365 | if test "x$OPENGL_LIBS" = "x"; then | |
13366 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
13367 | fi | |
13368 | fi | |
13369 | ||
13370 | if test "$wxUSE_OPENGL" = "yes"; then | |
13371 | cat >> confdefs.h <<\EOF | |
13372 | #define wxUSE_OPENGL 1 | |
13373 | EOF | |
13374 | ||
13375 | cat >> confdefs.h <<\EOF | |
13376 | #define wxUSE_GLCANVAS 1 | |
13377 | EOF | |
13378 | ||
13379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
13380 | fi | |
13381 | fi | |
13382 | ||
13383 | if test -z "$TOOLKIT_VPATH" ; then | |
13384 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
13385 | fi | |
13386 | ||
13387 | if test -n "$TOOLKIT" ; then | |
13388 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
13389 | fi | |
13390 | ||
13391 | lib_unicode_suffix= | |
13392 | if test "$wxUSE_UNICODE" = "yes"; then | |
13393 | lib_unicode_suffix=u | |
13394 | fi | |
13395 | ||
13396 | lib_debug_suffix= | |
13397 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
13398 | lib_debug_suffix=d | |
13399 | fi | |
13400 | ||
13401 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
13402 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
13403 | ||
13404 | if test "$cross_compiling" = "yes"; then | |
13405 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
13406 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
13407 | fi | |
13408 | ||
13409 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
13410 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
13411 | ||
13412 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13413 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
13414 | ||
13415 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
13416 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13417 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
13418 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13419 | ||
13420 | case "${host}" in | |
13421 | *-*-cygwin* | *-*-mingw32* ) | |
13422 | ||
13423 | ||
13424 | ||
13425 | if test "$cross_compiling" != "yes"; then | |
13426 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13427 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
13428 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
13429 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13430 | else | |
13431 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
13432 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
13433 | fi | |
13434 | ;; | |
13435 | ||
13436 | *-*-darwin* ) | |
13437 | if test "$wxUSE_MAC" = 1; then | |
13438 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
13439 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
13440 | fi | |
13441 | ;; | |
13442 | esac | |
13443 | ||
13444 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
13445 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
13446 | ||
13447 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
13448 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
13449 | ||
13450 | if test "$wxUSE_OPENGL" = "yes"; then | |
13451 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
13452 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
13453 | fi | |
13454 | ||
13455 | ||
13456 | ||
13457 | if test "$wxUSE_SHARED" = "yes"; then | |
13458 | case "${host}" in | |
13459 | *-pc-os2_emx | *-pc-os2-emx | \ | |
13460 | *-pc-msdosdjgpp ) | |
13461 | wxUSE_SHARED=no | |
13462 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
13463 | ;; | |
13464 | esac | |
13465 | fi | |
13466 | ||
13467 | if test "$wxUSE_SHARED" = "yes"; then | |
13468 | ||
13469 | if test "$wxUSE_OPENGL" = "yes"; then | |
13470 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
13471 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
13472 | else | |
13473 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
13474 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
13475 | fi | |
13476 | ||
13477 | if test "$GCC" = "yes"; then | |
13478 | PIC_FLAG="-fPIC" | |
13479 | fi | |
13480 | ||
13481 | SHARED_LD="${CXX} -shared -o" | |
13482 | ||
13483 | case "${host}" in | |
13484 | *-hp-hpux* ) | |
13485 | if test "$GCC" == "yes"; then | |
13486 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
13487 | else | |
13488 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
13489 | ||
13490 | SHARED_LD="${CXX} -b -o" | |
13491 | PIC_FLAG="+Z" | |
13492 | fi | |
13493 | ||
13494 | if test "$wxUSE_OPENGL" = "yes"; then | |
13495 | WX_ALL_INSTALLED="preinstall_gl" | |
13496 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13497 | else | |
13498 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13499 | fi | |
13500 | ;; | |
13501 | ||
13502 | *-*-linux* ) | |
13503 | if test "$GCC" != "yes"; then | |
13504 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
13505 | echo "configure:13506: checking for Intel compiler" >&5 | |
13506 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then | |
13507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13508 | else | |
13509 | ||
13510 | cat > conftest.$ac_ext <<EOF | |
13511 | #line 13512 "configure" | |
13512 | #include "confdefs.h" | |
13513 | ||
13514 | int main() { | |
13515 | ||
13516 | #ifndef __INTEL_COMPILER | |
13517 | #error Not icc | |
13518 | #endif | |
13519 | ||
13520 | ; return 0; } | |
13521 | EOF | |
13522 | if { (eval echo configure:13523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13523 | rm -rf conftest* | |
13524 | wx_cv_prog_icc=yes | |
13525 | else | |
13526 | echo "configure: failed program was:" >&5 | |
13527 | cat conftest.$ac_ext >&5 | |
13528 | rm -rf conftest* | |
13529 | wx_cv_prog_icc=no | |
13530 | ||
13531 | fi | |
13532 | rm -f conftest* | |
13533 | ||
13534 | fi | |
13535 | ||
13536 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
13537 | if test "$wx_cv_prog_icc" = "yes"; then | |
13538 | PIC_FLAG="-KPIC" | |
13539 | fi | |
13540 | fi | |
13541 | ||
13542 | if test "$wxUSE_SONAME" = "yes" ; then | |
13543 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
13544 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
13545 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
13546 | fi | |
13547 | ;; | |
13548 | ||
13549 | *-*-solaris2* ) | |
13550 | if test "$GCC" = yes ; then | |
13551 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
13552 | else | |
13553 | SHARED_LD="${CXX} -G -o" | |
13554 | PIC_FLAG="-KPIC" | |
13555 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
13556 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
13557 | fi | |
13558 | ;; | |
13559 | ||
13560 | *-*-darwin* ) | |
13561 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
13562 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
13563 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
13564 | PIC_FLAG="-dynamic -fPIC" | |
13565 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
13566 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
13567 | ;; | |
13568 | ||
13569 | *-*-aix* ) | |
13570 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
13571 | ;; | |
13572 | ||
13573 | *-*-cygwin* | *-*-mingw32* ) | |
13574 | ||
13575 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
13576 | ||
13577 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
13578 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
13579 | ||
13580 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
13581 | ||
13582 | if test "$wxUSE_OPENGL" = "yes"; then | |
13583 | WX_ALL_INSTALLED="preinstall_gl" | |
13584 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
13585 | else | |
13586 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
13587 | fi | |
13588 | ;; | |
13589 | ||
13590 | *-*-beos* ) | |
13591 | SHARED_LD="${LD} -shared -o" | |
13592 | ;; | |
13593 | ||
13594 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
13595 | *-*-sunos4* | \ | |
13596 | *-*-irix5* | *-*-irix6* | \ | |
13597 | *-*-osf* | \ | |
13598 | *-*-dgux5* | \ | |
13599 | *-*-sysv5* ) | |
13600 | ;; | |
13601 | ||
13602 | *) | |
13603 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
13604 | esac | |
13605 | ||
13606 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13607 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
13608 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
13609 | fi | |
13610 | ||
13611 | WX_TARGET_LIBRARY_TYPE="so" | |
13612 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
13613 | fi | |
13614 | ||
13615 | if test "$wxUSE_SHARED" = "no"; then | |
13616 | ||
13617 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
13618 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13619 | fi | |
13620 | ||
13621 | if test "$wxUSE_MAC" = 1; then | |
13622 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13623 | fi | |
13624 | ||
13625 | if test "$wxUSE_OPENGL" = "yes"; then | |
13626 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13627 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13628 | else | |
13629 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13630 | fi | |
13631 | ||
13632 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
13633 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13634 | ||
13635 | WX_TARGET_LIBRARY_TYPE="a" | |
13636 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
13637 | fi | |
13638 | ||
13639 | if test "$wxUSE_MAC" = 1; then | |
13640 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
13641 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
13642 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
13643 | # Extract the first word of "Rez", so it can be a program name with args. | |
13644 | set dummy Rez; ac_word=$2 | |
13645 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
13646 | echo "configure:13647: checking for $ac_word" >&5 | |
13647 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then | |
13648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13649 | else | |
13650 | if test -n "$RESCOMP"; then | |
13651 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13652 | else | |
13653 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13654 | ac_dummy="$PATH" | |
13655 | for ac_dir in $ac_dummy; do | |
13656 | test -z "$ac_dir" && ac_dir=. | |
13657 | if test -f $ac_dir/$ac_word; then | |
13658 | ac_cv_prog_RESCOMP="Rez" | |
13659 | break | |
13660 | fi | |
13661 | done | |
13662 | IFS="$ac_save_ifs" | |
13663 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13664 | fi | |
13665 | fi | |
13666 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13667 | if test -n "$RESCOMP"; then | |
13668 | echo "$ac_t""$RESCOMP" 1>&6 | |
13669 | else | |
13670 | echo "$ac_t""no" 1>&6 | |
13671 | fi | |
13672 | ||
13673 | # Extract the first word of "DeRez", so it can be a program name with args. | |
13674 | set dummy DeRez; ac_word=$2 | |
13675 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
13676 | echo "configure:13677: checking for $ac_word" >&5 | |
13677 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
13678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13679 | else | |
13680 | if test -n "$DEREZ"; then | |
13681 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13682 | else | |
13683 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13684 | ac_dummy="$PATH" | |
13685 | for ac_dir in $ac_dummy; do | |
13686 | test -z "$ac_dir" && ac_dir=. | |
13687 | if test -f $ac_dir/$ac_word; then | |
13688 | ac_cv_prog_DEREZ="DeRez" | |
13689 | break | |
13690 | fi | |
13691 | done | |
13692 | IFS="$ac_save_ifs" | |
13693 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
13694 | fi | |
13695 | fi | |
13696 | DEREZ="$ac_cv_prog_DEREZ" | |
13697 | if test -n "$DEREZ"; then | |
13698 | echo "$ac_t""$DEREZ" 1>&6 | |
13699 | else | |
13700 | echo "$ac_t""no" 1>&6 | |
13701 | fi | |
13702 | ||
13703 | MACOSX_BUNDLE="bundle" | |
13704 | if test "$wxUSE_SHARED" = "yes"; then | |
13705 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
13706 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
13707 | else | |
13708 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
13709 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
13710 | fi | |
13711 | else | |
13712 | if test "$wxUSE_PM" = 1; then | |
13713 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
13714 | fi | |
13715 | fi | |
13716 | ||
13717 | ||
13718 | if test "$wxUSE_MAC" != 1; then | |
13719 | for ac_hdr in strings.h | |
13720 | do | |
13721 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13722 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13723 | echo "configure:13724: checking for $ac_hdr" >&5 | |
13724 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13726 | else | |
13727 | cat > conftest.$ac_ext <<EOF | |
13728 | #line 13729 "configure" | |
13729 | #include "confdefs.h" | |
13730 | #include <$ac_hdr> | |
13731 | EOF | |
13732 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13733 | { (eval echo configure:13734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13734 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13735 | if test -z "$ac_err"; then | |
13736 | rm -rf conftest* | |
13737 | eval "ac_cv_header_$ac_safe=yes" | |
13738 | else | |
13739 | echo "$ac_err" >&5 | |
13740 | echo "configure: failed program was:" >&5 | |
13741 | cat conftest.$ac_ext >&5 | |
13742 | rm -rf conftest* | |
13743 | eval "ac_cv_header_$ac_safe=no" | |
13744 | fi | |
13745 | rm -f conftest* | |
13746 | fi | |
13747 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13748 | echo "$ac_t""yes" 1>&6 | |
13749 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13750 | cat >> confdefs.h <<EOF | |
13751 | #define $ac_tr_hdr 1 | |
13752 | EOF | |
13753 | ||
13754 | else | |
13755 | echo "$ac_t""no" 1>&6 | |
13756 | fi | |
13757 | done | |
13758 | ||
13759 | fi | |
13760 | ||
13761 | for ac_hdr in stdlib.h | |
13762 | do | |
13763 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13764 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13765 | echo "configure:13766: checking for $ac_hdr" >&5 | |
13766 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13768 | else | |
13769 | cat > conftest.$ac_ext <<EOF | |
13770 | #line 13771 "configure" | |
13771 | #include "confdefs.h" | |
13772 | #include <$ac_hdr> | |
13773 | EOF | |
13774 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13775 | { (eval echo configure:13776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13776 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13777 | if test -z "$ac_err"; then | |
13778 | rm -rf conftest* | |
13779 | eval "ac_cv_header_$ac_safe=yes" | |
13780 | else | |
13781 | echo "$ac_err" >&5 | |
13782 | echo "configure: failed program was:" >&5 | |
13783 | cat conftest.$ac_ext >&5 | |
13784 | rm -rf conftest* | |
13785 | eval "ac_cv_header_$ac_safe=no" | |
13786 | fi | |
13787 | rm -f conftest* | |
13788 | fi | |
13789 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13790 | echo "$ac_t""yes" 1>&6 | |
13791 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13792 | cat >> confdefs.h <<EOF | |
13793 | #define $ac_tr_hdr 1 | |
13794 | EOF | |
13795 | ||
13796 | else | |
13797 | echo "$ac_t""no" 1>&6 | |
13798 | fi | |
13799 | done | |
13800 | ||
13801 | for ac_hdr in malloc.h | |
13802 | do | |
13803 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13804 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13805 | echo "configure:13806: checking for $ac_hdr" >&5 | |
13806 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13808 | else | |
13809 | cat > conftest.$ac_ext <<EOF | |
13810 | #line 13811 "configure" | |
13811 | #include "confdefs.h" | |
13812 | #include <$ac_hdr> | |
13813 | EOF | |
13814 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13815 | { (eval echo configure:13816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13816 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13817 | if test -z "$ac_err"; then | |
13818 | rm -rf conftest* | |
13819 | eval "ac_cv_header_$ac_safe=yes" | |
13820 | else | |
13821 | echo "$ac_err" >&5 | |
13822 | echo "configure: failed program was:" >&5 | |
13823 | cat conftest.$ac_ext >&5 | |
13824 | rm -rf conftest* | |
13825 | eval "ac_cv_header_$ac_safe=no" | |
13826 | fi | |
13827 | rm -f conftest* | |
13828 | fi | |
13829 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13830 | echo "$ac_t""yes" 1>&6 | |
13831 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13832 | cat >> confdefs.h <<EOF | |
13833 | #define $ac_tr_hdr 1 | |
13834 | EOF | |
13835 | ||
13836 | else | |
13837 | echo "$ac_t""no" 1>&6 | |
13838 | fi | |
13839 | done | |
13840 | ||
13841 | for ac_hdr in unistd.h | |
13842 | do | |
13843 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13844 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13845 | echo "configure:13846: checking for $ac_hdr" >&5 | |
13846 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13848 | else | |
13849 | cat > conftest.$ac_ext <<EOF | |
13850 | #line 13851 "configure" | |
13851 | #include "confdefs.h" | |
13852 | #include <$ac_hdr> | |
13853 | EOF | |
13854 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13855 | { (eval echo configure:13856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13856 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13857 | if test -z "$ac_err"; then | |
13858 | rm -rf conftest* | |
13859 | eval "ac_cv_header_$ac_safe=yes" | |
13860 | else | |
13861 | echo "$ac_err" >&5 | |
13862 | echo "configure: failed program was:" >&5 | |
13863 | cat conftest.$ac_ext >&5 | |
13864 | rm -rf conftest* | |
13865 | eval "ac_cv_header_$ac_safe=no" | |
13866 | fi | |
13867 | rm -f conftest* | |
13868 | fi | |
13869 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13870 | echo "$ac_t""yes" 1>&6 | |
13871 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13872 | cat >> confdefs.h <<EOF | |
13873 | #define $ac_tr_hdr 1 | |
13874 | EOF | |
13875 | ||
13876 | else | |
13877 | echo "$ac_t""no" 1>&6 | |
13878 | fi | |
13879 | done | |
13880 | ||
13881 | for ac_hdr in wchar.h | |
13882 | do | |
13883 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13884 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13885 | echo "configure:13886: checking for $ac_hdr" >&5 | |
13886 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13888 | else | |
13889 | cat > conftest.$ac_ext <<EOF | |
13890 | #line 13891 "configure" | |
13891 | #include "confdefs.h" | |
13892 | #include <$ac_hdr> | |
13893 | EOF | |
13894 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13895 | { (eval echo configure:13896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13896 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13897 | if test -z "$ac_err"; then | |
13898 | rm -rf conftest* | |
13899 | eval "ac_cv_header_$ac_safe=yes" | |
13900 | else | |
13901 | echo "$ac_err" >&5 | |
13902 | echo "configure: failed program was:" >&5 | |
13903 | cat conftest.$ac_ext >&5 | |
13904 | rm -rf conftest* | |
13905 | eval "ac_cv_header_$ac_safe=no" | |
13906 | fi | |
13907 | rm -f conftest* | |
13908 | fi | |
13909 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13910 | echo "$ac_t""yes" 1>&6 | |
13911 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13912 | cat >> confdefs.h <<EOF | |
13913 | #define $ac_tr_hdr 1 | |
13914 | EOF | |
13915 | ||
13916 | else | |
13917 | echo "$ac_t""no" 1>&6 | |
13918 | fi | |
13919 | done | |
13920 | ||
13921 | ||
13922 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13923 | for ac_hdr in wcstr.h | |
13924 | do | |
13925 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13926 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13927 | echo "configure:13928: checking for $ac_hdr" >&5 | |
13928 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13930 | else | |
13931 | cat > conftest.$ac_ext <<EOF | |
13932 | #line 13933 "configure" | |
13933 | #include "confdefs.h" | |
13934 | #include <$ac_hdr> | |
13935 | EOF | |
13936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13937 | { (eval echo configure:13938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13939 | if test -z "$ac_err"; then | |
13940 | rm -rf conftest* | |
13941 | eval "ac_cv_header_$ac_safe=yes" | |
13942 | else | |
13943 | echo "$ac_err" >&5 | |
13944 | echo "configure: failed program was:" >&5 | |
13945 | cat conftest.$ac_ext >&5 | |
13946 | rm -rf conftest* | |
13947 | eval "ac_cv_header_$ac_safe=no" | |
13948 | fi | |
13949 | rm -f conftest* | |
13950 | fi | |
13951 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13952 | echo "$ac_t""yes" 1>&6 | |
13953 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13954 | cat >> confdefs.h <<EOF | |
13955 | #define $ac_tr_hdr 1 | |
13956 | EOF | |
13957 | ||
13958 | else | |
13959 | echo "$ac_t""no" 1>&6 | |
13960 | fi | |
13961 | done | |
13962 | ||
13963 | fi | |
13964 | ||
13965 | ||
13966 | for ac_hdr in fnmatch.h | |
13967 | do | |
13968 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13969 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13970 | echo "configure:13971: checking for $ac_hdr" >&5 | |
13971 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13973 | else | |
13974 | cat > conftest.$ac_ext <<EOF | |
13975 | #line 13976 "configure" | |
13976 | #include "confdefs.h" | |
13977 | #include <$ac_hdr> | |
13978 | EOF | |
13979 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13980 | { (eval echo configure:13981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13981 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13982 | if test -z "$ac_err"; then | |
13983 | rm -rf conftest* | |
13984 | eval "ac_cv_header_$ac_safe=yes" | |
13985 | else | |
13986 | echo "$ac_err" >&5 | |
13987 | echo "configure: failed program was:" >&5 | |
13988 | cat conftest.$ac_ext >&5 | |
13989 | rm -rf conftest* | |
13990 | eval "ac_cv_header_$ac_safe=no" | |
13991 | fi | |
13992 | rm -f conftest* | |
13993 | fi | |
13994 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13995 | echo "$ac_t""yes" 1>&6 | |
13996 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13997 | cat >> confdefs.h <<EOF | |
13998 | #define $ac_tr_hdr 1 | |
13999 | EOF | |
14000 | ||
14001 | else | |
14002 | echo "$ac_t""no" 1>&6 | |
14003 | fi | |
14004 | done | |
14005 | ||
14006 | ||
14007 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14008 | for ac_func in fnmatch | |
14009 | do | |
14010 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14011 | echo "configure:14012: checking for $ac_func" >&5 | |
14012 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14014 | else | |
14015 | cat > conftest.$ac_ext <<EOF | |
14016 | #line 14017 "configure" | |
14017 | #include "confdefs.h" | |
14018 | /* System header to define __stub macros and hopefully few prototypes, | |
14019 | which can conflict with char $ac_func(); below. */ | |
14020 | #include <assert.h> | |
14021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14022 | /* We use char because int might match the return type of a gcc2 | |
14023 | builtin and then its argument prototype would still apply. */ | |
14024 | char $ac_func(); | |
14025 | ||
14026 | int main() { | |
14027 | ||
14028 | /* The GNU C library defines this for functions which it implements | |
14029 | to always fail with ENOSYS. Some functions are actually named | |
14030 | something starting with __ and the normal name is an alias. */ | |
14031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14032 | choke me | |
14033 | #else | |
14034 | $ac_func(); | |
14035 | #endif | |
14036 | ||
14037 | ; return 0; } | |
14038 | EOF | |
14039 | if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14040 | rm -rf conftest* | |
14041 | eval "ac_cv_func_$ac_func=yes" | |
14042 | else | |
14043 | echo "configure: failed program was:" >&5 | |
14044 | cat conftest.$ac_ext >&5 | |
14045 | rm -rf conftest* | |
14046 | eval "ac_cv_func_$ac_func=no" | |
14047 | fi | |
14048 | rm -f conftest* | |
14049 | fi | |
14050 | ||
14051 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14052 | echo "$ac_t""yes" 1>&6 | |
14053 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14054 | cat >> confdefs.h <<EOF | |
14055 | #define $ac_tr_func 1 | |
14056 | EOF | |
14057 | ||
14058 | else | |
14059 | echo "$ac_t""no" 1>&6 | |
14060 | fi | |
14061 | done | |
14062 | ||
14063 | fi | |
14064 | ||
14065 | for ac_hdr in langinfo.h | |
14066 | do | |
14067 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14068 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
14069 | echo "configure:14070: checking for $ac_hdr" >&5 | |
14070 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14072 | else | |
14073 | cat > conftest.$ac_ext <<EOF | |
14074 | #line 14075 "configure" | |
14075 | #include "confdefs.h" | |
14076 | #include <$ac_hdr> | |
14077 | EOF | |
14078 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14079 | { (eval echo configure:14080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14080 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14081 | if test -z "$ac_err"; then | |
14082 | rm -rf conftest* | |
14083 | eval "ac_cv_header_$ac_safe=yes" | |
14084 | else | |
14085 | echo "$ac_err" >&5 | |
14086 | echo "configure: failed program was:" >&5 | |
14087 | cat conftest.$ac_ext >&5 | |
14088 | rm -rf conftest* | |
14089 | eval "ac_cv_header_$ac_safe=no" | |
14090 | fi | |
14091 | rm -f conftest* | |
14092 | fi | |
14093 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14094 | echo "$ac_t""yes" 1>&6 | |
14095 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14096 | cat >> confdefs.h <<EOF | |
14097 | #define $ac_tr_hdr 1 | |
14098 | EOF | |
14099 | ||
14100 | else | |
14101 | echo "$ac_t""no" 1>&6 | |
14102 | fi | |
14103 | done | |
14104 | ||
14105 | ||
14106 | if test "$wxUSE_GUI" = "yes"; then | |
14107 | if test "$wxUSE_UNIX" = "yes"; then | |
14108 | for ac_hdr in X11/XKBlib.h | |
14109 | do | |
14110 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14111 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
14112 | echo "configure:14113: checking for $ac_hdr" >&5 | |
14113 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14115 | else | |
14116 | cat > conftest.$ac_ext <<EOF | |
14117 | #line 14118 "configure" | |
14118 | #include "confdefs.h" | |
14119 | #include <$ac_hdr> | |
14120 | EOF | |
14121 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14122 | { (eval echo configure:14123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14123 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14124 | if test -z "$ac_err"; then | |
14125 | rm -rf conftest* | |
14126 | eval "ac_cv_header_$ac_safe=yes" | |
14127 | else | |
14128 | echo "$ac_err" >&5 | |
14129 | echo "configure: failed program was:" >&5 | |
14130 | cat conftest.$ac_ext >&5 | |
14131 | rm -rf conftest* | |
14132 | eval "ac_cv_header_$ac_safe=no" | |
14133 | fi | |
14134 | rm -f conftest* | |
14135 | fi | |
14136 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14137 | echo "$ac_t""yes" 1>&6 | |
14138 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14139 | cat >> confdefs.h <<EOF | |
14140 | #define $ac_tr_hdr 1 | |
14141 | EOF | |
14142 | ||
14143 | else | |
14144 | echo "$ac_t""no" 1>&6 | |
14145 | fi | |
14146 | done | |
14147 | ||
14148 | fi | |
14149 | fi | |
14150 | ||
14151 | ||
14152 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
14153 | echo "configure:14154: checking for ANSI C header files" >&5 | |
14154 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
14155 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14156 | else | |
14157 | cat > conftest.$ac_ext <<EOF | |
14158 | #line 14159 "configure" | |
14159 | #include "confdefs.h" | |
14160 | #include <stdlib.h> | |
14161 | #include <stdarg.h> | |
14162 | #include <string.h> | |
14163 | #include <float.h> | |
14164 | EOF | |
14165 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14166 | { (eval echo configure:14167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14167 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14168 | if test -z "$ac_err"; then | |
14169 | rm -rf conftest* | |
14170 | ac_cv_header_stdc=yes | |
14171 | else | |
14172 | echo "$ac_err" >&5 | |
14173 | echo "configure: failed program was:" >&5 | |
14174 | cat conftest.$ac_ext >&5 | |
14175 | rm -rf conftest* | |
14176 | ac_cv_header_stdc=no | |
14177 | fi | |
14178 | rm -f conftest* | |
14179 | ||
14180 | if test $ac_cv_header_stdc = yes; then | |
14181 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14182 | cat > conftest.$ac_ext <<EOF | |
14183 | #line 14184 "configure" | |
14184 | #include "confdefs.h" | |
14185 | #include <string.h> | |
14186 | EOF | |
14187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14188 | egrep "memchr" >/dev/null 2>&1; then | |
14189 | : | |
14190 | else | |
14191 | rm -rf conftest* | |
14192 | ac_cv_header_stdc=no | |
14193 | fi | |
14194 | rm -f conftest* | |
14195 | ||
14196 | fi | |
14197 | ||
14198 | if test $ac_cv_header_stdc = yes; then | |
14199 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14200 | cat > conftest.$ac_ext <<EOF | |
14201 | #line 14202 "configure" | |
14202 | #include "confdefs.h" | |
14203 | #include <stdlib.h> | |
14204 | EOF | |
14205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14206 | egrep "free" >/dev/null 2>&1; then | |
14207 | : | |
14208 | else | |
14209 | rm -rf conftest* | |
14210 | ac_cv_header_stdc=no | |
14211 | fi | |
14212 | rm -f conftest* | |
14213 | ||
14214 | fi | |
14215 | ||
14216 | if test $ac_cv_header_stdc = yes; then | |
14217 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14218 | if test "$cross_compiling" = yes; then | |
14219 | : | |
14220 | else | |
14221 | cat > conftest.$ac_ext <<EOF | |
14222 | #line 14223 "configure" | |
14223 | #include "confdefs.h" | |
14224 | #include <ctype.h> | |
14225 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14226 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14227 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14228 | int main () { int i; for (i = 0; i < 256; i++) | |
14229 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
14230 | exit (0); } | |
14231 | ||
14232 | EOF | |
14233 | if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14234 | then | |
14235 | : | |
14236 | else | |
14237 | echo "configure: failed program was:" >&5 | |
14238 | cat conftest.$ac_ext >&5 | |
14239 | rm -fr conftest* | |
14240 | ac_cv_header_stdc=no | |
14241 | fi | |
14242 | rm -fr conftest* | |
14243 | fi | |
14244 | ||
14245 | fi | |
14246 | fi | |
14247 | ||
14248 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
14249 | if test $ac_cv_header_stdc = yes; then | |
14250 | cat >> confdefs.h <<\EOF | |
14251 | #define STDC_HEADERS 1 | |
14252 | EOF | |
14253 | ||
14254 | fi | |
14255 | ||
14256 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
14257 | echo "configure:14258: checking for mode_t" >&5 | |
14258 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
14259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14260 | else | |
14261 | cat > conftest.$ac_ext <<EOF | |
14262 | #line 14263 "configure" | |
14263 | #include "confdefs.h" | |
14264 | #include <sys/types.h> | |
14265 | #if STDC_HEADERS | |
14266 | #include <stdlib.h> | |
14267 | #include <stddef.h> | |
14268 | #endif | |
14269 | EOF | |
14270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14271 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14272 | rm -rf conftest* | |
14273 | ac_cv_type_mode_t=yes | |
14274 | else | |
14275 | rm -rf conftest* | |
14276 | ac_cv_type_mode_t=no | |
14277 | fi | |
14278 | rm -f conftest* | |
14279 | ||
14280 | fi | |
14281 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
14282 | if test $ac_cv_type_mode_t = no; then | |
14283 | cat >> confdefs.h <<\EOF | |
14284 | #define mode_t int | |
14285 | EOF | |
14286 | ||
14287 | fi | |
14288 | ||
14289 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
14290 | echo "configure:14291: checking for off_t" >&5 | |
14291 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
14292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14293 | else | |
14294 | cat > conftest.$ac_ext <<EOF | |
14295 | #line 14296 "configure" | |
14296 | #include "confdefs.h" | |
14297 | #include <sys/types.h> | |
14298 | #if STDC_HEADERS | |
14299 | #include <stdlib.h> | |
14300 | #include <stddef.h> | |
14301 | #endif | |
14302 | EOF | |
14303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14304 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14305 | rm -rf conftest* | |
14306 | ac_cv_type_off_t=yes | |
14307 | else | |
14308 | rm -rf conftest* | |
14309 | ac_cv_type_off_t=no | |
14310 | fi | |
14311 | rm -f conftest* | |
14312 | ||
14313 | fi | |
14314 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
14315 | if test $ac_cv_type_off_t = no; then | |
14316 | cat >> confdefs.h <<\EOF | |
14317 | #define off_t long | |
14318 | EOF | |
14319 | ||
14320 | fi | |
14321 | ||
14322 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
14323 | echo "configure:14324: checking for pid_t" >&5 | |
14324 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
14325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14326 | else | |
14327 | cat > conftest.$ac_ext <<EOF | |
14328 | #line 14329 "configure" | |
14329 | #include "confdefs.h" | |
14330 | #include <sys/types.h> | |
14331 | #if STDC_HEADERS | |
14332 | #include <stdlib.h> | |
14333 | #include <stddef.h> | |
14334 | #endif | |
14335 | EOF | |
14336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14337 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14338 | rm -rf conftest* | |
14339 | ac_cv_type_pid_t=yes | |
14340 | else | |
14341 | rm -rf conftest* | |
14342 | ac_cv_type_pid_t=no | |
14343 | fi | |
14344 | rm -f conftest* | |
14345 | ||
14346 | fi | |
14347 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
14348 | if test $ac_cv_type_pid_t = no; then | |
14349 | cat >> confdefs.h <<\EOF | |
14350 | #define pid_t int | |
14351 | EOF | |
14352 | ||
14353 | fi | |
14354 | ||
14355 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
14356 | echo "configure:14357: checking for size_t" >&5 | |
14357 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
14358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14359 | else | |
14360 | cat > conftest.$ac_ext <<EOF | |
14361 | #line 14362 "configure" | |
14362 | #include "confdefs.h" | |
14363 | #include <sys/types.h> | |
14364 | #if STDC_HEADERS | |
14365 | #include <stdlib.h> | |
14366 | #include <stddef.h> | |
14367 | #endif | |
14368 | EOF | |
14369 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14370 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
14371 | rm -rf conftest* | |
14372 | ac_cv_type_size_t=yes | |
14373 | else | |
14374 | rm -rf conftest* | |
14375 | ac_cv_type_size_t=no | |
14376 | fi | |
14377 | rm -f conftest* | |
14378 | ||
14379 | fi | |
14380 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
14381 | if test $ac_cv_type_size_t = no; then | |
14382 | cat >> confdefs.h <<\EOF | |
14383 | #define size_t unsigned | |
14384 | EOF | |
14385 | ||
14386 | fi | |
14387 | ||
14388 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
14389 | echo "configure:14390: checking for uid_t in sys/types.h" >&5 | |
14390 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
14391 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14392 | else | |
14393 | cat > conftest.$ac_ext <<EOF | |
14394 | #line 14395 "configure" | |
14395 | #include "confdefs.h" | |
14396 | #include <sys/types.h> | |
14397 | EOF | |
14398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14399 | egrep "uid_t" >/dev/null 2>&1; then | |
14400 | rm -rf conftest* | |
14401 | ac_cv_type_uid_t=yes | |
14402 | else | |
14403 | rm -rf conftest* | |
14404 | ac_cv_type_uid_t=no | |
14405 | fi | |
14406 | rm -f conftest* | |
14407 | ||
14408 | fi | |
14409 | ||
14410 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
14411 | if test $ac_cv_type_uid_t = no; then | |
14412 | cat >> confdefs.h <<\EOF | |
14413 | #define uid_t int | |
14414 | EOF | |
14415 | ||
14416 | cat >> confdefs.h <<\EOF | |
14417 | #define gid_t int | |
14418 | EOF | |
14419 | ||
14420 | fi | |
14421 | ||
14422 | ||
14423 | ||
14424 | ac_ext=C | |
14425 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14426 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14427 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14428 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14429 | cross_compiling=$ac_cv_prog_cxx_cross | |
14430 | ||
14431 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
14432 | echo "configure:14433: checking if size_t is unsigned int" >&5 | |
14433 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then | |
14434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14435 | else | |
14436 | cat > conftest.$ac_ext <<EOF | |
14437 | #line 14438 "configure" | |
14438 | #include "confdefs.h" | |
14439 | #include <stddef.h> | |
14440 | int main() { | |
14441 | ||
14442 | return 0; } | |
14443 | ||
14444 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
14445 | ||
14446 | int bar() { | |
14447 | ||
14448 | ; return 0; } | |
14449 | EOF | |
14450 | if { (eval echo configure:14451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14451 | rm -rf conftest* | |
14452 | wx_cv_size_t_is_uint=no | |
14453 | else | |
14454 | echo "configure: failed program was:" >&5 | |
14455 | cat conftest.$ac_ext >&5 | |
14456 | rm -rf conftest* | |
14457 | wx_cv_size_t_is_uint=yes | |
14458 | ||
14459 | fi | |
14460 | rm -f conftest* | |
14461 | ||
14462 | fi | |
14463 | ||
14464 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
14465 | ||
14466 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
14467 | cat >> confdefs.h <<\EOF | |
14468 | #define wxSIZE_T_IS_UINT 1 | |
14469 | EOF | |
14470 | ||
14471 | else | |
14472 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
14473 | echo "configure:14474: checking if size_t is unsigned long" >&5 | |
14474 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then | |
14475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14476 | else | |
14477 | cat > conftest.$ac_ext <<EOF | |
14478 | #line 14479 "configure" | |
14479 | #include "confdefs.h" | |
14480 | #include <stddef.h> | |
14481 | int main() { | |
14482 | ||
14483 | return 0; } | |
14484 | ||
14485 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
14486 | ||
14487 | int bar() { | |
14488 | ||
14489 | ; return 0; } | |
14490 | EOF | |
14491 | if { (eval echo configure:14492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14492 | rm -rf conftest* | |
14493 | wx_cv_size_t_is_ulong=no | |
14494 | else | |
14495 | echo "configure: failed program was:" >&5 | |
14496 | cat conftest.$ac_ext >&5 | |
14497 | rm -rf conftest* | |
14498 | wx_cv_size_t_is_ulong=yes | |
14499 | ||
14500 | fi | |
14501 | rm -f conftest* | |
14502 | ||
14503 | fi | |
14504 | ||
14505 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
14506 | ||
14507 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
14508 | cat >> confdefs.h <<\EOF | |
14509 | #define wxSIZE_T_IS_ULONG 1 | |
14510 | EOF | |
14511 | ||
14512 | fi | |
14513 | fi | |
14514 | ||
14515 | ac_ext=c | |
14516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14517 | ac_cpp='$CPP $CPPFLAGS' | |
14518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14519 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14520 | cross_compiling=$ac_cv_prog_cc_cross | |
14521 | ||
14522 | ||
14523 | ||
14524 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
14525 | echo "configure:14526: checking for pw_gecos in struct passwd" >&5 | |
14526 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
14527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14528 | else | |
14529 | ||
14530 | cat > conftest.$ac_ext <<EOF | |
14531 | #line 14532 "configure" | |
14532 | #include "confdefs.h" | |
14533 | #include <pwd.h> | |
14534 | int main() { | |
14535 | ||
14536 | char *p; | |
14537 | struct passwd *pw; | |
14538 | p = pw->pw_gecos; | |
14539 | ||
14540 | ; return 0; } | |
14541 | EOF | |
14542 | if { (eval echo configure:14543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14543 | rm -rf conftest* | |
14544 | ||
14545 | wx_cv_struct_pw_gecos=yes | |
14546 | ||
14547 | else | |
14548 | echo "configure: failed program was:" >&5 | |
14549 | cat conftest.$ac_ext >&5 | |
14550 | rm -rf conftest* | |
14551 | ||
14552 | wx_cv_struct_pw_gecos=no | |
14553 | ||
14554 | ||
14555 | fi | |
14556 | rm -f conftest* | |
14557 | ||
14558 | ||
14559 | fi | |
14560 | ||
14561 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
14562 | ||
14563 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
14564 | cat >> confdefs.h <<\EOF | |
14565 | #define HAVE_PW_GECOS 1 | |
14566 | EOF | |
14567 | ||
14568 | fi | |
14569 | ||
14570 | ||
14571 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
14572 | echo "configure:14573: checking for working const" >&5 | |
14573 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
14574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14575 | else | |
14576 | cat > conftest.$ac_ext <<EOF | |
14577 | #line 14578 "configure" | |
14578 | #include "confdefs.h" | |
14579 | ||
14580 | int main() { | |
14581 | ||
14582 | /* Ultrix mips cc rejects this. */ | |
14583 | typedef int charset[2]; const charset x; | |
14584 | /* SunOS 4.1.1 cc rejects this. */ | |
14585 | char const *const *ccp; | |
14586 | char **p; | |
14587 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14588 | struct point {int x, y;}; | |
14589 | static struct point const zero = {0,0}; | |
14590 | /* AIX XL C 1.02.0.0 rejects this. | |
14591 | It does not let you subtract one const X* pointer from another in an arm | |
14592 | of an if-expression whose if-part is not a constant expression */ | |
14593 | const char *g = "string"; | |
14594 | ccp = &g + (g ? g-g : 0); | |
14595 | /* HPUX 7.0 cc rejects these. */ | |
14596 | ++ccp; | |
14597 | p = (char**) ccp; | |
14598 | ccp = (char const *const *) p; | |
14599 | { /* SCO 3.2v4 cc rejects this. */ | |
14600 | char *t; | |
14601 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14602 | ||
14603 | *t++ = 0; | |
14604 | } | |
14605 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14606 | int x[] = {25, 17}; | |
14607 | const int *foo = &x[0]; | |
14608 | ++foo; | |
14609 | } | |
14610 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14611 | typedef const int *iptr; | |
14612 | iptr p = 0; | |
14613 | ++p; | |
14614 | } | |
14615 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14616 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14617 | struct s { int j; const int *ap[3]; }; | |
14618 | struct s *b; b->j = 5; | |
14619 | } | |
14620 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14621 | const int foo = 10; | |
14622 | } | |
14623 | ||
14624 | ; return 0; } | |
14625 | EOF | |
14626 | if { (eval echo configure:14627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14627 | rm -rf conftest* | |
14628 | ac_cv_c_const=yes | |
14629 | else | |
14630 | echo "configure: failed program was:" >&5 | |
14631 | cat conftest.$ac_ext >&5 | |
14632 | rm -rf conftest* | |
14633 | ac_cv_c_const=no | |
14634 | fi | |
14635 | rm -f conftest* | |
14636 | fi | |
14637 | ||
14638 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
14639 | if test $ac_cv_c_const = no; then | |
14640 | cat >> confdefs.h <<\EOF | |
14641 | #define const | |
14642 | EOF | |
14643 | ||
14644 | fi | |
14645 | ||
14646 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
14647 | echo "configure:14648: checking for inline" >&5 | |
14648 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
14649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14650 | else | |
14651 | ac_cv_c_inline=no | |
14652 | for ac_kw in inline __inline__ __inline; do | |
14653 | cat > conftest.$ac_ext <<EOF | |
14654 | #line 14655 "configure" | |
14655 | #include "confdefs.h" | |
14656 | ||
14657 | int main() { | |
14658 | } $ac_kw foo() { | |
14659 | ; return 0; } | |
14660 | EOF | |
14661 | if { (eval echo configure:14662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14662 | rm -rf conftest* | |
14663 | ac_cv_c_inline=$ac_kw; break | |
14664 | else | |
14665 | echo "configure: failed program was:" >&5 | |
14666 | cat conftest.$ac_ext >&5 | |
14667 | fi | |
14668 | rm -f conftest* | |
14669 | done | |
14670 | ||
14671 | fi | |
14672 | ||
14673 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14674 | case "$ac_cv_c_inline" in | |
14675 | inline | yes) ;; | |
14676 | no) cat >> confdefs.h <<\EOF | |
14677 | #define inline | |
14678 | EOF | |
14679 | ;; | |
14680 | *) cat >> confdefs.h <<EOF | |
14681 | #define inline $ac_cv_c_inline | |
14682 | EOF | |
14683 | ;; | |
14684 | esac | |
14685 | ||
14686 | ||
14687 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
14688 | echo "configure:14689: checking size of char" >&5 | |
14689 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
14690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14691 | else | |
14692 | if test "$cross_compiling" = yes; then | |
14693 | ac_cv_sizeof_char=1 | |
14694 | else | |
14695 | cat > conftest.$ac_ext <<EOF | |
14696 | #line 14697 "configure" | |
14697 | #include "confdefs.h" | |
14698 | #include <stdio.h> | |
14699 | main() | |
14700 | { | |
14701 | FILE *f=fopen("conftestval", "w"); | |
14702 | if (!f) exit(1); | |
14703 | fprintf(f, "%d\n", sizeof(char)); | |
14704 | exit(0); | |
14705 | } | |
14706 | EOF | |
14707 | if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14708 | then | |
14709 | ac_cv_sizeof_char=`cat conftestval` | |
14710 | else | |
14711 | echo "configure: failed program was:" >&5 | |
14712 | cat conftest.$ac_ext >&5 | |
14713 | rm -fr conftest* | |
14714 | ac_cv_sizeof_char=0 | |
14715 | fi | |
14716 | rm -fr conftest* | |
14717 | fi | |
14718 | ||
14719 | fi | |
14720 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
14721 | cat >> confdefs.h <<EOF | |
14722 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14723 | EOF | |
14724 | ||
14725 | ||
14726 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
14727 | echo "configure:14728: checking size of short" >&5 | |
14728 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
14729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14730 | else | |
14731 | if test "$cross_compiling" = yes; then | |
14732 | ac_cv_sizeof_short=2 | |
14733 | else | |
14734 | cat > conftest.$ac_ext <<EOF | |
14735 | #line 14736 "configure" | |
14736 | #include "confdefs.h" | |
14737 | #include <stdio.h> | |
14738 | main() | |
14739 | { | |
14740 | FILE *f=fopen("conftestval", "w"); | |
14741 | if (!f) exit(1); | |
14742 | fprintf(f, "%d\n", sizeof(short)); | |
14743 | exit(0); | |
14744 | } | |
14745 | EOF | |
14746 | if { (eval echo configure:14747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14747 | then | |
14748 | ac_cv_sizeof_short=`cat conftestval` | |
14749 | else | |
14750 | echo "configure: failed program was:" >&5 | |
14751 | cat conftest.$ac_ext >&5 | |
14752 | rm -fr conftest* | |
14753 | ac_cv_sizeof_short=0 | |
14754 | fi | |
14755 | rm -fr conftest* | |
14756 | fi | |
14757 | ||
14758 | fi | |
14759 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
14760 | cat >> confdefs.h <<EOF | |
14761 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14762 | EOF | |
14763 | ||
14764 | ||
14765 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | |
14766 | echo "configure:14767: checking size of void *" >&5 | |
14767 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | |
14768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14769 | else | |
14770 | if test "$cross_compiling" = yes; then | |
14771 | ac_cv_sizeof_void_p=4 | |
14772 | else | |
14773 | cat > conftest.$ac_ext <<EOF | |
14774 | #line 14775 "configure" | |
14775 | #include "confdefs.h" | |
14776 | #include <stdio.h> | |
14777 | main() | |
14778 | { | |
14779 | FILE *f=fopen("conftestval", "w"); | |
14780 | if (!f) exit(1); | |
14781 | fprintf(f, "%d\n", sizeof(void *)); | |
14782 | exit(0); | |
14783 | } | |
14784 | EOF | |
14785 | if { (eval echo configure:14786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14786 | then | |
14787 | ac_cv_sizeof_void_p=`cat conftestval` | |
14788 | else | |
14789 | echo "configure: failed program was:" >&5 | |
14790 | cat conftest.$ac_ext >&5 | |
14791 | rm -fr conftest* | |
14792 | ac_cv_sizeof_void_p=0 | |
14793 | fi | |
14794 | rm -fr conftest* | |
14795 | fi | |
14796 | ||
14797 | fi | |
14798 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
14799 | cat >> confdefs.h <<EOF | |
14800 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14801 | EOF | |
14802 | ||
14803 | ||
14804 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
14805 | echo "configure:14806: checking size of int" >&5 | |
14806 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
14807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14808 | else | |
14809 | if test "$cross_compiling" = yes; then | |
14810 | ac_cv_sizeof_int=4 | |
14811 | else | |
14812 | cat > conftest.$ac_ext <<EOF | |
14813 | #line 14814 "configure" | |
14814 | #include "confdefs.h" | |
14815 | #include <stdio.h> | |
14816 | main() | |
14817 | { | |
14818 | FILE *f=fopen("conftestval", "w"); | |
14819 | if (!f) exit(1); | |
14820 | fprintf(f, "%d\n", sizeof(int)); | |
14821 | exit(0); | |
14822 | } | |
14823 | EOF | |
14824 | if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14825 | then | |
14826 | ac_cv_sizeof_int=`cat conftestval` | |
14827 | else | |
14828 | echo "configure: failed program was:" >&5 | |
14829 | cat conftest.$ac_ext >&5 | |
14830 | rm -fr conftest* | |
14831 | ac_cv_sizeof_int=0 | |
14832 | fi | |
14833 | rm -fr conftest* | |
14834 | fi | |
14835 | ||
14836 | fi | |
14837 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14838 | cat >> confdefs.h <<EOF | |
14839 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14840 | EOF | |
14841 | ||
14842 | ||
14843 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
14844 | echo "configure:14845: checking size of long" >&5 | |
14845 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
14846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14847 | else | |
14848 | if test "$cross_compiling" = yes; then | |
14849 | ac_cv_sizeof_long=4 | |
14850 | else | |
14851 | cat > conftest.$ac_ext <<EOF | |
14852 | #line 14853 "configure" | |
14853 | #include "confdefs.h" | |
14854 | #include <stdio.h> | |
14855 | main() | |
14856 | { | |
14857 | FILE *f=fopen("conftestval", "w"); | |
14858 | if (!f) exit(1); | |
14859 | fprintf(f, "%d\n", sizeof(long)); | |
14860 | exit(0); | |
14861 | } | |
14862 | EOF | |
14863 | if { (eval echo configure:14864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14864 | then | |
14865 | ac_cv_sizeof_long=`cat conftestval` | |
14866 | else | |
14867 | echo "configure: failed program was:" >&5 | |
14868 | cat conftest.$ac_ext >&5 | |
14869 | rm -fr conftest* | |
14870 | ac_cv_sizeof_long=0 | |
14871 | fi | |
14872 | rm -fr conftest* | |
14873 | fi | |
14874 | ||
14875 | fi | |
14876 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14877 | cat >> confdefs.h <<EOF | |
14878 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14879 | EOF | |
14880 | ||
14881 | ||
14882 | ||
14883 | case "${host}" in | |
14884 | arm-*-linux* ) | |
14885 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
14886 | echo "configure:14887: checking size of long long" >&5 | |
14887 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
14888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14889 | else | |
14890 | if test "$cross_compiling" = yes; then | |
14891 | ac_cv_sizeof_long_long=8 | |
14892 | else | |
14893 | cat > conftest.$ac_ext <<EOF | |
14894 | #line 14895 "configure" | |
14895 | #include "confdefs.h" | |
14896 | #include <stdio.h> | |
14897 | main() | |
14898 | { | |
14899 | FILE *f=fopen("conftestval", "w"); | |
14900 | if (!f) exit(1); | |
14901 | fprintf(f, "%d\n", sizeof(long long)); | |
14902 | exit(0); | |
14903 | } | |
14904 | EOF | |
14905 | if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14906 | then | |
14907 | ac_cv_sizeof_long_long=`cat conftestval` | |
14908 | else | |
14909 | echo "configure: failed program was:" >&5 | |
14910 | cat conftest.$ac_ext >&5 | |
14911 | rm -fr conftest* | |
14912 | ac_cv_sizeof_long_long=0 | |
14913 | fi | |
14914 | rm -fr conftest* | |
14915 | fi | |
14916 | ||
14917 | fi | |
14918 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
14919 | cat >> confdefs.h <<EOF | |
14920 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14921 | EOF | |
14922 | ||
14923 | ||
14924 | ;; | |
14925 | * ) | |
14926 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
14927 | echo "configure:14928: checking size of long long" >&5 | |
14928 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
14929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14930 | else | |
14931 | if test "$cross_compiling" = yes; then | |
14932 | ac_cv_sizeof_long_long=0 | |
14933 | else | |
14934 | cat > conftest.$ac_ext <<EOF | |
14935 | #line 14936 "configure" | |
14936 | #include "confdefs.h" | |
14937 | #include <stdio.h> | |
14938 | main() | |
14939 | { | |
14940 | FILE *f=fopen("conftestval", "w"); | |
14941 | if (!f) exit(1); | |
14942 | fprintf(f, "%d\n", sizeof(long long)); | |
14943 | exit(0); | |
14944 | } | |
14945 | EOF | |
14946 | if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
14947 | then | |
14948 | ac_cv_sizeof_long_long=`cat conftestval` | |
14949 | else | |
14950 | echo "configure: failed program was:" >&5 | |
14951 | cat conftest.$ac_ext >&5 | |
14952 | rm -fr conftest* | |
14953 | ac_cv_sizeof_long_long=0 | |
14954 | fi | |
14955 | rm -fr conftest* | |
14956 | fi | |
14957 | ||
14958 | fi | |
14959 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
14960 | cat >> confdefs.h <<EOF | |
14961 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14962 | EOF | |
14963 | ||
14964 | ||
14965 | esac | |
14966 | ||
14967 | ||
14968 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
14969 | echo "configure:14970: checking size of wchar_t" >&5 | |
14970 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
14971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14972 | else | |
14973 | ||
14974 | if test "$cross_compiling" = yes; then | |
14975 | wx_cv_sizeof_wchar_t=4 | |
14976 | ||
14977 | else | |
14978 | cat > conftest.$ac_ext <<EOF | |
14979 | #line 14980 "configure" | |
14980 | #include "confdefs.h" | |
14981 | ||
14982 | #ifdef HAVE_WCHAR_H | |
14983 | # ifdef __CYGWIN__ | |
14984 | # include <stddef.h> | |
14985 | # endif | |
14986 | # include <wchar.h> | |
14987 | #endif | |
14988 | #ifdef HAVE_STDLIB_H | |
14989 | # include <stdlib.h> | |
14990 | #endif | |
14991 | #include <stdio.h> | |
14992 | int main() | |
14993 | { | |
14994 | FILE *f=fopen("conftestval", "w"); | |
14995 | if (!f) exit(1); | |
14996 | fprintf(f, "%i", sizeof(wchar_t)); | |
14997 | exit(0); | |
14998 | } | |
14999 | ||
15000 | EOF | |
15001 | if { (eval echo configure:15002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
15002 | then | |
15003 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
15004 | else | |
15005 | echo "configure: failed program was:" >&5 | |
15006 | cat conftest.$ac_ext >&5 | |
15007 | rm -fr conftest* | |
15008 | wx_cv_sizeof_wchar_t=0 | |
15009 | fi | |
15010 | rm -fr conftest* | |
15011 | fi | |
15012 | ||
15013 | ||
15014 | fi | |
15015 | ||
15016 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
15017 | ||
15018 | cat >> confdefs.h <<EOF | |
15019 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
15020 | EOF | |
15021 | ||
15022 | ||
15023 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
15024 | echo "configure:15025: checking whether byte ordering is bigendian" >&5 | |
15025 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
15026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15027 | else | |
15028 | ac_cv_c_bigendian=unknown | |
15029 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15030 | cat > conftest.$ac_ext <<EOF | |
15031 | #line 15032 "configure" | |
15032 | #include "confdefs.h" | |
15033 | #include <sys/types.h> | |
15034 | #include <sys/param.h> | |
15035 | int main() { | |
15036 | ||
15037 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
15038 | bogus endian macros | |
15039 | #endif | |
15040 | ; return 0; } | |
15041 | EOF | |
15042 | if { (eval echo configure:15043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15043 | rm -rf conftest* | |
15044 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15045 | cat > conftest.$ac_ext <<EOF | |
15046 | #line 15047 "configure" | |
15047 | #include "confdefs.h" | |
15048 | #include <sys/types.h> | |
15049 | #include <sys/param.h> | |
15050 | int main() { | |
15051 | ||
15052 | #if BYTE_ORDER != BIG_ENDIAN | |
15053 | not big endian | |
15054 | #endif | |
15055 | ; return 0; } | |
15056 | EOF | |
15057 | if { (eval echo configure:15058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15058 | rm -rf conftest* | |
15059 | ac_cv_c_bigendian=yes | |
15060 | else | |
15061 | echo "configure: failed program was:" >&5 | |
15062 | cat conftest.$ac_ext >&5 | |
15063 | rm -rf conftest* | |
15064 | ac_cv_c_bigendian=no | |
15065 | fi | |
15066 | rm -f conftest* | |
15067 | else | |
15068 | echo "configure: failed program was:" >&5 | |
15069 | cat conftest.$ac_ext >&5 | |
15070 | fi | |
15071 | rm -f conftest* | |
15072 | if test $ac_cv_c_bigendian = unknown; then | |
15073 | if test "$cross_compiling" = yes; then | |
15074 | ac_cv_c_bigendian=unknown | |
15075 | else | |
15076 | cat > conftest.$ac_ext <<EOF | |
15077 | #line 15078 "configure" | |
15078 | #include "confdefs.h" | |
15079 | main () { | |
15080 | /* Are we little or big endian? From Harbison&Steele. */ | |
15081 | union | |
15082 | { | |
15083 | long l; | |
15084 | char c[sizeof (long)]; | |
15085 | } u; | |
15086 | u.l = 1; | |
15087 | exit (u.c[sizeof (long) - 1] == 1); | |
15088 | } | |
15089 | EOF | |
15090 | if { (eval echo configure:15091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
15091 | then | |
15092 | ac_cv_c_bigendian=no | |
15093 | else | |
15094 | echo "configure: failed program was:" >&5 | |
15095 | cat conftest.$ac_ext >&5 | |
15096 | rm -fr conftest* | |
15097 | ac_cv_c_bigendian=yes | |
15098 | fi | |
15099 | rm -fr conftest* | |
15100 | fi | |
15101 | ||
15102 | fi | |
15103 | fi | |
15104 | ||
15105 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
15106 | if test $ac_cv_c_bigendian = unknown; then | |
15107 | 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 | |
15108 | fi | |
15109 | if test $ac_cv_c_bigendian = yes; then | |
15110 | cat >> confdefs.h <<\EOF | |
15111 | #define WORDS_BIGENDIAN 1 | |
15112 | EOF | |
15113 | ||
15114 | fi | |
15115 | ||
15116 | ||
15117 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
15118 | echo "configure:15119: checking how to run the C++ preprocessor" >&5 | |
15119 | if test -z "$CXXCPP"; then | |
15120 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
15121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15122 | else | |
15123 | ac_ext=C | |
15124 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15125 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15126 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15127 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15128 | cross_compiling=$ac_cv_prog_cxx_cross | |
15129 | CXXCPP="${CXX-g++} -E" | |
15130 | cat > conftest.$ac_ext <<EOF | |
15131 | #line 15132 "configure" | |
15132 | #include "confdefs.h" | |
15133 | #include <stdlib.h> | |
15134 | EOF | |
15135 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15136 | { (eval echo configure:15137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15137 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15138 | if test -z "$ac_err"; then | |
15139 | : | |
15140 | else | |
15141 | echo "$ac_err" >&5 | |
15142 | echo "configure: failed program was:" >&5 | |
15143 | cat conftest.$ac_ext >&5 | |
15144 | rm -rf conftest* | |
15145 | CXXCPP=/lib/cpp | |
15146 | fi | |
15147 | rm -f conftest* | |
15148 | ac_cv_prog_CXXCPP="$CXXCPP" | |
15149 | ac_ext=C | |
15150 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15151 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15152 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15153 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15154 | cross_compiling=$ac_cv_prog_cxx_cross | |
15155 | fi | |
15156 | fi | |
15157 | CXXCPP="$ac_cv_prog_CXXCPP" | |
15158 | echo "$ac_t""$CXXCPP" 1>&6 | |
15159 | ||
15160 | ||
15161 | if test "$cross_compiling" = "yes"; then | |
15162 | cat >> confdefs.h <<\EOF | |
15163 | #define wxUSE_IOSTREAMH 1 | |
15164 | EOF | |
15165 | ||
15166 | else | |
15167 | ||
15168 | ac_ext=C | |
15169 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15170 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15171 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15172 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15173 | cross_compiling=$ac_cv_prog_cxx_cross | |
15174 | ||
15175 | ||
15176 | for ac_hdr in iostream | |
15177 | do | |
15178 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15179 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
15180 | echo "configure:15181: checking for $ac_hdr" >&5 | |
15181 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
15182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15183 | else | |
15184 | cat > conftest.$ac_ext <<EOF | |
15185 | #line 15186 "configure" | |
15186 | #include "confdefs.h" | |
15187 | #include <$ac_hdr> | |
15188 | EOF | |
15189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15190 | { (eval echo configure:15191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15192 | if test -z "$ac_err"; then | |
15193 | rm -rf conftest* | |
15194 | eval "ac_cv_header_$ac_safe=yes" | |
15195 | else | |
15196 | echo "$ac_err" >&5 | |
15197 | echo "configure: failed program was:" >&5 | |
15198 | cat conftest.$ac_ext >&5 | |
15199 | rm -rf conftest* | |
15200 | eval "ac_cv_header_$ac_safe=no" | |
15201 | fi | |
15202 | rm -f conftest* | |
15203 | fi | |
15204 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15205 | echo "$ac_t""yes" 1>&6 | |
15206 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15207 | cat >> confdefs.h <<EOF | |
15208 | #define $ac_tr_hdr 1 | |
15209 | EOF | |
15210 | ||
15211 | else | |
15212 | echo "$ac_t""no" 1>&6 | |
15213 | fi | |
15214 | done | |
15215 | ||
15216 | ||
15217 | if test "$ac_cv_header_iostream" = "yes" ; then | |
15218 | : | |
15219 | else | |
15220 | cat >> confdefs.h <<\EOF | |
15221 | #define wxUSE_IOSTREAMH 1 | |
15222 | EOF | |
15223 | ||
15224 | fi | |
15225 | ||
15226 | ac_ext=c | |
15227 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15228 | ac_cpp='$CPP $CPPFLAGS' | |
15229 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15230 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15231 | cross_compiling=$ac_cv_prog_cc_cross | |
15232 | ||
15233 | fi | |
15234 | ||
15235 | ||
15236 | ||
15237 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
15238 | echo "configure:15239: checking if C++ compiler supports bool" >&5 | |
15239 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
15240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15241 | else | |
15242 | ||
15243 | ||
15244 | ac_ext=C | |
15245 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15246 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15247 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15248 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15249 | cross_compiling=$ac_cv_prog_cxx_cross | |
15250 | ||
15251 | ||
15252 | cat > conftest.$ac_ext <<EOF | |
15253 | #line 15254 "configure" | |
15254 | #include "confdefs.h" | |
15255 | ||
15256 | ||
15257 | int main() { | |
15258 | ||
15259 | bool b = true; | |
15260 | ||
15261 | return 0; | |
15262 | ||
15263 | ; return 0; } | |
15264 | EOF | |
15265 | if { (eval echo configure:15266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15266 | rm -rf conftest* | |
15267 | ||
15268 | wx_cv_cpp_bool=yes | |
15269 | ||
15270 | else | |
15271 | echo "configure: failed program was:" >&5 | |
15272 | cat conftest.$ac_ext >&5 | |
15273 | rm -rf conftest* | |
15274 | ||
15275 | wx_cv_cpp_bool=no | |
15276 | ||
15277 | ||
15278 | fi | |
15279 | rm -f conftest* | |
15280 | ||
15281 | ac_ext=c | |
15282 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15283 | ac_cpp='$CPP $CPPFLAGS' | |
15284 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15285 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15286 | cross_compiling=$ac_cv_prog_cc_cross | |
15287 | ||
15288 | ||
15289 | fi | |
15290 | ||
15291 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
15292 | ||
15293 | if test "$wx_cv_cpp_bool" = "yes"; then | |
15294 | cat >> confdefs.h <<\EOF | |
15295 | #define HAVE_BOOL 1 | |
15296 | EOF | |
15297 | ||
15298 | fi | |
15299 | ||
15300 | ||
15301 | ||
15302 | WCHAR_OK=0 | |
15303 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15304 | WCHAR_LINK= | |
15305 | for ac_func in wcslen | |
15306 | do | |
15307 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15308 | echo "configure:15309: checking for $ac_func" >&5 | |
15309 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15311 | else | |
15312 | cat > conftest.$ac_ext <<EOF | |
15313 | #line 15314 "configure" | |
15314 | #include "confdefs.h" | |
15315 | /* System header to define __stub macros and hopefully few prototypes, | |
15316 | which can conflict with char $ac_func(); below. */ | |
15317 | #include <assert.h> | |
15318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15319 | /* We use char because int might match the return type of a gcc2 | |
15320 | builtin and then its argument prototype would still apply. */ | |
15321 | char $ac_func(); | |
15322 | ||
15323 | int main() { | |
15324 | ||
15325 | /* The GNU C library defines this for functions which it implements | |
15326 | to always fail with ENOSYS. Some functions are actually named | |
15327 | something starting with __ and the normal name is an alias. */ | |
15328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15329 | choke me | |
15330 | #else | |
15331 | $ac_func(); | |
15332 | #endif | |
15333 | ||
15334 | ; return 0; } | |
15335 | EOF | |
15336 | if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15337 | rm -rf conftest* | |
15338 | eval "ac_cv_func_$ac_func=yes" | |
15339 | else | |
15340 | echo "configure: failed program was:" >&5 | |
15341 | cat conftest.$ac_ext >&5 | |
15342 | rm -rf conftest* | |
15343 | eval "ac_cv_func_$ac_func=no" | |
15344 | fi | |
15345 | rm -f conftest* | |
15346 | fi | |
15347 | ||
15348 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15349 | echo "$ac_t""yes" 1>&6 | |
15350 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15351 | cat >> confdefs.h <<EOF | |
15352 | #define $ac_tr_func 1 | |
15353 | EOF | |
15354 | ||
15355 | cat >> confdefs.h <<\EOF | |
15356 | #define HAVE_WCSLEN 1 | |
15357 | EOF | |
15358 | ||
15359 | WCHAR_OK=1 | |
15360 | ||
15361 | else | |
15362 | echo "$ac_t""no" 1>&6 | |
15363 | fi | |
15364 | done | |
15365 | ||
15366 | ||
15367 | if test "$WCHAR_OK" = 0; then | |
15368 | if test "$TOOLKIT" = "MSW"; then | |
15369 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
15370 | echo "configure:15371: checking for wcslen in -lmsvcrt" >&5 | |
15371 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
15372 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15374 | else | |
15375 | ac_save_LIBS="$LIBS" | |
15376 | LIBS="-lmsvcrt $LIBS" | |
15377 | cat > conftest.$ac_ext <<EOF | |
15378 | #line 15379 "configure" | |
15379 | #include "confdefs.h" | |
15380 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15381 | /* We use char because int might match the return type of a gcc2 | |
15382 | builtin and then its argument prototype would still apply. */ | |
15383 | char wcslen(); | |
15384 | ||
15385 | int main() { | |
15386 | wcslen() | |
15387 | ; return 0; } | |
15388 | EOF | |
15389 | if { (eval echo configure:15390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15390 | rm -rf conftest* | |
15391 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15392 | else | |
15393 | echo "configure: failed program was:" >&5 | |
15394 | cat conftest.$ac_ext >&5 | |
15395 | rm -rf conftest* | |
15396 | eval "ac_cv_lib_$ac_lib_var=no" | |
15397 | fi | |
15398 | rm -f conftest* | |
15399 | LIBS="$ac_save_LIBS" | |
15400 | ||
15401 | fi | |
15402 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15403 | echo "$ac_t""yes" 1>&6 | |
15404 | ||
15405 | cat >> confdefs.h <<\EOF | |
15406 | #define HAVE_WCSLEN 1 | |
15407 | EOF | |
15408 | ||
15409 | WCHAR_OK=1 | |
15410 | ||
15411 | else | |
15412 | echo "$ac_t""no" 1>&6 | |
15413 | fi | |
15414 | ||
15415 | else | |
15416 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
15417 | echo "configure:15418: checking for wcslen in -lw" >&5 | |
15418 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
15419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15421 | else | |
15422 | ac_save_LIBS="$LIBS" | |
15423 | LIBS="-lw $LIBS" | |
15424 | cat > conftest.$ac_ext <<EOF | |
15425 | #line 15426 "configure" | |
15426 | #include "confdefs.h" | |
15427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15428 | /* We use char because int might match the return type of a gcc2 | |
15429 | builtin and then its argument prototype would still apply. */ | |
15430 | char wcslen(); | |
15431 | ||
15432 | int main() { | |
15433 | wcslen() | |
15434 | ; return 0; } | |
15435 | EOF | |
15436 | if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15437 | rm -rf conftest* | |
15438 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15439 | else | |
15440 | echo "configure: failed program was:" >&5 | |
15441 | cat conftest.$ac_ext >&5 | |
15442 | rm -rf conftest* | |
15443 | eval "ac_cv_lib_$ac_lib_var=no" | |
15444 | fi | |
15445 | rm -f conftest* | |
15446 | LIBS="$ac_save_LIBS" | |
15447 | ||
15448 | fi | |
15449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15450 | echo "$ac_t""yes" 1>&6 | |
15451 | ||
15452 | cat >> confdefs.h <<\EOF | |
15453 | #define HAVE_WCSLEN 1 | |
15454 | EOF | |
15455 | ||
15456 | WCHAR_LINK=" -lw" | |
15457 | WCHAR_OK=1 | |
15458 | ||
15459 | else | |
15460 | echo "$ac_t""no" 1>&6 | |
15461 | fi | |
15462 | ||
15463 | fi | |
15464 | fi | |
15465 | fi | |
15466 | ||
15467 | if test "$WCHAR_OK" = 1; then | |
15468 | cat >> confdefs.h <<\EOF | |
15469 | #define wxUSE_WCHAR_T 1 | |
15470 | EOF | |
15471 | ||
15472 | ||
15473 | for ac_func in wcsrtombs | |
15474 | do | |
15475 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15476 | echo "configure:15477: checking for $ac_func" >&5 | |
15477 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15479 | else | |
15480 | cat > conftest.$ac_ext <<EOF | |
15481 | #line 15482 "configure" | |
15482 | #include "confdefs.h" | |
15483 | /* System header to define __stub macros and hopefully few prototypes, | |
15484 | which can conflict with char $ac_func(); below. */ | |
15485 | #include <assert.h> | |
15486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15487 | /* We use char because int might match the return type of a gcc2 | |
15488 | builtin and then its argument prototype would still apply. */ | |
15489 | char $ac_func(); | |
15490 | ||
15491 | int main() { | |
15492 | ||
15493 | /* The GNU C library defines this for functions which it implements | |
15494 | to always fail with ENOSYS. Some functions are actually named | |
15495 | something starting with __ and the normal name is an alias. */ | |
15496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15497 | choke me | |
15498 | #else | |
15499 | $ac_func(); | |
15500 | #endif | |
15501 | ||
15502 | ; return 0; } | |
15503 | EOF | |
15504 | if { (eval echo configure:15505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15505 | rm -rf conftest* | |
15506 | eval "ac_cv_func_$ac_func=yes" | |
15507 | else | |
15508 | echo "configure: failed program was:" >&5 | |
15509 | cat conftest.$ac_ext >&5 | |
15510 | rm -rf conftest* | |
15511 | eval "ac_cv_func_$ac_func=no" | |
15512 | fi | |
15513 | rm -f conftest* | |
15514 | fi | |
15515 | ||
15516 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15517 | echo "$ac_t""yes" 1>&6 | |
15518 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15519 | cat >> confdefs.h <<EOF | |
15520 | #define $ac_tr_func 1 | |
15521 | EOF | |
15522 | ||
15523 | else | |
15524 | echo "$ac_t""no" 1>&6 | |
15525 | fi | |
15526 | done | |
15527 | ||
15528 | else | |
15529 | if test "$USE_DARWIN" = 1; then | |
15530 | cat >> confdefs.h <<\EOF | |
15531 | #define wxUSE_WCHAR_T 1 | |
15532 | EOF | |
15533 | ||
15534 | else | |
15535 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15536 | fi | |
15537 | fi | |
15538 | ||
15539 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
15540 | echo "configure:15541: checking for vprintf" >&5 | |
15541 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
15542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15543 | else | |
15544 | cat > conftest.$ac_ext <<EOF | |
15545 | #line 15546 "configure" | |
15546 | #include "confdefs.h" | |
15547 | /* System header to define __stub macros and hopefully few prototypes, | |
15548 | which can conflict with char vprintf(); below. */ | |
15549 | #include <assert.h> | |
15550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15551 | /* We use char because int might match the return type of a gcc2 | |
15552 | builtin and then its argument prototype would still apply. */ | |
15553 | char vprintf(); | |
15554 | ||
15555 | int main() { | |
15556 | ||
15557 | /* The GNU C library defines this for functions which it implements | |
15558 | to always fail with ENOSYS. Some functions are actually named | |
15559 | something starting with __ and the normal name is an alias. */ | |
15560 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15561 | choke me | |
15562 | #else | |
15563 | vprintf(); | |
15564 | #endif | |
15565 | ||
15566 | ; return 0; } | |
15567 | EOF | |
15568 | if { (eval echo configure:15569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15569 | rm -rf conftest* | |
15570 | eval "ac_cv_func_vprintf=yes" | |
15571 | else | |
15572 | echo "configure: failed program was:" >&5 | |
15573 | cat conftest.$ac_ext >&5 | |
15574 | rm -rf conftest* | |
15575 | eval "ac_cv_func_vprintf=no" | |
15576 | fi | |
15577 | rm -f conftest* | |
15578 | fi | |
15579 | ||
15580 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
15581 | echo "$ac_t""yes" 1>&6 | |
15582 | cat >> confdefs.h <<\EOF | |
15583 | #define HAVE_VPRINTF 1 | |
15584 | EOF | |
15585 | ||
15586 | else | |
15587 | echo "$ac_t""no" 1>&6 | |
15588 | fi | |
15589 | ||
15590 | if test "$ac_cv_func_vprintf" != yes; then | |
15591 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
15592 | echo "configure:15593: checking for _doprnt" >&5 | |
15593 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
15594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15595 | else | |
15596 | cat > conftest.$ac_ext <<EOF | |
15597 | #line 15598 "configure" | |
15598 | #include "confdefs.h" | |
15599 | /* System header to define __stub macros and hopefully few prototypes, | |
15600 | which can conflict with char _doprnt(); below. */ | |
15601 | #include <assert.h> | |
15602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15603 | /* We use char because int might match the return type of a gcc2 | |
15604 | builtin and then its argument prototype would still apply. */ | |
15605 | char _doprnt(); | |
15606 | ||
15607 | int main() { | |
15608 | ||
15609 | /* The GNU C library defines this for functions which it implements | |
15610 | to always fail with ENOSYS. Some functions are actually named | |
15611 | something starting with __ and the normal name is an alias. */ | |
15612 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
15613 | choke me | |
15614 | #else | |
15615 | _doprnt(); | |
15616 | #endif | |
15617 | ||
15618 | ; return 0; } | |
15619 | EOF | |
15620 | if { (eval echo configure:15621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15621 | rm -rf conftest* | |
15622 | eval "ac_cv_func__doprnt=yes" | |
15623 | else | |
15624 | echo "configure: failed program was:" >&5 | |
15625 | cat conftest.$ac_ext >&5 | |
15626 | rm -rf conftest* | |
15627 | eval "ac_cv_func__doprnt=no" | |
15628 | fi | |
15629 | rm -f conftest* | |
15630 | fi | |
15631 | ||
15632 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
15633 | echo "$ac_t""yes" 1>&6 | |
15634 | cat >> confdefs.h <<\EOF | |
15635 | #define HAVE_DOPRNT 1 | |
15636 | EOF | |
15637 | ||
15638 | else | |
15639 | echo "$ac_t""no" 1>&6 | |
15640 | fi | |
15641 | ||
15642 | fi | |
15643 | ||
15644 | ||
15645 | ||
15646 | ||
15647 | ||
15648 | ||
15649 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
15650 | echo "configure:15651: checking for vsnprintf" >&5 | |
15651 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
15652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15653 | else | |
15654 | ||
15655 | cat > conftest.$ac_ext <<EOF | |
15656 | #line 15657 "configure" | |
15657 | #include "confdefs.h" | |
15658 | ||
15659 | #include <stdio.h> | |
15660 | #include <stdarg.h> | |
15661 | ||
15662 | int main() { | |
15663 | ||
15664 | int wx_test_vsnprintf(const char *, ...); | |
15665 | ||
15666 | wx_test_vsnprintf("%s"); | |
15667 | return 0; | |
15668 | } | |
15669 | ||
15670 | int wx_test_vsnprintf(const char *fmt, ...) | |
15671 | { | |
15672 | char *s; | |
15673 | ||
15674 | va_list argp; | |
15675 | va_start(argp, fmt); | |
15676 | vsnprintf(s, 42, fmt, argp); | |
15677 | va_end(argp); | |
15678 | ||
15679 | ; return 0; } | |
15680 | EOF | |
15681 | if { (eval echo configure:15682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15682 | rm -rf conftest* | |
15683 | ||
15684 | wx_cv_func_vsnprintf=yes | |
15685 | ||
15686 | else | |
15687 | echo "configure: failed program was:" >&5 | |
15688 | cat conftest.$ac_ext >&5 | |
15689 | rm -rf conftest* | |
15690 | ||
15691 | cat > conftest.$ac_ext <<EOF | |
15692 | #line 15693 "configure" | |
15693 | #include "confdefs.h" | |
15694 | ||
15695 | #include <stdio.h> | |
15696 | #include <stdarg.h> | |
15697 | ||
15698 | int main() { | |
15699 | ||
15700 | int wx_test_vsnprintf(const char *, ...); | |
15701 | ||
15702 | wx_test_vsnprintf("%s"); | |
15703 | return 0; | |
15704 | } | |
15705 | ||
15706 | int wx_test_vsnprintf(const char *fmt, ...) | |
15707 | { | |
15708 | char *s; | |
15709 | ||
15710 | va_list argp; | |
15711 | va_start(argp, fmt); | |
15712 | _vsnprintf(s, 42, fmt, argp); | |
15713 | va_end(argp); | |
15714 | ||
15715 | ; return 0; } | |
15716 | EOF | |
15717 | if { (eval echo configure:15718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15718 | rm -rf conftest* | |
15719 | ||
15720 | wx_cv_func_vsnprintf=yes | |
15721 | ||
15722 | else | |
15723 | echo "configure: failed program was:" >&5 | |
15724 | cat conftest.$ac_ext >&5 | |
15725 | rm -rf conftest* | |
15726 | ||
15727 | wx_cv_func_vsnprintf=no | |
15728 | ||
15729 | fi | |
15730 | rm -f conftest* | |
15731 | ||
15732 | fi | |
15733 | rm -f conftest* | |
15734 | ||
15735 | fi | |
15736 | ||
15737 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
15738 | ||
15739 | if test "$wx_cv_func_vsnprintf" = yes; then | |
15740 | cat >> confdefs.h <<\EOF | |
15741 | #define HAVE_VSNPRINTF 1 | |
15742 | EOF | |
15743 | ||
15744 | else | |
15745 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 | |
15746 | fi | |
15747 | ||
15748 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
15749 | echo "configure:15750: checking for vsscanf" >&5 | |
15750 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
15751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15752 | else | |
15753 | ||
15754 | cat > conftest.$ac_ext <<EOF | |
15755 | #line 15756 "configure" | |
15756 | #include "confdefs.h" | |
15757 | ||
15758 | #include <stdio.h> | |
15759 | #include <stdarg.h> | |
15760 | ||
15761 | int main() { | |
15762 | ||
15763 | int wx_test_vsscanf(const char *, ...); | |
15764 | ||
15765 | wx_test_vsscanf("%d"); | |
15766 | return 0; | |
15767 | } | |
15768 | ||
15769 | int wx_test_vsscanf(const char *fmt, ...) | |
15770 | { | |
15771 | va_list argp; | |
15772 | va_start(argp, fmt); | |
15773 | vsscanf("42", fmt, argp); | |
15774 | va_end(argp); | |
15775 | ||
15776 | ; return 0; } | |
15777 | EOF | |
15778 | if { (eval echo configure:15779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15779 | rm -rf conftest* | |
15780 | ||
15781 | wx_cv_func_vsscanf=yes | |
15782 | ||
15783 | else | |
15784 | echo "configure: failed program was:" >&5 | |
15785 | cat conftest.$ac_ext >&5 | |
15786 | rm -rf conftest* | |
15787 | ||
15788 | wx_cv_func_vsscanf=no | |
15789 | ||
15790 | fi | |
15791 | rm -f conftest* | |
15792 | ||
15793 | fi | |
15794 | ||
15795 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
15796 | ||
15797 | if test "$wx_cv_func_vsscanf" = yes; then | |
15798 | cat >> confdefs.h <<\EOF | |
15799 | #define HAVE_VSSCANF 1 | |
15800 | EOF | |
15801 | ||
15802 | fi | |
15803 | ||
15804 | if test "$TOOLKIT" != "MSW"; then | |
15805 | ||
15806 | ||
15807 | ||
15808 | ac_ext=C | |
15809 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15811 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15812 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15813 | cross_compiling=$ac_cv_prog_cxx_cross | |
15814 | ||
15815 | ||
15816 | ||
15817 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15818 | if test "${with_libiconv_prefix+set}" = set; then | |
15819 | withval="$with_libiconv_prefix" | |
15820 | ||
15821 | for dir in `echo "$withval" | tr : ' '`; do | |
15822 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15823 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15824 | done | |
15825 | ||
15826 | fi | |
15827 | ||
15828 | ||
15829 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
15830 | echo "configure:15831: checking for iconv" >&5 | |
15831 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then | |
15832 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15833 | else | |
15834 | ||
15835 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
15836 | am_cv_lib_iconv=no | |
15837 | cat > conftest.$ac_ext <<EOF | |
15838 | #line 15839 "configure" | |
15839 | #include "confdefs.h" | |
15840 | #include <stdlib.h> | |
15841 | #include <iconv.h> | |
15842 | int main() { | |
15843 | iconv_t cd = iconv_open("",""); | |
15844 | iconv(cd,NULL,NULL,NULL,NULL); | |
15845 | iconv_close(cd); | |
15846 | ; return 0; } | |
15847 | EOF | |
15848 | if { (eval echo configure:15849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15849 | rm -rf conftest* | |
15850 | am_cv_func_iconv=yes | |
15851 | else | |
15852 | echo "configure: failed program was:" >&5 | |
15853 | cat conftest.$ac_ext >&5 | |
15854 | fi | |
15855 | rm -f conftest* | |
15856 | if test "$am_cv_func_iconv" != yes; then | |
15857 | am_save_LIBS="$LIBS" | |
15858 | LIBS="$LIBS -liconv" | |
15859 | cat > conftest.$ac_ext <<EOF | |
15860 | #line 15861 "configure" | |
15861 | #include "confdefs.h" | |
15862 | #include <stdlib.h> | |
15863 | #include <iconv.h> | |
15864 | int main() { | |
15865 | iconv_t cd = iconv_open("",""); | |
15866 | iconv(cd,NULL,NULL,NULL,NULL); | |
15867 | iconv_close(cd); | |
15868 | ; return 0; } | |
15869 | EOF | |
15870 | if { (eval echo configure:15871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15871 | rm -rf conftest* | |
15872 | am_cv_lib_iconv=yes | |
15873 | am_cv_func_iconv=yes | |
15874 | else | |
15875 | echo "configure: failed program was:" >&5 | |
15876 | cat conftest.$ac_ext >&5 | |
15877 | fi | |
15878 | rm -f conftest* | |
15879 | LIBS="$am_save_LIBS" | |
15880 | fi | |
15881 | ||
15882 | fi | |
15883 | ||
15884 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15885 | if test "$am_cv_func_iconv" = yes; then | |
15886 | cat >> confdefs.h <<\EOF | |
15887 | #define HAVE_ICONV 1 | |
15888 | EOF | |
15889 | ||
15890 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 | |
15891 | echo "configure:15892: checking if iconv needs const" >&5 | |
15892 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then | |
15893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15894 | else | |
15895 | cat > conftest.$ac_ext <<EOF | |
15896 | #line 15897 "configure" | |
15897 | #include "confdefs.h" | |
15898 | ||
15899 | #include <stdlib.h> | |
15900 | #include <iconv.h> | |
15901 | extern | |
15902 | #ifdef __cplusplus | |
15903 | "C" | |
15904 | #endif | |
15905 | #if defined(__STDC__) || defined(__cplusplus) | |
15906 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15907 | #else | |
15908 | size_t iconv(); | |
15909 | #endif | |
15910 | ||
15911 | int main() { | |
15912 | ||
15913 | ; return 0; } | |
15914 | EOF | |
15915 | if { (eval echo configure:15916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15916 | rm -rf conftest* | |
15917 | wx_cv_func_iconv_const="no" | |
15918 | else | |
15919 | echo "configure: failed program was:" >&5 | |
15920 | cat conftest.$ac_ext >&5 | |
15921 | rm -rf conftest* | |
15922 | wx_cv_func_iconv_const="yes" | |
15923 | ||
15924 | fi | |
15925 | rm -f conftest* | |
15926 | ||
15927 | fi | |
15928 | ||
15929 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
15930 | ||
15931 | iconv_const= | |
15932 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
15933 | iconv_const="const" | |
15934 | fi | |
15935 | ||
15936 | cat >> confdefs.h <<EOF | |
15937 | #define ICONV_CONST $iconv_const | |
15938 | EOF | |
15939 | ||
15940 | fi | |
15941 | LIBICONV= | |
15942 | if test "$am_cv_lib_iconv" = yes; then | |
15943 | LIBICONV="-liconv" | |
15944 | fi | |
15945 | ||
15946 | ||
15947 | LIBS="$LIBICONV $LIBS" | |
15948 | ac_ext=c | |
15949 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15950 | ac_cpp='$CPP $CPPFLAGS' | |
15951 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15952 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15953 | cross_compiling=$ac_cv_prog_cc_cross | |
15954 | ||
15955 | ||
15956 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
15957 | for ac_func in sigaction | |
15958 | do | |
15959 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15960 | echo "configure:15961: checking for $ac_func" >&5 | |
15961 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15963 | else | |
15964 | cat > conftest.$ac_ext <<EOF | |
15965 | #line 15966 "configure" | |
15966 | #include "confdefs.h" | |
15967 | /* System header to define __stub macros and hopefully few prototypes, | |
15968 | which can conflict with char $ac_func(); below. */ | |
15969 | #include <assert.h> | |
15970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15971 | /* We use char because int might match the return type of a gcc2 | |
15972 | builtin and then its argument prototype would still apply. */ | |
15973 | char $ac_func(); | |
15974 | ||
15975 | int main() { | |
15976 | ||
15977 | /* The GNU C library defines this for functions which it implements | |
15978 | to always fail with ENOSYS. Some functions are actually named | |
15979 | something starting with __ and the normal name is an alias. */ | |
15980 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15981 | choke me | |
15982 | #else | |
15983 | $ac_func(); | |
15984 | #endif | |
15985 | ||
15986 | ; return 0; } | |
15987 | EOF | |
15988 | if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15989 | rm -rf conftest* | |
15990 | eval "ac_cv_func_$ac_func=yes" | |
15991 | else | |
15992 | echo "configure: failed program was:" >&5 | |
15993 | cat conftest.$ac_ext >&5 | |
15994 | rm -rf conftest* | |
15995 | eval "ac_cv_func_$ac_func=no" | |
15996 | fi | |
15997 | rm -f conftest* | |
15998 | fi | |
15999 | ||
16000 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16001 | echo "$ac_t""yes" 1>&6 | |
16002 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16003 | cat >> confdefs.h <<EOF | |
16004 | #define $ac_tr_func 1 | |
16005 | EOF | |
16006 | ||
16007 | else | |
16008 | echo "$ac_t""no" 1>&6 | |
16009 | fi | |
16010 | done | |
16011 | ||
16012 | ||
16013 | if test "$ac_cv_func_sigaction" = "no"; then | |
16014 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16015 | wxUSE_ON_FATAL_EXCEPTION=no | |
16016 | fi | |
16017 | ||
16018 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16019 | ||
16020 | ac_ext=C | |
16021 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16023 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16024 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16025 | cross_compiling=$ac_cv_prog_cxx_cross | |
16026 | ||
16027 | ||
16028 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
16029 | echo "configure:16030: checking for sa_handler type" >&5 | |
16030 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
16031 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16032 | else | |
16033 | ||
16034 | cat > conftest.$ac_ext <<EOF | |
16035 | #line 16036 "configure" | |
16036 | #include "confdefs.h" | |
16037 | #include <signal.h> | |
16038 | int main() { | |
16039 | ||
16040 | extern void testSigHandler(int); | |
16041 | ||
16042 | struct sigaction sa; | |
16043 | sa.sa_handler = testSigHandler; | |
16044 | ||
16045 | ; return 0; } | |
16046 | EOF | |
16047 | if { (eval echo configure:16048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16048 | rm -rf conftest* | |
16049 | ||
16050 | wx_cv_type_sa_handler=int | |
16051 | ||
16052 | else | |
16053 | echo "configure: failed program was:" >&5 | |
16054 | cat conftest.$ac_ext >&5 | |
16055 | rm -rf conftest* | |
16056 | ||
16057 | wx_cv_type_sa_handler=void | |
16058 | ||
16059 | fi | |
16060 | rm -f conftest* | |
16061 | ||
16062 | fi | |
16063 | ||
16064 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16065 | ||
16066 | ac_ext=c | |
16067 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16068 | ac_cpp='$CPP $CPPFLAGS' | |
16069 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16070 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16071 | cross_compiling=$ac_cv_prog_cc_cross | |
16072 | ||
16073 | ||
16074 | cat >> confdefs.h <<EOF | |
16075 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
16076 | EOF | |
16077 | ||
16078 | fi | |
16079 | fi | |
16080 | ||
16081 | for ac_func in vfork | |
16082 | do | |
16083 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16084 | echo "configure:16085: checking for $ac_func" >&5 | |
16085 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16087 | else | |
16088 | cat > conftest.$ac_ext <<EOF | |
16089 | #line 16090 "configure" | |
16090 | #include "confdefs.h" | |
16091 | /* System header to define __stub macros and hopefully few prototypes, | |
16092 | which can conflict with char $ac_func(); below. */ | |
16093 | #include <assert.h> | |
16094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16095 | /* We use char because int might match the return type of a gcc2 | |
16096 | builtin and then its argument prototype would still apply. */ | |
16097 | char $ac_func(); | |
16098 | ||
16099 | int main() { | |
16100 | ||
16101 | /* The GNU C library defines this for functions which it implements | |
16102 | to always fail with ENOSYS. Some functions are actually named | |
16103 | something starting with __ and the normal name is an alias. */ | |
16104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16105 | choke me | |
16106 | #else | |
16107 | $ac_func(); | |
16108 | #endif | |
16109 | ||
16110 | ; return 0; } | |
16111 | EOF | |
16112 | if { (eval echo configure:16113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16113 | rm -rf conftest* | |
16114 | eval "ac_cv_func_$ac_func=yes" | |
16115 | else | |
16116 | echo "configure: failed program was:" >&5 | |
16117 | cat conftest.$ac_ext >&5 | |
16118 | rm -rf conftest* | |
16119 | eval "ac_cv_func_$ac_func=no" | |
16120 | fi | |
16121 | rm -f conftest* | |
16122 | fi | |
16123 | ||
16124 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16125 | echo "$ac_t""yes" 1>&6 | |
16126 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16127 | cat >> confdefs.h <<EOF | |
16128 | #define $ac_tr_func 1 | |
16129 | EOF | |
16130 | ||
16131 | else | |
16132 | echo "$ac_t""no" 1>&6 | |
16133 | fi | |
16134 | done | |
16135 | ||
16136 | ||
16137 | for ac_func in mkstemp mktemp | |
16138 | do | |
16139 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16140 | echo "configure:16141: checking for $ac_func" >&5 | |
16141 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16143 | else | |
16144 | cat > conftest.$ac_ext <<EOF | |
16145 | #line 16146 "configure" | |
16146 | #include "confdefs.h" | |
16147 | /* System header to define __stub macros and hopefully few prototypes, | |
16148 | which can conflict with char $ac_func(); below. */ | |
16149 | #include <assert.h> | |
16150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16151 | /* We use char because int might match the return type of a gcc2 | |
16152 | builtin and then its argument prototype would still apply. */ | |
16153 | char $ac_func(); | |
16154 | ||
16155 | int main() { | |
16156 | ||
16157 | /* The GNU C library defines this for functions which it implements | |
16158 | to always fail with ENOSYS. Some functions are actually named | |
16159 | something starting with __ and the normal name is an alias. */ | |
16160 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16161 | choke me | |
16162 | #else | |
16163 | $ac_func(); | |
16164 | #endif | |
16165 | ||
16166 | ; return 0; } | |
16167 | EOF | |
16168 | if { (eval echo configure:16169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16169 | rm -rf conftest* | |
16170 | eval "ac_cv_func_$ac_func=yes" | |
16171 | else | |
16172 | echo "configure: failed program was:" >&5 | |
16173 | cat conftest.$ac_ext >&5 | |
16174 | rm -rf conftest* | |
16175 | eval "ac_cv_func_$ac_func=no" | |
16176 | fi | |
16177 | rm -f conftest* | |
16178 | fi | |
16179 | ||
16180 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16181 | echo "$ac_t""yes" 1>&6 | |
16182 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16183 | cat >> confdefs.h <<EOF | |
16184 | #define $ac_tr_func 1 | |
16185 | EOF | |
16186 | break | |
16187 | else | |
16188 | echo "$ac_t""no" 1>&6 | |
16189 | fi | |
16190 | done | |
16191 | ||
16192 | ||
16193 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
16194 | echo "configure:16195: checking for statfs" >&5 | |
16195 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then | |
16196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16197 | else | |
16198 | cat > conftest.$ac_ext <<EOF | |
16199 | #line 16200 "configure" | |
16200 | #include "confdefs.h" | |
16201 | ||
16202 | #if defined(__BSD__) | |
16203 | #include <sys/param.h> | |
16204 | #include <sys/mount.h> | |
16205 | #else | |
16206 | #include <sys/vfs.h> | |
16207 | #endif | |
16208 | ||
16209 | int main() { | |
16210 | ||
16211 | long l; | |
16212 | struct statfs fs; | |
16213 | statfs("/", &fs); | |
16214 | l = fs.f_bsize; | |
16215 | l += fs.f_blocks; | |
16216 | l += fs.f_bavail; | |
16217 | ||
16218 | ; return 0; } | |
16219 | EOF | |
16220 | if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16221 | rm -rf conftest* | |
16222 | ||
16223 | wx_cv_func_statfs=yes | |
16224 | ||
16225 | else | |
16226 | echo "configure: failed program was:" >&5 | |
16227 | cat conftest.$ac_ext >&5 | |
16228 | rm -rf conftest* | |
16229 | ||
16230 | wx_cv_func_statfs=no | |
16231 | ||
16232 | ||
16233 | fi | |
16234 | rm -f conftest* | |
16235 | ||
16236 | fi | |
16237 | ||
16238 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
16239 | ||
16240 | if test "$wx_cv_func_statfs" = "yes"; then | |
16241 | cat >> confdefs.h <<\EOF | |
16242 | #define HAVE_STATFS 1 | |
16243 | EOF | |
16244 | ||
16245 | else | |
16246 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
16247 | echo "configure:16248: checking for statvfs" >&5 | |
16248 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then | |
16249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16250 | else | |
16251 | cat > conftest.$ac_ext <<EOF | |
16252 | #line 16253 "configure" | |
16253 | #include "confdefs.h" | |
16254 | ||
16255 | #include <sys/statvfs.h> | |
16256 | ||
16257 | int main() { | |
16258 | ||
16259 | long l; | |
16260 | struct statvfs fs; | |
16261 | statvfs("/", &fs); | |
16262 | l = fs.f_bsize; | |
16263 | l += fs.f_blocks; | |
16264 | l += fs.f_bavail; | |
16265 | ||
16266 | ; return 0; } | |
16267 | EOF | |
16268 | if { (eval echo configure:16269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16269 | rm -rf conftest* | |
16270 | ||
16271 | wx_cv_func_statvfs=yes | |
16272 | ||
16273 | else | |
16274 | echo "configure: failed program was:" >&5 | |
16275 | cat conftest.$ac_ext >&5 | |
16276 | rm -rf conftest* | |
16277 | ||
16278 | wx_cv_func_statvfs=no | |
16279 | ||
16280 | ||
16281 | fi | |
16282 | rm -f conftest* | |
16283 | ||
16284 | fi | |
16285 | ||
16286 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
16287 | ||
16288 | if test "$wx_cv_func_statvfs" = "yes"; then | |
16289 | cat >> confdefs.h <<\EOF | |
16290 | #define HAVE_STATVFS 1 | |
16291 | EOF | |
16292 | ||
16293 | else | |
16294 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16295 | fi | |
16296 | fi | |
16297 | ||
16298 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
16299 | for ac_func in fcntl flock | |
16300 | do | |
16301 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16302 | echo "configure:16303: checking for $ac_func" >&5 | |
16303 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16305 | else | |
16306 | cat > conftest.$ac_ext <<EOF | |
16307 | #line 16308 "configure" | |
16308 | #include "confdefs.h" | |
16309 | /* System header to define __stub macros and hopefully few prototypes, | |
16310 | which can conflict with char $ac_func(); below. */ | |
16311 | #include <assert.h> | |
16312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16313 | /* We use char because int might match the return type of a gcc2 | |
16314 | builtin and then its argument prototype would still apply. */ | |
16315 | char $ac_func(); | |
16316 | ||
16317 | int main() { | |
16318 | ||
16319 | /* The GNU C library defines this for functions which it implements | |
16320 | to always fail with ENOSYS. Some functions are actually named | |
16321 | something starting with __ and the normal name is an alias. */ | |
16322 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16323 | choke me | |
16324 | #else | |
16325 | $ac_func(); | |
16326 | #endif | |
16327 | ||
16328 | ; return 0; } | |
16329 | EOF | |
16330 | if { (eval echo configure:16331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16331 | rm -rf conftest* | |
16332 | eval "ac_cv_func_$ac_func=yes" | |
16333 | else | |
16334 | echo "configure: failed program was:" >&5 | |
16335 | cat conftest.$ac_ext >&5 | |
16336 | rm -rf conftest* | |
16337 | eval "ac_cv_func_$ac_func=no" | |
16338 | fi | |
16339 | rm -f conftest* | |
16340 | fi | |
16341 | ||
16342 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16343 | echo "$ac_t""yes" 1>&6 | |
16344 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16345 | cat >> confdefs.h <<EOF | |
16346 | #define $ac_tr_func 1 | |
16347 | EOF | |
16348 | break | |
16349 | else | |
16350 | echo "$ac_t""no" 1>&6 | |
16351 | fi | |
16352 | done | |
16353 | ||
16354 | ||
16355 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
16356 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16357 | wxUSE_SNGLINST_CHECKER=no | |
16358 | fi | |
16359 | fi | |
16360 | ||
16361 | for ac_func in timegm | |
16362 | do | |
16363 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16364 | echo "configure:16365: checking for $ac_func" >&5 | |
16365 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16367 | else | |
16368 | cat > conftest.$ac_ext <<EOF | |
16369 | #line 16370 "configure" | |
16370 | #include "confdefs.h" | |
16371 | /* System header to define __stub macros and hopefully few prototypes, | |
16372 | which can conflict with char $ac_func(); below. */ | |
16373 | #include <assert.h> | |
16374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16375 | /* We use char because int might match the return type of a gcc2 | |
16376 | builtin and then its argument prototype would still apply. */ | |
16377 | char $ac_func(); | |
16378 | ||
16379 | int main() { | |
16380 | ||
16381 | /* The GNU C library defines this for functions which it implements | |
16382 | to always fail with ENOSYS. Some functions are actually named | |
16383 | something starting with __ and the normal name is an alias. */ | |
16384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16385 | choke me | |
16386 | #else | |
16387 | $ac_func(); | |
16388 | #endif | |
16389 | ||
16390 | ; return 0; } | |
16391 | EOF | |
16392 | if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16393 | rm -rf conftest* | |
16394 | eval "ac_cv_func_$ac_func=yes" | |
16395 | else | |
16396 | echo "configure: failed program was:" >&5 | |
16397 | cat conftest.$ac_ext >&5 | |
16398 | rm -rf conftest* | |
16399 | eval "ac_cv_func_$ac_func=no" | |
16400 | fi | |
16401 | rm -f conftest* | |
16402 | fi | |
16403 | ||
16404 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16405 | echo "$ac_t""yes" 1>&6 | |
16406 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16407 | cat >> confdefs.h <<EOF | |
16408 | #define $ac_tr_func 1 | |
16409 | EOF | |
16410 | ||
16411 | else | |
16412 | echo "$ac_t""no" 1>&6 | |
16413 | fi | |
16414 | done | |
16415 | ||
16416 | ||
16417 | for ac_func in putenv setenv | |
16418 | do | |
16419 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16420 | echo "configure:16421: checking for $ac_func" >&5 | |
16421 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16423 | else | |
16424 | cat > conftest.$ac_ext <<EOF | |
16425 | #line 16426 "configure" | |
16426 | #include "confdefs.h" | |
16427 | /* System header to define __stub macros and hopefully few prototypes, | |
16428 | which can conflict with char $ac_func(); below. */ | |
16429 | #include <assert.h> | |
16430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16431 | /* We use char because int might match the return type of a gcc2 | |
16432 | builtin and then its argument prototype would still apply. */ | |
16433 | char $ac_func(); | |
16434 | ||
16435 | int main() { | |
16436 | ||
16437 | /* The GNU C library defines this for functions which it implements | |
16438 | to always fail with ENOSYS. Some functions are actually named | |
16439 | something starting with __ and the normal name is an alias. */ | |
16440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16441 | choke me | |
16442 | #else | |
16443 | $ac_func(); | |
16444 | #endif | |
16445 | ||
16446 | ; return 0; } | |
16447 | EOF | |
16448 | if { (eval echo configure:16449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16449 | rm -rf conftest* | |
16450 | eval "ac_cv_func_$ac_func=yes" | |
16451 | else | |
16452 | echo "configure: failed program was:" >&5 | |
16453 | cat conftest.$ac_ext >&5 | |
16454 | rm -rf conftest* | |
16455 | eval "ac_cv_func_$ac_func=no" | |
16456 | fi | |
16457 | rm -f conftest* | |
16458 | fi | |
16459 | ||
16460 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16461 | echo "$ac_t""yes" 1>&6 | |
16462 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16463 | cat >> confdefs.h <<EOF | |
16464 | #define $ac_tr_func 1 | |
16465 | EOF | |
16466 | break | |
16467 | else | |
16468 | echo "$ac_t""no" 1>&6 | |
16469 | fi | |
16470 | done | |
16471 | ||
16472 | ||
16473 | HAVE_SOME_SLEEP_FUNC=0 | |
16474 | if test "$USE_BEOS" = 1; then | |
16475 | cat >> confdefs.h <<\EOF | |
16476 | #define HAVE_SLEEP 1 | |
16477 | EOF | |
16478 | ||
16479 | HAVE_SOME_SLEEP_FUNC=1 | |
16480 | fi | |
16481 | ||
16482 | if test "$USE_DARWIN" = 1; then | |
16483 | cat >> confdefs.h <<\EOF | |
16484 | #define HAVE_USLEEP 1 | |
16485 | EOF | |
16486 | ||
16487 | HAVE_SOME_SLEEP_FUNC=1 | |
16488 | fi | |
16489 | ||
16490 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
16491 | POSIX4_LINK= | |
16492 | for ac_func in nanosleep | |
16493 | do | |
16494 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16495 | echo "configure:16496: checking for $ac_func" >&5 | |
16496 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16498 | else | |
16499 | cat > conftest.$ac_ext <<EOF | |
16500 | #line 16501 "configure" | |
16501 | #include "confdefs.h" | |
16502 | /* System header to define __stub macros and hopefully few prototypes, | |
16503 | which can conflict with char $ac_func(); below. */ | |
16504 | #include <assert.h> | |
16505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16506 | /* We use char because int might match the return type of a gcc2 | |
16507 | builtin and then its argument prototype would still apply. */ | |
16508 | char $ac_func(); | |
16509 | ||
16510 | int main() { | |
16511 | ||
16512 | /* The GNU C library defines this for functions which it implements | |
16513 | to always fail with ENOSYS. Some functions are actually named | |
16514 | something starting with __ and the normal name is an alias. */ | |
16515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16516 | choke me | |
16517 | #else | |
16518 | $ac_func(); | |
16519 | #endif | |
16520 | ||
16521 | ; return 0; } | |
16522 | EOF | |
16523 | if { (eval echo configure:16524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16524 | rm -rf conftest* | |
16525 | eval "ac_cv_func_$ac_func=yes" | |
16526 | else | |
16527 | echo "configure: failed program was:" >&5 | |
16528 | cat conftest.$ac_ext >&5 | |
16529 | rm -rf conftest* | |
16530 | eval "ac_cv_func_$ac_func=no" | |
16531 | fi | |
16532 | rm -f conftest* | |
16533 | fi | |
16534 | ||
16535 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16536 | echo "$ac_t""yes" 1>&6 | |
16537 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16538 | cat >> confdefs.h <<EOF | |
16539 | #define $ac_tr_func 1 | |
16540 | EOF | |
16541 | cat >> confdefs.h <<\EOF | |
16542 | #define HAVE_NANOSLEEP 1 | |
16543 | EOF | |
16544 | ||
16545 | else | |
16546 | echo "$ac_t""no" 1>&6 | |
16547 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
16548 | echo "configure:16549: checking for nanosleep in -lposix4" >&5 | |
16549 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
16550 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16552 | else | |
16553 | ac_save_LIBS="$LIBS" | |
16554 | LIBS="-lposix4 $LIBS" | |
16555 | cat > conftest.$ac_ext <<EOF | |
16556 | #line 16557 "configure" | |
16557 | #include "confdefs.h" | |
16558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16559 | /* We use char because int might match the return type of a gcc2 | |
16560 | builtin and then its argument prototype would still apply. */ | |
16561 | char nanosleep(); | |
16562 | ||
16563 | int main() { | |
16564 | nanosleep() | |
16565 | ; return 0; } | |
16566 | EOF | |
16567 | if { (eval echo configure:16568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16568 | rm -rf conftest* | |
16569 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16570 | else | |
16571 | echo "configure: failed program was:" >&5 | |
16572 | cat conftest.$ac_ext >&5 | |
16573 | rm -rf conftest* | |
16574 | eval "ac_cv_lib_$ac_lib_var=no" | |
16575 | fi | |
16576 | rm -f conftest* | |
16577 | LIBS="$ac_save_LIBS" | |
16578 | ||
16579 | fi | |
16580 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16581 | echo "$ac_t""yes" 1>&6 | |
16582 | ||
16583 | cat >> confdefs.h <<\EOF | |
16584 | #define HAVE_NANOSLEEP 1 | |
16585 | EOF | |
16586 | ||
16587 | POSIX4_LINK=" -lposix4" | |
16588 | ||
16589 | else | |
16590 | echo "$ac_t""no" 1>&6 | |
16591 | ||
16592 | for ac_func in usleep | |
16593 | do | |
16594 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16595 | echo "configure:16596: checking for $ac_func" >&5 | |
16596 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16598 | else | |
16599 | cat > conftest.$ac_ext <<EOF | |
16600 | #line 16601 "configure" | |
16601 | #include "confdefs.h" | |
16602 | /* System header to define __stub macros and hopefully few prototypes, | |
16603 | which can conflict with char $ac_func(); below. */ | |
16604 | #include <assert.h> | |
16605 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16606 | /* We use char because int might match the return type of a gcc2 | |
16607 | builtin and then its argument prototype would still apply. */ | |
16608 | char $ac_func(); | |
16609 | ||
16610 | int main() { | |
16611 | ||
16612 | /* The GNU C library defines this for functions which it implements | |
16613 | to always fail with ENOSYS. Some functions are actually named | |
16614 | something starting with __ and the normal name is an alias. */ | |
16615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16616 | choke me | |
16617 | #else | |
16618 | $ac_func(); | |
16619 | #endif | |
16620 | ||
16621 | ; return 0; } | |
16622 | EOF | |
16623 | if { (eval echo configure:16624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16624 | rm -rf conftest* | |
16625 | eval "ac_cv_func_$ac_func=yes" | |
16626 | else | |
16627 | echo "configure: failed program was:" >&5 | |
16628 | cat conftest.$ac_ext >&5 | |
16629 | rm -rf conftest* | |
16630 | eval "ac_cv_func_$ac_func=no" | |
16631 | fi | |
16632 | rm -f conftest* | |
16633 | fi | |
16634 | ||
16635 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16636 | echo "$ac_t""yes" 1>&6 | |
16637 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16638 | cat >> confdefs.h <<EOF | |
16639 | #define $ac_tr_func 1 | |
16640 | EOF | |
16641 | cat >> confdefs.h <<\EOF | |
16642 | #define HAVE_USLEEP 1 | |
16643 | EOF | |
16644 | ||
16645 | else | |
16646 | echo "$ac_t""no" 1>&6 | |
16647 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
16648 | ||
16649 | fi | |
16650 | done | |
16651 | ||
16652 | ||
16653 | ||
16654 | fi | |
16655 | ||
16656 | ||
16657 | ||
16658 | fi | |
16659 | done | |
16660 | ||
16661 | fi | |
16662 | ||
16663 | for ac_func in uname gethostname | |
16664 | do | |
16665 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16666 | echo "configure:16667: checking for $ac_func" >&5 | |
16667 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16669 | else | |
16670 | cat > conftest.$ac_ext <<EOF | |
16671 | #line 16672 "configure" | |
16672 | #include "confdefs.h" | |
16673 | /* System header to define __stub macros and hopefully few prototypes, | |
16674 | which can conflict with char $ac_func(); below. */ | |
16675 | #include <assert.h> | |
16676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16677 | /* We use char because int might match the return type of a gcc2 | |
16678 | builtin and then its argument prototype would still apply. */ | |
16679 | char $ac_func(); | |
16680 | ||
16681 | int main() { | |
16682 | ||
16683 | /* The GNU C library defines this for functions which it implements | |
16684 | to always fail with ENOSYS. Some functions are actually named | |
16685 | something starting with __ and the normal name is an alias. */ | |
16686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16687 | choke me | |
16688 | #else | |
16689 | $ac_func(); | |
16690 | #endif | |
16691 | ||
16692 | ; return 0; } | |
16693 | EOF | |
16694 | if { (eval echo configure:16695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16695 | rm -rf conftest* | |
16696 | eval "ac_cv_func_$ac_func=yes" | |
16697 | else | |
16698 | echo "configure: failed program was:" >&5 | |
16699 | cat conftest.$ac_ext >&5 | |
16700 | rm -rf conftest* | |
16701 | eval "ac_cv_func_$ac_func=no" | |
16702 | fi | |
16703 | rm -f conftest* | |
16704 | fi | |
16705 | ||
16706 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16707 | echo "$ac_t""yes" 1>&6 | |
16708 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16709 | cat >> confdefs.h <<EOF | |
16710 | #define $ac_tr_func 1 | |
16711 | EOF | |
16712 | break | |
16713 | else | |
16714 | echo "$ac_t""no" 1>&6 | |
16715 | fi | |
16716 | done | |
16717 | ||
16718 | ||
16719 | ||
16720 | ac_ext=C | |
16721 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16722 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16723 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16724 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16725 | cross_compiling=$ac_cv_prog_cxx_cross | |
16726 | ||
16727 | ||
16728 | for ac_func in strtok_r | |
16729 | do | |
16730 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16731 | echo "configure:16732: checking for $ac_func" >&5 | |
16732 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16734 | else | |
16735 | cat > conftest.$ac_ext <<EOF | |
16736 | #line 16737 "configure" | |
16737 | #include "confdefs.h" | |
16738 | /* System header to define __stub macros and hopefully few prototypes, | |
16739 | which can conflict with char $ac_func(); below. */ | |
16740 | #include <assert.h> | |
16741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16742 | #ifdef __cplusplus | |
16743 | extern "C" | |
16744 | #endif | |
16745 | /* We use char because int might match the return type of a gcc2 | |
16746 | builtin and then its argument prototype would still apply. */ | |
16747 | char $ac_func(); | |
16748 | ||
16749 | int main() { | |
16750 | ||
16751 | /* The GNU C library defines this for functions which it implements | |
16752 | to always fail with ENOSYS. Some functions are actually named | |
16753 | something starting with __ and the normal name is an alias. */ | |
16754 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16755 | choke me | |
16756 | #else | |
16757 | $ac_func(); | |
16758 | #endif | |
16759 | ||
16760 | ; return 0; } | |
16761 | EOF | |
16762 | if { (eval echo configure:16763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16763 | rm -rf conftest* | |
16764 | eval "ac_cv_func_$ac_func=yes" | |
16765 | else | |
16766 | echo "configure: failed program was:" >&5 | |
16767 | cat conftest.$ac_ext >&5 | |
16768 | rm -rf conftest* | |
16769 | eval "ac_cv_func_$ac_func=no" | |
16770 | fi | |
16771 | rm -f conftest* | |
16772 | fi | |
16773 | ||
16774 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16775 | echo "$ac_t""yes" 1>&6 | |
16776 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16777 | cat >> confdefs.h <<EOF | |
16778 | #define $ac_tr_func 1 | |
16779 | EOF | |
16780 | ||
16781 | else | |
16782 | echo "$ac_t""no" 1>&6 | |
16783 | fi | |
16784 | done | |
16785 | ||
16786 | ||
16787 | ac_ext=c | |
16788 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16789 | ac_cpp='$CPP $CPPFLAGS' | |
16790 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16791 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16792 | cross_compiling=$ac_cv_prog_cc_cross | |
16793 | ||
16794 | ||
16795 | INET_LINK= | |
16796 | for ac_func in inet_addr | |
16797 | do | |
16798 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16799 | echo "configure:16800: checking for $ac_func" >&5 | |
16800 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16802 | else | |
16803 | cat > conftest.$ac_ext <<EOF | |
16804 | #line 16805 "configure" | |
16805 | #include "confdefs.h" | |
16806 | /* System header to define __stub macros and hopefully few prototypes, | |
16807 | which can conflict with char $ac_func(); below. */ | |
16808 | #include <assert.h> | |
16809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16810 | /* We use char because int might match the return type of a gcc2 | |
16811 | builtin and then its argument prototype would still apply. */ | |
16812 | char $ac_func(); | |
16813 | ||
16814 | int main() { | |
16815 | ||
16816 | /* The GNU C library defines this for functions which it implements | |
16817 | to always fail with ENOSYS. Some functions are actually named | |
16818 | something starting with __ and the normal name is an alias. */ | |
16819 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16820 | choke me | |
16821 | #else | |
16822 | $ac_func(); | |
16823 | #endif | |
16824 | ||
16825 | ; return 0; } | |
16826 | EOF | |
16827 | if { (eval echo configure:16828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16828 | rm -rf conftest* | |
16829 | eval "ac_cv_func_$ac_func=yes" | |
16830 | else | |
16831 | echo "configure: failed program was:" >&5 | |
16832 | cat conftest.$ac_ext >&5 | |
16833 | rm -rf conftest* | |
16834 | eval "ac_cv_func_$ac_func=no" | |
16835 | fi | |
16836 | rm -f conftest* | |
16837 | fi | |
16838 | ||
16839 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16840 | echo "$ac_t""yes" 1>&6 | |
16841 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16842 | cat >> confdefs.h <<EOF | |
16843 | #define $ac_tr_func 1 | |
16844 | EOF | |
16845 | cat >> confdefs.h <<\EOF | |
16846 | #define HAVE_INET_ADDR 1 | |
16847 | EOF | |
16848 | ||
16849 | else | |
16850 | echo "$ac_t""no" 1>&6 | |
16851 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
16852 | echo "configure:16853: checking for inet_addr in -lnsl" >&5 | |
16853 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
16854 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16856 | else | |
16857 | ac_save_LIBS="$LIBS" | |
16858 | LIBS="-lnsl $LIBS" | |
16859 | cat > conftest.$ac_ext <<EOF | |
16860 | #line 16861 "configure" | |
16861 | #include "confdefs.h" | |
16862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16863 | /* We use char because int might match the return type of a gcc2 | |
16864 | builtin and then its argument prototype would still apply. */ | |
16865 | char inet_addr(); | |
16866 | ||
16867 | int main() { | |
16868 | inet_addr() | |
16869 | ; return 0; } | |
16870 | EOF | |
16871 | if { (eval echo configure:16872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16872 | rm -rf conftest* | |
16873 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16874 | else | |
16875 | echo "configure: failed program was:" >&5 | |
16876 | cat conftest.$ac_ext >&5 | |
16877 | rm -rf conftest* | |
16878 | eval "ac_cv_lib_$ac_lib_var=no" | |
16879 | fi | |
16880 | rm -f conftest* | |
16881 | LIBS="$ac_save_LIBS" | |
16882 | ||
16883 | fi | |
16884 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16885 | echo "$ac_t""yes" 1>&6 | |
16886 | INET_LINK="nsl" | |
16887 | else | |
16888 | echo "$ac_t""no" 1>&6 | |
16889 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
16890 | echo "configure:16891: checking for inet_addr in -lresolv" >&5 | |
16891 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
16892 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16894 | else | |
16895 | ac_save_LIBS="$LIBS" | |
16896 | LIBS="-lresolv $LIBS" | |
16897 | cat > conftest.$ac_ext <<EOF | |
16898 | #line 16899 "configure" | |
16899 | #include "confdefs.h" | |
16900 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16901 | /* We use char because int might match the return type of a gcc2 | |
16902 | builtin and then its argument prototype would still apply. */ | |
16903 | char inet_addr(); | |
16904 | ||
16905 | int main() { | |
16906 | inet_addr() | |
16907 | ; return 0; } | |
16908 | EOF | |
16909 | if { (eval echo configure:16910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16910 | rm -rf conftest* | |
16911 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16912 | else | |
16913 | echo "configure: failed program was:" >&5 | |
16914 | cat conftest.$ac_ext >&5 | |
16915 | rm -rf conftest* | |
16916 | eval "ac_cv_lib_$ac_lib_var=no" | |
16917 | fi | |
16918 | rm -f conftest* | |
16919 | LIBS="$ac_save_LIBS" | |
16920 | ||
16921 | fi | |
16922 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16923 | echo "$ac_t""yes" 1>&6 | |
16924 | INET_LINK="resolv" | |
16925 | else | |
16926 | echo "$ac_t""no" 1>&6 | |
16927 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
16928 | echo "configure:16929: checking for inet_addr in -lsocket" >&5 | |
16929 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` | |
16930 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16932 | else | |
16933 | ac_save_LIBS="$LIBS" | |
16934 | LIBS="-lsocket $LIBS" | |
16935 | cat > conftest.$ac_ext <<EOF | |
16936 | #line 16937 "configure" | |
16937 | #include "confdefs.h" | |
16938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16939 | /* We use char because int might match the return type of a gcc2 | |
16940 | builtin and then its argument prototype would still apply. */ | |
16941 | char inet_addr(); | |
16942 | ||
16943 | int main() { | |
16944 | inet_addr() | |
16945 | ; return 0; } | |
16946 | EOF | |
16947 | if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16948 | rm -rf conftest* | |
16949 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16950 | else | |
16951 | echo "configure: failed program was:" >&5 | |
16952 | cat conftest.$ac_ext >&5 | |
16953 | rm -rf conftest* | |
16954 | eval "ac_cv_lib_$ac_lib_var=no" | |
16955 | fi | |
16956 | rm -f conftest* | |
16957 | LIBS="$ac_save_LIBS" | |
16958 | ||
16959 | fi | |
16960 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16961 | echo "$ac_t""yes" 1>&6 | |
16962 | INET_LINK="socket" | |
16963 | ||
16964 | else | |
16965 | echo "$ac_t""no" 1>&6 | |
16966 | fi | |
16967 | ||
16968 | ||
16969 | fi | |
16970 | ||
16971 | ||
16972 | fi | |
16973 | ||
16974 | ||
16975 | ||
16976 | fi | |
16977 | done | |
16978 | ||
16979 | ||
16980 | for ac_func in inet_aton | |
16981 | do | |
16982 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16983 | echo "configure:16984: checking for $ac_func" >&5 | |
16984 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16986 | else | |
16987 | cat > conftest.$ac_ext <<EOF | |
16988 | #line 16989 "configure" | |
16989 | #include "confdefs.h" | |
16990 | /* System header to define __stub macros and hopefully few prototypes, | |
16991 | which can conflict with char $ac_func(); below. */ | |
16992 | #include <assert.h> | |
16993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16994 | /* We use char because int might match the return type of a gcc2 | |
16995 | builtin and then its argument prototype would still apply. */ | |
16996 | char $ac_func(); | |
16997 | ||
16998 | int main() { | |
16999 | ||
17000 | /* The GNU C library defines this for functions which it implements | |
17001 | to always fail with ENOSYS. Some functions are actually named | |
17002 | something starting with __ and the normal name is an alias. */ | |
17003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17004 | choke me | |
17005 | #else | |
17006 | $ac_func(); | |
17007 | #endif | |
17008 | ||
17009 | ; return 0; } | |
17010 | EOF | |
17011 | if { (eval echo configure:17012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17012 | rm -rf conftest* | |
17013 | eval "ac_cv_func_$ac_func=yes" | |
17014 | else | |
17015 | echo "configure: failed program was:" >&5 | |
17016 | cat conftest.$ac_ext >&5 | |
17017 | rm -rf conftest* | |
17018 | eval "ac_cv_func_$ac_func=no" | |
17019 | fi | |
17020 | rm -f conftest* | |
17021 | fi | |
17022 | ||
17023 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17024 | echo "$ac_t""yes" 1>&6 | |
17025 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17026 | cat >> confdefs.h <<EOF | |
17027 | #define $ac_tr_func 1 | |
17028 | EOF | |
17029 | cat >> confdefs.h <<\EOF | |
17030 | #define HAVE_INET_ATON 1 | |
17031 | EOF | |
17032 | ||
17033 | else | |
17034 | echo "$ac_t""no" 1>&6 | |
17035 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
17036 | echo "configure:17037: checking for inet_aton in -l$INET_LINK" >&5 | |
17037 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
17038 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17040 | else | |
17041 | ac_save_LIBS="$LIBS" | |
17042 | LIBS="-l$INET_LINK $LIBS" | |
17043 | cat > conftest.$ac_ext <<EOF | |
17044 | #line 17045 "configure" | |
17045 | #include "confdefs.h" | |
17046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17047 | /* We use char because int might match the return type of a gcc2 | |
17048 | builtin and then its argument prototype would still apply. */ | |
17049 | char inet_aton(); | |
17050 | ||
17051 | int main() { | |
17052 | inet_aton() | |
17053 | ; return 0; } | |
17054 | EOF | |
17055 | if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17056 | rm -rf conftest* | |
17057 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17058 | else | |
17059 | echo "configure: failed program was:" >&5 | |
17060 | cat conftest.$ac_ext >&5 | |
17061 | rm -rf conftest* | |
17062 | eval "ac_cv_lib_$ac_lib_var=no" | |
17063 | fi | |
17064 | rm -f conftest* | |
17065 | LIBS="$ac_save_LIBS" | |
17066 | ||
17067 | fi | |
17068 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17069 | echo "$ac_t""yes" 1>&6 | |
17070 | cat >> confdefs.h <<\EOF | |
17071 | #define HAVE_INET_ATON 1 | |
17072 | EOF | |
17073 | ||
17074 | else | |
17075 | echo "$ac_t""no" 1>&6 | |
17076 | fi | |
17077 | ||
17078 | ||
17079 | fi | |
17080 | done | |
17081 | ||
17082 | ||
17083 | if test "x$INET_LINK" != "x"; then | |
17084 | cat >> confdefs.h <<\EOF | |
17085 | #define HAVE_INET_ADDR 1 | |
17086 | EOF | |
17087 | ||
17088 | INET_LINK=" -l$INET_LINK" | |
17089 | fi | |
17090 | ||
17091 | fi | |
17092 | ||
17093 | ||
17094 | cat > confcache <<\EOF | |
17095 | # This file is a shell script that caches the results of configure | |
17096 | # tests run on this system so they can be shared between configure | |
17097 | # scripts and configure runs. It is not useful on other systems. | |
17098 | # If it contains results you don't want to keep, you may remove or edit it. | |
17099 | # | |
17100 | # By default, configure uses ./config.cache as the cache file, | |
17101 | # creating it if it does not exist already. You can give configure | |
17102 | # the --cache-file=FILE option to use a different cache file; that is | |
17103 | # what configure does when it calls configure scripts in | |
17104 | # subdirectories, so they share the cache. | |
17105 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17106 | # config.status only pays attention to the cache file if you give it the | |
17107 | # --recheck option to rerun configure. | |
17108 | # | |
17109 | EOF | |
17110 | # The following way of writing the cache mishandles newlines in values, | |
17111 | # but we know of no workaround that is simple, portable, and efficient. | |
17112 | # So, don't put newlines in cache variables' values. | |
17113 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17114 | # and sets the high bit in the cache file unless we assign to the vars. | |
17115 | (set) 2>&1 | | |
17116 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17117 | *ac_space=\ *) | |
17118 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17119 | # turns \\\\ into \\, and sed turns \\ into \). | |
17120 | sed -n \ | |
17121 | -e "s/'/'\\\\''/g" \ | |
17122 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17123 | ;; | |
17124 | *) | |
17125 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17126 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17127 | ;; | |
17128 | esac >> confcache | |
17129 | if cmp -s $cache_file confcache; then | |
17130 | : | |
17131 | else | |
17132 | if test -w $cache_file; then | |
17133 | echo "updating cache $cache_file" | |
17134 | cat confcache > $cache_file | |
17135 | else | |
17136 | echo "not updating unwritable cache $cache_file" | |
17137 | fi | |
17138 | fi | |
17139 | rm -f confcache | |
17140 | ||
17141 | ||
17142 | ||
17143 | CPP_MT_FLAG= | |
17144 | if test "$TOOLKIT" != "MSW"; then | |
17145 | ||
17146 | ||
17147 | THREADS_LINK= | |
17148 | THREADS_CFLAGS= | |
17149 | ||
17150 | if test "$wxUSE_THREADS" = "yes" ; then | |
17151 | if test "$wxUSE_WINE" = 1 ; then | |
17152 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 | |
17153 | wxUSE_THREADS="no" | |
17154 | elif test "$USE_BEOS" = 1; then | |
17155 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 | |
17156 | wxUSE_THREADS="no" | |
17157 | fi | |
17158 | fi | |
17159 | ||
17160 | if test "$wxUSE_THREADS" = "yes" ; then | |
17161 | ||
17162 | ||
17163 | THREAD_OPTS="-pthread" | |
17164 | case "${host}" in | |
17165 | *-*-solaris2* | *-*-sunos4* ) | |
17166 | if test "x$GCC" = "xyes"; then | |
17167 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
17168 | else | |
17169 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17170 | fi | |
17171 | ;; | |
17172 | *-*-freebsd*) | |
17173 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17174 | ;; | |
17175 | *-*-darwin*) | |
17176 | THREAD_OPTS="" | |
17177 | ;; | |
17178 | *-*-aix*) | |
17179 | THREAD_OPTS="pthreads" | |
17180 | ;; | |
17181 | esac | |
17182 | ||
17183 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
17184 | ||
17185 | THREADS_OK=no | |
17186 | for flag in $THREAD_OPTS; do | |
17187 | case $flag in | |
17188 | none) | |
17189 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
17190 | echo "configure:17191: checking whether pthreads work without any flags" >&5 | |
17191 | ;; | |
17192 | ||
17193 | -*) | |
17194 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
17195 | echo "configure:17196: checking whether pthreads work with $flag" >&5 | |
17196 | THREADS_CFLAGS="$flag" | |
17197 | ;; | |
17198 | ||
17199 | *) | |
17200 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
17201 | echo "configure:17202: checking for the pthreads library -l$flag" >&5 | |
17202 | THREADS_LINK="-l$flag" | |
17203 | ;; | |
17204 | esac | |
17205 | ||
17206 | save_LIBS="$LIBS" | |
17207 | save_CFLAGS="$CFLAGS" | |
17208 | LIBS="$THREADS_LINK $LIBS" | |
17209 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
17210 | ||
17211 | cat > conftest.$ac_ext <<EOF | |
17212 | #line 17213 "configure" | |
17213 | #include "confdefs.h" | |
17214 | #include <pthread.h> | |
17215 | int main() { | |
17216 | pthread_create(0,0,0,0); | |
17217 | ; return 0; } | |
17218 | EOF | |
17219 | if { (eval echo configure:17220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17220 | rm -rf conftest* | |
17221 | THREADS_OK=yes | |
17222 | else | |
17223 | echo "configure: failed program was:" >&5 | |
17224 | cat conftest.$ac_ext >&5 | |
17225 | fi | |
17226 | rm -f conftest* | |
17227 | ||
17228 | LIBS="$save_LIBS" | |
17229 | CFLAGS="$save_CFLAGS" | |
17230 | ||
17231 | echo "$ac_t""$THREADS_OK" 1>&6 | |
17232 | if test "x$THREADS_OK" = "xyes"; then | |
17233 | break; | |
17234 | fi | |
17235 | ||
17236 | THREADS_LINK="" | |
17237 | THREADS_CFLAGS="" | |
17238 | done | |
17239 | ||
17240 | if test "x$THREADS_OK" != "xyes"; then | |
17241 | wxUSE_THREADS=no | |
17242 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17243 | else | |
17244 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" | |
17245 | ||
17246 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 | |
17247 | echo "configure:17248: checking if more special flags are required for pthreads" >&5 | |
17248 | flag=no | |
17249 | case "${host}" in | |
17250 | *-aix* | *-freebsd*) | |
17251 | flag="-D_THREAD_SAFE" | |
17252 | ;; | |
17253 | *solaris* | alpha*-osf*) | |
17254 | flag="-D_REENTRANT" | |
17255 | ;; | |
17256 | esac | |
17257 | echo "$ac_t""${flag}" 1>&6 | |
17258 | if test "x$flag" != xno; then | |
17259 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
17260 | fi | |
17261 | ||
17262 | if test "x$THREADS_CFLAGS" != "x"; then | |
17263 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
17264 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
17265 | fi | |
17266 | fi | |
17267 | fi | |
17268 | ||
17269 | if test "$wxUSE_THREADS" = "yes" ; then | |
17270 | for ac_func in thr_setconcurrency | |
17271 | do | |
17272 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17273 | echo "configure:17274: checking for $ac_func" >&5 | |
17274 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17276 | else | |
17277 | cat > conftest.$ac_ext <<EOF | |
17278 | #line 17279 "configure" | |
17279 | #include "confdefs.h" | |
17280 | /* System header to define __stub macros and hopefully few prototypes, | |
17281 | which can conflict with char $ac_func(); below. */ | |
17282 | #include <assert.h> | |
17283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17284 | /* We use char because int might match the return type of a gcc2 | |
17285 | builtin and then its argument prototype would still apply. */ | |
17286 | char $ac_func(); | |
17287 | ||
17288 | int main() { | |
17289 | ||
17290 | /* The GNU C library defines this for functions which it implements | |
17291 | to always fail with ENOSYS. Some functions are actually named | |
17292 | something starting with __ and the normal name is an alias. */ | |
17293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17294 | choke me | |
17295 | #else | |
17296 | $ac_func(); | |
17297 | #endif | |
17298 | ||
17299 | ; return 0; } | |
17300 | EOF | |
17301 | if { (eval echo configure:17302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17302 | rm -rf conftest* | |
17303 | eval "ac_cv_func_$ac_func=yes" | |
17304 | else | |
17305 | echo "configure: failed program was:" >&5 | |
17306 | cat conftest.$ac_ext >&5 | |
17307 | rm -rf conftest* | |
17308 | eval "ac_cv_func_$ac_func=no" | |
17309 | fi | |
17310 | rm -f conftest* | |
17311 | fi | |
17312 | ||
17313 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17314 | echo "$ac_t""yes" 1>&6 | |
17315 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17316 | cat >> confdefs.h <<EOF | |
17317 | #define $ac_tr_func 1 | |
17318 | EOF | |
17319 | ||
17320 | else | |
17321 | echo "$ac_t""no" 1>&6 | |
17322 | fi | |
17323 | done | |
17324 | ||
17325 | ||
17326 | for ac_hdr in sched.h | |
17327 | do | |
17328 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17329 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17330 | echo "configure:17331: checking for $ac_hdr" >&5 | |
17331 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
17332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17333 | else | |
17334 | cat > conftest.$ac_ext <<EOF | |
17335 | #line 17336 "configure" | |
17336 | #include "confdefs.h" | |
17337 | #include <$ac_hdr> | |
17338 | EOF | |
17339 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17340 | { (eval echo configure:17341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
17341 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
17342 | if test -z "$ac_err"; then | |
17343 | rm -rf conftest* | |
17344 | eval "ac_cv_header_$ac_safe=yes" | |
17345 | else | |
17346 | echo "$ac_err" >&5 | |
17347 | echo "configure: failed program was:" >&5 | |
17348 | cat conftest.$ac_ext >&5 | |
17349 | rm -rf conftest* | |
17350 | eval "ac_cv_header_$ac_safe=no" | |
17351 | fi | |
17352 | rm -f conftest* | |
17353 | fi | |
17354 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17355 | echo "$ac_t""yes" 1>&6 | |
17356 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17357 | cat >> confdefs.h <<EOF | |
17358 | #define $ac_tr_hdr 1 | |
17359 | EOF | |
17360 | ||
17361 | else | |
17362 | echo "$ac_t""no" 1>&6 | |
17363 | fi | |
17364 | done | |
17365 | ||
17366 | if test "$ac_cv_header_sched_h" = "yes"; then | |
17367 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
17368 | echo "configure:17369: checking for sched_yield" >&5 | |
17369 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then | |
17370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17371 | else | |
17372 | cat > conftest.$ac_ext <<EOF | |
17373 | #line 17374 "configure" | |
17374 | #include "confdefs.h" | |
17375 | /* System header to define __stub macros and hopefully few prototypes, | |
17376 | which can conflict with char sched_yield(); below. */ | |
17377 | #include <assert.h> | |
17378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17379 | /* We use char because int might match the return type of a gcc2 | |
17380 | builtin and then its argument prototype would still apply. */ | |
17381 | char sched_yield(); | |
17382 | ||
17383 | int main() { | |
17384 | ||
17385 | /* The GNU C library defines this for functions which it implements | |
17386 | to always fail with ENOSYS. Some functions are actually named | |
17387 | something starting with __ and the normal name is an alias. */ | |
17388 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17389 | choke me | |
17390 | #else | |
17391 | sched_yield(); | |
17392 | #endif | |
17393 | ||
17394 | ; return 0; } | |
17395 | EOF | |
17396 | if { (eval echo configure:17397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17397 | rm -rf conftest* | |
17398 | eval "ac_cv_func_sched_yield=yes" | |
17399 | else | |
17400 | echo "configure: failed program was:" >&5 | |
17401 | cat conftest.$ac_ext >&5 | |
17402 | rm -rf conftest* | |
17403 | eval "ac_cv_func_sched_yield=no" | |
17404 | fi | |
17405 | rm -f conftest* | |
17406 | fi | |
17407 | ||
17408 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17409 | echo "$ac_t""yes" 1>&6 | |
17410 | cat >> confdefs.h <<\EOF | |
17411 | #define HAVE_SCHED_YIELD 1 | |
17412 | EOF | |
17413 | ||
17414 | else | |
17415 | echo "$ac_t""no" 1>&6 | |
17416 | ||
17417 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
17418 | echo "configure:17419: checking for sched_yield in -lposix4" >&5 | |
17419 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
17420 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17422 | else | |
17423 | ac_save_LIBS="$LIBS" | |
17424 | LIBS="-lposix4 $LIBS" | |
17425 | cat > conftest.$ac_ext <<EOF | |
17426 | #line 17427 "configure" | |
17427 | #include "confdefs.h" | |
17428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17429 | /* We use char because int might match the return type of a gcc2 | |
17430 | builtin and then its argument prototype would still apply. */ | |
17431 | char sched_yield(); | |
17432 | ||
17433 | int main() { | |
17434 | sched_yield() | |
17435 | ; return 0; } | |
17436 | EOF | |
17437 | if { (eval echo configure:17438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17438 | rm -rf conftest* | |
17439 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17440 | else | |
17441 | echo "configure: failed program was:" >&5 | |
17442 | cat conftest.$ac_ext >&5 | |
17443 | rm -rf conftest* | |
17444 | eval "ac_cv_lib_$ac_lib_var=no" | |
17445 | fi | |
17446 | rm -f conftest* | |
17447 | LIBS="$ac_save_LIBS" | |
17448 | ||
17449 | fi | |
17450 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17451 | echo "$ac_t""yes" 1>&6 | |
17452 | cat >> confdefs.h <<\EOF | |
17453 | #define HAVE_SCHED_YIELD 1 | |
17454 | EOF | |
17455 | POSIX4_LINK=" -lposix4" | |
17456 | else | |
17457 | echo "$ac_t""no" 1>&6 | |
17458 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
17459 | ||
17460 | fi | |
17461 | ||
17462 | ||
17463 | ||
17464 | fi | |
17465 | ||
17466 | fi | |
17467 | ||
17468 | HAVE_PRIOR_FUNCS=0 | |
17469 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 | |
17470 | echo "configure:17471: checking for pthread_attr_getschedpolicy" >&5 | |
17471 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then | |
17472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17473 | else | |
17474 | cat > conftest.$ac_ext <<EOF | |
17475 | #line 17476 "configure" | |
17476 | #include "confdefs.h" | |
17477 | /* System header to define __stub macros and hopefully few prototypes, | |
17478 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17479 | #include <assert.h> | |
17480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17481 | /* We use char because int might match the return type of a gcc2 | |
17482 | builtin and then its argument prototype would still apply. */ | |
17483 | char pthread_attr_getschedpolicy(); | |
17484 | ||
17485 | int main() { | |
17486 | ||
17487 | /* The GNU C library defines this for functions which it implements | |
17488 | to always fail with ENOSYS. Some functions are actually named | |
17489 | something starting with __ and the normal name is an alias. */ | |
17490 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17491 | choke me | |
17492 | #else | |
17493 | pthread_attr_getschedpolicy(); | |
17494 | #endif | |
17495 | ||
17496 | ; return 0; } | |
17497 | EOF | |
17498 | if { (eval echo configure:17499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17499 | rm -rf conftest* | |
17500 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
17501 | else | |
17502 | echo "configure: failed program was:" >&5 | |
17503 | cat conftest.$ac_ext >&5 | |
17504 | rm -rf conftest* | |
17505 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
17506 | fi | |
17507 | rm -f conftest* | |
17508 | fi | |
17509 | ||
17510 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
17511 | echo "$ac_t""yes" 1>&6 | |
17512 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
17513 | echo "configure:17514: checking for pthread_attr_setschedparam" >&5 | |
17514 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then | |
17515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17516 | else | |
17517 | cat > conftest.$ac_ext <<EOF | |
17518 | #line 17519 "configure" | |
17519 | #include "confdefs.h" | |
17520 | /* System header to define __stub macros and hopefully few prototypes, | |
17521 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17522 | #include <assert.h> | |
17523 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17524 | /* We use char because int might match the return type of a gcc2 | |
17525 | builtin and then its argument prototype would still apply. */ | |
17526 | char pthread_attr_setschedparam(); | |
17527 | ||
17528 | int main() { | |
17529 | ||
17530 | /* The GNU C library defines this for functions which it implements | |
17531 | to always fail with ENOSYS. Some functions are actually named | |
17532 | something starting with __ and the normal name is an alias. */ | |
17533 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17534 | choke me | |
17535 | #else | |
17536 | pthread_attr_setschedparam(); | |
17537 | #endif | |
17538 | ||
17539 | ; return 0; } | |
17540 | EOF | |
17541 | if { (eval echo configure:17542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17542 | rm -rf conftest* | |
17543 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
17544 | else | |
17545 | echo "configure: failed program was:" >&5 | |
17546 | cat conftest.$ac_ext >&5 | |
17547 | rm -rf conftest* | |
17548 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
17549 | fi | |
17550 | rm -f conftest* | |
17551 | fi | |
17552 | ||
17553 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
17554 | echo "$ac_t""yes" 1>&6 | |
17555 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
17556 | echo "configure:17557: checking for sched_get_priority_max" >&5 | |
17557 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then | |
17558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17559 | else | |
17560 | cat > conftest.$ac_ext <<EOF | |
17561 | #line 17562 "configure" | |
17562 | #include "confdefs.h" | |
17563 | /* System header to define __stub macros and hopefully few prototypes | |
17564 | else | |
17565 | echo "$ac_t""no" 1>&6 | |
17566 | which can conflict with char sched_get_priority_max(); below. */ | |
17567 | #include <assert.h> | |
17568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17569 | /* We use char because int might match the return type of a gcc2 | |
17570 | builtin and then its argument prototype would still apply. */ | |
17571 | char sched_get_priority_max(); | |
17572 | ||
17573 | int main() { | |
17574 | ||
17575 | /* The GNU C library defines this for functions which it implements | |
17576 | to always fail with ENOSYS. Some functions are actually named | |
17577 | something starting with __ and the normal name is an alias. */ | |
17578 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17579 | choke me | |
17580 | #else | |
17581 | sched_get_priority_max(); | |
17582 | #endif | |
17583 | ||
17584 | ; return 0; } | |
17585 | EOF | |
17586 | if { (eval echo configure:17587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17587 | rm -rf conftest* | |
17588 | eval "ac_cv_func_sched_get_priority_max=yes" | |
17589 | else | |
17590 | echo "configure: failed program was:" >&5 | |
17591 | cat conftest.$ac_ext >&5 | |
17592 | rm -rf conftest* | |
17593 | eval "ac_cv_func_sched_get_priority_max=no" | |
17594 | fi | |
17595 | rm -f conftest* | |
17596 | fi | |
17597 | ||
17598 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
17599 | echo "$ac_t""yes" 1>&6 | |
17600 | HAVE_PRIOR_FUNCS=1 | |
17601 | else | |
17602 | echo "$ac_t""no" 1>&6 | |
17603 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
17604 | echo "configure:17605: checking for sched_get_priority_max in -lposix4" >&5 | |
17605 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
17606 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17608 | else | |
17609 | ac_save_LIBS="$LIBS" | |
17610 | LIBS="-lposix4 $LIBS" | |
17611 | cat > conftest.$ac_ext <<EOF | |
17612 | #line 17613 "configure" | |
17613 | #include "confdefs.h" | |
17614 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17615 | /* We use char because int might match the return type of a gcc2 | |
17616 | builtin and then its argument prototype would still apply. */ | |
17617 | char sched_get_priority_max(); | |
17618 | ||
17619 | int main() { | |
17620 | sched_get_priority_max() | |
17621 | ; return 0; } | |
17622 | EOF | |
17623 | if { (eval echo configure:17624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17624 | rm -rf conftest* | |
17625 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17626 | else | |
17627 | echo "configure: failed program was:" >&5 | |
17628 | cat conftest.$ac_ext >&5 | |
17629 | rm -rf conftest* | |
17630 | eval "ac_cv_lib_$ac_lib_var=no" | |
17631 | fi | |
17632 | rm -f conftest* | |
17633 | LIBS="$ac_save_LIBS" | |
17634 | ||
17635 | fi | |
17636 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17637 | echo "$ac_t""yes" 1>&6 | |
17638 | ||
17639 | HAVE_PRIOR_FUNCS=1 | |
17640 | POSIX4_LINK=" -lposix4" | |
17641 | ||
17642 | else | |
17643 | echo "$ac_t""no" 1>&6 | |
17644 | fi | |
17645 | ||
17646 | ||
17647 | fi | |
17648 | ||
17649 | ||
17650 | else | |
17651 | echo "$ac_t""no" 1>&6 | |
17652 | fi | |
17653 | ||
17654 | ||
17655 | fi | |
17656 | ||
17657 | ||
17658 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
17659 | cat >> confdefs.h <<\EOF | |
17660 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
17661 | EOF | |
17662 | ||
17663 | else | |
17664 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17665 | fi | |
17666 | ||
17667 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 | |
17668 | echo "configure:17669: checking for pthread_cancel" >&5 | |
17669 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then | |
17670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17671 | else | |
17672 | cat > conftest.$ac_ext <<EOF | |
17673 | #line 17674 "configure" | |
17674 | #include "confdefs.h" | |
17675 | /* System header to define __stub macros and hopefully few prototypes, | |
17676 | which can conflict with char pthread_cancel(); below. */ | |
17677 | #include <assert.h> | |
17678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17679 | /* We use char because int might match the return type of a gcc2 | |
17680 | builtin and then its argument prototype would still apply. */ | |
17681 | char pthread_cancel(); | |
17682 | ||
17683 | int main() { | |
17684 | ||
17685 | /* The GNU C library defines this for functions which it implements | |
17686 | to always fail with ENOSYS. Some functions are actually named | |
17687 | something starting with __ and the normal name is an alias. */ | |
17688 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17689 | choke me | |
17690 | #else | |
17691 | pthread_cancel(); | |
17692 | #endif | |
17693 | ||
17694 | ; return 0; } | |
17695 | EOF | |
17696 | if { (eval echo configure:17697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17697 | rm -rf conftest* | |
17698 | eval "ac_cv_func_pthread_cancel=yes" | |
17699 | else | |
17700 | echo "configure: failed program was:" >&5 | |
17701 | cat conftest.$ac_ext >&5 | |
17702 | rm -rf conftest* | |
17703 | eval "ac_cv_func_pthread_cancel=no" | |
17704 | fi | |
17705 | rm -f conftest* | |
17706 | fi | |
17707 | ||
17708 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
17709 | echo "$ac_t""yes" 1>&6 | |
17710 | cat >> confdefs.h <<\EOF | |
17711 | #define HAVE_PTHREAD_CANCEL 1 | |
17712 | EOF | |
17713 | ||
17714 | else | |
17715 | echo "$ac_t""no" 1>&6 | |
17716 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
17717 | fi | |
17718 | ||
17719 | ||
17720 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
17721 | echo "configure:17722: checking for pthread_cleanup_push/pop" >&5 | |
17722 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
17723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17724 | else | |
17725 | ||
17726 | cat > conftest.$ac_ext <<EOF | |
17727 | #line 17728 "configure" | |
17728 | #include "confdefs.h" | |
17729 | #include <pthread.h> | |
17730 | int main() { | |
17731 | ||
17732 | pthread_cleanup_push(NULL, NULL); | |
17733 | pthread_cleanup_pop(0); | |
17734 | ||
17735 | ; return 0; } | |
17736 | EOF | |
17737 | if { (eval echo configure:17738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17738 | rm -rf conftest* | |
17739 | ||
17740 | wx_cv_func_pthread_cleanup_push=yes | |
17741 | ||
17742 | else | |
17743 | echo "configure: failed program was:" >&5 | |
17744 | cat conftest.$ac_ext >&5 | |
17745 | rm -rf conftest* | |
17746 | ||
17747 | wx_cv_func_pthread_cleanup_push=no | |
17748 | ||
17749 | fi | |
17750 | rm -f conftest* | |
17751 | ||
17752 | fi | |
17753 | ||
17754 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
17755 | ||
17756 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
17757 | cat >> confdefs.h <<\EOF | |
17758 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
17759 | EOF | |
17760 | ||
17761 | fi | |
17762 | ||
17763 | ||
17764 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
17765 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17766 | fi | |
17767 | ||
17768 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
17769 | echo "configure:17770: checking for pthread_mutexattr_t" >&5 | |
17770 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
17771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17772 | else | |
17773 | ||
17774 | cat > conftest.$ac_ext <<EOF | |
17775 | #line 17776 "configure" | |
17776 | #include "confdefs.h" | |
17777 | #include <pthread.h> | |
17778 | int main() { | |
17779 | ||
17780 | pthread_mutexattr_t attr; | |
17781 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17782 | ||
17783 | ; return 0; } | |
17784 | EOF | |
17785 | if { (eval echo configure:17786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17786 | rm -rf conftest* | |
17787 | ||
17788 | wx_cv_type_pthread_mutexattr_t=yes | |
17789 | ||
17790 | else | |
17791 | echo "configure: failed program was:" >&5 | |
17792 | cat conftest.$ac_ext >&5 | |
17793 | rm -rf conftest* | |
17794 | ||
17795 | wx_cv_type_pthread_mutexattr_t=no | |
17796 | ||
17797 | ||
17798 | fi | |
17799 | rm -f conftest* | |
17800 | ||
17801 | fi | |
17802 | ||
17803 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17804 | ||
17805 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
17806 | cat >> confdefs.h <<\EOF | |
17807 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
17808 | EOF | |
17809 | ||
17810 | else | |
17811 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
17812 | echo "configure:17813: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
17813 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
17814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17815 | else | |
17816 | ||
17817 | cat > conftest.$ac_ext <<EOF | |
17818 | #line 17819 "configure" | |
17819 | #include "confdefs.h" | |
17820 | #include <pthread.h> | |
17821 | int main() { | |
17822 | ||
17823 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
17824 | ||
17825 | ; return 0; } | |
17826 | EOF | |
17827 | if { (eval echo configure:17828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17828 | rm -rf conftest* | |
17829 | ||
17830 | wx_cv_type_pthread_rec_mutex_init=yes | |
17831 | ||
17832 | else | |
17833 | echo "configure: failed program was:" >&5 | |
17834 | cat conftest.$ac_ext >&5 | |
17835 | rm -rf conftest* | |
17836 | ||
17837 | wx_cv_type_pthread_rec_mutex_init=no | |
17838 | ||
17839 | ||
17840 | fi | |
17841 | rm -f conftest* | |
17842 | ||
17843 | fi | |
17844 | ||
17845 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
17846 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
17847 | cat >> confdefs.h <<\EOF | |
17848 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
17849 | EOF | |
17850 | ||
17851 | else | |
17852 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17853 | fi | |
17854 | fi | |
17855 | fi | |
17856 | ||
17857 | fi | |
17858 | ||
17859 | if test "$wxUSE_THREADS" = "yes"; then | |
17860 | cat >> confdefs.h <<\EOF | |
17861 | #define wxUSE_THREADS 1 | |
17862 | EOF | |
17863 | ||
17864 | ||
17865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
17866 | else | |
17867 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
17868 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
17869 | echo "configure:17870: checking if -D_REENTRANT is needed" >&5 | |
17870 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
17871 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17872 | echo "$ac_t""yes" 1>&6 | |
17873 | else | |
17874 | echo "$ac_t""no" 1>&6 | |
17875 | fi | |
17876 | fi | |
17877 | fi | |
17878 | ||
17879 | if test "$WXGTK20" = 1 ; then | |
17880 | cat >> confdefs.h <<EOF | |
17881 | #define __WXGTK20__ $WXGTK20 | |
17882 | EOF | |
17883 | ||
17884 | WXGTK12=1 | |
17885 | fi | |
17886 | ||
17887 | if test "$WXGTK12" = 1 ; then | |
17888 | cat >> confdefs.h <<EOF | |
17889 | #define __WXGTK12__ $WXGTK12 | |
17890 | EOF | |
17891 | ||
17892 | fi | |
17893 | ||
17894 | if test "$WXGTK127" = 1 ; then | |
17895 | cat >> confdefs.h <<EOF | |
17896 | #define __WXGTK127__ $WXGTK127 | |
17897 | EOF | |
17898 | ||
17899 | fi | |
17900 | ||
17901 | WXDEBUG= | |
17902 | ||
17903 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17904 | WXDEBUG="-g" | |
17905 | wxUSE_OPTIMISE=no | |
17906 | fi | |
17907 | ||
17908 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17909 | wxUSE_DEBUG_INFO=yes | |
17910 | WXDEBUG="-ggdb" | |
17911 | fi | |
17912 | ||
17913 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
17914 | cat >> confdefs.h <<\EOF | |
17915 | #define WXDEBUG 1 | |
17916 | EOF | |
17917 | ||
17918 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
17919 | else | |
17920 | if test "$wxUSE_GTK" = 1 ; then | |
17921 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17922 | fi | |
17923 | fi | |
17924 | ||
17925 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17926 | cat >> confdefs.h <<\EOF | |
17927 | #define wxUSE_MEMORY_TRACING 1 | |
17928 | EOF | |
17929 | ||
17930 | cat >> confdefs.h <<\EOF | |
17931 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17932 | EOF | |
17933 | ||
17934 | cat >> confdefs.h <<\EOF | |
17935 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17936 | EOF | |
17937 | ||
17938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17939 | fi | |
17940 | ||
17941 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
17942 | DMALLOC_LIBS="-ldmalloc" | |
17943 | fi | |
17944 | ||
17945 | PROFILE= | |
17946 | if test "$wxUSE_PROFILE" = "yes" ; then | |
17947 | PROFILE=" -pg" | |
17948 | fi | |
17949 | ||
17950 | CODE_GEN_FLAGS= | |
17951 | CODE_GEN_FLAGS_CXX= | |
17952 | if test "$GCC" = "yes" ; then | |
17953 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
17954 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
17955 | fi | |
17956 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
17957 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17958 | fi | |
17959 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17960 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17961 | fi | |
17962 | if test "$USE_WIN32" = 1 ; then | |
17963 | # I'm not even really sure what this was ever added to solve, | |
17964 | # but someone added it for mingw native builds, so I guess | |
17965 | # they had a reason, right?? | |
17966 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17967 | fi | |
17968 | fi | |
17969 | ||
17970 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17971 | OPTIMISE= | |
17972 | else | |
17973 | if test "$GCC" = yes ; then | |
17974 | OPTIMISE="-O2" | |
17975 | case "${host}" in | |
17976 | i586-*-*|i686-*-* ) | |
17977 | OPTIMISE="${OPTIMISE} " | |
17978 | ;; | |
17979 | esac | |
17980 | else | |
17981 | OPTIMISE="-O" | |
17982 | fi | |
17983 | fi | |
17984 | ||
17985 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17986 | cat >> confdefs.h <<\EOF | |
17987 | #define WXWIN_COMPATIBILITY_2 1 | |
17988 | EOF | |
17989 | ||
17990 | ||
17991 | WXWIN_COMPATIBILITY_2_2="yes" | |
17992 | fi | |
17993 | ||
17994 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then | |
17995 | cat >> confdefs.h <<\EOF | |
17996 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17997 | EOF | |
17998 | ||
17999 | fi | |
18000 | ||
18001 | ||
18002 | if test "$wxUSE_GUI" = "yes"; then | |
18003 | cat >> confdefs.h <<\EOF | |
18004 | #define wxUSE_GUI 1 | |
18005 | EOF | |
18006 | ||
18007 | ||
18008 | else | |
18009 | cat >> confdefs.h <<\EOF | |
18010 | #define wxUSE_NOGUI 1 | |
18011 | EOF | |
18012 | ||
18013 | fi | |
18014 | ||
18015 | ||
18016 | if test "$wxUSE_UNIX" = "yes"; then | |
18017 | cat >> confdefs.h <<\EOF | |
18018 | #define wxUSE_UNIX 1 | |
18019 | EOF | |
18020 | ||
18021 | fi | |
18022 | ||
18023 | ||
18024 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
18025 | cat >> confdefs.h <<\EOF | |
18026 | #define wxUSE_APPLE_IEEE 1 | |
18027 | EOF | |
18028 | ||
18029 | fi | |
18030 | ||
18031 | if test "$wxUSE_TIMER" = "yes"; then | |
18032 | cat >> confdefs.h <<\EOF | |
18033 | #define wxUSE_TIMER 1 | |
18034 | EOF | |
18035 | ||
18036 | fi | |
18037 | ||
18038 | if test "$wxUSE_WAVE" = "yes"; then | |
18039 | cat >> confdefs.h <<\EOF | |
18040 | #define wxUSE_WAVE 1 | |
18041 | EOF | |
18042 | ||
18043 | fi | |
18044 | ||
18045 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
18046 | cat >> confdefs.h <<\EOF | |
18047 | #define wxUSE_CMDLINE_PARSER 1 | |
18048 | EOF | |
18049 | ||
18050 | fi | |
18051 | ||
18052 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18053 | cat >> confdefs.h <<\EOF | |
18054 | #define wxUSE_STOPWATCH 1 | |
18055 | EOF | |
18056 | ||
18057 | fi | |
18058 | ||
18059 | if test "$wxUSE_DATETIME" = "yes"; then | |
18060 | cat >> confdefs.h <<\EOF | |
18061 | #define wxUSE_DATETIME 1 | |
18062 | EOF | |
18063 | ||
18064 | fi | |
18065 | ||
18066 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18067 | cat >> confdefs.h <<\EOF | |
18068 | #define wxUSE_TIMEDATE 1 | |
18069 | EOF | |
18070 | ||
18071 | fi | |
18072 | ||
18073 | if test "$wxUSE_FILE" = "yes"; then | |
18074 | cat >> confdefs.h <<\EOF | |
18075 | #define wxUSE_FILE 1 | |
18076 | EOF | |
18077 | ||
18078 | fi | |
18079 | ||
18080 | if test "$wxUSE_FFILE" = "yes"; then | |
18081 | cat >> confdefs.h <<\EOF | |
18082 | #define wxUSE_FFILE 1 | |
18083 | EOF | |
18084 | ||
18085 | fi | |
18086 | ||
18087 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
18088 | cat >> confdefs.h <<\EOF | |
18089 | #define wxUSE_FILESYSTEM 1 | |
18090 | EOF | |
18091 | ||
18092 | fi | |
18093 | ||
18094 | if test "$wxUSE_FS_INET" = "yes"; then | |
18095 | cat >> confdefs.h <<\EOF | |
18096 | #define wxUSE_FS_INET 1 | |
18097 | EOF | |
18098 | ||
18099 | fi | |
18100 | ||
18101 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
18102 | cat >> confdefs.h <<\EOF | |
18103 | #define wxUSE_FS_ZIP 1 | |
18104 | EOF | |
18105 | ||
18106 | fi | |
18107 | ||
18108 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
18109 | cat >> confdefs.h <<\EOF | |
18110 | #define wxUSE_ZIPSTREAM 1 | |
18111 | EOF | |
18112 | ||
18113 | fi | |
18114 | ||
18115 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
18116 | cat >> confdefs.h <<\EOF | |
18117 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
18118 | EOF | |
18119 | ||
18120 | fi | |
18121 | ||
18122 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
18123 | cat >> confdefs.h <<\EOF | |
18124 | #define wxUSE_SNGLINST_CHECKER 1 | |
18125 | EOF | |
18126 | ||
18127 | fi | |
18128 | ||
18129 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
18130 | cat >> confdefs.h <<\EOF | |
18131 | #define wxUSE_BUSYINFO 1 | |
18132 | EOF | |
18133 | ||
18134 | fi | |
18135 | ||
18136 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
18137 | cat >> confdefs.h <<\EOF | |
18138 | #define wxUSE_STD_IOSTREAM 1 | |
18139 | EOF | |
18140 | ||
18141 | fi | |
18142 | ||
18143 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
18144 | cat >> confdefs.h <<\EOF | |
18145 | #define wxUSE_TEXTBUFFER 1 | |
18146 | EOF | |
18147 | ||
18148 | fi | |
18149 | ||
18150 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
18151 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
18152 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 | |
18153 | else | |
18154 | cat >> confdefs.h <<\EOF | |
18155 | #define wxUSE_TEXTFILE 1 | |
18156 | EOF | |
18157 | ||
18158 | fi | |
18159 | fi | |
18160 | ||
18161 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18162 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
18163 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 | |
18164 | else | |
18165 | cat >> confdefs.h <<\EOF | |
18166 | #define wxUSE_CONFIG 1 | |
18167 | EOF | |
18168 | ||
18169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18170 | fi | |
18171 | fi | |
18172 | ||
18173 | if test "$wxUSE_INTL" = "yes" ; then | |
18174 | if test "$wxUSE_FILE" != "yes"; then | |
18175 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 | |
18176 | else | |
18177 | cat >> confdefs.h <<\EOF | |
18178 | #define wxUSE_INTL 1 | |
18179 | EOF | |
18180 | ||
18181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
18182 | GUIDIST="$GUIDIST INTL_DIST" | |
18183 | fi | |
18184 | fi | |
18185 | ||
18186 | if test "$wxUSE_LOG" = "yes"; then | |
18187 | cat >> confdefs.h <<\EOF | |
18188 | #define wxUSE_LOG 1 | |
18189 | EOF | |
18190 | ||
18191 | ||
18192 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18193 | cat >> confdefs.h <<\EOF | |
18194 | #define wxUSE_LOGGUI 1 | |
18195 | EOF | |
18196 | ||
18197 | fi | |
18198 | ||
18199 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18200 | cat >> confdefs.h <<\EOF | |
18201 | #define wxUSE_LOGWINDOW 1 | |
18202 | EOF | |
18203 | ||
18204 | fi | |
18205 | ||
18206 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18207 | cat >> confdefs.h <<\EOF | |
18208 | #define wxUSE_LOG_DIALOG 1 | |
18209 | EOF | |
18210 | ||
18211 | fi | |
18212 | fi | |
18213 | ||
18214 | if test "$wxUSE_LONGLONG" = "yes"; then | |
18215 | cat >> confdefs.h <<\EOF | |
18216 | #define wxUSE_LONGLONG 1 | |
18217 | EOF | |
18218 | ||
18219 | fi | |
18220 | ||
18221 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
18222 | cat >> confdefs.h <<\EOF | |
18223 | #define wxUSE_GEOMETRY 1 | |
18224 | EOF | |
18225 | ||
18226 | fi | |
18227 | ||
18228 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
18229 | cat >> confdefs.h <<\EOF | |
18230 | #define wxUSE_DIALUP_MANAGER 1 | |
18231 | EOF | |
18232 | ||
18233 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
18234 | fi | |
18235 | ||
18236 | if test "$wxUSE_STREAMS" = "yes" ; then | |
18237 | cat >> confdefs.h <<\EOF | |
18238 | #define wxUSE_STREAMS 1 | |
18239 | EOF | |
18240 | ||
18241 | fi | |
18242 | ||
18243 | ||
18244 | if test "$wxUSE_DATETIME" = "yes"; then | |
18245 | for ac_func in strptime | |
18246 | do | |
18247 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18248 | echo "configure:18249: checking for $ac_func" >&5 | |
18249 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18251 | else | |
18252 | cat > conftest.$ac_ext <<EOF | |
18253 | #line 18254 "configure" | |
18254 | #include "confdefs.h" | |
18255 | /* System header to define __stub macros and hopefully few prototypes, | |
18256 | which can conflict with char $ac_func(); below. */ | |
18257 | #include <assert.h> | |
18258 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18259 | /* We use char because int might match the return type of a gcc2 | |
18260 | builtin and then its argument prototype would still apply. */ | |
18261 | char $ac_func(); | |
18262 | ||
18263 | int main() { | |
18264 | ||
18265 | /* The GNU C library defines this for functions which it implements | |
18266 | to always fail with ENOSYS. Some functions are actually named | |
18267 | something starting with __ and the normal name is an alias. */ | |
18268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18269 | choke me | |
18270 | #else | |
18271 | $ac_func(); | |
18272 | #endif | |
18273 | ||
18274 | ; return 0; } | |
18275 | EOF | |
18276 | if { (eval echo configure:18277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18277 | rm -rf conftest* | |
18278 | eval "ac_cv_func_$ac_func=yes" | |
18279 | else | |
18280 | echo "configure: failed program was:" >&5 | |
18281 | cat conftest.$ac_ext >&5 | |
18282 | rm -rf conftest* | |
18283 | eval "ac_cv_func_$ac_func=no" | |
18284 | fi | |
18285 | rm -f conftest* | |
18286 | fi | |
18287 | ||
18288 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18289 | echo "$ac_t""yes" 1>&6 | |
18290 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18291 | cat >> confdefs.h <<EOF | |
18292 | #define $ac_tr_func 1 | |
18293 | EOF | |
18294 | ||
18295 | else | |
18296 | echo "$ac_t""no" 1>&6 | |
18297 | fi | |
18298 | done | |
18299 | ||
18300 | ||
18301 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 | |
18302 | echo "configure:18303: checking for timezone variable in <time.h>" >&5 | |
18303 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
18304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18305 | else | |
18306 | ||
18307 | cat > conftest.$ac_ext <<EOF | |
18308 | #line 18309 "configure" | |
18309 | #include "confdefs.h" | |
18310 | ||
18311 | #include <time.h> | |
18312 | ||
18313 | int main() { | |
18314 | ||
18315 | int tz; | |
18316 | tz = timezone; | |
18317 | ||
18318 | ; return 0; } | |
18319 | EOF | |
18320 | if { (eval echo configure:18321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18321 | rm -rf conftest* | |
18322 | ||
18323 | wx_cv_var_timezone=timezone | |
18324 | ||
18325 | else | |
18326 | echo "configure: failed program was:" >&5 | |
18327 | cat conftest.$ac_ext >&5 | |
18328 | rm -rf conftest* | |
18329 | ||
18330 | cat > conftest.$ac_ext <<EOF | |
18331 | #line 18332 "configure" | |
18332 | #include "confdefs.h" | |
18333 | ||
18334 | #include <time.h> | |
18335 | ||
18336 | int main() { | |
18337 | ||
18338 | int tz; | |
18339 | tz = _timezone; | |
18340 | ||
18341 | ; return 0; } | |
18342 | EOF | |
18343 | if { (eval echo configure:18344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18344 | rm -rf conftest* | |
18345 | ||
18346 | wx_cv_var_timezone=_timezone | |
18347 | ||
18348 | else | |
18349 | echo "configure: failed program was:" >&5 | |
18350 | cat conftest.$ac_ext >&5 | |
18351 | rm -rf conftest* | |
18352 | ||
18353 | cat > conftest.$ac_ext <<EOF | |
18354 | #line 18355 "configure" | |
18355 | #include "confdefs.h" | |
18356 | ||
18357 | #include <time.h> | |
18358 | ||
18359 | int main() { | |
18360 | ||
18361 | int tz; | |
18362 | tz = __timezone; | |
18363 | ||
18364 | ; return 0; } | |
18365 | EOF | |
18366 | if { (eval echo configure:18367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18367 | rm -rf conftest* | |
18368 | ||
18369 | wx_cv_var_timezone=__timezone | |
18370 | ||
18371 | else | |
18372 | echo "configure: failed program was:" >&5 | |
18373 | cat conftest.$ac_ext >&5 | |
18374 | rm -rf conftest* | |
18375 | ||
18376 | if test "$USE_DOS" = 0 ; then | |
18377 | echo "configure: warning: no timezone variable" 1>&2 | |
18378 | fi | |
18379 | ||
18380 | ||
18381 | fi | |
18382 | rm -f conftest* | |
18383 | ||
18384 | ||
18385 | fi | |
18386 | rm -f conftest* | |
18387 | ||
18388 | ||
18389 | fi | |
18390 | rm -f conftest* | |
18391 | ||
18392 | ||
18393 | fi | |
18394 | ||
18395 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
18396 | ||
18397 | if test "x$wx_cv_var_timezone" != x ; then | |
18398 | cat >> confdefs.h <<EOF | |
18399 | #define WX_TIMEZONE $wx_cv_var_timezone | |
18400 | EOF | |
18401 | ||
18402 | fi | |
18403 | ||
18404 | for ac_func in localtime | |
18405 | do | |
18406 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18407 | echo "configure:18408: checking for $ac_func" >&5 | |
18408 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18410 | else | |
18411 | cat > conftest.$ac_ext <<EOF | |
18412 | #line 18413 "configure" | |
18413 | #include "confdefs.h" | |
18414 | /* System header to define __stub macros and hopefully few prototypes, | |
18415 | which can conflict with char $ac_func(); below. */ | |
18416 | #include <assert.h> | |
18417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18418 | /* We use char because int might match the return type of a gcc2 | |
18419 | builtin and then its argument prototype would still apply. */ | |
18420 | char $ac_func(); | |
18421 | ||
18422 | int main() { | |
18423 | ||
18424 | /* The GNU C library defines this for functions which it implements | |
18425 | to always fail with ENOSYS. Some functions are actually named | |
18426 | something starting with __ and the normal name is an alias. */ | |
18427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18428 | choke me | |
18429 | #else | |
18430 | $ac_func(); | |
18431 | #endif | |
18432 | ||
18433 | ; return 0; } | |
18434 | EOF | |
18435 | if { (eval echo configure:18436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18436 | rm -rf conftest* | |
18437 | eval "ac_cv_func_$ac_func=yes" | |
18438 | else | |
18439 | echo "configure: failed program was:" >&5 | |
18440 | cat conftest.$ac_ext >&5 | |
18441 | rm -rf conftest* | |
18442 | eval "ac_cv_func_$ac_func=no" | |
18443 | fi | |
18444 | rm -f conftest* | |
18445 | fi | |
18446 | ||
18447 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18448 | echo "$ac_t""yes" 1>&6 | |
18449 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18450 | cat >> confdefs.h <<EOF | |
18451 | #define $ac_tr_func 1 | |
18452 | EOF | |
18453 | ||
18454 | else | |
18455 | echo "$ac_t""no" 1>&6 | |
18456 | fi | |
18457 | done | |
18458 | ||
18459 | ||
18460 | if test "$ac_cv_func_localtime" = "yes"; then | |
18461 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
18462 | echo "configure:18463: checking for tm_gmtoff in struct tm" >&5 | |
18463 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
18464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18465 | else | |
18466 | ||
18467 | cat > conftest.$ac_ext <<EOF | |
18468 | #line 18469 "configure" | |
18469 | #include "confdefs.h" | |
18470 | ||
18471 | #include <time.h> | |
18472 | ||
18473 | int main() { | |
18474 | ||
18475 | struct tm tm; | |
18476 | tm.tm_gmtoff++; | |
18477 | ||
18478 | ; return 0; } | |
18479 | EOF | |
18480 | if { (eval echo configure:18481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18481 | rm -rf conftest* | |
18482 | ||
18483 | wx_cv_struct_tm_has_gmtoff=yes | |
18484 | ||
18485 | else | |
18486 | echo "configure: failed program was:" >&5 | |
18487 | cat conftest.$ac_ext >&5 | |
18488 | rm -rf conftest* | |
18489 | wx_cv_struct_tm_has_gmtoff=no | |
18490 | ||
18491 | fi | |
18492 | rm -f conftest* | |
18493 | ||
18494 | fi | |
18495 | ||
18496 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
18497 | fi | |
18498 | ||
18499 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
18500 | cat >> confdefs.h <<\EOF | |
18501 | #define WX_GMTOFF_IN_TM 1 | |
18502 | EOF | |
18503 | ||
18504 | fi | |
18505 | ||
18506 | for ac_func in gettimeofday ftime | |
18507 | do | |
18508 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18509 | echo "configure:18510: checking for $ac_func" >&5 | |
18510 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18512 | else | |
18513 | cat > conftest.$ac_ext <<EOF | |
18514 | #line 18515 "configure" | |
18515 | #include "confdefs.h" | |
18516 | /* System header to define __stub macros and hopefully few prototypes, | |
18517 | which can conflict with char $ac_func(); below. */ | |
18518 | #include <assert.h> | |
18519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18520 | /* We use char because int might match the return type of a gcc2 | |
18521 | builtin and then its argument prototype would still apply. */ | |
18522 | char $ac_func(); | |
18523 | ||
18524 | int main() { | |
18525 | ||
18526 | /* The GNU C library defines this for functions which it implements | |
18527 | to always fail with ENOSYS. Some functions are actually named | |
18528 | something starting with __ and the normal name is an alias. */ | |
18529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18530 | choke me | |
18531 | #else | |
18532 | $ac_func(); | |
18533 | #endif | |
18534 | ||
18535 | ; return 0; } | |
18536 | EOF | |
18537 | if { (eval echo configure:18538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18538 | rm -rf conftest* | |
18539 | eval "ac_cv_func_$ac_func=yes" | |
18540 | else | |
18541 | echo "configure: failed program was:" >&5 | |
18542 | cat conftest.$ac_ext >&5 | |
18543 | rm -rf conftest* | |
18544 | eval "ac_cv_func_$ac_func=no" | |
18545 | fi | |
18546 | rm -f conftest* | |
18547 | fi | |
18548 | ||
18549 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18550 | echo "$ac_t""yes" 1>&6 | |
18551 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18552 | cat >> confdefs.h <<EOF | |
18553 | #define $ac_tr_func 1 | |
18554 | EOF | |
18555 | break | |
18556 | else | |
18557 | echo "$ac_t""no" 1>&6 | |
18558 | fi | |
18559 | done | |
18560 | ||
18561 | ||
18562 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
18563 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
18564 | echo "configure:18565: checking whether gettimeofday takes two arguments" >&5 | |
18565 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
18566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18567 | else | |
18568 | ||
18569 | ||
18570 | ac_ext=C | |
18571 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18572 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18573 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18574 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18575 | cross_compiling=$ac_cv_prog_cxx_cross | |
18576 | ||
18577 | ||
18578 | cat > conftest.$ac_ext <<EOF | |
18579 | #line 18580 "configure" | |
18580 | #include "confdefs.h" | |
18581 | ||
18582 | #include <sys/time.h> | |
18583 | #include <unistd.h> | |
18584 | ||
18585 | int main() { | |
18586 | ||
18587 | struct timeval tv; | |
18588 | gettimeofday(&tv, NULL); | |
18589 | ||
18590 | ; return 0; } | |
18591 | EOF | |
18592 | if { (eval echo configure:18593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18593 | rm -rf conftest* | |
18594 | wx_cv_func_gettimeofday_has_2_args=yes | |
18595 | else | |
18596 | echo "configure: failed program was:" >&5 | |
18597 | cat conftest.$ac_ext >&5 | |
18598 | rm -rf conftest* | |
18599 | cat > conftest.$ac_ext <<EOF | |
18600 | #line 18601 "configure" | |
18601 | #include "confdefs.h" | |
18602 | ||
18603 | #include <sys/time.h> | |
18604 | #include <unistd.h> | |
18605 | ||
18606 | int main() { | |
18607 | ||
18608 | struct timeval tv; | |
18609 | gettimeofday(&tv); | |
18610 | ||
18611 | ; return 0; } | |
18612 | EOF | |
18613 | if { (eval echo configure:18614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18614 | rm -rf conftest* | |
18615 | wx_cv_func_gettimeofday_has_2_args=no | |
18616 | else | |
18617 | echo "configure: failed program was:" >&5 | |
18618 | cat conftest.$ac_ext >&5 | |
18619 | rm -rf conftest* | |
18620 | ||
18621 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18622 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18623 | ||
18624 | ||
18625 | fi | |
18626 | rm -f conftest* | |
18627 | ||
18628 | fi | |
18629 | rm -f conftest* | |
18630 | ac_ext=c | |
18631 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18632 | ac_cpp='$CPP $CPPFLAGS' | |
18633 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18634 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18635 | cross_compiling=$ac_cv_prog_cc_cross | |
18636 | ||
18637 | ||
18638 | fi | |
18639 | ||
18640 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
18641 | ||
18642 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
18643 | cat >> confdefs.h <<\EOF | |
18644 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
18645 | EOF | |
18646 | ||
18647 | fi | |
18648 | fi | |
18649 | ||
18650 | cat >> confdefs.h <<\EOF | |
18651 | #define wxUSE_TIMEDATE 1 | |
18652 | EOF | |
18653 | ||
18654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18655 | fi | |
18656 | ||
18657 | ||
18658 | if test "$wxUSE_SOCKETS" = "yes"; then | |
18659 | if test "$TOOLKIT" = "X11"; then | |
18660 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18661 | wxUSE_SOCKETS="no" | |
18662 | fi | |
18663 | fi | |
18664 | ||
18665 | if test "$wxUSE_SOCKETS" = "yes"; then | |
18666 | if test "$TOOLKIT" != "MSW"; then | |
18667 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
18668 | echo "configure:18669: checking for socket" >&5 | |
18669 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
18670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18671 | else | |
18672 | cat > conftest.$ac_ext <<EOF | |
18673 | #line 18674 "configure" | |
18674 | #include "confdefs.h" | |
18675 | /* System header to define __stub macros and hopefully few prototypes, | |
18676 | which can conflict with char socket(); below. */ | |
18677 | #include <assert.h> | |
18678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18679 | /* We use char because int might match the return type of a gcc2 | |
18680 | builtin and then its argument prototype would still apply. */ | |
18681 | char socket(); | |
18682 | ||
18683 | int main() { | |
18684 | ||
18685 | /* The GNU C library defines this for functions which it implements | |
18686 | to always fail with ENOSYS. Some functions are actually named | |
18687 | something starting with __ and the normal name is an alias. */ | |
18688 | #if defined (__stub_socket) || defined (__stub___socket) | |
18689 | choke me | |
18690 | #else | |
18691 | socket(); | |
18692 | #endif | |
18693 | ||
18694 | ; return 0; } | |
18695 | EOF | |
18696 | if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18697 | rm -rf conftest* | |
18698 | eval "ac_cv_func_socket=yes" | |
18699 | else | |
18700 | echo "configure: failed program was:" >&5 | |
18701 | cat conftest.$ac_ext >&5 | |
18702 | rm -rf conftest* | |
18703 | eval "ac_cv_func_socket=no" | |
18704 | fi | |
18705 | rm -f conftest* | |
18706 | fi | |
18707 | ||
18708 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18709 | echo "$ac_t""yes" 1>&6 | |
18710 | : | |
18711 | else | |
18712 | echo "$ac_t""no" 1>&6 | |
18713 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
18714 | echo "configure:18715: checking for socket in -lsocket" >&5 | |
18715 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
18716 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18718 | else | |
18719 | ac_save_LIBS="$LIBS" | |
18720 | LIBS="-lsocket $LIBS" | |
18721 | cat > conftest.$ac_ext <<EOF | |
18722 | #line 18723 "configure" | |
18723 | #include "confdefs.h" | |
18724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18725 | /* We use char because int might match the return type of a gcc2 | |
18726 | builtin and then its argument prototype would still apply. */ | |
18727 | char socket(); | |
18728 | ||
18729 | int main() { | |
18730 | socket() | |
18731 | ; return 0; } | |
18732 | EOF | |
18733 | if { (eval echo configure:18734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18734 | rm -rf conftest* | |
18735 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18736 | else | |
18737 | echo "configure: failed program was:" >&5 | |
18738 | cat conftest.$ac_ext >&5 | |
18739 | rm -rf conftest* | |
18740 | eval "ac_cv_lib_$ac_lib_var=no" | |
18741 | fi | |
18742 | rm -f conftest* | |
18743 | LIBS="$ac_save_LIBS" | |
18744 | ||
18745 | fi | |
18746 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18747 | echo "$ac_t""yes" 1>&6 | |
18748 | if test "$INET_LINK" != " -lsocket"; then | |
18749 | INET_LINK="$INET_LINK -lsocket" | |
18750 | fi | |
18751 | else | |
18752 | echo "$ac_t""no" 1>&6 | |
18753 | ||
18754 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
18755 | wxUSE_SOCKETS=no | |
18756 | ||
18757 | ||
18758 | fi | |
18759 | ||
18760 | ||
18761 | fi | |
18762 | ||
18763 | fi | |
18764 | fi | |
18765 | ||
18766 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
18767 | if test "$TOOLKIT" != "MSW"; then | |
18768 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
18769 | echo "configure:18770: checking what is the type of the third argument of getsockname" >&5 | |
18770 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then | |
18771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18772 | else | |
18773 | ||
18774 | ||
18775 | ac_ext=C | |
18776 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18777 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18778 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18779 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18780 | cross_compiling=$ac_cv_prog_cxx_cross | |
18781 | ||
18782 | ||
18783 | cat > conftest.$ac_ext <<EOF | |
18784 | #line 18785 "configure" | |
18785 | #include "confdefs.h" | |
18786 | ||
18787 | #include <sys/types.h> | |
18788 | #include <sys/socket.h> | |
18789 | ||
18790 | int main() { | |
18791 | ||
18792 | socklen_t len; | |
18793 | getsockname(0, 0, &len); | |
18794 | ||
18795 | ; return 0; } | |
18796 | EOF | |
18797 | if { (eval echo configure:18798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18798 | rm -rf conftest* | |
18799 | wx_cv_type_getsockname3=socklen_t | |
18800 | else | |
18801 | echo "configure: failed program was:" >&5 | |
18802 | cat conftest.$ac_ext >&5 | |
18803 | rm -rf conftest* | |
18804 | cat > conftest.$ac_ext <<EOF | |
18805 | #line 18806 "configure" | |
18806 | #include "confdefs.h" | |
18807 | ||
18808 | #include <sys/types.h> | |
18809 | #include <sys/socket.h> | |
18810 | ||
18811 | int main() { | |
18812 | ||
18813 | size_t len; | |
18814 | getsockname(0, 0, &len); | |
18815 | ||
18816 | ; return 0; } | |
18817 | EOF | |
18818 | if { (eval echo configure:18819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18819 | rm -rf conftest* | |
18820 | wx_cv_type_getsockname3=size_t | |
18821 | else | |
18822 | echo "configure: failed program was:" >&5 | |
18823 | cat conftest.$ac_ext >&5 | |
18824 | rm -rf conftest* | |
18825 | cat > conftest.$ac_ext <<EOF | |
18826 | #line 18827 "configure" | |
18827 | #include "confdefs.h" | |
18828 | ||
18829 | #include <sys/types.h> | |
18830 | #include <sys/socket.h> | |
18831 | ||
18832 | int main() { | |
18833 | ||
18834 | int len; | |
18835 | getsockname(0, 0, &len); | |
18836 | ||
18837 | ; return 0; } | |
18838 | EOF | |
18839 | if { (eval echo configure:18840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18840 | rm -rf conftest* | |
18841 | wx_cv_type_getsockname3=int | |
18842 | else | |
18843 | echo "configure: failed program was:" >&5 | |
18844 | cat conftest.$ac_ext >&5 | |
18845 | rm -rf conftest* | |
18846 | wx_cv_type_getsockname3=unknown | |
18847 | ||
18848 | fi | |
18849 | rm -f conftest* | |
18850 | ||
18851 | fi | |
18852 | rm -f conftest* | |
18853 | ||
18854 | fi | |
18855 | rm -f conftest* | |
18856 | ||
18857 | ac_ext=c | |
18858 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18859 | ac_cpp='$CPP $CPPFLAGS' | |
18860 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18861 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18862 | cross_compiling=$ac_cv_prog_cc_cross | |
18863 | ||
18864 | ||
18865 | fi | |
18866 | ||
18867 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
18868 | ||
18869 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
18870 | wxUSE_SOCKETS=no | |
18871 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18872 | else | |
18873 | cat >> confdefs.h <<EOF | |
18874 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
18875 | EOF | |
18876 | ||
18877 | fi | |
18878 | fi | |
18879 | fi | |
18880 | ||
18881 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
18882 | cat >> confdefs.h <<\EOF | |
18883 | #define wxUSE_SOCKETS 1 | |
18884 | EOF | |
18885 | ||
18886 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
18887 | fi | |
18888 | ||
18889 | ||
18890 | if test "$wxUSE_GUI" = "yes"; then | |
18891 | ||
18892 | if test "$TOOLKIT" = "MAC"; then | |
18893 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18894 | wxUSE_JOYSTICK=no | |
18895 | fi | |
18896 | if test "$TOOLKIT" = "MOTIF"; then | |
18897 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18898 | wxUSE_JOYSTICK=no | |
18899 | fi | |
18900 | if test "$TOOLKIT" = "X11"; then | |
18901 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
18902 | wxUSE_JOYSTICK=no | |
18903 | fi | |
18904 | ||
18905 | if test "$TOOLKIT" != "MSW"; then | |
18906 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18907 | for ac_hdr in linux/joystick.h | |
18908 | do | |
18909 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
18910 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18911 | echo "configure:18912: checking for $ac_hdr" >&5 | |
18912 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
18913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18914 | else | |
18915 | cat > conftest.$ac_ext <<EOF | |
18916 | #line 18917 "configure" | |
18917 | #include "confdefs.h" | |
18918 | #include <$ac_hdr> | |
18919 | EOF | |
18920 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18921 | { (eval echo configure:18922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
18922 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
18923 | if test -z "$ac_err"; then | |
18924 | rm -rf conftest* | |
18925 | eval "ac_cv_header_$ac_safe=yes" | |
18926 | else | |
18927 | echo "$ac_err" >&5 | |
18928 | echo "configure: failed program was:" >&5 | |
18929 | cat conftest.$ac_ext >&5 | |
18930 | rm -rf conftest* | |
18931 | eval "ac_cv_header_$ac_safe=no" | |
18932 | fi | |
18933 | rm -f conftest* | |
18934 | fi | |
18935 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18936 | echo "$ac_t""yes" 1>&6 | |
18937 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18938 | cat >> confdefs.h <<EOF | |
18939 | #define $ac_tr_hdr 1 | |
18940 | EOF | |
18941 | ||
18942 | else | |
18943 | echo "$ac_t""no" 1>&6 | |
18944 | fi | |
18945 | done | |
18946 | ||
18947 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
18948 | wxUSE_JOYSTICK=no | |
18949 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 | |
18950 | fi | |
18951 | fi | |
18952 | fi | |
18953 | ||
18954 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18955 | cat >> confdefs.h <<\EOF | |
18956 | #define wxUSE_JOYSTICK 1 | |
18957 | EOF | |
18958 | ||
18959 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
18960 | fi | |
18961 | fi | |
18962 | ||
18963 | ||
18964 | if test "$TOOLKIT" != "MSW"; then | |
18965 | ||
18966 | HAVE_DL_FUNCS=0 | |
18967 | HAVE_SHL_FUNCS=0 | |
18968 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
18969 | if test "$USE_DARWIN" = 1; then | |
18970 | HAVE_DL_FUNCS=1 | |
18971 | else | |
18972 | for ac_func in dlopen | |
18973 | do | |
18974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18975 | echo "configure:18976: checking for $ac_func" >&5 | |
18976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18978 | else | |
18979 | cat > conftest.$ac_ext <<EOF | |
18980 | #line 18981 "configure" | |
18981 | #include "confdefs.h" | |
18982 | /* System header to define __stub macros and hopefully few prototypes, | |
18983 | which can conflict with char $ac_func(); below. */ | |
18984 | #include <assert.h> | |
18985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18986 | /* We use char because int might match the return type of a gcc2 | |
18987 | builtin and then its argument prototype would still apply. */ | |
18988 | char $ac_func(); | |
18989 | ||
18990 | int main() { | |
18991 | ||
18992 | /* The GNU C library defines this for functions which it implements | |
18993 | to always fail with ENOSYS. Some functions are actually named | |
18994 | something starting with __ and the normal name is an alias. */ | |
18995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18996 | choke me | |
18997 | #else | |
18998 | $ac_func(); | |
18999 | #endif | |
19000 | ||
19001 | ; return 0; } | |
19002 | EOF | |
19003 | if { (eval echo configure:19004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19004 | rm -rf conftest* | |
19005 | eval "ac_cv_func_$ac_func=yes" | |
19006 | else | |
19007 | echo "configure: failed program was:" >&5 | |
19008 | cat conftest.$ac_ext >&5 | |
19009 | rm -rf conftest* | |
19010 | eval "ac_cv_func_$ac_func=no" | |
19011 | fi | |
19012 | rm -f conftest* | |
19013 | fi | |
19014 | ||
19015 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19016 | echo "$ac_t""yes" 1>&6 | |
19017 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19018 | cat >> confdefs.h <<EOF | |
19019 | #define $ac_tr_func 1 | |
19020 | EOF | |
19021 | ||
19022 | cat >> confdefs.h <<\EOF | |
19023 | #define HAVE_DLOPEN 1 | |
19024 | EOF | |
19025 | ||
19026 | HAVE_DL_FUNCS=1 | |
19027 | ||
19028 | else | |
19029 | echo "$ac_t""no" 1>&6 | |
19030 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
19031 | echo "configure:19032: checking for dlopen in -ldl" >&5 | |
19032 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
19033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19035 | else | |
19036 | ac_save_LIBS="$LIBS" | |
19037 | LIBS="-ldl $LIBS" | |
19038 | cat > conftest.$ac_ext <<EOF | |
19039 | #line 19040 "configure" | |
19040 | #include "confdefs.h" | |
19041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19042 | /* We use char because int might match the return type of a gcc2 | |
19043 | builtin and then its argument prototype would still apply. */ | |
19044 | char dlopen(); | |
19045 | ||
19046 | int main() { | |
19047 | dlopen() | |
19048 | ; return 0; } | |
19049 | EOF | |
19050 | if { (eval echo configure:19051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19051 | rm -rf conftest* | |
19052 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19053 | else | |
19054 | echo "configure: failed program was:" >&5 | |
19055 | cat conftest.$ac_ext >&5 | |
19056 | rm -rf conftest* | |
19057 | eval "ac_cv_lib_$ac_lib_var=no" | |
19058 | fi | |
19059 | rm -f conftest* | |
19060 | LIBS="$ac_save_LIBS" | |
19061 | ||
19062 | fi | |
19063 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19064 | echo "$ac_t""yes" 1>&6 | |
19065 | ||
19066 | cat >> confdefs.h <<\EOF | |
19067 | #define HAVE_DLOPEN 1 | |
19068 | EOF | |
19069 | ||
19070 | HAVE_DL_FUNCS=1 | |
19071 | DL_LINK=" -ldl$DL_LINK" | |
19072 | ||
19073 | else | |
19074 | echo "$ac_t""no" 1>&6 | |
19075 | ||
19076 | for ac_func in shl_load | |
19077 | do | |
19078 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
19079 | echo "configure:19080: checking for $ac_func" >&5 | |
19080 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19082 | else | |
19083 | cat > conftest.$ac_ext <<EOF | |
19084 | #line 19085 "configure" | |
19085 | #include "confdefs.h" | |
19086 | /* System header to define __stub macros and hopefully few prototypes, | |
19087 | which can conflict with char $ac_func(); below. */ | |
19088 | #include <assert.h> | |
19089 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19090 | /* We use char because int might match the return type of a gcc2 | |
19091 | builtin and then its argument prototype would still apply. */ | |
19092 | char $ac_func(); | |
19093 | ||
19094 | int main() { | |
19095 | ||
19096 | /* The GNU C library defines this for functions which it implements | |
19097 | to always fail with ENOSYS. Some functions are actually named | |
19098 | something starting with __ and the normal name is an alias. */ | |
19099 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19100 | choke me | |
19101 | #else | |
19102 | $ac_func(); | |
19103 | #endif | |
19104 | ||
19105 | ; return 0; } | |
19106 | EOF | |
19107 | if { (eval echo configure:19108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19108 | rm -rf conftest* | |
19109 | eval "ac_cv_func_$ac_func=yes" | |
19110 | else | |
19111 | echo "configure: failed program was:" >&5 | |
19112 | cat conftest.$ac_ext >&5 | |
19113 | rm -rf conftest* | |
19114 | eval "ac_cv_func_$ac_func=no" | |
19115 | fi | |
19116 | rm -f conftest* | |
19117 | fi | |
19118 | ||
19119 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19120 | echo "$ac_t""yes" 1>&6 | |
19121 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19122 | cat >> confdefs.h <<EOF | |
19123 | #define $ac_tr_func 1 | |
19124 | EOF | |
19125 | ||
19126 | cat >> confdefs.h <<\EOF | |
19127 | #define HAVE_SHL_LOAD 1 | |
19128 | EOF | |
19129 | ||
19130 | HAVE_SHL_FUNCS=1 | |
19131 | ||
19132 | else | |
19133 | echo "$ac_t""no" 1>&6 | |
19134 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
19135 | echo "configure:19136: checking for dld in -lshl_load" >&5 | |
19136 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
19137 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19139 | else | |
19140 | ac_save_LIBS="$LIBS" | |
19141 | LIBS="-lshl_load $LIBS" | |
19142 | cat > conftest.$ac_ext <<EOF | |
19143 | #line 19144 "configure" | |
19144 | #include "confdefs.h" | |
19145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19146 | /* We use char because int might match the return type of a gcc2 | |
19147 | builtin and then its argument prototype would still apply. */ | |
19148 | char dld(); | |
19149 | ||
19150 | int main() { | |
19151 | dld() | |
19152 | ; return 0; } | |
19153 | EOF | |
19154 | if { (eval echo configure:19155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19155 | rm -rf conftest* | |
19156 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19157 | else | |
19158 | echo "configure: failed program was:" >&5 | |
19159 | cat conftest.$ac_ext >&5 | |
19160 | rm -rf conftest* | |
19161 | eval "ac_cv_lib_$ac_lib_var=no" | |
19162 | fi | |
19163 | rm -f conftest* | |
19164 | LIBS="$ac_save_LIBS" | |
19165 | ||
19166 | fi | |
19167 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19168 | echo "$ac_t""yes" 1>&6 | |
19169 | ||
19170 | HAVE_SHL_FUNCS=1 | |
19171 | DL_LINK=" -ldld$DL_LINK" | |
19172 | ||
19173 | else | |
19174 | echo "$ac_t""no" 1>&6 | |
19175 | fi | |
19176 | ||
19177 | ||
19178 | fi | |
19179 | done | |
19180 | ||
19181 | ||
19182 | fi | |
19183 | ||
19184 | ||
19185 | fi | |
19186 | done | |
19187 | ||
19188 | ||
19189 | if test "$HAVE_DL_FUNCS" = 1; then | |
19190 | for ac_func in dlerror | |
19191 | do | |
19192 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
19193 | echo "configure:19194: checking for $ac_func" >&5 | |
19194 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19196 | else | |
19197 | cat > conftest.$ac_ext <<EOF | |
19198 | #line 19199 "configure" | |
19199 | #include "confdefs.h" | |
19200 | /* System header to define __stub macros and hopefully few prototypes, | |
19201 | which can conflict with char $ac_func(); below. */ | |
19202 | #include <assert.h> | |
19203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19204 | /* We use char because int might match the return type of a gcc2 | |
19205 | builtin and then its argument prototype would still apply. */ | |
19206 | char $ac_func(); | |
19207 | ||
19208 | int main() { | |
19209 | ||
19210 | /* The GNU C library defines this for functions which it implements | |
19211 | to always fail with ENOSYS. Some functions are actually named | |
19212 | something starting with __ and the normal name is an alias. */ | |
19213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19214 | choke me | |
19215 | #else | |
19216 | $ac_func(); | |
19217 | #endif | |
19218 | ||
19219 | ; return 0; } | |
19220 | EOF | |
19221 | if { (eval echo configure:19222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19222 | rm -rf conftest* | |
19223 | eval "ac_cv_func_$ac_func=yes" | |
19224 | else | |
19225 | echo "configure: failed program was:" >&5 | |
19226 | cat conftest.$ac_ext >&5 | |
19227 | rm -rf conftest* | |
19228 | eval "ac_cv_func_$ac_func=no" | |
19229 | fi | |
19230 | rm -f conftest* | |
19231 | fi | |
19232 | ||
19233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19234 | echo "$ac_t""yes" 1>&6 | |
19235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19236 | cat >> confdefs.h <<EOF | |
19237 | #define $ac_tr_func 1 | |
19238 | EOF | |
19239 | cat >> confdefs.h <<\EOF | |
19240 | #define HAVE_DLERROR 1 | |
19241 | EOF | |
19242 | ||
19243 | else | |
19244 | echo "$ac_t""no" 1>&6 | |
19245 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
19246 | echo "configure:19247: checking for dlerror in -ldl" >&5 | |
19247 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
19248 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19250 | else | |
19251 | ac_save_LIBS="$LIBS" | |
19252 | LIBS="-ldl $LIBS" | |
19253 | cat > conftest.$ac_ext <<EOF | |
19254 | #line 19255 "configure" | |
19255 | #include "confdefs.h" | |
19256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19257 | /* We use char because int might match the return type of a gcc2 | |
19258 | builtin and then its argument prototype would still apply. */ | |
19259 | char dlerror(); | |
19260 | ||
19261 | int main() { | |
19262 | dlerror() | |
19263 | ; return 0; } | |
19264 | EOF | |
19265 | if { (eval echo configure:19266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19266 | rm -rf conftest* | |
19267 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19268 | else | |
19269 | echo "configure: failed program was:" >&5 | |
19270 | cat conftest.$ac_ext >&5 | |
19271 | rm -rf conftest* | |
19272 | eval "ac_cv_lib_$ac_lib_var=no" | |
19273 | fi | |
19274 | rm -f conftest* | |
19275 | LIBS="$ac_save_LIBS" | |
19276 | ||
19277 | fi | |
19278 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19279 | echo "$ac_t""yes" 1>&6 | |
19280 | cat >> confdefs.h <<\EOF | |
19281 | #define HAVE_DLERROR 1 | |
19282 | EOF | |
19283 | ||
19284 | else | |
19285 | echo "$ac_t""no" 1>&6 | |
19286 | fi | |
19287 | ||
19288 | fi | |
19289 | done | |
19290 | ||
19291 | fi | |
19292 | fi | |
19293 | ||
19294 | if test "$HAVE_DL_FUNCS" = 0; then | |
19295 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19296 | if test "$USE_UNIX" = 1; then | |
19297 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
19298 | wxUSE_DYNAMIC_LOADER=no | |
19299 | wxUSE_DYNLIB_CLASS=no | |
19300 | else | |
19301 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19302 | fi | |
19303 | fi | |
19304 | fi | |
19305 | fi | |
19306 | fi | |
19307 | ||
19308 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
19309 | cat >> confdefs.h <<\EOF | |
19310 | #define wxUSE_DYNAMIC_LOADER 1 | |
19311 | EOF | |
19312 | ||
19313 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
19314 | cat >> confdefs.h <<\EOF | |
19315 | #define wxUSE_DYNLIB_CLASS 1 | |
19316 | EOF | |
19317 | ||
19318 | fi | |
19319 | ||
19320 | ||
19321 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
19322 | cat >> confdefs.h <<\EOF | |
19323 | #define wxUSE_FONTMAP 1 | |
19324 | EOF | |
19325 | ||
19326 | fi | |
19327 | ||
19328 | if test "$wxUSE_UNICODE" = "yes" ; then | |
19329 | cat >> confdefs.h <<\EOF | |
19330 | #define wxUSE_UNICODE 1 | |
19331 | EOF | |
19332 | ||
19333 | ||
19334 | if test "$wxUSE_MSW" != 1; then | |
19335 | wxUSE_UNICODE_MSLU=no | |
19336 | fi | |
19337 | ||
19338 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19339 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
19340 | echo "configure:19341: checking for main in -lunicows" >&5 | |
19341 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` | |
19342 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19344 | else | |
19345 | ac_save_LIBS="$LIBS" | |
19346 | LIBS="-lunicows $LIBS" | |
19347 | cat > conftest.$ac_ext <<EOF | |
19348 | #line 19349 "configure" | |
19349 | #include "confdefs.h" | |
19350 | ||
19351 | int main() { | |
19352 | main() | |
19353 | ; return 0; } | |
19354 | EOF | |
19355 | if { (eval echo configure:19356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19356 | rm -rf conftest* | |
19357 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19358 | else | |
19359 | echo "configure: failed program was:" >&5 | |
19360 | cat conftest.$ac_ext >&5 | |
19361 | rm -rf conftest* | |
19362 | eval "ac_cv_lib_$ac_lib_var=no" | |
19363 | fi | |
19364 | rm -f conftest* | |
19365 | LIBS="$ac_save_LIBS" | |
19366 | ||
19367 | fi | |
19368 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19369 | echo "$ac_t""yes" 1>&6 | |
19370 | ||
19371 | cat >> confdefs.h <<\EOF | |
19372 | #define wxUSE_UNICODE_MSLU 1 | |
19373 | EOF | |
19374 | ||
19375 | ||
19376 | else | |
19377 | echo "$ac_t""no" 1>&6 | |
19378 | ||
19379 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19380 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19381 | wxUSE_UNICODE_MSLU=no | |
19382 | ||
19383 | fi | |
19384 | ||
19385 | fi | |
19386 | fi | |
19387 | ||
19388 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
19389 | cat >> confdefs.h <<\EOF | |
19390 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
19391 | EOF | |
19392 | ||
19393 | fi | |
19394 | ||
19395 | ||
19396 | ||
19397 | IODBC_C_SRC="" | |
19398 | if test "$wxUSE_ODBC" = "yes" ; then | |
19399 | cat >> confdefs.h <<\EOF | |
19400 | #define wxUSE_ODBC 1 | |
19401 | EOF | |
19402 | ||
19403 | WXODBCFLAG="-D_IODBC_" | |
19404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
19405 | fi | |
19406 | ||
19407 | ||
19408 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
19409 | cat >> confdefs.h <<\EOF | |
19410 | #define wxUSE_POSTSCRIPT 1 | |
19411 | EOF | |
19412 | ||
19413 | fi | |
19414 | ||
19415 | cat >> confdefs.h <<\EOF | |
19416 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
19417 | EOF | |
19418 | ||
19419 | ||
19420 | cat >> confdefs.h <<\EOF | |
19421 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
19422 | EOF | |
19423 | ||
19424 | ||
19425 | ||
19426 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
19427 | cat >> confdefs.h <<\EOF | |
19428 | #define wxUSE_CONSTRAINTS 1 | |
19429 | EOF | |
19430 | ||
19431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19432 | fi | |
19433 | ||
19434 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19435 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19436 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 | |
19437 | wxUSE_MDI_ARCHITECTURE=no | |
19438 | fi | |
19439 | ||
19440 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19441 | cat >> confdefs.h <<\EOF | |
19442 | #define wxUSE_MDI_ARCHITECTURE 1 | |
19443 | EOF | |
19444 | ||
19445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
19446 | fi | |
19447 | fi | |
19448 | ||
19449 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
19450 | cat >> confdefs.h <<\EOF | |
19451 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
19452 | EOF | |
19453 | ||
19454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19455 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19457 | fi | |
19458 | fi | |
19459 | ||
19460 | if test "$wxUSE_HELP" = "yes"; then | |
19461 | cat >> confdefs.h <<\EOF | |
19462 | #define wxUSE_HELP 1 | |
19463 | EOF | |
19464 | ||
19465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
19466 | ||
19467 | if test "$wxUSE_MSW" = 1; then | |
19468 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
19469 | cat >> confdefs.h <<\EOF | |
19470 | #define wxUSE_MS_HTML_HELP 1 | |
19471 | EOF | |
19472 | ||
19473 | fi | |
19474 | fi | |
19475 | ||
19476 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19477 | if test "$wxUSE_HTML" = "yes"; then | |
19478 | cat >> confdefs.h <<\EOF | |
19479 | #define wxUSE_WXHTML_HELP 1 | |
19480 | EOF | |
19481 | ||
19482 | else | |
19483 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19484 | wxUSE_WXHTML_HELP=no | |
19485 | fi | |
19486 | fi | |
19487 | fi | |
19488 | ||
19489 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19490 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19491 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
19492 | else | |
19493 | cat >> confdefs.h <<\EOF | |
19494 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
19495 | EOF | |
19496 | ||
19497 | fi | |
19498 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19499 | fi | |
19500 | ||
19501 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
19502 | cat >> confdefs.h <<\EOF | |
19503 | #define wxUSE_PROLOGIO 1 | |
19504 | EOF | |
19505 | ||
19506 | fi | |
19507 | ||
19508 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
19509 | if test "$wxUSE_NANOX" = "yes"; then | |
19510 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19511 | else | |
19512 | cat >> confdefs.h <<\EOF | |
19513 | #define wxUSE_RESOURCES 1 | |
19514 | EOF | |
19515 | ||
19516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
19517 | fi | |
19518 | fi | |
19519 | ||
19520 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
19521 | cat >> confdefs.h <<\EOF | |
19522 | #define wxUSE_X_RESOURCES 1 | |
19523 | EOF | |
19524 | ||
19525 | fi | |
19526 | ||
19527 | ||
19528 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
19529 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19530 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
19531 | for ac_hdr in ole2.h | |
19532 | do | |
19533 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
19534 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19535 | echo "configure:19536: checking for $ac_hdr" >&5 | |
19536 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
19537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19538 | else | |
19539 | cat > conftest.$ac_ext <<EOF | |
19540 | #line 19541 "configure" | |
19541 | #include "confdefs.h" | |
19542 | #include <$ac_hdr> | |
19543 | EOF | |
19544 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19545 | { (eval echo configure:19546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
19546 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
19547 | if test -z "$ac_err"; then | |
19548 | rm -rf conftest* | |
19549 | eval "ac_cv_header_$ac_safe=yes" | |
19550 | else | |
19551 | echo "$ac_err" >&5 | |
19552 | echo "configure: failed program was:" >&5 | |
19553 | cat conftest.$ac_ext >&5 | |
19554 | rm -rf conftest* | |
19555 | eval "ac_cv_header_$ac_safe=no" | |
19556 | fi | |
19557 | rm -f conftest* | |
19558 | fi | |
19559 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19560 | echo "$ac_t""yes" 1>&6 | |
19561 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19562 | cat >> confdefs.h <<EOF | |
19563 | #define $ac_tr_hdr 1 | |
19564 | EOF | |
19565 | ||
19566 | else | |
19567 | echo "$ac_t""no" 1>&6 | |
19568 | fi | |
19569 | done | |
19570 | ||
19571 | ||
19572 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
19573 | if test "$GCC" = yes ; then | |
19574 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
19575 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
19576 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
19577 | cat >> confdefs.h <<\EOF | |
19578 | #define wxUSE_OLE 1 | |
19579 | EOF | |
19580 | ||
19581 | ||
19582 | fi | |
19583 | ||
19584 | cat >> confdefs.h <<\EOF | |
19585 | #define wxUSE_DATAOBJ 1 | |
19586 | EOF | |
19587 | ||
19588 | else | |
19589 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19590 | ||
19591 | wxUSE_CLIPBOARD=no | |
19592 | wxUSE_DRAG_AND_DROP=no | |
19593 | wxUSE_DATAOBJ=no | |
19594 | fi | |
19595 | ||
19596 | if test "$wxUSE_METAFILE" = "yes"; then | |
19597 | cat >> confdefs.h <<\EOF | |
19598 | #define wxUSE_METAFILE 1 | |
19599 | EOF | |
19600 | ||
19601 | ||
19602 | cat >> confdefs.h <<\EOF | |
19603 | #define wxUSE_ENH_METAFILE 1 | |
19604 | EOF | |
19605 | ||
19606 | fi | |
19607 | fi | |
19608 | ||
19609 | if test "$wxUSE_IPC" = "yes"; then | |
19610 | if test "$wxUSE_SOCKETS" != "yes"; then | |
19611 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 | |
19612 | fi | |
19613 | ||
19614 | cat >> confdefs.h <<\EOF | |
19615 | #define wxUSE_IPC 1 | |
19616 | EOF | |
19617 | ||
19618 | fi | |
19619 | ||
19620 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19621 | cat >> confdefs.h <<\EOF | |
19622 | #define wxUSE_CLIPBOARD 1 | |
19623 | EOF | |
19624 | ||
19625 | ||
19626 | cat >> confdefs.h <<\EOF | |
19627 | #define wxUSE_DATAOBJ 1 | |
19628 | EOF | |
19629 | ||
19630 | fi | |
19631 | ||
19632 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19633 | if test "$wxUSE_GTK" = 1; then | |
19634 | if test "$WXGTK12" != 1; then | |
19635 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 | |
19636 | wxUSE_DRAG_AND_DROP=no | |
19637 | fi | |
19638 | fi | |
19639 | ||
19640 | if test "$wxUSE_MOTIF" = 1; then | |
19641 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 | |
19642 | wxUSE_DRAG_AND_DROP=no | |
19643 | fi | |
19644 | ||
19645 | if test "$wxUSE_X11" = 1; then | |
19646 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19647 | wxUSE_DRAG_AND_DROP=no | |
19648 | fi | |
19649 | ||
19650 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
19651 | cat >> confdefs.h <<\EOF | |
19652 | #define wxUSE_DRAG_AND_DROP 1 | |
19653 | EOF | |
19654 | ||
19655 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19656 | fi | |
19657 | ||
19658 | fi | |
19659 | ||
19660 | if test "$wxUSE_SPLINES" = "yes" ; then | |
19661 | cat >> confdefs.h <<\EOF | |
19662 | #define wxUSE_SPLINES 1 | |
19663 | EOF | |
19664 | ||
19665 | fi | |
19666 | ||
19667 | ||
19668 | USES_CONTROLS=0 | |
19669 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19670 | USES_CONTROLS=1 | |
19671 | fi | |
19672 | ||
19673 | if test "$wxUSE_ACCEL" = "yes"; then | |
19674 | cat >> confdefs.h <<\EOF | |
19675 | #define wxUSE_ACCEL 1 | |
19676 | EOF | |
19677 | ||
19678 | USES_CONTROLS=1 | |
19679 | fi | |
19680 | ||
19681 | if test "$wxUSE_BUTTON" = "yes"; then | |
19682 | cat >> confdefs.h <<\EOF | |
19683 | #define wxUSE_BUTTON 1 | |
19684 | EOF | |
19685 | ||
19686 | USES_CONTROLS=1 | |
19687 | fi | |
19688 | ||
19689 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19690 | cat >> confdefs.h <<\EOF | |
19691 | #define wxUSE_BMPBUTTON 1 | |
19692 | EOF | |
19693 | ||
19694 | USES_CONTROLS=1 | |
19695 | fi | |
19696 | ||
19697 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19698 | cat >> confdefs.h <<\EOF | |
19699 | #define wxUSE_CALENDARCTRL 1 | |
19700 | EOF | |
19701 | ||
19702 | USES_CONTROLS=1 | |
19703 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
19704 | fi | |
19705 | ||
19706 | if test "$wxUSE_CARET" = "yes"; then | |
19707 | cat >> confdefs.h <<\EOF | |
19708 | #define wxUSE_CARET 1 | |
19709 | EOF | |
19710 | ||
19711 | USES_CONTROLS=1 | |
19712 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
19713 | fi | |
19714 | ||
19715 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
19716 | cat >> confdefs.h <<\EOF | |
19717 | #define wxUSE_COMBOBOX 1 | |
19718 | EOF | |
19719 | ||
19720 | USES_CONTROLS=1 | |
19721 | fi | |
19722 | ||
19723 | if test "$wxUSE_CHOICE" = "yes"; then | |
19724 | cat >> confdefs.h <<\EOF | |
19725 | #define wxUSE_CHOICE 1 | |
19726 | EOF | |
19727 | ||
19728 | USES_CONTROLS=1 | |
19729 | fi | |
19730 | ||
19731 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
19732 | cat >> confdefs.h <<\EOF | |
19733 | #define wxUSE_CHECKBOX 1 | |
19734 | EOF | |
19735 | ||
19736 | USES_CONTROLS=1 | |
19737 | fi | |
19738 | ||
19739 | if test "$wxUSE_CHECKLST" = "yes"; then | |
19740 | cat >> confdefs.h <<\EOF | |
19741 | #define wxUSE_CHECKLISTBOX 1 | |
19742 | EOF | |
19743 | ||
19744 | USES_CONTROLS=1 | |
19745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
19746 | fi | |
19747 | ||
19748 | if test "$wxUSE_GAUGE" = "yes"; then | |
19749 | cat >> confdefs.h <<\EOF | |
19750 | #define wxUSE_GAUGE 1 | |
19751 | EOF | |
19752 | ||
19753 | USES_CONTROLS=1 | |
19754 | fi | |
19755 | ||
19756 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
19757 | wxUSE_GRID="yes" | |
19758 | cat >> confdefs.h <<\EOF | |
19759 | #define wxUSE_NEW_GRID 1 | |
19760 | EOF | |
19761 | ||
19762 | USES_CONTROLS=1 | |
19763 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
19764 | fi | |
19765 | ||
19766 | if test "$wxUSE_GRID" = "yes"; then | |
19767 | cat >> confdefs.h <<\EOF | |
19768 | #define wxUSE_GRID 1 | |
19769 | EOF | |
19770 | ||
19771 | USES_CONTROLS=1 | |
19772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
19773 | fi | |
19774 | ||
19775 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
19776 | cat >> confdefs.h <<\EOF | |
19777 | #define wxUSE_IMAGLIST 1 | |
19778 | EOF | |
19779 | ||
19780 | fi | |
19781 | ||
19782 | if test "$wxUSE_LISTBOX" = "yes"; then | |
19783 | cat >> confdefs.h <<\EOF | |
19784 | #define wxUSE_LISTBOX 1 | |
19785 | EOF | |
19786 | ||
19787 | USES_CONTROLS=1 | |
19788 | fi | |
19789 | ||
19790 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19791 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
19792 | cat >> confdefs.h <<\EOF | |
19793 | #define wxUSE_LISTCTRL 1 | |
19794 | EOF | |
19795 | ||
19796 | USES_CONTROLS=1 | |
19797 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
19798 | else | |
19799 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
19800 | fi | |
19801 | fi | |
19802 | ||
19803 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
19804 | cat >> confdefs.h <<\EOF | |
19805 | #define wxUSE_NOTEBOOK 1 | |
19806 | EOF | |
19807 | ||
19808 | USES_CONTROLS=1 | |
19809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
19810 | fi | |
19811 | ||
19812 | if test "$wxUSE_PROPSHEET" = "yes"; then | |
19813 | cat >> confdefs.h <<\EOF | |
19814 | #define wxUSE_PROPSHEET 1 | |
19815 | EOF | |
19816 | ||
19817 | USES_CONTROLS=1 | |
19818 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19819 | fi | |
19820 | ||
19821 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
19822 | cat >> confdefs.h <<\EOF | |
19823 | #define wxUSE_RADIOBOX 1 | |
19824 | EOF | |
19825 | ||
19826 | USES_CONTROLS=1 | |
19827 | fi | |
19828 | ||
19829 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
19830 | cat >> confdefs.h <<\EOF | |
19831 | #define wxUSE_RADIOBTN 1 | |
19832 | EOF | |
19833 | ||
19834 | USES_CONTROLS=1 | |
19835 | fi | |
19836 | ||
19837 | if test "$wxUSE_SASH" = "yes"; then | |
19838 | cat >> confdefs.h <<\EOF | |
19839 | #define wxUSE_SASH 1 | |
19840 | EOF | |
19841 | ||
19842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19843 | fi | |
19844 | ||
19845 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
19846 | cat >> confdefs.h <<\EOF | |
19847 | #define wxUSE_SCROLLBAR 1 | |
19848 | EOF | |
19849 | ||
19850 | USES_CONTROLS=1 | |
19851 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
19852 | fi | |
19853 | ||
19854 | if test "$wxUSE_SLIDER" = "yes"; then | |
19855 | cat >> confdefs.h <<\EOF | |
19856 | #define wxUSE_SLIDER 1 | |
19857 | EOF | |
19858 | ||
19859 | USES_CONTROLS=1 | |
19860 | fi | |
19861 | ||
19862 | if test "$wxUSE_SPINBTN" = "yes"; then | |
19863 | cat >> confdefs.h <<\EOF | |
19864 | #define wxUSE_SPINBTN 1 | |
19865 | EOF | |
19866 | ||
19867 | USES_CONTROLS=1 | |
19868 | fi | |
19869 | ||
19870 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
19871 | cat >> confdefs.h <<\EOF | |
19872 | #define wxUSE_SPINCTRL 1 | |
19873 | EOF | |
19874 | ||
19875 | USES_CONTROLS=1 | |
19876 | fi | |
19877 | ||
19878 | if test "$wxUSE_SPLITTER" = "yes"; then | |
19879 | cat >> confdefs.h <<\EOF | |
19880 | #define wxUSE_SPLITTER 1 | |
19881 | EOF | |
19882 | ||
19883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19884 | fi | |
19885 | ||
19886 | if test "$wxUSE_STATBMP" = "yes"; then | |
19887 | cat >> confdefs.h <<\EOF | |
19888 | #define wxUSE_STATBMP 1 | |
19889 | EOF | |
19890 | ||
19891 | USES_CONTROLS=1 | |
19892 | fi | |
19893 | ||
19894 | if test "$wxUSE_STATBOX" = "yes"; then | |
19895 | cat >> confdefs.h <<\EOF | |
19896 | #define wxUSE_STATBOX 1 | |
19897 | EOF | |
19898 | ||
19899 | USES_CONTROLS=1 | |
19900 | fi | |
19901 | ||
19902 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19903 | cat >> confdefs.h <<\EOF | |
19904 | #define wxUSE_STATTEXT 1 | |
19905 | EOF | |
19906 | ||
19907 | USES_CONTROLS=1 | |
19908 | fi | |
19909 | ||
19910 | if test "$wxUSE_STATLINE" = "yes"; then | |
19911 | if test "$wxUSE_WINE" = 1 ; then | |
19912 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
19913 | else | |
19914 | cat >> confdefs.h <<\EOF | |
19915 | #define wxUSE_STATLINE 1 | |
19916 | EOF | |
19917 | ||
19918 | USES_CONTROLS=1 | |
19919 | fi | |
19920 | fi | |
19921 | ||
19922 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
19923 | cat >> confdefs.h <<\EOF | |
19924 | #define wxUSE_STATUSBAR 1 | |
19925 | EOF | |
19926 | ||
19927 | USES_CONTROLS=1 | |
19928 | ||
19929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
19930 | fi | |
19931 | ||
19932 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
19933 | cat >> confdefs.h <<\EOF | |
19934 | #define wxUSE_TAB_DIALOG 1 | |
19935 | EOF | |
19936 | ||
19937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19938 | fi | |
19939 | ||
19940 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
19941 | cat >> confdefs.h <<\EOF | |
19942 | #define wxUSE_TEXTCTRL 1 | |
19943 | EOF | |
19944 | ||
19945 | USES_CONTROLS=1 | |
19946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19947 | fi | |
19948 | ||
19949 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19950 | if test "$wxUSE_MAC" = 1; then | |
19951 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19952 | wxUSE_TOGGLEBTN=no | |
19953 | fi | |
19954 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19955 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 | |
19956 | wxUSE_TOGGLEBTN=no | |
19957 | fi | |
19958 | ||
19959 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19960 | cat >> confdefs.h <<\EOF | |
19961 | #define wxUSE_TOGGLEBTN 1 | |
19962 | EOF | |
19963 | ||
19964 | USES_CONTROLS=1 | |
19965 | fi | |
19966 | fi | |
19967 | ||
19968 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
19969 | cat >> confdefs.h <<\EOF | |
19970 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
19971 | EOF | |
19972 | ||
19973 | wxUSE_TOOLBAR="yes" | |
19974 | USES_CONTROLS=1 | |
19975 | fi | |
19976 | ||
19977 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
19978 | cat >> confdefs.h <<\EOF | |
19979 | #define wxUSE_TOOLBAR 1 | |
19980 | EOF | |
19981 | ||
19982 | USES_CONTROLS=1 | |
19983 | ||
19984 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
19985 | wxUSE_TOOLBAR_NATIVE="yes" | |
19986 | fi | |
19987 | ||
19988 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
19989 | cat >> confdefs.h <<\EOF | |
19990 | #define wxUSE_TOOLBAR_NATIVE 1 | |
19991 | EOF | |
19992 | ||
19993 | USES_CONTROLS=1 | |
19994 | fi | |
19995 | ||
19996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
19997 | fi | |
19998 | ||
19999 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
20000 | if test "$wxUSE_MOTIF" = 1; then | |
20001 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 | |
20002 | else | |
20003 | if test "$wxUSE_WINE" = 1; then | |
20004 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 | |
20005 | else | |
20006 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
20007 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
20008 | else | |
20009 | cat >> confdefs.h <<\EOF | |
20010 | #define wxUSE_TOOLTIPS 1 | |
20011 | EOF | |
20012 | ||
20013 | fi | |
20014 | fi | |
20015 | fi | |
20016 | fi | |
20017 | ||
20018 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20019 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
20020 | cat >> confdefs.h <<\EOF | |
20021 | #define wxUSE_TREECTRL 1 | |
20022 | EOF | |
20023 | ||
20024 | USES_CONTROLS=1 | |
20025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
20026 | else | |
20027 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
20028 | fi | |
20029 | fi | |
20030 | ||
20031 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
20032 | if test "$wxUSE_MAC" = 1; then | |
20033 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 | |
20034 | else | |
20035 | if test "$wxUSE_MOTIF" = 1; then | |
20036 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20037 | else | |
20038 | if test "$wxUSE_PM" = 1; then | |
20039 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20040 | else | |
20041 | cat >> confdefs.h <<\EOF | |
20042 | #define wxUSE_POPUPWIN 1 | |
20043 | EOF | |
20044 | ||
20045 | ||
20046 | USES_CONTROLS=1 | |
20047 | fi | |
20048 | fi | |
20049 | fi | |
20050 | fi | |
20051 | ||
20052 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
20053 | if test "$wxUSE_PM" = 1; then | |
20054 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20055 | else | |
20056 | cat >> confdefs.h <<\EOF | |
20057 | #define wxUSE_TIPWINDOW 1 | |
20058 | EOF | |
20059 | ||
20060 | fi | |
20061 | fi | |
20062 | ||
20063 | if test "$USES_CONTROLS" = 1; then | |
20064 | cat >> confdefs.h <<\EOF | |
20065 | #define wxUSE_CONTROLS 1 | |
20066 | EOF | |
20067 | ||
20068 | fi | |
20069 | ||
20070 | ||
20071 | if test "$wxUSE_TREELAYOUT" = "yes"; then | |
20072 | cat >> confdefs.h <<\EOF | |
20073 | #define wxUSE_TREELAYOUT 1 | |
20074 | EOF | |
20075 | ||
20076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20077 | fi | |
20078 | ||
20079 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
20080 | cat >> confdefs.h <<\EOF | |
20081 | #define wxUSE_DRAGIMAGE 1 | |
20082 | EOF | |
20083 | ||
20084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20085 | fi | |
20086 | ||
20087 | if test "$wxUSE_MENUS" = "yes"; then | |
20088 | cat >> confdefs.h <<\EOF | |
20089 | #define wxUSE_MENUS 1 | |
20090 | EOF | |
20091 | ||
20092 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
20093 | fi | |
20094 | ||
20095 | if test "$wxUSE_METAFILE" = "yes"; then | |
20096 | cat >> confdefs.h <<\EOF | |
20097 | #define wxUSE_METAFILE 1 | |
20098 | EOF | |
20099 | ||
20100 | fi | |
20101 | ||
20102 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
20103 | cat >> confdefs.h <<\EOF | |
20104 | #define wxUSE_MIMETYPE 1 | |
20105 | EOF | |
20106 | ||
20107 | fi | |
20108 | ||
20109 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
20110 | cat >> confdefs.h <<\EOF | |
20111 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20112 | EOF | |
20113 | ||
20114 | fi | |
20115 | ||
20116 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20117 | if test "$wxUSE_SOCKETS" != "yes"; then | |
20118 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20119 | wxUSE_PROTOCOL=no | |
20120 | fi | |
20121 | ||
20122 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20123 | cat >> confdefs.h <<\EOF | |
20124 | #define wxUSE_PROTOCOL 1 | |
20125 | EOF | |
20126 | ||
20127 | ||
20128 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
20129 | cat >> confdefs.h <<\EOF | |
20130 | #define wxUSE_PROTOCOL_HTTP 1 | |
20131 | EOF | |
20132 | ||
20133 | fi | |
20134 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20135 | cat >> confdefs.h <<\EOF | |
20136 | #define wxUSE_PROTOCOL_FTP 1 | |
20137 | EOF | |
20138 | ||
20139 | fi | |
20140 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20141 | cat >> confdefs.h <<\EOF | |
20142 | #define wxUSE_PROTOCOL_FILE 1 | |
20143 | EOF | |
20144 | ||
20145 | fi | |
20146 | fi | |
20147 | fi | |
20148 | ||
20149 | if test "$wxUSE_URL" = "yes"; then | |
20150 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20151 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20152 | wxUSE_URL=no | |
20153 | fi | |
20154 | if test "$wxUSE_URL" = "yes"; then | |
20155 | cat >> confdefs.h <<\EOF | |
20156 | #define wxUSE_URL 1 | |
20157 | EOF | |
20158 | ||
20159 | fi | |
20160 | fi | |
20161 | ||
20162 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
20163 | cat >> confdefs.h <<\EOF | |
20164 | #define wxUSE_MINIFRAME 1 | |
20165 | EOF | |
20166 | ||
20167 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20168 | fi | |
20169 | ||
20170 | if test "$wxUSE_HTML" = "yes"; then | |
20171 | cat >> confdefs.h <<\EOF | |
20172 | #define wxUSE_HTML 1 | |
20173 | EOF | |
20174 | ||
20175 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
20176 | fi | |
20177 | ||
20178 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
20179 | cat >> confdefs.h <<\EOF | |
20180 | #define wxUSE_VALIDATORS 1 | |
20181 | EOF | |
20182 | ||
20183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
20184 | fi | |
20185 | ||
20186 | if test "$wxUSE_PALETTE" = "yes" ; then | |
20187 | cat >> confdefs.h <<\EOF | |
20188 | #define wxUSE_PALETTE 1 | |
20189 | EOF | |
20190 | ||
20191 | fi | |
20192 | ||
20193 | if test "$wxUSE_IMAGE" = "yes" ; then | |
20194 | cat >> confdefs.h <<\EOF | |
20195 | #define wxUSE_IMAGE 1 | |
20196 | EOF | |
20197 | ||
20198 | fi | |
20199 | ||
20200 | if test "$wxUSE_GIF" = "yes" ; then | |
20201 | cat >> confdefs.h <<\EOF | |
20202 | #define wxUSE_GIF 1 | |
20203 | EOF | |
20204 | ||
20205 | fi | |
20206 | ||
20207 | if test "$wxUSE_PCX" = "yes" ; then | |
20208 | cat >> confdefs.h <<\EOF | |
20209 | #define wxUSE_PCX 1 | |
20210 | EOF | |
20211 | ||
20212 | fi | |
20213 | ||
20214 | if test "$wxUSE_IFF" = "yes" ; then | |
20215 | cat >> confdefs.h <<\EOF | |
20216 | #define wxUSE_IFF 1 | |
20217 | EOF | |
20218 | ||
20219 | fi | |
20220 | ||
20221 | if test "$wxUSE_PNM" = "yes" ; then | |
20222 | cat >> confdefs.h <<\EOF | |
20223 | #define wxUSE_PNM 1 | |
20224 | EOF | |
20225 | ||
20226 | fi | |
20227 | ||
20228 | if test "$wxUSE_XPM" = "yes" ; then | |
20229 | cat >> confdefs.h <<\EOF | |
20230 | #define wxUSE_XPM 1 | |
20231 | EOF | |
20232 | ||
20233 | fi | |
20234 | ||
20235 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
20236 | cat >> confdefs.h <<\EOF | |
20237 | #define wxUSE_ICO_CUR 1 | |
20238 | EOF | |
20239 | ||
20240 | fi | |
20241 | ||
20242 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
20243 | LIBS=" -lunicows $LIBS" | |
20244 | fi | |
20245 | ||
20246 | ||
20247 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
20248 | cat >> confdefs.h <<\EOF | |
20249 | #define wxUSE_CHOICEDLG 1 | |
20250 | EOF | |
20251 | ||
20252 | fi | |
20253 | ||
20254 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20255 | cat >> confdefs.h <<\EOF | |
20256 | #define wxUSE_COLOURDLG 1 | |
20257 | EOF | |
20258 | ||
20259 | fi | |
20260 | ||
20261 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20262 | cat >> confdefs.h <<\EOF | |
20263 | #define wxUSE_FILEDLG 1 | |
20264 | EOF | |
20265 | ||
20266 | fi | |
20267 | ||
20268 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
20269 | cat >> confdefs.h <<\EOF | |
20270 | #define wxUSE_FINDREPLDLG 1 | |
20271 | EOF | |
20272 | ||
20273 | fi | |
20274 | ||
20275 | if test "$wxUSE_FONTDLG" = "yes"; then | |
20276 | cat >> confdefs.h <<\EOF | |
20277 | #define wxUSE_FONTDLG 1 | |
20278 | EOF | |
20279 | ||
20280 | fi | |
20281 | ||
20282 | if test "$wxUSE_DIRDLG" = "yes"; then | |
20283 | if test "$wxUSE_TREECTRL" != "yes"; then | |
20284 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
20285 | else | |
20286 | cat >> confdefs.h <<\EOF | |
20287 | #define wxUSE_DIRDLG 1 | |
20288 | EOF | |
20289 | ||
20290 | fi | |
20291 | fi | |
20292 | ||
20293 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20294 | cat >> confdefs.h <<\EOF | |
20295 | #define wxUSE_MSGDLG 1 | |
20296 | EOF | |
20297 | ||
20298 | fi | |
20299 | ||
20300 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20301 | cat >> confdefs.h <<\EOF | |
20302 | #define wxUSE_NUMBERDLG 1 | |
20303 | EOF | |
20304 | ||
20305 | fi | |
20306 | ||
20307 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20308 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20309 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20310 | else | |
20311 | cat >> confdefs.h <<\EOF | |
20312 | #define wxUSE_PROGRESSDLG 1 | |
20313 | EOF | |
20314 | ||
20315 | fi | |
20316 | fi | |
20317 | ||
20318 | if test "$wxUSE_SPLASH" = "yes"; then | |
20319 | cat >> confdefs.h <<\EOF | |
20320 | #define wxUSE_SPLASH 1 | |
20321 | EOF | |
20322 | ||
20323 | fi | |
20324 | ||
20325 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
20326 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20327 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20328 | else | |
20329 | cat >> confdefs.h <<\EOF | |
20330 | #define wxUSE_STARTUP_TIPS 1 | |
20331 | EOF | |
20332 | ||
20333 | fi | |
20334 | fi | |
20335 | ||
20336 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20337 | cat >> confdefs.h <<\EOF | |
20338 | #define wxUSE_TEXTDLG 1 | |
20339 | EOF | |
20340 | ||
20341 | fi | |
20342 | ||
20343 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
20344 | cat >> confdefs.h <<\EOF | |
20345 | #define wxUSE_WIZARDDLG 1 | |
20346 | EOF | |
20347 | ||
20348 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20349 | fi | |
20350 | ||
20351 | ||
20352 | if test "$cross_compiling" = "yes"; then | |
20353 | OSINFO="\"$host\"" | |
20354 | else | |
20355 | OSINFO=`uname -s -r -m` | |
20356 | OSINFO="\"$OSINFO\"" | |
20357 | fi | |
20358 | ||
20359 | cat >> confdefs.h <<EOF | |
20360 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20361 | EOF | |
20362 | ||
20363 | ||
20364 | ||
20365 | if test "x$prefix" != "xNONE"; then | |
20366 | wxPREFIX=$prefix | |
20367 | else | |
20368 | wxPREFIX=$ac_default_prefix | |
20369 | fi | |
20370 | ||
20371 | cat >> confdefs.h <<EOF | |
20372 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
20373 | EOF | |
20374 | ||
20375 | ||
20376 | ||
20377 | ||
20378 | ||
20379 | if test "$wxUSE_MAC" = 1 ; then | |
20380 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
20381 | fi | |
20382 | ||
20383 | ||
20384 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
20385 | ||
20386 | if test "$wxUSE_GUI" = "yes"; then | |
20387 | ||
20388 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
20389 | ||
20390 | ||
20391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
20392 | drawing dynamic erase event exec font image \ | |
20393 | minimal richedit rotate widgets" | |
20394 | ||
20395 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
20396 | else | |
20397 | SAMPLES_SUBDIRS="console" | |
20398 | fi | |
20399 | ||
20400 | ||
20401 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ | |
20402 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" | |
20403 | ||
20404 | if test "$wxUSE_GTK" = 1; then | |
20405 | WXCONFIG_INCLUDE= | |
20406 | else | |
20407 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20408 | fi | |
20409 | ||
20410 | if test "$GXX" = yes ; then | |
20411 | CXXWARNINGS="-Wall" | |
20412 | ||
20413 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20414 | CFLAGS="-MMD $CFLAGS" | |
20415 | CXXFLAGS="-MMD $CXXFLAGS" | |
20416 | fi | |
20417 | fi | |
20418 | ||
20419 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
20420 | ||
20421 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20422 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20423 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
20424 | ||
20425 | LDFLAGS="$LDFLAGS $PROFILE" | |
20426 | ||
20427 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
20428 | ||
20429 | ||
20430 | ||
20431 | ||
20432 | ||
20433 | ||
20434 | ||
20435 | ||
20436 | ||
20437 | ||
20438 | ||
20439 | ||
20440 | ||
20441 | ||
20442 | ||
20443 | ||
20444 | ||
20445 | ||
20446 | ||
20447 | ||
20448 | ||
20449 | ||
20450 | ||
20451 | ||
20452 | ||
20453 | ||
20454 | ||
20455 | ||
20456 | ||
20457 | ||
20458 | ||
20459 | ||
20460 | ||
20461 | ||
20462 | ||
20463 | ||
20464 | ||
20465 | ||
20466 | ||
20467 | ||
20468 | ||
20469 | ||
20470 | ||
20471 | ||
20472 | ||
20473 | ||
20474 | ||
20475 | ||
20476 | ||
20477 | ||
20478 | ||
20479 | ||
20480 | ||
20481 | ||
20482 | ||
20483 | ||
20484 | ||
20485 | ||
20486 | ||
20487 | ||
20488 | ||
20489 | ||
20490 | ||
20491 | ||
20492 | ||
20493 | ||
20494 | ||
20495 | ||
20496 | ||
20497 | ||
20498 | ||
20499 | ||
20500 | ||
20501 | ||
20502 | ||
20503 | ||
20504 | ||
20505 | ||
20506 | ||
20507 | ||
20508 | ||
20509 | ||
20510 | ||
20511 | ||
20512 | ||
20513 | ||
20514 | ||
20515 | ||
20516 | ||
20517 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
20518 | echo "configure:20519: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
20519 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
20520 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20522 | else | |
20523 | cat > conftestmake <<\EOF | |
20524 | all: | |
20525 | @echo 'ac_maketemp="${MAKE}"' | |
20526 | EOF | |
20527 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20528 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
20529 | if test -n "$ac_maketemp"; then | |
20530 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20531 | else | |
20532 | eval ac_cv_prog_make_${ac_make}_set=no | |
20533 | fi | |
20534 | rm -f conftestmake | |
20535 | fi | |
20536 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
20537 | echo "$ac_t""yes" 1>&6 | |
20538 | SET_MAKE= | |
20539 | else | |
20540 | echo "$ac_t""no" 1>&6 | |
20541 | SET_MAKE="MAKE=${MAKE-make}" | |
20542 | fi | |
20543 | ||
20544 | ||
20545 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
20546 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
20547 | fi | |
20548 | ||
20549 | ||
20550 | ||
20551 | if test "$wxUSE_GUI" = "yes"; then | |
20552 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS | |
20553 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20554 | wx_cv_path_ifs=$PATH_IFS | |
20555 | wx_cv_program_ext=$PROGRAM_EXT | |
20556 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20557 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20558 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20559 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20560 | wx_cv_path_ifs wx_cv_program_ext \ | |
20561 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20562 | subdirs="demos samples utils contrib" | |
20563 | ||
20564 | fi | |
20565 | ||
20566 | trap '' 1 2 15 | |
20567 | cat > confcache <<\EOF | |
20568 | # This file is a shell script that caches the results of configure | |
20569 | # tests run on this system so they can be shared between configure | |
20570 | # scripts and configure runs. It is not useful on other systems. | |
20571 | # If it contains results you don't want to keep, you may remove or edit it. | |
20572 | # | |
20573 | # By default, configure uses ./config.cache as the cache file, | |
20574 | # creating it if it does not exist already. You can give configure | |
20575 | # the --cache-file=FILE option to use a different cache file; that is | |
20576 | # what configure does when it calls configure scripts in | |
20577 | # subdirectories, so they share the cache. | |
20578 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20579 | # config.status only pays attention to the cache file if you give it the | |
20580 | # --recheck option to rerun configure. | |
20581 | # | |
20582 | EOF | |
20583 | # The following way of writing the cache mishandles newlines in values, | |
20584 | # but we know of no workaround that is simple, portable, and efficient. | |
20585 | # So, don't put newlines in cache variables' values. | |
20586 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20587 | # and sets the high bit in the cache file unless we assign to the vars. | |
20588 | (set) 2>&1 | | |
20589 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20590 | *ac_space=\ *) | |
20591 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20592 | # turns \\\\ into \\, and sed turns \\ into \). | |
20593 | sed -n \ | |
20594 | -e "s/'/'\\\\''/g" \ | |
20595 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20596 | ;; | |
20597 | *) | |
20598 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20599 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20600 | ;; | |
20601 | esac >> confcache | |
20602 | if cmp -s $cache_file confcache; then | |
20603 | : | |
20604 | else | |
20605 | if test -w $cache_file; then | |
20606 | echo "updating cache $cache_file" | |
20607 | cat confcache > $cache_file | |
20608 | else | |
20609 | echo "not updating unwritable cache $cache_file" | |
20610 | fi | |
20611 | fi | |
20612 | rm -f confcache | |
20613 | ||
20614 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
20615 | ||
20616 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20617 | # Let make expand exec_prefix. | |
20618 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20619 | ||
20620 | # Any assignment to VPATH causes Sun make to only execute | |
20621 | # the first set of double-colon rules, so remove it if not needed. | |
20622 | # If there is a colon in the path, we need to keep it. | |
20623 | if test "x$srcdir" = x.; then | |
20624 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
20625 | fi | |
20626 | ||
20627 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
20628 | ||
20629 | DEFS=-DHAVE_CONFIG_H | |
20630 | ||
20631 | # Without the "./", some shells look in PATH for config.status. | |
20632 | : ${CONFIG_STATUS=./config.status} | |
20633 | ||
20634 | echo creating $CONFIG_STATUS | |
20635 | rm -f $CONFIG_STATUS | |
20636 | cat > $CONFIG_STATUS <<EOF | |
20637 | #! /bin/sh | |
20638 | # Generated automatically by configure. | |
20639 | # Run this file to recreate the current configuration. | |
20640 | # This directory was configured as follows, | |
20641 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20642 | # | |
20643 | # $0 $ac_configure_args | |
20644 | # | |
20645 | # Compiler output produced by configure, useful for debugging | |
20646 | # configure, is in ./config.log if it exists. | |
20647 | ||
20648 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
20649 | for ac_option | |
20650 | do | |
20651 | case "\$ac_option" in | |
20652 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20653 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
20654 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20655 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20656 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20657 | exit 0 ;; | |
20658 | -help | --help | --hel | --he | --h) | |
20659 | echo "\$ac_cs_usage"; exit 0 ;; | |
20660 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
20661 | esac | |
20662 | done | |
20663 | ||
20664 | ac_given_srcdir=$srcdir | |
20665 | ac_given_INSTALL="$INSTALL" | |
20666 | ||
20667 | trap 'rm -fr `echo " | |
20668 | wx-config | |
20669 | src/make.env | |
20670 | src/makeprog.env | |
20671 | src/makelib.env | |
20672 | Makefile | |
20673 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
20674 | EOF | |
20675 | cat >> $CONFIG_STATUS <<EOF | |
20676 | ||
20677 | # Protect against being on the right side of a sed subst in config.status. | |
20678 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20679 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20680 | $ac_vpsub | |
20681 | $extrasub | |
20682 | s%@SHELL@%$SHELL%g | |
20683 | s%@CFLAGS@%$CFLAGS%g | |
20684 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20685 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20686 | s%@FFLAGS@%$FFLAGS%g | |
20687 | s%@DEFS@%$DEFS%g | |
20688 | s%@LDFLAGS@%$LDFLAGS%g | |
20689 | s%@LIBS@%$LIBS%g | |
20690 | s%@exec_prefix@%$exec_prefix%g | |
20691 | s%@prefix@%$prefix%g | |
20692 | s%@program_transform_name@%$program_transform_name%g | |
20693 | s%@bindir@%$bindir%g | |
20694 | s%@sbindir@%$sbindir%g | |
20695 | s%@libexecdir@%$libexecdir%g | |
20696 | s%@datadir@%$datadir%g | |
20697 | s%@sysconfdir@%$sysconfdir%g | |
20698 | s%@sharedstatedir@%$sharedstatedir%g | |
20699 | s%@localstatedir@%$localstatedir%g | |
20700 | s%@libdir@%$libdir%g | |
20701 | s%@includedir@%$includedir%g | |
20702 | s%@oldincludedir@%$oldincludedir%g | |
20703 | s%@infodir@%$infodir%g | |
20704 | s%@mandir@%$mandir%g | |
20705 | s%@host@%$host%g | |
20706 | s%@host_alias@%$host_alias%g | |
20707 | s%@host_cpu@%$host_cpu%g | |
20708 | s%@host_vendor@%$host_vendor%g | |
20709 | s%@host_os@%$host_os%g | |
20710 | s%@target@%$target%g | |
20711 | s%@target_alias@%$target_alias%g | |
20712 | s%@target_cpu@%$target_cpu%g | |
20713 | s%@target_vendor@%$target_vendor%g | |
20714 | s%@target_os@%$target_os%g | |
20715 | s%@build@%$build%g | |
20716 | s%@build_alias@%$build_alias%g | |
20717 | s%@build_cpu@%$build_cpu%g | |
20718 | s%@build_vendor@%$build_vendor%g | |
20719 | s%@build_os@%$build_os%g | |
20720 | s%@CC@%$CC%g | |
20721 | s%@CPP@%$CPP%g | |
20722 | s%@CXX@%$CXX%g | |
20723 | s%@RANLIB@%$RANLIB%g | |
20724 | s%@AR@%$AR%g | |
20725 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
20726 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
20727 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
20728 | s%@STRIP@%$STRIP%g | |
20729 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
20730 | s%@YACC@%$YACC%g | |
20731 | s%@LEX@%$LEX%g | |
20732 | s%@LEXLIB@%$LEXLIB%g | |
20733 | s%@LN_S@%$LN_S%g | |
20734 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
20735 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
20736 | s%@GTK_LIBS@%$GTK_LIBS%g | |
20737 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
20738 | s%@X_CFLAGS@%$X_CFLAGS%g | |
20739 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20740 | s%@X_LIBS@%$X_LIBS%g | |
20741 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
20742 | s%@RESCOMP@%$RESCOMP%g | |
20743 | s%@DEREZ@%$DEREZ%g | |
20744 | s%@CXXCPP@%$CXXCPP%g | |
20745 | s%@LIBICONV@%$LIBICONV%g | |
20746 | s%@LEX_STEM@%$LEX_STEM%g | |
20747 | s%@PATH_IFS@%$PATH_IFS%g | |
20748 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20749 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20750 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
20751 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
20752 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
20753 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
20754 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
20755 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20756 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
20757 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
20758 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
20759 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
20760 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
20761 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20762 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
20763 | s%@WX_ALL@%$WX_ALL%g | |
20764 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20765 | s%@SHARED_LD@%$SHARED_LD%g | |
20766 | s%@PIC_FLAG@%$PIC_FLAG%g | |
20767 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
20768 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
20769 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
20770 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
20771 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
20772 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20773 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20774 | s%@USE_GUI@%$USE_GUI%g | |
20775 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20776 | s%@TOOLKIT@%$TOOLKIT%g | |
20777 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
20778 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
20779 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
20780 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
20781 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
20782 | s%@cross_compiling@%$cross_compiling%g | |
20783 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20784 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
20785 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
20786 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
20787 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
20788 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
20789 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
20790 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
20791 | s%@GUIDIST@%$GUIDIST%g | |
20792 | s%@PORT_FILES@%$PORT_FILES%g | |
20793 | s%@DISTDIR@%$DISTDIR%g | |
20794 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
20795 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
20796 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
20797 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
20798 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
20799 | s%@EXTRADEFS@%$EXTRADEFS%g | |
20800 | s%@RESFLAGS@%$RESFLAGS%g | |
20801 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
20802 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
20803 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
20804 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
20805 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
20806 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
20807 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
20808 | s%@DLLTOOL@%$DLLTOOL%g | |
20809 | s%@AS@%$AS%g | |
20810 | s%@NM@%$NM%g | |
20811 | s%@LD@%$LD%g | |
20812 | s%@MAKEINFO@%$MAKEINFO%g | |
20813 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
20814 | s%@SET_MAKE@%$SET_MAKE%g | |
20815 | s%@subdirs@%$subdirs%g | |
20816 | ||
20817 | CEOF | |
20818 | EOF | |
20819 | ||
20820 | cat >> $CONFIG_STATUS <<\EOF | |
20821 | ||
20822 | # Split the substitutions into bite-sized pieces for seds with | |
20823 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20824 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20825 | ac_file=1 # Number of current file. | |
20826 | ac_beg=1 # First line for current file. | |
20827 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20828 | ac_more_lines=: | |
20829 | ac_sed_cmds="" | |
20830 | while $ac_more_lines; do | |
20831 | if test $ac_beg -gt 1; then | |
20832 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20833 | else | |
20834 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20835 | fi | |
20836 | if test ! -s conftest.s$ac_file; then | |
20837 | ac_more_lines=false | |
20838 | rm -f conftest.s$ac_file | |
20839 | else | |
20840 | if test -z "$ac_sed_cmds"; then | |
20841 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
20842 | else | |
20843 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
20844 | fi | |
20845 | ac_file=`expr $ac_file + 1` | |
20846 | ac_beg=$ac_end | |
20847 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
20848 | fi | |
20849 | done | |
20850 | if test -z "$ac_sed_cmds"; then | |
20851 | ac_sed_cmds=cat | |
20852 | fi | |
20853 | EOF | |
20854 | ||
20855 | cat >> $CONFIG_STATUS <<EOF | |
20856 | ||
20857 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20858 | src/make.env | |
20859 | src/makeprog.env | |
20860 | src/makelib.env | |
20861 | Makefile | |
20862 | "} | |
20863 | EOF | |
20864 | cat >> $CONFIG_STATUS <<\EOF | |
20865 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
20866 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
20867 | case "$ac_file" in | |
20868 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20869 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20870 | *) ac_file_in="${ac_file}.in" ;; | |
20871 | esac | |
20872 | ||
20873 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
20874 | ||
20875 | # Remove last slash and all that follows it. Not all systems have dirname. | |
20876 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20877 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20878 | # The file is in a subdirectory. | |
20879 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20880 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
20881 | # A "../" for each directory in $ac_dir_suffix. | |
20882 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
20883 | else | |
20884 | ac_dir_suffix= ac_dots= | |
20885 | fi | |
20886 | ||
20887 | case "$ac_given_srcdir" in | |
20888 | .) srcdir=. | |
20889 | if test -z "$ac_dots"; then top_srcdir=. | |
20890 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20891 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
20892 | *) # Relative path. | |
20893 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
20894 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
20895 | esac | |
20896 | ||
20897 | case "$ac_given_INSTALL" in | |
20898 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20899 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
20900 | esac | |
20901 | ||
20902 | echo creating "$ac_file" | |
20903 | rm -f "$ac_file" | |
20904 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20905 | case "$ac_file" in | |
20906 | *Makefile*) ac_comsub="1i\\ | |
20907 | # $configure_input" ;; | |
20908 | *) ac_comsub= ;; | |
20909 | esac | |
20910 | ||
20911 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20912 | sed -e "$ac_comsub | |
20913 | s%@configure_input@%$configure_input%g | |
20914 | s%@srcdir@%$srcdir%g | |
20915 | s%@top_srcdir@%$top_srcdir%g | |
20916 | s%@INSTALL@%$INSTALL%g | |
20917 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20918 | fi; done | |
20919 | rm -f conftest.s* | |
20920 | ||
20921 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20922 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20923 | # | |
20924 | # ac_d sets the value in "#define NAME VALUE" lines. | |
20925 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
20926 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20927 | ac_dC='\3' | |
20928 | ac_dD='%g' | |
20929 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20930 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20931 | ac_uB='\([ ]\)%\1#\2define\3' | |
20932 | ac_uC=' ' | |
20933 | ac_uD='\4%g' | |
20934 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20935 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20936 | ac_eB='$%\1#\2define\3' | |
20937 | ac_eC=' ' | |
20938 | ac_eD='%g' | |
20939 | ||
20940 | if test "${CONFIG_HEADERS+set}" != set; then | |
20941 | EOF | |
20942 | cat >> $CONFIG_STATUS <<EOF | |
20943 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20944 | EOF | |
20945 | cat >> $CONFIG_STATUS <<\EOF | |
20946 | fi | |
20947 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
20948 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
20949 | case "$ac_file" in | |
20950 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20951 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20952 | *) ac_file_in="${ac_file}.in" ;; | |
20953 | esac | |
20954 | ||
20955 | echo creating $ac_file | |
20956 | ||
20957 | rm -f conftest.frag conftest.in conftest.out | |
20958 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20959 | cat $ac_file_inputs > conftest.in | |
20960 | ||
20961 | EOF | |
20962 | ||
20963 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20964 | # the proper values into config.h.in to produce config.h. And first: | |
20965 | # Protect against being on the right side of a sed subst in config.status. | |
20966 | # Protect against being in an unquoted here document in config.status. | |
20967 | rm -f conftest.vals | |
20968 | cat > conftest.hdr <<\EOF | |
20969 | s/[\\&%]/\\&/g | |
20970 | s%[\\$`]%\\&%g | |
20971 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20972 | s%ac_d%ac_u%gp | |
20973 | s%ac_u%ac_e%gp | |
20974 | EOF | |
20975 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20976 | rm -f conftest.hdr | |
20977 | ||
20978 | # This sed command replaces #undef with comments. This is necessary, for | |
20979 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20980 | # on some systems where configure will not decide to define it. | |
20981 | cat >> conftest.vals <<\EOF | |
20982 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
20983 | EOF | |
20984 | ||
20985 | # Break up conftest.vals because some shells have a limit on | |
20986 | # the size of here documents, and old seds have small limits too. | |
20987 | ||
20988 | rm -f conftest.tail | |
20989 | while : | |
20990 | do | |
20991 | ac_lines=`grep -c . conftest.vals` | |
20992 | # grep -c gives empty output for an empty file on some AIX systems. | |
20993 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20994 | # Write a limited-size here document to conftest.frag. | |
20995 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20996 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
20997 | echo 'CEOF | |
20998 | sed -f conftest.frag conftest.in > conftest.out | |
20999 | rm -f conftest.in | |
21000 | mv conftest.out conftest.in | |
21001 | ' >> $CONFIG_STATUS | |
21002 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21003 | rm -f conftest.vals | |
21004 | mv conftest.tail conftest.vals | |
21005 | done | |
21006 | rm -f conftest.vals | |
21007 | ||
21008 | cat >> $CONFIG_STATUS <<\EOF | |
21009 | rm -f conftest.frag conftest.h | |
21010 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21011 | cat conftest.in >> conftest.h | |
21012 | rm -f conftest.in | |
21013 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21014 | echo "$ac_file is unchanged" | |
21015 | rm -f conftest.h | |
21016 | else | |
21017 | # Remove last slash and all that follows it. Not all systems have dirname. | |
21018 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21019 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21020 | # The file is in a subdirectory. | |
21021 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21022 | fi | |
21023 | rm -f $ac_file | |
21024 | mv conftest.h $ac_file | |
21025 | fi | |
21026 | fi; done | |
21027 | ||
21028 | EOF | |
21029 | cat >> $CONFIG_STATUS <<EOF | |
21030 | ||
21031 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
21032 | LN_S="${LN_S}" | |
21033 | ||
21034 | ||
21035 | EOF | |
21036 | cat >> $CONFIG_STATUS <<\EOF | |
21037 | ||
21038 | if test ! -h wx-config; then | |
21039 | chmod +x wx-config | |
21040 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
21041 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
21042 | fi | |
21043 | ||
21044 | if test ! -d lib; then | |
21045 | mkdir lib | |
21046 | fi | |
21047 | if test ! -d lib/wx; then | |
21048 | mkdir lib/wx | |
21049 | fi | |
21050 | if test ! -d lib/wx/include; then | |
21051 | mkdir lib/wx/include | |
21052 | fi | |
21053 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
21054 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
21055 | fi | |
21056 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
21057 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
21058 | fi | |
21059 | if test -f setup.h; then | |
21060 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
21061 | fi | |
21062 | ||
21063 | exit 0 | |
21064 | EOF | |
21065 | chmod +x $CONFIG_STATUS | |
21066 | rm -fr confdefs* $ac_clean_files | |
21067 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
21068 | ||
21069 | if test "$no_recursion" != yes; then | |
21070 | ||
21071 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21072 | ac_sub_configure_args= | |
21073 | ac_prev= | |
21074 | for ac_arg in $ac_configure_args; do | |
21075 | if test -n "$ac_prev"; then | |
21076 | ac_prev= | |
21077 | continue | |
21078 | fi | |
21079 | case "$ac_arg" in | |
21080 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
21081 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21082 | ac_prev=cache_file ;; | |
21083 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
21084 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
21085 | ;; | |
21086 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21087 | ac_prev=srcdir ;; | |
21088 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21089 | ;; | |
21090 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21091 | esac | |
21092 | done | |
21093 | ||
21094 | for ac_config_dir in demos samples utils contrib; do | |
21095 | ||
21096 | # Do not complain, so a configure script can configure whichever | |
21097 | # parts of a large source tree are present. | |
21098 | if test ! -d $srcdir/$ac_config_dir; then | |
21099 | continue | |
21100 | fi | |
21101 | ||
21102 | echo configuring in $ac_config_dir | |
21103 | ||
21104 | case "$srcdir" in | |
21105 | .) ;; | |
21106 | *) | |
21107 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
21108 | else | |
21109 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21110 | fi | |
21111 | ;; | |
21112 | esac | |
21113 | ||
21114 | ac_popdir=`pwd` | |
21115 | cd $ac_config_dir | |
21116 | ||
21117 | # A "../" for each directory in /$ac_config_dir. | |
21118 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
21119 | ||
21120 | case "$srcdir" in | |
21121 | .) # No --srcdir option. We are building in place. | |
21122 | ac_sub_srcdir=$srcdir ;; | |
21123 | /*) # Absolute path. | |
21124 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
21125 | *) # Relative path. | |
21126 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
21127 | esac | |
21128 | ||
21129 | # Check for guested configure; otherwise get Cygnus style configure. | |
21130 | if test -f $ac_sub_srcdir/configure; then | |
21131 | ac_sub_configure=$ac_sub_srcdir/configure | |
21132 | elif test -f $ac_sub_srcdir/configure.in; then | |
21133 | ac_sub_configure=$ac_configure | |
21134 | else | |
21135 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
21136 | ac_sub_configure= | |
21137 | fi | |
21138 | ||
21139 | # The recursion is here. | |
21140 | if test -n "$ac_sub_configure"; then | |
21141 | ||
21142 | # Make the cache file name correct relative to the subdirectory. | |
21143 | case "$cache_file" in | |
21144 | /*) ac_sub_cache_file=$cache_file ;; | |
21145 | *) # Relative path. | |
21146 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
21147 | esac | |
21148 | case "$ac_given_INSTALL" in | |
21149 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21150 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21151 | esac | |
21152 | ||
21153 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
21154 | # The eval makes quoting arguments work. | |
21155 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
21156 | then : | |
21157 | else | |
21158 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21159 | fi | |
21160 | fi | |
21161 | ||
21162 | cd $ac_popdir | |
21163 | done | |
21164 | fi | |
21165 | ||
21166 |